@moveo-ai/web-client 0.123.0-true.2 → 0.123.0-true.21
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 +26 -8
- 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 +23 -1
- package/dist/public/locales/bg.json +23 -1
- package/dist/public/locales/cs.json +23 -1
- package/dist/public/locales/da.json +23 -1
- package/dist/public/locales/de.json +23 -1
- package/dist/public/locales/el.json +23 -1
- package/dist/public/locales/en.json +23 -1
- package/dist/public/locales/es.json +23 -1
- package/dist/public/locales/fr.json +23 -1
- package/dist/public/locales/id.json +23 -1
- package/dist/public/locales/it.json +23 -1
- package/dist/public/locales/ja.json +23 -1
- package/dist/public/locales/me.json +23 -1
- package/dist/public/locales/nl-be.json +23 -1
- package/dist/public/locales/nl.json +23 -1
- package/dist/public/locales/pl.json +23 -1
- package/dist/public/locales/pt-br.json +23 -1
- package/dist/public/locales/pt.json +23 -1
- package/dist/public/locales/ro.json +23 -1
- package/dist/public/locales/ru.json +23 -1
- package/dist/public/locales/sq.json +23 -1
- package/dist/public/locales/sr.json +23 -1
- package/dist/public/locales/sv.json +23 -1
- package/dist/public/locales/tl.json +23 -1
- package/dist/public/locales/tr.json +23 -1
- package/dist/public/locales/zh.json +23 -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 +5 -3
- package/web-client.d.ts +16 -2
- package/dist/63.min.js +0 -2
- package/dist/63.min.js.LICENSE.txt +0 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moveo-ai/web-client",
|
|
3
|
-
"version": "0.123.0-true.
|
|
3
|
+
"version": "0.123.0-true.21",
|
|
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",
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
"clover:staging": "node scripts/fiserv/e2e/clover-staging.mjs",
|
|
33
33
|
"clover:personas": "node scripts/fiserv/e2e/clover-personas.mjs",
|
|
34
34
|
"clover:report": "node scripts/fiserv/e2e/clover-report.mjs",
|
|
35
|
+
"clover:catalog": "node scripts/fiserv/clover-catalog.mjs",
|
|
35
36
|
"watch": "webpack --watch"
|
|
36
37
|
},
|
|
37
38
|
"files": [
|
|
@@ -102,7 +103,6 @@
|
|
|
102
103
|
"dompurify": "^3.4.13",
|
|
103
104
|
"dotenv": "^17.4.2",
|
|
104
105
|
"embla-carousel-react": "^8.6.0",
|
|
105
|
-
"emoji-picker-react": "^4.19.1",
|
|
106
106
|
"eslint": "^9.39.5",
|
|
107
107
|
"eslint-config-prettier": "^10.1.8",
|
|
108
108
|
"eslint-import-resolver-typescript": "^4.4.5",
|
|
@@ -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
|
@@ -16,6 +16,7 @@ export type AnalyticsEventName =
|
|
|
16
16
|
| 'shrink_icon_clicked'
|
|
17
17
|
| 'close_icon_clicked'
|
|
18
18
|
| 'close_opening_message_click'
|
|
19
|
+
| 'teaser_clicked'
|
|
19
20
|
| 'teaser_quick_reply_clicked'
|
|
20
21
|
| 'teaser_composer_submitted'
|
|
21
22
|
| 'section_not_found'
|
|
@@ -116,6 +117,11 @@ export type Context = {
|
|
|
116
117
|
[key: string]: unknown;
|
|
117
118
|
};
|
|
118
119
|
|
|
120
|
+
/** The visitor's words, or the id of a dialog node to run directly. Never both. */
|
|
121
|
+
export type SendMessageInput =
|
|
122
|
+
| { text: string; trigger_node_id?: never }
|
|
123
|
+
| { trigger_node_id: string; text?: never };
|
|
124
|
+
|
|
119
125
|
export interface WidgetController {
|
|
120
126
|
openWindow(): void;
|
|
121
127
|
closeWindow(): void;
|
|
@@ -124,8 +130,11 @@ export interface WidgetController {
|
|
|
124
130
|
* context update still queued is sent first.
|
|
125
131
|
*/
|
|
126
132
|
closeConversation(options: { hide?: boolean }): void;
|
|
127
|
-
/**
|
|
128
|
-
|
|
133
|
+
/**
|
|
134
|
+
* Sends `text` into the conversation as the visitor, or runs the dialog node
|
|
135
|
+
* `trigger_node_id` directly. Send one of the two, never both.
|
|
136
|
+
*/
|
|
137
|
+
sendMessage(message: SendMessageInput): void;
|
|
129
138
|
/** Shows the teaser bubble, with the configured message when none is given. */
|
|
130
139
|
showTeaserMessage(message?: string): void;
|
|
131
140
|
/**
|
|
@@ -138,6 +147,11 @@ export interface WidgetController {
|
|
|
138
147
|
setCSSVariables(variables: Record<string, string>): void;
|
|
139
148
|
/** Switches the widget language, e.g. `'es'`. */
|
|
140
149
|
setLocale(locale: string): void;
|
|
150
|
+
/**
|
|
151
|
+
* Passes the visitor's cookie consent for the visitor id. `false` removes the
|
|
152
|
+
* cookie and stops the widget from creating it.
|
|
153
|
+
*/
|
|
154
|
+
setVisitorConsent(granted: boolean): void;
|
|
141
155
|
destroy(): Promise<void>;
|
|
142
156
|
|
|
143
157
|
onSessionCreated(callback: (data: SessionEventData) => void): void;
|