@eloquentai/chat-sdk 0.33.16-dev → 0.34.2

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.
@@ -2,6 +2,8 @@ export declare enum ERROR_CODES {
2
2
  NETWORK_ERROR = 0,
3
3
  MAINTENANCE_MODE = 5031,
4
4
  CHAT_DISABLED = 5032,
5
+ RATE_LIMITED_NEW_CONVERSATION = 5033,
6
+ RATE_LIMITED_MESSAGE = 5034,
5
7
  TECHNICAL_DIFFICULTIES = 5001
6
8
  }
7
9
  export declare const ERROR_MESSAGES: Record<ERROR_CODES | string, string>;
package/dist/index.mjs CHANGED
@@ -1,16 +1,16 @@
1
1
  "use client";
2
- import { L as mt, c as He, u as wt, g as Fe, X as vt, d as Ae, e as bt, f as qt, h as yt, A as xt, E as kt, i as _t, S as Ct, C as St, T as It } from "./skeleton-BMlUaxMi.js";
2
+ import { L as mt, c as He, u as wt, g as Fe, X as vt, d as Ae, e as bt, f as qt, h as yt, A as xt, E as kt, i as _t, S as Ct, C as St, T as It } from "./skeleton-DbX99fKH.js";
3
3
  import { jsx as m, jsxs as _e, Fragment as Ge } from "react/jsx-runtime";
4
4
  import { useState as q, useEffect as Z, useMemo as Le, useRef as L, useCallback as v } from "react";
5
5
  import { createPortal as Ze } from "react-dom";
6
6
  import Et 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] = "31334120-d537-452b-8787-caa8fb4737c5", e._sentryDebugIdIdentifier = "sentry-dbid-31334120-d537-452b-8787-caa8fb4737c5");
9
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "214f92ca-5b0d-49ce-b44a-5626aa6f3fa5", e._sentryDebugIdIdentifier = "sentry-dbid-214f92ca-5b0d-49ce-b44a-5626aa6f3fa5");
10
10
  } catch {
11
11
  }
12
12
  if (typeof window < "u") {
13
- const e = "development";
13
+ const e = "production";
14
14
  import("./index-hFbiYJI3.js").then(({ init: t }) => {
15
15
  t({
16
16
  dsn: void 0,
@@ -75,13 +75,15 @@ function Mt({
75
75
  n(!0), c("entering");
76
76
  const d = setTimeout(() => {
77
77
  c("visible");
78
- }, 50), h = setTimeout(() => {
79
- c("exiting"), setTimeout(() => {
78
+ }, 50);
79
+ let h;
80
+ const u = setTimeout(() => {
81
+ c("exiting"), h = setTimeout(() => {
80
82
  o();
81
83
  }, 300);
82
84
  }, a);
83
85
  return () => {
84
- clearTimeout(d), clearTimeout(h);
86
+ clearTimeout(d), clearTimeout(u), clearTimeout(h);
85
87
  };
86
88
  } else {
87
89
  c("exiting");
@@ -1564,7 +1566,7 @@ function lr({
1564
1566
  onRateChat: F
1565
1567
  };
1566
1568
  }
1567
- const cr = { 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" };
1569
+ const cr = { 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" };
1568
1570
  function ut(e) {
1569
1571
  return typeof window > "u" || typeof import.meta > "u" ? "" : cr[e] || "";
1570
1572
  }