NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm
The core package for Pragmatic drag and drop - enabling fast drag and drop for any experience on any tech stack
Latest stable
4.0.0
Last release 2 months ago
24 Sep 2026
Release timing varies
gaps range from 9 days to 6 months
Nearly every release is documented
notes for 59 of 59 stable releases
Nothing withdrawn
no release was ever pulled
4 years old
59 releases · first in 2023
Drag across the ruler to compare, or tap a release to open it.
`0c7c7be927bde` - Remove deprecated Volt re-export shims from public package entry points. Consumers should import from the replacement subpaths or im…
0c7c7be927bde -
Remove deprecated Volt re-export shims from public package entry points. Consumers should import
from the replacement subpaths or implementation entry points instead.fe698b4d726b8 -
Restore legacy source entry points still required by Atlaskit documentation loaders and pragmatic
drag and drop tests after the deprecated re-export cleanup.`bd2c5b0112185` - Remove stale API report artifacts from published Platform packages.
bd2c5b0112185 -
Remove stale API report artifacts from published Platform packages.Your coding agent can read these notes before it upgrades. Set up the MCP server →
Legacy entry points are preserved as deprecated compatibility shims to support incremental migration.
11be7aaf18beb -
Add direct export paths for existing APIs, aligning the package with Volt entry-point standards.
Legacy entry points are preserved as deprecated compatibility shims to support incremental
migration.
Before:
import { monitorForExternal } from '@atlaskit/pragmatic-drag-and-drop/external/adapter';
import { reorder } from '@atlaskit/pragmatic-drag-and-drop/reorder';
After:
import { monitorForExternal } from '@atlaskit/pragmatic-drag-and-drop/adapter/monitor-for-external';
import { reorder } from '@atlaskit/pragmatic-drag-and-drop/utils/reorder';
`2b6d25f854593` - Remove legacy ReactDOM.render/hydrate/unmountComponentAtNode usage from non-production code (tests, demo entries, VR fixtures) as pa
2b6d25f854593 -
Remove legacy ReactDOM.render/hydrate/unmountComponentAtNode usage from non-production code
(tests, demo entries, VR fixtures) as part of the React 19 migration`96e06cd0dc9cd` - Some native drag previews in Safari were not rendering correctly when leveraging [popover] due to an inconsistency with how Safari h
96e06cd0dc9cd -
Some native drag previews in Safari were not rendering correctly when leveraging [popover] due
to an inconsistency with how Safari handles some of its top layer rendering. This has been fixed
by resetting some of the user agent properties to the same values as the non-popover path.`f2dc9097319f0` - ### Dropped support for _legacy_ Typescript 4 types. Typescript 5 is now the new minimum.
f2dc9097319f0 - ###
Dropped support for legacy Typescript 4 types. Typescript 5 is now the new minimum.
Removes the typesVersions property and dist/types-ts4.5 directory from the dist.
Types are now exclusively via the "types": "dist/types/index.d.ts" property.
- "typesVersions": {
- ">=4.5 <4.9": {
- "*": [
- "dist/types-ts4.5/*",
- "dist/types-ts4.5/index.d.ts"
- ]
- }
- },
`01bfb2823034b` - Expands automatic accessibility (a11y) Playwright test coverage for Platform
01bfb2823034b -
Expands automatic accessibility (a11y) Playwright test coverage for Platform`28c6a19284541` - Moving to popover="manual" for "on top" rendering logic. Elements that need to render above all other content (honey pot fix, custom
28c6a19284541 -
Moving to popover="manual" for "on top" rendering logic. Elements that need to render above all
other content (honey pot fix, custom native drag previews) now use the browser's top layer via the
Popover API instead of z-index: 2147483647.
Falls back to the previous z-index approach when the Popover API is not available.
Minimum browser versions with popover="manual" support:
`be5ff878b4b9a` - Internal changes to remove unnecessary token fallbacks and imports from @atlaskit/theme
be5ff878b4b9a -
Internal changes to remove unnecessary token fallbacks and imports from @atlaskit/theme`acb61d1d6efd9` - Add dependency for a11y testing.
acb61d1d6efd9 -
Add dependency for a11y testing.`6d87d08be8526` - Add dependency for a11y testing.
6d87d08be8526 -
Add dependency for a11y testing.`5d0b8ba5e6f7f` - Internal changes to how borders are applied.
5d0b8ba5e6f7f -
Internal changes to how borders are applied.`6c430bfbb035d` - Updated code to fix typescript issues during adoption of local consumption for adminhub
6c430bfbb035d -
Updated code to fix typescript issues during adoption of local consumption for adminhub`beaa6ee463aa8` - Internal changes to how border radius is applied.
beaa6ee463aa8 -
Internal changes to how border radius is applied.### Patch Changes - #174472 `fda983a832f81` - On Android pointerOutsideOfPreview will now also center the drag preview under the users pointer. Techni
fda983a832f81 -
On Android pointerOutsideOfPreview will now also center the drag preview under the users
pointer. Technically this was already existing observed behaviour as Android always centers the
drag preview under the users pointer. We now make this behaviour explicit in the code, and call
this out behaviour in jsdoc and documentation.Some more detail (in case you are interested):
#173859
d6f17206f8859 -
In order to provide the best experience for iOS, the optional function pointerOutsideOfPreview
will now center the drag preview under the users pointer on iOS.
Some more detail (in case you are interested):
Borders
(Existing behaviour)
In pointerOutsideOfPreview we use transparent borders to push the preview away from the users
pointer. On iOS these borders will always be black. So we don't use transparent border on iOS.
Placement
(Improvement)
During a drag on iOS the drag preview will shift under the center of the users pointer, even if we
start the drag with the users pointer on the top left or top right corner of the drag preview. So
now pointerOutsideOfPreview will always put the preview under the center of the users pointer in
order to avoid the drag preview position shifting as the drag is starting.
@atlaskit/pragmatic-drag-and-drop/adapter/element
65021fc0267e2 -
The cleanup functions returned by the following utilities now only work on the first call. This
was done to prevent unexpected side effects of calling a cleanup function multiple times.
@atlaskit/pragmatic-drag-and-drop/adapter/element
draggabledropTargetForElementsmonitorForElements@atlaskit/pragmatic-drag-and-drop/adapter/text-selection
dropTargetForTextSelectionmonitorForTextSelection@atlaskit/pragmatic-drag-and-drop/adapter/external
dropTargetForExternalmonitorForExternal@atlaskit/pragmatic-drag-and-drop-auto-scroll/element
autoScrollForElementsautoScrollWindowForElements@atlaskit/pragmatic-drag-and-drop-auto-scroll/external
autoScrollForExternalautoScrollWindowForExternal@atlaskit/pragmatic-drag-and-drop-auto-scroll/text-selection
autoScrollForTextSelectionautoScrollWindowForTextSelection### Patch Changes - #162456 `f916af5aab898` - Removes @atlaskit/platform-feature-flags as a dependency. Removes @atlaskit/link as a runtime dependency
f916af5aab898 -
Removes @atlaskit/platform-feature-flags as a dependency. Removes @atlaskit/link as a runtime
dependency, although it is still used in examples.### Minor Changes - #157071 `a149a0b1559ec` - We are testing the migration to the ADS Link component behind a feature flag. If this fix is successful
a149a0b1559ec -
We are testing the migration to the ADS Link component behind a feature flag. If this fix is
successful it will be available in a later release.### Patch Changes - #150602 `f83b03a3b239e` - pointerOutsideOfPreview will no longer push the preview away from the users pointer on iOS due to platfo
f83b03a3b239e -
pointerOutsideOfPreview will no longer push the preview away from the users pointer on iOS due
to platform limitations. On iOS the preview will start the drag on the top left corner (or top
right corner for right to left interfaces). While dragging, iOS will shift the drag preview under
the center of the users pointer, so the "pushing away" is short lived on iOS.Left to right (ltr): preview on right hand side of pointer
ef9d1cdc6ea92 -
The pointerOutsideOfPreview() utility will now correctly push the preview forward in right to
left layouts.
### Patch Changes - #145191 `cd21ebedb9a08` - Internal change to move towards Compiled CSS-in-JS styling.
cd21ebedb9a08 -
Internal change to move towards Compiled CSS-in-JS styling.We consider this a bug fix as the reorder function claimed that it returned a new array. Now it always does that.
#128775
7a47573fb87cd -
The optional reorder utility is helpful for returning a new reordered array, without modifying
the original array. Previously the original array was returned unmodified if an invalid
startIndex or finishIndex was provided. reorder now always returns a new array, even when an
invalid startIndex or finishIndex is provided for consistency.
We consider this a bug fix as the reorder function claimed that it returned a new array. Now it
always does that.
Here is how things continue to work for reorder with valid arguments:
import { reorder } from '@atlaskit/pragmatic-drag-and-drop/reorder';
const original = ['A', 'B'];
const result = reorder({
list: original,
// Grab A
startIndex: 0,
// Move it to where B is
finishIndex: 1,
});
console.log(result); // ['B', 'A']
console.log(result === original); // false - we got a new array back
Things were a little different when an invalid startIndex or finishIndex was provided:
import { reorder } from '@atlaskit/pragmatic-drag-and-drop/reorder';
const original = ['A', 'B'];
const result = reorder({
list: original,
startIndex: -1, // invalid start index
finishIndex: 1,
});
console.log(result); // ['A', 'B'] (array not reordered)
// Original array was returned for this error case
console.log(result === original); // true
When an invalid startIndex or finishIndex is provided, reorder will now return a new array
import { reorder } from '@atlaskit/pragmatic-drag-and-drop/reorder';
const original = ['A', 'B'];
const result = reorder({
list: original,
startIndex: -1, // invalid start index
finishIndex: 1,
});
console.log(result); // ['A', 'B'] (array not reordered - unchanged)
// We now return a new array in this case
console.log(result === original); // false
In addition to this improvement, we have also improved the clarity of documentation and jsdoc for
reorder
import type { ElementDropTargetEventBasePayload } from '@atlaskit/pragmatic-drag-and-drop/external/adapter';
#125185
423e7b65d4846 -
Fixing an incorrectly exported type name from our external adapter.
- import type { ElementDropTargetEventBasePayload } from '@atlaskit/pragmatic-drag-and-drop/external/adapter';
+ import type { ExternalDropTargetEventBasePayload } from '@atlaskit/pragmatic-drag-and-drop/external/adapter';
### Minor Changes - #109060 `4660ec858a305` - Update React from v16 to v18
4660ec858a305 -
Update React from v16 to v18Scenarios where this can be helpful:
#145232
04641b5e6ed55 -
Adding new optional utility for element dragging: blockDraggingToIFrames which disables the
ability for a user to drag into an <iframe> element.
Scenarios where this can be helpful:
<iframe> (for example - when resizing)<iframe> on the page (there could be
lots of reasons why!)import { combine } from '@atlaskit/pragmatic-drag-and-drop/combine';
import { draggable } from '@atlaskit/pragmatic-drag-and-drop/element/adapter';
import { blockDraggingToIFrames } from '@atlaskit/pragmatic-drag-and-drop/element/block-dragging-to-iframes';
const cleanup = combine(
blockDraggingToIFrames({ element }),
draggable({
element,
}),
);
### Patch Changes - #141279 `a38f3af4bfc79` - Minor refactor of internal helper.
a38f3af4bfc79 -
Minor refactor of internal helper.### Minor Changes - #128458 `71c5224450c8a` - Adding workaround for a bug in Firefox. The external adpater optional URL utilities containsURLs and get
71c5224450c8a -
Adding workaround for a bug in Firefox.
The external adpater optional URL utilities containsURLs and getURLs will now correctly
recognize URLs dragged from the Firefox address bar or bookmarks in to a Firefox window.getOffset is now called in the next `microtask` after setCustomNativeDragPreview:render. This helps ensure that the drag preview element has finished
#123738
abd0776a2a2d5 -
Improving react@18 support for setCustomNativeDragPreview. Fixes a bug where
preserveOffsetOnSource would always position the top left drag preview under the user's pointer.
getOffset is now called in the next
microtask after
setCustomNativeDragPreview:render. This helps ensure that the drag preview element has finished
rendering into the container before getOffset is called. Some frameworks like react@18 won't
render the element to be used for the drag preview into the container until the next
microtask.
### Patch Changes - #124164 `58941fa1d332a` - All react unit tests will now run against react@16 and react@18 on CI.
58941fa1d332a -
All react unit tests will now run against react@16 and react@18 on CI.### Patch Changes - #117296 `ef11f570968a2` - Adding some browser tests for the honey pot fix
ef11f570968a2 -
Adding some browser tests for the honey pot fixThe browser bug causes the browser to think the users pointer is continually depressed at the point that the user started a drag. This could lead to i
#116572
98c65e7ff719c -
🍯 Introducing "the honey pot fix" which is an improved workaround for a
painful browser bug.
Background
The browser bug causes the browser to think the users pointer is continually depressed at the point that the user started a drag. This could lead to incorrect events being triggered, and incorrect styles being applied to elements that the user is not currently over during a drag.
Outcomes
MouseEvents (eg "mouseenter" and "mouseleave") during a
drag (which is a violation of the
drag and drop specification):hover or :active styles during a drag. Previously consumers
would need to disable these style rules during a drag to prevent these styles being applied.### Patch Changes - #109670 `8eb3fe4136d55` - Internal consolidation of once() code
8eb3fe4136d55 -
Internal consolidation of once() code### Patch Changes - #107751 `ac9352b7e0ce` - Fixing timing issue with preventUnhandled() introduced in the prior release. preventUnhandled.stop() call
ac9352b7e0ce -
Fixing timing issue with preventUnhandled() introduced in the prior release.
preventUnhandled.stop() called inside of onDrop() will now correctly cancel a native "drop"
event.Fix: if a "drop" is caused by non Pragmatic drag and drop code on the page, then we will no longer cancel the "drop" event.
2f5d213b2613 -
These fixes only impact situations were you have native drag and drop code in addition to
Pragmatic drag and drop running on your page.
"drop" is caused by non Pragmatic drag and drop code on the page, then we will no
longer cancel the "drop" event.source.items) in onDrop if not dropping on a
Pragmatic drag and drop drop target. Previously, if some non Pragmatic drag and drop code
accepted a drop then source.items would be populated. Now all unsuccessful (or un managed)
drops are handled consistently.### Patch Changes - #100243 `1ba7a4e942d4` - Fixing typos in dev time warnings
1ba7a4e942d4 -
Fixing typos in dev time warnings### Patch Changes - #100196 `da322bbbe7f5` - Setting sideEffects: true in package.json as a few essential files in core have side effects. Unfortunate
da322bbbe7f5 -
Setting sideEffects: true in package.json as a few essential files in core have side
effects. Unfortunately we require side effects to work around browser bugs and strangeness 😅.### Patch Changes - #95385 `c8d2e32f5071` - Minor internal refactor of code concerning entering / leaving a window
c8d2e32f5071 -
Minor internal refactor of code concerning entering / leaving a window### Patch Changes - #94759 `140fc0d20c02` - Fixing our Safari workaround in setCustomNativeDragPreview() for a Safari drag preview bug so that it work
140fc0d20c02 -
Fixing our Safari workaround in setCustomNativeDragPreview() for a
Safari drag preview bug so that it works
correctly for react@18+ usage.### Patch Changes - #94316 `35fd5ed8e1d7` - Upgrading internal dependency bind-event-listener to @^3.0.0
35fd5ed8e1d7 -
Upgrading internal dependency bind-event-listener to @^3.0.0### Patch Changes - #94302 `66ca9d1d1602` - Improving jsdoc for the drop target canDrop function
66ca9d1d1602 -
Improving jsdoc for the drop target canDrop function### Patch Changes - #84398 `77694db987fc` - Public release of Pragmatic drag and drop documentation
77694db987fc -
Public release of Pragmatic drag and drop documentation### Patch Changes - #84047 `72a86ac4a940` - Removing experimental DropData from onDrop(). Exposing the native dropEffect turned out to problematic, as
72a86ac4a940 -
Removing experimental DropData from onDrop(). Exposing the native dropEffect turned out to
problematic, as you will always get a "none" drop effect if dropping externally if the original
draggable was removed (a native "dragend" event is targetted at the original draggable). This
made the weak signal of dropEffect for even weaker and more problematic. In order to not create
footguns for folks, we have decided to remove this experimental API for now. We can explore adding
the API back in the future if folks think it would be valuable.### Patch Changes - #83702 `4d9e25ab4eaa` - Updating the descriptions of Pragmatic drag and drop packages, so they each provide a consistent descripti
4d9e25ab4eaa -
Updating the descriptions of Pragmatic drag and drop packages, so they each provide a consistent
description to various consumers, and so they are consistently formed amongst each other.
package.json descriptionREADME.mdFixing a bug where preventUnhandled.start() would prevent unhandled drag operations forever. It now only prevents unhandled drag operations for the cu
#82653
136d8da5542d -
Experimental: Adding additional information to onDrop() events to expose what the final
dropEffect was for a drag operation (now removed)
Fixing a bug where preventUnhandled.start() would prevent unhandled drag operations forever. It
now only prevents unhandled drag operations for the current drag operation.
preventUnhandled.stop() is now optional, as preventUnhandled.start() now tidies up itself. You
can still leverage preventUnhandled.stop() to stop preventing unhandled drag operations during a
drag.
Tightening the getDropEffect() function on drop targets slightly so that "none" cannot be
provided. Using "none" as the drop effect would break the expected behaviour for nested drop
targets.
### Patch Changes - #83116 `8d4e99057fe0` - Upgrade Typescript from 4.9.5 to 5.4.2
8d4e99057fe0 -
Upgrade Typescript from 4.9.5 to 5.4.2### Patch Changes - #76476 `35148e092790` - Adding warning for test environments to let people know if DragEvents have not been setup correctly.
35148e092790 -
Adding warning for test environments to let people know if DragEvents have not been setup
correctly.For a detailed explanation of these changes, and how to upgrade (automatically) to 1.0 please see our 1.0 upgrade guide
#70616
42e57ea65fee -
This is our first major release (1.0) for all Pragmatic drag and drop packages.
For a detailed explanation of these changes, and how to upgrade (automatically) to 1.0 please
see our
1.0 upgrade guide
In Safari (and iOS) if the element used for generating a native drag preview has opacity applied, then the native drag preview can include elements un
#59458
7d6a69cfa61c -
Adding workaround for Safari bug.
In Safari (and iOS) if the element used for generating a native drag preview has opacity applied, then the native drag preview can include elements underneath the drag preview element.
Pragmatic drag and drop now includes a workaround for this Safari bug.
### Minor Changes - #39935 `03b91562fec` - Exposing AllDragTypes type. This was previously an internal type, but it provided helpful to expose for our
03b91562fec - Exposing
AllDragTypes type. This was previously an internal type, but it provided helpful to expose for
our new auto scroller. AllDragTypes is helpful if you need a function to work with either
element or file drag operations.import { preserveOffsetFromPointer } from '@atlaskit/pragmatic-drag-and-drop/util/preserve-offset-from-pointer';
#38713
3da89e29dfc - We have
renamed and tweaked the recently added setCustomNativeDragPreview getOffset utility
preserveOffsetFromPointer to be a bit easier to understand what it is doing.
- import { preserveOffsetFromPointer } from '@atlaskit/pragmatic-drag-and-drop/util/preserve-offset-from-pointer';
+ import { preserveOffsetOnSource } from '@atlaskit/pragmatic-drag-and-drop/util/preserve-offset-on-source';
draggable({
element: myElement,
onGenerateDragPreview: ({ nativeSetDragImage, location, source }) => {
setCustomNativeDragPreview({
- getOffset: preserveOffsetFromPointer({
+ 'preserveOffsetOnSource' is a more accurate description of what is being achieved
+ getOffset: preserveOffsetOnSource({
- sourceElement: source.element,
+ // no longer including 'source' in argument name
+ // as it is implied by the function name
+ element: source.element,
input: location.current.input,
}),
render: function render({ container }) {
/* ... */
},
nativeSetDragImage,
});
},
});
```ts import { setCustomNativeDragPreview } from '@atlaskit/pragmatic-drag-and-drop/util/set-custom-native-drag-preview'; import { preserveOffsetFromP
#38397
d644a68ddf6 - Added a
new setCustomNativeDragPreview getOffset utility: preserveOffsetFromPointer.
preserveOffsetFromPointer mimics the default behaviour for non custom drag previews when
starting a drag: the initial cursor position offset is preserved for a seamless drag and drop
experience.
import { setCustomNativeDragPreview } from '@atlaskit/pragmatic-drag-and-drop/util/set-custom-native-drag-preview';
import { preserveOffsetFromPointer } from '@atlaskit/pragmatic-drag-and-drop/util/preserve-offset-from-pointer';
draggable({
element: myElement,
onGenerateDragPreview: ({ nativeSetDragImage, location, source }) => {
setCustomNativeDragPreview({
getOffset: preserveOffsetFromPointer({
sourceElement: source.element,
input: location.current.input,
}),
render: function render({ container }) {
/* ... */
},
nativeSetDragImage,
});
},
});
`ts import type { // These types are not needed for consumers // They are mostly helpful for other packages AllDragTypes, MonitorArgs, BaseEventPayloa
#38525
de7463c7096 - Exposing
some additional TypeScript types. These can be helpful when creating helper packages.
import type {
// These types are not needed for consumers
// They are mostly helpful for other packages
AllDragTypes,
MonitorArgs,
BaseEventPayload,
} from '@atlaskit/pragmatic-drag-and-drop/types';
AllDragTypes: representation of all entities types in the system (eg element and file)MonitorArgs<DragType extends AllDragTypes>: the arguments that can be passed to a monitorBaseEventPayload<DragType extends AllDragTypes>: the shared properties in all eventsWe have made some improvements to the drop target stickiness algorithm to allow sticky drop targets that are no longer dragged over to cancel their st
#38453
554a6d8cc34 - ###
Stickiness algorithm improvement
We have made some improvements to the drop target stickiness algorithm to allow sticky drop targets that are no longer dragged over to cancel their stickiness.
Stickiness is no longer maintained when a sticky drop target states it cannot be dropped on
Scenario:
[A(sticky)]→[]+A:canDrop()returnsfalseResult:[]
Stickiness is no longer maintained when a sticky drop start states it is no longer sticky
Scenario:
[A(sticky)]→[]+A:getIsSticky()returnsfalseResult:[]
Stickiness is no longer maintained when a sticky drop start is unmounted
Scenario:
[A(sticky)]→[]+Ais unmounted Result:[]
To help facilitate this change:
getIsSticky() is now only called when an drop target is a potential candidate for stickiness
(previously it was called repeatedly)getIsSticky() and canDrop() are called on drop targets that are no longer being dragged
over, but are candidates for stickinessDropTargetRecord typePreviously, the DropTargetRecord type had a property called sticky which would represent
whether the drop target was registering itself as sticky via getIsSticky(). Knowing sticky
is not overly helpful given that we now regularly recompute stickiness and a drop target can
change disable stickiness after it is applied.
What is helpful, is knowing whether a drop target is active because of stickiness. So we have
removed sticky and added isActiveDueToStickiness to the DropTargetRecord type.
type DropTargetRecord = {
element: Element;
data: Record<string | symbol, unknown>;
dropEffect: DataTransfer['dropEffect'];
- sticky: boolean;
+ isActiveDueToStickiness: boolean;
};
We have removed the placement argument, and replaced it with getOffset().
#35574
8c301a251e4 - We have
changed the API of setCustomNativeDragPreview() to allow increased control and slightly lower
bundles as well.
We have removed the placement argument, and replaced it with getOffset().
- placement: { type: 'center' } | { type: 'offset-from-pointer'; x: CSSValue; y: CSSValue };
+ getOffset: (args: { container: HTMLElement }) => {x: number, y: number}
getOffset() allows unlimited control over how to place the custom native drag preview relative
to the users pointer. Please see our updated documentation for detailed information about the new
getOffset() API. Our new getOffset() approach means that we also no longer need to bake in all
placement options into the bundle - consumers now only pay for what they use!
placement: { type: 'offset-from-pointer' } has been replaced by offsetFromPointer()
import { setCustomNativeDragPreview } from '@atlaskit/pragmatic-drag-and-drop/util/set-custom-native-drag-preview';
+ import { offsetFromPointer } from '@atlaskit/pragmatic-drag-and-drop/util/offset-from-pointer;
draggable({
element: myElement,
onGenerateDragPreview: ({ nativeSetDragImage }) => {
setCustomNativeDragPreview({
- placement: { type: 'offset-from-pointer', x: '16px', y: '8px' }
+ getOffset: offsetFromPointer({x: '16px', y: '8px'}),
render: function render({ container }) {
ReactDOM.render(<Preview item={item} />, container);
return function cleanup() {
ReactDOM.unmountComponentAtNode(container);
};
},
nativeSetDragImage,
});
},
});
placement: { type: 'center' } has been replaced by centerUnderPointer()
import { setCustomNativeDragPreview } from '@atlaskit/pragmatic-drag-and-drop/util/set-custom-native-drag-preview';
+ import { centerUnderPointer } from '@atlaskit/pragmatic-drag-and-drop/util/center-under-pointer-pointer;
draggable({
element: myElement,
onGenerateDragPreview: ({ nativeSetDragImage }) => {
setCustomNativeDragPreview({
- placement: { type: 'center' }
+ getOffset: centerUnderPointer,
render: function render({ container }) {
ReactDOM.render(<Preview item={item} />, container);
return function cleanup() {
ReactDOM.unmountComponentAtNode(container);
};
},
nativeSetDragImage,
});
},
});
### Patch Changes - #33793 `9d00501a414` - Ensure legacy types are published for TS 4.5-4.8
9d00501a414 - Ensure
legacy types are published for TS 4.5-4.8### Patch Changes - #33649 `41fae2c6f68` - Upgrade Typescript from 4.5.5 to 4.9.5
41fae2c6f68 - Upgrade
Typescript from 4.5.5 to 4.9.5### Minor Changes - #33344 `9fd8556db17` - Internal folder name structure change
9fd8556db17 - Internal
folder name structure change@atlaskit/pragmatic-drag-and-drop
#33262
34ed7b2ec63 - We have
changed the name of our drag and drop packages to align on the single name of "Pragmatic drag and
drop"
- @atlaskit/drag-and-drop
+ @atlaskit/pragmatic-drag-and-drop
- @atlaskit/drag-and-drop-autoscroll
+ @atlaskit/pragmatic-drag-and-drop-autoscroll
- @atlaskit/drag-and-drop-hitbox
+ @atlaskit/pragmatic-drag-and-drop-hitbox
- @atlaskit/drag-and-drop-indicator
+ @atlaskit/pragmatic-drag-and-drop-react-indicator
# Note: `react` was added to this package name as our indicator package is designed for usage with `react`.
- @atlaskit/drag-and-drop-live-region
+ @atlaskit/pragmatic-drag-and-drop-live-region
- @atlaskit/drag-and-drop-react-beautiful-dnd-migration
+ @atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration
- @atlaskit/drag-and-drop-docs
+ @atlaskit/pragmatic-drag-and-drop-docs
The new @atlaskit/pragmatic-drag-and-drop* packages will start their initial versions from where
the ``@atlaskit/drag-and-drop*` packages left off. Doing this will make it easier to look back on
changelogs and see how the packages have progressed.
One column per quarter.