@versini/sassysaint 5.3.15 → 5.4.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/{LazyApp.DLcaKEZm.js → LazyApp.T9mKlSIX.js} +57 -57
- package/dist/chunks/{LazyHeader.DF_XuYxS.js → LazyHeader.CaiWcJOn.js} +758 -737
- package/dist/chunks/{LazyMarkdownWithExtra.CFDuqeUh.js → LazyMarkdownWithExtra.BdJ0w8to.js} +4488 -4479
- package/dist/chunks/{LazyMessageAssistant.BMarDoja.js → LazyMessageAssistant.D_c4nLO4.js} +2403 -2384
- package/dist/chunks/{index.p6kaA5n7.js → index.CnjK4JPd.js} +164 -164
- package/dist/chunks/{index.Cox6Ux55.js → index.DNlKJfQz.js} +824 -794
- package/dist/chunks/{index.AUArUGH7.FZU7Bha5.js → index.MEUopFRx.6qFMhBMt.js} +22 -22
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +6 -6
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as i, jsxs as v, Fragment as O } from "react/jsx-runtime";
|
|
2
|
-
import { g as _e, ACTION_RESTORE as Ne, ACTION_MESSAGE as S, ROLE_ASSISTANT as I, ACTION_RESET as oe, ACTION_MODEL as ne, ACTION_ENGINE as ie, ACTION_STREAMING as se, ACTION_SORT as we, ACTION_SEARCH as Ee, ACTION_SET_TAGS as de, ACTION_RESET_TAGS as le, ACTION_TOGGLE_TAG as ce, AppContext as $, TagsContext as
|
|
3
|
-
import { serviceCall as me, SERVICE_TYPES as he, n as
|
|
4
|
-
import C, { useContext as R, useState as
|
|
2
|
+
import { g as _e, ACTION_RESTORE as Ne, ACTION_MESSAGE as S, ROLE_ASSISTANT as I, ACTION_RESET as oe, ACTION_MODEL as ne, ACTION_ENGINE as ie, ACTION_STREAMING as se, ACTION_SORT as we, ACTION_SEARCH as Ee, ACTION_SET_TAGS as de, ACTION_RESET_TAGS as le, ACTION_TOGGLE_TAG as ce, AppContext as $, TagsContext as H, un as U, b as Ie, j as Ce, R as ge, isLastMessageFromRole as ue, O as Se, TOOLBOX as Y, ROLE_INTERNAL as j, ROLE_USER as P, ROLE_SYSTEM as Re, ROLE_HIDDEN as Be, DEFAULT_AI_ENGINE as A, STATS_SEPARATOR as q, TYPE_QUESTION as Me, SEND as Ae, ERROR_MESSAGE as Le, getMessageContaintWrapperClass as Oe, MessagesContainerHeader as $e, HistoryContext as Ue, d as ze, AppFooter as Ve, LOCAL_STORAGE_PREFIX as X, LOCAL_STORAGE_SEARCH as De, LOCAL_STORAGE_SORT as Pe } from "./index.DNlKJfQz.js";
|
|
3
|
+
import { serviceCall as me, SERVICE_TYPES as he, n as He, restCall as je, we as Ge, E as J, f as We } from "./index.CnjK4JPd.js";
|
|
4
|
+
import C, { useContext as R, useState as M, useRef as B, useEffect as _, lazy as Fe, Suspense as Q, useReducer as V } from "react";
|
|
5
5
|
import l from "clsx";
|
|
6
6
|
const Ke = ({
|
|
7
7
|
className: e,
|
|
@@ -75,7 +75,7 @@ function et() {
|
|
|
75
75
|
return D(Ze);
|
|
76
76
|
}
|
|
77
77
|
const tt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Z = { randomUUID: tt };
|
|
78
|
-
function
|
|
78
|
+
function G(e, t, r) {
|
|
79
79
|
if (Z.randomUUID && !t && !e)
|
|
80
80
|
return Z.randomUUID();
|
|
81
81
|
e = e || {};
|
|
@@ -153,7 +153,7 @@ const rt = (e, t) => {
|
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
return (t == null ? void 0 : t.type) === oe ? {
|
|
156
|
-
id:
|
|
156
|
+
id: G(),
|
|
157
157
|
model: e.model,
|
|
158
158
|
engine: e.engine,
|
|
159
159
|
usage: 0,
|
|
@@ -213,7 +213,7 @@ const rt = (e, t) => {
|
|
|
213
213
|
return e;
|
|
214
214
|
}
|
|
215
215
|
}, nt = () => {
|
|
216
|
-
const { dispatch: e, state: t } = R($), { dispatch: r, state: a } = R(
|
|
216
|
+
const { dispatch: e, state: t } = R($), { dispatch: r, state: a } = R(H), { getAccessToken: n, user: o } = U(), [c, d] = M({
|
|
217
217
|
loaded: !1
|
|
218
218
|
}), m = "mt-2 flex justify-center rounded-md", g = B(null), p = B(!1), u = (s) => {
|
|
219
219
|
s.preventDefault(), e({
|
|
@@ -280,19 +280,19 @@ const rt = (e, t) => {
|
|
|
280
280
|
ref: g,
|
|
281
281
|
onClick: u,
|
|
282
282
|
labelRight: t != null && t.streaming ? Y.ACTION_WHILE_STREAMING.content : Y.ACTION_WHILE_NOT_STREAMING.content,
|
|
283
|
-
children: t != null && t.streaming ? /* @__PURE__ */ i(Ke, { className: "size-4" }) : /* @__PURE__ */ i(
|
|
283
|
+
children: t != null && t.streaming ? /* @__PURE__ */ i(Ke, { className: "size-4" }) : /* @__PURE__ */ i(He, { className: "size-4" })
|
|
284
284
|
}
|
|
285
285
|
) })
|
|
286
286
|
] });
|
|
287
287
|
};
|
|
288
288
|
/*!
|
|
289
|
-
@versini/ui-bubble v1.
|
|
289
|
+
@versini/ui-bubble v1.1.1
|
|
290
290
|
© 2024 gizmette.com
|
|
291
291
|
*/
|
|
292
292
|
try {
|
|
293
293
|
window.__VERSINI_UI_BUBBLE__ || (window.__VERSINI_UI_BUBBLE__ = {
|
|
294
|
-
version: "1.
|
|
295
|
-
buildTime: "
|
|
294
|
+
version: "1.1.1",
|
|
295
|
+
buildTime: "12/18/2024 01:22 PM EST",
|
|
296
296
|
homepage: "https://github.com/aversini/ui-components",
|
|
297
297
|
license: "MIT"
|
|
298
298
|
});
|
|
@@ -572,13 +572,13 @@ const be = C.forwardRef(
|
|
|
572
572
|
);
|
|
573
573
|
be.displayName = "ButtonIcon";
|
|
574
574
|
/*!
|
|
575
|
-
@versini/ui-button v1.1
|
|
575
|
+
@versini/ui-button v1.2.1
|
|
576
576
|
© 2024 gizmette.com
|
|
577
577
|
*/
|
|
578
578
|
try {
|
|
579
579
|
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
|
580
|
-
version: "1.1
|
|
581
|
-
buildTime: "
|
|
580
|
+
version: "1.2.1",
|
|
581
|
+
buildTime: "12/18/2024 01:22 PM EST",
|
|
582
582
|
homepage: "https://github.com/aversini/ui-components",
|
|
583
583
|
license: "MIT"
|
|
584
584
|
});
|
|
@@ -706,13 +706,13 @@ const yt = (e) => {
|
|
|
706
706
|
] });
|
|
707
707
|
};
|
|
708
708
|
/*!
|
|
709
|
-
@versini/ui-private v1.
|
|
709
|
+
@versini/ui-private v1.5.1
|
|
710
710
|
© 2024 gizmette.com
|
|
711
711
|
*/
|
|
712
712
|
try {
|
|
713
713
|
window.__VERSINI_UI_PRIVATE__ || (window.__VERSINI_UI_PRIVATE__ = {
|
|
714
|
-
version: "1.
|
|
715
|
-
buildTime: "
|
|
714
|
+
version: "1.5.1",
|
|
715
|
+
buildTime: "12/18/2024 01:22 PM EST",
|
|
716
716
|
homepage: "https://github.com/aversini/ui-components",
|
|
717
717
|
license: "MIT"
|
|
718
718
|
});
|
|
@@ -767,13 +767,13 @@ const vt = ({
|
|
|
767
767
|
}
|
|
768
768
|
);
|
|
769
769
|
/*!
|
|
770
|
-
@versini/ui-icons v1.
|
|
770
|
+
@versini/ui-icons v1.16.1
|
|
771
771
|
© 2024 gizmette.com
|
|
772
772
|
*/
|
|
773
773
|
try {
|
|
774
774
|
window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
|
|
775
|
-
version: "1.
|
|
776
|
-
buildTime: "
|
|
775
|
+
version: "1.16.1",
|
|
776
|
+
buildTime: "12/18/2024 01:22 PM EST",
|
|
777
777
|
homepage: "https://github.com/aversini/ui-components",
|
|
778
778
|
license: "MIT"
|
|
779
779
|
});
|
|
@@ -839,7 +839,7 @@ const xt = (e) => {
|
|
|
839
839
|
copyToClipboardMode: d = "system",
|
|
840
840
|
spacing: m
|
|
841
841
|
}) => {
|
|
842
|
-
const [g, p] =
|
|
842
|
+
const [g, p] = M(!1), u = Et({ kind: t, className: r, spacing: m }), b = !!o && (typeof o == "function" || typeof o == "string" || typeof e == "string"), s = () => {
|
|
843
843
|
p(!0), typeof o == "function" ? o(e) : typeof o == "string" ? navigator.clipboard.writeText(o) : typeof e == "string" && navigator.clipboard.writeText(e);
|
|
844
844
|
};
|
|
845
845
|
return _(() => {
|
|
@@ -949,7 +949,7 @@ const xt = (e) => {
|
|
|
949
949
|
"bg-action-danger-dark text-copy-light dark:bg-action-danger-light dark:text-copy-lighter": e === "system",
|
|
950
950
|
"bg-action-danger-light text-copy-lighter dark:bg-action-danger-dark dark:text-copy-light": e === "alt-system"
|
|
951
951
|
});
|
|
952
|
-
},
|
|
952
|
+
}, Mt = ({
|
|
953
953
|
mode: e,
|
|
954
954
|
disabled: t,
|
|
955
955
|
variant: r
|
|
@@ -977,7 +977,7 @@ const xt = (e) => {
|
|
|
977
977
|
"hover:bg-action-danger-dark-hover dark:hover:bg-action-danger-light-hover": e === "system",
|
|
978
978
|
"hover:bg-action-danger-light-hover dark:hover:bg-action-danger-dark-hover": e === "alt-system"
|
|
979
979
|
});
|
|
980
|
-
},
|
|
980
|
+
}, At = ({
|
|
981
981
|
mode: e,
|
|
982
982
|
disabled: t,
|
|
983
983
|
variant: r
|
|
@@ -1063,8 +1063,8 @@ const xt = (e) => {
|
|
|
1063
1063
|
Rt({ type: e, size: d, labelRight: g, labelLeft: p, align: y }),
|
|
1064
1064
|
Lt({ mode: a, variant: s, noBorder: m }),
|
|
1065
1065
|
Ot({ focusMode: n }),
|
|
1066
|
-
At({ mode: a, variant: s, disabled: o }),
|
|
1067
1066
|
Mt({ mode: a, variant: s, disabled: o }),
|
|
1067
|
+
At({ mode: a, variant: s, disabled: o }),
|
|
1068
1068
|
{
|
|
1069
1069
|
"w-full": c,
|
|
1070
1070
|
"disabled:cursor-not-allowed disabled:opacity-50": o
|
|
@@ -1130,13 +1130,13 @@ const xe = C.forwardRef(
|
|
|
1130
1130
|
);
|
|
1131
1131
|
xe.displayName = "Button";
|
|
1132
1132
|
/*!
|
|
1133
|
-
@versini/ui-button v1.1
|
|
1133
|
+
@versini/ui-button v1.2.1
|
|
1134
1134
|
© 2024 gizmette.com
|
|
1135
1135
|
*/
|
|
1136
1136
|
try {
|
|
1137
1137
|
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
|
1138
|
-
version: "1.1
|
|
1139
|
-
buildTime: "
|
|
1138
|
+
version: "1.2.1",
|
|
1139
|
+
buildTime: "12/18/2024 01:22 PM EST",
|
|
1140
1140
|
homepage: "https://github.com/aversini/ui-components",
|
|
1141
1141
|
license: "MIT"
|
|
1142
1142
|
});
|
|
@@ -1239,7 +1239,7 @@ const zt = 200, Vt = ({
|
|
|
1239
1239
|
mode: r = "system",
|
|
1240
1240
|
focusMode: a = "system"
|
|
1241
1241
|
}) => {
|
|
1242
|
-
const [n, o] =
|
|
1242
|
+
const [n, o] = M(!1);
|
|
1243
1243
|
if (typeof e != "string")
|
|
1244
1244
|
return e;
|
|
1245
1245
|
const { string: c, isTruncated: d } = Vt({
|
|
@@ -1264,13 +1264,13 @@ const zt = 200, Vt = ({
|
|
|
1264
1264
|
] });
|
|
1265
1265
|
};
|
|
1266
1266
|
/*!
|
|
1267
|
-
@versini/ui-truncate v1.
|
|
1267
|
+
@versini/ui-truncate v1.1.1
|
|
1268
1268
|
© 2024 gizmette.com
|
|
1269
1269
|
*/
|
|
1270
1270
|
try {
|
|
1271
1271
|
window.__VERSINI_UI_TRUNCATE__ || (window.__VERSINI_UI_TRUNCATE__ = {
|
|
1272
|
-
version: "1.
|
|
1273
|
-
buildTime: "
|
|
1272
|
+
version: "1.1.1",
|
|
1273
|
+
buildTime: "12/18/2024 01:22 PM EST",
|
|
1274
1274
|
homepage: "https://github.com/aversini/ui-components",
|
|
1275
1275
|
license: "MIT"
|
|
1276
1276
|
});
|
|
@@ -1279,21 +1279,21 @@ try {
|
|
|
1279
1279
|
const re = Fe(
|
|
1280
1280
|
() => import(
|
|
1281
1281
|
/* webpackChunkName: "LazyMessageAssistant" */
|
|
1282
|
-
"./LazyMessageAssistant.
|
|
1282
|
+
"./LazyMessageAssistant.D_c4nLO4.js"
|
|
1283
1283
|
).then((e) => e.LazyMessageAssistant)
|
|
1284
|
-
),
|
|
1284
|
+
), Pt = () => {
|
|
1285
1285
|
const { state: e } = R($);
|
|
1286
1286
|
return /* @__PURE__ */ v(O, { children: [
|
|
1287
1287
|
e && e.messages.length > 0 && e.messages.map((t, r) => {
|
|
1288
1288
|
const { role: a, content: n, name: o, processingTime: c } = t.message;
|
|
1289
|
-
return (a === I || a ===
|
|
1289
|
+
return (a === I || a === j) && n ? /* @__PURE__ */ i(Q, { fallback: /* @__PURE__ */ i("span", {}), children: /* @__PURE__ */ i(
|
|
1290
1290
|
re,
|
|
1291
1291
|
{
|
|
1292
1292
|
name: o,
|
|
1293
1293
|
processingTime: c,
|
|
1294
1294
|
children: n
|
|
1295
1295
|
}
|
|
1296
|
-
) }, `${r}-${a}`) : a ===
|
|
1296
|
+
) }, `${r}-${a}`) : a === P && n ? /* @__PURE__ */ i(
|
|
1297
1297
|
It,
|
|
1298
1298
|
{
|
|
1299
1299
|
kind: "right",
|
|
@@ -1304,7 +1304,7 @@ const re = Fe(
|
|
|
1304
1304
|
`${r}-${a}`
|
|
1305
1305
|
) : null;
|
|
1306
1306
|
}),
|
|
1307
|
-
ue(
|
|
1307
|
+
ue(P, e) && /* @__PURE__ */ i(Q, { fallback: /* @__PURE__ */ i("span", {}), children: /* @__PURE__ */ i(re, { loading: !0 }) })
|
|
1308
1308
|
] });
|
|
1309
1309
|
}, L = (e, t) => {
|
|
1310
1310
|
e({
|
|
@@ -1318,13 +1318,13 @@ const re = Fe(
|
|
|
1318
1318
|
type: S,
|
|
1319
1319
|
payload: {
|
|
1320
1320
|
message: {
|
|
1321
|
-
role:
|
|
1321
|
+
role: j,
|
|
1322
1322
|
content: Le
|
|
1323
1323
|
}
|
|
1324
1324
|
}
|
|
1325
1325
|
});
|
|
1326
|
-
},
|
|
1327
|
-
const { state: e, dispatch: t } = R($), { state: r, dispatch: a } = R(
|
|
1326
|
+
}, Ht = () => {
|
|
1327
|
+
const { state: e, dispatch: t } = R($), { state: r, dispatch: a } = R(H), [n, o] = M(""), { getAccessToken: c, user: d } = U(), m = B(null), g = B(
|
|
1328
1328
|
null
|
|
1329
1329
|
);
|
|
1330
1330
|
_(() => {
|
|
@@ -1335,21 +1335,21 @@ const re = Fe(
|
|
|
1335
1335
|
return;
|
|
1336
1336
|
}
|
|
1337
1337
|
const u = e.messages[e.messages.length - 1];
|
|
1338
|
-
if (!(e.messages.length === 0 || u.message.role === I || u.message.role === Re || u.message.role ===
|
|
1338
|
+
if (!(e.messages.length === 0 || u.message.role === I || u.message.role === Re || u.message.role === j || u.message.role === Be))
|
|
1339
1339
|
try {
|
|
1340
|
-
const s = await
|
|
1340
|
+
const s = await je({
|
|
1341
1341
|
accessToken: await c(),
|
|
1342
1342
|
name: "generate",
|
|
1343
1343
|
data: {
|
|
1344
1344
|
messages: e.messages,
|
|
1345
|
-
model: e.engine ||
|
|
1345
|
+
model: e.engine || A,
|
|
1346
1346
|
user: (d == null ? void 0 : d.username) || "",
|
|
1347
1347
|
id: e.id,
|
|
1348
1348
|
usage: e.usage
|
|
1349
1349
|
}
|
|
1350
1350
|
});
|
|
1351
1351
|
if (s && s.ok) {
|
|
1352
|
-
const h =
|
|
1352
|
+
const h = G();
|
|
1353
1353
|
g.current = s.body.getReader();
|
|
1354
1354
|
const y = new TextDecoder();
|
|
1355
1355
|
for (; ; ) {
|
|
@@ -1407,7 +1407,7 @@ const re = Fe(
|
|
|
1407
1407
|
type: S,
|
|
1408
1408
|
payload: {
|
|
1409
1409
|
message: {
|
|
1410
|
-
role:
|
|
1410
|
+
role: P,
|
|
1411
1411
|
content: n
|
|
1412
1412
|
}
|
|
1413
1413
|
}
|
|
@@ -1423,13 +1423,13 @@ const re = Fe(
|
|
|
1423
1423
|
}, [r, a]), _(() => {
|
|
1424
1424
|
e && e.usage === 0 && e.messages.length === 0 && m.current && m.current.focus();
|
|
1425
1425
|
}, [e]), /* @__PURE__ */ i("form", { className: "mt-2", onSubmit: p, children: /* @__PURE__ */ i(
|
|
1426
|
-
|
|
1426
|
+
Ge,
|
|
1427
1427
|
{
|
|
1428
1428
|
mode: "dark",
|
|
1429
1429
|
focusMode: "light",
|
|
1430
1430
|
ref: m,
|
|
1431
1431
|
name: "chat-input",
|
|
1432
|
-
label:
|
|
1432
|
+
label: Me,
|
|
1433
1433
|
helperText: "Press ENTER to add a new line",
|
|
1434
1434
|
helperTextOnFocus: !0,
|
|
1435
1435
|
required: !0,
|
|
@@ -1444,20 +1444,20 @@ const re = Fe(
|
|
|
1444
1444
|
type: "submit",
|
|
1445
1445
|
mode: "light",
|
|
1446
1446
|
focusMode: "light",
|
|
1447
|
-
children:
|
|
1447
|
+
children: Ae
|
|
1448
1448
|
}
|
|
1449
1449
|
)
|
|
1450
1450
|
}
|
|
1451
1451
|
) });
|
|
1452
|
-
},
|
|
1452
|
+
}, jt = () => {
|
|
1453
1453
|
const { isAuthenticated: e } = U(), t = Oe(e);
|
|
1454
1454
|
return /* @__PURE__ */ v(O, { children: [
|
|
1455
1455
|
/* @__PURE__ */ v("div", { className: t, children: [
|
|
1456
1456
|
/* @__PURE__ */ i($e, {}),
|
|
1457
|
-
/* @__PURE__ */ i(
|
|
1457
|
+
/* @__PURE__ */ i(Pt, {})
|
|
1458
1458
|
] }),
|
|
1459
1459
|
/* @__PURE__ */ i(nt, {}),
|
|
1460
|
-
/* @__PURE__ */ i(
|
|
1460
|
+
/* @__PURE__ */ i(Ht, {})
|
|
1461
1461
|
] });
|
|
1462
1462
|
};
|
|
1463
1463
|
function Te({ isComponent: e = !1 }) {
|
|
@@ -1465,12 +1465,12 @@ function Te({ isComponent: e = !1 }) {
|
|
|
1465
1465
|
key: X + De,
|
|
1466
1466
|
initialValue: ""
|
|
1467
1467
|
}), [o] = J({
|
|
1468
|
-
key: X +
|
|
1468
|
+
key: X + Pe,
|
|
1469
1469
|
initialValue: We.ASC
|
|
1470
1470
|
}), [c, d] = V(rt, {
|
|
1471
|
-
id:
|
|
1472
|
-
model:
|
|
1473
|
-
engine:
|
|
1471
|
+
id: G(),
|
|
1472
|
+
model: A,
|
|
1473
|
+
engine: A,
|
|
1474
1474
|
usage: 0,
|
|
1475
1475
|
messages: [],
|
|
1476
1476
|
tags: [],
|
|
@@ -1482,11 +1482,11 @@ function Te({ isComponent: e = !1 }) {
|
|
|
1482
1482
|
}), [p, u] = V(ot, {
|
|
1483
1483
|
tag: "",
|
|
1484
1484
|
tags: []
|
|
1485
|
-
}), [b, s] =
|
|
1485
|
+
}), [b, s] = M({
|
|
1486
1486
|
version: "",
|
|
1487
1487
|
models: [],
|
|
1488
1488
|
plugins: [],
|
|
1489
|
-
engine:
|
|
1489
|
+
engine: A,
|
|
1490
1490
|
engines: []
|
|
1491
1491
|
});
|
|
1492
1492
|
return _(() => {
|
|
@@ -1523,11 +1523,11 @@ function Te({ isComponent: e = !1 }) {
|
|
|
1523
1523
|
dispatch: g
|
|
1524
1524
|
},
|
|
1525
1525
|
children: /* @__PURE__ */ v(
|
|
1526
|
-
|
|
1526
|
+
H.Provider,
|
|
1527
1527
|
{
|
|
1528
1528
|
value: { state: p, dispatch: u },
|
|
1529
1529
|
children: [
|
|
1530
|
-
/* @__PURE__ */ i(ze, { children: /* @__PURE__ */ i(
|
|
1530
|
+
/* @__PURE__ */ i(ze, { children: /* @__PURE__ */ i(jt, {}) }),
|
|
1531
1531
|
/* @__PURE__ */ i(Ve, { serverStats: b })
|
|
1532
1532
|
]
|
|
1533
1533
|
}
|