@eloquentai/chat-sdk 0.18.0 → 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] = "04bd4661-2a1e-416d-a71c-333ef258ba18", e._sentryDebugIdIdentifier = "sentry-dbid-04bd4661-2a1e-416d-a71c-333ef258ba18");
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,9 +10610,9 @@ 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: "66722e6deb006875b45d4ac9a0332b6358ae12d0" };
10613
+ e.SENTRY_RELEASE = { id: "945d9ddebf488d49c44d3bc3ec5b709ee19b3629" };
10614
10614
  }
10615
- const H_ = "production";
10615
+ const H_ = "development";
10616
10616
  $_({
10617
10617
  dsn: void 0,
10618
10618
  environment: H_,
@@ -10892,7 +10892,7 @@ function X_() {
10892
10892
  return () => clearInterval(n);
10893
10893
  }, []), ua[e];
10894
10894
  }
10895
- const Q_ = "/assets/logo-waiting-simple.riv", Z_ = "https://cdn.eloquentai.co", ew = "https://chat.eloquentai.co", tw = Z_ + Q_;
10895
+ const Q_ = "/assets/logo-waiting-simple.riv", Z_ = "https://cdn.eloquentai.dev", ew = "https://chat.eloquentai.dev", tw = Z_ + Q_;
10896
10896
  function nw() {
10897
10897
  return ew;
10898
10898
  }
@@ -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
  }
@@ -12910,7 +12910,7 @@ function Sv() {
12910
12910
  return e || t;
12911
12911
  }
12912
12912
  function Ev() {
12913
- return Bs() && typeof process.env == "object" && "VITE_ENVIRONMENT=prod tsc -b && vite build --mode prod".startsWith("ng ") || !1;
12913
+ return Bs() && typeof process.env == "object" && "VITE_ENVIRONMENT=dev tsc -b && vite build --mode dev".startsWith("ng ") || !1;
12914
12914
  }
12915
12915
  function xv() {
12916
12916
  return typeof navigator < "u" && typeof navigator.product < "u" && navigator.product === "ReactNative";