@moveo-ai/web-client 0.123.1 → 0.124.1

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 (47) hide show
  1. package/README.md +10 -7
  2. package/dist/63.min.js.LICENSE.txt +1 -1
  3. package/dist/752.min.js.LICENSE.txt +1 -1
  4. package/dist/882.min.js.LICENSE.txt +1 -1
  5. package/dist/929.min.js.LICENSE.txt +1 -1
  6. package/dist/audio-client.min.js +1 -1
  7. package/dist/audio-client.min.js.LICENSE.txt +1 -1
  8. package/dist/continue/index.html +1 -1
  9. package/dist/iframe.min.js +1 -1
  10. package/dist/iframe.min.js.LICENSE.txt +1 -1
  11. package/dist/index.html +1 -1
  12. package/dist/preview/index.html +2 -2
  13. package/dist/preview.css.min.js.LICENSE.txt +1 -1
  14. package/dist/public/locales/ar.json +1 -0
  15. package/dist/public/locales/bg.json +1 -0
  16. package/dist/public/locales/cs.json +1 -0
  17. package/dist/public/locales/da.json +1 -0
  18. package/dist/public/locales/de.json +1 -0
  19. package/dist/public/locales/el.json +1 -0
  20. package/dist/public/locales/en.json +1 -0
  21. package/dist/public/locales/es.json +1 -0
  22. package/dist/public/locales/fr.json +1 -0
  23. package/dist/public/locales/id.json +1 -0
  24. package/dist/public/locales/it.json +1 -0
  25. package/dist/public/locales/ja.json +1 -0
  26. package/dist/public/locales/me.json +1 -0
  27. package/dist/public/locales/nl-be.json +1 -0
  28. package/dist/public/locales/nl.json +1 -0
  29. package/dist/public/locales/pl.json +1 -0
  30. package/dist/public/locales/pt-br.json +1 -0
  31. package/dist/public/locales/pt.json +1 -0
  32. package/dist/public/locales/ro.json +1 -0
  33. package/dist/public/locales/ru.json +1 -0
  34. package/dist/public/locales/sq.json +1 -0
  35. package/dist/public/locales/sr.json +1 -0
  36. package/dist/public/locales/sv.json +1 -0
  37. package/dist/public/locales/tl.json +1 -0
  38. package/dist/public/locales/tr.json +1 -0
  39. package/dist/public/locales/zh.json +1 -0
  40. package/dist/telnyx-client.min.js +1 -1
  41. package/dist/telnyx-client.min.js.LICENSE.txt +1 -1
  42. package/dist/web-client.min.js +1 -1
  43. package/dist/web-client.min.js.LICENSE.txt +1 -1
  44. package/dist/webrtc-client.min.js +1 -1
  45. package/dist/webrtc-client.min.js.LICENSE.txt +1 -1
  46. package/package.json +4 -2
  47. package/web-client.d.ts +10 -2
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 |
@@ -256,9 +260,9 @@ runs the end-of-chat survey when the account has one. On an empty chat, or
256
260
  while a prompt or webview owns the panel, it just hides the panel. Set
257
261
  `close_minimizes_window: true` and the button always minimizes and never ends.
258
262
 
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.
263
+ **New conversation**, in the header title menu, does not ask. It ends the
264
+ conversation and opens the next one in place, with the panel still open, and
265
+ shows no end-of-chat survey.
262
266
 
263
267
  During a voice call the close button asks first, then ends the call and hides
264
268
  the panel. The conversation stays open, and the call's turns stay in the thread.
@@ -270,7 +274,7 @@ Which event to count:
270
274
  | `close_icon_clicked` | The visitor presses X, before they answer the confirmation | No |
271
275
  | `popover_end_chat_clicked` | They confirm **End conversation** | Yes |
272
276
  | `popover_end_chat_continue_clicked` | They pick **Minimize** instead | No |
273
- | `restart_conversation_clicked` | They pick **Restart** from the menu | Yes |
277
+ | `restart_conversation_clicked` | They pick **New conversation** from the menu | Yes |
274
278
 
275
279
  Add `popover_end_chat_clicked` and `restart_conversation_clicked` for the
276
280
  number of conversations visitors ended themselves. `close_icon_clicked` counts
@@ -512,9 +516,8 @@ teaser steps aside while the panel is up, and a visitor who opens it, reads
512
516
  whatever the bot opened with and closes it again has said nothing — so the
513
517
  teaser comes back, waiting out `show_after` once more. It goes away for good
514
518
  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.
519
+ a sticky session the reload waits for the earlier conversation to load before
520
+ the teaser shows, so a visitor who already talked never sees it flash.
518
521
 
519
522
  **Sections belong to their page.** A single-page-app navigation rebuilds the
520
523
  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.1
3
+ * @moveo-ai/web-client v0.124.1
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.1
3
+ * @moveo-ai/web-client v0.124.1
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.1
3
+ * @moveo-ai/web-client v0.124.1
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.1
3
+ * @moveo-ai/web-client v0.124.1
4
4
  * Copyright (c) Moveo.ai (TM)
5
5
  *
6
6
  */