@versini/sassysaint 1.0.10 → 1.0.12

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,8 +1,8 @@
1
1
  import { jsxs as c, jsx as t, Fragment as w } from "react/jsx-runtime";
2
- import { O as D, i$1 as le, N as de, p as De, o as _e, g as A, N$1 as _, CARDS as C, renderDataAsList as F, pluralize as Q, ABOUT_TITLE as ze, MODEL_GPT4 as Be, numberFormatter as Ve, durationFormatter as Ce, NA as Pe, ROLE_ASSISTANT as Fe, extractAverage as Ge, GPT4_MAX_TOKENS as $e, Wr as U, STATS as Ne, b as q, j as M, x as Z, LOCAL_STORAGE_PREFIX as ee, LOCAL_STORAGE_SORT as Ue, ACTION_RESET as je, ACTION_RESTORE as Ke, truncate as Ye, ACTION_SORT as re, LOCAL_STORAGE_SEARCH as We, G as Xe, ACTION_SEARCH as Je, HISTORY_TITLE as qe, LOCAL_STORAGE_CHAT_DETAILS as Qe, LOCAL_STORAGE_LOCATION as Ze, G$1 as et, f$2 as tt, ACTION_LOCATION as me, getCurrentGeoLocation as st, convertLatitudeToDMS as at, convertLongitudeToDMS as nt, PROFILE_TITLE as rt, LOG_OUT as ue } from "./index.Ctkx8F84.js";
2
+ import { O as D, i$1 as le, N as de, p as De, o as _e, g as A, N$1 as _, CARDS as C, renderDataAsList as F, pluralize as Q, ABOUT_TITLE as ze, MODEL_GPT4 as Be, numberFormatter as Ve, durationFormatter as Ce, NA as Pe, ROLE_ASSISTANT as Fe, extractAverage as Ge, GPT4_MAX_TOKENS as $e, Wr as U, STATS as Ne, b as q, j as M, x as Z, LOCAL_STORAGE_PREFIX as ee, LOCAL_STORAGE_SORT as Ue, ACTION_RESET as je, ACTION_RESTORE as Ye, truncate as Ke, ACTION_SORT as re, LOCAL_STORAGE_SEARCH as We, Y as Xe, ACTION_SEARCH as Je, HISTORY_TITLE as qe, LOCAL_STORAGE_CHAT_DETAILS as Qe, LOCAL_STORAGE_LOCATION as Ze, G as et, f$2 as tt, ACTION_LOCATION as me, getCurrentGeoLocation as st, convertLatitudeToDMS as at, convertLongitudeToDMS as nt, PROFILE_TITLE as rt, LOG_OUT as ue } from "./index.zLmZbLWJ.js";
3
3
  import * as ce from "react";
4
4
  import ot, { forwardRef as Te, useState as T, useRef as G, useContext as R, useEffect as L, Suspense as ct, lazy as it, useId as lt } from "react";
5
- import { g as dt, AppContext as j, serviceCall as se, SERVICE_TYPES as ae, HistoryContext as ye, E as te, k as v, et as mt, at as ut, lt as oe, J as H, ct as ht, st as pt, rt as ft } from "./useLocalStorage.D_0bF6Yy.js";
5
+ import { g as dt, AppContext as j, serviceCall as se, SERVICE_TYPES as ae, HistoryContext as ye, E as te, k as v, et as mt, at as ut, lt as oe, J as H, ct as ht, st as pt, rt as ft } from "./useLocalStorage.C5Y-scvG.js";
6
6
  import k from "clsx";
7
7
  import { useFloatingTree as be, useFloatingNodeId as gt, useListItem as Se, useFloating as Ct, offset as Nt, flip as Tt, shift as yt, autoUpdate as bt, useClick as St, useRole as wt, useDismiss as kt, useListNavigation as Et, useTypeahead as xt, useInteractions as vt, useMergeRefs as we, FloatingNode as At, FloatingList as It, FloatingPortal as Ht, FloatingFocusManager as Mt, FloatingTree as Rt } from "@floating-ui/react";
8
8
  const ie = ce.createContext({
@@ -196,11 +196,11 @@ const Lt = ({ className: e, ...s }) => {
196
196
  footer: "flex flex-grow flex-col p-4",
197
197
  header: "p-4 mb-0",
198
198
  close: "p-4"
199
- }), K = (e) => it(
200
- () => import("./index.BcV6McvW.De7qagut.js").then((s) => ({
199
+ }), Y = (e) => it(
200
+ () => import("./index.DbAx5fhD.DQEy3ba2.js").then((s) => ({
201
201
  default: s[e]
202
202
  }))
203
- ), _t = K("Modal"), zt = K("ModalClose"), Bt = K("ModalContent"), Vt = K("ModalDescription"), Pt = K("ModalHeading"), Y = ({
203
+ ), _t = Y("Modal"), zt = Y("ModalClose"), Bt = Y("ModalContent"), Vt = Y("ModalDescription"), Pt = Y("ModalHeading"), K = ({
204
204
  open: e,
205
205
  onOpenChange: s,
206
206
  title: a,
@@ -276,7 +276,7 @@ const Lt = ({ className: e, ...s }) => {
276
276
  "border-border-light bg-surface-darker": e === "dark",
277
277
  "border-border-light bg-surface-darker dark:border-border-dark dark:bg-surface-medium": e === "alt-system",
278
278
  "border-border-dark bg-surface-medium dark:border-border-light dark:bg-surface-darker": e === "system"
279
- }), Kt = ({
279
+ }), Yt = ({
280
280
  mode: e,
281
281
  labelHidden: s
282
282
  }) => s ? "sr-only" : k("ml-2 text-sm", {
@@ -284,7 +284,7 @@ const Lt = ({ className: e, ...s }) => {
284
284
  "text-copy-lighter": e === "dark",
285
285
  "text-copy-lighter dark:text-copy-dark": e === "alt-system",
286
286
  "text-copy-dark dark:text-copy-lighter": e === "system"
287
- }), Yt = ({ spacing: e }) => k(
287
+ }), Kt = ({ spacing: e }) => k(
288
288
  De,
289
289
  "relative flex cursor-pointer items-center",
290
290
  _e(e)
@@ -302,9 +302,9 @@ const Lt = ({ className: e, ...s }) => {
302
302
  Ut(),
303
303
  $t()
304
304
  ),
305
- label: Kt({ mode: e, labelHidden: a }),
305
+ label: Yt({ mode: e, labelHidden: a }),
306
306
  input: "peer sr-only",
307
- wrapper: Yt({ spacing: n })
307
+ wrapper: Kt({ spacing: n })
308
308
  }), Xt = ({
309
309
  checked: e = !1,
310
310
  onChange: s,
@@ -602,8 +602,8 @@ const ns = ({ stats: e }) => {
602
602
  header: C.ABOUT.TITLE_CLIENT,
603
603
  className: "prose-dark dark:prose-lighter",
604
604
  children: F(r, {
605
- [C.ABOUT.VERSION]: "3.4.4",
606
- [C.ABOUT.BUILD_TIMESTAMP]: "08/01/2024 08:14 AM EDT"
605
+ [C.ABOUT.VERSION]: "3.4.6",
606
+ [C.ABOUT.BUILD_TIMESTAMP]: "08/07/2024 02:13 PM EDT"
607
607
  })
608
608
  }
609
609
  ) }),
@@ -625,7 +625,7 @@ const ns = ({ stats: e }) => {
625
625
  onOpenChange: s
626
626
  }) => {
627
627
  const { serverStats: a } = R(j);
628
- return /* @__PURE__ */ t(Y, { open: e, onOpenChange: s, title: ze, children: /* @__PURE__ */ t(ns, { stats: a }) });
628
+ return /* @__PURE__ */ t(K, { open: e, onOpenChange: s, title: ze, children: /* @__PURE__ */ t(ns, { stats: a }) });
629
629
  }, os = (e) => Ce(e), cs = (e) => {
630
630
  if (!e || e.length === 0)
631
631
  return Pe;
@@ -694,7 +694,7 @@ const ns = ({ stats: e }) => {
694
694
  } catch {
695
695
  }
696
696
  })();
697
- }, [e, o, l]), /* @__PURE__ */ t(Y, { open: e, onOpenChange: s, title: Ne, children: /* @__PURE__ */ t(is, { isAuthenticated: r, stats: a }) });
697
+ }, [e, o, l]), /* @__PURE__ */ t(K, { open: e, onOpenChange: s, title: Ne, children: /* @__PURE__ */ t(is, { isAuthenticated: r, stats: a }) });
698
698
  }, xe = ({
699
699
  showConfirmation: e,
700
700
  setShowConfirmation: s,
@@ -702,7 +702,7 @@ const ns = ({ stats: e }) => {
702
702
  children: n,
703
703
  customStrings: r
704
704
  }) => /* @__PURE__ */ t(
705
- Y,
705
+ K,
706
706
  {
707
707
  kind: "messagebox",
708
708
  open: e,
@@ -762,7 +762,7 @@ const hs = async (e, s, a, n) => {
762
762
  r.status === 200 && (s({
763
763
  type: je
764
764
  }), s({
765
- type: Ke,
765
+ type: Ye,
766
766
  payload: {
767
767
  id: e.id,
768
768
  model: r.data.model,
@@ -774,7 +774,7 @@ const hs = async (e, s, a, n) => {
774
774
  }
775
775
  }, fe = (e) => {
776
776
  const s = e[0];
777
- return Ye(s == null ? void 0 : s.content, 100);
777
+ return Ke(s == null ? void 0 : s.content, 100);
778
778
  }, ps = ({
779
779
  filteredHistory: e,
780
780
  setFilteredHistory: s,
@@ -1037,7 +1037,7 @@ const fs = ({
1037
1037
  open: e,
1038
1038
  onOpenChange: s,
1039
1039
  historyData: a
1040
- }) => /* @__PURE__ */ t(Y, { open: e, onOpenChange: s, title: qe, children: /* @__PURE__ */ t(fs, { onOpenChange: s, historyData: a }) }), Cs = () => {
1040
+ }) => /* @__PURE__ */ t(K, { open: e, onOpenChange: s, title: qe, children: /* @__PURE__ */ t(fs, { onOpenChange: s, historyData: a }) }), Cs = () => {
1041
1041
  const { isAuthenticated: e, user: s, registeringForPasskey: a, authenticationType: n } = U(), [r, o] = te({
1042
1042
  key: ee + Qe,
1043
1043
  initialValue: !1
@@ -1155,7 +1155,7 @@ const fs = ({
1155
1155
  }, Ns = ({
1156
1156
  open: e,
1157
1157
  onOpenChange: s
1158
- }) => /* @__PURE__ */ t(Y, { open: e, onOpenChange: s, title: rt, children: /* @__PURE__ */ t(Cs, {}) }), Es = () => {
1158
+ }) => /* @__PURE__ */ t(K, { open: e, onOpenChange: s, title: rt, children: /* @__PURE__ */ t(Cs, {}) }), Es = () => {
1159
1159
  const { state: e } = R(j), [s, a] = T(!1), [n, r] = T(!1), [o, l] = T(!1), [d, h] = T(!1), [m, N] = T([]), [u, y] = T(!1), [b, S] = T({
1160
1160
  done: !1,
1161
1161
  progress: !1,
@@ -1,5 +1,5 @@
1
1
  import { jsx as _i } from "react/jsx-runtime";
2
- import { convert as Si, getDefaultExportFromCjs as Ni, visit as ki, find as Ti, parse as z0, parse$1 as P0, normalize as F0, svg as Mi, html as Ai, visitParents as Oi, SKIP as Ri, longestStreak as Ci, factorySpace as Xt, markdownLineEnding as xt, Markdown as Ii, remarkGfm as Di } from "./LazyMessageAssistant.D3A035f8.js";
2
+ import { convert as Si, getDefaultExportFromCjs as Ni, visit as ki, find as Ti, parse as z0, parse$1 as P0, normalize as F0, svg as Mi, html as Ai, visitParents as Oi, SKIP as Ri, longestStreak as Ci, factorySpace as Xt, markdownLineEnding as xt, Markdown as Ii, remarkGfm as Di } from "./LazyMessageAssistant.D1xORQQ7.js";
3
3
  const U0 = (
4
4
  // Note: overloads like this are needed to support optional generics.
5
5
  /**
@@ -1,8 +1,8 @@
1
1
  import { jsxs as He, jsx as re, Fragment as or } from "react/jsx-runtime";
2
- import { c$1 as ot, S as at, LOCAL_STORAGE_PREFIX as wi, LOCAL_STORAGE_CHAT_DETAILS as Si, durationFormatter as Ci } from "./index.Ctkx8F84.js";
3
- import { AppContext as Ei, E as Ai } from "./useLocalStorage.D_0bF6Yy.js";
2
+ import { c$1 as ot, S as at, LOCAL_STORAGE_PREFIX as wi, LOCAL_STORAGE_CHAT_DETAILS as Si, durationFormatter as Ci } from "./index.zLmZbLWJ.js";
3
+ import { AppContext as Ei, E as Ai } from "./useLocalStorage.C5Y-scvG.js";
4
4
  import { lazy as Ii, useContext as Ti, Suspense as Pi } from "react";
5
- import { T as ut } from "./App.D3bDw_9b.js";
5
+ import { T as ut } from "./App.nuKvm0UW.js";
6
6
  import cn from "clsx";
7
7
  const Li = ({
8
8
  spinnerRef: e,
@@ -8618,7 +8618,7 @@ function sf(e) {
8618
8618
  i.push(af(n)), o.push(Tc()), l.push(Pc(n));
8619
8619
  }
8620
8620
  const cf = Ii(
8621
- () => import("./LazyMarkdownWithExtra.B2OqwN1y.js")
8621
+ () => import("./LazyMarkdownWithExtra.Dte6tk7Z.js")
8622
8622
  ), In = {
8623
8623
  MODEL: "Model",
8624
8624
  PLUGIN: "Plugin",
@@ -1,9 +1,9 @@
1
1
  import { jsx as i, jsxs as E, Fragment as D } from "react/jsx-runtime";
2
- import y from "clsx";
2
+ import A from "clsx";
3
3
  import * as c from "react";
4
4
  import { useRef as C, useReducer as M, useEffect as _, useId as x } from "react";
5
- import { useMergeRefs as S, FloatingPortal as F, FloatingOverlay as O, FloatingFocusManager as P, useFloating as k, useClick as L, useDismiss as V, useRole as B, useInteractions as U } from "@floating-ui/react";
6
- import { S as j } from "./index.Ctkx8F84.js";
5
+ import { useMergeRefs as S, FloatingPortal as F, FloatingOverlay as O, FloatingFocusManager as k, useFloating as P, useClick as L, useDismiss as V, useRole as B, useInteractions as U } from "@floating-ui/react";
6
+ import { S as j } from "./index.zLmZbLWJ.js";
7
7
  const b = "SET_ANNOUNCEMENT", w = "CLEAR_ANNOUNCEMENT", q = {
8
8
  alert: null,
9
9
  alertdialog: null,
@@ -105,7 +105,7 @@ function W({
105
105
  r,
106
106
  a
107
107
  ]);
108
- const v = y(n, {
108
+ const v = A(n, {
109
109
  "sr-only": !s
110
110
  });
111
111
  return /* @__PURE__ */ i(
@@ -125,7 +125,7 @@ function Y({
125
125
  open: n,
126
126
  onOpenChange: o
127
127
  } = {}) {
128
- const [t, l] = c.useState(e), [r, a] = c.useState(), [s, f] = c.useState(), u = n ?? t, d = o ?? l, m = k({
128
+ const [t, l] = c.useState(e), [r, a] = c.useState(), [s, f] = c.useState(), u = n ?? t, d = o ?? l, m = P({
129
129
  open: u,
130
130
  onOpenChange: d
131
131
  }), p = m.context, h = L(p, {
@@ -133,19 +133,19 @@ function Y({
133
133
  }), v = V(p, {
134
134
  outsidePress: !1,
135
135
  outsidePressEvent: "mousedown"
136
- }), N = B(p), A = U([h, v, N]);
136
+ }), N = B(p), y = U([h, v, N]);
137
137
  return c.useMemo(
138
138
  () => ({
139
139
  open: u,
140
140
  setOpen: d,
141
- ...A,
141
+ ...y,
142
142
  ...m,
143
143
  labelId: r,
144
144
  descriptionId: s,
145
145
  setLabelId: a,
146
146
  setDescriptionId: f
147
147
  }),
148
- [u, d, A, m, r, s]
148
+ [u, d, y, m, r, s]
149
149
  );
150
150
  }
151
151
  const g = () => {
@@ -168,11 +168,11 @@ const ee = c.forwardRef(function(e, n) {
168
168
  const { context: o, ...t } = g(), l = S([t.refs.setFloating, n]);
169
169
  if (!o.open)
170
170
  return null;
171
- const { overlayBackground: r, ...a } = e, s = y("grid place-items-center", {
171
+ const { overlayBackground: r, ...a } = e, s = A("grid place-items-center", {
172
172
  [`${r}`]: r,
173
173
  "bg-black sm:bg-black/[.8]": !r
174
174
  });
175
- return /* @__PURE__ */ i(F, { children: /* @__PURE__ */ i(O, { className: s, lockScroll: !0, children: /* @__PURE__ */ i(P, { context: o, children: /* @__PURE__ */ i(
175
+ return /* @__PURE__ */ i(F, { children: /* @__PURE__ */ i(O, { className: s, lockScroll: !0, children: /* @__PURE__ */ i(k, { context: o, children: /* @__PURE__ */ i(
176
176
  "div",
177
177
  {
178
178
  ref: l,
@@ -207,7 +207,7 @@ const ee = c.forwardRef(function(e, n) {
207
207
  semantic: f = !1,
208
208
  ...u
209
209
  }) => {
210
- const d = j(a), m = y(
210
+ const d = j(a), m = A(
211
211
  d,
212
212
  t || r
213
213
  );
@@ -230,13 +230,13 @@ const ee = c.forwardRef(function(e, n) {
230
230
  ] });
231
231
  };
232
232
  /*!
233
- @versini/ui-private v1.4.6
233
+ @versini/ui-private v1.4.7
234
234
  © 2024 gizmette.com
235
235
  */
236
236
  try {
237
237
  window.__VERSINI_UI_PRIVATE__ || (window.__VERSINI_UI_PRIVATE__ = {
238
- version: "1.4.6",
239
- buildTime: "07/19/2024 08:17 PM EDT",
238
+ version: "1.4.7",
239
+ buildTime: "08/07/2024 09:49 AM EDT",
240
240
  homepage: "https://github.com/aversini/ui-components",
241
241
  license: "MIT"
242
242
  });