@versini/sassysaint 8.92.1 → 8.93.0
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/{AboutChangelog.CEwEjxvF.js → AboutChangelog.CCG0EsFp.js} +3 -3
- package/dist/chunks/{AboutEntry.1fGwrERN.js → AboutEntry.CmbMEk80.js} +5 -5
- package/dist/chunks/{App.Cm2apPwx.js → App.DHm-vAz3.js} +16 -16
- package/dist/chunks/{Chart.B84JZu77.js → Chart.D5b8rSw0.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.DyeqRnIF.js → ChatBubbleAssistant.CruRxSPg.js} +4 -4
- package/dist/chunks/{ChatBubbleUser.DX2rvIaW.js → ChatBubbleUser.CbgAouu5.js} +3 -3
- package/dist/chunks/{ChatHistoryTable.ejxkZTi2.js → ChatHistoryTable.BXm0Wfn8.js} +3 -3
- package/dist/chunks/{HistoryEntry.DaFs0LVe.js → HistoryEntry.CWQlIC46.js} +3 -3
- package/dist/chunks/{ProfileEntry.g3Jp0-U1.js → ProfileEntry.CJ2FlUm-.js} +2 -2
- package/dist/chunks/{SettingsEntry.DXZkJmEW.js → SettingsEntry.Z2ibN15M.js} +3 -3
- package/dist/chunks/UsageEntry.GAzLsiex.js +220 -0
- package/dist/chunks/{UserMemoriesPanel.DpOGPaps.js → UserMemoriesPanel.CDaqt9YY.js} +4 -4
- package/dist/chunks/{index.B2Qzjrfu.js → index.Bb7Osc7v.js} +377 -374
- package/dist/chunks/{index.DU_Zepjx.js → index.CiNSTJQK.js} +2 -2
- package/dist/chunks/{index.Br6AvnO6.js → index.CkE_mvVS.js} +1 -1
- package/dist/chunks/{index.wStVksjB.js → index.D2v902R5.js} +3 -3
- package/dist/chunks/{index.1AlbX9k9.js → index.DHtGE5Nb.js} +1 -1
- package/dist/chunks/{index.Ce9IPUQy.js → index.DKNoU6CC.js} +1 -1
- package/dist/chunks/{index.DQ7m3vcI.js → index.Dvfd_xy7.js} +1 -1
- package/dist/chunks/{index.Dh6vNP6y.js → index.DwUTIEER.js} +1 -1
- package/dist/chunks/{index.CwVn14LG.js → index.VZEWwcvk.js} +1 -1
- package/dist/chunks/{useMarkdown.Dva2njJw.js → useMarkdown.CFED0oEl.js} +286 -277
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
- package/dist/chunks/UsageEntry.BmUX2kr1.js +0 -212
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { SassySaint as r } from "./chunks/index.
|
|
1
|
+
import { SassySaint as r } from "./chunks/index.Bb7Osc7v.js";
|
|
2
2
|
/*!
|
|
3
|
-
@sassysaint/client v8.
|
|
3
|
+
@sassysaint/client v8.93.0
|
|
4
4
|
© 2025 gizmette.com
|
|
5
5
|
*/
|
|
6
6
|
try {
|
|
7
7
|
window.__VERSINI_SASSY_GLOBAL__ || (window.__VERSINI_SASSY_GLOBAL__ = {
|
|
8
|
-
version: "8.
|
|
9
|
-
buildTime: "11/
|
|
8
|
+
version: "8.93.0",
|
|
9
|
+
buildTime: "11/30/2025 05:27 AM EST",
|
|
10
10
|
license: "MIT"
|
|
11
11
|
});
|
|
12
12
|
} catch {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@versini/sassysaint",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.93.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Arno Versini",
|
|
6
6
|
"publishConfig": {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"react-dom": "^18.3.1 || ^19.0.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@sassysaint/client": "8.
|
|
36
|
+
"@sassysaint/client": "8.93.0",
|
|
37
37
|
"@tailwindcss/vite": "4.1.17",
|
|
38
38
|
"@versini/ui-styles": "6.1.2"
|
|
39
39
|
},
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"sideEffects": [
|
|
46
46
|
"**/*.css"
|
|
47
47
|
],
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "30adbe6369c512487613eb405c96ad92ae897914"
|
|
49
49
|
}
|
|
@@ -1,212 +0,0 @@
|
|
|
1
|
-
import { jsxs as c, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { n as j, useUniqueId as w, useUserChatStats as q, TIME_RANGES as r, useChatsUsage as W, USAGE_TITLE as Z, Card as D, CARDS as i, L as I, j as E, TIME_RANGE_LABELS as L, MONTHS as N, ButtonIcon as J, IconChart as Q, Button as d, renderDataAsList as X, pluralize as A } from "./index.B2Qzjrfu.js";
|
|
3
|
-
import { Panel as $, Menu as x, MenuGroupLabel as ee, MenuItem as v } from "./App.Cm2apPwx.js";
|
|
4
|
-
import { useState as u, Suspense as te, lazy as re } from "react";
|
|
5
|
-
const l = [0, 3, 6, 9], o = {
|
|
6
|
-
TOKEN: "token",
|
|
7
|
-
MODEL: "model"
|
|
8
|
-
}, ne = [
|
|
9
|
-
r.TODAY,
|
|
10
|
-
r.YESTERDAY,
|
|
11
|
-
r.CURRENT_YEAR,
|
|
12
|
-
r.LAST_YEAR
|
|
13
|
-
], se = re(
|
|
14
|
-
() => import(
|
|
15
|
-
/* webpackChunkName: "chart-highcharts" */
|
|
16
|
-
"./Chart.B84JZu77.js"
|
|
17
|
-
)
|
|
18
|
-
), ie = ({
|
|
19
|
-
open: P,
|
|
20
|
-
onOpenChange: M
|
|
21
|
-
}) => {
|
|
22
|
-
const { getAccessToken: _, user: p } = j(), U = w(), { data: a, isSuccess: Y } = q({
|
|
23
|
-
user: p?.username,
|
|
24
|
-
getAccessToken: _
|
|
25
|
-
}), O = Math.floor((/* @__PURE__ */ new Date()).getMonth() / 3) * 3, [S, C] = u(O), [m, R] = u(o.MODEL), [n, f] = u(
|
|
26
|
-
r.CURRENT_YEAR
|
|
27
|
-
), [s, k] = u(null), [b, H] = u(
|
|
28
|
-
(/* @__PURE__ */ new Date()).getFullYear()
|
|
29
|
-
), { data: T, isSuccess: z } = W({
|
|
30
|
-
user: p?.username,
|
|
31
|
-
getAccessToken: _,
|
|
32
|
-
timeRange: n,
|
|
33
|
-
month: n === r.SPECIFIC_MONTH && s !== null ? String(s) : void 0,
|
|
34
|
-
year: n === r.SPECIFIC_MONTH ? String(b) : void 0,
|
|
35
|
-
timezone: Intl.DateTimeFormat().resolvedOptions().timeZone
|
|
36
|
-
}), B = n === r.CURRENT_YEAR || n === r.LAST_YEAR, F = (t) => {
|
|
37
|
-
t.preventDefault();
|
|
38
|
-
const g = (l.indexOf(S) + 1) % l.length;
|
|
39
|
-
C(l[g]);
|
|
40
|
-
}, G = (t) => {
|
|
41
|
-
t.preventDefault();
|
|
42
|
-
const g = (l.indexOf(S) - 1 + l.length) % l.length;
|
|
43
|
-
C(l[g]);
|
|
44
|
-
}, y = (t) => {
|
|
45
|
-
f(t), t !== r.SPECIFIC_MONTH && k(null), (t === r.CURRENT_YEAR || t === r.LAST_YEAR) && C(O);
|
|
46
|
-
}, K = (t) => {
|
|
47
|
-
k(t), H((/* @__PURE__ */ new Date()).getFullYear()), f(r.SPECIFIC_MONTH);
|
|
48
|
-
}, V = () => n === r.SPECIFIC_MONTH && s !== null ? N[s] : L[n];
|
|
49
|
-
return /* @__PURE__ */ c(
|
|
50
|
-
$,
|
|
51
|
-
{
|
|
52
|
-
open: P,
|
|
53
|
-
onOpenChange: M,
|
|
54
|
-
title: Z,
|
|
55
|
-
animation: !0,
|
|
56
|
-
animationType: "fade",
|
|
57
|
-
blurEffect: "large",
|
|
58
|
-
footer: /* @__PURE__ */ e(
|
|
59
|
-
I,
|
|
60
|
-
{
|
|
61
|
-
columnGap: 2,
|
|
62
|
-
alignHorizontal: "flex-end",
|
|
63
|
-
className: "pb-8 sm:pb-0",
|
|
64
|
-
children: /* @__PURE__ */ e(E, { children: /* @__PURE__ */ e(
|
|
65
|
-
d,
|
|
66
|
-
{
|
|
67
|
-
mode: "dark",
|
|
68
|
-
variant: "secondary",
|
|
69
|
-
focusMode: "light",
|
|
70
|
-
noBorder: !0,
|
|
71
|
-
onClick: () => M(!1),
|
|
72
|
-
children: "Dismiss"
|
|
73
|
-
}
|
|
74
|
-
) })
|
|
75
|
-
}
|
|
76
|
-
),
|
|
77
|
-
children: [
|
|
78
|
-
/* @__PURE__ */ e(
|
|
79
|
-
D,
|
|
80
|
-
{
|
|
81
|
-
header: i.MAIN_STATISTICS.USAGE,
|
|
82
|
-
className: "prose-dark dark:prose-lighter mb-4 min-h-[555px]",
|
|
83
|
-
noBorder: !0,
|
|
84
|
-
children: z && T ? /* @__PURE__ */ c(te, { fallback: /* @__PURE__ */ e("div", {}), children: [
|
|
85
|
-
/* @__PURE__ */ e(I, { className: "mb-2", alignHorizontal: "center", children: /* @__PURE__ */ e(E, { children: /* @__PURE__ */ c(
|
|
86
|
-
x,
|
|
87
|
-
{
|
|
88
|
-
mode: "dark",
|
|
89
|
-
focusMode: "light",
|
|
90
|
-
trigger: /* @__PURE__ */ e(
|
|
91
|
-
J,
|
|
92
|
-
{
|
|
93
|
-
noBorder: !0,
|
|
94
|
-
variant: "selected",
|
|
95
|
-
size: "small",
|
|
96
|
-
labelRight: V(),
|
|
97
|
-
children: /* @__PURE__ */ e(Q, { className: "mr-1" })
|
|
98
|
-
}
|
|
99
|
-
),
|
|
100
|
-
defaultPlacement: "bottom-start",
|
|
101
|
-
children: [
|
|
102
|
-
/* @__PURE__ */ e(ee, { children: "Date Range" }),
|
|
103
|
-
ne.map((t) => /* @__PURE__ */ e(
|
|
104
|
-
v,
|
|
105
|
-
{
|
|
106
|
-
label: L[t],
|
|
107
|
-
selected: n === t,
|
|
108
|
-
onClick: () => y(t)
|
|
109
|
-
},
|
|
110
|
-
t
|
|
111
|
-
)),
|
|
112
|
-
/* @__PURE__ */ e(x, { label: "Month", children: N.map((t, h) => /* @__PURE__ */ e(
|
|
113
|
-
v,
|
|
114
|
-
{
|
|
115
|
-
label: t,
|
|
116
|
-
selected: n === r.SPECIFIC_MONTH && s === h,
|
|
117
|
-
onClick: () => K(h)
|
|
118
|
-
},
|
|
119
|
-
t
|
|
120
|
-
)) })
|
|
121
|
-
]
|
|
122
|
-
}
|
|
123
|
-
) }) }),
|
|
124
|
-
/* @__PURE__ */ e(I, { className: "mb-2", alignHorizontal: "center", columnGap: 2, children: /* @__PURE__ */ c(E, { children: [
|
|
125
|
-
/* @__PURE__ */ e(
|
|
126
|
-
d,
|
|
127
|
-
{
|
|
128
|
-
onClick: () => R(o.MODEL),
|
|
129
|
-
size: "small",
|
|
130
|
-
noBorder: !0,
|
|
131
|
-
mode: m === o.MODEL ? "dark" : "light",
|
|
132
|
-
className: "mr-2",
|
|
133
|
-
children: "Model Usage"
|
|
134
|
-
}
|
|
135
|
-
),
|
|
136
|
-
/* @__PURE__ */ e(
|
|
137
|
-
d,
|
|
138
|
-
{
|
|
139
|
-
onClick: () => R(o.TOKEN),
|
|
140
|
-
size: "small",
|
|
141
|
-
noBorder: !0,
|
|
142
|
-
mode: m === o.TOKEN ? "dark" : "light",
|
|
143
|
-
children: "Token Usage"
|
|
144
|
-
}
|
|
145
|
-
)
|
|
146
|
-
] }) }),
|
|
147
|
-
/* @__PURE__ */ e(
|
|
148
|
-
se,
|
|
149
|
-
{
|
|
150
|
-
tokenUsage: m === o.TOKEN ? T.tokenUsage?.series || [] : T.modelUsage?.series || [],
|
|
151
|
-
page: S,
|
|
152
|
-
viewMode: m,
|
|
153
|
-
timeRange: n,
|
|
154
|
-
categories: T.categories,
|
|
155
|
-
chartTitle: n === r.SPECIFIC_MONTH && s !== null ? N[s] : void 0
|
|
156
|
-
}
|
|
157
|
-
),
|
|
158
|
-
B && /* @__PURE__ */ e(I, { className: "mt-2", alignHorizontal: "center", children: /* @__PURE__ */ c(E, { children: [
|
|
159
|
-
/* @__PURE__ */ e(
|
|
160
|
-
d,
|
|
161
|
-
{
|
|
162
|
-
onClick: G,
|
|
163
|
-
className: "mr-2",
|
|
164
|
-
size: "small",
|
|
165
|
-
noBorder: !0,
|
|
166
|
-
children: "Previous"
|
|
167
|
-
}
|
|
168
|
-
),
|
|
169
|
-
/* @__PURE__ */ e(
|
|
170
|
-
d,
|
|
171
|
-
{
|
|
172
|
-
onClick: F,
|
|
173
|
-
className: "mr-2",
|
|
174
|
-
size: "small",
|
|
175
|
-
noBorder: !0,
|
|
176
|
-
children: "Next"
|
|
177
|
-
}
|
|
178
|
-
)
|
|
179
|
-
] }) })
|
|
180
|
-
] }) : null
|
|
181
|
-
}
|
|
182
|
-
),
|
|
183
|
-
/* @__PURE__ */ e(
|
|
184
|
-
D,
|
|
185
|
-
{
|
|
186
|
-
header: i.MAIN_STATISTICS.TITLE,
|
|
187
|
-
className: "prose-dark dark:prose-lighter min-h-[170px]",
|
|
188
|
-
noBorder: !0,
|
|
189
|
-
children: Y ? X(
|
|
190
|
-
U,
|
|
191
|
-
{
|
|
192
|
-
[A(i.MAIN_STATISTICS.TOTAL, a.totalChats)]: a.totalChats,
|
|
193
|
-
[A(
|
|
194
|
-
i.MAIN_STATISTICS.TOTAL_PRIVATE,
|
|
195
|
-
a.privateChats
|
|
196
|
-
)]: a.privateChats,
|
|
197
|
-
[A(
|
|
198
|
-
i.MAIN_STATISTICS.TOTAL_DELETED,
|
|
199
|
-
a.deletedChats
|
|
200
|
-
)]: a.deletedChats
|
|
201
|
-
},
|
|
202
|
-
!0
|
|
203
|
-
) : null
|
|
204
|
-
}
|
|
205
|
-
)
|
|
206
|
-
]
|
|
207
|
-
}
|
|
208
|
-
);
|
|
209
|
-
};
|
|
210
|
-
export {
|
|
211
|
-
ie as Usage
|
|
212
|
-
};
|