@moveo-ai/web-client 0.125.0 → 0.126.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 (48) hide show
  1. package/README.md +16 -1
  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 +1 -1
  14. package/dist/public/locales/bg.json +1 -1
  15. package/dist/public/locales/cs.json +1 -1
  16. package/dist/public/locales/da.json +1 -1
  17. package/dist/public/locales/de.json +1 -1
  18. package/dist/public/locales/el.json +1 -1
  19. package/dist/public/locales/en.json +1 -1
  20. package/dist/public/locales/es.json +1 -1
  21. package/dist/public/locales/fr.json +1 -1
  22. package/dist/public/locales/id.json +1 -1
  23. package/dist/public/locales/it.json +1 -1
  24. package/dist/public/locales/ja.json +1 -1
  25. package/dist/public/locales/me.json +1 -1
  26. package/dist/public/locales/nl-be.json +1 -1
  27. package/dist/public/locales/nl.json +1 -1
  28. package/dist/public/locales/pl.json +1 -1
  29. package/dist/public/locales/pt-br.json +1 -1
  30. package/dist/public/locales/pt.json +1 -1
  31. package/dist/public/locales/ro.json +1 -1
  32. package/dist/public/locales/ru.json +1 -1
  33. package/dist/public/locales/sq.json +1 -1
  34. package/dist/public/locales/sr.json +1 -1
  35. package/dist/public/locales/sv.json +1 -1
  36. package/dist/public/locales/tl.json +1 -1
  37. package/dist/public/locales/tr.json +1 -1
  38. package/dist/public/locales/zh.json +1 -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 +2 -2
  46. package/web-client.d.ts +6 -0
  47. package/dist/63.min.js +0 -2
  48. package/dist/63.min.js.LICENSE.txt +0 -6
package/README.md CHANGED
@@ -200,6 +200,20 @@ Any other key passes through as a widget-config override for the loaded integrat
200
200
  | `setCSSVariables(vars)` | Overrides widget CSS variables |
201
201
  | `setLocale(locale)` | Switches the widget language |
202
202
  | `destroy()` | Removes the widget from the page |
203
+ | `setVisitorConsent(granted)` | Passes the visitor's cookie consent for the visitor id |
204
+
205
+ The widget reads or writes the `moveo_visitor_id` cookie only after the visitor
206
+ acts in the widget: opens it, taps a teaser or a reply, or types. A panel that
207
+ opens by itself does not count. The cookie is set on your registrable domain,
208
+ so `www` and other subdomains share one id. If the page runs
209
+ OneTrust, the widget follows the visitor's choice there: the category your
210
+ OneTrust lists the cookie in, or Performance (`C0002`) if it is not listed. If
211
+ the page runs Cookiebot, the widget follows the Statistics category.
212
+ `setVisitorConsent(granted)` wins over all of them. After `setVisitorConsent(true)`,
213
+ the widget writes the cookie at once, without a visitor action. After `setVisitorConsent(false)`,
214
+ the widget never reads or writes the cookie, and removes one that is already
215
+ there. In the EU, the cookie needs the visitor's consent. If your site uses
216
+ another consent tool, call `setVisitorConsent` from it.
203
217
 
204
218
  `updateContext` calls made inside a 300 ms window merge into one update, so a
205
219
  burst of calls costs one round trip and the first call still ships at once.
@@ -230,7 +244,8 @@ payload listed below.
230
244
 
231
245
  `onAnalyticsEvent` receives every interaction the widget tracks, identified by
232
246
  the `event` field: `session_start`, `session_end`, `message_sent` (the user sent
233
- a message — never carries the text), `launcher_clicked`,
247
+ a message — never carries the text), `launcher_clicked`, `teaser_clicked`
248
+ (the visitor tapped the teaser line, which opens the chat),
234
249
  `teaser_quick_reply_clicked` (a teaser reply the visitor tapped, carrying its
235
250
  configured `label`), `teaser_composer_submitted` (the visitor sent their own
236
251
  line from the teaser — carries no properties, because the text is theirs),
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * @moveo-ai/web-client v0.125.0
3
+ * @moveo-ai/web-client v0.126.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.125.0
3
+ * @moveo-ai/web-client v0.126.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.125.0
3
+ * @moveo-ai/web-client v0.126.0
4
4
  * Copyright (c) Moveo.ai (TM)
5
5
  *
6
6
  */