@botpress/webchat 3.2.8 → 3.2.9
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 +8 -8
- package/dist/index.d.ts +34 -2
- package/dist/index.js +3223 -3177
- package/dist/index.umd.cjs +82 -82
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
|
|
2
|
-
> @botpress/webchat@3.2.
|
|
2
|
+
> @botpress/webchat@3.2.9 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 3184 modules transformed.
|
|
8
8
|
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 48.61 kB[22m[1m[22m[2m │ gzip: 8.67 kB[22m
|
|
13
|
+
[2mdist/[22m[36mindex.js [39m[1m[33m784.13 kB[39m[22m[2m │ gzip: 218.67 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 19195ms.
|
|
18
18
|
|
|
19
|
-
[2mdist/[22m[35mstyle.css [39m[1m[2m
|
|
20
|
-
[2mdist/[22m[36mindex.umd.cjs [39m[1m[
|
|
21
|
-
[32m✓ built in 25.
|
|
19
|
+
[2mdist/[22m[35mstyle.css [39m[1m[2m 48.61 kB[22m[1m[22m[2m │ gzip: 8.67 kB[22m
|
|
20
|
+
[2mdist/[22m[36mindex.umd.cjs [39m[1m[33m526.92 kB[39m[22m[2m │ gzip: 179.51 kB[22m
|
|
21
|
+
[32m✓ built in 25.31s[39m
|
package/dist/index.d.ts
CHANGED
|
@@ -406,6 +406,13 @@ declare type MessageListProps = {
|
|
|
406
406
|
showOutgoingMessageAvatar?: boolean;
|
|
407
407
|
};
|
|
408
408
|
|
|
409
|
+
export declare const MessagePreview: ForwardRefExoticComponent<Omit<ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement> & {
|
|
410
|
+
avatarUrl?: string;
|
|
411
|
+
botName?: string;
|
|
412
|
+
description?: string;
|
|
413
|
+
onClose?: () => void;
|
|
414
|
+
}, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
415
|
+
|
|
409
416
|
export declare const MISSING_API_URL = "The API url is required to initialize the webchat.";
|
|
410
417
|
|
|
411
418
|
export declare const MISSING_BOT_ID = "The Bot ID is required to initialize the webchat.";
|
|
@@ -488,7 +495,7 @@ export declare type Props = {
|
|
|
488
495
|
};
|
|
489
496
|
|
|
490
497
|
declare type Props_2 = {
|
|
491
|
-
|
|
498
|
+
adminSecret?: string;
|
|
492
499
|
user?: UserCredentials;
|
|
493
500
|
conversationId?: string;
|
|
494
501
|
clientId: string;
|
|
@@ -631,7 +638,7 @@ declare type UserProfile = Omit<User, 'id' | 'createdAt' | 'updatedAt'>;
|
|
|
631
638
|
|
|
632
639
|
declare type UserResponse = Awaited<ReturnType<Client['getUser']>>['user'];
|
|
633
640
|
|
|
634
|
-
export declare function useWebchat({ apiUrl, clientId, storageKey, storageLocation,
|
|
641
|
+
export declare function useWebchat({ apiUrl, clientId, storageKey, storageLocation, adminSecret, soundEnabled, ...props }: Props_2): UseWebchatReturn;
|
|
635
642
|
|
|
636
643
|
declare type UseWebchatReturn = {
|
|
637
644
|
clientState: 'connected';
|
|
@@ -725,6 +732,31 @@ export declare const webchatClasses: {
|
|
|
725
732
|
};
|
|
726
733
|
};
|
|
727
734
|
};
|
|
735
|
+
readonly messagePreview: {
|
|
736
|
+
readonly container: {
|
|
737
|
+
readonly className: "bpMessagePreviewContainer";
|
|
738
|
+
};
|
|
739
|
+
readonly message: {
|
|
740
|
+
readonly className: "bpMessagePreviewMessage";
|
|
741
|
+
};
|
|
742
|
+
readonly description: {
|
|
743
|
+
readonly className: "bpMessagePreviewDescription";
|
|
744
|
+
};
|
|
745
|
+
readonly closeButton: {
|
|
746
|
+
readonly className: "bpMessagePreviewCloseButton";
|
|
747
|
+
};
|
|
748
|
+
readonly avatar: {
|
|
749
|
+
readonly container: {
|
|
750
|
+
readonly className: "bpMessagePreviewAvatarContainer";
|
|
751
|
+
};
|
|
752
|
+
readonly image: {
|
|
753
|
+
readonly className: "bpMessagePreviewAvatarImage";
|
|
754
|
+
};
|
|
755
|
+
readonly fallback: {
|
|
756
|
+
readonly className: "bpMessagePreviewAvatarFallback";
|
|
757
|
+
};
|
|
758
|
+
};
|
|
759
|
+
};
|
|
728
760
|
readonly fab: {
|
|
729
761
|
readonly container: {
|
|
730
762
|
readonly className: "bpReset bpFabContainer";
|