@eloquentai/chat-sdk 0.21.4-dev → 0.21.5-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 +5 -4
- 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] = "4026e009-84c4-42ac-9b14-34c85023319c", e._sentryDebugIdIdentifier = "sentry-dbid-4026e009-84c4-42ac-9b14-34c85023319c");
|
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: "38263f6cd16aa43af7057037a3a5e6db3238fbc8" };
|
10614
10614
|
}
|
10615
10615
|
function nh(e) {
|
10616
10616
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
@@ -20794,7 +20794,7 @@ class mR {
|
|
20794
20794
|
this.baseURL = t.baseURL, this.headers = {
|
20795
20795
|
"Content-Type": "application/json",
|
20796
20796
|
"ELO-APP-ID": t.appId,
|
20797
|
-
Origin: window.location.origin
|
20797
|
+
Origin: typeof window < "u" ? window.location.origin : ""
|
20798
20798
|
};
|
20799
20799
|
}
|
20800
20800
|
async request(t, n = {}) {
|
@@ -24565,11 +24565,12 @@ function WO(e) {
|
|
24565
24565
|
null
|
24566
24566
|
), o = e ?? t, s = typeof window > "u";
|
24567
24567
|
return Ae(() => {
|
24568
|
+
if (s) return;
|
24568
24569
|
const a = () => {
|
24569
24570
|
n(window.innerWidth <= 640);
|
24570
24571
|
};
|
24571
24572
|
return a(), window.addEventListener("resize", a), () => window.removeEventListener("resize", a);
|
24572
|
-
}, []), Ae(() => {
|
24573
|
+
}, [s]), Ae(() => {
|
24573
24574
|
if (s) return;
|
24574
24575
|
const a = document.createElement("div");
|
24575
24576
|
return a.className = "eloquent-ai-chat-portal", a.style.position = "relative", a.style.zIndex = "30", document.body.appendChild(a), i(a), () => {
|