@moveo-ai/web-client 0.110.0-true.9 → 0.110.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -19
- package/dist/63.min.js.LICENSE.txt +1 -1
- package/dist/752.min.js.LICENSE.txt +1 -1
- package/dist/882.min.js.LICENSE.txt +1 -1
- package/dist/929.min.js.LICENSE.txt +1 -1
- package/dist/audio-client.min.js.LICENSE.txt +1 -1
- package/dist/iframe.min.js +1 -1
- package/dist/iframe.min.js.LICENSE.txt +1 -1
- package/dist/index.html +1 -1
- package/dist/preview/index.html +2 -2
- package/dist/preview.css.min.js.LICENSE.txt +1 -1
- package/dist/telnyx-client.min.js.LICENSE.txt +1 -1
- package/dist/web-client.min.js.LICENSE.txt +1 -1
- package/dist/webrtc-client.min.js.LICENSE.txt +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -229,25 +229,36 @@ callback at any time — a callback added after the widget loaded still receives
|
|
|
229
229
|
`widget_loaded` on registration, so the event cannot be missed in the race
|
|
230
230
|
between `init()` resolving and your `.then()` running.
|
|
231
231
|
|
|
232
|
-
####
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
232
|
+
#### How the header controls end a conversation
|
|
233
|
+
|
|
234
|
+
Two header controls can end a conversation, and they report differently.
|
|
235
|
+
|
|
236
|
+
**The close button (X)** asks first. Once the conversation has messages, it
|
|
237
|
+
opens a confirmation offering **End conversation** and **Minimize**. Ending
|
|
238
|
+
runs the end-of-chat survey when the account has one. On an empty chat, or
|
|
239
|
+
while a prompt or webview owns the panel, it just hides the panel. Set
|
|
240
|
+
`close_minimizes_window: true` and the button always minimizes and never ends.
|
|
241
|
+
|
|
242
|
+
**Restart**, in the header title menu, does not ask. It ends the conversation
|
|
243
|
+
and opens the next one in place, with the panel still open, and shows no
|
|
244
|
+
end-of-chat survey.
|
|
245
|
+
|
|
246
|
+
During a voice call the close button ends the call, after its own confirmation.
|
|
247
|
+
|
|
248
|
+
Which event to count:
|
|
249
|
+
|
|
250
|
+
| Event | Fires when | Means the conversation ended |
|
|
251
|
+
| ----------------------------------- | ---------------------------------------------------------- | ---------------------------- |
|
|
252
|
+
| `close_icon_clicked` | The visitor presses X, before they answer the confirmation | No |
|
|
253
|
+
| `popover_end_chat_clicked` | They confirm **End conversation** | Yes |
|
|
254
|
+
| `popover_end_chat_continue_clicked` | They pick **Minimize** instead | No |
|
|
255
|
+
| `restart_conversation_clicked` | They pick **Restart** from the menu | Yes |
|
|
256
|
+
|
|
257
|
+
Add `popover_end_chat_clicked` and `restart_conversation_clicked` for the
|
|
258
|
+
number of conversations visitors ended themselves. `close_icon_clicked` counts
|
|
259
|
+
presses, not conversations: count it as an end and you overstate your totals.
|
|
260
|
+
`onSessionClosed` covers the visitor-confirmed end, and `onConversationClosed`
|
|
261
|
+
covers a close that came from the agent side, so neither alone is a total.
|
|
251
262
|
|
|
252
263
|
### Forward widget events into your analytics
|
|
253
264
|
|