@eloquentai/chat-sdk 0.20.0-dev → 0.20.1-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 Z } from "zod";
|
|
15
15
|
import pd 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] = "af19d459-e85d-4e63-8621-bfedad8a7e14", e._sentryDebugIdIdentifier = "sentry-dbid-af19d459-e85d-4e63-8621-bfedad8a7e14");
|
19
19
|
} catch {
|
20
20
|
}
|
21
21
|
const $ = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, st = "9.30.0", z = globalThis;
|
@@ -10610,7 +10610,7 @@ function j_(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: "26a5ff0586a9a6de335af76ab030514b51360f08" };
|
10614
10614
|
}
|
10615
10615
|
const q_ = "development";
|
10616
10616
|
j_({
|
@@ -11635,45 +11635,39 @@ function fl({
|
|
11635
11635
|
] }, "chat-interface-sekelton");
|
11636
11636
|
}
|
11637
11637
|
function bw(e) {
|
11638
|
-
const t =
|
11639
|
-
isOpen:
|
11640
|
-
isMobile:
|
11641
|
-
|
11642
|
-
onClose: s,
|
11643
|
-
theme: i
|
11644
|
-
} = t, c = es(n, 10), [a, u] = G(!1), l = dl({
|
11645
|
-
isOpen: c,
|
11646
|
-
isMobile: r
|
11647
|
-
}), d = () => a ? /* @__PURE__ */ F(As, { className: l, children: [
|
11638
|
+
const { isOpen: t = !1, isMobile: n, onCleanChat: r, onClose: o, theme: s } = e, i = es(t, 10), [c, a] = G(!1), u = dl({
|
11639
|
+
isOpen: i,
|
11640
|
+
isMobile: n
|
11641
|
+
}), l = () => c ? /* @__PURE__ */ F(As, { className: u, children: [
|
11648
11642
|
/* @__PURE__ */ m(
|
11649
11643
|
yw,
|
11650
11644
|
{
|
11651
|
-
onCleanChat: () =>
|
11652
|
-
onClose: () =>
|
11645
|
+
onCleanChat: () => r?.(),
|
11646
|
+
onClose: () => o?.()
|
11653
11647
|
}
|
11654
11648
|
),
|
11655
11649
|
/* @__PURE__ */ m(lw, {}),
|
11656
11650
|
/* @__PURE__ */ m(pw, {})
|
11657
11651
|
] }) : /* @__PURE__ */ F(xt, { children: [
|
11658
|
-
/* @__PURE__ */ m(fl, { isOpen:
|
11659
|
-
!
|
11652
|
+
/* @__PURE__ */ m(fl, { isOpen: t, isMobile: n }),
|
11653
|
+
!c && /* @__PURE__ */ m(
|
11660
11654
|
ol,
|
11661
11655
|
{
|
11662
11656
|
className: "hidden invisible",
|
11663
|
-
onLoaded: () =>
|
11657
|
+
onLoaded: () => a(!0)
|
11664
11658
|
}
|
11665
11659
|
)
|
11666
11660
|
] });
|
11667
|
-
return /* @__PURE__ */ m(X_, { ...
|
11661
|
+
return /* @__PURE__ */ m(X_, { ...s, children: /* @__PURE__ */ m(tw, { ...e, children: /* @__PURE__ */ m(
|
11668
11662
|
"main",
|
11669
11663
|
{
|
11670
11664
|
className: P(
|
11671
11665
|
"eloquent-chat w-full h-full flex flex-col justify-end items-end",
|
11672
11666
|
{
|
11673
|
-
dark:
|
11667
|
+
dark: s?.mode === "dark"
|
11674
11668
|
}
|
11675
11669
|
),
|
11676
|
-
children:
|
11670
|
+
children: l()
|
11677
11671
|
}
|
11678
11672
|
) }) });
|
11679
11673
|
}
|
@@ -15605,7 +15599,7 @@ function tE({
|
|
15605
15599
|
chatProps: n,
|
15606
15600
|
isMobile: r,
|
15607
15601
|
closeButton: o = !0,
|
15608
|
-
cleanChatButton: s = !
|
15602
|
+
cleanChatButton: s = !0,
|
15609
15603
|
initialOpen: i = !1,
|
15610
15604
|
INTERNAL_ONLY_CHAT_INTERFACE_ONLY: c = !1,
|
15611
15605
|
INTERNAL_ONLY_BLOCK_STYLE: a = !1,
|