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
andDroppable
types to generic parameters constrained byData
type
- Enhanced
-
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 theFeedback
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 usingqueueMicrotask
in thedragover
event of to check ifevent.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 usinguseOptimistic
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