@botpress/webchat 2.3.1 → 2.3.5
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 +15 -14
- 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 +23994 -21803
- package/dist/index.umd.cjs +117 -113
- 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.5 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:
|
|
7
|
+
[1m[33m[plugin:vite:resolve][39m[22m [33m[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.2/node_modules/@bpinternal/webchat-http-client/dist/index.mjs". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.[39m
|
|
8
|
+
[33m[vite:css] /home/runner/work/genisys/genisys/packages/webchat-components/src/components/renderers/Audio/styles.css is empty
|
|
8
9
|
1 | @import './resets.css';
|
|
9
|
-
|
|
|
10
|
+
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
10
11
|
2 | @import './theme.css';
|
|
12
|
+
| ^^^^^^
|
|
11
13
|
3 | @import '../components/index.css'[39m
|
|
12
|
-
[
|
|
13
|
-
[32m✓[39m 3125 modules transformed.
|
|
14
|
+
[32m✓[39m 3192 modules transformed.
|
|
14
15
|
rendering chunks...
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
|
|
17
|
+
[vite:dts] Start generate declaration files...
|
|
17
18
|
computing gzip size...
|
|
18
|
-
[2mdist/[22m[35mstyle.css [39m[1m[2m
|
|
19
|
-
[2mdist/[22m[36mindex.js [39m[1m[
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
[2mdist/[22m[35mstyle.css [39m[1m[2m 31.15 kB[22m[1m[22m[2m │ gzip: 5.80 kB[22m
|
|
20
|
+
[2mdist/[22m[36mindex.js [39m[1m[33m1,051.76 kB[39m[22m[2m │ gzip: 275.27 kB[22m
|
|
21
|
+
[vite:dts] Declaration files built in 10500ms.
|
|
22
|
+
|
|
22
23
|
[2mdist/[22m[35mstyle.css [39m[1m[2m 31.15 kB[22m[1m[22m[2m │ gzip: 5.80 kB[22m
|
|
23
|
-
[2mdist/[22m[36mindex.umd.cjs [39m[1m[
|
|
24
|
-
[32m✓ built in
|
|
24
|
+
[2mdist/[22m[36mindex.umd.cjs [39m[1m[33m722.46 kB[39m[22m[2m │ gzip: 230.32 kB[22m
|
|
25
|
+
[32m✓ built in 19.06s[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 {};
|