@botpress/webchat 3.2.11 → 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.
@@ -1,21 +1,21 @@
1
1
 
2
- > @botpress/webchat@3.2.11 build /home/runner/work/genisys/genisys/packages/webchat-components
2
+ > @botpress/webchat@3.2.12 build /home/runner/work/genisys/genisys/packages/webchat-components
3
3
  > vite build
4
4
 
5
5
  vite v5.4.8 building for production...
6
6
  transforming...
7
- ✓ 3184 modules transformed.
7
+ ✓ 3185 modules transformed.
8
8
  rendering chunks...
9
9
 
10
10
  [vite:dts] Start generate declaration files...
11
11
  computing gzip size...
12
12
  dist/style.css  48.69 kB │ gzip: 8.70 kB
13
- dist/index.js 784.24 kB │ gzip: 218.68 kB
13
+ dist/index.js 785.19 kB │ gzip: 218.98 kB
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 21175ms.
17
+ [vite:dts] Declaration files built in 20155ms.
18
18
 
19
19
  dist/style.css  48.69 kB │ gzip: 8.70 kB
20
- dist/index.umd.cjs 527.01 kB │ gzip: 179.53 kB
21
- ✓ built in 27.88s
20
+ dist/index.umd.cjs 527.78 kB │ gzip: 179.81 kB
21
+ ✓ built in 26.69s
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>) => Promise<void>;
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 WebchatClientStore = {
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();