react-draggable
Advanced tools
Comparing version 3.1.1 to 3.2.1
{ | ||
"name": "react-draggable", | ||
"version": "3.1.1", | ||
"version": "3.2.1", | ||
"homepage": "https://github.com/mzabriskie/react-draggable", | ||
@@ -5,0 +5,0 @@ "authors": [ |
# Changelog | ||
### 3.2.1 (Mar 1, 2019) | ||
- Reverted https://github.com/mzabriskie/react-draggable/pull/361. | ||
### ~3.2.0 (Feb 27, 2019)~ | ||
> Note: this release has been pulled due to an inadvertent breaking change. See https://github.com/mzabriskie/react-draggable/issues/391 | ||
- Feature: `defaultPosition` now allows string offsets (like {x: '10%', y: '10%'}) then calculates deltas from there. See the examples and the PR [#361](https://github.com/mzabriskie/react-draggable/pull/361/). Thanks to @tnrich and @eric-burel. | ||
- Bugfix: Export `DraggableEvent` type for Flow consumers. Thanks @elie222. | ||
### 3.1.1 (Dec 21, 2018) | ||
@@ -4,0 +15,0 @@ |
{ | ||
"name": "react-draggable", | ||
"version": "3.1.1", | ||
"version": "3.2.1", | ||
"description": "React draggable component", | ||
@@ -5,0 +5,0 @@ "main": "dist/react-draggable.js", |
@@ -21,7 +21,9 @@ declare module 'react-draggable' { | ||
export type DraggableEvent = React.MouseEvent<HTMLElement | SVGElement> | ||
| React.TouchEvent<HTMLElement | SVGElement> | ||
| MouseEvent | ||
| TouchEvent | ||
export type DraggableEventHandler = ( | ||
e: React.MouseEvent<HTMLElement | SVGElement> | ||
| React.TouchEvent<HTMLElement | SVGElement> | ||
| MouseEvent | ||
| TouchEvent, | ||
e: DraggableEvent, | ||
data: DraggableData | ||
@@ -50,3 +52,4 @@ ) => void | false; | ||
onStop: DraggableEventHandler, | ||
onMouseDown: (e: MouseEvent) => void | ||
onMouseDown: (e: MouseEvent) => void, | ||
scale: number | ||
} | ||
@@ -53,0 +56,0 @@ |
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
358323
3299