@platejs/cli
Patch Changes
-
- Add
plate syncfor three-way hash-tracked shadcn registry UI updates that preserve local customizations and write upstream review patches - Add
plate skills syncfor syncing SHA-256 verifiedSkillBundleV1skill bundles with Bearer token support via--token-env
- Add
-
8bf4dd4by @zbeyens – Forwardplate verify [args...]verbatim to a localplate-verifyexecutable innode_modules/.binorPATH.
@platejs/test
Patch Changes
8bf4dd4by @zbeyens – AddcreateEditorArbitraryfor deterministic, zero-dependency document generation from a compiledEditorSchemaContract.
platejs
Patch Changes
-
7126f37by @zbeyens – Add optionalonTracelifecycle hook andEditorAgentTraceEventtype toplatejs/ai(createEditorAgent,createSyncServerAgent, anduseEditorAgent). -
79c2f03by @zbeyens – Report invalid HTML DOM attribute names as lossy unsupported-content warnings, enforce<style>stylesheet budgets in UTF-8 bytes, preserve schema validation details on DOCXdecode-failederrors, and remove module-global DOM caching fromWordPastePlugin -
22d2df5by @zbeyens – Harden DOCXcustomXmlreview-record verification against forged or orphanedauthored-*records and causal clock jumps (also refusingretainSourcewhen a review part fails verification), bound<style>inlining matched declarations and merged style bytes in HTML parsing, clampmso-tab-countto[0, 32]and strip CSS comments in Word table style cleanup, and detect ExcelGeneratormeta tags inWordPastePlugin. -
8e65a20by @zbeyens – Add unified 6-action comment lifecycle (create,reply,edit,delete,resolve,reopen), filterededitor_list_comments,EditorReadBlock.openComments, neutralmeta.tool: 'read_ink'presence metadata, and confinement/hook fixes inplatejs/aiandplatejs/ai/react -
- Isolate
BaseFindPluginin-transaction updates so rolled-back composed transactions never leak draft matches, skip advances, or clear live highlights - Advance
BaseFindPluginupdate.replace()past locked, void, and struck-suggestion active matches without mutating the document or pushing undo steps - Paint
BaseFindPluginhighlights inAuthoredPluginpreview views and invalidate cached searches after schema swaps
- Isolate
-
6891e1cby @zbeyens – Harden DOCXreviewPartadmission against non-authored records, DOCX-dropped properties (locked), disallowed link schemes, and hidden deletions, and enforce schema admission inWordPastePluginequation materialization. -
- Validate
parseHtmloptions before browser DOM orlinkedomsetup and validateimportDocxoptions beforeAbortSignalchecks so invalidlossPolicyandlimitsalways throwTypeError. - Report
schema-repairanddecode-faileddiagnostics when fitting imported DOCXword/comments.xmlbodies instead of repairing silently or throwing uncaught schema errors, and clarify the DOCX omitted-image diagnostic message. - Skip
DOMParserinWordPastePluginfor non-Office HTML clipboard payloads and classifyplatejs/docx/importandplatejs/docx/exportas headless Node entrypoints.
- Validate
-
- Round-trip paragraph
lineHeightand non-listindentthrough DOCX import and export. - Decode pasted HTML margin indentation across
px,pt,em,rem,in,cm, andmmunits. - Reject direct nested
columnGroupnodes insidecolumnelements in the schema.
- Round-trip paragraph
-
31c2691by @zbeyens – KeepAlt,Ctrl, andMetaarrow shortcuts browser-owned onResizeHandleand skip already-prevented file drags and drops inUploadPlugin -
5374e45by @zbeyens – LeaveCtrl+Tab,Alt+Tab, andMeta+Tabto the browser instead of moving focus inTabbablePlugin -
- Fix
BaseCommentsPluginapplyRemoteupserts to promote live orphan and pending composer anchors instead of detaching or Tier-3-teleporting them, and retire matching pending composers on remote commit handoff.
- Fix
-
- Export
fitCommentBody(body, { to, from? })andFitCommentBodyOptionsfromplatejs/commentsto adapt comment values to a target editor schema while projecting foreign void elements from the source editor's plain-text formats. - Export
SyncRefusalandisSyncRefusalfromplatejs/sync. - Rename
CommentThreadIndex.changeThreadstoCommentThreadIndex.groupThreadsinplatejs/comments/react, keyed by every pending authored group ID across split suggestion groups. - Fix unresolved comment anchor retries after adjacent block edits or interior block deletions and report
'ambiguous-quote'for overlapping repeated quotes whenoccurrenceis omitted.
Migration: Replace
index.changeThreadswithindex.groupThreadskeyed byAuthoredChangeGroup.id:const threadIds = index.groupThreads.get(group.id) ?? [];
- Export
-
- Fix DOCX export comment anchoring on void blocks (
horizontalRule,equation, captionlessimage, andtoc), mark preservation on markable{ dropped, text }inline voids,CommentReferencestyle emission, and JPEG dimension parsing with standalone markers - Fix DOCX import security and loss-policy gaps: enforce XML/relationship limits and lossy inventory on uppercase
.XML/.RELSpart names, block smuggled non-decoded media elements and spoofed hyperlink URLs incustomXmlreview parts, report dangling endnote references, reject duplicate review parts, preserve end-of-paragraph to void-block comment anchors, split review-part fallback diagnostics from native revisions, and normalize pre-aborted signals without.reason - Fix Word paste hidden-text detection (
mso-hide: alland stylesheetdisplay: noneon elements with resource-bearing inline CSS without inverting!importantcascade order), container-block HTML wrapping, newline-delimited RTF image hex parsing, and redundant DOM parsing
- Fix DOCX export comment anchoring on void blocks (
-
- Reject duplicate ZIP entry names (exact and case-insensitive) in
importDocx, enforce XML depth/node limits and loss inventory across all OPC-linked XML parts regardless of filename case or extension, tightencustomXmlreview-part verification across stored, proposed, and accepted views (blocking link, equation, void, andauthoredmark smuggling), strip dropped properties from exported review parts, and report unresolved<w:hyperlink>targets as lossy underlossPolicy: 'reject' - Synthesize Word
w:rPrChangerevisions through the canonical run-property compiler so pending formatting suggestions preserve color, background, font, highlight, code, and keyboard marks, stampw14:paraIdon the last paragraph of multi-paragraph comments per[MS-DOCX], parsemmdimensions and reject non-positivemargins/pageSizevalues, attach comments on void blocks, preserverowSpantable review bookmarks and detached reviewrecords, scale wide-table cell widths to matchw:tblGrid, resolvehighlight+backgroundColorwithout conflicting Word fills, and applystyles.taskCheckedto checked task headings and image captions - Fix retained-source preservation limits and case-insensitive part matching, Word table
<w:bidiVisual w:val="0"/>detection, nativew:pPrChangeimage and list restoration, package-widemaxRevisions, non-combiningm:accmath accents, nested OMML revision counting,renderLatexToOmmlfallback reporting,numStyleLinkbasedOninheritance, code-block indent warnings, named-root table review diagnostics,toDocxCommentsempty-message counts and reply targets,decodeIrBlocksblock coverage, XML 1.0 unpaired surrogate stripping, and Word clipboard paste prototype-key crashes and RTF hex memory spikes
- Reject duplicate ZIP entry names (exact and case-insensitive) in
-
- Remove the optional
jszippeer dependency fromplatejs/docx/exportso DOCX export and import both use@zip.js/zip.jsdirectly without extra packages - Decode embedded raster body images through
BaseImagePlugin(bounded byDocxImportLimits.maxImageBytesandmaxTotalImageBytes) and round-tripcodeBlocknodes through WordHTML Preformattedstyles - Report unresolved Word footnote references as lossy diagnostics, reject duplicate root metadata relationships and uninspected ZIP metadata during source retention, classify dropped endnotes as invalidated, and cap Word RTF clipboard images at 5 MiB per image / 20 MiB total
- Remove the optional
-
e151054by @zbeyens – Inline safe<style>CSS rules (including in-body style blocks and unconditional@media screen/allrules) during HTML parsing in both browser and server entrypoints while preserving inline-style precedence,!important, resource-bearing CSS filtering (including CRLF hex escapes), and linear-time CSS/URL parsing. -
- Enforce
BaseLockPluginblock and content-root lock rules duringSyncServerpeer admission while preserving client remote replay,server.runturns,lockWriteExemptionfills, and authorized lock/unlock commits
- Enforce
-
- Serialize non-paragraph list items admitted by
BaseListPlugin's configuredtargetPlugins(such as headings, blockquotes, code blocks, and<details>) as Markdown list items (including inside GFM table cells) while checkingBaseListPluginproperty ownership so custom plugins with their ownlistTypeproperty are never hijacked on serialize or parse. - Preserve list numbering, nesting, headings, and multi-paragraph containers when copying multi-block open selections as
text/markdownwhile keeping single-block partial-selection unwrapping. - Split custom block elements decoded from inline Markdown nodes out of paragraphs using schema block/inline metadata instead of hardcoding
image. - Elide key-reordered
omitDefaultJSON tag attributes on Markdown serialize, escape attributes and preserve enclosing marks on refused inline tag fallbacks, skip synthetic emoji probes for non-remark-emojicustom plugins on serialize, preserve leading spaces after a BOM on plain-text Markdown paste, and halt tail-healing cleanly on unclosed<https://...autolinks without poisoning later inline code.
- Serialize non-paragraph list items admitted by
-
- Stop preventing default on
Shiftandkeyupevents inNodeSelectionkeyboard navigation and reuse Plite's Shadow DOM composed-range helper
- Stop preventing default on
-
- Keep incomplete streaming Markdown links inert (
#) inincompleteLinks: 'placeholder'mode (including nested-bracket links and linked badges), hold unclosed streaming images until)closes in both'placeholder'and'text'modes, preserve outer emphasis inincompleteLinks: 'text'when labels contain balanced markers, support balanced parentheses inside streaming URLs, suppress partial 1-2 character setext underline heading flashes (including trailing space/tab and blockquotes), and keep incremental GFM table row streaming active across 1-3 leading spaces. - Reuse unchanged leading child rows inside growing containers in
EditorStatic(both plain and decorated) so streaming tables stay O(N) instead of re-rendering every prior row on each tick.
- Keep incomplete streaming Markdown links inert (
-
87d20bdby @zbeyens – ChangeuseAuthoredGroupsinplatejs/authored/reactto accept an optionalAuthoredGroupQuery({ at?, authorId? }) matchingAuthoredPlugin.read.groups, and re-exportAuthoredGroupQueryfromplatejs/authored/react.Migration: Replace positional
useAuthoredGroups(blockKey)calls withuseAuthoredGroups({ at: blockKey }), or calluseAuthoredGroups()to read all pending groups in document order. -
218d65aby @zbeyens – Clamp extreme and staircase rawrowSpan/colSpanoverflow during table paste, ignorecutin read-only and authored-preview table views, preserve IME composition during table arrow and select-all keys, returnfalsefromuseTableResizeon grid-locked or authored-preview tables, and guard column-handle drag start and click-suppression timers inuseTableControls.
plitejs
Patch Changes
-
0191834by @zbeyens – Preserve builder-recorded V4 steps on plain editing commits whenAuthoredPluginis installed so replacing selected text over a concurrent offline deletion keeps every typed letter. -
31c2691by @zbeyens – Skip already-prevented and IME-composing keydown events inuseEditorHistory().onKeyDown -
b06aae0by @zbeyens – Allow native browser keys such as Spacebar scrolling in non-editable read-only editors instead of callingpreventDefault()on keydown. -
c4fbf66by @zbeyens – Fix Shadow DOM selection, integrity observation, andtextToCaretresolution across nested shadow roots, stoponInputstopPropagation()calls from suppressing pending editor input flushes, block modified read-only Delete/Backspace hotkeys oncontentEditablehosts, fix multi-leaf native text fallback offsets, ignore non-primarymouseupevents inonPointerSelectionEnd, and clean up active Android compositions on root teardown. -
33a649eby @zbeyens – Leave auxiliary mouse buttons, secondary clicks on root chrome or blank editable roots, and non-primary mouse drags to the browser -
5374e45by @zbeyens – Leave secondary and auxiliary mouse presses on void and object surfaces to the browser -
87d20bdby @zbeyens – Pair shifted merged table cells (colSpan/rowSpan) incomparewhen covered columns and rows align so edits inside shifted merged cells diff inline instead of replacing the whole cell. -
7272c17by @zbeyens – Allow draggable button controls inside inline voids to initiate and accept native drag moves, suppress native dragover handling in read-only editors, and measure void drop ranges against the enclosing void host using paragraph direction for RTL. -
6ec09daby @natamox – Fix iOS Safari Enter auto-capitalization on new paragraphs and keep iOS Backspace synchronized with Korean IME composition across all device languages. -
- Preserve named roots across
state.points.*,state.ranges.*, and character-step reads, and reject mismatched roots inrange() - Land a collapsed caret in the default block after deleting all blocks in a
min: 1orprefixroot viaNodeSelection - Deep-freeze
SelectionApi.textinsertion marks andAnchor.resolve()values, and accept omitted options intx.anchorandeditor.anchor - Read Shadow DOM selection endpoints consistently across selection import/export and restore partial expanded delete fallback in
beforeinput
- Preserve named roots across
-
- Add
'sync-admit'canonical update tag forSyncServerpeer candidate admission and surface pluginEditorRefusalErrorrefusals as non-abuse'policy'receipts with refusal reason codes
- Add
-
- Export
SyncRefusalandisSyncRefusalfromplitejs/syncto narrow transaction refusals ('sync-opening','sync-stopped','sync-read-only', and'sync-decide-denied').
- Export
-
624209cby @sin6626 – EmitonPointerSelectionEndfor primary touch and pen taps and touch long-press selections so Format Painter works by touch on Android
Full changelog: v54.0.0-beta.12...v54.0.0-beta.13