- Updated dependencies [
0c6a28d
]:- @dnd-kit/[email protected]
- Updated dependencies [
00ec286
,995dc23
,f629ec6
,99643f6
,6bbe39b
,545a41c
,bcaf7c4
]:- @dnd-kit/[email protected]
- Updated dependencies [
bc588c7
,b417f0f
,f342d5e
]:- @dnd-kit/[email protected]
- @dnd-kit/[email protected]
-
#823
b065c37
Thanks @DaniGuardiola! - Add missing peer dependency to @dnd-kit/modifiers -
Updated dependencies [
da7c60d
]:- @dnd-kit/[email protected]
- @dnd-kit/[email protected]
- Updated dependencies [
4173087
,59ca82b
,7161f70
,a52fba1
,40707ce
,a41e5b8
,bf30718
,a41e5b8
,a41e5b8
,035021a
,77e3d44
,5811986
,e302bd4
,188a450
,59ca82b
,750d726
,5f3c700
,035021a
,e6e242c
,035021a
,33e6dd2
,10f6836
,c1b3b5a
,035021a
]:- @dnd-kit/[email protected]
- @dnd-kit/[email protected]
-
#567
cd3adf3
Thanks @clauderic! - Update modifiers to usedraggingNodeRect
instead ofactiveNodeRect
. Modifiers should be based on the rect of the node being dragged, whether it is the draggable node or drag overlay node. -
#518
6310227
Thanks @clauderic! - Major internal refactor of measuring and collision detection.Previously, all collision detection algorithms were relative to the top and left points of the document. While this approach worked in most situations, it broke down in a number of different use-cases, such as fixed position droppable containers and trying to drag between containers that had different scroll positions.
This new approach changes the frame of comparison to be relative to the viewport. This is a major breaking change, and will need to be released under a new major version bump.
- By default,
@dnd-kit
now ignores only the transforms applied to the draggable / droppable node itself, but considers all the transforms applied to its ancestors. This should provide the right balance of flexibility for most consumers.- Transforms applied to the droppable and draggable nodes are ignored by default, because the recommended approach for moving items on the screen is to use the transform property, which can interfere with the calculation of collisions.
- Consumers can choose an alternate approach that does consider transforms for specific use-cases if needed by configuring the measuring prop of . Refer to the example.
- Reduced the number of concepts related to measuring from
ViewRect
,LayoutRect
to just a single concept ofClientRect
.- The
ClientRect
interface no longer holds theoffsetTop
andoffsetLeft
properties. For most use-cases, you can replaceoffsetTop
withtop
andoffsetLeft
withleft
. - Replaced the following exports from the
@dnd-kit/core
package withgetClientRect
:getBoundingClientRect
getViewRect
getLayoutRect
getViewportLayoutRect
- The
- Removed
translatedRect
from theSensorContext
interface. Replace usage withcollisionRect
. - Removed
activeNodeClientRect
on theDndContext
interface. Replace withactiveNodeRect
.
- By default,
- Updated dependencies [
f3ad20d
,02edd26
,c6c67cb
,6310227
,e7ac3d4
,528c67e
,02edd26
]:- @dnd-kit/[email protected]
- @dnd-kit/[email protected]
- #334
13be602
Thanks @trentmwillis! - AddsnapCenterToCursor
modifier
-
#437
0e628bc
Thanks @chestozo! - Added PointerEvent support to thegetEventCoordinates
method. This fixes testing the PointerSensor with Cypress (#436) -
Updated dependencies [
13be602
,aede2cc
,05d6a78
,a32a4c5
,f96cb5d
,dea715c
,dbc9601
,46ec5e4
,7006464
,0e628bc
,c447880
,2ba6dfe
,8d70540
,13be602
,422d083
,c4b21b4
,5a41340
,a13dbb6
,e2ee0dc
,1fe9b5c
,1fe9b5c
,1f5ca27
]:- @dnd-kit/[email protected]
- @dnd-kit/[email protected]
- Updated dependencies [
d39ab11
]:- @dnd-kit/[email protected]
68960c4
#295 Thanks @akhmadullin! -@dnd-kit/core
is now apeerDependency
rather than adependency
for other@dnd-kit
packages that depend on it, such as@dnd-kit/sortable
and@dnd-kit/modifiers
. This is done to avoid issues with multiple versions of@dnd-kit/core
being installed by some package managers such as Yarn 2.
- Updated dependencies [
ae398de
,8b938ce
]:- @dnd-kit/[email protected]
-
a9d92cf
#174 Thanks @clauderic! - Distributed assets now only target modern browsers. Browserlist config:defaults last 2 version not IE 11 not dead
If you need to support older browsers, include the appropriate polyfills in your project's build process.
- Updated dependencies [
b7355d1
,a9d92cf
,b406cb9
]:- @dnd-kit/[email protected]
- @dnd-kit/[email protected]
- Updated dependencies [
8583825
]:- @dnd-kit/[email protected]
-
6a5c8a1
#154 Thanks @clauderic! - Update implementation of FirstArgument -
Updated dependencies [
6a5c8a1
]:- @dnd-kit/[email protected]
75bebf5
#152 Thanks @clauderic! - Update dependencies of @dnd-kit/core to ^1.2.0
-
423610c
#56 Thanks @clauderic! - Add MIT license to package.json and distributed files -
Updated dependencies [
423610c
,594a24e
,fd25eaf
]:- @dnd-kit/[email protected]
- @dnd-kit/[email protected]
-
0b343c7
#52 Thanks @clauderic! - Add repository entry to package.json files -
Updated dependencies [
0b343c7
,5194696
,310bbd6
]:- @dnd-kit/[email protected]
- @dnd-kit/[email protected]
2912350
Thanks @clauderic! - Initial public release.
- Updated dependencies [
2912350
]:- @dnd-kit/[email protected]
- @dnd-kit/[email protected]
7bd4568
#30 - Initial beta release, authored by @clauderic.
- Updated dependencies [
7bd4568
]:- @dnd-kit/[email protected]
- @dnd-kit/[email protected]