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

react-image-gallery

Package Overview
Dependencies
Maintainers
1
Versions
113
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-image-gallery - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

4

build/image-gallery.js

@@ -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;
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