@botpress/webchat 3.2.10 → 3.2.12
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/.turbo/turbo-build.log +6 -6
- package/dist/index.d.ts +12 -4
- package/dist/index.js +4763 -4743
- package/dist/index.umd.cjs +88 -88
- package/package.json +5 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
|
|
2
|
-
> @botpress/webchat@3.2.
|
|
2
|
+
> @botpress/webchat@3.2.12 build /home/runner/work/genisys/genisys/packages/webchat-components
|
|
3
3
|
> vite build
|
|
4
4
|
|
|
5
5
|
[36mvite v5.4.8 [32mbuilding for production...[36m[39m
|
|
6
6
|
transforming...
|
|
7
|
-
[32m✓[39m
|
|
7
|
+
[32m✓[39m 3185 modules transformed.
|
|
8
8
|
rendering chunks...
|
|
9
9
|
|
|
10
10
|
[vite:dts] Start generate declaration files...
|
|
11
11
|
computing gzip size...
|
|
12
12
|
[2mdist/[22m[35mstyle.css [39m[1m[2m 48.69 kB[22m[1m[22m[2m │ gzip: 8.70 kB[22m
|
|
13
|
-
[2mdist/[22m[36mindex.js [39m[1m[
|
|
13
|
+
[2mdist/[22m[36mindex.js [39m[1m[33m785.19 kB[39m[22m[2m │ gzip: 218.98 kB[22m
|
|
14
14
|
[vite:dts] Start rollup declaration files...
|
|
15
15
|
Analysis will use the bundled TypeScript version 5.4.2
|
|
16
16
|
*** The target project appears to use TypeScript 5.6.2 which is newer than the bundled compiler engine; consider upgrading API Extractor.
|
|
17
|
-
[vite:dts] Declaration files built in
|
|
17
|
+
[vite:dts] Declaration files built in 20155ms.
|
|
18
18
|
|
|
19
19
|
[2mdist/[22m[35mstyle.css [39m[1m[2m 48.69 kB[22m[1m[22m[2m │ gzip: 8.70 kB[22m
|
|
20
|
-
[2mdist/[22m[36mindex.umd.cjs [39m[1m[33m527.
|
|
21
|
-
[32m✓ built in
|
|
20
|
+
[2mdist/[22m[36mindex.umd.cjs [39m[1m[33m527.78 kB[39m[22m[2m │ gzip: 179.81 kB[22m
|
|
21
|
+
[32m✓ built in 26.69s[39m
|
package/dist/index.d.ts
CHANGED
|
@@ -580,7 +580,10 @@ export declare type RowOf<T extends GenericBlock> = Omit<RowBlock, 'blocks'> & {
|
|
|
580
580
|
|
|
581
581
|
declare type ScopedClient = {
|
|
582
582
|
sendMessage: (payload: IntegrationMessage['payload']) => Promise<void>;
|
|
583
|
-
sendEvent: (event: Record<string, any
|
|
583
|
+
sendEvent: (event: Record<string, any>, options?: {
|
|
584
|
+
bindConversation?: boolean;
|
|
585
|
+
bindUser?: boolean;
|
|
586
|
+
}) => Promise<void>;
|
|
584
587
|
uploadFile: (file: File) => Promise<{
|
|
585
588
|
fileUrl: string;
|
|
586
589
|
name: string;
|
|
@@ -1203,14 +1206,19 @@ export declare const webchatClasses: {
|
|
|
1203
1206
|
};
|
|
1204
1207
|
};
|
|
1205
1208
|
|
|
1206
|
-
declare type
|
|
1207
|
-
user?: UserCredentials;
|
|
1208
|
-
conversationId?: string;
|
|
1209
|
+
declare type WebchatClientActions = {
|
|
1209
1210
|
setUser: (userId?: UserCredentials) => void;
|
|
1210
1211
|
setConversationId: (conversationId: string) => void;
|
|
1211
1212
|
clearAll: () => void;
|
|
1212
1213
|
};
|
|
1213
1214
|
|
|
1215
|
+
export declare type WebchatClientState = {
|
|
1216
|
+
user?: UserCredentials;
|
|
1217
|
+
conversationId?: string;
|
|
1218
|
+
};
|
|
1219
|
+
|
|
1220
|
+
declare type WebchatClientStore = WebchatClientState & WebchatClientActions;
|
|
1221
|
+
|
|
1214
1222
|
declare class WebchatClientStores {
|
|
1215
1223
|
private static _instances;
|
|
1216
1224
|
private constructor();
|