@versini/sassysaint 8.118.0 → 8.118.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/{AboutChangelog.NMMfTbp4.js → AboutChangelog.D-CvvmNj.js} +2 -2
- package/dist/chunks/{AboutEntry.8kXGiBKr.js → AboutEntry.DSwJ8c3X.js} +7 -7
- package/dist/chunks/{App.MBikKP52.js → App.CeXH-zPe.js} +44 -43
- package/dist/chunks/{BubbleActions.u9muFBXv.js → BubbleActions.D7oR9h2P.js} +3 -3
- package/dist/chunks/{ButtonIconDelete.UIDZwKOu.js → ButtonIconDelete.BMSba-RX.js} +92 -112
- package/dist/chunks/{Chart.IEDLbK1M.js → Chart.BcLSFk4S.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.Cn1keoow.js → ChatBubbleAssistant.B7aKj9Kz.js} +5 -5
- package/dist/chunks/{ChatBubbleUser.DUizsIIv.js → ChatBubbleUser.D1cm5gzP.js} +4 -4
- package/dist/chunks/{ChatHistoryTable.DIT1MlOO.js → ChatHistoryTable.BvYdhMqi.js} +93 -89
- package/dist/chunks/{HistoryEntry.sZ_AMeUu.js → HistoryEntry.B0QgepOk.js} +123 -136
- package/dist/chunks/{InlineFilter.1dVMRTxM.js → InlineFilter.1P5aQFGT.js} +3 -3
- package/dist/chunks/{LoginEntry.BnHprT7f.js → LoginEntry.-bnrLsVp.js} +4 -4
- package/dist/chunks/{LogoEntry.uN5foS5i.js → LogoEntry.rzjFIdbv.js} +1 -1
- package/dist/chunks/{MemoriesEntry.CpxdE30v.js → MemoriesEntry.BOvQNYiF.js} +112 -119
- package/dist/chunks/{ProfileEntry.BMpJic5U.js → ProfileEntry.BjWgDBqL.js} +4 -4
- package/dist/chunks/{SettingsEntry.B8xGufV0.js → SettingsEntry.XE7O69z9.js} +5 -5
- package/dist/chunks/{UsageEntry.B1zVYUBb.js → UsageEntry.DV6W6WGG.js} +5 -5
- package/dist/chunks/{_baseUniq.BeocMcb-.js → _baseUniq.Dmbcf1N7.js} +1 -1
- package/dist/chunks/{arc.C-CDR6Sz.js → arc.BN6_60mZ.js} +1 -1
- package/dist/chunks/{architecture-U656AL7Q.DQ7Jtm55.js → architecture-U656AL7Q.3wcHlTzP.js} +1 -1
- package/dist/chunks/{architectureDiagram-VXUJARFQ.Ceo3pgxm.js → architectureDiagram-VXUJARFQ.ULGdKAsY.js} +4 -4
- package/dist/chunks/{blockDiagram-VD42YOAC.BvjaUl_a.js → blockDiagram-VD42YOAC.rsYqZQuv.js} +5 -5
- package/dist/chunks/{browser.DvUqvHKQ.js → browser.ygpjKEUL.js} +1 -1
- package/dist/chunks/{c4Diagram-YG6GDRKO.D8dful9J.js → c4Diagram-YG6GDRKO.BoulQIAf.js} +2 -2
- package/dist/chunks/{channel.B6Qvl469.js → channel.CeCiSz8G.js} +1 -1
- package/dist/chunks/{chunk-4BX2VUAB.CtVNPH4N.js → chunk-4BX2VUAB.nPXiqVPa.js} +1 -1
- package/dist/chunks/{chunk-55IACEB6.C0X4Jue2.js → chunk-55IACEB6.BVjwceMV.js} +1 -1
- package/dist/chunks/{chunk-B4BG7PRW.Conu6DQr.js → chunk-B4BG7PRW.C71uSmgS.js} +4 -4
- package/dist/chunks/{chunk-DI55MBZ5.Dg38hF9_.js → chunk-DI55MBZ5.C1pnFYaE.js} +3 -3
- package/dist/chunks/{chunk-FMBD7UC4.BsUH0rhB.js → chunk-FMBD7UC4.jDZnjru1.js} +1 -1
- package/dist/chunks/{chunk-QN33PNHL.0RjA_wXX.js → chunk-QN33PNHL.DP6Fwelp.js} +1 -1
- package/dist/chunks/{chunk-QZHKN3VN.Dz6HmVZY.js → chunk-QZHKN3VN.E73siEqr.js} +1 -1
- package/dist/chunks/{chunk-TZMSLE5B.Dxuv9zIm.js → chunk-TZMSLE5B.BuA_4J8K.js} +1 -1
- package/dist/chunks/{classDiagram-2ON5EDUG.CRdX6xMs.js → classDiagram-2ON5EDUG.D_z1qDzM.js} +2 -2
- package/dist/chunks/{classDiagram-v2-WZHVMYZB.CRdX6xMs.js → classDiagram-v2-WZHVMYZB.D_z1qDzM.js} +2 -2
- package/dist/chunks/{clone.ByaUA-r2.js → clone.mMQDv3bv.js} +1 -1
- package/dist/chunks/{cose-bilkent-S5V4N54A.B5YgIJoQ.js → cose-bilkent-S5V4N54A.ck8LAP13.js} +2 -2
- package/dist/chunks/{dagre-6UL2VRFP.uIiQ6FUj.js → dagre-6UL2VRFP.BItaK99h.js} +5 -5
- package/dist/chunks/{diagram-PSM6KHXK.Bv8fX1RC.js → diagram-PSM6KHXK.DyW4Ptmi.js} +4 -4
- package/dist/chunks/{diagram-QEK2KX5R.CY_Rq5A7.js → diagram-QEK2KX5R.jKwj3GRj.js} +3 -3
- package/dist/chunks/{diagram-S2PKOQOG.BfXCT4NH.js → diagram-S2PKOQOG.DsMH6_Zw.js} +3 -3
- package/dist/chunks/{erDiagram-Q2GNP2WA.BQrPmQkr.js → erDiagram-Q2GNP2WA.CzmoZDbP.js} +4 -4
- package/dist/chunks/{flowDiagram-NV44I4VS.DZwCRz8X.js → flowDiagram-NV44I4VS.DxdqqGRo.js} +5 -5
- package/dist/chunks/{ganttDiagram-JELNMOA3.CpqB-Lco.js → ganttDiagram-JELNMOA3.CcLEjTud.js} +2 -2
- package/dist/chunks/{gitGraph-F6HP7TQM.HmdqWT9j.js → gitGraph-F6HP7TQM.jRe6CGxe.js} +1 -1
- package/dist/chunks/{gitGraphDiagram-NY62KEGX.i87uZR96.js → gitGraphDiagram-NY62KEGX.BU9jMEjw.js} +4 -4
- package/dist/chunks/{graph.C_jA5HK0.js → graph.D_97simK.js} +2 -2
- package/dist/chunks/{index.BggKJCTP.js → index.5Dk40BwF.js} +1 -1
- package/dist/chunks/{index.Bm1g0K7E.js → index.Ba4pxqR4.js} +3 -3
- package/dist/chunks/{index.BrfxZy3k.js → index.BkOYiDfc.js} +2 -2
- package/dist/chunks/{index.Y9mwgfBs.js → index.C8TVf8G8.js} +1 -1
- package/dist/chunks/{index.BHwQBUwd.js → index.Cl3rYVMB.js} +1 -1
- package/dist/chunks/{index.C5piY5Ss.js → index.KOLL3mel.js} +1 -1
- package/dist/chunks/{index.BaE2Lbfd.js → index.QUKSRj2a.js} +1 -1
- package/dist/chunks/{index.g3S1xCER.js → index.UROP8tJb.js} +1 -1
- package/dist/chunks/{index.cXGGRddQ.js → index.ggYqhS1e.js} +3 -3
- package/dist/chunks/{info-NVLQJR56.ITJfPEdI.js → info-NVLQJR56.CszFnDwo.js} +1 -1
- package/dist/chunks/{infoDiagram-WHAUD3N6.fkRhLS2k.js → infoDiagram-WHAUD3N6.YyEpS05M.js} +2 -2
- package/dist/chunks/{journeyDiagram-XKPGCS4Q.BtGrOEeN.js → journeyDiagram-XKPGCS4Q.DcbRg9cB.js} +4 -4
- package/dist/chunks/{kanban-definition-3W4ZIXB7.B5uNw32c.js → kanban-definition-3W4ZIXB7.BbVIN7fW.js} +2 -2
- package/dist/chunks/{layout.CqkuHUdu.js → layout.CfcudlJZ.js} +4 -4
- package/dist/chunks/{mermaid-parser.core.Ci-ITaRl.js → mermaid-parser.core.kpF3KDFK.js} +10 -10
- package/dist/chunks/{min.ZkscJwva.js → min.DRYc5zYs.js} +2 -2
- package/dist/chunks/{mindmap-definition-VGOIOE7T.B6kzhC94.js → mindmap-definition-VGOIOE7T.Dn-mBgyv.js} +4 -4
- package/dist/chunks/{packet-BFZMPI3H.BMbAoa6x.js → packet-BFZMPI3H.Cayad0vN.js} +1 -1
- package/dist/chunks/{pie-7BOR55EZ.BMdBvM8R.js → pie-7BOR55EZ.zajRRxb0.js} +1 -1
- package/dist/chunks/{pieDiagram-ADFJNKIX.-lbBXtjO.js → pieDiagram-ADFJNKIX.BK3VLjHA.js} +4 -4
- package/dist/chunks/{quadrantDiagram-AYHSOK5B.Davn6069.js → quadrantDiagram-AYHSOK5B.BsUBxvka.js} +1 -1
- package/dist/chunks/{radar-NHE76QYJ.DYto8RZU.js → radar-NHE76QYJ.q2p7Sm3i.js} +1 -1
- package/dist/chunks/{rehype-mermaid.CSGNYSn9.js → rehype-mermaid.2ONPwhMk.js} +33 -33
- package/dist/chunks/{requirementDiagram-UZGBJVZJ.FMUxUq0R.js → requirementDiagram-UZGBJVZJ.B4PjDM9-.js} +3 -3
- package/dist/chunks/{sankeyDiagram-TZEHDZUN.DTIl9DDr.js → sankeyDiagram-TZEHDZUN.CDGSRLf0.js} +1 -1
- package/dist/chunks/{sequenceDiagram-WL72ISMW.Bc9ucdVx.js → sequenceDiagram-WL72ISMW.QdoIh0dQ.js} +3 -3
- package/dist/chunks/{stateDiagram-FKZM4ZOC.DiBSTbjk.js → stateDiagram-FKZM4ZOC.Dp31Fg9B.js} +4 -4
- package/dist/chunks/{stateDiagram-v2-4FDKWEC3.C3xcoMwn.js → stateDiagram-v2-4FDKWEC3.BACEZc8w.js} +2 -2
- package/dist/chunks/{timeline-definition-IT6M3QCI.BC01Xx8r.js → timeline-definition-IT6M3QCI.DsQAVlJ0.js} +2 -2
- package/dist/chunks/{treemap-KMMF4GRG.oysg6M_i.js → treemap-KMMF4GRG.C5WeXexz.js} +1 -1
- package/dist/chunks/{useMarkdown.D8WEecQ3.js → useMarkdown.SxDFn8Cl.js} +8 -8
- package/dist/chunks/{xychartDiagram-PRI3JC2R.C3TO2yCs.js → xychartDiagram-PRI3JC2R.Cwk7BfJr.js} +1 -1
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +3 -3
- package/dist/style.css +1 -1
- package/package.json +3 -3
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { y as w, V as y, INFINITE_SCROLL_THRESHOLD as Y } from "./index.
|
|
3
|
-
import { IconCloseLight as K, CARDS as V, ButtonIcon as R, IconRestore as W, IconStarInCircle as G, IconStarInCircleLight as H } from "./LogoEntry.
|
|
1
|
+
import { jsxs as m, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { y as w, V as y, INFINITE_SCROLL_THRESHOLD as Y } from "./index.BkOYiDfc.js";
|
|
3
|
+
import { IconCloseLight as K, CARDS as V, ButtonIcon as R, IconRestore as W, IconStarInCircle as G, IconStarInCircleLight as H } from "./LogoEntry.rzjFIdbv.js";
|
|
4
4
|
import { useState as j, useRef as k, useEffect as O, Fragment as F } from "react";
|
|
5
|
-
import
|
|
6
|
-
import { Table as q, TableHead as J, TableRow as S, TableBody as Q, TableCell as
|
|
7
|
-
import { pluralize as
|
|
8
|
-
const re = "av-pill", te = ({ variant: t }) =>
|
|
5
|
+
import a from "clsx";
|
|
6
|
+
import { Table as q, TableHead as J, TableRow as S, TableBody as Q, TableCell as o, TableCellSort as v, ButtonIconDelete as X } from "./ButtonIconDelete.BMSba-RX.js";
|
|
7
|
+
import { pluralize as E, ResponsiveTooltip as I, numberFormatter as Z, isProbablyMobile as ee } from "./App.CeXH-zPe.js";
|
|
8
|
+
const re = "av-pill", te = ({ variant: t }) => a("rounded-xs border", {
|
|
9
9
|
"border-border-information": t === "information",
|
|
10
10
|
"border-border-warning": t === "warning",
|
|
11
11
|
"border-border-success": t === "success",
|
|
12
12
|
"border-border-error": t === "error"
|
|
13
|
-
}), P = ({ variant: t }) =>
|
|
13
|
+
}), P = ({ variant: t }) => a("not-prose", {
|
|
14
14
|
"text-copy-information": t === "information",
|
|
15
15
|
"text-copy-warning": t === "warning",
|
|
16
16
|
"text-copy-success": t === "success",
|
|
17
17
|
"text-copy-error": t === "error"
|
|
18
|
-
}), se = ({ variant: t }) =>
|
|
18
|
+
}), se = ({ variant: t }) => a({
|
|
19
19
|
"bg-surface-information": t === "information",
|
|
20
20
|
"bg-surface-warning": t === "warning",
|
|
21
21
|
"bg-surface-success": t === "success",
|
|
22
22
|
"bg-surface-error": t === "error"
|
|
23
|
-
}),
|
|
24
|
-
const { className:
|
|
23
|
+
}), le = (t) => {
|
|
24
|
+
const { className: c, variant: n } = t;
|
|
25
25
|
return {
|
|
26
|
-
main:
|
|
26
|
+
main: a(re, "inline-flex items-center gap-1 px-2 py-0.5 text-xs", te({
|
|
27
27
|
variant: n
|
|
28
28
|
}), P({
|
|
29
29
|
variant: n
|
|
30
|
-
}), se(t),
|
|
31
|
-
button:
|
|
30
|
+
}), se(t), c),
|
|
31
|
+
button: a("inline-flex items-center justify-center", "ml-1", "focus:outline", "focus:outline-1", "focus:outline-offset-1", "focus:outline-focus-dark", "hover:bg-surface-medium/50", "rounded-full", P({
|
|
32
32
|
variant: n
|
|
33
33
|
}))
|
|
34
34
|
};
|
|
35
|
-
}, U = ({ label: t, className:
|
|
36
|
-
const [
|
|
37
|
-
d && (d(
|
|
35
|
+
}, U = ({ label: t, className: c, variant: n = "information", description: u, onClose: d }) => {
|
|
36
|
+
const [b, g] = j(!0), C = (h) => {
|
|
37
|
+
d && (d(h), h.defaultPrevented || g(!1));
|
|
38
38
|
};
|
|
39
|
-
if (!
|
|
39
|
+
if (!b)
|
|
40
40
|
return null;
|
|
41
|
-
const f =
|
|
42
|
-
className:
|
|
41
|
+
const f = le({
|
|
42
|
+
className: c,
|
|
43
43
|
variant: n
|
|
44
44
|
});
|
|
45
|
-
return /* @__PURE__ */
|
|
45
|
+
return /* @__PURE__ */ m("div", {
|
|
46
46
|
role: "text",
|
|
47
47
|
className: f.main,
|
|
48
48
|
children: [
|
|
49
|
-
|
|
49
|
+
u && /* @__PURE__ */ e("span", {
|
|
50
50
|
className: "sr-only",
|
|
51
|
-
children:
|
|
51
|
+
children: u
|
|
52
52
|
}),
|
|
53
53
|
/* @__PURE__ */ e("span", {
|
|
54
54
|
children: t
|
|
@@ -64,43 +64,43 @@ const re = "av-pill", te = ({ variant: t }) => c("rounded-xs border", {
|
|
|
64
64
|
})
|
|
65
65
|
]
|
|
66
66
|
});
|
|
67
|
-
},
|
|
67
|
+
}, l = {
|
|
68
68
|
ROW: "row",
|
|
69
69
|
TIMESTAMP: w,
|
|
70
70
|
SUMMARY: "summary",
|
|
71
71
|
TOKEN_USAGE: y,
|
|
72
72
|
ACTIONS: "actions"
|
|
73
|
-
},
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
73
|
+
}, oe = [
|
|
74
|
+
l.ROW,
|
|
75
|
+
l.TIMESTAMP,
|
|
76
|
+
l.SUMMARY,
|
|
77
|
+
l.ACTIONS
|
|
78
78
|
], ne = [
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
],
|
|
79
|
+
l.ROW,
|
|
80
|
+
l.SUMMARY,
|
|
81
|
+
l.TIMESTAMP,
|
|
82
|
+
l.TOKEN_USAGE,
|
|
83
|
+
l.ACTIONS
|
|
84
|
+
], xe = ({
|
|
85
85
|
filteredHistory: t,
|
|
86
|
-
historyState:
|
|
86
|
+
historyState: c,
|
|
87
87
|
lastEntryToLoad: n,
|
|
88
|
-
onClickSort:
|
|
88
|
+
onClickSort: u,
|
|
89
89
|
onClickRestore: d,
|
|
90
|
-
onClickDelete:
|
|
90
|
+
onClickDelete: b,
|
|
91
91
|
onClickFavorite: g,
|
|
92
92
|
infinityScrollMarkerRef: C,
|
|
93
93
|
isLoading: f = !1,
|
|
94
|
-
totalHistoryCount:
|
|
94
|
+
totalHistoryCount: h,
|
|
95
95
|
isFiltered: D = !1,
|
|
96
96
|
isSearchActive: M = !1,
|
|
97
|
-
activeChatId:
|
|
97
|
+
activeChatId: x
|
|
98
98
|
}) => {
|
|
99
99
|
const L = ee(), T = k(null), N = k(!1);
|
|
100
100
|
O(() => {
|
|
101
101
|
N.current = !1;
|
|
102
|
-
}, [
|
|
103
|
-
if (
|
|
102
|
+
}, [x]), O(() => {
|
|
103
|
+
if (x && T.current && !N.current) {
|
|
104
104
|
N.current = !0;
|
|
105
105
|
const r = setTimeout(() => {
|
|
106
106
|
T.current?.scrollIntoView({
|
|
@@ -110,61 +110,61 @@ const re = "av-pill", te = ({ variant: t }) => c("rounded-xs border", {
|
|
|
110
110
|
}, 100);
|
|
111
111
|
return () => clearTimeout(r);
|
|
112
112
|
}
|
|
113
|
-
}, [
|
|
114
|
-
const A = L ?
|
|
113
|
+
}, [x, n]);
|
|
114
|
+
const A = L ? oe : ne, B = (r) => {
|
|
115
115
|
switch (r) {
|
|
116
|
-
case
|
|
117
|
-
return /* @__PURE__ */ e(
|
|
118
|
-
case
|
|
119
|
-
return M ? /* @__PURE__ */ e(
|
|
120
|
-
|
|
116
|
+
case l.ROW:
|
|
117
|
+
return /* @__PURE__ */ e(o, { className: "sr-only", children: "Row" }, r);
|
|
118
|
+
case l.TIMESTAMP:
|
|
119
|
+
return M ? /* @__PURE__ */ e(o, { className: "text-xs sm:text-sm", children: "Date" }, r) : /* @__PURE__ */ e(
|
|
120
|
+
v,
|
|
121
121
|
{
|
|
122
122
|
focusMode: "system",
|
|
123
123
|
buttonClassName: "text-xs sm:text-sm",
|
|
124
124
|
cellId: w,
|
|
125
125
|
align: "left",
|
|
126
|
-
sortDirection:
|
|
127
|
-
sortedCell:
|
|
126
|
+
sortDirection: c.sortDirection,
|
|
127
|
+
sortedCell: c.sortedCell,
|
|
128
128
|
onClick: () => {
|
|
129
|
-
|
|
129
|
+
u(w);
|
|
130
130
|
},
|
|
131
131
|
children: "Date"
|
|
132
132
|
},
|
|
133
133
|
r
|
|
134
134
|
);
|
|
135
|
-
case
|
|
136
|
-
return /* @__PURE__ */ e(
|
|
137
|
-
case
|
|
138
|
-
return M ? /* @__PURE__ */ e(
|
|
139
|
-
|
|
135
|
+
case l.SUMMARY:
|
|
136
|
+
return /* @__PURE__ */ e(o, { className: "text-xs sm:text-sm", children: "Summary" }, r);
|
|
137
|
+
case l.TOKEN_USAGE:
|
|
138
|
+
return M ? /* @__PURE__ */ e(o, { className: "text-xs sm:text-sm text-right", children: "Tokens" }, r) : /* @__PURE__ */ e(
|
|
139
|
+
v,
|
|
140
140
|
{
|
|
141
141
|
focusMode: "system",
|
|
142
142
|
buttonClassName: "text-xs sm:text-sm",
|
|
143
143
|
cellId: y,
|
|
144
144
|
align: "right",
|
|
145
|
-
sortDirection:
|
|
146
|
-
sortedCell:
|
|
145
|
+
sortDirection: c.sortDirection,
|
|
146
|
+
sortedCell: c.sortedCell,
|
|
147
147
|
onClick: () => {
|
|
148
|
-
|
|
148
|
+
u(y);
|
|
149
149
|
},
|
|
150
150
|
children: "Tokens"
|
|
151
151
|
},
|
|
152
152
|
r
|
|
153
153
|
);
|
|
154
|
-
case
|
|
155
|
-
return /* @__PURE__ */ e(
|
|
154
|
+
case l.ACTIONS:
|
|
155
|
+
return /* @__PURE__ */ e(o, { className: "text-xs sm:text-sm text-right", children: "Actions" }, r);
|
|
156
156
|
default:
|
|
157
157
|
return null;
|
|
158
158
|
}
|
|
159
|
-
}, z = (r, s,
|
|
159
|
+
}, z = (r, s, p) => {
|
|
160
160
|
switch (r) {
|
|
161
|
-
case
|
|
162
|
-
return /* @__PURE__ */ e(
|
|
163
|
-
case
|
|
161
|
+
case l.ROW:
|
|
162
|
+
return /* @__PURE__ */ e(o, { children: p + 1 }, r);
|
|
163
|
+
case l.TIMESTAMP:
|
|
164
164
|
return /* @__PURE__ */ e(
|
|
165
|
-
|
|
165
|
+
o,
|
|
166
166
|
{
|
|
167
|
-
className:
|
|
167
|
+
className: a(
|
|
168
168
|
"dark:text-copy-medium",
|
|
169
169
|
"sm:whitespace-nowrap text-xs sm:text-sm max-w-20 sm:max-w-none"
|
|
170
170
|
),
|
|
@@ -172,20 +172,20 @@ const re = "av-pill", te = ({ variant: t }) => c("rounded-xs border", {
|
|
|
172
172
|
},
|
|
173
173
|
r
|
|
174
174
|
);
|
|
175
|
-
case
|
|
175
|
+
case l.SUMMARY: {
|
|
176
176
|
const i = s.similarityScore !== void 0 && s.similarityScore !== null ? Math.round(s.similarityScore * 100) : null, _ = i !== null && i < 40 ? "warning" : "success", $ = s.keywordMatch === !0;
|
|
177
177
|
return /* @__PURE__ */ e(
|
|
178
|
-
|
|
178
|
+
o,
|
|
179
179
|
{
|
|
180
|
-
className:
|
|
180
|
+
className: a(
|
|
181
181
|
"dark:text-white",
|
|
182
182
|
"max-w-25 sm:max-w-full text-xs sm:text-sm"
|
|
183
183
|
),
|
|
184
184
|
style: {
|
|
185
185
|
wordBreak: "break-word"
|
|
186
186
|
},
|
|
187
|
-
children: /* @__PURE__ */
|
|
188
|
-
/* @__PURE__ */
|
|
187
|
+
children: /* @__PURE__ */ m("div", { className: "flex flex-col gap-1", children: [
|
|
188
|
+
/* @__PURE__ */ m("div", { className: "flex flex-wrap gap-1", children: [
|
|
189
189
|
i !== null && /* @__PURE__ */ e(
|
|
190
190
|
U,
|
|
191
191
|
{
|
|
@@ -201,22 +201,22 @@ const re = "av-pill", te = ({ variant: t }) => c("rounded-xs border", {
|
|
|
201
201
|
r
|
|
202
202
|
);
|
|
203
203
|
}
|
|
204
|
-
case
|
|
204
|
+
case l.TOKEN_USAGE:
|
|
205
205
|
return /* @__PURE__ */ e(
|
|
206
|
-
|
|
206
|
+
o,
|
|
207
207
|
{
|
|
208
|
-
className:
|
|
208
|
+
className: a("dark:text-copy-medium", "text-xs sm:text-sm"),
|
|
209
209
|
align: "right",
|
|
210
210
|
children: s.tokenUsage ? Z.format(s.tokenUsage) : "0"
|
|
211
211
|
},
|
|
212
212
|
r
|
|
213
213
|
);
|
|
214
|
-
case
|
|
214
|
+
case l.ACTIONS:
|
|
215
215
|
return /* @__PURE__ */ e(
|
|
216
|
-
|
|
216
|
+
o,
|
|
217
217
|
{
|
|
218
218
|
className: "border-l border-table-light dark:border-table-dark",
|
|
219
|
-
children: /* @__PURE__ */
|
|
219
|
+
children: /* @__PURE__ */ m("div", { className: "flex flex-col items-end sm:flex-row gap-2", children: [
|
|
220
220
|
/* @__PURE__ */ e(
|
|
221
221
|
I,
|
|
222
222
|
{
|
|
@@ -268,7 +268,7 @@ const re = "av-pill", te = ({ variant: t }) => c("rounded-xs border", {
|
|
|
268
268
|
label: "Delete chat",
|
|
269
269
|
disabled: !1,
|
|
270
270
|
onClick: () => {
|
|
271
|
-
|
|
271
|
+
b(s);
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
274
|
)
|
|
@@ -280,28 +280,32 @@ const re = "av-pill", te = ({ variant: t }) => c("rounded-xs border", {
|
|
|
280
280
|
return null;
|
|
281
281
|
}
|
|
282
282
|
};
|
|
283
|
-
return /* @__PURE__ */
|
|
283
|
+
return /* @__PURE__ */ m(
|
|
284
284
|
q,
|
|
285
285
|
{
|
|
286
286
|
stickyHeader: !0,
|
|
287
287
|
compact: !0,
|
|
288
288
|
mode: "alt-system",
|
|
289
289
|
caption: (() => {
|
|
290
|
-
const r = t.length, s =
|
|
291
|
-
return D && s > r ? `Showing ${
|
|
290
|
+
const r = t.length, s = h ?? r;
|
|
291
|
+
return D && s > r ? `Showing ${E(`${r} chat`, r)} out of ${s}` : E(`${r} chat`, r);
|
|
292
292
|
})(),
|
|
293
|
+
wrapperClassName: a(
|
|
294
|
+
"max-h-[clamp(12rem,calc(100dvh-24rem),60dvh)]",
|
|
295
|
+
"sm:max-h-[clamp(12rem,calc(100dvh-24rem),60dvh)]"
|
|
296
|
+
),
|
|
293
297
|
disabled: f && t.length > 0,
|
|
294
298
|
children: [
|
|
295
299
|
/* @__PURE__ */ e(J, { children: /* @__PURE__ */ e(S, { children: A.map((r) => B(r)) }) }),
|
|
296
|
-
/* @__PURE__ */ e(Q, { children: f && t.length === 0 ? /* @__PURE__ */ e(S, { children: /* @__PURE__ */ e(
|
|
297
|
-
const
|
|
298
|
-
return r?.summary ? /* @__PURE__ */
|
|
300
|
+
/* @__PURE__ */ e(Q, { children: f && t.length === 0 ? /* @__PURE__ */ e(S, { children: /* @__PURE__ */ e(o, { colSpan: 1e3, children: /* @__PURE__ */ e("div", { children: "Loading..." }) }) }) : t.slice(0, n).map((r, s) => {
|
|
301
|
+
const p = x === r.id;
|
|
302
|
+
return r?.summary ? /* @__PURE__ */ m(F, { children: [
|
|
299
303
|
s === n - Y && /* @__PURE__ */ e("tr", { ref: C }),
|
|
300
304
|
/* @__PURE__ */ e(
|
|
301
305
|
S,
|
|
302
306
|
{
|
|
303
|
-
ref:
|
|
304
|
-
active:
|
|
307
|
+
ref: p ? T : void 0,
|
|
308
|
+
active: p,
|
|
305
309
|
children: A.map(
|
|
306
310
|
(i) => z(i, r, s)
|
|
307
311
|
)
|
|
@@ -314,5 +318,5 @@ const re = "av-pill", te = ({ variant: t }) => c("rounded-xs border", {
|
|
|
314
318
|
);
|
|
315
319
|
};
|
|
316
320
|
export {
|
|
317
|
-
|
|
321
|
+
xe as ChatHistoryTable
|
|
318
322
|
};
|