@botpress/webchat 4.0.3 → 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.
- package/.turbo/turbo-build.log +7 -7
- package/dist/index.d.ts +9 -2
- package/dist/index.js +4911 -4864
- package/dist/index.umd.cjs +93 -87
- package/dist/style.css +1 -1
- package/package.json +3 -3
- package/readme.md +4 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @botpress/webchat@4.0
|
|
2
|
+
> @botpress/webchat@4.1.0 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
|
|
@@ -9,13 +9,13 @@ rendering chunks...
|
|
|
9
9
|
|
|
10
10
|
[vite:dts] Start generate declaration files...
|
|
11
11
|
computing gzip size...
|
|
12
|
-
[2mdist/[22m[35mstyle.css [39m[1m[2m
|
|
13
|
-
[2mdist/[22m[36mindex.js [39m[1m[
|
|
12
|
+
[2mdist/[22m[35mstyle.css [39m[1m[2m 54.01 kB[22m[1m[22m[2m │ gzip: 9.07 kB[22m
|
|
13
|
+
[2mdist/[22m[36mindex.js [39m[1m[33m675.87 kB[39m[22m[2m │ gzip: 182.59 kB[22m
|
|
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
|
|
17
|
+
[vite:dts] Declaration files built in 20130ms.
|
|
18
18
|
|
|
19
|
-
[2mdist/[22m[35mstyle.css [39m[1m[2m
|
|
20
|
-
[2mdist/[22m[36mindex.umd.cjs [39m[1m[
|
|
21
|
-
[32m✓ built in
|
|
19
|
+
[2mdist/[22m[35mstyle.css [39m[1m[2m 54.01 kB[22m[1m[22m[2m │ gzip: 9.07 kB[22m
|
|
20
|
+
[2mdist/[22m[36mindex.umd.cjs [39m[1m[2m449.08 kB[22m[1m[22m[2m │ gzip: 147.52 kB[22m
|
|
21
|
+
[32m✓ built in 25.01s[39m
|
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:
|
|
1267
|
+
participantRemoved: string;
|
|
1261
1268
|
};
|
|
1262
1269
|
|
|
1263
1270
|
declare type WebchatStore = {
|