@botpress/webchat 4.0.1 → 4.0.3
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.
- package/.storybook/preview.tsx +2 -2
- package/.turbo/turbo-build.log +10 -10
- package/dist/index.d.ts +5 -3
- package/dist/index.js +6271 -5959
- package/dist/index.umd.cjs +95 -94
- package/dist/style.css +1 -1
- package/eslint.config.mjs +15 -0
- package/package.json +3 -2
- package/readme.md +194 -35
- package/.eslintrc.cjs +0 -12
package/.storybook/preview.tsx
CHANGED
|
@@ -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,
|
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
|
|
2
|
-
> @botpress/webchat@4.0.
|
|
2
|
+
> @botpress/webchat@4.0.3 build /home/runner/work/genisys/genisys/packages/webchat-components
|
|
3
3
|
> vite build
|
|
4
4
|
|
|
5
5
|
[36mvite v5.4.8 [32mbuilding for production...[36m[39m
|
|
6
6
|
transforming...
|
|
7
|
-
[32m✓[39m
|
|
7
|
+
[32m✓[39m 2346 modules transformed.
|
|
8
8
|
rendering chunks...
|
|
9
9
|
|
|
10
10
|
[vite:dts] Start generate declaration files...
|
|
11
11
|
computing gzip size...
|
|
12
|
+
[2mdist/[22m[35mstyle.css [39m[1m[2m 53.25 kB[22m[1m[22m[2m │ gzip: 8.96 kB[22m
|
|
13
|
+
[2mdist/[22m[36mindex.js [39m[1m[33m674.66 kB[39m[22m[2m │ gzip: 182.35 kB[22m
|
|
12
14
|
[vite:dts] Start rollup declaration files...
|
|
13
|
-
Analysis will use the bundled TypeScript version 5.
|
|
14
|
-
*** The target project appears to use TypeScript 5.
|
|
15
|
-
|
|
16
|
-
[2mdist/[22m[36mindex.js [39m[1m[33m666.14 kB[39m[22m[2m │ gzip: 180.07 kB[22m
|
|
17
|
-
[vite:dts] Declaration files built in 20920ms.
|
|
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 20047ms.
|
|
18
18
|
|
|
19
|
-
[2mdist/[22m[35mstyle.css [39m[1m[2m
|
|
20
|
-
[2mdist/[22m[36mindex.umd.cjs [39m[1m[
|
|
21
|
-
[32m✓ built in
|
|
19
|
+
[2mdist/[22m[35mstyle.css [39m[1m[2m 53.25 kB[22m[1m[22m[2m │ gzip: 8.96 kB[22m
|
|
20
|
+
[2mdist/[22m[36mindex.umd.cjs [39m[1m[2m448.26 kB[22m[1m[22m[2m │ gzip: 147.31 kB[22m
|
|
21
|
+
[32m✓ built in 24.51s[39m
|
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:
|
|
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:
|
|
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:
|
|
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
|
|