@botpress/webchat 2.2.2 → 2.2.3
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/components/Block.d.ts +3 -3
- package/dist/components/renderers/Audio/Audio.d.ts +1 -2
- package/dist/components/renderers/Bubble/Bubble.d.ts +2 -2
- package/dist/components/renderers/Button/Button.d.ts +3 -3
- package/dist/components/renderers/Carousel/Carousel.d.ts +1 -2
- package/dist/components/renderers/Column/Column.d.ts +2 -2
- package/dist/components/renderers/Dropdown/Dropdown.d.ts +3 -3
- package/dist/components/renderers/File/File.d.ts +1 -2
- package/dist/components/renderers/Image/Image.d.ts +1 -2
- package/dist/components/renderers/Location/Location.d.ts +1 -2
- package/dist/components/renderers/Row/Row.d.ts +2 -2
- package/dist/components/renderers/Text/Text.d.ts +3 -3
- package/dist/components/renderers/Video/Video.d.ts +1 -2
- package/dist/contexts/WebchatContext.d.ts +2 -2
- package/dist/index.js +5188 -5132
- package/dist/index.umd.cjs +65 -65
- package/dist/schemas/configuration.d.ts +6 -6
- package/dist/schemas/init.d.ts +148 -148
- package/dist/style.css +1 -1
- package/dist/styles/classes.d.ts +24 -0
- package/dist/types/block-type.d.ts +0 -3
- package/package.json +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @botpress/webchat@2.2.
|
|
2
|
+
> @botpress/webchat@2.2.3 build /home/runner/work/echo/echo/packages/webchat-frontend
|
|
3
3
|
> vite build
|
|
4
4
|
|
|
5
5
|
[36mvite v4.4.11 [32mbuilding for production...[36m[39m
|
|
@@ -12,15 +12,15 @@ transforming...
|
|
|
12
12
|
[1m[33m[plugin:vite:resolve][39m[22m [33mModule "node:http" has been externalized for browser compatibility, imported by "/home/runner/work/echo/echo/node_modules/.pnpm/@botpress+sdk@0.10.13_react@18.2.0/node_modules/@botpress/sdk/dist/index.js". See http://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.[39m
|
|
13
13
|
[1m[33m[plugin:vite:resolve][39m[22m [33mModule "util" has been externalized for browser compatibility, imported by "/home/runner/work/echo/echo/node_modules/.pnpm/@botpress+sdk@0.10.13_react@18.2.0/node_modules/@botpress/sdk/dist/index.js". See http://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.[39m
|
|
14
14
|
[1m[33m[plugin:vite:resolve][39m[22m [33mModule "crypto" has been externalized for browser compatibility, imported by "/home/runner/work/echo/echo/packages/webchat-frontend/src/gen/client/errors.ts". See http://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.[39m
|
|
15
|
-
[32m✓[39m
|
|
15
|
+
[32m✓[39m 2761 modules transformed.
|
|
16
16
|
rendering chunks...
|
|
17
17
|
[32m
|
|
18
18
|
[36m[vite:dts][32m Start generate declaration files...[39m
|
|
19
19
|
computing gzip size...
|
|
20
|
-
[
|
|
21
|
-
[2mdist/[22m[36mindex.js [39m[1m[33m1,406.59 kB[39m[22m[2m │ gzip: 354.04 kB[22m
|
|
22
|
-
[32m[36m[vite:dts][32m Declaration files built in 15384ms.
|
|
20
|
+
[32m[36m[vite:dts][32m Declaration files built in 15521ms.
|
|
23
21
|
[39m
|
|
24
|
-
[2mdist/[22m[35mstyle.css
|
|
25
|
-
[2mdist/[22m[36mindex.
|
|
26
|
-
[
|
|
22
|
+
[2mdist/[22m[35mstyle.css [39m[1m[2m 26.60 kB[22m[1m[22m[2m │ gzip: 5.28 kB[22m
|
|
23
|
+
[2mdist/[22m[36mindex.js [39m[1m[33m1,406.73 kB[39m[22m[2m │ gzip: 353.99 kB[22m
|
|
24
|
+
[2mdist/[22m[35mstyle.css [39m[1m[2m 26.60 kB[22m[1m[22m[2m │ gzip: 5.28 kB[22m
|
|
25
|
+
[2mdist/[22m[36mindex.umd.cjs [39m[1m[33m982.89 kB[39m[22m[2m │ gzip: 297.29 kB[22m
|
|
26
|
+
[32m✓ built in 27.81s[39m
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { JSX } from 'react';
|
|
2
|
-
import { BlockObjects, BlockType
|
|
3
|
-
type BlockProps<T extends BlockType> =
|
|
2
|
+
import { BlockObjects, BlockType } from '../types';
|
|
3
|
+
type BlockProps<T extends BlockType> = {
|
|
4
4
|
block: BlockObjects[T];
|
|
5
5
|
};
|
|
6
|
-
export declare const Block: <T extends "audio" | "carousel" | "text" | "dropdown" | "file" | "image" | "location" | "video" | "bubble" | "button" | "column" | "row">({ block,
|
|
6
|
+
export declare const Block: <T extends "audio" | "carousel" | "text" | "dropdown" | "file" | "image" | "location" | "video" | "bubble" | "button" | "column" | "row">({ block, ...props }: BlockProps<T>) => JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
export declare const Audio: import("react").ForwardRefExoticComponent<CommonBlockProps & import("../../../adapters/target").AudioMessage & import("react").RefAttributes<HTMLAudioElement>>;
|
|
2
|
+
export declare const Audio: import("react").ForwardRefExoticComponent<import("../../../adapters/target").AudioMessage & import("react").RefAttributes<HTMLAudioElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from 'react';
|
|
2
|
-
import { BubbleBlock
|
|
3
|
-
type Props =
|
|
2
|
+
import { BubbleBlock } from '../../../types';
|
|
3
|
+
type Props = BubbleBlock & ComponentProps<'div'>;
|
|
4
4
|
export declare const Bubble: import("react").ForwardRefExoticComponent<Omit<Props, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ButtonBlock
|
|
2
|
-
type Props =
|
|
3
|
-
export declare const Button: ({ text, buttonValue, type,
|
|
1
|
+
import { ButtonBlock } from '../../../types';
|
|
2
|
+
type Props = ButtonBlock;
|
|
3
|
+
export declare const Button: ({ text, buttonValue, type, variant, groupId, reusable, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export {};
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
export declare const Carousel: import("react").ForwardRefExoticComponent<CommonBlockProps & import("../../../adapters/target").CarouselMessage & import("react").RefAttributes<HTMLDivElement>>;
|
|
2
|
+
export declare const Carousel: import("react").ForwardRefExoticComponent<import("../../../adapters/target").CarouselMessage & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from 'react';
|
|
2
|
-
import { ColumnBlock
|
|
3
|
-
type Props =
|
|
2
|
+
import { ColumnBlock } from '../../../types';
|
|
3
|
+
type Props = ColumnBlock & ComponentProps<'div'>;
|
|
4
4
|
export declare const Column: import("react").ForwardRefExoticComponent<Omit<Props, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DropdownBlock } from '../../../types';
|
|
2
2
|
import { ComponentProps } from 'react';
|
|
3
|
-
type Props =
|
|
4
|
-
export declare const Dropdown: ({
|
|
3
|
+
type Props = DropdownBlock & ComponentProps<'div'>;
|
|
4
|
+
export declare const Dropdown: ({ options, label, reusable }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export {};
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
export declare const File: import("react").ForwardRefExoticComponent<CommonBlockProps & import("../../../adapters/target").FileMessage & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
2
|
+
export declare const File: import("react").ForwardRefExoticComponent<import("../../../adapters/target").FileMessage & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
export declare const Image: import("react").ForwardRefExoticComponent<CommonBlockProps & import("../../../adapters/target").ImageMessage & import("react").RefAttributes<HTMLImageElement>>;
|
|
2
|
+
export declare const Image: import("react").ForwardRefExoticComponent<import("../../../adapters/target").ImageMessage & import("react").RefAttributes<HTMLImageElement>>;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
export declare const Location: import("react").ForwardRefExoticComponent<CommonBlockProps & import("../../../adapters/target").LocationMessage & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
2
|
+
export declare const Location: import("react").ForwardRefExoticComponent<import("../../../adapters/target").LocationMessage & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from 'react';
|
|
2
|
-
import { RowBlock
|
|
3
|
-
type Props =
|
|
2
|
+
import { RowBlock } from '../../../types';
|
|
3
|
+
type Props = RowBlock & ComponentProps<'div'>;
|
|
4
4
|
export declare const Row: import("react").ForwardRefExoticComponent<Omit<Props, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
type Props =
|
|
3
|
-
export declare const Text: ({ text
|
|
1
|
+
import { TextBlock } from '../../../types';
|
|
2
|
+
type Props = TextBlock;
|
|
3
|
+
export declare const Text: ({ text }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export {};
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
export declare const Video: import("react").ForwardRefExoticComponent<CommonBlockProps & import("../../../adapters/target").VideoMessage & import("react").RefAttributes<HTMLVideoElement>>;
|
|
2
|
+
export declare const Video: import("react").ForwardRefExoticComponent<import("../../../adapters/target").VideoMessage & import("react").RefAttributes<HTMLVideoElement>>;
|
|
@@ -34,7 +34,7 @@ export declare const WebchatConfigContext: import("react").Context<{
|
|
|
34
34
|
} | undefined;
|
|
35
35
|
color?: string | undefined;
|
|
36
36
|
variant?: "soft" | "solid" | undefined;
|
|
37
|
-
|
|
37
|
+
themeMode?: "light" | "dark" | undefined;
|
|
38
38
|
fontFamily?: "rubik" | "inter" | "ibm" | "fira" | undefined;
|
|
39
39
|
radius?: number | undefined;
|
|
40
40
|
} | null>;
|
|
@@ -65,7 +65,7 @@ export declare function useWebchatConfig(): {
|
|
|
65
65
|
} | undefined;
|
|
66
66
|
color?: string | undefined;
|
|
67
67
|
variant?: "soft" | "solid" | undefined;
|
|
68
|
-
|
|
68
|
+
themeMode?: "light" | "dark" | undefined;
|
|
69
69
|
fontFamily?: "rubik" | "inter" | "ibm" | "fira" | undefined;
|
|
70
70
|
radius?: number | undefined;
|
|
71
71
|
};
|