fix(deps): update dependency @dnd-kit/core to v6.3.1 #10862
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
6.1.0
->6.3.1
Release Notes
clauderic/dnd-kit (@dnd-kit/core)
v6.3.1
Compare Source
Patch Changes
62f632a
Thanks @clauderic! - AddedTab
to the list of default key codes that end a drag and drop operation. Can be customized by passing in a custom list ofkeyCodes
to the KeyboardSensor options.v6.3.0
Compare Source
Minor Changes
0c6a28d
Thanks @irobot! - Make it possible to add visual cues when using activation constraints.Context
Activation constraints are used when we want to prevent accidental dragging or when
pointer press can mean more than "start dragging".
A typical use case is a button that needs to respond to both "click" and "drag" gestures.
Clicks can be distinguished from drags based on how long the pointer was
held pressed.
The problem
A control that responds differently to a pointer press based on duration or distance can
be confusing to use -- the user has to guess how long to keep holding or how far to keep
dragging until their intent is acknowledged.
Implementing such cues is currently possible by attaching extra event listeners so that
we know when a drag is pending. Furthermore, the listener needs to have access to
the same constraints that were applied to the sensor initiating the drag. This can be
made to work in simple cases, but it becomes error-prone and difficult to maintain in
complex scenarios.
Solution
This changeset proposes the addition of two new events:
onDragPending
andonDragAbort
.onDragPending
A drag is considered to be pending when the pointer has been pressed and there are
activation constraints that need to be satisfied before a drag can start.
This event is initially fired on pointer press. At this time
offset
(see below) will beundefined
.It will subsequently be fired every time the pointer is moved. This is to enable
visual cues for distance-based activation.
The event's payload contains all the information necessary for providing visual feedback:
onDragAbort
A drag is considered aborted when an activation constraint for a pending drag was violated.
Useful as a prompt to cancel any visual cue animations currently in progress.
Note that this event will not be fired when dragging ends or is canceled.
v6.2.0
Compare Source
Minor Changes
545a41c
Thanks @anilanar! - AddactivatorEvent
toDragStartEvent
Patch Changes
#1494
00ec286
Thanks @dinkinflickaa! - Improves performance by eliminating wasteful re-renders on every child item on click#1400
995dc23
Thanks @12joan! - ExportdefaultKeyboardCoordinateGetter
#1542
f629ec6
Thanks @clauderic! - Fix bug with draggable and sortable elements with anid
equal to0
.#1541
99643f6
Thanks @clauderic! - Handletouchcancel
andpointercancel
events.#1435
6bbe39b
Thanks @knaveenkumar3576! - Faster Paint with delayed flush of Effects#1543
bcaf7c4
Thanks @clauderic! - Fix a bug with auto-scroller continuing to observe stale elements, causing them to be considered as scrollable.Updated dependencies [
93602df
]:Configuration
📅 Schedule: Branch creation - "every weekday after 2:00 am before 6:00 am,every weekend" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.