@versini/sassysaint 8.109.1 → 8.110.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.CHx3bA8W.js → AboutChangelog.BfOWMaYg.js} +2 -2
- package/dist/chunks/{AboutEntry.B7hjR8pi.js → AboutEntry.B7fBRGac.js} +7 -7
- package/dist/chunks/{App.CvQU6EGq.js → App.BD0e8HgV.js} +4268 -4005
- package/dist/chunks/{Bubble.B5Bk6utN.js → Bubble.fxUgvZMG.js} +1 -1
- package/dist/chunks/{ButtonIconDelete.C0IuterV.js → ButtonIconDelete.Bw7zU6Rb.js} +2 -2
- package/dist/chunks/{Chart.Bhit-mtQ.js → Chart.C-EqsPgy.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.BFdbFREH.js → ChatBubbleAssistant.hM8owVIk.js} +4 -4
- package/dist/chunks/{ChatBubbleUser.BR5AqwE9.js → ChatBubbleUser.CnsuEhxO.js} +3 -3
- package/dist/chunks/{ChatHistoryTable.BJUF2mNs.js → ChatHistoryTable.WRplbgo4.js} +4 -4
- package/dist/chunks/HistoryEntry.BgO_PD7Q.js +373 -0
- package/dist/chunks/{LoginEntry.DKzVM9lq.js → LoginEntry.DvDNWT7T.js} +4 -4
- package/dist/chunks/{LogoEntry.Et0a-97_.js → LogoEntry.CucXks5G.js} +2 -2
- package/dist/chunks/{MemoriesEntry.yJKFVG54.js → MemoriesEntry.OQ1K4KNa.js} +5 -5
- package/dist/chunks/ProfileEntry.CbZLIK8x.js +213 -0
- package/dist/chunks/{SettingsEntry.BP8H8gHu.js → SettingsEntry.ByPtC4lj.js} +5 -5
- package/dist/chunks/{UsageEntry.CamC3XI3.js → UsageEntry.CSkPteMr.js} +5 -5
- package/dist/chunks/_baseUniq.DJhemj5B.js +477 -0
- package/dist/chunks/{arc.ynrnfWOq.js → arc.ClK0mYh2.js} +1 -1
- package/dist/chunks/{architecture-U656AL7Q.DtWoTE88.js → architecture-U656AL7Q.DGORleeb.js} +1 -1
- package/dist/chunks/{architectureDiagram-VXUJARFQ.CDFvIr0j.js → architectureDiagram-VXUJARFQ.HR_eet_T.js} +4 -4
- package/dist/chunks/{blockDiagram-VD42YOAC.BLWWo36R.js → blockDiagram-VD42YOAC.CWrnXf_B.js} +5 -5
- package/dist/chunks/{browser.BvYD8dc4.js → browser.5ieI9QUP.js} +1 -1
- package/dist/chunks/{c4Diagram-YG6GDRKO.-whHC2cr.js → c4Diagram-YG6GDRKO.CaA0SaMc.js} +2 -2
- package/dist/chunks/{channel.CiPC9guK.js → channel.BI8KZVUl.js} +1 -1
- package/dist/chunks/{chunk-4BX2VUAB.BOZN6uSe.js → chunk-4BX2VUAB.CTzK9jPw.js} +1 -1
- package/dist/chunks/{chunk-55IACEB6.wEa6Vrrn.js → chunk-55IACEB6.DMb8Reca.js} +1 -1
- package/dist/chunks/{chunk-B4BG7PRW.sEhBCKvF.js → chunk-B4BG7PRW.BHBa3N2V.js} +4 -4
- package/dist/chunks/{chunk-DI55MBZ5.DJ2ZY0Xk.js → chunk-DI55MBZ5.Bqwg_jpX.js} +3 -3
- package/dist/chunks/{chunk-FMBD7UC4.jo8ibE98.js → chunk-FMBD7UC4.p8OpoFJE.js} +1 -1
- package/dist/chunks/{chunk-QN33PNHL.FbSApAGi.js → chunk-QN33PNHL._xYLGQNv.js} +1 -1
- package/dist/chunks/{chunk-QZHKN3VN.B-GQnYi1.js → chunk-QZHKN3VN.Bt1FHb64.js} +1 -1
- package/dist/chunks/{chunk-TZMSLE5B.DeXLG4gm.js → chunk-TZMSLE5B.hFsU0iJf.js} +1 -1
- package/dist/chunks/{classDiagram-2ON5EDUG.BFI_M0Vv.js → classDiagram-2ON5EDUG.DiSJfiEu.js} +2 -2
- package/dist/chunks/{classDiagram-v2-WZHVMYZB.BFI_M0Vv.js → classDiagram-v2-WZHVMYZB.DiSJfiEu.js} +2 -2
- package/dist/chunks/{clone.CoM2ipCS.js → clone.NcwizCyH.js} +1 -1
- package/dist/chunks/{cose-bilkent-S5V4N54A.CW44zK-a.js → cose-bilkent-S5V4N54A.DogEbzcD.js} +2 -2
- package/dist/chunks/{dagre-6UL2VRFP.VaYbgRPs.js → dagre-6UL2VRFP.Cy_GltZx.js} +21 -22
- package/dist/chunks/{diagram-PSM6KHXK.CrrlGnPy.js → diagram-PSM6KHXK.CazeYJ2F.js} +4 -4
- package/dist/chunks/{diagram-QEK2KX5R.BSo_CGEX.js → diagram-QEK2KX5R.ByhZHDpm.js} +3 -3
- package/dist/chunks/{diagram-S2PKOQOG.Rgo5A0oh.js → diagram-S2PKOQOG.D49-fpQd.js} +3 -3
- package/dist/chunks/{erDiagram-Q2GNP2WA.v7LUWRA_.js → erDiagram-Q2GNP2WA.nce3gDBb.js} +4 -4
- package/dist/chunks/{flowDiagram-NV44I4VS.CUK5d1OY.js → flowDiagram-NV44I4VS.DDUGMSKf.js} +5 -5
- package/dist/chunks/{ganttDiagram-JELNMOA3.DSpVGXrZ.js → ganttDiagram-JELNMOA3.NGXzLkaH.js} +2 -2
- package/dist/chunks/{gitGraph-F6HP7TQM.CR5ma9FN.js → gitGraph-F6HP7TQM.BzKXexyv.js} +1 -1
- package/dist/chunks/{gitGraphDiagram-NY62KEGX.ddzDD3PJ.js → gitGraphDiagram-NY62KEGX.C3cn9f8o.js} +4 -4
- package/dist/chunks/graph.CURTRirk.js +381 -0
- package/dist/chunks/{index.7QjsCYx3.js → index.BYDZbdMZ.js} +1 -1
- package/dist/chunks/{index.Bo0ZyMS6.js → index.BinkIORG.js} +1 -1
- package/dist/chunks/{index.DpqePp5S.js → index.BqIARWUR.js} +1 -1
- package/dist/chunks/{index.BNY6p-fk.js → index.CBEv2y_C.js} +2 -2
- package/dist/chunks/{index.D0bvjdAE.js → index.CURM9PiU.js} +1 -1
- package/dist/chunks/{index.D1HS2InQ.js → index.CkajM1v0.js} +1 -1
- package/dist/chunks/{index.CNOm7KYJ.js → index.DAuo-OH1.js} +1 -1
- package/dist/chunks/{index.DZn5_zSr.js → index.gy41K1EE.js} +4 -4
- package/dist/chunks/{index.D3lm4Af9.js → index.uUNtrS04.js} +3 -3
- package/dist/chunks/{info-NVLQJR56.DUQkycDd.js → info-NVLQJR56.CHnZmbT7.js} +1 -1
- package/dist/chunks/{infoDiagram-WHAUD3N6.NPaVwPcu.js → infoDiagram-WHAUD3N6.DCZfKYU8.js} +2 -2
- package/dist/chunks/{journeyDiagram-XKPGCS4Q.sLc-NUAF.js → journeyDiagram-XKPGCS4Q.B-0JNmK_.js} +4 -4
- package/dist/chunks/{kanban-definition-3W4ZIXB7.CJM-u6MS.js → kanban-definition-3W4ZIXB7.C7aI8iBJ.js} +2 -2
- package/dist/chunks/{katex.D0sQThIv.js → katex.6qoCFezb.js} +898 -896
- package/dist/chunks/layout.Bmgsrc8X.js +1438 -0
- package/dist/chunks/{mermaid-parser.core.3uaMP7ZS.js → mermaid-parser.core.BZIZyjyF.js} +6567 -5346
- package/dist/chunks/min.CtR4qhyM.js +38 -0
- package/dist/chunks/{mindmap-definition-VGOIOE7T.Q2m6DBXW.js → mindmap-definition-VGOIOE7T.DCsxzuhI.js} +3 -3
- package/dist/chunks/{packet-BFZMPI3H.sN5Fa0Sr.js → packet-BFZMPI3H.CQ2Sbdms.js} +1 -1
- package/dist/chunks/{pie-7BOR55EZ.BScE_xM_.js → pie-7BOR55EZ.BYs1omMd.js} +1 -1
- package/dist/chunks/{pieDiagram-ADFJNKIX.WKnsLjJ9.js → pieDiagram-ADFJNKIX.DqkDHdMo.js} +4 -4
- package/dist/chunks/{quadrantDiagram-AYHSOK5B.CF5uxytb.js → quadrantDiagram-AYHSOK5B.Cx-eq1uu.js} +1 -1
- package/dist/chunks/{radar-NHE76QYJ.C3c_hhO0.js → radar-NHE76QYJ.CIqwL1Hw.js} +1 -1
- package/dist/chunks/{rehype-mermaid.9DNnJpsp.js → rehype-mermaid.LJaY9ylI.js} +34 -36
- package/dist/chunks/{requirementDiagram-UZGBJVZJ.BgyWk-vG.js → requirementDiagram-UZGBJVZJ.C-YKp79x.js} +3 -3
- package/dist/chunks/{sankeyDiagram-TZEHDZUN.DGhb8Q2q.js → sankeyDiagram-TZEHDZUN.BbfUzvVS.js} +1 -1
- package/dist/chunks/{sequenceDiagram-WL72ISMW.BdgDMneu.js → sequenceDiagram-WL72ISMW.D5wDvZwT.js} +3 -3
- package/dist/chunks/{stateDiagram-FKZM4ZOC.WvFhN-Y1.js → stateDiagram-FKZM4ZOC.-65PQCxm.js} +4 -4
- package/dist/chunks/{stateDiagram-v2-4FDKWEC3.XGGE9T11.js → stateDiagram-v2-4FDKWEC3.BXy_3BUS.js} +2 -2
- package/dist/chunks/{timeline-definition-IT6M3QCI.BZ0pWBft.js → timeline-definition-IT6M3QCI.B2tmtGDZ.js} +2 -2
- package/dist/chunks/{treemap-KMMF4GRG.DkuK4pnF.js → treemap-KMMF4GRG.Dm_alnmO.js} +1 -1
- package/dist/chunks/{useMarkdown.C-Fn6Ae-.js → useMarkdown.BWJCktGN.js} +771 -771
- package/dist/chunks/{xychartDiagram-PRI3JC2R.D313uw2n.js → xychartDiagram-PRI3JC2R.XQCHu3eO.js} +1 -1
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +3 -3
- package/dist/chunks/HistoryEntry.BiqgKjR3.js +0 -362
- package/dist/chunks/ProfileEntry.8zXuUXK_.js +0 -197
- package/dist/chunks/_basePickBy.DwmlU26x.js +0 -151
- package/dist/chunks/_baseUniq.BQsx-qln.js +0 -614
- package/dist/chunks/graph.Dw7qTm3Q.js +0 -247
- package/dist/chunks/layout.BGNrNalg.js +0 -1332
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as x, jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { ButtonIcon as N, IconCopied as $, IconCopy as E } from "./LogoEntry.
|
|
2
|
+
import { ButtonIcon as N, IconCopied as $, IconCopy as E } from "./LogoEntry.CucXks5G.js";
|
|
3
3
|
import { useState as z, useEffect as j } from "react";
|
|
4
4
|
import t from "clsx";
|
|
5
5
|
const u = "av-bubble";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as s, jsxs as b, Fragment as I } from "react/jsx-runtime";
|
|
2
2
|
import c from "clsx";
|
|
3
3
|
import N, { useContext as y } from "react";
|
|
4
|
-
import { ButtonIcon as v, e as k, IconDelete as z } from "./LogoEntry.
|
|
5
|
-
import { ResponsiveTooltip as S } from "./App.
|
|
4
|
+
import { ButtonIcon as v, e as k, IconDelete as z } from "./LogoEntry.CucXks5G.js";
|
|
5
|
+
import { ResponsiveTooltip as S } from "./App.BD0e8HgV.js";
|
|
6
6
|
const w = /* @__PURE__ */ N.forwardRef(({ children: e, mode: t = "system", className: a, active: r = !1, ...l }, o) => {
|
|
7
7
|
const d = r ? c("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
8
|
"after:border-table-light": t === "dark",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as Pp } from "react/jsx-runtime";
|
|
2
|
-
import { getDefaultExportFromCjs as dn, isProbablyMobile as Op } from "./App.
|
|
2
|
+
import { getDefaultExportFromCjs as dn, isProbablyMobile as Op } from "./App.BD0e8HgV.js";
|
|
3
3
|
import Lp, { useMemo as Ep } from "react";
|
|
4
|
-
import { TRIMESTERS_SHORT as Ip, TRIMESTERS as on, TIME_RANGES as ls, TIME_RANGE_LABELS as an } from "./LogoEntry.
|
|
4
|
+
import { TRIMESTERS_SHORT as Ip, TRIMESTERS as on, TIME_RANGES as ls, TIME_RANGE_LABELS as an } from "./LogoEntry.CucXks5G.js";
|
|
5
5
|
var hs = { exports: {} }, Dp = hs.exports, nn;
|
|
6
6
|
function Bp() {
|
|
7
7
|
return nn || (nn = 1, (function(Ae, pe) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as rs } from "react/jsx-runtime";
|
|
2
|
-
import { n as as, useUserPreferences as os, formatTimestamp as vt } from "./index.
|
|
3
|
-
import { numberFormatter as ls, pluralize as us, AsyncBubble as cs } from "./App.
|
|
2
|
+
import { n as as, useUserPreferences as os, formatTimestamp as vt } from "./index.CBEv2y_C.js";
|
|
3
|
+
import { numberFormatter as ls, pluralize as us, AsyncBubble as cs } from "./App.BD0e8HgV.js";
|
|
4
4
|
import Ht from "clsx";
|
|
5
5
|
import fs, { useState as Ae, useEffect as Zt, useContext as Vt } from "react";
|
|
6
|
-
import { useMarkdown as hs } from "./useMarkdown.
|
|
7
|
-
import { ChatContext as ds, AppContext as ps } from "./LogoEntry.
|
|
6
|
+
import { useMarkdown as hs } from "./useMarkdown.BWJCktGN.js";
|
|
7
|
+
import { ChatContext as ds, AppContext as ps } from "./LogoEntry.CucXks5G.js";
|
|
8
8
|
const Me = {
|
|
9
9
|
isEmpty: !0
|
|
10
10
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as i, Fragment as C, jsxs as S } from "react/jsx-runtime";
|
|
2
|
-
import { Button as b } from "./LogoEntry.
|
|
2
|
+
import { Button as b } from "./LogoEntry.CucXks5G.js";
|
|
3
3
|
import { useState as k, useMemo as m, isValidElement as T, useEffect as H } from "react";
|
|
4
|
-
import { useMarkdown as h } from "./useMarkdown.
|
|
5
|
-
import { AsyncBubble as M } from "./App.
|
|
4
|
+
import { useMarkdown as h } from "./useMarkdown.BWJCktGN.js";
|
|
5
|
+
import { AsyncBubble as M } from "./App.BD0e8HgV.js";
|
|
6
6
|
const O = 200, w = ({ string: e, idealLength: r = O }) => {
|
|
7
7
|
if (e.length <= r)
|
|
8
8
|
return {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as c, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { y as N, v as S, INFINITE_SCROLL_THRESHOLD as L } from "./index.
|
|
3
|
-
import { IconCloseLight as D, CARDS as z, ButtonIcon as T, IconRestore as B, IconStarInCircle as _, IconStarInCircleLight as $ } from "./LogoEntry.
|
|
2
|
+
import { y as N, v as S, INFINITE_SCROLL_THRESHOLD as L } from "./index.CBEv2y_C.js";
|
|
3
|
+
import { IconCloseLight as D, CARDS as z, ButtonIcon as T, IconRestore as B, IconStarInCircle as _, IconStarInCircleLight as $ } from "./LogoEntry.CucXks5G.js";
|
|
4
4
|
import { useState as Y, Fragment as K } from "react";
|
|
5
5
|
import i from "clsx";
|
|
6
|
-
import { H as W, F, q as C, Y as G, O as o, J as w, ButtonIconDelete as H } from "./ButtonIconDelete.
|
|
7
|
-
import { pluralize as A, ResponsiveTooltip as k, numberFormatter as j, isProbablyMobile as V } from "./App.
|
|
6
|
+
import { H as W, F, q as C, Y as G, O as o, J as w, ButtonIconDelete as H } from "./ButtonIconDelete.Bw7zU6Rb.js";
|
|
7
|
+
import { pluralize as A, ResponsiveTooltip as k, numberFormatter as j, isProbablyMobile as V } from "./App.BD0e8HgV.js";
|
|
8
8
|
const q = "av-pill", J = ({ variant: t }) => i("rounded-xs border", {
|
|
9
9
|
"border-border-information": t === "information",
|
|
10
10
|
"border-border-warning": t === "warning",
|
|
@@ -0,0 +1,373 @@
|
|
|
1
|
+
import { jsxs as n, Fragment as Q, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { n as ee, INFINITE_SCROLL_LIMIT as Z, INFINITE_SCROLL_THRESHOLD as ae, LOCAL_STORAGE_PREFIX as d, LOCAL_STORAGE_SORT_TIMESTAMP as re, LOCAL_STORAGE_SORT_TOKEN_USAGE as oe, LOCAL_STORAGE_SORT as se, y as F, LOCAL_STORAGE_CHAT_ID as ne, useDeleteChat as ie, useToggleFavoriteChat as ce, graphQLRequest as le, SERVICE_TYPES as de, ACTION_SORT as he, v as me, LOCAL_STORAGE_SEARCH as ue, LOCAL_STORAGE_FAVORITES_ONLY as Ce, LOCAL_STORAGE_KEYWORD_MATCH_ALL as fe, useChatsHistory as Se, useUserChatStats as ye, ACTION_SEARCH as pe } from "./index.CBEv2y_C.js";
|
|
3
|
+
import { HistoryContext as te, ChatContext as Te, e as l, APP_CLASSNAME as ge, TOAST_CHAT_DELETED as Ae, HISTORY_TITLE as Ee, IconSearch as _e, Button as Le, L as De, j as Oe } from "./LogoEntry.CucXks5G.js";
|
|
4
|
+
import { Card as ke } from "./index.BYDZbdMZ.js";
|
|
5
|
+
import { useAiChat as ve, useLocalStorage as h, LazyToastContainerWrapper as Re, v4 as be, CHAT_RESET as Ie, CHAT_SET_ATTACHMENTS as xe, CHAT_SET_STATUS as we, showErrorToast as He, ConfirmationPanel as Ne, Panel as Fe, debounce as Me, Toggle as $, ButtonCancel as Ge } from "./App.BD0e8HgV.js";
|
|
6
|
+
import { TextInput as Ve } from "./index.CURM9PiU.js";
|
|
7
|
+
import ze from "clsx";
|
|
8
|
+
import { useRef as M, useState as L, useContext as X, useCallback as G, Suspense as Pe, lazy as Ue, useEffect as Be } from "react";
|
|
9
|
+
const je = Ue(
|
|
10
|
+
() => import(
|
|
11
|
+
/* webpackChunkName: "history-table" */
|
|
12
|
+
"./ChatHistoryTable.WRplbgo4.js"
|
|
13
|
+
).then((m) => ({ default: m.ChatHistoryTable }))
|
|
14
|
+
), Ke = ({
|
|
15
|
+
filteredHistory: m,
|
|
16
|
+
onOpenChange: y,
|
|
17
|
+
mutate: p,
|
|
18
|
+
isLoading: D = !1,
|
|
19
|
+
totalHistoryCount: O,
|
|
20
|
+
isFiltered: V = !1,
|
|
21
|
+
isSearchActive: k = !1,
|
|
22
|
+
requestConfirmation: u
|
|
23
|
+
}) => {
|
|
24
|
+
const { user: o, getAccessToken: T } = ee(), g = M(null), C = M({
|
|
25
|
+
id: "",
|
|
26
|
+
timestamp: "",
|
|
27
|
+
message: ""
|
|
28
|
+
}), [z, v] = L(
|
|
29
|
+
Z + ae
|
|
30
|
+
), { state: i, dispatch: P } = X(te), R = {
|
|
31
|
+
searchString: i.searchString || "",
|
|
32
|
+
sortDirection: i.sortDirection || l.DESC,
|
|
33
|
+
sortedCell: i.sortedCell || F
|
|
34
|
+
}, {
|
|
35
|
+
setChatId: f,
|
|
36
|
+
setInitialMessages: A,
|
|
37
|
+
dispatch: E
|
|
38
|
+
} = X(Te), { setInput: _ } = ve(), [b, I] = h({
|
|
39
|
+
key: d + re,
|
|
40
|
+
initialValue: l.DESC
|
|
41
|
+
}), [S, U] = h({
|
|
42
|
+
key: d + oe,
|
|
43
|
+
initialValue: l.ASC
|
|
44
|
+
}), [, x] = h({
|
|
45
|
+
key: d + se,
|
|
46
|
+
initialValue: F
|
|
47
|
+
}), [w] = h({
|
|
48
|
+
key: d + ne,
|
|
49
|
+
initialValue: ""
|
|
50
|
+
}), { mutateAsync: c } = ie({ getAccessToken: T }), { mutateAsync: B } = ce({
|
|
51
|
+
getAccessToken: T
|
|
52
|
+
}), H = (e) => {
|
|
53
|
+
const s = i.sortedCell === e;
|
|
54
|
+
let r, N;
|
|
55
|
+
switch (e) {
|
|
56
|
+
case F:
|
|
57
|
+
N = I, r = s ? i.sortDirection : b;
|
|
58
|
+
break;
|
|
59
|
+
case me:
|
|
60
|
+
N = U, r = s ? i.sortDirection : S;
|
|
61
|
+
break;
|
|
62
|
+
default:
|
|
63
|
+
N = I, r = s ? i.sortDirection : b;
|
|
64
|
+
break;
|
|
65
|
+
}
|
|
66
|
+
const J = r === l.ASC ? l.DESC : l.ASC;
|
|
67
|
+
N(J), x(e), P({
|
|
68
|
+
type: he,
|
|
69
|
+
payload: {
|
|
70
|
+
sortedCell: e,
|
|
71
|
+
sortDirection: J
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
}, j = async (e) => {
|
|
75
|
+
try {
|
|
76
|
+
await c({
|
|
77
|
+
userId: o?.username || "",
|
|
78
|
+
id: e
|
|
79
|
+
}), p(""), await He(Ae, {
|
|
80
|
+
autoClose: 2e3,
|
|
81
|
+
containerId: "history-table"
|
|
82
|
+
});
|
|
83
|
+
} catch {
|
|
84
|
+
}
|
|
85
|
+
}, K = async (e) => {
|
|
86
|
+
try {
|
|
87
|
+
const s = await T(), r = await le({
|
|
88
|
+
accessToken: s,
|
|
89
|
+
type: de.GET_CHAT,
|
|
90
|
+
params: {
|
|
91
|
+
id: e.id
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
E({
|
|
95
|
+
type: we,
|
|
96
|
+
payload: {
|
|
97
|
+
streaming: !1,
|
|
98
|
+
loading: !1,
|
|
99
|
+
restoring: !0,
|
|
100
|
+
restoredModel: r.data?.model || "",
|
|
101
|
+
restoredTimestamp: r.data?.timestamp || "",
|
|
102
|
+
restoredUsage: r.data?.tokenUsage || 0
|
|
103
|
+
}
|
|
104
|
+
}), _(""), f(e.id), A(r.data.messages), y(!1);
|
|
105
|
+
} catch {
|
|
106
|
+
}
|
|
107
|
+
}, Y = (e) => {
|
|
108
|
+
C.current = {
|
|
109
|
+
id: e.id,
|
|
110
|
+
timestamp: e.timestamp,
|
|
111
|
+
message: e.summary
|
|
112
|
+
}, u(
|
|
113
|
+
() => j(e.id),
|
|
114
|
+
/* @__PURE__ */ n(Q, { children: [
|
|
115
|
+
/* @__PURE__ */ t("p", { className: "m-0", children: "Are you sure you want to delete the following chat:" }),
|
|
116
|
+
/* @__PURE__ */ n("ul", { className: "m-0", children: [
|
|
117
|
+
/* @__PURE__ */ n("li", { children: [
|
|
118
|
+
"Timestamp: ",
|
|
119
|
+
/* @__PURE__ */ t("span", { className: "text-lg", children: e.timestamp })
|
|
120
|
+
] }),
|
|
121
|
+
/* @__PURE__ */ n("li", { children: [
|
|
122
|
+
"First message: ",
|
|
123
|
+
/* @__PURE__ */ t("span", { className: "text-lg", children: e.summary })
|
|
124
|
+
] })
|
|
125
|
+
] })
|
|
126
|
+
] })
|
|
127
|
+
), w === e.id && (f(be()), A([]), _(""), E({
|
|
128
|
+
type: Ie,
|
|
129
|
+
payload: {
|
|
130
|
+
privateChat: !1,
|
|
131
|
+
reasoningText: !1
|
|
132
|
+
}
|
|
133
|
+
}), E({
|
|
134
|
+
type: xe,
|
|
135
|
+
payload: {
|
|
136
|
+
attachments: 0
|
|
137
|
+
}
|
|
138
|
+
}));
|
|
139
|
+
}, q = async (e) => {
|
|
140
|
+
try {
|
|
141
|
+
await B({
|
|
142
|
+
userId: o?.username || "",
|
|
143
|
+
id: e.id
|
|
144
|
+
}), p("");
|
|
145
|
+
} catch {
|
|
146
|
+
}
|
|
147
|
+
}, a = G((e) => {
|
|
148
|
+
e[0].isIntersecting && v((r) => r + Z);
|
|
149
|
+
}, []), W = G(
|
|
150
|
+
(e) => {
|
|
151
|
+
if (g.current && g.current.disconnect(), e) {
|
|
152
|
+
const s = {
|
|
153
|
+
rootMargin: "20px"
|
|
154
|
+
}, r = new IntersectionObserver(a, s);
|
|
155
|
+
r.observe(e), g.current = r;
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
[a]
|
|
159
|
+
);
|
|
160
|
+
return /* @__PURE__ */ n(Q, { children: [
|
|
161
|
+
/* @__PURE__ */ t("div", { className: ge, children: /* @__PURE__ */ t(Re, { containerId: "history-table" }) }),
|
|
162
|
+
/* @__PURE__ */ t(Pe, { fallback: /* @__PURE__ */ t("div", {}), children: /* @__PURE__ */ t(
|
|
163
|
+
je,
|
|
164
|
+
{
|
|
165
|
+
filteredHistory: m,
|
|
166
|
+
historyState: R,
|
|
167
|
+
lastEntryToLoad: z,
|
|
168
|
+
onClickSort: H,
|
|
169
|
+
onClickRestore: K,
|
|
170
|
+
onClickDelete: Y,
|
|
171
|
+
onClickFavorite: q,
|
|
172
|
+
infinityScrollMarkerRef: W,
|
|
173
|
+
isLoading: D,
|
|
174
|
+
totalHistoryCount: O,
|
|
175
|
+
isFiltered: V,
|
|
176
|
+
isSearchActive: k
|
|
177
|
+
}
|
|
178
|
+
) })
|
|
179
|
+
] });
|
|
180
|
+
}, et = ({
|
|
181
|
+
open: m,
|
|
182
|
+
onOpenChange: y
|
|
183
|
+
}) => {
|
|
184
|
+
const p = M(null), { getAccessToken: D, user: O } = ee(), [V, k] = L([]), u = M(null), { state: o, dispatch: T } = X(te), [, g] = h({
|
|
185
|
+
key: d + ue,
|
|
186
|
+
initialValue: o.searchString
|
|
187
|
+
}), [C, z] = h({
|
|
188
|
+
key: d + Ce,
|
|
189
|
+
initialValue: !1
|
|
190
|
+
}), [v, i] = h({
|
|
191
|
+
key: d + fe,
|
|
192
|
+
initialValue: !0
|
|
193
|
+
}), [P, R] = L(!1), [f, A] = L(null), [E, _] = L(null), b = G(
|
|
194
|
+
(a, W) => {
|
|
195
|
+
A(() => a), _(W), R(!0);
|
|
196
|
+
},
|
|
197
|
+
[]
|
|
198
|
+
), I = G(() => {
|
|
199
|
+
f && f(), A(null), _(null);
|
|
200
|
+
}, [f]), {
|
|
201
|
+
data: S,
|
|
202
|
+
refetch: U,
|
|
203
|
+
isLoading: x,
|
|
204
|
+
isError: w
|
|
205
|
+
} = Se({
|
|
206
|
+
enabled: m,
|
|
207
|
+
user: O?.username || "",
|
|
208
|
+
searchString: o.searchString || "",
|
|
209
|
+
sortDirection: o.sortDirection || l.DESC,
|
|
210
|
+
sortedCell: o.sortedCell || F,
|
|
211
|
+
getAccessToken: D,
|
|
212
|
+
keywordMatchAll: v
|
|
213
|
+
}), { data: c } = ye({
|
|
214
|
+
user: O?.username,
|
|
215
|
+
getAccessToken: D
|
|
216
|
+
}), B = c && c.totalChats ? c.totalChats - c.privateChats - c.deletedChats : 0;
|
|
217
|
+
Be(() => {
|
|
218
|
+
S && k(
|
|
219
|
+
C ? S.filter((a) => a.favoriteChat === !0) : S
|
|
220
|
+
);
|
|
221
|
+
}, [S, C]);
|
|
222
|
+
const H = async (a) => {
|
|
223
|
+
g(a), T({
|
|
224
|
+
type: pe,
|
|
225
|
+
payload: { searchString: a }
|
|
226
|
+
});
|
|
227
|
+
}, j = Me((a) => {
|
|
228
|
+
H(a.target.value.trim());
|
|
229
|
+
}, 800), K = async (a) => {
|
|
230
|
+
a.preventDefault();
|
|
231
|
+
}, Y = (a) => {
|
|
232
|
+
z(a);
|
|
233
|
+
}, q = (a) => {
|
|
234
|
+
i(a);
|
|
235
|
+
};
|
|
236
|
+
return /* @__PURE__ */ n(Q, { children: [
|
|
237
|
+
/* @__PURE__ */ t(
|
|
238
|
+
Ne,
|
|
239
|
+
{
|
|
240
|
+
showConfirmation: P,
|
|
241
|
+
setShowConfirmation: R,
|
|
242
|
+
action: I,
|
|
243
|
+
customStrings: {
|
|
244
|
+
confirmAction: "Delete",
|
|
245
|
+
cancelAction: "Cancel",
|
|
246
|
+
title: "Delete chat"
|
|
247
|
+
},
|
|
248
|
+
children: E
|
|
249
|
+
}
|
|
250
|
+
),
|
|
251
|
+
/* @__PURE__ */ n(
|
|
252
|
+
Fe,
|
|
253
|
+
{
|
|
254
|
+
open: m,
|
|
255
|
+
onOpenChange: y,
|
|
256
|
+
title: Ee,
|
|
257
|
+
animation: !0,
|
|
258
|
+
animationType: "fade",
|
|
259
|
+
blurEffect: "large",
|
|
260
|
+
initialFocus: p,
|
|
261
|
+
footer: /* @__PURE__ */ t(
|
|
262
|
+
De,
|
|
263
|
+
{
|
|
264
|
+
columnGap: 2,
|
|
265
|
+
alignHorizontal: "flex-end",
|
|
266
|
+
className: "pb-8 sm:pb-0",
|
|
267
|
+
children: /* @__PURE__ */ t(Oe, { children: /* @__PURE__ */ t(Ge, { onOpenChange: y, ref: p }) })
|
|
268
|
+
}
|
|
269
|
+
),
|
|
270
|
+
children: [
|
|
271
|
+
/* @__PURE__ */ t(
|
|
272
|
+
ke,
|
|
273
|
+
{
|
|
274
|
+
header: x && o.searchString ? "Loading..." : o.searchString ? "Filters applied" : "Filters",
|
|
275
|
+
className: "prose-dark dark:prose-lighter mb-4",
|
|
276
|
+
noBorder: !0,
|
|
277
|
+
compact: !0,
|
|
278
|
+
children: /* @__PURE__ */ n("form", { autoComplete: "off", onSubmit: K, children: [
|
|
279
|
+
/* @__PURE__ */ t(
|
|
280
|
+
Ve,
|
|
281
|
+
{
|
|
282
|
+
placeholder: "Search",
|
|
283
|
+
labelHidden: !0,
|
|
284
|
+
noBorder: !0,
|
|
285
|
+
autoCapitalize: "off",
|
|
286
|
+
autoComplete: "off",
|
|
287
|
+
autoCorrect: "off",
|
|
288
|
+
ref: u,
|
|
289
|
+
defaultValue: o.searchString,
|
|
290
|
+
mode: "alt-system",
|
|
291
|
+
name: "Search",
|
|
292
|
+
label: "Search",
|
|
293
|
+
onChange: j,
|
|
294
|
+
className: "my-2",
|
|
295
|
+
rightElement: /* @__PURE__ */ t("div", { className: "dark:text-copy-dark text-copy-light", children: /* @__PURE__ */ t(_e, { monotone: !0, size: "size-3" }) })
|
|
296
|
+
}
|
|
297
|
+
),
|
|
298
|
+
/* @__PURE__ */ n("div", { className: "flex flex-col justify-between sm:flex-row gap-2 sm:mb-0 mb-1", children: [
|
|
299
|
+
/* @__PURE__ */ n("div", { className: "flex flex-col sm:flex-row gap-2 order-1 sm:order-0", children: [
|
|
300
|
+
/* @__PURE__ */ t(
|
|
301
|
+
$,
|
|
302
|
+
{
|
|
303
|
+
name: "favorites-only",
|
|
304
|
+
checked: C,
|
|
305
|
+
onChange: Y,
|
|
306
|
+
label: "Show favorites only",
|
|
307
|
+
narrow: !0,
|
|
308
|
+
noBorder: !0
|
|
309
|
+
}
|
|
310
|
+
),
|
|
311
|
+
/* @__PURE__ */ t(
|
|
312
|
+
$,
|
|
313
|
+
{
|
|
314
|
+
name: "keyword-match-all",
|
|
315
|
+
checked: v,
|
|
316
|
+
onChange: q,
|
|
317
|
+
label: "Match all keywords",
|
|
318
|
+
narrow: !0,
|
|
319
|
+
noBorder: !0
|
|
320
|
+
}
|
|
321
|
+
)
|
|
322
|
+
] }),
|
|
323
|
+
/* @__PURE__ */ t(
|
|
324
|
+
Le,
|
|
325
|
+
{
|
|
326
|
+
mode: "light",
|
|
327
|
+
size: "small",
|
|
328
|
+
disabled: o.searchString === "",
|
|
329
|
+
onClick: () => {
|
|
330
|
+
H(""), u.current?.value && (u.current.value = "", u.current.focus());
|
|
331
|
+
},
|
|
332
|
+
children: "Reset Search"
|
|
333
|
+
}
|
|
334
|
+
)
|
|
335
|
+
] })
|
|
336
|
+
] })
|
|
337
|
+
}
|
|
338
|
+
),
|
|
339
|
+
/* @__PURE__ */ n(
|
|
340
|
+
"div",
|
|
341
|
+
{
|
|
342
|
+
className: ze(
|
|
343
|
+
"flex flex-col sm:flex-row",
|
|
344
|
+
"max-h-[65vh]",
|
|
345
|
+
"sm:max-h-[75vh]",
|
|
346
|
+
"min-h-[60vh]"
|
|
347
|
+
),
|
|
348
|
+
children: [
|
|
349
|
+
w && /* @__PURE__ */ t("p", { className: "m-0 text-copy-error-light", children: "Failed to load history." }),
|
|
350
|
+
!w && /* @__PURE__ */ t(
|
|
351
|
+
Ke,
|
|
352
|
+
{
|
|
353
|
+
mutate: U,
|
|
354
|
+
filteredHistory: V,
|
|
355
|
+
onOpenChange: y,
|
|
356
|
+
isLoading: x,
|
|
357
|
+
totalHistoryCount: B,
|
|
358
|
+
isFiltered: !!(o.searchString || C),
|
|
359
|
+
isSearchActive: !!o.searchString,
|
|
360
|
+
requestConfirmation: b
|
|
361
|
+
}
|
|
362
|
+
)
|
|
363
|
+
]
|
|
364
|
+
}
|
|
365
|
+
)
|
|
366
|
+
]
|
|
367
|
+
}
|
|
368
|
+
)
|
|
369
|
+
] });
|
|
370
|
+
};
|
|
371
|
+
export {
|
|
372
|
+
et as HistoryPanel
|
|
373
|
+
};
|
|
@@ -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.CBEv2y_C.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.CucXks5G.js";
|
|
4
|
+
import { Card as O } from "./index.BYDZbdMZ.js";
|
|
5
|
+
import { TextInput as T, TextInputMask as W } from "./index.CURM9PiU.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({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import w, { useRef as _, useEffect as P, useCallback as e1, useState as h1, useMemo as Y, useContext as t1, useId as d1, useLayoutEffect as X } from "react";
|
|
2
2
|
import { jsx as r, jsxs as l } from "react/jsx-runtime";
|
|
3
3
|
import n from "clsx";
|
|
4
|
-
import { V as d, e as u1, P as m1, r as p1 } from "./index.
|
|
4
|
+
import { V as d, e as u1, P as m1, r as p1 } from "./index.CBEv2y_C.js";
|
|
5
5
|
function y1() {
|
|
6
6
|
const e = _(!1);
|
|
7
7
|
return P(() => (e.current = !0, () => {
|
|
@@ -201,7 +201,7 @@ const f1 = {
|
|
|
201
201
|
state: {
|
|
202
202
|
provider: m1,
|
|
203
203
|
privateChat: !1,
|
|
204
|
-
|
|
204
|
+
reasoningText: !1,
|
|
205
205
|
streaming: !1,
|
|
206
206
|
loading: !1,
|
|
207
207
|
restoring: !1,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as e, jsxs as r, Fragment as D } from "react/jsx-runtime";
|
|
2
|
-
import { n as Se, LOCAL_STORAGE_PREFIX as ee, LOCAL_STORAGE_SORT_MEMORY_DIRECTION as Te, LOCAL_STORAGE_SORT_MEMORY_COLUMN as we, useUserMemories as De, useExpiredMemories as ve, useDeleteMemory as Ee, useDeleteAllActiveMemories as Me, useDeleteAllExpiredMemories as be, useUpdateMemory as Re, useRestoreMemory as Ie } from "./index.
|
|
3
|
-
import { L as R, j as f, Button as _, e as l, ButtonIcon as G, IconEdit as Le, IconRestore as Oe, IconDelete as _e } from "./LogoEntry.
|
|
4
|
-
import { Panel as ce, Toggle as L, ButtonCancel as se, useLocalStorage as te, ConfirmationPanel as re, ResponsiveTooltip as U } from "./App.
|
|
5
|
-
import { H as ie, F as oe, q as v, O as c, J as O, Y as ne, ButtonIconDelete as ze, G as le } from "./ButtonIconDelete.
|
|
2
|
+
import { n as Se, LOCAL_STORAGE_PREFIX as ee, LOCAL_STORAGE_SORT_MEMORY_DIRECTION as Te, LOCAL_STORAGE_SORT_MEMORY_COLUMN as we, useUserMemories as De, useExpiredMemories as ve, useDeleteMemory as Ee, useDeleteAllActiveMemories as Me, useDeleteAllExpiredMemories as be, useUpdateMemory as Re, useRestoreMemory as Ie } from "./index.CBEv2y_C.js";
|
|
3
|
+
import { L as R, j as f, Button as _, e as l, ButtonIcon as G, IconEdit as Le, IconRestore as Oe, IconDelete as _e } from "./LogoEntry.CucXks5G.js";
|
|
4
|
+
import { Panel as ce, Toggle as L, ButtonCancel as se, useLocalStorage as te, ConfirmationPanel as re, ResponsiveTooltip as U } from "./App.BD0e8HgV.js";
|
|
5
|
+
import { H as ie, F as oe, q as v, O as c, J as O, Y as ne, ButtonIconDelete as ze, G as le } from "./ButtonIconDelete.Bw7zU6Rb.js";
|
|
6
6
|
import C from "clsx";
|
|
7
7
|
import { useState as N, useEffect as Be, useRef as q } from "react";
|
|
8
|
-
import { TextArea as Pe } from "./index.
|
|
8
|
+
import { TextArea as Pe } from "./index.DAuo-OH1.js";
|
|
9
9
|
const Fe = ({
|
|
10
10
|
open: k,
|
|
11
11
|
onOpenChange: E,
|