@aiquants/markdown-explorer 0.38.0 → 0.39.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 +62 -0
- package/README.md +2 -2
- package/dist/{EditSurface-BTrQ1viw.js → EditSurface-CUPN9dUY.js} +211 -211
- package/dist/{EditSurface-Dis52Iwq.cjs → EditSurface-CZnjX0sv.cjs} +2 -2
- package/dist/{ExplorerSplit-Dq7HfNre.js → ExplorerSplit-DHpgdXhb.js} +407 -407
- package/dist/{ExplorerSplit-13nPIuf0.cjs → ExplorerSplit-DWBhCe7m.cjs} +1 -1
- package/dist/{MultiLayout-B7RvBpCj.cjs → MultiLayout-BkHbfUuh.cjs} +1 -1
- package/dist/{MultiLayout-1rKm2Hzt.js → MultiLayout-HmvjE8ht.js} +3 -3
- package/dist/{NativeScrollBar-D63-6AL1.cjs → NativeScrollBar-CzGhZ-w3.cjs} +1 -1
- package/dist/{NativeScrollBar-Bg05yuzM.js → NativeScrollBar-DAukiH01.js} +2 -2
- package/dist/{TreeLayout-CNE0XkWz.cjs → TreeLayout-BEvPaxLb.cjs} +1 -1
- package/dist/{TreeLayout-9eEP62LF.js → TreeLayout-dtnugwQ7.js} +3 -3
- package/dist/core/geometry.d.cts +0 -1
- package/dist/core/geometry.d.ts +0 -1
- package/dist/{explorerCore-GCqatHTO.js → explorerCore-CUtc1Vmx.js} +1 -1
- package/dist/{explorerCore-5qeC3-gt.cjs → explorerCore-Dj7RxZRd.cjs} +1 -1
- package/dist/{index-C52Nj37x.js → index-BBJoJu-b.js} +7 -7
- package/dist/{index-_XNluAcx.cjs → index-D6at9qMs.cjs} +5 -5
- package/dist/index.cjs +1 -1
- package/dist/index.js +15 -15
- package/dist/location-DFXJSMit.cjs +1 -0
- package/dist/{location-CJvL6JNs.js → location-T9o5XYpX.js} +74 -75
- package/dist/{merge-CnrrjXmc.js → merge-CkMe5hqA.js} +1 -1
- package/dist/{merge-CKpFyeqR.cjs → merge-XyuOlVWP.cjs} +1 -1
- package/dist/server.cjs +1 -1
- package/dist/server.js +3 -3
- package/dist/serverCore.cjs +1 -1
- package/dist/serverCore.js +3 -3
- package/dist/styles/markdown-explorer.css +1 -1
- package/dist/{tapScrollCircle-D-Lgzdxx.js → tapScrollCircle-CvWJKtbF.js} +1 -1
- package/dist/{tapScrollCircle-6etmzCb7.cjs → tapScrollCircle-ExxyHVWY.cjs} +1 -1
- package/dist/{useSplitPersistence-CD_n1ivo.cjs → useSplitPersistence-BCitqdAe.cjs} +1 -1
- package/dist/{useSplitPersistence-tbTu3P5m.js → useSplitPersistence-C86jW1yY.js} +1 -1
- package/package.json +3 -3
- package/dist/location-DOIG84V9.cjs +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,67 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.39.0 (2026-11-16) — A 44 px resize divider, prose line heights and an opt-in document floor (WCAG 2.2); the auth-core peer floor rises to ^0.9.0
|
|
4
|
+
|
|
5
|
+
### Breaking
|
|
6
|
+
|
|
7
|
+
- **The `@aiquants/auth-core` peer floor rises from `^0.8.0` to `^0.9.0`.** auth-core 0.9.0's access-failure policy now
|
|
8
|
+
requires `signedIn`: a policy is `{ signedIn: true; keepsWork: boolean }` or `{ signedIn: false; keepsWork: false }`, and
|
|
9
|
+
`accessFailureView` throws a `RangeError` on `signedIn: false` with `keepsWork: true` (a policy without a sign-in cannot
|
|
10
|
+
keep work). Hosts that pass a policy to `accessFailureView` must add `signedIn` — `signedIn: true` for the explorer,
|
|
11
|
+
which keeps the reader's unsaved drafts — so the demo and README examples now pass `{ signedIn: true, keepsWork: true }`.
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
|
|
15
|
+
- **An opt-in `--aqmx-document-min-block-size` floor for the single view's document scroll box (WCAG 2.2 1.4.10).** The
|
|
16
|
+
neutral token (default `0px`, the host writes it) sets the `min-block-size` of the single view's document scroll boxes
|
|
17
|
+
(the viewer, `DocumentScrollArea` and the editor's preview), which also `contain: size` so a tall document does not
|
|
18
|
+
stretch them. It is a scroll-box minimum, not a page-growth mechanism: the explorer root is `block-size: 100%` (it
|
|
19
|
+
fills the host's container), so a host that wants the floor to show must size the explorer's container to at least the
|
|
20
|
+
bar plus the floor — a shorter container clips the floored box. §6.2's `F_d` is `calc(5 * 1rem * φ)`, the golden ratio
|
|
21
|
+
φ (≈ 129.4 px at a 16 px root).
|
|
22
|
+
|
|
23
|
+
### Changed
|
|
24
|
+
|
|
25
|
+
- **The explorer/content resize divider is a 44 px hit band under every pointer (WCAG 2.2 2.5.5).** `ExplorerSplit` and
|
|
26
|
+
`EditSplit` size the handle to `COARSE_TARGET_PIXELS` (44 px, one control) for every pointer, not 24 px for a fine
|
|
27
|
+
pointer; the visible grip is unchanged and the band insets its neighbours by half its width (22 px), so it covers
|
|
28
|
+
neither the tree's scroll bar nor the content's edge. The edit split's side-by-side threshold rises by 20 px to match,
|
|
29
|
+
and `FINE_TARGET_PIXELS` is gone.
|
|
30
|
+
- **Multi-line text blocks take the prose line height (WCAG 2.2 1.4.8).** Notices, failure sentences, toasts, the tree
|
|
31
|
+
and edit messages and the dialog bodies use `--aqmx-line-height-prose` (the golden ratio φ ≈ 1.618); single-line
|
|
32
|
+
controls, titles and bars keep the compact `1.382`.
|
|
33
|
+
|
|
34
|
+
### Tests
|
|
35
|
+
|
|
36
|
+
- The target-size E2E no longer exempts the resize divider (it measures 44 × 44), and the divider threshold tests assert
|
|
37
|
+
44 px under every pointer. A new `document-floor` E2E checks, in a window too short to hold it, that the floor holds the
|
|
38
|
+
single view's document scroll box at `F_d` and that the default `0px` leaves it collapsed.
|
|
39
|
+
|
|
40
|
+
## 0.38.0 (2026-11-16) — A config option names the mermaid pan and zoom modifier key
|
|
41
|
+
|
|
42
|
+
### Added
|
|
43
|
+
|
|
44
|
+
- **`mermaidModifier` config option for the mermaid pan and zoom modifier key.** `defineExplorerConfig` now takes
|
|
45
|
+
`mermaidModifier?: "ctrl" | "shift"` and passes it through to `@aiquants/markdown`'s viewer, so a plain mouse drag
|
|
46
|
+
stays for text selection and node clicks and only a drag or wheel held with the modifier pans and zooms the diagram.
|
|
47
|
+
Omitted or `undefined`, the value is passed through unchanged and the viewer applies its own
|
|
48
|
+
`DEFAULT_PAN_ZOOM_MODIFIER` (`"ctrl"`), keeping the default's single source of truth in the viewer; a value that is
|
|
49
|
+
not `"ctrl"` or `"shift"` throws a `RangeError` naming them. The package ships this as a component option with no UI
|
|
50
|
+
of its own — a host app surfaces the choice in its own settings — and the diagram's mode labels take the viewer's
|
|
51
|
+
neutral form (`"修飾キー+ドラッグ"` / `"modifier+drag"`) so the app names the key.
|
|
52
|
+
|
|
53
|
+
### Changed
|
|
54
|
+
|
|
55
|
+
- **The `@aiquants/markdown` peer floor rises from `^13.0.0` to `^13.3.0`.** The pass-through needs 13.3.0's
|
|
56
|
+
`PanZoomModifier` type, the viewer's `mermaidModifier` prop and the neutral mermaid mode labels.
|
|
57
|
+
|
|
58
|
+
### Tests
|
|
59
|
+
|
|
60
|
+
- `tests/unit/settings.test.ts`: `defineExplorerConfig` resolves `"ctrl"` and `"shift"` to themselves and an omitted
|
|
61
|
+
or `undefined` `mermaidModifier` to `undefined` (the viewer applies its default), and rejects a value that is not one
|
|
62
|
+
of them with a `RangeError`; `revalidateExplorerConfig` round-trips `"shift"` and rejects `"alt"`; the sorted option
|
|
63
|
+
keys and the options string include `mermaidModifier`.
|
|
64
|
+
|
|
3
65
|
## 0.37.1 (2026-11-15) — Access failures: a 401 keeps the page and the reader's work, and each failure gets its own node
|
|
4
66
|
|
|
5
67
|
### Fixed
|
package/README.md
CHANGED
|
@@ -50,7 +50,7 @@ A single-view (embedding) page never downloads the tree and multi-panel views, w
|
|
|
50
50
|
|
|
51
51
|
- React 19.2.7 or later and React Router 8 in framework mode (route modules with `loader` / `headers`).
|
|
52
52
|
- Node.js 22.22 or later (the floor React Router 8 declares). The package ships ES modules and CommonJS; the CommonJS entries load the ESM-only `react-router` through `require(esm)`.
|
|
53
|
-
- The peer packages, at these versions or later within the caret ranges the package declares: `@aiquants/auth-core` ^0.
|
|
53
|
+
- The peer packages, at these versions or later within the caret ranges the package declares: `@aiquants/auth-core` ^0.9.0 (the access failure contract: the occurrence the host's presenter draws, and the 403 refusal of the page loader, `accessFailureResponse`), `@aiquants/markdown` ^13.3.0 (document rendering;
|
|
54
54
|
the column width and colour pair a reader picks in its display popover (`CONTENT_MEASURES` and `CONTENT_COLORS` of `@aiquants/markdown/viewer-settings`) and the labels of the popover's sections and of a diagram's notices, a document's language for its content (`contentLang`) apart from the UI language of the labels the explorer passes (`labelsLang`), and the size of a document table's tap-scroll circle (`spreadsheetTapScrollCircle`'s `size`);
|
|
55
55
|
the gutter its scroll container keeps beside the explorer's bar for the tap-scroll circle (`scrollBarGutter`, given as a custom property that a media query sets), code blocks whose Copy button sits in a header row above the code, and documents whose front matter does not render; the Source toggle of a storage SVG image that stands alone in a paragraph, read through `imageSource`, and a Copy that copies the image as a PNG image or its source, the source readable in every display style, a notice in place of a block that cannot render and plain text for a fence in a language it does not know;
|
|
56
56
|
the full screen of its tables, Mermaid diagrams and SVG images, which every block marks with the same DOM hook (`data-aqmd-fullscreen`), and `DEFAULT_MARKDOWN_STYLE`, the style a document starts in by default; its components' stylesheet without utilities,
|
|
@@ -242,7 +242,7 @@ const follow = (action: AccessFailureAction, retry: (() => void) | null): void =
|
|
|
242
242
|
|
|
243
243
|
// The explorer keeps the reader's unsaved drafts in the page, so it keeps work.
|
|
244
244
|
export const presentAccessFailure: AccessFailurePresenter<ReactNode> = (occurrence) => {
|
|
245
|
-
const view = accessFailureView(occurrence, { keepsWork: true }, labels)
|
|
245
|
+
const view = accessFailureView(occurrence, { signedIn: true, keepsWork: true }, labels)
|
|
246
246
|
return (
|
|
247
247
|
<div role={view.politeness}>
|
|
248
248
|
<p>{view.title}</p>
|