@moveo-ai/web-client 0.124.1 → 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.
- package/README.md +16 -1
- package/dist/752.min.js.LICENSE.txt +1 -1
- package/dist/882.min.js.LICENSE.txt +1 -1
- package/dist/929.min.js.LICENSE.txt +1 -1
- package/dist/audio-client.min.js +1 -1
- package/dist/audio-client.min.js.LICENSE.txt +1 -1
- package/dist/continue/index.html +1 -1
- package/dist/iframe.min.js +1 -1
- package/dist/iframe.min.js.LICENSE.txt +1 -1
- package/dist/index.html +1 -1
- package/dist/preview/index.html +2 -2
- package/dist/preview.css.min.js.LICENSE.txt +1 -1
- package/dist/public/locales/ar.json +22 -1
- package/dist/public/locales/bg.json +22 -1
- package/dist/public/locales/cs.json +22 -1
- package/dist/public/locales/da.json +22 -1
- package/dist/public/locales/de.json +22 -1
- package/dist/public/locales/el.json +22 -1
- package/dist/public/locales/en.json +22 -1
- package/dist/public/locales/es.json +22 -1
- package/dist/public/locales/fr.json +22 -1
- package/dist/public/locales/id.json +22 -1
- package/dist/public/locales/it.json +22 -1
- package/dist/public/locales/ja.json +22 -1
- package/dist/public/locales/me.json +22 -1
- package/dist/public/locales/nl-be.json +22 -1
- package/dist/public/locales/nl.json +22 -1
- package/dist/public/locales/pl.json +22 -1
- package/dist/public/locales/pt-br.json +22 -1
- package/dist/public/locales/pt.json +22 -1
- package/dist/public/locales/ro.json +22 -1
- package/dist/public/locales/ru.json +22 -1
- package/dist/public/locales/sq.json +22 -1
- package/dist/public/locales/sr.json +22 -1
- package/dist/public/locales/sv.json +22 -1
- package/dist/public/locales/tl.json +22 -1
- package/dist/public/locales/tr.json +22 -1
- package/dist/public/locales/zh.json +22 -1
- package/dist/telnyx-client.min.js +1 -1
- package/dist/telnyx-client.min.js.LICENSE.txt +1 -1
- package/dist/web-client.min.js +1 -1
- package/dist/web-client.min.js.LICENSE.txt +1 -1
- package/dist/webrtc-client.min.js +1 -1
- package/dist/webrtc-client.min.js.LICENSE.txt +1 -1
- package/package.json +2 -2
- package/web-client.d.ts +6 -0
- package/dist/63.min.js +0 -2
- 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),
|