@versini/sassysaint 8.99.0 → 8.99.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.
Files changed (26) hide show
  1. package/dist/chunks/{AboutChangelog.Lsbr0lUh.js → AboutChangelog.u1NxfRZ6.js} +3 -3
  2. package/dist/chunks/{AboutEntry.C-uC4MBB.js → AboutEntry.2URxdMvt.js} +5 -5
  3. package/dist/chunks/{App.lHXZIn8I.js → App.9OTgQFE5.js} +1737 -1715
  4. package/dist/chunks/{Chart.ClOH2fiY.js → Chart.CTX3yXAp.js} +2 -2
  5. package/dist/chunks/{ChatBubbleAssistant.BV6sVx6a.js → ChatBubbleAssistant.DHiBvqvV.js} +793 -753
  6. package/dist/chunks/{ChatBubbleUser.Dij7uJwm.js → ChatBubbleUser.BdygOc-M.js} +36 -36
  7. package/dist/chunks/{ChatHistoryTable.BFfmfdjX.js → ChatHistoryTable.XuPzHnDG.js} +38 -38
  8. package/dist/chunks/{HistoryEntry.BkOQP3CV.js → HistoryEntry.CVgA3SYH.js} +16 -16
  9. package/dist/chunks/{ProfileEntry.DuvmIHnj.js → ProfileEntry.wwU14Mrk.js} +2 -2
  10. package/dist/chunks/{SettingsEntry.Cu-T81W1.js → SettingsEntry.CFneilrk.js} +16 -16
  11. package/dist/chunks/{UsageEntry.XYX0KDAl.js → UsageEntry.CgMVSr_T.js} +23 -23
  12. package/dist/chunks/{UserMemoriesPanel.Cm0Gz7iM.js → UserMemoriesPanel.D9cKoAvT.js} +8 -8
  13. package/dist/chunks/{index.5-5jxYfs.js → index.BNtgmlzo.js} +358 -358
  14. package/dist/chunks/{index.B5oy8JDL.js → index.BgQcUSpD.js} +1 -1
  15. package/dist/chunks/{index.BTGZYTuA.js → index.CI7wfY6h.js} +2 -2
  16. package/dist/chunks/{index.CfH88Vnf.js → index.CSpbJbbj.js} +1 -1
  17. package/dist/chunks/{index.CDxR_BoA.js → index.CbyVRgN9.js} +29 -29
  18. package/dist/chunks/{index.B-J4ZnaE.js → index.CqZKR4eS.js} +18 -18
  19. package/dist/chunks/{index.D5nCT2P4.js → index.DXbW0hgE.js} +1 -1
  20. package/dist/chunks/{index.ttYr-nJ-.js → index.Dy3lHiSY.js} +18 -18
  21. package/dist/chunks/{index.DvsI9f9_.js → index.IgpP31Km.js} +3 -3
  22. package/dist/chunks/{useMarkdown.Df5zZY4U.js → useMarkdown.CnnQWkcw.js} +146 -140
  23. package/dist/components/SassySaint/SassySaint.js +1 -1
  24. package/dist/index.js +4 -4
  25. package/dist/style.css +2 -2
  26. package/package.json +6 -6
@@ -1,7 +1,7 @@
1
1
  import { jsxs as T, jsx as t } from "react/jsx-runtime";
2
- import { n as X, useUniqueId as Z, useUserChatStats as J, useLocalStorage as M, LOCAL_STORAGE_PREFIX as N, LOCAL_STORAGE_USAGE_VIEW_MODE as Q, LOCAL_STORAGE_USAGE_TIME_RANGE as $, TIME_RANGES as e, LOCAL_STORAGE_USAGE_SELECTED_MONTH as ee, useChatsUsage as te, USAGE_TITLE as ne, Card as Y, CARDS as d, L as h, j as c, TIME_RANGE_LABELS as k, MONTHS as g, ButtonIcon as E, IconChart as re, IconSelected as H, IconUnSelected as P, IconPrevious as le, IconNext as se, renderDataAsList as ae, pluralize as D } from "./index.5-5jxYfs.js";
3
- import { Panel as ie, Menu as b, MenuGroupLabel as oe, MenuItem as x, CancelButton as ce } from "./App.lHXZIn8I.js";
4
- import { useState as G, Suspense as Te, lazy as de } from "react";
2
+ import { n as X, useUniqueId as Z, useUserChatStats as J, useLocalStorage as M, LOCAL_STORAGE_PREFIX as N, LOCAL_STORAGE_USAGE_VIEW_MODE as Q, LOCAL_STORAGE_USAGE_TIME_RANGE as $, TIME_RANGES as e, LOCAL_STORAGE_USAGE_SELECTED_MONTH as ee, useChatsUsage as te, USAGE_TITLE as ne, Card as p, CARDS as d, L as h, j as c, TIME_RANGE_LABELS as k, MONTHS as g, ButtonIcon as E, IconChart as re, IconSelected as H, IconUnSelected as P, IconPrevious as le, IconNext as se, renderDataAsList as ae, pluralize as D } from "./index.BNtgmlzo.js";
3
+ import { Panel as ie, Menu as b, MenuGroupLabel as oe, MenuItem as G, CancelButton as ce } from "./App.9OTgQFE5.js";
4
+ import { useState as U, Suspense as Te, lazy as de } from "react";
5
5
  const a = [0, 3, 6, 9], s = {
6
6
  TOKEN: "token",
7
7
  MODEL: "model"
@@ -14,16 +14,16 @@ const a = [0, 3, 6, 9], s = {
14
14
  ], ue = de(
15
15
  () => import(
16
16
  /* webpackChunkName: "chart-highcharts" */
17
- "./Chart.ClOH2fiY.js"
17
+ "./Chart.CTX3yXAp.js"
18
18
  )
19
19
  ), Oe = ({
20
- open: U,
20
+ open: v,
21
21
  onOpenChange: R
22
22
  }) => {
23
- const { getAccessToken: L, user: p } = X(), v = Z(), { data: i, isSuccess: F } = J({
24
- user: p?.username,
23
+ const { getAccessToken: L, user: f } = X(), x = Z(), { data: i, isSuccess: F } = J({
24
+ user: f?.username,
25
25
  getAccessToken: L
26
- }), f = Math.floor((/* @__PURE__ */ new Date()).getMonth() / 3) * 3, [O, m] = G(f), [o, z] = M({
26
+ }), z = Math.floor((/* @__PURE__ */ new Date()).getMonth() / 3) * 3, [O, m] = U(z), [o, Y] = M({
27
27
  key: N + Q,
28
28
  initialValue: s.MODEL
29
29
  }), [n, u] = M({
@@ -32,10 +32,10 @@ const a = [0, 3, 6, 9], s = {
32
32
  }), [l, S] = M({
33
33
  key: N + ee,
34
34
  initialValue: null
35
- }), [B, V] = G(
35
+ }), [B, V] = U(
36
36
  (/* @__PURE__ */ new Date()).getFullYear()
37
37
  ), { data: I, isSuccess: y } = te({
38
- user: p?.username,
38
+ user: f?.username,
39
39
  getAccessToken: L,
40
40
  timeRange: n,
41
41
  month: n === e.SPECIFIC_MONTH && l !== null ? String(l) : void 0,
@@ -74,14 +74,14 @@ const a = [0, 3, 6, 9], s = {
74
74
  const C = (a.indexOf(O) - 1 + a.length) % a.length;
75
75
  m(a[C]);
76
76
  }, w = (r) => {
77
- u(r), r !== e.SPECIFIC_MONTH && S(null), (r === e.CURRENT_YEAR || r === e.LAST_YEAR) && m(f);
77
+ u(r), r !== e.SPECIFIC_MONTH && S(null), (r === e.CURRENT_YEAR || r === e.LAST_YEAR) && m(z);
78
78
  }, W = (r) => {
79
79
  S(r), V((/* @__PURE__ */ new Date()).getFullYear()), u(e.SPECIFIC_MONTH);
80
80
  }, q = () => n === e.SPECIFIC_MONTH && l !== null ? g[l] : k[n];
81
81
  return /* @__PURE__ */ T(
82
82
  ie,
83
83
  {
84
- open: U,
84
+ open: v,
85
85
  onOpenChange: R,
86
86
  title: ne,
87
87
  animation: !0,
@@ -98,10 +98,10 @@ const a = [0, 3, 6, 9], s = {
98
98
  ),
99
99
  children: [
100
100
  /* @__PURE__ */ t(
101
- Y,
101
+ p,
102
102
  {
103
103
  header: d.MAIN_STATISTICS.USAGE,
104
- className: "prose-dark dark:prose-lighter mb-4 min-h-[578px]",
104
+ className: "prose-dark dark:prose-lighter mb-4 min-h-144",
105
105
  noBorder: !0,
106
106
  children: y && I ? /* @__PURE__ */ T(Te, { fallback: /* @__PURE__ */ t("div", {}), children: [
107
107
  /* @__PURE__ */ t(h, { className: "mb-2", alignHorizontal: "center", children: /* @__PURE__ */ t(c, { children: /* @__PURE__ */ T(
@@ -123,7 +123,7 @@ const a = [0, 3, 6, 9], s = {
123
123
  children: [
124
124
  /* @__PURE__ */ t(oe, { children: "Date Range" }),
125
125
  Ee.map((r) => /* @__PURE__ */ t(
126
- x,
126
+ G,
127
127
  {
128
128
  label: k[r],
129
129
  selected: n === r,
@@ -132,7 +132,7 @@ const a = [0, 3, 6, 9], s = {
132
132
  r
133
133
  )),
134
134
  /* @__PURE__ */ t(b, { label: "Month", children: g.map((r, A) => /* @__PURE__ */ t(
135
- x,
135
+ G,
136
136
  {
137
137
  label: r,
138
138
  selected: n === e.SPECIFIC_MONTH && l === A,
@@ -147,22 +147,22 @@ const a = [0, 3, 6, 9], s = {
147
147
  /* @__PURE__ */ t(c, { children: /* @__PURE__ */ t(
148
148
  E,
149
149
  {
150
- onClick: () => z(s.MODEL),
150
+ onClick: () => Y(s.MODEL),
151
151
  labelRight: "Model Usage",
152
152
  noBorder: !0,
153
153
  size: "small",
154
- mode: o === s.MODEL ? "light" : "dark",
154
+ mode: o === s.MODEL ? "dark" : "light",
155
155
  children: o === s.MODEL ? /* @__PURE__ */ t(H, { size: "size-4" }) : /* @__PURE__ */ t(P, { size: "size-4" })
156
156
  }
157
157
  ) }),
158
158
  /* @__PURE__ */ t(c, { children: /* @__PURE__ */ t(
159
159
  E,
160
160
  {
161
- onClick: () => z(s.TOKEN),
161
+ onClick: () => Y(s.TOKEN),
162
162
  labelRight: "Token Usage",
163
163
  noBorder: !0,
164
164
  size: "small",
165
- mode: o === s.TOKEN ? "light" : "dark",
165
+ mode: o === s.TOKEN ? "dark" : "light",
166
166
  children: o === s.TOKEN ? /* @__PURE__ */ t(H, { size: "size-4" }) : /* @__PURE__ */ t(P, { size: "size-4" })
167
167
  }
168
168
  ) })
@@ -204,13 +204,13 @@ const a = [0, 3, 6, 9], s = {
204
204
  }
205
205
  ),
206
206
  /* @__PURE__ */ t(
207
- Y,
207
+ p,
208
208
  {
209
209
  header: d.MAIN_STATISTICS.TITLE,
210
- className: "prose-dark dark:prose-lighter min-h-[170px]",
210
+ className: "prose-dark dark:prose-lighter min-h-42",
211
211
  noBorder: !0,
212
212
  children: F ? ae(
213
- v,
213
+ x,
214
214
  {
215
215
  [D(d.MAIN_STATISTICS.TOTAL, i.totalChats)]: i.totalChats,
216
216
  [D(
@@ -1,10 +1,10 @@
1
1
  import { jsx as e, jsxs as r, Fragment as I } from "react/jsx-runtime";
2
- import { L as E, j as f, Button as P, n as Se, useLocalStorage as W, LOCAL_STORAGE_PREFIX as Z, LOCAL_STORAGE_SORT_MEMORY_DIRECTION as Te, e$1 as l, LOCAL_STORAGE_SORT_MEMORY_COLUMN as ke, useUserMemories as ve, useExpiredMemories as De, useDeleteMemory as be, useDeleteAllActiveMemories as Ee, useDeleteAllExpiredMemories as Me, useUpdateMemory as Re, useRestoreMemory as Ie, ButtonIcon as L, IconEdit as Le, IconDelete as ee, IconRestore as Oe } from "./index.5-5jxYfs.js";
3
- import { Panel as se, Toggle as O, CancelButton as ae, ConfirmationPanel as te, ResponsiveTooltip as _ } from "./App.lHXZIn8I.js";
4
- import { j as re, D as ie, F as D, L as s, Y as z, G as ne, H as oe } from "./index.CDxR_BoA.js";
2
+ import { L as E, j as f, Button as P, n as Se, useLocalStorage as W, LOCAL_STORAGE_PREFIX as Z, LOCAL_STORAGE_SORT_MEMORY_DIRECTION as Te, e$1 as l, LOCAL_STORAGE_SORT_MEMORY_COLUMN as ke, useUserMemories as ve, useExpiredMemories as De, useDeleteMemory as be, useDeleteAllActiveMemories as Ee, useDeleteAllExpiredMemories as Me, useUpdateMemory as Re, useRestoreMemory as Ie, ButtonIcon as L, IconEdit as Le, IconDelete as ee, IconRestore as Oe } from "./index.BNtgmlzo.js";
3
+ import { Panel as se, Toggle as O, CancelButton as ae, ConfirmationPanel as te, ResponsiveTooltip as _ } from "./App.9OTgQFE5.js";
4
+ import { j as re, D as ie, F as D, L as s, Y as z, G as ne, H as oe } from "./index.CbyVRgN9.js";
5
5
  import A from "clsx";
6
6
  import { useState as y, useEffect as _e, useRef as le } from "react";
7
- import { TextArea as ze } from "./index.ttYr-nJ-.js";
7
+ import { TextArea as ze } from "./index.Dy3lHiSY.js";
8
8
  const Pe = ({
9
9
  open: C,
10
10
  onOpenChange: b,
@@ -336,7 +336,7 @@ const Pe = ({
336
336
  P,
337
337
  {
338
338
  focusMode: "light",
339
- mode: m === "active" ? "dark" : "light",
339
+ mode: m === "active" ? "light" : "dark",
340
340
  size: "small",
341
341
  noBorder: !0,
342
342
  onClick: () => p("active"),
@@ -347,7 +347,7 @@ const Pe = ({
347
347
  P,
348
348
  {
349
349
  focusMode: "light",
350
- mode: m === "expired" ? "dark" : "light",
350
+ mode: m === "expired" ? "light" : "dark",
351
351
  size: "small",
352
352
  noBorder: !0,
353
353
  onClick: () => p("expired"),
@@ -434,7 +434,7 @@ const Pe = ({
434
434
  {
435
435
  className: A(
436
436
  "dark:text-white",
437
- "max-w-[100px] sm:max-w-[400px]",
437
+ "max-w-25 sm:max-w-100",
438
438
  "text-xs sm:text-sm"
439
439
  ),
440
440
  style: {
@@ -605,7 +605,7 @@ const Pe = ({
605
605
  {
606
606
  className: A(
607
607
  "dark:text-white",
608
- "max-w-[100px] sm:max-w-[400px]",
608
+ "max-w-25 sm:max-w-100",
609
609
  "text-xs sm:text-sm"
610
610
  ),
611
611
  style: {