You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

react-flickity-component

Package Overview
Dependencies
Maintainers
2
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-flickity-component - npm Package Compare versions

Comparing version

to
3.6.2

8

lib/index.js

@@ -20,5 +20,5 @@ "use strict";

function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }

@@ -37,7 +37,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }

@@ -44,0 +44,0 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

{
"name": "react-flickity-component",
"version": "3.6.1",
"version": "3.6.2",
"description": "react flickity component",

@@ -45,4 +45,4 @@ "main": "./lib/index.js",

"flickity": "^2.2.1",
"react": "^16.14.0",
"react-dom": "^16.14.0"
"react": ">= 16.14.0 < 18",
"react-dom": ">= 16.14.0 < 18"
},

@@ -49,0 +49,0 @@ "jest": {

@@ -14,4 +14,4 @@ import React from "react";

declare class Flickity extends React.Component<Props, any> {
public on(eventName: string, listener: Function): void;
public off(eventName: string, listener: Function): void;
public on(eventName: FlickityEventName, listener: Function): void;
public off(eventName: FlickityEventName, listener: Function): void;
public select(index: number, isWrapped?: boolean, isInstant?: boolean): void;

@@ -177,2 +177,9 @@ public previous(isWrapped?: boolean, isInstant?: boolean): void;

/**
* Auto-playing will pause when the user hovers over the carousel.
*
* default: false
*/
pauseAutoPlayOnHover?:boolean;
/**
* Changes height of carousel to fit height of selected slide.

@@ -245,1 +252,21 @@ */

}
/**
* change: Triggered when the selected slide is changed.
* select: Triggered when a slide is selected.
* settle: Triggered when the slider is settled at its end position.
* scroll: Triggered when the slider moves.
* dragStart: Triggered when dragging starts and the slider starts moving.
* dragMove: Triggered when dragging moves and the slider moves.
* dragEnd: Triggered when dragging ends.
* pointerMove: Triggered when the user's pointer moves.
* pointerUp: Triggered when the user's pointer unpresses.
* staticClick: Triggered when the user's pointer is pressed and unpressed and has not moved enough to start dragging.
* lazyLoad: Triggered after an image has been loaded with lazyLoad.
* bgLazyLoad: Triggered after a background image has been loaded with bgLazyLoad.
* fullscreenChange: Triggered after entering or exiting fullscreen view.
*/
export type FlickityEventName = 'change' | 'select' | 'settle' | 'scroll' |'dragStart'
| 'dragMove' | 'dragEnd' | 'pointerDown' | 'pointerMove' | 'pointerUp'
| 'staticClick' | 'lazyLoad' | 'bgLazyLoad' | 'fullscreenChange'

Sorry, the diff of this file is not supported yet