@versini/sassysaint 8.45.4 → 8.45.5

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.
Files changed (26) hide show
  1. package/dist/chunks/{AboutChangelog.Dm7CeWzJ.js → AboutChangelog.BpN2wOS7.js} +2 -2
  2. package/dist/chunks/{AboutEntry.z1IGd8nH.js → AboutEntry.Dhj2VuZW.js} +5 -5
  3. package/dist/chunks/App.D11WrOhS.js +11446 -0
  4. package/dist/chunks/{Chart.fnP0GZlV.js → Chart.CIxXVKbK.js} +2 -2
  5. package/dist/chunks/{ChatBubbleAssistant.C214h3Za.js → ChatBubbleAssistant.BL27OUc-.js} +12 -12
  6. package/dist/chunks/ChatHistoryTable.DiJXlug9.js +649 -0
  7. package/dist/chunks/{HistoryEntry.Bg8wGgO6.js → HistoryEntry.C-g2zSt5.js} +27 -27
  8. package/dist/chunks/{LNWAZHJI.CgXWR3aC.js → LNWAZHJI.rjyRVWgx.js} +1 -1
  9. package/dist/chunks/{ProfileEntry.llkfgZbz.js → ProfileEntry.D9_uLmwO.js} +6 -6
  10. package/dist/chunks/SettingsEntry.CqtonnjU.js +889 -0
  11. package/dist/chunks/{UsageEntry.Dt5P9AhJ.js → UsageEntry.llD6nb8y.js} +7 -7
  12. package/dist/chunks/{index.Cdz3tBE5.js → index.5rAVjSln.js} +3 -3
  13. package/dist/chunks/index.BXSqY8t-.js +249 -0
  14. package/dist/chunks/{index.DXnBFV0d.js → index.C6rTHYVc.js} +2 -2
  15. package/dist/chunks/{index.aLXAYIRa.js → index.Ch7-8kkf.js} +1 -1
  16. package/dist/chunks/{index.xegEqIYd.js → index.D8CPTDrL.js} +1222 -1258
  17. package/dist/chunks/{index.Brh2cWqI.js → index.rezmsiOZ.js} +1 -1
  18. package/dist/chunks/{index.0hUxtRYc.js → index.ydUD8HKp.js} +1 -1
  19. package/dist/chunks/{useMarkdown.CWlc3oNt.js → useMarkdown.Cu3gwotw.js} +502 -502
  20. package/dist/components/SassySaint/SassySaint.js +1 -1
  21. package/dist/index.js +4 -4
  22. package/package.json +5 -5
  23. package/dist/chunks/App.Dxe8LDdD.js +0 -12621
  24. package/dist/chunks/ChatHistoryTable.CHWU2-BC.js +0 -1205
  25. package/dist/chunks/SettingsEntry.mv_g2-2P.js +0 -1064
  26. package/dist/chunks/index.CyMvgyLB.js +0 -804
@@ -1,21 +1,21 @@
1
- import { jsxs as u, 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$1 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, pe$1 as de, debounce as he, ue, ACTION_SEARCH as me } from "./index.xegEqIYd.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, tt as _e, a as Ie } from "./App.Dxe8LDdD.js";
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.D8CPTDrL.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.D11WrOhS.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: m,
8
+ title: u,
9
9
  monotone: S,
10
10
  ...d
11
- }) => /* @__PURE__ */ u(
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: m || "Search",
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.CHWU2-BC.js"
34
+ "./ChatHistoryTable.DiJXlug9.js"
35
35
  ).then((i) => ({ default: i.ChatHistoryTable }))
36
36
  ), be = ({
37
37
  filteredHistory: i,
38
38
  dispatch: l,
39
- onOpenChange: m,
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, $] = D({
59
+ }), [F, B] = D({
60
60
  key: g + te,
61
61
  initialValue: h.ASC
62
- }), [, B] = D({
62
+ }), [, Y] = D({
63
63
  key: g + ae,
64
64
  initialValue: A
65
- }), { refetch: j } = Ce({
65
+ }), { refetch: $ } = Ce({
66
66
  user: d?.username,
67
67
  getAccessToken: C
68
- }), Y = (e) => {
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 = $, a = r ? n.sortDirection : F;
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), B(e), y({
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
- }), j(), await ge(
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), m(!1));
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__ */ u(J, { children: [
155
- /* @__PURE__ */ u(
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__ */ u("ul", { className: "m-0", children: [
169
- /* @__PURE__ */ u("li", { children: [
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__ */ u("li", { children: [
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: Y,
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: m, user: S } = z(), { dispatch: d } = _(P), [C, p] = L([]), s = R(null), { state: o, dispatch: f } = _(M), { data: T, refetch: I } = De({
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: m
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: me,
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__ */ u(
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
- ue,
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.xegEqIYd.js";
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.D8CPTDrL.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 { i as h, nt as S, tt as R } from "./App.Dxe8LDdD.js";
3
- import { n as u, S as a, renderDataAsList as N, CARDS as r, isTauri as P, ue as T, l as E, L as p, j as l, PROFILE_TITLE as C } from "./index.xegEqIYd.js";
2
+ import { nt as h, se as S } from "./App.D11WrOhS.js";
3
+ import { n as R, i as N, S as a, renderDataAsList as P, CARDS as r, isTauri as u, te as T, l as E, L as p, j as l, PROFILE_TITLE as C } from "./index.D8CPTDrL.js";
4
4
  const A = () => {
5
- const { isAuthenticated: n, user: i, registeringForPasskey: o, authenticationType: c } = u(), d = h(), s = i?.username || "";
5
+ const { isAuthenticated: n, user: i, registeringForPasskey: o, authenticationType: c } = R(), d = N(), s = i?.username || "";
6
6
  return n && s ? /* @__PURE__ */ t(m, { children: [
7
7
  /* @__PURE__ */ e(
8
8
  a,
@@ -10,13 +10,13 @@ const A = () => {
10
10
  header: r.PREFERENCES.TITLE,
11
11
  className: "prose-dark dark:prose-lighter",
12
12
  noBorder: !0,
13
- children: N(d, {
13
+ children: P(d, {
14
14
  [r.PREFERENCES.NAME]: s,
15
15
  [r.PREFERENCES.EMAIL]: i?.email || ""
16
16
  })
17
17
  }
18
18
  ),
19
- c !== S.PASSKEY && !P() && /* @__PURE__ */ t(
19
+ c !== h.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
- R,
48
+ S,
49
49
  {
50
50
  open: n,
51
51
  onOpenChange: i,