Swap the plain <textarea> for a minimal Tiptap (ProseMirror) editor with IME-safe Enter-to-submit, Shift+Enter newline, placeholder support, and an optional imperative ref (getText/setText/focus/clear). All rich-text extensions are disabled — only plain text is allowed. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
50 lines
1.5 KiB
JSON
50 lines
1.5 KiB
JSON
{
|
|
"name": "@multica/ui",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"sideEffects": ["**/*.css"],
|
|
"exports": {
|
|
"./globals.css": "./src/styles/globals.css",
|
|
"./postcss.config": "./postcss.config.mjs",
|
|
"./lib/*": "./src/lib/*.ts",
|
|
"./components/*": "./src/components/*.tsx",
|
|
"./components/ui/*": "./src/components/ui/*.tsx",
|
|
"./components/markdown": "./src/components/markdown/index.ts",
|
|
"./components/markdown/*": "./src/components/markdown/*.tsx",
|
|
"./hooks/*": "./src/hooks/*.ts"
|
|
},
|
|
"dependencies": {
|
|
"@base-ui/react": "^1.1.0",
|
|
"@hugeicons/core-free-icons": "^3.1.1",
|
|
"@hugeicons/react": "^1.1.4",
|
|
"@multica/store": "workspace:*",
|
|
"@tiptap/extension-placeholder": "^3.19.0",
|
|
"@tiptap/pm": "^3.19.0",
|
|
"@tiptap/react": "^3.19.0",
|
|
"@tiptap/starter-kit": "^3.19.0",
|
|
"class-variance-authority": "^0.7.1",
|
|
"clsx": "^2.1.1",
|
|
"linkify-it": "^5.0.0",
|
|
"next-themes": "^0.4.6",
|
|
"qr-scanner": "^1.4.2",
|
|
"react": "catalog:",
|
|
"react-dom": "catalog:",
|
|
"react-markdown": "^10.1.0",
|
|
"rehype-raw": "^7.0.0",
|
|
"remark-gfm": "^4.0.1",
|
|
"shadcn": "^3.7.0",
|
|
"shiki": "^3.21.0",
|
|
"sonner": "^2.0.7",
|
|
"tailwind-merge": "^3.4.0",
|
|
"tailwindcss": "^4",
|
|
"tw-animate-css": "^1.4.0"
|
|
},
|
|
"devDependencies": {
|
|
"@tailwindcss/postcss": "^4",
|
|
"@types/linkify-it": "^5.0.0",
|
|
"@types/react": "catalog:",
|
|
"@types/react-dom": "catalog:",
|
|
"typescript": "catalog:"
|
|
}
|
|
}
|