@versini/sassysaint 8.23.1 → 8.23.3
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/{2ZEF3XTO.DAgnOZCI.js → 2ZEF3XTO.CMm5LbAd.js} +1 -1
- package/dist/chunks/{AboutChangelog.BjAjrLup.js → AboutChangelog.C7-hKAzB.js} +2 -2
- package/dist/chunks/{App.B0Dmvq_e.js → App.B_64ZeIE.js} +10 -10
- package/dist/chunks/{Chart.CIinqrzj.js → Chart.BtX0xgOE.js} +2 -2
- package/dist/chunks/ChatBubbleAssistant.BX0XpD9U.js +74 -0
- package/dist/chunks/{index.CW5ozKKP.js → index.B9d2boFf.js} +3 -3
- package/dist/chunks/{index.C9iAnbQm.js → index.BKRN6H3t.js} +1 -1
- package/dist/chunks/{index.BAzHNNuR.js → index.Cuvh-sZ-.js} +2 -2
- package/dist/chunks/{index.DpUYuxYc.js → index.DM_geSGv.js} +2 -2
- package/dist/chunks/{index.Dg1D4G7O.js → index.DSpqvy4j.js} +1 -1
- package/dist/chunks/{index.CknoL8Zq.js → index.DU7Pf3br.js} +1 -1
- package/dist/chunks/{useMarkdown.J-N51p-4.js → useMarkdown.DpTyS1Mr.js} +6 -6
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
- package/dist/chunks/ChatBubbleAssistant.RRlJT0qX.js +0 -74
@@ -1,7 +1,7 @@
|
|
1
1
|
var bs = Object.defineProperty;
|
2
2
|
var ps = (e, t, n) => t in e ? bs(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
3
3
|
var _e = (e, t, n) => ps(e, typeof t != "symbol" ? t + "" : t, n);
|
4
|
-
import { createContext as we, createSignal as z, onMount as At, createEffect as U, createMemo as D, createComponent as v, Portal as Po, Show as B, template as _, insert as k, createRenderEffect as G, className as F, clearDelegatedEvents as ws, delegateEvents as or, useContext as xe, onCleanup as H, sortFns as Gn, mutationSortFns as Hn, on as ut, setAttribute as M, getSidedProp as xs, use as An, batch as $s, getQueryStatusLabel as Pt, getMutationStatusColor as Rt, getQueryStatusColor as Cs, getQueryStatusColorByLabel as Ss, displayValue as wn, For as ks, convertRemToPixels as zr, untrack as zt, useTransition as Es, spread as Ds, mergeProps as W, createRoot as Kr, serialize as As, Index as Ms, updateNestedDataByPath as ir, addEventListener as Ts, stringify as Fs, Match as zn, Switch as Is, deleteNestedDataByPath as Os, createUniqueId as Ne, splitProps as re, Dynamic as Ls, createComputed as Ps, getPreferredColorScheme as _s } from "./index.
|
4
|
+
import { createContext as we, createSignal as z, onMount as At, createEffect as U, createMemo as D, createComponent as v, Portal as Po, Show as B, template as _, insert as k, createRenderEffect as G, className as F, clearDelegatedEvents as ws, delegateEvents as or, useContext as xe, onCleanup as H, sortFns as Gn, mutationSortFns as Hn, on as ut, setAttribute as M, getSidedProp as xs, use as An, batch as $s, getQueryStatusLabel as Pt, getMutationStatusColor as Rt, getQueryStatusColor as Cs, getQueryStatusColorByLabel as Ss, displayValue as wn, For as ks, convertRemToPixels as zr, untrack as zt, useTransition as Es, spread as Ds, mergeProps as W, createRoot as Kr, serialize as As, Index as Ms, updateNestedDataByPath as ir, addEventListener as Ts, stringify as Fs, Match as zn, Switch as Is, deleteNestedDataByPath as Os, createUniqueId as Ne, splitProps as re, Dynamic as Ls, createComputed as Ps, getPreferredColorScheme as _s } from "./index.DM_geSGv.js";
|
5
5
|
var qs = (e) => e != null, Rs = (e) => e.filter(qs);
|
6
6
|
function zs(e) {
|
7
7
|
return (...t) => {
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { jsxs as s, jsx as r } from "react/jsx-runtime";
|
2
|
-
import { b as m, ButtonScroll as n } from "./App.
|
2
|
+
import { b as m, ButtonScroll as n } from "./App.B_64ZeIE.js";
|
3
3
|
import { useRef as f, useCallback as u, useLayoutEffect as p } from "react";
|
4
|
-
import { useMarkdown as d } from "./useMarkdown.
|
4
|
+
import { useMarkdown as d } from "./useMarkdown.DpTyS1Mr.js";
|
5
5
|
const v = ({ content: o }) => {
|
6
6
|
const [l, t] = d(), { ref: a, inViewport: c } = m(), e = f(null), i = u(() => {
|
7
7
|
e.current && e.current.scrollIntoView({
|
@@ -4,7 +4,7 @@ var dn = (e) => {
|
|
4
4
|
var pa = (e, t, r) => t.has(e) || dn("Cannot " + r);
|
5
5
|
var P = (e, t, r) => (pa(e, t, "read from private field"), r ? r.call(e) : t.get(e)), ve = (e, t, r) => t.has(e) ? dn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), le = (e, t, r, a) => (pa(e, t, "write to private field"), a ? a.call(e, r) : t.set(e, r), r), fe = (e, t, r) => (pa(e, t, "access private method"), r);
|
6
6
|
import { jsx as c, jsxs as A, Fragment as ue } from "react/jsx-runtime";
|
7
|
-
import { Subscribable as $l, pendingThenable as un, resolveEnabled as Ke, shallowEqualObjects as Da, resolveStaleTime as nr, noop as Ma, isServer as Ba, isValidTimeout as fn, focusManager as Ol, fetchState as Ll, replaceData as hn, notifyManager as xs, timeUntilStale as Pl, shouldThrowError as Dl, useQueryClient as Ml, I as oe, ACTION_SORT as Ha, ACTION_SEARCH as Ss, ACTION_RESET_PROMPT as Cs, ACTION_TOGGLE_PROMPT as Is, le as Ie, DEFAULT_ICON_ACTION_SIZE as Xe, n as Oe, isElectron as za, isProbablyiPhone as Ua, L as gr, j as Ye, C as xt, LOCAL_STORAGE_PREFIX as Ct, LOCAL_STORAGE_PRIVATE_DISCLOSURE as Bl, LOCAL_STORAGE_REASONING_DISCLOSURE as Hl, TOAST_CHAT_SAVED as zl, toastOptions as jr, TOAST_PROVIDER_CHANGED as Ns, PROMPT_CLASSNAME as Ul, PROMPT_EDITABLE_AREA_CLASSNAME as Vl, ERROR_MESSAGE as Fl, ROLE_INTERNAL as Va, CLIPBOARD_PROMPT as mn, isProbablyMobile as Ue, INPUT_PLACEHOLDER_TEXT_MOBILE as pn, INPUT_PLACEHOLDER_TEXT_ENTER as gn, INPUT_PLACEHOLDER_TEXT_CMD_ENTER as yn, FOOTER_DISCLAIMER as Wl, S as Pe, renderDataAsList as Kr, CARDS as se, pluralize as sr, ABOUT_TITLE as Gl, INFINITE_SCROLL_LIMIT as bn, INFINITE_SCROLL_THRESHOLD as vn, LOCAL_STORAGE_SORT as As, APP_CLASSNAME as Rs, TOAST_CHAT_DELETED as jl, LOCAL_STORAGE_SEARCH as $s, HISTORY_TITLE as Kl, fe as Jl, debounce as ql, l as wn, PROFILE_TITLE as Yl, LOCAL_STORAGE_CHAT_DETAILS as Ql, SETTINGS_TITLE as Xl, APP_NAME as Zl, PROMPTS_DESCRIPTION as ec, getCurrentGeoLocation as tc, USAGE_TITLE as rc, LOG_OUT as _n, getMessageContaintWrapperClass as ac, UI_FOOTER_BUFFER as Os, UI_BUTTON_SCROLL_BUFFER as oc, Logo as nc, UI_DEFAULT_MAIN_HEIGHT as kn, getMainPaddingClass as En, r as sc } from "./index.
|
7
|
+
import { Subscribable as $l, pendingThenable as un, resolveEnabled as Ke, shallowEqualObjects as Da, resolveStaleTime as nr, noop as Ma, isServer as Ba, isValidTimeout as fn, focusManager as Ol, fetchState as Ll, replaceData as hn, notifyManager as xs, timeUntilStale as Pl, shouldThrowError as Dl, useQueryClient as Ml, I as oe, ACTION_SORT as Ha, ACTION_SEARCH as Ss, ACTION_RESET_PROMPT as Cs, ACTION_TOGGLE_PROMPT as Is, le as Ie, DEFAULT_ICON_ACTION_SIZE as Xe, n as Oe, isElectron as za, isProbablyiPhone as Ua, L as gr, j as Ye, C as xt, LOCAL_STORAGE_PREFIX as Ct, LOCAL_STORAGE_PRIVATE_DISCLOSURE as Bl, LOCAL_STORAGE_REASONING_DISCLOSURE as Hl, TOAST_CHAT_SAVED as zl, toastOptions as jr, TOAST_PROVIDER_CHANGED as Ns, PROMPT_CLASSNAME as Ul, PROMPT_EDITABLE_AREA_CLASSNAME as Vl, ERROR_MESSAGE as Fl, ROLE_INTERNAL as Va, CLIPBOARD_PROMPT as mn, isProbablyMobile as Ue, INPUT_PLACEHOLDER_TEXT_MOBILE as pn, INPUT_PLACEHOLDER_TEXT_ENTER as gn, INPUT_PLACEHOLDER_TEXT_CMD_ENTER as yn, FOOTER_DISCLAIMER as Wl, S as Pe, renderDataAsList as Kr, CARDS as se, pluralize as sr, ABOUT_TITLE as Gl, INFINITE_SCROLL_LIMIT as bn, INFINITE_SCROLL_THRESHOLD as vn, LOCAL_STORAGE_SORT as As, APP_CLASSNAME as Rs, TOAST_CHAT_DELETED as jl, LOCAL_STORAGE_SEARCH as $s, HISTORY_TITLE as Kl, fe as Jl, debounce as ql, l as wn, PROFILE_TITLE as Yl, LOCAL_STORAGE_CHAT_DETAILS as Ql, SETTINGS_TITLE as Xl, APP_NAME as Zl, PROMPTS_DESCRIPTION as ec, getCurrentGeoLocation as tc, USAGE_TITLE as rc, LOG_OUT as _n, getMessageContaintWrapperClass as ac, UI_FOOTER_BUFFER as Os, UI_BUTTON_SCROLL_BUFFER as oc, Logo as nc, UI_DEFAULT_MAIN_HEIGHT as kn, getMainPaddingClass as En, r as sc } from "./index.DM_geSGv.js";
|
8
8
|
import * as ae from "react";
|
9
9
|
import W, { useEffect as B, useRef as O, useState as U, useCallback as Q, useSyncExternalStore as Ls, useMemo as Le, useId as ra, useContext as re, useLayoutEffect as _e, isValidElement as aa, cloneElement as Co, createContext as Ps, useDebugValue as ic, forwardRef as Ds, Suspense as Io, lazy as No, Fragment as lc, useReducer as rr } from "react";
|
10
10
|
import b from "clsx";
|
@@ -2568,7 +2568,7 @@ const ir = "FOOTER_BOTTOM", ao = "FOOTER_TOP", Ur = "APP_SET_FOOTER_POSITION", h
|
|
2568
2568
|
case mi:
|
2569
2569
|
return {
|
2570
2570
|
...e,
|
2571
|
-
tokenUsage: t.payload.tokenUsage
|
2571
|
+
tokenUsage: e.tokenUsage + t.payload.tokenUsage
|
2572
2572
|
};
|
2573
2573
|
case Wt:
|
2574
2574
|
return {
|
@@ -2576,8 +2576,8 @@ const ir = "FOOTER_BOTTOM", ao = "FOOTER_TOP", Ur = "APP_SET_FOOTER_POSITION", h
|
|
2576
2576
|
attachments: t.payload.attachments
|
2577
2577
|
};
|
2578
2578
|
case _t: {
|
2579
|
-
let l = !1, d = !1, f = !1, u = !1, m = "", h = 0;
|
2580
|
-
return typeof ((r = t == null ? void 0 : t.payload) == null ? void 0 : r.loading) == "boolean" ? f = t.payload.loading : typeof e.loading == "boolean" && (f = e.loading), typeof ((a = t == null ? void 0 : t.payload) == null ? void 0 : a.streaming) == "boolean" ? d = t.payload.streaming : typeof e.streaming == "boolean" && (d = e.streaming), typeof ((o = t == null ? void 0 : t.payload) == null ? void 0 : o.restoring) == "boolean" ? (l = t.payload.restoring, m = t.payload.restoredModel || "", h = t.payload.restoredUsage || 0) : typeof e.restoring == "boolean" && (l = e.restoring, m = e.restoredModel || "", h = e.restoredUsage || 0), typeof ((n = t == null ? void 0 : t.payload) == null ? void 0 : n.aborted) == "boolean" ? u = t.payload.aborted : typeof e.aborted == "boolean" && (u = e.aborted), (d || f) && (l = !1, m = "", h = 0, u = !1), {
|
2579
|
+
let l = !1, d = !1, f = !1, u = !1, m = "", h = 0, p = e.tokenUsage;
|
2580
|
+
return typeof ((r = t == null ? void 0 : t.payload) == null ? void 0 : r.loading) == "boolean" ? f = t.payload.loading : typeof e.loading == "boolean" && (f = e.loading), typeof ((a = t == null ? void 0 : t.payload) == null ? void 0 : a.streaming) == "boolean" ? d = t.payload.streaming : typeof e.streaming == "boolean" && (d = e.streaming), typeof ((o = t == null ? void 0 : t.payload) == null ? void 0 : o.restoring) == "boolean" ? (l = t.payload.restoring, m = t.payload.restoredModel || "", h = t.payload.restoredUsage || 0, l && (p = h)) : typeof e.restoring == "boolean" && (l = e.restoring, m = e.restoredModel || "", h = e.restoredUsage || 0), typeof ((n = t == null ? void 0 : t.payload) == null ? void 0 : n.aborted) == "boolean" ? u = t.payload.aborted : typeof e.aborted == "boolean" && (u = e.aborted), (d || f) && (l = !1, m = "", h = 0, u = !1), {
|
2581
2581
|
...e,
|
2582
2582
|
reseting: !1,
|
2583
2583
|
streaming: d,
|
@@ -2586,7 +2586,7 @@ const ir = "FOOTER_BOTTOM", ao = "FOOTER_TOP", Ur = "APP_SET_FOOTER_POSITION", h
|
|
2586
2586
|
restoredModel: m,
|
2587
2587
|
restoredUsage: h,
|
2588
2588
|
aborted: u,
|
2589
|
-
tokenUsage: t.payload.tokenUsage
|
2589
|
+
tokenUsage: t.payload.tokenUsage ? p + t.payload.tokenUsage : p,
|
2590
2590
|
attachments: t.payload.attachments !== void 0 ? t.payload.attachments : e.attachments,
|
2591
2591
|
lastStreamingTimestamp: d ? Date.now() : e.lastStreamingTimestamp
|
2592
2592
|
};
|
@@ -9449,7 +9449,7 @@ const jp = (e) => {
|
|
9449
9449
|
}, gg = No(
|
9450
9450
|
() => import(
|
9451
9451
|
/* webpackChunkName: "LazyAboutChangelog" */
|
9452
|
-
"./AboutChangelog.
|
9452
|
+
"./AboutChangelog.C7-hKAzB.js"
|
9453
9453
|
)
|
9454
9454
|
), yg = () => {
|
9455
9455
|
const e = lr(), t = lr(), { data: r, isSuccess: a } = Pu(), { data: o, isSuccess: n } = Du(), s = (r == null ? void 0 : r.version) || "", i = (r == null ? void 0 : r.models) || [];
|
@@ -9460,8 +9460,8 @@ const jp = (e) => {
|
|
9460
9460
|
header: se.ABOUT.TITLE_CLIENT,
|
9461
9461
|
className: "prose-dark dark:prose-lighter mb-4",
|
9462
9462
|
children: Kr(e, {
|
9463
|
-
[se.ABOUT.VERSION]: "8.23.
|
9464
|
-
[se.ABOUT.BUILD_TIMESTAMP]: "06/
|
9463
|
+
[se.ABOUT.VERSION]: "8.23.3",
|
9464
|
+
[se.ABOUT.BUILD_TIMESTAMP]: "06/15/2025 01:10 PM EDT"
|
9465
9465
|
})
|
9466
9466
|
}
|
9467
9467
|
),
|
@@ -10867,7 +10867,7 @@ const e1 = ({
|
|
10867
10867
|
) : null;
|
10868
10868
|
}, wt = [0, 3, 6, 9], t1 = No(() => import(
|
10869
10869
|
/* webpackChunkName: "LazyChart" */
|
10870
|
-
"./Chart.
|
10870
|
+
"./Chart.BtX0xgOE.js"
|
10871
10871
|
)), r1 = ({
|
10872
10872
|
open: e,
|
10873
10873
|
onOpenChange: t
|
@@ -12531,7 +12531,7 @@ const ty = ({ content: e }) => /* @__PURE__ */ c(
|
|
12531
12531
|
), Es = 2, ry = No(
|
12532
12532
|
() => import(
|
12533
12533
|
/* webpackChunkName: "LazyMessageAssistant" */
|
12534
|
-
"./ChatBubbleAssistant.
|
12534
|
+
"./ChatBubbleAssistant.BX0XpD9U.js"
|
12535
12535
|
)
|
12536
12536
|
), ay = W.memo(
|
12537
12537
|
({
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { jsx as nn, Fragment as Op } from "react/jsx-runtime";
|
2
|
-
import { getDefaultExportFromCjs as pn } from "./App.
|
2
|
+
import { getDefaultExportFromCjs as pn } from "./App.B_64ZeIE.js";
|
3
3
|
import Lp, { useState as Ep, useEffect as Ip } from "react";
|
4
|
-
import { TRIMESTERS as ln, TRIMESTERS_SHORT as Dp, isProbablyMobile as Bp } from "./index.
|
4
|
+
import { TRIMESTERS as ln, TRIMESTERS_SHORT as Dp, isProbablyMobile as Bp } from "./index.DM_geSGv.js";
|
5
5
|
var ds = { exports: {} }, Np = ds.exports, hn;
|
6
6
|
function zp() {
|
7
7
|
return hn || (hn = 1, function(we, he) {
|
@@ -0,0 +1,74 @@
|
|
1
|
+
import { jsx as T } from "react/jsx-runtime";
|
2
|
+
import { ChatContext as b, E as _, Me as N, Oe as S } from "./App.B_64ZeIE.js";
|
3
|
+
import L from "clsx";
|
4
|
+
import k, { useState as E, useRef as g, useEffect as O, useContext as w } from "react";
|
5
|
+
import { LOCAL_STORAGE_PREFIX as F, LOCAL_STORAGE_CHAT_DETAILS as G, convertCamelCaseToReadable as U, numberFormatter as I, pluralize as P, ROLE_INTERNAL as v } from "./index.DM_geSGv.js";
|
6
|
+
import { useMarkdown as y } from "./useMarkdown.DpTyS1Mr.js";
|
7
|
+
const D = 2, j = D * 1e3, h = "", q = (e) => e * (2 - e);
|
8
|
+
function V(e, t = !0) {
|
9
|
+
const [i, C] = E(0), [c, p] = E(0), [r, A] = E(e), s = g(0), o = g(0);
|
10
|
+
return r !== e && (A(e), p(e.startsWith(r) ? i : 0)), O(() => {
|
11
|
+
if (!t)
|
12
|
+
return;
|
13
|
+
const u = e.split(h).length, n = (l) => {
|
14
|
+
o.current || (o.current = l);
|
15
|
+
const m = l - o.current, f = Math.min(m / j, 1), a = q(f), R = c + (u - c) * a;
|
16
|
+
C(Math.floor(R)), f < 1 && (s.current = requestAnimationFrame(n));
|
17
|
+
};
|
18
|
+
return o.current = 0, s.current = requestAnimationFrame(n), () => {
|
19
|
+
s.current && cancelAnimationFrame(s.current);
|
20
|
+
};
|
21
|
+
}, [c, e, t]), t ? e.split(h).slice(0, i).join(h) : e;
|
22
|
+
}
|
23
|
+
const d = {
|
24
|
+
MODEL: "Model",
|
25
|
+
PLUGIN: "Plugin",
|
26
|
+
USAGE: "Session usage"
|
27
|
+
}, x = L("max-w-[99cqw] mt-3"), M = L("max-w-xs", "sm:max-w-3xl", "prose-li:ps-3"), X = k.memo(
|
28
|
+
({
|
29
|
+
content: e,
|
30
|
+
annotations: t,
|
31
|
+
toolName: i,
|
32
|
+
role: C,
|
33
|
+
smooth: c = !1,
|
34
|
+
isLastAssistantMessage: p = !1
|
35
|
+
}) => {
|
36
|
+
const r = V(e, c), {
|
37
|
+
state: { streaming: A, restoredModel: s, tokenUsage: o }
|
38
|
+
} = w(b), u = (t == null ? void 0 : t.model) || s, n = o, [l, m] = y(), [f] = _({
|
39
|
+
key: F + G,
|
40
|
+
initialValue: !1
|
41
|
+
});
|
42
|
+
let a;
|
43
|
+
return f && (a = {
|
44
|
+
[d.MODEL]: u || null,
|
45
|
+
[d.PLUGIN]: i ? U(i) : null
|
46
|
+
}, n && (p ? a[d.USAGE] = `${I.format(n)} ${P("token", n)}` : a[d.USAGE] = N)), O(() => {
|
47
|
+
r && m(r);
|
48
|
+
}, [r, m]), C === v ? /* @__PURE__ */ T(
|
49
|
+
S,
|
50
|
+
{
|
51
|
+
tail: !0,
|
52
|
+
className: x,
|
53
|
+
contentClassName: M,
|
54
|
+
noMaxWidth: !0,
|
55
|
+
children: /* @__PURE__ */ T("div", { className: "flex items-center justify-center italic text-copy-error-dark dark:text-red-300", children: l })
|
56
|
+
}
|
57
|
+
) : /* @__PURE__ */ T(
|
58
|
+
S,
|
59
|
+
{
|
60
|
+
tail: !0,
|
61
|
+
copyToClipboard: A ? "loading..." : e,
|
62
|
+
copyToClipboardFocusMode: "light",
|
63
|
+
footer: a,
|
64
|
+
className: x,
|
65
|
+
contentClassName: M,
|
66
|
+
noMaxWidth: !0,
|
67
|
+
children: l
|
68
|
+
}
|
69
|
+
);
|
70
|
+
}
|
71
|
+
);
|
72
|
+
export {
|
73
|
+
X as default
|
74
|
+
};
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { getDefaultExportFromCjs as kn } from "./App.
|
2
|
-
import { visit as In } from "./useMarkdown.
|
3
|
-
import { toText as Cn } from "./index.
|
1
|
+
import { getDefaultExportFromCjs as kn } from "./App.B_64ZeIE.js";
|
2
|
+
import { visit as In } from "./useMarkdown.DpTyS1Mr.js";
|
3
|
+
import { toText as Cn } from "./index.BKRN6H3t.js";
|
4
4
|
function xn(e) {
|
5
5
|
const t = e.regex, i = e.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] }), a = "decltype\\(auto\\)", r = "[a-zA-Z_]\\w*::", d = "(?!struct)(" + a + "|" + t.optional(r) + "[a-zA-Z_]\\w*" + t.optional("<[^<>]+>") + ")", c = {
|
6
6
|
className: "type",
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { parse as _t, parse$1 as er, visitParents as Za, SKIP as Ja } from "./useMarkdown.
|
2
|
-
import { toText as Qa } from "./index.
|
1
|
+
import { parse as _t, parse$1 as er, visitParents as Za, SKIP as Ja } from "./useMarkdown.DpTyS1Mr.js";
|
2
|
+
import { toText as Qa } from "./index.BKRN6H3t.js";
|
3
3
|
class ye {
|
4
4
|
/**
|
5
5
|
* @constructor
|
@@ -3246,7 +3246,7 @@ var ju = (e, t = !1) => {
|
|
3246
3246
|
const t = Pa(() => {
|
3247
3247
|
const r = this, [n] = f(this, mt), [s] = f(this, pt), [i] = f(this, gt), [a] = f(this, bt), [o] = f(this, ht);
|
3248
3248
|
let c;
|
3249
|
-
return f(this, wt) ? c = f(this, wt) : (c = va(() => import("./2ZEF3XTO.
|
3249
|
+
return f(this, wt) ? c = f(this, wt) : (c = va(() => import("./2ZEF3XTO.CMm5LbAd.js")), w(this, wt, c)), ko(f(this, Gt), f(this, yt)), pa(c, ba({
|
3250
3250
|
get queryFlavor() {
|
3251
3251
|
return f(r, Vt);
|
3252
3252
|
},
|
@@ -7264,7 +7264,7 @@ Press Ctrl+Enter to send it or Enter for new line.`, Bd = "{{clipboard}}", Vd =
|
|
7264
7264
|
) });
|
7265
7265
|
}, fu = new URL(document.location.href).searchParams, Zn = !!fu.get("debug") || !1, hu = _i(() => import(
|
7266
7266
|
/* webpackChunkName: "LazyApp" */
|
7267
|
-
"./App.
|
7267
|
+
"./App.B_64ZeIE.js"
|
7268
7268
|
).then((e) => e.App)), yu = new Xi(), es = ({
|
7269
7269
|
isComponent: e,
|
7270
7270
|
headerHeight: t
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { convert as se, visitParents as Pe, unicodeWhitespace as I, unicodePunctuation as N, normalizeIdentifier as _, classifyCharacter as $, visit as Me, toString as ce, EXIT as _e, asciiAlphanumeric as Z, asciiAlpha as P, markdownLineEndingOrSpace as A, asciiControl as Oe, blankLine as je, factorySpace as S, splice as q, resolveAll as Be, markdownLineEnding as R, markdownSpace as L, combineExtensions as $e } from "./useMarkdown.
|
1
|
+
import { convert as se, visitParents as Pe, unicodeWhitespace as I, unicodePunctuation as N, normalizeIdentifier as _, classifyCharacter as $, visit as Me, toString as ce, EXIT as _e, asciiAlphanumeric as Z, asciiAlpha as P, markdownLineEndingOrSpace as A, asciiControl as Oe, blankLine as je, factorySpace as S, splice as q, resolveAll as Be, markdownLineEnding as R, markdownSpace as L, combineExtensions as $e } from "./useMarkdown.DpTyS1Mr.js";
|
2
2
|
import { longestStreak as We } from "./index.Cyw5OC0t.js";
|
3
3
|
function ne(e, n) {
|
4
4
|
const t = String(e);
|
@@ -3,9 +3,9 @@ var Cr = (e, n, t) => n in e ? Sr(e, n, { enumerable: !0, configurable: !0, writ
|
|
3
3
|
var Re = (e, n, t) => Cr(e, typeof n != "symbol" ? n + "" : n, t);
|
4
4
|
import * as tn from "react/jsx-runtime";
|
5
5
|
import { jsx as se, jsxs as In, Fragment as Er } from "react/jsx-runtime";
|
6
|
-
import { le as Ir, unObfuscate as Pr, obfuscate as Tr } from "./index.
|
6
|
+
import { le as Ir, unObfuscate as Pr, obfuscate as Tr } from "./index.DM_geSGv.js";
|
7
7
|
import Ar, { useState as Tt, useEffect as At, useRef as De, useCallback as zr } from "react";
|
8
|
-
import { getDefaultExportFromCjs as zt } from "./App.
|
8
|
+
import { getDefaultExportFromCjs as zt } from "./App.B_64ZeIE.js";
|
9
9
|
import Lr from "clsx";
|
10
10
|
const Lt = ({
|
11
11
|
children: e,
|
@@ -6830,7 +6830,7 @@ class ou {
|
|
6830
6830
|
if (!this.remarkGfm) {
|
6831
6831
|
const { default: n } = await import(
|
6832
6832
|
/* webpackChunkName: "LazyRemarkGfm" */
|
6833
|
-
"./index.
|
6833
|
+
"./index.DSpqvy4j.js"
|
6834
6834
|
);
|
6835
6835
|
this.remarkGfm = n;
|
6836
6836
|
}
|
@@ -6841,7 +6841,7 @@ class ou {
|
|
6841
6841
|
pu("https://cdn.jsdelivr.net/npm/katex@latest/dist/katex.min.css");
|
6842
6842
|
const { default: n } = await import(
|
6843
6843
|
/* webpackChunkName: "LazyRehypeKatex" */
|
6844
|
-
"./index.
|
6844
|
+
"./index.Cuvh-sZ-.js"
|
6845
6845
|
);
|
6846
6846
|
this.rehypeKatex = n;
|
6847
6847
|
}
|
@@ -6851,7 +6851,7 @@ class ou {
|
|
6851
6851
|
if (!this.remarkMath) {
|
6852
6852
|
const { default: n } = await import(
|
6853
6853
|
/* webpackChunkName: "LazyRemarkMath" */
|
6854
|
-
"./index.
|
6854
|
+
"./index.DU7Pf3br.js"
|
6855
6855
|
);
|
6856
6856
|
this.remarkMath = n;
|
6857
6857
|
}
|
@@ -6861,7 +6861,7 @@ class ou {
|
|
6861
6861
|
if (!this.rehypeHighlight) {
|
6862
6862
|
const { default: n } = await import(
|
6863
6863
|
/* webpackChunkName: "LazyRehypeHighlight" */
|
6864
|
-
"./index.
|
6864
|
+
"./index.B9d2boFf.js"
|
6865
6865
|
);
|
6866
6866
|
this.rehypeHighlight = n;
|
6867
6867
|
}
|
package/dist/index.js
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
import { SassySaint as r } from "./chunks/index.
|
1
|
+
import { SassySaint as r } from "./chunks/index.DM_geSGv.js";
|
2
2
|
/*!
|
3
|
-
@sassysaint/client v8.23.
|
3
|
+
@sassysaint/client v8.23.3
|
4
4
|
© 2025 gizmette.com
|
5
5
|
*/
|
6
6
|
try {
|
7
7
|
window.__VERSINI_SASSY_GLOBAL__ || (window.__VERSINI_SASSY_GLOBAL__ = {
|
8
|
-
version: "8.23.
|
9
|
-
buildTime: "06/
|
8
|
+
version: "8.23.3",
|
9
|
+
buildTime: "06/15/2025 01:10 PM EDT",
|
10
10
|
license: "MIT"
|
11
11
|
});
|
12
12
|
} catch {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@versini/sassysaint",
|
3
|
-
"version": "8.23.
|
3
|
+
"version": "8.23.3",
|
4
4
|
"license": "MIT",
|
5
5
|
"author": "Arno Versini",
|
6
6
|
"publishConfig": {
|
@@ -30,7 +30,7 @@
|
|
30
30
|
"react-dom": "^18.3.1 || ^19.0.0"
|
31
31
|
},
|
32
32
|
"devDependencies": {
|
33
|
-
"@sassysaint/client": "8.23.
|
33
|
+
"@sassysaint/client": "8.23.3",
|
34
34
|
"@tailwindcss/vite": "4.1.8",
|
35
35
|
"@versini/ui-styles": "5.0.4"
|
36
36
|
},
|
@@ -42,5 +42,5 @@
|
|
42
42
|
"sideEffects": [
|
43
43
|
"**/*.css"
|
44
44
|
],
|
45
|
-
"gitHead": "
|
45
|
+
"gitHead": "aa3dfa51a4d9968493dc2ddf52b92fae2599c3ca"
|
46
46
|
}
|
@@ -1,74 +0,0 @@
|
|
1
|
-
import { jsx as E } from "react/jsx-runtime";
|
2
|
-
import { ChatContext as b, E as _, Me as N, Oe as S } from "./App.B0Dmvq_e.js";
|
3
|
-
import O from "clsx";
|
4
|
-
import k, { useState as g, useRef as x, useEffect as R, useContext as U } from "react";
|
5
|
-
import { LOCAL_STORAGE_PREFIX as w, LOCAL_STORAGE_CHAT_DETAILS as F, convertCamelCaseToReadable as G, numberFormatter as I, pluralize as P, ROLE_INTERNAL as v } from "./index.DpUYuxYc.js";
|
6
|
-
import { useMarkdown as y } from "./useMarkdown.J-N51p-4.js";
|
7
|
-
const D = 2, j = D * 1e3, h = "", q = (e) => e * (2 - e);
|
8
|
-
function V(e, t = !0) {
|
9
|
-
const [i, d] = g(0), [c, C] = g(0), [r, p] = g(e), s = x(0), o = x(0);
|
10
|
-
return r !== e && (p(e), C(e.startsWith(r) ? i : 0)), R(() => {
|
11
|
-
if (!t)
|
12
|
-
return;
|
13
|
-
const A = e.split(h).length, l = (n) => {
|
14
|
-
o.current || (o.current = n);
|
15
|
-
const m = n - o.current, u = Math.min(m / j, 1), T = q(u), a = c + (A - c) * T;
|
16
|
-
d(Math.floor(a)), u < 1 && (s.current = requestAnimationFrame(l));
|
17
|
-
};
|
18
|
-
return o.current = 0, s.current = requestAnimationFrame(l), () => {
|
19
|
-
s.current && cancelAnimationFrame(s.current);
|
20
|
-
};
|
21
|
-
}, [c, e, t]), t ? e.split(h).slice(0, i).join(h) : e;
|
22
|
-
}
|
23
|
-
const f = {
|
24
|
-
MODEL: "Model",
|
25
|
-
PLUGIN: "Plugin",
|
26
|
-
USAGE: "Session usage"
|
27
|
-
}, M = O("max-w-[99cqw] mt-3"), L = O("max-w-xs", "sm:max-w-3xl", "prose-li:ps-3"), X = k.memo(
|
28
|
-
({
|
29
|
-
content: e,
|
30
|
-
annotations: t,
|
31
|
-
toolName: i,
|
32
|
-
role: d,
|
33
|
-
smooth: c = !1,
|
34
|
-
isLastAssistantMessage: C = !1
|
35
|
-
}) => {
|
36
|
-
const r = V(e, c), {
|
37
|
-
state: { streaming: p, restoredModel: s, tokenUsage: o, restoredUsage: A }
|
38
|
-
} = U(b), l = (t == null ? void 0 : t.model) || s, n = A || o, [m, u] = y(), [T] = _({
|
39
|
-
key: w + F,
|
40
|
-
initialValue: !1
|
41
|
-
});
|
42
|
-
let a;
|
43
|
-
return T && (a = {
|
44
|
-
[f.MODEL]: l || null,
|
45
|
-
[f.PLUGIN]: i ? G(i) : null
|
46
|
-
}, n && (C ? a[f.USAGE] = `${I.format(n)} ${P("token", n)}` : a[f.USAGE] = N)), R(() => {
|
47
|
-
r && u(r);
|
48
|
-
}, [r, u]), d === v ? /* @__PURE__ */ E(
|
49
|
-
S,
|
50
|
-
{
|
51
|
-
tail: !0,
|
52
|
-
className: M,
|
53
|
-
contentClassName: L,
|
54
|
-
noMaxWidth: !0,
|
55
|
-
children: /* @__PURE__ */ E("div", { className: "flex items-center justify-center italic text-copy-error-dark dark:text-red-300", children: m })
|
56
|
-
}
|
57
|
-
) : /* @__PURE__ */ E(
|
58
|
-
S,
|
59
|
-
{
|
60
|
-
tail: !0,
|
61
|
-
copyToClipboard: p ? "loading..." : e,
|
62
|
-
copyToClipboardFocusMode: "light",
|
63
|
-
footer: a,
|
64
|
-
className: M,
|
65
|
-
contentClassName: L,
|
66
|
-
noMaxWidth: !0,
|
67
|
-
children: m
|
68
|
-
}
|
69
|
-
);
|
70
|
-
}
|
71
|
-
);
|
72
|
-
export {
|
73
|
-
X as default
|
74
|
-
};
|