@eloquentai/chat-sdk 0.18.1-dev → 0.19.0-dev

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.
@@ -9,7 +9,7 @@ export interface ChatInterfaceProps {
9
9
  assistantLogo?: string;
10
10
  legalText?: string;
11
11
  closeButton: boolean;
12
- cleanChatButton: boolean;
12
+ cleanChatButton?: boolean;
13
13
  collectUserFeedback?: boolean;
14
14
  suggestedMessages?: boolean;
15
15
  title?: string;
package/dist/index.mjs CHANGED
@@ -15,7 +15,7 @@ import { z as se } from "zod";
15
15
  import ld from "react-dom/client";
16
16
  try {
17
17
  let e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {}, t = new e.Error().stack;
18
- t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "002c5d8b-dff6-4888-bfab-ba74c35c5e70", e._sentryDebugIdIdentifier = "sentry-dbid-002c5d8b-dff6-4888-bfab-ba74c35c5e70");
18
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "ae85dd08-f70e-4c6a-b0f6-39d90ef630be", e._sentryDebugIdIdentifier = "sentry-dbid-ae85dd08-f70e-4c6a-b0f6-39d90ef630be");
19
19
  } catch {
20
20
  }
21
21
  const U = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, st = "9.30.0", $ = globalThis;
@@ -10610,7 +10610,7 @@ function $_(e) {
10610
10610
  }
10611
10611
  {
10612
10612
  let e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
10613
- e.SENTRY_RELEASE = { id: "09fc5a4522963f9629f0ac416cc1507bbf770f6f" };
10613
+ e.SENTRY_RELEASE = { id: "945d9ddebf488d49c44d3bc3ec5b709ee19b3629" };
10614
10614
  }
10615
10615
  const H_ = "development";
10616
10616
  $_({
@@ -11620,39 +11620,39 @@ function cl({
11620
11620
  ] }, "chat-interface-sekelton");
11621
11621
  }
11622
11622
  function gw(e) {
11623
- const { isOpen: t = !1, isMobile: n, onCleanChat: r, onClose: o, theme: s } = e, i = Qo(t, 10), [c, a] = z(!1), u = al({
11624
- isOpen: i,
11625
- isMobile: n
11626
- }), l = () => c ? /* @__PURE__ */ D(Ns, { className: u, children: [
11623
+ const t = { cleanChatButton: !0, ...e }, { isOpen: n = !1, isMobile: r, onCleanChat: o, onClose: s, theme: i } = t, c = Qo(n, 10), [a, u] = z(!1), l = al({
11624
+ isOpen: c,
11625
+ isMobile: r
11626
+ }), d = () => a ? /* @__PURE__ */ D(Ns, { className: l, children: [
11627
11627
  /* @__PURE__ */ m(
11628
11628
  mw,
11629
11629
  {
11630
- onCleanChat: () => r?.(),
11631
- onClose: () => o?.()
11630
+ onCleanChat: () => o?.(),
11631
+ onClose: () => s?.()
11632
11632
  }
11633
11633
  ),
11634
11634
  /* @__PURE__ */ m(aw, {}),
11635
11635
  /* @__PURE__ */ m(fw, {})
11636
11636
  ] }) : /* @__PURE__ */ D(xt, { children: [
11637
- /* @__PURE__ */ m(cl, { isOpen: t, isMobile: n }),
11638
- !c && /* @__PURE__ */ m(
11637
+ /* @__PURE__ */ m(cl, { isOpen: n, isMobile: r }),
11638
+ !a && /* @__PURE__ */ m(
11639
11639
  nl,
11640
11640
  {
11641
11641
  className: "hidden invisible",
11642
- onLoaded: () => a(!0)
11642
+ onLoaded: () => u(!0)
11643
11643
  }
11644
11644
  )
11645
11645
  ] });
11646
- return /* @__PURE__ */ m(V_, { ...s, children: /* @__PURE__ */ m(ow, { ...e, children: /* @__PURE__ */ m(
11646
+ return /* @__PURE__ */ m(V_, { ...i, children: /* @__PURE__ */ m(ow, { ...t, children: /* @__PURE__ */ m(
11647
11647
  "main",
11648
11648
  {
11649
11649
  className: A(
11650
11650
  "eloquent-chat w-full h-full flex flex-col justify-end items-end",
11651
11651
  {
11652
- dark: s?.mode === "dark"
11652
+ dark: i?.mode === "dark"
11653
11653
  }
11654
11654
  ),
11655
- children: l()
11655
+ children: d()
11656
11656
  }
11657
11657
  ) }) });
11658
11658
  }