github udecode/plate @udecode/plate-dnd@39.0.0

latest releases: @udecode/plate-csv@39.0.1, @udecode/plate-table@39.0.1, @udecode/plate@39.0.1...
17 hours ago

Major Changes

  • #3597 by @zbeyens – The following changes were made to improve performance:

    • Refactored useDraggable hook to focus on core dragging functionality:
      • Removed dropLine. Use useDropLine().dropLine instead.
      • Removed groupProps from the returned object – isHovered, and setIsHovered from the returned state. Use CSS instead.
      • Removed droplineProps, and gutterLeftProps from the returned object. Use useDropLine().props, useDraggableGutter().props instead.

Minor Changes

  • #3597 by @zbeyens
    • New hooks:
      • useDraggableGutter: Returns props for the draggable gutter.
      • useDropLine: Returns the current drop line state and props.
    • Added DraggableProvider and useDraggableStore for managing draggable state:
      • dropLine: The direction of the drop line.

Don't miss a new plate release

NewReleases is sending notifications on new releases.