@botpress/webchat 2.3.1 → 2.3.2
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/.eslintrc.js +11 -0
- package/.turbo/turbo-build.log +16 -15
- package/dist/adapters/index.d.ts +1 -6
- package/dist/adapters/target.d.ts +1 -6
- package/dist/adapters/typings.d.ts +1 -6
- package/dist/adapters/webchat-to-target.d.ts +8 -0
- package/dist/adapters/webchat.d.ts +3 -1986
- package/dist/client/state-machine.d.ts +1 -1
- package/dist/client/types.d.ts +1 -0
- package/dist/components/MessageList/MessageList.d.ts +1 -1
- package/dist/components/renderers/Audio/Audio.d.ts +1 -0
- package/dist/components/renderers/Carousel/Carousel.d.ts +1 -0
- package/dist/components/renderers/File/File.d.ts +1 -0
- package/dist/components/renderers/Image/Image.d.ts +1 -0
- package/dist/components/renderers/Location/Location.d.ts +1 -0
- package/dist/components/renderers/Video/Video.d.ts +1 -0
- package/dist/gen/signals/index.d.ts +34 -34
- package/dist/gen/signals/messageCreated.z.d.ts +34 -34
- package/dist/index.js +67478 -25250
- package/dist/index.umd.cjs +172 -127
- package/dist/schemas/init.d.ts +14 -14
- package/dist/schemas/theme.d.ts +8 -8
- package/dist/stores/offlineStore.d.ts +1 -1
- package/dist/stores/webchatStore.d.ts +2 -2
- package/dist/types/block-type.d.ts +2 -0
- package/package.json +21 -22
- package/dist/adapters/adapters/messaging-to-target.d.ts +0 -184
- package/dist/adapters/adapters/messaging-to-webchat.d.ts +0 -5
- package/dist/adapters/adapters/webchat-to-messaging.d.ts +0 -223
- package/dist/adapters/adapters/webchat-to-target.d.ts +0 -197
- package/dist/adapters/messaging.d.ts +0 -1455
- package/dist/adapters/sdk.d.ts +0 -472
- package/dist/client/inner-client/event-emitter.d.ts +0 -10
- package/dist/client/inner-client/eventsource.d.ts +0 -22
- package/dist/client/inner-client/index.d.ts +0 -42
- package/dist/client/inner-client/signal-listener.d.ts +0 -47
- package/openapi.ts +0 -35
package/.eslintrc.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** @type {import("eslint").Linter.Config} */
|
|
2
|
+
module.exports = {
|
|
3
|
+
root: true,
|
|
4
|
+
extends: ["@repo/eslint-config/react-internal.js"],
|
|
5
|
+
parser: "@typescript-eslint/parser",
|
|
6
|
+
ignorePatterns: ["dist", "node_modules", "storybook-static", ".turbo", "turbo/*"],
|
|
7
|
+
parserOptions: {
|
|
8
|
+
project: "./tsconfig.json",
|
|
9
|
+
tsconfigRootDir: __dirname,
|
|
10
|
+
},
|
|
11
|
+
};
|
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
|
|
2
|
-
> @botpress/webchat@2.3.
|
|
2
|
+
> @botpress/webchat@2.3.2 build /home/runner/work/genisys/genisys/packages/webchat-components
|
|
3
3
|
> vite build
|
|
4
4
|
|
|
5
|
-
[36mvite
|
|
5
|
+
[36mvite v5.4.8 [32mbuilding for production...[36m[39m
|
|
6
6
|
transforming...
|
|
7
|
-
[33m[vite:css] /home/runner/work/
|
|
7
|
+
[33m[vite:css] /home/runner/work/genisys/genisys/packages/webchat-components/src/components/renderers/Audio/styles.css is empty
|
|
8
8
|
1 | @import './resets.css';
|
|
9
|
-
|
|
|
9
|
+
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
10
10
|
2 | @import './theme.css';
|
|
11
|
+
| ^^^^^^
|
|
11
12
|
3 | @import '../components/index.css'[39m
|
|
12
|
-
|
|
13
|
-
[32m✓[39m
|
|
13
|
+
../../node_modules/.pnpm/@bpinternal+webchat-http-client@0.2.0/node_modules/@bpinternal/webchat-http-client/dist/index.mjs (36076:9): Use of eval in "../../node_modules/.pnpm/@bpinternal+webchat-http-client@0.2.0/node_modules/@bpinternal/webchat-http-client/dist/index.mjs" is strongly discouraged as it poses security risks and may cause issues with minification.
|
|
14
|
+
[32m✓[39m 3137 modules transformed.
|
|
14
15
|
rendering chunks...
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
|
|
17
|
+
[vite:dts] Start generate declaration files...
|
|
17
18
|
computing gzip size...
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
[
|
|
21
|
-
[39m
|
|
22
|
-
[2mdist/[22m[35mstyle.css [39m[1m[2m
|
|
23
|
-
[2mdist/[22m[36mindex.umd.cjs [39m[1m[
|
|
24
|
-
[32m✓ built in
|
|
19
|
+
[vite:dts] Declaration files built in 10392ms.
|
|
20
|
+
|
|
21
|
+
[2mdist/[22m[35mstyle.css [39m[1m[2m 31.15 kB[22m[1m[22m[2m │ gzip: 5.80 kB[22m
|
|
22
|
+
[2mdist/[22m[36mindex.js [39m[1m[33m3,559.83 kB[39m[22m[2m │ gzip: 818.09 kB[22m
|
|
23
|
+
[2mdist/[22m[35mstyle.css [39m[1m[2m 31.15 kB[22m[1m[22m[2m │ gzip: 5.80 kB[22m
|
|
24
|
+
[2mdist/[22m[36mindex.umd.cjs [39m[1m[33m2,716.16 kB[39m[22m[2m │ gzip: 734.79 kB[22m
|
|
25
|
+
[32m✓ built in 23.94s[39m
|
package/dist/adapters/index.d.ts
CHANGED
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
export * as webchat from './webchat';
|
|
2
|
-
export * as messaging from './messaging';
|
|
3
1
|
export * as target from './target';
|
|
4
|
-
export * as
|
|
5
|
-
export * as messagingToWebChat from './adapters/messaging-to-webchat';
|
|
6
|
-
export * as webchatToMessaging from './adapters/webchat-to-messaging';
|
|
7
|
-
export * as webchatToTarget from './adapters/webchat-to-target';
|
|
2
|
+
export * as webchatToTarget from './webchat-to-target';
|
|
@@ -74,9 +74,4 @@ export type ColumnOf<T extends Message> = Omit<ColumnMessage, 'blocks'> & {
|
|
|
74
74
|
export type RowOf<T extends Message> = Omit<RowMessage, 'blocks'> & {
|
|
75
75
|
blocks: T[];
|
|
76
76
|
};
|
|
77
|
-
export type Messages = types.
|
|
78
|
-
export type AdapterOutput = {
|
|
79
|
-
payload: Message;
|
|
80
|
-
disableInput?: boolean;
|
|
81
|
-
};
|
|
82
|
-
export type AdaptersOutput = Record<keyof Messages, AdapterOutput>;
|
|
77
|
+
export type Messages = types.ByType<Message>;
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
type
|
|
2
|
-
export type MessagesOf<M extends {
|
|
1
|
+
export type ByType<M extends {
|
|
3
2
|
type: string;
|
|
4
3
|
}> = {
|
|
5
4
|
[Type in M['type']]: Extract<M, {
|
|
6
5
|
type: Type;
|
|
7
6
|
}>;
|
|
8
7
|
};
|
|
9
|
-
export type Adapter<A extends Record<string, object>, B extends Record<string, object>> = {
|
|
10
|
-
[Type in keyof A]: (message: A[Type]) => ValueOf<B>;
|
|
11
|
-
};
|
|
12
|
-
export {};
|