@versini/sassysaint 6.5.0 → 6.5.1

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.
@@ -1,6 +1,6 @@
1
1
  import { jsx as Ve, jsxs as P0, Fragment as ka } from "react/jsx-runtime";
2
- import { convert as _s, getDefaultExportFromCjs as Ss, visit as Na, find as ks, parse as kn, parse$1 as Nn, normalize as Tn, svg as Ns, html as Ts, visitParents as As, SKIP as Ms, longestStreak as Os, factorySpace as _r, markdownLineEnding as Vt, Markdown as Rs, remarkGfm as Cs } from "./MessageAssistant.DImrQoWb.js";
3
- import { te as Is, L as Ds, j as Ls } from "./index.wt2DggdA.js";
2
+ import { convert as _s, getDefaultExportFromCjs as Ss, visit as Na, find as ks, parse as kn, parse$1 as Nn, normalize as Tn, svg as Ns, html as Ts, visitParents as As, SKIP as Ms, longestStreak as Os, factorySpace as _r, markdownLineEnding as Vt, Markdown as Rs, remarkGfm as Cs } from "./MessageAssistant.75LORi2z.js";
3
+ import { re as Is, L as Ds, j as Ls } from "./index.B59kJMY8.js";
4
4
  import zs, { useState as Bs, useEffect as Fs } from "react";
5
5
  import Ps from "clsx";
6
6
  const Ta = ({
@@ -91,13 +91,13 @@ const Us = ({
91
91
  }
92
92
  );
93
93
  /*!
94
- @versini/ui-icons v4.6.0
94
+ @versini/ui-icons v4.6.1
95
95
  © 2025 gizmette.com
96
96
  */
97
97
  try {
98
98
  window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
99
- version: "4.6.0",
100
- buildTime: "01/20/2025 04:20 PM EST",
99
+ version: "4.6.1",
100
+ buildTime: "01/21/2025 01:33 PM EST",
101
101
  homepage: "https://github.com/aversini/ui-components",
102
102
  license: "MIT"
103
103
  });
@@ -1,8 +1,8 @@
1
1
  import { jsxs as en, jsx as re, Fragment as nr } from "react/jsx-runtime";
2
- import { AppContext as di, E as yi, Ee as ct } from "./App.BBj6mtsk.js";
2
+ import { AppContext as di, E as yi, Re as ct } from "./App.DxiuLsPO.js";
3
3
  import hn from "clsx";
4
4
  import { lazy as ki, useContext as xi, Suspense as bi } from "react";
5
- import { LOCAL_STORAGE_PREFIX as wi, LOCAL_STORAGE_CHAT_DETAILS as Si, durationFormatter as Ci } from "./index.wt2DggdA.js";
5
+ import { LOCAL_STORAGE_PREFIX as wi, LOCAL_STORAGE_CHAT_DETAILS as Si, durationFormatter as Ci } from "./index.B59kJMY8.js";
6
6
  function tr(e) {
7
7
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
8
8
  }
@@ -8653,7 +8653,7 @@ function Qc(e) {
8653
8653
  const Yc = ki(
8654
8654
  () => import(
8655
8655
  /* webpackChunkName: "LazyMarkdownWithExtra" */
8656
- "./MarkdownWithExtra.DKFJBJZg.js"
8656
+ "./MarkdownWithExtra.CKTsvc8P.js"
8657
8657
  )
8658
8658
  ), Ln = {
8659
8659
  MODEL: "Model",
@@ -1,6 +1,6 @@
1
1
  import { jsxs as i, jsx as e, Fragment as O } from "react/jsx-runtime";
2
- import { f as V, un as $, R as z, CARDS as N, renderDataAsList as de, pluralize as ue, ABOUT_TITLE as Qe, INFINITE_SCROLL_LIMIT as we, INFINITE_SCROLL_THRESHOLD as ve, LOCAL_STORAGE_PREFIX as ke, LOCAL_STORAGE_SORT as Je, te as oe, ACTION_RESET as Ze, ACTION_RESTORE as et, ACTION_SORT as Ae, LOCAL_STORAGE_SEARCH as tt, HISTORY_TITLE as rt, fe as be, C as X, ACTION_SEARCH as nt, debounce as at, M as ot, L as q, j as P, l as Ie, durationFormatter as st, PROFILE_TITLE as lt, PROMPTS_DESCRIPTION as ct, DEFAULT_AI_ENGINE as it, LOCAL_STORAGE_CHAT_DETAILS as dt, SETTINGS_TITLE as ut, ENGINE_OPENAI as W, ENGINE_ANTHROPIC as ee, APP_NAME as mt, getCurrentGeoLocation as ht, LOG_OUT as _e } from "./index.wt2DggdA.js";
3
- import { i as me, useServerCapabilities as ft, Ye as ce, HistoryContext as Me, E as Ce, ConfirmationPanel as Pe, Ue as pt, Pe as gt, Fe as ge, Me as M, De as yt, We as bt, p as xt, z as kt, je as Ct, serviceCall as se, SERVICE_TYPES as le, B as te, AppContext as Oe, useChatsHistory as Et, useUserChatStats as Tt, useUserPreferences as ze, m as Nt, _e as St, me as wt, R as re, P as vt } from "./App.BBj6mtsk.js";
2
+ import { f as $, un as V, R as z, CARDS as N, renderDataAsList as de, pluralize as ue, ABOUT_TITLE as Qe, INFINITE_SCROLL_LIMIT as we, INFINITE_SCROLL_THRESHOLD as ve, LOCAL_STORAGE_PREFIX as ke, LOCAL_STORAGE_SORT as Ze, re as oe, ACTION_RESET as Je, ACTION_RESTORE as et, ACTION_SORT as Ae, LOCAL_STORAGE_SEARCH as tt, HISTORY_TITLE as rt, fe as be, C as X, ACTION_SEARCH as nt, debounce as at, M as ot, L as q, j as P, l as Ie, durationFormatter as st, PROFILE_TITLE as lt, PROMPTS_DESCRIPTION as ct, DEFAULT_AI_ENGINE as it, LOCAL_STORAGE_CHAT_DETAILS as dt, SETTINGS_TITLE as ut, ENGINE_OPENAI as W, ENGINE_ANTHROPIC as ee, APP_NAME as mt, getCurrentGeoLocation as ht, LOG_OUT as _e } from "./index.B59kJMY8.js";
3
+ import { i as me, useServerCapabilities as ft, Ze as ce, HistoryContext as Me, E as Ce, ConfirmationPanel as Pe, Ue as pt, je as gt, Fe as ge, Le as M, De as yt, $e as bt, p as xt, z as kt, We as Ct, serviceCall as se, SERVICE_TYPES as le, B as te, AppContext as Oe, useChatsHistory as Et, useUserChatStats as Tt, useUserPreferences as ze, m as Nt, _e as St, me as wt, R as re, P as vt } from "./App.DxiuLsPO.js";
4
4
  import At, { useRef as v, useState as C, useContext as he, useCallback as Be, useEffect as F, Fragment as It, useLayoutEffect as ne, useMemo as He, useId as _t, useReducer as Rt } from "react";
5
5
  import y from "clsx";
6
6
  const Lt = ({
@@ -10,7 +10,7 @@ const Lt = ({
10
10
  monotone: n,
11
11
  ...r
12
12
  }) => /* @__PURE__ */ i(
13
- V,
13
+ $,
14
14
  {
15
15
  defaultViewBox: "0 0 512 512",
16
16
  size: "size-5",
@@ -36,7 +36,7 @@ const Lt = ({
36
36
  monotone: n,
37
37
  ...r
38
38
  }) => /* @__PURE__ */ i(
39
- V,
39
+ $,
40
40
  {
41
41
  defaultViewBox: "0 0 448 512",
42
42
  size: "size-5",
@@ -62,7 +62,7 @@ const Lt = ({
62
62
  monotone: n,
63
63
  ...r
64
64
  }) => /* @__PURE__ */ i(
65
- V,
65
+ $,
66
66
  {
67
67
  defaultViewBox: "0 0 512 512",
68
68
  size: "size-5",
@@ -88,7 +88,7 @@ const Lt = ({
88
88
  monotone: n,
89
89
  ...r
90
90
  }) => /* @__PURE__ */ i(
91
- V,
91
+ $,
92
92
  {
93
93
  defaultViewBox: "0 0 512 512",
94
94
  size: "size-5",
@@ -114,7 +114,7 @@ const Lt = ({
114
114
  monotone: n,
115
115
  ...r
116
116
  }) => /* @__PURE__ */ i(
117
- V,
117
+ $,
118
118
  {
119
119
  defaultViewBox: "0 0 576 512",
120
120
  size: "size-5",
@@ -140,7 +140,7 @@ const Lt = ({
140
140
  monotone: n,
141
141
  ...r
142
142
  }) => /* @__PURE__ */ i(
143
- V,
143
+ $,
144
144
  {
145
145
  defaultViewBox: "0 0 512 512",
146
146
  size: "size-5",
@@ -166,7 +166,7 @@ const Lt = ({
166
166
  monotone: n,
167
167
  ...r
168
168
  }) => /* @__PURE__ */ e(
169
- V,
169
+ $,
170
170
  {
171
171
  defaultViewBox: "0 0 448 512",
172
172
  size: "size-5",
@@ -183,7 +183,7 @@ const Lt = ({
183
183
  monotone: n,
184
184
  ...r
185
185
  }) => /* @__PURE__ */ i(
186
- V,
186
+ $,
187
187
  {
188
188
  defaultViewBox: "0 0 512 512",
189
189
  size: "size-5",
@@ -202,8 +202,8 @@ const Lt = ({
202
202
  /* @__PURE__ */ e("path", { d: "M128 416a32 32 0 1 1 64 0 32 32 0 1 1-64 0m112 0a80 80 0 1 0-160 0 80 80 0 1 0 160 0m80-160a32 32 0 1 1 64 0 32 32 0 1 1-64 0m112 0a80 80 0 1 0-160 0 80 80 0 1 0 160 0M192 128a32 32 0 1 1 0-64 32 32 0 1 1 0 64m0-112a80 80 0 1 0 0 160 80 80 0 1 0 0-160" })
203
203
  ]
204
204
  }
205
- ), Vt = () => {
206
- const { getAccessToken: t } = $(), a = me(), o = me(), {
205
+ ), $t = () => {
206
+ const { getAccessToken: t } = V(), a = me(), o = me(), {
207
207
  data: n,
208
208
  error: r,
209
209
  isLoading: c
@@ -217,8 +217,8 @@ const Lt = ({
217
217
  header: N.ABOUT.TITLE_CLIENT,
218
218
  className: "prose-dark dark:prose-lighter",
219
219
  children: de(a, {
220
- [N.ABOUT.VERSION]: "6.5.0",
221
- [N.ABOUT.BUILD_TIMESTAMP]: "01/29/2025 11:43 AM EST"
220
+ [N.ABOUT.VERSION]: "6.5.1",
221
+ [N.ABOUT.BUILD_TIMESTAMP]: "01/29/2025 05:23 PM EST"
222
222
  })
223
223
  }
224
224
  ) }),
@@ -235,10 +235,10 @@ const Lt = ({
235
235
  }
236
236
  )
237
237
  ] });
238
- }, $t = ({
238
+ }, Vt = ({
239
239
  open: t,
240
240
  onOpenChange: a
241
- }) => /* @__PURE__ */ e(ce, { open: t, onOpenChange: a, title: Qe, children: /* @__PURE__ */ e(Vt, {}) }), Ft = async (t, a, o, n) => {
241
+ }) => /* @__PURE__ */ e(ce, { open: t, onOpenChange: a, title: Qe, children: /* @__PURE__ */ e($t, {}) }), Ft = async (t, a, o, n) => {
242
242
  try {
243
243
  const r = await se({
244
244
  accessToken: n,
@@ -248,7 +248,7 @@ const Lt = ({
248
248
  }
249
249
  });
250
250
  r.status === 200 && (a({
251
- type: Ze
251
+ type: Je
252
252
  }), a({
253
253
  type: et,
254
254
  payload: {
@@ -267,14 +267,14 @@ const Lt = ({
267
267
  mutate: n
268
268
  }) => {
269
269
  var I;
270
- const { user: r, getAccessToken: c } = $(), s = v(null), d = v({
270
+ const { user: r, getAccessToken: c } = V(), s = v(null), d = v({
271
271
  id: 0,
272
272
  timestamp: "",
273
273
  message: ""
274
274
  }), [m, f] = C(!1), [p, b] = C(
275
275
  we + ve
276
276
  ), { state: x, dispatch: l } = he(Me), [, h] = Ce({
277
- key: ke + Je,
277
+ key: ke + Ze,
278
278
  initialValue: x.sortDirection
279
279
  }), T = (u) => {
280
280
  switch (x.sortDirection) {
@@ -459,7 +459,7 @@ const Lt = ({
459
459
  open: t,
460
460
  onOpenChange: a
461
461
  }) => {
462
- const { getAccessToken: o, user: n } = $(), { state: r, dispatch: c } = he(Oe), { state: s, dispatch: d } = he(Me), { data: m, mutate: f } = Et({
462
+ const { getAccessToken: o, user: n } = V(), { state: r, dispatch: c } = he(Oe), { state: s, dispatch: d } = he(Me), { data: m, mutate: f } = Et({
463
463
  keys: [
464
464
  n == null ? void 0 : n.username,
465
465
  s.searchString,
@@ -530,7 +530,7 @@ const Lt = ({
530
530
  ) })
531
531
  ] }) });
532
532
  }, Yt = ({ stats: t }) => {
533
- const { isAuthenticated: a, user: o, registeringForPasskey: n, authenticationType: r } = $(), c = me(), s = me(), d = (o == null ? void 0 : o.username) || "";
533
+ const { isAuthenticated: a, user: o, registeringForPasskey: n, authenticationType: r } = V(), c = me(), s = me(), d = (o == null ? void 0 : o.username) || "";
534
534
  return a && d ? /* @__PURE__ */ i(O, { children: [
535
535
  /* @__PURE__ */ e(
536
536
  z,
@@ -584,7 +584,7 @@ const Lt = ({
584
584
  open: t,
585
585
  onOpenChange: a
586
586
  }) => {
587
- const { getAccessToken: o, user: n } = $(), {
587
+ const { getAccessToken: o, user: n } = V(), {
588
588
  data: r,
589
589
  error: c,
590
590
  isLoading: s
@@ -622,7 +622,7 @@ function Qt(t) {
622
622
  });
623
623
  }, t);
624
624
  }
625
- const Jt = {
625
+ const Zt = {
626
626
  x: 0,
627
627
  y: 0,
628
628
  width: 0,
@@ -633,7 +633,7 @@ const Jt = {
633
633
  right: 0
634
634
  };
635
635
  function Re(t) {
636
- const a = qt(), o = v(0), n = v(null), [r, c] = C(Jt), s = He(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((d) => {
636
+ const a = qt(), o = v(0), n = v(null), [r, c] = C(Zt), s = He(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((d) => {
637
637
  const m = d[0];
638
638
  m && (cancelAnimationFrame(o.current), o.current = requestAnimationFrame(() => {
639
639
  n.current && a() && c(m.contentRect);
@@ -643,7 +643,7 @@ function Re(t) {
643
643
  s == null || s.disconnect(), o.current && cancelAnimationFrame(o.current);
644
644
  }), [s, t]), [n, r];
645
645
  }
646
- function Zt({
646
+ function Jt({
647
647
  value: t,
648
648
  defaultValue: a,
649
649
  finalValue: o,
@@ -673,7 +673,7 @@ function er(t) {
673
673
  return typeof o == "number" || typeof o == "string" ? `${n}${o}` : `${n}${a}`;
674
674
  }
675
675
  }
676
- const Ve = "SET_ANNOUNCEMENT", $e = "CLEAR_ANNOUNCEMENT", tr = {
676
+ const $e = "SET_ANNOUNCEMENT", Ve = "CLEAR_ANNOUNCEMENT", tr = {
677
677
  alert: null,
678
678
  alertdialog: null,
679
679
  log: "polite",
@@ -683,12 +683,12 @@ const Ve = "SET_ANNOUNCEMENT", $e = "CLEAR_ANNOUNCEMENT", tr = {
683
683
  timer: "assertive"
684
684
  }, rr = (t, a) => {
685
685
  switch (a == null ? void 0 : a.type) {
686
- case Ve:
686
+ case $e:
687
687
  return {
688
688
  ...t,
689
689
  announcement: a.payload
690
690
  };
691
- case $e:
691
+ case Ve:
692
692
  return {
693
693
  ...t,
694
694
  announcement: null
@@ -701,7 +701,7 @@ const Ve = "SET_ANNOUNCEMENT", $e = "CLEAR_ANNOUNCEMENT", tr = {
701
701
  dispatch: a
702
702
  }) => {
703
703
  a({
704
- type: $e
704
+ type: Ve
705
705
  }), typeof t == "function" && t();
706
706
  }, Le = ({
707
707
  children: t,
@@ -711,7 +711,7 @@ const Ve = "SET_ANNOUNCEMENT", $e = "CLEAR_ANNOUNCEMENT", tr = {
711
711
  dispatch: r
712
712
  }) => {
713
713
  clearTimeout(o.current), t !== null && r({
714
- type: Ve,
714
+ type: $e,
715
715
  payload: t
716
716
  }), a && (o.current = setTimeout(
717
717
  () => nr({
@@ -980,7 +980,7 @@ const sr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
980
980
  ...R
981
981
  }, B) => {
982
982
  var H;
983
- const S = v(null), ie = Qt([B, S]), [k, _] = Re(), [Q, G] = Re(), K = v(80), U = v(-25), L = v(null), J = v(30), Z = v(null), Y = er({ id: t, prefix: `${De}-` }), [Ee, Fe] = C(0), [Te, Ge] = C(0), [Ue, Ne] = C(
983
+ const S = v(null), ie = Qt([B, S]), [k, _] = Re(), [Q, G] = Re(), K = v(80), U = v(-25), L = v(null), Z = v(30), J = v(null), Y = er({ id: t, prefix: `${De}-` }), [Ee, Fe] = C(0), [Te, Ge] = C(0), [Ue, Ne] = C(
984
984
  !!(!T && h)
985
985
  ), Ye = `${a} error, ${h}`, j = mr({
986
986
  className: c,
@@ -993,7 +993,7 @@ const sr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
993
993
  mode: d,
994
994
  rightElement: !!E,
995
995
  leftElement: !!g
996
- }), [D, je] = Zt({
996
+ }), [D, je] = Jt({
997
997
  value: f,
998
998
  initialControlledDelay: 20,
999
999
  defaultValue: p,
@@ -1032,12 +1032,12 @@ const sr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1032
1032
  scrollHeight: S.current.scrollHeight,
1033
1033
  currentHeight: K.current,
1034
1034
  currentLabelOffset: U.current,
1035
- currentHelperTextOffset: J.current
1035
+ currentHelperTextOffset: Z.current
1036
1036
  });
1037
1037
  fe && (U.current = fe, (A = L == null ? void 0 : L.current) == null || A.style.setProperty(
1038
1038
  "--av-text-area-label",
1039
1039
  `${fe}px`
1040
- )), pe && (J.current = pe, (Se = Z == null ? void 0 : Z.current) == null || Se.style.setProperty(
1040
+ )), pe && (Z.current = pe, (Se = J == null ? void 0 : J.current) == null || Se.style.setProperty(
1041
1041
  "--av-text-area-helper-text",
1042
1042
  `${pe}px`
1043
1043
  )), K.current = qe || K.current;
@@ -1103,7 +1103,7 @@ const sr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1103
1103
  Ue && /* @__PURE__ */ e(
1104
1104
  "div",
1105
1105
  {
1106
- ref: Z,
1106
+ ref: J,
1107
1107
  id: `${Y}-helper`,
1108
1108
  className: j.helperText,
1109
1109
  children: h
@@ -1242,7 +1242,7 @@ const fr = "av-toggle", pr = () => y("peer", "h-6", "w-11", "rounded-full"), gr
1242
1242
  open: t,
1243
1243
  onOpenChange: a
1244
1244
  }) => {
1245
- const { getAccessToken: o, user: n } = $(), {
1245
+ const { getAccessToken: o, user: n } = V(), {
1246
1246
  data: r,
1247
1247
  error: c,
1248
1248
  isLoading: s,
@@ -1422,7 +1422,7 @@ const fr = "av-toggle", pr = () => y("peer", "h-6", "w-11", "rounded-full"), gr
1422
1422
  open: t,
1423
1423
  onOpenChange: a
1424
1424
  }) => {
1425
- const { getAccessToken: o, user: n } = $(), {
1425
+ const { getAccessToken: o, user: n } = V(), {
1426
1426
  data: r,
1427
1427
  error: c,
1428
1428
  isLoading: s,
@@ -1468,7 +1468,7 @@ const fr = "av-toggle", pr = () => y("peer", "h-6", "w-11", "rounded-full"), gr
1468
1468
  }
1469
1469
  }), K = Date.now() - k;
1470
1470
  if (K < 2e3 && await new Promise((U) => setTimeout(U, 2e3 - K)), Q.status === 200) {
1471
- const { city: U, state: L, country: J, displayName: Z } = Q.data, Y = U && L && J ? `${U}, ${L}, ${J}` : Z;
1471
+ const { city: U, state: L, country: Z, displayName: J } = Q.data, Y = U && L && Z ? `${U}, ${L}, ${Z}` : J;
1472
1472
  b({
1473
1473
  loadingLocation: !1
1474
1474
  }), T(Y);
@@ -1649,7 +1649,7 @@ const fr = "av-toggle", pr = () => y("peer", "h-6", "w-11", "rounded-full"), gr
1649
1649
  }
1650
1650
  );
1651
1651
  }, _r = () => {
1652
- const { logout: t } = $(), { state: a } = he(Oe), [o, n] = C(!1), [r, c] = C(!1), [s, d] = C(!1), [m, f] = C(!1), [p, b] = C(!1), x = () => {
1652
+ const { logout: t } = V(), { state: a } = he(Oe), [o, n] = C(!1), [r, c] = C(!1), [s, d] = C(!1), [m, f] = C(!1), [p, b] = C(!1), x = () => {
1653
1653
  n(!o);
1654
1654
  }, l = () => {
1655
1655
  c(!r);
@@ -1678,7 +1678,7 @@ const fr = "av-toggle", pr = () => y("peer", "h-6", "w-11", "rounded-full"), gr
1678
1678
  /* @__PURE__ */ e(jt, { open: o, onOpenChange: n }),
1679
1679
  /* @__PURE__ */ e(Nr, { open: r, onOpenChange: c }),
1680
1680
  s && /* @__PURE__ */ e(Ut, { open: s, onOpenChange: d }),
1681
- /* @__PURE__ */ e($t, { open: m, onOpenChange: f }),
1681
+ /* @__PURE__ */ e(Vt, { open: m, onOpenChange: f }),
1682
1682
  /* @__PURE__ */ e("div", { className: "bg-slate-900 py-4 px-4 rounded-t-md", children: /* @__PURE__ */ e(q, { alignHorizontal: "flex-end", alignVertical: "center", children: /* @__PURE__ */ e(P, { children: /* @__PURE__ */ e(q, { children: /* @__PURE__ */ e(P, { children: /* @__PURE__ */ e(
1683
1683
  St,
1684
1684
  {