react-image-gallery
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -19,4 +19,2 @@ 'use strict'; | ||
var _reactSwipeable = require('react-swipeable'); | ||
var _lodash = require('lodash.throttle'); | ||
@@ -38,2 +36,4 @@ | ||
var _reactSwipeable = require('react-swipeable'); | ||
var _propTypes = require('prop-types'); | ||
@@ -40,0 +40,0 @@ |
@@ -24,4 +24,3 @@ 'use strict'; | ||
onSwiping = _ref.onSwiping, | ||
onSwiped = _ref.onSwiped, | ||
touchAction = _ref.touchAction; | ||
onSwiped = _ref.onSwiped; | ||
@@ -35,3 +34,3 @@ var swipeHandlers = (0, _reactSwipeable.useSwipeable)({ | ||
'div', | ||
_extends({}, swipeHandlers, { className: className, style: { touchAction: touchAction } }), | ||
_extends({}, swipeHandlers, { className: className }), | ||
children | ||
@@ -46,4 +45,3 @@ ); | ||
onSwiped: _propTypes.func, | ||
onSwiping: _propTypes.func, | ||
touchAction: _propTypes.string | ||
onSwiping: _propTypes.func | ||
}; | ||
@@ -55,6 +53,5 @@ | ||
onSwiping: function onSwiping() {}, | ||
onSwiped: function onSwiped() {}, | ||
touchAction: 'pan-x' | ||
onSwiped: function onSwiped() {} | ||
}; | ||
exports.default = SwipeWrapper; |
{ | ||
"name": "react-image-gallery", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "React carousel image gallery component with thumbnail and mobile support", | ||
@@ -5,0 +5,0 @@ "main": "./build/image-gallery.js", |
import clsx from 'clsx'; | ||
import React from 'react'; | ||
import { LEFT, RIGHT, UP, DOWN } from 'react-swipeable'; | ||
import throttle from 'lodash.throttle'; | ||
@@ -9,2 +8,8 @@ import debounce from 'lodash.debounce'; | ||
import { | ||
LEFT, | ||
RIGHT, | ||
UP, | ||
DOWN, | ||
} from 'react-swipeable'; | ||
import { | ||
arrayOf, | ||
@@ -11,0 +16,0 @@ bool, |
@@ -16,3 +16,2 @@ import React from 'react'; | ||
onSwiped, | ||
touchAction, | ||
}) => { | ||
@@ -25,3 +24,3 @@ const swipeHandlers = useSwipeable({ | ||
return ( | ||
<div {...swipeHandlers} className={className} style={{ touchAction }}> | ||
<div {...swipeHandlers} className={className}> | ||
{children} | ||
@@ -38,3 +37,2 @@ </div> | ||
onSwiping: func, | ||
touchAction: string, | ||
}; | ||
@@ -47,5 +45,4 @@ | ||
onSwiped: () => {}, | ||
touchAction: 'pan-x', | ||
}; | ||
export default SwipeWrapper; |
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
146893
3574