{"_id":"@almin/react-context","_rev":"7-e4eeb7cf87f44d7f22a7ca95b060bdc8","name":"@almin/react-context","dist-tags":{"latest":"1.1.4"},"versions":{"1.1.0":{"name":"@almin/react-context","version":"1.1.0","description":"React Context wrapper for almin.","keywords":["almin","context","react"],"homepage":"https://github.com/almin/almin/tree/master/packages/@almin/react-context/","bugs":{"url":"https://github.com/almin/almin/issues"},"license":"MIT","author":{"name":"azu"},"files":["bin/","lib/","src/"],"main":"lib/react-context.js","types":"lib/react-context.d.ts","repository":{"type":"git","url":"https://github.com/almin/almin.git"},"scripts":{"build":"cross-env NODE_ENV=production tsc -p .","ci":"npm run test","prepublish":"npm run --if-present build","test":"mocha \"test/**/*.tsx\"","prettier":"prettier --write \"**/*.{js,jsx,ts,tsx,css}\"","watch":"tsc -p . --watch"},"prettier":{"printWidth":120,"singleQuote":false,"tabWidth":4},"devDependencies":{"@almin/store-test-helper":"^1.1.0","@types/mocha":"^5.2.1","@types/node":"^9.0.0","@types/react":"^16.3.17","@types/react-dom":"^16.0.6","almin":"^0.17.0","cross-env":"^5.1.4","jsdom":"^11.9.0","mocha":"^5.2.0","raf":"^3.4.0","react":"^16.4.0","react-dom":"^16.4.0","ts-node":"^6.1.0","ts-node-test-register":"^3.0.0","typescript":"^2.9.1"},"peerDependencies":{"react":">=16.3.0"},"publishConfig":{"access":"public"},"resolutions":{"@types/react":"16.3.13","@types/react-dom":"16.0.5"},"licenseText":"Copyright (c) 2018 azu\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@almin/react-context@1.1.0","dist":{"shasum":"0efb3b3ea9af2b751c00b1e6a2c4cad808dba917","tarball":"https://registry.npmjs.org/@almin/react-context/-/react-context-1.1.0.tgz","fileCount":107,"unpackedSize":160674,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbG8k0CRA9TVsSAnZWagAA0mIP/RFHKSuCwfh1x/bfLL4n\nWmmmUFgK4LqcNw2wyXBfkvKVmVUKbe3NMO2tMgBwGZQOGhOOE+OuaQKtEBXM\nRwxcMhvEdAUjeshrtRIF8uYsWgwHB3Z/9dTg8DdDXzt3x2LryD12LVf867xh\nUoLtmAL57a9PRsytNtxeMVNpqqk+LuONWmHktcVqVi3oo6RdVEEUijesQ5ZY\ntviFD2HyxgRc4DGfWMDKM+eM9oEZsiXO0n/cEJ6+CZUy6AUrIvLM1Eo9NwQO\n90tmfyf7zHV6V2IF4hdpzyiBCQ2BHBz8jpgTbjwNbBe9xH0djTzOeK6E4Pme\npQr1JhCR031MccCwzxZN/V0/vcTx/r7MXR4WsqAPMPijP/ngvIiZdOIzjgB5\nZDNANBAfti6cg3tLdrB4rBhXbJpqpa2TBKNRZXwev8Cd5xD3H6gKV3ZE5z+P\nbQrAuP7LeUFcCUzD7Q7bAk+O7LCeqst6cmTCZwvLfz9JL1V6nxPfULkyWjAZ\nIFTQF16GsAh0tov8UzJ0stdsI2d9i2gKiLmdWqK9NNm8/T/zlti58JuLHPiR\nRJqq/AqgJt/eDRgq+dQd7/qXnJdv15sJtDzjKwDKPGZBMi/EXPMA0sdLHNS1\nUAy/tzLJa8lXF88UDKcBihCL/R4KK4VN9i3D8TqKpKD1zHpLWPNbYpNk2qb/\n1bgI\r\n=6uYl\r\n-----END PGP SIGNATURE-----\r\n","integrity":"sha512-DduibIi6L67gBavtt9eCRJ4eqyfImNWI/ELWmQTR2ygqZ5IogrowaUUP8MLzS1lCRJp4Bd80zrRBuPNAHiixdw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFmqhWP22ixOOgZGFbyNFgCkwCuKKJkz4D0lOhCnGOXeAiBgGcb1IPMuu6bfFd26S6lFtGC4FtZ0+acwMV4kk8LyhQ=="}]},"maintainers":[{"name":"azu","email":"azuciao@gmail.com"}],"_npmUser":{"name":"azu","email":"azuciao@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-context_1.1.0_1528547635196_0.17771534174977188"},"_hasShrinkwrap":false},"1.1.1":{"name":"@almin/react-context","version":"1.1.1","description":"React Context wrapper for almin.","keywords":["almin","context","react"],"homepage":"https://github.com/almin/almin/tree/master/packages/@almin/react-context/","bugs":{"url":"https://github.com/almin/almin/issues"},"license":"MIT","author":{"name":"azu"},"files":["bin/","lib/","src/"],"main":"lib/react-context.js","types":"lib/react-context.d.ts","repository":{"type":"git","url":"https://github.com/almin/almin.git"},"scripts":{"build":"cross-env NODE_ENV=production tsc -p .","ci":"npm run test","prepublish":"npm run --if-present build","test":"mocha \"test/**/*.tsx\"","prettier":"prettier --write \"**/*.{js,jsx,ts,tsx,css}\"","watch":"tsc -p . --watch","clean":"rimraf lib/"},"prettier":{"printWidth":120,"singleQuote":false,"tabWidth":4},"devDependencies":{"@almin/store-test-helper":"^1.1.1","@types/mocha":"^5.2.1","@types/node":"^9.0.0","@types/react":"^16.3.17","@types/react-dom":"^16.0.6","almin":"^0.17.1","cross-env":"^5.1.4","jsdom":"^11.9.0","mocha":"^5.2.0","raf":"^3.4.0","react":"^16.4.0","react-dom":"^16.4.0","rimraf":"^2.6.2","ts-node":"^6.1.0","ts-node-test-register":"^3.0.0","typescript":"^2.9.1"},"peerDependencies":{"react":">=16.3.0"},"publishConfig":{"access":"public"},"resolutions":{"@types/react":"16.3.13","@types/react-dom":"16.0.5"},"licenseText":"Copyright (c) 2018 azu\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@almin/react-context@1.1.1","dist":{"shasum":"cfd4e1762e9a65f89e0a6ece6be31dbc4ebe9b98","tarball":"https://registry.npmjs.org/@almin/react-context/-/react-context-1.1.1.tgz","fileCount":15,"unpackedSize":16217,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbG8saCRA9TVsSAnZWagAAbMAP/Ar5wexv//EJeZrG2e4P\nSSROJ4O1tTlQ5wPwRV7nwCuEpO4T4bWdJHLOQ7PDNUJ4ppu7jBf448bTFjy+\nTRo8d8CZAyxAhmgBEdly44QWZWlX3wGncS993C6siQCX6xINhG6H1YyaCWhq\nf8DEaidaOl/LemfYG0uXfSpC3eEe21kPh4faPVV4ahHs/vBLhOpg9ZGUxJwc\nR6UTNrgM090jHSz23l9hr4GbloB1niVZp0IhR/HMOCSV5Sq2/NdObogPgGOX\nOqeaYiuvm0uPF1INcgyWw+puPoCIWosfsBJWKLhsTxrRpGabCXlZ3i+E8f/I\nIUry9h7vl9bHGA/DcNgBfl/c7BwIUdS38362LF3/I//19yXQk5PhREV7t1oR\nrGNQgnb7h1IAj9BRRNtkBVAC9tOjKb0bXjfYite4PC7POp/KUifKqUIbUrB7\nrkiXS8sv2wGXCPoli+pDIgwRgyq0nSFFtGCrsg8cKv0qEtABtdxRJI/ojW6u\nWNAjECK9F1JU8MAguBgdk/l9d6rOVebgCUMPq4LJ63SWlUk1cGC8+G/kPOA1\nX5I166WijEnSw6Bie7fwPJiBkRnoN0yFoD3k0PEFSX2eYfF+cv/9asCTx29K\nhQd2Ca3KUCOVzR51xhGyhGgGlhq6ecJ0TLLofgE6w4SpOv0LPlJKKOC85C6H\no3xT\r\n=93l2\r\n-----END PGP SIGNATURE-----\r\n","integrity":"sha512-sA/iglF7HtyxkGbd0zNoZJDa9HCdWx33vP7oH52SCbIA3p3CiHYW+MJ+pz3Stt+7EV/8fvRKhVc3N5EOQVzjyw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDolC4tUVMb/xnY6hcccW1IvS8yS6hc4wzGFe9k2k5xWAiB3f0XMv+Wv8qHjIRIxZ6g0GTroy8neM708AsJKsFqlzA=="}]},"maintainers":[{"name":"azu","email":"azuciao@gmail.com"}],"_npmUser":{"name":"azu","email":"azuciao@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-context_1.1.1_1528548121758_0.6575086068420359"},"_hasShrinkwrap":false},"1.1.2":{"name":"@almin/react-context","version":"1.1.2","description":"React Context wrapper for almin.","keywords":["almin","context","react"],"homepage":"https://github.com/almin/almin/tree/master/packages/@almin/react-context/","bugs":{"url":"https://github.com/almin/almin/issues"},"license":"MIT","author":{"name":"azu"},"files":["bin/","lib/","src/"],"main":"lib/react-context.js","types":"lib/react-context.d.ts","directories":{"lib":"lib","test":"test"},"repository":{"type":"git","url":"git+https://github.com/almin/almin.git"},"scripts":{"build":"cross-env NODE_ENV=production tsc -p .","ci":"npm run test","prepublish":"npm run --if-present build","test":"mocha \"test/**/*.tsx\"","prettier":"prettier --write \"**/*.{js,jsx,ts,tsx,css}\"","watch":"tsc -p . --watch","clean":"rimraf lib/"},"prettier":{"printWidth":120,"singleQuote":false,"tabWidth":4},"devDependencies":{"@almin/store-test-helper":"^1.1.2","@types/mocha":"^5.2.1","@types/node":"^9.0.0","@types/react":"^16.3.17","@types/react-dom":"^16.0.6","almin":"^0.18.0","cross-env":"^5.1.4","jsdom":"^11.9.0","mocha":"^5.2.0","raf":"^3.4.0","react":"^16.4.0","react-dom":"^16.4.0","rimraf":"^2.6.2","ts-node":"^7.0.1","ts-node-test-register":"^4.0.0","typescript":"^3.0.1"},"peerDependencies":{"react":">=16.3.0"},"publishConfig":{"access":"public"},"resolutions":{"@types/react":"16.3.13","@types/react-dom":"16.0.5"},"gitHead":"5df93f9bbea86f4f59a9243dec22802ad2f0fd70","_resolved":"","_integrity":"","_from":"file:almin-react-context-1.1.2.tgz","_id":"@almin/react-context@1.1.2","_npmVersion":"6.2.0","_nodeVersion":"10.0.0","_npmUser":{"name":"azu","email":"azuciao@gmail.com"},"dist":{"integrity":"sha512-ovvwm8swwzFJ826dPNVl7OmdD3LTCBN0afspsw+9H2K/p3o4wlCtIehgptVgUhMOwxqMaB6zPnNrNHSFOJoqaQ==","shasum":"9cdf94761b33ba988f8b598eaf3102a857fd23ba","tarball":"https://registry.npmjs.org/@almin/react-context/-/react-context-1.1.2.tgz","fileCount":12,"unpackedSize":16633,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbgmACCRA9TVsSAnZWagAAGk4P/io1R1or7mji/KOH+C0Z\nYRFeiLXdKXB39ytNB6pk6va0/KiCeEIBOHiD+JIuyLq5Hi42NgZJmeCEu69F\nzFgloLdya+qzUSwOPIDBp0D9Be3KQvEATlitCSqQDeIgJnqW3HfhNjaW/Sq7\nUMdXHBkGVV9uH7gvU8MCFeXKGfEF/Go6wLZIEGQkxHmWxfqdF15DftZZ7nJb\nwb8RY7B8eaSIbbiMjUI/Moa43XI8sDLFl73eT0pLNvybqw367YFzO+W1h+lw\ndQ/IdgE5ndlAp/c7dPUfXX2vkXWUxR7yLw9HLbhd6+iRorKIbGLu9pXCLWQ3\nBCpJw8IpqSr4bWQ802MM9NBq/BO8O23MLaD4wB09IOPZjuM7qP/oR5X8K+ZE\nzQCuQdXPrWPAn3vGsaZj9q72V4Q3GQf+3/dE7GzLUMrm5sAi7aof4DrkKyCL\nUK7NedmEfHLZhbiBBKgd6E/eHzAro1Xq0AuTWF/7g7NlIao9nuVqVSJZ+Ehg\n1redJ7JBe5s/QVcgij3zq2EPdgk507VZTKOX4gRDynwDaDO5NbweTzMQB4lt\neLHM1EfTQoqoUsvXuXkHYAIsqTTG5fvfb70IVYolwJKeV7+hjtVie/O8nhOx\nHZsoociJgs9RfidLB4j6S9d8YOc5X48n5RO6ppJ5hWL1yUOi+u1pkgHeFJ3I\nD77u\r\n=IrC0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICvmwcVt+7RfnqI+5zDdzR2IbTnxNq++JSkYwyGqP+2rAiAjMH91X777A9wQq2MjOuQNb4qN6S1Td51Mg5MUZHo0Lg=="}]},"maintainers":[{"name":"azu","email":"azuciao@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-context_1.1.2_1535270913819_0.6501564654525362"},"_hasShrinkwrap":false},"1.1.3":{"name":"@almin/react-context","version":"1.1.3","description":"React Context wrapper for almin.","keywords":["almin","context","react"],"homepage":"https://github.com/almin/almin/tree/master/packages/@almin/react-context/","bugs":{"url":"https://github.com/almin/almin/issues"},"license":"MIT","author":{"name":"azu"},"main":"lib/react-context.js","types":"lib/react-context.d.ts","directories":{"lib":"lib","test":"test"},"repository":{"type":"git","url":"git+https://github.com/almin/almin.git"},"scripts":{"build":"cross-env NODE_ENV=production tsc -p .","ci":"npm run test","prepublish":"npm run --if-present build","test":"mocha \"test/**/*.tsx\"","prettier":"prettier --write \"**/*.{js,jsx,ts,tsx,css}\"","watch":"tsc -p . --watch","clean":"rimraf lib/"},"prettier":{"printWidth":120,"singleQuote":false,"tabWidth":4},"devDependencies":{"@almin/store-test-helper":"^1.1.3","@types/mocha":"^5.2.1","@types/node":"^9.0.0","@types/react":"^16.3.17","@types/react-dom":"^16.0.6","almin":"^0.18.1","cross-env":"^5.1.4","jsdom":"^11.9.0","mocha":"^5.2.0","raf":"^3.4.0","react":"^16.4.0","react-dom":"^16.4.0","rimraf":"^2.6.2","ts-node":"^7.0.1","ts-node-test-register":"^4.0.0","typescript":"^3.0.1"},"peerDependencies":{"react":">=16.3.0"},"publishConfig":{"access":"public"},"resolutions":{"@types/react":"16.3.13","@types/react-dom":"16.0.5"},"gitHead":"cc26f5becaef3dac8edc5f3e3ab2449fe0539077","_resolved":"","_integrity":"","_from":"file:almin-react-context-1.1.3.tgz","_id":"@almin/react-context@1.1.3","_npmVersion":"6.4.1","_nodeVersion":"10.0.0","_npmUser":{"name":"azu","email":"azuciao@gmail.com"},"dist":{"integrity":"sha512-cU17ojDadXrALQIwXWCaOfVIQSO3+7Kz6G8EMxyQNMWn5awO4NdaxlfezmycDw0DnYFyldHWxOP1jRvso3wJtw==","shasum":"01c956169aeee65af077e6ec00207376355af58d","tarball":"https://registry.npmjs.org/@almin/react-context/-/react-context-1.1.3.tgz","fileCount":12,"unpackedSize":16841,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbiHqCCRA9TVsSAnZWagAADp4P/jiv7AfgLLsLxMLC9wtI\n7esALeQCYPYfu2qn17A9No8mmoxfhcvTmdcxjmQGqCUYyV4Go8rVtMQfSjzR\nrLsKMtqt5xQdZfqK02dl2uXWnOqR1MxzFPzxAxHhhe0VKp9SBFpGLuBED6xV\nupQt5n0IyxEKVa2CLefkVIZXfcHVijksa5cswXkiWP2nohdVHqQ638Xuw0v+\nv+gMQRkdcdT52WVXexTu3D8rpdZmD0xLLOUZzpkj1tSUGI4Wa+pwSAmolR4u\nxlo/AfJI6+I5UYTSLnpfTyyxlTIDVb/jQbUR/5GBf1qqKH6ooz2t6oI3vc6g\n0j6RaF97fnrr5JhH9wvbSM3p4lK4j3dsrbwOkeHlhk7Thvdqx+L+xrxe5EtV\nplHMRzMICdw6ZUfNnmOZ7LSOJkuSI8bmF79oNij2k8SXDDeo3opNsTm7qVxg\npsyaeIfShysXan7st5NFeKvUhDOIlceBOCmfVcWP/SvABwPK2PlRfhQxE5PU\nmAhSRJRThOjuywcWJR2NTenTwaCqzN5rnQwO78+sOLtZzVnRewKU29go3WG9\n1HnwIgkuePY/MZJyP9N1RVlzMc2K7ehnwLbUN6wu+LrDkEtffBGm+YN2V9O3\nlaQRqJSgaSQ/Ta2rM9/cA0TeKw4prumX7zpWsbCu18Ey7FRrio9c9ZI45mrM\nNqWt\r\n=bmZU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFIhPBagsaeYj6ZAczK7pBJjZj3f9FTuSDLClTAkd5PyAiEAlponsolotpQzYYT6oiO0uzX9o2YDbXgIiLoj3WyU9n4="}]},"maintainers":[{"name":"azu","email":"azuciao@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-context_1.1.3_1535670913714_0.33450607051695624"},"_hasShrinkwrap":false},"1.1.4":{"name":"@almin/react-context","version":"1.1.4","description":"React Context wrapper for almin.","keywords":["almin","context","react"],"homepage":"https://github.com/almin/almin/tree/master/packages/@almin/react-context/","bugs":{"url":"https://github.com/almin/almin/issues"},"license":"MIT","author":{"name":"azu"},"main":"lib/react-context.js","types":"lib/react-context.d.ts","directories":{"lib":"lib","test":"test"},"repository":{"type":"git","url":"git+https://github.com/almin/almin.git"},"scripts":{"build":"cross-env NODE_ENV=production tsc -p .","ci":"npm run test","prepublish":"npm run --if-present build","test":"mocha \"test/**/*.tsx\"","prettier":"prettier --write \"**/*.{js,jsx,ts,tsx,css}\"","watch":"tsc -p . --watch","clean":"rimraf lib/"},"prettier":{"printWidth":120,"singleQuote":false,"tabWidth":4},"devDependencies":{"@almin/store-test-helper":"^1.1.4","@types/mocha":"^7.0.2","@types/node":"^14.0.22","@types/react":"^16.9.43","@types/react-dom":"^16.9.8","almin":"^0.19.0","cross-env":"^7.0.2","jsdom":"^15.2.1","mocha":"^8.0.1","raf":"^3.4.1","react":"^16.13.1","react-dom":"^16.13.1","rimraf":"^3.0.2","ts-node":"^8.10.2","ts-node-test-register":"^8.0.1","typescript":"^3.9.6"},"peerDependencies":{"react":">=16.13.1"},"publishConfig":{"access":"public"},"resolutions":{"@types/react":"^16.9.34","@types/react-dom":"^16.9.6"},"gitHead":"4a68daa246948b47f428ee186b37ad9e31b67aeb","_id":"@almin/react-context@1.1.4","_nodeVersion":"14.5.0","_npmVersion":"lerna/3.22.1/node@v14.5.0+x64 (darwin)","_npmUser":{"name":"azu","email":"azuciao@gmail.com"},"dist":{"integrity":"sha512-PvStPwHRmgssQmS/AXsTi/7Anqc2Nljxcr4+Iik6R2GNUjOscZXEMq+lD6R7+MYj3VybcCTC7tYHEqavMwvJMA==","shasum":"71bf467bf9f7628136f48fe07a97740562fb6cae","tarball":"https://registry.npmjs.org/@almin/react-context/-/react-context-1.1.4.tgz","fileCount":22,"unpackedSize":35721,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfCsnZCRA9TVsSAnZWagAAoCcP/1/ErtxoCrD1Jyft7luS\ndy/v5BDOsz/W+C4pX+49w/CDrZzabB0fhJLVtpfVq6bgcoh6JziQE6wjceZ0\nK9OdNsdnWrk83L6GQ7wFIMYJzmDKYSb188sUPOv5ikhT06lh8pLjWgT8fvni\nDrrHDZAzseYTZbQl2/cMIJcSqDXhdLeePyTTEDvfrTVy6jWWt+QG4QdQb0eI\nrr4ny16uPgmJ9GOUEwlBsBGFo407gc1K7BuENmlRYl7NXTOXDJNB2eDppMzL\nkutB4ncSulPzMTMsHJNAOFKnwv1MRbVd3ksnVufJLm6aCnYA777hDR/dLgby\n459ATR3RVZb7AoNtm5h/h+pORrUe+LApPYW9Hw1MBon1W0Imw+agb+iAO5pg\nhCZvDd3Ueb2yHT0Lf1nsi4NkODc+YnebDdNGs4/shzeBiHQUcUyNpFJex9ia\nwZiE6Fw8gwmc4B8pbh3gEa30YsBq2A2SR3+u4YEpWwtv54qD/QZcw5wqsnq0\n6VAGq03HOjgpyjiVZn4f3nbBU8E6bm+g2ULS08tLtTAL88OF4xCQQCTRn4ad\npzExHnBiN1ByTq8sxJ7R9BtQthIMByuTsroWdE3V6yf4Tbo9CAFUUPt1z188\nG+Oxx2zsIF2oagaP7HdZT+bd1Kt5DvRu6zWlk5K8dujdVRgNt/7J5YgPqCY6\nhIyO\r\n=71Kd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICPYkBaKHB3o0Pxhp0Ji5OaEYuPK5dFRoyiOZchv+H77AiEA0oMKkVwx2hlzZXLv5xZifEY+URJ7jbzexxVJfzAB05M="}]},"maintainers":[{"name":"azu","email":"azuciao@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-context_1.1.4_1594542553380_0.027719955443685107"},"_hasShrinkwrap":false}},"time":{"created":"2018-06-09T12:33:54.987Z","1.1.0":"2018-06-09T12:33:55.289Z","modified":"2022-06-12T14:33:59.625Z","1.1.1":"2018-06-09T12:42:01.906Z","1.1.2":"2018-08-26T08:08:33.924Z","1.1.3":"2018-08-30T23:15:13.862Z","1.1.4":"2020-07-12T08:29:13.491Z"},"maintainers":[{"name":"azu","email":"azuciao@gmail.com"}],"description":"React Context wrapper for almin.","homepage":"https://github.com/almin/almin/tree/master/packages/@almin/react-context/","keywords":["almin","context","react"],"repository":{"type":"git","url":"git+https://github.com/almin/almin.git"},"author":{"name":"azu"},"bugs":{"url":"https://github.com/almin/almin/issues"},"license":"MIT","readme":"# @almin/react-context\n\nReact Context wrapper for almin.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n    npm install @almin/react-context\n\nRequirements:\n\n- React 16.3 >=\n\n## Example\n\nThis is a example of `@almin/react-context`.\n\n:memo: Note: [@almin/store-test-helper](../@almin/store-test-helper) is a test helper for creating almin's `Store`.\n\n```ts\nimport { Context, StoreGroup } from \"almin\";\nimport { createStore } from \"@almin/store-test-helper\";\nimport { createReactContext } from \"@almin/react-context\";\n// Create Almin context\nconst context = new Context({\n    // StoreGroup has {a, b, c} state\n    store: new StoreGroup({\n        // createStore is a test helper that create Store instance of Almin\n        // initial state of `a` is { value: \"a\" }\n        a: createStore({ value: \"a\" }),\n        b: createStore({ value: \"b\" }),\n        c: createStore({ value: \"c\" }),\n    })\n});\n// Create React Context that wrap Almin Context\nconst { Consumer, Provider } = createReactContext(context);\n// Use Provider\nclass App extends React.Component {\n    render() {\n        return (\n            // You should wrap Consumer with Provider\n            <Provider>\n                {/* Consumer children props is called when Almin's context is changed */}\n                <Consumer>\n                    {state => {\n                        return <ul>\n                            <li>{state.a.value}</li>;\n                            <li>{state.b.value}</li>;\n                            <li>{state.c.value}</li>;\n                        </ul>\n                    }}\n                </Consumer>\n            </Provider>\n        );\n    }\n}\n```\n\n## Usage\n\n## `createReactContext(AlminContext): { Provider, Consumer }`\n\n`createReactContext` create thee React Components from Almin's `Context` instance.\n\n```ts\nimport { Context, StoreGroup } from \"almin\";\nimport { createStore } from \"@almin/store-test-helper\";\nimport { createReactContext } from \"@almin/react-context\";\n// Create Almin context\nconst context = new Context({\n    store: createStore({\n        value: \"store-initial\"\n    })\n});\n// Create React Context from Almin Context\n// It return these React Components\nconst { Provider, Consumer } = createReactContext(context);\n```\n\n### `<Provider>`\n\n`<Provider>` component allows `<Consumers>` to subscribe to Almin's context changes.\nIt is a just wrapper of React Context's Provider.\n\n- [React Context: Provider](https://reactjs.org/docs/context.html#provider)\n\n```ts\nclass App extends React.Component {\n    render() {\n        return (\n            // You should wrap Consumer with Provider\n            <Provider>\n                {/* Consumer should be under the Provider */}\n                <Consumer>\n                    {state => { /* state is result of context.getState() */ }}\n                </Consumer>\n                <Consumer>\n                    {state => { /* state is result of context.getState() */ }}\n                </Consumer>\n            </Provider>\n        );\n    }\n}\n```\n\nAlso, you can pass `initialState` to `Provider`.\nIf you does not pass `initialState`, `Consumer`'s state is `context.getState()` value by default.\n\n```tsx\nimport { Context, StoreGroup } from \"almin\";\nimport { createStore } from \"@almin/store-test-helper\";\nimport { createReactContext } from \"@almin/react-context\";\nconst context = new Context({\n    store: createStore({\n        value: \"store-initial\"\n    })\n});\nconst { Consumer, Provider } = createReactContext(context);\n\nclass App extends React.Component {\n    render() {\n        return (\n            <Provider initialState={{ value: \"props-initial\" }}>\n                <Consumer>\n                    {state => {\n                        // value is \"props-initial\"(not \"store-initial\")\n                        return <p>{state.value}</p>;\n                    }}\n                </Consumer>\n            </Provider>\n        );\n    }\n}\n```\n\n### Consumer\n\n`<Consumer>` component subscribes to Almin's context changes.\nIt is a just wrapper of React Context's Consumer.\n\n- [React Context: Consumer](https://reactjs.org/docs/context.html#consumer)\n\n`<Consumer>` requires a [function as a child](https://reactjs.org/docs/render-props.html#using-props-other-than-render). The function receives the current context value and returns a React node.\n\n```tsx\nclass App extends React.Component {\n    render() {\n        return (\n            // You should wrap Consumer with Provider\n            <Provider>\n                {/* Consumer require a function as a children */}\n                <Consumer>\n                    {state => {\n                        /* render something based on the context value */\n                        return <p>{state.value}</p>;\n                    }}\n                </Consumer>\n            </Provider>\n        );\n    }\n}\n```\n\n## Changelog\n\nSee [Releases page](https://github.com/almin/almin/releases).\n\n## Running tests\n\nInstall devDependencies and Run `npm test`:\n\n    npm i -d && npm test\n\n## Contributing\n\nPull requests and stars are always welcome.\n\nFor bugs and feature requests, [please create an issue](https://github.com/almin/almin/issues).\n\n1. Fork it!\n2. Create your feature branch: `git checkout -b my-new-feature`\n3. Commit your changes: `git commit -am 'Add some feature'`\n4. Push to the branch: `git push origin my-new-feature`\n5. Submit a pull request :D\n\n## Author\n\n- [github/azu](https://github.com/azu)\n- [twitter/azu_re](https://twitter.com/azu_re)\n\n## License\n\nMIT © azu\n","readmeFilename":"README.md"}