@versini/sassysaint 8.115.1 → 8.116.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.h8uZDiRa.js → AboutChangelog.CnrCMj9j.js} +2 -2
- package/dist/chunks/{AboutEntry.Dm-VAlos.js → AboutEntry.B_v4wPJu.js} +7 -7
- package/dist/chunks/{App.kZ7zFOCZ.js → App.DZsmgdSf.js} +17 -17
- package/dist/chunks/{Bubble.CaOJA6px.js → Bubble.DkpO1hUq.js} +1 -1
- package/dist/chunks/{ButtonIconDelete.CMTWH4G_.js → ButtonIconDelete.qjiICD-C.js} +112 -100
- package/dist/chunks/{Chart.DjDJmuv4.js → Chart.C5TznUox.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.Ct1kuBfY.js → ChatBubbleAssistant.L0EqA71V.js} +4 -4
- package/dist/chunks/{ChatBubbleUser.DWjAo_57.js → ChatBubbleUser.pCnNNynn.js} +3 -3
- package/dist/chunks/{ChatHistoryTable.CPGJDP3u.js → ChatHistoryTable.DbqjD59m.js} +136 -110
- package/dist/chunks/{HistoryEntry.vorKgBkE.js → HistoryEntry.Cwwb60-v.js} +148 -138
- package/dist/chunks/{LoginEntry.DMTx7dAX.js → LoginEntry.1r7TFo-0.js} +4 -4
- package/dist/chunks/{LogoEntry.QCG_Oqpu.js → LogoEntry.C42bjw_J.js} +1 -1
- package/dist/chunks/{MemoriesEntry.NKPDzd6E.js → MemoriesEntry.B1TYmnRs.js} +5 -5
- package/dist/chunks/{ProfileEntry.D4nsWyk-.js → ProfileEntry.S1zEigVK.js} +4 -4
- package/dist/chunks/{SettingsEntry.ktYNthLp.js → SettingsEntry.DRxV4Mnv.js} +5 -5
- package/dist/chunks/{UsageEntry.3E-1gpeB.js → UsageEntry.DLc39ETR.js} +5 -5
- package/dist/chunks/{_baseUniq.C9w-5slz.js → _baseUniq.BOcrAUMb.js} +1 -1
- package/dist/chunks/{arc.Bhkeu8Ne.js → arc.Bc6CZu6T.js} +1 -1
- package/dist/chunks/{architecture-U656AL7Q.BQ0dLOXF.js → architecture-U656AL7Q.QGHUq491.js} +1 -1
- package/dist/chunks/{architectureDiagram-VXUJARFQ.PMB1snGu.js → architectureDiagram-VXUJARFQ.CfOCGFjg.js} +4 -4
- package/dist/chunks/{blockDiagram-VD42YOAC.cc6SS-Ut.js → blockDiagram-VD42YOAC.BZGQL0K-.js} +5 -5
- package/dist/chunks/{browser.-b7MIoe3.js → browser.BES7M-cr.js} +1 -1
- package/dist/chunks/{c4Diagram-YG6GDRKO.CkH4zhHB.js → c4Diagram-YG6GDRKO.tKgp2iCo.js} +2 -2
- package/dist/chunks/{channel.BZF7A0lk.js → channel.DS7_B1sD.js} +1 -1
- package/dist/chunks/{chunk-4BX2VUAB.Cp0rcpX_.js → chunk-4BX2VUAB.BsziT60f.js} +1 -1
- package/dist/chunks/{chunk-55IACEB6.vT382srr.js → chunk-55IACEB6.BFD2aM1b.js} +1 -1
- package/dist/chunks/{chunk-B4BG7PRW.D1UQqJBC.js → chunk-B4BG7PRW.Dp_dUjXu.js} +4 -4
- package/dist/chunks/{chunk-DI55MBZ5.BGj41J2L.js → chunk-DI55MBZ5.BSSR2fsl.js} +3 -3
- package/dist/chunks/{chunk-FMBD7UC4.DbK41wsg.js → chunk-FMBD7UC4.zFBdnbSj.js} +1 -1
- package/dist/chunks/{chunk-QN33PNHL.CKXkOIKW.js → chunk-QN33PNHL.CNmLyW5z.js} +1 -1
- package/dist/chunks/{chunk-QZHKN3VN.BqCNNrna.js → chunk-QZHKN3VN.CHIiOTWa.js} +1 -1
- package/dist/chunks/{chunk-TZMSLE5B.GMeazl5c.js → chunk-TZMSLE5B.DgmCkWAE.js} +1 -1
- package/dist/chunks/{classDiagram-2ON5EDUG.D9HdU8dF.js → classDiagram-2ON5EDUG.C1Cu3qVH.js} +2 -2
- package/dist/chunks/{classDiagram-v2-WZHVMYZB.D9HdU8dF.js → classDiagram-v2-WZHVMYZB.C1Cu3qVH.js} +2 -2
- package/dist/chunks/{clone.BvA919-S.js → clone.taNKkvJ9.js} +1 -1
- package/dist/chunks/{cose-bilkent-S5V4N54A.Cgu7-tFO.js → cose-bilkent-S5V4N54A.DfVNXfXH.js} +2 -2
- package/dist/chunks/{dagre-6UL2VRFP.BknfeRUw.js → dagre-6UL2VRFP.DYhO6A5e.js} +5 -5
- package/dist/chunks/{diagram-PSM6KHXK.C_6k_6p5.js → diagram-PSM6KHXK.B3Zgu9PL.js} +4 -4
- package/dist/chunks/{diagram-QEK2KX5R.DJy76ACj.js → diagram-QEK2KX5R.BwV8LoQ9.js} +3 -3
- package/dist/chunks/{diagram-S2PKOQOG.CfC-dKeX.js → diagram-S2PKOQOG.b7ck1ocM.js} +3 -3
- package/dist/chunks/{erDiagram-Q2GNP2WA.Dq-M4wvK.js → erDiagram-Q2GNP2WA.BLOJ7KTi.js} +4 -4
- package/dist/chunks/{flowDiagram-NV44I4VS.CWEOg9vI.js → flowDiagram-NV44I4VS.BfXJbb56.js} +5 -5
- package/dist/chunks/{ganttDiagram-JELNMOA3.B7lZEF5Y.js → ganttDiagram-JELNMOA3.TvvsmtiM.js} +2 -2
- package/dist/chunks/{gitGraph-F6HP7TQM.BpsZ10rD.js → gitGraph-F6HP7TQM.DDGwiGGr.js} +1 -1
- package/dist/chunks/{gitGraphDiagram-NY62KEGX.BEr46lqB.js → gitGraphDiagram-NY62KEGX.B0JPvRv6.js} +4 -4
- package/dist/chunks/{graph.duUTsfAo.js → graph.ZKIG5uo9.js} +2 -2
- package/dist/chunks/{index.D5GVHxAW.js → index.-nrmM1wy.js} +2 -2
- package/dist/chunks/{index.BocHTBAX.js → index.B9-d3ocn.js} +1 -1
- package/dist/chunks/{index.BEImwMfM.js → index.BDIm0XZX.js} +3 -3
- package/dist/chunks/{index.CZzUkzEP.js → index.C5Cu_bRP.js} +1 -1
- package/dist/chunks/{index.Duppkty5.js → index.C9tD1xGj.js} +1 -1
- package/dist/chunks/{index.CQB6p5rc.js → index.Caq09BtO.js} +3 -3
- package/dist/chunks/{index.1lyseSZD.js → index.DNjv4c6J.js} +1 -1
- package/dist/chunks/{index.C7L6Qy0p.js → index.Dq3ux59q.js} +1 -1
- package/dist/chunks/{index.C8LhNQL3.js → index.DstuTKv0.js} +1 -1
- package/dist/chunks/{info-NVLQJR56.rpoj5hAd.js → info-NVLQJR56.XGDhf5c8.js} +1 -1
- package/dist/chunks/{infoDiagram-WHAUD3N6.1qgGbBxV.js → infoDiagram-WHAUD3N6.C4VTOkJb.js} +2 -2
- package/dist/chunks/{journeyDiagram-XKPGCS4Q.BrzX8o5P.js → journeyDiagram-XKPGCS4Q.wNzwy5O8.js} +4 -4
- package/dist/chunks/{kanban-definition-3W4ZIXB7.CuQZY6Sy.js → kanban-definition-3W4ZIXB7.KhavzAgf.js} +2 -2
- package/dist/chunks/{layout.Ch_nETSB.js → layout.DVg04aS2.js} +4 -4
- package/dist/chunks/{mermaid-parser.core.Bqz_hY8U.js → mermaid-parser.core.B9sUQvnf.js} +10 -10
- package/dist/chunks/{min.B-XpJzFe.js → min.DoYCfdSM.js} +2 -2
- package/dist/chunks/{mindmap-definition-VGOIOE7T.DM10BWV6.js → mindmap-definition-VGOIOE7T.C2JDgwiq.js} +4 -4
- package/dist/chunks/{packet-BFZMPI3H.DxbiL8bi.js → packet-BFZMPI3H.CWfh7GKW.js} +1 -1
- package/dist/chunks/{pie-7BOR55EZ.DlLaqQ8p.js → pie-7BOR55EZ.R4UTwYem.js} +1 -1
- package/dist/chunks/{pieDiagram-ADFJNKIX.PKqZ_L7B.js → pieDiagram-ADFJNKIX.DEKssSj0.js} +4 -4
- package/dist/chunks/{quadrantDiagram-AYHSOK5B.4Y46BKFd.js → quadrantDiagram-AYHSOK5B.CstUaqn3.js} +1 -1
- package/dist/chunks/{radar-NHE76QYJ.Bu4ymprr.js → radar-NHE76QYJ.BJURKYxU.js} +1 -1
- package/dist/chunks/{rehype-mermaid.BhbxArqE.js → rehype-mermaid.DNscECQS.js} +33 -33
- package/dist/chunks/{requirementDiagram-UZGBJVZJ.DdL8pOOk.js → requirementDiagram-UZGBJVZJ.D8kKOp2K.js} +3 -3
- package/dist/chunks/{sankeyDiagram-TZEHDZUN.DHQdQ9qa.js → sankeyDiagram-TZEHDZUN.C3seK2D-.js} +1 -1
- package/dist/chunks/{sequenceDiagram-WL72ISMW.CUg9rPpB.js → sequenceDiagram-WL72ISMW.D2210RR-.js} +3 -3
- package/dist/chunks/{stateDiagram-FKZM4ZOC.CRkwSlLY.js → stateDiagram-FKZM4ZOC.DNysZp29.js} +4 -4
- package/dist/chunks/{stateDiagram-v2-4FDKWEC3.BLmOYFdB.js → stateDiagram-v2-4FDKWEC3.BlXDb-uk.js} +2 -2
- package/dist/chunks/{timeline-definition-IT6M3QCI.DouwaOHK.js → timeline-definition-IT6M3QCI.C3Fi9VMD.js} +2 -2
- package/dist/chunks/{treemap-KMMF4GRG.DSo16U9j.js → treemap-KMMF4GRG.BeOdsYcu.js} +1 -1
- package/dist/chunks/{useMarkdown.dHVgqkuN.js → useMarkdown.C8cTc4ru.js} +8 -8
- package/dist/chunks/{xychartDiagram-PRI3JC2R.CQx23hyH.js → xychartDiagram-PRI3JC2R.BN17tfAJ.js} +1 -1
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +4 -4
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { y as
|
|
3
|
-
import { IconCloseLight as
|
|
4
|
-
import { useState as
|
|
5
|
-
import
|
|
6
|
-
import { Table as
|
|
7
|
-
import { pluralize as
|
|
8
|
-
const
|
|
1
|
+
import { jsxs as u, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { y as w, V as y, INFINITE_SCROLL_THRESHOLD as Y } from "./index.-nrmM1wy.js";
|
|
3
|
+
import { IconCloseLight as K, CARDS as V, ButtonIcon as R, IconRestore as W, IconStarInCircle as G, IconStarInCircleLight as H } from "./LogoEntry.C42bjw_J.js";
|
|
4
|
+
import { useState as j, useRef as k, useEffect as O, Fragment as F } from "react";
|
|
5
|
+
import c from "clsx";
|
|
6
|
+
import { Table as q, TableHead as J, TableRow as S, TableBody as Q, TableCell as l, TableCellSort as E, ButtonIconDelete as X } from "./ButtonIconDelete.qjiICD-C.js";
|
|
7
|
+
import { pluralize as v, ResponsiveTooltip as I, numberFormatter as Z, isProbablyMobile as ee } from "./App.DZsmgdSf.js";
|
|
8
|
+
const re = "av-pill", te = ({ variant: t }) => c("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
|
-
}),
|
|
13
|
+
}), P = ({ variant: t }) => c("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
|
-
}),
|
|
18
|
+
}), se = ({ variant: t }) => c({
|
|
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
|
-
}),
|
|
23
|
+
}), oe = (t) => {
|
|
24
24
|
const { className: a, variant: n } = t;
|
|
25
25
|
return {
|
|
26
|
-
main:
|
|
26
|
+
main: c(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
|
-
}),
|
|
31
|
-
button:
|
|
30
|
+
}), se(t), a),
|
|
31
|
+
button: c("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
|
-
},
|
|
36
|
-
const [
|
|
37
|
-
d && (d(
|
|
35
|
+
}, U = ({ label: t, className: a, variant: n = "information", description: m, onClose: d }) => {
|
|
36
|
+
const [p, g] = j(!0), C = (x) => {
|
|
37
|
+
d && (d(x), x.defaultPrevented || g(!1));
|
|
38
38
|
};
|
|
39
|
-
if (!
|
|
39
|
+
if (!p)
|
|
40
40
|
return null;
|
|
41
|
-
const
|
|
41
|
+
const f = oe({
|
|
42
42
|
className: a,
|
|
43
43
|
variant: n
|
|
44
44
|
});
|
|
45
|
-
return /* @__PURE__ */
|
|
45
|
+
return /* @__PURE__ */ u("div", {
|
|
46
46
|
role: "text",
|
|
47
|
-
className:
|
|
47
|
+
className: f.main,
|
|
48
48
|
children: [
|
|
49
49
|
m && /* @__PURE__ */ e("span", {
|
|
50
50
|
className: "sr-only",
|
|
@@ -55,100 +55,116 @@ const q = "av-pill", J = ({ variant: t }) => i("rounded-xs border", {
|
|
|
55
55
|
}),
|
|
56
56
|
d && /* @__PURE__ */ e("button", {
|
|
57
57
|
type: "button",
|
|
58
|
-
onClick:
|
|
59
|
-
className:
|
|
58
|
+
onClick: C,
|
|
59
|
+
className: f.button,
|
|
60
60
|
"aria-label": "Close",
|
|
61
|
-
children: /* @__PURE__ */ e(
|
|
61
|
+
children: /* @__PURE__ */ e(K, {
|
|
62
62
|
size: "size-3"
|
|
63
63
|
})
|
|
64
64
|
})
|
|
65
65
|
]
|
|
66
66
|
});
|
|
67
|
-
},
|
|
67
|
+
}, o = {
|
|
68
68
|
ROW: "row",
|
|
69
|
-
TIMESTAMP:
|
|
69
|
+
TIMESTAMP: w,
|
|
70
70
|
SUMMARY: "summary",
|
|
71
|
-
TOKEN_USAGE:
|
|
71
|
+
TOKEN_USAGE: y,
|
|
72
72
|
ACTIONS: "actions"
|
|
73
|
-
},
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
],
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
],
|
|
73
|
+
}, le = [
|
|
74
|
+
o.ROW,
|
|
75
|
+
o.TIMESTAMP,
|
|
76
|
+
o.SUMMARY,
|
|
77
|
+
o.ACTIONS
|
|
78
|
+
], ne = [
|
|
79
|
+
o.ROW,
|
|
80
|
+
o.SUMMARY,
|
|
81
|
+
o.TIMESTAMP,
|
|
82
|
+
o.TOKEN_USAGE,
|
|
83
|
+
o.ACTIONS
|
|
84
|
+
], he = ({
|
|
85
85
|
filteredHistory: t,
|
|
86
86
|
historyState: a,
|
|
87
87
|
lastEntryToLoad: n,
|
|
88
88
|
onClickSort: m,
|
|
89
89
|
onClickRestore: d,
|
|
90
|
-
onClickDelete:
|
|
91
|
-
onClickFavorite:
|
|
92
|
-
infinityScrollMarkerRef:
|
|
93
|
-
isLoading:
|
|
94
|
-
totalHistoryCount:
|
|
95
|
-
isFiltered:
|
|
96
|
-
isSearchActive:
|
|
90
|
+
onClickDelete: p,
|
|
91
|
+
onClickFavorite: g,
|
|
92
|
+
infinityScrollMarkerRef: C,
|
|
93
|
+
isLoading: f = !1,
|
|
94
|
+
totalHistoryCount: x,
|
|
95
|
+
isFiltered: D = !1,
|
|
96
|
+
isSearchActive: M = !1,
|
|
97
|
+
activeChatId: h
|
|
97
98
|
}) => {
|
|
98
|
-
const
|
|
99
|
+
const L = ee(), T = k(null), N = k(!1);
|
|
100
|
+
O(() => {
|
|
101
|
+
N.current = !1;
|
|
102
|
+
}, [h]), O(() => {
|
|
103
|
+
if (h && T.current && !N.current) {
|
|
104
|
+
N.current = !0;
|
|
105
|
+
const r = setTimeout(() => {
|
|
106
|
+
T.current?.scrollIntoView({
|
|
107
|
+
behavior: "smooth",
|
|
108
|
+
block: "center"
|
|
109
|
+
});
|
|
110
|
+
}, 100);
|
|
111
|
+
return () => clearTimeout(r);
|
|
112
|
+
}
|
|
113
|
+
}, [h, n]);
|
|
114
|
+
const A = L ? le : ne, B = (r) => {
|
|
99
115
|
switch (r) {
|
|
100
|
-
case
|
|
101
|
-
return /* @__PURE__ */ e(
|
|
102
|
-
case
|
|
103
|
-
return
|
|
104
|
-
|
|
116
|
+
case o.ROW:
|
|
117
|
+
return /* @__PURE__ */ e(l, { className: "sr-only", children: "Row" }, r);
|
|
118
|
+
case o.TIMESTAMP:
|
|
119
|
+
return M ? /* @__PURE__ */ e(l, { className: "text-xs sm:text-sm", children: "Date" }, r) : /* @__PURE__ */ e(
|
|
120
|
+
E,
|
|
105
121
|
{
|
|
106
122
|
focusMode: "system",
|
|
107
123
|
buttonClassName: "text-xs sm:text-sm",
|
|
108
|
-
cellId:
|
|
124
|
+
cellId: w,
|
|
109
125
|
align: "left",
|
|
110
126
|
sortDirection: a.sortDirection,
|
|
111
127
|
sortedCell: a.sortedCell,
|
|
112
128
|
onClick: () => {
|
|
113
|
-
m(
|
|
129
|
+
m(w);
|
|
114
130
|
},
|
|
115
131
|
children: "Date"
|
|
116
132
|
},
|
|
117
133
|
r
|
|
118
134
|
);
|
|
119
|
-
case
|
|
120
|
-
return /* @__PURE__ */ e(
|
|
121
|
-
case
|
|
122
|
-
return
|
|
123
|
-
|
|
135
|
+
case o.SUMMARY:
|
|
136
|
+
return /* @__PURE__ */ e(l, { className: "text-xs sm:text-sm", children: "Summary" }, r);
|
|
137
|
+
case o.TOKEN_USAGE:
|
|
138
|
+
return M ? /* @__PURE__ */ e(l, { className: "text-xs sm:text-sm text-right", children: "Tokens" }, r) : /* @__PURE__ */ e(
|
|
139
|
+
E,
|
|
124
140
|
{
|
|
125
141
|
focusMode: "system",
|
|
126
142
|
buttonClassName: "text-xs sm:text-sm",
|
|
127
|
-
cellId:
|
|
143
|
+
cellId: y,
|
|
128
144
|
align: "right",
|
|
129
145
|
sortDirection: a.sortDirection,
|
|
130
146
|
sortedCell: a.sortedCell,
|
|
131
147
|
onClick: () => {
|
|
132
|
-
m(
|
|
148
|
+
m(y);
|
|
133
149
|
},
|
|
134
150
|
children: "Tokens"
|
|
135
151
|
},
|
|
136
152
|
r
|
|
137
153
|
);
|
|
138
|
-
case
|
|
139
|
-
return /* @__PURE__ */ e(
|
|
154
|
+
case o.ACTIONS:
|
|
155
|
+
return /* @__PURE__ */ e(l, { className: "text-xs sm:text-sm text-right", children: "Actions" }, r);
|
|
140
156
|
default:
|
|
141
157
|
return null;
|
|
142
158
|
}
|
|
143
|
-
},
|
|
159
|
+
}, z = (r, s, b) => {
|
|
144
160
|
switch (r) {
|
|
145
|
-
case
|
|
146
|
-
return /* @__PURE__ */ e(
|
|
147
|
-
case
|
|
161
|
+
case o.ROW:
|
|
162
|
+
return /* @__PURE__ */ e(l, { children: b + 1 }, r);
|
|
163
|
+
case o.TIMESTAMP:
|
|
148
164
|
return /* @__PURE__ */ e(
|
|
149
|
-
|
|
165
|
+
l,
|
|
150
166
|
{
|
|
151
|
-
className:
|
|
167
|
+
className: c(
|
|
152
168
|
"dark:text-copy-medium",
|
|
153
169
|
"sm:whitespace-nowrap text-xs sm:text-sm max-w-20 sm:max-w-none"
|
|
154
170
|
),
|
|
@@ -156,28 +172,28 @@ const q = "av-pill", J = ({ variant: t }) => i("rounded-xs border", {
|
|
|
156
172
|
},
|
|
157
173
|
r
|
|
158
174
|
);
|
|
159
|
-
case
|
|
160
|
-
const
|
|
175
|
+
case o.SUMMARY: {
|
|
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;
|
|
161
177
|
return /* @__PURE__ */ e(
|
|
162
|
-
|
|
178
|
+
l,
|
|
163
179
|
{
|
|
164
|
-
className:
|
|
180
|
+
className: c(
|
|
165
181
|
"dark:text-white",
|
|
166
182
|
"max-w-25 sm:max-w-full text-xs sm:text-sm"
|
|
167
183
|
),
|
|
168
184
|
style: {
|
|
169
185
|
wordBreak: "break-word"
|
|
170
186
|
},
|
|
171
|
-
children: /* @__PURE__ */
|
|
172
|
-
/* @__PURE__ */
|
|
173
|
-
|
|
174
|
-
|
|
187
|
+
children: /* @__PURE__ */ u("div", { className: "flex flex-col gap-1", children: [
|
|
188
|
+
/* @__PURE__ */ u("div", { className: "flex flex-wrap gap-1", children: [
|
|
189
|
+
i !== null && /* @__PURE__ */ e(
|
|
190
|
+
U,
|
|
175
191
|
{
|
|
176
|
-
variant:
|
|
177
|
-
label: `${
|
|
192
|
+
variant: _,
|
|
193
|
+
label: `${i}% semantic`
|
|
178
194
|
}
|
|
179
195
|
),
|
|
180
|
-
|
|
196
|
+
$ && /* @__PURE__ */ e(U, { variant: "information", label: "keyword" })
|
|
181
197
|
] }),
|
|
182
198
|
/* @__PURE__ */ e("span", { children: s.summary })
|
|
183
199
|
] })
|
|
@@ -185,29 +201,29 @@ const q = "av-pill", J = ({ variant: t }) => i("rounded-xs border", {
|
|
|
185
201
|
r
|
|
186
202
|
);
|
|
187
203
|
}
|
|
188
|
-
case
|
|
204
|
+
case o.TOKEN_USAGE:
|
|
189
205
|
return /* @__PURE__ */ e(
|
|
190
|
-
|
|
206
|
+
l,
|
|
191
207
|
{
|
|
192
|
-
className:
|
|
208
|
+
className: c("dark:text-copy-medium", "text-xs sm:text-sm"),
|
|
193
209
|
align: "right",
|
|
194
|
-
children: s.tokenUsage ?
|
|
210
|
+
children: s.tokenUsage ? Z.format(s.tokenUsage) : "0"
|
|
195
211
|
},
|
|
196
212
|
r
|
|
197
213
|
);
|
|
198
|
-
case
|
|
214
|
+
case o.ACTIONS:
|
|
199
215
|
return /* @__PURE__ */ e(
|
|
200
|
-
|
|
216
|
+
l,
|
|
201
217
|
{
|
|
202
218
|
className: "border-l border-table-light dark:border-table-dark",
|
|
203
|
-
children: /* @__PURE__ */
|
|
219
|
+
children: /* @__PURE__ */ u("div", { className: "flex flex-col items-end sm:flex-row gap-2", children: [
|
|
204
220
|
/* @__PURE__ */ e(
|
|
205
|
-
|
|
221
|
+
I,
|
|
206
222
|
{
|
|
207
223
|
label: "Restore chat",
|
|
208
224
|
placement: "top",
|
|
209
225
|
trigger: /* @__PURE__ */ e(
|
|
210
|
-
|
|
226
|
+
R,
|
|
211
227
|
{
|
|
212
228
|
noBorder: !0,
|
|
213
229
|
label: "Restore chat",
|
|
@@ -216,7 +232,7 @@ const q = "av-pill", J = ({ variant: t }) => i("rounded-xs border", {
|
|
|
216
232
|
await d(s);
|
|
217
233
|
},
|
|
218
234
|
children: /* @__PURE__ */ e(
|
|
219
|
-
|
|
235
|
+
W,
|
|
220
236
|
{
|
|
221
237
|
size: "size-3",
|
|
222
238
|
monotone: !0,
|
|
@@ -228,31 +244,31 @@ const q = "av-pill", J = ({ variant: t }) => i("rounded-xs border", {
|
|
|
228
244
|
}
|
|
229
245
|
),
|
|
230
246
|
/* @__PURE__ */ e(
|
|
231
|
-
|
|
247
|
+
I,
|
|
232
248
|
{
|
|
233
249
|
label: s.favoriteChat ? "Remove from favorites" : "Add to favorites",
|
|
234
250
|
placement: "top",
|
|
235
251
|
trigger: /* @__PURE__ */ e(
|
|
236
|
-
|
|
252
|
+
R,
|
|
237
253
|
{
|
|
238
254
|
noBorder: !0,
|
|
239
255
|
label: s.favoriteChat ? "Remove from favorites" : "Add to favorites",
|
|
240
256
|
variant: "primary",
|
|
241
257
|
onClick: async () => {
|
|
242
|
-
await
|
|
258
|
+
await g(s);
|
|
243
259
|
},
|
|
244
|
-
children: s.favoriteChat ? /* @__PURE__ */ e(
|
|
260
|
+
children: s.favoriteChat ? /* @__PURE__ */ e(G, { size: "size-4", monotone: !0 }) : /* @__PURE__ */ e(H, { size: "size-4", monotone: !0 })
|
|
245
261
|
}
|
|
246
262
|
)
|
|
247
263
|
}
|
|
248
264
|
),
|
|
249
265
|
/* @__PURE__ */ e(
|
|
250
|
-
|
|
266
|
+
X,
|
|
251
267
|
{
|
|
252
268
|
label: "Delete chat",
|
|
253
269
|
disabled: !1,
|
|
254
270
|
onClick: () => {
|
|
255
|
-
|
|
271
|
+
p(s);
|
|
256
272
|
}
|
|
257
273
|
}
|
|
258
274
|
)
|
|
@@ -264,29 +280,39 @@ const q = "av-pill", J = ({ variant: t }) => i("rounded-xs border", {
|
|
|
264
280
|
return null;
|
|
265
281
|
}
|
|
266
282
|
};
|
|
267
|
-
return /* @__PURE__ */
|
|
268
|
-
|
|
283
|
+
return /* @__PURE__ */ u(
|
|
284
|
+
q,
|
|
269
285
|
{
|
|
270
286
|
stickyHeader: !0,
|
|
271
287
|
compact: !0,
|
|
272
288
|
mode: "alt-system",
|
|
273
289
|
caption: (() => {
|
|
274
|
-
const r = t.length, s =
|
|
275
|
-
return
|
|
290
|
+
const r = t.length, s = x ?? r;
|
|
291
|
+
return D && s > r ? `Showing ${v(`${r} chat`, r)} out of ${s}` : v(`${r} chat`, r);
|
|
276
292
|
})(),
|
|
277
|
-
disabled:
|
|
293
|
+
disabled: f && t.length > 0,
|
|
278
294
|
children: [
|
|
279
|
-
/* @__PURE__ */ e(
|
|
280
|
-
/* @__PURE__ */ e(
|
|
281
|
-
|
|
282
|
-
/* @__PURE__ */
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
295
|
+
/* @__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(l, { colSpan: 1e3, children: /* @__PURE__ */ e("div", { children: "Loading..." }) }) }) : t.slice(0, n).map((r, s) => {
|
|
297
|
+
const b = h === r.id;
|
|
298
|
+
return r?.summary ? /* @__PURE__ */ u(F, { children: [
|
|
299
|
+
s === n - Y && /* @__PURE__ */ e("tr", { ref: C }),
|
|
300
|
+
/* @__PURE__ */ e(
|
|
301
|
+
S,
|
|
302
|
+
{
|
|
303
|
+
ref: b ? T : void 0,
|
|
304
|
+
active: b,
|
|
305
|
+
children: A.map(
|
|
306
|
+
(i) => z(i, r, s)
|
|
307
|
+
)
|
|
308
|
+
}
|
|
309
|
+
)
|
|
310
|
+
] }, `${V.HISTORY.TITLE}-${r.id}-${s}`) : null;
|
|
311
|
+
}) })
|
|
286
312
|
]
|
|
287
313
|
}
|
|
288
314
|
);
|
|
289
315
|
};
|
|
290
316
|
export {
|
|
291
|
-
|
|
317
|
+
he as ChatHistoryTable
|
|
292
318
|
};
|