@versini/sassysaint 8.76.0 → 8.77.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 (34) hide show
  1. package/dist/chunks/{AboutChangelog.0kKcS_nT.js → AboutChangelog.tVLL6MtY.js} +10 -9
  2. package/dist/chunks/{AboutEntry.pKgicvGA.js → AboutEntry.D9MonPwL.js} +11 -11
  3. package/dist/chunks/App.CusyBC2e.js +9011 -0
  4. package/dist/chunks/{Chart.DD1RkG8X.js → Chart.bKur3H71.js} +2 -2
  5. package/dist/chunks/{ChatBubbleAssistant.K55U7Bno.js → ChatBubbleAssistant.CEZZn7AD.js} +25 -23
  6. package/dist/chunks/ChatBubbleUser.BYLIgaHX.js +131 -0
  7. package/dist/chunks/ChatHistoryTable.D9mUtUwJ.js +237 -0
  8. package/dist/chunks/HistoryEntry.DarYFRIp.js +316 -0
  9. package/dist/chunks/{ProfileEntry.Bb-kLfDX.js → ProfileEntry.C_Y--pVY.js} +26 -26
  10. package/dist/chunks/{SettingsEntry.DrmBVh-w.js → SettingsEntry.DffchAfB.js} +39 -39
  11. package/dist/chunks/Table.DBfFG7qO.js +359 -0
  12. package/dist/chunks/{UsageEntry.O3YdUF30.js → UsageEntry.C73mIvmD.js} +19 -19
  13. package/dist/chunks/{UserMemoriesPanel.Dl5GlyBr.js → UserMemoriesPanel.DXx_9ifJ.js} +184 -210
  14. package/dist/chunks/index.AVBqcs3f.js +266 -0
  15. package/dist/chunks/{index.DUl-LwyU.js → index.B4-jvDi6.js} +1 -1
  16. package/dist/chunks/{index.DEKgWsou.js → index.BVMzTtBw.js} +1 -1
  17. package/dist/chunks/index.BcYESdDV.js +7894 -0
  18. package/dist/chunks/{index.DGkW9g6n.js → index.ClJfV5zs.js} +3 -3
  19. package/dist/chunks/{index.BeIiCAAq.js → index.Hv_qeE7S.js} +2 -2
  20. package/dist/chunks/{index.B9mUNJfd.js → index.Ly8CrT48.js} +1 -1
  21. package/dist/chunks/index.bx7cnejn.js +153 -0
  22. package/dist/chunks/{useMarkdown.Bf7wGKkC.js → useMarkdown.KipSXqDZ.js} +2004 -2130
  23. package/dist/components/SassySaint/SassySaint.js +1 -1
  24. package/dist/index.js +4 -4
  25. package/dist/style.css +2 -2
  26. package/package.json +5 -5
  27. package/dist/chunks/App.CtFpHv2O.js +0 -10007
  28. package/dist/chunks/ChatBubbleUser.DsX56Kxx.js +0 -128
  29. package/dist/chunks/ChatHistoryTable.BvEUTjiq.js +0 -288
  30. package/dist/chunks/HistoryEntry.BSOPWYO2.js +0 -333
  31. package/dist/chunks/Table.BbIvEnBz.js +0 -456
  32. package/dist/chunks/index.BNusLsEn.js +0 -357
  33. package/dist/chunks/index.Czv_1MTM.js +0 -7203
  34. package/dist/chunks/index.icjUE8II.js +0 -249
@@ -1,6 +1,6 @@
1
- import { getDefaultExportFromCjs as kn } from "./App.CtFpHv2O.js";
2
- import { visit as In } from "./useMarkdown.Bf7wGKkC.js";
3
- import { toText as Cn } from "./index.B9mUNJfd.js";
1
+ import { getDefaultExportFromCjs as kn } from "./App.CusyBC2e.js";
2
+ import { visit as In } from "./useMarkdown.KipSXqDZ.js";
3
+ import { toText as Cn } from "./index.Ly8CrT48.js";
4
4
  function xn(e) {
5
5
  const t = e.regex, i = e.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] }), a = "decltype\\(auto\\)", r = "[a-zA-Z_]\\w*::", d = "(?!struct)(" + a + "|" + t.optional(r) + "[a-zA-Z_]\\w*" + t.optional("<[^<>]+>") + ")", c = {
6
6
  className: "type",
@@ -1,5 +1,5 @@
1
- import { find as Aa, parse as Ft, parse$1 as Ht, normalize as Pt, html as Ta, svg as Ba, visitParents as Na, SKIP as Da } from "./useMarkdown.Bf7wGKkC.js";
2
- import { toText as Ca } from "./index.B9mUNJfd.js";
1
+ import { find as Aa, parse as Ft, parse$1 as Ht, normalize as Pt, html as Ta, svg as Ba, visitParents as Na, SKIP as Da } from "./useMarkdown.KipSXqDZ.js";
2
+ import { toText as Ca } from "./index.Ly8CrT48.js";
3
3
  const Gt = /[#.]/g;
4
4
  function qa(r, e) {
5
5
  const t = r || "", a = {};
@@ -1,4 +1,4 @@
1
- import { convert as E, convertElement as u } from "./useMarkdown.Bf7wGKkC.js";
1
+ import { convert as E, convertElement as u } from "./useMarkdown.KipSXqDZ.js";
2
2
  const f = (
3
3
  // Note: overloads like this are needed to support optional generics.
4
4
  /**
@@ -0,0 +1,153 @@
1
+ import { jsxs as h, jsx as l } from "react/jsx-runtime";
2
+ import { ButtonIcon as E, IconCopied as C, IconCopy as I } from "./index.BcYESdDV.js";
3
+ import { useState as N, useEffect as $ } from "react";
4
+ import t from "clsx";
5
+ /*!
6
+ @versini/ui-bubble v6.4.0
7
+ © 2025 gizmette.com
8
+ */
9
+ try {
10
+ window.__VERSINI_UI_BUBBLE__ || (window.__VERSINI_UI_BUBBLE__ = {
11
+ version: "6.4.0",
12
+ buildTime: "11/05/2025 08:07 PM EST",
13
+ homepage: "https://github.com/aversini/ui-components",
14
+ license: "MIT"
15
+ });
16
+ } catch {
17
+ }
18
+ const u = "av-bubble", T = ({ kind: e, noMaxWidth: r }) => t("px-4 py-2", {
19
+ "max-w-xs sm:max-w-md md:max-w-2xl": !r,
20
+ "lg:max-w-3xl": e === "left" && !r
21
+ }), S = ({ kind: e, gradient: r }) => r ? r === "light" ? t({
22
+ "bg-gradient-to-b from-surface-light/80 to-surface-light dark:from-surface-dark/80 dark:to-surface-dark": e === "left",
23
+ "bg-gradient-to-b from-surface-accent/80 to-surface-accent": e === "right"
24
+ }) : r === "medium" ? t({
25
+ "bg-gradient-to-b from-surface-light/65 to-surface-light dark:from-surface-dark/65 dark:to-surface-dark": e === "left",
26
+ "bg-gradient-to-b from-surface-accent/65 to-surface-accent": e === "right"
27
+ }) : t({
28
+ "bg-gradient-to-b from-surface-light/50 to-surface-light dark:from-surface-dark/50 dark:to-surface-dark": e === "left",
29
+ "bg-gradient-to-b from-surface-accent/50 to-surface-accent": e === "right"
30
+ }) : t({
31
+ "bg-surface-light dark:bg-surface-dark": e === "left",
32
+ "bg-surface-accent": e === "right"
33
+ }), z = ({ kind: e }) => t("prose prose-dark dark:prose-lighter", "prose-blockquote:my-1", "prose-ol:my-1 prose-ul:my-1", {
34
+ "text-copy-lighter": e === "right"
35
+ }), U = ({ kind: e, tail: r }) => {
36
+ if (r)
37
+ return t(`${u}-${e}-tail`, "rounded-3xl", "relative", "before:content-['']", "before:w-3", "before:h-2", "before:absolute", "before:bottom-0", {
38
+ "last-bubble-right:before:right-[2px] last-bubble-right:before:border-l-[8px] last-bubble-right:before:border-l-surface-accent last-bubble-right:before:rounded-bl-[100%]": e === "right",
39
+ "last-bubble-left:before:left-[2px] last-bubble-left:before:border-r-[8px] last-bubble-left:before:border-r-surface-light last-bubble-left:dark:before:border-r-surface-dark last-bubble-left:before:rounded-br-[100%]": e === "left"
40
+ });
41
+ if (!r)
42
+ return t("rounded-b-xl", {
43
+ "rounded-tr-xl": e === "left",
44
+ "rounded-tl-xl": e === "right"
45
+ });
46
+ }, L = ({ kind: e, className: r, contentClassName: i, noMaxWidth: n, tail: o, gradient: b }) => {
47
+ const s = t(u, `${u}-${e}`, "flex items-start", {
48
+ "flex-row-reverse": e === "right"
49
+ }, r), m = t(`${u}-content`, "flex flex-col empty:hidden", T({
50
+ kind: e,
51
+ noMaxWidth: n
52
+ }), z({
53
+ kind: e
54
+ }), S({
55
+ kind: e,
56
+ gradient: b
57
+ }), U({
58
+ kind: e,
59
+ tail: o
60
+ }), i), g = "pr-2 pt-1 text-end text-xs text-copy-light", d = t("flex flex-col-reverse sm:flex-row", {
61
+ "ml-2": e === "left" && !o,
62
+ "mr-2": e === "right" && !o,
63
+ "ml-1": e === "left" && o,
64
+ "mr-1": e === "right" && o
65
+ });
66
+ return {
67
+ wrapper: s,
68
+ main: m,
69
+ footer: g,
70
+ copyButton: d
71
+ };
72
+ }, M = "FOOTER_EMPTY", V = ({ children: e, kind: r = "left", className: i, contentClassName: n, footer: o, rawFooter: b, copyToClipboard: s, copyToClipboardFocusMode: m = "system", copyToClipboardMode: g = "system", noMaxWidth: d = !1, tail: w = !1, gradient: y }) => {
73
+ const [f, x] = N(!1), c = L({
74
+ kind: r,
75
+ className: i,
76
+ contentClassName: n,
77
+ noMaxWidth: d,
78
+ tail: w,
79
+ gradient: y
80
+ }), _ = !!s && (typeof s == "function" || typeof s == "string" || typeof e == "string"), v = () => {
81
+ x(!0), typeof s == "function" ? s(e) : typeof s == "string" ? navigator.clipboard.writeText(s) : typeof e == "string" && navigator.clipboard.writeText(e);
82
+ };
83
+ return $(() => {
84
+ let a;
85
+ return f && (a = window.setTimeout(() => {
86
+ x(!1);
87
+ }, 3e3)), () => {
88
+ clearTimeout(a);
89
+ };
90
+ }, [
91
+ f
92
+ ]), /* @__PURE__ */ h("div", {
93
+ className: c.wrapper,
94
+ children: [
95
+ /* @__PURE__ */ h("div", {
96
+ children: [
97
+ /* @__PURE__ */ l("div", {
98
+ className: c.main,
99
+ children: e
100
+ }),
101
+ o && Object.keys(o).map((a, B) => {
102
+ const p = o[a];
103
+ return p === M ? /* @__PURE__ */ l("div", {
104
+ className: "prose-p:m-0",
105
+ children: /* @__PURE__ */ l("p", {
106
+ className: c.footer,
107
+ "aria-hidden": "true",
108
+ children: /* @__PURE__ */ l("span", {
109
+ className: "invisible",
110
+ children: " "
111
+ })
112
+ })
113
+ }, `${a}-${B}`) : p ? /* @__PURE__ */ l("div", {
114
+ className: "prose-p:m-0",
115
+ children: /* @__PURE__ */ h("p", {
116
+ className: c.footer,
117
+ children: [
118
+ a,
119
+ ": ",
120
+ p
121
+ ]
122
+ })
123
+ }, `${a}-${B}`) : null;
124
+ }),
125
+ b && b
126
+ ]
127
+ }),
128
+ _ && /* @__PURE__ */ l("div", {
129
+ className: c.copyButton,
130
+ children: /* @__PURE__ */ l(E, {
131
+ noBorder: !0,
132
+ noBackground: !0,
133
+ size: "small",
134
+ mode: g,
135
+ focusMode: m,
136
+ label: f ? "Copied to clipboard" : "Copy to clipboard",
137
+ onClick: v,
138
+ disabled: f,
139
+ children: f ? /* @__PURE__ */ l(C, {
140
+ size: "size-3"
141
+ }) : /* @__PURE__ */ l(I, {
142
+ size: "size-3"
143
+ })
144
+ })
145
+ })
146
+ ]
147
+ });
148
+ };
149
+ export {
150
+ u as BUBBLE_CLASSNAME,
151
+ M as BUBBLE_FOOTER_EMPTY,
152
+ V as Bubble
153
+ };