UNPKG

react-outer-click

Version:

React component and hook which detect mouse clicks outside of itself.

70 lines (69 loc) 1.93 kB
{ "name": "react-outer-click", "version": "3.8.0", "description": "React component and hook which detect mouse clicks outside of itself.", "main": "lib/index.cjs.js", "module": "lib/index.esm.js", "files": [ "lib" ], "scripts": { "build": "rollup -c", "coverage": "jest --coverage", "lint": "eslint .", "format": "prettier --write .", "prepare": "npm run build && husky install", "preversion": "npm run lint && npm run test", "test": "jest" }, "repository": { "type": "git", "url": "git+https://github.com/jacobbuck/react-outer-click.git" }, "keywords": [ "click", "component", "event", "hook", "mouse", "react" ], "author": "Jacob Buck <buck.jacob@gmail.com>", "license": "MIT", "bugs": { "url": "https://github.com/jacobbuck/react-outer-click/issues" }, "homepage": "https://github.com/jacobbuck/react-outer-click#readme", "dependencies": { "@babel/runtime": "^7.17.9", "prop-types": "^15.8.1", "tiny-invariant": "^1.2.0" }, "devDependencies": { "@babel/core": "^7.17.9", "@babel/plugin-transform-runtime": "^7.17.0", "@babel/preset-env": "^7.16.11", "@babel/preset-react": "^7.16.7", "@rollup/plugin-babel": "^5.3.1", "@testing-library/jest-dom": "^5.16.4", "@testing-library/react": "^13.0.1", "babel-plugin-dev-expression": "^0.2.3", "babel-plugin-transform-react-remove-prop-types": "^0.4.24", "eslint": "^8.13.0", "eslint-config-prettier": "^8.5.0", "eslint-plugin-jest": "^26.1.4", "eslint-plugin-prettier": "^4.0.0", "eslint-plugin-react": "^7.29.4", "eslint-plugin-react-hooks": "^4.4.0", "husky": "^7.0.4", "jest": "^27.5.1", "lint-staged": "^12.3.7", "prettier": "^2.6.2", "react": "^18.0.0", "react-dom": "^18.0.0", "rollup": "^2.70.1" }, "peerDependencies": { "react": "^16.8.0 || 17 || 18" } }