{"_id":"@alastair/contextmenu","_rev":"4-654fd2236d8ac55c795864604ea55142","name":"@alastair/contextmenu","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.0":{"name":"@alastair/contextmenu","version":"1.0.0","description":"A dead simple React context menu.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/AlastairTaft/contextmenu.git"},"author":{"name":"Alastair Taft","email":"ali.c.taft@gmail.com"},"license":"MIT","peerDependencies":{"react":"*","react-dom":"*"},"gitHead":"fbb06a4589bb4fc1bd976d738af83cb8913ad8f4","bugs":{"url":"https://github.com/AlastairTaft/contextmenu/issues"},"homepage":"https://github.com/AlastairTaft/contextmenu#readme","_id":"@alastair/contextmenu@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.10.0","_npmUser":{"name":"alastair","email":"ali.c.taft@gmail.com"},"dist":{"integrity":"sha512-uZeEH/9y9Ok0/5tZti54E7A8hWg77cTAsJBRCxLrYchTZdfqjiFxAK8KsXvqCbPGc26hCCiEnzDgOMDox5QcNA==","shasum":"2be5b28372c9990e54536b8a7fff114b70dd7121","tarball":"https://registry.npmjs.org/@alastair/contextmenu/-/contextmenu-1.0.0.tgz","fileCount":3,"unpackedSize":4686,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbK7OoCRA9TVsSAnZWagAAs/sP/1hZ5DnV49qjhomWmfyu\n0GF5feSfxgkEoTkjka5ncnAjygSXeGw8HMqyTepLeJkKLWVM+msP8hcVZZgA\ncymD9w20Pz7poqnpvmopCE7zoTd50aghEFJDicbYLVXg8DVf9bpG9S5GEMrn\nP8R3TecLBwYWjwQx7hq8i70oYJanDcfhA81OpVrEjuRma1AeLrDzgNee3LS3\nZq9qFfEovfPTR+puTzT7HAeJBmFC0fPp+nW5V5tbB+9LzRPg67pHbzEWaRz1\ndXw+TQw99rdh6UeKlvhbywshUdm2tG4RbWmUHUPAk3+Cf22S86w/DQkFlfRQ\n+rRyFWewrzOG+AHXlfNznn9CEoqOyuXO4LmCcetukn3Q1k9H1txkqJ7yIl8d\nvWBMIHUL6kEuIqbj0Erarho5obXnQ0KZyL/hRFfmDc1YBFJbigW8TpcXg2pv\n2B73A68MupWnAj/CTVkp4WTIksoQi4HZ6tLLgZj5BG6eaKnW/awkCP3zC5Yp\nNS/Tcpz1Q4TvXDDKdTi9GyJMP7Vn/2Ovqwpyfpp2Fir36nTRZwrc86H8M9ON\nKiX68ZUy5+IYAPCjXd4DOfSlMwXJhGcf3shNuTcBt5O+R5Od86N9o7H+Bvhb\nx14zztmebQQ/Ankw81dU9CyrdCZJzXdGqGviUcdmQVZmDMzpSldGtJoiGwaw\nahs2\r\n=GrrP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCT1BQfn/OccEjWnfuPyhS0ClvVHAL290G1UNZCNMsMpwIgINy0pJ+zXNf5PUpH6PRPeXCH3Zi4EvSMLZkkKgAyKfo="}]},"maintainers":[{"name":"alastair","email":"ali.c.taft@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/contextmenu_1.0.0_1529590696895_0.14472470288777983"},"_hasShrinkwrap":false},"1.0.1":{"name":"@alastair/contextmenu","version":"1.0.1","description":"A dead simple React context menu.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/AlastairTaft/contextmenu.git"},"author":{"name":"Alastair Taft","email":"ali.c.taft@gmail.com"},"license":"MIT","peerDependencies":{"react":"*","react-dom":"*"},"gitHead":"c8fe56dae87b3a127718106b426b742a8f1a7b90","bugs":{"url":"https://github.com/AlastairTaft/contextmenu/issues"},"homepage":"https://github.com/AlastairTaft/contextmenu#readme","_id":"@alastair/contextmenu@1.0.1","_npmVersion":"5.6.0","_nodeVersion":"8.10.0","_npmUser":{"name":"alastair","email":"ali.c.taft@gmail.com"},"dist":{"integrity":"sha512-UlR/705m9NezQDYUXVqz3Z8B2y1Gm2NejJYffXVhvca9avYmolBifsbIqgSRxPnQoxIGzPti50OX2aHhP9DnPw==","shasum":"2dbd2a489705ac056dab7536c7215654c51a9cff","tarball":"https://registry.npmjs.org/@alastair/contextmenu/-/contextmenu-1.0.1.tgz","fileCount":3,"unpackedSize":5013,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbK7oCCRA9TVsSAnZWagAAwNMP/jRE6wYBLMziGbgV50v9\nh6ShdunI/qvejFdyKCA2IVP8qRPlnQq5j5XMUo+4OwK18hLYKKqyzA+bcuj+\nF+qnYrWpLedl0rPlWwMnnodX96Hdmx0mgHyD1T8Rk7+rBdTry/RllaOhjTbQ\nFPOj0np9/0vqE7wPNUM41lf/CUFLpYET9CDy78cagPzLdiv7/gYGoNrJK9K4\nF8lESL3bbIYWCw0+fT6DJ9IBcWkYVE0WHfgj4VsOeDmXM1pk/9WwEpLFuYvT\n+www8qvSoOaaooAFcPEjYh7Gfr/NGSvdY9NVl/zlyTcM+ATp0gOILu7eWgzh\nr2+MmPqauV1FFjBEkrVrjtXC/TvPlxW0SwcZ/x4LjpaMFlPZpWSbWG4t3Fxi\n5KszkwAJtsUvhjDypcwwXnh7kLKN8gWEv5X8wBnYYvmi1EYg3qcDgZMM2n1H\ngOQsjklJsaAXDp60KDHsE/wG0dLDxOhBPr9fx87y7CqLb9LHNths3impzvta\n65rsOg4IHzULGKY8glSxqvzxaxQ/flWFkWDo8mu3RBAoWjfZkzYviKIWketL\nnIIXnUPDbA09wPvUgov3Yy/fXp9aKiIt5/St9hFYxFuVBzgcVD8glbNgDEdM\nAIk5SU1cYKsuqR6corgBXCVZsK9oQyp2k/tukmt5+4NVcZxEhRKHiSv/DVC3\nlL6t\r\n=pTNU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCIyXC9oeT1sHiR8JwrZ00XNzVW+ycq30O436taOsHdyQIgP5jPpmk7c2AjcKncwqRzHHYZMG66r8ofNb4hvcdToYo="}]},"maintainers":[{"name":"alastair","email":"ali.c.taft@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/contextmenu_1.0.1_1529592313882_0.071433105233349"},"_hasShrinkwrap":false},"1.0.2":{"name":"@alastair/contextmenu","version":"1.0.2","description":"A dead simple React context menu.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/AlastairTaft/contextmenu.git"},"author":{"name":"Alastair Taft","email":"ali.c.taft@gmail.com"},"license":"MIT","peerDependencies":{"react":"*","react-dom":"*"},"gitHead":"8dea94042ea1a7e342ff87cd35ff84ff455f63ec","bugs":{"url":"https://github.com/AlastairTaft/contextmenu/issues"},"homepage":"https://github.com/AlastairTaft/contextmenu#readme","_id":"@alastair/contextmenu@1.0.2","_npmVersion":"5.6.0","_nodeVersion":"8.10.0","_npmUser":{"name":"alastair","email":"ali.c.taft@gmail.com"},"dist":{"integrity":"sha512-/8nHxGFcHoERxVPe5obytFMNwhssqMNrAMH6/QJdIsmvN5yvjLYaXS6RvNajtCFOF/5mHMh8faa+FJHFdUHiWA==","shasum":"3c686df9406290f633776337127607aac7d61b1b","tarball":"https://registry.npmjs.org/@alastair/contextmenu/-/contextmenu-1.0.2.tgz","fileCount":3,"unpackedSize":5013,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbK7qNCRA9TVsSAnZWagAAHU8P/3sdBgrpT+64KL+9oZAC\n6mTIh5yyDDd1V1+dBjHKfp54zoio9PzpQmE4zbQiw91M8coN3HITFbHCYK/h\nOk7H0Lj5nkXaLmu4SVR2la5gyGyeffhAe1b1QI6NyanX7h6CmUBi0Wuw/bbm\nqZIaMAFzmFM32yA3cEuGBqbPp3WHsEIw7tRLnl13z4bh+ATPPrZoEknG0RsL\nBBARRALTJK88HQz0uhfW0sz8IIelCeGKPqRB6SkMD8QWin/6aqydUoQTlCv+\nU/57QN/00un2xw5MtkSIC1SiUt0gVystVBDF8NqvR1AeRRXoKgrRlxx/fyxz\n4SPDhaSH/4K2+Wnqoz2wybKeNAo5M4suSECHrRD55Kvw7bCPOAw4NvR0BJwQ\ntYBvBiu6rHSEUK7vJ/Zt7lpG7rKrlSElMV6bf6ZxJanlvk/lffivxXh7j66r\nX94PNNkNCMp/UuBAd9NzC6XYRQm+qLZ7eVUPxf24x7NZqN2X9WuLEc7k5AiF\nMACyOeWIGaDqw++82vvBZsuPAv2Uw+Ab75GgixzmlsI9RAMsnFVF0s3qJHy7\n3nP6yQOuyZ34+pd/DX1yIfVkzIiVUE9Zx+AXYS7QQIaIqX1zJkq6g3PRaVbV\nbX15J5o+o+XTVG7vhVZ+CWsOI2XLS+hn2W2B39REXclt0e2dqYfhc+5C+hAx\nJ3vT\r\n=PQpU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDDUn3qWf0Kl3rOwVOYjlz86clgoaVQn3QItSmepns2BwIgWz1BhR6KXfGy4WASgsW4eCow1fnIz7vIR3xjn7B/5z8="}]},"maintainers":[{"name":"alastair","email":"ali.c.taft@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/contextmenu_1.0.2_1529592461508_0.30018944109300727"},"_hasShrinkwrap":false},"1.0.3":{"name":"@alastair/contextmenu","version":"1.0.3","description":"A dead simple React context menu.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/AlastairTaft/contextmenu.git"},"author":{"name":"Alastair Taft","email":"ali.c.taft@gmail.com"},"license":"MIT","peerDependencies":{"react":"*","react-dom":"*"},"gitHead":"5a160708ba43a7d1afc06992c32856a9a269714d","bugs":{"url":"https://github.com/AlastairTaft/contextmenu/issues"},"homepage":"https://github.com/AlastairTaft/contextmenu#readme","_id":"@alastair/contextmenu@1.0.3","_npmVersion":"5.6.0","_nodeVersion":"8.10.0","_npmUser":{"name":"alastair","email":"ali.c.taft@gmail.com"},"dist":{"integrity":"sha512-3uTNLXHnC2EU7EBYCP1sx+IbLsyLYUQBrdc2AI7q7gzKJ1SQkuHl7pZgo2rTt5EPVkIt9hnhDTJcK1GvcQsn0g==","shasum":"6785a9cfa555a2e2e3dbdf7c73a7540d025cd832","tarball":"https://registry.npmjs.org/@alastair/contextmenu/-/contextmenu-1.0.3.tgz","fileCount":3,"unpackedSize":5006,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbNFGcCRA9TVsSAnZWagAA2NMP/0uxmVwM67+RYGTOHwoa\nf5BPQB9J337ny0RGy1aW/9nqOUbnD9GfxKH6h3mKiECHY347lgI/D6oRjtC7\nHafemMJyACuOjUlqkRDtEML2dowmgo7CKB7SHA8uGdltPUZP8Yfa4RGzDT3j\nhk5hGqvFZ6PARw1qyFRYJkWFfnWQuc469vKwidxhUVPLk25gq09NnMOfIe4J\n6yYL5SfOflduBDTQeEeD20HYEqpQBRRJ09sXWfh5n8N7R3HPwEt4Kw++PpZk\nHovb1CQrlvLFg1qB6i+cuOmlKe1SxcmB2O2soBexzJ0CXKH0dJtn28XhRU1q\nFAdtY+4M3URkp4lo/Q7zismog/Pzt/ETX71l7tHpzMb2sfWv+aXHnv5/3fLM\nH6p4bIZQYGYcfATnv0tdFxuk1xJ/TacTqBjsONlPz8JoUJf8cnMTqdOG74zt\n5zpAMp9iwstmWUYR75gwpiP5Q8xZXenjH6AgdeJgZ06YEMbfehQYI563h/Cq\n3oU+MtahUkYAxcC1ookKK6MyiZzF6V+ad9nqQPFwJgRze8A0Ub0X7QJu2lNf\nNu0Sh4TXhWmgyRaifQhoNO1yIGSkYUqc+mNLumJdY1OAtKGGF9IAq7bSbJJR\nZYKl2R2gAFlxN2Pex7FoDsD3MYYDA1qAYnRZ1UzQ/MLiopizI/Ap0BN6qPxQ\nZ2ZQ\r\n=cLk+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDzhl/wK5CwDTylN2+Qx1vCbqnF9uIk3qmfb9Fqy/gGIAiAwjuA4KHktxt0DpnlHPibEgLha9s0EgEK+f59HOUrF0A=="}]},"maintainers":[{"name":"alastair","email":"ali.c.taft@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/contextmenu_1.0.3_1530155420096_0.5961677584876703"},"_hasShrinkwrap":false}},"time":{"created":"2018-06-21T14:18:16.334Z","1.0.0":"2018-06-21T14:18:16.947Z","modified":"2022-04-04T12:33:41.908Z","1.0.1":"2018-06-21T14:45:22.427Z","1.0.2":"2018-06-21T14:47:41.607Z","1.0.3":"2018-06-28T03:10:20.175Z"},"maintainers":[{"name":"alastair","email":"ali.c.taft@gmail.com"}],"description":"A dead simple React context menu.","homepage":"https://github.com/AlastairTaft/contextmenu#readme","repository":{"type":"git","url":"git+https://github.com/AlastairTaft/contextmenu.git"},"author":{"name":"Alastair Taft","email":"ali.c.taft@gmail.com"},"bugs":{"url":"https://github.com/AlastairTaft/contextmenu/issues"},"license":"MIT","readme":"\n# A dead simple React context menu\n\nA low level React context menu implementation with a simple api that has no\ndependencies (although expects React).\n\n## Table of contents\n\n - [Installation](#installation)\n - [Usage](#usage)\n - [API](#api)\n - [License](#license)\n\n## Installation\n\n```\nyarn add @alastair/contextmenu\n```\n\n## Usage\n\nDesign your context menu however you like and attach it by creating a context menu ref to a target element.\n\n```jsx\nimport createContextMenuRef from '@alastair/contextmenu'\n\nconst MyWidget = props => {\n  const ContextMenu = ({ onClose }) => <div>\n    This is my context menu.\n    <button onClick={onClose}>Close</button>\n  </div>\n\n  return <div ref={createContextMenuRef(ContextMenu)}>\n    Click here to open the context menu.\n  </div>\n}\n```\n\n## API\n\nThe api exports the following function\n\n### `createContextMenuRef(ContextMenu, opt_ref)`\nCreate a context menu ref, this sets the target element that when clicked will\nopen the context menu.\n\n#### Arguments\n\n| Argument     | Type               | Required? | Description                                                                                                                                                 |\n|--------------|--------------------|-----------|-------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ContextMenu  | Component/Function | ✓         | The context menu. This will be shown when the target ref is clicked. It will have one injected prop `onClose` which you can fire to close the context menu. |\n| opt_ref      | Object/Function    |           | The regular ref argument, this is useful if you need to use the standard ref behaviour                                                                      |\n\n## License\n\nMIT","readmeFilename":"README.md"}