@eloquentai/chat-sdk 0.37.0-dev.1 → 0.37.0-dev.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.
|
@@ -5,12 +5,12 @@ import { useState as be, forwardRef as Ve, createContext as Ar, useContext as Er
|
|
|
5
5
|
import * as qu 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] = "32392ec8-0fea-4f17-af69-76474e4019d2", e._sentryDebugIdIdentifier = "sentry-dbid-32392ec8-0fea-4f17-af69-76474e4019d2");
|
|
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: "2ba803ad75155082e91bed869f07b585b900bfd4" };
|
|
14
14
|
}
|
|
15
15
|
function Ca(e) {
|
|
16
16
|
var t, n, r = "";
|
|
@@ -16235,7 +16235,7 @@ function Bc({ name: e, progress: t }) {
|
|
|
16235
16235
|
}
|
|
16236
16236
|
);
|
|
16237
16237
|
}
|
|
16238
|
-
const iw = "eloq:h-[0.42em] eloq:w-[0.42em] eloq:rounded-full eloq:bg-gray-400 eloq:dark:bg-gray-200 eloq:animate-thinking-dot eloq:motion-reduce:
|
|
16238
|
+
const iw = "eloq:h-[0.42em] eloq:w-[0.42em] eloq:rounded-full eloq:bg-gray-400 eloq:dark:bg-gray-200 eloq:motion-safe:animate-thinking-dot eloq:motion-reduce:opacity-70";
|
|
16239
16239
|
function ra({
|
|
16240
16240
|
messageData: e,
|
|
16241
16241
|
isBot: t,
|
|
@@ -16266,7 +16266,7 @@ function ra({
|
|
|
16266
16266
|
"div",
|
|
16267
16267
|
{
|
|
16268
16268
|
"aria-hidden": !0,
|
|
16269
|
-
className: "eloq:ml-1 eloq:flex eloq:items-center eloq:gap-2 eloq:animate-message-in",
|
|
16269
|
+
className: "eloq:ml-1 eloq:flex eloq:items-center eloq:gap-2 eloq:animate-message-in eloq:motion-reduce:animate-message-fade-in",
|
|
16270
16270
|
children: [
|
|
16271
16271
|
/* @__PURE__ */ w(
|
|
16272
16272
|
"span",
|
|
@@ -16345,7 +16345,9 @@ function ra({
|
|
|
16345
16345
|
"typewriter prose eloq:text-left eloq-wrap-anywhere",
|
|
16346
16346
|
{
|
|
16347
16347
|
"eloq-regenerating-text": m,
|
|
16348
|
-
|
|
16348
|
+
// Opacity only, so it stays under reduced motion like
|
|
16349
|
+
// the message fade.
|
|
16350
|
+
"eloq:animate-text-in": S && !m
|
|
16349
16351
|
}
|
|
16350
16352
|
),
|
|
16351
16353
|
children: /* @__PURE__ */ w(zx, { text: e.content })
|
|
@@ -16399,8 +16401,10 @@ const Uc = "eloq:p-4 eloq:flex eloq:flex-row eloq:items-center eloq:justify-betw
|
|
|
16399
16401
|
}) => ee(
|
|
16400
16402
|
"eloq:w-full eloq:h-full eloq:flex eloq:flex-col eloq:overflow-hidden eloq:origin-bottom-right",
|
|
16401
16403
|
{
|
|
16402
|
-
|
|
16403
|
-
|
|
16404
|
+
// Reduced motion swaps the grow/shrink from the corner for a plain
|
|
16405
|
+
// fade of the same length.
|
|
16406
|
+
"eloq:animate-panel-in eloq:motion-reduce:animate-panel-fade-in": e && !n,
|
|
16407
|
+
"eloq:animate-panel-out eloq:motion-reduce:animate-panel-fade-out": !e && !n,
|
|
16404
16408
|
"eloq:scale-100 eloq:opacity-100": e && n,
|
|
16405
16409
|
"eloq:scale-[0.05] eloq:opacity-0": !e && n,
|
|
16406
16410
|
"eloq:rounded-none eloq:border-0": t,
|
|
@@ -16471,7 +16475,8 @@ function lw({
|
|
|
16471
16475
|
"div",
|
|
16472
16476
|
{
|
|
16473
16477
|
className: ee({
|
|
16474
|
-
|
|
16478
|
+
// Reduced motion keeps the fade but drops the slide.
|
|
16479
|
+
"eloq:animate-message-in eloq:motion-reduce:animate-message-fade-in": s,
|
|
16475
16480
|
// The list spaces messages 16px apart. The thinking indicator is a
|
|
16476
16481
|
// pending turn rather than a finished one, so pull it closer to the
|
|
16477
16482
|
// message it is answering.
|
|
@@ -18745,7 +18750,7 @@ function Sk() {
|
|
|
18745
18750
|
} catch (v) {
|
|
18746
18751
|
i(I), p.restoreFiles(V, v);
|
|
18747
18752
|
}
|
|
18748
|
-
}, C = () => n.isChatClosed ? /* @__PURE__ */ w("div", { className: "eloq:w-full eloq:z-20 eloq:animate-slide-up-in", children: /* @__PURE__ */ K(
|
|
18753
|
+
}, C = () => n.isChatClosed ? /* @__PURE__ */ w("div", { className: "eloq:w-full eloq:z-20 eloq:motion-safe:animate-slide-up-in", children: /* @__PURE__ */ K(
|
|
18749
18754
|
"div",
|
|
18750
18755
|
{
|
|
18751
18756
|
className: mk,
|
|
@@ -19252,4 +19257,4 @@ export {
|
|
|
19252
19257
|
ni as u,
|
|
19253
19258
|
Xx as w
|
|
19254
19259
|
};
|
|
19255
|
-
//# sourceMappingURL=skeleton-
|
|
19260
|
+
//# sourceMappingURL=skeleton-Dtc-r9SI.js.map
|