@versini/sassysaint 8.73.3 → 8.74.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/chunks/{AboutChangelog.661DKCgk.js → AboutChangelog.CqWjW39N.js} +2 -2
- package/dist/chunks/{AboutEntry.DiCPTiLj.js → AboutEntry.0Ccenpf3.js} +7 -7
- package/dist/chunks/{App.5gxvd-4-.js → App.YrWB4OwR.js} +1749 -1732
- package/dist/chunks/{Chart.DTAX5Zd_.js → Chart.LfV0zid2.js} +2 -2
- package/dist/chunks/ChatBubbleAssistant.E8cXNiqj.js +80 -0
- package/dist/chunks/{ChatBubbleUser.Cb2OzGt2.js → ChatBubbleUser.C84VqNux.js} +3 -3
- package/dist/chunks/{ChatHistoryTable.DodhSBf9.js → ChatHistoryTable.BsU8G3Xx.js} +3 -3
- package/dist/chunks/{HistoryEntry.BHKiSJYf.js → HistoryEntry.Bb22L2B-.js} +3 -3
- package/dist/chunks/{ProfileEntry.A_AoGwYv.js → ProfileEntry.CgCQ3J3r.js} +2 -2
- package/dist/chunks/{SettingsEntry.D4RhlncR.js → SettingsEntry.DthuyCfx.js} +151 -130
- package/dist/chunks/{Table.Uvq7uGxR.js → Table.DWNSOwzN.js} +2 -2
- package/dist/chunks/{UsageEntry.DrVVPYLQ.js → UsageEntry.PtMxeqds.js} +3 -3
- package/dist/chunks/{UserMemoriesPanel.kh9_pfi_.js → UserMemoriesPanel.CBSFmHg7.js} +4 -4
- package/dist/chunks/{index.DtuEQYZN.js → index.7fhQuqoG.js} +1 -1
- package/dist/chunks/{index.Dq4WBOGA.js → index.B7RaRKya.js} +1 -1
- package/dist/chunks/{index.CJZ4xgED.js → index.B_LtCB1l.js} +2 -2
- package/dist/chunks/{index.CCW8q5W5.js → index.BaFTRquS.js} +3 -3
- package/dist/chunks/{index.O2zfzZcM.js → index.BtmJY5AI.js} +1 -1
- package/dist/chunks/{index.DB7deAkb.js → index.CKriJDCb.js} +140 -131
- package/dist/chunks/{index.Dfe22wCV.js → index.Ca4if9H7.js} +1 -1
- package/dist/chunks/{index.B6va7ILw.js → index.DJg0NGP9.js} +1 -1
- package/dist/chunks/{useMarkdown.DpoGjOrf.js → useMarkdown.Ky0bSmFT.js} +6 -6
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/dist/style.css +1 -1
- package/package.json +3 -3
- package/dist/chunks/ChatBubbleAssistant.C-aLHVG0.js +0 -76
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as Ap } from "react/jsx-runtime";
|
|
2
|
-
import { getDefaultExportFromCjs as ln } from "./App.
|
|
2
|
+
import { getDefaultExportFromCjs as ln } from "./App.YrWB4OwR.js";
|
|
3
3
|
import Cp, { useState as Pp, useEffect as Op } from "react";
|
|
4
|
-
import { TRIMESTERS as rn, TRIMESTERS_SHORT as Lp, isProbablyMobile as Ep } from "./index.
|
|
4
|
+
import { TRIMESTERS as rn, TRIMESTERS_SHORT as Lp, isProbablyMobile as Ep } from "./index.CKriJDCb.js";
|
|
5
5
|
var ls = { exports: {} }, Ip = ls.exports, on;
|
|
6
6
|
function Dp() {
|
|
7
7
|
return on || (on = 1, (function(we, he) {
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { jsx as b } from "react/jsx-runtime";
|
|
2
|
+
import { n as P, useUserPreferences as R, convertCamelCaseToReadable as y, numberFormatter as L, pluralize as _, b as v } from "./index.CKriJDCb.js";
|
|
3
|
+
import { BUBBLE_FOOTER_EMPTY as B } from "./index.BtmJY5AI.js";
|
|
4
|
+
import U from "clsx";
|
|
5
|
+
import G, { useState as g, useRef as E, useEffect as F, useContext as S } from "react";
|
|
6
|
+
import { ChatContext as D, AppContext as j, AsyncBubble as k } from "./App.YrWB4OwR.js";
|
|
7
|
+
import { useMarkdown as q } from "./useMarkdown.Ky0bSmFT.js";
|
|
8
|
+
const I = 2, W = I * 1e3, M = "", $ = (e) => e * (2 - e);
|
|
9
|
+
function V(e, n = !0) {
|
|
10
|
+
const [a, d] = g(0), [c, p] = g(0), [t, C] = g(e), r = E(0), s = E(0);
|
|
11
|
+
return t !== e && (C(e), p(e.startsWith(t) ? a : 0)), F(() => {
|
|
12
|
+
if (!n)
|
|
13
|
+
return;
|
|
14
|
+
const T = e.split(M).length, i = (o) => {
|
|
15
|
+
s.current || (s.current = o);
|
|
16
|
+
const u = o - s.current, l = Math.min(u / W, 1), h = $(l), x = c + (T - c) * h;
|
|
17
|
+
d(Math.floor(x)), l < 1 && (r.current = requestAnimationFrame(i));
|
|
18
|
+
};
|
|
19
|
+
return s.current = 0, r.current = requestAnimationFrame(i), () => {
|
|
20
|
+
r.current && cancelAnimationFrame(r.current);
|
|
21
|
+
};
|
|
22
|
+
}, [c, e, n]), n ? e.split(M).slice(0, a).join(M) : e;
|
|
23
|
+
}
|
|
24
|
+
const f = {
|
|
25
|
+
MODEL: "Model",
|
|
26
|
+
PLUGIN: "Plugin",
|
|
27
|
+
USAGE: "Session usage"
|
|
28
|
+
}, w = U("max-w-[99cqw]", "mt-3"), Z = G.memo(
|
|
29
|
+
({
|
|
30
|
+
content: e,
|
|
31
|
+
annotations: n,
|
|
32
|
+
toolName: a,
|
|
33
|
+
role: d,
|
|
34
|
+
smooth: c = !1,
|
|
35
|
+
isLastAssistantMessage: p = !1
|
|
36
|
+
}) => {
|
|
37
|
+
const t = V(e, c), {
|
|
38
|
+
state: { streaming: C, restoredModel: r, tokenUsage: s }
|
|
39
|
+
} = S(D), {
|
|
40
|
+
state: { fullScreen: T }
|
|
41
|
+
} = S(j), i = n?.model || r, o = s, [u, l] = q(), { user: h, getAccessToken: x } = P(), { data: N } = R({
|
|
42
|
+
user: h?.username,
|
|
43
|
+
getAccessToken: x
|
|
44
|
+
}), O = N?.showDetails || !1, A = U("prose-li:ps-3", {
|
|
45
|
+
"max-w-xs sm:max-w-3xl": !T
|
|
46
|
+
});
|
|
47
|
+
let m;
|
|
48
|
+
return O && (m = {
|
|
49
|
+
[f.MODEL]: i || null,
|
|
50
|
+
[f.PLUGIN]: a ? y(a) : null
|
|
51
|
+
}, o && (p ? m[f.USAGE] = `${L.format(o)} ${_("token", o)}` : m[f.USAGE] = B)), F(() => {
|
|
52
|
+
t && l(t);
|
|
53
|
+
}, [t, l]), d === v ? /* @__PURE__ */ b(
|
|
54
|
+
k,
|
|
55
|
+
{
|
|
56
|
+
tail: !0,
|
|
57
|
+
className: w,
|
|
58
|
+
contentClassName: A,
|
|
59
|
+
noMaxWidth: !0,
|
|
60
|
+
children: /* @__PURE__ */ b("div", { className: "flex items-center justify-center italic text-copy-error-dark dark:text-red-300", children: u })
|
|
61
|
+
}
|
|
62
|
+
) : /* @__PURE__ */ b(
|
|
63
|
+
k,
|
|
64
|
+
{
|
|
65
|
+
tail: !0,
|
|
66
|
+
copyToClipboardMode: "dark",
|
|
67
|
+
copyToClipboardFocusMode: "light",
|
|
68
|
+
copyToClipboard: C ? "loading..." : e,
|
|
69
|
+
footer: m,
|
|
70
|
+
className: w,
|
|
71
|
+
contentClassName: A,
|
|
72
|
+
noMaxWidth: !0,
|
|
73
|
+
children: u
|
|
74
|
+
}
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
);
|
|
78
|
+
export {
|
|
79
|
+
Z as default
|
|
80
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as n, Fragment as b, jsxs as A } from "react/jsx-runtime";
|
|
2
2
|
import { useState as C, useMemo as u, isValidElement as p, useEffect as I } from "react";
|
|
3
|
-
import { AsyncBubble as w } from "./App.
|
|
4
|
-
import { useMarkdown as _ } from "./useMarkdown.
|
|
5
|
-
import { C as M } from "./index.
|
|
3
|
+
import { AsyncBubble as w } from "./App.YrWB4OwR.js";
|
|
4
|
+
import { useMarkdown as _ } from "./useMarkdown.Ky0bSmFT.js";
|
|
5
|
+
import { C as M } from "./index.CKriJDCb.js";
|
|
6
6
|
const R = 200, N = ({
|
|
7
7
|
string: e,
|
|
8
8
|
idealLength: r = R
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as m, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { I as C, J as N, Q as g, INFINITE_SCROLL_THRESHOLD as E, CARDS as k, pluralize as y, te as u, numberFormatter as b, st as D, isProbablyMobile as U, c as B, r as I, O as P } from "./index.
|
|
3
|
-
import { st as M, p$1 as L, z as V, p$2 as $ } from "./App.
|
|
2
|
+
import { I as C, J as N, Q as g, INFINITE_SCROLL_THRESHOLD as E, CARDS as k, pluralize as y, te as u, numberFormatter as b, st as D, isProbablyMobile as U, c as B, r as I, O as P } from "./index.CKriJDCb.js";
|
|
3
|
+
import { st as M, p$1 as L, z as V, p$2 as $ } from "./App.YrWB4OwR.js";
|
|
4
4
|
import h from "clsx";
|
|
5
5
|
import { Fragment as _ } from "react";
|
|
6
|
-
import { j as H, D as Y, G as x, H as F, M as a, U as G, F as S, l as K } from "./Table.
|
|
6
|
+
import { j as H, D as Y, G as x, H as F, M as a, U as G, F as S, l as K } from "./Table.DWNSOwzN.js";
|
|
7
7
|
const W = ({
|
|
8
8
|
className: l,
|
|
9
9
|
viewBox: c,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as n, jsx as t, Fragment as ee } from "react/jsx-runtime";
|
|
2
|
-
import { I as te, n as z, INFINITE_SCROLL_LIMIT as P, INFINITE_SCROLL_THRESHOLD as re, LOCAL_STORAGE_PREFIX as T, LOCAL_STORAGE_SORT_TIMESTAMP as ae, LOCAL_STORAGE_SORT_TOKEN_USAGE as se, LOCAL_STORAGE_SORT as oe, J as D, useUserPreferences as ie, useDeleteChat as ne, useToggleFavoriteChat as ce, APP_CLASSNAME as le, TOAST_CHAT_DELETED as de, graphQLRequest as he, SERVICE_TYPES as me, setNewProvider as ue, ACTION_SORT as Ce, Q as Se, TOAST_PROVIDER_CHANGED as fe, useChatsHistory as pe, LOCAL_STORAGE_SEARCH as ye, LOCAL_STORAGE_FAVORITES_ONLY as Te, HISTORY_TITLE as ge, S as Ae, Y as Ee, debounce as ve, C as _e, ACTION_SEARCH as De } from "./index.
|
|
3
|
-
import { HistoryContext as G, ChatContext as M, useAiChat as Oe, E as g, e as u, ConfirmationPanel as Re, LazyToastContainerWrapper as Le, showErrorToast as Ie, CHAT_SET_PROVIDER as ke, showSuccessToast as be, CHAT_SET_STATUS as we, oe as Ne, G as xe } from "./App.
|
|
2
|
+
import { I as te, n as z, INFINITE_SCROLL_LIMIT as P, INFINITE_SCROLL_THRESHOLD as re, LOCAL_STORAGE_PREFIX as T, LOCAL_STORAGE_SORT_TIMESTAMP as ae, LOCAL_STORAGE_SORT_TOKEN_USAGE as se, LOCAL_STORAGE_SORT as oe, J as D, useUserPreferences as ie, useDeleteChat as ne, useToggleFavoriteChat as ce, APP_CLASSNAME as le, TOAST_CHAT_DELETED as de, graphQLRequest as he, SERVICE_TYPES as me, setNewProvider as ue, ACTION_SORT as Ce, Q as Se, TOAST_PROVIDER_CHANGED as fe, useChatsHistory as pe, LOCAL_STORAGE_SEARCH as ye, LOCAL_STORAGE_FAVORITES_ONLY as Te, HISTORY_TITLE as ge, S as Ae, Y as Ee, debounce as ve, C as _e, ACTION_SEARCH as De } from "./index.CKriJDCb.js";
|
|
3
|
+
import { HistoryContext as G, ChatContext as M, useAiChat as Oe, E as g, e as u, ConfirmationPanel as Re, LazyToastContainerWrapper as Le, showErrorToast as Ie, CHAT_SET_PROVIDER as ke, showSuccessToast as be, CHAT_SET_STATUS as we, oe as Ne, G as xe } from "./App.YrWB4OwR.js";
|
|
4
4
|
import { useRef as N, useState as x, useContext as O, useCallback as V, Suspense as He, lazy as Fe, useEffect as Pe } from "react";
|
|
5
5
|
const Ve = ({
|
|
6
6
|
className: c,
|
|
@@ -31,7 +31,7 @@ const Ve = ({
|
|
|
31
31
|
), ze = Fe(
|
|
32
32
|
() => import(
|
|
33
33
|
/* webpackChunkName: "history-table" */
|
|
34
|
-
"./ChatHistoryTable.
|
|
34
|
+
"./ChatHistoryTable.BsU8G3Xx.js"
|
|
35
35
|
).then((c) => ({ default: c.ChatHistoryTable }))
|
|
36
36
|
), Ge = ({
|
|
37
37
|
filteredHistory: c,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as t, Fragment as $, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { preloadToast as D, showSuccessToast as K, showErrorToast as W, ConfirmationPanel as Y, LazyToastContainerWrapper as H, oe as V } from "./App.
|
|
3
|
-
import { n as q, i as J, useUserPreferences as Q, useServerCapabilities as X, j$1 as Z, setUserPlan as ee, S as d, renderDataAsList as ae, CARDS as s, L as f, j as c, C as se, it as ne, isTauri as re, te, l as b, PROFILE_TITLE as le } from "./index.
|
|
2
|
+
import { preloadToast as D, showSuccessToast as K, showErrorToast as W, ConfirmationPanel as Y, LazyToastContainerWrapper as H, oe as V } from "./App.YrWB4OwR.js";
|
|
3
|
+
import { n as q, i as J, useUserPreferences as Q, useServerCapabilities as X, j$1 as Z, setUserPlan as ee, S as d, renderDataAsList as ae, CARDS as s, L as f, j as c, C as se, it as ne, isTauri as re, te, l as b, PROFILE_TITLE as le } from "./index.CKriJDCb.js";
|
|
4
4
|
import ie from "clsx";
|
|
5
5
|
import { useState as m, useMemo as ce, useCallback as P } from "react";
|
|
6
6
|
const oe = () => {
|