@eloquentai/chat-sdk 0.33.16-dev → 0.34.2-dev.1
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/contexts/error-handling/error-messages.d.ts +2 -0
- package/dist/index.mjs +7 -5
- package/dist/index.mjs.map +1 -1
- package/dist/{skeleton-BMlUaxMi.js → skeleton-77mw6CSd.js} +15 -6
- package/dist/skeleton-77mw6CSd.js.map +1 -0
- package/dist/ui.mjs +1 -1
- package/package.json +5 -1
- package/dist/skeleton-BMlUaxMi.js.map +0 -1
|
@@ -5,12 +5,12 @@ import { useState as Ee, forwardRef as Te, createContext as Br, useContext as Ur
|
|
|
5
5
|
import * as Qa from "react-dom";
|
|
6
6
|
try {
|
|
7
7
|
let e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {}, t = new e.Error().stack;
|
|
8
|
-
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "
|
|
8
|
+
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "0cadff6c-780b-4e99-a630-f589b89f2b85", e._sentryDebugIdIdentifier = "sentry-dbid-0cadff6c-780b-4e99-a630-f589b89f2b85");
|
|
9
9
|
} catch {
|
|
10
10
|
}
|
|
11
11
|
{
|
|
12
12
|
let e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
13
|
-
e.SENTRY_RELEASE = { id: "
|
|
13
|
+
e.SENTRY_RELEASE = { id: "d19b287b111c8c57112a3205167eb6dfd33d3366" };
|
|
14
14
|
}
|
|
15
15
|
function Za(e) {
|
|
16
16
|
var t, n, r = "";
|
|
@@ -4421,11 +4421,18 @@ function Lp({
|
|
|
4421
4421
|
a && /* @__PURE__ */ v(
|
|
4422
4422
|
"button",
|
|
4423
4423
|
{
|
|
4424
|
+
type: "button",
|
|
4424
4425
|
onClick: async () => {
|
|
4425
|
-
|
|
4426
|
+
try {
|
|
4427
|
+
await navigator.clipboard.writeText(e.content);
|
|
4428
|
+
} catch {
|
|
4429
|
+
return;
|
|
4430
|
+
}
|
|
4431
|
+
o(!0), setTimeout(() => o(!1), 2e3);
|
|
4426
4432
|
},
|
|
4427
4433
|
className: Z(lo, r && "eloq:text-primary"),
|
|
4428
4434
|
title: "Copy message",
|
|
4435
|
+
"aria-label": "Copy message",
|
|
4429
4436
|
children: /* @__PURE__ */ v(Pd, { size: 16 })
|
|
4430
4437
|
}
|
|
4431
4438
|
),
|
|
@@ -18460,6 +18467,8 @@ const Ya = {
|
|
|
18460
18467
|
0: "Unable to connect to the service. Please check your network connection.",
|
|
18461
18468
|
5031: "The service is currently undergoing maintenance. Please try again later.",
|
|
18462
18469
|
5032: "I am sorry this service is currently unavailable, please try again later.",
|
|
18470
|
+
5033: "Sorry we are unable to help right now, please try again later.",
|
|
18471
|
+
5034: "Sorry we are unable to help right now, please try again later.",
|
|
18463
18472
|
5001: "We are currently facing technical difficulties. Please try again later.",
|
|
18464
18473
|
DEFAULT: "Something went wrong. Please try again later."
|
|
18465
18474
|
}, Zv = (e) => Ya[e] || Ya.DEFAULT, Jv = Br({
|
|
@@ -18479,8 +18488,8 @@ const Ya = {
|
|
|
18479
18488
|
throw new Error("useError must be used within an ErrorProvider");
|
|
18480
18489
|
return e;
|
|
18481
18490
|
}, ES = (e) => (t) => {
|
|
18482
|
-
const n =
|
|
18483
|
-
e({ code:
|
|
18491
|
+
const n = t.response?.errors?.[0], r = Number(n?.error_code), o = Zv(r);
|
|
18492
|
+
e({ code: r, message: o });
|
|
18484
18493
|
}, Xa = {
|
|
18485
18494
|
warning: {
|
|
18486
18495
|
bgColor: "eloq:bg-amber-50 eloq:dark:bg-amber-400/10",
|
|
@@ -18954,4 +18963,4 @@ export {
|
|
|
18954
18963
|
ES as i,
|
|
18955
18964
|
xi as u
|
|
18956
18965
|
};
|
|
18957
|
-
//# sourceMappingURL=skeleton-
|
|
18966
|
+
//# sourceMappingURL=skeleton-77mw6CSd.js.map
|