@versini/sassysaint 8.99.2 → 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.u1NxfRZ6.js → AboutChangelog.DA361mHf.js} +3 -3
  2. package/dist/chunks/AboutEntry.COmeuxq_.js +83 -0
  3. package/dist/chunks/{App.9OTgQFE5.js → App.BLNMkw5x.js} +331 -329
  4. package/dist/chunks/{Chart.CTX3yXAp.js → Chart.GBOvQ25I.js} +2 -2
  5. package/dist/chunks/{ChatBubbleAssistant.DHiBvqvV.js → ChatBubbleAssistant.De5psmEG.js} +7 -7
  6. package/dist/chunks/{ChatBubbleUser.BdygOc-M.js → ChatBubbleUser.DF9Axp_4.js} +28 -27
  7. package/dist/chunks/{ChatHistoryTable.XuPzHnDG.js → ChatHistoryTable.rOFYnFKa.js} +3 -3
  8. package/dist/chunks/{HistoryEntry.CVgA3SYH.js → HistoryEntry.DnG7vXnm.js} +134 -133
  9. package/dist/chunks/{UserMemoriesPanel.D9cKoAvT.js → MemoriesEntry.rleSeGKZ.js} +212 -209
  10. package/dist/chunks/{ProfileEntry.wwU14Mrk.js → ProfileEntry.ZVmjBCNA.js} +76 -72
  11. package/dist/chunks/{SettingsEntry.CFneilrk.js → SettingsEntry.azCvMpSB.js} +116 -108
  12. package/dist/chunks/{UsageEntry.CgMVSr_T.js → UsageEntry.CK1PBjs3.js} +77 -76
  13. package/dist/chunks/{index.CbyVRgN9.js → index.Bil3-QBE.js} +1 -1
  14. package/dist/chunks/{index.DXbW0hgE.js → index.Bz0fwQT2.js} +1 -1
  15. package/dist/chunks/{index.IgpP31Km.js → index.CY7OKrvt.js} +3 -3
  16. package/dist/chunks/{index.CSpbJbbj.js → index.CYzDnVAL.js} +1 -1
  17. package/dist/chunks/{index.BNtgmlzo.js → index.CgmhTYJp.js} +1 -1
  18. package/dist/chunks/{index.Dy3lHiSY.js → index.DfrHJ6QJ.js} +1 -1
  19. package/dist/chunks/{index.CI7wfY6h.js → index.DlepPi73.js} +2 -2
  20. package/dist/chunks/{index.CqZKR4eS.js → index.Dw8chhdS.js} +1 -1
  21. package/dist/chunks/{index.BgQcUSpD.js → index.iTnfwVri.js} +1 -1
  22. package/dist/chunks/{useMarkdown.CnnQWkcw.js → useMarkdown.DhNvct2e.js} +8 -7
  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.2URxdMvt.js +0 -79
@@ -1,57 +1,57 @@
1
1
  import { jsxs as n, jsx as t } from "react/jsx-runtime";
2
- import { n as je, useEntitlements as Ve, AppContext as Fe, useUserPreferences as We, w as ce, useLocalStorage as ie, LOCAL_STORAGE_OLED_MODE as $e, LOCAL_STORAGE_FULL_SCREEN as ze, e as de, canEvaluateModels as He, W as Ye, getCacheInfo as qe, isServiceWorkerEnabled as Ke, SETTINGS_TITLE as Qe, Card as f, CARDS as r, V as Je, Button as ue, PROMPTS_DESCRIPTION as Xe, K as me, L as Ze, j as he, applyOledMode as fe, APP_SET_OLED_MODE as Ee, APP_SET_FULL_SCREEN as pe, getCurrentGeoLocation as et, graphQLRequest as Se, handleServiceWorkerToggle as tt, SERVICE_TYPES as ge } from "./index.BNtgmlzo.js";
3
- import { useCapability as Te, Panel as ot, Toggle as l, CancelButton as st } from "./App.9OTgQFE5.js";
4
- import { TextArea as be } from "./index.Dy3lHiSY.js";
5
- import { useContext as at, useState as s, useMemo as nt, useCallback as rt, useEffect as Ne } from "react";
6
- const mt = ({
7
- open: Ce,
2
+ import { n as Ve, useEntitlements as Fe, AppContext as We, useUserPreferences as $e, w as ie, useLocalStorage as de, LOCAL_STORAGE_OLED_MODE as ze, LOCAL_STORAGE_FULL_SCREEN as He, e as ue, canEvaluateModels as Ye, W as qe, getCacheInfo as Ke, isServiceWorkerEnabled as Qe, SETTINGS_TITLE as Je, Card as f, CARDS as r, V as Xe, Button as me, PROMPTS_DESCRIPTION as Ze, K as he, L as et, j as fe, applyOledMode as Ee, APP_SET_OLED_MODE as pe, APP_SET_FULL_SCREEN as Se, getCurrentGeoLocation as tt, graphQLRequest as ge, handleServiceWorkerToggle as ot, SERVICE_TYPES as Te } from "./index.CgmhTYJp.js";
3
+ import { useCapability as be, Panel as st, Toggle as l, CancelButton as at } from "./App.BLNMkw5x.js";
4
+ import { TextArea as Ne } from "./index.DfrHJ6QJ.js";
5
+ import { useRef as nt, useContext as rt, useState as s, useMemo as lt, useCallback as ct, useEffect as Ce } from "react";
6
+ const ft = ({
7
+ open: ye,
8
8
  onOpenChange: A
9
9
  }) => {
10
- const { getAccessToken: I, user: v } = je(), { allowedModels: w, status: R } = Ve(), { dispatch: g } = at(Fe), {
10
+ const v = nt(null), { getAccessToken: I, user: R } = Ve(), { allowedModels: w, status: B } = Fe(), { dispatch: g } = rt(We), {
11
11
  data: o,
12
- isSuccess: ye,
13
- refetch: B
14
- } = We({
15
- user: v?.username,
12
+ isSuccess: Ie,
13
+ refetch: x
14
+ } = $e({
15
+ user: R?.username,
16
16
  getAccessToken: I
17
- }), [x, T] = s({
17
+ }), [G, T] = s({
18
18
  loadingLocation: !1
19
- }), [L, G] = s({
19
+ }), [L, U] = s({
20
20
  prompts: []
21
- }), [U, j] = s(""), [V, b] = s(""), [F, W] = s(!1), [$, z] = s(!1), [N, H] = s(!1), [C, Y] = s(!1), [q, K] = s(!1), [D, Q] = s(!1), [E, J] = s(null), [X, Z] = s(!1), [ee, te] = s(!1), oe = Te(ce.TOOL.MEMORIES), se = Te(ce.ADDON.REASONING), [i, Ie] = ie({
22
- key: $e,
23
- initialValue: !1
24
- }), [u, we] = ie({
21
+ }), [j, V] = s(""), [F, b] = s(""), [W, $] = s(!1), [z, H] = s(!1), [N, Y] = s(!1), [C, q] = s(!1), [K, Q] = s(!1), [D, J] = s(!1), [E, X] = s(null), [Z, ee] = s(!1), [te, oe] = s(!1), se = be(ie.TOOL.MEMORIES), ae = be(ie.ADDON.REASONING), [i, we] = de({
25
22
  key: ze,
26
23
  initialValue: !1
27
- }), [m, M] = s(!1), [p, _] = s(!1), [ae, ne] = s(de), Le = nt(() => He(w, R) ? Ye(w) : !1, [w, R]), De = (e) => {
28
- te(e);
29
- }, Me = (e) => {
30
- W(e);
24
+ }), [u, Le] = de({
25
+ key: He,
26
+ initialValue: !1
27
+ }), [m, M] = s(!1), [p, _] = s(!1), [ne, re] = s(ue), De = lt(() => Ye(w, B) ? qe(w) : !1, [w, B]), Me = (e) => {
28
+ oe(e);
31
29
  }, _e = (e) => {
32
- oe && z(e);
30
+ $(e);
33
31
  }, ke = (e) => {
34
- Y(e);
32
+ se && H(e);
35
33
  }, Oe = (e) => {
36
- se && K(e);
34
+ q(e);
37
35
  }, Pe = (e) => {
38
- Q(e);
36
+ ae && Q(e);
39
37
  }, Ae = (e) => {
40
- M(e);
38
+ J(e);
41
39
  }, ve = (e) => {
42
- _(e);
40
+ M(e);
43
41
  }, Re = (e) => {
44
- ne(e ? me : de);
45
- }, Be = async (e) => {
42
+ _(e);
43
+ }, Be = (e) => {
44
+ re(e ? he : ue);
45
+ }, xe = async (e) => {
46
46
  e.preventDefault();
47
47
  try {
48
- await Se({
48
+ await ge({
49
49
  accessToken: await I(),
50
- type: ge.SET_USER_PREFERENCES,
50
+ type: Te.SET_USER_PREFERENCES,
51
51
  params: {
52
- user: v?.username,
53
- instructions: U,
54
- location: V,
52
+ user: R?.username,
53
+ instructions: j,
54
+ location: F,
55
55
  provider: o?.provider,
56
56
  /**
57
57
  * When nested model selection is disabled, explicitly clear any stored
@@ -60,62 +60,62 @@ const mt = ({
60
60
  */
61
61
  model: D && o?.model || "",
62
62
  tags: L.prompts,
63
- sendOnEnter: F,
64
- useMemory: $,
65
- showDetails: ee,
66
- showReasoningButton: q,
63
+ sendOnEnter: W,
64
+ useMemory: z,
65
+ showDetails: te,
66
+ showReasoningButton: K,
67
67
  useNestedModelSelection: D,
68
- themeMode: ae
68
+ themeMode: ne
69
69
  }
70
- }), C !== N && (await tt(C), H(C)), m !== i && (Ie(m), fe(m), g({
71
- type: Ee,
72
- payload: { oledMode: m }
73
- })), p !== u && (we(p), g({
70
+ }), C !== N && (await ot(C), Y(C)), m !== i && (we(m), Ee(m), g({
74
71
  type: pe,
72
+ payload: { oledMode: m }
73
+ })), p !== u && (Le(p), g({
74
+ type: Se,
75
75
  payload: { fullScreen: p }
76
- })), B(), T({
76
+ })), x(), T({
77
77
  loadingLocation: !1
78
78
  });
79
79
  } catch {
80
80
  }
81
- }, xe = async () => {
81
+ }, Ge = async () => {
82
82
  T({
83
83
  loadingLocation: !0
84
84
  }), b("...");
85
85
  try {
86
- const e = Date.now(), a = await et(), y = await Se({
86
+ const e = Date.now(), a = await tt(), y = await ge({
87
87
  accessToken: await I(),
88
- type: ge.GET_LOCATION,
88
+ type: Te.GET_LOCATION,
89
89
  params: {
90
90
  latitude: a.latitude,
91
91
  longitude: a.longitude
92
92
  }
93
93
  }), h = Date.now() - e;
94
- h < 2e3 && await new Promise((Ue) => setTimeout(Ue, 2e3 - h));
95
- const { city: d, state: c, country: S, displayName: P } = y.data, Ge = d && c && S ? `${d}, ${c}, ${S}` : P;
94
+ h < 2e3 && await new Promise((je) => setTimeout(je, 2e3 - h));
95
+ const { city: d, state: c, country: S, displayName: P } = y.data, Ue = d && c && S ? `${d}, ${c}, ${S}` : P;
96
96
  T({
97
97
  loadingLocation: !1
98
- }), b(Ge);
98
+ }), b(Ue);
99
99
  } catch {
100
100
  T({
101
101
  loadingLocation: !1
102
102
  });
103
103
  }
104
- }, re = () => {
105
- m !== i && (M(i), fe(i), g({
106
- type: Ee,
104
+ }, le = () => {
105
+ m !== i && (M(i), Ee(i), g({
106
+ type: pe,
107
107
  payload: { oledMode: i }
108
108
  })), p !== u && (_(u), g({
109
- type: pe,
109
+ type: Se,
110
110
  payload: { fullScreen: u }
111
- })), B(), A(!1);
111
+ })), x(), A(!1);
112
112
  }, k = ({
113
113
  enabled: e = !1,
114
114
  privateChat: a = !1,
115
115
  clipboardAccess: y = !1,
116
116
  ...O
117
117
  }) => {
118
- G((h) => {
118
+ U((h) => {
119
119
  const d = h.prompts, c = {
120
120
  ...O,
121
121
  enabled: e,
@@ -132,48 +132,56 @@ const mt = ({
132
132
  prompts: [...d]
133
133
  });
134
134
  });
135
- }, le = rt(async () => {
135
+ }, ce = ct(async () => {
136
136
  try {
137
- Z(!0);
138
- const e = await qe();
139
- J(e);
137
+ ee(!0);
138
+ const e = await Ke();
139
+ X(e);
140
140
  } catch {
141
141
  } finally {
142
- Z(!1);
142
+ ee(!1);
143
143
  }
144
144
  }, []);
145
- return Ne(() => {
145
+ return Ce(() => {
146
146
  if (!o)
147
147
  return;
148
- o.instructions && j(o.instructions), o.location && b(o.location), o.tags && G({ prompts: o.tags }), o.sendOnEnter !== void 0 && W(o.sendOnEnter), o.useMemory !== void 0 && z(o.useMemory), o.showDetails !== void 0 && te(o.showDetails), o.showReasoningButton !== void 0 && K(o.showReasoningButton), o.useNestedModelSelection !== void 0 && Q(o.useNestedModelSelection), o.themeMode !== void 0 && ne(o.themeMode);
149
- const e = Ke();
150
- H(e), Y(e), M(i), _(u);
151
- }, [o, i, u]), Ne(() => {
152
- N ? le() : J(null);
153
- }, [N, le]), ye ? /* @__PURE__ */ n(
154
- ot,
148
+ o.instructions && V(o.instructions), o.location && b(o.location), o.tags && U({ prompts: o.tags }), o.sendOnEnter !== void 0 && $(o.sendOnEnter), o.useMemory !== void 0 && H(o.useMemory), o.showDetails !== void 0 && oe(o.showDetails), o.showReasoningButton !== void 0 && Q(o.showReasoningButton), o.useNestedModelSelection !== void 0 && J(o.useNestedModelSelection), o.themeMode !== void 0 && re(o.themeMode);
149
+ const e = Qe();
150
+ Y(e), q(e), M(i), _(u);
151
+ }, [o, i, u]), Ce(() => {
152
+ N ? ce() : X(null);
153
+ }, [N, ce]), Ie ? /* @__PURE__ */ n(
154
+ st,
155
155
  {
156
- open: Ce,
157
- onOpenChange: re,
158
- title: Qe,
156
+ open: ye,
157
+ onOpenChange: le,
158
+ title: Je,
159
159
  animation: !0,
160
160
  animationType: "fade",
161
161
  blurEffect: "large",
162
+ initialFocus: v,
162
163
  footer: /* @__PURE__ */ n(
163
- Ze,
164
+ et,
164
165
  {
165
166
  columnGap: 2,
166
167
  alignHorizontal: "flex-end",
167
168
  className: "pb-8 sm:pb-0",
168
169
  children: [
169
- /* @__PURE__ */ t(he, { children: /* @__PURE__ */ t(st, { onOpenChange: re, label: "Cancel" }) }),
170
- /* @__PURE__ */ t(he, { children: /* @__PURE__ */ t(
171
- ue,
170
+ /* @__PURE__ */ t(fe, { children: /* @__PURE__ */ t(
171
+ at,
172
+ {
173
+ onOpenChange: le,
174
+ label: "Cancel",
175
+ ref: v
176
+ }
177
+ ) }),
178
+ /* @__PURE__ */ t(fe, { children: /* @__PURE__ */ t(
179
+ me,
172
180
  {
173
181
  mode: "light",
174
182
  focusMode: "light",
175
183
  onClick: async (e) => {
176
- A(!1), await Be(e);
184
+ A(!1), await xe(e);
177
185
  },
178
186
  children: "Save"
179
187
  }
@@ -199,8 +207,8 @@ const mt = ({
199
207
  label: "Message Statistics",
200
208
  subLabel: r.SETTINGS_DETAILS.DETAILS,
201
209
  name: "show-message-statistics",
202
- onChange: De,
203
- checked: ee
210
+ onChange: Me,
211
+ checked: te
204
212
  }
205
213
  ),
206
214
  /* @__PURE__ */ t(
@@ -213,11 +221,11 @@ const mt = ({
213
221
  label: "Send Message on Enter",
214
222
  subLabel: r.SETTINGS_DETAILS.SEND_ON_ENTER,
215
223
  name: "send-message-on-enter",
216
- onChange: Me,
217
- checked: F
224
+ onChange: _e,
225
+ checked: W
218
226
  }
219
227
  ),
220
- oe && /* @__PURE__ */ t(
228
+ se && /* @__PURE__ */ t(
221
229
  l,
222
230
  {
223
231
  noBorder: !0,
@@ -227,8 +235,8 @@ const mt = ({
227
235
  label: "Use Memory",
228
236
  subLabel: r.SETTINGS_DETAILS.USE_MEMORY,
229
237
  name: "use-memory",
230
- onChange: _e,
231
- checked: $
238
+ onChange: ke,
239
+ checked: z
232
240
  }
233
241
  )
234
242
  ]
@@ -243,11 +251,11 @@ const mt = ({
243
251
  children: [
244
252
  /* @__PURE__ */ n("p", { className: "text-sm", children: [
245
253
  "What would you like ",
246
- /* @__PURE__ */ t("em", { children: Je }),
254
+ /* @__PURE__ */ t("em", { children: Xe }),
247
255
  " to know about you to provide better responses?"
248
256
  ] }),
249
257
  /* @__PURE__ */ t(
250
- be,
258
+ Ne,
251
259
  {
252
260
  mode: "alt-system",
253
261
  autoCapitalize: "off",
@@ -255,9 +263,9 @@ const mt = ({
255
263
  autoCorrect: "off",
256
264
  name: "customInstructions",
257
265
  label: "Custom Instructions",
258
- value: U,
266
+ value: j,
259
267
  onChange: (e) => {
260
- j(e.target.value);
268
+ V(e.target.value);
261
269
  },
262
270
  helperText: "Press ENTER to add a new line."
263
271
  }
@@ -274,12 +282,12 @@ const mt = ({
274
282
  children: [
275
283
  /* @__PURE__ */ t("p", { className: "text-sm", children: "You can share your location to receive customized responses based on your area." }),
276
284
  /* @__PURE__ */ t(
277
- be,
285
+ Ne,
278
286
  {
279
287
  mode: "alt-system",
280
288
  name: "location",
281
289
  label: "Location",
282
- value: V,
290
+ value: F,
283
291
  onChange: (e) => {
284
292
  b(e.target.value);
285
293
  },
@@ -287,15 +295,15 @@ const mt = ({
287
295
  }
288
296
  ),
289
297
  /* @__PURE__ */ t(
290
- ue,
298
+ me,
291
299
  {
292
300
  className: "mt-2",
293
301
  size: "small",
294
302
  noBorder: !0,
295
303
  variant: "secondary",
296
- disabled: x.loadingLocation,
297
- onClick: xe,
298
- children: x.loadingLocation ? "Detecting..." : "Auto-detect"
304
+ disabled: G.loadingLocation,
305
+ onClick: Ge,
306
+ children: G.loadingLocation ? "Detecting..." : "Auto-detect"
299
307
  }
300
308
  )
301
309
  ]
@@ -308,7 +316,7 @@ const mt = ({
308
316
  className: "prose-dark dark:prose-lighter mt-4",
309
317
  noBorder: !0,
310
318
  children: [
311
- /* @__PURE__ */ t("p", { className: "text-sm", children: Xe }),
319
+ /* @__PURE__ */ t("p", { className: "text-sm", children: Ze }),
312
320
  L.prompts && L.prompts.slice(0, 3).map((e) => /* @__PURE__ */ n(
313
321
  f,
314
322
  {
@@ -389,7 +397,7 @@ const mt = ({
389
397
  className: "prose-dark dark:prose-lighter mt-4 ",
390
398
  noBorder: !0,
391
399
  children: [
392
- se && /* @__PURE__ */ t(
400
+ ae && /* @__PURE__ */ t(
393
401
  l,
394
402
  {
395
403
  noBorder: !0,
@@ -399,11 +407,11 @@ const mt = ({
399
407
  label: "Reasoning Button",
400
408
  subLabel: r.SETTINGS_ADVANCED.REASONING_BUTTON_DESCRIPTION,
401
409
  name: "show-reasoning-button",
402
- onChange: Oe,
403
- checked: q
410
+ onChange: Pe,
411
+ checked: K
404
412
  }
405
413
  ),
406
- Le && /* @__PURE__ */ t(
414
+ De && /* @__PURE__ */ t(
407
415
  l,
408
416
  {
409
417
  noBorder: !0,
@@ -413,7 +421,7 @@ const mt = ({
413
421
  label: "Model Selection",
414
422
  subLabel: r.SETTINGS_ADVANCED.NESTED_MODEL_SELECTION_DESCRIPTION,
415
423
  name: "use-nested-model-selection",
416
- onChange: Pe,
424
+ onChange: Ae,
417
425
  checked: D
418
426
  }
419
427
  ),
@@ -427,7 +435,7 @@ const mt = ({
427
435
  label: "OLED Mode",
428
436
  subLabel: r.SETTINGS_ADVANCED.BACKGROUND_THEME_DESCRIPTION,
429
437
  name: "enable-oled-mode",
430
- onChange: Ae,
438
+ onChange: ve,
431
439
  checked: m
432
440
  }
433
441
  ),
@@ -441,8 +449,8 @@ const mt = ({
441
449
  label: "Alternative Theme",
442
450
  subLabel: r.SETTINGS_ADVANCED.THEME_MODE_DESCRIPTION,
443
451
  name: "enable-alternative-theme",
444
- onChange: Re,
445
- checked: ae === me
452
+ onChange: Be,
453
+ checked: ne === he
446
454
  }
447
455
  ),
448
456
  /* @__PURE__ */ t(
@@ -455,7 +463,7 @@ const mt = ({
455
463
  label: "Full Screen",
456
464
  subLabel: r.SETTINGS_ADVANCED.FULL_SCREEN_DESCRIPTION,
457
465
  name: "enable-full-screen",
458
- onChange: ve,
466
+ onChange: Re,
459
467
  checked: p
460
468
  }
461
469
  ),
@@ -469,7 +477,7 @@ const mt = ({
469
477
  label: "Assets Caching",
470
478
  subLabel: r.SETTINGS_ADVANCED.CACHE_DESCRIPTION,
471
479
  name: "enable-service-worker",
472
- onChange: ke,
480
+ onChange: Oe,
473
481
  checked: C
474
482
  }
475
483
  ),
@@ -493,8 +501,8 @@ const mt = ({
493
501
  },
494
502
  a
495
503
  )) }) }, e.name)),
496
- E.totalItems === 0 && !X && /* @__PURE__ */ t("p", { className: "italic m-0 opacity-70", children: "No cached assets yet." })
497
- ] }) : /* @__PURE__ */ t("p", { className: "text-xs opacity-70 m-0", children: X ? "Loading cache info..." : "No cache info available." })
504
+ E.totalItems === 0 && !Z && /* @__PURE__ */ t("p", { className: "italic m-0 opacity-70", children: "No cached assets yet." })
505
+ ] }) : /* @__PURE__ */ t("p", { className: "text-xs opacity-70 m-0", children: Z ? "Loading cache info..." : "No cache info available." })
498
506
  ] })
499
507
  ]
500
508
  }
@@ -504,5 +512,5 @@ const mt = ({
504
512
  ) : null;
505
513
  };
506
514
  export {
507
- mt as SettingsPanel
515
+ ft as SettingsPanel
508
516
  };