@moveo-ai/web-client 0.123.0-true.2 → 0.123.0-true.20

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.
Files changed (48) hide show
  1. package/README.md +12 -8
  2. package/dist/752.min.js.LICENSE.txt +1 -1
  3. package/dist/882.min.js.LICENSE.txt +1 -1
  4. package/dist/929.min.js.LICENSE.txt +1 -1
  5. package/dist/audio-client.min.js +1 -1
  6. package/dist/audio-client.min.js.LICENSE.txt +1 -1
  7. package/dist/continue/index.html +1 -1
  8. package/dist/iframe.min.js +1 -1
  9. package/dist/iframe.min.js.LICENSE.txt +1 -1
  10. package/dist/index.html +1 -1
  11. package/dist/preview/index.html +2 -2
  12. package/dist/preview.css.min.js.LICENSE.txt +1 -1
  13. package/dist/public/locales/ar.json +22 -1
  14. package/dist/public/locales/bg.json +22 -1
  15. package/dist/public/locales/cs.json +22 -1
  16. package/dist/public/locales/da.json +22 -1
  17. package/dist/public/locales/de.json +22 -1
  18. package/dist/public/locales/el.json +22 -1
  19. package/dist/public/locales/en.json +22 -1
  20. package/dist/public/locales/es.json +22 -1
  21. package/dist/public/locales/fr.json +22 -1
  22. package/dist/public/locales/id.json +22 -1
  23. package/dist/public/locales/it.json +22 -1
  24. package/dist/public/locales/ja.json +22 -1
  25. package/dist/public/locales/me.json +22 -1
  26. package/dist/public/locales/nl-be.json +22 -1
  27. package/dist/public/locales/nl.json +22 -1
  28. package/dist/public/locales/pl.json +22 -1
  29. package/dist/public/locales/pt-br.json +22 -1
  30. package/dist/public/locales/pt.json +22 -1
  31. package/dist/public/locales/ro.json +22 -1
  32. package/dist/public/locales/ru.json +22 -1
  33. package/dist/public/locales/sq.json +22 -1
  34. package/dist/public/locales/sr.json +22 -1
  35. package/dist/public/locales/sv.json +22 -1
  36. package/dist/public/locales/tl.json +22 -1
  37. package/dist/public/locales/tr.json +22 -1
  38. package/dist/public/locales/zh.json +22 -1
  39. package/dist/telnyx-client.min.js +1 -1
  40. package/dist/telnyx-client.min.js.LICENSE.txt +1 -1
  41. package/dist/web-client.min.js +1 -1
  42. package/dist/web-client.min.js.LICENSE.txt +1 -1
  43. package/dist/webrtc-client.min.js +1 -1
  44. package/dist/webrtc-client.min.js.LICENSE.txt +1 -1
  45. package/package.json +5 -3
  46. package/web-client.d.ts +11 -2
  47. package/dist/63.min.js +0 -2
  48. package/dist/63.min.js.LICENSE.txt +0 -6
package/README.md CHANGED
@@ -103,6 +103,9 @@ MoveoAI.init({ integrationId: 'YOUR_INTEGRATION_ID' }).then((controller) => {
103
103
  // Send a message programmatically
104
104
  controller.sendMessage({ text: 'Hello!' });
105
105
 
106
+ // Run a dialog node directly, with no text
107
+ controller.sendMessage({ trigger_node_id: 'YOUR_NODE_ID' });
108
+
106
109
  // Update the conversation context
107
110
  controller.updateContext({ custom_field: 'custom_value' });
108
111
 
@@ -191,6 +194,7 @@ Any other key passes through as a widget-config override for the loaded integrat
191
194
  | `closeWindow()` | Closes the chat window |
192
195
  | `closeConversation({ hide })` | Ends the conversation; the widget hides unless `hide: false` |
193
196
  | `sendMessage({ text })` | Sends a message to the agent |
197
+ | `sendMessage({ trigger_node_id })` | Runs a dialog node directly. Send it without text |
194
198
  | `showTeaserMessage(message?)` | Shows the teaser bubble |
195
199
  | `updateContext(ctx)` | Updates the conversation context |
196
200
  | `setCSSVariables(vars)` | Overrides widget CSS variables |
@@ -226,7 +230,8 @@ payload listed below.
226
230
 
227
231
  `onAnalyticsEvent` receives every interaction the widget tracks, identified by
228
232
  the `event` field: `session_start`, `session_end`, `message_sent` (the user sent
229
- a message — never carries the text), `launcher_clicked`,
233
+ a message — never carries the text), `launcher_clicked`, `teaser_clicked`
234
+ (the visitor tapped the teaser line, which opens the chat),
230
235
  `teaser_quick_reply_clicked` (a teaser reply the visitor tapped, carrying its
231
236
  configured `label`), `teaser_composer_submitted` (the visitor sent their own
232
237
  line from the teaser — carries no properties, because the text is theirs),
@@ -256,9 +261,9 @@ runs the end-of-chat survey when the account has one. On an empty chat, or
256
261
  while a prompt or webview owns the panel, it just hides the panel. Set
257
262
  `close_minimizes_window: true` and the button always minimizes and never ends.
258
263
 
259
- **Restart**, in the header title menu, does not ask. It ends the conversation
260
- and opens the next one in place, with the panel still open, and shows no
261
- end-of-chat survey.
264
+ **New conversation**, in the header title menu, does not ask. It ends the
265
+ conversation and opens the next one in place, with the panel still open, and
266
+ shows no end-of-chat survey.
262
267
 
263
268
  During a voice call the close button asks first, then ends the call and hides
264
269
  the panel. The conversation stays open, and the call's turns stay in the thread.
@@ -270,7 +275,7 @@ Which event to count:
270
275
  | `close_icon_clicked` | The visitor presses X, before they answer the confirmation | No |
271
276
  | `popover_end_chat_clicked` | They confirm **End conversation** | Yes |
272
277
  | `popover_end_chat_continue_clicked` | They pick **Minimize** instead | No |
273
- | `restart_conversation_clicked` | They pick **Restart** from the menu | Yes |
278
+ | `restart_conversation_clicked` | They pick **New conversation** from the menu | Yes |
274
279
 
275
280
  Add `popover_end_chat_clicked` and `restart_conversation_clicked` for the
276
281
  number of conversations visitors ended themselves. `close_icon_clicked` counts
@@ -512,9 +517,8 @@ teaser steps aside while the panel is up, and a visitor who opens it, reads
512
517
  whatever the bot opened with and closes it again has said nothing — so the
513
518
  teaser comes back, waiting out `show_after` once more. It goes away for good
514
519
  the moment the visitor sends anything of their own, a tapped chip included. On
515
- a sticky session that reload does not tell us anything until they open the
516
- chat, so a returning visitor sees the teaser again and loses it as soon as
517
- their earlier conversation loads.
520
+ a sticky session the reload waits for the earlier conversation to load before
521
+ the teaser shows, so a visitor who already talked never sees it flash.
518
522
 
519
523
  **Sections belong to their page.** A single-page-app navigation rebuilds the
520
524
  watch against the new page's sections, and clears the current section so
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * @moveo-ai/web-client v0.123.0-true.2
3
+ * @moveo-ai/web-client v0.123.0-true.20
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.123.0-true.2
3
+ * @moveo-ai/web-client v0.123.0-true.20
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.123.0-true.2
3
+ * @moveo-ai/web-client v0.123.0-true.20
4
4
  * Copyright (c) Moveo.ai (TM)
5
5
  *
6
6
  */