@eloquentai/chat-sdk 0.28.29-dev → 0.29.0

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.
@@ -6,16 +6,16 @@ import Vg, { createPortal as gs } from "react-dom";
6
6
  import Wg from "react-dom/client";
7
7
  try {
8
8
  let e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {}, t = new e.Error().stack;
9
- t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "cf5e27b9-d750-40c3-b8d6-8eeae070d1f0", e._sentryDebugIdIdentifier = "sentry-dbid-cf5e27b9-d750-40c3-b8d6-8eeae070d1f0");
9
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "66e49bc1-139d-44f6-87bf-47aae6365435", e._sentryDebugIdIdentifier = "sentry-dbid-66e49bc1-139d-44f6-87bf-47aae6365435");
10
10
  } catch {
11
11
  }
12
12
  {
13
13
  let e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
14
- e.SENTRY_RELEASE = { id: "656831806f7f16fc67de83664701d004269c4d57" };
14
+ e.SENTRY_RELEASE = { id: "c2bce117517ea6f30fa349e9d2a09a93a81cca46" };
15
15
  }
16
16
  if (typeof window < "u") {
17
- const e = "development";
18
- import("./index-DmtNxqna.js").then((t) => {
17
+ const e = "production";
18
+ import("./index-DbJ2Yx5Y.js").then((t) => {
19
19
  t.init({
20
20
  dsn: void 0,
21
21
  environment: e,
@@ -11610,7 +11610,7 @@ function Tw() {
11610
11610
  })(Va)), Va;
11611
11611
  }
11612
11612
  var fi = Tw();
11613
- const Pw = { 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" }, Ow = "/assets/logo-waiting-simple.riv";
11613
+ const Pw = { 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" }, Ow = "/assets/logo-waiting-simple.riv";
11614
11614
  function ll(e) {
11615
11615
  return typeof window > "u" || typeof import.meta > "u" ? "" : Pw[e] || "";
11616
11616
  }
@@ -25117,7 +25117,7 @@ function cA() {
25117
25117
  return e || t;
25118
25118
  }
25119
25119
  function uA() {
25120
- return Nl() && typeof process.env == "object" && "VITE_ENVIRONMENT=dev tsc -b && vite build --mode dev".startsWith("ng ") || !1;
25120
+ return Nl() && typeof process.env == "object" && "VITE_ENVIRONMENT=prod tsc -b && vite build --mode prod".startsWith("ng ") || !1;
25121
25121
  }
25122
25122
  function fA() {
25123
25123
  return typeof navigator < "u" && typeof navigator.product < "u" && navigator.product === "ReactNative";
@@ -29985,7 +29985,8 @@ function lN({
29985
29985
  const B = dt(
29986
29986
  (W, J) => {
29987
29987
  W.response.content && u((oe) => {
29988
- if (oe.some((ne) => ne.isRatingRequest)) return oe;
29988
+ if (oe.some((ne) => ne.isRatingRequest) || s?.welcome_message && W.response.content === s.welcome_message)
29989
+ return oe;
29989
29990
  const k = [
29990
29991
  ...oe.filter((ne) => !ne.isThinking),
29991
29992
  {
@@ -29998,7 +29999,7 @@ function lN({
29998
29999
  return y(J, t, k, o), k;
29999
30000
  });
30000
30001
  },
30001
- [o, y, u, t]
30002
+ [s, o, y, u, t]
30002
30003
  ), ie = dt(() => {
30003
30004
  Z(), u((W) => W.filter((J) => !J.isThinking));
30004
30005
  }, [u, Z]), te = dt(() => {
@@ -30690,4 +30691,4 @@ export {
30690
30691
  EN as r,
30691
30692
  sN as u
30692
30693
  };
30693
- //# sourceMappingURL=index-3AnUoCpF.js.map
30694
+ //# sourceMappingURL=index-BvIaSpGp.js.map