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

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

Patch Changes

  • #1600 e36d954 Thanks @github-actions! - Added nativeEvent property to dragstart, dragmove and dragend events. This can be used to distinguish user triggered events from sensor triggered events, as user or plugin triggered events will typically not have an associated event attached.

  • #1600 bb4abcd Thanks @github-actions! - Make sure the Feedback element is promoted to the top layer when synchronizing the placeholder and element position in the DOM.

  • #1600 d86bbc7 Thanks @github-actions! - Added alignment configuration option to draggable instances to let consumers decide how to align the draggable during the drop animation and while keyboard sorting. Defaults to the center of the target shape.

  • #1600 f433fb2 Thanks @github-actions! - Fixed a regression in the Feedback plugin where the initial translate style applied to the element being dragged was not properly accounted for anymore.

  • #1600 7dc0103 Thanks @github-actions! - Removed some !important rules and updated the specificity of the Feedback plugin styles to 0-2-0 to make it easier for consumers to override certain styles, such as width and height.

  • cff3c3c Thanks @clauderic! - Fixed a bug with the drop animation by using intrinsicWidth and intrinsicHeight to determine if the width and height of the source and target differ or not rather than the width and height properties which may be transformed.

  • #1600 f87d633 Thanks @github-actions! - Fixed a regression introduced in 0.0.7 with optimistic updates not being persisted on drag end.

  • 860759b Thanks @clauderic! - Added intrinsicWidth and intrinsicHeight properties on DOMRectangle, which return the intrinsic width and height of an element, before any transforms are applied.

  • #1600 54e416f Thanks @github-actions! - Only handle dragmove events that have an associated KeyboardEvent as their event.nativeEvent property.

  • #1600 c51778d Thanks @github-actions! - PointerSensor: Use capture listener to prevent dragstart events.

  • #1600 86ed6c8 Thanks @github-actions! - Fixed a regression in the PointerSensor where the same drag operation could fire a dragend event twice due to a race condition between pointerup and lostpointercapture.

  • #1600 afedea9 Thanks @github-actions! - PreventSelection: Remove text selection when a drag operation is initialized.

  • Updated dependencies [e36d954, 60e7297, 3463da1, b7f1cf8, 3e629cc, 8ae7014, ce31da7]:

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

Don't miss a new dnd-kit release

NewReleases is sending notifications on new releases.