@aiquants/markdown-explorer 0.22.0 → 0.24.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/CHANGELOG.md +143 -0
- package/README.md +63 -17
- package/dist/{EditSurface-BesNcSQj.cjs → EditSurface-CRc4g0Qa.cjs} +5 -5
- package/dist/{EditSurface-DNjI8pV3.js → EditSurface-CcWEczj3.js} +333 -336
- package/dist/{ExplorerSplit-GUdzpDPg.js → ExplorerSplit-97SeIAOS.js} +81 -81
- package/dist/{ExplorerSplit-B4oNvydP.cjs → ExplorerSplit-ByxxXlgs.cjs} +1 -1
- package/dist/{MultiLayout-DtKChQ_s.cjs → MultiLayout-B_yMVDt_.cjs} +1 -1
- package/dist/{MultiLayout-BJ-s6AaD.js → MultiLayout-CnbuAlxd.js} +4 -4
- package/dist/{NativeScrollBar-D10fsk-7.js → NativeScrollBar-BXdaM3EA.js} +1 -1
- package/dist/{NativeScrollBar-DJKlPWvD.cjs → NativeScrollBar-D4a7fBOS.cjs} +1 -1
- package/dist/{TreeLayout-DQT5p2vI.js → TreeLayout-BIQBKAkV.js} +3 -3
- package/dist/{TreeLayout-C1mTmoPp.cjs → TreeLayout-C6QDpEBS.cjs} +1 -1
- package/dist/core/config.d.cts +13 -0
- package/dist/core/config.d.ts +13 -0
- package/dist/core/contracts.d.cts +29 -4
- package/dist/core/contracts.d.ts +29 -4
- package/dist/core/labels.d.cts +21 -0
- package/dist/core/labels.d.ts +21 -0
- package/dist/core/textEncoding.d.cts +4 -0
- package/dist/core/textEncoding.d.ts +4 -0
- package/dist/{dataRoute-CObbjNxG.js → dataRoute-BEvesOvN.js} +108 -99
- package/dist/dataRoute-Cv7fgCW7.cjs +1 -0
- package/dist/index-BwTVYkTR.cjs +13 -0
- package/dist/index-CeZDCyEl.js +4088 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +24 -23
- package/dist/location-CasigkBk.cjs +1 -0
- package/dist/location-gXXmC7CQ.js +643 -0
- package/dist/{merge-DauzoA2W.js → merge-DqjUgcV_.js} +1 -1
- package/dist/{merge-CTkzzHtn.cjs → merge-QLktbpZY.cjs} +1 -1
- package/dist/{sanitizePolicy-gEXeavb-.cjs → sanitizePolicy-CZwOaJ92.cjs} +1 -1
- package/dist/{sanitizePolicy-BWQtWhsL.js → sanitizePolicy-gVKBhabq.js} +1 -1
- package/dist/sanitizeWorker.cjs +1 -1
- package/dist/sanitizeWorker.js +1 -1
- package/dist/server/fileSystemSource.d.cts +1 -0
- package/dist/server/fileSystemSource.d.ts +1 -0
- package/dist/server/ports.d.cts +9 -1
- package/dist/server/ports.d.ts +9 -1
- package/dist/server.cjs +1 -1
- package/dist/server.d.cts +1 -0
- package/dist/server.d.ts +1 -0
- package/dist/server.js +852 -834
- package/dist/styles/markdown-explorer.css +1 -1
- package/dist/{useSplitPersistence-Cc4tDxB4.js → useSplitPersistence-BPNjvuJi.js} +1 -1
- package/dist/{useSplitPersistence-Ba-v64n-.cjs → useSplitPersistence-Bmpb2prR.cjs} +1 -1
- package/docs/behavior/dom-hooks.md +13 -6
- package/docs/behavior/layout.md +22 -8
- package/docs/behavior/localization.md +9 -5
- package/docs/behavior/security.md +6 -4
- package/docs/behavior/url-contract.md +2 -2
- package/package.json +5 -5
- package/dist/dataRoute-BONacTPi.cjs +0 -1
- package/dist/index-0pnuyLUO.js +0 -3662
- package/dist/index-T98wklgM.cjs +0 -13
- package/dist/location-B-m9scLf.js +0 -499
- package/dist/location-BVEN_Ihk.cjs +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as m, jsxs as L, Fragment as Qe } from "react/jsx-runtime";
|
|
2
|
-
import { u as $, p as kt,
|
|
2
|
+
import { u as $, p as kt, Q as Pe, M as Je, R as At, y as Oe, S as Lt, T as Pt, k as Ot, U as qt, V as Ct, W as Ft } from "./index-CeZDCyEl.js";
|
|
3
3
|
import * as f from "react";
|
|
4
4
|
import { use as ye, createContext as qe, useState as F, useCallback as w, useMemo as C, useRef as E, useLayoutEffect as H, useEffect as D, useSyncExternalStore as Ce, Suspense as et, useId as Re } from "react";
|
|
5
|
-
import {
|
|
5
|
+
import { s as Mt, t as _t, u as tt, v as It, x as Dt, y as Ht, C as $t, F as Zt, z as Ve, A as Bt, B as zt, b as Ee, D as Vt } from "./location-gXXmC7CQ.js";
|
|
6
6
|
import { useDirectoryTreeState as jt, DirectoryTree as Kt } from "@aiquants/directory-tree";
|
|
7
7
|
import { T as Ut } from "./tapScrollCircle-u4EXeLhx.js";
|
|
8
|
-
import { s as
|
|
9
|
-
import { PanelGroup as
|
|
10
|
-
import { a as Yt, u as Qt } from "./useSplitPersistence-
|
|
8
|
+
import { s as Wt } from "./storage-CmGHg7OA.js";
|
|
9
|
+
import { PanelGroup as Gt, Panel as je, PanelResizeHandle as Xt } from "@aiquants/resize-panels";
|
|
10
|
+
import { a as Yt, u as Qt } from "./useSplitPersistence-BPNjvuJi.js";
|
|
11
11
|
import { useLocation as Jt } from "react-router";
|
|
12
12
|
function en({
|
|
13
13
|
title: e,
|
|
@@ -310,15 +310,15 @@ const un = /* @__PURE__ */ f.forwardRef(dn), Fe = qe(!0), nt = "\0loop\0", rt =
|
|
|
310
310
|
o((p) => p.state === "running" && p.opened === i ? p : { state: "running", opened: i });
|
|
311
311
|
}, []);
|
|
312
312
|
return C(() => ({ status: r, start: c, end: l, advance: a }), [r, c, l, a]);
|
|
313
|
-
}, Ue = ["pointerdown", "wheel", "touchstart", "keydown", "focusin"],
|
|
314
|
-
const s = E(null), d = E(!0), u = E(
|
|
313
|
+
}, Ue = ["pointerdown", "wheel", "touchstart", "keydown", "focusin"], Pn = 8, We = { least: Number.POSITIVE_INFINITY, stalled: 0 }, On = ({ tree: e, container: t, path: n, chain: r, rows: o, cancel: c, displayed: l, placement: a }) => {
|
|
314
|
+
const s = E(null), d = E(!0), u = E(We), i = E(null), p = E(null), h = E(r), g = E(a);
|
|
315
315
|
H(() => {
|
|
316
316
|
h.current = r, g.current = a;
|
|
317
317
|
}, [r, a]);
|
|
318
318
|
const v = w(() => {
|
|
319
319
|
const R = i.current;
|
|
320
320
|
R !== null && (i.current = null, R.phase === "asking" ? R.controller.abort() : h.current?.open(null));
|
|
321
|
-
}, []),
|
|
321
|
+
}, []), P = w(() => {
|
|
322
322
|
s.current = null, v();
|
|
323
323
|
}, [v]), A = w(() => {
|
|
324
324
|
const R = t.current;
|
|
@@ -334,7 +334,7 @@ const un = /* @__PURE__ */ f.forwardRef(dn), Fe = qe(!0), nt = "\0loop\0", rt =
|
|
|
334
334
|
if (e.current?.scrollToPath(k, { align: "nearest" }) === !0) {
|
|
335
335
|
i.current?.phase === "opening" && v();
|
|
336
336
|
const { least: _, stalled: B } = u.current;
|
|
337
|
-
u.current = S < _ ? { least: S, stalled: 0 } : { least: _, stalled: B + 1 }, u.current.stalled <
|
|
337
|
+
u.current = S < _ ? { least: S, stalled: 0 } : { least: _, stalled: B + 1 }, u.current.stalled < Pn && A();
|
|
338
338
|
return;
|
|
339
339
|
}
|
|
340
340
|
const b = i.current;
|
|
@@ -342,27 +342,27 @@ const un = /* @__PURE__ */ f.forwardRef(dn), Fe = qe(!0), nt = "\0loop\0", rt =
|
|
|
342
342
|
s.current = null;
|
|
343
343
|
return;
|
|
344
344
|
}
|
|
345
|
-
b.phase === "opening" && h.current?.progress(b.folders, k) !== "loading" &&
|
|
345
|
+
b.phase === "opening" && h.current?.progress(b.folders, k) !== "loading" && P();
|
|
346
346
|
}));
|
|
347
|
-
}, [e, t, v,
|
|
348
|
-
d.current = !1, u.current =
|
|
347
|
+
}, [e, t, v, P]), q = w(() => {
|
|
348
|
+
d.current = !1, u.current = We, A();
|
|
349
349
|
}, [A]);
|
|
350
350
|
D(() => {
|
|
351
351
|
const R = t.current;
|
|
352
352
|
if (R === null) return;
|
|
353
353
|
const k = typeof ResizeObserver > "u" ? null : new ResizeObserver(q);
|
|
354
354
|
k?.observe(R);
|
|
355
|
-
for (const S of Ue) R.addEventListener(S,
|
|
355
|
+
for (const S of Ue) R.addEventListener(S, P, { passive: !0 });
|
|
356
356
|
return () => {
|
|
357
357
|
k?.disconnect();
|
|
358
|
-
for (const S of Ue) R.removeEventListener(S,
|
|
358
|
+
for (const S of Ue) R.removeEventListener(S, P);
|
|
359
359
|
p.current !== null && cancelAnimationFrame(p.current), p.current = null, v();
|
|
360
360
|
};
|
|
361
|
-
}, [t, q,
|
|
361
|
+
}, [t, q, P, v]);
|
|
362
362
|
const y = r !== null;
|
|
363
363
|
D(() => {
|
|
364
364
|
const R = t.current;
|
|
365
|
-
if (
|
|
365
|
+
if (P(), n === null || R === null || R.contains(R.ownerDocument.activeElement)) return;
|
|
366
366
|
s.current = n;
|
|
367
367
|
const k = h.current;
|
|
368
368
|
if (y && k !== null) {
|
|
@@ -372,13 +372,13 @@ const un = /* @__PURE__ */ f.forwardRef(dn), Fe = qe(!0), nt = "\0loop\0", rt =
|
|
|
372
372
|
});
|
|
373
373
|
}
|
|
374
374
|
q();
|
|
375
|
-
}, [n, y, t,
|
|
375
|
+
}, [n, y, t, P, q]), D(() => {
|
|
376
376
|
(i.current?.phase === "opening" || s.current !== null && !d.current) && q();
|
|
377
377
|
}, [o, q]);
|
|
378
378
|
const Z = E(c);
|
|
379
379
|
D(() => {
|
|
380
|
-
Z.current !== c && (Z.current = c,
|
|
381
|
-
}, [c,
|
|
380
|
+
Z.current !== c && (Z.current = c, P());
|
|
381
|
+
}, [c, P]);
|
|
382
382
|
const N = E(l);
|
|
383
383
|
D(() => {
|
|
384
384
|
N.current && !l && v(), N.current = l;
|
|
@@ -426,10 +426,10 @@ const un = /* @__PURE__ */ f.forwardRef(dn), Fe = qe(!0), nt = "\0loop\0", rt =
|
|
|
426
426
|
tapScrollCircleOptions: Ut
|
|
427
427
|
},
|
|
428
428
|
behaviorOptions: { enablePointerDrag: !0 }
|
|
429
|
-
}, Bn = { hoverClassName: "", directorySelectedClassName: "", itemSelectedClassName: "" }, zn = { color: "inherit", fontSize: "inherit" }, Vn = { fontSize: "inherit" }, jn = /* @__PURE__ */ new Set(), Kn = /* @__PURE__ */ new Map(), Un = { color: "var(--aqmx-tree-line)" },
|
|
429
|
+
}, Bn = { hoverClassName: "", directorySelectedClassName: "", itemSelectedClassName: "" }, zn = { color: "inherit", fontSize: "inherit" }, Vn = { fontSize: "inherit" }, jn = /* @__PURE__ */ new Set(), Kn = /* @__PURE__ */ new Map(), Un = { color: "var(--aqmx-tree-line)" }, Wn = (e) => {
|
|
430
430
|
const t = e instanceof Element ? e.closest(`[${ce}]`) : null;
|
|
431
431
|
return t === null || t.getAttribute("data-entry-type") !== "file" ? null : t.getAttribute(ce);
|
|
432
|
-
}, ct = (e, t, n, r) => n === "folder-limit" ? e.expandAllFolderLimit(r, t.maxFolders, e.expandAll) : e.expandAllDepthLimit(r, t.maxDepth),
|
|
432
|
+
}, ct = (e, t, n, r) => n === "folder-limit" ? e.expandAllFolderLimit(r, t.maxFolders, e.expandAll) : e.expandAllDepthLimit(r, t.maxDepth), Gn = (e, t, n) => n.kind === "done" ? e.expandAllDone(n.opened, n.failed, n.complete) : ct(e, t, n.kind, n.opened), it = () => {
|
|
433
433
|
const { labels: e } = $();
|
|
434
434
|
return /* @__PURE__ */ L("div", { className: "aqmx-explorer-loading", "aria-busy": "true", "data-testid": "markdown-explorer-tree-loading", children: [
|
|
435
435
|
/* @__PURE__ */ m("p", { className: "aqmx-explorer-loading-text", children: e.treeLoading }),
|
|
@@ -469,7 +469,7 @@ const un = /* @__PURE__ */ f.forwardRef(dn), Fe = qe(!0), nt = "\0loop\0", rt =
|
|
|
469
469
|
o.key !== "Escape" && o.stopPropagation();
|
|
470
470
|
},
|
|
471
471
|
children: [
|
|
472
|
-
/* @__PURE__ */ m(
|
|
472
|
+
/* @__PURE__ */ m(Pe, { className: "aqmx-explorer-folder-retry-icon", "aria-hidden": "true" }),
|
|
473
473
|
/* @__PURE__ */ m("span", { className: "aqmx-explorer-folder-retry-text", children: n.retry })
|
|
474
474
|
]
|
|
475
475
|
}
|
|
@@ -492,9 +492,9 @@ const un = /* @__PURE__ */ f.forwardRef(dn), Fe = qe(!0), nt = "\0loop\0", rt =
|
|
|
492
492
|
marks: h,
|
|
493
493
|
claimsHeld: g,
|
|
494
494
|
expandAll: v,
|
|
495
|
-
revealCancel:
|
|
495
|
+
revealCancel: P
|
|
496
496
|
}) => {
|
|
497
|
-
const { trees: A, documents: q, labels: y, locale: Z, theme: N, data: R, config: k, sources: S, reveals: b } = $(), _ = ye(Fe), [B] = F(wn), ie = E(null), { rowHeight: re, lineColor: K } = Dn(ie, N), { isExpanded: U, toggle: ae, expandMultiple: z, collapseMultiple: Q, expanded: J, isPending: ee } = i, { alwaysExpanded: M, sortMode: le, folderPlacement: de, readmePlacement: he } = o, { direct: oe, markDirect:
|
|
497
|
+
const { trees: A, documents: q, labels: y, locale: Z, theme: N, data: R, config: k, sources: S, reveals: b } = $(), _ = ye(Fe), [B] = F(wn), ie = E(null), { rowHeight: re, lineColor: K } = Dn(ie, N), { isExpanded: U, toggle: ae, expandMultiple: z, collapseMultiple: Q, expanded: J, isPending: ee } = i, { alwaysExpanded: M, sortMode: le, folderPlacement: de, readmePlacement: he } = o, { direct: oe, markDirect: W, unmarkDirect: te, pruneDirect: we } = h, { running: ue, advance: me } = v, xe = E(null), se = E(null), G = C(() => _t({ sortMode: le, folderPlacement: de, readmePlacement: he }), [le, de, he]), O = C(() => gn(G), [G]), I = w((x) => A.children(r, x), [A, r]), V = C(() => bn(e), [e]), ne = w((x) => !pe(x) && (U(x) || M && !V.has(x)), [U, M, V]), X = E({ shownExpanded: ne, isExpanded: U, unloadedFolders: V, entries: e, childrenOf: I });
|
|
498
498
|
H(() => {
|
|
499
499
|
X.current = { shownExpanded: ne, isExpanded: U, unloadedFolders: V, entries: e, childrenOf: I };
|
|
500
500
|
}, [ne, U, V, e, I]);
|
|
@@ -509,9 +509,9 @@ const un = /* @__PURE__ */ f.forwardRef(dn), Fe = qe(!0), nt = "\0loop\0", rt =
|
|
|
509
509
|
Ie(pn(x));
|
|
510
510
|
return;
|
|
511
511
|
}
|
|
512
|
-
X.current.isExpanded(x) ? te([x]) : X.current.unloadedFolders.has(x) &&
|
|
512
|
+
X.current.isExpanded(x) ? te([x]) : X.current.unloadedFolders.has(x) && W(x), ae(x);
|
|
513
513
|
},
|
|
514
|
-
[Ie,
|
|
514
|
+
[Ie, W, te, ae]
|
|
515
515
|
), Se = w(
|
|
516
516
|
(x) => {
|
|
517
517
|
const T = x.filter((j) => !pe(j));
|
|
@@ -530,14 +530,14 @@ const un = /* @__PURE__ */ f.forwardRef(dn), Fe = qe(!0), nt = "\0loop\0", rt =
|
|
|
530
530
|
{
|
|
531
531
|
name: x.name,
|
|
532
532
|
onRetry: () => {
|
|
533
|
-
|
|
533
|
+
W(x.path), A.retryChildren(r, x.path), X.current.shownExpanded(x.path) || z([x.path]);
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
536
|
),
|
|
537
|
-
[A, r,
|
|
538
|
-
), He = n === "multi" ? l : jn, { loopFolderName: $e } = y, wt = C(() => B(e, { openPaths: He, childrenOf: I, renderFailedFolder: De, loopFolderName: $e }), [B, e, He, I, De, $e, t]), gt = At(q,
|
|
539
|
-
for (const x of Ze.current) X.current.unloadedFolders.has(x) &&
|
|
540
|
-
}, [
|
|
537
|
+
[A, r, W, z]
|
|
538
|
+
), He = n === "multi" ? l : jn, { loopFolderName: $e } = y, wt = C(() => B(e, { openPaths: He, childrenOf: I, renderFailedFolder: De, loopFolderName: $e }), [B, e, He, I, De, $e, t]), gt = At(q, Wn), Ze = E([]), ge = w(() => {
|
|
539
|
+
for (const x of Ze.current) X.current.unloadedFolders.has(x) && W(x);
|
|
540
|
+
}, [W]), { maxDepth: Te } = k.revealDocument, Be = E(u);
|
|
541
541
|
H(() => {
|
|
542
542
|
Be.current = u;
|
|
543
543
|
}, [u]);
|
|
@@ -562,13 +562,13 @@ const un = /* @__PURE__ */ f.forwardRef(dn), Fe = qe(!0), nt = "\0loop\0", rt =
|
|
|
562
562
|
);
|
|
563
563
|
D(() => ge(), [ge, V]);
|
|
564
564
|
const bt = C(() => [e, t, J], [e, t, J]), Et = w((x) => se.current === null ? Number.POSITIVE_INFINITY : $n(se.current, x), []);
|
|
565
|
-
|
|
566
|
-
const ze = w((x) => oe.has(x), [oe]), ve = C(() => vn(e, { isShownExpanded: ne, childrenOf: I, compare:
|
|
565
|
+
On({ tree: xe, container: se, path: c.path, chain: c.openFolders ? vt : null, rows: bt, cancel: P, displayed: _, placement: Et });
|
|
566
|
+
const ze = w((x) => oe.has(x), [oe]), ve = C(() => vn(e, { isShownExpanded: ne, childrenOf: I, compare: G, isDirect: ze }), [e, ne, I, G, ze, t]), be = _ && g;
|
|
567
567
|
H(() => {
|
|
568
568
|
p(e);
|
|
569
569
|
}, [e, p]), H(() => () => p(null), [p]), D(() => A.claimChildren(r, be ? ve.folders : Kn), [A, r, be, ve]), D(() => we(V), [we, V]), D(() => {
|
|
570
|
-
be && ue && me({ entries: e, isShownExpanded: ne, childrenOf: I, compare:
|
|
571
|
-
}, [be, ue, me, e, ne, I,
|
|
570
|
+
be && ue && me({ entries: e, isShownExpanded: ne, childrenOf: I, compare: G, expanded: J, waiting: ve.waiting, expansionPending: ee });
|
|
571
|
+
}, [be, ue, me, e, ne, I, G, J, ve, ee]);
|
|
572
572
|
const yt = w(
|
|
573
573
|
(x) => {
|
|
574
574
|
const T = x.entry.absolutePath;
|
|
@@ -628,7 +628,7 @@ const un = /* @__PURE__ */ f.forwardRef(dn), Fe = qe(!0), nt = "\0loop\0", rt =
|
|
|
628
628
|
nameStyle: zn
|
|
629
629
|
},
|
|
630
630
|
virtualScroll: Zn,
|
|
631
|
-
sort:
|
|
631
|
+
sort: O,
|
|
632
632
|
locale: Z,
|
|
633
633
|
labels: Tt
|
|
634
634
|
}
|
|
@@ -652,7 +652,7 @@ const un = /* @__PURE__ */ f.forwardRef(dn), Fe = qe(!0), nt = "\0loop\0", rt =
|
|
|
652
652
|
}, [r, e, o]);
|
|
653
653
|
const a = r && e === 0 ? o : e;
|
|
654
654
|
return a === 0 && r ? null : /* @__PURE__ */ L("p", { className: "aqmx-explorer-tree-progress", "data-testid": "markdown-explorer-tree-progress", "data-aqmx-loading": String(a), "data-aqmx-expand-all": t.state, children: [
|
|
655
|
-
a > 0 ? /* @__PURE__ */ m(
|
|
655
|
+
a > 0 ? /* @__PURE__ */ m(Pe, { className: "aqmx-explorer-tree-progress-icon", "aria-hidden": "true" }) : null,
|
|
656
656
|
/* @__PURE__ */ m("span", { children: t.state === "running" ? n.expandAllProgress(t.opened, a) : n.foldersLoading(a) })
|
|
657
657
|
] });
|
|
658
658
|
}, er = ({ stop: e, opened: t, budget: n }) => {
|
|
@@ -668,15 +668,15 @@ const un = /* @__PURE__ */ f.forwardRef(dn), Fe = qe(!0), nt = "\0loop\0", rt =
|
|
|
668
668
|
const c = r?.(o.failure);
|
|
669
669
|
return /* @__PURE__ */ m("div", { className: "aqmx-explorer-tree-message", "data-testid": "markdown-explorer-tree-failure", "data-aqmx-failure": o.failure.reason, children: c !== void 0 ? c : /* @__PURE__ */ m(kt, { failure: o.failure, alert: !0, onRetry: t, testId: null }) });
|
|
670
670
|
}, rr = ({ onControls: e, ...t }) => {
|
|
671
|
-
const { trees: n, storageNamespace: r, labels: o, announcer: c, config: l } = $(), { sourceId: a } = t, s = jt({ storageKey:
|
|
671
|
+
const { trees: n, storageNamespace: r, labels: o, announcer: c, config: l } = $(), { sourceId: a } = t, s = jt({ storageKey: Wt(r).treeExpansion(a) });
|
|
672
672
|
Ce(n.subscribe, n.version, n.version);
|
|
673
673
|
const d = n.read(a), u = w(() => n.retry(a), [n, a]);
|
|
674
674
|
H(() => n.open(a), [n, a]);
|
|
675
|
-
const i = Tn(), { expanded: p, expandMultiple: h, collapseAll: g } = s, [v,
|
|
675
|
+
const i = Tn(), { expanded: p, expandMultiple: h, collapseAll: g } = s, [v, P] = F(null), A = v !== p, q = E(p);
|
|
676
676
|
H(() => {
|
|
677
677
|
q.current = p;
|
|
678
678
|
}, [p]);
|
|
679
|
-
const y = l.expandAll, Z = w(() => c.announce(o.expandAllStarted), [c, o]), N = w((M) => c.announce(
|
|
679
|
+
const y = l.expandAll, Z = w(() => c.announce(o.expandAllStarted), [c, o]), N = w((M) => c.announce(Gn(o, y, M)), [c, o, y]), R = Ln({ budget: y, expandMultiple: h, onStart: Z, onFinish: N }), { status: k, start: S, end: b, advance: _ } = R, B = k.state === "running", ie = C(() => ({ running: B, advance: _ }), [B, _]), re = E(null), [K, U] = F(!1), ae = w((M) => {
|
|
680
680
|
re.current = M, U(M !== null);
|
|
681
681
|
}, []);
|
|
682
682
|
D(
|
|
@@ -687,7 +687,7 @@ const un = /* @__PURE__ */ f.forwardRef(dn), Fe = qe(!0), nt = "\0loop\0", rt =
|
|
|
687
687
|
[n, a, c, o]
|
|
688
688
|
);
|
|
689
689
|
const { clearDirect: z } = i, [Q, J] = F(0), ee = w(() => {
|
|
690
|
-
J((M) => M + 1), b(), z(),
|
|
690
|
+
J((M) => M + 1), b(), z(), P(q.current), g();
|
|
691
691
|
}, [b, z, g]);
|
|
692
692
|
return D(() => {
|
|
693
693
|
e({ collapseAll: ee, expandAll: K ? S : null, expanding: B });
|
|
@@ -722,10 +722,10 @@ function ar({
|
|
|
722
722
|
clipRule: "evenodd"
|
|
723
723
|
}));
|
|
724
724
|
}
|
|
725
|
-
const dt = /* @__PURE__ */ f.forwardRef(ar),
|
|
725
|
+
const dt = /* @__PURE__ */ f.forwardRef(ar), Ge = "markdown-explorer-selection-remove", lr = ({ selection: e, onRemove: t, onClear: n, onOpenSelection: r, onLeave: o }) => {
|
|
726
726
|
const { labels: c } = $(), l = Re(), a = E(null), s = [...e], d = (i, p) => {
|
|
727
727
|
if (p.ownerDocument.activeElement === p) {
|
|
728
|
-
const h = a.current === null ? [] : [...a.current.querySelectorAll(`[data-testid="${
|
|
728
|
+
const h = a.current === null ? [] : [...a.current.querySelectorAll(`[data-testid="${Ge}"]`)], g = h.indexOf(p), v = [h[g + 1], h[g - 1]].find((P) => P !== void 0);
|
|
729
729
|
v === void 0 ? o() : v.focus();
|
|
730
730
|
}
|
|
731
731
|
t(i);
|
|
@@ -747,7 +747,7 @@ const dt = /* @__PURE__ */ f.forwardRef(ar), We = "markdown-explorer-selection-r
|
|
|
747
747
|
className: "aqmx-icon-button aqmx-explorer-tray-remove",
|
|
748
748
|
"aria-label": c.removeFromSelection(p),
|
|
749
749
|
title: c.removeFromSelection(p),
|
|
750
|
-
"data-testid":
|
|
750
|
+
"data-testid": Ge,
|
|
751
751
|
"data-aqmx-path": i,
|
|
752
752
|
onClick: (h) => d(i, h.currentTarget),
|
|
753
753
|
children: /* @__PURE__ */ m(dt, { "aria-hidden": "true" })
|
|
@@ -1008,8 +1008,8 @@ function Lr({
|
|
|
1008
1008
|
d: "M19.906 9c.382 0 .749.057 1.094.162V9a3 3 0 0 0-3-3h-3.879a.75.75 0 0 1-.53-.22L11.47 3.66A2.25 2.25 0 0 0 9.879 3H6a3 3 0 0 0-3 3v3.162A3.756 3.756 0 0 1 4.094 9h15.812ZM4.094 10.5a2.25 2.25 0 0 0-2.227 2.568l.857 6A2.25 2.25 0 0 0 4.951 21H19.05a2.25 2.25 0 0 0 2.227-1.932l.857-6a2.25 2.25 0 0 0-2.227-2.568H4.094Z"
|
|
1009
1009
|
}));
|
|
1010
1010
|
}
|
|
1011
|
-
const
|
|
1012
|
-
function
|
|
1011
|
+
const Pr = /* @__PURE__ */ f.forwardRef(Lr);
|
|
1012
|
+
function Or({
|
|
1013
1013
|
title: e,
|
|
1014
1014
|
titleId: t,
|
|
1015
1015
|
...n
|
|
@@ -1030,7 +1030,7 @@ function Pr({
|
|
|
1030
1030
|
clipRule: "evenodd"
|
|
1031
1031
|
}));
|
|
1032
1032
|
}
|
|
1033
|
-
const qr = /* @__PURE__ */ f.forwardRef(
|
|
1033
|
+
const qr = /* @__PURE__ */ f.forwardRef(Or);
|
|
1034
1034
|
function Cr({
|
|
1035
1035
|
title: e,
|
|
1036
1036
|
titleId: t,
|
|
@@ -1062,7 +1062,7 @@ const Fr = /* @__PURE__ */ f.forwardRef(Cr), Mr = Object.freeze({
|
|
|
1062
1062
|
removeRootIndent: gr,
|
|
1063
1063
|
lines: Fr,
|
|
1064
1064
|
expandIcons: br,
|
|
1065
|
-
directoryIcons:
|
|
1065
|
+
directoryIcons: Pr,
|
|
1066
1066
|
fileIcons: Nr
|
|
1067
1067
|
}), mt = (e, t) => {
|
|
1068
1068
|
const n = e[t.labelKey];
|
|
@@ -1095,7 +1095,7 @@ const Fr = /* @__PURE__ */ f.forwardRef(Cr), Mr = Object.freeze({
|
|
|
1095
1095
|
u.preventDefault(), s(n.length - 1);
|
|
1096
1096
|
break;
|
|
1097
1097
|
case "Escape":
|
|
1098
|
-
|
|
1098
|
+
Oe(u), o();
|
|
1099
1099
|
break;
|
|
1100
1100
|
case "Tab":
|
|
1101
1101
|
o();
|
|
@@ -1105,7 +1105,7 @@ const Fr = /* @__PURE__ */ f.forwardRef(Cr), Mr = Object.freeze({
|
|
|
1105
1105
|
[n.length, s, o]
|
|
1106
1106
|
);
|
|
1107
1107
|
return /* @__PURE__ */ m("div", { ref: c, id: e, role: "menu", "aria-label": l.treeSettings, className: "aqmx-explorer-menu", "data-testid": "markdown-explorer-tree-settings-menu", children: n.map((u, i) => {
|
|
1108
|
-
const p = Mr[u.key], h = mt(l, u), g = tt(l, t, u.key), v = t[u.key],
|
|
1108
|
+
const p = Mr[u.key], h = mt(l, u), g = tt(l, t, u.key), v = t[u.key], P = typeof v == "boolean" ? { role: "menuitemcheckbox", "aria-checked": v, "aria-label": h } : { role: "menuitem", "aria-label": `${h}: ${g}` };
|
|
1109
1109
|
return /* @__PURE__ */ L(
|
|
1110
1110
|
"button",
|
|
1111
1111
|
{
|
|
@@ -1114,7 +1114,7 @@ const Fr = /* @__PURE__ */ f.forwardRef(Cr), Mr = Object.freeze({
|
|
|
1114
1114
|
},
|
|
1115
1115
|
type: "button",
|
|
1116
1116
|
tabIndex: -1,
|
|
1117
|
-
...
|
|
1117
|
+
...P,
|
|
1118
1118
|
title: `${h}: ${g}`,
|
|
1119
1119
|
className: "aqmx-explorer-menu-item",
|
|
1120
1120
|
"data-testid": "markdown-explorer-tree-settings-item",
|
|
@@ -1150,7 +1150,7 @@ const Fr = /* @__PURE__ */ f.forwardRef(Cr), Mr = Object.freeze({
|
|
|
1150
1150
|
);
|
|
1151
1151
|
const p = w(
|
|
1152
1152
|
(g) => {
|
|
1153
|
-
g.key !== "Escape" || !c || (
|
|
1153
|
+
g.key !== "Escape" || !c || (Oe(g), i());
|
|
1154
1154
|
},
|
|
1155
1155
|
[c, i]
|
|
1156
1156
|
), h = w(
|
|
@@ -1184,18 +1184,18 @@ const Fr = /* @__PURE__ */ f.forwardRef(Cr), Mr = Object.freeze({
|
|
|
1184
1184
|
const { treeSettings: e } = $();
|
|
1185
1185
|
return { settings: Ce(e.subscribe, e.getSnapshot, e.getServerSnapshot), advance: e.advance };
|
|
1186
1186
|
}, Xe = /* @__PURE__ */ new Set(), Hr = '[role="tree"] [role="treeitem"][tabindex="0"]', $r = "[data-directory-tree-tab-stop]", ca = (e) => {
|
|
1187
|
-
const { mode: t, sourceId: n, currentPath: r, openPaths: o, onOpenDocument: c, onSourceChange: l, onRevealSource: a, viewSwitch: s } = e, { labels: d, sources: u, trees: i, documents: p, announcer: h, reveals: g } = $(), { settings: v, advance:
|
|
1187
|
+
const { mode: t, sourceId: n, currentPath: r, openPaths: o, onOpenDocument: c, onSourceChange: l, onRevealSource: a, viewSwitch: s } = e, { labels: d, sources: u, trees: i, documents: p, announcer: h, reveals: g } = $(), { settings: v, advance: P } = Dr(), A = C(() => It(t === "tree"), [t]), q = t === "tree" && v.selectionMode === "multiple";
|
|
1188
1188
|
cr(q);
|
|
1189
1189
|
const y = e.mode === "tree" ? e.tray.onGatheredChange : null, Z = e.mode === "tree" ? e.onOpenSelection : void 0, N = e.mode === "tree" ? e.onOpenFolder : null, R = e.mode === "tree" && e.currentFolder, k = C(() => N === null ? null : { current: r, open: N }, [N, r]), S = e.mode === "tree" && q ? e.tray.gathered : Ae, b = w(
|
|
1190
|
-
(
|
|
1191
|
-
const I = O
|
|
1190
|
+
(O) => {
|
|
1191
|
+
const I = P(O);
|
|
1192
1192
|
return I.selectionMode !== "multiple" && y?.(Ae), I;
|
|
1193
1193
|
},
|
|
1194
|
-
[
|
|
1195
|
-
), _ = Ir({ settings: v, descriptors: A, onAdvance: b }), B = w((
|
|
1196
|
-
const
|
|
1197
|
-
if (
|
|
1198
|
-
[Hr, $r, '[data-testid="markdown-explorer-tree-settings"]'].map((V) =>
|
|
1194
|
+
[P, y]
|
|
1195
|
+
), _ = Ir({ settings: v, descriptors: A, onAdvance: b }), B = w((O) => y?.((I) => or(I, O)), [y]), ie = w((O) => y?.((I) => sr(I, O)), [y]), re = w(() => y?.(Ae), [y]), K = E(null), U = w(() => {
|
|
1196
|
+
const O = K.current;
|
|
1197
|
+
if (O === null) return;
|
|
1198
|
+
[Hr, $r, '[data-testid="markdown-explorer-tree-settings"]'].map((V) => O.querySelector(V)).find((V) => V !== null)?.focus();
|
|
1199
1199
|
}, []), ae = C(() => new Set(S.keys()), [S]), z = C(() => r === null ? Xe : /* @__PURE__ */ new Set([r]), [r]), Q = C(() => {
|
|
1200
1200
|
if (t === "multi") return { mode: "multiple", items: o, shownPath: null, onChange: null };
|
|
1201
1201
|
switch (v.selectionMode) {
|
|
@@ -1207,27 +1207,27 @@ const Fr = /* @__PURE__ */ f.forwardRef(Cr), Mr = Object.freeze({
|
|
|
1207
1207
|
return { mode: "none", items: Xe, shownPath: null, onChange: null };
|
|
1208
1208
|
}
|
|
1209
1209
|
}, [t, o, v.selectionMode, z, r, ae, B]), J = C(() => v.revealDocument ? { path: r, openFolders: !R } : { path: Q.shownPath, openFolders: !1 }, [v.revealDocument, r, R, Q.shownPath]), ee = w(
|
|
1210
|
-
(
|
|
1211
|
-
r !== null && g.settle(r), l(
|
|
1210
|
+
(O) => {
|
|
1211
|
+
r !== null && g.settle(r), l(O);
|
|
1212
1212
|
},
|
|
1213
1213
|
[r, g, l]
|
|
1214
|
-
), [M, le] = F(null), [de, he] = F(!1), [oe,
|
|
1214
|
+
), [M, le] = F(null), [de, he] = F(!1), [oe, W] = F(null), te = E(!1), we = w(async () => {
|
|
1215
1215
|
if (!te.current) {
|
|
1216
|
-
te.current = !0, he(!0),
|
|
1216
|
+
te.current = !0, he(!0), W(null);
|
|
1217
1217
|
try {
|
|
1218
|
-
const
|
|
1219
|
-
if (
|
|
1220
|
-
p.invalidate(),
|
|
1218
|
+
const O = await i.refresh(n);
|
|
1219
|
+
if (O.status === "superseded") return;
|
|
1220
|
+
p.invalidate(), O.status === "failed" ? W({ sourceId: n, failure: O.failure }) : h.announce(d.treeRefreshed);
|
|
1221
1221
|
} finally {
|
|
1222
1222
|
te.current = !1, he(!1);
|
|
1223
1223
|
}
|
|
1224
1224
|
}
|
|
1225
|
-
}, [i, p, n, h, d]), ue = M === null ? null : M.expandAll, me = M?.expanding === !0, xe = u.find((
|
|
1225
|
+
}, [i, p, n, h, d]), ue = M === null ? null : M.expandAll, me = M?.expanding === !0, xe = u.find((O) => O.id === n), se = s.target === "multi" ? sn : ln, G = s.target === "multi" ? d.switchToMulti : d.switchToTree;
|
|
1226
1226
|
return /* @__PURE__ */ L("nav", { ref: K, "aria-label": d.explorerRegion, className: "aqmx-explorer", "data-testid": "markdown-explorer-explorer", "data-aqmx-mode": t, children: [
|
|
1227
1227
|
/* @__PURE__ */ L("div", { className: "aqmx-explorer-header", children: [
|
|
1228
|
-
u.length > 1 ? /* @__PURE__ */ m("select", { className: "aqmx-explorer-source", "aria-label": d.sourceLabel, title: xe?.label, value: n, onChange: (
|
|
1228
|
+
u.length > 1 ? /* @__PURE__ */ m("select", { className: "aqmx-explorer-source", "aria-label": d.sourceLabel, title: xe?.label, value: n, onChange: (O) => ee(O.currentTarget.value), "data-testid": "markdown-explorer-source-select", children: u.map((O) => /* @__PURE__ */ m("option", { value: O.id, children: O.label }, O.id)) }) : null,
|
|
1229
1229
|
/* @__PURE__ */ L("div", { className: "aqmx-explorer-actions", children: [
|
|
1230
|
-
/* @__PURE__ */ m(
|
|
1230
|
+
/* @__PURE__ */ m(Pt, { to: s.href, navigation: "switch-view", className: "aqmx-icon-button", "aria-label": G, title: G, "data-testid": "markdown-explorer-view-switch", "data-aqmx-target": s.target, children: /* @__PURE__ */ m(se, { "aria-hidden": "true" }) }),
|
|
1231
1231
|
/* @__PURE__ */ L(
|
|
1232
1232
|
"button",
|
|
1233
1233
|
{
|
|
@@ -1242,7 +1242,7 @@ const Fr = /* @__PURE__ */ f.forwardRef(Cr), Mr = Object.freeze({
|
|
|
1242
1242
|
we();
|
|
1243
1243
|
},
|
|
1244
1244
|
children: [
|
|
1245
|
-
/* @__PURE__ */ m(
|
|
1245
|
+
/* @__PURE__ */ m(Pe, { "aria-hidden": "true" }),
|
|
1246
1246
|
/* @__PURE__ */ m("span", { children: d.refreshTreeLabel })
|
|
1247
1247
|
]
|
|
1248
1248
|
}
|
|
@@ -1267,7 +1267,7 @@ const Fr = /* @__PURE__ */ f.forwardRef(Cr), Mr = Object.freeze({
|
|
|
1267
1267
|
] })
|
|
1268
1268
|
] }),
|
|
1269
1269
|
/* @__PURE__ */ L("div", { className: "aqmx-explorer-body", "data-aqmx-explorer-body": "", children: [
|
|
1270
|
-
oe !== null && oe.sourceId === n ? /* @__PURE__ */ m("p", { role: "alert", className: "aqmx-explorer-refresh-failure", "data-testid": "markdown-explorer-refresh-failure", "data-aqmx-failure": oe.failure.reason, children: d.treeRefreshFailed(
|
|
1270
|
+
oe !== null && oe.sourceId === n ? /* @__PURE__ */ m("p", { role: "alert", className: "aqmx-explorer-refresh-failure", "data-testid": "markdown-explorer-refresh-failure", "data-aqmx-failure": oe.failure.reason, children: d.treeRefreshFailed(Ot(d, oe.failure.reason)) }) : null,
|
|
1271
1271
|
/* @__PURE__ */ m(et, { fallback: null, children: /* @__PURE__ */ m(cn, {}) }),
|
|
1272
1272
|
/* @__PURE__ */ m(rr, { mode: t, sourceId: n, settings: v, reveal: J, openPaths: o, selection: Q, onOpenDocument: c, folders: k, onRevealSource: a, onControls: le }, n),
|
|
1273
1273
|
q && S.size > 0 ? /* @__PURE__ */ m(lr, { selection: S, onRemove: ie, onClear: re, onOpenSelection: Z, onLeave: U }) : null,
|
|
@@ -1301,13 +1301,13 @@ const Br = /* @__PURE__ */ f.forwardRef(Zr), zr = ({ explorer: e, toggleRef: t,
|
|
|
1301
1301
|
u.navigated !== l && (i({ navigated: l, source: a.source }), u.source === a.source && !p && d(!1));
|
|
1302
1302
|
const [g, v] = F(o);
|
|
1303
1303
|
g !== o && (v(o), d(!1));
|
|
1304
|
-
const
|
|
1304
|
+
const P = E(null), A = E(null), q = E(null), y = E(!1), Z = Re();
|
|
1305
1305
|
H(() => {
|
|
1306
|
-
const b =
|
|
1306
|
+
const b = P.current;
|
|
1307
1307
|
b !== null && (s && !b.open ? (b.showModal(), A.current?.focus()) : !s && b.open && (b.close(), t.current?.focus()), r(s ? q.current : null));
|
|
1308
1308
|
}, [s, t, r]), H(() => () => r(null), [r]);
|
|
1309
1309
|
const N = w((b) => {
|
|
1310
|
-
b.key !== "Escape" || b.defaultPrevented || (
|
|
1310
|
+
b.key !== "Escape" || b.defaultPrevented || (Oe(b), d(!1));
|
|
1311
1311
|
}, []), R = w((b) => {
|
|
1312
1312
|
y.current = b.target === b.currentTarget;
|
|
1313
1313
|
}, []), k = w((b) => {
|
|
@@ -1321,7 +1321,7 @@ const Br = /* @__PURE__ */ f.forwardRef(Zr), zr = ({ explorer: e, toggleRef: t,
|
|
|
1321
1321
|
/* @__PURE__ */ m(Br, { "aria-hidden": "true" }),
|
|
1322
1322
|
/* @__PURE__ */ m("span", { children: c.showExplorer })
|
|
1323
1323
|
] }) }),
|
|
1324
|
-
/* @__PURE__ */ m("dialog", { ref:
|
|
1324
|
+
/* @__PURE__ */ m("dialog", { ref: P, id: Z, className: "aqmx-sheet", "aria-label": c.explorerRegion, "data-testid": "markdown-explorer-sheet", onKeyDown: N, onPointerDown: R, onClick: k, onClose: S, children: /* @__PURE__ */ L("div", { className: "aqmx-sheet-panel", children: [
|
|
1325
1325
|
/* @__PURE__ */ L("div", { className: "aqmx-sheet-header", children: [
|
|
1326
1326
|
/* @__PURE__ */ m("div", { ref: q, className: "aqmx-sheet-notice-slot" }),
|
|
1327
1327
|
/* @__PURE__ */ m("button", { ref: A, type: "button", className: "aqmx-sheet-close", "aria-label": c.hideExplorer, title: c.hideExplorer, "data-testid": "markdown-explorer-sheet-close", onClick: () => d(!1), children: /* @__PURE__ */ m(dt, { "aria-hidden": "true" }) })
|
|
@@ -1330,13 +1330,13 @@ const Br = /* @__PURE__ */ f.forwardRef(Zr), zr = ({ explorer: e, toggleRef: t,
|
|
|
1330
1330
|
/* @__PURE__ */ m(Ct, { holds: s, testId: "markdown-explorer-sheet-announcer" })
|
|
1331
1331
|
] }) })
|
|
1332
1332
|
] });
|
|
1333
|
-
}, Vr = qe(null), Me = "aqmx-explorer", ft = "aqmx-content", jr = "--aqmx-split-band", _e = '[role="tree"] [role="treeitem"]', Kr = `${_e}[tabindex="0"]`, Ur = "[data-directory-tree-tab-stop]",
|
|
1333
|
+
}, Vr = qe(null), Me = "aqmx-explorer", ft = "aqmx-content", jr = "--aqmx-split-band", _e = '[role="tree"] [role="treeitem"]', Kr = `${_e}[tabindex="0"]`, Ur = "[data-directory-tree-tab-stop]", Wr = (e, t) => {
|
|
1334
1334
|
for (const n of e.querySelectorAll(`[data-panel-id="${Me}"] ${_e}`)) if (n.getAttribute(ce) === t) return n;
|
|
1335
1335
|
return null;
|
|
1336
1336
|
}, Ye = (e, t) => ({
|
|
1337
1337
|
inlineSize: e > 0 ? e : null,
|
|
1338
1338
|
rootFontPixels: t > 0 ? t : Vt
|
|
1339
|
-
}),
|
|
1339
|
+
}), Gr = (e, t) => {
|
|
1340
1340
|
const [n, r] = F(() => Ye(0, 0));
|
|
1341
1341
|
return H(() => {
|
|
1342
1342
|
const o = e.current, c = t.current;
|
|
@@ -1397,7 +1397,7 @@ const Br = /* @__PURE__ */ f.forwardRef(Zr), zr = ({ explorer: e, toggleRef: t,
|
|
|
1397
1397
|
if (a.current !== e || !o.current) return;
|
|
1398
1398
|
const u = c.current, i = `[data-panel-id="${Me}"]`;
|
|
1399
1399
|
d([
|
|
1400
|
-
u === null ? null :
|
|
1400
|
+
u === null ? null : Wr(s, u),
|
|
1401
1401
|
s.querySelector(`${i} ${Kr}`),
|
|
1402
1402
|
s.querySelector(`${i} ${Ur}`),
|
|
1403
1403
|
s.querySelector(`[data-resize-handle-id="${r}"]`)
|
|
@@ -1405,7 +1405,7 @@ const Br = /* @__PURE__ */ f.forwardRef(Zr), zr = ({ explorer: e, toggleRef: t,
|
|
|
1405
1405
|
});
|
|
1406
1406
|
}, [e, t, n, r]);
|
|
1407
1407
|
}, ia = ({ view: e, explorer: t, content: n, contentCoversPage: r = !1, sheetDismissals: o = 0, onDraggingChange: c }) => {
|
|
1408
|
-
const l = E(null), [a, s] = F(null), d = E(null), u = E(null), { inlineSize: i, rootFontPixels: p } =
|
|
1408
|
+
const l = E(null), [a, s] = F(null), d = E(null), u = E(null), { inlineSize: i, rootFontPixels: p } = Gr(l, d), h = i !== null && i < Dt(p);
|
|
1409
1409
|
return Xr(h, { frameRef: l, sheetToggleRef: u, handleId: pt(e) }), /* @__PURE__ */ L("div", { ref: l, className: "aqmx-split-frame", "data-aqmx-explorer-mode": h ? "sheet" : "split", children: [
|
|
1410
1410
|
/* @__PURE__ */ m("span", { ref: d, className: "aqmx-rem-probe", "aria-hidden": "true", "data-aqmx-rem-probe": "" }),
|
|
1411
1411
|
h ? /* @__PURE__ */ m(zr, { explorer: t, toggleRef: u, covered: r, onNoticeSlotChange: s, dismissals: o }) : null,
|
|
@@ -1454,7 +1454,7 @@ const Br = /* @__PURE__ */ f.forwardRef(Zr), zr = ({ explorer: e, toggleRef: t,
|
|
|
1454
1454
|
},
|
|
1455
1455
|
[c, v]
|
|
1456
1456
|
);
|
|
1457
|
-
return /* @__PURE__ */ L(
|
|
1457
|
+
return /* @__PURE__ */ L(Gt, { id: `aqmx-split-${e}`, direction: "horizontal", onLayout: y, className: "aqmx-split", style: q, "data-aqmx-split": e, children: [
|
|
1458
1458
|
t ? null : /* @__PURE__ */ m(
|
|
1459
1459
|
je,
|
|
1460
1460
|
{
|