@liminis/editor 0.6.0 → 0.7.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/README.md CHANGED
@@ -9,7 +9,7 @@ into this repository so it can stand on its own. MIT-licensed.
9
9
 
10
10
  Its history, and how to read the `ADR-0NNN`, `FR-NNN` and `#NNN` references that
11
11
  travelled with the code, are recorded in [`docs/provenance.md`](./docs/provenance.md)
12
- ([on the docs site](https://v3rv.com/liminis-editor/guide/provenance/)).
12
+ ([on the docs site](https://docs.liminis.app/liminis-editor/guide/provenance/)).
13
13
 
14
14
  ## What you get
15
15
 
@@ -46,10 +46,10 @@ produce a broken editor context — peering is what prevents both.
46
46
 
47
47
  ```bash
48
48
  pnpm add react@^19 react-dom@^19 \
49
- lexical@^0.49 @lexical/react@^0.49 @lexical/code@^0.49 \
50
- @lexical/code-prism@^0.49 @lexical/link@^0.49 @lexical/list@^0.49 \
51
- @lexical/mark@^0.49 @lexical/markdown@^0.49 @lexical/rich-text@^0.49 \
52
- @lexical/selection@^0.49 @lexical/table@^0.49 @lexical/utils@^0.49
49
+ lexical@^0.52 @lexical/react@^0.52 @lexical/code@^0.52 \
50
+ @lexical/code-prism@^0.52 @lexical/link@^0.52 @lexical/list@^0.52 \
51
+ @lexical/mark@^0.52 @lexical/markdown@^0.52 @lexical/rich-text@^0.52 \
52
+ @lexical/selection@^0.52 @lexical/table@^0.52 @lexical/utils@^0.52
53
53
  ```
54
54
 
55
55
  > **The Lexical peer ranges are single-caret, not a wide band.** Lexical is
@@ -557,7 +557,7 @@ every fixture-representable node class renders somewhere in it. See
557
557
  [`examples/demo/README.md`](./examples/demo/README.md).
558
558
 
559
559
  `examples/demo` is also the demo on the public GitHub Pages site, at
560
- **[v3rv.com/liminis-editor/demo/](https://v3rv.com/liminis-editor/demo/)** — a
560
+ **[docs.liminis.app/liminis-editor/demo/](https://docs.liminis.app/liminis-editor/demo/)** — a
561
561
  `release`-triggered (not merge-triggered) build of this same shell, showing a
562
562
  visible version badge for the published release it represents. Between releases
563
563
  the deployed site stays on the last published version even as `main` keeps
@@ -566,7 +566,7 @@ moving — that staleness is intentional, not a bug (see
566
566
 
567
567
  ## Documentation site
568
568
 
569
- **[v3rv.com/liminis-editor](https://v3rv.com/liminis-editor/)** publishes the
569
+ **[docs.liminis.app/liminis-editor](https://docs.liminis.app/liminis-editor/)** publishes the
570
570
  pages in [`docs/`](./docs/) with search, cross-links, and the C4 diagrams
571
571
  rendered live rather than as pictures.
572
572
 
@@ -17,6 +17,7 @@ import { registerCodeHighlighting } from '@lexical/code-prism';
17
17
  import { $createParagraphNode, $createRangeSelection, $getRoot, $getSelection, $isElementNode, $isLineBreakNode, $isRangeSelection, $isTextNode, $setSelection, COMMAND_PRIORITY_LOW, KEY_ENTER_COMMAND, } from 'lexical';
18
18
  import { mergeRegister } from '@lexical/utils';
19
19
  import { Toolbar } from './Toolbar.js';
20
+ import { MarkNodePastePlugin } from './MarkNodePastePlugin.js';
20
21
  import { SlashMenuPlugin } from './SlashMenuPlugin.js';
21
22
  import { DragHandlePlugin } from './DragHandlePlugin.js';
22
23
  import { MarkdownShortcutsPlugin } from './MarkdownShortcutsPlugin.js';
@@ -543,7 +544,7 @@ export function Editor({ initialContent, autoFocus = false, contentVersion = 0,
543
544
  onError: editorOnError,
544
545
  editable,
545
546
  };
546
- return (_jsx(AssetContext.Provider, { value: assetContextValue, children: _jsx(LexicalComposer, { initialConfig: initialConfig, children: _jsx("div", { className: "editor-container", children: _jsxs("div", { className: "editor-inner", children: [_jsx(RichTextPlugin, { contentEditable: _jsx(ContentEditable, { className: "editor-input", "aria-label": "Markdown editor" }), placeholder: _jsx("div", { className: "editor-placeholder", children: "Type '/' for commands..." }), ErrorBoundary: LexicalErrorBoundary }), _jsx(HistoryPlugin, {}), _jsx(ListPlugin, {}), _jsx(CheckListPlugin, {}), _jsx(OrderedTaskListPlugin, {}), _jsx(TabIndentationPlugin, {}), _jsx(LinkPlugin, {}), _jsx(TablePlugin, {}), _jsx(CodeHighlightPlugin, {}), _jsx(OnChangePlugin, { onChange: handleChange, ignoreSelectionChange: true }), _jsx(InitializePlugin, { content: initialContent, onOffsets: handleOffsets }), _jsx(EditablePlugin, { editable: editable }), autoFocus && _jsx(AutoFocusPlugin, {}), _jsx(CursorTrackingPlugin, { onCursorChange: onCursorChange }), _jsx(CursorRestorePlugin, { contentVersion: contentVersion, cursorToRestoreRef: effectiveCursorRef }), _jsx(ExternalUpdatePlugin, { content: initialContent, lastExternalLoadRef: lastExternalLoadRef, currentContentRef: currentContentRef, lastEditorChangeRef: lastEditorChangeRef, onOffsets: handleOffsets }), _jsx(SlashMenuPlugin, {}), _jsx(DragHandlePlugin, {}), _jsx(MarkdownShortcutsPlugin, {}), _jsx(TableActionsPlugin, {}), _jsx(CodeBlockPlugin, {}), _jsx(TogglePlugin, {}), _jsx(ImagePlugin, {}), _jsx(BlockClickPlugin, {}), _jsx(LinkClickPlugin, { editable: editable }), _jsx(Toolbar, { annotationAffordances: toolbarAnnotationAffordances }), _jsx(SearchPlugin, {}), _jsx(FrontmatterPlugin, { filePath: filePath }), _jsx(WikiLinkExistencePlugin, {}), _jsx(WikiLinkFormatPlugin, {}), _jsx(AnchorScrollPlugin, {}), documentOutlineHandle && _jsx(OutlinePlugin, { handle: documentOutlineHandle }), _jsx(SelectionContextMenuPlugin, { onSelectionContextMenu: onSelectionContextMenu,
547
+ return (_jsx(AssetContext.Provider, { value: assetContextValue, children: _jsx(LexicalComposer, { initialConfig: initialConfig, children: _jsx("div", { className: "editor-container", children: _jsxs("div", { className: "editor-inner", children: [_jsx(RichTextPlugin, { contentEditable: _jsx(ContentEditable, { className: "editor-input", "aria-label": "Markdown editor" }), placeholder: _jsx("div", { className: "editor-placeholder", children: "Type '/' for commands..." }), ErrorBoundary: LexicalErrorBoundary }), _jsx(HistoryPlugin, {}), _jsx(MarkNodePastePlugin, {}), _jsx(ListPlugin, {}), _jsx(CheckListPlugin, {}), _jsx(OrderedTaskListPlugin, {}), _jsx(TabIndentationPlugin, {}), _jsx(LinkPlugin, {}), _jsx(TablePlugin, {}), _jsx(CodeHighlightPlugin, {}), _jsx(OnChangePlugin, { onChange: handleChange, ignoreSelectionChange: true }), _jsx(InitializePlugin, { content: initialContent, onOffsets: handleOffsets }), _jsx(EditablePlugin, { editable: editable }), autoFocus && _jsx(AutoFocusPlugin, {}), _jsx(CursorTrackingPlugin, { onCursorChange: onCursorChange }), _jsx(CursorRestorePlugin, { contentVersion: contentVersion, cursorToRestoreRef: effectiveCursorRef }), _jsx(ExternalUpdatePlugin, { content: initialContent, lastExternalLoadRef: lastExternalLoadRef, currentContentRef: currentContentRef, lastEditorChangeRef: lastEditorChangeRef, onOffsets: handleOffsets }), _jsx(SlashMenuPlugin, {}), _jsx(DragHandlePlugin, {}), _jsx(MarkdownShortcutsPlugin, {}), _jsx(TableActionsPlugin, {}), _jsx(CodeBlockPlugin, {}), _jsx(TogglePlugin, {}), _jsx(ImagePlugin, {}), _jsx(BlockClickPlugin, {}), _jsx(LinkClickPlugin, { editable: editable }), _jsx(Toolbar, { annotationAffordances: toolbarAnnotationAffordances }), _jsx(SearchPlugin, {}), _jsx(FrontmatterPlugin, { filePath: filePath }), _jsx(WikiLinkExistencePlugin, {}), _jsx(WikiLinkFormatPlugin, {}), _jsx(AnchorScrollPlugin, {}), documentOutlineHandle && _jsx(OutlinePlugin, { handle: documentOutlineHandle }), _jsx(SelectionContextMenuPlugin, { onSelectionContextMenu: onSelectionContextMenu,
547
548
  // Only kinds that actually ask for a context-menu affordance:
548
549
  // with none configured, or one on another surface, AnnotationPlugin
549
550
  // would decline the command anyway, and dispatching from here would
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Pasted content never carries annotation marks.
3
+ *
4
+ * A live `MarkNode` is placed by the annotation surface for an annotation the
5
+ * host owns; it is not document content. Lexical 0.50 changed the in-editor
6
+ * clipboard payload to ask `excludeFromCopy('clone')`, which `MarkNode`
7
+ * answers by staying in the copy, so pasting annotated text produced a second
8
+ * mark with the same annotation ids — a highlight nothing placed, and a second
9
+ * rect reported for one annotation. Before 0.50 the mark was dropped on copy;
10
+ * this restores that by unwrapping marks on the way in, whatever the source.
11
+ *
12
+ * Mounted unconditionally: `MarkNode` is always registered, whether or not
13
+ * annotation kinds are configured.
14
+ */
15
+ export declare function MarkNodePastePlugin(): null;
@@ -0,0 +1,60 @@
1
+ import { useEffect } from 'react';
2
+ import { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext';
3
+ import { $isMarkNode } from '@lexical/mark';
4
+ import { $isElementNode, COMMAND_PRIORITY_CRITICAL, SELECTION_INSERT_CLIPBOARD_NODES_COMMAND, } from 'lexical';
5
+ /**
6
+ * Pasted content never carries annotation marks.
7
+ *
8
+ * A live `MarkNode` is placed by the annotation surface for an annotation the
9
+ * host owns; it is not document content. Lexical 0.50 changed the in-editor
10
+ * clipboard payload to ask `excludeFromCopy('clone')`, which `MarkNode`
11
+ * answers by staying in the copy, so pasting annotated text produced a second
12
+ * mark with the same annotation ids — a highlight nothing placed, and a second
13
+ * rect reported for one annotation. Before 0.50 the mark was dropped on copy;
14
+ * this restores that by unwrapping marks on the way in, whatever the source.
15
+ *
16
+ * Mounted unconditionally: `MarkNode` is always registered, whether or not
17
+ * annotation kinds are configured.
18
+ */
19
+ export function MarkNodePastePlugin() {
20
+ const [editor] = useLexicalComposerContext();
21
+ useEffect(() => editor.registerCommand(SELECTION_INSERT_CLIPBOARD_NODES_COMMAND, ({ nodes }) => {
22
+ // In place: every later handler, and the default insertion, read
23
+ // this same array.
24
+ nodes.splice(0, nodes.length, ...$unwrapMarks(nodes));
25
+ return false;
26
+ }, COMMAND_PRIORITY_CRITICAL), [editor]);
27
+ return null;
28
+ }
29
+ /** Replaces every `MarkNode` in `nodes`, at any depth, with its children. */
30
+ function $unwrapMarks(nodes) {
31
+ const out = [];
32
+ for (const node of nodes) {
33
+ if ($isMarkNode(node)) {
34
+ const children = node.getChildren();
35
+ for (const child of children)
36
+ child.remove(true);
37
+ out.push(...$unwrapMarks(children));
38
+ }
39
+ else {
40
+ if ($isElementNode(node))
41
+ $unwrapNestedMarks(node);
42
+ out.push(node);
43
+ }
44
+ }
45
+ return out;
46
+ }
47
+ function $unwrapNestedMarks(element) {
48
+ for (const child of element.getChildren()) {
49
+ if ($isMarkNode(child)) {
50
+ for (const grandchild of child.getChildren())
51
+ child.insertBefore(grandchild);
52
+ child.remove();
53
+ // The moved children may themselves be (or contain) marks.
54
+ $unwrapNestedMarks(element);
55
+ return;
56
+ }
57
+ if ($isElementNode(child))
58
+ $unwrapNestedMarks(child);
59
+ }
60
+ }
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useCallback, useEffect, useState, useRef } from 'react';
3
3
  import { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext';
4
- import { $getSelection, $isRangeSelection, FORMAT_TEXT_COMMAND, SELECTION_CHANGE_COMMAND, COMMAND_PRIORITY_CRITICAL, COMMAND_PRIORITY_LOW, } from 'lexical';
4
+ import { $getSelection, $isRangeSelection, $onUpdate, FORMAT_TEXT_COMMAND, SELECTION_CHANGE_COMMAND, COMMAND_PRIORITY_CRITICAL, COMMAND_PRIORITY_LOW, } from 'lexical';
5
5
  import { $isLinkNode, TOGGLE_LINK_COMMAND } from '@lexical/link';
6
6
  import { getSelectedNode } from './utils.js';
7
7
  import { OPEN_ANNOTATION_COMPOSER_COMMAND } from './annotationCommands.js';
@@ -122,12 +122,18 @@ export function Toolbar({ annotationAffordances = [] }) {
122
122
  }, [editor, updateFormatFlags]);
123
123
  useEffect(() => {
124
124
  const unregisterSelection = editor.registerCommand(SELECTION_CHANGE_COMMAND, () => {
125
- updateVisibility();
126
- if (editor.isEditable()) {
127
- editor.getEditorState().read(() => {
128
- updateFormatFlags();
125
+ // Since Lexical 0.52 this command runs inside the pending update,
126
+ // before DOM reconciliation: `getEditorState()` would still hold the
127
+ // previous selection, and the native selection may not have moved
128
+ // yet. Defer both reads until the update has committed.
129
+ $onUpdate(() => {
130
+ editor.read('latest', () => {
131
+ updateVisibility();
132
+ if (editor.isEditable()) {
133
+ updateFormatFlags();
134
+ }
129
135
  });
130
- }
136
+ });
131
137
  return false;
132
138
  }, COMMAND_PRIORITY_CRITICAL);
133
139
  // Also listen for format changes to update button states
@@ -10,7 +10,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
10
10
  */
11
11
  import { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext';
12
12
  import { mergeRegister } from '@lexical/utils';
13
- import { $getNodeByKey, $getSelection, $isNodeSelection, COMMAND_PRIORITY_HIGH, KEY_ESCAPE_COMMAND, SELECTION_CHANGE_COMMAND, } from 'lexical';
13
+ import { $getNodeByKey, $getSelection, $isNodeSelection, $onUpdate, COMMAND_PRIORITY_HIGH, KEY_ESCAPE_COMMAND, SELECTION_CHANGE_COMMAND, } from 'lexical';
14
14
  import { useCallback, useEffect, useRef, useState, forwardRef } from 'react';
15
15
  import { createBrowserAdaptorDocument } from '../../../mathjax-config.js';
16
16
  import { $isEquationNode } from './EquationNode.js';
@@ -89,11 +89,13 @@ export default function EquationComponent({ equation, inline, nodeKey, }) {
89
89
  }
90
90
  if (showEquationEditor) {
91
91
  return mergeRegister(editor.registerCommand(SELECTION_CHANGE_COMMAND, () => {
92
- const activeElement = document.activeElement;
93
- const inputElem = inputRef.current;
94
- if (inputElem !== activeElement) {
95
- onHide();
96
- }
92
+ // Since Lexical 0.52 this runs before DOM reconciliation; check
93
+ // focus once the update has committed, as it did before.
94
+ $onUpdate(() => {
95
+ if (inputRef.current !== document.activeElement) {
96
+ onHide();
97
+ }
98
+ });
97
99
  return false;
98
100
  }, COMMAND_PRIORITY_HIGH), editor.registerCommand(KEY_ESCAPE_COMMAND, () => {
99
101
  const activeElement = document.activeElement;
@@ -12,11 +12,18 @@ import { useHostMessages } from '../../../host/messages.js';
12
12
  import { $isMermaidNode } from './MermaidNode.js';
13
13
  import { DiagramContextMenu, useDiagramContextMenu } from './DiagramContextMenu.js';
14
14
  // Initialize mermaid with default config
15
+ //
16
+ // `layout` and `look` pin mermaid 11's appearance. Mermaid 12 made ELK the
17
+ // default layout and `neo` the default look, which re-lays out and restyles
18
+ // every existing diagram in a user's documents. A dependency upgrade should
19
+ // not do that silently; adopting the new defaults is a decision of its own.
15
20
  mermaid.initialize({
16
21
  startOnLoad: false,
17
22
  theme: 'dark',
18
23
  securityLevel: 'strict',
19
24
  fontFamily: 'inherit',
25
+ layout: 'dagre',
26
+ look: 'classic',
20
27
  });
21
28
  // Mermaid Renderer component using Shadow DOM
22
29
  function MermaidRenderer({ code, onDoubleClick, }) {
@@ -16,7 +16,8 @@ const wikiLinkOptions = { aliasDivider: '|' };
16
16
  const EMPTY_ALIAS_SENTINEL = '__EMPTY_ALIAS__';
17
17
  // Private-Use-Area sentinel marking a `!` that immediately precedes `[[`
18
18
  // (candidate transclusion/embed marker, #119). The next free codepoint after
19
- // `annotate-sentinels.ts`'s E000-E003 range and `stringify.ts`'s E004.
19
+ // `annotate-sentinels.ts`'s E000-E003 range and E004, which `stringify.ts`
20
+ // used as its force-escape placeholder until that moved to U+2BFF.
20
21
  //
21
22
  // Why substitute at all, rather than just checking "does the wikiLink node
22
23
  // have a `!` text sibling" after parsing: the micromark wiki-link tokenizer
@@ -145,7 +145,18 @@ function addCheckboxTextToOrderedLists(root) {
145
145
  // backslash-free, it is provably invisible to the existing intraword-
146
146
  // underscore and bracket-preservation post-processes below, so neither one
147
147
  // needs to change to account for it.
148
- const FORCE_ESCAPE_PLACEHOLDER = '\u{E004}';
148
+ //
149
+ // It must classify as punctuation, because it stands in for a backslash.
150
+ // mdast-util-to-markdown >= 2.1.3 leaves an underscore unescaped when both
151
+ // neighbours are neither whitespace nor punctuation (`a_b`), and it sees the
152
+ // placeholder, not the backslash. The previous placeholder, U+E004, is
153
+ // private-use and so classified as a word character: an underscore typed
154
+ // beside a preserved escape went out bare and re-parsed as emphasis. No
155
+ // private-use codepoint can be punctuation, so this is an assigned symbol:
156
+ // U+2BFF HELLSCHREIBER PAUSE SYMBOL (`So`), chosen because nothing writes
157
+ // it. It must stay in the BMP: upstream reads neighbours with `charCodeAt`,
158
+ // which would see half of a surrogate pair and call that a word character.
159
+ const FORCE_ESCAPE_PLACEHOLDER = '\u{2BFF}';
149
160
  // The character class the placeholder-restoration post-process (below) is
150
161
  // allowed to wrap in a backslash. Kept narrow — rather than matching any
151
162
  // character between two placeholder codepoints — so that if the placeholder
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liminis/editor",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "//publishing": "Publishing is deliberate, never incidental. `private: true` was this package's guard until verveguy/liminis-editor#39 took the publish decision; it is gone because that decision was taken, not because it was tidied away. The guard is now `prepublishOnly` -> scripts/guard-publish.mjs, which refuses unless LIMINIS_ALLOW_PUBLISH=1 is set explicitly. That variable is set at step scope in .github/workflows/publish.yml and nowhere else, so a release is the only path that publishes. Note that `npm publish --dry-run` does NOT report a private package as blocked (npm 10.8.2), which is why the guard is a script rather than a flag.",
5
5
  "license": "MIT",
6
6
  "description": "Lexical-based markdown WYSIWYG editor with mdast round-trip and a host-injection seam",
@@ -81,36 +81,37 @@
81
81
  "build:examples": "node scripts/build-examples.mjs",
82
82
  "build:site": "node scripts/build-site.mjs"
83
83
  },
84
- "//peerDependencies": "Ranges are the compatibility contract, not the tested matrix. CI resolves one point version per range (currently react 19.2.x latest and lexical 0.49.x latest), so every caret range here has an untested lower half — narrowing `react` to the devDependency's `^19.2.5` would not change that, it would only reject working consumers. The react floor is not a claim, it is enforced: `tests/package-manifest-contract.test.ts` (\"imports no React API newer than the declared 19.2.0 peer floor\") scans every source file for post-19.0 named imports — `useEffectEvent`, `Activity`, `cacheSignal`, `ViewTransition`, `captureOwnerStack` — and fails if one appears. Reaching for a newer API therefore breaks CI until you raise the floor here too, which is the pairing this note would otherwise only assert. Raise a floor when the code actually starts needing a later API, not to mirror whatever CI happened to install. This reasoning does not extend to the Lexical ranges below — see `//lexicalPeerPolicy`.",
84
+ "//peerDependencies": "Ranges are the compatibility contract, not the tested matrix. CI resolves one point version per range (currently react 19.3.x latest and lexical 0.52.x latest), so every caret range here has an untested lower half — narrowing `react` to the devDependency's `^19.3.0` would not change that, it would only reject working consumers. The react floor is not a claim, it is enforced: `tests/package-manifest-contract.test.ts` (\"imports no React API newer than the declared 19.2.0 peer floor\") scans every source file for post-19.0 named imports — `useEffectEvent`, `Activity`, `cacheSignal`, `ViewTransition`, `captureOwnerStack` — and fails if one appears. Reaching for a newer API therefore breaks CI until you raise the floor here too, which is the pairing this note would otherwise only assert. Raise a floor when the code actually starts needing a later API, not to mirror whatever CI happened to install. This reasoning does not extend to the Lexical ranges below — see `//lexicalPeerPolicy`.",
85
85
  "//lexicalPeerPolicy": "The twelve Lexical ranges are a single-caret bump per Lexical minor actually adopted and tested here, not a wide multi-version band. `react`'s untested lower half (above) is safe because a break there would be a bug in a stable major; Lexical is `0.x`, where every minor is permitted to break, so a wide band would claim compatibility with untested, potentially-breaking releases. Widening a range later is patch-safe; narrowing one is breaking — so this stays narrow by default and moves forward only when the code is actually run against the new minor. See docs/decisions/adr-92-lexical-peer-range-policy.md.",
86
86
  "peerDependencies": {
87
- "@lexical/code": "^0.49.0",
88
- "@lexical/code-prism": "^0.49.0",
89
- "@lexical/link": "^0.49.0",
90
- "@lexical/list": "^0.49.0",
91
- "@lexical/mark": "^0.49.0",
92
- "@lexical/markdown": "^0.49.0",
93
- "@lexical/react": "^0.49.0",
94
- "@lexical/rich-text": "^0.49.0",
95
- "@lexical/selection": "^0.49.0",
96
- "@lexical/table": "^0.49.0",
97
- "@lexical/utils": "^0.49.0",
98
- "lexical": "^0.49.0",
87
+ "@lexical/code": "^0.52.0",
88
+ "@lexical/code-prism": "^0.52.0",
89
+ "@lexical/link": "^0.52.0",
90
+ "@lexical/list": "^0.52.0",
91
+ "@lexical/mark": "^0.52.0",
92
+ "@lexical/markdown": "^0.52.0",
93
+ "@lexical/react": "^0.52.0",
94
+ "@lexical/rich-text": "^0.52.0",
95
+ "@lexical/selection": "^0.52.0",
96
+ "@lexical/table": "^0.52.0",
97
+ "@lexical/utils": "^0.52.0",
98
+ "lexical": "^0.52.0",
99
99
  "react": "^19.2.0",
100
100
  "react-dom": "^19.2.0"
101
101
  },
102
+ "//mdast-util-to-markdown": "Pinned exactly, not a caret, and deliberately so. From 2.1.3 it leaves `_` unescaped when both neighbours are neither whitespace nor punctuation (`a_b`), and two places hand it a stand-in character instead of the real neighbour. (1) stringify.ts serialises a force-escaped character (#17) through a placeholder; that was private-use U+E004, which classifies as a word character, so an underscore typed next to a preserved escape went out bare and `a \\\\_b c_\\\\ d` re-parsed as emphasis. FIXED: the placeholder is now U+2BFF, a symbol, as the backslash it stands for is punctuation; the tests 'underscores beside force-escaped characters' in src/markdown/__tests__/stringify.test.ts cover it. (2) STILL OPEN: annotate mode splices sentinel tokens (U+E000-E003, annotate-sentinels.ts) into text, and those classify as word characters too, so a `_` at a mark boundary goes out bare where the plain export escapes it. That breaks the #970 invariant that annotate output differs from a plain export only by its tokens; fixtures 17-typed-underscore-after-inline-node and 17-escaped-backslash-then-underscore fail annotated-serialize-corpus.test.ts on 2.1.3+. Unlike the placeholder, a sentinel stands in for no character, so no fixed codepoint class is right. Move past 2.1.2 only once annotate mode keeps its tokens out of the library's view of neighbours and that suite passes.",
102
103
  "dependencies": {
103
- "@liminis/diagrams": "^0.1.5",
104
+ "@liminis/diagrams": "^0.1.6",
104
105
  "@mathjax/src": "^4.1.1",
105
- "lucide-react": "^1.11.0",
106
+ "lucide-react": "^1.49.0",
106
107
  "mdast-util-definition-list": "^2.0.0",
107
108
  "mdast-util-from-markdown": "^2.0.3",
108
109
  "mdast-util-frontmatter": "^2.0.1",
109
110
  "mdast-util-gfm": "^3.1.0",
110
111
  "mdast-util-gfm-footnote": "^2.1.0",
111
112
  "mdast-util-math": "^3.0.0",
112
- "mdast-util-to-markdown": "^2.1.2",
113
- "mermaid": "^11.14.0",
113
+ "mdast-util-to-markdown": "2.1.2",
114
+ "mermaid": "^12.0.0",
114
115
  "micromark-extension-definition-list": "^2.0.1",
115
116
  "micromark-extension-frontmatter": "^2.0.0",
116
117
  "micromark-extension-gfm": "^3.0.0",
@@ -118,51 +119,51 @@
118
119
  "micromark-extension-math": "^3.1.0",
119
120
  "micromark-extension-wiki-link": "^0.0.4",
120
121
  "prismjs": "^1.30.0",
121
- "yaml": "^2.8.3",
122
- "zod": "^4.3.6",
122
+ "yaml": "^2.9.1",
123
+ "zod": "^4.6.5",
123
124
  "zustand": "^5.0.12"
124
125
  },
125
126
  "devDependencies": {
126
127
  "@eslint/js": "^10.0.1",
127
- "@lexical/code": "^0.49.0",
128
- "@lexical/code-prism": "^0.49.0",
129
- "@lexical/link": "^0.49.0",
130
- "@lexical/list": "^0.49.0",
131
- "@lexical/mark": "^0.49.0",
132
- "@lexical/markdown": "^0.49.0",
133
- "@lexical/react": "^0.49.0",
134
- "@lexical/rich-text": "^0.49.0",
135
- "@lexical/selection": "^0.49.0",
136
- "@lexical/table": "^0.49.0",
137
- "@lexical/utils": "^0.49.0",
138
- "@testing-library/react": "^16.3.2",
128
+ "@lexical/code": "^0.52.0",
129
+ "@lexical/code-prism": "^0.52.0",
130
+ "@lexical/link": "^0.52.0",
131
+ "@lexical/list": "^0.52.0",
132
+ "@lexical/mark": "^0.52.0",
133
+ "@lexical/markdown": "^0.52.0",
134
+ "@lexical/react": "^0.52.0",
135
+ "@lexical/rich-text": "^0.52.0",
136
+ "@lexical/selection": "^0.52.0",
137
+ "@lexical/table": "^0.52.0",
138
+ "@lexical/utils": "^0.52.0",
139
+ "@testing-library/react": "^16.3.3",
139
140
  "@types/mdast": "^4.0.4",
140
- "@types/node": "^25.6.0",
141
- "@types/react": "^19.2.14",
142
- "@types/react-dom": "^19.2.3",
143
- "@vitejs/plugin-react": "^6.0.1",
141
+ "@types/node": "^24.19.1",
142
+ "@types/react": "^19.3.0",
143
+ "@types/react-dom": "^19.3.0",
144
+ "@vitejs/plugin-react": "^6.1.1",
144
145
  "@vitest/coverage-v8": "^4.1.5",
145
146
  "diff": "^9.0.0",
146
- "eslint": "^10.2.1",
147
+ "eslint": "^10.11.0",
147
148
  "eslint-plugin-react-hooks": "^7.1.1",
148
- "eslint-plugin-react-refresh": "^0.5.2",
149
- "globals": "^17.5.0",
150
- "happy-dom": "^20.9.0",
151
- "lexical": "^0.49.0",
152
- "react": "^19.2.5",
153
- "react-dom": "^19.2.5",
149
+ "eslint-plugin-react-refresh": "^0.5.7",
150
+ "globals": "^17.13.0",
151
+ "happy-dom": "^20.14.5",
152
+ "lexical": "^0.52.0",
153
+ "react": "^19.3.0",
154
+ "react-dom": "^19.3.0",
154
155
  "semver": "^7.8.5",
155
- "tsc-alias": "^1.9.1",
156
+ "tsc-alias": "^1.9.7",
156
157
  "typescript": "^6.0.3",
157
- "typescript-eslint": "^8.59.0",
158
+ "typescript-eslint": "^8.71.0",
158
159
  "vitest": "^4.1.5"
159
160
  },
160
161
  "repository": {
161
162
  "type": "git",
162
- "url": "git+https://github.com/verveguy/liminis-editor.git"
163
+ "url": "git+https://github.com/liminisapp/liminis-editor.git"
163
164
  },
164
165
  "bugs": {
165
- "url": "https://github.com/verveguy/liminis-editor/issues"
166
+ "url": "https://github.com/liminisapp/liminis-editor/issues"
166
167
  },
167
- "homepage": "https://github.com/verveguy/liminis-editor#readme"
168
+ "homepage": "https://github.com/liminisapp/liminis-editor#readme"
168
169
  }