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

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

Patch Changes

  • #1658 4682570 Thanks @github-actions! - Fix handling of aborted drag operations across sensors. The start method now returns a boolean to indicate whether the operation was aborted, allowing sensors to properly clean up when a drag operation is prevented. This affects the Keyboard and Pointer sensors, ensuring they properly handle cases where beforeDragStart events are prevented.

  • #1658 f8d69b0 Thanks @github-actions! - Allow actions.start() to optionally receive a source as input.

  • #1658 ee55f58 Thanks @github-actions! - Refactor the drag operation system to improve code organization and maintainability:

    • Split dragOperation.ts into multiple focused files:
      • operation.ts - Core drag operation logic
      • status.ts - Status management
      • actions.ts - Drag actions
    • Update imports and exports to reflect new file structure
    • Improve type definitions and exports
  • #1660 374f81f Thanks @GuillaumeSalles! - Add option shouldActivate on KeyboardSensor. By default KeyboardSensor activates if the Keyboard event is triggered from the Draggable element or handle. shouldActivate let the user override this behavior.

  • Updated dependencies [ee55f58, 4682570, f8d69b0, d04e9a2, ee55f58]:

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

Don't miss a new dnd-kit release

NewReleases is sending notifications on new releases.