@aiquants/markdown-explorer 0.7.0 → 0.7.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/CHANGELOG.md +6 -0
- package/README.md +1 -0
- package/dist/{EditSurface-BZ98L7hy.cjs → EditSurface-5nbW7NTP.cjs} +1 -1
- package/dist/{EditSurface-BCB-0vUK.js → EditSurface-CaS1O6Nt.js} +1 -1
- package/dist/{ExplorerSplit-DpoMtzq3.js → ExplorerSplit-C9Y02nvj.js} +1 -1
- package/dist/{ExplorerSplit-BTRTah7R.cjs → ExplorerSplit-D60N3_X7.cjs} +1 -1
- package/dist/{MultiLayout-B7OiXgWH.cjs → MultiLayout-CqTyFZ_i.cjs} +1 -1
- package/dist/{MultiLayout-BD2LiwOe.js → MultiLayout-DBpUTcCQ.js} +2 -2
- package/dist/{NativeScrollBar-EXOKhHP4.js → NativeScrollBar-CiVlg2ob.js} +1 -1
- package/dist/{NativeScrollBar-B4j3Vigb.cjs → NativeScrollBar-QlOtnddZ.cjs} +1 -1
- package/dist/{TreeLayout-hn2bfU22.js → TreeLayout-bk-Ziybl.js} +2 -2
- package/dist/{TreeLayout-B9dF2A3h.cjs → TreeLayout-uwvAgr-t.cjs} +1 -1
- package/dist/{index-CCc6qUbM.cjs → index-Dlkzr6Zn.cjs} +12 -4
- package/dist/{index-C0gh_dRY.js → index-etFEpIE_.js} +551 -540
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{merge-0W6xtIxj.cjs → merge-BR4jKpIc.cjs} +1 -1
- package/dist/{merge-Bi41vtSe.js → merge-DfI0ro2L.js} +1 -1
- package/package.json +1 -1
|
@@ -2,8 +2,8 @@ import { jsx as u, jsxs as D } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState as T, useMemo as m, useCallback as i } from "react";
|
|
3
3
|
import { useLocation as b } from "react-router";
|
|
4
4
|
import { e as c, c as C } from "./location-Q4sgRrUm.js";
|
|
5
|
-
import { u as M, a as N, b as O, D as R, P as _, c as G } from "./index-
|
|
6
|
-
import { E as H, a as L, b as j } from "./ExplorerSplit-
|
|
5
|
+
import { u as M, a as N, b as O, D as R, P as _, c as G } from "./index-etFEpIE_.js";
|
|
6
|
+
import { E as H, a as L, b as j } from "./ExplorerSplit-C9Y02nvj.js";
|
|
7
7
|
const q = /* @__PURE__ */ new Set(), U = ({ location: l }) => {
|
|
8
8
|
const { config: o } = M(), r = N(), { hash: p } = b(), { source: n, doc: e, overrides: s, markup: t } = l, [h, v] = T(H), w = m(() => ({ gathered: h, onGatheredChange: v }), [h]), g = i((a) => r(c(o, { view: "tree", source: n, doc: a, overrides: s }), "browse"), [r, o, n, s]), S = i((a) => r(c(o, { view: "tree", source: a, doc: e, overrides: s, markup: t }), "switch-source"), [r, o, e, s, t]), E = i((a) => r(`${c(o, { view: "tree", source: a, doc: e, overrides: s, markup: t })}${p}`, "browse"), [r, o, e, s, t, p]), x = i(
|
|
9
9
|
(a) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),s=require("react"),T=require("react-router"),a=require("./location-DmzVAFvo.cjs"),l=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),s=require("react"),T=require("react-router"),a=require("./location-DmzVAFvo.cjs"),l=require("./index-Dlkzr6Zn.cjs"),p=require("./ExplorerSplit-D60N3_X7.cjs"),q=new Set,C=({location:m})=>{const{config:r}=l.useExplorer(),t=l.useExplorerNavigate(),{hash:d}=T.useLocation(),{source:n,doc:e,overrides:c,markup:o}=m,[x,v]=s.useState(p.EMPTY_SELECTION),g=s.useMemo(()=>({gathered:x,onGatheredChange:v}),[x]),w=s.useCallback(u=>t(a.explorerHref(r,{view:"tree",source:n,doc:u,overrides:c}),"browse"),[t,r,n,c]),S=s.useCallback(u=>t(a.explorerHref(r,{view:"tree",source:u,doc:e,overrides:c,markup:o}),"switch-source"),[t,r,e,c,o]),E=s.useCallback(u=>t(`${a.explorerHref(r,{view:"tree",source:u,doc:e,overrides:c,markup:o})}${d}`,"browse"),[t,r,e,c,o,d]),k=s.useCallback(u=>{const h=a.canonicalMultiDocuments(r,u);t(a.explorerHref(r,{view:"multi",source:n,docs:h,markup:o&&e!==null&&h.includes(e)?[e]:[]}),"switch-view")},[t,r,n,e,o]),b=s.useMemo(()=>({href:a.explorerHref(r,e===null?{view:"multi",source:n}:{view:"multi",source:n,docs:[e],markup:o?[e]:[]}),target:"multi"}),[r,n,e,o]),f=s.useMemo(()=>({kind:"page",view:"tree",overrides:c,embed:{}}),[c]),P=l.usePageMarkupToggle(m);return i.jsx(p.ExplorerSplit,{view:"tree",explorer:i.jsx(p.ExplorerPane,{mode:"tree",sourceId:n,currentPath:e,openPaths:q,onOpenDocument:w,onSourceChange:S,onRevealSource:E,viewSwitch:b,tray:g,onOpenSelection:k}),content:i.jsxs("div",{className:"aqmx-document-column aqmx-tree-document",children:[e===null?null:i.jsx(l.DocumentRefreshBar,{path:e,placement:l.PAGE_DOCUMENT_REFRESH,markup:P}),i.jsx(l.DocumentPane,{path:e,markup:o,variant:f})]})})};exports.TreeLayout=C;
|