Skip to content

Releases: udecode/plate

@udecode/plate-ai@42.1.0

14 Jan 18:56
c5f716e
Compare
Choose a tag to compare

Minor Changes

  • #3980 by @zbeyens

    • useAIChatEditor: add editor as first parameter:
    const aiEditor = usePlateEditor({ plugins });
    useAIChatEditor(aiEditor, content);

@udecode/slate@42.0.3

13 Jan 02:44
fefc6f4
Compare
Choose a tag to compare

Patch Changes

  • #3952 by @zbeyens
    • Fix editor.api.last(at, { level: 0 }) when editor has no children, it should return undefined. Fixes error on cmd+a > backspace.
    • Fix editor.tf.removeNodes when previousEmptyBlock is true without at option, it should return early.
    • Add RangeApi.contains to check if a range fully contains another range (both start and end points).
    • Add editor.api.isSelected(target, { contains?: boolean }) to check if a path or range is selected by the current selection. When contains is true, checks if selection fully contains the target.
    • editor.tf.insertText now support both legacy slate transforms editor.insertText and Transforms.insertText:
      • editor.insertText -> editor.tf.insertText without at option. In addition, marks: false option can be used to exclude current marks. Default is true.
      • Transforms.insertText -> editor.tf.insertText with at option
    • Add editor.api.next option from:
      • from?: 'after' | 'child' (default: 'after'): Determines where to start traversing from
      • 'after': Start from the point after the current location
      • 'child': Start from the first child of the current path. at must be a path.
    • Add editor.api.previous option from:
      • from?: 'before' | 'parent' (default: 'before'): Determines where to start traversing from
      • 'before': Start from the point before the current location
      • 'parent': Start from the parent of the current path. at must be a path.

@udecode/plate@42.0.4

13 Jan 02:57
dbd03ca
Compare
Choose a tag to compare
@udecode/plate@42.0.4

@udecode/plate@42.0.3

13 Jan 02:44
fefc6f4
Compare
Choose a tag to compare
@udecode/plate@42.0.3

@udecode/plate-utils@42.0.4

13 Jan 02:57
dbd03ca
Compare
Choose a tag to compare
@udecode/plate-utils@42.0.4

@udecode/plate-utils@42.0.3

13 Jan 02:44
fefc6f4
Compare
Choose a tag to compare
@udecode/plate-utils@42.0.3

@udecode/plate-test-utils@42.0.3

13 Jan 02:44
fefc6f4
Compare
Choose a tag to compare
@udecode/plate-test-utils@42.0.3

@udecode/plate-selection@42.0.3

13 Jan 02:44
fefc6f4
Compare
Choose a tag to compare

Patch Changes

  • #3952 by @zbeyens
    • Fix: after deleting all blocks using block selection, focus the empty editor.
    • Feature: shift+up/down block selection to expand/shrink selection. Supports nested blocks.
    • Feature: up/down support nested blocks

@udecode/plate-markdown@42.0.3

13 Jan 02:44
fefc6f4
Compare
Choose a tag to compare

Patch Changes

  • #3952 by @zbeyens
    • editor.api.markdown.deserialize:
      • Improve support for indented lists: nested lists, mixed ordered and unordered lists
      • Fix: markdown codeblock without language should not set lang: undefined to the node
      • Add options:
        • memoize: Enable block-level memoization with _memo property, so it is compatible with PlateStatic memoization.
        • parse: Filter out specific markdown token types (e.g. 'space')
        • processor: Customize the markdown processor
    • Add parseMarkdownBlocks: Extract and filter markdown tokens using marked lexer
    • Fix editor.api.markdown.serialize indenting should be 3 spaces instead of 2.

@udecode/plate-core@42.0.4

13 Jan 02:57
dbd03ca
Compare
Choose a tag to compare

Patch Changes