@botpress/webchat 1.3.6 → 1.3.8

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,23 +1,25 @@
1
1
 
2
- > @botpress/webchat@1.3.6 build /home/runner/work/echo/echo/packages/webchat-frontend
2
+ > @botpress/webchat@1.3.8 build /home/runner/work/echo/echo/packages/webchat-frontend
3
3
  > vite build
4
4
 
5
5
  vite v4.4.11 building for production...
6
6
  transforming...
7
7
  [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.
8
- [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.8.2/node_modules/@botpress/sdk/dist/index.js". See http://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
9
- [plugin:vite:resolve] Module "util" has been externalized for browser compatibility, imported by "/home/runner/work/echo/echo/node_modules/.pnpm/@botpress+sdk@0.8.2/node_modules/@botpress/sdk/dist/index.js". See http://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
8
+ [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.8.5/node_modules/@botpress/sdk/dist/index.js". See http://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
9
+ [plugin:vite:resolve] Module "util" has been externalized for browser compatibility, imported by "/home/runner/work/echo/echo/node_modules/.pnpm/@botpress+sdk@0.8.5/node_modules/@botpress/sdk/dist/index.js". See http://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
10
10
  [plugin:vite:resolve] Module "path" has been externalized for browser compatibility, imported by "/home/runner/work/echo/echo/node_modules/.pnpm/@apidevtools+json-schema-ref-parser@11.6.1/node_modules/@apidevtools/json-schema-ref-parser/dist/lib/util/url.js". See http://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
11
11
  [plugin:vite:resolve] Module "path" has been externalized for browser compatibility, imported by "/home/runner/work/echo/echo/node_modules/.pnpm/@apidevtools+json-schema-ref-parser@11.6.1/node_modules/@apidevtools/json-schema-ref-parser/dist/lib/util/convert-path-to-posix.js". See http://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
12
12
  [plugin:vite:resolve] Module "util" has been externalized for browser compatibility, imported by "/home/runner/work/echo/echo/node_modules/.pnpm/@jsdevtools+ono@7.1.3/node_modules/@jsdevtools/ono/esm/types.js". See http://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
13
13
  ../../node_modules/.pnpm/@jsdevtools+ono@7.1.3/node_modules/@jsdevtools/ono/esm/types.js (1:9) "inspect" is not exported by "__vite-browser-external", imported by "../../node_modules/.pnpm/@jsdevtools+ono@7.1.3/node_modules/@jsdevtools/ono/esm/types.js".
14
- ✓ 2306 modules transformed.
14
+ ✓ 2426 modules transformed.
15
15
  rendering chunks...
16
16
  
17
17
  [vite:dts] Start generate declaration files...
18
18
  computing gzip size...
19
- [vite:dts] Declaration files built in 13869ms.
19
+ dist/index.js  1.09 kB │ gzip: 0.52 kB
20
+ dist/index-de8cc2d3.js  118.52 kB │ gzip: 31.78 kB
21
+ dist/index-8e9a70c6.js 1,297.30 kB │ gzip: 318.23 kB
22
+ [vite:dts] Declaration files built in 14257ms.
20
23
  
21
- dist/index.js 1,501.36 kB │ gzip: 369.18 kB
22
- dist/index.umd.cjs 1,034.91 kB │ gzip: 308.59 kB
23
- ✓ built in 23.58s
24
+ dist/index.umd.cjs 987.65 kB │ gzip: 291.31 kB
25
+ ✓ built in 23.50s
@@ -18,7 +18,8 @@ type DescriptionItemProps = {
18
18
  icon?: FC<StyleOptions>;
19
19
  link?: string;
20
20
  };
21
- declare const HeaderNamespace: import("react").NamedExoticComponent<Omit<HeaderProps, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
21
+ export declare const Header: () => import("react/jsx-runtime").JSX.Element;
22
+ declare const HeaderRoot: import("react").NamedExoticComponent<Omit<HeaderProps, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
22
23
  readonly type: import("react").ForwardRefExoticComponent<Omit<HeaderProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
23
24
  } & {
24
25
  Content: import("react").ForwardRefExoticComponent<Omit<ContentProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
@@ -33,5 +34,4 @@ declare const HeaderNamespace: import("react").NamedExoticComponent<Omit<HeaderP
33
34
  Actions: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
34
35
  DescriptionItem: ({ icon, title, link, ...props }: DescriptionItemProps) => import("react/jsx-runtime").JSX.Element | null;
35
36
  };
36
- export declare const Header: () => import("react/jsx-runtime").JSX.Element;
37
- export { HeaderNamespace as HeaderRoot };
37
+ export { HeaderRoot };
@@ -15,7 +15,7 @@ export type ModalProps = {
15
15
  };
16
16
  export type ContextVaue = {
17
17
  theme: Theme;
18
- messageContainerRef: RefObject<HTMLUListElement>;
18
+ messageContainerRef: RefObject<HTMLDivElement>;
19
19
  renderers: Renderers;
20
20
  messages: MessageObject[];
21
21
  setMessages: React.Dispatch<React.SetStateAction<MessageObject[]>>;
@@ -2,3 +2,4 @@ export * from './useImageSize';
2
2
  export * from './useWebchatStore';
3
3
  export * from './useRefresh.ts';
4
4
  export * from './useClient.ts';
5
+ export * from './useAutosizeTextArea.ts';
@@ -0,0 +1 @@
1
+ export declare const useAutosizeTextArea: (textAreaRef: HTMLTextAreaElement | null, value: string, maxHeight?: number) => void;