udecode/plate
 Watch   
 Star   
 Fork   
2 hours ago
plate

@platejs/core@49.0.16

Patch Changes

  • #4441 by @delijah – Expose mimeType to plugin parser functions

    Added comprehensive copy functionality and view editor support for static rendering.

    New Components:

    • Added PlateView component for static editor rendering with copy support
    • Added usePlateViewEditor hook for creating memoized static editors

    Static Editor Enhancements:

    • Added withStatic HOC to enhance editors with static rendering capabilities
    • Added ViewPlugin that enables copy operations in static editors
    • Added getStaticPlugins to configure plugins for static rendering
    • Added onCopy handler that properly serializes content with x-slate-fragment format

    New Utilities:

    • Added getSelectedDomBlocks to extract selected DOM elements with Slate metadata
    • Added getSelectedDomNode to get DOM nodes from browser selection
    • Added isSelectOutside to check if selection is outside editor bounds
    • Added getPlainText to recursively extract plain text from DOM nodes

    This enables seamless copy operations from static Plate editors, allowing content to be pasted into other Slate editors while preserving rich formatting and structure.

  • a6c3e52 by @felixfeng33 – Added comprehensive copy functionality and view editor support for static rendering.

    New Components:

    • Added PlateView component for static editor rendering with copy support
    • Added usePlateViewEditor hook for creating memoized static editors

    Static Editor Enhancements:

    • Added withStatic HOC to enhance editors with static rendering capabilities
    • Added ViewPlugin that enables copy operations in static editors
    • Added getStaticPlugins to configure plugins for static rendering
    • Added onCopy handler that properly serializes content with x-slate-fragment format

    New Utilities:

    • Added getSelectedDomBlocks to extract selected DOM elements with Slate metadata
    • Added getSelectedDomNode to get DOM nodes from browser selection
    • Added isSelectOutside to check if selection is outside editor bounds
    • Added getPlainText to recursively extract plain text from DOM nodes

    This enables seamless copy operations from static Plate editors, allowing content to be pasted into other Slate editors while preserving rich formatting and structure.

2 hours ago
plate
2 days ago
plate
2 days ago
plate

@platejs/link@49.0.15

Patch Changes

  • #4428 by @zbeyens

    • Improved return type of getLinkAttributes to be more specific and type-safe.
    // The function now returns a properly typed object
    const attributes = getLinkAttributes(editor, linkElement);
    // attributes is now properly typed as Pick<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'href' | 'target'> & UnknownObject
2 days ago
plate

@platejs/core@49.0.15

Patch Changes

  • #4428 by @zbeyens
    • Updated SlateElementProps, SlateTextProps, SlateLeafProps, PlateElementProps, PlateTextProps, and PlateLeafProps to properly type the attributes property to unknown object.
2 days ago
plate

@udecode/react-utils@49.0.15

Patch Changes

2 days ago
plate

@platejs/selection@49.0.15

Patch Changes

  • #4415 by @zbeyens – fix(selection): skip empty blocks in copySelectedBlocks to prevent duplication