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 was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to experimental, this PR will be updated.
Releases
@dnd-kit/[email protected]
Patch Changes
#1454
a04d3f8
Thanks @github-actions! - Rework how collisions are detected and how the position of elements is observed using a newPositionObserver
.#1454
a8542de
Thanks @github-actions! - Fix issues withcollisionPriority
not being respected.#1454
f7458d9
Thanks @github-actions! - Fixed a bug where theaccept
function ofDroppable
was never invoked if thedraggable
did not have atype
set.#1454
e70b29a
Thanks @github-actions! - Make sure the generic forDragDropManager
is passed through toEntity
so that themanager
reference on classes extendingEntity
is strongly typed.#1454
4d1a030
Thanks @github-actions! - Make sure the cleanup function of effects is invoked when registering a new instance with the sameid
before the old instance has been unregistered.#1454
a5933d8
Thanks @github-actions! - Move responsibility fromCollisionObserver
toCollisionNotifier
to check if the previous collisions are equal to the next collisions.#1448
96f28ef
Thanks @lfades! - Allow entities to receive a new id during the lifecycle of the entityUpdated dependencies [
b750c05
,71dc39f
]:@dnd-kit/[email protected]
Patch Changes
#1454
69bfad7
Thanks @github-actions! - IntroduceclosestCorners
collision detection algorithm.#1454
a8542de
Thanks @github-actions! - Fix issues withcollisionPriority
not being respected.#1454
a6366f9
Thanks @github-actions! - Improve accuracy ofshapeIntersection
when there are multiple intersecting shapes.Updated dependencies [
a04d3f8
,a8542de
,f7458d9
,e70b29a
,4d1a030
,a5933d8
,96f28ef
,71dc39f
]:@dnd-kit/[email protected]
Patch Changes
#1454
94920c8
Thanks @github-actions! - Batch write operations todraggable
anddroppable
. Also ensured that droppable instance is registered before draggable instance.#1454
a04d3f8
Thanks @github-actions! - Rework how collisions are detected and how the position of elements is observed using a newPositionObserver
.#1454
8053e4b
Thanks @github-actions! - AllowSortable
to have a distinctelement
from the underlyingsource
andtarget
elements. This can be useful if you want the collision detection to operate on a subset of the sortable element, but the entirety of the element to move when its index changes.#1454
f400106
Thanks @github-actions! - Improve theFeedback
plugin to better handle when the feedback element resizes during a drag operation.#1454
c597b3f
Thanks @github-actions! - IntroducerootElement
option onFeedback
plugin.#1454
a9798f4
Thanks @github-actions! - Fix issues withinstanceof
checks in cross-window environments where thewindow
of an element can differ from the execution context window.#1454
e70b29a
Thanks @github-actions! - Make sure the generic forDragDropManager
is passed through toEntity
so that themanager
reference on classes extendingEntity
is strongly typed.#1454
3d0b00a
Thanks @github-actions! - Fix an issue where we would update the shape of sortable items while the drag operation status was idle.#1454
51be6df
Thanks @github-actions! - Fixelement
not being set when provided on initialization ofDroppable
#1454
fe76033
Thanks @github-actions! - Fixed a bug in theKeyboardSensor
that would cause the sensor to activate when focusing elements within the sortable element other than the handle.#1454
62a8118
Thanks @github-actions! - AddedTab
to the list of default keycodes that end the current drag operation.#1454
0c7bf85
Thanks @github-actions! - Allow theOptimisticSortingPlugin
to sort elements across different groups.#1454
f219549
Thanks @github-actions! - Fix pointer events no longer being detected by thePointerSensor
when the event target is disconnected from the DOM by setting pointer capture on the document body forpointermove
events.#1454
bfc8ab2
Thanks @github-actions! - PointerSensor: Defer invokingsetPointerCapture
until activation constraints are met as it can interfere withclick
and other event handlers. Also deferred addingtouchmove
,click
andkeydown
event listeners until the activation constraints are met.#1454
3fb972e
Thanks @github-actions! - AccessibilityPlugin: Forcetabindex="0"
in Safari even for natively focusable elements as they are not always focusable by default.#1454
5b36f8f
Thanks @github-actions! - Allow sortable animations when changing to a different group even when the index remains the same.#1454
69bfad7
Thanks @github-actions! -SortableKeyboardPlugin
: UseclosestCorners
collision detection algorithm instead ofclosestCenter
when keyboard sorting.Updated dependencies [
69bfad7
,a04d3f8
,a8542de
,f7458d9
,b750c05
,e70b29a
,4d1a030
,a6366f9
,a5933d8
,96f28ef
,71dc39f
]:@dnd-kit/[email protected]
Patch Changes
#1454
71dc39f
Thanks @github-actions! - Addedvelocity
property onPosition
interface to track the current velocity of position updates in thex
andy
axis.Updated dependencies [
b750c05
]:@dnd-kit/[email protected]
Patch Changes
#1454
1998c20
Thanks @github-actions! - Updated themove
helper to accept anevent
instead ofsource
andtarget
.Updated dependencies [
a04d3f8
,a8542de
,f7458d9
,e70b29a
,4d1a030
,a5933d8
,96f28ef
]:@dnd-kit/[email protected]
Patch Changes
#1454
d26fafe
Thanks @github-actions! - Prevent un-necessary re-renders of unuseduseSignal
values.#1454
d302511
Thanks @github-actions! - Prevent unstableref
from being set to undefined during a drag operation on draggable sources during a drag operation.#1454
e2f5d93
Thanks @github-actions! -useSortable
: Make suregroup
andindex
are updated at the same time.#1454
ff17c04
Thanks @github-actions! - Allow dependencies to be passed touseComputed
hook.Updated dependencies [
94920c8
,a04d3f8
,8053e4b
,f400106
,c597b3f
,a8542de
,a9798f4
,f7458d9
,b750c05
,e70b29a
,3d0b00a
,4d1a030
,51be6df
,fe76033
,62a8118
,a5933d8
,0c7bf85
,f219549
,bfc8ab2
,96f28ef
,3fb972e
,5b36f8f
,69bfad7
]:@dnd-kit/[email protected]
Patch Changes
b750c05
Thanks @github-actions! - Fixed a bug with comparing functions incorrectly for equality indeepEqual
utility.