github clauderic/dnd-kit @dnd-kit/react@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
  • #1715 d6b5736 Thanks @github-actions! - : Added disabled prop to temporarily disable <DragOverlay> without unmounting it. The disabled prop accepts either a boolean or function that receives the source as input and returns a boolean, which can be useful to disable the <DragOverlay> based on the type or data of the source.

  • #1714 6a27d87 Thanks @clauderic! - Refactor renderer to better handle calls to useOptimistic to update state during transitions.

  • Updated dependencies [e502979, 88942be, 9326d43, 7af261f, b9b182e, bb790c9]:

    • @dnd-kit/dom@0.1.18
    • @dnd-kit/abstract@0.1.18
    • @dnd-kit/state@0.1.18

Don't miss a new dnd-kit release

NewReleases is sending notifications on new releases.