@versini/sassysaint 8.116.0 → 8.117.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.
Files changed (83) hide show
  1. package/dist/chunks/{AboutChangelog.CnrCMj9j.js → AboutChangelog.Bn_KfUZc.js} +2 -2
  2. package/dist/chunks/{AboutEntry.B_v4wPJu.js → AboutEntry.GETrm77g.js} +7 -7
  3. package/dist/chunks/{App.DZsmgdSf.js → App.BzCbkgv8.js} +2478 -2344
  4. package/dist/chunks/BubbleActions.CbQ9BHWl.js +174 -0
  5. package/dist/chunks/{ButtonIconDelete.qjiICD-C.js → ButtonIconDelete.B5IpSZrD.js} +2 -2
  6. package/dist/chunks/{Chart.C5TznUox.js → Chart.Czhhtzdx.js} +2 -2
  7. package/dist/chunks/{ChatBubbleAssistant.L0EqA71V.js → ChatBubbleAssistant.DESMaXGq.js} +682 -663
  8. package/dist/chunks/{ChatBubbleUser.pCnNNynn.js → ChatBubbleUser.B_Sniupu.js} +39 -33
  9. package/dist/chunks/{ChatHistoryTable.DbqjD59m.js → ChatHistoryTable.LPF05gFQ.js} +4 -4
  10. package/dist/chunks/{HistoryEntry.Cwwb60-v.js → HistoryEntry.CbyRX9rD.js} +6 -6
  11. package/dist/chunks/{LoginEntry.1r7TFo-0.js → LoginEntry.Bf8vuUIL.js} +4 -4
  12. package/dist/chunks/{LogoEntry.C42bjw_J.js → LogoEntry.yn5_B-fa.js} +193 -176
  13. package/dist/chunks/{MemoriesEntry.B1TYmnRs.js → MemoriesEntry.Bljvi6W9.js} +5 -5
  14. package/dist/chunks/{ProfileEntry.S1zEigVK.js → ProfileEntry.DitROf-m.js} +4 -4
  15. package/dist/chunks/SettingsEntry.DUMuo462.js +446 -0
  16. package/dist/chunks/{UsageEntry.DLc39ETR.js → UsageEntry.CFMWYodz.js} +5 -5
  17. package/dist/chunks/{_baseUniq.BOcrAUMb.js → _baseUniq.D6y3dh-S.js} +1 -1
  18. package/dist/chunks/{arc.Bc6CZu6T.js → arc.CitIvzp8.js} +1 -1
  19. package/dist/chunks/{architecture-U656AL7Q.QGHUq491.js → architecture-U656AL7Q.IEP3vDFZ.js} +1 -1
  20. package/dist/chunks/{architectureDiagram-VXUJARFQ.CfOCGFjg.js → architectureDiagram-VXUJARFQ.BhDBUrYi.js} +4 -4
  21. package/dist/chunks/{blockDiagram-VD42YOAC.BZGQL0K-.js → blockDiagram-VD42YOAC.BFTM8GAn.js} +5 -5
  22. package/dist/chunks/{browser.BES7M-cr.js → browser.DK_o_vwl.js} +1 -1
  23. package/dist/chunks/{c4Diagram-YG6GDRKO.tKgp2iCo.js → c4Diagram-YG6GDRKO.B1vLaqvZ.js} +2 -2
  24. package/dist/chunks/{channel.DS7_B1sD.js → channel.PCRnhDz7.js} +1 -1
  25. package/dist/chunks/{chunk-4BX2VUAB.BsziT60f.js → chunk-4BX2VUAB.C6rU7w6S.js} +1 -1
  26. package/dist/chunks/{chunk-55IACEB6.BFD2aM1b.js → chunk-55IACEB6.BpJZHN1o.js} +1 -1
  27. package/dist/chunks/{chunk-B4BG7PRW.Dp_dUjXu.js → chunk-B4BG7PRW.F4PL3cMr.js} +4 -4
  28. package/dist/chunks/{chunk-DI55MBZ5.BSSR2fsl.js → chunk-DI55MBZ5.BF8GKejt.js} +3 -3
  29. package/dist/chunks/{chunk-FMBD7UC4.zFBdnbSj.js → chunk-FMBD7UC4.B1OYwU0R.js} +1 -1
  30. package/dist/chunks/{chunk-QN33PNHL.CNmLyW5z.js → chunk-QN33PNHL.BD5brt5t.js} +1 -1
  31. package/dist/chunks/{chunk-QZHKN3VN.CHIiOTWa.js → chunk-QZHKN3VN.D5WYYv36.js} +1 -1
  32. package/dist/chunks/{chunk-TZMSLE5B.DgmCkWAE.js → chunk-TZMSLE5B.C-MZAsEe.js} +1 -1
  33. package/dist/chunks/{classDiagram-2ON5EDUG.C1Cu3qVH.js → classDiagram-2ON5EDUG.C5vYqJ4o.js} +2 -2
  34. package/dist/chunks/{classDiagram-v2-WZHVMYZB.C1Cu3qVH.js → classDiagram-v2-WZHVMYZB.C5vYqJ4o.js} +2 -2
  35. package/dist/chunks/{clone.taNKkvJ9.js → clone.REJ_Pnlj.js} +1 -1
  36. package/dist/chunks/{cose-bilkent-S5V4N54A.DfVNXfXH.js → cose-bilkent-S5V4N54A.DXqAwGZ0.js} +2 -2
  37. package/dist/chunks/{dagre-6UL2VRFP.DYhO6A5e.js → dagre-6UL2VRFP.CoGy5JIV.js} +5 -5
  38. package/dist/chunks/{diagram-PSM6KHXK.B3Zgu9PL.js → diagram-PSM6KHXK.D9vCcidT.js} +4 -4
  39. package/dist/chunks/{diagram-QEK2KX5R.BwV8LoQ9.js → diagram-QEK2KX5R.6csREdR0.js} +3 -3
  40. package/dist/chunks/{diagram-S2PKOQOG.b7ck1ocM.js → diagram-S2PKOQOG.YPf4qVIj.js} +3 -3
  41. package/dist/chunks/{erDiagram-Q2GNP2WA.BLOJ7KTi.js → erDiagram-Q2GNP2WA.CGV8xXOX.js} +4 -4
  42. package/dist/chunks/{flowDiagram-NV44I4VS.BfXJbb56.js → flowDiagram-NV44I4VS.eQKIimm7.js} +5 -5
  43. package/dist/chunks/{ganttDiagram-JELNMOA3.TvvsmtiM.js → ganttDiagram-JELNMOA3.BazHhqv4.js} +2 -2
  44. package/dist/chunks/{gitGraph-F6HP7TQM.DDGwiGGr.js → gitGraph-F6HP7TQM.Cb-fQXsF.js} +1 -1
  45. package/dist/chunks/{gitGraphDiagram-NY62KEGX.B0JPvRv6.js → gitGraphDiagram-NY62KEGX.Dvqk5LX3.js} +4 -4
  46. package/dist/chunks/{graph.ZKIG5uo9.js → graph.CgbRK_Pv.js} +2 -2
  47. package/dist/chunks/{index.Dq3ux59q.js → index.BEg4_Utt.js} +1 -1
  48. package/dist/chunks/{index.Caq09BtO.js → index.BMJ9q_CF.js} +3 -3
  49. package/dist/chunks/{index.BDIm0XZX.js → index.BkL02aS1.js} +3 -3
  50. package/dist/chunks/{index.B9-d3ocn.js → index.BkPtehbe.js} +1 -1
  51. package/dist/chunks/{index.C5Cu_bRP.js → index.Bzms2RRF.js} +1 -1
  52. package/dist/chunks/{index.DNjv4c6J.js → index.CX_kqcF4.js} +1 -1
  53. package/dist/chunks/{index.C9tD1xGj.js → index.DzZEadJV.js} +1 -1
  54. package/dist/chunks/{index.-nrmM1wy.js → index.OAZ5W9VH.js} +5 -2
  55. package/dist/chunks/{index.DstuTKv0.js → index.hL-ju5aR.js} +1 -1
  56. package/dist/chunks/{info-NVLQJR56.XGDhf5c8.js → info-NVLQJR56.53x0eQWW.js} +1 -1
  57. package/dist/chunks/{infoDiagram-WHAUD3N6.C4VTOkJb.js → infoDiagram-WHAUD3N6.BlrSZ-3e.js} +2 -2
  58. package/dist/chunks/{journeyDiagram-XKPGCS4Q.wNzwy5O8.js → journeyDiagram-XKPGCS4Q.CJqy8tkA.js} +4 -4
  59. package/dist/chunks/{kanban-definition-3W4ZIXB7.KhavzAgf.js → kanban-definition-3W4ZIXB7.CRKN0s6T.js} +2 -2
  60. package/dist/chunks/{layout.DVg04aS2.js → layout.B3vPW_pZ.js} +4 -4
  61. package/dist/chunks/{mermaid-parser.core.B9sUQvnf.js → mermaid-parser.core.ChRIRaJW.js} +10 -10
  62. package/dist/chunks/{min.DoYCfdSM.js → min.CnRvIY0R.js} +2 -2
  63. package/dist/chunks/{mindmap-definition-VGOIOE7T.C2JDgwiq.js → mindmap-definition-VGOIOE7T.D_ABLFPV.js} +4 -4
  64. package/dist/chunks/{packet-BFZMPI3H.CWfh7GKW.js → packet-BFZMPI3H.CxGfStzw.js} +1 -1
  65. package/dist/chunks/{pie-7BOR55EZ.R4UTwYem.js → pie-7BOR55EZ.DNt3EJ4F.js} +1 -1
  66. package/dist/chunks/{pieDiagram-ADFJNKIX.DEKssSj0.js → pieDiagram-ADFJNKIX.DIQfkreO.js} +4 -4
  67. package/dist/chunks/{quadrantDiagram-AYHSOK5B.CstUaqn3.js → quadrantDiagram-AYHSOK5B.CiwquW9n.js} +1 -1
  68. package/dist/chunks/{radar-NHE76QYJ.BJURKYxU.js → radar-NHE76QYJ.BjalOWfU.js} +1 -1
  69. package/dist/chunks/{rehype-mermaid.DNscECQS.js → rehype-mermaid.DiVW4LDn.js} +33 -33
  70. package/dist/chunks/{requirementDiagram-UZGBJVZJ.D8kKOp2K.js → requirementDiagram-UZGBJVZJ.zxucHbPP.js} +3 -3
  71. package/dist/chunks/{sankeyDiagram-TZEHDZUN.C3seK2D-.js → sankeyDiagram-TZEHDZUN.DD-PyOn-.js} +1 -1
  72. package/dist/chunks/{sequenceDiagram-WL72ISMW.D2210RR-.js → sequenceDiagram-WL72ISMW.DR9lsGWA.js} +3 -3
  73. package/dist/chunks/{stateDiagram-FKZM4ZOC.DNysZp29.js → stateDiagram-FKZM4ZOC.CsNkAXRg.js} +4 -4
  74. package/dist/chunks/{stateDiagram-v2-4FDKWEC3.BlXDb-uk.js → stateDiagram-v2-4FDKWEC3.8NFC4sNp.js} +2 -2
  75. package/dist/chunks/{timeline-definition-IT6M3QCI.C3Fi9VMD.js → timeline-definition-IT6M3QCI.KVweqk-o.js} +2 -2
  76. package/dist/chunks/{treemap-KMMF4GRG.BeOdsYcu.js → treemap-KMMF4GRG.VQYaLH7h.js} +1 -1
  77. package/dist/chunks/{useMarkdown.C8cTc4ru.js → useMarkdown.BwBe50mc.js} +8 -8
  78. package/dist/chunks/{xychartDiagram-PRI3JC2R.BN17tfAJ.js → xychartDiagram-PRI3JC2R.DLJNhHkJ.js} +1 -1
  79. package/dist/components/SassySaint/SassySaint.js +1 -1
  80. package/dist/index.js +3 -3
  81. package/package.json +3 -3
  82. package/dist/chunks/Bubble.DkpO1hUq.js +0 -144
  83. package/dist/chunks/SettingsEntry.DRxV4Mnv.js +0 -456
@@ -0,0 +1,174 @@
1
+ import { jsxs as C, Fragment as B, jsx as t } from "react/jsx-runtime";
2
+ import { n as v, useUserPreferences as A } from "./index.OAZ5W9VH.js";
3
+ import { ButtonIcon as h, IconCopied as S, IconCopy as I, ChatContext as _, IconBranch as M, TOAST_CHAT_BRANCHED as z } from "./LogoEntry.yn5_B-fa.js";
4
+ import { useState as H, useRef as N, useCallback as g, useEffect as R, useContext as k } from "react";
5
+ import { ResponsiveTooltip as T, useAiChat as E, v4 as O, CHAT_RESET as L, CHAT_SET_ATTACHMENTS as U, CHAT_SET_STATUS as j, showSuccessToast as D, CHAT_SCROLL_TO_BOTTOM as F } from "./App.BzCbkgv8.js";
6
+ const P = ({ children: e, richText: r = !1, mode: a = "system", focusMode: l = "system" }) => {
7
+ const [o, c] = H(!1), n = N(null), p = g(async () => {
8
+ if (navigator.clipboard)
9
+ try {
10
+ if (r && n.current && typeof ClipboardItem < "u" && typeof navigator.clipboard.write == "function") {
11
+ const i = n.current.innerHTML, s = n.current.innerText, d = new ClipboardItem({
12
+ "text/html": new Blob([
13
+ i
14
+ ], {
15
+ type: "text/html"
16
+ }),
17
+ "text/plain": new Blob([
18
+ s
19
+ ], {
20
+ type: "text/plain"
21
+ })
22
+ });
23
+ await navigator.clipboard.write([
24
+ d
25
+ ]);
26
+ } else if (typeof e == "string" && typeof navigator.clipboard.writeText == "function")
27
+ await navigator.clipboard.writeText(e);
28
+ else if (n.current && typeof navigator.clipboard.writeText == "function")
29
+ await navigator.clipboard.writeText(n.current.innerText);
30
+ else
31
+ return;
32
+ c(!0);
33
+ } catch {
34
+ }
35
+ }, [
36
+ e,
37
+ r
38
+ ]);
39
+ return R(() => {
40
+ let i;
41
+ return o && (i = window.setTimeout(() => {
42
+ c(!1);
43
+ }, 3e3)), () => {
44
+ clearTimeout(i);
45
+ };
46
+ }, [
47
+ o
48
+ ]), e ? /* @__PURE__ */ C(B, {
49
+ children: [
50
+ (r || typeof e != "string") && /* @__PURE__ */ t("span", {
51
+ ref: n,
52
+ className: "sr-only",
53
+ "aria-hidden": "true",
54
+ children: e
55
+ }),
56
+ /* @__PURE__ */ t(h, {
57
+ noBorder: !0,
58
+ noBackground: !0,
59
+ size: "small",
60
+ mode: a,
61
+ focusMode: l,
62
+ label: o ? "Copied to clipboard" : "Copy to clipboard",
63
+ onClick: p,
64
+ disabled: o,
65
+ children: o ? /* @__PURE__ */ t(S, {
66
+ size: "size-3"
67
+ }) : /* @__PURE__ */ t(I, {
68
+ size: "size-3"
69
+ })
70
+ })
71
+ ]
72
+ }) : null;
73
+ }, q = ({
74
+ streaming: e,
75
+ content: r,
76
+ placement: a = "top"
77
+ }) => /* @__PURE__ */ t(
78
+ T,
79
+ {
80
+ label: "Copy to clipboard",
81
+ mode: "light",
82
+ placement: a,
83
+ trigger: /* @__PURE__ */ t(P, { mode: "light", focusMode: "light", children: e ? "loading..." : r })
84
+ }
85
+ ), W = ({
86
+ streaming: e,
87
+ content: r,
88
+ messageIndex: a,
89
+ messages: l,
90
+ annotations: o
91
+ }) => {
92
+ const { user: c, getAccessToken: n } = v(), { data: p } = A({
93
+ user: c?.username,
94
+ getAccessToken: n
95
+ }), {
96
+ state: { privateChat: u, restoredModel: i },
97
+ dispatch: s,
98
+ setChatId: d,
99
+ setInitialMessages: f
100
+ } = k(_), { setInput: m } = E(), b = p?.useBranchNewChat || !1, y = g(() => {
101
+ if (a === void 0 || !l)
102
+ return;
103
+ const w = l.slice(0, a + 1), x = O();
104
+ m(""), d(x), f(w), s({
105
+ type: L,
106
+ payload: {
107
+ privateChat: u,
108
+ reasoningText: !1
109
+ }
110
+ }), s({
111
+ type: U,
112
+ payload: {
113
+ attachments: 0
114
+ }
115
+ }), s({
116
+ type: j,
117
+ payload: {
118
+ streaming: !1,
119
+ loading: !1,
120
+ restoring: !1,
121
+ restoredModel: o?.model || i || "",
122
+ restoredTimestamp: String(Date.now()),
123
+ tokenUsage: -1
124
+ }
125
+ }), D(z, {
126
+ containerId: "toggle-save",
127
+ autoClose: 3e3
128
+ }), s({ type: F });
129
+ }, [
130
+ a,
131
+ l,
132
+ m,
133
+ d,
134
+ f,
135
+ s,
136
+ u,
137
+ o,
138
+ i
139
+ ]);
140
+ return /* @__PURE__ */ C("div", { className: "flex flex-col items-center", children: [
141
+ /* @__PURE__ */ t(
142
+ q,
143
+ {
144
+ streaming: e,
145
+ content: r,
146
+ placement: "right"
147
+ }
148
+ ),
149
+ b && /* @__PURE__ */ t(
150
+ T,
151
+ {
152
+ label: "Start new chat from here",
153
+ mode: "light",
154
+ placement: "right",
155
+ trigger: /* @__PURE__ */ t(
156
+ h,
157
+ {
158
+ size: "small",
159
+ noBorder: !0,
160
+ noBackground: !0,
161
+ mode: "light",
162
+ label: "Start new chat from here",
163
+ onClick: y,
164
+ children: /* @__PURE__ */ t(M, { monotone: !0, size: "size-3", className: "text-copy-light" })
165
+ }
166
+ )
167
+ }
168
+ )
169
+ ] });
170
+ };
171
+ export {
172
+ W as BubbleActions,
173
+ q as BubbleCopyToClipboard
174
+ };
@@ -1,8 +1,8 @@
1
1
  import { jsx as s, jsxs as k, Fragment as w } from "react/jsx-runtime";
2
2
  import c from "clsx";
3
- import { ButtonIcon as C, TableCellSortDirections as m, IconSortUp as N, IconSortDown as T, IconSort as W, IconDelete as E } from "./LogoEntry.C42bjw_J.js";
3
+ import { ButtonIcon as C, TableCellSortDirections as m, IconSortUp as N, IconSortDown as T, IconSort as W, IconDelete as E } from "./LogoEntry.yn5_B-fa.js";
4
4
  import f, { useContext as y } from "react";
5
- import { ResponsiveTooltip as R } from "./App.DZsmgdSf.js";
5
+ import { ResponsiveTooltip as R } from "./App.BzCbkgv8.js";
6
6
  function S({ children: e, mode: t = "system", className: r, active: a = !1, ref: l, ...n }) {
7
7
  const o = a ? 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.DZsmgdSf.js";
2
+ import { getDefaultExportFromCjs as dn, isProbablyMobile as Op } from "./App.BzCbkgv8.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.C42bjw_J.js";
4
+ import { TRIMESTERS_SHORT as Ip, TRIMESTERS as on, TIME_RANGES as ls, TIME_RANGE_LABELS as an } from "./LogoEntry.yn5_B-fa.js";
5
5
  var hs = { exports: {} }, Dp = hs.exports, nn;
6
6
  function Bp() {
7
7
  return nn || (nn = 1, (function(Ae, pe) {