@versini/sassysaint 1.0.13 → 2.0.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.
- package/dist/chunks/{App.WT_JMB-P.js → App.B5-6f2Kg.js} +15 -15
- package/dist/chunks/{LazyHeader.CDeNMEns.js → LazyHeader.kRDKzfpE.js} +327 -327
- package/dist/chunks/{LazyMarkdownWithExtra.JlXLVBc-.js → LazyMarkdownWithExtra.DwaycQtZ.js} +23 -18
- package/dist/chunks/{LazyMessageAssistant.Ct8xA2HE.js → LazyMessageAssistant.DvruzVWY.js} +4 -4
- package/dist/chunks/{index.CJJY2C9o.js → index.CeSKqv8k.js} +1418 -1832
- package/dist/chunks/{index.DbAx5fhD.DTsRcXtK.js → index.DbAx5fhD.PJ5E1yDy.js} +1 -1
- package/dist/chunks/{useLocalStorage.CzVJ5Eng.js → useLocalStorage.BQ-iH78L.js} +1 -1
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +4 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as E, jsx as n, Fragment as ye } from "react/jsx-runtime";
|
|
2
|
-
import { O as Be, s as Ve, S as De, f$1 as
|
|
3
|
-
import { g as ve, AppContext as P, restCall as ir, E as Q, serviceCall as ce, SERVICE_TYPES as ie, HistoryContext as dr, k as ur } from "./useLocalStorage.
|
|
4
|
-
import pr, { useState as I, useEffect as S, useRef as x, useLayoutEffect as
|
|
2
|
+
import { O as Be, s as Ve, S as De, f$1 as ze, M as $e, U as Ue, r as Fe, o as Pe, n as fe, l as Ge, a as q, isLastMessageFromRole as he, x as xe, CANCEL as je, CLEAR as We, ACTION_RESET as be, ROLE_ASSISTANT as M, ROLE_INTERNAL as Z, ROLE_USER as K, zr as ee, ROLE_SYSTEM as Ye, ROLE_HIDDEN as qe, MODEL_GPT4 as ke, STATS_SEPARATOR as le, ACTION_MODEL as Ce, ACTION_MESSAGE as V, TYPE_QUESTION as Je, SEND as Qe, ACTION_STREAMING as Te, ERROR_MESSAGE as Xe, getMessageContaintWrapperClass as Ke, MessagesContainerHeader as Ze, ACTION_SEARCH as er, ACTION_SORT as rr, ACTION_RESTORE as tr, ACTION_LOCATION as B, getCurrentGeoLocation as or, c as sr, AppFooter as ar, LOCAL_STORAGE_PREFIX as J, LOCAL_STORAGE_SEARCH as nr, LOCAL_STORAGE_SORT as lr, LOCAL_STORAGE_LOCATION as cr } from "./index.CeSKqv8k.js";
|
|
3
|
+
import { g as ve, AppContext as P, restCall as ir, E as Q, serviceCall as ce, SERVICE_TYPES as ie, HistoryContext as dr, k as ur } from "./useLocalStorage.BQ-iH78L.js";
|
|
4
|
+
import pr, { useState as I, useEffect as S, useRef as x, useLayoutEffect as $, useContext as re, lazy as mr, Suspense as de, useReducer as ue, useCallback as gr } from "react";
|
|
5
5
|
import g from "clsx";
|
|
6
6
|
const yr = ({
|
|
7
7
|
className: e,
|
|
@@ -313,7 +313,7 @@ const Nr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
313
313
|
spacing: N,
|
|
314
314
|
...D
|
|
315
315
|
}, m) => {
|
|
316
|
-
const A = x(null), Ee =
|
|
316
|
+
const A = x(null), Ee = ze([m, A]), z = x(null), G = x(80), oe = x(-25), _ = x(null), se = x(30), j = x(null), H = $e({ id: e, prefix: `${fe}-` }), [Oe, Se] = I(0), [we, ae] = I(
|
|
317
317
|
!!(!w && d)
|
|
318
318
|
), Le = `${r} error, ${d}`, R = Lr({
|
|
319
319
|
className: a,
|
|
@@ -342,11 +342,11 @@ const Nr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
342
342
|
}, _e = (k) => {
|
|
343
343
|
w && d && !O && ae(!1), L && L(k);
|
|
344
344
|
};
|
|
345
|
-
return
|
|
346
|
-
!s && T &&
|
|
347
|
-
}, [T, s]),
|
|
345
|
+
return $(() => {
|
|
346
|
+
!s && T && z.current && z.current.offsetWidth > 0 && Se(z.current.offsetWidth + 18 + 10);
|
|
347
|
+
}, [T, s]), $(() => {
|
|
348
348
|
s || A && A.current && O !== void 0 && (A.current.style.height = "inherit", A.current.style.height = A.current.scrollHeight + "px");
|
|
349
|
-
}, [O, s]),
|
|
349
|
+
}, [O, s]), $(() => {
|
|
350
350
|
s || setTimeout(() => {
|
|
351
351
|
var k;
|
|
352
352
|
(k = _ == null ? void 0 : _.current) == null || k.style.setProperty(
|
|
@@ -354,7 +354,7 @@ const Nr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
354
354
|
O ? "none" : "all 0.2s ease-out"
|
|
355
355
|
);
|
|
356
356
|
}, 0);
|
|
357
|
-
}, [O, s]),
|
|
357
|
+
}, [O, s]), $(() => {
|
|
358
358
|
var k, ne;
|
|
359
359
|
if (!s && A && A.current && O !== void 0) {
|
|
360
360
|
const { labelOffset: W, helperTextOffset: Y, scrollHeight: He } = Rr({
|
|
@@ -423,7 +423,7 @@ const Nr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
423
423
|
T && /* @__PURE__ */ n(
|
|
424
424
|
"div",
|
|
425
425
|
{
|
|
426
|
-
ref:
|
|
426
|
+
ref: z,
|
|
427
427
|
className: R.rightElement,
|
|
428
428
|
children: T
|
|
429
429
|
}
|
|
@@ -475,7 +475,7 @@ const Br = () => {
|
|
|
475
475
|
children: r != null && r.streaming ? je : We
|
|
476
476
|
}
|
|
477
477
|
) }) : null;
|
|
478
|
-
}, me = mr(() => import("./LazyMessageAssistant.
|
|
478
|
+
}, me = mr(() => import("./LazyMessageAssistant.DvruzVWY.js").then((e) => e.LazyMessageAssistant)), Vr = () => {
|
|
479
479
|
const { state: e } = re(P);
|
|
480
480
|
return /* @__PURE__ */ E(ye, { children: [
|
|
481
481
|
e && e.messages.length > 0 && e.messages.map((r, o) => {
|
|
@@ -636,7 +636,7 @@ const Br = () => {
|
|
|
636
636
|
)
|
|
637
637
|
}
|
|
638
638
|
) });
|
|
639
|
-
},
|
|
639
|
+
}, zr = () => {
|
|
640
640
|
const { isAuthenticated: e } = ee(), r = Ke(e);
|
|
641
641
|
return /* @__PURE__ */ E(ye, { children: [
|
|
642
642
|
/* @__PURE__ */ E("div", { className: r, children: [
|
|
@@ -646,7 +646,7 @@ const Br = () => {
|
|
|
646
646
|
/* @__PURE__ */ n(Br, {}),
|
|
647
647
|
/* @__PURE__ */ n(Dr, {})
|
|
648
648
|
] });
|
|
649
|
-
},
|
|
649
|
+
}, $r = (e, r) => (r == null ? void 0 : r.type) === er ? {
|
|
650
650
|
searchString: r.payload.searchString,
|
|
651
651
|
sortedCell: e.sortedCell,
|
|
652
652
|
sortDirection: e.sortDirection
|
|
@@ -763,7 +763,7 @@ function Ae({ isComponent: e = !1 }) {
|
|
|
763
763
|
usage: 0,
|
|
764
764
|
messages: [],
|
|
765
765
|
isComponent: e
|
|
766
|
-
}), [b, v] = ue(
|
|
766
|
+
}), [b, v] = ue($r, {
|
|
767
767
|
searchString: l,
|
|
768
768
|
sortedCell: "timestamp",
|
|
769
769
|
sortDirection: h
|
|
@@ -852,7 +852,7 @@ function Ae({ isComponent: e = !1 }) {
|
|
|
852
852
|
dispatch: v
|
|
853
853
|
},
|
|
854
854
|
children: [
|
|
855
|
-
/* @__PURE__ */ n(sr, { children: /* @__PURE__ */ n(
|
|
855
|
+
/* @__PURE__ */ n(sr, { children: /* @__PURE__ */ n(zr, {}) }),
|
|
856
856
|
/* @__PURE__ */ n(ar, { serverStats: d })
|
|
857
857
|
]
|
|
858
858
|
}
|