@versini/sassysaint 8.107.3 → 8.108.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.BmMVyf-Q.js → AboutChangelog.55tIwnGe.js} +2 -2
- package/dist/chunks/{AboutEntry.wD5hG0ON.js → AboutEntry.D1zAHjel.js} +7 -7
- package/dist/chunks/{App.FyINLNSp.js → App.Br7HE-y0.js} +1746 -1908
- package/dist/chunks/{Bubble.Ci-pu6NI.js → Bubble.Ic_8FEhH.js} +47 -74
- package/dist/chunks/{Table.Dzy9ts3i.js → ButtonIconDelete.DRBd_G40.js} +125 -104
- package/dist/chunks/{Chart.DYVf2gst.js → Chart.CwIVbBYb.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.CD6bVvcQ.js → ChatBubbleAssistant.DHlLzqdc.js} +199 -208
- package/dist/chunks/{ChatBubbleUser.Cre3cX04.js → ChatBubbleUser.D7ksCr76.js} +27 -36
- package/dist/chunks/{ChatHistoryTable.D_kOkWN9.js → ChatHistoryTable.DhUDW7QO.js} +108 -121
- package/dist/chunks/{HistoryEntry.BFNME4Z8.js → HistoryEntry.BxnMfiXN.js} +6 -6
- package/dist/chunks/{LoginEntry.SW7wyEpU.js → LoginEntry.XF9rPWdB.js} +4 -4
- package/dist/chunks/{LogoEntry.BAKpdJEy.js → LogoEntry.CnTI8jpv.js} +304 -385
- package/dist/chunks/{MemoriesEntry.Ztyx_8Wm.js → MemoriesEntry.BjNXrPW2.js} +164 -169
- package/dist/chunks/{ProfileEntry.CjzAusYw.js → ProfileEntry.S6XO2uMT.js} +4 -4
- package/dist/chunks/{SettingsEntry.D4IKmfYP.js → SettingsEntry.C5jHUJzu.js} +5 -5
- package/dist/chunks/{UsageEntry.D7sTPflE.js → UsageEntry.CQTLPweE.js} +5 -5
- package/dist/chunks/_basePickBy.Dj6LWOd3.js +151 -0
- package/dist/chunks/_baseUniq.DfiF6jap.js +614 -0
- package/dist/chunks/arc.CLrqhM1J.js +83 -0
- package/dist/chunks/architecture-U656AL7Q.CuF-GD1P.js +36 -0
- package/dist/chunks/architectureDiagram-VXUJARFQ.BGPIWweD.js +4653 -0
- package/dist/chunks/blockDiagram-VD42YOAC.cLfUaXxm.js +2254 -0
- package/dist/chunks/browser.B8WuOmYx.js +260 -0
- package/dist/chunks/c4Diagram-YG6GDRKO.Cc4f8G62.js +1579 -0
- package/dist/chunks/channel.D7pUQPat.js +5 -0
- package/dist/chunks/chunk-4BX2VUAB.C5gP6CzO.js +8 -0
- package/dist/chunks/chunk-55IACEB6.CMTOMhuf.js +8 -0
- package/dist/chunks/chunk-B4BG7PRW.CQz5CpXp.js +1375 -0
- package/dist/chunks/chunk-DI55MBZ5.C4SOgQau.js +1370 -0
- package/dist/chunks/chunk-FMBD7UC4.5tYrPDWZ.js +19 -0
- package/dist/chunks/chunk-QN33PNHL.P3o9PZBW.js +19 -0
- package/dist/chunks/chunk-QZHKN3VN.COvsjomn.js +15 -0
- package/dist/chunks/chunk-TZMSLE5B.C5QPHQlj.js +64 -0
- package/dist/chunks/classDiagram-2ON5EDUG.DrIfmpHo.js +16 -0
- package/dist/chunks/classDiagram-v2-WZHVMYZB.DrIfmpHo.js +16 -0
- package/dist/chunks/clone.47X4nGV4.js +8 -0
- package/dist/chunks/cose-bilkent-S5V4N54A.B1umrZne.js +2600 -0
- package/dist/chunks/cytoscape.esm.DmRZGnqW.js +18700 -0
- package/dist/chunks/dagre-6UL2VRFP.Ce4VSTky.js +444 -0
- package/dist/chunks/defaultLocale.CPJLP5jg.js +171 -0
- package/dist/chunks/diagram-PSM6KHXK.B1yvSG9p.js +531 -0
- package/dist/chunks/diagram-QEK2KX5R.CYDnnLB3.js +217 -0
- package/dist/chunks/diagram-S2PKOQOG.BI6w7TZJ.js +142 -0
- package/dist/chunks/erDiagram-Q2GNP2WA.D7mTQJ6P.js +841 -0
- package/dist/chunks/flowDiagram-NV44I4VS.Col8_E_0.js +1620 -0
- package/dist/chunks/ganttDiagram-JELNMOA3.GAUSoSKL.js +2647 -0
- package/dist/chunks/gitGraph-F6HP7TQM.3I_jmRrt.js +27 -0
- package/dist/chunks/gitGraphDiagram-NY62KEGX.DZQ_LVDe.js +699 -0
- package/dist/chunks/graph.BmJVbvPo.js +247 -0
- package/dist/chunks/index.Bi0z4EE1.js +90 -0
- package/dist/chunks/{index.QiLu2wkI.js → index.C0El17wt.js} +2 -2
- package/dist/chunks/{index.DBovegdE.js → index.CUn5zNJg.js} +1 -1
- package/dist/chunks/index.CbEVdl_N.js +279 -0
- package/dist/chunks/{index.BT3Do9Po.js → index.CoZgV6rn.js} +34 -43
- package/dist/chunks/{index.16gcBvke.js → index.DCqTKdor.js} +60 -69
- package/dist/chunks/index.DctDXsYU.js +67 -0
- package/dist/chunks/{index.BfTDtoYy.js → index.Df-tNwfZ.js} +1 -1
- package/dist/chunks/{index.BI1_ccPN.js → index.DxGkXGdu.js} +3 -3
- package/dist/chunks/{index.uILjvEfo.js → index.z2e7pMwp.js} +1 -1
- package/dist/chunks/info-NVLQJR56.D9ao7_Su.js +27 -0
- package/dist/chunks/infoDiagram-WHAUD3N6.DmFB-CXk.js +24 -0
- package/dist/chunks/init.DAGnb5BH.js +16 -0
- package/dist/chunks/journeyDiagram-XKPGCS4Q.C9FISQxf.js +834 -0
- package/dist/chunks/kanban-definition-3W4ZIXB7.ChmJnTyd.js +719 -0
- package/dist/chunks/{index.DJlv39cv.js → katex.D0sQThIv.js} +1638 -1943
- package/dist/chunks/layout.DtZQLIyC.js +1332 -0
- package/dist/chunks/linear.CIDfImUo.js +625 -0
- package/dist/chunks/mermaid-parser.core.CO83pegl.js +12724 -0
- package/dist/chunks/mindmap-definition-VGOIOE7T.B3dfWebK.js +759 -0
- package/dist/chunks/ordinal.EWT-qnu7.js +61 -0
- package/dist/chunks/packet-BFZMPI3H.q9qJMgm9.js +27 -0
- package/dist/chunks/pie-7BOR55EZ.BTnKDmrp.js +32 -0
- package/dist/chunks/pieDiagram-ADFJNKIX.B23eDSnQ.js +161 -0
- package/dist/chunks/quadrantDiagram-AYHSOK5B.B3ZIlLhO.js +1022 -0
- package/dist/chunks/radar-NHE76QYJ.BeKykujs.js +27 -0
- package/dist/chunks/rehype-mermaid.DkS2NcIa.js +14283 -0
- package/dist/chunks/requirementDiagram-UZGBJVZJ.0vOl9IL2.js +850 -0
- package/dist/chunks/sankeyDiagram-TZEHDZUN.DxwTK65F.js +810 -0
- package/dist/chunks/sequenceDiagram-WL72ISMW.BmOg83Gx.js +2511 -0
- package/dist/chunks/stateDiagram-FKZM4ZOC.DBiU28Wu.js +263 -0
- package/dist/chunks/stateDiagram-v2-4FDKWEC3.B6t8_4cH.js +16 -0
- package/dist/chunks/timeline-definition-IT6M3QCI.DpWxwytE.js +795 -0
- package/dist/chunks/treemap-KMMF4GRG.KqgFrxbV.js +81 -0
- package/dist/chunks/{useMarkdown.BberHabr.js → useMarkdown.CxuK_DLo.js} +2078 -2072
- package/dist/chunks/xychartDiagram-PRI3JC2R.CBaIBQ89.js +1340 -0
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +3 -3
- package/dist/style.css +1 -1
- package/package.json +5 -5
- package/dist/chunks/index.BjnVQ4X3.js +0 -99
- package/dist/chunks/index.uVDYkuxz.js +0 -297
|
@@ -1,18 +1,9 @@
|
|
|
1
|
-
import { jsx as i, Fragment as
|
|
2
|
-
import { Button as
|
|
3
|
-
import { useState as
|
|
4
|
-
import { useMarkdown as
|
|
5
|
-
import { AsyncBubble as
|
|
6
|
-
|
|
7
|
-
window.__VERSINI_UI_TRUNCATE__ || (window.__VERSINI_UI_TRUNCATE__ = {
|
|
8
|
-
version: "6.1.9",
|
|
9
|
-
buildTime: "12/24/2025 09:21 AM EST",
|
|
10
|
-
homepage: "https://www.npmjs.com/package/@versini/ui-truncate",
|
|
11
|
-
license: "MIT"
|
|
12
|
-
});
|
|
13
|
-
} catch {
|
|
14
|
-
}
|
|
15
|
-
const x = 200, M = ({ string: e, idealLength: r = x }) => {
|
|
1
|
+
import { jsx as i, Fragment as C, jsxs as S } from "react/jsx-runtime";
|
|
2
|
+
import { Button as b } from "./LogoEntry.CnTI8jpv.js";
|
|
3
|
+
import { useState as k, useMemo as m, isValidElement as T, useEffect as H } from "react";
|
|
4
|
+
import { useMarkdown as h } from "./useMarkdown.CxuK_DLo.js";
|
|
5
|
+
import { AsyncBubble as M } from "./App.Br7HE-y0.js";
|
|
6
|
+
const O = 200, w = ({ string: e, idealLength: r = O }) => {
|
|
16
7
|
if (e.length <= r)
|
|
17
8
|
return {
|
|
18
9
|
string: e,
|
|
@@ -28,7 +19,7 @@ const x = 200, M = ({ string: e, idealLength: r = x }) => {
|
|
|
28
19
|
string: e.slice(0, r + s),
|
|
29
20
|
isTruncated: !0
|
|
30
21
|
};
|
|
31
|
-
}, l = (e) => e == null || typeof e == "boolean" ? "" : typeof e == "string" || typeof e == "number" ? String(e) : Array.isArray(e) ? e.map(l).join("") : /* @__PURE__ */ T(e) ? l(e.props.children) : "",
|
|
22
|
+
}, l = (e) => e == null || typeof e == "boolean" ? "" : typeof e == "string" || typeof e == "number" ? String(e) : Array.isArray(e) ? e.map(l).join("") : /* @__PURE__ */ T(e) ? l(e.props.children) : "", I = /* @__PURE__ */ new Set([
|
|
32
23
|
"P",
|
|
33
24
|
"DIV",
|
|
34
25
|
"UL",
|
|
@@ -62,29 +53,29 @@ const x = 200, M = ({ string: e, idealLength: r = x }) => {
|
|
|
62
53
|
return e.some(u);
|
|
63
54
|
if (/* @__PURE__ */ T(e)) {
|
|
64
55
|
const r = e;
|
|
65
|
-
return typeof r.type == "string" &&
|
|
56
|
+
return typeof r.type == "string" && I.has(r.type.toUpperCase()) ? !0 : u(r.props.children);
|
|
66
57
|
}
|
|
67
58
|
return !1;
|
|
68
|
-
},
|
|
69
|
-
const [t, y] =
|
|
59
|
+
}, L = ({ children: e, length: r = 200, mode: n = "system", focusMode: c = "system", enableRichTruncation: s = !1, noBorder: d = !1 }) => {
|
|
60
|
+
const [t, y] = k(!1), g = typeof e != "string" && !s, f = m(() => typeof e == "string" ? e : l(e), [
|
|
70
61
|
e
|
|
71
|
-
]), { string:
|
|
72
|
-
string:
|
|
62
|
+
]), { string: p, isTruncated: a } = m(() => w({
|
|
63
|
+
string: f,
|
|
73
64
|
idealLength: r
|
|
74
65
|
}), [
|
|
75
|
-
|
|
66
|
+
f,
|
|
76
67
|
r
|
|
77
|
-
]), E = s && a && !t, A = (
|
|
78
|
-
|
|
68
|
+
]), E = s && a && !t, A = (x) => {
|
|
69
|
+
x.preventDefault(), y(!t);
|
|
79
70
|
};
|
|
80
71
|
if (g)
|
|
81
|
-
return /* @__PURE__ */ i(
|
|
72
|
+
return /* @__PURE__ */ i(C, {
|
|
82
73
|
children: e
|
|
83
74
|
});
|
|
84
75
|
let o;
|
|
85
|
-
a ? t ? o = e : o =
|
|
86
|
-
const
|
|
87
|
-
return /* @__PURE__ */
|
|
76
|
+
a ? t ? o = e : o = p : o = e;
|
|
77
|
+
const B = s ? u(e) : !1;
|
|
78
|
+
return /* @__PURE__ */ S("span", {
|
|
88
79
|
style: {
|
|
89
80
|
wordBreak: "break-word"
|
|
90
81
|
},
|
|
@@ -92,11 +83,11 @@ const x = 200, M = ({ string: e, idealLength: r = x }) => {
|
|
|
92
83
|
"aria-expanded": a ? t : void 0,
|
|
93
84
|
children: [
|
|
94
85
|
o,
|
|
95
|
-
a && /* @__PURE__ */ i(
|
|
86
|
+
a && /* @__PURE__ */ i(b, {
|
|
96
87
|
mode: n,
|
|
97
88
|
focusMode: c,
|
|
98
89
|
noBorder: d,
|
|
99
|
-
className: !(s && t &&
|
|
90
|
+
className: !(s && t && B) ? "ml-2" : void 0,
|
|
100
91
|
size: "small",
|
|
101
92
|
onClick: A,
|
|
102
93
|
"aria-label": t ? "Show less" : "Show more",
|
|
@@ -104,12 +95,12 @@ const x = 200, M = ({ string: e, idealLength: r = x }) => {
|
|
|
104
95
|
})
|
|
105
96
|
]
|
|
106
97
|
});
|
|
107
|
-
},
|
|
108
|
-
const [r, n] =
|
|
109
|
-
return
|
|
98
|
+
}, R = ({ content: e }) => {
|
|
99
|
+
const [r, n] = h();
|
|
100
|
+
return H(() => {
|
|
110
101
|
e && n(e);
|
|
111
102
|
}, [e, n]), /* @__PURE__ */ i(
|
|
112
|
-
|
|
103
|
+
M,
|
|
113
104
|
{
|
|
114
105
|
gradient: "medium",
|
|
115
106
|
tail: !0,
|
|
@@ -119,10 +110,10 @@ const x = 200, M = ({ string: e, idealLength: r = x }) => {
|
|
|
119
110
|
kind: "right",
|
|
120
111
|
className: "mt-3",
|
|
121
112
|
contentClassName: "prose prose-lighter prose-p:only:my-0",
|
|
122
|
-
children: /* @__PURE__ */ i(
|
|
113
|
+
children: /* @__PURE__ */ i(L, { mode: "dark", focusMode: "light", noBorder: !0, enableRichTruncation: !0, children: r })
|
|
123
114
|
}
|
|
124
115
|
);
|
|
125
116
|
};
|
|
126
117
|
export {
|
|
127
|
-
|
|
118
|
+
R as default
|
|
128
119
|
};
|
|
@@ -1,25 +1,16 @@
|
|
|
1
1
|
import { jsxs as c, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { y as
|
|
3
|
-
import { IconCloseLight as
|
|
4
|
-
import { useState as
|
|
2
|
+
import { y as N, v as S, INFINITE_SCROLL_THRESHOLD as L } from "./index.C0El17wt.js";
|
|
3
|
+
import { IconCloseLight as D, CARDS as z, ButtonIcon as T, IconRestore as B, IconStarInCircle as _, IconStarInCircleLight as $ } from "./LogoEntry.CnTI8jpv.js";
|
|
4
|
+
import { useState as Y, Fragment as K } from "react";
|
|
5
5
|
import i from "clsx";
|
|
6
|
-
import { H as W, F
|
|
7
|
-
import { pluralize as A, ResponsiveTooltip as
|
|
8
|
-
try {
|
|
9
|
-
window.__VERSINI_UI_PILL__ || (window.__VERSINI_UI_PILL__ = {
|
|
10
|
-
version: "5.2.5",
|
|
11
|
-
buildTime: "12/24/2025 09:21 AM EST",
|
|
12
|
-
homepage: "https://www.npmjs.com/package/@versini/ui-pill",
|
|
13
|
-
license: "MIT"
|
|
14
|
-
});
|
|
15
|
-
} catch {
|
|
16
|
-
}
|
|
6
|
+
import { H as W, F, q as C, Y as G, O as o, J as w, ButtonIconDelete as H } from "./ButtonIconDelete.DRBd_G40.js";
|
|
7
|
+
import { pluralize as A, ResponsiveTooltip as k, numberFormatter as j, isProbablyMobile as V } from "./App.Br7HE-y0.js";
|
|
17
8
|
const q = "av-pill", J = ({ variant: t }) => i("rounded-xs border", {
|
|
18
9
|
"border-border-information": t === "information",
|
|
19
10
|
"border-border-warning": t === "warning",
|
|
20
11
|
"border-border-success": t === "success",
|
|
21
12
|
"border-border-error": t === "error"
|
|
22
|
-
}),
|
|
13
|
+
}), O = ({ variant: t }) => i("not-prose", {
|
|
23
14
|
"text-copy-information": t === "information",
|
|
24
15
|
"text-copy-warning": t === "warning",
|
|
25
16
|
"text-copy-success": t === "success",
|
|
@@ -30,30 +21,30 @@ const q = "av-pill", J = ({ variant: t }) => i("rounded-xs border", {
|
|
|
30
21
|
"bg-surface-success": t === "success",
|
|
31
22
|
"bg-surface-error": t === "error"
|
|
32
23
|
}), X = (t) => {
|
|
33
|
-
const { className:
|
|
24
|
+
const { className: l, variant: a } = t;
|
|
34
25
|
return {
|
|
35
26
|
main: i(q, "inline-flex items-center gap-1 px-2 py-0.5 text-xs", J({
|
|
36
|
-
variant:
|
|
37
|
-
}),
|
|
38
|
-
variant:
|
|
39
|
-
}), Q(t),
|
|
40
|
-
button: i("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",
|
|
41
|
-
variant:
|
|
27
|
+
variant: a
|
|
28
|
+
}), O({
|
|
29
|
+
variant: a
|
|
30
|
+
}), Q(t), l),
|
|
31
|
+
button: i("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", O({
|
|
32
|
+
variant: a
|
|
42
33
|
}))
|
|
43
34
|
};
|
|
44
|
-
},
|
|
45
|
-
const [
|
|
46
|
-
|
|
35
|
+
}, R = ({ label: t, className: l, variant: a = "information", description: m, onClose: u }) => {
|
|
36
|
+
const [h, p] = Y(!0), g = (f) => {
|
|
37
|
+
u && (u(f), f.defaultPrevented || p(!1));
|
|
47
38
|
};
|
|
48
|
-
if (!
|
|
39
|
+
if (!h)
|
|
49
40
|
return null;
|
|
50
|
-
const
|
|
51
|
-
className:
|
|
52
|
-
variant:
|
|
41
|
+
const d = X({
|
|
42
|
+
className: l,
|
|
43
|
+
variant: a
|
|
53
44
|
});
|
|
54
45
|
return /* @__PURE__ */ c("div", {
|
|
55
46
|
role: "text",
|
|
56
|
-
className:
|
|
47
|
+
className: d.main,
|
|
57
48
|
children: [
|
|
58
49
|
m && /* @__PURE__ */ e("span", {
|
|
59
50
|
className: "sr-only",
|
|
@@ -62,100 +53,100 @@ const q = "av-pill", J = ({ variant: t }) => i("rounded-xs border", {
|
|
|
62
53
|
/* @__PURE__ */ e("span", {
|
|
63
54
|
children: t
|
|
64
55
|
}),
|
|
65
|
-
|
|
56
|
+
u && /* @__PURE__ */ e("button", {
|
|
66
57
|
type: "button",
|
|
67
58
|
onClick: g,
|
|
68
|
-
className:
|
|
59
|
+
className: d.button,
|
|
69
60
|
"aria-label": "Close",
|
|
70
|
-
children: /* @__PURE__ */ e(
|
|
61
|
+
children: /* @__PURE__ */ e(D, {
|
|
71
62
|
size: "size-3"
|
|
72
63
|
})
|
|
73
64
|
})
|
|
74
65
|
]
|
|
75
66
|
});
|
|
76
|
-
},
|
|
67
|
+
}, n = {
|
|
77
68
|
ROW: "row",
|
|
78
|
-
TIMESTAMP:
|
|
69
|
+
TIMESTAMP: N,
|
|
79
70
|
SUMMARY: "summary",
|
|
80
|
-
TOKEN_USAGE:
|
|
71
|
+
TOKEN_USAGE: S,
|
|
81
72
|
ACTIONS: "actions"
|
|
82
73
|
}, Z = [
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
74
|
+
n.ROW,
|
|
75
|
+
n.TIMESTAMP,
|
|
76
|
+
n.SUMMARY,
|
|
77
|
+
n.ACTIONS
|
|
87
78
|
], ee = [
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
79
|
+
n.ROW,
|
|
80
|
+
n.SUMMARY,
|
|
81
|
+
n.TIMESTAMP,
|
|
82
|
+
n.TOKEN_USAGE,
|
|
83
|
+
n.ACTIONS
|
|
93
84
|
], me = ({
|
|
94
85
|
filteredHistory: t,
|
|
95
|
-
historyState:
|
|
96
|
-
lastEntryToLoad:
|
|
86
|
+
historyState: l,
|
|
87
|
+
lastEntryToLoad: a,
|
|
97
88
|
onClickSort: m,
|
|
98
|
-
onClickRestore:
|
|
99
|
-
onClickDelete:
|
|
89
|
+
onClickRestore: u,
|
|
90
|
+
onClickDelete: h,
|
|
100
91
|
onClickFavorite: p,
|
|
101
92
|
infinityScrollMarkerRef: g,
|
|
102
|
-
isLoading:
|
|
93
|
+
isLoading: d = !1,
|
|
103
94
|
totalHistoryCount: f,
|
|
104
|
-
isFiltered:
|
|
95
|
+
isFiltered: E = !1,
|
|
105
96
|
isSearchActive: M = !1
|
|
106
97
|
}) => {
|
|
107
|
-
const
|
|
98
|
+
const y = V() ? Z : ee, I = (r) => {
|
|
108
99
|
switch (r) {
|
|
109
|
-
case
|
|
110
|
-
return /* @__PURE__ */ e(
|
|
111
|
-
case
|
|
112
|
-
return M ? /* @__PURE__ */ e(
|
|
113
|
-
|
|
100
|
+
case n.ROW:
|
|
101
|
+
return /* @__PURE__ */ e(o, { className: "sr-only", children: "Row" }, r);
|
|
102
|
+
case n.TIMESTAMP:
|
|
103
|
+
return M ? /* @__PURE__ */ e(o, { className: "text-xs sm:text-sm", children: "Date" }, r) : /* @__PURE__ */ e(
|
|
104
|
+
w,
|
|
114
105
|
{
|
|
115
106
|
focusMode: "system",
|
|
116
107
|
buttonClassName: "text-xs sm:text-sm",
|
|
117
|
-
cellId:
|
|
108
|
+
cellId: N,
|
|
118
109
|
align: "left",
|
|
119
|
-
sortDirection:
|
|
120
|
-
sortedCell:
|
|
110
|
+
sortDirection: l.sortDirection,
|
|
111
|
+
sortedCell: l.sortedCell,
|
|
121
112
|
onClick: () => {
|
|
122
|
-
m(
|
|
113
|
+
m(N);
|
|
123
114
|
},
|
|
124
115
|
children: "Date"
|
|
125
116
|
},
|
|
126
117
|
r
|
|
127
118
|
);
|
|
128
|
-
case
|
|
129
|
-
return /* @__PURE__ */ e(
|
|
130
|
-
case
|
|
131
|
-
return M ? /* @__PURE__ */ e(
|
|
132
|
-
|
|
119
|
+
case n.SUMMARY:
|
|
120
|
+
return /* @__PURE__ */ e(o, { className: "text-xs sm:text-sm", children: "Summary" }, r);
|
|
121
|
+
case n.TOKEN_USAGE:
|
|
122
|
+
return M ? /* @__PURE__ */ e(o, { className: "text-xs sm:text-sm text-right", children: "Tokens" }, r) : /* @__PURE__ */ e(
|
|
123
|
+
w,
|
|
133
124
|
{
|
|
134
125
|
focusMode: "system",
|
|
135
126
|
buttonClassName: "text-xs sm:text-sm",
|
|
136
|
-
cellId:
|
|
127
|
+
cellId: S,
|
|
137
128
|
align: "right",
|
|
138
|
-
sortDirection:
|
|
139
|
-
sortedCell:
|
|
129
|
+
sortDirection: l.sortDirection,
|
|
130
|
+
sortedCell: l.sortedCell,
|
|
140
131
|
onClick: () => {
|
|
141
|
-
m(
|
|
132
|
+
m(S);
|
|
142
133
|
},
|
|
143
134
|
children: "Tokens"
|
|
144
135
|
},
|
|
145
136
|
r
|
|
146
137
|
);
|
|
147
|
-
case
|
|
148
|
-
return /* @__PURE__ */ e(
|
|
138
|
+
case n.ACTIONS:
|
|
139
|
+
return /* @__PURE__ */ e(o, { className: "text-xs sm:text-sm text-right", children: "Actions" }, r);
|
|
149
140
|
default:
|
|
150
141
|
return null;
|
|
151
142
|
}
|
|
152
|
-
},
|
|
143
|
+
}, v = (r, s, b) => {
|
|
153
144
|
switch (r) {
|
|
154
|
-
case
|
|
155
|
-
return /* @__PURE__ */ e(
|
|
156
|
-
case
|
|
145
|
+
case n.ROW:
|
|
146
|
+
return /* @__PURE__ */ e(o, { children: b + 1 }, r);
|
|
147
|
+
case n.TIMESTAMP:
|
|
157
148
|
return /* @__PURE__ */ e(
|
|
158
|
-
|
|
149
|
+
o,
|
|
159
150
|
{
|
|
160
151
|
className: i(
|
|
161
152
|
"dark:text-copy-medium",
|
|
@@ -165,10 +156,10 @@ const q = "av-pill", J = ({ variant: t }) => i("rounded-xs border", {
|
|
|
165
156
|
},
|
|
166
157
|
r
|
|
167
158
|
);
|
|
168
|
-
case
|
|
169
|
-
const
|
|
159
|
+
case n.SUMMARY: {
|
|
160
|
+
const x = s.similarityScore !== void 0 && s.similarityScore !== null ? Math.round(s.similarityScore * 100) : null, P = x !== null && x < 40 ? "warning" : "success", U = s.keywordMatch === !0;
|
|
170
161
|
return /* @__PURE__ */ e(
|
|
171
|
-
|
|
162
|
+
o,
|
|
172
163
|
{
|
|
173
164
|
className: i(
|
|
174
165
|
"dark:text-white",
|
|
@@ -179,14 +170,14 @@ const q = "av-pill", J = ({ variant: t }) => i("rounded-xs border", {
|
|
|
179
170
|
},
|
|
180
171
|
children: /* @__PURE__ */ c("div", { className: "flex flex-col gap-1", children: [
|
|
181
172
|
/* @__PURE__ */ c("div", { className: "flex flex-wrap gap-1", children: [
|
|
182
|
-
|
|
183
|
-
|
|
173
|
+
x !== null && /* @__PURE__ */ e(
|
|
174
|
+
R,
|
|
184
175
|
{
|
|
185
|
-
variant:
|
|
186
|
-
label: `${
|
|
176
|
+
variant: P,
|
|
177
|
+
label: `${x}% semantic`
|
|
187
178
|
}
|
|
188
179
|
),
|
|
189
|
-
|
|
180
|
+
U && /* @__PURE__ */ e(R, { variant: "information", label: "keyword" })
|
|
190
181
|
] }),
|
|
191
182
|
/* @__PURE__ */ e("span", { children: s.summary })
|
|
192
183
|
] })
|
|
@@ -194,49 +185,55 @@ const q = "av-pill", J = ({ variant: t }) => i("rounded-xs border", {
|
|
|
194
185
|
r
|
|
195
186
|
);
|
|
196
187
|
}
|
|
197
|
-
case
|
|
188
|
+
case n.TOKEN_USAGE:
|
|
198
189
|
return /* @__PURE__ */ e(
|
|
199
|
-
|
|
190
|
+
o,
|
|
200
191
|
{
|
|
201
192
|
className: i("dark:text-copy-medium", "text-xs sm:text-sm"),
|
|
202
193
|
align: "right",
|
|
203
|
-
children: s.tokenUsage ?
|
|
194
|
+
children: s.tokenUsage ? j.format(s.tokenUsage) : "0"
|
|
204
195
|
},
|
|
205
196
|
r
|
|
206
197
|
);
|
|
207
|
-
case
|
|
198
|
+
case n.ACTIONS:
|
|
208
199
|
return /* @__PURE__ */ e(
|
|
209
|
-
|
|
200
|
+
o,
|
|
210
201
|
{
|
|
211
202
|
className: "border-l border-table-light dark:border-table-dark",
|
|
212
203
|
children: /* @__PURE__ */ c("div", { className: "flex flex-col items-end sm:flex-row gap-2", children: [
|
|
213
204
|
/* @__PURE__ */ e(
|
|
214
|
-
|
|
205
|
+
k,
|
|
215
206
|
{
|
|
216
207
|
label: "Restore chat",
|
|
217
208
|
placement: "top",
|
|
218
209
|
trigger: /* @__PURE__ */ e(
|
|
219
|
-
|
|
210
|
+
T,
|
|
220
211
|
{
|
|
221
212
|
noBorder: !0,
|
|
222
213
|
label: "Restore chat",
|
|
223
214
|
variant: "primary",
|
|
224
|
-
iconClassName: "text-copy-success dark:text-copy-success-light",
|
|
225
215
|
onClick: async () => {
|
|
226
|
-
await
|
|
216
|
+
await u(s);
|
|
227
217
|
},
|
|
228
|
-
children: /* @__PURE__ */ e(
|
|
218
|
+
children: /* @__PURE__ */ e(
|
|
219
|
+
B,
|
|
220
|
+
{
|
|
221
|
+
size: "size-3",
|
|
222
|
+
monotone: !0,
|
|
223
|
+
className: "text-copy-success dark:text-copy-success-light"
|
|
224
|
+
}
|
|
225
|
+
)
|
|
229
226
|
}
|
|
230
227
|
)
|
|
231
228
|
}
|
|
232
229
|
),
|
|
233
230
|
/* @__PURE__ */ e(
|
|
234
|
-
|
|
231
|
+
k,
|
|
235
232
|
{
|
|
236
233
|
label: s.favoriteChat ? "Remove from favorites" : "Add to favorites",
|
|
237
234
|
placement: "top",
|
|
238
235
|
trigger: /* @__PURE__ */ e(
|
|
239
|
-
|
|
236
|
+
T,
|
|
240
237
|
{
|
|
241
238
|
noBorder: !0,
|
|
242
239
|
label: s.favoriteChat ? "Remove from favorites" : "Add to favorites",
|
|
@@ -244,29 +241,19 @@ const q = "av-pill", J = ({ variant: t }) => i("rounded-xs border", {
|
|
|
244
241
|
onClick: async () => {
|
|
245
242
|
await p(s);
|
|
246
243
|
},
|
|
247
|
-
children: s.favoriteChat ? /* @__PURE__ */ e(
|
|
244
|
+
children: s.favoriteChat ? /* @__PURE__ */ e(_, { size: "size-4", monotone: !0 }) : /* @__PURE__ */ e($, { size: "size-4", monotone: !0 })
|
|
248
245
|
}
|
|
249
246
|
)
|
|
250
247
|
}
|
|
251
248
|
),
|
|
252
249
|
/* @__PURE__ */ e(
|
|
253
|
-
|
|
250
|
+
H,
|
|
254
251
|
{
|
|
255
252
|
label: "Delete chat",
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
noBorder: !0,
|
|
261
|
-
label: "Delete chat",
|
|
262
|
-
variant: "primary",
|
|
263
|
-
iconClassName: "text-copy-error-dark dark:!text-copy-error-light",
|
|
264
|
-
onClick: () => {
|
|
265
|
-
x(s);
|
|
266
|
-
},
|
|
267
|
-
children: /* @__PURE__ */ e(Y, { size: "size-3", monotone: !0 })
|
|
268
|
-
}
|
|
269
|
-
)
|
|
253
|
+
disabled: !1,
|
|
254
|
+
onClick: () => {
|
|
255
|
+
h(s);
|
|
256
|
+
}
|
|
270
257
|
}
|
|
271
258
|
)
|
|
272
259
|
] })
|
|
@@ -285,17 +272,17 @@ const q = "av-pill", J = ({ variant: t }) => i("rounded-xs border", {
|
|
|
285
272
|
mode: "alt-system",
|
|
286
273
|
caption: (() => {
|
|
287
274
|
const r = t.length, s = f ?? r;
|
|
288
|
-
return
|
|
275
|
+
return E && s > r ? `Showing ${A(`${r} chat`, r)} out of ${s}` : A(`${r} chat`, r);
|
|
289
276
|
})(),
|
|
290
|
-
disabled:
|
|
277
|
+
disabled: d && t.length > 0,
|
|
291
278
|
children: [
|
|
292
|
-
/* @__PURE__ */ e(
|
|
293
|
-
/* @__PURE__ */ e(
|
|
294
|
-
s ===
|
|
295
|
-
/* @__PURE__ */ e(
|
|
296
|
-
(b) =>
|
|
279
|
+
/* @__PURE__ */ e(F, { children: /* @__PURE__ */ e(C, { children: y.map((r) => I(r)) }) }),
|
|
280
|
+
/* @__PURE__ */ e(G, { children: d && t.length === 0 ? /* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(o, { colSpan: 1e3, children: /* @__PURE__ */ e("div", { children: "Loading..." }) }) }) : t.slice(0, a).map((r, s) => r?.summary ? /* @__PURE__ */ c(K, { children: [
|
|
281
|
+
s === a - L && /* @__PURE__ */ e("tr", { ref: g }),
|
|
282
|
+
/* @__PURE__ */ e(C, { children: y.map(
|
|
283
|
+
(b) => v(b, r, s)
|
|
297
284
|
) })
|
|
298
|
-
] }, `${
|
|
285
|
+
] }, `${z.HISTORY.TITLE}-${r.id}-${s}`) : null) })
|
|
299
286
|
]
|
|
300
287
|
}
|
|
301
288
|
);
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsxs as n, Fragment as ae, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { n as K, INFINITE_SCROLL_LIMIT as U, INFINITE_SCROLL_THRESHOLD as re, LOCAL_STORAGE_PREFIX as u, LOCAL_STORAGE_SORT_TIMESTAMP as se, LOCAL_STORAGE_SORT_TOKEN_USAGE as oe, LOCAL_STORAGE_SORT as ie, y as I, LOCAL_STORAGE_CHAT_ID as ne, useDeleteChat as ce, useToggleFavoriteChat as le, graphQLRequest as de, SERVICE_TYPES as he, ACTION_SORT as me, v as ue, LOCAL_STORAGE_SEARCH as Ce, LOCAL_STORAGE_FAVORITES_ONLY as Se, LOCAL_STORAGE_KEYWORD_MATCH_ALL as fe, useChatsHistory as ye, useUserChatStats as pe, ACTION_SEARCH as Te } from "./index.
|
|
3
|
-
import { HistoryContext as Y, ChatContext as ge, e as m, APP_CLASSNAME as Ae, TOAST_CHAT_DELETED as Ee, HISTORY_TITLE as _e, IconSearch as Le, Button as De, L as Oe, j as ke } from "./LogoEntry.
|
|
4
|
-
import { Card as ve } from "./index.
|
|
5
|
-
import { useAiChat as Re, useLocalStorage as C, ConfirmationPanel as be, LazyToastContainerWrapper as Ie, showErrorToast as xe, v4 as we, CHAT_RESET as He, CHAT_SET_ATTACHMENTS as Ne, CHAT_SET_STATUS as Fe, Panel as Me, debounce as Ge, Toggle as B,
|
|
6
|
-
import { TextInput as ze } from "./index.
|
|
2
|
+
import { n as K, INFINITE_SCROLL_LIMIT as U, INFINITE_SCROLL_THRESHOLD as re, LOCAL_STORAGE_PREFIX as u, LOCAL_STORAGE_SORT_TIMESTAMP as se, LOCAL_STORAGE_SORT_TOKEN_USAGE as oe, LOCAL_STORAGE_SORT as ie, y as I, LOCAL_STORAGE_CHAT_ID as ne, useDeleteChat as ce, useToggleFavoriteChat as le, graphQLRequest as de, SERVICE_TYPES as he, ACTION_SORT as me, v as ue, LOCAL_STORAGE_SEARCH as Ce, LOCAL_STORAGE_FAVORITES_ONLY as Se, LOCAL_STORAGE_KEYWORD_MATCH_ALL as fe, useChatsHistory as ye, useUserChatStats as pe, ACTION_SEARCH as Te } from "./index.C0El17wt.js";
|
|
3
|
+
import { HistoryContext as Y, ChatContext as ge, e as m, APP_CLASSNAME as Ae, TOAST_CHAT_DELETED as Ee, HISTORY_TITLE as _e, IconSearch as Le, Button as De, L as Oe, j as ke } from "./LogoEntry.CnTI8jpv.js";
|
|
4
|
+
import { Card as ve } from "./index.CoZgV6rn.js";
|
|
5
|
+
import { useAiChat as Re, useLocalStorage as C, ConfirmationPanel as be, LazyToastContainerWrapper as Ie, showErrorToast as xe, v4 as we, CHAT_RESET as He, CHAT_SET_ATTACHMENTS as Ne, CHAT_SET_STATUS as Fe, Panel as Me, debounce as Ge, Toggle as B, ButtonCancel as Ve } from "./App.Br7HE-y0.js";
|
|
6
|
+
import { TextInput as ze } from "./index.DCqTKdor.js";
|
|
7
7
|
import Pe from "clsx";
|
|
8
8
|
import { useRef as x, useState as G, useContext as V, useCallback as j, Suspense as Ue, lazy as Be, useEffect as je } from "react";
|
|
9
9
|
const Ke = Be(
|
|
10
10
|
() => import(
|
|
11
11
|
/* webpackChunkName: "history-table" */
|
|
12
|
-
"./ChatHistoryTable.
|
|
12
|
+
"./ChatHistoryTable.DhUDW7QO.js"
|
|
13
13
|
).then((S) => ({ default: S.ChatHistoryTable }))
|
|
14
14
|
), Ye = ({
|
|
15
15
|
filteredHistory: S,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as i, jsx as e, Fragment as x } from "react/jsx-runtime";
|
|
2
|
-
import { n as L, getLayoutPaddingClass as M, getMessageContaintWrapperClass as b, isTauri as I } from "./index.
|
|
3
|
-
import { Logo as N, L as E, j as t, PASSWORD_PLACEHOLDER as y, ButtonIcon as p, IconShow as S, IconHide as v, Button as w, LOG_IN as P, LOG_IN_PASSKEY as z, IconPasskey as B } from "./LogoEntry.
|
|
4
|
-
import { Card as O } from "./index.
|
|
5
|
-
import { TextInput as T, TextInputMask as W } from "./index.
|
|
2
|
+
import { n as L, getLayoutPaddingClass as M, getMessageContaintWrapperClass as b, isTauri as I } from "./index.C0El17wt.js";
|
|
3
|
+
import { Logo as N, L as E, j as t, PASSWORD_PLACEHOLDER as y, ButtonIcon as p, IconShow as S, IconHide as v, Button as w, LOG_IN as P, LOG_IN_PASSKEY as z, IconPasskey as B } from "./LogoEntry.CnTI8jpv.js";
|
|
4
|
+
import { Card as O } from "./index.CoZgV6rn.js";
|
|
5
|
+
import { TextInput as T, TextInputMask as W } from "./index.DCqTKdor.js";
|
|
6
6
|
import { useState as s, useEffect as h } from "react";
|
|
7
7
|
const q = () => {
|
|
8
8
|
const { login: g, logoutReason: o, loginWithPasskey: f } = L(), [n, l] = s(""), [d, m] = s(""), [c, C] = s(!0), [r, u] = s({
|