RichTextEditor (toolbar + slash menu + async mentions, SSR-safe via immediatelyRender:false) + RichTextViewer (generateHTML, server-renderable) + standalone Toolbar. Pure filterSlashItems/filterUsers helpers. 12/12 vitest (incl. live editor mount + bold toggle in happy-dom); tsc clean; published to Gitea.
49 lines
1.2 KiB
JSON
49 lines
1.2 KiB
JSON
{
|
|
"name": "@bytelyst/rich-text",
|
|
"version": "0.1.0",
|
|
"type": "module",
|
|
"description": "Tiptap v3 rich-text editor + viewer with a token-themed toolbar, slash-menu and async mention extensions. SSR-safe for Next.",
|
|
"exports": {
|
|
".": {
|
|
"import": "./dist/index.js",
|
|
"types": "./dist/index.d.ts"
|
|
}
|
|
},
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"test": "vitest run --pool forks",
|
|
"typecheck": "tsc --noEmit"
|
|
},
|
|
"peerDependencies": {
|
|
"react": ">=18.0.0",
|
|
"react-dom": ">=18.0.0"
|
|
},
|
|
"dependencies": {
|
|
"@tiptap/core": "^3.23.6",
|
|
"@tiptap/extension-link": "^3.23.6",
|
|
"@tiptap/extension-mention": "^3.23.6",
|
|
"@tiptap/extension-placeholder": "^3.23.6",
|
|
"@tiptap/html": "^3.23.6",
|
|
"@tiptap/pm": "^3.23.6",
|
|
"@tiptap/react": "^3.23.6",
|
|
"@tiptap/starter-kit": "^3.23.6",
|
|
"@tiptap/suggestion": "^3.23.6",
|
|
"clsx": "^2.1.0"
|
|
},
|
|
"devDependencies": {
|
|
"@testing-library/react": "^16.3.2",
|
|
"@types/react": "^19.2.14",
|
|
"@types/react-dom": "^19.2.3",
|
|
"happy-dom": "^18.0.1",
|
|
"react": "^19.2.4",
|
|
"react-dom": "^19.2.4",
|
|
"typescript": "^5.7.3",
|
|
"vitest": "^4.0.18"
|
|
}
|
|
}
|