d310635b65
Wire real spell-checking into the editor via hunspell-wasm (bundled en_US dictionary) and an optional LanguageTool grammar client. - spell/: HunspellSpellEngine wrapper, pure spell logic, base64 en_US dict - grammar/: LanguageToolEngine grammar client and pure grammar logic - decorations/: collectBlock text assembly, offset-mapped CheckService, buildCheckDecorations (flat DecorationSet, inline spell/grammar marks) - export engines and types from editor index; add hunspell-wasm dep Verified: typecheck (6 pkgs), tests (all pass), lint (6 pkgs), and web build all green.
38 lines
961 B
JSON
38 lines
961 B
JSON
{
|
|
"name": "@pubscript/editor",
|
|
"version": "0.1.0",
|
|
"type": "module",
|
|
"main": "./src/index.ts",
|
|
"types": "./src/index.ts",
|
|
"exports": {
|
|
".": "./src/index.ts",
|
|
"./schema": "./src/schema.ts",
|
|
"./Editor": "./src/Editor.tsx",
|
|
"./markdown": "./src/markdown.ts",
|
|
"./styles": "./src/styles/editor.css"
|
|
},
|
|
"scripts": {
|
|
"dev": "echo \"@pubscript/editor has no dev server\" (exit 0)",
|
|
"build": "tsc --noEmit",
|
|
"test": "vitest run",
|
|
"lint": "eslint .",
|
|
"typecheck": "tsc --noEmit"
|
|
},
|
|
"dependencies": {
|
|
"@pubscript/core": "workspace:*",
|
|
"@tiptap/core": "3.32.0",
|
|
"@tiptap/extension-text-style": "3.32.0",
|
|
"@tiptap/pm": "3.32.0",
|
|
"@tiptap/react": "3.32.0",
|
|
"@tiptap/starter-kit": "3.32.0",
|
|
"hunspell-wasm": "^0.3.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^22.10.2",
|
|
"@types/react": "^19.0.2",
|
|
"react": "^19.0.0",
|
|
"typescript": "^5.7.2",
|
|
"vitest": "^2.1.8"
|
|
}
|
|
}
|