@botpress/webchat 1.3.7 → 1.3.9

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@1.3.7 build /home/runner/work/echo/echo/packages/webchat-frontend
2
+ > @botpress/webchat@1.3.9 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 13327ms.
19
+ [vite:dts] Declaration files built in 13751ms.
20
20
  
21
21
  dist/index.js  1.09 kB │ gzip: 0.52 kB
22
- dist/index-ebf49348.js  118.52 kB │ gzip: 31.78 kB
23
- dist/index-5666ba1d.js 1,296.85 kB │ gzip: 318.15 kB
24
- dist/index.umd.cjs 987.40 kB │ gzip: 291.25 kB
25
- ✓ built in 22.30s
22
+ dist/index-de8cc2d3.js  118.52 kB │ gzip: 31.78 kB
23
+ dist/index-8e9a70c6.js 1,297.30 kB │ gzip: 318.23 kB
24
+ dist/index.umd.cjs 987.65 kB │ gzip: 291.31 kB
25
+ ✓ built in 22.86s
@@ -22705,7 +22705,7 @@ w(kE, "hasDefinitions");
22705
22705
  async function TE(e, { cwd: t, $refOptions: n }) {
22706
22706
  if (xn("green", "dereferencer", "Dereferencing input schema:", t, e), typeof process > "u")
22707
22707
  throw new Error("process is not defined");
22708
- const r = await import("./index-ebf49348.js").then((s) => s.i), i = new r.$RefParser(), a = /* @__PURE__ */ new WeakMap(), o = await i.dereference(t, e, K(R({}, n), {
22708
+ const r = await import("./index-de8cc2d3.js").then((s) => s.i), i = new r.$RefParser(), a = /* @__PURE__ */ new WeakMap(), o = await i.dereference(t, e, K(R({}, n), {
22709
22709
  dereference: K(R({}, n.dereference), {
22710
22710
  onDereference(s, l) {
22711
22711
  a.set(l, s);
@@ -39390,7 +39390,7 @@ const bue = hue, wue = gue, xue = yue, _ue = (e) => /* @__PURE__ */ A.createElem
39390
39390
  Actions: Rue,
39391
39391
  DescriptionItem: Pue
39392
39392
  }), Iue = () => {
39393
- var i, a, o, s, l, c, u, d, p, f, h, m, y, g, v, b, T;
39393
+ var i, a, o, s, l, c, u, d, p, f, h, m, y, g, v, b, T, O, S;
39394
39394
  const {
39395
39395
  configuration: e,
39396
39396
  closeWindow: t,
@@ -39400,59 +39400,63 @@ const bue = hue, wue = gue, xue = yue, _ue = (e) => /* @__PURE__ */ A.createElem
39400
39400
  /* @__PURE__ */ U.jsxs(Gn.Content, { children: [
39401
39401
  /* @__PURE__ */ U.jsx(Gn.Avatar, { src: e.botAvatar, children: e.botName || "Bot" }),
39402
39402
  /* @__PURE__ */ U.jsx(Gn.Title, { children: e.botName || "Bot" }),
39403
- /* @__PURE__ */ U.jsx(Gn.Description, { children: e.botDescription }),
39403
+ e.botDescription && /* @__PURE__ */ U.jsx(Gn.Description, { children: e.botDescription }),
39404
39404
  /* @__PURE__ */ U.jsxs(Gn.Actions, { children: [
39405
39405
  /* @__PURE__ */ U.jsx(Sue, {}),
39406
39406
  t && /* @__PURE__ */ U.jsx(Eue, {})
39407
39407
  ] })
39408
39408
  ] }),
39409
39409
  /* @__PURE__ */ U.jsxs(Gn.ExpandedContent, { children: [
39410
- /* @__PURE__ */ U.jsx(
39411
- Gn.DescriptionItem,
39412
- {
39413
- "data-email": "",
39414
- icon: XL,
39415
- title: (c = e.email) == null ? void 0 : c.title,
39416
- link: (u = e.email) == null ? void 0 : u.link
39417
- }
39418
- ),
39419
- /* @__PURE__ */ U.jsx(
39420
- Gn.DescriptionItem,
39421
- {
39422
- "data-phone": "",
39423
- icon: sj,
39424
- title: (d = e.phone) == null ? void 0 : d.title,
39425
- link: (p = e.phone) == null ? void 0 : p.link
39426
- }
39427
- ),
39428
- /* @__PURE__ */ U.jsx(
39429
- Gn.DescriptionItem,
39430
- {
39431
- "data-website": "",
39432
- link: (f = e.website) == null ? void 0 : f.link,
39433
- icon: tj,
39434
- title: (h = e.website) == null ? void 0 : h.title
39435
- }
39436
- ),
39437
- /* @__PURE__ */ U.jsx(
39438
- Gn.DescriptionItem,
39439
- {
39440
- "data-terms": "",
39441
- link: (m = e.termsOfService) == null ? void 0 : m.link,
39442
- icon: GL,
39443
- title: (y = e.termsOfService) == null ? void 0 : y.title
39444
- }
39445
- ),
39446
- /* @__PURE__ */ U.jsx(
39447
- Gn.DescriptionItem,
39448
- {
39449
- "data-privacy": "",
39450
- link: (g = e.privacyPolicy) == null ? void 0 : g.link,
39451
- icon: ij,
39452
- title: (v = e.privacyPolicy) == null ? void 0 : v.title
39453
- }
39454
- ),
39455
- /* @__PURE__ */ U.jsx("div", { ...(T = (b = n == null ? void 0 : n.expandedContent) == null ? void 0 : b.descriptionItems) == null ? void 0 : T.poweredBy, children: "⚡ by Botpress" })
39410
+ /* @__PURE__ */ U.jsxs("div", { "data-links": "", ...(c = n == null ? void 0 : n.expandedContent) == null ? void 0 : c.group, children: [
39411
+ /* @__PURE__ */ U.jsx(
39412
+ Gn.DescriptionItem,
39413
+ {
39414
+ "data-email": "",
39415
+ icon: XL,
39416
+ title: (u = e.email) == null ? void 0 : u.title,
39417
+ link: (d = e.email) == null ? void 0 : d.link
39418
+ }
39419
+ ),
39420
+ /* @__PURE__ */ U.jsx(
39421
+ Gn.DescriptionItem,
39422
+ {
39423
+ "data-phone": "",
39424
+ icon: sj,
39425
+ title: (p = e.phone) == null ? void 0 : p.title,
39426
+ link: (f = e.phone) == null ? void 0 : f.link
39427
+ }
39428
+ ),
39429
+ /* @__PURE__ */ U.jsx(
39430
+ Gn.DescriptionItem,
39431
+ {
39432
+ "data-website": "",
39433
+ link: (h = e.website) == null ? void 0 : h.link,
39434
+ icon: tj,
39435
+ title: (m = e.website) == null ? void 0 : m.title
39436
+ }
39437
+ )
39438
+ ] }),
39439
+ /* @__PURE__ */ U.jsxs("div", { "data-legal": "", ...(y = n == null ? void 0 : n.expandedContent) == null ? void 0 : y.group, children: [
39440
+ /* @__PURE__ */ U.jsx(
39441
+ Gn.DescriptionItem,
39442
+ {
39443
+ "data-terms": "",
39444
+ link: (g = e.termsOfService) == null ? void 0 : g.link,
39445
+ icon: GL,
39446
+ title: (v = e.termsOfService) == null ? void 0 : v.title
39447
+ }
39448
+ ),
39449
+ /* @__PURE__ */ U.jsx(
39450
+ Gn.DescriptionItem,
39451
+ {
39452
+ "data-privacy": "",
39453
+ link: (b = e.privacyPolicy) == null ? void 0 : b.link,
39454
+ icon: ij,
39455
+ title: (T = e.privacyPolicy) == null ? void 0 : T.title
39456
+ }
39457
+ )
39458
+ ] }),
39459
+ /* @__PURE__ */ U.jsx("div", { ...(S = (O = n == null ? void 0 : n.expandedContent) == null ? void 0 : O.descriptionItems) == null ? void 0 : S.poweredBy, children: "⚡ by Botpress" })
39456
39460
  ] })
39457
39461
  ] });
39458
39462
  }, gfe = Gn, Mue = Bo(({ ...e }) => {
@@ -40590,6 +40594,7 @@ const C0 = 10 * 1e3, pde = Bo(({ scrollDownButton: e, ...t }) => {
40590
40594
  }),
40591
40595
  expandedContent: q.object({
40592
40596
  container: xe.optional(),
40597
+ group: xe.optional(),
40593
40598
  descriptionItems: q.object({
40594
40599
  container: xe.optional(),
40595
40600
  icon: xe.optional(),
@@ -1,4 +1,4 @@
1
- import { g as pi, c as _, r as Se, a as hi } from "./index-5666ba1d.js";
1
+ import { g as pi, c as _, r as Se, a as hi } from "./index-8e9a70c6.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.js CHANGED
@@ -1,4 +1,4 @@
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 C, k as u, m as P, R as b, W as g, n as v, v as M, w as f, D as k, E as y, p as W, s as x, o as B, b as H, G as I, q as L, l as R, y as T, t as w, x as A, d as F, u as j, z as q } from "./index-5666ba1d.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 C, k as u, m as P, R as b, W as g, n as v, v as M, w as f, D as k, E as y, p as W, s as x, o as B, b as H, G as I, q as L, l as R, y as T, t as w, x as A, d as F, u as j, z as q } from "./index-8e9a70c6.js";
2
2
  import "react";
3
3
  import "react-dom";
4
4
  export {