UNPKG

react-spring-lightbox

Version:

A flexible image gallery lightbox with native-feeling touch gestures and buttery smooth animations, built with react-spring.

122 lines (121 loc) 4.08 kB
{ "name": "react-spring-lightbox", "version": "1.8.0", "description": "A flexible image gallery lightbox with native-feeling touch gestures and buttery smooth animations, built with react-spring.", "author": "Tim Ellenberger <timellenberger@gmail.com>", "license": "MIT", "repository": "tim-soft/react-spring-lightbox", "sideEffects": false, "bugs": { "url": "https://github.com/tim-soft/react-spring-lightbox/issues" }, "homepage": "https://timellenberger.com", "keywords": [ "react", "spring", "lightbox", "modal", "gallery", "touch", "gestures", "images" ], "main": "dist/index.cjs.js", "types": "dist/index.d.ts", "engines": { "node": ">=16", "npm": ">=7" }, "scripts": { "fix": "yarn fix:eslint && yarn fix:prettier", "fix:eslint": "eslint --fix \"**/*.*\"", "fix:prettier": "prettier --write \"**/*.*\"", "lint": "yarn lint:eslint && yarn lint:prettier && yarn lint:ts", "lint:eslint": "eslint \"**/*.*\"", "lint:prettier": "prettier --check \"**/*.*\"", "lint:ts": "npx tsc --noEmit -p .", "test": "jest", "test:watch": "jest --watch", "build": "rollup --config && yarn run build:types", "build:types": "tsc --project tsconfig.buildtypes.json --emitDeclarationOnly", "start": "rollup --config --watch", "prepare": "yarn run build" }, "husky": { "hooks": { "pre-commit": "lint-staged" } }, "lint-staged": { "*.{json,md}": [ "prettier --write", "git add --force" ], "*.{js, jsx}": [ "prettier --write", "eslint --no-ignore --fix", "git add --force" ] }, "peerDependencies": { "react": ">=16.8", "react-dom": ">=16.8", "styled-components": ">=5.X" }, "devDependencies": { "@babel/core": "^7.23.0", "@babel/plugin-transform-class-properties": "^7.18.6", "@babel/plugin-transform-object-rest-spread": "^7.20.7", "@babel/plugin-transform-runtime": "^7.22.15", "@babel/preset-env": "^7.22.20", "@babel/preset-react": "^7.22.15", "@babel/preset-typescript": "^7.23.0", "@rollup/plugin-babel": "^6.0.4", "@rollup/plugin-commonjs": "^25.0.5", "@rollup/plugin-node-resolve": "^15.2.2", "@rollup/plugin-terser": "^0.4.4", "@testing-library/jest-dom": "^6.1.3", "@testing-library/react": "^14.0.0", "@types/jest": "^29.5.5", "@types/react": "^18.2.25", "@types/react-dom": "^18.2.10", "@types/styled-components": "5.1.28", "@typescript-eslint/eslint-plugin": "^6.7.4", "@typescript-eslint/parser": "^6.7.4", "babel-eslint": "10.1.0", "babel-polyfill": "^6.26.0", "cross-env": "^7.0.3", "eslint": "^8.50.0", "eslint-config-prettier": "^9.0.0", "eslint-import-resolver-typescript": "^3.6.1", "eslint-plugin-import": "^2.28.1", "eslint-plugin-jsx-a11y": "^6.7.1", "eslint-plugin-prettier": "^5.0.0", "eslint-plugin-react": "^7.33.2", "eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-sort-destructure-keys": "^1.5.0", "husky": "^4.3.8", "jest": "^29.7.0", "jest-environment-jsdom": "^29.7.0", "lint-staged": "^10.5.4", "prettier": "^3.0.3", "react": "^18", "react-dom": "^18", "react-is": "^18", "rollup": "^3.29.4", "rollup-plugin-filesize": "^10.0.0", "rollup-plugin-node-externals": "^6.1.2", "styled-components": "^5.3.5", "ts-jest": "^29.1.1", "tslib": "^2.6.2", "typescript": "^5.2.2" }, "files": [ "dist" ], "dependencies": { "@babel/runtime": "^7.23.1", "@react-spring/web": "^9.7.3", "react-use-gesture": "9.1.3" } }