{"_id":"@cmerot/search-palette","_rev":"4-a0c9c2e9dcaf1987fcef4a474e7feb7f","name":"@cmerot/search-palette","dist-tags":{"latest":"0.2.2"},"versions":{"0.1.0":{"name":"@cmerot/search-palette","version":"0.1.0","license":"MIT","repository":{"type":"git","url":"git+https://bitbucket.org/cmerot/search-palette.git"},"bugs":{"url":"https://bitbucket.org/cmerot/search-palette/issues"},"homepage":"https://bitbucket.org/cmerot/search-palette","scripts":{"build":"bsb -make-world","start":"bsb -make-world -w","clean":"bsb -clean-world","test":"echo \"Error: no test specified\" && exit 1","rollup:esm":"rollup -c rollup.esm.js","rollup:iife":"rollup -c rollup.iife.js","rollup:clean":"rm -rf ./dist"},"module":"dist/index.esm.js","main":"dist/index.iife.js","author":{"name":"Corentin Merot"},"peerDependencies":{"elasticlunr":"0.9.5","emotion":"^10.0.9","react":"^16.8.1","react-dom":"^16.8.1"},"devDependencies":{"bs-css":"^8.0.4","bs-platform":"5.0.3","bs-webapi":"^0.15.1","elasticlunr":"^0.9.5","reason-react":"^0.7.0","rollup":"^1.11.3","rollup-plugin-commonjs":"^10.0.0","rollup-plugin-node-resolve":"^5.0.0","rollup-plugin-replace":"^2.2.0"},"gitHead":"d88e7d6770a23b62a7d20aa9c47190cb025c0aab","description":"A react component built with ReasonML.","_id":"@cmerot/search-palette@0.1.0","_nodeVersion":"12.1.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-+Vl2q3kZWbK6AT2qJn5xbQv4bHWFyoZb+1N2qTxwYRcpIHHZWy4nHo4dJ/Q0L1cbtUPBh6ffCYzxaMz4DMDzPw==","shasum":"b8fbb799d53e59137a524360e8d43808a668594e","tarball":"https://registry.npmjs.org/@cmerot/search-palette/-/search-palette-0.1.0.tgz","fileCount":4,"unpackedSize":166847,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc5u1rCRA9TVsSAnZWagAAbUMP/35Jf6/tNBs47gut2nAB\nEjueg0p1UKhnq1wG0ZjTlTDphtCXAEBkLMil3CAV0U6ci1wayHM1Gzm1kyP7\nJzmdf0Ve5/nOGPPOai1Cty41Hhev6Oj8r5n5Jlrfo3ij5CqxOQ2u3dAPsVzN\nMYNu8H2mPd0I2mJB0J04JLZ76Z8SHbQFuoPzfLdBi5K31ZMki+sVDpFwwW6k\nTQPCziF/C0hV0kW17byGakbMhtXqVXywHbz0G0sgMTZNnqPnB6OqooY5Knvw\nRqKT+4Ps+UHzash4xFCDr641eDeCOiI18cr/B9i2Yacgtx95j9lQPTGY8VAz\nzqGPsu7wJ8HIBV6diw01+i26sQIFUYhBEdUrg7XMueRcA47GqKgfy3+bRhg2\nrBe2+Fa4GAn+8XM+BftnoPAJdIz6emfYjVbJqpmTjozfStyCU0IEi4YCF/6w\nBG4WfV8pBQnHgzhPutXddlEz9cakVYDK5A9mEo7JI0o/ETb3euXe3E26N0cU\nGF+NXSeO4YaQpsfHw7RWFldPL0CK9J1qr59xNPOFULD02QgZGYWSLX8bnh+Y\nn31lTBaotmaj1T3bIlYBkRC7nbzmgf9uiQUWUZ7c9rkJ6GbhAKsK7JtFujVj\nk0H+Or7syQN7FlhwaUjqfdV4k5UE1QWpJ0kjC7ZtKq9Fj2RYcRjfllLy9xzC\ngWjy\r\n=yv4f\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDxRBHS8H5/7X1FxCnWGLtI/2MRD8RcGtLgIKcqUd0ppgIgRX9F034/IrAeLkLRXLp0AHbRF+PyQupwqGHMyQ3wE0E="}]},"maintainers":[{"name":"cmerot","email":"cmerot@gmail.com"}],"_npmUser":{"name":"cmerot","email":"cmerot@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/search-palette_0.1.0_1558637930701_0.294497521880436"},"_hasShrinkwrap":false},"0.2.0":{"name":"@cmerot/search-palette","version":"0.2.0","license":"MIT","repository":{"type":"git","url":"git+https://bitbucket.org/cmerot/search-palette.git"},"bugs":{"url":"https://bitbucket.org/cmerot/search-palette/issues"},"homepage":"https://bitbucket.org/cmerot/search-palette","scripts":{"build":"bsb -make-world","start":"bsb -make-world -w","clean":"bsb -clean-world","test":"echo \"Error: no test specified\" && exit 1","rollup:esm":"rollup -c rollup.esm.js","rollup:iife":"rollup -c rollup.iife.js","rollup:clean":"rm -rf ./dist"},"module":"dist/index.esm.js","main":"dist/index.iife.js","author":{"name":"Corentin Merot"},"peerDependencies":{"elasticlunr":"0.9.5","emotion":"^10.0.9","react":"^16.8.1","react-dom":"^16.8.1"},"devDependencies":{"bs-css":"^8.0.4","bs-platform":"5.0.3","bs-webapi":"^0.15.1","elasticlunr":"^0.9.5","reason-react":"^0.7.0","rollup":"^1.11.3","rollup-plugin-commonjs":"^10.0.0","rollup-plugin-node-resolve":"^5.0.0","rollup-plugin-replace":"^2.2.0"},"gitHead":"f09fa5b02fc783292e39b26e871e79860a3b627d","description":"## Synopsis","_id":"@cmerot/search-palette@0.2.0","_nodeVersion":"12.1.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-tomh1THw0vQ4e7rCrV16480Jp+o6n/dbscOuPpJ9sxBJ9ILHKi7hmBP2QDAL+F3/r1J0gzMTJgZxNw+K/Xzrcg==","shasum":"9c6108fe21ada377414df1f51820416e209a3969","tarball":"https://registry.npmjs.org/@cmerot/search-palette/-/search-palette-0.2.0.tgz","fileCount":4,"unpackedSize":137601,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdD3a9CRA9TVsSAnZWagAAbQ8P+QGk/pIU4q1MdwnM1N9V\nxrXAtgNMykiobCjPhgaoRqHdNCvwQRTzW+Xpwijbc46I/V9e7MqtWTFvIggJ\nXo/wNmzZLbaAP1Ka8+sOlXWcTrE6tHuizuaqqNKnGNixnJNArlA6/dqiCFJb\nn3ziaj58vZY/CHEkoNZGEkOyE7SmXuohuJ/GjWqKMmzcrVOVCGQbUXul+TXf\nWX7W9zk+ejJvA4tb7hZcsyxDcTDeC+yFBNPHHxUwp0rNgOHsiCH5dm3Vcsf2\nBYAE3sGVkfbXE3wkn77kWF4+5OBuGxqnfONPuqEoBdVAgYNSJzFtQfY2NwSE\nXig+ZxgWtOcpeoF+jXUSHpgaFmlrjm4wYl3a3ynBH8V51YQHG4H8lyjRUGZx\n46yPT4GSJX72OeloXx+n6i/6YaCqcoPyYtP09HLhRguxT1fterpbV5/I+blH\nnRToePUmLSCBfoSKw2T6Fhz5aXqCP+vuleMGd/Q/zSOAUr62mcZfdP/mdc95\nLjfZIWwK2SasboVSTeiyTtI5r3qJMBgoWxM2leOaDwkPwH1OmdXA9arkU6nb\nkki0s3R5Et75NKLWbClV426irr3yKKSxR6evWuni9YxHMQIROv3WgOxF5oZ6\n+pP0lu+7FRvsMJP3SfxdLdfb+A7OUz83CaTyJwbcwZQUlKQnVWR943O7DSrV\ny7iq\r\n=lYUx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBmsH6P85BXje/fuv73AuNSzpjMemG2CdGWEsDhhoinpAiEA20XTGU4MCw+GTg3EFCdKTjiRpGmjBBX27gjgzt69Re8="}]},"maintainers":[{"name":"cmerot","email":"cmerot@gmail.com"}],"_npmUser":{"name":"cmerot","email":"cmerot@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/search-palette_0.2.0_1561294524649_0.10769817176770835"},"_hasShrinkwrap":false},"0.2.1":{"name":"@cmerot/search-palette","version":"0.2.1","license":"MIT","repository":{"type":"git","url":"https://bitbucket.org/cmerot/search-palette.git"},"bugs":{"url":"https://bitbucket.org/cmerot/search-palette/issues"},"homepage":"https://bitbucket.org/cmerot/search-palette","scripts":{"build":"bsb -make-world","start":"bsb -make-world -w","clean":"bsb -clean-world","test":"echo \"Error: no test specified\" && exit 1","rollup:esm":"rollup -c rollup.esm.js","rollup:iife":"rollup -c rollup.iife.js","rollup:clean":"rm -rf ./dist"},"module":"dist/index.esm.js","main":"dist/index.iife.js","author":{"name":"Corentin Merot"},"peerDependencies":{"elasticlunr":"0.9.5","emotion":"^10.0.9","react":"^16.8.1","react-dom":"^16.8.1"},"devDependencies":{"bs-css":"^8.0.4","bs-platform":"5.0.3","bs-webapi":"^0.15.1","elasticlunr":"^0.9.5","reason-react":"^0.7.0","rollup":"^1.11.3","rollup-plugin-commonjs":"^10.0.0","rollup-plugin-node-resolve":"^5.0.0","rollup-plugin-replace":"^2.2.0"},"description":"## Synopsis","_id":"@cmerot/search-palette@0.2.1","dist":{"shasum":"16ca6b74bb27be58f7ba034c4c7846bccd0b7ff3","integrity":"sha512-XRFsZvTJLjXtp+Trw/h/9aAYqIyPvTU10wHuvQBelLG0LtpJDxaaHW326AZl8VcV2zW4nSuWRn4lUYzdtXADuQ==","tarball":"https://registry.npmjs.org/@cmerot/search-palette/-/search-palette-0.2.1.tgz","fileCount":6,"unpackedSize":137599,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdD4VRCRA9TVsSAnZWagAAuYAP/RAe9+2IpdYOjrzjPp9c\nFcdC/dayJtNQQ7ohTpedsbN3oY1S997IBuWNq1lrXIUztHXJ2cWdy1UESEV8\nrRHtDlF0Cw0IJBRpH03YsWzarSGelh3aRCltvRfTwMRwJitFE3xA4dsDn3Cy\niQ3bWPFNignC8Dlsl+vYAbBTENuRf5mcjaFZs2W/DU8T+wCEfqkY24I7RXCk\nKwGBLqpLjsr6pAMrd/yUmgzq9YQVppaOSxLdazi4+YFQs9sEhAoC/Hcv0Eia\nKi8pvXnLf9+sz8jD2ai5wk0B445ECpyklctnzMvxulKiesCYAZi++24dRIZG\nWW3lPWX7+gvLm4XgLD03WfIl/8Woq04VsXIWNrLID0940cSvYnrUn43DuQVD\ndVmp81AxvKANSfjG5iqQ4i/7n8aQx2MRWzQppEH7WTTh3kg34KN32Th4Gc+K\n2qWiP33qwKJ7qn9mIXzkmUSnCBZZThpBsi53n9lQ6YX+qfBydVQ5nV9tTSyc\nOd2ryOkZ2XDxhRuA7bQnXx7kEZqhFCzHGChHRyLkWB985Qz+gX4AirQNIppi\nD3gYVQLmO9byf1WdJeWYnhW1hWkNFBlkk4QT5D7/8snkGfD61ax4E2JZlrP0\nd6LL2gkjQFr43vuQ/TYwhv2sW9rVpznnHMODBU0D1X/xENXBRch8aR3tDe7d\neYQD\r\n=ETE/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDL4UuAIj5ZY/kn046qSdDUzTQhJQoBrCtg7Z2hnt6L3gIhAJOaxLUVFo+tslHo5oLikNe7p/3mMgfAQWW7UweewyQ9"}]},"maintainers":[{"name":"cmerot","email":"cmerot@gmail.com"}],"_npmUser":{"name":"cmerot","email":"cmerot@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/search-palette_0.2.1_1561298256593_0.9700902181338324"},"_hasShrinkwrap":false},"0.2.2":{"name":"@cmerot/search-palette","version":"0.2.2","license":"MIT","repository":{"type":"git","url":"git+https://bitbucket.org/cmerot/search-palette.git"},"bugs":{"url":"https://bitbucket.org/cmerot/search-palette/issues"},"homepage":"https://bitbucket.org/cmerot/search-palette","scripts":{"build":"bsb -make-world","start":"bsb -make-world -w","clean":"bsb -clean-world","test":"echo \"Error: no test specified\" && exit 1","rollup:esm":"rollup -c rollup.esm.js","rollup:iife":"rollup -c rollup.iife.js","rollup:clean":"rm -rf ./dist"},"module":"dist/index.esm.js","main":"dist/index.iife.js","author":{"name":"Corentin Merot"},"peerDependencies":{"elasticlunr":"0.9.5","emotion":"^10.0.9","react":"^16.8.1","react-dom":"^16.8.1"},"devDependencies":{"bs-css":"^8.0.4","bs-platform":"5.0.3","bs-webapi":"^0.15.1","elasticlunr":"^0.9.5","reason-react":"^0.7.0","rollup":"^1.11.3","rollup-plugin-commonjs":"^10.0.0","rollup-plugin-node-resolve":"^5.0.0","rollup-plugin-replace":"^2.2.0"},"gitHead":"17dab569601dc24c144468ea978df53d7559d66a","description":"## Synopsis","_id":"@cmerot/search-palette@0.2.2","_nodeVersion":"12.1.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-ebWRoc2HdBSZBjbkvArtz5gSSnAMFpsOkFQJsxhQ0/vHvW8BX+PojkkH7LZxgn4jmrmH2uaae8OwKL5a5cmACg==","shasum":"3ef9c47fce536a92edad43a1beb2531bfbb63705","tarball":"https://registry.npmjs.org/@cmerot/search-palette/-/search-palette-0.2.2.tgz","fileCount":4,"unpackedSize":138325,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdlZDGCRA9TVsSAnZWagAAvQYP+gJvKb8JNoI2kcXBenB6\nwU5uN64XdMdtw7dxF1lXz/JqfpOKdovqEPBOHSGIwtt2Dq26NU3SR8yVYuaw\nMZIefSEzJqwznAgRhmSViFjpM7aM9dLUGXcVy3LSYan7Lm8dq6+124w+E6Xm\n08u4pSUS9NVl3apY90JMyMyjpKPzx7lPEv1tB73UMPxBrvwYl0kIw2Nz5u6t\n63Mo7ieroqmb8ZiU+19a7ONmFbvGpF20EGb3XvQxLrQ/xvDKrm+WVGvkdrZE\nOkkmST02df7YIiaI89oCGITWtVhlTtsmlYmIPNNXmCeypJ9IbVzeoAz0appw\neewCqeNbhqI9zXT0ThqeMzSpNE/wdg9GKt8lnaZGYlWmIOT0xKdlB1Kidiad\n5wU8FevXy/MzxWltoNRgck4KAOlkUD+7nnw37zYFX4uIImPhyVjwUqKkonBL\ndkUN0Q/JlvXI2ZXuGc/HKuhkd3w7F7VPoI5PKSVWg2ipm6cAor2Fs+TYzsJX\n3IOL+QRzj693ffzTKaGoavDC8P/S0nKzvD7JvxeJaFow/bQ6V/Cb5koIXYsN\nQb4SJW8C81TbP9sWhuIAc4gzQj3U2biaYZNbIvZuOQ7MYEUPDSKv3fTg5IMh\nCYmMvXp6p5KN5GZUykcTj4UBpZac79PT471rCjeTUqhFa+qpdELro/TRUWAG\nN+/p\r\n=SCsG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCVcMtqRmueh+tdQjXqX7Nt0i7NHKclYsGOxf6A135QIwIhAIuwu2bFoq+L8pw0QiCl0GWGJ8cvh5B4P+IQRgTJ7wd3"}]},"maintainers":[{"name":"cmerot","email":"cmerot@gmail.com"}],"_npmUser":{"name":"cmerot","email":"cmerot@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/search-palette_0.2.2_1570083013594_0.9509207858592319"},"_hasShrinkwrap":false}},"time":{"created":"2019-05-23T18:58:50.672Z","0.1.0":"2019-05-23T18:58:50.782Z","modified":"2022-04-04T23:43:18.116Z","0.2.0":"2019-06-23T12:55:24.804Z","0.2.1":"2019-06-23T13:57:36.720Z","0.2.2":"2019-10-03T06:10:13.776Z"},"maintainers":[{"name":"cmerot","email":"cmerot@gmail.com"}],"description":"## Synopsis","homepage":"https://bitbucket.org/cmerot/search-palette","repository":{"type":"git","url":"git+https://bitbucket.org/cmerot/search-palette.git"},"author":{"name":"Corentin Merot"},"bugs":{"url":"https://bitbucket.org/cmerot/search-palette/issues"},"license":"MIT","readme":"# search-palette\n\n## Synopsis\n\nThis package is built with ReasonML and exports two React components:\n\n- `<Search>`: a text input that'll show results, it takes the following props:\n\n  - `placeholder`: the input's placeholder\n  - `search`: the function to execute on user's input\n  - `renderItem`: how to render a result item\n  - `onClick`: what to do when user selects an item\n  - `dataSource`: anything, will be handled by the search function\n\n- `<Palette>`: a keyboard shortcut manager. Props:\n\n  - `config`: a dictionnay to bind a key to a component. Ex: `{'c': MySearchWidget}`\n\nIt also exports 2 example _search engines_ (ie. the required payload to instantiate a `Search` component). They live in `src/examples`.\n\nYou can see it in action by opening `example/index.html` in your code editor and your\nbrowser.\n\n## Demo\n\nTo get a demo, open `example/index.html`, it should work out of the box.\nThen press one of the thee shortcut available: `alt + c|f|m`, to start searching\nagainst the dataset.\n\n## Run Project\n\nFor develoment, use `example/index.html` with:\n\n```sh\nyarn install\nyarn start\n# in another tab\nyarn rollup:iife -- -w\n```\n\nAfter you see the rollup compilation succeed, open up `example/index.html` (**no server needed!**). Then modify whichever `.re` file in `src` and refresh the page to see the changes.\n\n**For more elaborate ReasonReact examples**, please see https://github.com/reasonml-community/reason-react-example\n\n## Build for Production\n\n```sh\nyarn clean\nyarn build\nyarn rollup:esm\n```\n\nThis will create the artifact `dist/index.esm.js`.\n","readmeFilename":"README.md"}