@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.
- package/dist/chunks/{App.D3bDw_9b.js → App.nuKvm0UW.js} +206 -206
- package/dist/chunks/{LazyHeader.dzy1rQlY.js → LazyHeader.Cn4krbeU.js} +18 -18
- package/dist/chunks/{LazyMarkdownWithExtra.B2OqwN1y.js → LazyMarkdownWithExtra.Dte6tk7Z.js} +1 -1
- package/dist/chunks/{LazyMessageAssistant.D3A035f8.js → LazyMessageAssistant.D1xORQQ7.js} +4 -4
- package/dist/chunks/{index.BcV6McvW.De7qagut.js → index.DbAx5fhD.DQEy3ba2.js} +14 -14
- package/dist/chunks/{index.Ctkx8F84.js → index.zLmZbLWJ.js} +1085 -1054
- package/dist/chunks/{useLocalStorage.D_0bF6Yy.js → useLocalStorage.C5Y-scvG.js} +9 -9
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +6 -6
|
@@ -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
|
|
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.
|
|
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
|
-
}),
|
|
200
|
-
() => import("./index.
|
|
199
|
+
}), Y = (e) => it(
|
|
200
|
+
() => import("./index.DbAx5fhD.DQEy3ba2.js").then((s) => ({
|
|
201
201
|
default: s[e]
|
|
202
202
|
}))
|
|
203
|
-
), _t =
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
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:
|
|
305
|
+
label: Yt({ mode: e, labelHidden: a }),
|
|
306
306
|
input: "peer sr-only",
|
|
307
|
-
wrapper:
|
|
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.
|
|
606
|
-
[C.ABOUT.BUILD_TIMESTAMP]: "08/
|
|
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(
|
|
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(
|
|
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
|
-
|
|
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:
|
|
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
|
|
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(
|
|
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(
|
|
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.
|
|
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.
|
|
3
|
-
import { AppContext as Ei, E as Ai } from "./useLocalStorage.
|
|
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.
|
|
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.
|
|
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
|
|
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
|
|
6
|
-
import { S as j } from "./index.
|
|
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 =
|
|
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 =
|
|
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),
|
|
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
|
-
...
|
|
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,
|
|
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 =
|
|
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(
|
|
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 =
|
|
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.
|
|
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.
|
|
239
|
-
buildTime: "07/
|
|
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
|
});
|