Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@atlaskit/drag-and-drop

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atlaskit/drag-and-drop - npm Package Compare versions

Comparing version 0.10.0 to 0.11.0

dist/cjs/entry-point/util/set-custom-native-drag-preview.js

27

CHANGELOG.md
# @atlaskit/drag-and-drop
## 0.11.0
### Minor Changes
- [`1ecbb19d450`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1ecbb19d450) - Adding a new function to make creating _custom_ native drag previews safe and easy: `setCustomNativeDragPreview`
```tsx
import { setCustomNativeDragPreview } from '@atlaskit/drag-and-drop/util/set-custom-native-drag-preview';
draggable({
element: myElement,
onGenerateDragPreview: ({ nativeSetDragImage }) => {
setCustomNativeDragPreview({
render: function render({ container }) {
ReactDOM.render(<Preview item={item} />, container);
return function cleanup() {
ReactDOM.unmountComponentAtNode(container);
};
},
nativeSetDragImage,
});
},
});
```
Please see our element adapter documentation for more detailed usage information
## 0.10.0

@@ -4,0 +31,0 @@

2

dist/cjs/version.json
{
"name": "@atlaskit/drag-and-drop",
"version": "0.10.0",
"version": "0.11.0",
"sideEffects": false
}
{
"name": "@atlaskit/drag-and-drop",
"version": "0.10.0",
"version": "0.11.0",
"sideEffects": false
}
{
"name": "@atlaskit/drag-and-drop",
"version": "0.10.0",
"version": "0.11.0",
"sideEffects": false
}
{
"name": "@atlaskit/drag-and-drop",
"version": "0.10.0",
"version": "0.11.0",
"description": "The core Atlassian drag and drop framework, optimized for performance.",

@@ -38,2 +38,3 @@ "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",

"./util/reorder": "./src/entry-point/util/reorder.ts",
"./util/set-custom-native-drag-preview": "./src/entry-point/util/set-custom-native-drag-preview.ts",
"./util/disable-native-drag-preview": "./src/entry-point/util/disable-native-drag-preview.ts",

@@ -49,3 +50,3 @@ "./util/scroll-just-enough-into-view": "./src/entry-point/util/scroll-just-enough-into-view.ts",

"devDependencies": {
"@atlaskit/tokens": "^1.1.0",
"@atlaskit/tokens": "^1.2.0",
"@atlaskit/visual-regression": "*",

@@ -52,0 +53,0 @@ "@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc