dorfteich/packages/shared/package.json
Claude Sonnet 5 b89aa6bed0
Some checks failed
CD / Build and push images (push) Successful in 1m50s
CI / Lint, typecheck, test (push) Failing after 52s
CI / Auth e2e pack (push) Successful in 1m47s
CI / Build container images (push) Has been skipped
CD / Deploy to Test (push) Successful in 8s
CD / Smoke tests against Test (push) Successful in 1m5s
CD / Promote to Int (push) Successful in 10s
Add editor document schema in packages/shared (#24)
ProseMirror schema (headings 1-4, lists incl. task lists, blockquote,
code block, tables via prosemirror-tables, images, hard breaks; bold/
italic/code/strikethrough/link marks) plus docToMarkdown, markdownToDoc,
docToPlainText, docToHtml, and extractOutline built on it. Markdown
parsing extends markdown-it's default preset with a token-stream
transform for GFM task lists and table-cell paragraph wrapping.
docToHtml hand-rolls escaping and link-protocol allowlisting with zero
DOM dependencies, so it runs in the API/collab server as well as the
browser.

Node names `wikilink` and `plugin_block` are reserved for later stories.

Closes #24
2026-07-05 21:59:12 +02:00

41 lines
971 B
JSON

{
"name": "@dorfteich/shared",
"version": "0.0.0",
"private": true,
"description": "Types, schemas, and logic shared between web, api, and collab",
"license": "MIT",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"./i18n/*": "./i18n/*"
},
"files": [
"dist",
"i18n"
],
"scripts": {
"build": "tsup src/index.ts --format esm,cjs --dts --clean",
"typecheck": "tsc --noEmit",
"test": "vitest run --passWithNoTests"
},
"dependencies": {
"markdown-it": "^14.3.0",
"prosemirror-markdown": "^1.13.4",
"prosemirror-model": "^1.25.9",
"prosemirror-tables": "^1.8.5",
"zod": "^3.24.0"
},
"devDependencies": {
"@types/markdown-it": "^14.1.2",
"@types/node": "^26.1.0",
"tsup": "^8.3.0",
"vitest": "^3.0.0"
}
}