@versini/sassysaint 8.45.4 → 8.45.6
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.Dm7CeWzJ.js → AboutChangelog.LWPPo7H9.js} +2 -2
- package/dist/chunks/{AboutEntry.z1IGd8nH.js → AboutEntry.BFBDyy6h.js} +6 -6
- package/dist/chunks/App.Cwzj_7TG.js +10560 -0
- package/dist/chunks/{Chart.fnP0GZlV.js → Chart.BxV8to7Z.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.C214h3Za.js → ChatBubbleAssistant.Bp18OzE9.js} +12 -12
- package/dist/chunks/ChatHistoryTable.BVjiHyBX.js +649 -0
- package/dist/chunks/{HistoryEntry.Bg8wGgO6.js → HistoryEntry.C16tGap4.js} +27 -27
- package/dist/chunks/{LNWAZHJI.CgXWR3aC.js → LNWAZHJI.CED6wpxJ.js} +1 -1
- package/dist/chunks/{ProfileEntry.llkfgZbz.js → ProfileEntry.DsI-YgqO.js} +5 -5
- package/dist/chunks/SettingsEntry.CIijARba.js +889 -0
- package/dist/chunks/{UsageEntry.Dt5P9AhJ.js → UsageEntry.DrEbNjpo.js} +7 -7
- package/dist/chunks/{index.aLXAYIRa.js → index.BFk_wbyz.js} +1 -1
- package/dist/chunks/{index.0hUxtRYc.js → index.BHaXd0Ws.js} +1 -1
- package/dist/chunks/{index.Brh2cWqI.js → index.C_uGQmmV.js} +1 -1
- package/dist/chunks/{index.DXnBFV0d.js → index.CvSvQRF0.js} +2 -2
- package/dist/chunks/{index.xegEqIYd.js → index.Ddqbg8Ks.js} +1506 -1455
- package/dist/chunks/{index.Cdz3tBE5.js → index.Des5u3uL.js} +3 -3
- package/dist/chunks/index.LWF-Ggi7.js +249 -0
- package/dist/chunks/{useMarkdown.CWlc3oNt.js → useMarkdown.CR3mLjmN.js} +502 -502
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +5 -5
- package/dist/chunks/App.Dxe8LDdD.js +0 -12621
- package/dist/chunks/ChatHistoryTable.CHWU2-BC.js +0 -1205
- package/dist/chunks/SettingsEntry.mv_g2-2P.js +0 -1064
- package/dist/chunks/index.CyMvgyLB.js +0 -804
@@ -1,21 +1,21 @@
|
|
1
|
-
import { jsxs as
|
2
|
-
import { I as Q, n as z, INFINITE_SCROLL_LIMIT as H, INFINITE_SCROLL_THRESHOLD as Z, LOCAL_STORAGE_PREFIX as g, LOCAL_STORAGE_SORT_TIMESTAMP as ee, LOCAL_STORAGE_SORT_TOKEN_USAGE as te, LOCAL_STORAGE_SORT as ae, ue
|
3
|
-
import { HistoryContext as M, ChatContext as P, useAiChat as Se, E as D, e as h, useUserPreferences as Ce, ConfirmationPanel as pe, LazyToastContainerWrapper as Te, mutateCall as N, SERVICE_TYPES as x, showErrorToast as fe, setNewProvider as ye, CHAT_SET_PROVIDER as Ee, showSuccessToast as ge, CHAT_SET_STATUS as Ae, useChatsHistory as De,
|
1
|
+
import { jsxs as m, jsx as t, Fragment as J } from "react/jsx-runtime";
|
2
|
+
import { I as Q, n as z, INFINITE_SCROLL_LIMIT as H, INFINITE_SCROLL_THRESHOLD as Z, LOCAL_STORAGE_PREFIX as g, LOCAL_STORAGE_SORT_TIMESTAMP as ee, LOCAL_STORAGE_SORT_TOKEN_USAGE as te, LOCAL_STORAGE_SORT as ae, ue as A, APP_CLASSNAME as re, ACTION_SORT as se, pe as oe, TOAST_CHAT_DELETED as ne, TOAST_PROVIDER_CHANGED as ie, LOCAL_STORAGE_SEARCH as ce, HISTORY_TITLE as le, Y as de, debounce as he, te as me, ACTION_SEARCH as ue } from "./index.Ddqbg8Ks.js";
|
3
|
+
import { HistoryContext as M, ChatContext as P, useAiChat as Se, E as D, e as h, useUserPreferences as Ce, ConfirmationPanel as pe, LazyToastContainerWrapper as Te, mutateCall as N, SERVICE_TYPES as x, showErrorToast as fe, setNewProvider as ye, CHAT_SET_PROVIDER as Ee, showSuccessToast as ge, CHAT_SET_STATUS as Ae, useChatsHistory as De, se as _e, a as Ie } from "./App.Cwzj_7TG.js";
|
4
4
|
import { useRef as R, useState as L, useContext as _, useCallback as Oe, useEffect as V, Suspense as Re, lazy as Le } from "react";
|
5
5
|
const ve = ({
|
6
6
|
className: i,
|
7
7
|
viewBox: l,
|
8
|
-
title:
|
8
|
+
title: u,
|
9
9
|
monotone: S,
|
10
10
|
...d
|
11
|
-
}) => /* @__PURE__ */
|
11
|
+
}) => /* @__PURE__ */ m(
|
12
12
|
Q,
|
13
13
|
{
|
14
14
|
defaultViewBox: "0 0 512 512",
|
15
15
|
size: "size-5",
|
16
16
|
viewBox: l,
|
17
17
|
className: i,
|
18
|
-
title:
|
18
|
+
title: u || "Search",
|
19
19
|
...d,
|
20
20
|
children: [
|
21
21
|
/* @__PURE__ */ t(
|
@@ -31,12 +31,12 @@ const ve = ({
|
|
31
31
|
), ke = Le(
|
32
32
|
() => import(
|
33
33
|
/* webpackChunkName: "history-table" */
|
34
|
-
"./ChatHistoryTable.
|
34
|
+
"./ChatHistoryTable.BVjiHyBX.js"
|
35
35
|
).then((i) => ({ default: i.ChatHistoryTable }))
|
36
36
|
), be = ({
|
37
37
|
filteredHistory: i,
|
38
38
|
dispatch: l,
|
39
|
-
onOpenChange:
|
39
|
+
onOpenChange: u,
|
40
40
|
mutate: S
|
41
41
|
}) => {
|
42
42
|
const { user: d, getAccessToken: C } = z(), p = R(null), s = R({
|
@@ -56,16 +56,16 @@ const ve = ({
|
|
56
56
|
} = _(P), { setInput: U } = Se(), [k, b] = D({
|
57
57
|
key: g + ee,
|
58
58
|
initialValue: h.DESC
|
59
|
-
}), [F,
|
59
|
+
}), [F, B] = D({
|
60
60
|
key: g + te,
|
61
61
|
initialValue: h.ASC
|
62
|
-
}), [,
|
62
|
+
}), [, Y] = D({
|
63
63
|
key: g + ae,
|
64
64
|
initialValue: A
|
65
|
-
}), { refetch:
|
65
|
+
}), { refetch: $ } = Ce({
|
66
66
|
user: d?.username,
|
67
67
|
getAccessToken: C
|
68
|
-
}),
|
68
|
+
}), j = (e) => {
|
69
69
|
const r = n.sortedCell === e;
|
70
70
|
let a, E;
|
71
71
|
switch (e) {
|
@@ -73,14 +73,14 @@ const ve = ({
|
|
73
73
|
E = b, a = r ? n.sortDirection : k;
|
74
74
|
break;
|
75
75
|
case oe:
|
76
|
-
E =
|
76
|
+
E = B, a = r ? n.sortDirection : F;
|
77
77
|
break;
|
78
78
|
default:
|
79
79
|
E = b, a = r ? n.sortDirection : k;
|
80
80
|
break;
|
81
81
|
}
|
82
82
|
const w = a === h.ASC ? h.DESC : h.ASC;
|
83
|
-
E(w),
|
83
|
+
E(w), Y(e), y({
|
84
84
|
type: se,
|
85
85
|
payload: {
|
86
86
|
sortedCell: e,
|
@@ -121,7 +121,7 @@ const ve = ({
|
|
121
121
|
payload: {
|
122
122
|
provider: a.data.provider
|
123
123
|
}
|
124
|
-
}),
|
124
|
+
}), $(), await ge(
|
125
125
|
`${ie} ${a.data.provider}`,
|
126
126
|
{
|
127
127
|
containerId: "toggle-provider"
|
@@ -133,7 +133,7 @@ const ve = ({
|
|
133
133
|
restoredModel: a.data?.model || "",
|
134
134
|
restoredUsage: a.data?.tokenUsage || 0
|
135
135
|
}
|
136
|
-
}), U(""), c(e.id), G(a.data.messages),
|
136
|
+
}), U(""), c(e.id), G(a.data.messages), u(!1));
|
137
137
|
} catch {
|
138
138
|
}
|
139
139
|
}, X = (e) => {
|
@@ -151,8 +151,8 @@ const ve = ({
|
|
151
151
|
rootMargin: "20px"
|
152
152
|
}, r = new IntersectionObserver(q, e);
|
153
153
|
p.current && r.observe(p.current);
|
154
|
-
}), /* @__PURE__ */
|
155
|
-
/* @__PURE__ */
|
154
|
+
}), /* @__PURE__ */ m(J, { children: [
|
155
|
+
/* @__PURE__ */ m(
|
156
156
|
pe,
|
157
157
|
{
|
158
158
|
showConfirmation: o,
|
@@ -165,13 +165,13 @@ const ve = ({
|
|
165
165
|
},
|
166
166
|
children: [
|
167
167
|
/* @__PURE__ */ t("p", { className: "m-0", children: "Are you sure you want to delete the following chat:" }),
|
168
|
-
/* @__PURE__ */
|
169
|
-
/* @__PURE__ */
|
168
|
+
/* @__PURE__ */ m("ul", { className: "m-0", children: [
|
169
|
+
/* @__PURE__ */ m("li", { children: [
|
170
170
|
"Timestamp:",
|
171
171
|
" ",
|
172
172
|
/* @__PURE__ */ t("span", { className: "text-lg", children: s.current && s.current.timestamp })
|
173
173
|
] }),
|
174
|
-
/* @__PURE__ */
|
174
|
+
/* @__PURE__ */ m("li", { children: [
|
175
175
|
"First message:",
|
176
176
|
" ",
|
177
177
|
/* @__PURE__ */ t("span", { className: "text-lg", children: s.current?.message })
|
@@ -187,7 +187,7 @@ const ve = ({
|
|
187
187
|
filteredHistory: i,
|
188
188
|
historyState: O,
|
189
189
|
lastEntryToLoad: T,
|
190
|
-
onClickSort:
|
190
|
+
onClickSort: j,
|
191
191
|
onClickRestore: W,
|
192
192
|
onClickDelete: X,
|
193
193
|
infinityScrollMarkerRef: p
|
@@ -198,13 +198,13 @@ const ve = ({
|
|
198
198
|
open: i,
|
199
199
|
onOpenChange: l
|
200
200
|
}) => {
|
201
|
-
const { getAccessToken:
|
201
|
+
const { getAccessToken: u, user: S } = z(), { dispatch: d } = _(P), [C, p] = L([]), s = R(null), { state: o, dispatch: f } = _(M), { data: T, refetch: I } = De({
|
202
202
|
enabled: i,
|
203
203
|
user: S?.username || "",
|
204
204
|
searchString: o.searchString || "",
|
205
205
|
sortDirection: o.sortDirection || h.DESC,
|
206
206
|
sortedCell: o.sortedCell || A,
|
207
|
-
getAccessToken:
|
207
|
+
getAccessToken: u
|
208
208
|
}), [, n] = D({
|
209
209
|
key: g + ce,
|
210
210
|
initialValue: o.searchString
|
@@ -214,13 +214,13 @@ const ve = ({
|
|
214
214
|
}, [T]);
|
215
215
|
const y = async (c) => {
|
216
216
|
n(c), f({
|
217
|
-
type:
|
217
|
+
type: ue,
|
218
218
|
payload: { searchString: c }
|
219
219
|
});
|
220
220
|
}, O = he((c) => {
|
221
221
|
y(c.target.value.trim());
|
222
222
|
}, 500);
|
223
|
-
return /* @__PURE__ */
|
223
|
+
return /* @__PURE__ */ m(
|
224
224
|
_e,
|
225
225
|
{
|
226
226
|
open: i,
|
@@ -249,7 +249,7 @@ const ve = ({
|
|
249
249
|
onChange: O,
|
250
250
|
className: "my-2",
|
251
251
|
rightElement: /* @__PURE__ */ t("div", { className: "text-copy-dark", children: /* @__PURE__ */ t(
|
252
|
-
|
252
|
+
me,
|
253
253
|
{
|
254
254
|
mode: "dark",
|
255
255
|
focusMode: "dark",
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { createContext as xe, createSignal as z, onMount as Dt, createEffect as B, createMemo as q, createComponent as m, Portal as qo, memo as me, Show as R, template as _, insert as k, createRenderEffect as N, className as A, clearDelegatedEvents as bs, delegateEvents as ir, useContext as we, onCleanup as U, sortFns as Hn, mutationSortFns as Vn, on as ct, setAttribute as D, getSidedProp as xs, use as Dn, batch as ws, getQueryStatusLabel as Ot, getMutationStatusColor as Rt, getQueryStatusColor as $s, getQueryStatusColorByLabel as Cs, displayValue as xn, For as Ss, convertRemToPixels as Kr, untrack as Kt, useTransition as ks, spread as Es, mergeProps as j, createRoot as Br, serialize as Ms, Index as Ds, updateNestedDataByPath as sr, addEventListener as As, stringify as Ts, Match as zn, Switch as Fs, deleteNestedDataByPath as Is, createUniqueId as Be, splitProps as X, Dynamic as Ps, createComputed as Ls, getPreferredColorScheme as Os } from "./index.
|
1
|
+
import { createContext as xe, createSignal as z, onMount as Dt, createEffect as B, createMemo as q, createComponent as m, Portal as qo, memo as me, Show as R, template as _, insert as k, createRenderEffect as N, className as A, clearDelegatedEvents as bs, delegateEvents as ir, useContext as we, onCleanup as U, sortFns as Hn, mutationSortFns as Vn, on as ct, setAttribute as D, getSidedProp as xs, use as Dn, batch as ws, getQueryStatusLabel as Ot, getMutationStatusColor as Rt, getQueryStatusColor as $s, getQueryStatusColorByLabel as Cs, displayValue as xn, For as Ss, convertRemToPixels as Kr, untrack as Kt, useTransition as ks, spread as Es, mergeProps as j, createRoot as Br, serialize as Ms, Index as Ds, updateNestedDataByPath as sr, addEventListener as As, stringify as Ts, Match as zn, Switch as Fs, deleteNestedDataByPath as Is, createUniqueId as Be, splitProps as X, Dynamic as Ps, createComputed as Ls, getPreferredColorScheme as Os } from "./index.Ddqbg8Ks.js";
|
2
2
|
var qs = (e) => e != null, _s = (e) => e.filter(qs);
|
3
3
|
function Rs(e) {
|
4
4
|
return (...t) => {
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { jsxs as t, Fragment as m, jsx as e } from "react/jsx-runtime";
|
2
|
-
import {
|
3
|
-
import { n as
|
2
|
+
import { se as h } from "./App.Cwzj_7TG.js";
|
3
|
+
import { n as S, i as R, S as a, renderDataAsList as N, CARDS as r, it as P, isTauri as u, te as T, l as E, L as p, j as l, PROFILE_TITLE as C } from "./index.Ddqbg8Ks.js";
|
4
4
|
const A = () => {
|
5
|
-
const { isAuthenticated: n, user: i, registeringForPasskey: o, authenticationType: c } =
|
5
|
+
const { isAuthenticated: n, user: i, registeringForPasskey: o, authenticationType: c } = S(), d = R(), s = i?.username || "";
|
6
6
|
return n && s ? /* @__PURE__ */ t(m, { children: [
|
7
7
|
/* @__PURE__ */ e(
|
8
8
|
a,
|
@@ -16,7 +16,7 @@ const A = () => {
|
|
16
16
|
})
|
17
17
|
}
|
18
18
|
),
|
19
|
-
c !==
|
19
|
+
c !== P.PASSKEY && !u() && /* @__PURE__ */ t(
|
20
20
|
a,
|
21
21
|
{
|
22
22
|
className: "prose-dark dark:prose-lighter mt-4",
|
@@ -45,7 +45,7 @@ const A = () => {
|
|
45
45
|
open: n,
|
46
46
|
onOpenChange: i
|
47
47
|
}) => /* @__PURE__ */ e(
|
48
|
-
|
48
|
+
h,
|
49
49
|
{
|
50
50
|
open: n,
|
51
51
|
onOpenChange: i,
|