Repository navigation
Conversation
zbeyens
force-pushed
the
changeset-release/next
branch
29 times, most recently
from
November 25, 2026 11:58
1941a44 to
86c453e
Compare
zbeyens
force-pushed
the
changeset-release/next
branch
28 times, most recently
from
November 25, 2026 19:43
2aadce3 to
0da1d7f
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to next, this PR will be updated.
nextis currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, runchangeset pre exitonnext.Releases
platejs@54.0.0-beta.6
Patch Changes
33eb625by @zbeyens –useArrowPathand itsBoardArrowPathtype inplatejs/board/reactwith three components that draw an arrow inside itsBoardShape.BoardArrowPathis an SVGpathbetween the arrow's ends,BoardArrowheadis an SVGgthat draws its children at the arrow's end, andBoardArrowLabelis adivcentered on the arrow's middle. An arrow follows a moved, dragged or resized shape without a render. The components draw the straight arrow the board stores.Migration: Copy the
boardregistry item again with all its files, because the static arrow draws the head thatboard-stylesexports asARROW_HEAD. In your own arrow renderer, remove theuseArrowPath(element)call and its early return, then draw the path and head in an SVG and the label beside it. A press picks an arrow only when it lands on one of the arrow's elements, so keep a wide transparent path withpointerEvents="stroke":9e5dcaeby @zbeyens –13f3456by @zbeyens –fieldSubmissionandreadFieldAnswerstoplatejs/field.fieldSubmission(template, role, values, options?)builds one role's submission from a record keyed by field name, so an app sends its own data without mapping names to ids.readFieldAnswers(document, options?)reads a saved document's answers back by role and name. Each answer is aFieldAnswerwhosekindnarrows itsvalue, or one that names the problemanswer-conflictorname-conflict.startFieldValues(template, submissions, start, options?)toplatejs/field. It replays the roles that already submitted, asapplyFieldValuesdoes, and returns the filled document a role starts from, with each valuestartgives written on its field and on every other field of its name. A fieldstartleaves out starts blank, even one with a default, and so does a field that skips or waits on a role that has not submitted. The person who fills keeps, changes or clears each starting value and submits it as their own answer. Astartthat gives one name two values is refused asanswer-conflict.3fa7e45by @zbeyens –nameto fields. A name is a text that is not empty, has no space at either end, and holds no control character, line or paragraph separator or lone surrogate. Loading,insert,updateand a raw write refuse any other name, andapplyFieldValuesrefuses a template that holds one asinvalid-templatewith problemmalformed. HTML writes it asdata-field-name, Markdown as anameattribute, and both drop a name the rule refuses while keeping the field. A paste, a duplicate and a table fill keep the name and give the copy a newfieldId. Word export drops it with the other settings, and its warning now reads "Word keeps each field answer and drops its name and settings."name-conflictandanswer-conflicttoFieldProblem, whichread.fieldandread.fieldsreport. Fields of one role that share a name must share their kind, their options' values and their condition. Each field of a name whose fields differ readsname-conflict, and the same name in two roles never conflicts. Each field of a name whose fields hold different stored values readsanswer-conflict, so an empty text and no value differ. A copiedfieldcomponent that maps everyFieldProblemneeds both keys.applyFieldValuesrefuses a template whose fields of one role and name differ in settings asinvalid-templatewith problemname-conflict. Once a role's submission applies, it refuses each name of that role whose fields hold different answers as{ code: 'answer-conflict', fieldIds, name, role }, with every field of the name in document order, unless the submission already refused a field of the name asinvalid-value,wrong-role,skippedorwaiting. A name whose required field the submission left out still getsanswer-conflictbesidemissing-required.applyFieldValuesrefusal that names a field also carries that field'snamewhen it has one:invalid-template,invalid-value,missing-required,skipped,waitingandwrong-role. Code that switches overFieldRefusaland readsfieldIdin a default branch needs ananswer-conflictcase, which hasfieldIdsinstead.updatewrites avalue, a cleared one included, to every field of the role that shares the field's name, in the same commit and the same undo step, unless the name readsname-conflict. No other setting reaches the other fields.namechanges the schema fingerprint of every editor with the field plugin.Migration: A saved document holds no names, so it fills by
fieldIdas before. What to change depends on how the app saves:With a named schema, bump
schema.version, record the old fingerprint undersourceFingerprints, and add a migration step that returns the document unchanged.If the app's own schema declared a
nameproperty on fields, remove that declaration. Its migration step moves each stored value to a key of the app's own, or keeps it only where the app means one answer per name and the value passes the name rule.With the default derived identity and saved
{ document, schema }envelopes, the editor refuses the old envelope because its fingerprint no longer matches. Check that the stored fingerprint is the one the editor produced before this change, then open the document with its selection and save it again:Name the schema from then on, as the editor guide's Schema identity section advises.
An app that saves the bare document changes nothing.
A populated Yjs room keeps the schema identity it was created with, so an editor with this version cannot join it. Convert the room's document, seed a new room with it, and move every writer to the new room.
d4459c6by @zbeyens –platejs/ink/react.setTool({ size, type: 'erase' })removes each mark whose painted ink the eraser's path touches. One contact's removals undo as one step unless another edit, local or remote, lands between them.InkToolis now a union, so code that readstool.brushcheckstool.type === 'draw'first.386eb10by @zbeyens –platejs/ink/react.setTool({ type: 'lasso' })draws a loop that picks the marks with more than half their samples inside it, and its press focuses the Editable so the keys reach the pick. While the lasso is on, Backspace or Delete removes the picked marks in one undo step and Escape clears the pick. Keys with Alt, Control or Meta, input method keys and the repeats of a held key leave the pick alone. Any other tool and hiding ink clear the pick. An eraser or lasso contact now ends when its primary button lifts while another button stays down.e7e7ac4by @zbeyens –platejs/ink/react, changing the Draw tool, hiding ink or turning the view read-only now ends the current pen or eraser contact at once, and a pen stroke that ends this way saves nothing more. Turning the view read-only turns the tool off, even when it turns back in the same batch. While ink is hidden, every press reaches the content. The pen and the eraser read the layer's position at each sample, so a removal that moves the layer leaves the next sample on the ink under the pointer.setToolreturns false and keeps the current tool for asizethat is not a finite number above 0, a brushopacitythat is not a number above 0 and at most 1, or a brushcolorthat is not a non-empty string.0274644by @zbeyens –platejs/ink, a mark drawn on a mention, or on another inline void, now shows its changed sign once that void is swapped for a different one or its properties change, instead of staying on the new one. A void's id and review marks don't count, so a mark on a suggested mention stays live when the suggestion is accepted. A mark saved before this change on a block that holds an inline void shows that sign too, because its saved copy has no record of the voids.257320aby @zbeyens –matchcallback receives in a plugin'stx.nodes.setasElementinstead ofany.plitejs@54.0.0-beta.6
Patch Changes
9e5dcaeby @zbeyens –nearestrange anchor one point, and drop adroprange anchor, when one update deletes all of its text across a mark change, such as from plain into bold text, so a letter typed there later stays outside the range.c58baadby @zbeyens – Speed up accepting and rejecting a suggestion in an editor whose elements store generated ids, such as one with Plate'sElementIdPlugin. A decision resolves only the blocks its change touches instead of the whole document.b1c85ddby @felixfeng33 – Fix a decision that returnedblockeduntil another author's change was decided when it emptied a line or a quote, unwrapped a quote, or landed a join on a line it removed. The decision now applies, and the other author's change stays pending on what is left. For example, accepting the deletion of a line's text while another author struck the whole line leaves an empty line that the strike still decides, and a line built to keep a quote from being empty joins any insertion or deletion pending on that quote. A change also no longer waits on a change of the same author that the review shows as another card, such as a heading and the deletion of that line's text. Removing a piece of a link that another author split no longer waits on that split. One author's decisions still give the same result in every order.89ff464by @zbeyens – Undo history no longer reads a document's whole top-level list when it merges an update into the undo step before it. In a document of 10,000 paragraphs, each merged keystroke read all 10,000 before this change and reads none now.9d8f6ebby @zbeyens – Undo history now merges an update that writes only properties of several nodes into the step before it inside the merge window. Both updates must write the same properties on the same nodes, in one root or across several. An update on one node keeps merging whatever properties it writes. Two updates in one composition that write properties across several roots merge only when they touch the same roots. Anew-batchupdate still starts its own step.5745de8by @zbeyens –insertTransposeinput, leaving the text unchanged in a mounted editor.e362966by @zbeyens –fill.<n>id, so every editor that loads one document holds the same ids. A repeated id stays on its first element.createEditorwith aninitialValueno longer throws on an element without an id, and a loaded element under Plate'sElementIdPlugingets afill.id instead of anelement-id.e12ef78by @zbeyens –MediaEmbedRules.autoEmbed({ variant: 'paste' }). A heading or other block of another type still replaces the empty block.a47c979by @zbeyens – In an editor whose elements store ids, such as with Plate'sElementIdPlugin, insert pasted lines as an editor without ids does. The paste replaced a piece of the line, so undoing it after a collaborator's concurrent move could drop the letters they typed.5ac62f7by @zbeyens – In an editor whose elements store ids, such as with Plate'sElementIdPlugin, refuse to load a document whose element id is an empty string, a number or an object. The load throws anEditorSchemaValidationErrorinstead of keeping or replacing the id.6ff3575by @zbeyens – Keep element ids when content is replacedtx.value.replace,tx.nodes.replaceandtx.nodes.replaceChildrengive each incoming element without an id the id of the old element it replaces. Elements pair by equal content, in order, then by order between those pairs. Replacing a document with equal content keeps every id and records no change.d8c1a41by @zbeyens –a7b6c57by @felixfeng33 – Fix the sync room refusing a suggester's undo of their own withdrawal when the undo puts back another author's pending change. The room now takes back the writer's own entry at suggest access too, as long as the access the writer holds now still covers that entry, so a writer whose access was lowered cannot undo what only the old access let them write.cb58319by @zbeyens – Accept a collaborator's honest edits beside a suggestion in a sync room whose editors store element ids, such as with Plate'sElementIdPlugin. The room refused an edit, its undo or redo, an accept and a withdrawal that stored a spare line, and held back for review a decision that crossed a collaborator's concurrent change. Such a decision also dropped the spare line the collaborator's change stored, and lost the collaborator's suggested unwrap of the quote that held the decided line.3699047by @zbeyens – Drop the spare blocks an author's suggestion stored once that author takes the suggestion back, such as with a Backspace over a suggested Enter, so the document's review marks andrecordskeep no spare for a change that is no longer pending.88fa2bbby @zbeyens – In an editor whose elements store ids, such as with Plate'sElementIdPlugin, undo after a collaborator moves or deletes a line as an editor without ids does. After an Enter at a line's start, the undo could skip a step, drop the letters the collaborator typed or give back the wrong lines.d1acaccby @zbeyens –Editablereplays it, such as Mod+Z in the page after typing in a synced block's second copy. The caret goes back to where it was before that typing. Focus stays where the key was pressed when that view is gone, hidden or read-only, or when the step's selection ran from one view into another. It also stays when either view renders in a slot that passesnodeSelectionFocus. A step whose plugin history effect settles after the replay, such as creating a comment thread, also leaves focus where the key was pressed.ee98035by @zbeyens – Keep the letters a collaborator typed when you undo a change of yours that crossed theirs, in an editor whose elements store ids, such as one with Plate'sElementIdPlugin.533646dby @zbeyens –@platejs/cli@54.0.0-beta.6
@platejs/test@54.0.0-beta.6