@botpress/webchat 3.2.6 → 3.2.7
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 +5 -5
- package/dist/index.d.ts +22 -22
- package/dist/index.js +1127 -1114
- package/dist/index.umd.cjs +64 -64
- package/package.json +3 -3
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @botpress/webchat@3.2.
|
|
2
|
+
> @botpress/webchat@3.2.7 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
|
|
@@ -10,12 +10,12 @@ rendering chunks...
|
|
|
10
10
|
[vite:dts] Start generate declaration files...
|
|
11
11
|
computing gzip size...
|
|
12
12
|
[2mdist/[22m[35mstyle.css [39m[1m[2m 47.46 kB[22m[1m[22m[2m │ gzip: 8.72 kB[22m
|
|
13
|
-
[2mdist/[22m[36mindex.js [39m[1m[33m783.
|
|
13
|
+
[2mdist/[22m[36mindex.js [39m[1m[33m783.77 kB[39m[22m[2m │ gzip: 218.73 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 20312ms.
|
|
18
18
|
|
|
19
19
|
[2mdist/[22m[35mstyle.css [39m[1m[2m 47.46 kB[22m[1m[22m[2m │ gzip: 8.72 kB[22m
|
|
20
|
-
[2mdist/[22m[36mindex.umd.cjs [39m[1m[33m526.
|
|
21
|
-
[32m✓ built in
|
|
20
|
+
[2mdist/[22m[36mindex.umd.cjs [39m[1m[33m526.79 kB[39m[22m[2m │ gzip: 179.57 kB[22m
|
|
21
|
+
[32m✓ built in 26.59s[39m
|
package/dist/index.d.ts
CHANGED
|
@@ -311,6 +311,20 @@ export declare type ImageBlock = {
|
|
|
311
311
|
url: string;
|
|
312
312
|
};
|
|
313
313
|
|
|
314
|
+
export declare type InputModalProps<T> = {
|
|
315
|
+
title?: string;
|
|
316
|
+
description?: string;
|
|
317
|
+
confirmButtonText: string;
|
|
318
|
+
cancelButtonText: string;
|
|
319
|
+
onConfirm?: () => void;
|
|
320
|
+
onCancel?: () => void;
|
|
321
|
+
initialValue?: T;
|
|
322
|
+
Content?: ({ setValue }: {
|
|
323
|
+
value: T | undefined;
|
|
324
|
+
setValue: (value: T) => void;
|
|
325
|
+
}) => ReactNode;
|
|
326
|
+
};
|
|
327
|
+
|
|
314
328
|
export declare type IntegrationMessage = Message_2;
|
|
315
329
|
|
|
316
330
|
export declare type IntegrationMessagePayloadByType = ByType<IntegrationMessage['payload']>;
|
|
@@ -412,34 +426,20 @@ export declare namespace Modal {
|
|
|
412
426
|
var Content: typeof ModalContent;
|
|
413
427
|
}
|
|
414
428
|
|
|
415
|
-
declare function ModalContent({
|
|
416
|
-
title
|
|
417
|
-
description
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
429
|
+
declare function ModalContent({ title, description, onConfirm, onCancel, confirmButtonText, cancelButtonText, children, }: {
|
|
430
|
+
title?: string;
|
|
431
|
+
description?: string;
|
|
432
|
+
onConfirm?: () => void;
|
|
433
|
+
onCancel?: () => void;
|
|
434
|
+
confirmButtonText?: string;
|
|
435
|
+
cancelButtonText?: string;
|
|
422
436
|
children: ReactNode;
|
|
423
437
|
}): JSX_3.Element;
|
|
424
438
|
|
|
425
439
|
export declare const ModalContext: Context<ModalContextValue>;
|
|
426
440
|
|
|
427
441
|
declare type ModalContextValue = {
|
|
428
|
-
|
|
429
|
-
showModal?: (props: {
|
|
430
|
-
title: string;
|
|
431
|
-
description: string;
|
|
432
|
-
confirmButton: string;
|
|
433
|
-
onConfirm: () => void;
|
|
434
|
-
cancelButton: string;
|
|
435
|
-
content?: ReactNode;
|
|
436
|
-
}) => void;
|
|
437
|
-
hideModal?: () => void;
|
|
438
|
-
};
|
|
439
|
-
|
|
440
|
-
export declare type ModalProps = {
|
|
441
|
-
title: string | null;
|
|
442
|
-
content: ReactNode | null;
|
|
442
|
+
showInputModal?: <T>(props: InputModalProps<T>) => Promise<T | undefined>;
|
|
443
443
|
};
|
|
444
444
|
|
|
445
445
|
export declare const ModalProvider: ({ children }: {
|