@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.
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] = "
|
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: "
|
10613
|
+
e.SENTRY_RELEASE = { id: "945d9ddebf488d49c44d3bc3ec5b709ee19b3629" };
|
10614
10614
|
}
|
10615
|
-
const H_ = "
|
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.
|
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:
|
11624
|
-
isOpen:
|
11625
|
-
isMobile:
|
11626
|
-
}),
|
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: () =>
|
11631
|
-
onClose: () =>
|
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:
|
11638
|
-
!
|
11637
|
+
/* @__PURE__ */ m(cl, { isOpen: n, isMobile: r }),
|
11638
|
+
!a && /* @__PURE__ */ m(
|
11639
11639
|
nl,
|
11640
11640
|
{
|
11641
11641
|
className: "hidden invisible",
|
11642
|
-
onLoaded: () =>
|
11642
|
+
onLoaded: () => u(!0)
|
11643
11643
|
}
|
11644
11644
|
)
|
11645
11645
|
] });
|
11646
|
-
return /* @__PURE__ */ m(V_, { ...
|
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:
|
11652
|
+
dark: i?.mode === "dark"
|
11653
11653
|
}
|
11654
11654
|
),
|
11655
|
-
children:
|
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=
|
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";
|