@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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @botpress/webchat@2.2.5 build /home/runner/work/echo/echo/packages/webchat-frontend
2
+ > @botpress/webchat@2.2.7 build /home/runner/work/echo/echo/packages/webchat-frontend
3
3
  > vite build
4
4
 
5
5
  vite v4.4.11 building for production...
@@ -12,15 +12,15 @@ transforming...
12
12
  [plugin:vite:resolve] Module "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.
13
13
  [plugin:vite:resolve] Module "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.
14
14
  [plugin:vite:resolve] Module "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.
15
- ✓ 2761 modules transformed.
15
+ ✓ 3174 modules transformed.
16
16
  rendering chunks...
17
17
  
18
18
  [vite:dts] Start generate declaration files...
19
19
  computing gzip size...
20
- [vite:dts] Declaration files built in 14641ms.
20
+ [vite:dts] Declaration files built in 15273ms.
21
21
  
22
- dist/style.css  28.09 kB │ gzip: 5.42 kB
23
- dist/index.js 1,409.51 kB │ gzip: 354.94 kB
24
- dist/style.css  28.09 kB │ gzip: 5.42 kB
25
- dist/index.umd.cjs 984.82 kB │ gzip: 298.04 kB
26
- ✓ built in 24.35s
22
+ dist/style.css  28.87 kB │ gzip: 5.57 kB
23
+ dist/index.js 1,410.48 kB │ gzip: 355.19 kB
24
+ dist/style.css  28.87 kB │ gzip: 5.57 kB
25
+ dist/index.umd.cjs 985.33 kB │ gzip: 298.11 kB
26
+ ✓ built in 25.74s
@@ -1,11 +1,11 @@
1
1
  import { CSSProperties, FC } from 'react';
2
- import { BlockObjects, CommonBlockProps, BlockType } from '../types';
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<CommonBlockProps & BlockObjects[T]>;
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: string;
16
+ title?: string | undefined;
17
17
  link?: string | undefined;
18
18
  } | undefined;
19
19
  email?: {
20
- title: string;
20
+ title?: string | undefined;
21
21
  link?: string | undefined;
22
22
  } | undefined;
23
23
  phone?: {
24
- title: string;
24
+ title?: string | undefined;
25
25
  link?: string | undefined;
26
26
  } | undefined;
27
27
  privacyPolicy?: {
28
- title: string;
28
+ title?: string | undefined;
29
29
  link?: string | undefined;
30
30
  } | undefined;
31
31
  termsOfService?: {
32
- title: string;
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: string;
48
+ title?: string | undefined;
48
49
  link?: string | undefined;
49
50
  } | undefined;
50
51
  email?: {
51
- title: string;
52
+ title?: string | undefined;
52
53
  link?: string | undefined;
53
54
  } | undefined;
54
55
  phone?: {
55
- title: string;
56
+ title?: string | undefined;
56
57
  link?: string | undefined;
57
58
  } | undefined;
58
59
  privacyPolicy?: {
59
- title: string;
60
+ title?: string | undefined;
60
61
  link?: string | undefined;
61
62
  } | undefined;
62
63
  termsOfService?: {
63
- title: string;
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;