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

react-image-lightbox

Package Overview
Dependencies
Maintainers
2
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-image-lightbox - npm Package Compare versions

Comparing version 5.1.1 to 5.1.3

dist/1_thumb.d9c5b3ed.jpg

9

CHANGELOG.md

@@ -5,2 +5,11 @@ # Changelog

### [5.1.3](https://github.com/frontend-collective/react-image-lightbox/compare/v5.1.2...v5.1.3) (2021-07-13)
### [5.1.2](https://github.com/frontend-collective/react-image-lightbox/compare/v5.1.1...v5.1.2) (2021-07-13)
### Bug Fixes
* fix cross origin iframe detection ([6683a29](https://github.com/frontend-collective/react-image-lightbox/commit/6683a29639f0df2609849d9c71f7da0fa08a4882))
### [5.1.1](https://github.com/frontend-collective/react-image-lightbox/compare/v5.1.0...v5.1.1) (2019-11-12)

@@ -7,0 +16,0 @@

99

package.json
{
"name": "react-image-lightbox",
"version": "5.1.1",
"version": "5.1.3",
"description": "A lightbox component for React.js",

@@ -13,7 +13,8 @@ "scripts": {

"prettier": "prettier --write \"./**/*.{md,js,css}\" \"!./{build,dist}/**\" \"!./style.css*\"",
"prepublishOnly": "npm run lint && npm run test && npm run build",
"prepublishOnly": "yarn run lint && yarn run test && yarn run build",
"test": "jest",
"test:watch": "jest --watchAll",
"deploy": "npm run build:demo && gh-pages -d build",
"release": "standard-version"
"deploy": "yarn run build:demo && gh-pages -d build",
"release": "standard-version",
"prepare": "husky install"
},

@@ -39,22 +40,2 @@ "main": "dist/index.cjs.js",

"license": "MIT",
"jest": {
"setupFilesAfterEnv": [
"./node_modules/jest-enzyme/lib/index.js"
],
"setupFiles": [
"./test-config/shim.js",
"./test-config/test-setup.js"
],
"moduleFileExtensions": [
"js",
"jsx",
"json"
],
"moduleNameMapper": {
"\\.(css|jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/__mocks__/fileMock.js"
},
"snapshotSerializers": [
"enzyme-to-json/serializer"
]
},
"browserslist": [

@@ -66,4 +47,4 @@ "IE >= 11",

"dependencies": {
"prop-types": "^15.6.2",
"react-modal": "^3.8.1"
"prop-types": "^15.7.2",
"react-modal": "^3.11.1"
},

@@ -75,33 +56,37 @@ "peerDependencies": {

"devDependencies": {
"@babel/cli": "^7.2.3",
"@babel/core": "^7.2.2",
"@babel/preset-env": "^7.3.1",
"@babel/preset-react": "^7.0.0",
"autoprefixer": "^9.4.7",
"babel-jest": "^24.0.0",
"coveralls": "^3.0.2",
"cross-env": "^5.2.0",
"enzyme": "^3.8.0",
"enzyme-adapter-react-16": "^1.8.0",
"enzyme-to-json": "^3.3.4",
"eslint": "^5.13.0",
"eslint-config-airbnb": "^17.1.0",
"eslint-config-prettier": "^4.0.0",
"eslint-plugin-import": "^2.16.0",
"eslint-plugin-jsx-a11y": "^6.2.1",
"eslint-plugin-react": "^7.12.4",
"gh-pages": "^2.0.1",
"jest": "^24.0.0",
"jest-enzyme": "^7.0.1",
"parcel-bundler": "^1.11.0",
"prettier": "^1.16.4",
"react": "^16.7.0",
"react-dom": "^16.7.0",
"rimraf": "^2.6.3",
"rollup": "^1.1.2",
"rollup-plugin-babel": "^4.3.2",
"rollup-plugin-commonjs": "^9.2.0",
"rollup-plugin-node-resolve": "^4.0.0",
"rollup-plugin-postcss": "^2.0.3",
"standard-version": "^7.0.0"
"@babel/cli": "^7.7.4",
"@babel/core": "^7.7.4",
"@babel/preset-env": "^7.7.4",
"@babel/preset-react": "^7.7.4",
"autoprefixer": "^9.7.2",
"babel-jest": "^27.0.6",
"coveralls": "^3.0.9",
"cross-env": "^7.0.3",
"enzyme": "^3.10.0",
"enzyme-adapter-react-16": "^1.15.1",
"enzyme-to-json": "^3.4.3",
"eslint": "^6.7.1",
"eslint-config-airbnb": "^18.0.1",
"eslint-config-prettier": "^6.7.0",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-react": "^7.16.0",
"eslint-plugin-react-hooks": "^4.2.0",
"gh-pages": "^3.2.3",
"husky": "^7.0.0",
"jest": "^27.0.6",
"jest-enzyme": "^7.1.2",
"parcel-bundler": "^1.12.4",
"postcss": "^8.3.5",
"prettier": "^1.19.1",
"pretty-quick": "^2.0.1",
"react": "^16.12.0",
"react-dom": "^16.12.0",
"rimraf": "^3.0.0",
"rollup": "^2.53.1",
"rollup-plugin-babel": "^4.3.3",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-postcss": "^4.0.0",
"standard-version": "^9.3.0"
},

@@ -108,0 +93,0 @@ "keywords": [

# React Image Lightbox
[![NPM](https://nodei.co/npm/react-image-lightbox.png)](https://npmjs.org/package/react-image-lightbox) [![Build Status](https://travis-ci.org/frontend-collective/react-image-lightbox.svg?branch=master)](https://travis-ci.org/frontend-collective/react-image-lightbox) [![Coverage Status](https://coveralls.io/repos/github/frontend-collective/react-image-lightbox/badge.svg?branch=master)](https://coveralls.io/github/frontend-collective/react-image-lightbox?branch=master)
[![NPM](https://nodei.co/npm/react-image-lightbox.png)](https://npmjs.org/package/react-image-lightbox)
[![Build Status](https://github.com/frontend-collective/react-image-lightbox/actions/workflows/ci.yml/badge.svg)](https://github.com/frontend-collective/react-image-lightbox/actions?query=workflow%3ACI)
[![Coverage Status](https://coveralls.io/repos/github/frontend-collective/react-image-lightbox/badge.svg?branch=master)](https://coveralls.io/github/frontend-collective/react-image-lightbox?branch=master)

@@ -112,7 +114,8 @@ [![RIL Snapshot](https://user-images.githubusercontent.com/4413963/31209033-78f60df0-a9c3-11e7-8f83-69998d46973e.png)](https://frontend-collective.github.io/react-image-lightbox/)

| wrapperClassName | string | Class name which will be applied to root element after React Modal |
| nextLabel | string | `aria-label` set on the 'Next' button. Defaults to `'Next image'`. |
| prevLabel | string | `aria-label` set on the 'Previous' button. Defaults to `'Previous image'`. |
| zoomInLabel | string | `aria-label` set on the 'Zoom In' button. Defaults to `'Zoom in'`. |
| zoomOutLabel | string | `aria-label` set on the 'Zoom Out' button. Defaults to `'Zoom out'`. |
| closeLabel | string | `aria-label` set on the 'Close Lightbox' button. Defaults to `'Close lightbox'`. |
| nextLabel | string | `aria-label` and `title` set on the 'Next' button. Defaults to `'Next image'`. |
| prevLabel | string | `aria-label` and `title` set on the 'Previous' button. Defaults to `'Previous image'`. |
| zoomInLabel | string | `aria-label` and `title` set on the 'Zoom In' button. Defaults to `'Zoom in'`. |
| zoomOutLabel | string | `aria-label` and `title` set on the 'Zoom Out' button. Defaults to `'Zoom out'`. |
| closeLabel | string | `aria-label` and `title` set on the 'Close Lightbox' button. Defaults to `'Close lightbox'`. |
| loader | node | Custom Loading indicator for loading |

@@ -138,3 +141,3 @@ ## Browser Compatibility

# Lints the code with eslint and my custom rules.
npm run lint
yarn run lint

@@ -144,3 +147,3 @@ # Lints and builds the code, placing the result in the dist directory.

# `npm link`-ed to this repository from another local project.
npm run build
yarn run build
```

@@ -147,0 +150,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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