@botpress/webchat 2.1.10 → 2.1.11

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,25 +1,19 @@
1
1
 
2
- > @botpress/webchat@2.1.10 build /home/runner/work/echo/echo/packages/webchat-frontend
2
+ > @botpress/webchat@2.1.11 build /home/runner/work/echo/echo/packages/webchat-frontend
3
3
  > vite build
4
4
 
5
5
  vite v4.4.11 building for production...
6
6
  transforming...
7
- [plugin:vite:resolve] Module "node:http" has been externalized for browser compatibility, imported by "/home/runner/work/echo/echo/node_modules/.pnpm/@botpress+sdk@0.8.29_react@18.2.0/node_modules/@botpress/sdk/dist/index.js". See http://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
8
- [plugin:vite:resolve] Module "util" has been externalized for browser compatibility, imported by "/home/runner/work/echo/echo/node_modules/.pnpm/@botpress+sdk@0.8.29_react@18.2.0/node_modules/@botpress/sdk/dist/index.js". See http://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
7
+ [plugin:vite:resolve] Module "node:http" has been externalized for browser compatibility, imported by "/home/runner/work/echo/echo/node_modules/.pnpm/@botpress+sdk@0.10.13_react@18.2.0/node_modules/@botpress/sdk/dist/index.js". See http://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
8
+ [plugin:vite:resolve] Module "util" has been externalized for browser compatibility, imported by "/home/runner/work/echo/echo/node_modules/.pnpm/@botpress+sdk@0.10.13_react@18.2.0/node_modules/@botpress/sdk/dist/index.js". See http://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
9
9
  [plugin:vite:resolve] Module "crypto" has been externalized for browser compatibility, imported by "/home/runner/work/echo/echo/packages/webchat-frontend/src/gen/client/errors.ts". See http://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
10
- [plugin:vite:resolve] Module "path" has been externalized for browser compatibility, imported by "/home/runner/work/echo/echo/node_modules/.pnpm/@apidevtools+json-schema-ref-parser@11.6.1/node_modules/@apidevtools/json-schema-ref-parser/dist/lib/util/url.js". See http://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
11
- [plugin:vite:resolve] Module "path" has been externalized for browser compatibility, imported by "/home/runner/work/echo/echo/node_modules/.pnpm/@apidevtools+json-schema-ref-parser@11.6.1/node_modules/@apidevtools/json-schema-ref-parser/dist/lib/util/convert-path-to-posix.js". See http://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
12
- [plugin:vite:resolve] Module "util" has been externalized for browser compatibility, imported by "/home/runner/work/echo/echo/node_modules/.pnpm/@jsdevtools+ono@7.1.3/node_modules/@jsdevtools/ono/esm/types.js". See http://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
13
- ../../node_modules/.pnpm/@jsdevtools+ono@7.1.3/node_modules/@jsdevtools/ono/esm/types.js (1:9) "inspect" is not exported by "__vite-browser-external", imported by "../../node_modules/.pnpm/@jsdevtools+ono@7.1.3/node_modules/@jsdevtools/ono/esm/types.js".
14
- ✓ 2442 modules transformed.
10
+ ✓ 1874 modules transformed.
15
11
  rendering chunks...
16
12
  
17
13
  [vite:dts] Start generate declaration files...
18
14
  computing gzip size...
19
- [vite:dts] Declaration files built in 15676ms.
15
+ [vite:dts] Declaration files built in 15513ms.
20
16
  
21
- dist/index.js  1.20 kB │ gzip: 0.58 kB
22
- dist/index-5a1dccbb.js  118.52 kB │ gzip: 31.78 kB
23
- dist/index-4df6b320.js 1,458.10 kB │ gzip: 362.90 kB
24
- dist/index.umd.cjs 1,089.00 kB │ gzip: 329.74 kB
25
- ✓ built in 26.66s
17
+ dist/index.js 1,288.27 kB │ gzip: 316.49 kB
18
+ dist/index.umd.cjs 901.95 kB │ gzip: 264.51 kB
19
+ ✓ built in 23.44s
@@ -24,6 +24,10 @@ export type WebchatEvents = {
24
24
  webchatVisibility: 'show' | 'hide' | 'toggle';
25
25
  webchatConfig: Record<string, any>;
26
26
  customEvent: Record<string, any>;
27
+ isTyping: {
28
+ isTyping: boolean;
29
+ timeout: number;
30
+ };
27
31
  };
28
32
  type ValueOf<T> = T[keyof T];
29
33
  type AnyEvent = ValueOf<{
@@ -2,11 +2,15 @@ import type { MessageCreated } from './messageCreated.t';
2
2
  import type { WebchatVisibility } from './webchatVisibility.t';
3
3
  import type { WebchatConfig } from './webchatConfig.t';
4
4
  import type { Custom } from './custom.t';
5
+ import type { TypingStarted } from './typingStarted.t';
6
+ import type { TypingStopped } from './typingStopped.t';
5
7
  export declare const json: {
6
8
  messageCreated: import("json-schema").JSONSchema7;
7
9
  webchatVisibility: import("json-schema").JSONSchema7;
8
10
  webchatConfig: import("json-schema").JSONSchema7;
9
11
  custom: import("json-schema").JSONSchema7;
12
+ typingStarted: import("json-schema").JSONSchema7;
13
+ typingStopped: import("json-schema").JSONSchema7;
10
14
  };
11
15
  export declare const zod: {
12
16
  messageCreated: import("zod").ZodObject<{
@@ -675,10 +679,42 @@ export declare const zod: {
675
679
  event: Record<string, any>;
676
680
  };
677
681
  }>;
682
+ typingStarted: import("zod").ZodObject<{
683
+ type: import("zod").ZodLiteral<"typing_started">;
684
+ data: import("zod").ZodObject<{
685
+ timeout: import("zod").ZodOptional<import("zod").ZodNumber>;
686
+ }, "strip", import("zod").ZodTypeAny, {
687
+ timeout?: number | undefined;
688
+ }, {
689
+ timeout?: number | undefined;
690
+ }>;
691
+ }, "strip", import("zod").ZodTypeAny, {
692
+ type: "typing_started";
693
+ data: {
694
+ timeout?: number | undefined;
695
+ };
696
+ }, {
697
+ type: "typing_started";
698
+ data: {
699
+ timeout?: number | undefined;
700
+ };
701
+ }>;
702
+ typingStopped: import("zod").ZodObject<{
703
+ type: import("zod").ZodLiteral<"typing_stopped">;
704
+ data: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodNever>;
705
+ }, "strip", import("zod").ZodTypeAny, {
706
+ type: "typing_stopped";
707
+ data: Record<string, never>;
708
+ }, {
709
+ type: "typing_stopped";
710
+ data: Record<string, never>;
711
+ }>;
678
712
  };
679
713
  export type Types = {
680
714
  messageCreated: MessageCreated;
681
715
  webchatVisibility: WebchatVisibility;
682
716
  webchatConfig: WebchatConfig;
683
717
  custom: Custom;
718
+ typingStarted: TypingStarted;
719
+ typingStopped: TypingStopped;
684
720
  };
@@ -0,0 +1,3 @@
1
+ import type { JSONSchema7 } from 'json-schema';
2
+ declare const schema: JSONSchema7;
3
+ export default schema;
@@ -0,0 +1,6 @@
1
+ export interface TypingStarted {
2
+ type: "typing_started";
3
+ data: {
4
+ timeout?: number;
5
+ };
6
+ }
@@ -0,0 +1,22 @@
1
+ import { z } from "zod";
2
+ declare const _default: z.ZodObject<{
3
+ type: z.ZodLiteral<"typing_started">;
4
+ data: z.ZodObject<{
5
+ timeout: z.ZodOptional<z.ZodNumber>;
6
+ }, "strip", z.ZodTypeAny, {
7
+ timeout?: number | undefined;
8
+ }, {
9
+ timeout?: number | undefined;
10
+ }>;
11
+ }, "strip", z.ZodTypeAny, {
12
+ type: "typing_started";
13
+ data: {
14
+ timeout?: number | undefined;
15
+ };
16
+ }, {
17
+ type: "typing_started";
18
+ data: {
19
+ timeout?: number | undefined;
20
+ };
21
+ }>;
22
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { JSONSchema7 } from 'json-schema';
2
+ declare const schema: JSONSchema7;
3
+ export default schema;
@@ -0,0 +1,4 @@
1
+ export interface TypingStopped {
2
+ type: "typing_stopped";
3
+ data: {};
4
+ }
@@ -0,0 +1,12 @@
1
+ import { z } from "zod";
2
+ declare const _default: z.ZodObject<{
3
+ type: z.ZodLiteral<"typing_stopped">;
4
+ data: z.ZodRecord<z.ZodString, z.ZodNever>;
5
+ }, "strip", z.ZodTypeAny, {
6
+ type: "typing_stopped";
7
+ data: Record<string, never>;
8
+ }, {
9
+ type: "typing_stopped";
10
+ data: Record<string, never>;
11
+ }>;
12
+ export default _default;