Skip to content

slate@0.144.0

Choose a tag to compare

@github-actions github-actions released this 17 Oct 21:41
· 16 commits to main since this release
536c3e2

Minor Changes

  • #6314 64b036b Thanks @dylans! - Add Transforms.setChildren(editor, children) and the overridable editor.setChildren method, which apply an outside document through Slate operations instead of replacing editor.children. Unchanged nodes are kept, matched by identity or deep equality; shared nodes move with move_node; and text changes become insert_text/remove_text, so the selection, refs and history stay valid.

    withHistory records each setChildren call as one undo step, separate from typing before and after it.

    BaseEditor now requires setChildren. createEditor supplies it, but editors built by hand and test mocks must add it.

Patch Changes

  • #6320 a21292f Thanks @Marve10s! - Fix Editor.positions and Transforms.move returning points inside consecutive non-selectable elements, or inside a non-selectable first child of a void or read-only element. Deleting beside two non-selectable blocks, or beside a read-only block whose content is all non-selectable, now removes them instead of merging their text.