Replace markdown editor with native Tiptap editor and add Home navigation

- Migrate renderer from md-editor/md-format to a Tiptap-based native editor
  (native-doc pipeline: native-doc, markdown-to-native, native-to-markdown,
  native-assembly, migration, backup)
- Use pointer-event-based chapter reordering with grab/grabbing cursors to
  avoid the Wayland prohibited-drop cursor while preserving reordering
- Add a persistent Home button that closes the open book and returns to the
  Folio library/welcome screen
- Update app icons, package deps, theme styles, and tests
This commit is contained in:
avi 2026-08-20 11:12:17 -05:00
commit 786a65ae2a
48 changed files with 5762 additions and 3999 deletions

View file

@ -0,0 +1,9 @@
// Headless automated test for the Tiptap editor integration (Stage 3).
// Verifies: editor command -> ProseMirror JSON state -> native persistence ->
// reload round-trip, plus loading a Markdown-migrated document into the editor.
//
// Run with: node tests/run-editor-test.mjs
export { createTiptapEditor, runCommand, getEditorDoc, setEditorDoc } from "../src/renderer/tiptap-editor.ts";
export { setChapterDoc, getChapterDoc, parseChapter, CURRENT_DOC_SCHEMA_VERSION } from "../src/main/native-doc.ts";
export { createBook, loadBook, saveMeta } from "../src/main/project.ts";
export { markdownToNative } from "../src/main/markdown-to-native.ts";