@eloquentai/chat-sdk 0.21.3-dev → 0.21.4-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 +10 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -15,7 +15,7 @@ import { z as ge } from "zod";
|
|
15
15
|
import Tm 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] = "4ae2ca98-6bad-408e-b66e-0b0cc685f0e6", e._sentryDebugIdIdentifier = "sentry-dbid-4ae2ca98-6bad-408e-b66e-0b0cc685f0e6");
|
19
19
|
} catch {
|
20
20
|
}
|
21
21
|
const ee = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, Xt = "9.30.0", ie = globalThis;
|
@@ -10610,7 +10610,7 @@ function rx(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: "b7e3d58db5f2e985a41cebf6f947c91faaaacf22" };
|
10614
10614
|
}
|
10615
10615
|
function nh(e) {
|
10616
10616
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
@@ -24563,18 +24563,19 @@ function jO({
|
|
24563
24563
|
function WO(e) {
|
24564
24564
|
const [t, n] = le(!1), [r, i] = le(
|
24565
24565
|
null
|
24566
|
-
), o = e ?? t;
|
24566
|
+
), o = e ?? t, s = typeof window > "u";
|
24567
24567
|
return Ae(() => {
|
24568
|
-
const
|
24568
|
+
const a = () => {
|
24569
24569
|
n(window.innerWidth <= 640);
|
24570
24570
|
};
|
24571
|
-
return
|
24571
|
+
return a(), window.addEventListener("resize", a), () => window.removeEventListener("resize", a);
|
24572
24572
|
}, []), Ae(() => {
|
24573
|
-
|
24574
|
-
|
24575
|
-
|
24573
|
+
if (s) return;
|
24574
|
+
const a = document.createElement("div");
|
24575
|
+
return a.className = "eloquent-ai-chat-portal", a.style.position = "relative", a.style.zIndex = "30", document.body.appendChild(a), i(a), () => {
|
24576
|
+
a.parentElement && a.parentElement.removeChild(a);
|
24576
24577
|
};
|
24577
|
-
}, []), {
|
24578
|
+
}, [s]), {
|
24578
24579
|
isMobileScreen: t,
|
24579
24580
|
isMobile: o,
|
24580
24581
|
portalContainer: r
|