TipTap + tiptap-markdown render the document as it will appear; Markdown
stays the only storage/transport format so autosave/version conflicts,
server-side link+embed parsing, revisions, exports and the MCP tools are
all untouched.
- components/page-editor.tsx: edit-in-place blocks, Markdown input rules
(# / ** / [] ), slash block menu, formatting toolbar, GFM tables and
task lists, bare-URL paste offers a titled-link upgrade, superbrain:page
links navigate on click
- {{collection:...}} marker paragraphs render as live PageEmbedCards via a
paragraph node view (components/page-embed-card.tsx, extracted from the
pages client so both can use it without a cycle)
- the Eye/Pencil source<->preview toggle and the textarea are gone;
conflict banner, history restore and recovery drafts drive the editor
through resetContent()
- regressions drive the contenteditable via [data-page-editor] +
select-all + insertText (fill() cannot target contenteditable)
Pages stay Pages (no rename).
101 lines
3.1 KiB
JSON
101 lines
3.1 KiB
JSON
{
|
|
"name": "app",
|
|
"private": true,
|
|
"packageManager": "yarn@1.22.22",
|
|
"scripts": {
|
|
"dev": "next dev",
|
|
"build": "next build",
|
|
"start": "next start",
|
|
"lint": "eslint ."
|
|
},
|
|
"devDependencies": {
|
|
"@next/swc-wasm-nodejs": "16.3.3",
|
|
"@tailwindcss/typography": "0.5.20",
|
|
"@types/jsonwebtoken": "9.0.7",
|
|
"@types/node": "22.0.0",
|
|
"@types/react": "19.2.18",
|
|
"@types/react-dom": "19.2.4",
|
|
"@typescript-eslint/eslint-plugin": "8.18.0",
|
|
"@typescript-eslint/parser": "8.18.0",
|
|
"eslint": "9.33.0",
|
|
"eslint-config-next": "16.3.3",
|
|
"eslint-plugin-prettier": "5.1.3",
|
|
"eslint-plugin-react-hooks": "7.1.1",
|
|
"postcss": "8.4.47",
|
|
"tailwind-merge": "2.5.2",
|
|
"tailwindcss": "3.4.0",
|
|
"tailwindcss-animate": "1.0.7",
|
|
"ts-node": "10.9.2",
|
|
"tsx": "4.20.3",
|
|
"typescript": "5.6.3"
|
|
},
|
|
"dependencies": {
|
|
"@radix-ui/react-accordion": "1.2.0",
|
|
"@radix-ui/react-alert-dialog": "1.1.1",
|
|
"@radix-ui/react-aspect-ratio": "1.1.0",
|
|
"@radix-ui/react-avatar": "1.1.0",
|
|
"@radix-ui/react-checkbox": "1.1.1",
|
|
"@radix-ui/react-collapsible": "1.1.0",
|
|
"@radix-ui/react-context-menu": "2.2.1",
|
|
"@radix-ui/react-dialog": "1.1.1",
|
|
"@radix-ui/react-dropdown-menu": "2.1.1",
|
|
"@radix-ui/react-hover-card": "1.1.1",
|
|
"@radix-ui/react-label": "2.1.0",
|
|
"@radix-ui/react-menubar": "1.1.1",
|
|
"@radix-ui/react-navigation-menu": "1.2.0",
|
|
"@radix-ui/react-popover": "1.1.1",
|
|
"@radix-ui/react-progress": "1.1.0",
|
|
"@radix-ui/react-radio-group": "1.2.0",
|
|
"@radix-ui/react-scroll-area": "1.1.0",
|
|
"@radix-ui/react-select": "2.1.1",
|
|
"@radix-ui/react-separator": "1.1.0",
|
|
"@radix-ui/react-slider": "1.2.0",
|
|
"@radix-ui/react-slot": "1.1.0",
|
|
"@radix-ui/react-switch": "1.1.0",
|
|
"@radix-ui/react-tabs": "1.1.0",
|
|
"@radix-ui/react-toggle": "1.1.0",
|
|
"@radix-ui/react-toggle-group": "1.1.0",
|
|
"@radix-ui/react-tooltip": "1.1.2",
|
|
"@tiptap/extension-link": "^2",
|
|
"@tiptap/extension-placeholder": "^2",
|
|
"@tiptap/extension-table": "^2",
|
|
"@tiptap/extension-table-cell": "^2",
|
|
"@tiptap/extension-table-header": "^2",
|
|
"@tiptap/extension-table-row": "^2",
|
|
"@tiptap/extension-task-item": "^2",
|
|
"@tiptap/extension-task-list": "^2",
|
|
"@tiptap/react": "^2",
|
|
"@tiptap/starter-kit": "^2",
|
|
"autoprefixer": "10.4.20",
|
|
"class-variance-authority": "0.7.0",
|
|
"clsx": "2.1.1",
|
|
"cmdk": "1.0.0",
|
|
"date-fns": "4.0.0",
|
|
"embla-carousel-react": "8.3.0",
|
|
"framer-motion": "12.23.12",
|
|
"input-otp": "1.2.4",
|
|
"jsonwebtoken": "9.0.2",
|
|
"lucide-react": "0.446.0",
|
|
"next": "16.3.3",
|
|
"next-auth": "5.0.0-beta.32",
|
|
"next-themes": "0.4.0",
|
|
"react": "19.2.8",
|
|
"react-day-picker": "8.10.1",
|
|
"react-dom": "19.2.8",
|
|
"react-hook-form": "7.53.0",
|
|
"react-markdown": "10.1.0",
|
|
"react-resizable-panels": "2.1.3",
|
|
"remark-gfm": "4.0.1",
|
|
"sonner": "1.5.0",
|
|
"tiptap-markdown": "^0.9.0",
|
|
"vaul": "1.0.0"
|
|
},
|
|
"engines": {
|
|
"node": ">=20.9.0"
|
|
},
|
|
"resolutions": {
|
|
"motion-dom": "12.23.12",
|
|
"motion-utils": "12.23.6"
|
|
}
|
|
}
|