@eloquentai/chat-sdk 0.21.4-dev → 0.21.5

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 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] = "4ae2ca98-6bad-408e-b66e-0b0cc685f0e6", e._sentryDebugIdIdentifier = "sentry-dbid-4ae2ca98-6bad-408e-b66e-0b0cc685f0e6");
18
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "c270695b-6444-40c1-b03a-e874aaa3e1a9", e._sentryDebugIdIdentifier = "sentry-dbid-c270695b-6444-40c1-b03a-e874aaa3e1a9");
19
19
  } catch {
20
20
  }
21
21
  const ee = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, Xt = "9.30.0", ie = globalThis;
@@ -10610,12 +10610,12 @@ 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: "b7e3d58db5f2e985a41cebf6f947c91faaaacf22" };
10613
+ e.SENTRY_RELEASE = { id: "6b0ec7b6410836b79cab71a9bdc453c38b00e693" };
10614
10614
  }
10615
10615
  function nh(e) {
10616
10616
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
10617
10617
  }
10618
- const ix = "development";
10618
+ const ix = "production";
10619
10619
  rx({
10620
10620
  dsn: void 0,
10621
10621
  environment: ix,
@@ -10884,7 +10884,7 @@ function ao() {
10884
10884
  );
10885
10885
  return e;
10886
10886
  }
10887
- const px = "/assets/logo-waiting-simple.riv", mx = "https://cdn.eloquentai.dev", gx = "https://chat.eloquentai.dev", yx = mx + px;
10887
+ const px = "/assets/logo-waiting-simple.riv", mx = "https://cdn.eloquentai.co", gx = "https://chat.eloquentai.co", yx = mx + px;
10888
10888
  function bx() {
10889
10889
  return gx;
10890
10890
  }
@@ -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 = {}) {
@@ -22166,7 +22166,7 @@ function wA() {
22166
22166
  return e || t;
22167
22167
  }
22168
22168
  function SA() {
22169
- return nl() && typeof process.env == "object" && "VITE_ENVIRONMENT=dev tsc -b && vite build --mode dev".startsWith("ng ") || !1;
22169
+ return nl() && typeof process.env == "object" && "VITE_ENVIRONMENT=prod tsc -b && vite build --mode prod".startsWith("ng ") || !1;
22170
22170
  }
22171
22171
  function _A() {
22172
22172
  return typeof navigator < "u" && typeof navigator.product < "u" && navigator.product === "ReactNative";
@@ -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), () => {