From 7ba707bc498a227a988a4412e7a5f8a20412bbad Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 6 Oct 2024 15:42:22 +0000 Subject: [PATCH] Version Packages --- .changeset/batch-sortable.md | 5 --- .changeset/closest-corners.md | 5 --- .changeset/collision-observer.md | 6 --- .changeset/distinct-sortable-element.md | 5 --- .changeset/feedback-plugin.md | 5 --- .changeset/feedback-root.md | 5 --- .changeset/fix-collision-priority.md | 6 --- .changeset/fix-cross-window-instanceof.md | 5 --- .changeset/fix-droppable-accept.md | 5 --- .changeset/fix-function-comparison.md | 5 --- .changeset/fix-generics.md | 6 --- .changeset/fix-idle-transitions.md | 5 --- .changeset/fix-unregister-bug.md | 5 --- .changeset/fix-vanilla-droppable.md | 5 --- .changeset/improve-shape-intersection.md | 5 --- .changeset/keyboard-sensor.md | 5 --- .changeset/keyboard-tab-end.md | 5 --- .changeset/move-helper.md | 5 --- .changeset/notifier-observer.md | 5 --- .changeset/optimistic-sort-across-group.md | 5 --- .changeset/pointer-sensor-capture.md | 5 --- .changeset/pointer-sensor.md | 5 --- .changeset/prevent-unnecessary-rerenders.md | 5 --- .changeset/prevent-unstable-ref.md | 5 --- .changeset/rude-worms-kick.md | 5 --- .changeset/safari-focus.md | 5 --- .changeset/sortable-group-aniamtion.md | 5 --- .changeset/sortable-group-index.md | 5 --- .changeset/sortable-keyboard-corners.md | 5 --- .changeset/track-velocity.md | 5 --- .changeset/use-computed-deps.md | 5 --- packages/abstract/CHANGELOG.md | 22 +++++++++++ packages/abstract/package.json | 6 +-- packages/collision/CHANGELOG.md | 14 +++++++ packages/collision/package.json | 6 +-- packages/dom/CHANGELOG.md | 44 +++++++++++++++++++++ packages/dom/package.json | 10 ++--- packages/geometry/CHANGELOG.md | 9 +++++ packages/geometry/package.json | 4 +- packages/helpers/CHANGELOG.md | 9 +++++ packages/helpers/package.json | 4 +- packages/react/CHANGELOG.md | 17 ++++++++ packages/react/package.json | 8 ++-- packages/state/CHANGELOG.md | 6 +++ packages/state/package.json | 2 +- 45 files changed, 141 insertions(+), 178 deletions(-) delete mode 100644 .changeset/batch-sortable.md delete mode 100644 .changeset/closest-corners.md delete mode 100644 .changeset/collision-observer.md delete mode 100644 .changeset/distinct-sortable-element.md delete mode 100644 .changeset/feedback-plugin.md delete mode 100644 .changeset/feedback-root.md delete mode 100644 .changeset/fix-collision-priority.md delete mode 100644 .changeset/fix-cross-window-instanceof.md delete mode 100644 .changeset/fix-droppable-accept.md delete mode 100644 .changeset/fix-function-comparison.md delete mode 100644 .changeset/fix-generics.md delete mode 100644 .changeset/fix-idle-transitions.md delete mode 100644 .changeset/fix-unregister-bug.md delete mode 100644 .changeset/fix-vanilla-droppable.md delete mode 100644 .changeset/improve-shape-intersection.md delete mode 100644 .changeset/keyboard-sensor.md delete mode 100644 .changeset/keyboard-tab-end.md delete mode 100644 .changeset/move-helper.md delete mode 100644 .changeset/notifier-observer.md delete mode 100644 .changeset/optimistic-sort-across-group.md delete mode 100644 .changeset/pointer-sensor-capture.md delete mode 100644 .changeset/pointer-sensor.md delete mode 100644 .changeset/prevent-unnecessary-rerenders.md delete mode 100644 .changeset/prevent-unstable-ref.md delete mode 100644 .changeset/rude-worms-kick.md delete mode 100644 .changeset/safari-focus.md delete mode 100644 .changeset/sortable-group-aniamtion.md delete mode 100644 .changeset/sortable-group-index.md delete mode 100644 .changeset/sortable-keyboard-corners.md delete mode 100644 .changeset/track-velocity.md delete mode 100644 .changeset/use-computed-deps.md diff --git a/.changeset/batch-sortable.md b/.changeset/batch-sortable.md deleted file mode 100644 index c7cd5097..00000000 --- a/.changeset/batch-sortable.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@dnd-kit/dom': patch ---- - -Batch write operations to `draggable` and `droppable`. Also ensured that droppable instance is registered before draggable instance. diff --git a/.changeset/closest-corners.md b/.changeset/closest-corners.md deleted file mode 100644 index f1230469..00000000 --- a/.changeset/closest-corners.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@dnd-kit/collision': patch ---- - -Introduce `closestCorners` collision detection algorithm. diff --git a/.changeset/collision-observer.md b/.changeset/collision-observer.md deleted file mode 100644 index d43df6f7..00000000 --- a/.changeset/collision-observer.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@dnd-kit/abstract': patch -'@dnd-kit/dom': patch ---- - -Rework how collisions are detected and how the position of elements is observed using a new `PositionObserver`. diff --git a/.changeset/distinct-sortable-element.md b/.changeset/distinct-sortable-element.md deleted file mode 100644 index 88f1e3d6..00000000 --- a/.changeset/distinct-sortable-element.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@dnd-kit/dom': patch ---- - -Allow `Sortable` to have a distinct `element` from the underlying `source` and `target` 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. diff --git a/.changeset/feedback-plugin.md b/.changeset/feedback-plugin.md deleted file mode 100644 index 1c69fc46..00000000 --- a/.changeset/feedback-plugin.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@dnd-kit/dom': patch ---- - -Improve the `Feedback` plugin to better handle when the feedback element resizes during a drag operation. diff --git a/.changeset/feedback-root.md b/.changeset/feedback-root.md deleted file mode 100644 index 126024b0..00000000 --- a/.changeset/feedback-root.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@dnd-kit/dom': patch ---- - -Introduce `rootElement` option on `Feedback` plugin. diff --git a/.changeset/fix-collision-priority.md b/.changeset/fix-collision-priority.md deleted file mode 100644 index 45325645..00000000 --- a/.changeset/fix-collision-priority.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@dnd-kit/abstract': patch -'@dnd-kit/collision': patch ---- - -Fix issues with `collisionPriority` not being respected. diff --git a/.changeset/fix-cross-window-instanceof.md b/.changeset/fix-cross-window-instanceof.md deleted file mode 100644 index a9e7b5d9..00000000 --- a/.changeset/fix-cross-window-instanceof.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@dnd-kit/dom': patch ---- - -Fix issues with `instanceof` checks in cross-window environments where the `window` of an element can differ from the execution context window. diff --git a/.changeset/fix-droppable-accept.md b/.changeset/fix-droppable-accept.md deleted file mode 100644 index c0b005ec..00000000 --- a/.changeset/fix-droppable-accept.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@dnd-kit/abstract': patch ---- - -Fixed a bug where the `accept` function of `Droppable` was never invoked if the `draggable` did not have a `type` set. diff --git a/.changeset/fix-function-comparison.md b/.changeset/fix-function-comparison.md deleted file mode 100644 index 4de77942..00000000 --- a/.changeset/fix-function-comparison.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@dnd-kit/state': patch ---- - -Fixed a bug with comparing functions incorrectly for equality in `deepEqual` utility. diff --git a/.changeset/fix-generics.md b/.changeset/fix-generics.md deleted file mode 100644 index bb92ca11..00000000 --- a/.changeset/fix-generics.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@dnd-kit/abstract': patch -'@dnd-kit/dom': patch ---- - -Make sure the generic for `DragDropManager` is passed through to `Entity` so that the `manager` reference on classes extending `Entity` is strongly typed. diff --git a/.changeset/fix-idle-transitions.md b/.changeset/fix-idle-transitions.md deleted file mode 100644 index 6453b313..00000000 --- a/.changeset/fix-idle-transitions.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@dnd-kit/dom': patch ---- - -Fix an issue where we would update the shape of sortable items while the drag operation status was idle. diff --git a/.changeset/fix-unregister-bug.md b/.changeset/fix-unregister-bug.md deleted file mode 100644 index 243f787d..00000000 --- a/.changeset/fix-unregister-bug.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@dnd-kit/abstract': patch ---- - -Make sure the cleanup function of effects is invoked when registering a new instance with the same `id` before the old instance has been unregistered. diff --git a/.changeset/fix-vanilla-droppable.md b/.changeset/fix-vanilla-droppable.md deleted file mode 100644 index 0164b57c..00000000 --- a/.changeset/fix-vanilla-droppable.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@dnd-kit/dom': patch ---- - -Fix `element` not being set when provided on initialization of `Droppable` diff --git a/.changeset/improve-shape-intersection.md b/.changeset/improve-shape-intersection.md deleted file mode 100644 index 39d17dc1..00000000 --- a/.changeset/improve-shape-intersection.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@dnd-kit/collision': patch ---- - -Improve accuracy of `shapeIntersection` when there are multiple intersecting shapes. diff --git a/.changeset/keyboard-sensor.md b/.changeset/keyboard-sensor.md deleted file mode 100644 index 344c00f2..00000000 --- a/.changeset/keyboard-sensor.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@dnd-kit/dom': patch ---- - -Fixed a bug in the `KeyboardSensor` that would cause the sensor to activate when focusing elements within the sortable element other than the handle. diff --git a/.changeset/keyboard-tab-end.md b/.changeset/keyboard-tab-end.md deleted file mode 100644 index 8cb049f0..00000000 --- a/.changeset/keyboard-tab-end.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@dnd-kit/dom': patch ---- - -Added `Tab` to the list of default keycodes that end the current drag operation. diff --git a/.changeset/move-helper.md b/.changeset/move-helper.md deleted file mode 100644 index 1549b3db..00000000 --- a/.changeset/move-helper.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@dnd-kit/helpers': patch ---- - -Updated the `move` helper to accept an `event` instead of `source` and `target`. diff --git a/.changeset/notifier-observer.md b/.changeset/notifier-observer.md deleted file mode 100644 index 9514bfd4..00000000 --- a/.changeset/notifier-observer.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@dnd-kit/abstract': patch ---- - -Move responsibility from `CollisionObserver` to `CollisionNotifier` to check if the previous collisions are equal to the next collisions. diff --git a/.changeset/optimistic-sort-across-group.md b/.changeset/optimistic-sort-across-group.md deleted file mode 100644 index de24e830..00000000 --- a/.changeset/optimistic-sort-across-group.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@dnd-kit/dom': patch ---- - -Allow the `OptimisticSortingPlugin` to sort elements across different groups. diff --git a/.changeset/pointer-sensor-capture.md b/.changeset/pointer-sensor-capture.md deleted file mode 100644 index d932037c..00000000 --- a/.changeset/pointer-sensor-capture.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@dnd-kit/dom': patch ---- - -Fix pointer events no longer being detected by the `PointerSensor` when the event target is disconnected from the DOM by setting pointer capture on the document body for `pointermove` events. diff --git a/.changeset/pointer-sensor.md b/.changeset/pointer-sensor.md deleted file mode 100644 index 8bc50645..00000000 --- a/.changeset/pointer-sensor.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@dnd-kit/dom': patch ---- - -**PointerSensor**: Defer invoking `setPointerCapture` until activation constraints are met as it can interfere with `click` and other event handlers. Also deferred adding `touchmove`, `click` and `keydown` event listeners until the activation constraints are met. diff --git a/.changeset/prevent-unnecessary-rerenders.md b/.changeset/prevent-unnecessary-rerenders.md deleted file mode 100644 index 9e337d59..00000000 --- a/.changeset/prevent-unnecessary-rerenders.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@dnd-kit/react': patch ---- - -Prevent un-necessary re-renders of unused `useSignal` values. diff --git a/.changeset/prevent-unstable-ref.md b/.changeset/prevent-unstable-ref.md deleted file mode 100644 index 5a490d81..00000000 --- a/.changeset/prevent-unstable-ref.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@dnd-kit/react': patch ---- - -Prevent unstable `ref` from being set to undefined during a drag operation on draggable sources during a drag operation. diff --git a/.changeset/rude-worms-kick.md b/.changeset/rude-worms-kick.md deleted file mode 100644 index 95942838..00000000 --- a/.changeset/rude-worms-kick.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@dnd-kit/abstract": patch ---- - -Allow entities to receive a new id during the lifecycle of the entity diff --git a/.changeset/safari-focus.md b/.changeset/safari-focus.md deleted file mode 100644 index fb4bd9f6..00000000 --- a/.changeset/safari-focus.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@dnd-kit/dom': patch ---- - -**AccessibilityPlugin**: Force `tabindex="0"` in Safari even for natively focusable elements as they are not always focusable by default. diff --git a/.changeset/sortable-group-aniamtion.md b/.changeset/sortable-group-aniamtion.md deleted file mode 100644 index d876ec43..00000000 --- a/.changeset/sortable-group-aniamtion.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@dnd-kit/dom': patch ---- - -Allow sortable animations when changing to a different group even when the index remains the same. diff --git a/.changeset/sortable-group-index.md b/.changeset/sortable-group-index.md deleted file mode 100644 index 0ea48060..00000000 --- a/.changeset/sortable-group-index.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@dnd-kit/react': patch ---- - -`useSortable`: Make sure `group` and `index` are updated at the same time. diff --git a/.changeset/sortable-keyboard-corners.md b/.changeset/sortable-keyboard-corners.md deleted file mode 100644 index 6430f4cc..00000000 --- a/.changeset/sortable-keyboard-corners.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@dnd-kit/dom': patch ---- - -`SortableKeyboardPlugin`: Use `closestCorners` collision detection algorithm instead of `closestCenter` when keyboard sorting. diff --git a/.changeset/track-velocity.md b/.changeset/track-velocity.md deleted file mode 100644 index da83f650..00000000 --- a/.changeset/track-velocity.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@dnd-kit/geometry': patch ---- - -Added `velocity` property on `Position` interface to track the current velocity of position updates in the `x` and `y` axis. diff --git a/.changeset/use-computed-deps.md b/.changeset/use-computed-deps.md deleted file mode 100644 index 55af64af..00000000 --- a/.changeset/use-computed-deps.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@dnd-kit/react': patch ---- - -Allow dependencies to be passed to `useComputed` hook. diff --git a/packages/abstract/CHANGELOG.md b/packages/abstract/CHANGELOG.md index 2382b72f..647f29d6 100644 --- a/packages/abstract/CHANGELOG.md +++ b/packages/abstract/CHANGELOG.md @@ -1,5 +1,27 @@ # @dnd-kit/abstract +## 0.0.6 + +### Patch Changes + +- [#1454](https://github.com/clauderic/dnd-kit/pull/1454) [`a04d3f8`](https://github.com/clauderic/dnd-kit/commit/a04d3f88d380853b97585ab3b608561f7b02ce69) Thanks [@github-actions](https://github.com/apps/github-actions)! - Rework how collisions are detected and how the position of elements is observed using a new `PositionObserver`. + +- [#1454](https://github.com/clauderic/dnd-kit/pull/1454) [`a8542de`](https://github.com/clauderic/dnd-kit/commit/a8542de56d39c3cd3b6ef981172a0782454295b2) Thanks [@github-actions](https://github.com/apps/github-actions)! - Fix issues with `collisionPriority` not being respected. + +- [#1454](https://github.com/clauderic/dnd-kit/pull/1454) [`f7458d9`](https://github.com/clauderic/dnd-kit/commit/f7458d9dc32824dbea3a6d5dfb29236f19a2c073) Thanks [@github-actions](https://github.com/apps/github-actions)! - Fixed a bug where the `accept` function of `Droppable` was never invoked if the `draggable` did not have a `type` set. + +- [#1454](https://github.com/clauderic/dnd-kit/pull/1454) [`e70b29a`](https://github.com/clauderic/dnd-kit/commit/e70b29ae64837e424f7279c95112fb6e420c4dcc) Thanks [@github-actions](https://github.com/apps/github-actions)! - Make sure the generic for `DragDropManager` is passed through to `Entity` so that the `manager` reference on classes extending `Entity` is strongly typed. + +- [#1454](https://github.com/clauderic/dnd-kit/pull/1454) [`4d1a030`](https://github.com/clauderic/dnd-kit/commit/4d1a0306c920ae064eb5b30c4c02961f50460c84) Thanks [@github-actions](https://github.com/apps/github-actions)! - Make sure the cleanup function of effects is invoked when registering a new instance with the same `id` before the old instance has been unregistered. + +- [#1454](https://github.com/clauderic/dnd-kit/pull/1454) [`a5933d8`](https://github.com/clauderic/dnd-kit/commit/a5933d8607e63ed08818ffab43e858863cb35d47) Thanks [@github-actions](https://github.com/apps/github-actions)! - Move responsibility from `CollisionObserver` to `CollisionNotifier` to check if the previous collisions are equal to the next collisions. + +- [#1448](https://github.com/clauderic/dnd-kit/pull/1448) [`96f28ef`](https://github.com/clauderic/dnd-kit/commit/96f28ef86adf95e77540732d39033c7f3fb0fd04) Thanks [@lfades](https://github.com/lfades)! - Allow entities to receive a new id during the lifecycle of the entity + +- Updated dependencies [[`b750c05`](https://github.com/clauderic/dnd-kit/commit/b750c05b4b14f5d9817dc07d974d40b74470e904), [`71dc39f`](https://github.com/clauderic/dnd-kit/commit/71dc39fb2ec21b9a680238a91be419c71ecabe86)]: + - @dnd-kit/state@0.0.6 + - @dnd-kit/geometry@0.0.6 + ## 0.0.5 ### Patch Changes diff --git a/packages/abstract/package.json b/packages/abstract/package.json index c6814147..451d6bea 100644 --- a/packages/abstract/package.json +++ b/packages/abstract/package.json @@ -1,6 +1,6 @@ { "name": "@dnd-kit/abstract", - "version": "0.0.5", + "version": "0.0.6", "type": "module", "main": "./index.cjs", "module": "./index.js", @@ -44,8 +44,8 @@ "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist" }, "dependencies": { - "@dnd-kit/geometry": "^0.0.5", - "@dnd-kit/state": "^0.0.5", + "@dnd-kit/geometry": "^0.0.6", + "@dnd-kit/state": "^0.0.6", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/packages/collision/CHANGELOG.md b/packages/collision/CHANGELOG.md index 25ef3a90..787423c5 100644 --- a/packages/collision/CHANGELOG.md +++ b/packages/collision/CHANGELOG.md @@ -1,5 +1,19 @@ # @dnd-kit/collision +## 0.0.6 + +### Patch Changes + +- [#1454](https://github.com/clauderic/dnd-kit/pull/1454) [`69bfad7`](https://github.com/clauderic/dnd-kit/commit/69bfad7d795947987a4281f1a61f81b6a7839fe8) Thanks [@github-actions](https://github.com/apps/github-actions)! - Introduce `closestCorners` collision detection algorithm. + +- [#1454](https://github.com/clauderic/dnd-kit/pull/1454) [`a8542de`](https://github.com/clauderic/dnd-kit/commit/a8542de56d39c3cd3b6ef981172a0782454295b2) Thanks [@github-actions](https://github.com/apps/github-actions)! - Fix issues with `collisionPriority` not being respected. + +- [#1454](https://github.com/clauderic/dnd-kit/pull/1454) [`a6366f9`](https://github.com/clauderic/dnd-kit/commit/a6366f9e42836b4c5732141bf314489ede9f60cb) Thanks [@github-actions](https://github.com/apps/github-actions)! - Improve accuracy of `shapeIntersection` when there are multiple intersecting shapes. + +- Updated dependencies [[`a04d3f8`](https://github.com/clauderic/dnd-kit/commit/a04d3f88d380853b97585ab3b608561f7b02ce69), [`a8542de`](https://github.com/clauderic/dnd-kit/commit/a8542de56d39c3cd3b6ef981172a0782454295b2), [`f7458d9`](https://github.com/clauderic/dnd-kit/commit/f7458d9dc32824dbea3a6d5dfb29236f19a2c073), [`e70b29a`](https://github.com/clauderic/dnd-kit/commit/e70b29ae64837e424f7279c95112fb6e420c4dcc), [`4d1a030`](https://github.com/clauderic/dnd-kit/commit/4d1a0306c920ae064eb5b30c4c02961f50460c84), [`a5933d8`](https://github.com/clauderic/dnd-kit/commit/a5933d8607e63ed08818ffab43e858863cb35d47), [`96f28ef`](https://github.com/clauderic/dnd-kit/commit/96f28ef86adf95e77540732d39033c7f3fb0fd04), [`71dc39f`](https://github.com/clauderic/dnd-kit/commit/71dc39fb2ec21b9a680238a91be419c71ecabe86)]: + - @dnd-kit/abstract@0.0.6 + - @dnd-kit/geometry@0.0.6 + ## 0.0.5 ### Patch Changes diff --git a/packages/collision/package.json b/packages/collision/package.json index d7221e64..b84f3eb7 100644 --- a/packages/collision/package.json +++ b/packages/collision/package.json @@ -1,7 +1,7 @@ { "name": "@dnd-kit/collision", "type": "module", - "version": "0.0.5", + "version": "0.0.6", "main": "./dist/index.cjs", "module": "./dist/index.js", "types": "./dist/index.d.ts", @@ -24,8 +24,8 @@ "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist" }, "dependencies": { - "@dnd-kit/abstract": "^0.0.5", - "@dnd-kit/geometry": "^0.0.5", + "@dnd-kit/abstract": "^0.0.6", + "@dnd-kit/geometry": "^0.0.6", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/packages/dom/CHANGELOG.md b/packages/dom/CHANGELOG.md index dc9c6aa4..bc312c3e 100644 --- a/packages/dom/CHANGELOG.md +++ b/packages/dom/CHANGELOG.md @@ -1,5 +1,49 @@ # @dnd-kit/dom +## 0.0.6 + +### Patch Changes + +- [#1454](https://github.com/clauderic/dnd-kit/pull/1454) [`94920c8`](https://github.com/clauderic/dnd-kit/commit/94920c8a7a3a15accfb806b52e4935637b1a0781) Thanks [@github-actions](https://github.com/apps/github-actions)! - Batch write operations to `draggable` and `droppable`. Also ensured that droppable instance is registered before draggable instance. + +- [#1454](https://github.com/clauderic/dnd-kit/pull/1454) [`a04d3f8`](https://github.com/clauderic/dnd-kit/commit/a04d3f88d380853b97585ab3b608561f7b02ce69) Thanks [@github-actions](https://github.com/apps/github-actions)! - Rework how collisions are detected and how the position of elements is observed using a new `PositionObserver`. + +- [#1454](https://github.com/clauderic/dnd-kit/pull/1454) [`8053e4b`](https://github.com/clauderic/dnd-kit/commit/8053e4b4a727c6097b29fb559ce72362d7d6eb2a) Thanks [@github-actions](https://github.com/apps/github-actions)! - Allow `Sortable` to have a distinct `element` from the underlying `source` and `target` 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](https://github.com/clauderic/dnd-kit/pull/1454) [`f400106`](https://github.com/clauderic/dnd-kit/commit/f400106072d12a902f6c113b889c7de97f43e1ea) Thanks [@github-actions](https://github.com/apps/github-actions)! - Improve the `Feedback` plugin to better handle when the feedback element resizes during a drag operation. + +- [#1454](https://github.com/clauderic/dnd-kit/pull/1454) [`c597b3f`](https://github.com/clauderic/dnd-kit/commit/c597b3fe1514f10e227c287dc8ad875134e9b4cb) Thanks [@github-actions](https://github.com/apps/github-actions)! - Introduce `rootElement` option on `Feedback` plugin. + +- [#1454](https://github.com/clauderic/dnd-kit/pull/1454) [`a9798f4`](https://github.com/clauderic/dnd-kit/commit/a9798f43450e406e8cb235b7d5fba8bb809fd1d7) Thanks [@github-actions](https://github.com/apps/github-actions)! - Fix issues with `instanceof` checks in cross-window environments where the `window` of an element can differ from the execution context window. + +- [#1454](https://github.com/clauderic/dnd-kit/pull/1454) [`e70b29a`](https://github.com/clauderic/dnd-kit/commit/e70b29ae64837e424f7279c95112fb6e420c4dcc) Thanks [@github-actions](https://github.com/apps/github-actions)! - Make sure the generic for `DragDropManager` is passed through to `Entity` so that the `manager` reference on classes extending `Entity` is strongly typed. + +- [#1454](https://github.com/clauderic/dnd-kit/pull/1454) [`3d0b00a`](https://github.com/clauderic/dnd-kit/commit/3d0b00a663b9dc38ccd7a46544c94a342694b626) Thanks [@github-actions](https://github.com/apps/github-actions)! - Fix an issue where we would update the shape of sortable items while the drag operation status was idle. + +- [#1454](https://github.com/clauderic/dnd-kit/pull/1454) [`51be6df`](https://github.com/clauderic/dnd-kit/commit/51be6dfe1b8cb42f74df34c76098e197b9208f81) Thanks [@github-actions](https://github.com/apps/github-actions)! - Fix `element` not being set when provided on initialization of `Droppable` + +- [#1454](https://github.com/clauderic/dnd-kit/pull/1454) [`fe76033`](https://github.com/clauderic/dnd-kit/commit/fe7603330fb4b0a397c0e2af641df94fc2879c35) Thanks [@github-actions](https://github.com/apps/github-actions)! - Fixed a bug in the `KeyboardSensor` that would cause the sensor to activate when focusing elements within the sortable element other than the handle. + +- [#1454](https://github.com/clauderic/dnd-kit/pull/1454) [`62a8118`](https://github.com/clauderic/dnd-kit/commit/62a81180c84f7782b14b69b56f891c810e7d0f69) Thanks [@github-actions](https://github.com/apps/github-actions)! - Added `Tab` to the list of default keycodes that end the current drag operation. + +- [#1454](https://github.com/clauderic/dnd-kit/pull/1454) [`0c7bf85`](https://github.com/clauderic/dnd-kit/commit/0c7bf85897992dc48c3cf2f1deeaa896995bfcc3) Thanks [@github-actions](https://github.com/apps/github-actions)! - Allow the `OptimisticSortingPlugin` to sort elements across different groups. + +- [#1454](https://github.com/clauderic/dnd-kit/pull/1454) [`f219549`](https://github.com/clauderic/dnd-kit/commit/f219549087d9100cee53ab0cf35d820fe256aa85) Thanks [@github-actions](https://github.com/apps/github-actions)! - Fix pointer events no longer being detected by the `PointerSensor` when the event target is disconnected from the DOM by setting pointer capture on the document body for `pointermove` events. + +- [#1454](https://github.com/clauderic/dnd-kit/pull/1454) [`bfc8ab2`](https://github.com/clauderic/dnd-kit/commit/bfc8ab21cfd9c16a8d90ab250386e6d52d0a40a3) Thanks [@github-actions](https://github.com/apps/github-actions)! - **PointerSensor**: Defer invoking `setPointerCapture` until activation constraints are met as it can interfere with `click` and other event handlers. Also deferred adding `touchmove`, `click` and `keydown` event listeners until the activation constraints are met. + +- [#1454](https://github.com/clauderic/dnd-kit/pull/1454) [`3fb972e`](https://github.com/clauderic/dnd-kit/commit/3fb972e228aabfe07d662b77c642405f909fddb0) Thanks [@github-actions](https://github.com/apps/github-actions)! - **AccessibilityPlugin**: Force `tabindex="0"` in Safari even for natively focusable elements as they are not always focusable by default. + +- [#1454](https://github.com/clauderic/dnd-kit/pull/1454) [`5b36f8f`](https://github.com/clauderic/dnd-kit/commit/5b36f8fb36f5a4468793b469425b5c0461426f56) Thanks [@github-actions](https://github.com/apps/github-actions)! - Allow sortable animations when changing to a different group even when the index remains the same. + +- [#1454](https://github.com/clauderic/dnd-kit/pull/1454) [`69bfad7`](https://github.com/clauderic/dnd-kit/commit/69bfad7d795947987a4281f1a61f81b6a7839fe8) Thanks [@github-actions](https://github.com/apps/github-actions)! - `SortableKeyboardPlugin`: Use `closestCorners` collision detection algorithm instead of `closestCenter` when keyboard sorting. + +- Updated dependencies [[`69bfad7`](https://github.com/clauderic/dnd-kit/commit/69bfad7d795947987a4281f1a61f81b6a7839fe8), [`a04d3f8`](https://github.com/clauderic/dnd-kit/commit/a04d3f88d380853b97585ab3b608561f7b02ce69), [`a8542de`](https://github.com/clauderic/dnd-kit/commit/a8542de56d39c3cd3b6ef981172a0782454295b2), [`f7458d9`](https://github.com/clauderic/dnd-kit/commit/f7458d9dc32824dbea3a6d5dfb29236f19a2c073), [`b750c05`](https://github.com/clauderic/dnd-kit/commit/b750c05b4b14f5d9817dc07d974d40b74470e904), [`e70b29a`](https://github.com/clauderic/dnd-kit/commit/e70b29ae64837e424f7279c95112fb6e420c4dcc), [`4d1a030`](https://github.com/clauderic/dnd-kit/commit/4d1a0306c920ae064eb5b30c4c02961f50460c84), [`a6366f9`](https://github.com/clauderic/dnd-kit/commit/a6366f9e42836b4c5732141bf314489ede9f60cb), [`a5933d8`](https://github.com/clauderic/dnd-kit/commit/a5933d8607e63ed08818ffab43e858863cb35d47), [`96f28ef`](https://github.com/clauderic/dnd-kit/commit/96f28ef86adf95e77540732d39033c7f3fb0fd04), [`71dc39f`](https://github.com/clauderic/dnd-kit/commit/71dc39fb2ec21b9a680238a91be419c71ecabe86)]: + - @dnd-kit/collision@0.0.6 + - @dnd-kit/abstract@0.0.6 + - @dnd-kit/state@0.0.6 + - @dnd-kit/geometry@0.0.6 + ## 0.0.5 ### Patch Changes diff --git a/packages/dom/package.json b/packages/dom/package.json index 4ab22767..3dcb3ffa 100644 --- a/packages/dom/package.json +++ b/packages/dom/package.json @@ -1,6 +1,6 @@ { "name": "@dnd-kit/dom", - "version": "0.0.5", + "version": "0.0.6", "type": "module", "main": "./index.cjs", "module": "./index.js", @@ -74,10 +74,10 @@ "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist" }, "dependencies": { - "@dnd-kit/abstract": "^0.0.5", - "@dnd-kit/collision": "^0.0.5", - "@dnd-kit/geometry": "^0.0.5", - "@dnd-kit/state": "^0.0.5", + "@dnd-kit/abstract": "^0.0.6", + "@dnd-kit/collision": "^0.0.6", + "@dnd-kit/geometry": "^0.0.6", + "@dnd-kit/state": "^0.0.6", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/packages/geometry/CHANGELOG.md b/packages/geometry/CHANGELOG.md index e5fdda05..84f46221 100644 --- a/packages/geometry/CHANGELOG.md +++ b/packages/geometry/CHANGELOG.md @@ -1,5 +1,14 @@ # @dnd-kit/geometry +## 0.0.6 + +### Patch Changes + +- [#1454](https://github.com/clauderic/dnd-kit/pull/1454) [`71dc39f`](https://github.com/clauderic/dnd-kit/commit/71dc39fb2ec21b9a680238a91be419c71ecabe86) Thanks [@github-actions](https://github.com/apps/github-actions)! - Added `velocity` property on `Position` interface to track the current velocity of position updates in the `x` and `y` axis. + +- Updated dependencies [[`b750c05`](https://github.com/clauderic/dnd-kit/commit/b750c05b4b14f5d9817dc07d974d40b74470e904)]: + - @dnd-kit/state@0.0.6 + ## 0.0.5 ### Patch Changes diff --git a/packages/geometry/package.json b/packages/geometry/package.json index 47802f32..338158a1 100644 --- a/packages/geometry/package.json +++ b/packages/geometry/package.json @@ -1,6 +1,6 @@ { "name": "@dnd-kit/geometry", - "version": "0.0.5", + "version": "0.0.6", "main": "./dist/index.js", "module": "./dist/index.mjs", "types": "./dist/index.d.ts", @@ -16,7 +16,7 @@ "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist" }, "dependencies": { - "@dnd-kit/state": "^0.0.5", + "@dnd-kit/state": "^0.0.6", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/packages/helpers/CHANGELOG.md b/packages/helpers/CHANGELOG.md index f50792fc..9620afe7 100644 --- a/packages/helpers/CHANGELOG.md +++ b/packages/helpers/CHANGELOG.md @@ -1,5 +1,14 @@ # @dnd-kit/helpers +## 0.0.6 + +### Patch Changes + +- [#1454](https://github.com/clauderic/dnd-kit/pull/1454) [`1998c20`](https://github.com/clauderic/dnd-kit/commit/1998c20ecc26f0e2cb24f06077bc01e3dabcaf7c) Thanks [@github-actions](https://github.com/apps/github-actions)! - Updated the `move` helper to accept an `event` instead of `source` and `target`. + +- Updated dependencies [[`a04d3f8`](https://github.com/clauderic/dnd-kit/commit/a04d3f88d380853b97585ab3b608561f7b02ce69), [`a8542de`](https://github.com/clauderic/dnd-kit/commit/a8542de56d39c3cd3b6ef981172a0782454295b2), [`f7458d9`](https://github.com/clauderic/dnd-kit/commit/f7458d9dc32824dbea3a6d5dfb29236f19a2c073), [`e70b29a`](https://github.com/clauderic/dnd-kit/commit/e70b29ae64837e424f7279c95112fb6e420c4dcc), [`4d1a030`](https://github.com/clauderic/dnd-kit/commit/4d1a0306c920ae064eb5b30c4c02961f50460c84), [`a5933d8`](https://github.com/clauderic/dnd-kit/commit/a5933d8607e63ed08818ffab43e858863cb35d47), [`96f28ef`](https://github.com/clauderic/dnd-kit/commit/96f28ef86adf95e77540732d39033c7f3fb0fd04)]: + - @dnd-kit/abstract@0.0.6 + ## 0.0.5 ### Patch Changes diff --git a/packages/helpers/package.json b/packages/helpers/package.json index d6516835..2c65a0fc 100644 --- a/packages/helpers/package.json +++ b/packages/helpers/package.json @@ -1,7 +1,7 @@ { "name": "@dnd-kit/helpers", "type": "module", - "version": "0.0.5", + "version": "0.0.6", "main": "./dist/index.cjs", "module": "./dist/index.js", "types": "./dist/index.d.ts", @@ -24,7 +24,7 @@ "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist" }, "dependencies": { - "@dnd-kit/abstract": "^0.0.5", + "@dnd-kit/abstract": "^0.0.6", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/packages/react/CHANGELOG.md b/packages/react/CHANGELOG.md index 1cda69cb..544d91a6 100644 --- a/packages/react/CHANGELOG.md +++ b/packages/react/CHANGELOG.md @@ -1,5 +1,22 @@ # @dnd-kit/react +## 0.0.6 + +### Patch Changes + +- [#1454](https://github.com/clauderic/dnd-kit/pull/1454) [`d26fafe`](https://github.com/clauderic/dnd-kit/commit/d26fafe02c0d3018df03ac3ff2bbd95602ed87ed) Thanks [@github-actions](https://github.com/apps/github-actions)! - Prevent un-necessary re-renders of unused `useSignal` values. + +- [#1454](https://github.com/clauderic/dnd-kit/pull/1454) [`d302511`](https://github.com/clauderic/dnd-kit/commit/d302511c96e11e30763361aa6a88d1eb6c6dc0f1) Thanks [@github-actions](https://github.com/apps/github-actions)! - Prevent unstable `ref` from being set to undefined during a drag operation on draggable sources during a drag operation. + +- [#1454](https://github.com/clauderic/dnd-kit/pull/1454) [`e2f5d93`](https://github.com/clauderic/dnd-kit/commit/e2f5d935cd21303c9877ce46f7642de7fc9b1ae8) Thanks [@github-actions](https://github.com/apps/github-actions)! - `useSortable`: Make sure `group` and `index` are updated at the same time. + +- [#1454](https://github.com/clauderic/dnd-kit/pull/1454) [`ff17c04`](https://github.com/clauderic/dnd-kit/commit/ff17c0497ba5604648319917ff327bd52518d426) Thanks [@github-actions](https://github.com/apps/github-actions)! - Allow dependencies to be passed to `useComputed` hook. + +- Updated dependencies [[`94920c8`](https://github.com/clauderic/dnd-kit/commit/94920c8a7a3a15accfb806b52e4935637b1a0781), [`a04d3f8`](https://github.com/clauderic/dnd-kit/commit/a04d3f88d380853b97585ab3b608561f7b02ce69), [`8053e4b`](https://github.com/clauderic/dnd-kit/commit/8053e4b4a727c6097b29fb559ce72362d7d6eb2a), [`f400106`](https://github.com/clauderic/dnd-kit/commit/f400106072d12a902f6c113b889c7de97f43e1ea), [`c597b3f`](https://github.com/clauderic/dnd-kit/commit/c597b3fe1514f10e227c287dc8ad875134e9b4cb), [`a8542de`](https://github.com/clauderic/dnd-kit/commit/a8542de56d39c3cd3b6ef981172a0782454295b2), [`a9798f4`](https://github.com/clauderic/dnd-kit/commit/a9798f43450e406e8cb235b7d5fba8bb809fd1d7), [`f7458d9`](https://github.com/clauderic/dnd-kit/commit/f7458d9dc32824dbea3a6d5dfb29236f19a2c073), [`b750c05`](https://github.com/clauderic/dnd-kit/commit/b750c05b4b14f5d9817dc07d974d40b74470e904), [`e70b29a`](https://github.com/clauderic/dnd-kit/commit/e70b29ae64837e424f7279c95112fb6e420c4dcc), [`3d0b00a`](https://github.com/clauderic/dnd-kit/commit/3d0b00a663b9dc38ccd7a46544c94a342694b626), [`4d1a030`](https://github.com/clauderic/dnd-kit/commit/4d1a0306c920ae064eb5b30c4c02961f50460c84), [`51be6df`](https://github.com/clauderic/dnd-kit/commit/51be6dfe1b8cb42f74df34c76098e197b9208f81), [`fe76033`](https://github.com/clauderic/dnd-kit/commit/fe7603330fb4b0a397c0e2af641df94fc2879c35), [`62a8118`](https://github.com/clauderic/dnd-kit/commit/62a81180c84f7782b14b69b56f891c810e7d0f69), [`a5933d8`](https://github.com/clauderic/dnd-kit/commit/a5933d8607e63ed08818ffab43e858863cb35d47), [`0c7bf85`](https://github.com/clauderic/dnd-kit/commit/0c7bf85897992dc48c3cf2f1deeaa896995bfcc3), [`f219549`](https://github.com/clauderic/dnd-kit/commit/f219549087d9100cee53ab0cf35d820fe256aa85), [`bfc8ab2`](https://github.com/clauderic/dnd-kit/commit/bfc8ab21cfd9c16a8d90ab250386e6d52d0a40a3), [`96f28ef`](https://github.com/clauderic/dnd-kit/commit/96f28ef86adf95e77540732d39033c7f3fb0fd04), [`3fb972e`](https://github.com/clauderic/dnd-kit/commit/3fb972e228aabfe07d662b77c642405f909fddb0), [`5b36f8f`](https://github.com/clauderic/dnd-kit/commit/5b36f8fb36f5a4468793b469425b5c0461426f56), [`69bfad7`](https://github.com/clauderic/dnd-kit/commit/69bfad7d795947987a4281f1a61f81b6a7839fe8)]: + - @dnd-kit/dom@0.0.6 + - @dnd-kit/abstract@0.0.6 + - @dnd-kit/state@0.0.6 + ## 0.0.5 ### Patch Changes diff --git a/packages/react/package.json b/packages/react/package.json index af088d30..c4a8ec15 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@dnd-kit/react", - "version": "0.0.5", + "version": "0.0.6", "main": "./index.cjs", "module": "./index.js", "type": "module", @@ -56,9 +56,9 @@ "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist" }, "dependencies": { - "@dnd-kit/abstract": "^0.0.5", - "@dnd-kit/dom": "^0.0.5", - "@dnd-kit/state": "^0.0.5", + "@dnd-kit/abstract": "^0.0.6", + "@dnd-kit/dom": "^0.0.6", + "@dnd-kit/state": "^0.0.6", "tslib": "^2.6.2" }, "peerDependencies": { diff --git a/packages/state/CHANGELOG.md b/packages/state/CHANGELOG.md index f669fad7..f53a7f5e 100644 --- a/packages/state/CHANGELOG.md +++ b/packages/state/CHANGELOG.md @@ -1,5 +1,11 @@ # @dnd-kit/state +## 0.0.6 + +### Patch Changes + +- [#1454](https://github.com/clauderic/dnd-kit/pull/1454) [`b750c05`](https://github.com/clauderic/dnd-kit/commit/b750c05b4b14f5d9817dc07d974d40b74470e904) Thanks [@github-actions](https://github.com/apps/github-actions)! - Fixed a bug with comparing functions incorrectly for equality in `deepEqual` utility. + ## 0.0.5 ## 0.0.4 diff --git a/packages/state/package.json b/packages/state/package.json index ab5e8e8a..1fd946d6 100644 --- a/packages/state/package.json +++ b/packages/state/package.json @@ -1,6 +1,6 @@ { "name": "@dnd-kit/state", - "version": "0.0.5", + "version": "0.0.6", "main": "./dist/index.js", "module": "./dist/index.mjs", "types": "./dist/index.d.ts",