feat: add novel editor

This commit is contained in:
Jiang Feng
2025-04-26 00:20:49 +08:00
parent 26c2679b1a
commit ba8c5fbcd3
22 changed files with 3760 additions and 5 deletions

View File

@@ -17,8 +17,10 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@ai-sdk/react": "^1.2.9",
"@ant-design/icons": "^6.0.0",
"@hookform/resolvers": "^5.0.1",
"@nanostores/react": "github:ai/react",
"@radix-ui/react-accordion": "^1.2.8",
"@radix-ui/react-checkbox": "^1.2.3",
"@radix-ui/react-collapsible": "^1.1.8",
@@ -26,6 +28,7 @@
"@radix-ui/react-dropdown-menu": "^2.1.11",
"@radix-ui/react-icons": "^1.3.2",
"@radix-ui/react-label": "^2.1.4",
"@radix-ui/react-popover": "^1.1.11",
"@radix-ui/react-scroll-area": "^1.2.4",
"@radix-ui/react-select": "^2.2.2",
"@radix-ui/react-separator": "^1.1.4",
@@ -34,18 +37,23 @@
"@radix-ui/react-tabs": "^1.1.4",
"@radix-ui/react-tooltip": "^1.2.0",
"@t3-oss/env-nextjs": "^0.11.0",
"@tailwindcss/typography": "^0.5.16",
"best-effort-json-parser": "^1.1.3",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"cmdk": "^1.1.1",
"framer-motion": "^12.6.5",
"hast": "^1.0.0",
"highlight.js": "^11.11.1",
"katex": "^0.16.21",
"lowlight": "^3.3.0",
"lru-cache": "^11.1.0",
"lucide-react": "^0.487.0",
"motion": "^12.6.5",
"nanoid": "^5.1.5",
"next": "^15.2.3",
"next-themes": "^0.4.6",
"novel": "^1.0.2",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-hook-form": "^7.56.1",
@@ -54,9 +62,12 @@
"rehype-katex": "^7.0.1",
"remark-gfm": "^4.0.1",
"remark-math": "^6.0.0",
"sonner": "^2.0.3",
"tailwind-merge": "^3.2.0",
"tiptap-markdown": "^0.8.10",
"tw-animate-css": "^1.2.5",
"unist-util-visit": "^5.0.0",
"use-debounce": "^10.0.4",
"use-stick-to-bottom": "^1.1.0",
"zod": "^3.24.3",
"zustand": "^5.0.3"
@@ -88,4 +99,4 @@
"sharp"
]
}
}
}