@botpress/webchat 4.0.4 → 4.1.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.
@@ -1,21 +1,21 @@
1
1
 
2
- > @botpress/webchat@4.0.4 build /home/runner/work/genisys/genisys/packages/webchat-components
2
+ > @botpress/webchat@4.1.0 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
- ✓ 2345 modules transformed.
7
+ ✓ 2346 modules transformed.
8
8
  rendering chunks...
9
9
 
10
10
  [vite:dts] Start generate declaration files...
11
11
  computing gzip size...
12
- dist/style.css  53.33 kB │ gzip: 8.97 kB
13
- dist/index.js 674.72 kB │ gzip: 182.37 kB
12
+ dist/style.css  54.01 kB │ gzip: 9.07 kB
13
+ dist/index.js 675.87 kB │ gzip: 182.59 kB
14
14
  [vite:dts] Start rollup declaration files...
15
15
  Analysis will use the bundled TypeScript version 5.8.2
16
16
  *** The target project appears to use TypeScript 5.9.3 which is newer than the bundled compiler engine; consider upgrading API Extractor.
17
- [vite:dts] Declaration files built in 20518ms.
17
+ [vite:dts] Declaration files built in 20130ms.
18
18
 
19
- dist/style.css  53.33 kB │ gzip: 8.97 kB
20
- dist/index.umd.cjs 448.31 kB │ gzip: 147.33 kB
21
- ✓ built in 25.35s
19
+ dist/style.css  54.01 kB │ gzip: 9.07 kB
20
+ dist/index.umd.cjs 449.08 kB │ gzip: 147.52 kB
21
+ ✓ built in 25.01s
package/dist/index.d.ts CHANGED
@@ -133,7 +133,7 @@ export declare type CarouselBlock = {
133
133
  blocks: GenericBlock[];
134
134
  };
135
135
 
136
- export declare const Chat: ({ connected, configuration, isTyping, messages, user, isLoading, renderers, isReadOnly, disableComposer, allowFileUpload, error, participants, closeWindow, sendMessage, uploadFile, addMessageFeedback, restartConversation, clientId, storageKey, soundOn, toggleSound, ...props }: Props) => JSX_3.Element;
136
+ export declare const Chat: ({ connected, configuration, isTyping, messages, user, isLoading, renderers, isReadOnly, disableComposer, allowFileUpload, error, participants, closeWindow, sendMessage, uploadFile, addMessageFeedback, restartConversation, clientId, storageKey, soundOn, toggleSound, disableSendButton, ...props }: Props) => JSX_3.Element;
137
137
 
138
138
  declare type ChatSoundStore = {
139
139
  soundOn: boolean;
@@ -490,6 +490,7 @@ export declare type Props = {
490
490
  error?: WebchatError;
491
491
  soundOn?: boolean;
492
492
  toggleSound?: () => void;
493
+ disableSendButton?: boolean;
493
494
  storageKey?: string;
494
495
  };
495
496
 
@@ -510,6 +511,7 @@ declare type Props_3 = ComponentProps<'div'> & {
510
511
  disableComposer?: boolean;
511
512
  isReadOnly?: boolean;
512
513
  allowFileUpload?: boolean;
514
+ disableSendButton?: boolean;
513
515
  connected?: boolean;
514
516
  sendMessage?: (payload: IntegrationMessage['payload']) => void;
515
517
  uploadFile?: (file: File) => Promise<{
@@ -654,6 +656,7 @@ declare type UseWebchatReturn = {
654
656
  participants: User[];
655
657
  soundOn: boolean;
656
658
  toggleSound: () => void;
659
+ disableSendButton: boolean;
657
660
  error?: WebchatError;
658
661
  } | {
659
662
  clientState: 'connecting' | 'error' | 'disconnected';
@@ -667,6 +670,7 @@ declare type UseWebchatReturn = {
667
670
  participants: User[];
668
671
  soundOn: boolean;
669
672
  toggleSound: () => void;
673
+ disableSendButton: boolean;
670
674
  error?: WebchatError;
671
675
  };
672
676
 
@@ -864,6 +868,9 @@ export declare const webchatClasses: {
864
868
  readonly input: {
865
869
  readonly className: "bpComposerInput";
866
870
  };
871
+ readonly inputLoader: {
872
+ readonly className: "bpComposerInputLoader";
873
+ };
867
874
  readonly sendbutton: {
868
875
  readonly className: "bpComposerSendButton";
869
876
  };
@@ -1257,7 +1264,7 @@ export declare type WebchatEvents = {
1257
1264
  timeout: number;
1258
1265
  };
1259
1266
  participantAdded: User;
1260
- participantRemoved: User;
1267
+ participantRemoved: string;
1261
1268
  };
1262
1269
 
1263
1270
  declare type WebchatStore = {