57 minutes ago
mobx

eslint-plugin-mobx@1.0.0

Major Changes

  • 3826b97e5e9dea4284a12a06145b2b022d9840fa #4790 Thanks @kubk! - Support only ESLint 9.10+ and 10, with flat config only. The eslint peer dependency is now ^9.10.0 || ^10.0.0, and @types/eslint is no longer a dependency, since ESLint ships its own types. configs.recommended is now the flat config, and the eslintrc config and flatConfigs are removed: replace pluginMobx.flatConfigs.recommended with pluginMobx.configs.recommended. The missing-observer rule is removed: wrap components in observer yourself, or use mobx-react-plugin to wrap them all at build time. The deprecated no-anonymous-observer rule is removed too; use react/display-name with componentWrapperFunctions: ["observer"] instead. Projects on ESLint 8 or older, or on eslintrc, should stay on eslint-plugin-mobx 0.2.x.
57 minutes ago
mobx

mobx@7.1.8

Patch Changes

1 hours ago
ui

@ui-sdk/svelte@0.1.0-beta.18

Patch Changes

  • 0dbff31: A Checkbox in a Field of its own inside a CheckboxGroup takes that field from the server's HTML on: its label names it and the field's disabled disables it, like a checkbox outside a group.
  • a3f6abe: RadioGroup, SegmentedControl and NavigationMenu in Svelte and Vue, and Tabs in Svelte, type their value from value, defaultValue or the change handler, as the docs say, so a handler typed with your own union of values type-checks.
  • 8829403: A handler on an element inside a part, like onkeydown on a field in a tree row, now runs before the part's own keys and clicks, so its stopPropagation() keeps the event from the part, as in React.
  • 6ec9019: A part from createParts mapped to an SVG tag, like circle or path, is created as an SVG element, as in the other adapters.
  • 1de2cde: A click or key press on a part inside a popup that renders outside the app, like a button in a popover, reaches the popup's own handlers again.
  • 875a20b: A part made with createParts and given an id, like one rendered through a trigger's render, no longer takes that id as its key, so an agent can press it as in the other frameworks.
  • ab810de: A Textarea's default value leaves the caret at the start of the text, as a native textarea does.
  • Updated @ui-sdk/core to 0.1.0-beta.18
1 hours ago
ui

@ui-sdk/core@0.1.0-beta.18

Patch Changes

  • dacbb42: Aborting an act call that waits behind another one, like a call waiting on a confirm the person hasn't answered, now settles it at once with its step cancelled. It used to wait until the call ahead of it finished. The cancelled call never runs, and the call ahead of it keeps waiting for its answer.
  • f34088c: The agent lists the components in a closed web popup, like the fields of a dialog that was open, with offPage: true and the state they had, as it does in React. Private fields stay out, as they do when they leave the page.
  • d01d785: The agent names a closed web popup by its trigger and leaves out its hidden title and description, as it does in React.
  • 89e15f7: The agent names a web field without a label by its control, like aria-label on its input, as it does in React.
  • 433d08b: A Field around a password, card or one-time-code control reads its error text as "[redacted]" to an agent in web components too, like it does in React.
  • 1b357fa: Input: setValue with text on an <input type="file"> now returns false and changes nothing, where it threw the browser's error and kept the text as the value. An agent's setValue step on one fails with the value the field holds, and its values and the next snapshot no longer report text the input never took. clear still empties it.
  • 898012f: The agent bridge reads an item's label with a space between its blocks, as it reads on the page. An item that holds a name and a price in two elements was listed as Starter$12, which an agent had to send back to choose it. It now reads Starter $12. A component's label, title, description and button text read the same way.
  • 9a7bdc0: Before an agent's setValue, the bridge now opens only a component with an open state to look for its items, and once per step. It stops waiting when the list stays closed, like one the app keeps shut until the text has an "@". A component whose api has a setOpen for something else is no longer opened, and such a setValue no longer waits about 4 seconds.
  • 4ebaab3: An agent's setValue that names an item of a Select, Combobox or Listbox by its itemToValue key now sets the item's own value. Before, a list whose values are objects stored the key as text and answered ok: true. A list whose data holds object values lists each item by that key in the snapshot, where it read [object Object].
  • 9fa3dd1: The agent doesn't list an open web popup's own trigger among its buttons, so an open select or combobox offers the same actions as a closed one.
  • 38efb10: An agent's snapshot lists a component's items and buttons in the page's order, and what left the page in the order it was listed, the same in every framework.
  • 3930e19: The agent bridge redacts only what a private field holds. Password Input's visible read "[redacted]" in the snapshot and in a step's changes, so an agent offered setVisible couldn't tell what it would do. It now reads true or false, and so does open on a list inside data-agent-secret. The value stays redacted.
  • a250f6e: Agent: a set step whose component unmounts while it runs, like a to-do that moves to a Done list once it's checked, no longer fails with "didn't take". The step ends as done, since the component it changed is gone and can't be read again.
  • ea48fe1: agent.subscribe reports changes to the components snapshot lists. A change to a component that's hidden when it changes isn't reported, apart from it opening or closing. observe still reports every change.
  • d5c6249: An agent's step that changes a value its component commits, like a Slider's or a Number Input's, now calls onValueCommit once, when the step has taken, with source: "agent". It never fired for an agent, so an app that saves on commit missed an agent's change. Only the component the step names commits. A change that didn't take commits nothing, and neither does a value set from code or one a callback sets on another component, as before.
  • 8250b4d: The agent's snapshot names a web component Slider by its Field's label, as it does in the other frameworks.
  • 3f1cde1: Carousel takes disabled, which turns it off for now, like at a breakpoint where the slides lay out as a grid. The parts drop their roles, slide labels and inline styles, slides stay reachable, the viewport stops paging, and the controls hide. Turned back on, it measures again and shows its page.
  • 25a3d2a: A Carousel's content reads --carousel-display for its layout, flex by default. Set --carousel-display: grid to lay the slides out in a grid. The style stays inline, so server-rendered carousels lay out before they hydrate.
  • cbd887e: Carousel: each slide gets --carousel-item-progress, from -1 a page behind to 1 a page ahead and 0 at rest, on every frame of a scroll or spring.
  • d0d1b07: In development, a Carousel with loop says in the console when it can't go round seamlessly and scrolls back to the first page instead, with why: too few slides for a page to either side of the current one, or content that doesn't lay its slides out by CSS order.
  • 25766c0: A looping Carousel no longer scrolls back when Next or Previous is pressed again before the last step lands. A step the slides can't rotate for yet waits while the slides keep moving, then goes on the same way.
  • d445dc1: Carousel: a press on a slide peeking in at the edge pages to it, with the reason item-press. The slide is inert while it's out of view, so the press used to do nothing.
  • 1f54804: An agent's setAll on a checkbox group checks or unchecks every enabled checkbox instead of failing the step.
  • c81d202: A checkbox group given its value out of order now reads it in its checkboxes' order from the start.
  • bfa4470: Combobox, Command, Select's search field and Autocomplete keep their list's filter while an input method composes text, like とうk on its way to 東京 or a dead key's accent, and filter once it's committed. Their query change callbacks (Autocomplete's onValueChange) get details.composing, typed as TextChangeDetails, and report the committed text again with composing: false. Android keyboards and Hangul, which compose ordinary typing, filter as before. Async options' setQuery skips text that's still composing.
  • 7e93fda: A Combobox create option with a minimum length stays hidden for shorter text, instead of freezing the page in web components.
  • 1b06029: In Vue, a Combobox with its input in the popup keeps the trigger in the tab order while the list is open.
  • 01e2e3d: A native <label> for a web Date Input or Time Input focuses the first segment wherever it's pressed, not the segment nearest the press.
  • 60e18e1: Parts take less work to render, bind and update, most of all in Solid, and a closed Menu waits for its first use to set itself up.
  • f57c90a: A Field whose control already has focus when it mounts, like one with autoFocus, shows data-focused right away. One that lost focus while hidden, like inside a hidden <Activity>, no longer shows it when it's back.
  • 7e93fda: A field without a label keeps the name a native label around its control gives it, so every radio in a row of choice cards is named.
  • 3280bf1: Tabs and Segmented Control indicators get data-visible once they have a position, like the Navigation Menu indicator. Before then, like on a server-rendered page before its script runs, their variables are unset, so a marker can stay hidden with :not([data-visible]).
  • 045ee98: Tabs, Segmented Control and Navigation Menu indicators take followHover: the indicator follows the item under the pointer, and goes back to the selected, checked or open one when the pointer leaves.
  • dea5a58: Tabs, Segmented Control and Navigation Menu indicators: the right and bottom offsets, like --active-tab-right and --active-tab-bottom, stay exact when the list has a fractional size. They used to be off by up to half a pixel.
  • c78056f: A Tabs or Segmented Control indicator keeps its last box while an ancestor hides the list. It wrote an empty box there, so showing the list again animated the indicator from nothing to the selected item.
  • 56f180f: Escape in a filled Input that has a Clear part clears it, like pressing Clear, and stops there, so a dialog around it closes only once the input is empty.
  • 7e93fda: A label that names a control by for names it once the control drops its own label reference, like a Select trigger without a SelectLabel.
  • 6d6d236: A label built on a native <label> names and focuses the control inside a slider or number input it points at, and a press on any label for a checkbox group focuses the group's first checkbox.
  • c4d98a8: A press on a label that names a checkbox, switch or radio moves focus to it as it checks it, as a native label does.
  • cabebb5: A menu's groups, labels, separators, radio groups, item indicators, content and viewport no longer update on store changes they don't show, like a highlight moving.
  • f52f049: The arrow keys, Home, End and typeahead in a Menu skip items the page hides with hidden, display: none or inert. Focus used to land on the hidden item and stay out of sight.
  • 7b835b0: A menu whose only icons are on submenu triggers gets data-has-icons when it opens, not only when it starts open.
  • 0da01a3: Pressing a Menubar trigger whose menu opened when the pointer rested on it keeps focus in the menu, as a press that opens the menu does. The press used to leave focus on the trigger with the menu open, so letters searched the triggers and Enter closed the menu.
  • 7e93fda: A native label that names a control gets an id of its own, so it never shares one with a <ui-label> and names the wrong control.
  • ef2d737: A Navigation Menu switches to another trigger at once when the pointer moves along the bar to it. A wide panel's safe area used to cover that move too, so the switch waited for the pointer to rest. Crossing a trigger on the way down to the panel still keeps the panel.
  • b930273: ArrowDown on a navigation menu trigger now moves focus into the panel it opens when value is controlled, as it already did uncontrolled. In React, focus used to stay on the trigger.
  • 48bb644: Popovers, menus, selects, comboboxes, autocompletes, date pickers, tooltips and hover cards close with reason anchor-hidden when the element they sit beside stops rendering while they're open, like a trigger a breakpoint hides. They used to stay open with nothing showing them, so the next Escape or outside press went to a popup nobody could see, and they came back open with the trigger. Cancel the change in onOpenChange to keep one open.
  • 114d8c9: A dialog or popover with no exit animation sends focus to its finalFocus as it closes, as one with an animation does.
  • d6d48c9: A Menu or Popover with several triggers gives the trigger id to the first one rendered in the server's HTML too, instead of to every trigger. When that trigger leaves while the popover is closed, the next one takes the id.
  • 08e1538: An initialFocus you set on a Dialog, Alert Dialog, Drawer or Popover now applies when touch opens it too, like a search dialog that focuses its field. With the default "auto", a touch open still focuses the content, so no on-screen keyboard appears.
  • fda6df7: A popup's content and backdrop keep data-ending-style until both exits finish and the popup hides. Content with a shorter exit, or none, lost it early and ran back to the open look while the backdrop still faded.
  • 359cbf3: A non-modal popup closes when Tab takes focus out of the page, like from its last control when nothing after its trigger can take focus. Before, focus landed on the body and the popup stayed open.
  • a71389a: With items on the root, an item disabled by its own disabled prop can't be chosen, highlighted or found by typeahead, as without data.
  • b1dcc33: A Select's highlight no longer moves to the item that scrolls under a resting pointer after a key like End, which WebKit reports as a pointermove without movement.
  • f884ac5: A Select with items on its root shows its value's icon in the trigger from the start, not only after the list has opened once.
  • a937036: A Drawer with side="right" or side="left" stays on that side in a right-to-left page in Vue. Its viewport read the page's direction before it was in the page, so the sheet opened on the opposite edge.
  • 7b35172: A resting Drawer whose content shrinks stays on the edge of the viewport it's attached to. It used to start the resize lifted by the height it lost, leaving a gap below it, and then slide back down.
  • bd7d0c7: A swipe on a scroll-snap sheet that's closing no longer scrolls it back onto the screen before it's removed.
  • 8250b4d: A Slider's thumb input no longer sets pointer-events: none, so browser automation tools that only target elements that take pointer events can find it and fill it. Presses still land on the thumb, since the input stays clipped.
  • 3ec94a9: Tabs: with activation="manual", Tab and Shift+Tab from a focused tab now leave the tab list, where they could stop on the selected tab first. The tab stop stays on the focused tab while focus is in the list, and goes back to the selected tab once focus leaves, so entering the list still lands on the selected tab.
  • bb2b57f: Tabs that add a tab and select it in the same update now give it the direction the selection moved and scroll it into view, in every framework.
  • 8636bcf: The arrow keys, Home and End in Tabs skip tabs the page hides with hidden, display: none or inert. They used to select the hidden tab while focus stayed where it was.
  • 8c1d281: A trigger menu inside a token input now marks the editor with aria-autocomplete and aria-haspopup as soon as the editor is in the page. In Svelte and Solid, and in React with the menu written before the editor, they used to appear only after the first keystroke or focus.
  • d6174a5: A ToolbarButton that renders a Toggle is one item in the toolbar: it keeps the tab stop, and the arrow keys move past it.
  • 3f14aca: A press on an aria-disabled tooltip trigger leaves its tooltip open, so the tooltip that says why the control is unavailable stays while someone tries it.
  • d438ee3: A tooltip whose content hides a part reads its blocks with a space between them, so its trigger is described as "Olivia Martin Admin", not "Olivia MartinAdmin".
  • 6c1ea68: A Tree item keeps its depth when a render yields between its branch and the item, like a React hydration that pauses inside an expanded branch. The item rendered one level too shallow there, and React reported a hydration mismatch on aria-level, data-level and --tree-level.
  • 54187a7: A trigger menu connected through editor is named in agent.snapshot() by its field, like one with a TriggerMenuInput.
  • a56b595: A trigger menu with open controlled no longer announces its unfiltered suggestion count as it closes.
  • edab573: A <ui-switch>, <ui-checkbox> or other form control that starts disabled works once disabled is set back to false in jsdom. It kept aria-disabled and data-disabled and ignored presses, since its own disabled counted as a fieldset's, which only formDisabledCallback cleared and jsdom never calls it.
1 hours ago
ui

@ui-sdk/solid@0.1.0-beta.18

Patch Changes

  • 0dbff31: A Checkbox in a Field of its own inside a CheckboxGroup takes that field from the server's HTML on: its label names it and the field's disabled disables it, like a checkbox outside a group.
  • 60e18e1: Parts take less work to render, bind and update, most of all in Solid, and a closed Menu waits for its first use to set itself up.
  • 7cf20f0: A part follows its render when it changes after mount, so a Button whose render stops returning a link renders a button again.
  • Updated @ui-sdk/core to 0.1.0-beta.18
1 hours ago
ui

@ui-sdk/web@0.1.0-beta.18

Patch Changes

  • 94e1820: A popup content's anchor property takes an element or a point, as its docs and types say, besides a selector.
  • 8d64c80: <ui-autocomplete>'s api now has highlight() and getHighlighted(), as its type says. Calling them threw before, since the element left them out.
  • edab573: A <ui-switch>, <ui-checkbox> or other form control that starts disabled works once disabled is set back to false in jsdom. It kept aria-disabled and data-disabled and ignored presses, since its own disabled counted as a fieldset's, which only formDisabledCallback cleared and jsdom never calls it.
  • bacd0a4: An empty <ui-field-error> keeps a message the page writes into it, like a server's, instead of replacing it with the browser's. Emptying it again shows the browser's message.
  • a70d60f: An item text part written empty in the page, like <ui-combobox-item-text> beside an icon, shows its item's label, as it does for items given as data.
  • 6404deb: An element that makes its own id keeps it when it's taken off the page and put back, so the controls a label built on the label primitive names stay named.
  • 36df185: A <ui-listbox-item> or <ui-combobox-item> written in the page keeps a record set as its value property, keyed by the list's itemToValue, as a <ui-select-item> does. Each row used to register as "[object Object]", so every row shared one id and a press made the value that string. An empty item text part still shows its item's label when the item's value is a property, as Vue, React and Svelte set it.
  • 91b7d0a: A data combobox or listbox whose page writes its own rows, like a windowed list, shows those rows alone. A combobox finds them inside a box in its list and drops the rows it rendered once the page writes its rows again. A listbox that holds rows from the page when items is set renders none of items beside them.
  • 66afde4: <ui-popover>, <ui-dialog>, <ui-alert-dialog>, <ui-drawer>, <ui-tooltip>, <ui-hover-card> and <ui-menu> take display: contents, like <ui-select>, so the button in their trigger is laid out by the row or grid around them.
  • ef6d0e2: An agent sets a <ui-rating> by its score, and its stars are no longer listed as choices.
  • 2bbd848: align on <ui-toast-region> and <ui-carousel> now only places the toasts or the slides. In Chrome and Safari it used to right-align or center their text too, as popup contents with align already avoided.
  • 1dae48d: A button that two parts bind, like a <ui-button> or <ui-toggle> inside a popover or tooltip trigger, keeps the inner part's data-slot (button or toggle) whatever order they upgrade in.
  • dea32b4: A toast's close button with an aria-label, aria-labelledby or title and no content stays the author's close: it no longer hides, or shows and runs the toast's cancel.
  • 5a39f1f: A trigger's payload attribute gives the popup a string, so server-rendered triggers can carry one without a script. A payload property still wins, for rich values.
  • Updated @ui-sdk/core to 0.1.0-beta.18
1 hours ago
ui

@ui-sdk/react@0.1.0-beta.18

Patch Changes

  • 0dbff31: A Checkbox in a Field of its own inside a CheckboxGroup takes that field from the server's HTML on: its label names it and the field's disabled disables it, like a checkbox outside a group.
  • Updated @ui-sdk/core to 0.1.0-beta.18
1 hours ago
ui

@ui-sdk/vue@0.1.0-beta.18

Patch Changes

  • 0dbff31: A Checkbox in a Field of its own inside a CheckboxGroup takes that field from the server's HTML on: its label names it and the field's disabled disables it, like a checkbox outside a group.
  • a3f6abe: RadioGroup, SegmentedControl and NavigationMenu in Svelte and Vue, and Tabs in Svelte, type their value from value, defaultValue or the change handler, as the docs say, so a handler typed with your own union of values type-checks.
  • f018051: A Button with its own @click in a part's #render slot runs both its click and the part's, its own first, instead of neither.
  • ce05f34: A template ref on the element a #render slot returns now gets that element, and the part stays bound to it, whether the ref is written before or after v-bind="props". The slot's props no longer carry the part's ref, since the part attaches it to the returned element itself. Code that called props.ref(el) from a function ref can drop that call.
  • Updated @ui-sdk/core to 0.1.0-beta.18
2 hours ago
next.js

v16.5.0-canary.69

Core Changes

  • Upgrade React from 89d7b2b4-20261123 to edae846a-20261125: #102463
  • Reword the error for a blocking route loaded while navigations are paused: #102398
  • Say that dev validation is skipped when server caches are bypassed: #102386

Misc Changes

  • test: skip @next/mcp e2e in deploy mode: #102454
  • docs: clarify route groups in route type helpers: #102460
  • docs: lead with use(browser()) for browser-only rendering: #102401

Credits

Huge thanks to @sokra, @aurorascharff, and @icyJoseph for helping!

2 hours ago
plate

v54.0.0-beta.6 (2026-11-26)

@platejs/cli

Published @platejs/cli@54.0.0-beta.6.

@platejs/test

Published @platejs/test@54.0.0-beta.6.

platejs

Patch Changes

  • 33eb625 by @zbeyens –

    • Replace useArrowPath and its BoardArrowPath type in platejs/board/react with three components that draw an arrow inside its BoardShape. BoardArrowPath is an SVG path between the arrow's ends, BoardArrowhead is an SVG g that draws its children at the arrow's end, and BoardArrowLabel is a div centered 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 board registry item again with all its files, because the static arrow draws the head that board-styles exports as ARROW_HEAD. In your own arrow renderer, remove the useArrowPath(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 with pointerEvents="stroke":

    <BoardShape {...props}>
      <div className="absolute top-0 [left:0]" contentEditable={false}>
        <svg
          className="pointer-events-none overflow-visible"
          height={1}
          width={1}
        >
          <BoardArrowPath
            pointerEvents="stroke"
            stroke="transparent"
            strokeWidth={14}
          />
          <BoardArrowPath fill="none" stroke="currentColor" />
          <BoardArrowhead>
            <polygon fill="currentColor" points={ARROW_HEAD} />
          </BoardArrowhead>
        </svg>
      </div>
      <BoardArrowLabel>{props.children}</BoardArrowLabel>
    </BoardShape>
  • 9e5dcae by @zbeyens –

    • Keep a comment thread unavailable when a letter in a new style is typed where its deleted text crossed a style change, instead of letting that letter join the thread.
  • 13f3456 by @zbeyens –

    • Add fieldSubmission and readFieldAnswers to platejs/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 a FieldAnswer whose kind narrows its value, or one that names the problem answer-conflict or name-conflict.
    • Add startFieldValues(template, submissions, start, options?) to platejs/field. It replays the roles that already submitted, as applyFieldValues does, and returns the filled document a role starts from, with each value start gives written on its field and on every other field of its name. A field start leaves 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. A start that gives one name two values is refused as answer-conflict.
  • 3fa7e45 by @zbeyens –

    • Add an optional name to 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, update and a raw write refuse any other name, and applyFieldValues refuses a template that holds one as invalid-template with problem malformed. HTML writes it as data-field-name, Markdown as a name attribute, 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 new fieldId. Word export drops it with the other settings, and its warning now reads "Word keeps each field answer and drops its name and settings."
    • Add name-conflict and answer-conflict to FieldProblem, which read.field and read.fields report. 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 reads name-conflict, and the same name in two roles never conflicts. Each field of a name whose fields hold different stored values reads answer-conflict, so an empty text and no value differ. A copied field component that maps every FieldProblem needs both keys.
    • applyFieldValues refuses a template whose fields of one role and name differ in settings as invalid-template with problem name-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 as invalid-value, wrong-role, skipped or waiting. A name whose required field the submission left out still gets answer-conflict beside missing-required.
    • Every applyFieldValues refusal that names a field also carries that field's name when it has one: invalid-template, invalid-value, missing-required, skipped, waiting and wrong-role. Code that switches over FieldRefusal and reads fieldId in a default branch needs an answer-conflict case, which has fieldIds instead.
    • update writes a value, 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 reads name-conflict. No other setting reaches the other fields.
    • Adding name changes the schema fingerprint of every editor with the field plugin.

    Migration: A saved document holds no names, so it fills by fieldId as before. What to change depends on how the app saves:

    • With a named schema, bump schema.version, record the old fingerprint under sourceFingerprints, and add a migration step that returns the document unchanged.

    • If the app's own schema declared a name property 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:

      const editor = createEditor({
        initialSelection: envelope.selection,
        initialValue: envelope.document,
        plugins,
      });

      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.

  • d4459c6 by @zbeyens –

    • Add the eraser to 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. InkTool is now a union, so code that reads tool.brush checks tool.type === 'draw' first.
  • 386eb10 by @zbeyens –

    • Add the lasso to 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.
  • e7e7ac4 by @zbeyens –

    • In 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. setTool returns false and keeps the current tool for a size that is not a finite number above 0, a brush opacity that is not a number above 0 and at most 1, or a brush color that is not a non-empty string.
  • 0274644 by @zbeyens –

    • In 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.
  • 257320a by @zbeyens –

    • Type the node a match callback receives in a plugin's tx.nodes.set as Element instead of any.
  • ca52412 by @felixfeng33 – Paint each suggestion author in one color: data-editor-authored-color now holds the palette slot of the author whose change an element paints, and suggestionColorOf takes an author id

plitejs

Patch Changes

  • 9e5dcae by @zbeyens –

    • Make a nearest range anchor one point, and drop a drop range 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.
  • 2ba256d by @felixfeng33 – Fix ArrowLeft and ArrowRight, with or without Shift, which spent one press on the edge between two text runs of a block, such as plain text beside bold or suggested text. One press now moves one character.

  • b4b84ec by @zbeyens – Keep pending DOM selection changes when late programmatic selection syncs or caret repairs run.

  • 3b41f03 by @felixfeng33 – Fix accepting one of an author's two suggested line joins blocking: each join, and each line break with text between it and the next, is its own card and decides alone

  • c58baad by @zbeyens – Speed up accepting and rejecting a suggestion in an editor whose elements store generated ids, such as one with Plate's ElementIdPlugin. A decision resolves only the blocks its change touches instead of the whole document.

  • b1c85dd by @felixfeng33 – Fix a decision that returned blocked until 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.

  • c49aae2 by @felixfeng33 – Accept another author's whole pending deletion when an Editing write replaces a selection that holds it, in an editor with no shared room or Yjs binding, so Reject all no longer restores text the write removed and one Undo restores both

  • 83dc0fe by @zbeyens – Keep a block that a move in Editing carries, such as a paragraph dragged below the next one with the authored plugin, as the same block instead of a deleted copy and a new one. A range anchor inside it, such as a comment thread's text, stays on its text, and other authors' pending suggestions in the block keep their ids. A move in the same command as another edit records as before.

  • 5c03c44 by @felixfeng33 – Fix typing in a line whose last live text was just deleted while another author's deletion of that line is pending. The letter now lands on that line instead of the end of the line before it, in Editing and Suggesting, and also when one update deletes and retypes the text.

  • 5ce5f9f by @felixfeng33 –

    • Fix Escape leaving a block selection in place. When no earlier handler takes the key, Escape leaves a caret at the end of the block the selection ends on, or right after a selected image or other object. A read-only editor keeps the selection.
  • 89ff464 by @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.

  • 9d8f6eb by @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. A new-batch update still starts its own step.

  • 5745de8 by @zbeyens –

    • Fix character transpose, the insertTranspose input, leaving the text unchanged in a mounted editor.
  • 4132cf0 by @felixfeng33 – Fix a node inserted into a line that a suggested deletion emptied landing beside that line, which left an extra empty line and kept the inserted node after Reject all

  • e362966 by @zbeyens –

    • In an editor whose elements store ids, give each element a load finds without an id a fill.<n> id, so every editor that loads one document holds the same ids. A repeated id stays on its first element. createEditor with an initialValue no longer throws on an element without an id, and a loaded element under Plate's ElementIdPlugin gets a fill. id instead of an element- id.
  • 5f89a38 by @zbeyens – Fix a suggested paste that adds a block after the paragraph it pastes over, in a document that already holds a suggestion. The added block now shows as inserted, and rejecting the suggestion removes it. Before, a streamed AI answer that opened a code block left an empty code block behind.

  • e12ef78 by @zbeyens –

    • Fix a paste of whole blocks into an empty block of the same type replacing that block, so a paste rule that remembered the line lost it. A YouTube or other provider link copied with a space before or after it, or as HTML in a paragraph, and pasted on an empty line now becomes a media embed under MediaEmbedRules.autoEmbed({ variant: 'paste' }). A heading or other block of another type still replaces the empty block.
  • a47c979 by @zbeyens – In an editor whose elements store ids, such as with Plate's ElementIdPlugin, 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.

  • 8578908 by @felixfeng33 – Fix a crash when a view switches to the accepted preview after an undo that rebuilds the whole preview, such as undoing Accept all after a struck word was dragged. The preview now shows the accepted text.

  • 5ac5638 by @zbeyens – Preserve replaced stored nodes when rebuilding an authored preview root so root owners keep their new keys and placement metadata.

  • 45a1db3 by @zbeyens – Keep text typed beside a concurrently removed inline element on its own line when rebasing document changes

  • 5ac62f7 by @zbeyens – In an editor whose elements store ids, such as with Plate's ElementIdPlugin, refuse to load a document whose element id is an empty string, a number or an object. The load throws an EditorSchemaValidationError instead of keeping or replacing the id.

  • f234c5b by @felixfeng33 – Fix rejecting a suggested line break that dropped another author's pending format on the emptied line, such as an alignment or a heading. The format now stays pending on the line that remains, and accepting or rejecting it works as before.

  • 6ff3575 by @zbeyens – Keep element ids when content is replaced

    • In an editor whose elements store ids, tx.value.replace, tx.nodes.replace and tx.nodes.replaceChildren give 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.
    • An id an incoming element already holds stays on that element. An element with no counterpart gets a new id.
  • d8c1a41 by @zbeyens –

    • Keep a heading that became the required title when a schema migration runs in the same update, instead of adding an empty title above it
    • Keep the id of a required title that an update rebuilds, in an editor whose elements all hold ids
  • 9eea162 by @zbeyens –

    • Keep the target of editor.api.dom.scrollIntoView inside the part of the page a reader sees when the call passes no options. On a phone with the keyboard open, the target stops above the keyboard instead of behind it, on iOS Safari and on Android Chrome. The page's scroll-padding keeps the target clear of a fixed bar, and when the page cannot scroll far enough, the editor's scroll container scrolls the rest. An expanded selection scrolls to its focus end.
    • Scroll to the caret's line when the caret sits on an empty line, where the browser reports an empty caret box. This also applies when the call passes options.
  • 612328a by @felixfeng33 – Fix undo after a run of Backspace or Delete in Suggesting mode, which took back one struck character per step. The run now undoes in one step, as it does in Editing.

  • 90d380b by @felixfeng33 – Land struck text dragged in Suggesting as the mover's insertion, with its old place still struck, so accepting everything keeps the moved text at the drop

  • a7b6c57 by @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.

  • cb58319 by @zbeyens – Accept a collaborator's honest edits beside a suggestion in a sync room whose editors store element ids, such as with Plate's ElementIdPlugin. 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 as a suggested wrap or unwrap. 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. Accepting a suggested delete across lines that empties the first line now keeps the id that the same delete keeps in a plain editor.

  • 3699047 by @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 and records keep no spare for a change that is no longer pending.

  • 0f10367 by @felixfeng33 – Fix typing inside struck text landing after the pending deletion: the letter now lands at the caret and splits the deletion around it, as an input method already did

  • 5a07fe3 by @felixfeng33 – Fix a letter typed inside a struck line that another author's deletion joined into the line before landing at the end of that line: it now lands at the caret

  • 88fa2bb by @zbeyens – In an editor whose elements store ids, such as with Plate's ElementIdPlugin, 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.

  • d1acacc by @zbeyens –

    • Move focus to the view that made a step when an undo or redo key in another view of the same Editable replays 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 passes nodeSelectionFocus. A step whose plugin history effect settles after the replay, such as creating a comment thread, also leaves focus where the key was pressed.
    • Keep focus in a focused external control when its undo or redo changes a root that another view shows, such as a synced block's copy. When the undo takes back typing in a second external control, focus still moves into that control.
    • Keep the caret in a view where an undo or redo key was pressed when the step was made in another root. After undoing a Delete that the page made across into one synced copy, a Delete in another copy now edits that copy instead of the first one.
    • Keep the caret in the editable that a focus handler moves focus into, instead of moving it back to the editable that received focus first.
  • ee98035 by @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's ElementIdPlugin.

  • 533646d by @zbeyens –

    • Fix undo focusing another copy of a shared content root instead of the copy the caret left, when the undo gives that root back to a block, as undoing Unsync of a synced block does.

Full changelog: v54.0.0-beta.5...v54.0.0-beta.6