{"_id":"@airsquire/air-react-context-menu","_rev":"1-fd4b885db6378558ca2a95fc1421d2f4","name":"@airsquire/air-react-context-menu","dist-tags":{"latest":"2.0.1"},"versions":{"2.0.1":{"name":"@airsquire/air-react-context-menu","version":"2.0.1","description":"A lightweight right-click context menu implemented in React.","main":"lib/index.js","module":"es/index.js","scripts":{"build":"nwb build-react-component  --copy-files ","clean":"nwb clean-module && nwb clean-demo","prepublishOnly":"npm run build","start":"nwb serve-react-demo","test":"nwb test-react","test:coverage":"nwb test-react --coverage","test:watch":"nwb test-react --server"},"repository":{"type":"git","url":"git+https://github.com/amurp/react-context-menu.git"},"keywords":["react","contextmenu","context","menu","right","click","component"],"dependencies":{"prop-types":"^15.6.2"},"peerDependencies":{"react":"16.x"},"devDependencies":{"eslint-config-airbnb":"^17.1.0","nwb":"0.23.x","react":"^16.5.2","react-dom":"^16.5.2"},"author":{"name":"You Yue"},"license":"ISC","bugs":{"url":"https://github.com/Airsquire/react-context-menu/issues"},"homepage":"https://github.com/Airsquire/react-context-menu","directories":{"lib":"lib"},"gitHead":"7b18513037ba9cd04cf6363e7252ac44a2112dac","_id":"@airsquire/air-react-context-menu@2.0.1","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"airsquire","email":"youyue@airsquire.ai"},"dist":{"integrity":"sha512-weSZAiRFDRFupA7tEIXgYbU0Bnor2vuZLYHwdy5cFerr+dvbZzfc+mnfKEKhEHB8OImLvrmnexkLgkGCYiq8Hw==","shasum":"27dc7cf79eddf2eae401817aa6dcd73931437884","tarball":"https://registry.npmjs.org/@airsquire/air-react-context-menu/-/air-react-context-menu-2.0.1.tgz","fileCount":12,"unpackedSize":12532,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdEJe4CRA9TVsSAnZWagAAzJsP/0wI9EfagHYj27Eu7qkR\nMnMjpyk/heuGk4SOYSytkW5k6+OumM+LVfcXiRPRIpUvMY3qIPGgPjwijivL\n9iIVTy9y+pHu3UYKLEYXHdOevxKB+YasRbbGI96BisD1VNjlK4AlM0xgNuzV\nYBlYlMYbzLJmxjtHo2b5oMJSC5zRkJTb9ZEZV3gsY3gvMlK+lbZgznRmmHfW\nJ1FU9zF6QQW5gMg/lD8cYucZoU/2X3WtEOX9z8PyNfzIJh+ctqR4Co2AT3Bb\nVGzURWDfvBYe1w0UnhNFkozVgisZisiTkXFeihqf0hd/T25mTYg92IyiUFW+\n7t6LJM/GFDSQxHEPQ+B83ZIAZzELcKbytcIWYm2dhnvIfG42f8AYiZd4egGB\nN2tnszt8/LJf0jLqU1eiioL8z4JmTY1lEHZl/ZLJG7Mbui3v/XC/Bkr7ELBy\nFE09ANhub8nwZi2oWGrHfsex/Kis3ToZUFA8FW6DHTOP/VgOAWqzmqkJRBxQ\nFceJ0QMvJl6wKHROmouj3NC1c8HT3nswzEcqErLONoDtCUSdYG2pIYPXMU1A\nfLnEMduzgR1nsjKaHo7VmbJylKzpzbChQwJnaU1S9FYRkOlN1RvFRylxQv9L\nAqqu3XU013OrqIKwk9Un+9y8bV15iNiNTbyo9kJ9Ky1zWePENma2iLBdiYKW\n0aug\r\n=md1k\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAoUqdarB1TpQz7XY/0sGey+Z8QPdrVHrXh+MpXn51ZmAiA1y8n7C60s778MYwDjG1rRqJtiT7t4aLH+6v+BfZxrjA=="}]},"maintainers":[{"name":"airsquire","email":"youyue@airsquire.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/air-react-context-menu_2.0.1_1561368504406_0.9554705912110986"},"_hasShrinkwrap":false}},"time":{"created":"2019-06-24T09:28:24.376Z","2.0.1":"2019-06-24T09:28:24.507Z","modified":"2022-04-04T12:23:15.353Z"},"maintainers":[{"name":"airsquire","email":"youyue@airsquire.ai"}],"description":"A lightweight right-click context menu implemented in React.","homepage":"https://github.com/Airsquire/react-context-menu","keywords":["react","contextmenu","context","menu","right","click","component"],"repository":{"type":"git","url":"git+https://github.com/amurp/react-context-menu.git"},"author":{"name":"You Yue"},"bugs":{"url":"https://github.com/Airsquire/react-context-menu/issues"},"license":"ISC","readme":"# react-context-menu (Airsquire)\n\nA lightweight right-click context menu implemented in React. \n\nThis fork is solving the ./style.css importing issue\n\n![example right-click menu](react-context-menu.png?raw=true \"example right-click menu\")\n\nTo use:\n\nInstall the component in your project:\n\n```npm install react-context-menu --save```\n\nImport the component into your project:\n\n```javascript\nimport ContextMenu from 'air-react-context-menu';\n```\n\nPass a ```contextId```, and an array of menu items with labels, onClick functions, and optional icon paths -- like so:\n\n```jsx\n<ContextMenu contextId={'clickable-area'} items={[{label: 'Configure', onClick: this.configHandler, icon: 'path/to/icon.svg'}, {label: 'Delete', onClick: this.deleteHandler}]} />\n```\n\nThe ```contextId``` is the area in which you'd like right-click functionality. Add a unique ```id``` to your right-clickable element, and react-context-menu will be available anywhere within that element.\n","readmeFilename":"README.md"}