@atlaskit/drag-and-drop
Advanced tools
Comparing version 0.10.0 to 0.11.0
# @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 @@ |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
223393
91
149
5366