@versini/sassysaint 8.75.5 → 8.76.1
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.74dx3has.js → AboutChangelog.Bi_-dpeZ.js} +10 -9
- package/dist/chunks/{AboutEntry.B9IooHpy.js → AboutEntry.CTwezLPC.js} +11 -11
- package/dist/chunks/App.CV0Bjlae.js +9011 -0
- package/dist/chunks/{Chart.D1WQEJfe.js → Chart.uzxgAiX2.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.TGE3iwln.js → ChatBubbleAssistant.BVlp2GoO.js} +8 -8
- package/dist/chunks/ChatBubbleUser.BrWZttfQ.js +130 -0
- package/dist/chunks/ChatHistoryTable.uFTyBF2A.js +236 -0
- package/dist/chunks/HistoryEntry.ThaD-b5r.js +307 -0
- package/dist/chunks/{ProfileEntry.DiMarPYw.js → ProfileEntry.CyBWFkHS.js} +26 -26
- package/dist/chunks/{SettingsEntry.7sE9nOGN.js → SettingsEntry.QaYvHkdk.js} +39 -39
- package/dist/chunks/Table.Ckql2SnG.js +359 -0
- package/dist/chunks/{UsageEntry.CiY4OQtp.js → UsageEntry.CDzDYeHf.js} +19 -19
- package/dist/chunks/{UserMemoriesPanel.UDXZvvrL.js → UserMemoriesPanel.B6egCowo.js} +184 -210
- package/dist/chunks/{index.CiIBuo5O.js → index.A4p6x5_T.js} +1 -1
- package/dist/chunks/index.BXdpJpQs.js +266 -0
- package/dist/chunks/{index.C0asS70q.js → index.BdPmgM6G.js} +1 -1
- package/dist/chunks/index.C3aZ0rB_.js +142 -0
- package/dist/chunks/{index.D4tD4ovC.js → index.C4Rma01G.js} +3 -3
- package/dist/chunks/{index.p-Jh4Heo.js → index.C6T0AZQ_.js} +2 -2
- package/dist/chunks/{index.Bl8BpeHP.js → index.CgUGA3LA.js} +1 -1
- package/dist/chunks/index.rzw7MU5J.js +7894 -0
- package/dist/chunks/{useMarkdown.Cno1hTiv.js → useMarkdown.B4NWSGJz.js} +2004 -2130
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/dist/style.css +2 -2
- package/package.json +5 -5
- package/dist/chunks/App.BmFE7_v_.js +0 -10006
- package/dist/chunks/ChatBubbleUser.DjSazwPr.js +0 -128
- package/dist/chunks/ChatHistoryTable.DKVkQOL_.js +0 -288
- package/dist/chunks/HistoryEntry.D-clB2ui.js +0 -333
- package/dist/chunks/Table.--YCSSgh.js +0 -456
- package/dist/chunks/index.-hzHawd8.js +0 -7203
- package/dist/chunks/index.BHHgvfWz.js +0 -357
- package/dist/chunks/index.WAJtnhmS.js +0 -249
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
import { jsxs as oe, jsx as h } from "react/jsx-runtime";
|
|
2
|
+
import { useMergeRefs as ce, useResizeObserver as W, useUniqueId as ne, useUncontrolled as le, LiveRegion as ie } from "./index.rzw7MU5J.js";
|
|
3
|
+
import ue, { useRef as k, useState as I, useLayoutEffect as R } from "react";
|
|
4
|
+
import o from "clsx";
|
|
5
|
+
/*!
|
|
6
|
+
@versini/ui-textarea v5.1.0
|
|
7
|
+
© 2025 gizmette.com
|
|
8
|
+
*/
|
|
9
|
+
try {
|
|
10
|
+
window.__VERSINI_UI_TEXTAREA__ || (window.__VERSINI_UI_TEXTAREA__ = {
|
|
11
|
+
version: "5.1.0",
|
|
12
|
+
buildTime: "11/04/2025 03:43 PM EST",
|
|
13
|
+
homepage: "https://github.com/aversini/ui-components",
|
|
14
|
+
license: "MIT"
|
|
15
|
+
});
|
|
16
|
+
} catch {
|
|
17
|
+
}
|
|
18
|
+
const B = "av-text-area", de = "av-text-area-wrapper", H = "av-text-area-helper-text", fe = "av-text-area__control--right", pe = "av-text-area__control--left", xe = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hidden px-4 py-7", ye = ({ mode: e }) => o({
|
|
19
|
+
"bg-surface-darker text-copy-lighter caret-copy-light": e === "dark",
|
|
20
|
+
"bg-surface-lighter text-copy-dark caret-copy-dark": e === "light",
|
|
21
|
+
"bg-surface-lighter text-copy-dark caret-copy-dark dark:bg-surface-darker dark:text-copy-lighter dark:caret-copy-light": e === "system",
|
|
22
|
+
"bg-surface-darker text-copy-lighter caret-copy-light dark:bg-surface-lighter dark:text-copy-dark dark:caret-copy-dark": e === "alt-system"
|
|
23
|
+
}), he = ({ focusMode: e }) => o("focus:outline focus:outline-2 focus:outline-offset-2", {
|
|
24
|
+
"focus:outline-focus-dark": e === "dark",
|
|
25
|
+
"focus:outline-focus-light": e === "light",
|
|
26
|
+
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
27
|
+
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
28
|
+
}), ge = ({ noBorder: e, error: a }) => o("border-2", {
|
|
29
|
+
"border-border-dark": !e && !a,
|
|
30
|
+
"focus:border-border-dark": !e && a,
|
|
31
|
+
"border-border-error-dark": !e && a,
|
|
32
|
+
"border-transparent": e
|
|
33
|
+
}), Ae = ({ disabled: e, raw: a, error: t, mode: s, leftElement: r, rightElement: c }) => {
|
|
34
|
+
if (a)
|
|
35
|
+
return "";
|
|
36
|
+
if (e)
|
|
37
|
+
return o("transform translate-y-0 scale-100 absolute px-2 cursor-not-allowed opacity-50 font-medium", {
|
|
38
|
+
"translate-x-[10px]": c === !0 && !r || !c && !r
|
|
39
|
+
});
|
|
40
|
+
if (!t)
|
|
41
|
+
return o("absolute px-2 cursor-text font-medium transform translate-y-0 scale-100", {
|
|
42
|
+
"translate-x-[10px]": c === !0 && !r || !c && !r,
|
|
43
|
+
"text-copy-medium": s === "dark",
|
|
44
|
+
"text-copy-dark": s === "light",
|
|
45
|
+
"text-copy-dark dark:text-copy-medium": s === "system",
|
|
46
|
+
"text-copy-medium dark:text-copy-dark": s === "alt-system"
|
|
47
|
+
});
|
|
48
|
+
if (t)
|
|
49
|
+
return o("absolute px-2 cursor-text font-medium transform translate-y-0 scale-100", {
|
|
50
|
+
"translate-x-[10px]": c === !0 && !r || !c && !r,
|
|
51
|
+
"text-copy-medium": s === "dark",
|
|
52
|
+
"text-copy-error-dark": s === "light",
|
|
53
|
+
"text-copy-error-dark dark:text-copy-error-light": s === "system",
|
|
54
|
+
"text-copy-medium dark:text-copy-error-dark": s === "alt-system"
|
|
55
|
+
});
|
|
56
|
+
}, Te = ({ error: e, raw: a, mode: t, disabled: s }) => {
|
|
57
|
+
if (a)
|
|
58
|
+
return "";
|
|
59
|
+
if (s)
|
|
60
|
+
return o(H, "absolute px-2 cursor-not-allowed opacity-50 font-medium");
|
|
61
|
+
if (!e)
|
|
62
|
+
return o(H, "absolute px-2 font-medium", {
|
|
63
|
+
"text-copy-medium": t === "dark",
|
|
64
|
+
"text-copy-dark": t === "light",
|
|
65
|
+
"text-copy-dark dark:text-copy-medium": t === "system",
|
|
66
|
+
"text-copy-medium dark:text-copy-dark": t === "alt-system"
|
|
67
|
+
});
|
|
68
|
+
if (e)
|
|
69
|
+
return o(H, "absolute px-2 font-medium", {
|
|
70
|
+
"text-copy-error-light": t === "dark",
|
|
71
|
+
"text-copy-error-dark": t === "light",
|
|
72
|
+
"text-copy-error-dark dark:text-copy-error-light": t === "system",
|
|
73
|
+
"dark:text-copy-error-dark text-copy-error-light": t === "alt-system"
|
|
74
|
+
});
|
|
75
|
+
}, ke = ({ className: e, textAreaClassName: a, raw: t, focusMode: s, disabled: r, noBorder: c, error: u, mode: d, leftElement: x, rightElement: g }) => {
|
|
76
|
+
const N = t ? e : o("relative flex w-full flex-col justify-center", de, e), m = t ? o(a) : o(B, a, xe(), ye({
|
|
77
|
+
mode: d
|
|
78
|
+
}), he({
|
|
79
|
+
focusMode: s
|
|
80
|
+
}), ge({
|
|
81
|
+
noBorder: c,
|
|
82
|
+
error: u
|
|
83
|
+
}), {
|
|
84
|
+
"disabled:cursor-not-allowed disabled:opacity-50": r
|
|
85
|
+
}), S = t ? void 0 : "sr-only", C = Ae({
|
|
86
|
+
disabled: r,
|
|
87
|
+
raw: t,
|
|
88
|
+
error: u,
|
|
89
|
+
mode: d,
|
|
90
|
+
rightElement: g,
|
|
91
|
+
leftElement: x
|
|
92
|
+
}), l = Te({
|
|
93
|
+
error: u,
|
|
94
|
+
raw: t,
|
|
95
|
+
mode: d,
|
|
96
|
+
disabled: r
|
|
97
|
+
}), b = t ? void 0 : o(fe, "absolute"), f = t ? void 0 : o(pe, "absolute");
|
|
98
|
+
return {
|
|
99
|
+
wrapper: N,
|
|
100
|
+
textArea: m,
|
|
101
|
+
accessibleLabel: S,
|
|
102
|
+
visibleLabel: C,
|
|
103
|
+
helperText: l,
|
|
104
|
+
rightElement: b,
|
|
105
|
+
leftElement: f
|
|
106
|
+
};
|
|
107
|
+
}, be = ({ scrollHeight: e, currentHeight: a, currentLabelOffset: t = 0, currentHelperTextOffset: s = 0 }) => {
|
|
108
|
+
let u, d;
|
|
109
|
+
if (e > 0 && e !== a) {
|
|
110
|
+
const x = e - a, g = Math.abs(x / 24);
|
|
111
|
+
u = t + -1 * Math.sign(x) * (12 * g), d = s + Math.sign(x) * (12 * g);
|
|
112
|
+
}
|
|
113
|
+
return {
|
|
114
|
+
labelOffset: u,
|
|
115
|
+
helperTextOffset: d,
|
|
116
|
+
scrollHeight: e
|
|
117
|
+
};
|
|
118
|
+
}, _e = /* @__PURE__ */ ue.forwardRef(({ id: e, name: a, label: t, error: s = !1, raw: r = !1, className: c, textAreaClassName: u, mode: d = "system", focusMode: x = "system", value: g, defaultValue: N, disabled: m = !1, noBorder: S = !1, labelId: C, helperText: l = "", helperTextOnFocus: b = !1, rightElement: f, leftElement: A, onChange: P, onFocus: F, onBlur: M, ...Y }, z) => {
|
|
119
|
+
const i = k(null), D = ce([
|
|
120
|
+
z,
|
|
121
|
+
i
|
|
122
|
+
]), [V, L] = W(), [q, T] = W(), O = k(80), $ = k(-25), v = k(null), w = k(30), X = k(null), _ = ne({
|
|
123
|
+
id: e,
|
|
124
|
+
prefix: `${B}-`
|
|
125
|
+
}), [U, J] = I(0), [j, K] = I(0), [Q, G] = I(!!(!b && l)), Z = `${a} error, ${l}`, y = ke({
|
|
126
|
+
className: c,
|
|
127
|
+
textAreaClassName: u,
|
|
128
|
+
error: s,
|
|
129
|
+
raw: r,
|
|
130
|
+
focusMode: x,
|
|
131
|
+
disabled: m,
|
|
132
|
+
noBorder: S,
|
|
133
|
+
mode: d,
|
|
134
|
+
rightElement: !!f,
|
|
135
|
+
leftElement: !!A
|
|
136
|
+
}), [p, ee] = le({
|
|
137
|
+
value: g,
|
|
138
|
+
initialControlledDelay: 20,
|
|
139
|
+
defaultValue: N,
|
|
140
|
+
onChange: (n) => {
|
|
141
|
+
P && P({
|
|
142
|
+
target: {
|
|
143
|
+
value: n
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
}), te = (n) => {
|
|
148
|
+
ee(n.target.value);
|
|
149
|
+
}, re = (n) => {
|
|
150
|
+
b && l && G(!0), F && F(n);
|
|
151
|
+
}, se = (n) => {
|
|
152
|
+
b && l && !p && G(!1), M && M(n);
|
|
153
|
+
};
|
|
154
|
+
return R(() => {
|
|
155
|
+
L && L.width && J(L.width + 18 + 10);
|
|
156
|
+
}, [
|
|
157
|
+
L
|
|
158
|
+
]), R(() => {
|
|
159
|
+
T && T.width && K(T.width + 18 + 10);
|
|
160
|
+
}, [
|
|
161
|
+
T
|
|
162
|
+
]), R(() => {
|
|
163
|
+
r || i && i.current && p !== void 0 && (i.current.style.height = "inherit", i.current.style.height = i.current.scrollHeight + "px");
|
|
164
|
+
}, [
|
|
165
|
+
p,
|
|
166
|
+
r
|
|
167
|
+
]), R(() => {
|
|
168
|
+
r || setTimeout(() => {
|
|
169
|
+
v?.current?.style.setProperty("--av-text-area-wrapper-transition", p ? "none" : "all 0.2s ease-out");
|
|
170
|
+
}, 0);
|
|
171
|
+
}, [
|
|
172
|
+
p,
|
|
173
|
+
r
|
|
174
|
+
]), R(() => {
|
|
175
|
+
if (!r && i && i.current && p !== void 0) {
|
|
176
|
+
const { labelOffset: n, helperTextOffset: E, scrollHeight: ae } = be({
|
|
177
|
+
scrollHeight: i.current.scrollHeight,
|
|
178
|
+
currentHeight: O.current,
|
|
179
|
+
currentLabelOffset: $.current,
|
|
180
|
+
currentHelperTextOffset: w.current
|
|
181
|
+
});
|
|
182
|
+
n && ($.current = n, v?.current?.style.setProperty("--av-text-area-label", `${n}px`)), E && (w.current = E, X?.current?.style.setProperty("--av-text-area-helper-text", `${E}px`)), O.current = ae || O.current;
|
|
183
|
+
}
|
|
184
|
+
}, [
|
|
185
|
+
p,
|
|
186
|
+
r
|
|
187
|
+
]), T.width > 0 && v?.current?.style.setProperty("--tw-translate-x", `${12 + T.width + 5}px`), /* @__PURE__ */ oe("div", {
|
|
188
|
+
className: y.wrapper,
|
|
189
|
+
children: [
|
|
190
|
+
/* @__PURE__ */ h("label", {
|
|
191
|
+
htmlFor: _,
|
|
192
|
+
id: C,
|
|
193
|
+
className: y.accessibleLabel,
|
|
194
|
+
children: t
|
|
195
|
+
}),
|
|
196
|
+
A && /* @__PURE__ */ h("div", {
|
|
197
|
+
ref: q,
|
|
198
|
+
className: y.leftElement,
|
|
199
|
+
children: A
|
|
200
|
+
}),
|
|
201
|
+
/* @__PURE__ */ h("textarea", {
|
|
202
|
+
ref: D,
|
|
203
|
+
id: _,
|
|
204
|
+
name: a,
|
|
205
|
+
disabled: m,
|
|
206
|
+
placeholder: r ? void 0 : " ",
|
|
207
|
+
className: y.textArea,
|
|
208
|
+
rows: 1,
|
|
209
|
+
...l && {
|
|
210
|
+
"aria-describedby": `${_}-helper`
|
|
211
|
+
},
|
|
212
|
+
...s && {
|
|
213
|
+
"aria-invalid": "true"
|
|
214
|
+
},
|
|
215
|
+
...f && !A && !r && {
|
|
216
|
+
style: {
|
|
217
|
+
paddingRight: U
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
...A && !f && !r && {
|
|
221
|
+
style: {
|
|
222
|
+
paddingLeft: j
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
...f && A && !r && {
|
|
226
|
+
style: {
|
|
227
|
+
paddingRight: U,
|
|
228
|
+
paddingLeft: j
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
value: p,
|
|
232
|
+
onChange: te,
|
|
233
|
+
onFocus: re,
|
|
234
|
+
onBlur: se,
|
|
235
|
+
...Y
|
|
236
|
+
}),
|
|
237
|
+
!r && /* @__PURE__ */ h("label", {
|
|
238
|
+
ref: v,
|
|
239
|
+
"aria-hidden": !0,
|
|
240
|
+
htmlFor: _,
|
|
241
|
+
className: `${y.visibleLabel}`,
|
|
242
|
+
children: t
|
|
243
|
+
}),
|
|
244
|
+
Q && /* @__PURE__ */ h("div", {
|
|
245
|
+
ref: X,
|
|
246
|
+
id: `${_}-helper`,
|
|
247
|
+
className: y.helperText,
|
|
248
|
+
children: l
|
|
249
|
+
}),
|
|
250
|
+
f && /* @__PURE__ */ h("div", {
|
|
251
|
+
ref: V,
|
|
252
|
+
className: y.rightElement,
|
|
253
|
+
children: f
|
|
254
|
+
}),
|
|
255
|
+
s && l && /* @__PURE__ */ h(ie, {
|
|
256
|
+
politeness: "polite",
|
|
257
|
+
clearAnnouncementDelay: 500,
|
|
258
|
+
children: Z
|
|
259
|
+
})
|
|
260
|
+
]
|
|
261
|
+
});
|
|
262
|
+
});
|
|
263
|
+
_e.displayName = "TextArea";
|
|
264
|
+
export {
|
|
265
|
+
_e as TextArea
|
|
266
|
+
};
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { jsxs as g, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { ButtonIcon as v, IconCopied as E, IconCopy as C } from "./index.rzw7MU5J.js";
|
|
3
|
+
import { useState as I, useEffect as N } from "react";
|
|
4
|
+
import l from "clsx";
|
|
5
|
+
/*!
|
|
6
|
+
@versini/ui-bubble v6.3.2
|
|
7
|
+
© 2025 gizmette.com
|
|
8
|
+
*/
|
|
9
|
+
try {
|
|
10
|
+
window.__VERSINI_UI_BUBBLE__ || (window.__VERSINI_UI_BUBBLE__ = {
|
|
11
|
+
version: "6.3.2",
|
|
12
|
+
buildTime: "11/04/2025 03:45 PM EST",
|
|
13
|
+
homepage: "https://github.com/aversini/ui-components",
|
|
14
|
+
license: "MIT"
|
|
15
|
+
});
|
|
16
|
+
} catch {
|
|
17
|
+
}
|
|
18
|
+
const i = "av-bubble", $ = ({ kind: e, noMaxWidth: t }) => l("px-4 py-2", {
|
|
19
|
+
"max-w-xs sm:max-w-md md:max-w-2xl": !t,
|
|
20
|
+
"lg:max-w-3xl": e === "left" && !t
|
|
21
|
+
}), T = ({ kind: e }) => l({
|
|
22
|
+
"bg-surface-light dark:bg-surface-dark": e === "left",
|
|
23
|
+
"bg-surface-accent": e === "right"
|
|
24
|
+
}), S = ({ kind: e }) => l("prose prose-dark dark:prose-lighter", "prose-blockquote:my-1", "prose-ol:my-1 prose-ul:my-1", {
|
|
25
|
+
"text-copy-lighter": e === "right"
|
|
26
|
+
}), z = ({ kind: e, tail: t }) => {
|
|
27
|
+
if (t)
|
|
28
|
+
return l(`${i}-${e}-tail`, "rounded-3xl", "relative", "before:content-['']", "before:w-3", "before:h-2", "before:absolute", "before:bottom-0", {
|
|
29
|
+
"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",
|
|
30
|
+
"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"
|
|
31
|
+
});
|
|
32
|
+
if (!t)
|
|
33
|
+
return l("rounded-b-xl", {
|
|
34
|
+
"rounded-tr-xl": e === "left",
|
|
35
|
+
"rounded-tl-xl": e === "right"
|
|
36
|
+
});
|
|
37
|
+
}, U = ({ kind: e, className: t, contentClassName: c, noMaxWidth: u, tail: r }) => {
|
|
38
|
+
const n = l(i, `${i}-${e}`, "flex items-start", {
|
|
39
|
+
"flex-row-reverse": e === "right"
|
|
40
|
+
}, t), s = l(`${i}-content`, "flex flex-col empty:hidden", $({
|
|
41
|
+
kind: e,
|
|
42
|
+
noMaxWidth: u
|
|
43
|
+
}), S({
|
|
44
|
+
kind: e
|
|
45
|
+
}), T({
|
|
46
|
+
kind: e
|
|
47
|
+
}), z({
|
|
48
|
+
kind: e,
|
|
49
|
+
tail: r
|
|
50
|
+
}), c), m = "pr-2 pt-1 text-end text-xs text-copy-light", p = l("flex flex-col-reverse sm:flex-row", {
|
|
51
|
+
"ml-2": e === "left" && !r,
|
|
52
|
+
"mr-2": e === "right" && !r,
|
|
53
|
+
"ml-1": e === "left" && r,
|
|
54
|
+
"mr-1": e === "right" && r
|
|
55
|
+
});
|
|
56
|
+
return {
|
|
57
|
+
wrapper: n,
|
|
58
|
+
main: s,
|
|
59
|
+
footer: m,
|
|
60
|
+
copyButton: p
|
|
61
|
+
};
|
|
62
|
+
}, L = "FOOTER_EMPTY", P = ({ children: e, kind: t = "left", className: c, contentClassName: u, footer: r, rawFooter: n, copyToClipboard: s, copyToClipboardFocusMode: m = "system", copyToClipboardMode: p = "system", noMaxWidth: B = !1, tail: w = !1 }) => {
|
|
63
|
+
const [a, x] = I(!1), f = U({
|
|
64
|
+
kind: t,
|
|
65
|
+
className: c,
|
|
66
|
+
contentClassName: u,
|
|
67
|
+
noMaxWidth: B,
|
|
68
|
+
tail: w
|
|
69
|
+
}), y = !!s && (typeof s == "function" || typeof s == "string" || typeof e == "string"), _ = () => {
|
|
70
|
+
x(!0), typeof s == "function" ? s(e) : typeof s == "string" ? navigator.clipboard.writeText(s) : typeof e == "string" && navigator.clipboard.writeText(e);
|
|
71
|
+
};
|
|
72
|
+
return N(() => {
|
|
73
|
+
let b;
|
|
74
|
+
return a && (b = window.setTimeout(() => {
|
|
75
|
+
x(!1);
|
|
76
|
+
}, 3e3)), () => {
|
|
77
|
+
clearTimeout(b);
|
|
78
|
+
};
|
|
79
|
+
}, [
|
|
80
|
+
a
|
|
81
|
+
]), /* @__PURE__ */ g("div", {
|
|
82
|
+
className: f.wrapper,
|
|
83
|
+
children: [
|
|
84
|
+
/* @__PURE__ */ g("div", {
|
|
85
|
+
children: [
|
|
86
|
+
/* @__PURE__ */ o("div", {
|
|
87
|
+
className: f.main,
|
|
88
|
+
children: e
|
|
89
|
+
}),
|
|
90
|
+
r && Object.keys(r).map((b, h) => {
|
|
91
|
+
const d = r[b];
|
|
92
|
+
return d === L ? /* @__PURE__ */ o("div", {
|
|
93
|
+
className: "prose-p:m-0",
|
|
94
|
+
children: /* @__PURE__ */ o("p", {
|
|
95
|
+
className: f.footer,
|
|
96
|
+
"aria-hidden": "true",
|
|
97
|
+
children: /* @__PURE__ */ o("span", {
|
|
98
|
+
className: "invisible",
|
|
99
|
+
children: " "
|
|
100
|
+
})
|
|
101
|
+
})
|
|
102
|
+
}, `${b}-${h}`) : d ? /* @__PURE__ */ o("div", {
|
|
103
|
+
className: "prose-p:m-0",
|
|
104
|
+
children: /* @__PURE__ */ g("p", {
|
|
105
|
+
className: f.footer,
|
|
106
|
+
children: [
|
|
107
|
+
b,
|
|
108
|
+
": ",
|
|
109
|
+
d
|
|
110
|
+
]
|
|
111
|
+
})
|
|
112
|
+
}, `${b}-${h}`) : null;
|
|
113
|
+
}),
|
|
114
|
+
n && n
|
|
115
|
+
]
|
|
116
|
+
}),
|
|
117
|
+
y && /* @__PURE__ */ o("div", {
|
|
118
|
+
className: f.copyButton,
|
|
119
|
+
children: /* @__PURE__ */ o(v, {
|
|
120
|
+
noBorder: !0,
|
|
121
|
+
noBackground: !0,
|
|
122
|
+
size: "small",
|
|
123
|
+
mode: p,
|
|
124
|
+
focusMode: m,
|
|
125
|
+
label: a ? "Copied to clipboard" : "Copy to clipboard",
|
|
126
|
+
onClick: _,
|
|
127
|
+
disabled: a,
|
|
128
|
+
children: a ? /* @__PURE__ */ o(E, {
|
|
129
|
+
size: "size-3"
|
|
130
|
+
}) : /* @__PURE__ */ o(C, {
|
|
131
|
+
size: "size-3"
|
|
132
|
+
})
|
|
133
|
+
})
|
|
134
|
+
})
|
|
135
|
+
]
|
|
136
|
+
});
|
|
137
|
+
};
|
|
138
|
+
export {
|
|
139
|
+
i as BUBBLE_CLASSNAME,
|
|
140
|
+
L as BUBBLE_FOOTER_EMPTY,
|
|
141
|
+
P as Bubble
|
|
142
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { getDefaultExportFromCjs as kn } from "./App.
|
|
2
|
-
import { visit as In } from "./useMarkdown.
|
|
3
|
-
import { toText as Cn } from "./index.
|
|
1
|
+
import { getDefaultExportFromCjs as kn } from "./App.CV0Bjlae.js";
|
|
2
|
+
import { visit as In } from "./useMarkdown.B4NWSGJz.js";
|
|
3
|
+
import { toText as Cn } from "./index.BdPmgM6G.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.
|
|
2
|
-
import { toText as Ca } from "./index.
|
|
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.B4NWSGJz.js";
|
|
2
|
+
import { toText as Ca } from "./index.BdPmgM6G.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 se, visitParents as Me, unicodeWhitespace as I, unicodePunctuation as N, normalizeIdentifier as _, classifyCharacter as W, visit as _e, toString as ce, EXIT as Oe, asciiAlphanumeric as Z, asciiAlpha as P, markdownLineEndingOrSpace as A, asciiControl as je, blankLine as Be, factorySpace as S, splice as q, resolveAll as We, markdownLineEnding as R, markdownSpace as T, combineExtensions as $e } from "./useMarkdown.
|
|
1
|
+
import { convert as se, visitParents as Me, unicodeWhitespace as I, unicodePunctuation as N, normalizeIdentifier as _, classifyCharacter as W, visit as _e, toString as ce, EXIT as Oe, asciiAlphanumeric as Z, asciiAlpha as P, markdownLineEndingOrSpace as A, asciiControl as je, blankLine as Be, factorySpace as S, splice as q, resolveAll as We, markdownLineEnding as R, markdownSpace as T, combineExtensions as $e } from "./useMarkdown.B4NWSGJz.js";
|
|
2
2
|
import { longestStreak as qe } from "./index.Cyw5OC0t.js";
|
|
3
3
|
function ne(e, n) {
|
|
4
4
|
const t = String(e);
|