Skip to content

Releases: clauderic/dnd-kit

@dnd-kit/[email protected]

24 Mar 04:19
38d7881
Compare
Choose a tag to compare

Minor Changes

  • 79f6088 #144 Thanks @clauderic! - Allow consumers to determine whether to animate layout changes and when to measure nodes. Consumers can now use the animateLayoutChanges prop of useSortable to determine whether layout animations should occur. Consumers can now also decide when to measure layouts, and at what frequency using the layoutMeasuring prop of DndContext. By default, DndContext will measure layouts just-in-time after sorting has begun. Consumers can override this behaviour to either only measure before dragging begins (on mount and after dragging), or always (on mount, before dragging, after dragging). Pairing the layoutMeasuring prop on DndContext and the animateLayoutChanges prop of useSortable opens up a number of new possibilities for consumers, such as animating insertion and removal of items in a sortable list.

Patch Changes

@dnd-kit/[email protected]

24 Mar 15:11
2fe45eb
Compare
Choose a tag to compare

Patch Changes

@dnd-kit/[email protected]

24 Mar 13:46
a480e03
Compare
Choose a tag to compare

Patch Changes

@dnd-kit/[email protected]

24 Mar 04:19
38d7881
Compare
Choose a tag to compare

Minor Changes

  • 79f6088 #144 Thanks @clauderic! - Allow consumers to determine whether to animate layout changes and when to measure nodes. Consumers can now use the animateLayoutChanges prop of useSortable to determine whether layout animations should occur. Consumers can now also decide when to measure layouts, and at what frequency using the layoutMeasuring prop of DndContext. By default, DndContext will measure layouts just-in-time after sorting has begun. Consumers can override this behaviour to either only measure before dragging begins (on mount and after dragging), or always (on mount, before dragging, after dragging). Pairing the layoutMeasuring prop on DndContext and the animateLayoutChanges prop of useSortable opens up a number of new possibilities for consumers, such as animating insertion and removal of items in a sortable list.

  • a76cd5a #136 Thanks @clauderic! - Added onActivation option to sensors. Delegated the responsibility of calling event.preventDefault() on activation to consumers, as consumers have the most context to decide whether it is appropriate or not to prevent the default browser behaviour on activation. Consumers of the sensors can prevent the default behaviour on activation using the onActivation option. Here is an example using the Pointer sensor: useSensor(PointerSensor, {onActivation: (event) => event.preventDefault()})

Patch Changes

  • adb7bd5 #151 Thanks @clauderic! - DragOverlay now attempts to perform drop animation even if transform.x and transform.y are both zero.

@dnd-kit/[email protected]

16 Mar 01:59
4aa345f
Compare
Choose a tag to compare

Minor Changes

  • ac674e8 #135 Thanks @ranbena! - Added dragCancel prop to DndContext. The dragCancel prop can be used to cancel a drag operation on drop. The prop accepts a function that returns a boolean, or a promise returning a boolean once resolved. Return false to cancel the drop.

  • 208f68e #111 Thanks @ranbena! - Keyboard sensor now cancels dragging on window resize

@dnd-kit/[email protected]

27 Feb 16:16
66b8c55
Compare
Choose a tag to compare

Patch Changes

@dnd-kit/[email protected]

27 Feb 16:16
66b8c55
Compare
Choose a tag to compare

Patch Changes

@dnd-kit/[email protected]

27 Feb 16:16
66b8c55
Compare
Choose a tag to compare

Patch Changes

@dnd-kit/[email protected]

27 Feb 16:16
66b8c55
Compare
Choose a tag to compare

Patch Changes

@dnd-kit/[email protected]

27 Feb 16:16
66b8c55
Compare
Choose a tag to compare

Patch Changes