@botpress/webchat 4.0.2 → 4.0.4

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,8 +1,8 @@
1
1
  // import '../src/index.css' // This has to be imported as early as possible
2
+ import { type Preview } from '@storybook/react'
2
3
  import React from 'react'
3
- import type { Preview } from '@storybook/react'
4
- import { StylesheetProvider } from '../src/providers'
5
4
  import { Container } from '../src/components'
5
+ import { StylesheetProvider } from '../src/providers'
6
6
 
7
7
  const radiusMap = {
8
8
  none: 0,
@@ -1,21 +1,21 @@
1
1
 
2
- > @botpress/webchat@4.0.2 build /home/runner/work/genisys/genisys/packages/webchat-components
2
+ > @botpress/webchat@4.0.4 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
- ✓ 2335 modules transformed.
7
+ ✓ 2345 modules transformed.
8
8
  rendering chunks...
9
9
 
10
10
  [vite:dts] Start generate declaration files...
11
11
  computing gzip size...
12
- dist/style.css  49.55 kB │ gzip: 8.84 kB
13
- dist/index.js 666.14 kB │ gzip: 180.07 kB
12
+ dist/style.css  53.33 kB │ gzip: 8.97 kB
13
+ dist/index.js 674.72 kB │ gzip: 182.37 kB
14
14
  [vite:dts] Start rollup declaration files...
15
- Analysis will use the bundled TypeScript version 5.4.2
16
- *** The target project appears to use TypeScript 5.6.2 which is newer than the bundled compiler engine; consider upgrading API Extractor.
17
- [vite:dts] Declaration files built in 19670ms.
15
+ Analysis will use the bundled TypeScript version 5.8.2
16
+ *** The target project appears to use TypeScript 5.9.3 which is newer than the bundled compiler engine; consider upgrading API Extractor.
17
+ [vite:dts] Declaration files built in 20518ms.
18
18
 
19
- dist/style.css  49.55 kB │ gzip: 8.84 kB
20
- dist/index.umd.cjs 443.57 kB │ gzip: 145.67 kB
21
- ✓ built in 24.49s
19
+ dist/style.css  53.33 kB │ gzip: 8.97 kB
20
+ dist/index.umd.cjs 448.31 kB │ gzip: 147.33 kB
21
+ ✓ built in 25.35s
package/dist/index.d.ts CHANGED
@@ -188,7 +188,7 @@ export declare const Container: {
188
188
 
189
189
  declare const createChatSoundStore: (storeName: string) => UseBoundStore<Omit<Omit<StoreApi<ChatSoundStore>, "setState"> & {
190
190
  setState<A extends string | {
191
- type: string;
191
+ type: unknown;
192
192
  }>(partial: ChatSoundStore | Partial<ChatSoundStore> | ((state: ChatSoundStore) => ChatSoundStore | Partial<ChatSoundStore>), replace?: boolean | undefined, action?: A | undefined): void;
193
193
  }, "persist"> & {
194
194
  persist: {
@@ -204,7 +204,7 @@ declare const createChatSoundStore: (storeName: string) => UseBoundStore<Omit<Om
204
204
 
205
205
  declare const createWebchatClientStore: (storeName: string, storageLocation?: StorageLocation) => UseBoundStore<Omit<Omit<StoreApi<WebchatClientStore>, "setState"> & {
206
206
  setState<A extends string | {
207
- type: string;
207
+ type: unknown;
208
208
  }>(partial: WebchatClientStore | Partial<WebchatClientStore> | ((state: WebchatClientStore) => WebchatClientStore | Partial<WebchatClientStore>), replace?: boolean | undefined, action?: A | undefined): void;
209
209
  }, "persist"> & {
210
210
  persist: {
@@ -672,7 +672,7 @@ declare type UseWebchatReturn = {
672
672
 
673
673
  export declare const useWebchatStore: UseBoundStore<Omit<StoreApi<WebchatStore>, "setState"> & {
674
674
  setState<A extends string | {
675
- type: string;
675
+ type: unknown;
676
676
  }>(partial: WebchatStore | Partial<WebchatStore> | ((state: WebchatStore) => WebchatStore | Partial<WebchatStore>), replace?: boolean | undefined, action?: A | undefined): void;
677
677
  }>;
678
678
 
@@ -1263,6 +1263,8 @@ export declare type WebchatEvents = {
1263
1263
  declare type WebchatStore = {
1264
1264
  messageContainerRef: RefObject<HTMLDivElement>;
1265
1265
  setMessageContainerRef: (ref: RefObject<HTMLDivElement>) => void;
1266
+ portalContainer: HTMLElement | null;
1267
+ setPortalContainer: (container: HTMLElement | null) => void;
1266
1268
  eventEmitter: EventEmitter<Events_2>;
1267
1269
  };
1268
1270