@opencx/widget 3.0.96 → 3.0.98

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/dist/designs.js CHANGED
@@ -2,7 +2,7 @@ import { Fragment as Wr, jsx as g, jsxs as U } from "react/jsx-runtime";
2
2
  import * as Yn from "@radix-ui/react-popover";
3
3
  import * as We from "react";
4
4
  import St, { forwardRef as jr, useState as Ne, useImperativeHandle as xu, useRef as dn, useCallback as _u, useMemo as Vr, useEffect as Rt, memo as yu, cloneElement as Au, createElement as ki } from "react";
5
- import { a as ge, u as ot, d as Et, g as Tt, i as Cu, c as Qa, h as Ze, e as qn, j as vt, l as Ga, b as ku, W as Iu, k as Nu } from "./useModes-Dm1CBDor.js";
5
+ import { a as ge, u as ot, d as Et, g as Tt, i as Cu, c as Qa, h as Ze, e as qn, j as vt, l as Ga, b as ku, W as Iu, k as Nu } from "./useModes-CAWYsYJp.js";
6
6
  import * as He from "@radix-ui/react-dialog";
7
7
  import { X as Su, PaperclipIcon as Ou, ImageIcon as Lu, CircleDashed as Du, ArrowUpIcon as Ru, CircleCheckIcon as Xa, XIcon as Qr, AlertCircle as vu, Loader2 as Pu, FileAudio2Icon as Mu, FileVideo2Icon as Bu, FileIcon as Fu, SquareXIcon as Hu, SquareCheckBigIcon as Uu, SquareCheckIcon as zu, ShrinkIcon as Yu, Minimize2Icon as qu, MinimizeIcon as Wu, Maximize2Icon as ju, MaximizeIcon as Vu, ExpandIcon as Qu, CircleXIcon as Gu, CircleCheckBigIcon as Xu, CheckCheckIcon as Ku, CheckIcon as $u, CircleDashedIcon as Ju, ChevronLeftIcon as Zu, LoaderIcon as el, SendHorizontal as tl, UserRoundIcon as nl, ChevronRightIcon as rl, ChevronDownIcon as il } from "lucide-react";
8
8
  import { clsx as al } from "clsx";
@@ -16,7 +16,7 @@ import * as hn from "@radix-ui/react-tooltip";
16
16
  import Ii from "tinycolor2";
17
17
  import { i as Be } from "./is-exhaustive-DGJzQK69.js";
18
18
  import { useDropzone as ll } from "react-dropzone";
19
- import { r as Ar } from "./widget.ctx-CfUvw50X.js";
19
+ import { r as Ar } from "./widget.ctx-B-jCTG4Y.js";
20
20
  import cl from "react-use/lib/useAsyncFn";
21
21
  import { z as rr } from "zod";
22
22
  function Ni(e, t) {
@@ -16431,9 +16431,9 @@ function Sb() {
16431
16431
  ] }) });
16432
16432
  }
16433
16433
  function Ob() {
16434
- var a;
16435
- const { initialQuestions: e, initialQuestionsPosition: t } = ge(), { sessionState: n } = Tt(), { messagesState: r } = Et(), i = r.messages.length === 0;
16436
- return /* @__PURE__ */ g("footer", { children: /* @__PURE__ */ g("div", { children: /* @__PURE__ */ g(Ce, { mode: "wait", children: n.session && !((a = n.session) != null && a.isOpened) ? /* @__PURE__ */ g(
16434
+ var s;
16435
+ const { initialQuestions: e, initialQuestionsPosition: t, thisWasHelpfulOrNot: n } = ge(), { sessionState: r } = Tt(), { messagesState: i } = Et(), a = i.messages.length === 0;
16436
+ return /* @__PURE__ */ g("footer", { children: /* @__PURE__ */ g("div", { children: /* @__PURE__ */ g(Ce, { mode: "wait", children: r.session && !((s = r.session) != null && s.isOpened) ? /* @__PURE__ */ g(
16437
16437
  ne,
16438
16438
  {
16439
16439
  className: "overflow-hidden",
@@ -16455,13 +16455,13 @@ function Ob() {
16455
16455
  exit: { height: 0 }
16456
16456
  },
16457
16457
  children: [
16458
- r.lastAIResMightSolveUserIssue && /* @__PURE__ */ g(kb, {}),
16459
- i && e && t !== "below-initial-messages" && /* @__PURE__ */ g("div", { className: "flex items-center flex-row justify-end gap-2 flex-wrap px-2", children: e == null ? void 0 : e.map((s, u) => /* @__PURE__ */ g(
16458
+ i.lastAIResMightSolveUserIssue && (n == null ? void 0 : n.enabled) !== !1 && /* @__PURE__ */ g(kb, {}),
16459
+ a && e && t !== "below-initial-messages" && /* @__PURE__ */ g("div", { className: "flex items-center flex-row justify-end gap-2 flex-wrap px-2", children: e == null ? void 0 : e.map((u, l) => /* @__PURE__ */ g(
16460
16460
  _i,
16461
16461
  {
16462
- suggestion: s
16462
+ suggestion: u
16463
16463
  },
16464
- `${s}-${u}`
16464
+ `${u}-${l}`
16465
16465
  )) }),
16466
16466
  /* @__PURE__ */ g(Nb, {})
16467
16467
  ]