@versini/sassysaint 8.99.3 → 8.100.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.
Files changed (26) hide show
  1. package/dist/chunks/{AboutChangelog.C_qMLuiB.js → AboutChangelog.DA361mHf.js} +3 -3
  2. package/dist/chunks/AboutEntry.COmeuxq_.js +83 -0
  3. package/dist/chunks/{App.BUZaV6AF.js → App.BLNMkw5x.js} +331 -329
  4. package/dist/chunks/{Chart.DvSv2Eza.js → Chart.GBOvQ25I.js} +2 -2
  5. package/dist/chunks/{ChatBubbleAssistant.DPvPqKP2.js → ChatBubbleAssistant.De5psmEG.js} +4 -4
  6. package/dist/chunks/{ChatBubbleUser.BCEiPwpY.js → ChatBubbleUser.DF9Axp_4.js} +3 -3
  7. package/dist/chunks/{ChatHistoryTable.BV0EO83B.js → ChatHistoryTable.rOFYnFKa.js} +3 -3
  8. package/dist/chunks/{HistoryEntry.DdsxhGAV.js → HistoryEntry.DnG7vXnm.js} +134 -133
  9. package/dist/chunks/{UserMemoriesPanel.B7Vh6shw.js → MemoriesEntry.rleSeGKZ.js} +212 -209
  10. package/dist/chunks/{ProfileEntry.C-3cFRJF.js → ProfileEntry.ZVmjBCNA.js} +76 -72
  11. package/dist/chunks/{SettingsEntry.AuH85ovZ.js → SettingsEntry.azCvMpSB.js} +116 -108
  12. package/dist/chunks/{UsageEntry.C5_CSslN.js → UsageEntry.CK1PBjs3.js} +77 -76
  13. package/dist/chunks/{index.DQOeZzJl.js → index.Bil3-QBE.js} +1 -1
  14. package/dist/chunks/{index.BtC6g5QI.js → index.Bz0fwQT2.js} +1 -1
  15. package/dist/chunks/{index.CHoYdZu2.js → index.CY7OKrvt.js} +3 -3
  16. package/dist/chunks/{index.3sEe64_a.js → index.CYzDnVAL.js} +1 -1
  17. package/dist/chunks/{index.BbB1hl1m.js → index.CgmhTYJp.js} +1 -1
  18. package/dist/chunks/{index.DRSAc_Rh.js → index.DfrHJ6QJ.js} +1 -1
  19. package/dist/chunks/{index.C8gT8NUq.js → index.DlepPi73.js} +2 -2
  20. package/dist/chunks/{index.IFwWrDqI.js → index.Dw8chhdS.js} +1 -1
  21. package/dist/chunks/{index.D3zzxjS0.js → index.iTnfwVri.js} +1 -1
  22. package/dist/chunks/{useMarkdown.CFmffPvi.js → useMarkdown.DhNvct2e.js} +6 -6
  23. package/dist/components/SassySaint/SassySaint.js +1 -1
  24. package/dist/index.js +4 -4
  25. package/package.json +3 -3
  26. package/dist/chunks/AboutEntry.CKKvxJXb.js +0 -79
@@ -1,23 +1,23 @@
1
- import { jsxs as t, Fragment as H, jsx as e } from "react/jsx-runtime";
2
- import { preloadToast as K, showSuccessToast as O, showErrorToast as W, ConfirmationPanel as Y, LazyToastContainerWrapper as $, Panel as V, CancelButton as q } from "./App.BUZaV6AF.js";
3
- import { n as J, useUniqueId as Q, useUserPreferences as X, useServerCapabilities as Z, p as ee, setUserPlan as ae, Card as d, renderDataAsList as ne, CARDS as s, L as h, j as i, Button as se, st as re, isTauri as te, ButtonIcon as le, IconPasskey as k, PROFILE_TITLE as ie } from "./index.BbB1hl1m.js";
4
- import ce from "clsx";
5
- import { useState as m, useMemo as oe, useCallback as P } from "react";
6
- const de = () => {
1
+ import { jsxs as l, Fragment as H, jsx as e } from "react/jsx-runtime";
2
+ import { preloadToast as K, showSuccessToast as O, showErrorToast as W, ConfirmationPanel as Y, LazyToastContainerWrapper as $, Panel as V, CancelButton as q } from "./App.BLNMkw5x.js";
3
+ import { n as J, useUniqueId as Q, useUserPreferences as X, useServerCapabilities as Z, p as ee, setUserPlan as ae, Card as m, renderDataAsList as ne, CARDS as s, L as u, j as i, Button as se, st as re, isTauri as le, ButtonIcon as te, IconPasskey as L, PROFILE_TITLE as ie } from "./index.CgmhTYJp.js";
4
+ import { useState as h, useMemo as ce, useCallback as N, useRef as oe } from "react";
5
+ import de from "clsx";
6
+ const me = () => {
7
7
  const {
8
- isAuthenticated: u,
8
+ isAuthenticated: p,
9
9
  user: n,
10
- registeringForPasskey: L,
10
+ registeringForPasskey: o,
11
11
  authenticationType: y,
12
- getAccessToken: p
13
- } = J(), [v, N] = m(null), [T, x] = m(!1), [F, C] = m(!1), [l, w] = m(null), U = Q(), A = n?.username || "", {
12
+ getAccessToken: f
13
+ } = J(), [F, T] = h(null), [C, v] = h(!1), [x, R] = h(!1), [t, w] = h(null), U = Q(), A = n?.username || "", {
14
14
  data: E,
15
15
  isSuccess: z,
16
16
  refetch: I
17
17
  } = X({
18
18
  user: n?.username,
19
- getAccessToken: p
20
- }), { data: S, isSuccess: f } = Z(), R = oe(() => !f || !S?.plans ? [] : S.plans.map((a) => ({
19
+ getAccessToken: f
20
+ }), { data: S, isSuccess: P } = Z(), b = ce(() => !P || !S?.plans ? [] : S.plans.map((a) => ({
21
21
  id: a.name,
22
22
  label: a.label,
23
23
  description: a.description,
@@ -25,17 +25,17 @@ const de = () => {
25
25
  models: a.allowedModels.map(
26
26
  (r) => ee[r] || r
27
27
  )
28
- })), [f, S?.plans]), b = P(() => {
29
- T || (K(), x(!0));
30
- }, [T]), B = P(async () => {
31
- if (!(!l || !n?.username))
28
+ })), [P, S?.plans]), g = N(() => {
29
+ C || (K(), v(!0));
30
+ }, [C]), B = N(async () => {
31
+ if (!(!t || !n?.username))
32
32
  try {
33
- N(l.id), await ae({
34
- plan: l.id,
35
- accessToken: await p(),
33
+ T(t.id), await ae({
34
+ plan: t.id,
35
+ accessToken: await f(),
36
36
  username: n.username
37
37
  }), await I(), await O(
38
- `${s.PLANS.SWITCH_SUCCESS} ${l.label}`,
38
+ `${s.PLANS.SWITCH_SUCCESS} ${t.label}`,
39
39
  {
40
40
  containerId: "profile-plan-selection"
41
41
  }
@@ -45,36 +45,36 @@ const de = () => {
45
45
  containerId: "profile-plan-selection"
46
46
  });
47
47
  } finally {
48
- N(null), w(null);
48
+ T(null), w(null);
49
49
  }
50
- }, [p, l, I, n?.username]), _ = P(
50
+ }, [f, t, I, n?.username]), _ = N(
51
51
  (a, r) => {
52
- !n?.username || a === E?.plan || (w({ id: a, label: r }), C(!0));
52
+ !n?.username || a === E?.plan || (w({ id: a, label: r }), R(!0));
53
53
  },
54
54
  [E?.plan, n?.username]
55
55
  );
56
- return u && A ? /* @__PURE__ */ t(H, { children: [
56
+ return p && A ? /* @__PURE__ */ l(H, { children: [
57
57
  /* @__PURE__ */ e(
58
58
  Y,
59
59
  {
60
- showConfirmation: F,
61
- setShowConfirmation: C,
60
+ showConfirmation: x,
61
+ setShowConfirmation: R,
62
62
  action: B,
63
63
  customStrings: {
64
64
  confirmAction: "Switch Plan",
65
65
  cancelAction: "Cancel",
66
66
  title: "Switch Plan"
67
67
  },
68
- children: l && /* @__PURE__ */ t("p", { className: "m-0", children: [
68
+ children: t && /* @__PURE__ */ l("p", { className: "m-0", children: [
69
69
  "Are you sure you want to switch to the following plan:",
70
70
  " ",
71
- /* @__PURE__ */ e("span", { className: "font-semibold", children: l.label })
71
+ /* @__PURE__ */ e("span", { className: "font-semibold", children: t.label })
72
72
  ] })
73
73
  }
74
74
  ),
75
75
  /* @__PURE__ */ e("div", { className: "av-sassy", children: /* @__PURE__ */ e($, { containerId: "profile-plan-selection" }) }),
76
76
  /* @__PURE__ */ e(
77
- d,
77
+ m,
78
78
  {
79
79
  header: s.PREFERENCES.TITLE,
80
80
  className: "prose-dark dark:prose-lighter",
@@ -85,24 +85,24 @@ const de = () => {
85
85
  })
86
86
  }
87
87
  ),
88
- z && f && R.length > 0 && /* @__PURE__ */ t(
89
- d,
88
+ z && P && b.length > 0 && /* @__PURE__ */ l(
89
+ m,
90
90
  {
91
91
  header: s.PLANS.TITLE,
92
92
  className: "prose-dark dark:prose-lighter mt-4",
93
93
  noBorder: !0,
94
94
  children: [
95
95
  /* @__PURE__ */ e("p", { className: "text-sm", children: s.PLANS.DESCRIPTION }),
96
- /* @__PURE__ */ e(h, { columnGap: 3, rowGap: 3, className: "mt-4", children: R.map(({ id: a, label: r, description: G, features: M, models: j }) => {
97
- const o = E?.plan === a, D = o ? s.PLANS.ACTIVE_BADGE : `Get ${r}`, g = v === a;
98
- return /* @__PURE__ */ e(i, { span: { fallback: 12, md: 4 }, children: /* @__PURE__ */ e(d, { mode: "darker", className: "prose-lighter h-full", children: /* @__PURE__ */ t(h, { direction: "column", children: [
99
- /* @__PURE__ */ t(i, { children: [
100
- /* @__PURE__ */ e("div", { className: "flex items-start justify-between gap-2", children: /* @__PURE__ */ t("div", { children: [
96
+ /* @__PURE__ */ e(u, { columnGap: 3, rowGap: 3, className: "mt-4", children: b.map(({ id: a, label: r, description: G, features: M, models: j }) => {
97
+ const d = E?.plan === a, D = d ? s.PLANS.ACTIVE_BADGE : `Get ${r}`, k = F === a;
98
+ return /* @__PURE__ */ e(i, { span: { fallback: 12, md: 4 }, children: /* @__PURE__ */ e(m, { mode: "darker", className: "prose-lighter h-full", children: /* @__PURE__ */ l(u, { direction: "column", children: [
99
+ /* @__PURE__ */ l(i, { children: [
100
+ /* @__PURE__ */ e("div", { className: "flex items-start justify-between gap-2", children: /* @__PURE__ */ l("div", { children: [
101
101
  /* @__PURE__ */ e(
102
102
  "h3",
103
103
  {
104
- className: ce("m-0", {
105
- "text-emerald-400": o
104
+ className: de("m-0", {
105
+ "text-emerald-400": d
106
106
  }),
107
107
  children: r
108
108
  }
@@ -119,16 +119,16 @@ const de = () => {
119
119
  {
120
120
  mode: "dark",
121
121
  size: "small",
122
- variant: o ? "selected" : "secondary",
122
+ variant: d ? "selected" : "secondary",
123
123
  className: "mt-4",
124
124
  fullWidth: !0,
125
- disabled: o || g,
125
+ disabled: d || k,
126
126
  onClick: () => {
127
127
  _(a, r);
128
128
  },
129
- onMouseEnter: b,
130
- onFocus: b,
131
- children: g ? "Updating..." : D
129
+ onMouseEnter: g,
130
+ onFocus: g,
131
+ children: k ? "Updating..." : D
132
132
  }
133
133
  ) })
134
134
  ] }) }) }, a);
@@ -136,26 +136,26 @@ const de = () => {
136
136
  ]
137
137
  }
138
138
  ),
139
- y !== re.PASSKEY && !te() && /* @__PURE__ */ t(
140
- d,
139
+ y !== re.PASSKEY && !le() && /* @__PURE__ */ l(
140
+ m,
141
141
  {
142
142
  className: "prose-dark dark:prose-lighter mt-4",
143
143
  noBorder: !0,
144
- header: /* @__PURE__ */ e("h2", { className: "m-0", children: /* @__PURE__ */ t(h, { columnGap: 3, alignVertical: "center", children: [
145
- /* @__PURE__ */ e(i, { children: /* @__PURE__ */ e(k, { size: "size-8" }) }),
144
+ header: /* @__PURE__ */ e("h2", { className: "m-0", children: /* @__PURE__ */ l(u, { columnGap: 3, alignVertical: "center", children: [
145
+ /* @__PURE__ */ e(i, { children: /* @__PURE__ */ e(L, { size: "size-8" }) }),
146
146
  /* @__PURE__ */ e(i, { children: /* @__PURE__ */ e("div", { children: s.PREFERENCES.PASSKEY_TITLE }) })
147
147
  ] }) }),
148
148
  children: [
149
149
  /* @__PURE__ */ e("p", { children: s.PREFERENCES.PASSKEY_INSTRUCTIONS }),
150
150
  /* @__PURE__ */ e(
151
- le,
151
+ te,
152
152
  {
153
153
  variant: "selected",
154
154
  size: "small",
155
155
  className: "mt-2",
156
- onClick: L,
156
+ onClick: o,
157
157
  labelLeft: s.PREFERENCES.PASSKEY_BUTTON,
158
- children: /* @__PURE__ */ e(k, { size: "size-5", monotone: !0 })
158
+ children: /* @__PURE__ */ e(L, { size: "size-5", monotone: !0 })
159
159
  }
160
160
  )
161
161
  ]
@@ -163,29 +163,33 @@ const de = () => {
163
163
  )
164
164
  ] }) : null;
165
165
  }, Se = ({
166
- open: u,
166
+ open: p,
167
167
  onOpenChange: n
168
- }) => /* @__PURE__ */ e(
169
- V,
170
- {
171
- open: u,
172
- onOpenChange: n,
173
- title: ie,
174
- animation: !0,
175
- animationType: "fade",
176
- blurEffect: "large",
177
- footer: /* @__PURE__ */ e(
178
- h,
179
- {
180
- columnGap: 2,
181
- alignHorizontal: "flex-end",
182
- className: "pb-8 sm:pb-0",
183
- children: /* @__PURE__ */ e(i, { children: /* @__PURE__ */ e(q, { onOpenChange: n }) })
184
- }
185
- ),
186
- children: /* @__PURE__ */ e(de, {})
187
- }
188
- );
168
+ }) => {
169
+ const o = oe(null);
170
+ return /* @__PURE__ */ e(
171
+ V,
172
+ {
173
+ open: p,
174
+ onOpenChange: n,
175
+ title: ie,
176
+ animation: !0,
177
+ animationType: "fade",
178
+ blurEffect: "large",
179
+ initialFocus: o,
180
+ footer: /* @__PURE__ */ e(
181
+ u,
182
+ {
183
+ columnGap: 2,
184
+ alignHorizontal: "flex-end",
185
+ className: "pb-8 sm:pb-0",
186
+ children: /* @__PURE__ */ e(i, { children: /* @__PURE__ */ e(q, { onOpenChange: n, ref: o }) })
187
+ }
188
+ ),
189
+ children: /* @__PURE__ */ e(me, {})
190
+ }
191
+ );
192
+ };
189
193
  export {
190
194
  Se as Profile
191
195
  };