@versini/sassysaint 1.0.6 → 1.0.8

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 { jsxs as S, jsx as a, Fragment as me } from "react/jsx-runtime";
2
- import { O as Ve, s as Be, S as De, f$1 as $e, M as ze, U as Ue, r as Fe, o as Pe, n as ge, l as Ge, a as W, isLastMessageFromRole as ye, x as fe, CANCEL as je, CLEAR as We, ACTION_RESET as he, ROLE_ASSISTANT as L, ROLE_INTERNAL as X, ROLE_USER as Q, Hr as K, ROLE_SYSTEM as Ye, ROLE_HIDDEN as qe, MODEL_GPT4 as xe, STATS_SEPARATOR as ae, ACTION_MODEL as be, ACTION_MESSAGE as H, TYPE_QUESTION as Je, SEND as Qe, ACTION_STREAMING as ke, ERROR_MESSAGE as Xe, getMessageContaintWrapperClass as Ke, MessagesContainerHeader as Ze, ACTION_SEARCH as er, ACTION_SORT as rr, ACTION_RESTORE as tr, ACTION_LOCATION as _, getCurrentGeoLocation as or, c as sr, AppFooter as ar, LOCAL_STORAGE_PREFIX as Y, LOCAL_STORAGE_SEARCH as nr, LOCAL_STORAGE_SORT as lr, LOCAL_STORAGE_LOCATION as cr } from "./index.BKyjC-Gq.js";
3
- import { g as Ce, AppContext as U, restCall as ir, E as q, serviceCall as ne, SERVICE_TYPES as le, HistoryContext as dr, k as ur } from "./useLocalStorage.CRw27Sp5.js";
2
+ import { O as Ve, s as Be, S as De, f$1 as $e, M as ze, U as Ue, r as Fe, o as Pe, n as ge, l as Ge, a as W, isLastMessageFromRole as ye, x as fe, CANCEL as je, CLEAR as We, ACTION_RESET as he, ROLE_ASSISTANT as L, ROLE_INTERNAL as X, ROLE_USER as Q, Cr as K, ROLE_SYSTEM as Ye, ROLE_HIDDEN as qe, MODEL_GPT4 as xe, STATS_SEPARATOR as ae, ACTION_MODEL as be, ACTION_MESSAGE as H, TYPE_QUESTION as Je, SEND as Qe, ACTION_STREAMING as ke, ERROR_MESSAGE as Xe, getMessageContaintWrapperClass as Ke, MessagesContainerHeader as Ze, ACTION_SEARCH as er, ACTION_SORT as rr, ACTION_RESTORE as tr, ACTION_LOCATION as _, getCurrentGeoLocation as or, c as sr, AppFooter as ar, LOCAL_STORAGE_PREFIX as Y, LOCAL_STORAGE_SEARCH as nr, LOCAL_STORAGE_SORT as lr, LOCAL_STORAGE_LOCATION as cr } from "./index.DcXJ8skl.js";
3
+ import { g as Ce, AppContext as U, restCall as ir, E as q, serviceCall as ne, SERVICE_TYPES as le, HistoryContext as dr, k as ur } from "./useLocalStorage.Cx1iecci.js";
4
4
  import pr, { useState as R, useEffect as E, useRef as x, useLayoutEffect as D, useContext as Z, lazy as mr, Suspense as ce, useReducer as ie, useCallback as gr } from "react";
5
5
  import y from "clsx";
6
6
  const yr = ({
@@ -475,7 +475,7 @@ const Vr = () => {
475
475
  children: r != null && r.streaming ? je : We
476
476
  }
477
477
  ) }) : null;
478
- }, ue = mr(() => import("./LazyMessageAssistant.CpqGU5k9.js").then((e) => e.LazyMessageAssistant)), Br = () => {
478
+ }, ue = mr(() => import("./LazyMessageAssistant.BP4_wS5W.js").then((e) => e.LazyMessageAssistant)), Br = () => {
479
479
  const { state: e } = Z(U);
480
480
  return /* @__PURE__ */ S(me, { children: [
481
481
  e && e.messages.length > 0 && e.messages.map((r, o) => {
@@ -1,8 +1,8 @@
1
1
  import { jsxs as c, jsx as t, Fragment as w } from "react/jsx-runtime";
2
- import { O, i$1 as Le, N as De, p as Oe, o as _e, g as A, N$1 as _, CARDS as C, renderDataAsList as P, pluralize as q, ABOUT_TITLE as ze, MODEL_GPT4 as Be, numberFormatter as Ve, durationFormatter as fe, NA as Pe, ROLE_ASSISTANT as Fe, extractAverage as $e, GPT4_MAX_TOKENS as Ge, Hr as G, STATS as ge, b as X, j as M, x as Q, LOCAL_STORAGE_PREFIX as Z, 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, G as Xe, ACTION_SEARCH as Je, HISTORY_TITLE as qe, LOCAL_STORAGE_CHAT_DETAILS as Qe, LOCAL_STORAGE_LOCATION as Ze, Y as et, f$2 as tt, ACTION_LOCATION as le, getCurrentGeoLocation as st, convertLatitudeToDMS as at, convertLongitudeToDMS as rt, PROFILE_TITLE as nt, LOG_OUT as de } from "./index.BKyjC-Gq.js";
2
+ import { O, i$1 as Le, N as De, p as Oe, o as _e, g as A, N$1 as _, CARDS as C, renderDataAsList as P, pluralize as q, ABOUT_TITLE as ze, MODEL_GPT4 as Be, numberFormatter as Ve, durationFormatter as fe, NA as Pe, ROLE_ASSISTANT as Fe, extractAverage as $e, GPT4_MAX_TOKENS as Ge, Cr as G, STATS as ge, b as X, j as M, x as Q, LOCAL_STORAGE_PREFIX as Z, 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, j$1 as et, f$2 as tt, ACTION_LOCATION as le, getCurrentGeoLocation as st, convertLatitudeToDMS as at, convertLongitudeToDMS as rt, PROFILE_TITLE as nt, LOG_OUT as de } from "./index.DcXJ8skl.js";
3
3
  import * as ce from "react";
4
4
  import ot, { forwardRef as Ce, useState as T, useRef as F, useContext as R, useEffect as L, Suspense as ct, lazy as it, useId as lt } from "react";
5
- import { g as dt, AppContext as U, serviceCall as te, SERVICE_TYPES as se, HistoryContext as Ne, E as ee, k as v, et as ut, at as mt, lt as ne, J as H, ct as ht, st as pt, rt as ft } from "./useLocalStorage.CRw27Sp5.js";
5
+ import { g as dt, AppContext as U, serviceCall as te, SERVICE_TYPES as se, HistoryContext as Ne, E as ee, k as v, et as ut, at as mt, lt as ne, J as H, ct as ht, st as pt, rt as ft } from "./useLocalStorage.Cx1iecci.js";
6
6
  import E from "clsx";
7
7
  import { useFloatingTree as Te, useFloatingNodeId as gt, useListItem as ye, useFloating as Ct, offset as Nt, flip as Tt, shift as yt, autoUpdate as bt, useClick as St, useRole as wt, useDismiss as Et, useListNavigation as kt, useTypeahead as xt, useInteractions as vt, useMergeRefs as be, 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({
@@ -37,7 +37,7 @@ const ie = ce.createContext({
37
37
  focusMode: d = "system",
38
38
  ...u
39
39
  }, f) => {
40
- const [N, m] = T(!1), [y, b] = T(!1), [S, p] = T(null), k = F([]), i = F([]), h = R(ie), g = Te(), x = gt(), z = ye(), { floatingStyles: ae, refs: K, context: I } = Ct({
40
+ const [N, m] = T(!1), [y, b] = T(!1), [S, p] = T(null), k = F([]), i = F([]), h = R(ie), g = Te(), x = gt(), z = ye(), { floatingStyles: ae, refs: Y, context: I } = Ct({
41
41
  nodeId: x,
42
42
  open: N,
43
43
  onOpenChange: (V) => {
@@ -69,7 +69,7 @@ const ie = ce.createContext({
69
69
  "aria-label": a,
70
70
  "data-open": N ? "" : void 0,
71
71
  "data-focus-inside": y ? "" : void 0,
72
- ref: be([K.setReference, z.ref, f]),
72
+ ref: be([Y.setReference, z.ref, f]),
73
73
  ...Ae(
74
74
  h.getItemProps({
75
75
  ...u
@@ -109,7 +109,7 @@ const ie = ce.createContext({
109
109
  children: /* @__PURE__ */ t(
110
110
  "div",
111
111
  {
112
- ref: K.setFloating,
112
+ ref: Y.setFloating,
113
113
  className: "rounded-md bg-surface-light p-4 shadow-sm shadow-border-dark outline-none sm:p-2",
114
114
  style: ae,
115
115
  ...Ie(),
@@ -196,10 +196,10 @@ const Lt = ({ className: e, ...s }) => {
196
196
  header: "p-4 mb-0",
197
197
  close: "p-4"
198
198
  }), j = (e) => it(
199
- () => import("./index.DruzEDnN.CTTNEhUa.js").then((s) => ({
199
+ () => import("./index.DruzEDnN.C6Ffe-lT.js").then((s) => ({
200
200
  default: s[e]
201
201
  }))
202
- ), _t = j("Modal"), zt = j("ModalClose"), Bt = j("ModalContent"), Vt = j("ModalDescription"), Pt = j("ModalHeading"), Y = ({
202
+ ), _t = j("Modal"), zt = j("ModalClose"), Bt = j("ModalContent"), Vt = j("ModalDescription"), Pt = j("ModalHeading"), K = ({
203
203
  open: e,
204
204
  onOpenChange: s,
205
205
  title: a,
@@ -274,7 +274,7 @@ const Lt = ({ className: e, ...s }) => {
274
274
  "border-border-light bg-surface-darker": e === "dark",
275
275
  "border-border-light bg-surface-darker dark:border-border-dark dark:bg-surface-medium": e === "alt-system",
276
276
  "border-border-dark bg-surface-medium dark:border-border-light dark:bg-surface-darker": e === "system"
277
- }), Yt = ({
277
+ }), Kt = ({
278
278
  mode: e,
279
279
  labelHidden: s
280
280
  }) => s ? "sr-only" : E("ml-2 text-sm", {
@@ -282,7 +282,7 @@ const Lt = ({ className: e, ...s }) => {
282
282
  "text-copy-lighter": e === "dark",
283
283
  "text-copy-lighter dark:text-copy-dark": e === "alt-system",
284
284
  "text-copy-dark dark:text-copy-lighter": e === "system"
285
- }), Kt = ({ spacing: e }) => E(
285
+ }), Yt = ({ spacing: e }) => E(
286
286
  Oe,
287
287
  "relative flex cursor-pointer items-center",
288
288
  _e(e)
@@ -300,9 +300,9 @@ const Lt = ({ className: e, ...s }) => {
300
300
  Ut(),
301
301
  Gt()
302
302
  ),
303
- label: Yt({ mode: e, labelHidden: a }),
303
+ label: Kt({ mode: e, labelHidden: a }),
304
304
  input: "peer sr-only",
305
- wrapper: Kt({ spacing: r })
305
+ wrapper: Yt({ spacing: r })
306
306
  }), Xt = ({
307
307
  checked: e = !1,
308
308
  onChange: s,
@@ -600,8 +600,8 @@ const rs = ({ stats: e }) => {
600
600
  header: C.ABOUT.TITLE_CLIENT,
601
601
  className: "prose-dark dark:prose-lighter",
602
602
  children: P(n, {
603
- [C.ABOUT.VERSION]: "3.4.0",
604
- [C.ABOUT.BUILD_TIMESTAMP]: "07/15/2024 12:59 PM EDT"
603
+ [C.ABOUT.VERSION]: "3.4.2",
604
+ [C.ABOUT.BUILD_TIMESTAMP]: "07/18/2024 12:59 PM EDT"
605
605
  })
606
606
  }
607
607
  ) }),
@@ -623,7 +623,7 @@ const rs = ({ stats: e }) => {
623
623
  onOpenChange: s
624
624
  }) => {
625
625
  const { serverStats: a } = R(U);
626
- return /* @__PURE__ */ t(Y, { open: e, onOpenChange: s, title: ze, children: /* @__PURE__ */ t(rs, { stats: a }) });
626
+ return /* @__PURE__ */ t(K, { open: e, onOpenChange: s, title: ze, children: /* @__PURE__ */ t(rs, { stats: a }) });
627
627
  }, os = (e) => fe(e), cs = (e) => {
628
628
  if (!e || e.length === 0)
629
629
  return Pe;
@@ -692,7 +692,7 @@ const rs = ({ stats: e }) => {
692
692
  } catch {
693
693
  }
694
694
  })();
695
- }, [e, o, l]), /* @__PURE__ */ t(Y, { open: e, onOpenChange: s, title: ge, children: /* @__PURE__ */ t(is, { isAuthenticated: n, stats: a }) });
695
+ }, [e, o, l]), /* @__PURE__ */ t(K, { open: e, onOpenChange: s, title: ge, children: /* @__PURE__ */ t(is, { isAuthenticated: n, stats: a }) });
696
696
  }, Ee = ({
697
697
  showConfirmation: e,
698
698
  setShowConfirmation: s,
@@ -700,7 +700,7 @@ const rs = ({ stats: e }) => {
700
700
  children: r,
701
701
  customStrings: n
702
702
  }) => /* @__PURE__ */ t(
703
- Y,
703
+ K,
704
704
  {
705
705
  kind: "messagebox",
706
706
  open: e,
@@ -760,7 +760,7 @@ const hs = async (e, s, a, r) => {
760
760
  n.status === 200 && (s({
761
761
  type: je
762
762
  }), s({
763
- type: Ye,
763
+ type: Ke,
764
764
  payload: {
765
765
  id: e.id,
766
766
  model: n.data.model,
@@ -772,7 +772,7 @@ const hs = async (e, s, a, r) => {
772
772
  }
773
773
  }, he = (e) => {
774
774
  const s = e[0];
775
- return Ke(s == null ? void 0 : s.content, 100);
775
+ return Ye(s == null ? void 0 : s.content, 100);
776
776
  }, ps = ({
777
777
  filteredHistory: e,
778
778
  setFilteredHistory: s,
@@ -1035,7 +1035,7 @@ const fs = ({
1035
1035
  open: e,
1036
1036
  onOpenChange: s,
1037
1037
  historyData: a
1038
- }) => /* @__PURE__ */ t(Y, { open: e, onOpenChange: s, title: qe, children: /* @__PURE__ */ t(fs, { onOpenChange: s, historyData: a }) }), Cs = () => {
1038
+ }) => /* @__PURE__ */ t(K, { open: e, onOpenChange: s, title: qe, children: /* @__PURE__ */ t(fs, { onOpenChange: s, historyData: a }) }), Cs = () => {
1039
1039
  const { isAuthenticated: e, user: s, registeringForPasskey: a, authenticationType: r } = G(), [n, o] = ee({
1040
1040
  key: Z + Qe,
1041
1041
  initialValue: !1
@@ -1153,7 +1153,7 @@ const fs = ({
1153
1153
  }, Ns = ({
1154
1154
  open: e,
1155
1155
  onOpenChange: s
1156
- }) => /* @__PURE__ */ t(Y, { open: e, onOpenChange: s, title: nt, children: /* @__PURE__ */ t(Cs, {}) }), ks = () => {
1156
+ }) => /* @__PURE__ */ t(K, { open: e, onOpenChange: s, title: nt, children: /* @__PURE__ */ t(Cs, {}) }), ks = () => {
1157
1157
  const { state: e } = R(U), [s, a] = T(!1), [r, n] = T(!1), [o, l] = T(!1), [d, u] = T(!1), [f, N] = T([]), [m, y] = T(!1), [b, S] = T({
1158
1158
  done: !1,
1159
1159
  progress: !1,
@@ -1195,7 +1195,7 @@ const fs = ({
1195
1195
  });
1196
1196
  }
1197
1197
  }
1198
- }, K = () => {
1198
+ }, Y = () => {
1199
1199
  y(!m);
1200
1200
  };
1201
1201
  return /* @__PURE__ */ c(w, { children: [
@@ -1271,7 +1271,7 @@ const fs = ({
1271
1271
  D,
1272
1272
  {
1273
1273
  label: "Log out",
1274
- onClick: K,
1274
+ onClick: Y,
1275
1275
  icon: /* @__PURE__ */ t("div", { className: "text-red-700", children: /* @__PURE__ */ t(Jt, { monotone: !0 }) })
1276
1276
  }
1277
1277
  )
@@ -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.CpqGU5k9.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.BP4_wS5W.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.BKyjC-Gq.js";
3
- import { AppContext as Ei, E as Ai } from "./useLocalStorage.CRw27Sp5.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.DcXJ8skl.js";
3
+ import { AppContext as Ei, E as Ai } from "./useLocalStorage.Cx1iecci.js";
4
4
  import { lazy as Ii, useContext as Ti, Suspense as Pi } from "react";
5
- import { T as ut } from "./App.DpwMzH8A.js";
5
+ import { T as ut } from "./App.D3duFcJD.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.BlxpnMyE.js")
8621
+ () => import("./LazyMarkdownWithExtra.C659-_hy.js")
8622
8622
  ), In = {
8623
8623
  MODEL: "Model",
8624
8624
  PLUGIN: "Plugin",