@eloquentai/chat-sdk 0.25.11 → 0.25.12-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.
@@ -15,16 +15,16 @@ import { z as Z } from "zod";
15
15
  import Sl 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] = "946fb043-e9ce-438c-8e0a-b2c675cf4ee0", e._sentryDebugIdIdentifier = "sentry-dbid-946fb043-e9ce-438c-8e0a-b2c675cf4ee0");
18
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "cb78de1b-3880-4db0-93f6-dcf2feb1836b", e._sentryDebugIdIdentifier = "sentry-dbid-cb78de1b-3880-4db0-93f6-dcf2feb1836b");
19
19
  } catch {
20
20
  }
21
21
  {
22
22
  let e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
23
- e.SENTRY_RELEASE = { id: "638d24e73a09296a696925f866aa3cead8c6c2fd" };
23
+ e.SENTRY_RELEASE = { id: "bfe2ef75d4ab957fab5f7e63aac23bfdf9f1e35d" };
24
24
  }
25
25
  if (typeof window < "u") {
26
- const e = "production";
27
- import("./index-CrW-I_nj.js").then((t) => {
26
+ const e = "development";
27
+ import("./index-CKT1T6Kt.js").then((t) => {
28
28
  t.init({
29
29
  dsn: void 0,
30
30
  environment: e,
@@ -300,7 +300,7 @@ function gn() {
300
300
  );
301
301
  return e;
302
302
  }
303
- const Rl = { BASE_URL: "/", DEV: !1, MODE: "prod", PROD: !0, SSR: !1, VITE_API_URL: "https://chat.eloquentai.co", VITE_CDN_URL: "https://cdn.eloquentai.co", VITE_ENVIRONMENT: "prod", VITE_REGION_API_URL: "https://region.eloquentai.co" }, Ol = "/assets/logo-waiting-simple.riv";
303
+ const Rl = { BASE_URL: "/", DEV: !1, MODE: "dev", PROD: !0, SSR: !1, VITE_API_URL: "https://chat.eloquentai.dev", VITE_CDN_URL: "https://cdn.eloquentai.dev", VITE_ENVIRONMENT: "dev", VITE_REGION_API_URL: "https://region.eloquentai.dev" }, Ol = "/assets/logo-waiting-simple.riv";
304
304
  function Sr(e) {
305
305
  return typeof window > "u" || typeof import.meta > "u" ? "" : Rl[e] || "";
306
306
  }
@@ -13878,7 +13878,7 @@ function Hg() {
13878
13878
  return e || t;
13879
13879
  }
13880
13880
  function Vg() {
13881
- return Kr() && typeof process.env == "object" && "VITE_ENVIRONMENT=prod tsc -b && vite build --mode prod".startsWith("ng ") || !1;
13881
+ return Kr() && typeof process.env == "object" && "VITE_ENVIRONMENT=dev tsc -b && vite build --mode dev".startsWith("ng ") || !1;
13882
13882
  }
13883
13883
  function $g() {
13884
13884
  return typeof navigator < "u" && typeof navigator.product < "u" && navigator.product === "ReactNative";
@@ -16486,8 +16486,8 @@ const bw = ({
16486
16486
  clearError: () => n(null)
16487
16487
  };
16488
16488
  return /* @__PURE__ */ x(fs.Provider, { value: c, children: e });
16489
- };
16490
- function yw({
16489
+ }, yw = 100;
16490
+ function ww({
16491
16491
  appId: e,
16492
16492
  userId: t,
16493
16493
  userName: n,
@@ -16568,7 +16568,10 @@ function yw({
16568
16568
  style: {
16569
16569
  display: D || S ? "block" : "none",
16570
16570
  width: k ? "100vw" : "400px",
16571
- height: k ? "100vh" : "700px",
16571
+ // 100dvh accounts for mobile browser chrome (e.g. address bar); 100vh fallback for older browsers
16572
+ "--chat-mobile-viewport-height": "100dvh",
16573
+ height: k ? "var(--chat-mobile-viewport-height, 100vh)" : "700px",
16574
+ maxHeight: k ? "var(--chat-mobile-viewport-height, 100vh)" : `calc(100% - ${yw}px)`,
16572
16575
  border: "none",
16573
16576
  zIndex: 2147483e3,
16574
16577
  position: "fixed",
@@ -16584,6 +16587,7 @@ function yw({
16584
16587
  bottom: 0,
16585
16588
  width: "100%",
16586
16589
  height: "100%",
16590
+ maxHeight: "100%",
16587
16591
  zIndex: 0
16588
16592
  } : {}
16589
16593
  },
@@ -16659,19 +16663,19 @@ function yw({
16659
16663
  );
16660
16664
  return /* @__PURE__ */ x(Xe, { children: d ? O() : I ? /* @__PURE__ */ x(Mm, { container: I, children: O() }) : null });
16661
16665
  }
16662
- function ww(e) {
16663
- return /* @__PURE__ */ x(bw, { children: /* @__PURE__ */ x(gw, { children: /* @__PURE__ */ x(yw, { ...e }) }) });
16666
+ function xw(e) {
16667
+ return /* @__PURE__ */ x(bw, { children: /* @__PURE__ */ x(gw, { children: /* @__PURE__ */ x(ww, { ...e }) }) });
16664
16668
  }
16665
- function Rw(e, t) {
16669
+ function Ow(e, t) {
16666
16670
  return ((r, i, o) => {
16667
16671
  const a = Sl.createRoot(i);
16668
16672
  return a.render(/* @__PURE__ */ x(r, { ...o })), a.unmount;
16669
- })(ww, e, t);
16673
+ })(xw, e, t);
16670
16674
  }
16671
16675
  export {
16672
- ww as C,
16676
+ xw as C,
16673
16677
  Pm as a,
16674
16678
  oa as g,
16675
- Rw as r
16679
+ Ow as r
16676
16680
  };
16677
- //# sourceMappingURL=index-Dh2wxFxZ.js.map
16681
+ //# sourceMappingURL=index-BcQIFJf7.js.map