@versini/sassysaint 2.0.0 → 2.0.2
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.B5-6f2Kg.js → App.8nM0tteo.js} +3 -3
- package/dist/chunks/{LazyHeader.kRDKzfpE.js → LazyHeader.BVB91lqV.js} +5 -5
- package/dist/chunks/{LazyMarkdownWithExtra.DwaycQtZ.js → LazyMarkdownWithExtra.Vko9ZhUE.js} +1 -1
- package/dist/chunks/{LazyMessageAssistant.DvruzVWY.js → LazyMessageAssistant.Bc8vj23L.js} +4 -4
- package/dist/chunks/{index.DbAx5fhD.PJ5E1yDy.js → index.7JJYsiGN.Cue7FeX9.js} +14 -14
- package/dist/chunks/{index.CeSKqv8k.js → index.CtUMDxv6.js} +289 -283
- package/dist/chunks/{useLocalStorage.BQ-iH78L.js → useLocalStorage.CVbyWXz0.js} +9 -9
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +4 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as E, jsx as n, Fragment as ye } from "react/jsx-runtime";
|
|
2
|
-
import { O as Be, s as Ve, S as De, f$1 as ze, M as $e, U as Ue, r as Fe, o as Pe, n as fe, l as Ge, a as q, isLastMessageFromRole as he, x as xe, CANCEL as je, CLEAR as We, ACTION_RESET as be, ROLE_ASSISTANT as M, ROLE_INTERNAL as Z, ROLE_USER as K, zr as ee, ROLE_SYSTEM as Ye, ROLE_HIDDEN as qe, MODEL_GPT4 as ke, STATS_SEPARATOR as le, ACTION_MODEL as Ce, ACTION_MESSAGE as V, TYPE_QUESTION as Je, SEND as Qe, ACTION_STREAMING as Te, 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 B, getCurrentGeoLocation as or, c as sr, AppFooter as ar, LOCAL_STORAGE_PREFIX as J, LOCAL_STORAGE_SEARCH as nr, LOCAL_STORAGE_SORT as lr, LOCAL_STORAGE_LOCATION as cr } from "./index.
|
|
3
|
-
import { g as ve, AppContext as P, restCall as ir, E as Q, serviceCall as ce, SERVICE_TYPES as ie, HistoryContext as dr, k as ur } from "./useLocalStorage.
|
|
2
|
+
import { O as Be, s as Ve, S as De, f$1 as ze, M as $e, U as Ue, r as Fe, o as Pe, n as fe, l as Ge, a as q, isLastMessageFromRole as he, x as xe, CANCEL as je, CLEAR as We, ACTION_RESET as be, ROLE_ASSISTANT as M, ROLE_INTERNAL as Z, ROLE_USER as K, zr as ee, ROLE_SYSTEM as Ye, ROLE_HIDDEN as qe, MODEL_GPT4 as ke, STATS_SEPARATOR as le, ACTION_MODEL as Ce, ACTION_MESSAGE as V, TYPE_QUESTION as Je, SEND as Qe, ACTION_STREAMING as Te, 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 B, getCurrentGeoLocation as or, c as sr, AppFooter as ar, LOCAL_STORAGE_PREFIX as J, LOCAL_STORAGE_SEARCH as nr, LOCAL_STORAGE_SORT as lr, LOCAL_STORAGE_LOCATION as cr } from "./index.CtUMDxv6.js";
|
|
3
|
+
import { g as ve, AppContext as P, restCall as ir, E as Q, serviceCall as ce, SERVICE_TYPES as ie, HistoryContext as dr, k as ur } from "./useLocalStorage.CVbyWXz0.js";
|
|
4
4
|
import pr, { useState as I, useEffect as S, useRef as x, useLayoutEffect as $, useContext as re, lazy as mr, Suspense as de, useReducer as ue, useCallback as gr } from "react";
|
|
5
5
|
import g from "clsx";
|
|
6
6
|
const yr = ({
|
|
@@ -475,7 +475,7 @@ const Br = () => {
|
|
|
475
475
|
children: r != null && r.streaming ? je : We
|
|
476
476
|
}
|
|
477
477
|
) }) : null;
|
|
478
|
-
}, me = mr(() => import("./LazyMessageAssistant.
|
|
478
|
+
}, me = mr(() => import("./LazyMessageAssistant.Bc8vj23L.js").then((e) => e.LazyMessageAssistant)), Vr = () => {
|
|
479
479
|
const { state: e } = re(P);
|
|
480
480
|
return /* @__PURE__ */ E(ye, { 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 e, Fragment as x } from "react/jsx-runtime";
|
|
2
|
-
import { O as _, i$1 as le, N as de, p as De, o as _e, g as A, N$1 as z, CARDS as N, renderDataAsList as $, pluralize as Z, 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, zr as Y, STATS as Ne, b as F, j as E, x as ee, LOCAL_STORAGE_PREFIX as te, 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, f$2 as et, ACTION_LOCATION as me, getCurrentGeoLocation as tt, convertLatitudeToDMS as at, convertLongitudeToDMS as st, PROFILE_TITLE as nt, LOG_OUT as ue } from "./index.
|
|
2
|
+
import { O as _, i$1 as le, N as de, p as De, o as _e, g as A, N$1 as z, CARDS as N, renderDataAsList as $, pluralize as Z, 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, zr as Y, STATS as Ne, b as F, j as E, x as ee, LOCAL_STORAGE_PREFIX as te, 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, f$2 as et, ACTION_LOCATION as me, getCurrentGeoLocation as tt, convertLatitudeToDMS as at, convertLongitudeToDMS as st, PROFILE_TITLE as nt, LOG_OUT as ue } from "./index.CtUMDxv6.js";
|
|
3
3
|
import * as ce from "react";
|
|
4
4
|
import rt, { forwardRef as Te, useState as T, useRef as U, useContext as R, useEffect as O, Suspense as ot, lazy as ct, useId as it } from "react";
|
|
5
|
-
import { g as lt, AppContext as K, serviceCall as se, SERVICE_TYPES as ne, HistoryContext as ye, E as ae, k as I, et as dt, at as mt, lt as oe, J as M, ct as ut, st as ht, rt as pt } from "./useLocalStorage.
|
|
5
|
+
import { g as lt, AppContext as K, serviceCall as se, SERVICE_TYPES as ne, HistoryContext as ye, E as ae, k as I, et as dt, at as mt, lt as oe, J as M, ct as ut, st as ht, rt as pt } from "./useLocalStorage.CVbyWXz0.js";
|
|
6
6
|
import v from "clsx";
|
|
7
7
|
import { useFloatingTree as be, useFloatingNodeId as ft, useListItem as Se, useFloating as gt, offset as Ct, flip as Nt, shift as Tt, autoUpdate as yt, useClick as bt, useRole as St, useDismiss as wt, useListNavigation as kt, useTypeahead as xt, useInteractions as Et, useMergeRefs as we, FloatingNode as vt, FloatingList as It, FloatingPortal as At, FloatingFocusManager as Ht, FloatingTree as Mt } from "@floating-ui/react";
|
|
8
8
|
const ie = ce.createContext({
|
|
@@ -197,7 +197,7 @@ const Rt = ({ className: t, ...a }) => {
|
|
|
197
197
|
header: "p-4 mb-0",
|
|
198
198
|
close: "p-4"
|
|
199
199
|
}), W = (t) => ct(
|
|
200
|
-
() => import("./index.
|
|
200
|
+
() => import("./index.7JJYsiGN.Cue7FeX9.js").then((a) => ({
|
|
201
201
|
default: a[t]
|
|
202
202
|
}))
|
|
203
203
|
), Dt = W("Modal"), _t = W("ModalClose"), zt = W("ModalContent"), Bt = W("ModalDescription"), Vt = W("ModalHeading"), X = ({
|
|
@@ -602,8 +602,8 @@ const sa = ({ stats: t }) => {
|
|
|
602
602
|
header: N.ABOUT.TITLE_CLIENT,
|
|
603
603
|
className: "prose-dark dark:prose-lighter",
|
|
604
604
|
children: $(r, {
|
|
605
|
-
[N.ABOUT.VERSION]: "4.0.
|
|
606
|
-
[N.ABOUT.BUILD_TIMESTAMP]: "08/
|
|
605
|
+
[N.ABOUT.VERSION]: "4.0.1",
|
|
606
|
+
[N.ABOUT.BUILD_TIMESTAMP]: "08/25/2024 03:36 PM EDT"
|
|
607
607
|
})
|
|
608
608
|
}
|
|
609
609
|
) }),
|
|
@@ -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.Bc8vj23L.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.CtUMDxv6.js";
|
|
3
|
+
import { AppContext as Ei, E as Ai } from "./useLocalStorage.CVbyWXz0.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.8nM0tteo.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.Vko9ZhUE.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 y 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 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.CtUMDxv6.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 = y(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 = k({
|
|
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), A = U([h, v, N]);
|
|
137
137
|
return c.useMemo(
|
|
138
138
|
() => ({
|
|
139
139
|
open: u,
|
|
140
140
|
setOpen: d,
|
|
141
|
-
...
|
|
141
|
+
...A,
|
|
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, A, 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 = y("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(P, { 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 = y(
|
|
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.8
|
|
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: "08/
|
|
238
|
+
version: "1.4.8",
|
|
239
|
+
buildTime: "08/25/2024 02:12 PM EDT",
|
|
240
240
|
homepage: "https://github.com/aversini/ui-components",
|
|
241
241
|
license: "MIT"
|
|
242
242
|
});
|