react-easy-swipe
Advanced tools
Comparing version 0.0.16 to 0.0.17
@@ -31,2 +31,28 @@ (function (global, factory) { | ||
var _extends = Object.assign || function (target) { | ||
for (var i = 1; i < arguments.length; i++) { | ||
var source = arguments[i]; | ||
for (var key in source) { | ||
if (Object.prototype.hasOwnProperty.call(source, key)) { | ||
target[key] = source[key]; | ||
} | ||
} | ||
} | ||
return target; | ||
}; | ||
function _objectWithoutProperties(obj, keys) { | ||
var target = {}; | ||
for (var i in obj) { | ||
if (keys.indexOf(i) >= 0) continue; | ||
if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; | ||
target[i] = obj[i]; | ||
} | ||
return target; | ||
} | ||
function _classCallCheck(instance, Constructor) { | ||
@@ -262,5 +288,20 @@ if (!(instance instanceof Constructor)) { | ||
var _props = this.props, | ||
tagName = _props.tagName, | ||
className = _props.className, | ||
style = _props.style, | ||
children = _props.children, | ||
allowMouseEvents = _props.allowMouseEvents, | ||
onSwipeUp = _props.onSwipeUp, | ||
onSwipeDown = _props.onSwipeDown, | ||
onSwipeLeft = _props.onSwipeLeft, | ||
onSwipeRight = _props.onSwipeRight, | ||
onSwipeStart = _props.onSwipeStart, | ||
onSwipeMove = _props.onSwipeMove, | ||
onSwipeEnd = _props.onSwipeEnd, | ||
props = _objectWithoutProperties(_props, ['tagName', 'className', 'style', 'children', 'allowMouseEvents', 'onSwipeUp', 'onSwipeDown', 'onSwipeLeft', 'onSwipeRight', 'onSwipeStart', 'onSwipeMove', 'onSwipeEnd']); | ||
return _react2.default.createElement( | ||
this.props.tagName, | ||
{ | ||
_extends({ | ||
ref: function ref(node) { | ||
@@ -272,6 +313,6 @@ return _this2.swiper = node; | ||
onTouchEnd: this._handleSwipeEnd, | ||
className: this.props.className, | ||
style: this.props.style | ||
}, | ||
this.props.children | ||
className: className, | ||
style: style | ||
}, props), | ||
children | ||
); | ||
@@ -278,0 +319,0 @@ } |
{ | ||
"name": "react-easy-swipe", | ||
"version": "0.0.16", | ||
"version": "0.0.17", | ||
"description": "React easy swipe - Easy handler for common touch operations", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
@@ -28,3 +28,3 @@ # REACT EASY SWIPE | ||
import ReactDOM from 'react-dom'; | ||
import Swipe from './react-easy-swipe'; | ||
import Swipe from 'react-easy-swipe'; | ||
@@ -31,0 +31,0 @@ class MyComponent extends Component { |
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
187306
436