UNPKG

react-page-click

Version:

React component-wrapper to detect page events (mousedown or touchstart/touchend) outside of wrapped element.

92 lines (91 loc) 3.13 kB
{ "name": "react-page-click", "version": "4.0.4", "description": "React component-wrapper to detect page events (mousedown or touchstart/touchend) outside of wrapped element.", "main": "lib/index.js", "config": { "component": "ReactPageClick" }, "scripts": { "build": "yarn lib && yarn dist", "start": "NODE_ENV=development webpack-dev-server --config ../../webpack/dev.config.js", "predist": "rm -rf ./build", "dist": "NODE_ENV=production webpack-cli --config ../../webpack/dist.config.js && NODE_ENV=production webpack-cli --config ../../webpack/min.config.js", "preghPages": "yarn pub", "ghPages": "gh-pages --dist ./pub --repo git@github.com:nkbt/react-page-click.git --user nik@butenko.me --branch gh-pages --message 'Publish examples'", "prelib": "rm -rf ./lib", "lib": "NODE_ENV=production babel --config-file ../../.babelrc src --out-dir lib", "lint": "eslint .", "prepub": "rm -rf ./pub", "pub": "NODE_ENV=production webpack-cli --config ../../webpack/pub.config.js", "test": "node test/Component-test.js", "prepublishOnly": "yarn build", "postversion": "git push --follow-tags", "deps": "! depcheck --specials=bin,eslint --ignore-dirs=build,lib,pub | grep --invert-match 'No depcheck issue'" }, "repository": "https://github.com/nkbt/react-works/tree/master/packages/page-click", "keywords": [ "component", "react-component", "react", "document click", "popup", "page click", "click", "outside", "click outside" ], "author": "Nik Butenko <nik@butenko.me>", "license": "MIT", "bugs": { "url": "https://github.com/nkbt/react-works/issues", "email": "nik@butenko.me" }, "homepage": "https://github.com/nkbt/react-works/tree/master/packages/page-click", "peerDependencies": { "react": "^15.3.0 || ^16.0.0" }, "dependencies": { "prop-types": "^15.6.0" }, "devDependencies": { "@babel/cli": "^7.0.0", "@babel/core": "^7.0.0", "@babel/plugin-proposal-class-properties": "^7.0.0", "@babel/plugin-proposal-object-rest-spread": "^7.0.0", "@babel/preset-env": "^7.0.0", "@babel/preset-react": "^7.0.0", "@babel/register": "^7.0.0", "babel-eslint": "^10.0.3", "babel-loader": "^8.0.0", "babel-plugin-transform-react-remove-prop-types": "^0.4.24", "css-loader": "^3.2.0", "depcheck": "^0.8.3", "eslint": "^6.4.0", "eslint-config-airbnb": "^18.0.1", "eslint-plugin-import": "^2.18.2", "eslint-plugin-jsx-a11y": "^6.2.3", "eslint-plugin-react": "^7.14.3", "eslint-plugin-react-hooks": "^1.7.0", "gh-pages": "^2.1.1", "html-webpack-plugin": "^3.2.0", "html-webpack-tags-plugin": "^2.0.17", "mini-css-extract-plugin": "^0.8.0", "react": "^16.9.0", "react-dom": "^16.9.0", "style-loader": "^1.0.0", "tape": "^4.11.0", "webpack": "^4.41.0", "webpack-cli": "^3.3.9", "webpack-dev-server": "^3.8.1" }, "files": [ "build", "lib", "src", "LICENSE", "package.json", "README.md" ], "gitHead": "8175c7c398d3c16f37725428e70b2a80d8de17d0" }