github clauderic/dnd-kit @dnd-kit/abstract@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 d04e9a2 Thanks @github-actions! - Prevent starting a new drag operation while another one is active by adding a status check in the drag operation manager. This change throws an error if an attempt is made to start a drag operation while another one is in progress.

  • #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
  • Updated dependencies [ee55f58]:

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

Don't miss a new dnd-kit release

NewReleases is sending notifications on new releases.