@botpress/webchat 2.4.0-beta.6 → 2.4.0

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,19 +1,19 @@
1
1
 
2
- > @botpress/webchat@2.4.0-beta.6 build /home/runner/work/genisys/genisys/packages/webchat-components
2
+ > @botpress/webchat@2.4.0 build /home/runner/work/genisys/genisys/packages/webchat-components
3
3
  > vite build
4
4
 
5
5
  vite v5.4.8 building for production...
6
6
  transforming...
7
7
  [plugin:vite:resolve] [plugin vite:resolve] Module "crypto" has been externalized for browser compatibility, imported by "/home/runner/work/genisys/genisys/node_modules/.pnpm/@bpinternal+webchat-http-client@0.2.4/node_modules/@bpinternal/webchat-http-client/dist/index.mjs". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
8
- ✓ 3132 modules transformed.
8
+ ✓ 3135 modules transformed.
9
9
  rendering chunks...
10
10
 
11
11
  [vite:dts] Start generate declaration files...
12
12
  computing gzip size...
13
- dist/style.css  32.70 kB │ gzip: 6.27 kB
14
- dist/index.js 1,029.08 kB │ gzip: 269.19 kB
15
- [vite:dts] Declaration files built in 11931ms.
13
+ dist/style.css  32.82 kB │ gzip: 6.28 kB
14
+ dist/index.js 1,037.56 kB │ gzip: 270.98 kB
15
+ [vite:dts] Declaration files built in 12564ms.
16
16
 
17
- dist/style.css  32.70 kB │ gzip: 6.27 kB
18
- dist/index.umd.cjs 705.35 kB │ gzip: 224.25 kB
19
- ✓ built in 20.06s
17
+ dist/style.css  32.82 kB │ gzip: 6.28 kB
18
+ dist/index.umd.cjs 711.36 kB │ gzip: 225.63 kB
19
+ ✓ built in 22.98s
@@ -3,7 +3,7 @@ export * from './Block';
3
3
  export * from './Composer';
4
4
  export * from './Container';
5
5
  export * from './Fab';
6
- export * from './Header/Header';
6
+ export * from './Header';
7
7
  export * from './TypingIndicator';
8
8
  export * from './Message';
9
9
  export * from './MessageList';
@@ -1,5 +1,5 @@
1
1
  import { DropdownBlock, type CommonBlockProps } from '../../../types';
2
2
  import { ComponentProps } from 'react';
3
3
  type Props = DropdownBlock & ComponentProps<'div'> & CommonBlockProps;
4
- export declare const Dropdown: ({ options, label, reusable, sendMessage, isReadOnly }: Props) => import("react/jsx-runtime").JSX.Element;
4
+ export declare const Dropdown: ({ options, reusable, sendMessage, isReadOnly }: Props) => import("react/jsx-runtime").JSX.Element;
5
5
  export {};
@@ -3,6 +3,7 @@ import { type FileType, type MessageObject } from '../types';
3
3
  import { EventEmitter } from '../utils';
4
4
  import type { Message as WebchatMessage } from '../adapters/webchat';
5
5
  import { getClient } from '../client';
6
+ import { getUseUserStore } from '../stores';
6
7
  type UserResponse = Awaited<ReturnType<Awaited<ReturnType<typeof getClient>['getUser']>>>['user'];
7
8
  type Props = {
8
9
  userKey?: string;
@@ -11,6 +12,7 @@ type Props = {
11
12
  apiUrl?: string;
12
13
  sseTimeout?: number;
13
14
  storageKey?: string;
15
+ storageLocation?: Parameters<typeof getUseUserStore>[1];
14
16
  };
15
17
  type ScopedClient = {
16
18
  sendMessage: (payload: WebchatMessage) => Promise<void>;
@@ -44,5 +46,5 @@ export type UseWebchatClientReturn = {
44
46
  user: undefined;
45
47
  isTyping: undefined;
46
48
  };
47
- export declare function useWebchatClient({ apiUrl, clientId, storageKey, ...props }: Props): UseWebchatClientReturn;
49
+ export declare function useWebchatClient({ apiUrl, clientId, storageKey, storageLocation, ...props }: Props): UseWebchatClientReturn;
48
50
  export {};