@moveo-ai/web-client 0.110.0-true.8 → 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 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
- #### Header control changes
233
-
234
- The header no longer carries a separate minimize button. The close button hides
235
- the panel and leaves the conversation open, and **Restart** moved into the
236
- header menu, where it asks before it ends the conversation. Three consequences
237
- for anything you already bind:
238
-
239
- - **`minimize_icon_clicked` no longer exists.** It left the `AnalyticsEventName`
240
- union with the button. A filter on that name now matches nothing, silently.
241
- There is no replacement: the close button reports `close_icon_clicked`.
242
- - **`close_icon_clicked` no longer implies the conversation ended.** It now
243
- means the visitor hid the panel. Counting it as an end overstates your
244
- conversation count.
245
- - **`restart_conversation_clicked` is new.** It fires when the visitor opens
246
- Restart from the header menu, before the confirmation. `onConversationClosed`
247
- still fires only if they confirm, so the two are not interchangeable.
248
-
249
- During a voice call the close button keeps its old meaning and ends the call,
250
- after a confirmation.
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
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * @moveo-ai/web-client v0.110.0-true.8
3
+ * @moveo-ai/web-client v0.110.0
4
4
  * Copyright (c) Moveo.ai (TM)
5
5
  *
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * @moveo-ai/web-client v0.110.0-true.8
3
+ * @moveo-ai/web-client v0.110.0
4
4
  * Copyright (c) Moveo.ai (TM)
5
5
  *
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * @moveo-ai/web-client v0.110.0-true.8
3
+ * @moveo-ai/web-client v0.110.0
4
4
  * Copyright (c) Moveo.ai (TM)
5
5
  *
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * @moveo-ai/web-client v0.110.0-true.8
3
+ * @moveo-ai/web-client v0.110.0
4
4
  * Copyright (c) Moveo.ai (TM)
5
5
  *
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * @moveo-ai/web-client v0.110.0-true.8
3
+ * @moveo-ai/web-client v0.110.0
4
4
  * Copyright (c) Moveo.ai (TM)
5
5
  *
6
6
  */