@botpress/webchat 3.2.8 → 3.2.10
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 -4
- package/dist/index.js +4783 -4732
- package/dist/index.umd.cjs +87 -87
- package/dist/style.css +1 -1
- package/package.json +5 -1
- package/vitest.config.ts +6 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
|
|
2
|
-
> @botpress/webchat@3.2.
|
|
2
|
+
> @botpress/webchat@3.2.10 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.69 kB[22m[1m[22m[2m │ gzip: 8.70 kB[22m
|
|
13
|
+
[2mdist/[22m[36mindex.js [39m[1m[33m784.43 kB[39m[22m[2m │ gzip: 218.75 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 21205ms.
|
|
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 48.69 kB[22m[1m[22m[2m │ gzip: 8.70 kB[22m
|
|
20
|
+
[2mdist/[22m[36mindex.umd.cjs [39m[1m[33m527.15 kB[39m[22m[2m │ gzip: 179.58 kB[22m
|
|
21
|
+
[32m✓ built in 27.79s[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,16 +495,14 @@ 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;
|
|
495
502
|
botId?: string;
|
|
496
503
|
apiUrl?: string;
|
|
497
|
-
sseTimeout?: number;
|
|
498
504
|
storageKey?: string;
|
|
499
505
|
storageLocation?: StorageLocation;
|
|
500
|
-
playSound?: () => void;
|
|
501
506
|
soundEnabled?: boolean;
|
|
502
507
|
};
|
|
503
508
|
|
|
@@ -631,7 +636,7 @@ declare type UserProfile = Omit<User, 'id' | 'createdAt' | 'updatedAt'>;
|
|
|
631
636
|
|
|
632
637
|
declare type UserResponse = Awaited<ReturnType<Client['getUser']>>['user'];
|
|
633
638
|
|
|
634
|
-
export declare function useWebchat({ apiUrl, clientId, storageKey, storageLocation,
|
|
639
|
+
export declare function useWebchat({ apiUrl, clientId, storageKey, storageLocation, adminSecret, soundEnabled, ...props }: Props_2): UseWebchatReturn;
|
|
635
640
|
|
|
636
641
|
declare type UseWebchatReturn = {
|
|
637
642
|
clientState: 'connected';
|
|
@@ -725,6 +730,31 @@ export declare const webchatClasses: {
|
|
|
725
730
|
};
|
|
726
731
|
};
|
|
727
732
|
};
|
|
733
|
+
readonly messagePreview: {
|
|
734
|
+
readonly container: {
|
|
735
|
+
readonly className: "bpMessagePreviewContainer";
|
|
736
|
+
};
|
|
737
|
+
readonly message: {
|
|
738
|
+
readonly className: "bpMessagePreviewMessage";
|
|
739
|
+
};
|
|
740
|
+
readonly description: {
|
|
741
|
+
readonly className: "bpMessagePreviewDescription";
|
|
742
|
+
};
|
|
743
|
+
readonly closeButton: {
|
|
744
|
+
readonly className: "bpMessagePreviewCloseButton";
|
|
745
|
+
};
|
|
746
|
+
readonly avatar: {
|
|
747
|
+
readonly container: {
|
|
748
|
+
readonly className: "bpMessagePreviewAvatarContainer";
|
|
749
|
+
};
|
|
750
|
+
readonly image: {
|
|
751
|
+
readonly className: "bpMessagePreviewAvatarImage";
|
|
752
|
+
};
|
|
753
|
+
readonly fallback: {
|
|
754
|
+
readonly className: "bpMessagePreviewAvatarFallback";
|
|
755
|
+
};
|
|
756
|
+
};
|
|
757
|
+
};
|
|
728
758
|
readonly fab: {
|
|
729
759
|
readonly container: {
|
|
730
760
|
readonly className: "bpReset bpFabContainer";
|