Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpopovme committed Dec 13, 2023
1 parent 16d0e3d commit c35efe6
Show file tree
Hide file tree
Showing 17 changed files with 93 additions and 24 deletions.
43 changes: 42 additions & 1 deletion docs/chat-settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,30 @@
}
```

## show_on_message

Открывать чат при поступлении нового сообщения.

```json
{
"chat_settings": {
"show_on_message": true
}
}
```

## keep_visible

Если у пользователя открыт чат и он переходит на другую страницу, сразу открывать там чат.

```json
{
"chat_settings": {
"keep_visible": true
}
}
```

## initial_show_delay

Открывать чат через некоторое время после открытия страницы.
Expand Down Expand Up @@ -83,15 +107,19 @@
"text": {
"header": "Всегда рады ответить на Ваши вопросы!",
"welcome_message": "Здравствуйте!",
"input_placeholder": "Напишите что-нибудь"
"welcome_message_popup": "Здравствуйте! Как мы можем Вам помочь?",
"input_placeholder": "Напишите что-нибудь",
"waiting_message": "Ищем свободного менеджера, пожалуйста ожидайте"
}
}
}
```

`header` - текст в шапке сайта
`welcome_message` - сообщение чата при первом открытии
`welcome_message_popup` - попап сообщение кнопки чата
`input_placeholder` - текст в поле ввода сообщения
`waiting_message` - сообщение в чате под спиннером

## toggle_button_visible

Expand Down Expand Up @@ -127,6 +155,19 @@
}
```

## toggle_button_animation_delay

Время (ms) через которое начинается анимация привлечения внимания к кнопке чата
От этого времени также отсчитывается появление попапа кнопки чата и доп. анимаций

```json
{
"chat_settings": {
"toggle_button_animation_delay": 3000
}
}
```

## no_answer_limit

Время через которое начинать автоматический диалог получения контактов пользователя.
Expand Down
2 changes: 1 addition & 1 deletion docs/public/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</head>
<body>
<div id="app"><div class="Layout" data-v-6be51355><!--[--><!--]--><!--[--><span tabindex="-1" data-v-ae3e3f51></span><a href="#VPContent" class="VPSkipLink visually-hidden" data-v-ae3e3f51> Skip to content </a><!--]--><!----><header class="VPNav" data-v-6be51355 data-v-7e5bc4a5><div class="VPNavBar" data-v-7e5bc4a5 data-v-faa4ef78><div class="container" data-v-faa4ef78><div class="title" data-v-faa4ef78><div class="VPNavBarTitle" data-v-faa4ef78 data-v-8bbac535><a class="title" href="/chw-script-test/docs/public/" data-v-8bbac535><!--[--><!--]--><!----><!--[-->НСБ Виджет<!--]--><!--[--><!--]--></a></div></div><div class="content" data-v-faa4ef78><div class="curtain" data-v-faa4ef78></div><div class="content-body" data-v-faa4ef78><!--[--><!--]--><div class="VPNavBarSearch search" style="--vp-meta-key:&#39;Meta&#39;;" data-v-faa4ef78><!----></div><!----><!----><div class="VPNavBarAppearance appearance" data-v-faa4ef78 data-v-f6a63727><button class="VPSwitch VPSwitchAppearance" type="button" role="switch" title="toggle dark mode" aria-checked="false" data-v-f6a63727 data-v-82b282f1 data-v-f3c41672><span class="check" data-v-f3c41672><span class="icon" data-v-f3c41672><!--[--><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" viewbox="0 0 24 24" class="sun" data-v-82b282f1><path d="M12,18c-3.3,0-6-2.7-6-6s2.7-6,6-6s6,2.7,6,6S15.3,18,12,18zM12,8c-2.2,0-4,1.8-4,4c0,2.2,1.8,4,4,4c2.2,0,4-1.8,4-4C16,9.8,14.2,8,12,8z"></path><path d="M12,4c-0.6,0-1-0.4-1-1V1c0-0.6,0.4-1,1-1s1,0.4,1,1v2C13,3.6,12.6,4,12,4z"></path><path d="M12,24c-0.6,0-1-0.4-1-1v-2c0-0.6,0.4-1,1-1s1,0.4,1,1v2C13,23.6,12.6,24,12,24z"></path><path d="M5.6,6.6c-0.3,0-0.5-0.1-0.7-0.3L3.5,4.9c-0.4-0.4-0.4-1,0-1.4s1-0.4,1.4,0l1.4,1.4c0.4,0.4,0.4,1,0,1.4C6.2,6.5,5.9,6.6,5.6,6.6z"></path><path d="M19.8,20.8c-0.3,0-0.5-0.1-0.7-0.3l-1.4-1.4c-0.4-0.4-0.4-1,0-1.4s1-0.4,1.4,0l1.4,1.4c0.4,0.4,0.4,1,0,1.4C20.3,20.7,20,20.8,19.8,20.8z"></path><path d="M3,13H1c-0.6,0-1-0.4-1-1s0.4-1,1-1h2c0.6,0,1,0.4,1,1S3.6,13,3,13z"></path><path d="M23,13h-2c-0.6,0-1-0.4-1-1s0.4-1,1-1h2c0.6,0,1,0.4,1,1S23.6,13,23,13z"></path><path d="M4.2,20.8c-0.3,0-0.5-0.1-0.7-0.3c-0.4-0.4-0.4-1,0-1.4l1.4-1.4c0.4-0.4,1-0.4,1.4,0s0.4,1,0,1.4l-1.4,1.4C4.7,20.7,4.5,20.8,4.2,20.8z"></path><path d="M18.4,6.6c-0.3,0-0.5-0.1-0.7-0.3c-0.4-0.4-0.4-1,0-1.4l1.4-1.4c0.4-0.4,1-0.4,1.4,0s0.4,1,0,1.4l-1.4,1.4C18.9,6.5,18.6,6.6,18.4,6.6z"></path></svg><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" viewbox="0 0 24 24" class="moon" data-v-82b282f1><path d="M12.1,22c-0.3,0-0.6,0-0.9,0c-5.5-0.5-9.5-5.4-9-10.9c0.4-4.8,4.2-8.6,9-9c0.4,0,0.8,0.2,1,0.5c0.2,0.3,0.2,0.8-0.1,1.1c-2,2.7-1.4,6.4,1.3,8.4c2.1,1.6,5,1.6,7.1,0c0.3-0.2,0.7-0.3,1.1-0.1c0.3,0.2,0.5,0.6,0.5,1c-0.2,2.7-1.5,5.1-3.6,6.8C16.6,21.2,14.4,22,12.1,22zM9.3,4.4c-2.9,1-5,3.6-5.2,6.8c-0.4,4.4,2.8,8.3,7.2,8.7c2.1,0.2,4.2-0.4,5.8-1.8c1.1-0.9,1.9-2.1,2.4-3.4c-2.5,0.9-5.3,0.5-7.5-1.1C9.2,11.4,8.1,7.7,9.3,4.4z"></path></svg><!--]--></span></span></button></div><!----><div class="VPFlyout VPNavBarExtra extra" data-v-faa4ef78 data-v-40855f84 data-v-764effdf><button type="button" class="button" aria-haspopup="true" aria-expanded="false" aria-label="extra navigation" data-v-764effdf><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" viewbox="0 0 24 24" class="icon" data-v-764effdf><circle cx="12" cy="12" r="2"></circle><circle cx="19" cy="12" r="2"></circle><circle cx="5" cy="12" r="2"></circle></svg></button><div class="menu" data-v-764effdf><div class="VPMenu" data-v-764effdf data-v-e7ea1737><!----><!--[--><!--[--><!----><div class="group" data-v-40855f84><div class="item appearance" data-v-40855f84><p class="label" data-v-40855f84>Appearance</p><div class="appearance-action" data-v-40855f84><button class="VPSwitch VPSwitchAppearance" type="button" role="switch" title="toggle dark mode" aria-checked="false" data-v-40855f84 data-v-82b282f1 data-v-f3c41672><span class="check" data-v-f3c41672><span class="icon" data-v-f3c41672><!--[--><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" viewbox="0 0 24 24" class="sun" data-v-82b282f1><path d="M12,18c-3.3,0-6-2.7-6-6s2.7-6,6-6s6,2.7,6,6S15.3,18,12,18zM12,8c-2.2,0-4,1.8-4,4c0,2.2,1.8,4,4,4c2.2,0,4-1.8,4-4C16,9.8,14.2,8,12,8z"></path><path d="M12,4c-0.6,0-1-0.4-1-1V1c0-0.6,0.4-1,1-1s1,0.4,1,1v2C13,3.6,12.6,4,12,4z"></path><path d="M12,24c-0.6,0-1-0.4-1-1v-2c0-0.6,0.4-1,1-1s1,0.4,1,1v2C13,23.6,12.6,24,12,24z"></path><path d="M5.6,6.6c-0.3,0-0.5-0.1-0.7-0.3L3.5,4.9c-0.4-0.4-0.4-1,0-1.4s1-0.4,1.4,0l1.4,1.4c0.4,0.4,0.4,1,0,1.4C6.2,6.5,5.9,6.6,5.6,6.6z"></path><path d="M19.8,20.8c-0.3,0-0.5-0.1-0.7-0.3l-1.4-1.4c-0.4-0.4-0.4-1,0-1.4s1-0.4,1.4,0l1.4,1.4c0.4,0.4,0.4,1,0,1.4C20.3,20.7,20,20.8,19.8,20.8z"></path><path d="M3,13H1c-0.6,0-1-0.4-1-1s0.4-1,1-1h2c0.6,0,1,0.4,1,1S3.6,13,3,13z"></path><path d="M23,13h-2c-0.6,0-1-0.4-1-1s0.4-1,1-1h2c0.6,0,1,0.4,1,1S23.6,13,23,13z"></path><path d="M4.2,20.8c-0.3,0-0.5-0.1-0.7-0.3c-0.4-0.4-0.4-1,0-1.4l1.4-1.4c0.4-0.4,1-0.4,1.4,0s0.4,1,0,1.4l-1.4,1.4C4.7,20.7,4.5,20.8,4.2,20.8z"></path><path d="M18.4,6.6c-0.3,0-0.5-0.1-0.7-0.3c-0.4-0.4-0.4-1,0-1.4l1.4-1.4c0.4-0.4,1-0.4,1.4,0s0.4,1,0,1.4l-1.4,1.4C18.9,6.5,18.6,6.6,18.4,6.6z"></path></svg><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" viewbox="0 0 24 24" class="moon" data-v-82b282f1><path d="M12.1,22c-0.3,0-0.6,0-0.9,0c-5.5-0.5-9.5-5.4-9-10.9c0.4-4.8,4.2-8.6,9-9c0.4,0,0.8,0.2,1,0.5c0.2,0.3,0.2,0.8-0.1,1.1c-2,2.7-1.4,6.4,1.3,8.4c2.1,1.6,5,1.6,7.1,0c0.3-0.2,0.7-0.3,1.1-0.1c0.3,0.2,0.5,0.6,0.5,1c-0.2,2.7-1.5,5.1-3.6,6.8C16.6,21.2,14.4,22,12.1,22zM9.3,4.4c-2.9,1-5,3.6-5.2,6.8c-0.4,4.4,2.8,8.3,7.2,8.7c2.1,0.2,4.2-0.4,5.8-1.8c1.1-0.9,1.9-2.1,2.4-3.4c-2.5,0.9-5.3,0.5-7.5-1.1C9.2,11.4,8.1,7.7,9.3,4.4z"></path></svg><!--]--></span></span></button></div></div></div><!----><!--]--><!--]--></div></div></div><!--[--><!--]--><button type="button" class="VPNavBarHamburger hamburger" aria-label="mobile navigation" aria-expanded="false" aria-controls="VPNavScreen" data-v-faa4ef78 data-v-e5dd9c1c><span class="container" data-v-e5dd9c1c><span class="top" data-v-e5dd9c1c></span><span class="middle" data-v-e5dd9c1c></span><span class="bottom" data-v-e5dd9c1c></span></span></button></div></div></div></div><!----></header><div class="VPLocalNav fixed reached-top" data-v-6be51355 data-v-5cfd5582><!----><div class="VPLocalNavOutlineDropdown" style="--vp-vh:0px;" data-v-5cfd5582 data-v-d5bb9d56><button data-v-d5bb9d56>Return to top</button><!----></div></div><!----><div class="VPContent" id="VPContent" data-v-6be51355 data-v-3107c4ee><!--[--><div class="NotFound" data-v-3107c4ee data-v-c70503b8><p class="code" data-v-c70503b8>404</p><h1 class="title" data-v-c70503b8>PAGE NOT FOUND</h1><div class="divider" data-v-c70503b8></div><blockquote class="quote" data-v-c70503b8> But if you don&#39;t change your direction, and if you keep looking, you may end up where you are heading. </blockquote><div class="action" data-v-c70503b8><a class="link" href="/chw-script-test/docs/public/" aria-label="go to home" data-v-c70503b8> Take me home </a></div></div><!--]--></div><!----><!--[--><!--]--></div></div>
<script>window.__VP_HASH_MAP__=JSON.parse("{\"other-settings.md\":\"99eb8132\",\"hooks.md\":\"81f47b80\",\"index.md\":\"3632fa7a\",\"embedding.md\":\"42e1e20d\",\"book-params.md\":\"ce4e65c8\",\"contacts-dialog-settings.md\":\"9381dad0\",\"public_api.md\":\"a03dc607\",\"backcall-settings.md\":\"03444403\",\"settings.md\":\"20dc0f6e\",\"chat-settings.md\":\"172e79cd\",\"win-settings.md\":\"177706b6\",\"book-settings.md\":\"63991411\"}");window.__VP_SITE_DATA__=JSON.parse("{\"lang\":\"ru-RU\",\"dir\":\"ltr\",\"title\":\"НСБ Виджет\",\"description\":\"Документация\",\"base\":\"/chw-script-test/docs/public/\",\"head\":[],\"appearance\":true,\"themeConfig\":{\"sidebar\":[{\"text\":\"Встраивание в сайт\",\"link\":\"/embedding\"},{\"text\":\"Настройки\",\"items\":[{\"text\":\"Все настройки\",\"link\":\"/settings\"},{\"text\":\"Настройки чата\",\"link\":\"/chat-settings\"},{\"text\":\"Настройки формы бронирования\",\"link\":\"/book-settings\"},{\"text\":\"Параметры формы бронирования\",\"link\":\"/book-params\"},{\"text\":\"Настройки окон\",\"link\":\"/win-settings\"},{\"text\":\"Настройки телефонии\",\"link\":\"/backcall-settings\"},{\"text\":\"Настройки автоответа в чате\",\"link\":\"/contacts-dialog-settings\"},{\"text\":\"Настройки хуков аналитики\",\"link\":\"/hooks\"},{\"text\":\"Другие настройки\",\"link\":\"/other-settings\"},{\"text\":\"API\",\"link\":\"/public_api\"}]}],\"outlineTitle\":\"На странице\",\"docFooter\":{\"prev\":\"Предыдущая\",\"next\":\"Следующая\"}},\"locales\":{},\"scrollOffset\":90,\"cleanUrls\":false}");</script>
<script>window.__VP_HASH_MAP__=JSON.parse("{\"public_api.md\":\"a03dc607\",\"index.md\":\"3632fa7a\",\"other-settings.md\":\"99eb8132\",\"chat-settings.md\":\"f6360d0a\",\"hooks.md\":\"81f47b80\",\"backcall-settings.md\":\"03444403\",\"book-params.md\":\"ce4e65c8\",\"settings.md\":\"20dc0f6e\",\"embedding.md\":\"42e1e20d\",\"win-settings.md\":\"177706b6\",\"contacts-dialog-settings.md\":\"9381dad0\",\"book-settings.md\":\"63991411\"}");window.__VP_SITE_DATA__=JSON.parse("{\"lang\":\"ru-RU\",\"dir\":\"ltr\",\"title\":\"НСБ Виджет\",\"description\":\"Документация\",\"base\":\"/chw-script-test/docs/public/\",\"head\":[],\"appearance\":true,\"themeConfig\":{\"sidebar\":[{\"text\":\"Встраивание в сайт\",\"link\":\"/embedding\"},{\"text\":\"Настройки\",\"items\":[{\"text\":\"Все настройки\",\"link\":\"/settings\"},{\"text\":\"Настройки чата\",\"link\":\"/chat-settings\"},{\"text\":\"Настройки формы бронирования\",\"link\":\"/book-settings\"},{\"text\":\"Параметры формы бронирования\",\"link\":\"/book-params\"},{\"text\":\"Настройки окон\",\"link\":\"/win-settings\"},{\"text\":\"Настройки телефонии\",\"link\":\"/backcall-settings\"},{\"text\":\"Настройки автоответа в чате\",\"link\":\"/contacts-dialog-settings\"},{\"text\":\"Настройки хуков аналитики\",\"link\":\"/hooks\"},{\"text\":\"Другие настройки\",\"link\":\"/other-settings\"},{\"text\":\"API\",\"link\":\"/public_api\"}]}],\"outlineTitle\":\"На странице\",\"docFooter\":{\"prev\":\"Предыдущая\",\"next\":\"Следующая\"}},\"locales\":{},\"scrollOffset\":90,\"cleanUrls\":false}");</script>

</body>
</html>
Loading

0 comments on commit c35efe6

Please sign in to comment.