@botpress/webchat 1.3.5 → 1.3.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,23 +1,25 @@
1
1
 
2
- > @botpress/webchat@1.3.5 build /home/runner/work/echo/echo/packages/webchat-frontend
2
+ > @botpress/webchat@1.3.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...
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 13133ms.
19
+ [vite:dts] Declaration files built in 13327ms.
20
20
  
21
- dist/index.js 1,501.38 kB │ gzip: 369.14 kB
22
- dist/index.umd.cjs 1,034.84 kB │ gzip: 308.53 kB
23
- ✓ built in 23.38s
21
+ dist/index.js  1.09 kB │ gzip: 0.52 kB
22
+ dist/index-ebf49348.js  118.52 kB │ gzip: 31.78 kB
23
+ dist/index-5666ba1d.js 1,296.85 kB │ gzip: 318.15 kB
24
+ dist/index.umd.cjs 987.40 kB │ gzip: 291.25 kB
25
+ ✓ built in 22.30s
@@ -2,7 +2,7 @@ import { Theme } from '../types';
2
2
  import { ComponentProps, FC } from 'react';
3
3
  import { type StyleOptions } from '../contexts';
4
4
  declare const Composer: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>>;
5
- declare const ComposerInput: import("react").MemoExoticComponent<({ ...props }: ComponentProps<'textarea'>) => import("react/jsx-runtime").JSX.Element>;
5
+ declare const ComposerInput: import("react").MemoExoticComponent<(props: ComponentProps<'textarea'>) => import("react/jsx-runtime").JSX.Element>;
6
6
  type ComposerButtonStyle = NonNullable<Theme['composer']>['button'];
7
7
  type ComposerButtonProps = {
8
8
  icon?: FC<StyleOptions>;
@@ -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,4 +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 { HeaderNamespace as Header };
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;