@versini/sassysaint 8.112.0 → 8.113.1

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 (87) hide show
  1. package/dist/chunks/{AboutChangelog.Dayt987X.js → AboutChangelog.DARG59db.js} +2 -2
  2. package/dist/chunks/AboutEntry.b7SX6WL6.js +77 -0
  3. package/dist/chunks/{App.1qxTcHhE.js → App.xmJgJehw.js} +1734 -1742
  4. package/dist/chunks/{Bubble.Bw-2eGqM.js → Bubble.Cz0qyoPO.js} +1 -1
  5. package/dist/chunks/{ButtonIconDelete.DZW_2G6c.js → ButtonIconDelete.B3ULIUO-.js} +2 -2
  6. package/dist/chunks/{Chart.Cx6km9TU.js → Chart.C0iTXNld.js} +2 -2
  7. package/dist/chunks/{ChatBubbleAssistant.BNu2Y1zq.js → ChatBubbleAssistant.Oxeqz6_p.js} +4 -4
  8. package/dist/chunks/{ChatBubbleUser.pPCI3WL0.js → ChatBubbleUser.XmPerorZ.js} +3 -3
  9. package/dist/chunks/ChatHistoryTable.CPSt_wL_.js +292 -0
  10. package/dist/chunks/{HistoryEntry.C3bboYln.js → HistoryEntry.CkyoLRa6.js} +6 -6
  11. package/dist/chunks/{LoginEntry.Bn-GsVAB.js → LoginEntry.OXFkZEz4.js} +4 -4
  12. package/dist/chunks/{LogoEntry.DReNqiYv.js → LogoEntry.CwNXwlBx.js} +335 -338
  13. package/dist/chunks/{MemoriesEntry.CAg5AW5F.js → MemoriesEntry.RiZXtAAL.js} +5 -5
  14. package/dist/chunks/{ProfileEntry.COWhUBbO.js → ProfileEntry.CrZ2q4i9.js} +4 -4
  15. package/dist/chunks/SettingsEntry.M3K9Udw1.js +456 -0
  16. package/dist/chunks/{UsageEntry.CnnazYSh.js → UsageEntry.CN_Db9Wa.js} +5 -5
  17. package/dist/chunks/{_baseUniq.CNUFz9Ie.js → _baseUniq.f4f4GDt9.js} +1 -1
  18. package/dist/chunks/{arc.Bxl15E2D.js → arc.i1gTqq5f.js} +1 -1
  19. package/dist/chunks/{architecture-U656AL7Q.DzlHQE5F.js → architecture-U656AL7Q.BlAWNnCU.js} +1 -1
  20. package/dist/chunks/{architectureDiagram-VXUJARFQ.DQBLcSlJ.js → architectureDiagram-VXUJARFQ.CNiv_XUQ.js} +4 -4
  21. package/dist/chunks/{blockDiagram-VD42YOAC.BSHnyqv8.js → blockDiagram-VD42YOAC.DHyMgxSX.js} +5 -5
  22. package/dist/chunks/{browser.ykQdyxYi.js → browser.DwvEsO0M.js} +1 -1
  23. package/dist/chunks/{c4Diagram-YG6GDRKO.Zzum1FZK.js → c4Diagram-YG6GDRKO.5rV4UgiI.js} +2 -2
  24. package/dist/chunks/{channel._2RWo0R_.js → channel.Cbuusniv.js} +1 -1
  25. package/dist/chunks/{chunk-4BX2VUAB.C-pLiL50.js → chunk-4BX2VUAB.Cr4aulve.js} +1 -1
  26. package/dist/chunks/{chunk-55IACEB6.fMp9ubf_.js → chunk-55IACEB6.BSNVvGBN.js} +1 -1
  27. package/dist/chunks/{chunk-B4BG7PRW.BNmIeVTV.js → chunk-B4BG7PRW.f8-M_ha3.js} +4 -4
  28. package/dist/chunks/{chunk-DI55MBZ5.uDz3flQ8.js → chunk-DI55MBZ5.DHI14tPg.js} +3 -3
  29. package/dist/chunks/{chunk-FMBD7UC4.Diy7mBue.js → chunk-FMBD7UC4.iTWjW72u.js} +1 -1
  30. package/dist/chunks/{chunk-QN33PNHL.ryixtm2U.js → chunk-QN33PNHL.D4-2NXjF.js} +1 -1
  31. package/dist/chunks/{chunk-QZHKN3VN.C7w_fpJx.js → chunk-QZHKN3VN.CYmGB8Sb.js} +1 -1
  32. package/dist/chunks/{chunk-TZMSLE5B.BofTElRx.js → chunk-TZMSLE5B.DzMaXodZ.js} +1 -1
  33. package/dist/chunks/{classDiagram-2ON5EDUG.Bcl4iHVO.js → classDiagram-2ON5EDUG.BKKdpvXL.js} +2 -2
  34. package/dist/chunks/{classDiagram-v2-WZHVMYZB.Bcl4iHVO.js → classDiagram-v2-WZHVMYZB.BKKdpvXL.js} +2 -2
  35. package/dist/chunks/{clone.CXzi7x3n.js → clone.CvyZhqBo.js} +1 -1
  36. package/dist/chunks/{cose-bilkent-S5V4N54A.DAjW96yL.js → cose-bilkent-S5V4N54A.DkcPIpNo.js} +2 -2
  37. package/dist/chunks/{dagre-6UL2VRFP.CRpUm0Nd.js → dagre-6UL2VRFP.CYWrglcj.js} +5 -5
  38. package/dist/chunks/{diagram-PSM6KHXK.D8PLOyb_.js → diagram-PSM6KHXK.ammyY8fs.js} +4 -4
  39. package/dist/chunks/{diagram-QEK2KX5R.DwNvsJ_b.js → diagram-QEK2KX5R.nxakvoUi.js} +3 -3
  40. package/dist/chunks/{diagram-S2PKOQOG.DyCzcwzE.js → diagram-S2PKOQOG.oTHGFvqq.js} +3 -3
  41. package/dist/chunks/{erDiagram-Q2GNP2WA.BlUI5_4z.js → erDiagram-Q2GNP2WA.CLXRUHsa.js} +4 -4
  42. package/dist/chunks/{flowDiagram-NV44I4VS.Bfreb6t8.js → flowDiagram-NV44I4VS.Cy7wO5FH.js} +5 -5
  43. package/dist/chunks/{ganttDiagram-JELNMOA3.ib1rXCQk.js → ganttDiagram-JELNMOA3.Cl8zcb3j.js} +2 -2
  44. package/dist/chunks/{gitGraph-F6HP7TQM.CxufJdwn.js → gitGraph-F6HP7TQM.hNW58gvI.js} +1 -1
  45. package/dist/chunks/{gitGraphDiagram-NY62KEGX.BZt4MXEW.js → gitGraphDiagram-NY62KEGX.CZSlTMsq.js} +4 -4
  46. package/dist/chunks/{graph.hvB27c9D.js → graph.Caz35JH7.js} +2 -2
  47. package/dist/chunks/{index.TLbAcxWR.js → index.1cAC-xa5.js} +1 -1
  48. package/dist/chunks/{index.92htXG5J.js → index.BviDehsy.js} +1 -1
  49. package/dist/chunks/{index.BB4J2Qi1.js → index.CQi6BBgd.js} +1 -1
  50. package/dist/chunks/{index.BXReSy4c.js → index.CqmFtr8m.js} +1762 -1918
  51. package/dist/chunks/{index.BVCLFEiI.js → index.CvxA-kV5.js} +1 -1
  52. package/dist/chunks/{index.DS1kY_8b.js → index.DN476kOD.js} +1 -1
  53. package/dist/chunks/{index.IpQNrFt6.js → index.Db2hh2RQ.js} +1 -1
  54. package/dist/chunks/{index.CmdM8OhV.js → index.DjSNYDyW.js} +3 -3
  55. package/dist/chunks/{index.Hd2XXux1.js → index.HA4LNOyl.js} +3 -3
  56. package/dist/chunks/{index.790ujKXR.js → index.ri2Dr1rJ.js} +1 -1
  57. package/dist/chunks/{info-NVLQJR56.B1fpEaU0.js → info-NVLQJR56.Dc95hvAr.js} +1 -1
  58. package/dist/chunks/{infoDiagram-WHAUD3N6.Bq2JnNoD.js → infoDiagram-WHAUD3N6.DkzXHXgE.js} +2 -2
  59. package/dist/chunks/{journeyDiagram-XKPGCS4Q.iqGtFhp_.js → journeyDiagram-XKPGCS4Q.Dm4nCIWT.js} +4 -4
  60. package/dist/chunks/{kanban-definition-3W4ZIXB7.JMlNoVIk.js → kanban-definition-3W4ZIXB7.Bw_g7kdo.js} +2 -2
  61. package/dist/chunks/{layout.CP2AqVdG.js → layout.B2-214jN.js} +4 -4
  62. package/dist/chunks/{mermaid-parser.core.Bi2yoxZq.js → mermaid-parser.core.CXlYMeXK.js} +10 -10
  63. package/dist/chunks/{min.C11Gc2EF.js → min.BgoLZ81l.js} +2 -2
  64. package/dist/chunks/{mindmap-definition-VGOIOE7T.Cd1AilWi.js → mindmap-definition-VGOIOE7T.CsFsq1Li.js} +4 -4
  65. package/dist/chunks/{packet-BFZMPI3H.fS8hEXjX.js → packet-BFZMPI3H.CDcu8fNx.js} +1 -1
  66. package/dist/chunks/{pie-7BOR55EZ.Ds7KQGmJ.js → pie-7BOR55EZ.ByUouGiC.js} +1 -1
  67. package/dist/chunks/{pieDiagram-ADFJNKIX.C1aHiwho.js → pieDiagram-ADFJNKIX.D8CkHMPE.js} +4 -4
  68. package/dist/chunks/{quadrantDiagram-AYHSOK5B.1yLMviWL.js → quadrantDiagram-AYHSOK5B.yAWIyAoJ.js} +1 -1
  69. package/dist/chunks/{radar-NHE76QYJ.B9AoWAwO.js → radar-NHE76QYJ.Bd9UodJQ.js} +1 -1
  70. package/dist/chunks/{rehype-mermaid.CTTnjcVn.js → rehype-mermaid.CkjpiQg3.js} +33 -33
  71. package/dist/chunks/{requirementDiagram-UZGBJVZJ.2S8yiwhm.js → requirementDiagram-UZGBJVZJ.D_fevfp7.js} +3 -3
  72. package/dist/chunks/{sankeyDiagram-TZEHDZUN.DpCJXyYB.js → sankeyDiagram-TZEHDZUN.BhEOFLc-.js} +1 -1
  73. package/dist/chunks/{sequenceDiagram-WL72ISMW.GhgH6avH.js → sequenceDiagram-WL72ISMW.BHLZnLLI.js} +3 -3
  74. package/dist/chunks/{stateDiagram-FKZM4ZOC.CcbwpENI.js → stateDiagram-FKZM4ZOC.CCaljhqc.js} +4 -4
  75. package/dist/chunks/{stateDiagram-v2-4FDKWEC3.BhJWHBo_.js → stateDiagram-v2-4FDKWEC3.BIe9xvkt.js} +2 -2
  76. package/dist/chunks/{timeline-definition-IT6M3QCI.eg5mNjCi.js → timeline-definition-IT6M3QCI.DaPI8uIU.js} +2 -2
  77. package/dist/chunks/{treemap-KMMF4GRG.Bn78avOP.js → treemap-KMMF4GRG.Dp5s54-J.js} +1 -1
  78. package/dist/chunks/{useMarkdown.js2o9U64.js → useMarkdown.DZ7gk7QY.js} +8 -8
  79. package/dist/chunks/{xychartDiagram-PRI3JC2R.DuYEc52x.js → xychartDiagram-PRI3JC2R.CuFnq5R8.js} +1 -1
  80. package/dist/components/SassySaint/SassySaint.js +1 -1
  81. package/dist/index.js +3 -3
  82. package/dist/style.css +1 -1
  83. package/package.json +3 -3
  84. package/dist/chunks/AboutEntry.C7nQnTaR.js +0 -81
  85. package/dist/chunks/ChatHistoryTable.DaVUivHo.js +0 -234
  86. package/dist/chunks/SettingsEntry.e4vl4zRK.js +0 -510
  87. package/dist/chunks/index.DR0-P5h3.js +0 -67
@@ -1,234 +0,0 @@
1
- import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
- import { y as h, v as x, INFINITE_SCROLL_THRESHOLD as D } from "./index.BXReSy4c.js";
3
- import { CARDS as P, ButtonIcon as M, IconRestore as B, IconStarInCircle as L, IconStarInCircleLight as _ } from "./LogoEntry.DReNqiYv.js";
4
- import { Pill as S } from "./index.DR0-P5h3.js";
5
- import { Table as $, TableHead as z, TableRow as m, TableBody as Y, TableCell as a, TableCellSort as b, ButtonIconDelete as K } from "./ButtonIconDelete.DZW_2G6c.js";
6
- import { pluralize as N, ResponsiveTooltip as g, numberFormatter as W, isProbablyMobile as G } from "./App.1qxTcHhE.js";
7
- import d from "clsx";
8
- import { Fragment as H } from "react";
9
- const s = {
10
- ROW: "row",
11
- TIMESTAMP: h,
12
- SUMMARY: "summary",
13
- TOKEN_USAGE: x,
14
- ACTIONS: "actions"
15
- }, F = [
16
- s.ROW,
17
- s.TIMESTAMP,
18
- s.SUMMARY,
19
- s.ACTIONS
20
- ], j = [
21
- s.ROW,
22
- s.SUMMARY,
23
- s.TIMESTAMP,
24
- s.TOKEN_USAGE,
25
- s.ACTIONS
26
- ], ae = ({
27
- filteredHistory: o,
28
- historyState: n,
29
- lastEntryToLoad: u,
30
- onClickSort: f,
31
- onClickRestore: w,
32
- onClickDelete: y,
33
- onClickFavorite: A,
34
- infinityScrollMarkerRef: O,
35
- isLoading: p = !1,
36
- totalHistoryCount: R,
37
- isFiltered: k = !1,
38
- isSearchActive: T = !1
39
- }) => {
40
- const C = G() ? F : j, v = (t) => {
41
- switch (t) {
42
- case s.ROW:
43
- return /* @__PURE__ */ e(a, { className: "sr-only", children: "Row" }, t);
44
- case s.TIMESTAMP:
45
- return T ? /* @__PURE__ */ e(a, { className: "text-xs sm:text-sm", children: "Date" }, t) : /* @__PURE__ */ e(
46
- b,
47
- {
48
- focusMode: "system",
49
- buttonClassName: "text-xs sm:text-sm",
50
- cellId: h,
51
- align: "left",
52
- sortDirection: n.sortDirection,
53
- sortedCell: n.sortedCell,
54
- onClick: () => {
55
- f(h);
56
- },
57
- children: "Date"
58
- },
59
- t
60
- );
61
- case s.SUMMARY:
62
- return /* @__PURE__ */ e(a, { className: "text-xs sm:text-sm", children: "Summary" }, t);
63
- case s.TOKEN_USAGE:
64
- return T ? /* @__PURE__ */ e(a, { className: "text-xs sm:text-sm text-right", children: "Tokens" }, t) : /* @__PURE__ */ e(
65
- b,
66
- {
67
- focusMode: "system",
68
- buttonClassName: "text-xs sm:text-sm",
69
- cellId: x,
70
- align: "right",
71
- sortDirection: n.sortDirection,
72
- sortedCell: n.sortedCell,
73
- onClick: () => {
74
- f(x);
75
- },
76
- children: "Tokens"
77
- },
78
- t
79
- );
80
- case s.ACTIONS:
81
- return /* @__PURE__ */ e(a, { className: "text-xs sm:text-sm text-right", children: "Actions" }, t);
82
- default:
83
- return null;
84
- }
85
- }, E = (t, r, c) => {
86
- switch (t) {
87
- case s.ROW:
88
- return /* @__PURE__ */ e(a, { children: c + 1 }, t);
89
- case s.TIMESTAMP:
90
- return /* @__PURE__ */ e(
91
- a,
92
- {
93
- className: d(
94
- "dark:text-copy-medium",
95
- "sm:whitespace-nowrap text-xs sm:text-sm max-w-20 sm:max-w-none"
96
- ),
97
- children: r.timestamp.split(",")[0]
98
- },
99
- t
100
- );
101
- case s.SUMMARY: {
102
- const i = r.similarityScore !== void 0 && r.similarityScore !== null ? Math.round(r.similarityScore * 100) : null, U = i !== null && i < 40 ? "warning" : "success", I = r.keywordMatch === !0;
103
- return /* @__PURE__ */ e(
104
- a,
105
- {
106
- className: d(
107
- "dark:text-white",
108
- "max-w-25 sm:max-w-full text-xs sm:text-sm"
109
- ),
110
- style: {
111
- wordBreak: "break-word"
112
- },
113
- children: /* @__PURE__ */ l("div", { className: "flex flex-col gap-1", children: [
114
- /* @__PURE__ */ l("div", { className: "flex flex-wrap gap-1", children: [
115
- i !== null && /* @__PURE__ */ e(
116
- S,
117
- {
118
- variant: U,
119
- label: `${i}% semantic`
120
- }
121
- ),
122
- I && /* @__PURE__ */ e(S, { variant: "information", label: "keyword" })
123
- ] }),
124
- /* @__PURE__ */ e("span", { children: r.summary })
125
- ] })
126
- },
127
- t
128
- );
129
- }
130
- case s.TOKEN_USAGE:
131
- return /* @__PURE__ */ e(
132
- a,
133
- {
134
- className: d("dark:text-copy-medium", "text-xs sm:text-sm"),
135
- align: "right",
136
- children: r.tokenUsage ? W.format(r.tokenUsage) : "0"
137
- },
138
- t
139
- );
140
- case s.ACTIONS:
141
- return /* @__PURE__ */ e(
142
- a,
143
- {
144
- className: "border-l border-table-light dark:border-table-dark",
145
- children: /* @__PURE__ */ l("div", { className: "flex flex-col items-end sm:flex-row gap-2", children: [
146
- /* @__PURE__ */ e(
147
- g,
148
- {
149
- label: "Restore chat",
150
- placement: "top",
151
- trigger: /* @__PURE__ */ e(
152
- M,
153
- {
154
- noBorder: !0,
155
- label: "Restore chat",
156
- variant: "primary",
157
- onClick: async () => {
158
- await w(r);
159
- },
160
- children: /* @__PURE__ */ e(
161
- B,
162
- {
163
- size: "size-3",
164
- monotone: !0,
165
- className: "text-copy-success dark:text-copy-success-light"
166
- }
167
- )
168
- }
169
- )
170
- }
171
- ),
172
- /* @__PURE__ */ e(
173
- g,
174
- {
175
- label: r.favoriteChat ? "Remove from favorites" : "Add to favorites",
176
- placement: "top",
177
- trigger: /* @__PURE__ */ e(
178
- M,
179
- {
180
- noBorder: !0,
181
- label: r.favoriteChat ? "Remove from favorites" : "Add to favorites",
182
- variant: "primary",
183
- onClick: async () => {
184
- await A(r);
185
- },
186
- children: r.favoriteChat ? /* @__PURE__ */ e(L, { size: "size-4", monotone: !0 }) : /* @__PURE__ */ e(_, { size: "size-4", monotone: !0 })
187
- }
188
- )
189
- }
190
- ),
191
- /* @__PURE__ */ e(
192
- K,
193
- {
194
- label: "Delete chat",
195
- disabled: !1,
196
- onClick: () => {
197
- y(r);
198
- }
199
- }
200
- )
201
- ] })
202
- },
203
- t
204
- );
205
- default:
206
- return null;
207
- }
208
- };
209
- return /* @__PURE__ */ l(
210
- $,
211
- {
212
- stickyHeader: !0,
213
- compact: !0,
214
- mode: "alt-system",
215
- caption: (() => {
216
- const t = o.length, r = R ?? t;
217
- return k && r > t ? `Showing ${N(`${t} chat`, t)} out of ${r}` : N(`${t} chat`, t);
218
- })(),
219
- disabled: p && o.length > 0,
220
- children: [
221
- /* @__PURE__ */ e(z, { children: /* @__PURE__ */ e(m, { children: C.map((t) => v(t)) }) }),
222
- /* @__PURE__ */ e(Y, { children: p && o.length === 0 ? /* @__PURE__ */ e(m, { children: /* @__PURE__ */ e(a, { colSpan: 1e3, children: /* @__PURE__ */ e("div", { children: "Loading..." }) }) }) : o.slice(0, u).map((t, r) => t?.summary ? /* @__PURE__ */ l(H, { children: [
223
- r === u - D && /* @__PURE__ */ e("tr", { ref: O }),
224
- /* @__PURE__ */ e(m, { children: C.map(
225
- (c) => E(c, t, r)
226
- ) })
227
- ] }, `${P.HISTORY.TITLE}-${t.id}-${r}`) : null) })
228
- ]
229
- }
230
- );
231
- };
232
- export {
233
- ae as ChatHistoryTable
234
- };