@moveo-ai/web-client 0.123.1 → 0.124.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.
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
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * @moveo-ai/web-client v0.123.1
3
+ * @moveo-ai/web-client v0.124.0
4
4
  * Copyright (c) Moveo.ai (TM)
5
5
  *
6
6
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moveo-ai/web-client",
3
- "version": "0.123.1",
3
+ "version": "0.124.0",
4
4
  "description": "Client side library to load the moveo chat widget and connect it with your agent",
5
5
  "main": "dist/web-client.min.js",
6
6
  "types": "web-client.d.ts",
@@ -128,7 +128,6 @@
128
128
  "lodash-es": "^4.18.1",
129
129
  "lucide-react": "^1.28.0",
130
130
  "marked": "^18.0.9",
131
- "mkcert": "^3.2.0",
132
131
  "nanoid": "^6.0.1",
133
132
  "postcss": "^8.5.25",
134
133
  "postcss-loader": "^8.2.1",
@@ -243,6 +242,9 @@
243
242
  },
244
243
  "storybook-react-i18next": {
245
244
  "i18next-http-backend": "$i18next-http-backend"
245
+ },
246
+ "@storybook/builder-webpack5": {
247
+ "webpack-dev-middleware": "^7.4.6"
246
248
  }
247
249
  }
248
250
  }
package/web-client.d.ts CHANGED
@@ -116,6 +116,11 @@ export type Context = {
116
116
  [key: string]: unknown;
117
117
  };
118
118
 
119
+ /** The visitor's words, or the id of a dialog node to run directly. Never both. */
120
+ export type SendMessageInput =
121
+ | { text: string; trigger_node_id?: never }
122
+ | { trigger_node_id: string; text?: never };
123
+
119
124
  export interface WidgetController {
120
125
  openWindow(): void;
121
126
  closeWindow(): void;
@@ -124,8 +129,11 @@ export interface WidgetController {
124
129
  * context update still queued is sent first.
125
130
  */
126
131
  closeConversation(options: { hide?: boolean }): void;
127
- /** Sends `text` into the conversation as the visitor. */
128
- sendMessage(message: { text: string }): void;
132
+ /**
133
+ * Sends `text` into the conversation as the visitor, or runs the dialog node
134
+ * `trigger_node_id` directly. Send one of the two, never both.
135
+ */
136
+ sendMessage(message: SendMessageInput): void;
129
137
  /** Shows the teaser bubble, with the configured message when none is given. */
130
138
  showTeaserMessage(message?: string): void;
131
139
  /**