@eloquentai/chat-sdk 0.29.2-dev → 0.30.0-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.
@@ -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] = "450456c4-8737-4f02-98be-676231550d8b", e._sentryDebugIdIdentifier = "sentry-dbid-450456c4-8737-4f02-98be-676231550d8b");
9
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "e8dc4682-4ad0-4643-912c-06765d423f04", e._sentryDebugIdIdentifier = "sentry-dbid-e8dc4682-4ad0-4643-912c-06765d423f04");
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: "686c6afa9d515f36852fe7e44940b6ac970dd4c0" };
14
+ e.SENTRY_RELEASE = { id: "788e67f86dd5e4b737db89696133320f839c84ec" };
15
15
  }
16
16
  if (typeof window < "u") {
17
17
  const e = "development";
18
- import("./index-g833PbIu.js").then((t) => {
18
+ import("./index-uhtjGgSM.js").then((t) => {
19
19
  t.init({
20
20
  dsn: void 0,
21
21
  environment: e,
@@ -23205,6 +23205,12 @@ function TC() {
23205
23205
  const m = e.messages?.length ?? 0, y = m < i.current;
23206
23206
  i.current = m, r.current ? (p("instant"), r.current = !1) : y ? (a(!1), l(!1), p("instant")) : s || p();
23207
23207
  }, [e.messages, s]), et(() => {
23208
+ if (!e.isChatClosed) return;
23209
+ const m = setTimeout(() => {
23210
+ p("smooth");
23211
+ }, 500);
23212
+ return () => clearTimeout(m);
23213
+ }, [e.isChatClosed]), et(() => {
23208
23214
  const m = n.current?.querySelector(
23209
23215
  "div.chat-interface-body"
23210
23216
  );
@@ -30728,4 +30734,4 @@ export {
30728
30734
  LN as r,
30729
30735
  mN as u
30730
30736
  };
30731
- //# sourceMappingURL=index-Bdd4HwVN.js.map
30737
+ //# sourceMappingURL=index-DCZAyODz.js.map