mirror of
https://github.com/colanode/colanode.git
synced 2026-07-10 12:29:09 +02:00
* Mobile: replace inline page editor with WebView-based TipTap editor Replaces the plain-text block-by-block page editor with a Vite-built WebView that runs the full TipTap rich text editor. The editor HTML is bundled as a single self-contained asset, loaded via expo-asset and rendered in react-native-webview. Communication between RN and the WebView uses postMessage/onMessage bridge for init, mutations, queries, theme changes, and navigation. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Mobile: reorganize WebView editor as standalone package Moves the editor WebView app from apps/mobile/src/editor-webview/ to apps/mobile/webviews/editor/ as a first-class build target with its own package.json, tsconfig.json, and vite.config.ts. This fixes TypeScript compilation (editor code no longer typechecked as React Native) and makes the build story clearer. - WebView editor is now at apps/mobile/webviews/editor/ - Built artifact copied to apps/mobile/assets/editor-dist/ on prestart - Vite dev server support for fast iteration - Tailwind CSS @source path fixed (../../../../packages/ui) - Page title editing restored via RenameNodeSheet - File preview now converts file:// to base64 data URLs for WebView - WebView hidden until ready to avoid white flash - Keyboard accessory bar hidden on iOS Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
27 lines
957 B
JSON
27 lines
957 B
JSON
{
|
|
"compilerOptions": {
|
|
"strict": true,
|
|
"target": "ES2023",
|
|
"lib": ["ES2023", "DOM", "DOM.Iterable"],
|
|
"module": "esnext",
|
|
"moduleResolution": "bundler",
|
|
"esModuleInterop": true,
|
|
"allowSyntheticDefaultImports": true,
|
|
"jsx": "react-jsx",
|
|
"skipLibCheck": true,
|
|
"resolveJsonModule": true,
|
|
"typeRoots": ["../../../../node_modules/@types"],
|
|
"paths": {
|
|
"@colanode/core/*": ["../../../../packages/core/src/*"],
|
|
"@colanode/crdt/*": ["../../../../packages/crdt/src/*"],
|
|
"@colanode/client/*": ["../../../../packages/client/src/*"],
|
|
"@colanode/ui/*": ["../../../../packages/ui/src/*"],
|
|
"@tiptap/core": ["../../../../packages/ui/node_modules/@tiptap/core"],
|
|
"@tiptap/react": ["../../../../packages/ui/node_modules/@tiptap/react"],
|
|
"@tiptap/pm/*": ["../../../../packages/ui/node_modules/@tiptap/pm/*"]
|
|
}
|
|
},
|
|
"include": ["src/**/*"],
|
|
"exclude": ["node_modules", "dist"]
|
|
}
|