@botpress/webchat 2.2.5 → 2.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 +8 -8
- package/dist/contexts/WebchatContext.d.ts +14 -12
- package/dist/index.js +5386 -5368
- package/dist/index.umd.cjs +90 -90
- package/dist/schemas/configuration.d.ts +31 -28
- package/dist/schemas/init.d.ts +68 -60
- package/dist/style.css +1 -1
- package/dist/styles/classes.d.ts +3 -3
- package/package.json +2 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @botpress/webchat@2.2.
|
|
2
|
+
> @botpress/webchat@2.2.7 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 3174 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
|
-
[32m[36m[vite:dts][32m Declaration files built in
|
|
20
|
+
[32m[36m[vite:dts][32m Declaration files built in 15273ms.
|
|
21
21
|
[39m
|
|
22
|
-
[2mdist/[22m[35mstyle.css [39m[1m[2m 28.
|
|
23
|
-
[2mdist/[22m[36mindex.js [39m[1m[33m1,
|
|
24
|
-
[2mdist/[22m[35mstyle.css [39m[1m[2m 28.
|
|
25
|
-
[2mdist/[22m[36mindex.umd.cjs [39m[1m[
|
|
26
|
-
[32m✓ built in
|
|
22
|
+
[2mdist/[22m[35mstyle.css [39m[1m[2m 28.87 kB[22m[1m[22m[2m │ gzip: 5.57 kB[22m
|
|
23
|
+
[2mdist/[22m[36mindex.js [39m[1m[33m1,410.48 kB[39m[22m[2m │ gzip: 355.19 kB[22m
|
|
24
|
+
[2mdist/[22m[35mstyle.css [39m[1m[2m 28.87 kB[22m[1m[22m[2m │ gzip: 5.57 kB[22m
|
|
25
|
+
[2mdist/[22m[36mindex.umd.cjs [39m[1m[33m985.33 kB[39m[22m[2m │ gzip: 298.11 kB[22m
|
|
26
|
+
[32m✓ built in 25.74s[39m
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { CSSProperties, FC } from 'react';
|
|
2
|
-
import { BlockObjects,
|
|
2
|
+
import { BlockObjects, BlockType } from '../types';
|
|
3
3
|
export type StyleOptions = {
|
|
4
4
|
className?: string;
|
|
5
5
|
style?: CSSProperties;
|
|
6
6
|
};
|
|
7
7
|
export type Renderers = {
|
|
8
|
-
[T in BlockType]: FC<
|
|
8
|
+
[T in BlockType]: FC<BlockObjects[T]>;
|
|
9
9
|
};
|
|
10
10
|
export declare const WebchatConfigContext: import("react").Context<{
|
|
11
11
|
composerPlaceholder?: string | undefined;
|
|
@@ -13,25 +13,26 @@ export declare const WebchatConfigContext: import("react").Context<{
|
|
|
13
13
|
botAvatar?: string | undefined;
|
|
14
14
|
botDescription?: string | undefined;
|
|
15
15
|
website?: {
|
|
16
|
-
title
|
|
16
|
+
title?: string | undefined;
|
|
17
17
|
link?: string | undefined;
|
|
18
18
|
} | undefined;
|
|
19
19
|
email?: {
|
|
20
|
-
title
|
|
20
|
+
title?: string | undefined;
|
|
21
21
|
link?: string | undefined;
|
|
22
22
|
} | undefined;
|
|
23
23
|
phone?: {
|
|
24
|
-
title
|
|
24
|
+
title?: string | undefined;
|
|
25
25
|
link?: string | undefined;
|
|
26
26
|
} | undefined;
|
|
27
27
|
privacyPolicy?: {
|
|
28
|
-
title
|
|
28
|
+
title?: string | undefined;
|
|
29
29
|
link?: string | undefined;
|
|
30
30
|
} | undefined;
|
|
31
31
|
termsOfService?: {
|
|
32
|
-
title
|
|
32
|
+
title?: string | undefined;
|
|
33
33
|
link?: string | undefined;
|
|
34
34
|
} | undefined;
|
|
35
|
+
showPoweredBy?: boolean | undefined;
|
|
35
36
|
color?: string | undefined;
|
|
36
37
|
variant?: "soft" | "solid" | undefined;
|
|
37
38
|
themeMode?: "light" | "dark" | undefined;
|
|
@@ -44,25 +45,26 @@ export declare function useWebchatConfig(): {
|
|
|
44
45
|
botAvatar?: string | undefined;
|
|
45
46
|
botDescription?: string | undefined;
|
|
46
47
|
website?: {
|
|
47
|
-
title
|
|
48
|
+
title?: string | undefined;
|
|
48
49
|
link?: string | undefined;
|
|
49
50
|
} | undefined;
|
|
50
51
|
email?: {
|
|
51
|
-
title
|
|
52
|
+
title?: string | undefined;
|
|
52
53
|
link?: string | undefined;
|
|
53
54
|
} | undefined;
|
|
54
55
|
phone?: {
|
|
55
|
-
title
|
|
56
|
+
title?: string | undefined;
|
|
56
57
|
link?: string | undefined;
|
|
57
58
|
} | undefined;
|
|
58
59
|
privacyPolicy?: {
|
|
59
|
-
title
|
|
60
|
+
title?: string | undefined;
|
|
60
61
|
link?: string | undefined;
|
|
61
62
|
} | undefined;
|
|
62
63
|
termsOfService?: {
|
|
63
|
-
title
|
|
64
|
+
title?: string | undefined;
|
|
64
65
|
link?: string | undefined;
|
|
65
66
|
} | undefined;
|
|
67
|
+
showPoweredBy?: boolean | undefined;
|
|
66
68
|
color?: string | undefined;
|
|
67
69
|
variant?: "soft" | "solid" | undefined;
|
|
68
70
|
themeMode?: "light" | "dark" | undefined;
|