@botpress/webchat 2.1.0 → 2.1.1

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,5 +1,5 @@
1
1
 
2
- > @botpress/webchat@2.1.0 build /home/runner/work/echo/echo/packages/webchat-frontend
2
+ > @botpress/webchat@2.1.1 build /home/runner/work/echo/echo/packages/webchat-frontend
3
3
  > vite build
4
4
 
5
5
  vite v4.4.11 building for production...
@@ -16,10 +16,10 @@ rendering chunks...
16
16
  
17
17
  [vite:dts] Start generate declaration files...
18
18
  computing gzip size...
19
- [vite:dts] Declaration files built in 14485ms.
19
+ [vite:dts] Declaration files built in 14756ms.
20
20
  
21
- dist/index.js  1.14 kB │ gzip: 0.55 kB
22
- dist/index-9fb68c18.js  118.52 kB │ gzip: 31.78 kB
23
- dist/index-d69c3138.js 1,449.26 kB │ gzip: 360.64 kB
24
- dist/index.umd.cjs 1,082.62 kB │ gzip: 327.97 kB
25
- ✓ built in 23.78s
21
+ dist/index.js  1.17 kB │ gzip: 0.56 kB
22
+ dist/index-71c4fbd6.js  118.52 kB │ gzip: 31.78 kB
23
+ dist/index-37291b06.js 1,449.27 kB │ gzip: 360.65 kB
24
+ dist/index.umd.cjs 1,082.64 kB │ gzip: 327.96 kB
25
+ ✓ built in 24.49s
@@ -1,2 +1,2 @@
1
1
  import { type WebchatState } from '../stores';
2
- export declare function useWebchatStoreContext<T>(selector: (state: WebchatState) => T): T;
2
+ export declare function useWebchatStore<T>(selector: (state: WebchatState) => T): T;
@@ -19404,7 +19404,7 @@ O(YO, "hasDefinitions");
19404
19404
  async function JO(e, { cwd: t, $refOptions: n }) {
19405
19405
  if (mr("green", "dereferencer", "Dereferencing input schema:", t, e), typeof process > "u")
19406
19406
  throw new Error("process is not defined");
19407
- const r = await import("./index-9fb68c18.js").then((s) => s.i), i = new r.$RefParser(), o = /* @__PURE__ */ new WeakMap(), a = await i.dereference(t, e, le(U({}, n), {
19407
+ const r = await import("./index-71c4fbd6.js").then((s) => s.i), i = new r.$RefParser(), o = /* @__PURE__ */ new WeakMap(), a = await i.dereference(t, e, le(U({}, n), {
19408
19408
  dereference: le(U({}, n.dereference), {
19409
19409
  onDereference(s, l) {
19410
19410
  o.set(l, s);
@@ -44437,12 +44437,13 @@ export {
44437
44437
  UC as A,
44438
44438
  vd as B,
44439
44439
  YSe as C,
44440
- jCe as D,
44441
- qCe as E,
44440
+ FCe as D,
44441
+ jCe as E,
44442
44442
  Zke as F,
44443
- UCe as G,
44443
+ qCe as G,
44444
44444
  XAe as H,
44445
- Gke as I,
44445
+ UCe as I,
44446
+ Gke as J,
44446
44447
  QAe as L,
44447
44448
  TC as M,
44448
44449
  BAe as R,
@@ -44451,27 +44452,27 @@ export {
44451
44452
  Ma as a,
44452
44453
  B0e as b,
44453
44454
  lt as c,
44454
- JSe as d,
44455
- QSe as e,
44456
- OAe as f,
44455
+ at as d,
44456
+ JSe as e,
44457
+ QSe as f,
44457
44458
  Wb as g,
44458
- Hke as h,
44459
- ICe as i,
44460
- ks as j,
44461
- GSe as k,
44462
- eEe as l,
44463
- Uke as m,
44464
- j0e as n,
44465
- q0e as o,
44466
- ql as p,
44467
- PCe as q,
44459
+ OAe as h,
44460
+ Hke as i,
44461
+ ICe as j,
44462
+ ks as k,
44463
+ GSe as l,
44464
+ eEe as m,
44465
+ Uke as n,
44466
+ j0e as o,
44467
+ q0e as p,
44468
+ ql as q,
44468
44469
  ib as r,
44469
- NCe as s,
44470
- DCe as t,
44470
+ PCe as s,
44471
+ NCe as t,
44471
44472
  jke as u,
44472
- Me as v,
44473
- xv as w,
44474
- MCe as x,
44475
- LCe as y,
44476
- FCe as z
44473
+ DCe as v,
44474
+ Me as w,
44475
+ xv as x,
44476
+ MCe as y,
44477
+ LCe as z
44477
44478
  };
@@ -1,4 +1,4 @@
1
- import { g as pi, c as _, r as Se, a as hi } from "./index-d69c3138.js";
1
+ import { g as pi, c as _, r as Se, a as hi } from "./index-37291b06.js";
2
2
  function gi(e, r) {
3
3
  for (var n = 0; n < r.length; n++) {
4
4
  const t = r[n];
package/dist/index.d.ts CHANGED
@@ -4,4 +4,4 @@ export * from './types';
4
4
  export * from './schemas';
5
5
  export { type WebchatClient, type WebchatEvents } from './client';
6
6
  export { getClient } from './get-client';
7
- export { useClient } from './hooks';
7
+ export { useClient, useWebchatStore } from './hooks';
package/dist/index.js CHANGED
@@ -1,41 +1,42 @@
1
- import { A as t, B as r, C as m, e as i, d as c, f as n, F as h, H as p, h as d, L as S, M as l, i as C, j as u, l as P, R as g, U as v, W as y, m as M, w as b, x as f, E as T, G as k, q as B, t as I, p as F, n as H, b as L, I as R, o as W, s as w, k as x, z as A, v as U, y as j, u as q, D as z } from "./index-d69c3138.js";
1
+ import { A as t, B as r, C as m, f as c, e as i, h as n, F as h, H as p, i as S, L as d, M as l, j as u, k as C, m as P, R as b, U as g, W as v, n as y, x as M, y as f, G as T, I as k, s as B, v as I, q as W, o as F, b as H, J as L, p as R, t as w, l as x, D as A, w as U, z as j, u as q, d as z, E as D } from "./index-37291b06.js";
2
2
  import "react";
3
3
  import "react-dom";
4
4
  export {
5
5
  t as Avatar,
6
6
  r as Block,
7
7
  m as Composer,
8
- i as ComposerButton,
9
- c as ComposerInput,
8
+ c as ComposerButton,
9
+ i as ComposerInput,
10
10
  n as Container,
11
11
  h as Fab,
12
12
  p as Header,
13
- d as HeaderRoot,
14
- S as LoadingIndicator,
13
+ S as HeaderRoot,
14
+ d as LoadingIndicator,
15
15
  l as Message,
16
- C as MessageList,
17
- u as Modal,
16
+ u as MessageList,
17
+ C as Modal,
18
18
  P as ModalProvider,
19
- g as RestartConversation,
20
- v as UploadButton,
21
- y as Webchat,
22
- M as WebchatProvider,
23
- b as avatarThemeSchema,
19
+ b as RestartConversation,
20
+ g as UploadButton,
21
+ v as Webchat,
22
+ y as WebchatProvider,
23
+ M as avatarThemeSchema,
24
24
  f as blockThemeSchema,
25
25
  T as clientModePropsSchema,
26
26
  k as configPropsSchema,
27
27
  B as configurationSchema,
28
28
  I as cssStyleSchema,
29
- F as descriptionItemSchema,
30
- H as fileTypes,
31
- L as getClient,
32
- R as initPropsSchema,
33
- W as isFileType,
29
+ W as descriptionItemSchema,
30
+ F as fileTypes,
31
+ H as getClient,
32
+ L as initPropsSchema,
33
+ R as isFileType,
34
34
  w as markdownTypeSchema,
35
35
  x as renderers,
36
36
  A as statePropsSchema,
37
37
  U as styleOptionSchema,
38
38
  j as themeSchema,
39
39
  q as useClient,
40
- z as userPropsSchema
40
+ z as useWebchatStore,
41
+ D as userPropsSchema
41
42
  };