github clauderic/dnd-kit @dnd-kit/dom@0.1.18

latest releases: @dnd-kit/state@0.1.21, @dnd-kit/react@0.1.21, @dnd-kit/helpers@0.1.21...
3 months ago

Patch Changes

  • #1715 e502979 Thanks @github-actions! - Improved TypeScript generics for better type safety and flexibility

    • Enhanced DragDropManager to accept generic type parameters with proper constraints, allowing for more flexible type usage while maintaining type safety
    • Updated DragDropProvider to support custom generic types for draggable and droppable entities
    • Modified React hooks (useDragDropManager, useDragDropMonitor, useDragOperation) to properly infer and return the correct generic types
    • Changed from concrete Draggable and Droppable types to generic parameters constrained by Data type
  • 88942be Thanks @clauderic! - DOMRectangle: Fix bugs with projected transforms.

  • #1715 9326d43 Thanks @github-actions! - Feedback: Re-inject the feedback styles if they get removed from the DOM before the Feedback plugin is torn down.

  • #1715 7af261f Thanks @github-actions! - Feedback: Fix an issue that caused styles to be removed when another instance of the Feedback plugin was torn down even if other instances of the Feedback plugin are still active.

  • #1714 b9b182e Thanks @clauderic! - OptimisticSortingPlugin: Fixed a bug where using queueMicrotask in the dragover event of to check if event.defaultPrevented() was called by consumers was causing the order that we capture to be stale in the event that the consumer updates the order of sortable items before the micortask runs, which can happen in React for consumers using useOptimistic to update state optimistically.

  • #1715 bb790c9 Thanks @github-actions! - Feedback: Fix a regression with the drop animation on Safari.

  • Updated dependencies []:

    • @dnd-kit/abstract@0.1.18
    • @dnd-kit/collision@0.1.18
    • @dnd-kit/geometry@0.1.18
    • @dnd-kit/state@0.1.18

Don't miss a new dnd-kit release

NewReleases is sending notifications on new releases.