Files
Docwell/Packages/editor/package.json
T
tajniak81andClaude Opus 5.5 92cd81fd96 Add the slash menu, bubble menu, mentions and inline comments
Editor:
- "/" opens a filterable block menu (text, headings, lists, quote, code,
  divider, and image or file upload when the host can store files).
- Selecting text shows a formatting toolbar (bold, italic, strike, code,
  link) and, for anyone who may comment, a Comment button.
- "@" finds people in the page's workspace; the mention node is always in
  the schema so documents with mentions open in every client.
- The popups are plain DOM in the design system's slash-menu style, so
  the framework-free mobile bridge keeps building and can use them.
- Menu words come from the host; the web app passes English or Polish.

Inline comments (basic): commenters cannot edit the document, so a
comment's anchor is a pair of Yjs relative positions stored with the
comment rather than a mark in the text. Highlights follow local edits by
mapping and are re-resolved when comments change or remote edits arrive.
Pages get a comments panel (side column, or a bottom sheet on narrow
screens). Authors and space admins can delete comments.

Server: comments collection and endpoints, and a people lookup any
workspace member may use for mentions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 17:25:19 +01:00

37 lines
1009 B
JSON

{
"name": "@docwell/editor",
"version": "0.0.1",
"private": true,
"license": "AGPL-3.0-or-later",
"type": "module",
"main": "./src/index.ts",
"exports": {
".": "./src/index.ts",
"./extensions": "./src/extensions.ts",
"./provider": "./src/provider.ts",
"./editor.css": "./src/editor.css"
},
"dependencies": {
"@docwell/ui": "*",
"@floating-ui/dom": "^1.8.0",
"@tiptap/core": "^3.32.2",
"@tiptap/extension-bubble-menu": "^3.32.2",
"@tiptap/extension-collaboration": "^3.32.2",
"@tiptap/extension-collaboration-caret": "^3.32.2",
"@tiptap/extension-image": "^3.32.2",
"@tiptap/extension-mention": "^3.32.2",
"@tiptap/extensions": "^3.32.2",
"@tiptap/pm": "^3.32.2",
"@tiptap/starter-kit": "^3.32.2",
"@tiptap/suggestion": "^3.32.2",
"@tiptap/vue-3": "^3.32.2",
"@tiptap/y-tiptap": "^3.0.12",
"lib0": "^0.2.119",
"y-protocols": "^1.0.7",
"yjs": "^13.6.33"
},
"peerDependencies": {
"vue": "^3.5.0"
}
}