@fileverse-dev/ddoc 3.0.96 → 3.0.97
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/index.es.js +106 -126
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -4,7 +4,7 @@ var ut = (e, t, n) => jJ(e, typeof t != "symbol" ? t + "" : t, n);
|
|
|
4
4
|
import * as Fn from "react";
|
|
5
5
|
import _t, { createRef as BJ, memo as g1, createContext as ud, createElement as l2, useContext as cd, version as J7, useRef as He, useState as Be, useDebugValue as TD, useEffect as Me, forwardRef as ur, useLayoutEffect as oh, useCallback as Se, useMemo as Dt, Fragment as NJ, useReducer as MJ, cloneElement as $O, useImperativeHandle as HO } from "react";
|
|
6
6
|
import WO, { flushSync as OJ, createPortal as m1 } from "react-dom";
|
|
7
|
-
import { Drawer as qO, DrawerContent as RJ, DrawerHeader as IJ, DrawerTitle as LJ, DrawerClose as UJ, LucideIcon as Ue, useTheme as PJ, Button as Xt, TextField as Pc, DynamicDropdown as Ur, Tooltip as
|
|
7
|
+
import { Drawer as qO, DrawerContent as RJ, DrawerHeader as IJ, DrawerTitle as LJ, DrawerClose as UJ, LucideIcon as Ue, useTheme as PJ, Button as Xt, TextField as Pc, DynamicDropdown as Ur, Tooltip as en, IconButton as wn, Avatar as u2, cn as Ye, ButtonGroup as jD, Skeleton as hr, TextAreaFieldV2 as c2, DynamicModal as BD, Select as J0, SelectTrigger as Q0, SelectValue as d2, SelectContent as ef, SelectItem as tf, DynamicDropdownV2 as yy, Popover as nf, PopoverTrigger as rf, PopoverContent as of, toast as ND, Divider as p2, UltimateIcons as zJ, PopoverClose as VO, SelectGroup as GO, SelectLabel as $J, Checkbox as HJ, DrawerTrigger as Q7, AnimatedLoader as WJ, Label as qJ, DynamicDrawer as VJ, DynamicDrawerV2 as GJ, BottomDrawer as KJ, Tag as h2, TagInput as KO } from "@fileverse/ui";
|
|
8
8
|
import { isAddress as XJ, createPublicClient as YJ, http as ZJ } from "viem";
|
|
9
9
|
import { mainnet as JJ } from "viem/chains";
|
|
10
10
|
import { motion as Xa, AnimatePresence as ih, MotionConfig as QJ } from "framer-motion";
|
|
@@ -48474,7 +48474,7 @@ const N0 = (e) => {
|
|
|
48474
48474
|
const u = (c) => {
|
|
48475
48475
|
c.preventDefault();
|
|
48476
48476
|
};
|
|
48477
|
-
return r ? /* @__PURE__ */ F.jsx(
|
|
48477
|
+
return r ? /* @__PURE__ */ F.jsx(en, { text: r, children: /* @__PURE__ */ F.jsx(
|
|
48478
48478
|
wn,
|
|
48479
48479
|
{
|
|
48480
48480
|
ref: l,
|
|
@@ -48686,14 +48686,14 @@ const N0 = (e) => {
|
|
|
48686
48686
|
/* @__PURE__ */ F.jsxs("div", { className: "flex justify-between items-center", children: [
|
|
48687
48687
|
/* @__PURE__ */ F.jsx(j$, { username: e, createdAt: r }),
|
|
48688
48688
|
f === "2" ? /* @__PURE__ */ F.jsx(
|
|
48689
|
-
|
|
48689
|
+
en,
|
|
48690
48690
|
{
|
|
48691
48691
|
text: p ? "Available in a moment" : "",
|
|
48692
48692
|
sideOffset: 0,
|
|
48693
48693
|
position: "top",
|
|
48694
48694
|
children: /* @__PURE__ */ F.jsxs(jD, { className: "!space-x-0", children: [
|
|
48695
48695
|
!u && o && o.length === 0 && /* @__PURE__ */ F.jsx(
|
|
48696
|
-
|
|
48696
|
+
en,
|
|
48697
48697
|
{
|
|
48698
48698
|
text: p ? "" : "Add reply",
|
|
48699
48699
|
sideOffset: 0,
|
|
@@ -48712,7 +48712,7 @@ const N0 = (e) => {
|
|
|
48712
48712
|
}
|
|
48713
48713
|
),
|
|
48714
48714
|
/* @__PURE__ */ F.jsx(
|
|
48715
|
-
|
|
48715
|
+
en,
|
|
48716
48716
|
{
|
|
48717
48717
|
text: p ? "" : "Coming soon",
|
|
48718
48718
|
sideOffset: 0,
|
|
@@ -48784,7 +48784,7 @@ const N0 = (e) => {
|
|
|
48784
48784
|
)
|
|
48785
48785
|
] })
|
|
48786
48786
|
}
|
|
48787
|
-
) : /* @__PURE__ */ F.jsx(
|
|
48787
|
+
) : /* @__PURE__ */ F.jsx(en, { text: "Actions are not supported for old comments", children: /* @__PURE__ */ F.jsx(
|
|
48788
48788
|
wn,
|
|
48789
48789
|
{
|
|
48790
48790
|
icon: "Info",
|
|
@@ -48970,7 +48970,7 @@ const N0 = (e) => {
|
|
|
48970
48970
|
")"
|
|
48971
48971
|
] }),
|
|
48972
48972
|
/* @__PURE__ */ F.jsx("div", { className: "relative flex items-center gap-1", children: (M || i) && !re && /* @__PURE__ */ F.jsxs(
|
|
48973
|
-
|
|
48973
|
+
en,
|
|
48974
48974
|
{
|
|
48975
48975
|
text: o ? "Available in a moment" : "",
|
|
48976
48976
|
sideOffset: 0,
|
|
@@ -49017,7 +49017,7 @@ const N0 = (e) => {
|
|
|
49017
49017
|
"more-actions"
|
|
49018
49018
|
),
|
|
49019
49019
|
/* @__PURE__ */ F.jsx(
|
|
49020
|
-
|
|
49020
|
+
en,
|
|
49021
49021
|
{
|
|
49022
49022
|
text: o ? "" : D != null && D.resolved ? "Unresolve" : "Resolve",
|
|
49023
49023
|
sideOffset: 5,
|
|
@@ -50966,7 +50966,7 @@ ${N.getHTML()}`
|
|
|
50966
50966
|
onClose: () => {
|
|
50967
50967
|
t(!1), p(!1), c(!1);
|
|
50968
50968
|
},
|
|
50969
|
-
anchorTrigger: /* @__PURE__ */ F.jsx(
|
|
50969
|
+
anchorTrigger: /* @__PURE__ */ F.jsx(en, { text: "Export/Import", children: /* @__PURE__ */ F.jsx(
|
|
50970
50970
|
wn,
|
|
50971
50971
|
{
|
|
50972
50972
|
icon: "File",
|
|
@@ -51145,7 +51145,7 @@ ${N.getHTML()}`
|
|
|
51145
51145
|
Ur,
|
|
51146
51146
|
{
|
|
51147
51147
|
sideOffset: 8,
|
|
51148
|
-
anchorTrigger: /* @__PURE__ */ F.jsx(
|
|
51148
|
+
anchorTrigger: /* @__PURE__ */ F.jsx(en, { text: e.title, children: /* @__PURE__ */ F.jsx(wn, { icon: e.icon, variant: "ghost", size: "sm" }) }),
|
|
51149
51149
|
content: n(e)
|
|
51150
51150
|
},
|
|
51151
51151
|
e.title
|
|
@@ -51290,7 +51290,7 @@ ${N.getHTML()}`
|
|
|
51290
51290
|
"markdown-dropdown-transition"
|
|
51291
51291
|
),
|
|
51292
51292
|
/* @__PURE__ */ F.jsx("div", { className: "w-[1px] h-4 vertical-divider mx-1" }),
|
|
51293
|
-
/* @__PURE__ */ F.jsx("div", { className: "flex gap-1 justify-center items-center", children: C.map((S, X) => S ? /* @__PURE__ */ F.jsx(
|
|
51293
|
+
/* @__PURE__ */ F.jsx("div", { className: "flex gap-1 justify-center items-center", children: C.map((S, X) => S ? /* @__PURE__ */ F.jsx(en, { text: S.title, children: h ? xo(
|
|
51294
51294
|
/* @__PURE__ */ F.jsx(
|
|
51295
51295
|
hr,
|
|
51296
51296
|
{
|
|
@@ -51516,7 +51516,7 @@ ${N.getHTML()}`
|
|
|
51516
51516
|
{
|
|
51517
51517
|
align: "end",
|
|
51518
51518
|
sideOffset: 8,
|
|
51519
|
-
anchorTrigger: /* @__PURE__ */ F.jsx(
|
|
51519
|
+
anchorTrigger: /* @__PURE__ */ F.jsx(en, { text: "More", children: /* @__PURE__ */ F.jsx(
|
|
51520
51520
|
wn,
|
|
51521
51521
|
{
|
|
51522
51522
|
id: "more-dropdown",
|
|
@@ -51565,7 +51565,7 @@ ${N.getHTML()}`
|
|
|
51565
51565
|
/* @__PURE__ */ F.jsx(hr, { className: "w-[36px] h-[36px] rounded-sm" }),
|
|
51566
51566
|
S.title + "skeleton"
|
|
51567
51567
|
) : Uo(
|
|
51568
|
-
/* @__PURE__ */ F.jsx(
|
|
51568
|
+
/* @__PURE__ */ F.jsx(en, { text: S.title, children: /* @__PURE__ */ F.jsx(
|
|
51569
51569
|
fr,
|
|
51570
51570
|
{
|
|
51571
51571
|
icon: S.icon,
|
|
@@ -51586,7 +51586,7 @@ ${N.getHTML()}`
|
|
|
51586
51586
|
] }),
|
|
51587
51587
|
/* @__PURE__ */ F.jsxs("div", { className: "flex items-center gap-1", children: [
|
|
51588
51588
|
/* @__PURE__ */ F.jsx("div", { className: "w-[1px] h-4 vertical-divider mx-2" }),
|
|
51589
|
-
/* @__PURE__ */ F.jsx(
|
|
51589
|
+
/* @__PURE__ */ F.jsx(en, { text: "Enter focus mode", children: /* @__PURE__ */ F.jsx(
|
|
51590
51590
|
wn,
|
|
51591
51591
|
{
|
|
51592
51592
|
icon: "Maximize",
|
|
@@ -62191,7 +62191,7 @@ const Eve = _t.memo(
|
|
|
62191
62191
|
text: e,
|
|
62192
62192
|
position: t = "bottom",
|
|
62193
62193
|
children: n
|
|
62194
|
-
}) => /* @__PURE__ */ F.jsx(
|
|
62194
|
+
}) => /* @__PURE__ */ F.jsx(en, { text: e, position: t, children: n })
|
|
62195
62195
|
), Sve = _t.memo(
|
|
62196
62196
|
({ children: e }) => /* @__PURE__ */ F.jsx(
|
|
62197
62197
|
gx,
|
|
@@ -77285,7 +77285,7 @@ function N_e() {
|
|
|
77285
77285
|
promise: n
|
|
77286
77286
|
};
|
|
77287
77287
|
}
|
|
77288
|
-
var
|
|
77288
|
+
var Jt = {}, M_e = Qn, Gr = Jt.types = {
|
|
77289
77289
|
document: "document",
|
|
77290
77290
|
paragraph: "paragraph",
|
|
77291
77291
|
run: "run",
|
|
@@ -77483,27 +77483,27 @@ function Y_e(e) {
|
|
|
77483
77483
|
name: e.name
|
|
77484
77484
|
};
|
|
77485
77485
|
}
|
|
77486
|
-
|
|
77487
|
-
|
|
77488
|
-
|
|
77489
|
-
|
|
77490
|
-
|
|
77491
|
-
|
|
77492
|
-
|
|
77493
|
-
|
|
77494
|
-
|
|
77495
|
-
|
|
77496
|
-
|
|
77497
|
-
|
|
77498
|
-
|
|
77499
|
-
|
|
77500
|
-
|
|
77501
|
-
|
|
77502
|
-
|
|
77503
|
-
|
|
77504
|
-
|
|
77505
|
-
|
|
77506
|
-
|
|
77486
|
+
Jt.document = Jt.Document = O_e;
|
|
77487
|
+
Jt.paragraph = Jt.Paragraph = R_e;
|
|
77488
|
+
Jt.run = Jt.Run = I_e;
|
|
77489
|
+
Jt.text = Jt.Text = L_e;
|
|
77490
|
+
Jt.tab = Jt.Tab = U_e;
|
|
77491
|
+
Jt.checkbox = Jt.Checkbox = P_e;
|
|
77492
|
+
Jt.Hyperlink = z_e;
|
|
77493
|
+
Jt.noteReference = Jt.NoteReference = $_e;
|
|
77494
|
+
Jt.Notes = Wx;
|
|
77495
|
+
Jt.Note = H_e;
|
|
77496
|
+
Jt.commentReference = W_e;
|
|
77497
|
+
Jt.comment = q_e;
|
|
77498
|
+
Jt.Image = V_e;
|
|
77499
|
+
Jt.Table = G_e;
|
|
77500
|
+
Jt.TableRow = K_e;
|
|
77501
|
+
Jt.TableCell = X_e;
|
|
77502
|
+
Jt.lineBreak = jE("line");
|
|
77503
|
+
Jt.pageBreak = jE("page");
|
|
77504
|
+
Jt.columnBreak = jE("column");
|
|
77505
|
+
Jt.BookmarkStart = Y_e;
|
|
77506
|
+
Jt.verticalAlignment = ZG;
|
|
77507
77507
|
var Ei = {}, o1 = Qn;
|
|
77508
77508
|
Ei.Result = pa;
|
|
77509
77509
|
Ei.success = Z_e;
|
|
@@ -86241,7 +86241,7 @@ function dSe(e, t) {
|
|
|
86241
86241
|
}
|
|
86242
86242
|
GE.createBodyReader = hSe;
|
|
86243
86243
|
GE._readNumberingProperties = VK;
|
|
86244
|
-
var eM = xu, Mi = Qn, Nn =
|
|
86244
|
+
var eM = xu, Mi = Qn, Nn = Jt, qK = Ei.Result, Na = Ei.warning, pSe = Tl, tM = Yu, nM = ZE;
|
|
86245
86245
|
function hSe(e) {
|
|
86246
86246
|
return {
|
|
86247
86247
|
readXmlElement: function(t) {
|
|
@@ -86758,7 +86758,7 @@ function mSe(e) {
|
|
|
86758
86758
|
}
|
|
86759
86759
|
var GK = {};
|
|
86760
86760
|
GK.DocumentXmlReader = xSe;
|
|
86761
|
-
var bSe =
|
|
86761
|
+
var bSe = Jt, ySe = Ei.Result;
|
|
86762
86762
|
function xSe(e) {
|
|
86763
86763
|
var t = e.bodyReader;
|
|
86764
86764
|
function n(r) {
|
|
@@ -86968,7 +86968,7 @@ function TSe(e, t) {
|
|
|
86968
86968
|
function XK(e) {
|
|
86969
86969
|
return e.attributes["w:styleId"];
|
|
86970
86970
|
}
|
|
86971
|
-
var t7 = {}, jSe =
|
|
86971
|
+
var t7 = {}, jSe = Jt, BSe = Ei.Result;
|
|
86972
86972
|
t7.createFootnotesReader = YK.bind(jt, "footnote");
|
|
86973
86973
|
t7.createEndnotesReader = YK.bind(jt, "endnote");
|
|
86974
86974
|
function YK(e, t) {
|
|
@@ -86987,7 +86987,7 @@ function YK(e, t) {
|
|
|
86987
86987
|
}
|
|
86988
86988
|
return n;
|
|
86989
86989
|
}
|
|
86990
|
-
var ZK = {}, NSe =
|
|
86990
|
+
var ZK = {}, NSe = Jt, MSe = Ei.Result;
|
|
86991
86991
|
function OSe(e) {
|
|
86992
86992
|
function t(r) {
|
|
86993
86993
|
return MSe.combine(r.getElementsByTagName("w:comment").map(n));
|
|
@@ -87022,7 +87022,7 @@ cannot open linked files from a web browser`));
|
|
|
87022
87022
|
}
|
|
87023
87023
|
TE.read = WSe;
|
|
87024
87024
|
TE._findPartPaths = eX;
|
|
87025
|
-
var LSe = Or, USe =
|
|
87025
|
+
var LSe = Or, USe = Jt, ZF = Ei.Result, ny = tg, QK = NE.readXmlFromZipFile, PSe = GE.createBodyReader, zSe = GK.DocumentXmlReader, eh = c3, iM = QE, sM = d3, aM = p3, lM = t7, $Se = ZK, HSe = JK.Files;
|
|
87026
87026
|
function WSe(e, t, n) {
|
|
87027
87027
|
t = t || {}, n = n || {};
|
|
87028
87028
|
var r = new HSe({
|
|
@@ -87631,7 +87631,7 @@ iX.writer = mTe;
|
|
|
87631
87631
|
function mTe(e) {
|
|
87632
87632
|
return e = e || {}, e.outputFormat === "markdown" ? gTe.writer() : fTe.writer(e);
|
|
87633
87633
|
}
|
|
87634
|
-
var Xl = Qn, mM = Or, n2 =
|
|
87634
|
+
var Xl = Qn, mM = Or, n2 = Jt, _i = f3(), iD = Ei, bTe = o7, Qt = h3(), yTe = iX;
|
|
87635
87635
|
r7.DocumentConverter = xTe;
|
|
87636
87636
|
function xTe(e) {
|
|
87637
87637
|
return {
|
|
@@ -87672,7 +87672,7 @@ function vTe(e, t) {
|
|
|
87672
87672
|
prettyPrint: e.prettyPrint,
|
|
87673
87673
|
outputFormat: e.outputFormat
|
|
87674
87674
|
});
|
|
87675
|
-
return
|
|
87675
|
+
return Qt.write(le, Qt.simplify(re(q))), new iD.Result(le.asString(), I);
|
|
87676
87676
|
});
|
|
87677
87677
|
}
|
|
87678
87678
|
function c(L, I, q) {
|
|
@@ -87689,7 +87689,7 @@ function vTe(e, t) {
|
|
|
87689
87689
|
function p(L, I, q) {
|
|
87690
87690
|
return h(L, I).wrap(function() {
|
|
87691
87691
|
var z = c(L.children, I, q);
|
|
87692
|
-
return s ? z : [
|
|
87692
|
+
return s ? z : [Qt.forceWrite].concat(z);
|
|
87693
87693
|
});
|
|
87694
87694
|
}
|
|
87695
87695
|
function h(L, I) {
|
|
@@ -87778,51 +87778,51 @@ function vTe(e, t) {
|
|
|
87778
87778
|
Xl.extend({}, q, { isTableHeader: !1 })
|
|
87779
87779
|
);
|
|
87780
87780
|
$ = [
|
|
87781
|
-
|
|
87782
|
-
|
|
87781
|
+
Qt.freshElement("thead", {}, re),
|
|
87782
|
+
Qt.freshElement("tbody", {}, le)
|
|
87783
87783
|
];
|
|
87784
87784
|
}
|
|
87785
|
-
return [
|
|
87785
|
+
return [Qt.forceWrite].concat($);
|
|
87786
87786
|
}
|
|
87787
87787
|
function T(L, I, q) {
|
|
87788
87788
|
var z = c(L.children, I, q);
|
|
87789
87789
|
return [
|
|
87790
|
-
|
|
87790
|
+
Qt.freshElement("tr", {}, [Qt.forceWrite].concat(z))
|
|
87791
87791
|
];
|
|
87792
87792
|
}
|
|
87793
87793
|
function _(L, I, q) {
|
|
87794
87794
|
var z = q.isTableHeader ? "th" : "td", $ = c(L.children, I, q), re = {};
|
|
87795
87795
|
return L.colSpan !== 1 && (re.colspan = L.colSpan.toString()), L.rowSpan !== 1 && (re.rowspan = L.rowSpan.toString()), [
|
|
87796
|
-
|
|
87796
|
+
Qt.freshElement(z, re, [Qt.forceWrite].concat($))
|
|
87797
87797
|
];
|
|
87798
87798
|
}
|
|
87799
87799
|
function N(L, I, q) {
|
|
87800
87800
|
return m(L, _i.ignore).wrap(function() {
|
|
87801
87801
|
var z = t[L.commentId], $ = o.length + 1, re = "[" + DTe(z) + $ + "]";
|
|
87802
87802
|
return o.push({ label: re, comment: z }), [
|
|
87803
|
-
|
|
87803
|
+
Qt.freshElement("a", {
|
|
87804
87804
|
href: "#" + k("comment", L.commentId),
|
|
87805
87805
|
id: w("comment", L.commentId)
|
|
87806
|
-
}, [
|
|
87806
|
+
}, [Qt.text(re)])
|
|
87807
87807
|
];
|
|
87808
87808
|
});
|
|
87809
87809
|
}
|
|
87810
87810
|
function E(L, I, q) {
|
|
87811
87811
|
var z = L.label, $ = L.comment, re = c($.body, I, q).concat([
|
|
87812
|
-
|
|
87813
|
-
|
|
87814
|
-
|
|
87815
|
-
|
|
87812
|
+
Qt.nonFreshElement("p", {}, [
|
|
87813
|
+
Qt.text(" "),
|
|
87814
|
+
Qt.freshElement("a", { href: "#" + w("comment", $.commentId) }, [
|
|
87815
|
+
Qt.text("↑")
|
|
87816
87816
|
])
|
|
87817
87817
|
])
|
|
87818
87818
|
]);
|
|
87819
87819
|
return [
|
|
87820
|
-
|
|
87820
|
+
Qt.freshElement(
|
|
87821
87821
|
"dt",
|
|
87822
87822
|
{ id: k("comment", $.commentId) },
|
|
87823
|
-
[
|
|
87823
|
+
[Qt.text("Comment " + z)]
|
|
87824
87824
|
),
|
|
87825
|
-
|
|
87825
|
+
Qt.freshElement("dd", {}, re)
|
|
87826
87826
|
];
|
|
87827
87827
|
}
|
|
87828
87828
|
function M(L, I, q) {
|
|
@@ -87840,8 +87840,8 @@ function vTe(e, t) {
|
|
|
87840
87840
|
return L.notes.resolve(le);
|
|
87841
87841
|
}), re = c($, I, q);
|
|
87842
87842
|
return z.concat([
|
|
87843
|
-
|
|
87844
|
-
|
|
87843
|
+
Qt.freshElement("ol", {}, re),
|
|
87844
|
+
Qt.freshElement("dl", {}, QF(o, function(le) {
|
|
87845
87845
|
return E(le, I, q);
|
|
87846
87846
|
}))
|
|
87847
87847
|
]);
|
|
@@ -87849,41 +87849,41 @@ function vTe(e, t) {
|
|
|
87849
87849
|
paragraph: p,
|
|
87850
87850
|
run: f,
|
|
87851
87851
|
text: function(L, I, q) {
|
|
87852
|
-
return [
|
|
87852
|
+
return [Qt.text(L.value)];
|
|
87853
87853
|
},
|
|
87854
87854
|
tab: function(L, I, q) {
|
|
87855
|
-
return [
|
|
87855
|
+
return [Qt.text(" ")];
|
|
87856
87856
|
},
|
|
87857
87857
|
hyperlink: function(L, I, q) {
|
|
87858
87858
|
var z = L.anchor ? "#" + D(L.anchor) : L.href, $ = { href: z };
|
|
87859
87859
|
L.targetFrame != null && ($.target = L.targetFrame);
|
|
87860
87860
|
var re = c(L.children, I, q);
|
|
87861
|
-
return [
|
|
87861
|
+
return [Qt.nonFreshElement("a", $, re)];
|
|
87862
87862
|
},
|
|
87863
87863
|
checkbox: function(L) {
|
|
87864
87864
|
var I = { type: "checkbox" };
|
|
87865
|
-
return L.checked && (I.checked = "checked"), [
|
|
87865
|
+
return L.checked && (I.checked = "checked"), [Qt.freshElement("input", I)];
|
|
87866
87866
|
},
|
|
87867
87867
|
bookmarkStart: function(L, I, q) {
|
|
87868
|
-
var z =
|
|
87868
|
+
var z = Qt.freshElement("a", {
|
|
87869
87869
|
id: D(L.name)
|
|
87870
|
-
}, [
|
|
87870
|
+
}, [Qt.forceWrite]);
|
|
87871
87871
|
return [z];
|
|
87872
87872
|
},
|
|
87873
87873
|
noteReference: function(L, I, q) {
|
|
87874
87874
|
r.push(L);
|
|
87875
|
-
var z =
|
|
87875
|
+
var z = Qt.freshElement("a", {
|
|
87876
87876
|
href: "#" + x(L),
|
|
87877
87877
|
id: v(L)
|
|
87878
|
-
}, [
|
|
87879
|
-
return [
|
|
87878
|
+
}, [Qt.text("[" + n++ + "]")]);
|
|
87879
|
+
return [Qt.freshElement("sup", {}, [z])];
|
|
87880
87880
|
},
|
|
87881
87881
|
note: function(L, I, q) {
|
|
87882
|
-
var z = c(L.body, I, q), $ =
|
|
87883
|
-
|
|
87884
|
-
|
|
87882
|
+
var z = c(L.body, I, q), $ = Qt.elementWithTag(_i.element("p", {}, { fresh: !1 }), [
|
|
87883
|
+
Qt.text(" "),
|
|
87884
|
+
Qt.freshElement("a", { href: "#" + v(L) }, [Qt.text("↑")])
|
|
87885
87885
|
]), re = z.concat([$]);
|
|
87886
|
-
return
|
|
87886
|
+
return Qt.freshElement("li", { id: x(L) }, re);
|
|
87887
87887
|
},
|
|
87888
87888
|
commentReference: N,
|
|
87889
87889
|
comment: E,
|
|
@@ -87926,7 +87926,7 @@ function pX(e, t) {
|
|
|
87926
87926
|
}
|
|
87927
87927
|
var DTe = r7.commentAuthorLabel = function(t) {
|
|
87928
87928
|
return t.authorInitials || "";
|
|
87929
|
-
}, hX = {}, kTe =
|
|
87929
|
+
}, hX = {}, kTe = Jt;
|
|
87930
87930
|
function fX(e) {
|
|
87931
87931
|
if (e.type === "text")
|
|
87932
87932
|
return e.value;
|
|
@@ -92218,7 +92218,7 @@ function LNe({
|
|
|
92218
92218
|
value: a,
|
|
92219
92219
|
onValueChange: (y) => t({ language: y }),
|
|
92220
92220
|
children: [
|
|
92221
|
-
/* @__PURE__ */ F.jsx(Q0, { className: "!min-w-24 text-helper-text-sm h-7 px-2 py-1 color-bg-secondary border-none", children: /* @__PURE__ */ F.jsxs(
|
|
92221
|
+
/* @__PURE__ */ F.jsx(Q0, { className: "!min-w-24 text-helper-text-sm h-7 px-2 py-1 color-bg-secondary border-none", children: /* @__PURE__ */ F.jsxs(en, { text: "Select language", children: [
|
|
92222
92222
|
/* @__PURE__ */ F.jsx(d2, { placeholder: "Select language" }),
|
|
92223
92223
|
/* @__PURE__ */ F.jsx("span", { className: "w-1" })
|
|
92224
92224
|
] }) }),
|
|
@@ -92245,7 +92245,7 @@ function LNe({
|
|
|
92245
92245
|
}
|
|
92246
92246
|
),
|
|
92247
92247
|
/* @__PURE__ */ F.jsx("div", { className: "w-[1px] h-4 vertical-divider mx-1" }),
|
|
92248
|
-
/* @__PURE__ */ F.jsx(
|
|
92248
|
+
/* @__PURE__ */ F.jsx(en, { text: "Copy code", children: /* @__PURE__ */ F.jsx(
|
|
92249
92249
|
Xt,
|
|
92250
92250
|
{
|
|
92251
92251
|
variant: "ghost",
|
|
@@ -92279,7 +92279,7 @@ function LNe({
|
|
|
92279
92279
|
}
|
|
92280
92280
|
) }),
|
|
92281
92281
|
/* @__PURE__ */ F.jsx("div", { className: "w-[1px] h-4 vertical-divider mx-1" }),
|
|
92282
|
-
/* @__PURE__ */ F.jsx(
|
|
92282
|
+
/* @__PURE__ */ F.jsx(en, { text: "Line numbers", children: /* @__PURE__ */ F.jsx(
|
|
92283
92283
|
Xt,
|
|
92284
92284
|
{
|
|
92285
92285
|
variant: "ghost",
|
|
@@ -92293,7 +92293,7 @@ function LNe({
|
|
|
92293
92293
|
}
|
|
92294
92294
|
) }),
|
|
92295
92295
|
/* @__PURE__ */ F.jsx("div", { className: "w-[1px] h-4 vertical-divider mx-1" }),
|
|
92296
|
-
/* @__PURE__ */ F.jsx(
|
|
92296
|
+
/* @__PURE__ */ F.jsx(en, { text: "Word wrap", children: /* @__PURE__ */ F.jsx(
|
|
92297
92297
|
Xt,
|
|
92298
92298
|
{
|
|
92299
92299
|
variant: "ghost",
|
|
@@ -92313,7 +92313,7 @@ function LNe({
|
|
|
92313
92313
|
value: String(d),
|
|
92314
92314
|
onValueChange: (y) => t({ tabSize: Number(y) }),
|
|
92315
92315
|
children: [
|
|
92316
|
-
/* @__PURE__ */ F.jsx(Q0, { className: "w-full text-helper-text-sm h-7 px-2 py-1 color-bg-secondary border-none", children: /* @__PURE__ */ F.jsxs(
|
|
92316
|
+
/* @__PURE__ */ F.jsx(Q0, { className: "w-full text-helper-text-sm h-7 px-2 py-1 color-bg-secondary border-none", children: /* @__PURE__ */ F.jsxs(en, { text: "Tab size", children: [
|
|
92317
92317
|
/* @__PURE__ */ F.jsxs("span", { className: "!hidden sm:!block", children: [
|
|
92318
92318
|
"Tab: ",
|
|
92319
92319
|
d
|
|
@@ -92340,7 +92340,7 @@ function LNe({
|
|
|
92340
92340
|
}
|
|
92341
92341
|
)
|
|
92342
92342
|
] }),
|
|
92343
|
-
/* @__PURE__ */ F.jsx(
|
|
92343
|
+
/* @__PURE__ */ F.jsx(en, { text: "Delete code block", children: /* @__PURE__ */ F.jsx(
|
|
92344
92344
|
Ue,
|
|
92345
92345
|
{
|
|
92346
92346
|
name: "Trash2",
|
|
@@ -92359,7 +92359,7 @@ function LNe({
|
|
|
92359
92359
|
"absolute top-3 right-3 hidden z-10 color-bg-default",
|
|
92360
92360
|
l && "flex"
|
|
92361
92361
|
),
|
|
92362
|
-
children: /* @__PURE__ */ F.jsx(
|
|
92362
|
+
children: /* @__PURE__ */ F.jsx(en, { text: "Copy code", children: /* @__PURE__ */ F.jsxs("div", { className: "relative w-4 h-4", onClick: b, children: [
|
|
92363
92363
|
/* @__PURE__ */ F.jsx(
|
|
92364
92364
|
Ue,
|
|
92365
92365
|
{
|
|
@@ -166674,7 +166674,7 @@ const bOe = 200, yOe = new St("emoji"), xOe = At.create({
|
|
|
166674
166674
|
}
|
|
166675
166675
|
) }),
|
|
166676
166676
|
/* @__PURE__ */ F.jsx(
|
|
166677
|
-
|
|
166677
|
+
en,
|
|
166678
166678
|
{
|
|
166679
166679
|
sideOffset: 5,
|
|
166680
166680
|
position: "bottom",
|
|
@@ -179820,7 +179820,7 @@ const l$e = ({
|
|
|
179820
179820
|
] }),
|
|
179821
179821
|
/* @__PURE__ */ F.jsxs("div", { className: "flex justify-center items-center gap-2", children: [
|
|
179822
179822
|
p == null ? void 0 : p(),
|
|
179823
|
-
!a && /* @__PURE__ */ F.jsx(
|
|
179823
|
+
!a && /* @__PURE__ */ F.jsx(en, { text: "Download", sideOffset: 10, children: /* @__PURE__ */ F.jsx(
|
|
179824
179824
|
wn,
|
|
179825
179825
|
{
|
|
179826
179826
|
variant: "ghost",
|
|
@@ -179829,7 +179829,7 @@ const l$e = ({
|
|
|
179829
179829
|
size: "md"
|
|
179830
179830
|
}
|
|
179831
179831
|
) }),
|
|
179832
|
-
/* @__PURE__ */ F.jsx(
|
|
179832
|
+
/* @__PURE__ */ F.jsx(en, { text: "Comments", sideOffset: 10, children: /* @__PURE__ */ F.jsx(
|
|
179833
179833
|
wn,
|
|
179834
179834
|
{
|
|
179835
179835
|
variant: "ghost",
|
|
@@ -179839,7 +179839,7 @@ const l$e = ({
|
|
|
179839
179839
|
}
|
|
179840
179840
|
) }),
|
|
179841
179841
|
!a && /* @__PURE__ */ F.jsxs(
|
|
179842
|
-
|
|
179842
|
+
en,
|
|
179843
179843
|
{
|
|
179844
179844
|
text: s ? "Copy to Share" : "Link is preparing...",
|
|
179845
179845
|
sideOffset: 10,
|
|
@@ -179870,7 +179870,7 @@ const l$e = ({
|
|
|
179870
179870
|
]
|
|
179871
179871
|
}
|
|
179872
179872
|
),
|
|
179873
|
-
/* @__PURE__ */ F.jsx(
|
|
179873
|
+
/* @__PURE__ */ F.jsx(en, { text: "Press F to toggle fullscreen", sideOffset: 10, children: /* @__PURE__ */ F.jsx(
|
|
179874
179874
|
wn,
|
|
179875
179875
|
{
|
|
179876
179876
|
variant: "ghost",
|
|
@@ -180333,36 +180333,16 @@ const l$e = ({
|
|
|
180333
180333
|
}
|
|
180334
180334
|
)
|
|
180335
180335
|
] }),
|
|
180336
|
-
/* @__PURE__ */ F.
|
|
180337
|
-
|
|
180338
|
-
|
|
180339
|
-
|
|
180340
|
-
|
|
180341
|
-
|
|
180342
|
-
|
|
180343
|
-
|
|
180344
|
-
|
|
180345
|
-
|
|
180346
|
-
{
|
|
180347
|
-
name: "LockKeyhole",
|
|
180348
|
-
className: "color-icon-secondary w-[14px] h-[14px]"
|
|
180349
|
-
}
|
|
180350
|
-
),
|
|
180351
|
-
/* @__PURE__ */ F.jsx("p", { className: "text-helper-text-sm color-text-secondary", children: "Comments are End-to-end Encrypted" })
|
|
180352
|
-
] })
|
|
180353
|
-
}
|
|
180354
|
-
),
|
|
180355
|
-
/* @__PURE__ */ F.jsx(
|
|
180356
|
-
Xt,
|
|
180357
|
-
{
|
|
180358
|
-
"data-testid": "comment-section-send",
|
|
180359
|
-
onClick: x,
|
|
180360
|
-
className: "px-4 py-2 w-20 min-w-20 h-9",
|
|
180361
|
-
disabled: !b.trim() || !o,
|
|
180362
|
-
children: "Send"
|
|
180363
|
-
}
|
|
180364
|
-
)
|
|
180365
|
-
] })
|
|
180336
|
+
/* @__PURE__ */ F.jsx("div", { className: "flex items-center color-bg-default justify-end", children: /* @__PURE__ */ F.jsx(
|
|
180337
|
+
Xt,
|
|
180338
|
+
{
|
|
180339
|
+
"data-testid": "comment-section-send",
|
|
180340
|
+
onClick: x,
|
|
180341
|
+
className: "px-4 py-2 w-20 min-w-20 h-9",
|
|
180342
|
+
disabled: !b.trim() || !o,
|
|
180343
|
+
children: "Send"
|
|
180344
|
+
}
|
|
180345
|
+
) })
|
|
180366
180346
|
] })
|
|
180367
180347
|
]
|
|
180368
180348
|
}
|
|
@@ -180410,7 +180390,7 @@ const l$e = ({
|
|
|
180410
180390
|
/* @__PURE__ */ F.jsxs("div", { className: "flex p-4 border-b flex-row gap-4 items-center color-bg-default", children: [
|
|
180411
180391
|
/* @__PURE__ */ F.jsx("p", { className: "text-heading-sm", children: "Comments" }),
|
|
180412
180392
|
/* @__PURE__ */ F.jsx("div", { className: "absolute top-[2px] right-10 p-2", children: /* @__PURE__ */ F.jsx(
|
|
180413
|
-
|
|
180393
|
+
en,
|
|
180414
180394
|
{
|
|
180415
180395
|
text: a ? "Hide resolved" : "Show resolved",
|
|
180416
180396
|
sideOffset: 0,
|
|
@@ -180450,7 +180430,7 @@ const l$e = ({
|
|
|
180450
180430
|
title: "Comments",
|
|
180451
180431
|
content: /* @__PURE__ */ F.jsxs(_t.Fragment, { children: [
|
|
180452
180432
|
/* @__PURE__ */ F.jsx("div", { className: "absolute -top-[2px] right-10 p-3", children: /* @__PURE__ */ F.jsx(
|
|
180453
|
-
|
|
180433
|
+
en,
|
|
180454
180434
|
{
|
|
180455
180435
|
text: a ? "Hide resolved" : "Show resolved",
|
|
180456
180436
|
sideOffset: 0,
|
|
@@ -180947,7 +180927,7 @@ const w$e = [
|
|
|
180947
180927
|
ref: (g) => {
|
|
180948
180928
|
l.current = g;
|
|
180949
180929
|
},
|
|
180950
|
-
children: /* @__PURE__ */ F.jsx(
|
|
180930
|
+
children: /* @__PURE__ */ F.jsx(en, { position: "top", text: "Choose emoji", children: /* @__PURE__ */ F.jsx(
|
|
180951
180931
|
Ue,
|
|
180952
180932
|
{
|
|
180953
180933
|
onClick: () => {
|
|
@@ -181343,7 +181323,7 @@ const j$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
181343
181323
|
},
|
|
181344
181324
|
className: "h-[24px] px-[6px] py-0 rounded-[6px] text-heading-xsm border-transparent focus-visible:ring-2 focus-visible:ring-[hsl(var(--color-border-focused))]"
|
|
181345
181325
|
}
|
|
181346
|
-
) : /* @__PURE__ */ F.jsx("div", { className: "min-w-0 flex [&>*]:w-full", children: /* @__PURE__ */ F.jsx(
|
|
181326
|
+
) : /* @__PURE__ */ F.jsx("div", { className: "min-w-0 flex [&>*]:w-full", children: /* @__PURE__ */ F.jsx(en, { text: _, position: "bottom", children: /* @__PURE__ */ F.jsx(
|
|
181347
181327
|
"span",
|
|
181348
181328
|
{
|
|
181349
181329
|
"data-testid": `tab-name-${e}`,
|
|
@@ -181413,7 +181393,7 @@ const j$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
181413
181393
|
onMouseEnter: () => n(!0),
|
|
181414
181394
|
onMouseLeave: () => n(!1),
|
|
181415
181395
|
className: "[&_[data-testid='tooltip-trigger']]:w-full [&_[data-testid='tooltip-trigger']]:block",
|
|
181416
|
-
children: /* @__PURE__ */ F.jsx(
|
|
181396
|
+
children: /* @__PURE__ */ F.jsx(en, { text: e.tooltipText, position: "top", open: t, children: o })
|
|
181417
181397
|
}
|
|
181418
181398
|
) : o;
|
|
181419
181399
|
}, uJ = ({
|
|
@@ -181632,7 +181612,7 @@ const j$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
181632
181612
|
),
|
|
181633
181613
|
children: [
|
|
181634
181614
|
(!z || r) && /* @__PURE__ */ F.jsx(
|
|
181635
|
-
|
|
181615
|
+
en,
|
|
181636
181616
|
{
|
|
181637
181617
|
text: r ? "Hide tabs and outlines" : "Show tabs and outlines",
|
|
181638
181618
|
position: "right",
|
|
@@ -182260,7 +182240,7 @@ const j$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
182260
182240
|
),
|
|
182261
182241
|
children: [
|
|
182262
182242
|
/* @__PURE__ */ F.jsx(
|
|
182263
|
-
|
|
182243
|
+
en,
|
|
182264
182244
|
{
|
|
182265
182245
|
text: o ? "Hide document outline" : "Show document outline",
|
|
182266
182246
|
position: "right",
|
|
@@ -182627,7 +182607,7 @@ const j$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
182627
182607
|
"zoom-levels"
|
|
182628
182608
|
),
|
|
182629
182609
|
/* @__PURE__ */ F.jsx(
|
|
182630
|
-
|
|
182610
|
+
en,
|
|
182631
182611
|
{
|
|
182632
182612
|
text: o ? "Hide tabs and outlines sidebar" : "Show tabs and outlines sidebar",
|
|
182633
182613
|
position: "bottom",
|
|
@@ -182643,7 +182623,7 @@ const j$e = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
182643
182623
|
)
|
|
182644
182624
|
}
|
|
182645
182625
|
),
|
|
182646
|
-
/* @__PURE__ */ F.jsx(
|
|
182626
|
+
/* @__PURE__ */ F.jsx(en, { text: "Exist focus mode", children: /* @__PURE__ */ F.jsx(
|
|
182647
182627
|
wn,
|
|
182648
182628
|
{
|
|
182649
182629
|
icon: "Minimize",
|