Wwordcraft-reactv0.3.6
@gamine/wordcraft-react

Access levels

View, comment, suggest or edit, enforced by the editor and changeable live.

A viewer: the access chip at the bottom right, and typing refused
A commenter adding a comment through the panel
The comments panel: a thread with a mention, an assignment and a reply

View, comment, suggest or edit, enforced by the editor itself and changeable while the document is open.

permission sets what a person may do, as Google Docs' link access does: 'view', 'comment', 'suggest' or 'edit' (the default). The editor enforces it, not only your buttons: typing, paste, drag and drop, AutoCorrect, find and replace and AI results all go through the same commands, and the commands refuse.

LevelCanCannot
viewRead, select, copy, print, exportChange anything; comments are read only (commentsVisibleToViewers={false} hides them)
commentEverything a viewer can, plus add, reply to and resolve commentsChange the text
suggestEdit, but every change is a tracked suggestion (the mode switch is locked to Reviewing)Accept or reject changes, turn tracking off
editEverything

Change the prop at runtime and it applies at once; when it goes down, the person sees a short notice saying why. A chip at the bottom right says "Viewing", "Commenting" or "Suggesting". allowCopy={false} also stops viewers and commenters copying, printing and downloading. Underneath it uses WordCraft's Restrict Editing, so a saved .docx carries the same protection into Word.

Up next