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

react-spring-lightbox

Package Overview
Dependencies
Maintainers
1
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-spring-lightbox - npm Package Compare versions

Comparing version 1.4.9-beta.0 to 1.4.9-beta.1

14

dist/index.cjs.js

@@ -17,5 +17,5 @@ 'use strict';

var _assertThisInitialized = _interopDefault(require('@babel/runtime/helpers/assertThisInitialized'));
var _inherits = _interopDefault(require('@babel/runtime/helpers/inherits'));
var _possibleConstructorReturn = _interopDefault(require('@babel/runtime/helpers/possibleConstructorReturn'));
var _getPrototypeOf = _interopDefault(require('@babel/runtime/helpers/getPrototypeOf'));
var _inherits = _interopDefault(require('@babel/runtime/helpers/inherits'));
var ReactDOM = _interopDefault(require('react-dom'));

@@ -217,3 +217,3 @@

translateY: 0,
config: _objectSpread({}, web.config["default"], {
config: _objectSpread(_objectSpread({}, web.config["default"]), {}, {
precision: 0.01

@@ -231,3 +231,3 @@ })

var _useSpring = web.useSpring(function () {
return _objectSpread({}, defaultImageTransform(), {
return _objectSpread(_objectSpread({}, defaultImageTransform()), {}, {
onFrame: function onFrame(f) {

@@ -789,3 +789,3 @@ if (f.scale < 1 || !f.pinching) set(defaultImageTransform); // Prevent dragging image out of viewport

},
config: _objectSpread$1({}, web.config["default"], {
config: _objectSpread$1(_objectSpread$1({}, web.config["default"]), {}, {
mass: 1,

@@ -796,3 +796,3 @@ tension: 320,

};
var transitions = web.useTransition(isOpen, null, _objectSpread$1({}, defaultTransition, {}, pageTransitionConfig));
var transitions = web.useTransition(isOpen, null, _objectSpread$1(_objectSpread$1({}, defaultTransition), pageTransitionConfig));
return transitions.map(function (_ref2) {

@@ -805,3 +805,3 @@ var item = _ref2.item,

className: "lightbox-container".concat(className ? " ".concat(className) : ''),
style: _objectSpread$1({}, props, {}, style)
style: _objectSpread$1(_objectSpread$1({}, props), style)
}, children);

@@ -812,3 +812,3 @@ });

function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

@@ -815,0 +815,0 @@ 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; } }

@@ -12,5 +12,5 @@ import React, { useEffect, useState, useRef } from 'react';

import _assertThisInitialized from '@babel/runtime/helpers/assertThisInitialized';
import _inherits from '@babel/runtime/helpers/inherits';
import _possibleConstructorReturn from '@babel/runtime/helpers/possibleConstructorReturn';
import _getPrototypeOf from '@babel/runtime/helpers/getPrototypeOf';
import _inherits from '@babel/runtime/helpers/inherits';
import ReactDOM from 'react-dom';

@@ -212,3 +212,3 @@

translateY: 0,
config: _objectSpread({}, config["default"], {
config: _objectSpread(_objectSpread({}, config["default"]), {}, {
precision: 0.01

@@ -226,3 +226,3 @@ })

var _useSpring = useSpring(function () {
return _objectSpread({}, defaultImageTransform(), {
return _objectSpread(_objectSpread({}, defaultImageTransform()), {}, {
onFrame: function onFrame(f) {

@@ -784,3 +784,3 @@ if (f.scale < 1 || !f.pinching) set(defaultImageTransform); // Prevent dragging image out of viewport

},
config: _objectSpread$1({}, config["default"], {
config: _objectSpread$1(_objectSpread$1({}, config["default"]), {}, {
mass: 1,

@@ -791,3 +791,3 @@ tension: 320,

};
var transitions = useTransition(isOpen, null, _objectSpread$1({}, defaultTransition, {}, pageTransitionConfig));
var transitions = useTransition(isOpen, null, _objectSpread$1(_objectSpread$1({}, defaultTransition), pageTransitionConfig));
return transitions.map(function (_ref2) {

@@ -800,3 +800,3 @@ var item = _ref2.item,

className: "lightbox-container".concat(className ? " ".concat(className) : ''),
style: _objectSpread$1({}, props, {}, style)
style: _objectSpread$1(_objectSpread$1({}, props), style)
}, children);

@@ -807,3 +807,3 @@ });

function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

@@ -810,0 +810,0 @@ 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; } }

{
"name": "react-spring-lightbox",
"version": "1.4.9-beta.0",
"version": "1.4.9-beta.1",
"description": "A flexible image gallery lightbox with native-feeling touch gestures and buttery smooth animations, built with react-spring.",

@@ -66,12 +66,12 @@ "author": "Tim Ellenberger <timellenberger@gmail.com>",

"devDependencies": {
"@babel/core": "^7.9.0",
"@babel/core": "^7.9.6",
"@babel/plugin-proposal-class-properties": "^7.8.3",
"@babel/plugin-proposal-object-rest-spread": "^7.9.0",
"@babel/plugin-transform-runtime": "^7.9.0",
"@babel/preset-env": "^7.9.0",
"@babel/plugin-proposal-object-rest-spread": "^7.9.6",
"@babel/plugin-transform-runtime": "^7.9.6",
"@babel/preset-env": "^7.9.6",
"@babel/preset-react": "^7.9.4",
"@rollup/plugin-commonjs": "^11.0.2",
"@rollup/plugin-node-resolve": "^7.1.1",
"@testing-library/jest-dom": "^5.3.0",
"@testing-library/react": "^10.0.2",
"@rollup/plugin-commonjs": "^11.1.0",
"@rollup/plugin-node-resolve": "^7.1.3",
"@testing-library/jest-dom": "^5.5.0",
"@testing-library/react": "^10.0.4",
"babel-eslint": "10.1.0",

@@ -83,11 +83,11 @@ "babel-plugin-transform-react-remove-prop-types": "^0.4.24",

"eslint-config-airbnb": "^18.1.0",
"eslint-config-prettier": "^6.10.1",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-prettier": "^3.1.2",
"eslint-plugin-prettier": "^3.1.3",
"eslint-plugin-react": "^7.19.0",
"eslint-plugin-react-hooks": "^1.7.0",
"husky": "^4.2.3",
"jest": "^25.2.3",
"lint-staged": "^10.1.2",
"husky": "^4.2.5",
"jest": "^25.5.4",
"lint-staged": "^10.2.2",
"prettier": "^1.19.1",

@@ -97,5 +97,5 @@ "react": "^16.13.1",

"react-is": "^16.13.1",
"rollup": "^2.3.3",
"rollup": "^2.7.6",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-filesize": "^6.2.1",
"rollup-plugin-filesize": "^8.0.2",
"styled-components": "^5.0.1"

@@ -108,4 +108,4 @@ },

"@react-spring/web": "^9.0.0-beta.34",
"react-use-gesture": "^7.0.10"
"react-use-gesture": "^7.0.15"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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