@versini/sassysaint 8.118.3 → 8.119.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.CzRPl_ZJ.js → AboutChangelog.B3zToB4T.js} +2 -2
- package/dist/chunks/{AboutEntry.T0dEx5ss.js → AboutEntry.Dc0GMtzL.js} +7 -7
- package/dist/chunks/{App.b-02jOnK.js → App.Bcw00dJK.js} +648 -647
- package/dist/chunks/{BubbleActions.DlzjlTV0.js → BubbleActions.BcwPpzhU.js} +3 -3
- package/dist/chunks/ButtonIconDelete.CASHORv6.js +523 -0
- package/dist/chunks/{Chart.DGg3yX93.js → Chart.B0oqrdYo.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.DuOK1hTq.js → ChatBubbleAssistant.DAwx85Wd.js} +9 -6
- package/dist/chunks/{ChatBubbleUser.BbO4WHsG.js → ChatBubbleUser.BRTLYDmZ.js} +4 -4
- package/dist/chunks/HistoryDataGrid.Bg984Jd_.js +465 -0
- package/dist/chunks/HistoryEntry.4GpBDf9x.js +305 -0
- package/dist/chunks/InlineFilter.Cv_LUpTp.js +123 -0
- package/dist/chunks/{LoginEntry.BzDE1Poe.js → LoginEntry.5bQhuYQl.js} +4 -4
- package/dist/chunks/{LogoEntry.cAcKJnnq.js → LogoEntry.CN5P16eA.js} +175 -163
- package/dist/chunks/{MemoriesEntry.BOW5ccxB.js → MemoriesEntry.D0q1U5FD.js} +234 -206
- package/dist/chunks/{ProfileEntry.D0ZvtSLW.js → ProfileEntry.Ck-5SP70.js} +4 -4
- package/dist/chunks/{SettingsEntry.Cu6XoVBP.js → SettingsEntry.CfB9DKIp.js} +5 -5
- package/dist/chunks/{UsageEntry.Dg2VQMNQ.js → UsageEntry.BCFJMOjQ.js} +5 -5
- package/dist/chunks/{_baseUniq.CDFOdpsq.js → _baseUniq.DRTEXwBu.js} +1 -1
- package/dist/chunks/{arc.DIMWacuO.js → arc.x_GRGNuD.js} +1 -1
- package/dist/chunks/{architecture-U656AL7Q.EZuTwf79.js → architecture-U656AL7Q.DSfD0nUy.js} +1 -1
- package/dist/chunks/{architectureDiagram-VXUJARFQ.XWG69Opw.js → architectureDiagram-VXUJARFQ.CAS-oDjc.js} +4 -4
- package/dist/chunks/{blockDiagram-VD42YOAC.DTDyWto5.js → blockDiagram-VD42YOAC.P_XB2AgQ.js} +5 -5
- package/dist/chunks/{browser.BUwFK0it.js → browser.oW1ZW8ge.js} +1 -1
- package/dist/chunks/{c4Diagram-YG6GDRKO.CiOZ3jjz.js → c4Diagram-YG6GDRKO.Dc9Vyv3k.js} +2 -2
- package/dist/chunks/{channel.CNtCxYS9.js → channel.TjlRRr3U.js} +1 -1
- package/dist/chunks/{chunk-4BX2VUAB.BmiSnljb.js → chunk-4BX2VUAB.BwgmyLAX.js} +1 -1
- package/dist/chunks/{chunk-55IACEB6.CypQ3DlX.js → chunk-55IACEB6.Cgq1oeLK.js} +1 -1
- package/dist/chunks/{chunk-B4BG7PRW.CAsGHOXd.js → chunk-B4BG7PRW.Ds2wbzEG.js} +4 -4
- package/dist/chunks/{chunk-DI55MBZ5.BsvwBeSE.js → chunk-DI55MBZ5.Bft9jyaz.js} +3 -3
- package/dist/chunks/{chunk-FMBD7UC4.CMZG9a_j.js → chunk-FMBD7UC4.DF-Zr883.js} +1 -1
- package/dist/chunks/{chunk-QN33PNHL.B1G6yVKe.js → chunk-QN33PNHL.BVMRH_Hs.js} +1 -1
- package/dist/chunks/{chunk-QZHKN3VN.BVTUFZ9G.js → chunk-QZHKN3VN.DS306ds1.js} +1 -1
- package/dist/chunks/{chunk-TZMSLE5B.Cj68sFYC.js → chunk-TZMSLE5B.Cl4RUaGp.js} +1 -1
- package/dist/chunks/{classDiagram-2ON5EDUG.BdBLe1Pm.js → classDiagram-2ON5EDUG.DbFfjSp_.js} +2 -2
- package/dist/chunks/{classDiagram-v2-WZHVMYZB.BdBLe1Pm.js → classDiagram-v2-WZHVMYZB.DbFfjSp_.js} +2 -2
- package/dist/chunks/{clone.Bl1H1sdZ.js → clone.B8XxgJj0.js} +1 -1
- package/dist/chunks/{cose-bilkent-S5V4N54A.BngEZF8t.js → cose-bilkent-S5V4N54A.CL-tsB7O.js} +2 -2
- package/dist/chunks/{dagre-6UL2VRFP.BIOJIiYB.js → dagre-6UL2VRFP.7xKesqEK.js} +5 -5
- package/dist/chunks/{diagram-PSM6KHXK.BA3fj6Nq.js → diagram-PSM6KHXK.D6JNXJQr.js} +4 -4
- package/dist/chunks/{diagram-QEK2KX5R.BDz34UEM.js → diagram-QEK2KX5R.VaJKE9Ih.js} +3 -3
- package/dist/chunks/{diagram-S2PKOQOG.BtdDbeYp.js → diagram-S2PKOQOG.BjCuqhPd.js} +3 -3
- package/dist/chunks/{erDiagram-Q2GNP2WA.DYaFc4z-.js → erDiagram-Q2GNP2WA.BYnxwTG-.js} +4 -4
- package/dist/chunks/{flowDiagram-NV44I4VS.D-v3of4Q.js → flowDiagram-NV44I4VS.DefWDma3.js} +5 -5
- package/dist/chunks/{ganttDiagram-JELNMOA3.oDBdmAkc.js → ganttDiagram-JELNMOA3.BrEeaW2n.js} +2 -2
- package/dist/chunks/{gitGraph-F6HP7TQM.DN2di_Fe.js → gitGraph-F6HP7TQM.C4_YWAr0.js} +1 -1
- package/dist/chunks/{gitGraphDiagram-NY62KEGX.DajMwrkL.js → gitGraphDiagram-NY62KEGX.GGrXKGya.js} +4 -4
- package/dist/chunks/{graph.B6hUKMGa.js → graph.BxDrvENy.js} +2 -2
- package/dist/chunks/{index.BP0mr4EX.js → index.BMADibmh.js} +3 -3
- package/dist/chunks/{index.Ce-phw-r.js → index.CR0NHbVR.js} +1 -1
- package/dist/chunks/{index.5G9kbS3g.js → index.CZRaE0eA.js} +1 -1
- package/dist/chunks/{index.BK8xVBCf.js → index.CsAjUl3G.js} +3 -3
- package/dist/chunks/{index.DVhdxxbV.js → index.DOwjLeiM.js} +1 -1
- package/dist/chunks/{index.BdK0dyZF.js → index.DS9SCH32.js} +1 -1
- package/dist/chunks/{index.WKe5H80p.js → index.DvThh-C6.js} +1 -1
- package/dist/chunks/{index.CK-6GwI_.js → index.o4ZD5ALX.js} +5 -5
- package/dist/chunks/{index.BYnYkgl6.js → index.tqKeN7sl.js} +1 -1
- package/dist/chunks/{info-NVLQJR56.Ff-LQyU7.js → info-NVLQJR56.E0G9wIVE.js} +1 -1
- package/dist/chunks/{infoDiagram-WHAUD3N6.B1g8ka0M.js → infoDiagram-WHAUD3N6.CY9ADLsc.js} +2 -2
- package/dist/chunks/{journeyDiagram-XKPGCS4Q.B2pvmFIq.js → journeyDiagram-XKPGCS4Q.BZHhK7w4.js} +4 -4
- package/dist/chunks/{kanban-definition-3W4ZIXB7.86ACWbVN.js → kanban-definition-3W4ZIXB7.DQSZD0Em.js} +2 -2
- package/dist/chunks/{layout.BTjGFptt.js → layout.DUh_4gWb.js} +4 -4
- package/dist/chunks/{mermaid-parser.core.AD6ac88f.js → mermaid-parser.core.lAJFSSvC.js} +10 -10
- package/dist/chunks/{min.D3P2ZKZS.js → min.B3NH5ZNz.js} +2 -2
- package/dist/chunks/{mindmap-definition-VGOIOE7T.DODKOgNQ.js → mindmap-definition-VGOIOE7T.CVTcq_-S.js} +257 -232
- package/dist/chunks/{packet-BFZMPI3H.5TsgoQAg.js → packet-BFZMPI3H.CaaCaP6S.js} +1 -1
- package/dist/chunks/{pie-7BOR55EZ.Cjt_2-eq.js → pie-7BOR55EZ.Ctr5Wngs.js} +1 -1
- package/dist/chunks/{pieDiagram-ADFJNKIX.C5d0mn2P.js → pieDiagram-ADFJNKIX.v0K5SYBL.js} +4 -4
- package/dist/chunks/{quadrantDiagram-AYHSOK5B.Cpz6Q0uO.js → quadrantDiagram-AYHSOK5B.CSGhc5R-.js} +1 -1
- package/dist/chunks/{radar-NHE76QYJ.C4ikLYa9.js → radar-NHE76QYJ.BYJioslS.js} +1 -1
- package/dist/chunks/{rehype-mermaid.BAT9MpFC.js → rehype-mermaid.CYJb7tO-.js} +33 -33
- package/dist/chunks/{requirementDiagram-UZGBJVZJ.BxNfK087.js → requirementDiagram-UZGBJVZJ.07FdvPam.js} +3 -3
- package/dist/chunks/{sankeyDiagram-TZEHDZUN.DbQNnnUN.js → sankeyDiagram-TZEHDZUN.BJQl-LVq.js} +1 -1
- package/dist/chunks/{sequenceDiagram-WL72ISMW.BJlAOxoz.js → sequenceDiagram-WL72ISMW.D3HP-wCt.js} +3 -3
- package/dist/chunks/{stateDiagram-FKZM4ZOC.Dv1-v3Pv.js → stateDiagram-FKZM4ZOC.uXuYKEnS.js} +4 -4
- package/dist/chunks/{stateDiagram-v2-4FDKWEC3.C7A0KOQG.js → stateDiagram-v2-4FDKWEC3.i7NR_lBC.js} +2 -2
- package/dist/chunks/{timeline-definition-IT6M3QCI.BnnEO1qA.js → timeline-definition-IT6M3QCI.CfrxZtW7.js} +2 -2
- package/dist/chunks/{treemap-KMMF4GRG.ktiMR3IF.js → treemap-KMMF4GRG.D0E-EXib.js} +1 -1
- package/dist/chunks/{useMarkdown.gc4xGDfZ.js → useMarkdown.CVmi3L7b.js} +8 -8
- package/dist/chunks/{xychartDiagram-PRI3JC2R.RJg0uRPz.js → xychartDiagram-PRI3JC2R.BedGeb-X.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 +4 -4
- package/dist/chunks/ButtonIconDelete.c_Sj_7Q4.js +0 -326
- package/dist/chunks/ChatHistoryTable.6lV7mI6Q.js +0 -322
- package/dist/chunks/HistoryEntry.C8W5YNCP.js +0 -333
- package/dist/chunks/useAnimatedHeight.CkKrKI_C.js +0 -91
|
@@ -1,326 +0,0 @@
|
|
|
1
|
-
import { jsx as l, jsxs as k, Fragment as w } from "react/jsx-runtime";
|
|
2
|
-
import i from "clsx";
|
|
3
|
-
import { ButtonIcon as _, TableCellSortDirections as f, IconSortUp as N, IconSortDown as T, IconSort as W, IconDelete as E } from "./LogoEntry.cAcKJnnq.js";
|
|
4
|
-
import u, { useContext as m } from "react";
|
|
5
|
-
import { ResponsiveTooltip as R } from "./App.b-02jOnK.js";
|
|
6
|
-
function S({ children: e, mode: t = "system", className: r, active: a = !1, ref: s, ...n }) {
|
|
7
|
-
const o = a ? i("relative", "focus-within:static", "focus-within:after:border-transparent", "after:absolute", "after:content-['']", "after:border-b-2", "after:-bottom-1", "after:left-0", "after:right-0", {
|
|
8
|
-
"after:border-table-light": t === "dark",
|
|
9
|
-
"after:border-table-dark": t === "light",
|
|
10
|
-
"after:border-table-light dark:after:border-table-dark": t === "system",
|
|
11
|
-
"after:border-table-dark dark:after:border-table-light": t === "alt-system"
|
|
12
|
-
}) : "";
|
|
13
|
-
return /* @__PURE__ */ l("div", {
|
|
14
|
-
className: o,
|
|
15
|
-
children: /* @__PURE__ */ l(_, {
|
|
16
|
-
className: r,
|
|
17
|
-
ref: s,
|
|
18
|
-
mode: t,
|
|
19
|
-
radius: "small",
|
|
20
|
-
size: "small",
|
|
21
|
-
align: "center",
|
|
22
|
-
...n,
|
|
23
|
-
children: e
|
|
24
|
-
})
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
const p = u.createContext({
|
|
28
|
-
mode: "light",
|
|
29
|
-
cellWrapper: "thead",
|
|
30
|
-
stickyHeader: !1,
|
|
31
|
-
stickyFooter: !1,
|
|
32
|
-
compact: !1
|
|
33
|
-
});
|
|
34
|
-
const v = "thead", C = "tfoot", x = "tbody", z = ({ mode: e }) => i("size-8", "align-[-0.125em]", "border-4", "inline-block animate-spin rounded-full border-solid border-current border-r-transparent motion-reduce:animate-[spin_1.5s_linear_infinite]", {
|
|
35
|
-
"text-copy-dark": e === "light",
|
|
36
|
-
"text-copy-light": e === "dark",
|
|
37
|
-
"text-copy-dark dark:text-copy-light": e === "alt-system",
|
|
38
|
-
"text-copy-light dark:text-copy-dark": e === "system"
|
|
39
|
-
}), B = ({ mode: e }) => ({
|
|
40
|
-
inner: "relative",
|
|
41
|
-
overlay: i("absolute inset-0 z-20 cursor-not-allowed", "backdrop-blur-xs bg-white/30 dark:bg-black/30"),
|
|
42
|
-
spinnerWrapper: i("absolute z-30 top-0 left-0 right-0 h-[min(100%,100vh)]", "flex items-center justify-center", "pointer-events-none"),
|
|
43
|
-
spinner: z({
|
|
44
|
-
mode: e
|
|
45
|
-
})
|
|
46
|
-
}), L = ({ mode: e, className: t, wrapperClassName: r, stickyHeader: a, stickyFooter: s, disabled: n }) => {
|
|
47
|
-
const o = n ? B({
|
|
48
|
-
mode: e
|
|
49
|
-
}) : null;
|
|
50
|
-
return {
|
|
51
|
-
overlay: o?.overlay ?? "",
|
|
52
|
-
inner: o?.inner ?? "",
|
|
53
|
-
spinnerWrapper: o?.spinnerWrapper ?? "",
|
|
54
|
-
spinner: o?.spinner ?? "",
|
|
55
|
-
wrapper: i("not-prose relative w-full rounded-lg shadow-md", {
|
|
56
|
-
"overflow-x-auto": !a && !s && !n,
|
|
57
|
-
"overflow-y-scroll": (a || s) && !n,
|
|
58
|
-
"overflow-hidden": n,
|
|
59
|
-
"bg-surface-darker": e === "dark" || e === "system",
|
|
60
|
-
"bg-surface-light": e === "light" || e === "alt-system",
|
|
61
|
-
"dark:bg-surface-light": e === "system",
|
|
62
|
-
"dark:bg-surface-darker": e === "alt-system",
|
|
63
|
-
"text-copy-light": e === "dark",
|
|
64
|
-
"text-copy-dark": e === "light",
|
|
65
|
-
"text-copy-light dark:text-copy-dark": e === "system",
|
|
66
|
-
"text-copy-dark dark:text-copy-light": e === "alt-system"
|
|
67
|
-
}, r),
|
|
68
|
-
table: i("my-0 w-full text-left text-sm", t, {
|
|
69
|
-
"text-copy-light": e === "dark",
|
|
70
|
-
"text-copy-dark": e === "light",
|
|
71
|
-
"text-copy-light dark:text-copy-dark": e === "system",
|
|
72
|
-
"text-copy-dark dark:text-copy-light": e === "alt-system"
|
|
73
|
-
}),
|
|
74
|
-
caption: i("py-2 text-sm font-bold", {
|
|
75
|
-
"text-copy-light": e === "dark",
|
|
76
|
-
"text-copy-dark": e === "light",
|
|
77
|
-
"text-copy-light dark:text-copy-dark": e === "system",
|
|
78
|
-
"text-copy-dark dark:text-copy-light": e === "alt-system"
|
|
79
|
-
})
|
|
80
|
-
};
|
|
81
|
-
}, j = ({ className: e, stickyHeader: t, mode: r }) => i({
|
|
82
|
-
"sticky top-0 z-10": t,
|
|
83
|
-
"shadow-[rgb(190_190_190_/20%)_0_0.5rem_1rem]": t && r === "dark",
|
|
84
|
-
"shadow-[rgb(190_190_190_/20%)_0_0.5rem_1rem] dark:shadow-[rgb(65_65_65_/30%)_0_0.5rem_1rem]": t && r === "system",
|
|
85
|
-
"shadow-[rgb(65_65_65_/30%)_0_0.5rem_1rem]": t && r === "light",
|
|
86
|
-
"shadow-[rgb(65_65_65_/30%)_0_0.5rem_1rem] dark:shadow-[rgb(190_190_190_/20%)_0_0.5rem_1rem]": t && r === "alt-system"
|
|
87
|
-
}, e), A = ({ mode: e, className: t, cellWrapper: r }) => r === v || r === C ? i({
|
|
88
|
-
"bg-table-head-dark": e === "dark" || e === "system",
|
|
89
|
-
"bg-table-head-light": e === "light" || e === "alt-system",
|
|
90
|
-
"dark:bg-table-head-light": e === "system",
|
|
91
|
-
"dark:bg-table-head-dark": e === "alt-system"
|
|
92
|
-
}, t) : i("border-b last:border-0", {
|
|
93
|
-
"border-table-dark": e === "dark" || e === "system",
|
|
94
|
-
"border-table-light": e === "light" || e === "alt-system",
|
|
95
|
-
"dark:border-table-light": e === "system",
|
|
96
|
-
"dark:border-table-dark": e === "alt-system",
|
|
97
|
-
"odd:bg-table-dark-odd even:bg-table-dark-even": e === "dark",
|
|
98
|
-
"hover:bg-table-dark-hover": e === "dark",
|
|
99
|
-
"odd:bg-table-light-odd even:bg-table-light-even": e === "light",
|
|
100
|
-
"hover:bg-table-light-hover": e === "light",
|
|
101
|
-
"odd:bg-table-dark-odd even:bg-table-dark-even dark:odd:bg-table-light-odd dark:even:bg-table-light-even": e === "system",
|
|
102
|
-
"hover:bg-table-dark-hover dark:hover:bg-table-light-hover": e === "system",
|
|
103
|
-
"odd:bg-table-light-odd even:bg-table-light-even dark:odd:bg-table-dark-odd dark:even:bg-table-dark-even": e === "alt-system",
|
|
104
|
-
"hover:bg-table-light-hover dark:hover:bg-table-dark-hover": e === "alt-system"
|
|
105
|
-
}, t), D = ({ cellWrapper: e, className: t, compact: r, mode: a, align: s, active: n = !1 }) => ({
|
|
106
|
-
alignClasses: i({
|
|
107
|
-
"flex justify-start text-left": s === "left",
|
|
108
|
-
"flex justify-center text-center": s === "center",
|
|
109
|
-
"flex justify-end text-right": s === "right"
|
|
110
|
-
}),
|
|
111
|
-
mainClasses: i({
|
|
112
|
-
"text-copy-light": a === "dark" || a === "system",
|
|
113
|
-
"text-copy-dark": a === "light" || a === "alt-system",
|
|
114
|
-
"dark:text-copy-dark": a === "system",
|
|
115
|
-
"dark:text-copy-light": a === "alt-system",
|
|
116
|
-
"px-4 py-3": !r && (e === v || e === C),
|
|
117
|
-
"p-4": !r && e === x,
|
|
118
|
-
"px-2 py-1.5": r,
|
|
119
|
-
/**
|
|
120
|
-
* Active state - left border indicator on first cell using pseudo-element
|
|
121
|
-
* Inset slightly from top/bottom to avoid overlapping row borders.
|
|
122
|
-
*/
|
|
123
|
-
"relative before:absolute before:left-0 before:top-0 before:bottom-0 before:w-1": n,
|
|
124
|
-
"before:bg-table-active-dark": n && a === "dark",
|
|
125
|
-
"before:bg-table-active-light": n && a === "light",
|
|
126
|
-
"before:bg-table-active-dark dark:before:bg-table-active-light": n && a === "system",
|
|
127
|
-
"before:bg-table-active-light dark:before:bg-table-active-dark": n && a === "alt-system"
|
|
128
|
-
}, t)
|
|
129
|
-
}), P = ({ buttonClassName: e }) => i("rounded-none text-sm", e);
|
|
130
|
-
const Y = ({ children: e, mode: t = "system", caption: r, compact: a, disabled: s = !1, summary: n, className: o, wrapperClassName: d, maxHeight: c, stickyHeader: g, stickyFooter: h, ...y }) => {
|
|
131
|
-
const b = L({
|
|
132
|
-
mode: t,
|
|
133
|
-
className: o,
|
|
134
|
-
wrapperClassName: d,
|
|
135
|
-
stickyHeader: g,
|
|
136
|
-
stickyFooter: h,
|
|
137
|
-
disabled: s
|
|
138
|
-
});
|
|
139
|
-
return /* @__PURE__ */ l(p.Provider, {
|
|
140
|
-
value: {
|
|
141
|
-
mode: t,
|
|
142
|
-
stickyHeader: g,
|
|
143
|
-
stickyFooter: h,
|
|
144
|
-
compact: a
|
|
145
|
-
},
|
|
146
|
-
children: /* @__PURE__ */ l("div", {
|
|
147
|
-
className: b.wrapper,
|
|
148
|
-
...c && {
|
|
149
|
-
style: {
|
|
150
|
-
maxHeight: c
|
|
151
|
-
}
|
|
152
|
-
},
|
|
153
|
-
children: s ? /* @__PURE__ */ k(w, {
|
|
154
|
-
children: [
|
|
155
|
-
/* @__PURE__ */ l("div", {
|
|
156
|
-
className: b.spinnerWrapper,
|
|
157
|
-
children: /* @__PURE__ */ l("div", {
|
|
158
|
-
className: b.spinner,
|
|
159
|
-
role: "status",
|
|
160
|
-
children: /* @__PURE__ */ l("span", {
|
|
161
|
-
className: "sr-only",
|
|
162
|
-
children: "Loading..."
|
|
163
|
-
})
|
|
164
|
-
})
|
|
165
|
-
}),
|
|
166
|
-
/* @__PURE__ */ k("div", {
|
|
167
|
-
className: b.inner,
|
|
168
|
-
children: [
|
|
169
|
-
/* @__PURE__ */ l("div", {
|
|
170
|
-
className: b.overlay
|
|
171
|
-
}),
|
|
172
|
-
/* @__PURE__ */ k("table", {
|
|
173
|
-
className: b.table,
|
|
174
|
-
summary: n,
|
|
175
|
-
...s && {
|
|
176
|
-
"aria-disabled": "true"
|
|
177
|
-
},
|
|
178
|
-
...y,
|
|
179
|
-
children: [
|
|
180
|
-
r && /* @__PURE__ */ l("caption", {
|
|
181
|
-
className: b.caption,
|
|
182
|
-
children: r
|
|
183
|
-
}),
|
|
184
|
-
e
|
|
185
|
-
]
|
|
186
|
-
})
|
|
187
|
-
]
|
|
188
|
-
})
|
|
189
|
-
]
|
|
190
|
-
}) : /* @__PURE__ */ k("table", {
|
|
191
|
-
className: b.table,
|
|
192
|
-
summary: n,
|
|
193
|
-
...y,
|
|
194
|
-
children: [
|
|
195
|
-
r && /* @__PURE__ */ l("caption", {
|
|
196
|
-
className: b.caption,
|
|
197
|
-
children: r
|
|
198
|
-
}),
|
|
199
|
-
e
|
|
200
|
-
]
|
|
201
|
-
})
|
|
202
|
-
})
|
|
203
|
-
});
|
|
204
|
-
}, q = ({ children: e, className: t, ...r }) => {
|
|
205
|
-
const a = m(p);
|
|
206
|
-
a.cellWrapper = v;
|
|
207
|
-
const s = j({
|
|
208
|
-
className: t,
|
|
209
|
-
mode: a.mode,
|
|
210
|
-
stickyHeader: a.stickyHeader
|
|
211
|
-
});
|
|
212
|
-
return /* @__PURE__ */ l("thead", {
|
|
213
|
-
className: s,
|
|
214
|
-
...r,
|
|
215
|
-
children: e
|
|
216
|
-
});
|
|
217
|
-
}, G = ({ children: e, ...t }) => {
|
|
218
|
-
const r = m(p);
|
|
219
|
-
return r.cellWrapper = x, /* @__PURE__ */ l("tbody", {
|
|
220
|
-
...t,
|
|
221
|
-
children: e
|
|
222
|
-
});
|
|
223
|
-
}, H = ({ children: e, className: t, active: r = !1, ...a }) => {
|
|
224
|
-
const s = m(p), n = A({
|
|
225
|
-
mode: s.mode,
|
|
226
|
-
cellWrapper: s.cellWrapper,
|
|
227
|
-
className: t
|
|
228
|
-
}), o = r && s.cellWrapper === x ? u.Children.map(e, (d, c) => c === 0 && /* @__PURE__ */ u.isValidElement(d) ? /* @__PURE__ */ u.cloneElement(d, {
|
|
229
|
-
_active: !0
|
|
230
|
-
}) : d) : e;
|
|
231
|
-
return /* @__PURE__ */ l("tr", {
|
|
232
|
-
className: n,
|
|
233
|
-
...a,
|
|
234
|
-
children: o
|
|
235
|
-
});
|
|
236
|
-
}, O = ({ children: e, component: t, className: r, align: a, _active: s, ...n }) => {
|
|
237
|
-
const o = m(p), d = t || (o.cellWrapper === v ? "th" : "td"), { mainClasses: c, alignClasses: g } = D({
|
|
238
|
-
cellWrapper: o.cellWrapper,
|
|
239
|
-
className: r,
|
|
240
|
-
mode: o.mode,
|
|
241
|
-
compact: o.compact,
|
|
242
|
-
align: a,
|
|
243
|
-
active: s
|
|
244
|
-
});
|
|
245
|
-
return a ? /* @__PURE__ */ l(d, {
|
|
246
|
-
className: c,
|
|
247
|
-
...n,
|
|
248
|
-
children: /* @__PURE__ */ l("div", {
|
|
249
|
-
className: g,
|
|
250
|
-
children: e
|
|
251
|
-
})
|
|
252
|
-
}) : /* @__PURE__ */ l(d, {
|
|
253
|
-
className: c,
|
|
254
|
-
...n,
|
|
255
|
-
children: e
|
|
256
|
-
});
|
|
257
|
-
}, J = ({ align: e, children: t, buttonClassName: r, className: a, component: s, focusMode: n = "alt-system", mode: o = "alt-system", onClick: d, sortDirection: c, sortedCell: g, cellId: h, ...y }) => {
|
|
258
|
-
const b = P({
|
|
259
|
-
buttonClassName: r
|
|
260
|
-
});
|
|
261
|
-
return /* @__PURE__ */ l(O, {
|
|
262
|
-
component: s,
|
|
263
|
-
className: a,
|
|
264
|
-
role: "columnheader",
|
|
265
|
-
"aria-sort": c === f.ASC && g === h ? "ascending" : c === f.DESC && g === h ? "descending" : "other",
|
|
266
|
-
...y,
|
|
267
|
-
children: /* @__PURE__ */ l(S, {
|
|
268
|
-
active: g === h,
|
|
269
|
-
className: b,
|
|
270
|
-
onClick: d,
|
|
271
|
-
align: e,
|
|
272
|
-
noBorder: !0,
|
|
273
|
-
focusMode: n,
|
|
274
|
-
mode: o,
|
|
275
|
-
fullWidth: !0,
|
|
276
|
-
labelRight: t,
|
|
277
|
-
children: c === f.ASC && g === h ? /* @__PURE__ */ l(N, {
|
|
278
|
-
className: "size-4",
|
|
279
|
-
monotone: !0
|
|
280
|
-
}) : c === f.DESC && g === h ? /* @__PURE__ */ l(T, {
|
|
281
|
-
className: "size-4",
|
|
282
|
-
monotone: !0
|
|
283
|
-
}) : /* @__PURE__ */ l(W, {
|
|
284
|
-
className: "size-4",
|
|
285
|
-
monotone: !0
|
|
286
|
-
})
|
|
287
|
-
})
|
|
288
|
-
});
|
|
289
|
-
}, K = ({
|
|
290
|
-
label: e,
|
|
291
|
-
disabled: t,
|
|
292
|
-
onClick: r
|
|
293
|
-
}) => /* @__PURE__ */ l(
|
|
294
|
-
R,
|
|
295
|
-
{
|
|
296
|
-
label: e,
|
|
297
|
-
placement: "top",
|
|
298
|
-
trigger: /* @__PURE__ */ l(
|
|
299
|
-
_,
|
|
300
|
-
{
|
|
301
|
-
noBorder: !0,
|
|
302
|
-
variant: "primary",
|
|
303
|
-
label: e,
|
|
304
|
-
disabled: t,
|
|
305
|
-
onClick: r,
|
|
306
|
-
children: /* @__PURE__ */ l(
|
|
307
|
-
E,
|
|
308
|
-
{
|
|
309
|
-
size: "size-3",
|
|
310
|
-
monotone: !0,
|
|
311
|
-
className: "text-copy-error-dark dark:text-copy-error-light"
|
|
312
|
-
}
|
|
313
|
-
)
|
|
314
|
-
}
|
|
315
|
-
)
|
|
316
|
-
}
|
|
317
|
-
);
|
|
318
|
-
export {
|
|
319
|
-
K as ButtonIconDelete,
|
|
320
|
-
Y as Table,
|
|
321
|
-
G as TableBody,
|
|
322
|
-
O as TableCell,
|
|
323
|
-
J as TableCellSort,
|
|
324
|
-
q as TableHead,
|
|
325
|
-
H as TableRow
|
|
326
|
-
};
|
|
@@ -1,322 +0,0 @@
|
|
|
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.CK-6GwI_.js";
|
|
3
|
-
import { IconCloseLight as K, CARDS as V, ButtonIcon as R, IconRestore as W, IconStarInCircle as G, IconStarInCircleLight as H } from "./LogoEntry.cAcKJnnq.js";
|
|
4
|
-
import { useState as j, useRef as k, useEffect as O, Fragment as F } from "react";
|
|
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.c_Sj_7Q4.js";
|
|
7
|
-
import { pluralize as E, ResponsiveTooltip as I, numberFormatter as Z, isProbablyMobile as ee } from "./App.b-02jOnK.js";
|
|
8
|
-
const re = "av-pill", te = ({ variant: t }) => a("rounded-xs border", {
|
|
9
|
-
"border-border-information": t === "information",
|
|
10
|
-
"border-border-warning": t === "warning",
|
|
11
|
-
"border-border-success": t === "success",
|
|
12
|
-
"border-border-error": t === "error"
|
|
13
|
-
}), P = ({ variant: t }) => a("not-prose", {
|
|
14
|
-
"text-copy-information": t === "information",
|
|
15
|
-
"text-copy-warning": t === "warning",
|
|
16
|
-
"text-copy-success": t === "success",
|
|
17
|
-
"text-copy-error": t === "error"
|
|
18
|
-
}), se = ({ variant: t }) => a({
|
|
19
|
-
"bg-surface-information": t === "information",
|
|
20
|
-
"bg-surface-warning": t === "warning",
|
|
21
|
-
"bg-surface-success": t === "success",
|
|
22
|
-
"bg-surface-error": t === "error"
|
|
23
|
-
}), le = (t) => {
|
|
24
|
-
const { className: c, variant: n } = t;
|
|
25
|
-
return {
|
|
26
|
-
main: a(re, "inline-flex items-center gap-1 px-2 py-0.5 text-xs", te({
|
|
27
|
-
variant: n
|
|
28
|
-
}), P({
|
|
29
|
-
variant: n
|
|
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
|
-
variant: n
|
|
33
|
-
}))
|
|
34
|
-
};
|
|
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
|
-
};
|
|
39
|
-
if (!b)
|
|
40
|
-
return null;
|
|
41
|
-
const f = le({
|
|
42
|
-
className: c,
|
|
43
|
-
variant: n
|
|
44
|
-
});
|
|
45
|
-
return /* @__PURE__ */ m("div", {
|
|
46
|
-
role: "text",
|
|
47
|
-
className: f.main,
|
|
48
|
-
children: [
|
|
49
|
-
u && /* @__PURE__ */ e("span", {
|
|
50
|
-
className: "sr-only",
|
|
51
|
-
children: u
|
|
52
|
-
}),
|
|
53
|
-
/* @__PURE__ */ e("span", {
|
|
54
|
-
children: t
|
|
55
|
-
}),
|
|
56
|
-
d && /* @__PURE__ */ e("button", {
|
|
57
|
-
type: "button",
|
|
58
|
-
onClick: C,
|
|
59
|
-
className: f.button,
|
|
60
|
-
"aria-label": "Close",
|
|
61
|
-
children: /* @__PURE__ */ e(K, {
|
|
62
|
-
size: "size-3"
|
|
63
|
-
})
|
|
64
|
-
})
|
|
65
|
-
]
|
|
66
|
-
});
|
|
67
|
-
}, l = {
|
|
68
|
-
ROW: "row",
|
|
69
|
-
TIMESTAMP: w,
|
|
70
|
-
SUMMARY: "summary",
|
|
71
|
-
TOKEN_USAGE: y,
|
|
72
|
-
ACTIONS: "actions"
|
|
73
|
-
}, oe = [
|
|
74
|
-
l.ROW,
|
|
75
|
-
l.TIMESTAMP,
|
|
76
|
-
l.SUMMARY,
|
|
77
|
-
l.ACTIONS
|
|
78
|
-
], ne = [
|
|
79
|
-
l.ROW,
|
|
80
|
-
l.SUMMARY,
|
|
81
|
-
l.TIMESTAMP,
|
|
82
|
-
l.TOKEN_USAGE,
|
|
83
|
-
l.ACTIONS
|
|
84
|
-
], xe = ({
|
|
85
|
-
filteredHistory: t,
|
|
86
|
-
historyState: c,
|
|
87
|
-
lastEntryToLoad: n,
|
|
88
|
-
onClickSort: u,
|
|
89
|
-
onClickRestore: d,
|
|
90
|
-
onClickDelete: b,
|
|
91
|
-
onClickFavorite: g,
|
|
92
|
-
infinityScrollMarkerRef: C,
|
|
93
|
-
isLoading: f = !1,
|
|
94
|
-
totalHistoryCount: h,
|
|
95
|
-
isFiltered: D = !1,
|
|
96
|
-
isSearchActive: M = !1,
|
|
97
|
-
activeChatId: x
|
|
98
|
-
}) => {
|
|
99
|
-
const L = ee(), T = k(null), N = k(!1);
|
|
100
|
-
O(() => {
|
|
101
|
-
N.current = !1;
|
|
102
|
-
}, [x]), O(() => {
|
|
103
|
-
if (x && 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
|
-
}, [x, n]);
|
|
114
|
-
const A = L ? oe : ne, B = (r) => {
|
|
115
|
-
switch (r) {
|
|
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
|
-
{
|
|
122
|
-
focusMode: "system",
|
|
123
|
-
buttonClassName: "text-xs sm:text-sm",
|
|
124
|
-
cellId: w,
|
|
125
|
-
align: "left",
|
|
126
|
-
sortDirection: c.sortDirection,
|
|
127
|
-
sortedCell: c.sortedCell,
|
|
128
|
-
onClick: () => {
|
|
129
|
-
u(w);
|
|
130
|
-
},
|
|
131
|
-
children: "Date"
|
|
132
|
-
},
|
|
133
|
-
r
|
|
134
|
-
);
|
|
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
|
-
{
|
|
141
|
-
focusMode: "system",
|
|
142
|
-
buttonClassName: "text-xs sm:text-sm",
|
|
143
|
-
cellId: y,
|
|
144
|
-
align: "right",
|
|
145
|
-
sortDirection: c.sortDirection,
|
|
146
|
-
sortedCell: c.sortedCell,
|
|
147
|
-
onClick: () => {
|
|
148
|
-
u(y);
|
|
149
|
-
},
|
|
150
|
-
children: "Tokens"
|
|
151
|
-
},
|
|
152
|
-
r
|
|
153
|
-
);
|
|
154
|
-
case l.ACTIONS:
|
|
155
|
-
return /* @__PURE__ */ e(o, { className: "text-xs sm:text-sm text-right", children: "Actions" }, r);
|
|
156
|
-
default:
|
|
157
|
-
return null;
|
|
158
|
-
}
|
|
159
|
-
}, z = (r, s, p) => {
|
|
160
|
-
switch (r) {
|
|
161
|
-
case l.ROW:
|
|
162
|
-
return /* @__PURE__ */ e(o, { children: p + 1 }, r);
|
|
163
|
-
case l.TIMESTAMP:
|
|
164
|
-
return /* @__PURE__ */ e(
|
|
165
|
-
o,
|
|
166
|
-
{
|
|
167
|
-
className: a(
|
|
168
|
-
"dark:text-copy-medium",
|
|
169
|
-
"sm:whitespace-nowrap text-xs sm:text-sm max-w-20 sm:max-w-none"
|
|
170
|
-
),
|
|
171
|
-
children: s.timestamp.split(",")[0]
|
|
172
|
-
},
|
|
173
|
-
r
|
|
174
|
-
);
|
|
175
|
-
case l.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;
|
|
177
|
-
return /* @__PURE__ */ e(
|
|
178
|
-
o,
|
|
179
|
-
{
|
|
180
|
-
className: a(
|
|
181
|
-
"dark:text-white",
|
|
182
|
-
"max-w-25 sm:max-w-full text-xs sm:text-sm"
|
|
183
|
-
),
|
|
184
|
-
style: {
|
|
185
|
-
wordBreak: "break-word"
|
|
186
|
-
},
|
|
187
|
-
children: /* @__PURE__ */ m("div", { className: "flex flex-col gap-1", children: [
|
|
188
|
-
/* @__PURE__ */ m("div", { className: "flex flex-wrap gap-1", children: [
|
|
189
|
-
i !== null && /* @__PURE__ */ e(
|
|
190
|
-
U,
|
|
191
|
-
{
|
|
192
|
-
variant: _,
|
|
193
|
-
label: `${i}% semantic`
|
|
194
|
-
}
|
|
195
|
-
),
|
|
196
|
-
$ && /* @__PURE__ */ e(U, { variant: "information", label: "keyword" })
|
|
197
|
-
] }),
|
|
198
|
-
/* @__PURE__ */ e("span", { children: s.summary })
|
|
199
|
-
] })
|
|
200
|
-
},
|
|
201
|
-
r
|
|
202
|
-
);
|
|
203
|
-
}
|
|
204
|
-
case l.TOKEN_USAGE:
|
|
205
|
-
return /* @__PURE__ */ e(
|
|
206
|
-
o,
|
|
207
|
-
{
|
|
208
|
-
className: a("dark:text-copy-medium", "text-xs sm:text-sm"),
|
|
209
|
-
align: "right",
|
|
210
|
-
children: s.tokenUsage ? Z.format(s.tokenUsage) : "0"
|
|
211
|
-
},
|
|
212
|
-
r
|
|
213
|
-
);
|
|
214
|
-
case l.ACTIONS:
|
|
215
|
-
return /* @__PURE__ */ e(
|
|
216
|
-
o,
|
|
217
|
-
{
|
|
218
|
-
className: "border-l border-table-light dark:border-table-dark",
|
|
219
|
-
children: /* @__PURE__ */ m("div", { className: "flex flex-col items-end sm:flex-row gap-2", children: [
|
|
220
|
-
/* @__PURE__ */ e(
|
|
221
|
-
I,
|
|
222
|
-
{
|
|
223
|
-
label: "Restore chat",
|
|
224
|
-
placement: "top",
|
|
225
|
-
trigger: /* @__PURE__ */ e(
|
|
226
|
-
R,
|
|
227
|
-
{
|
|
228
|
-
noBorder: !0,
|
|
229
|
-
label: "Restore chat",
|
|
230
|
-
variant: "primary",
|
|
231
|
-
onClick: async () => {
|
|
232
|
-
await d(s);
|
|
233
|
-
},
|
|
234
|
-
children: /* @__PURE__ */ e(
|
|
235
|
-
W,
|
|
236
|
-
{
|
|
237
|
-
size: "size-3",
|
|
238
|
-
monotone: !0,
|
|
239
|
-
className: "text-copy-success dark:text-copy-success-light"
|
|
240
|
-
}
|
|
241
|
-
)
|
|
242
|
-
}
|
|
243
|
-
)
|
|
244
|
-
}
|
|
245
|
-
),
|
|
246
|
-
/* @__PURE__ */ e(
|
|
247
|
-
I,
|
|
248
|
-
{
|
|
249
|
-
label: s.favoriteChat ? "Remove from favorites" : "Add to favorites",
|
|
250
|
-
placement: "top",
|
|
251
|
-
trigger: /* @__PURE__ */ e(
|
|
252
|
-
R,
|
|
253
|
-
{
|
|
254
|
-
noBorder: !0,
|
|
255
|
-
label: s.favoriteChat ? "Remove from favorites" : "Add to favorites",
|
|
256
|
-
variant: "primary",
|
|
257
|
-
onClick: async () => {
|
|
258
|
-
await g(s);
|
|
259
|
-
},
|
|
260
|
-
children: s.favoriteChat ? /* @__PURE__ */ e(G, { size: "size-4", monotone: !0 }) : /* @__PURE__ */ e(H, { size: "size-4", monotone: !0 })
|
|
261
|
-
}
|
|
262
|
-
)
|
|
263
|
-
}
|
|
264
|
-
),
|
|
265
|
-
/* @__PURE__ */ e(
|
|
266
|
-
X,
|
|
267
|
-
{
|
|
268
|
-
label: "Delete chat",
|
|
269
|
-
disabled: !1,
|
|
270
|
-
onClick: () => {
|
|
271
|
-
b(s);
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
)
|
|
275
|
-
] })
|
|
276
|
-
},
|
|
277
|
-
r
|
|
278
|
-
);
|
|
279
|
-
default:
|
|
280
|
-
return null;
|
|
281
|
-
}
|
|
282
|
-
};
|
|
283
|
-
return /* @__PURE__ */ m(
|
|
284
|
-
q,
|
|
285
|
-
{
|
|
286
|
-
stickyHeader: !0,
|
|
287
|
-
compact: !0,
|
|
288
|
-
mode: "alt-system",
|
|
289
|
-
caption: (() => {
|
|
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
|
-
})(),
|
|
293
|
-
wrapperClassName: a(
|
|
294
|
-
"max-h-[clamp(12rem,calc(100dvh-24rem),60dvh)]",
|
|
295
|
-
"sm:max-h-[clamp(12rem,calc(100dvh-24rem),60dvh)]"
|
|
296
|
-
),
|
|
297
|
-
disabled: f && t.length > 0,
|
|
298
|
-
children: [
|
|
299
|
-
/* @__PURE__ */ e(J, { children: /* @__PURE__ */ e(S, { children: A.map((r) => B(r)) }) }),
|
|
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: [
|
|
303
|
-
s === n - Y && /* @__PURE__ */ e("tr", { ref: C }),
|
|
304
|
-
/* @__PURE__ */ e(
|
|
305
|
-
S,
|
|
306
|
-
{
|
|
307
|
-
ref: p ? T : void 0,
|
|
308
|
-
active: p,
|
|
309
|
-
children: A.map(
|
|
310
|
-
(i) => z(i, r, s)
|
|
311
|
-
)
|
|
312
|
-
}
|
|
313
|
-
)
|
|
314
|
-
] }, `${V.HISTORY.TITLE}-${r.id}-${s}`) : null;
|
|
315
|
-
}) })
|
|
316
|
-
]
|
|
317
|
-
}
|
|
318
|
-
);
|
|
319
|
-
};
|
|
320
|
-
export {
|
|
321
|
-
xe as ChatHistoryTable
|
|
322
|
-
};
|