@aiquants/markdown-explorer 0.22.0 → 0.23.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 (46) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/README.md +16 -10
  3. package/dist/{EditSurface-BesNcSQj.cjs → EditSurface-Bk4tdJ99.cjs} +1 -1
  4. package/dist/{EditSurface-DNjI8pV3.js → EditSurface-Dhvw9IDD.js} +5 -5
  5. package/dist/{ExplorerSplit-B4oNvydP.cjs → ExplorerSplit-BAFiXU-V.cjs} +1 -1
  6. package/dist/{ExplorerSplit-GUdzpDPg.js → ExplorerSplit-Q5VqUBDE.js} +3 -3
  7. package/dist/{MultiLayout-DtKChQ_s.cjs → MultiLayout-Bq_TS3ez.cjs} +1 -1
  8. package/dist/{MultiLayout-BJ-s6AaD.js → MultiLayout-DlATT7km.js} +22 -22
  9. package/dist/{NativeScrollBar-DJKlPWvD.cjs → NativeScrollBar-A6-qEpz7.cjs} +1 -1
  10. package/dist/{NativeScrollBar-D10fsk-7.js → NativeScrollBar-TsIcS3JZ.js} +1 -1
  11. package/dist/{TreeLayout-C1mTmoPp.cjs → TreeLayout-l-r2pPao.cjs} +1 -1
  12. package/dist/{TreeLayout-DQT5p2vI.js → TreeLayout-zrSo4MNZ.js} +3 -3
  13. package/dist/core/contracts.d.cts +7 -0
  14. package/dist/core/contracts.d.ts +7 -0
  15. package/dist/core/labels.d.cts +12 -0
  16. package/dist/core/labels.d.ts +12 -0
  17. package/dist/{dataRoute-CObbjNxG.js → dataRoute-Diu_7gle.js} +84 -83
  18. package/dist/dataRoute-vXGZMVB-.cjs +1 -0
  19. package/dist/index-BNFl3BsO.cjs +13 -0
  20. package/dist/{index-0pnuyLUO.js → index-Jz6zeO4O.js} +876 -835
  21. package/dist/index.cjs +1 -1
  22. package/dist/index.d.cts +1 -1
  23. package/dist/index.d.ts +1 -1
  24. package/dist/index.js +9 -9
  25. package/dist/{location-B-m9scLf.js → location-8Ho8ZNv_.js} +1 -1
  26. package/dist/{location-BVEN_Ihk.cjs → location-DN0AI4ir.cjs} +1 -1
  27. package/dist/{merge-DauzoA2W.js → merge-BzMpSaxx.js} +1 -1
  28. package/dist/{merge-CTkzzHtn.cjs → merge-DlPkU2Jc.cjs} +1 -1
  29. package/dist/{sanitizePolicy-BWQtWhsL.js → sanitizePolicy-BvhYIqVO.js} +1 -1
  30. package/dist/{sanitizePolicy-gEXeavb-.cjs → sanitizePolicy-Du3lFZd-.cjs} +1 -1
  31. package/dist/sanitizeWorker.cjs +1 -1
  32. package/dist/sanitizeWorker.js +1 -1
  33. package/dist/server/ports.d.cts +2 -1
  34. package/dist/server/ports.d.ts +2 -1
  35. package/dist/server.cjs +1 -1
  36. package/dist/server.js +524 -521
  37. package/dist/{useSplitPersistence-Ba-v64n-.cjs → useSplitPersistence-CR4Oxtaa.cjs} +1 -1
  38. package/dist/{useSplitPersistence-Cc4tDxB4.js → useSplitPersistence-HfAb8Kzh.js} +1 -1
  39. package/docs/behavior/dom-hooks.md +2 -2
  40. package/docs/behavior/layout.md +9 -4
  41. package/docs/behavior/localization.md +4 -3
  42. package/docs/behavior/security.md +1 -1
  43. package/docs/behavior/url-contract.md +2 -2
  44. package/package.json +3 -3
  45. package/dist/dataRoute-BONacTPi.cjs +0 -1
  46. package/dist/index-T98wklgM.cjs +0 -13
@@ -1 +1 @@
1
- "use strict";const e=require("react"),d=require("./location-BVEN_Ihk.cjs"),f="(pointer: coarse)",E=r=>{const n=window.matchMedia(f);return n.addEventListener("change",r),()=>n.removeEventListener("change",r)},S=()=>window.matchMedia(f).matches,m=()=>!1,C=()=>e.useSyncExternalStore(E,S,m),R=r=>{const n=e.useRef(r);e.useLayoutEffect(()=>{n.current=r},[r]);const c=e.useRef(null),t=e.useRef(null),s=e.useRef(!1),u=e.useCallback(()=>{t.current!==null&&clearTimeout(t.current),t.current=setTimeout(()=>{t.current=null,c.current!==null&&n.current(c.current)},d.SPLIT_PERSIST_DELAY_MS)},[]);e.useEffect(()=>()=>{t.current!==null&&clearTimeout(t.current)},[]);const a=e.useCallback((o,l)=>{c.current=o,l.source==="keyboard"?u():l.source==="pointer"&&(s.current=!0)},[u]),i=e.useCallback(o=>{if(o){s.current=!1;return}s.current&&(s.current=!1,u())},[u]);return e.useMemo(()=>({layoutChanged:a,draggingChanged:i}),[a,i])};exports.useCoarsePointer=C;exports.useSplitPersistence=R;
1
+ "use strict";const e=require("react"),d=require("./location-DN0AI4ir.cjs"),f="(pointer: coarse)",E=r=>{const n=window.matchMedia(f);return n.addEventListener("change",r),()=>n.removeEventListener("change",r)},S=()=>window.matchMedia(f).matches,m=()=>!1,C=()=>e.useSyncExternalStore(E,S,m),R=r=>{const n=e.useRef(r);e.useLayoutEffect(()=>{n.current=r},[r]);const c=e.useRef(null),t=e.useRef(null),s=e.useRef(!1),u=e.useCallback(()=>{t.current!==null&&clearTimeout(t.current),t.current=setTimeout(()=>{t.current=null,c.current!==null&&n.current(c.current)},d.SPLIT_PERSIST_DELAY_MS)},[]);e.useEffect(()=>()=>{t.current!==null&&clearTimeout(t.current)},[]);const a=e.useCallback((o,l)=>{c.current=o,l.source==="keyboard"?u():l.source==="pointer"&&(s.current=!0)},[u]),i=e.useCallback(o=>{if(o){s.current=!1;return}s.current&&(s.current=!1,u())},[u]);return e.useMemo(()=>({layoutChanged:a,draggingChanged:i}),[a,i])};exports.useCoarsePointer=C;exports.useSplitPersistence=R;
@@ -1,5 +1,5 @@
1
1
  import { useSyncExternalStore as d, useRef as c, useLayoutEffect as E, useCallback as a, useEffect as S, useMemo as h } from "react";
2
- import { S as y } from "./location-B-m9scLf.js";
2
+ import { S as y } from "./location-8Ho8ZNv_.js";
3
3
  const m = "(pointer: coarse)", C = (e) => {
4
4
  const t = window.matchMedia(m);
5
5
  return t.addEventListener("change", e), () => t.removeEventListener("change", e);
@@ -20,7 +20,7 @@ Tests and host styling may rely on the `data-testid` values and `data-aqmx-*` at
20
20
  | `data-testid="markdown-explorer-single"` | Single view frame | Carries `data-aqmx-content-pane` |
21
21
  | `data-aqmx-content-pane` | The content pane the explorer's dialogs are centered over | The document column of the tree view (the bar and the document region), the single view's frame, the multi view's stage, and a maximized panel's frame (`markdown-explorer-panel-frame`, inside the stage) while it is maximized; a view's loading placeholder while its code loads. The innermost element carrying it is the pane |
22
22
  | `data-testid="markdown-explorer-document-refresh-bar"` | The document refresh bar | In the tree and single views, above the document region (the button at its inline end; absent while the tree view shows no document); in the multi view, the first row of each panel's body, inside the panel's scroll area and pinned (sticky) to its top while the document scrolls under it. Holds the button row (the Source toggle while the document is Markdown, the Edit toggle or the external editor's link when the host offers one, then the Refresh document button) and, below it, the failure notice. While its document is edited it carries `data-aqmx-editing="true"`, and its row holds the editor's status and actions, then the Edit toggle (Source, Refresh document and the refresh notice step aside); a save that needs a grant shows `markdown-explorer-save-grant` below the row |
23
- | `data-testid="markdown-explorer-document-markup"` | The Source toggle, in the bar before Refresh document | Shown only while the bar's document is a loaded Markdown document. A toggle button: `aria-pressed="true"` while the document shows as written (its source), `"false"` while it shows rendered; a press replaces the URL with the document shown the other way (`markup`, see the [URL contract](url-contract.md#shape)), so a reload or a shared link shows it the same way. The page views name it by its visible label (`showMarkupLabel`; tooltip `showMarkup`); a panel's is icon-only, with `aria-label` and `title` set to `showMarkupNamed` (the panel title) |
23
+ | `data-testid="markdown-explorer-document-markup"` | The Source toggle, in the bar before Refresh document | Shown only while the bar's document is a loaded Markdown document or SVG image (`imageType` `svg`; a raster image has none). A toggle button: `aria-pressed="true"` while the document shows as written (its source, an SVG image's own SVG), `"false"` while it shows rendered; a press replaces the URL with the document shown the other way (`markup`, see the [URL contract](url-contract.md#shape)), so a reload or a shared link shows it the same way. The page views name it by its visible label (`showMarkupLabel`; tooltip `showMarkup`, or `showSvgMarkup` for an SVG image); a panel's is icon-only, with `aria-label` and `title` set to `showMarkupNamed` (the panel title) |
24
24
  | `data-testid="markdown-explorer-document-edit"` | The Edit toggle, in the bar between Source and Refresh document | Shown while the document is a loaded Markdown document whose `edit` is `inline` or `draft`, and while it is edited. A toggle button: `aria-pressed="true"` while the document is edited (its `title` is then `closeEditor`). The page views name it by its visible label (`editDocumentLabel`; tooltip `editDocument`, or `editDraftDocument` for a `draft` edit); a panel's is icon-only, named `editDocumentNamed` (`editDraftDocumentNamed` for a `draft` edit, with the panel title). The same element before and after a press |
25
25
  | `data-testid="markdown-explorer-document-edit-external"` | Link to the document's own editor (a new tab), in place of the Edit toggle | For an `edit` of kind `external`: `href` is the host's `https:` address, with `target="_blank"` and `rel="noopener noreferrer"`; named `editExternallyLabel` in the page views and `editExternallyNamed` in a panel |
26
26
  | `data-testid="markdown-explorer-edit-status"` | The editor's status, first in the bar's row while the document is edited | One line, ellipsed, with the whole text as its `title`; carries `data-aqmx-save` (`idle`, `saving`, `saved`, `conflicts`, `grant`, `failed`, or `draft` for a session that never saves, whose status is `draftStatus`). No live role: the announcer speaks each save's outcome |
@@ -69,7 +69,7 @@ The tree's stand-in Tab stop, present while the tab-stop row is outside the tree
69
69
 
70
70
  | Hook | Element | Meaning |
71
71
  | --- | --- | --- |
72
- | `data-testid="markdown-explorer-document"` | Document region (`role="region"`) | Carries `data-aqmx-document-kind`: `empty`, `loading`, `markdown`, `text`, `image`, `media`, `file` or `failure`. A Markdown document's region also carries `data-aqmx-document-view`: `rendered`, `markup` while it shows as written (the Source toggle), or `edit` while the reader edits it (the region then fills a maximized panel too). Named by `documentRegion` in the tree and single views, and in a multi-view panel by the document's name (the last segment of its path before it loads and for a failure). Not focusable: after a click in a document's text, PageDown, the arrow keys, Space, Home and End scroll the document |
72
+ | `data-testid="markdown-explorer-document"` | Document region (`role="region"`) | Carries `data-aqmx-document-kind`: `empty`, `loading`, `markdown`, `text`, `image`, `media`, `file` or `failure`. A Markdown document's or an SVG image's region also carries `data-aqmx-document-view`: `rendered`, `markup` while it shows as written (the Source toggle; an SVG image's region then holds the text view, its kind staying `image`), or `edit` while the reader edits a Markdown document (the region then fills a maximized panel too). A raster image's region carries none. Named by `documentRegion` in the tree and single views, and in a multi-view panel by the document's name (the last segment of its path before it loads and for a failure). Not focusable: after a click in a document's text, PageDown, the arrow keys, Space, Home and End scroll the document |
73
73
  | `data-testid="markdown-explorer-document-empty"` | No document selected | |
74
74
  | `data-testid="markdown-explorer-folder-empty"` | The tree view's folder without a README | The region carries `data-aqmx-document-kind="empty"`; a page view announces the text (`folderReadmeMissing`) once for each folder shown |
75
75
  | `data-testid="markdown-explorer-folder-failure"` | Failure to list the tree view's folder, or to load the tree it lies in | Carries `data-aqmx-failure` (the reason; `not-found` for no such folder); its callout has no role: the announcer speaks the failure (`documentFailed`, with the folder's name), once for each failed attempt. A `failed` listing offers Try again (`retry`) |
@@ -184,13 +184,18 @@ Documents in the multi-panel view sit in `multiView.columns` logical columns (4
184
184
  The region itself never takes focus, and focus outside the region, focus that was never in it, and focus the reader moved away from it are never taken. The reader moves it away by moving it to an element or into a frame outside the region, or by pressing anywhere outside the region — whenever the press happens, also after the focus had already fallen to the page, and whether or not the press moves the focus — unless the focus stays inside the region (a press whose default action the page prevented).
185
185
  Focus that fell from the region to the page while the reader stayed with it (a press on the document's text, the browser's own fragment navigation, the focused content removed, the window losing the focus to another window or application) counts as inside.
186
186
  So does focus in a frame inside the region (a PDF document's frame, an embedded frame of `iframeHosts`), also when it entered the frame straight from outside the region (a click from the tree, Tab), and a press outside the region moves it away from there as well.
187
- - **Source of a Markdown document.** While the bar's document is a loaded Markdown document, the bar's button row holds a Source toggle before Refresh document: a toggle button (`aria-pressed`) labelled like its neighbour — visible text beside a page view's pane (`showMarkupLabel`, «Source» / 「ソース」, its accessible name; its tooltip is `showMarkup`), icon-only in a panel and named after the panel's document (`showMarkupNamed`, «Source of a.md» / 「a.md のソース」).
188
- An image, media, text or file document and a failure show no toggle, and neither does a document still loading, which gets it once it is there.
187
+ - **Source of a Markdown document or an SVG image.** While the bar's document is a loaded Markdown document or SVG image (an image document whose `imageType` is `svg`), the bar's button row holds a Source toggle before Refresh document: a toggle button (`aria-pressed`) labelled like its neighbour — visible text beside a page view's pane (`showMarkupLabel`, «Source» / 「ソース」, its accessible name; its tooltip is `showMarkup`, or `showSvgMarkup` for an SVG image, «Show the image's SVG as written» / 「画像の SVG を書いたまま表示」),
188
+ icon-only in a panel and named after the panel's document (`showMarkupNamed`, «Source of a.md» / 「a.md のソース」).
189
+ A raster image, a media, text or file document and a failure show no toggle, and neither does a document still loading, which gets it once it is there.
189
190
  Pressing it shows the document as written instead of rendered, in place and without moving the focus from the toggle: the pane reads the document's file through the data route's `text` operation (only once the toggle is pressed) and shows the text the way it shows a text file — the file header with Copy the text, Open (the whole file as plain text in a new tab) and Download, the note `textTruncated` when the server cut the file at its `textMaxBytes`, and the text, which wraps and is never interpreted.
190
191
  Copy the text (an icon button, `copyText`) puts the text on the clipboard exactly as read, line endings included, and is offered only for a text read whole, so a cut file is never copied in part (Download fetches it whole). The outcome is announced (`copiedText`, or `copyTextFailed` when the browser has no asynchronous clipboard — an insecure origin — or refuses the write) and shown for 2 seconds by the button's icon and tooltip, while its accessible name stays the same; a second press counts the 2 seconds again. The same button heads every text file.
191
192
  Until the first answer the region shows a skeleton (`markupLoading` for screen readers); a failure shows the failure callout, with Try again for a `failed` read, and is announced once (`documentFailed`), like a document's.
192
- Every new answer for the document — Refresh document, Refresh tree, a background revalidation — reads the text again, the previous text staying on screen meanwhile. The next press shows the document rendered again.
193
- The choice is part of the URL (`markup`, see the [URL contract](url-contract.md#shape)), written by replacing the entry: a reload, a shared link and Back and Forward show the document the same way, and the switches between the tree and multi views carry it for the document they open. It belongs to that document only: another document opens rendered, and the document still shown while the next one loads keeps the way it showed. The region tells which way a Markdown document shows with `data-aqmx-document-view` (`rendered` / `markup`).
193
+ Every new answer for the document — Refresh document, Refresh tree, a background revalidation — reads the text again, the previous text staying on screen meanwhile. The next press shows the document rendered again (an SVG image as the image).
194
+ The choice is part of the URL (`markup`, see the [URL contract](url-contract.md#shape)), written by replacing the entry: a reload, a shared link and Back and Forward show the document the same way, and the switches between the tree and multi views carry it for the document they open. It belongs to that document only: another document opens rendered, and the document still shown while the next one loads keeps the way it showed. The region tells which way a Markdown document or an SVG image shows with `data-aqmx-document-view` (`rendered` / `markup`).
195
+ - **Source of an SVG image inside a document.** In a rendered Markdown document — a page view's pane, a panel and the editor's preview alike — every storage SVG image that stands alone in a paragraph (as `@aiquants/markdown`'s viewer picks them: an image the converter wrote with `data-asset-src`, not inside a link or beside text) has a toolbar above it (`viewerSvgImageToolbar`) whose Source toggle (`viewerSvgImageSource`, `aria-pressed`) swaps the image for its SVG as written and back, keeping the focus on the toggle.
196
+ The explorer reads the SVG through the same `text` operation as a document's source, only while the source shows (a read the reader leaves is aborted), so it is refused and admitted exactly as the image itself; the block shows a loading line (`viewerSvgImageLoading`), the text named after the image (`viewerSvgImageSourceRegion`), the note `viewerSvgImageTruncated` under a file cut at `textMaxBytes`, Copy (`viewerSvgImageCopy`, its outcome `viewerSvgImageCopied` or `viewerSvgImageCopyFailed`) for a whole file,
197
+ and a failure (`viewerSvgImageFailed`) with Try again (`viewerSvgImageRetry`) for a `failed` read.
198
+ The choice is the block's own and is not part of the URL: a reload or another document shows the image, while a render that keeps the image's paragraph (a revalidation, the preview's next draft) keeps the choice. A double-click inside the shown SVG selects its text: it never opens the editor of a document the reader may edit, as a double-click on the document's words does (see **Editing a Markdown document** below).
194
199
  - **Editing a Markdown document.** The editing surface takes the document's place in the region (`data-aqmx-document-view="edit"`). In a page view and in a maximized panel it fills the pane — in a panel the region then fills the scroll area below the pinned bar — and the editor scrolls itself; in a panel that is not maximized it grows with its text and the panel's scroll area scrolls it.
195
200
  The bar's view switch shows the editor alone, the editor and the preview side by side, or the preview alone (`data-aqmx-edit-view`). Side by side, offered where the pane fills, they share one grid, each scrolling itself, in two columns or one above the other on a narrow pane, with a handle between them that resizes them (see [The editor's split](#the-editors-split)).
196
201
  Alone, both sit in the grid's one cell: the hidden pane is invisible and inert but keeps its layout and its scroll position, kept in step by the scroll sync below, so switching only changes which pane shows and the block at the top of the view stays the same, by the next frame. The preview is mounted once it was shown or the reader leaned toward it (pointing at or focusing the Preview choice), and keeps rendering while hidden.
@@ -7,9 +7,10 @@ This page is part of the host-facing contract of `@aiquants/markdown-explorer`;
7
7
  - `locale` is the UI language, `"en"` (the default) or `"ja"` — never a BCP 47 region tag. `"ja-JP"`, `"EN"` and any other value throw a `RangeError` on the first render, so a mistyped locale is found in development instead of silently showing English.
8
8
  - The catalogs are `MARKDOWN_EXPLORER_LABEL_CATALOGS.en` and `MARKDOWN_EXPLORER_LABEL_CATALOGS.ja`, frozen objects with the same keys; `MARKDOWN_EXPLORER_LABEL_KEYS` lists the keys in declaration order.
9
9
  - The explorer passes its document-viewer strings to `@aiquants/markdown`, which names every control and status text of the viewer with them, so the viewer follows the same language:
10
- its status texts (`viewerLoading`, `viewerErrorPrefix`, `viewerErrorTitle`, `viewerMissingImage`), its toolbar's buttons (`viewerSelectAlign`, `viewerSelectStyle`, `viewerOpenToc`), the alignment and style menus (`viewerAlignTitle`, `viewerAlignLeft`, `viewerAlignCenter`, `viewerAlignRight`, `viewerPinAlign`, `viewerUnpinAlign`, `viewerStyleTitle`, `viewerPinStyle`, `viewerUnpinStyle`), the table of contents (`viewerTocTitle`, which also names its navigation, `viewerPinToc`, `viewerUnpinToc`)
10
+ its status texts (`viewerLoading`, `viewerErrorPrefix`, `viewerErrorTitle`, `viewerMissingImage`, and `viewerBlockFailed`, the notice in place of a block that cannot render), its toolbar's buttons (`viewerSelectAlign`, `viewerSelectStyle`, `viewerOpenToc`), the alignment and style menus (`viewerAlignTitle`, `viewerAlignLeft`, `viewerAlignCenter`, `viewerAlignRight`, `viewerPinAlign`, `viewerUnpinAlign`, `viewerStyleTitle`, `viewerPinStyle`, `viewerUnpinStyle`), the table of contents (`viewerTocTitle`, which also names its navigation, `viewerPinToc`, `viewerUnpinToc`)
11
11
  and every Mermaid diagram's controls (`viewerMermaidInteractionMode` for the mouse-interaction menu and its button, `viewerMermaidModeNone`, `viewerMermaidModeZoom`, `viewerMermaidModePan`, `viewerMermaidModePanShift`, `viewerMermaidModeBoth`, `viewerMermaidModeBothShift` for its modes, `viewerMermaidInteractionModeTouch` for the same menu and button under a coarse pointer, `viewerMermaidModeNoneTouch`, `viewerMermaidModeZoomTouch`, `viewerMermaidModePanTouch`, `viewerMermaidModeBothTouch` for its touch items, `viewerMermaidZoomIn`, `viewerMermaidZoomOut`, `viewerMermaidResetView`,
12
12
  `viewerMermaidPanUp`, `viewerMermaidPanDown`, `viewerMermaidPanLeft`, `viewerMermaidPanRight` for the buttons that move the view while the drawing overflows its frame, `viewerMermaidRetry`, and `viewerMermaidDiagram`, the name of the diagram's focusable frame),
13
+ the toolbar of a storage SVG image that stands alone in a paragraph (`viewerSvgImageToolbar` naming the toolbar, `viewerSvgImageSource` its Source toggle, `viewerSvgImageSourceRegion` the shown SVG, `viewerSvgImageLoading`, `viewerSvgImageFailed` and `viewerSvgImageRetry` while it is read, `viewerSvgImageTruncated` under a file cut at `textMaxBytes`, and `viewerSvgImageCopy`, `viewerSvgImageCopied` and `viewerSvgImageCopyFailed` for its Copy button and its outcomes)
13
14
  and the titles of embedded frames (`viewerEmbeddedVideo` and `viewerEmbeddedPost` after a provider's name, as in "YouTube: embedded video", and `viewerEmbeddedFrame` before the host of an iframe written in a document without a title).
14
15
  A label the viewer receives carries no `lang` of its own, so it is read in the page's language.
15
16
  - Every ```spreadsheets table's labels are `@aiquants/markdown`'s own, derived rather than copied: each label of its table block (`SPREADSHEET_BLOCK_LABEL_CATALOGS` of `@aiquants/markdown/code-blocks`, see its README) is a key prefixed with `viewerSpreadsheet` (`zoomIn` → `viewerSpreadsheetZoomIn`, `cellAnnouncement` → `viewerSpreadsheetCellAnnouncement`), its built-in text is the block's catalog of the UI language, and its placeholders are the block's (`SPREADSHEET_BLOCK_LABEL_PLACEHOLDERS`).
@@ -23,7 +24,7 @@ This page is part of the host-facing contract of `@aiquants/markdown-explorer`;
23
24
  - `treeRegion` names the tree itself, apart from `explorerRegion`, which names the explorer's landmark (and the sheet on narrow frames).
24
25
  - `refreshTreeLabel` is the visible text of the explorer's Refresh tree button and `refreshDocumentLabel` that of the page views' (tree and single) Refresh document button, each also its button's accessible name; `refreshTree` and `refreshDocument` are their tooltips.
25
26
  A multi-view panel's Refresh document is icon-only, and `refreshDocumentNamed(name)` (the panel title) is its accessible name and its tooltip. A successful reload is announced with `treeRefreshed` or `documentRefreshed(name)`. A failed one is shown with `treeRefreshFailed(reason)` (an alert in the explorer) or `documentRefreshFailed(reason)` (a notice, which the announcer also speaks), where `reason` is the failure's title (the matching `failure…Title` label).
26
- - `showMarkupLabel` is the visible text of the page views' Source toggle beside Refresh document (shown for a Markdown document), also its accessible name, and `showMarkup` its tooltip; a multi-view panel's toggle is icon-only, and `showMarkupNamed(name)` (the panel title) is its accessible name and its tooltip.
27
+ - `showMarkupLabel` is the visible text of the page views' Source toggle beside Refresh document (shown for a Markdown document and an SVG image), also its accessible name, and `showMarkup` its tooltip (`showSvgMarkup` for an SVG image); a multi-view panel's toggle is icon-only, and `showMarkupNamed(name)` (the panel title) is its accessible name and its tooltip.
27
28
  The toggle's pressed state, not its name, tells whether the source shows. `markupLoading` is the screen-reader text while the source loads; a source that cannot be read is announced with `documentFailed(name, title)`, like a document, and a cut source shows `textTruncated`, like a cut text file.
28
29
  - `copyText` is the accessible name and tooltip of the icon-only Copy the text button in the header of a text read whole (a text file, or a Markdown document shown as written). A copy is announced with `copiedText`, or with `copyTextFailed` when the browser has no asynchronous clipboard or refuses the write; for 2 seconds the outcome's label is also the button's tooltip, while its name stays `copyText`.
29
30
  - `switchToTree` and `switchToMulti` name their destination with the README's view names ("Open in the tree view" / "ツリービューで開く", "Open in the multi-panel view" / "マルチビューで開く"); no label names the single view, which no control inside the explorer opens.
@@ -48,7 +49,7 @@ const HANDBOOK_LABELS = {
48
49
  the path's last segment and the failure's title — the text of the matching `failure…Title` label, not the reason's code), `imageZoomLevel(percent)`, `treeRefreshFailed(reason)`, `documentRefreshed(name)`, `documentRefreshFailed(reason)`, `refreshDocumentNamed(name)` (a multi-view panel's icon-only Refresh document: its accessible name and tooltip, `name` being the panel title),
49
50
  `showMarkupNamed(name)` (a multi-view panel's icon-only Source toggle: its accessible name and tooltip, `name` being the panel title), `panelLimit(max)`, `panelOpened(name)`, `panelClosed(name)`, `panelAlreadyOpen(name)`, `panelHidden(name)`, `panelShown(name)`, `panelMaximized(name)`, `panelRestored(name)` — so each language can place the value where its grammar needs it.
50
51
  - The labels `@aiquants/drag-drop-panels` fills itself are templates instead, strings whose `{name}` placeholders mark where each value goes: `panelMoved` (`{title}` the panel's name, `{column}` its visible column, `{position}` its place among that column's shown panels), `panelMoveUnavailable` (`{title}`, and `{move}` the name of the move, one of the `panelMove…` labels), `panelDragStarted` and `panelDragCancelled` (`{title}`) and `multiColumnRegion` (`{column}`); columns and positions count from 1.
51
- So are the table labels `@aiquants/markdown` fills, with the block's placeholders (`viewerSpreadsheetSize` with `{rows}` and `{cols}`, `viewerSpreadsheetCellAnnouncement` with `{cell}` and `{value}`, and so on; `SPREADSHEET_BLOCK_LABEL_PLACEHOLDERS` lists them).
52
+ So are the table labels `@aiquants/markdown` fills, with the block's placeholders (`viewerSpreadsheetSize` with `{rows}` and `{cols}`, `viewerSpreadsheetCellAnnouncement` with `{cell}` and `{value}`, and so on; `SPREADSHEET_BLOCK_LABEL_PLACEHOLDERS` lists them), and `viewerSvgImageSourceRegion`, whose `{name}` is the SVG image's name (its alternative text, else its file name).
52
53
  `MARKDOWN_EXPLORER_LABEL_TEMPLATES` lists each template's placeholders, and braces in every other label are literal text.
53
54
  - `labels` must be a plain object. An unknown key throws a `RangeError` that lists the valid keys, a value of the wrong type (a string where a function is expected, or the reverse) throws a `TypeError`, and a blank string throws a `RangeError`, because a blank name is neither shown nor announced. A template that uses a placeholder its key does not offer (`{name}` for `{title}`, say) throws a `RangeError` naming the placeholders it accepts, because a placeholder that is never filled would be read out as it is. A key set to `undefined` keeps the catalog's string.
54
55
  - The overrides are compared by value, key by key: writing `labels={{ … }}` inline does not re-render the explorer on every render of the host, but a function created inline is a new value each time — hoist it, or memoize the object.
@@ -29,7 +29,7 @@ The explorer renders documents that the reader did not write, from storage the r
29
29
  - A `contains` that throws or answers anything but a boolean is logged (operation `boundary`) and counts as outside (a promise it answers is not awaited, and its rejection is logged the same way); a malformed `confirm` answer is logged and counts as outside; a `readPath` that is not an acceptable document path or that the deny rules refuse is logged and answered `failed`. A broken boundary therefore never opens a document.
30
30
  - The union is exactly what the deployment exposes: a source whose boundary admits every document a reader can read in a store opens every such document through every view, link and asset URL, so documents of that store are confined only when every source over it has a confined boundary.
31
31
  - The bytes of a file take exactly the document admission: an `asset` request passes the deny rules (a refusal is logged once with the operation `asset`), then the same union of boundaries and confirmations, and the host's `asset` receives the admitting source's `readPath`. A boundary miss answers 403 without a log, since an embedded image outside every source is ordinary.
32
- - The text of a file takes the same admission: a `text` request passes the deny rules (a refusal is logged once with the operation `text`, since the explorer asks it only for a document it rendered), then the same union of boundaries and confirmations, and the host's `asset` receives the admitting source's `readPath`; a boundary miss is answered `forbidden` without a log.
32
+ - The text of a file takes the same admission: a `text` request passes the deny rules (a refusal is logged once with the operation `text`, since the explorer asks it only for a document it rendered — a Markdown document or an SVG image, for the document bar's Source toggle — and for a storage SVG image such a document shows, for the image's own Source toggle, whose bytes the `asset` operation serves under the same rules), then the same union of boundaries and confirmations, and the host's `asset` receives the admitting source's `readPath`; a boundary miss is answered `forbidden` without a log.
33
33
  It serves nothing the `asset` operation does not already serve the same reader: the beginning of that file's bytes, at most `textMaxBytes`, decoded as UTF-8 and escaped as a JSON string, which the browser shows as text and never interprets.
34
34
 
35
35
  ## HTML
@@ -13,8 +13,8 @@ This page is part of the host-facing contract of `@aiquants/markdown-explorer`;
13
13
  - `basePath` and the view slugs come from `defineExplorerConfig` (`tree`, `multi` and `single` by default). The data route lives at `dataPath` and is not a page.
14
14
  - `source` names the source shown in the tree: one of the server's sources, whose ids come from `createMarkdownExplorer`'s `sources` in their order (the browser reads them from the page data's `sources`). The first is the default and is written by **omission**; it is never written explicitly. A source id is lowercase letters, digits and `-`, starting with a letter or digit (`isExplorerSourceId`).
15
15
  - The tree view shows a document, a folder (its README, see [Folder segment](#folder-segment)) or neither: `ExplorerLocation`'s tree view has `doc` and `folder`, at most one of them not `null`.
16
- - `markup` names the Markdown documents shown as written (their source, the document bar's Source toggle) instead of rendered: in the tree and single views `markup=true` for the URL's document — in the tree view a folder's README too —, and in the multi-panel view one `markup` per open document shown that way, in the order of `doc` (a maximized document included).
17
- `ExplorerLocation`'s `markup` is a boolean in the tree and single views (always `false` in the tree view without a document or a folder) and a list in the multi-panel view; a target without it (`ExplorerHrefTarget`) shows every document rendered. A document that is not Markdown ignores it.
16
+ - `markup` names the Markdown documents and SVG images shown as written (their source — an SVG image's own SVG —, the document bar's Source toggle) instead of rendered: in the tree and single views `markup=true` for the URL's document — in the tree view a folder's README too —, and in the multi-panel view one `markup` per open document shown that way, in the order of `doc` (a maximized document included).
17
+ `ExplorerLocation`'s `markup` is a boolean in the tree and single views (always `false` in the tree view without a document or a folder) and a list in the multi-panel view; a target without it (`ExplorerHrefTarget`) shows every document rendered. A document that is neither Markdown nor an SVG image (a raster image, media, text, a file or a failure) ignores it and shows as it always does. The Source toggle of an SVG image inside a rendered document is the image block's own and never enters the URL.
18
18
  - The source never limits which documents can be open: a path names one document; it may appear in several sources' trees, and it opens when the boundary of at least one source admits it, whichever source the URL names. Switching the source therefore keeps every open document, and a document no source's boundary admits is answered `forbidden` in every view.
19
19
  - `explorerHref(config, target)` is the only function that writes explorer URLs, and `resolveExplorerLocation(config, splat, search)` is the only one that reads them. The server's loader and the browser call the same two functions, each with a configuration joined with the server's source ids by `withExplorerSources(config, sourceIds)` (an `ExplorerLocationConfig`; no ids, an invalid id or a repeated one throws a `RangeError`).
20
20
  `explorerHref` has two forms: any target with such a configuration, and a target without `source` (`ExplorerSourcelessHrefTarget`, the default source) with a plain `ExplorerConfig`, for links built where the server's sources are not known (a host menu). A target with a `source` and a configuration without ids throws a `TypeError` naming `withExplorerSources`, and so does `resolveExplorerLocation` given such a configuration.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiquants/markdown-explorer",
3
- "version": "0.22.0",
3
+ "version": "0.23.0",
4
4
  "description": "Markdown document explorer for React Router 8 (framework mode): a source tree with a single-document view and a multi-panel reading view, storage-agnostic server ports, golden-ratio layout and an en / ja UI.",
5
5
  "sideEffects": [
6
6
  "**/*.css"
@@ -70,7 +70,7 @@
70
70
  "peerDependencies": {
71
71
  "@aiquants/directory-tree": "^5.0.1",
72
72
  "@aiquants/drag-drop-panels": "^0.12.0",
73
- "@aiquants/markdown": "^11.0.1",
73
+ "@aiquants/markdown": "^11.1.0",
74
74
  "@aiquants/resize-panels": "^2.2.0",
75
75
  "@aiquants/spreadsheet": "^0.16.0",
76
76
  "@aiquants/virtualscroll": "^3.22.1",
@@ -81,7 +81,7 @@
81
81
  "devDependencies": {
82
82
  "@aiquants/directory-tree": "5.0.1",
83
83
  "@aiquants/drag-drop-panels": "0.12.0",
84
- "@aiquants/markdown": "11.0.1",
84
+ "@aiquants/markdown": "11.1.0",
85
85
  "@aiquants/resize-panels": "2.2.0",
86
86
  "@aiquants/spreadsheet": "0.16.0",
87
87
  "@aiquants/virtualscroll": "3.22.1",
@@ -1 +0,0 @@
1
- "use strict";const b=Object.freeze([".env*","*.env","*.env.*","*.env~*","*.env-*","*.env_*","*.env#*",".git",".git-credentials",".svn",".hg","node_modules","secrets",".secrets","secrets.json","secrets.yml","secrets.yaml","secrets.toml","secrets.ini","secrets.txt",".ssh",".aws",".gnupg",".docker",".kube",".terraform",".npmrc",".yarnrc",".yarnrc.yml",".netrc","_netrc",".pypirc",".pgpass",".my.cnf",".htpasswd",".vault-token","id_rsa*","id_dsa*","id_ecdsa*","id_ed25519*","*.pem","*.key","*.p8","*.p12","*.pfx","*.ppk","*.jks","*.keystore","*.kdbx","*credentials*.json","service-account*.json","*.tfstate","*.tfstate.*","*.tfvars","*.tfvars.json",".*_history","fish_history"]),C=/[\u0000-\u001f\u007f]/u,U=/\p{Cs}/u,H=e=>{const t=e.split("/").filter(n=>n!=="").at(-1);return t===void 0?e:t},R=e=>e.length>0&&e.length<=4096&&!U.test(e)&&!C.test(e)&&!e.includes("\\"),x=e=>e.normalize("NFKC").toUpperCase().toLowerCase(),z=/(?:%[0-9A-Fa-f]{2})+/gu,F=new TextDecoder("utf-8"),V=/[/\\]/u,M=e=>e.replace(z,t=>F.decode(Uint8Array.from(t.slice(1).split("%").map(n=>Number.parseInt(n,16))))),G=e=>{const t=[e];let n=e;for(let r=0;r<3&&n.includes("%");r+=1){const o=M(n);if(o===n)break;t.push(o),n=o}return t.map(x)},K=e=>{if(typeof e!="string"||e.trim()===""||e.includes("/")||e.includes("\\"))throw new RangeError(`[markdown-explorer] a deny pattern must be one non-blank path segment; got ${JSON.stringify(e)}`);const t=x(e).split("*").map(n=>n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join(".*");return new RegExp(`^${t}$`,"su")},y=e=>{if(!Array.isArray(e))throw new RangeError("[markdown-explorer] deny rules must be an array of segment patterns");const t=e.map(K),n=o=>o!==""&&t.some(i=>i.test(o)),r=o=>o!==""&&G(o).some(i=>n(i)||i.split(V).some(n));return{deniesPath:o=>o.split("/").some(r),deniesName:r}},Y=y(b),W=Object.freeze({deniesPath:()=>!1,deniesName:()=>!1}),J=e=>e===void 0?Y:e===!1?W:y(e),Q=(e,t)=>y(e).deniesPath(t),m=Object.freeze(["unauthorized","forbidden","not-found","not-configured","invalid","too-large","unsupported","failed"]),q=Object.freeze(["file","directory"]),B=Object.freeze(["video","audio","pdf"]),Z=Object.freeze(["info","warning","danger"]),ee=Object.freeze(["markdown","text","image","media","file","failure"]),O=Object.freeze({min:1,max:6}),te=1e4,c=e=>typeof e=="string"&&/^\/(?![/\\])[\x21-\x7E]*$/u.test(e),ne=Object.freeze(["http:","https:","mailto:"]),_=1024,re=/^[a-z0-9-]{1,64}$/u,oe="https://relative.invalid/",h=64,p=(e,t)=>typeof t=="string"&&e.includes(t),s=e=>typeof e=="string"?JSON.stringify(e.length>h?`${e.slice(0,h)}…`:e):typeof e,T=e=>p(m,e),se=e=>p(q,e),P=e=>p(B,e),ie=e=>p(Z,e),ae=e=>p(ee,e),A=e=>typeof e=="string"&&re.test(e),le=(e,t)=>{if(typeof e!="string")return!1;try{return t.includes(new URL(e,oe).protocol)}catch{return!1}},f=e=>{if(e===null||typeof e!="object")return"a failure must be an object";const{reason:t,code:n}=e;return T(t)?n!==void 0&&!A(n)?`a failure code must be 1 to 64 lowercase letters, digits or hyphens; got ${s(n)}`:null:`unknown failure reason ${s(t)}`},S=e=>{if(e===null||typeof e!="object")return"an entry must be an object";const{name:t,path:n,type:r,mimeType:o,modifiedAt:i,children:a,lazy:l}=e;return typeof t!="string"||t===""?"an entry needs a non-empty name":typeof n!="string"||!R(n)?"an entry needs an acceptable path":se(r)?o!==void 0&&typeof o!="string"?"an entry mimeType must be a string":i!==void 0&&!Number.isSafeInteger(i)?`an entry modifiedAt must be a safe integer of epoch milliseconds; got ${s(i)}`:l!==void 0&&typeof l!="boolean"?"an entry lazy flag must be a boolean":a!==void 0&&!Array.isArray(a)?"entry children must be an array":r==="file"&&(a!==void 0||l===!0)?"a file entry cannot have children or be lazy":l===!0&&Array.isArray(a)&&a.length>0?"a lazy directory must not list children":null:`an entry type must be "file" or "directory"; got ${s(r)}`},N=e=>{if(S(e)!==null)return!1;const{children:t}=e;return t===void 0||t.every(N)},L=e=>{if(e===null||typeof e!="object")return!1;const{status:t,entries:n,failure:r}=e;return t==="ok"?Array.isArray(n)&&n.every(N):t==="error"&&f(r)===null},ce=e=>{if(e===null||typeof e!="object")return!1;const{status:t,ancestors:n,failure:r}=e;return t==="ok"?n===null||D(n):t==="error"&&f(r)===null},D=e=>Array.isArray(e)&&e.every(t=>typeof t=="string"&&R(t))&&new Set(e).size===e.length,ue=e=>{if(e===null||typeof e!="object")return!1;const{status:t,source:n,ancestors:r,failure:o}=e;return t==="ok"?n===null&&r===null||typeof n=="string"&&n!==""&&D(r):t==="error"&&f(o)===null},fe=e=>{if(e===null||typeof e!="object")return!1;const{status:t,loadedAt:n}=e;return t==="ok"&&!(Number.isSafeInteger(n)&&n>=0)?!1:L(e)},g=e=>{if(e===null||typeof e!="object")return"a heading must be an object";const{text:t,depth:n,id:r}=e;return typeof t!="string"||typeof r!="string"?"a heading needs text and id strings":typeof n!="number"||!Number.isInteger(n)||n<O.min||n>O.max?`a heading depth must be an integer in 1..6; got ${String(n)}`:null},v=e=>{if(e===null||typeof e!="object")return"a document must be an object";const t=e,{kind:n}=t;if(!ae(n))return`unknown document kind ${s(n)}`;if(n==="failure")return f(t.failure);if(typeof t.name!="string")return"a document needs a name string";switch(n){case"markdown":{const{htmlContent:r,headings:o}=t;if(typeof r!="string"||!Array.isArray(o))return"a markdown document needs htmlContent and headings";for(const i of o){const a=g(i);if(a!==null)return a}return Ee(t.edit)}case"text":return typeof t.text!="string"||typeof t.truncated!="boolean"?"a text document needs text and truncated":c(t.url)?null:"a text document needs a root-relative url";case"image":return c(t.url)?null:"an image document needs a root-relative url";case"media":return c(t.url)?P(t.mediaType)?null:`unknown media type ${s(t.mediaType)}`:"a media document needs a root-relative url";case"file":return c(t.url)?null:"a file document needs a root-relative url"}},w=e=>v(e)===null,de=e=>w(e)&&(e.kind==="text"||e.kind==="failure"),Ee=e=>{if(e===null)return null;if(typeof e!="object")return"a markdown document's edit must be null or an object";const{kind:t,href:n}=e;return t==="inline"?n===void 0?null:"an inline edit carries no href":t==="draft"?n===void 0?null:"a draft edit carries no href":t!=="external"?`unknown edit kind ${s(t)}`:pe(n)?null:`an external edit needs an absolute https: href; got ${s(n)}`},pe=e=>{if(typeof e!="string")return!1;try{return new URL(e).protocol==="https:"}catch{return!1}},u=e=>typeof e=="string"&&e.length>0&&e.length<=_,Re=e=>c(e.href)?null:`a grant needs a root-relative href; got ${s(e.href)}`,k=e=>{if(e===null||typeof e!="object")return"a revision must be an object";const{id:t,modifiedAt:n,size:r,author:o,kept:i,current:a}=e;return u(t)?n!==null&&(typeof n!="string"||Number.isNaN(Date.parse(n)))?`a revision's modifiedAt must be a date-time string or null; got ${s(n)}`:typeof r!="number"||!Number.isSafeInteger(r)||r<0?`a revision's size must be a non-negative integer; got ${s(r)}`:o!==null&&typeof o!="string"?`a revision's author must be a string or null; got ${s(o)}`:typeof i!="boolean"||typeof a!="boolean"?"a revision needs kept and current booleans":null:`a revision id must be a non-empty string of at most ${_} characters; got ${s(t)}`},d=(e,t)=>{if(e===null||typeof e!="object")return"an answer must be an object";const n=e,{kind:r}=n;if(r==="failure")return f(n.failure);if(typeof r!="string"||!t.includes(r))return`unexpected answer kind ${s(r)}`;switch(r){case"grant":return Re(n);case"edit":return typeof n.text!="string"||typeof n.history!="boolean"?"an edit source needs text and history":u(n.version)?null:`an edit source needs a version; got ${s(n.version)}`;case"draft":return typeof n.text=="string"?null:"a draft source needs text";case"saved":return u(n.version)?null:`a saved answer needs a version; got ${s(n.version)}`;case"conflict":return typeof n.text!="string"?"a conflict needs the current text":u(n.version)?null:`a conflict needs the current version; got ${s(n.version)}`;case"preview":{const{htmlContent:o,headings:i}=n;if(typeof o!="string"||!Array.isArray(i))return"a preview needs htmlContent and headings";for(const a of i){const l=g(a);if(l!==null)return l}return null}case"revisions":{if(!Array.isArray(n.revisions))return"revisions need an array";for(const o of n.revisions){const i=k(o);if(i!==null)return i}return null}case"revision":return typeof n.text!="string"?"a revision answer needs text":u(n.id)?null:`a revision answer needs an id; got ${s(n.id)}`;default:return`unexpected answer kind ${s(r)}`}},ye=Object.freeze(["edit","draft","grant"]),me=Object.freeze(["saved","conflict","grant"]),I=Object.freeze(["preview"]),_e=Object.freeze(["revisions"]),Ae=Object.freeze(["revision"]),ge=e=>d(e,ye)===null,Oe=e=>d(e,me)===null,he=e=>d(e,I)===null,be=e=>d(e,_e)===null,xe=e=>d(e,Ae)===null,Te=e=>e!==null&&typeof e=="object"&&e.kind==="unavailable"?null:d(e,I),Pe=(e,t)=>({kind:"failure",failure:j(e,t)}),j=(e,t)=>A(t)?{reason:e,code:t}:{reason:e},Se=Object.freeze(["tree","children","ancestors","reveal","document","text","edit","save","preview","revisions","revision","refresh","asset","link-card"]),E=Object.freeze({source:"source",path:"path",version:"v",base:"base",revision:"revision",display:"as"}),Ne="asset",Le="link-card",De=(e,t,n)=>{const r=`${e}/${Ne}?${E.path}=${encodeURIComponent(t)}`;return n===null?r:`${r}&${E.version}=${encodeURIComponent(n)}`},$="text",ve=e=>{if(!e.includes("?"))throw new RangeError(`[markdown-explorer] an asset URL always carries a query; got ${JSON.stringify(e)}`);return`${e}&${E.display}=${$}`},we=e=>{const t=e.getAll(E.display);return t.length===0?"file":t.length===1&&t[0]===$?"text":null},ke=e=>`${e}/${Le}`,Ie="X-Markdown-Explorer-Scope",je="X-Markdown-Explorer",$e="refresh",Xe="edit",Ce="text/markdown",Ue=e=>Se.includes(e),X=Object.freeze({invalid:400,unauthorized:401,forbidden:403,"not-found":404,"too-large":413,"not-configured":500,unsupported:500,failed:500}),He=e=>{const[t,...n]=m.filter(r=>X[r]===e);return t!==void 0&&n.length===0?t:"failed"};exports.DEFAULT_DENIED_PATH_SEGMENTS=b;exports.EXPLORER_DATA_QUERY=E;exports.EXPLORER_DRAFT_MEDIA_TYPE=Ce;exports.EXPLORER_EDIT_PROOF=Xe;exports.EXPLORER_EDIT_TOKEN_MAX_LENGTH=_;exports.EXPLORER_FAILURE_REASONS=m;exports.EXPLORER_FAILURE_STATUS=X;exports.EXPLORER_LINK_PROTOCOLS=ne;exports.EXPLORER_MAX_HEADINGS=te;exports.EXPLORER_PROOF_HEADER=je;exports.EXPLORER_REFRESH_PROOF=$e;exports.EXPLORER_SCOPE_HEADER=Ie;exports.MAX_DOCUMENT_PATH_LENGTH=4096;exports.documentViolation=v;exports.draftAnswerViolation=Te;exports.entryViolation=S;exports.explorerAssetHref=De;exports.explorerLinkCardEndpoint=ke;exports.explorerPlainTextHref=ve;exports.failureDocument=Pe;exports.failureOf=j;exports.failureReasonOfStatus=He;exports.failureViolation=f;exports.headingViolation=g;exports.isAcceptableDocumentPath=R;exports.isAcceptableUrl=le;exports.isDeniedPath=Q;exports.isExplorerAncestorsResult=ce;exports.isExplorerChildrenResult=L;exports.isExplorerDataOperation=Ue;exports.isExplorerDocument=w;exports.isExplorerEditAnswer=ge;exports.isExplorerEditToken=u;exports.isExplorerFailureCode=A;exports.isExplorerFailureReason=T;exports.isExplorerMediaType=P;exports.isExplorerNoticeTone=ie;exports.isExplorerPreviewAnswer=he;exports.isExplorerRevealResult=ue;exports.isExplorerRevisionAnswer=xe;exports.isExplorerRevisionsAnswer=be;exports.isExplorerSaveAnswer=Oe;exports.isExplorerTextAnswer=de;exports.isExplorerTreeResult=fe;exports.isRootRelativeUrl=c;exports.lastPathSegment=H;exports.readExplorerAssetDisplay=we;exports.resolvePathRules=J;exports.revisionViolation=k;