From bb3595ab138e8275f46c25f97adb8855b1bfbb22 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 24 Mar 2021 03:01:24 +0000 Subject: [PATCH] Version Packages --- .changeset/fix-dropanimation-bug.md | 5 ----- .changeset/layout-measuring-animation.md | 6 ------ .changeset/sensors-on-activation.md | 5 ----- packages/core/CHANGELOG.md | 12 ++++++++++++ packages/core/package.json | 2 +- packages/sortable/CHANGELOG.md | 11 +++++++++++ packages/sortable/package.json | 4 ++-- 7 files changed, 26 insertions(+), 19 deletions(-) delete mode 100644 .changeset/fix-dropanimation-bug.md delete mode 100644 .changeset/layout-measuring-animation.md delete mode 100644 .changeset/sensors-on-activation.md diff --git a/.changeset/fix-dropanimation-bug.md b/.changeset/fix-dropanimation-bug.md deleted file mode 100644 index caa25682..00000000 --- a/.changeset/fix-dropanimation-bug.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@dnd-kit/core": patch ---- - -`DragOverlay` now attempts to perform drop animation even if `transform.x` and `transform.y` are both zero. diff --git a/.changeset/layout-measuring-animation.md b/.changeset/layout-measuring-animation.md deleted file mode 100644 index 8dc5d5eb..00000000 --- a/.changeset/layout-measuring-animation.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@dnd-kit/core': minor -'@dnd-kit/sortable': minor ---- - -Allow consumers to determine whether to animate layout changes and when to measure nodes. Consumers can now use the `animateLayoutChanges` prop of `useSortable` to determine whether layout animations should occur. Consumers can now also decide when to measure layouts, and at what frequency using the `layoutMeasuring` prop of `DndContext`. By default, `DndContext` will measure layouts just-in-time after sorting has begun. Consumers can override this behaviour to either only measure before dragging begins (on mount and after dragging), or always (on mount, before dragging, after dragging). Pairing the `layoutMeasuring` prop on `DndContext` and the `animateLayoutChanges` prop of `useSortable` opens up a number of new possibilities for consumers, such as animating insertion and removal of items in a sortable list. diff --git a/.changeset/sensors-on-activation.md b/.changeset/sensors-on-activation.md deleted file mode 100644 index 5a2818f6..00000000 --- a/.changeset/sensors-on-activation.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@dnd-kit/core": minor ---- - -Added `onActivation` option to sensors. Delegated the responsibility of calling `event.preventDefault()` on activation to consumers, as consumers have the most context to decide whether it is appropriate or not to prevent the default browser behaviour on activation. Consumers of the sensors can prevent the default behaviour on activation using the `onActivation` option. Here is an example using the Pointer sensor: `useSensor(PointerSensor, {onActivation: (event) => event.preventDefault()})` diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index 8f4d4e65..8c7fb22a 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,17 @@ # @dnd-kit/core +## 1.2.0 + +### Minor Changes + +- [`79f6088`](https://github.com/clauderic/dnd-kit/commit/79f6088dab2d4e7443743f85b329a25a023ecd87) [#144](https://github.com/clauderic/dnd-kit/pull/144) Thanks [@clauderic](https://github.com/clauderic)! - Allow consumers to determine whether to animate layout changes and when to measure nodes. Consumers can now use the `animateLayoutChanges` prop of `useSortable` to determine whether layout animations should occur. Consumers can now also decide when to measure layouts, and at what frequency using the `layoutMeasuring` prop of `DndContext`. By default, `DndContext` will measure layouts just-in-time after sorting has begun. Consumers can override this behaviour to either only measure before dragging begins (on mount and after dragging), or always (on mount, before dragging, after dragging). Pairing the `layoutMeasuring` prop on `DndContext` and the `animateLayoutChanges` prop of `useSortable` opens up a number of new possibilities for consumers, such as animating insertion and removal of items in a sortable list. + +- [`a76cd5a`](https://github.com/clauderic/dnd-kit/commit/a76cd5abcc0b17eae20d4a6256d95b47f2e9d050) [#136](https://github.com/clauderic/dnd-kit/pull/136) Thanks [@clauderic](https://github.com/clauderic)! - Added `onActivation` option to sensors. Delegated the responsibility of calling `event.preventDefault()` on activation to consumers, as consumers have the most context to decide whether it is appropriate or not to prevent the default browser behaviour on activation. Consumers of the sensors can prevent the default behaviour on activation using the `onActivation` option. Here is an example using the Pointer sensor: `useSensor(PointerSensor, {onActivation: (event) => event.preventDefault()})` + +### Patch Changes + +- [`adb7bd5`](https://github.com/clauderic/dnd-kit/commit/adb7bd58d7d95db5e450a1518541d3d71704529d) [#151](https://github.com/clauderic/dnd-kit/pull/151) Thanks [@clauderic](https://github.com/clauderic)! - `DragOverlay` now attempts to perform drop animation even if `transform.x` and `transform.y` are both zero. + ## 1.1.0 ### Minor Changes diff --git a/packages/core/package.json b/packages/core/package.json index cf51a360..64717b07 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@dnd-kit/core", - "version": "1.1.0", + "version": "1.2.0", "description": "dnd kit – a lightweight React library for building performant and accessible drag and drop experiences", "author": "Claudéric Demers", "license": "MIT", diff --git a/packages/sortable/CHANGELOG.md b/packages/sortable/CHANGELOG.md index 160273e5..cb065de1 100644 --- a/packages/sortable/CHANGELOG.md +++ b/packages/sortable/CHANGELOG.md @@ -1,5 +1,16 @@ # @dnd-kit/sortable +## 1.1.0 + +### Minor Changes + +- [`79f6088`](https://github.com/clauderic/dnd-kit/commit/79f6088dab2d4e7443743f85b329a25a023ecd87) [#144](https://github.com/clauderic/dnd-kit/pull/144) Thanks [@clauderic](https://github.com/clauderic)! - Allow consumers to determine whether to animate layout changes and when to measure nodes. Consumers can now use the `animateLayoutChanges` prop of `useSortable` to determine whether layout animations should occur. Consumers can now also decide when to measure layouts, and at what frequency using the `layoutMeasuring` prop of `DndContext`. By default, `DndContext` will measure layouts just-in-time after sorting has begun. Consumers can override this behaviour to either only measure before dragging begins (on mount and after dragging), or always (on mount, before dragging, after dragging). Pairing the `layoutMeasuring` prop on `DndContext` and the `animateLayoutChanges` prop of `useSortable` opens up a number of new possibilities for consumers, such as animating insertion and removal of items in a sortable list. + +### Patch Changes + +- Updated dependencies [[`adb7bd5`](https://github.com/clauderic/dnd-kit/commit/adb7bd58d7d95db5e450a1518541d3d71704529d), [`79f6088`](https://github.com/clauderic/dnd-kit/commit/79f6088dab2d4e7443743f85b329a25a023ecd87), [`a76cd5a`](https://github.com/clauderic/dnd-kit/commit/a76cd5abcc0b17eae20d4a6256d95b47f2e9d050)]: + - @dnd-kit/core@1.2.0 + ## 1.0.2 ### Patch Changes diff --git a/packages/sortable/package.json b/packages/sortable/package.json index 938a73c5..f167f736 100644 --- a/packages/sortable/package.json +++ b/packages/sortable/package.json @@ -1,6 +1,6 @@ { "name": "@dnd-kit/sortable", - "version": "1.0.2", + "version": "1.1.0", "description": "Official sortable preset and sensors for dnd kit", "author": "Claudéric Demers", "license": "MIT", @@ -26,7 +26,7 @@ "dist" ], "dependencies": { - "@dnd-kit/core": "^1.0.2", + "@dnd-kit/core": "^1.2.0", "@dnd-kit/utilities": "^1.0.2", "tslib": "^2.0.0" },