{"_id":"3box-comments-react","_rev":"58-35888db8cfc53e2474bf2b3cec6089f4","name":"3box-comments-react","dist-tags":{"beta":"1.0.3-beta.8","latest":"3.0.5"},"versions":{"0.0.1-beta.1":{"name":"3box-comments-react","version":"0.0.1-beta.1","keywords":["comments","3Box","decentralized","ethereum"],"author":{"name":"3box.io"},"license":"MIT","_id":"3box-comments-react@0.0.1-beta.1","maintainers":[{"name":"oznekenzo","email":"mkn293@nyu.edu"}],"contributors":[{"name":"Kenzo Nakamura","email":"kenzo@nyu.edu"}],"dist":{"shasum":"f78d5774fc62598fdfd276b49588cb0f0fd730f2","tarball":"https://registry.npmjs.org/3box-comments-react/-/3box-comments-react-0.0.1-beta.1.tgz","fileCount":11,"integrity":"sha512-H45JlkTK4kUne469M6QhXTU04HVzQtcSwusRAQFP0MT3FtKXYknXxTgFNBhyCgUzELCARJ2CcDT/maJfOSLZNg==","signatures":[{"sig":"MEUCIQCrAHAXjHf3lGQZ85T5LJUt2j79rFsjJYVMNmp/OWGlBAIgJCfBow6rAb1P0oC4OlgvJUlnlN/+mbkZFNprD+CZsLM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3001497,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdgVMcCRA9TVsSAnZWagAAsR4QAKBquXMABj7oXBLppCH/\nwreDH0zcnnykbJ/tXBDdofN7PsJ+HqOBfwsPJJrXx+EebvzWzxgszBd31gGm\nZ/OIq3dWYCH9UkglpVBvBuCNP7KAgB4KuRf3V5r8SesedyyIlozPB+WPu5UU\nW0K+hH2gj+uLIhQvsgsmH/43sKYkRrxUZRFlzhOne0U3NXARnJqoMmYZiV0n\n5p5CwkjXv75VYeVJyk9Peb392NsmES7NZKMVMtUbm34gmjxVH9gGqG2XCrrE\nUB8WbPmguEw5g2qT/le97Xb2SReYIzSsWMAB3nRFKYJ+1aB0YgZ7j469apE3\nipDOrUFkT8cTAt/pNtT84uXTbD+RYhixh83LLCpIowfDldG2RE2urQAonRBa\nf6ijwp5legfmh/cgYrBcPAiHI1wgh4DUPZQ+vxW3K6pNx248dwCeXUb4FUSr\nQLBHdTNynvJSUEqtPovnNWsM0/LHxjl7R7fXM1joTMWuuizsaR5IgEnldyyL\n49sCNtOzPkYDNRTC7IL0nh7Ng4O9iiRd7DRX5wPqzc6x/mha7gc3oVQgwOaw\nMo4AEeE3dwAAf56kX9oZj1+E5+11WJskhGAVo1y1zYpni5fSoldJlmFV3ZM8\n3L53ptAHBWslTiw6LPc3EGzLEL1QlXbupRqJZoISN7cJqTJg4t9x8HqMfYOc\n6cit\r\n=0LCv\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/index.js","gitHead":"0a580b3e11ae27f3ac549c3bb46f31f8b0654fb7","scripts":{"lint":"eslint ./src","test":"npm run lint && npm run coverage","build":"webpack --config webpack.config.babel.js","clean":"rm -rf dist coverage","start":"webpack-dev-server --config examples/webpack.config.live.babel.js","coverage":"jest --coverage","prepublish":"npm run clean && npm run test && npm run build","build-examples":"webpack --config examples/webpack.config.babel.js --progress"},"_npmUser":{"name":"oznekenzo","email":"mkn293@nyu.edu"},"_npmVersion":"6.4.1","description":"Comments component for decentralized applications by 3Box","directories":{},"resolutions":{"babel-core":"7.0.0-bridge.0"},"_nodeVersion":"8.12.0","dependencies":{"3box":"^1.10.10","babel-core":"^7.0.0-bridge.0","3id-resolver":"0.0.6","profile-hover":"^1.1.0","react-linkify":"^1.0.0-alpha","@babel/runtime":"^7.6.0","svg-inline-loader":"^0.8.0","ethereum-blockies-base64":"^1.0.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","react":"^16.6.0","enzyme":"^3.3.0","eslint":"^5.8.0","webpack":"^4.9.1","jest-cli":"^23.6.0","node-sass":"^4.7.2","react-dom":"^16.6.0","babel-jest":"^23.6.0","css-loader":"^1.0.1","prop-types":"^15.6.0","@babel/core":"^7.1.2","sass-loader":"^7.0.1","webpack-cli":"^3.1.2","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","did-resolver":"0.0.7","style-loader":"^0.23.1","@babel/register":"^7.0.0","react-inlinesvg":"^1.1.6","react-hot-loader":"next","@babel/preset-env":"^7.1.0","webpack-dev-server":"^3.1.4","@babel/preset-react":"^7.0.0","eslint-plugin-react":"^7.4.0","react-test-renderer":"^16.0.0","regenerator-runtime":"^0.12.1","clean-webpack-plugin":"^0.1.16","enzyme-adapter-react-16":"^1.1.1","react-addons-test-utils":"^15.5.1","@babel/plugin-proposal-class-properties":"^7.5.5"},"peerDependencies":{"react":">= 16.3.0","react-dom":">= 16.3.0"},"_npmOperationalInternal":{"tmp":"tmp/3box-comments-react_0.0.1-beta.1_1568756507998_0.11888163363889115","host":"s3://npm-registry-packages"}},"0.0.1-beta.2":{"name":"3box-comments-react","version":"0.0.1-beta.2","keywords":["comments","3Box","decentralized","ethereum"],"author":{"name":"3box.io"},"license":"MIT","_id":"3box-comments-react@0.0.1-beta.2","maintainers":[{"name":"oznekenzo","email":"mkn293@nyu.edu"}],"contributors":[{"name":"Kenzo Nakamura","email":"kenzo@nyu.edu"}],"dist":{"shasum":"cb14767b95a67fd20154e87e71e5b46b48ab18f4","tarball":"https://registry.npmjs.org/3box-comments-react/-/3box-comments-react-0.0.1-beta.2.tgz","fileCount":11,"integrity":"sha512-oYI0vBCiNZdUmYpPIA7p7LDYtk+slqsu0C8lo8Djoh+PfXJ7KPZ1M5t1OGIceYWCI90kymLHSoDvcW7ANO/6Lw==","signatures":[{"sig":"MEUCIC+uvMr9h112OLbIPoqGY8HqM4EPIcdO82cPt583sLZtAiEA6Z0siPAyKyggYxQ9M0QFgceS5O4p8qN1QGQaet+i0AY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3008666,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdgqHOCRA9TVsSAnZWagAA9rQQAJYWGDDtPuyT176RtInT\naWjxMxRvwBSPRRQomd92m0soCdFDfGwFeaYX6AhehTg90+dciLgfne6fMvJa\n/a2x2ZQcU85IUPruOQUcx8z1M2QRAYEjWWzp9lIDchFRHKn+6x8QbRYOpbi3\nPs6YOS3o7XCFSLKrlCyeejJUnSD/2GkEJeDen05zcCr2DJhPK1LIrT8r8sCV\nbHPiTtwosLqfWtKML/fsrnMc5dLCEdYYtAT2DfENcG9I+tcR7BN4mEtYUxdM\n6AMt98y8k8/GUM2rwN+ij5CXM2ISqefqdYHGwenaxzo6JciNzC+03oxFBMQ1\nUfKw7FBergoyOYfK3M/qf3qV8SwSxuUUf8itYReU5mQXLr/FQKLCqM4CIKWu\n4o4l5BYeNLFXNcsA4ypyYOhxzqS0Of6WteoQdVYiWakJfcIxQj+9PX9LGOc2\nGU5vqklD6u32oDxf31wC6Pj8Ae1QYprV2j+hHsl4rKhL2kolAcPg5spnpqjb\ncJCHrQ0LoHwnqEl4JWMffi52/GZxKAbHNYWdcs+XhS/8+hd6myIesJS2kyN0\nSS8cMhiKnUP5QSMw0YHDlJACTtTgurcNCvtUSjoqTz6zJ3MX95+v7Mx/7NSi\nSegIdnbAR7hfYJqqMkHlZrS6PIoFUenVq/lzJdjT62u8E1sL6e6VmNMs762m\nVQ47\r\n=DukQ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/index.js","gitHead":"9de8e3e9ebce9f160504471e0f5d3ff23a9db253","scripts":{"lint":"eslint ./src","test":"npm run lint && npm run coverage","build":"webpack --config webpack.config.babel.js","clean":"rm -rf dist coverage","start":"webpack-dev-server --config examples/webpack.config.live.babel.js","coverage":"jest --coverage","prepublish":"npm run clean && npm run test && npm run build","build-examples":"webpack --config examples/webpack.config.babel.js --progress"},"_npmUser":{"name":"oznekenzo","email":"mkn293@nyu.edu"},"_npmVersion":"6.4.1","description":"Comments component for decentralized applications by 3Box","directories":{},"resolutions":{"babel-core":"7.0.0-bridge.0"},"_nodeVersion":"8.12.0","dependencies":{"3box":"^1.10.10","babel-core":"^7.0.0-bridge.0","3id-resolver":"0.0.6","profile-hover":"^1.1.0","react-linkify":"^1.0.0-alpha","@babel/runtime":"^7.6.0","svg-inline-loader":"^0.8.0","ethereum-blockies-base64":"^1.0.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","react":"^16.6.0","enzyme":"^3.3.0","eslint":"^5.8.0","webpack":"^4.9.1","jest-cli":"^23.6.0","node-sass":"^4.7.2","react-dom":"^16.6.0","babel-jest":"^23.6.0","css-loader":"^1.0.1","prop-types":"^15.6.0","@babel/core":"^7.1.2","sass-loader":"^7.0.1","webpack-cli":"^3.1.2","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","did-resolver":"0.0.7","style-loader":"^0.23.1","@babel/register":"^7.0.0","react-inlinesvg":"^1.1.6","react-hot-loader":"next","@babel/preset-env":"^7.1.0","webpack-dev-server":"^3.1.4","@babel/preset-react":"^7.0.0","eslint-plugin-react":"^7.4.0","react-test-renderer":"^16.0.0","regenerator-runtime":"^0.12.1","clean-webpack-plugin":"^0.1.16","enzyme-adapter-react-16":"^1.1.1","react-addons-test-utils":"^15.5.1","@babel/plugin-proposal-class-properties":"^7.5.5"},"peerDependencies":{"react":">= 16.3.0","react-dom":">= 16.3.0"},"_npmOperationalInternal":{"tmp":"tmp/3box-comments-react_0.0.1-beta.2_1568842189335_0.24802458419695417","host":"s3://npm-registry-packages"}},"0.0.1-beta.3":{"name":"3box-comments-react","version":"0.0.1-beta.3","keywords":["comments","3Box","decentralized","ethereum"],"author":{"name":"3box.io"},"license":"MIT","_id":"3box-comments-react@0.0.1-beta.3","maintainers":[{"name":"oznekenzo","email":"mkn293@nyu.edu"}],"contributors":[{"name":"Kenzo Nakamura","email":"kenzo@nyu.edu"}],"dist":{"shasum":"84291e16b569086e3fb3bffd43a4b9b2bb1d632b","tarball":"https://registry.npmjs.org/3box-comments-react/-/3box-comments-react-0.0.1-beta.3.tgz","fileCount":11,"integrity":"sha512-ylBzlNUJu6AP4o3LVnszNI2uQM98Vw9b7PD8hARF2S8NgUq06ugGRmn4wCozeyX+3aNqJgaeLMNSnENR3yfyJQ==","signatures":[{"sig":"MEUCIQCNAghfcBZ/BpFeR9l/qQwspqbrpPDwYXbGw+6RMFMaJQIgBojE7frQRY+H5JhrIWhMaOQjaCXuN3VKRcS60HdiXK0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3008630,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdgqhvCRA9TVsSAnZWagAAyQ8P+gKT04GHib7RU0C0FLN5\nhUHdiEtjCqixWauoL5R9RkLZXsZ4bnauxpnOHbIQamRJZB1+Kf+Diiqifz2J\nYNXvzsF4HjECSP1no+Un7PBta9S1b4Ay7DuX0wDGFTiS+biRVBnn9yDVo9kQ\n/Zs7CiUZzDrrX1Lr37fjNlRP5v04lkpP+yw0SMnduRPz6Fv9feqFOMSdZamh\nq6RPG6gdzL9on3L2erRf0ilnbWVZp5vbOj31xR2S/qILtMd+oTcjqFCZ1OSv\nL+/h1eaRliKcCzD1AELPEQgky1rSEYSvZjLETPtC1KpGqQKT9PEPJdFCIzcM\nIby9gOXEt0X5E14A2cJJBdZQxki8bxx596nNPDTMs8RbWL6YTr2VnqqFqSAs\nOTtjrSV59e79ECyVInFYVvAKWY7l/I9C/HvAMZVWyYJfLo1gxmnHHrnV47+/\n920MqgJx67v8DcJFOYnVt0a/PwocC2+R5ELbS1npHNXzyWYMrCdJsI8e3AmJ\n5TiZ++SusJ/g4LAsoB1VzvzckW0luhpLg+ccwd+bYn6RBPdM/+0iHD/e6Q+3\n/MA0aohG4rJKlS5Gc2ol9RUahHjyVi4wL3z9RfAVSqHB46GXb/O1diDOugmt\nQ7jEwNgNLHodbj4S72GnVlXAb6+y4mPfn17bwzo93jI8a6g5nXRdws0og0kK\nHfxw\r\n=+/wI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/index.js","gitHead":"39fdea8d357c87590ff00e71fb184225697625f7","scripts":{"lint":"eslint ./src","test":"npm run lint && npm run coverage","build":"webpack --config webpack.config.babel.js","clean":"rm -rf dist coverage","start":"webpack-dev-server --config examples/webpack.config.live.babel.js","coverage":"jest --coverage","prepublish":"npm run clean && npm run test && npm run build","build-examples":"webpack --config examples/webpack.config.babel.js --progress"},"_npmUser":{"name":"oznekenzo","email":"mkn293@nyu.edu"},"_npmVersion":"6.4.1","description":"Comments component for decentralized applications by 3Box","directories":{},"resolutions":{"babel-core":"7.0.0-bridge.0"},"_nodeVersion":"8.12.0","dependencies":{"3box":"^1.10.10","babel-core":"^7.0.0-bridge.0","3id-resolver":"0.0.6","profile-hover":"^1.1.0","react-linkify":"^1.0.0-alpha","@babel/runtime":"^7.6.0","svg-inline-loader":"^0.8.0","ethereum-blockies-base64":"^1.0.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","react":"^16.6.0","enzyme":"^3.3.0","eslint":"^5.8.0","webpack":"^4.9.1","jest-cli":"^23.6.0","node-sass":"^4.7.2","react-dom":"^16.6.0","babel-jest":"^23.6.0","css-loader":"^1.0.1","prop-types":"^15.6.0","@babel/core":"^7.1.2","sass-loader":"^7.0.1","webpack-cli":"^3.1.2","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","did-resolver":"0.0.7","style-loader":"^0.23.1","@babel/register":"^7.0.0","react-inlinesvg":"^1.1.6","react-hot-loader":"next","@babel/preset-env":"^7.1.0","webpack-dev-server":"^3.1.4","@babel/preset-react":"^7.0.0","eslint-plugin-react":"^7.4.0","react-test-renderer":"^16.0.0","regenerator-runtime":"^0.12.1","clean-webpack-plugin":"^0.1.16","enzyme-adapter-react-16":"^1.1.1","react-addons-test-utils":"^15.5.1","@babel/plugin-proposal-class-properties":"^7.5.5"},"peerDependencies":{"react":">= 16.3.0","react-dom":">= 16.3.0"},"_npmOperationalInternal":{"tmp":"tmp/3box-comments-react_0.0.1-beta.3_1568843886848_0.6523029475426203","host":"s3://npm-registry-packages"}},"0.0.1-beta.4":{"name":"3box-comments-react","version":"0.0.1-beta.4","keywords":["comments","3Box","decentralized","ethereum"],"author":{"name":"3box.io"},"license":"MIT","_id":"3box-comments-react@0.0.1-beta.4","maintainers":[{"name":"oznekenzo","email":"mkn293@nyu.edu"}],"contributors":[{"name":"Kenzo Nakamura","email":"kenzo@nyu.edu"}],"dist":{"shasum":"7d9e7406b6af1acfb308fcf345ef323ea6959516","tarball":"https://registry.npmjs.org/3box-comments-react/-/3box-comments-react-0.0.1-beta.4.tgz","fileCount":11,"integrity":"sha512-fq+KNHCT2TBN0x2jWvaZaLUnceRLpolXbBiaphI1fHiWgcg4/6YMK+KlMoJwYFXmbjl+GI1F77O0SCZFSiCD+A==","signatures":[{"sig":"MEUCIQDph8XXL14VcMaCKbm6pED/GqxA47acLvutDX8srpHV8wIgJrvbJcRdTpw0oaVbMVJFCG/pAP24ZaP+1V9UDzyDz5s=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3011190,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdiSj5CRA9TVsSAnZWagAAHL8P/3gZ3YtBafMctBqWjgwX\nPDSqqwsuIGbI+qO+QnmKTuBJiGEsaGNf2GTaENP0FB+PVmMhNnK7ArsT6vhX\nGBqTdXSkL7MsLM0SZLb197ysVPc1FIaz1nUm3XJcFYIlMAsXTMJyLqP1cU8x\nVT9Qv7EdUFPhyybmv6JNo/3GhhLMV6kbXOEAcXblS8qTY/dP/Y8w+JrpGIG8\n9MM6Png2nxnH0zCerlsx49Lz15sjUejpJ/ffxrJaeG4q3GDKRzWCwvIgR3ME\nk7r7BPzdZJ2ZJOtBz+WzpFkOW/yA0sPvyyY6BqERla+KkVP6wNIDxWW1huqR\nAepmVaJykVt/9TLUxLfBDuJGsydmu5hcHkP0mz7dH9SlQZppipp8p6ZF+Or1\nD1wQ6jc3tYbrneVXxHSj+bmEwxAeZm2kQl5RniCLcSt4nZUJ+THiRk/La26I\nD6yFNzt7rTwaM6qkoKY1MTNZx8sJG6s4xEZV3aI7C/OrOLxPLyQSgZHh5ozW\nO17+2X0iVL/OKyo7tduqXp1W44Ds8n6jFGhOKpJUHNP7RBzviVf2zJt84/v6\nuKpud9PjbL103RnJapMXoFzdR72Ng2ehtGkAm5838gRmkvcPcBv3q80u5pH2\ndc7clT+Qx9SZesw/1M5G9Kymm/C+ThaDmz9eohpHAeaO5mWN/04Fznkz8dZD\nyQPi\r\n=shyk\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/index.js","gitHead":"be620e69bf869ecbeeb04aa4807556a97b71d276","scripts":{"lint":"eslint ./src","test":"npm run lint && npm run coverage","build":"webpack --config webpack.config.babel.js","clean":"rm -rf dist coverage","start":"webpack-dev-server --config examples/webpack.config.live.babel.js","coverage":"jest --coverage","prepublish":"npm run clean && npm run test && npm run build","build-examples":"webpack --config examples/webpack.config.babel.js --progress"},"_npmUser":{"name":"oznekenzo","email":"mkn293@nyu.edu"},"_npmVersion":"6.4.1","description":"Comments component for decentralized applications by 3Box","directories":{},"resolutions":{"babel-core":"7.0.0-bridge.0"},"_nodeVersion":"8.12.0","dependencies":{"3box":"^1.10.10","babel-core":"^7.0.0-bridge.0","3id-resolver":"0.0.6","profile-hover":"^1.1.0","react-linkify":"^1.0.0-alpha","@babel/runtime":"^7.6.0","svg-inline-loader":"^0.8.0","ethereum-blockies-base64":"^1.0.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","react":"^16.6.0","enzyme":"^3.3.0","eslint":"^5.8.0","webpack":"^4.9.1","jest-cli":"^23.6.0","node-sass":"^4.7.2","react-dom":"^16.6.0","babel-jest":"^23.6.0","css-loader":"^1.0.1","prop-types":"^15.6.0","@babel/core":"^7.1.2","sass-loader":"^7.0.1","webpack-cli":"^3.1.2","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","did-resolver":"0.0.7","style-loader":"^0.23.1","@babel/register":"^7.0.0","react-inlinesvg":"^1.1.6","react-hot-loader":"next","@babel/preset-env":"^7.1.0","webpack-dev-server":"^3.1.4","@babel/preset-react":"^7.0.0","eslint-plugin-react":"^7.4.0","react-test-renderer":"^16.0.0","regenerator-runtime":"^0.12.1","clean-webpack-plugin":"^0.1.16","enzyme-adapter-react-16":"^1.1.1","react-addons-test-utils":"^15.5.1","@babel/plugin-proposal-class-properties":"^7.5.5"},"peerDependencies":{"react":">= 16.3.0","react-dom":">= 16.3.0"},"_npmOperationalInternal":{"tmp":"tmp/3box-comments-react_0.0.1-beta.4_1569270009191_0.6825466456467018","host":"s3://npm-registry-packages"}},"0.0.1-beta.5":{"name":"3box-comments-react","version":"0.0.1-beta.5","keywords":["comments","3Box","decentralized","ethereum"],"author":{"name":"3box.io"},"license":"MIT","_id":"3box-comments-react@0.0.1-beta.5","maintainers":[{"name":"oznekenzo","email":"mkn293@nyu.edu"}],"contributors":[{"name":"Kenzo Nakamura","email":"kenzo@nyu.edu"}],"dist":{"shasum":"b9b58809151f0d066353d544d41907c2c17fb8b8","tarball":"https://registry.npmjs.org/3box-comments-react/-/3box-comments-react-0.0.1-beta.5.tgz","fileCount":11,"integrity":"sha512-codTixMlqA1L8fAIpVJ5TURmITqQHWrgnZXlnnqrHe3Z0wkXF4FwLmv1ytD9idWA1pAPDOTSUxdpaadL0EQv4A==","signatures":[{"sig":"MEYCIQCj7kXz9ZBSNczG8lcYuXP2NkxG8DIF4fOBzjf8LYQxtAIhAKnJgb6bfD4scEmtF20iELt/wsL7TJfpQslV4VExBijC","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3011577,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdiS9fCRA9TVsSAnZWagAApT0P/3ljyCLuoynq/qpNaGmA\nrJ0IkXXktQmXGR0i8NuSEsHMOqAWH0FkwGNRp0yHZdWZ5UZT/Wzd4tDo2Nco\n6pARCqa8itUHSWRWZQvqCvHnWFshyyyZajVyI36jcHqbl/VXMcnMFna4qKR+\n04hKf4Wi6DRK/EMU414tkURkFXJJhUEXq4N9mlSBAmZYinF54FC9tg386MR2\nuDdhwF62PlDpOS/cB7Sgxnax0YdMuFKgpTQv8vBV00dnjFjX+qaRTr9HgGwi\ne/PfO6P0wBRLiHsqpECk2VnXTJ/iS9drMnSwAJtHTVgNJLFEjWa9oLCxQuFn\n/61Adn/VUyplb5+LXhygm9MDzFBU16CtCIeGd4+I29NEzy75WUGZwLMviY0G\nMMMY2HKuHFWtsO/w8H4Wr9OYmPz7Ar9JTru5C3jrrbXMm9ibrqqcWiBJXgtK\nDY6CrTUNE77hMOUTnevQky934ILpeeoZ4e7mSLoAIM5oC9lw20LV2gmfZRhN\nv0vx+eoHz2rc8geu/ooHXOVqNcPRC5uwV5HEMO6zGXP3OBqc+Jg7a1g5HbjQ\nCaNPNURMyy26mkc9aFyEWvzYy5UvwbbnAZuOllft5pdMKiCflCHriPcN7fQO\nRVZ6d3kiOQu7DYHPRjvD0j7XKvnizoZ7bUHbYQSVx63+LR+x0coQOow7lOLI\nE/If\r\n=MnKJ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/index.js","gitHead":"be620e69bf869ecbeeb04aa4807556a97b71d276","scripts":{"lint":"eslint ./src","test":"npm run lint && npm run coverage","build":"webpack --config webpack.config.babel.js","clean":"rm -rf dist coverage","start":"webpack-dev-server --config examples/webpack.config.live.babel.js","coverage":"jest --coverage","prepublish":"npm run clean && npm run test && npm run build","build-examples":"webpack --config examples/webpack.config.babel.js --progress"},"_npmUser":{"name":"oznekenzo","email":"mkn293@nyu.edu"},"_npmVersion":"6.4.1","description":"Comments component for decentralized applications by 3Box","directories":{},"resolutions":{"babel-core":"7.0.0-bridge.0"},"_nodeVersion":"8.12.0","dependencies":{"3box":"^1.10.10","babel-core":"^7.0.0-bridge.0","3id-resolver":"0.0.6","profile-hover":"^1.1.0","react-linkify":"^1.0.0-alpha","@babel/runtime":"^7.6.0","svg-inline-loader":"^0.8.0","ethereum-blockies-base64":"^1.0.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","react":"^16.6.0","enzyme":"^3.3.0","eslint":"^5.8.0","webpack":"^4.9.1","jest-cli":"^23.6.0","node-sass":"^4.7.2","react-dom":"^16.6.0","babel-jest":"^23.6.0","css-loader":"^1.0.1","prop-types":"^15.6.0","@babel/core":"^7.1.2","sass-loader":"^7.0.1","webpack-cli":"^3.1.2","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","did-resolver":"0.0.7","style-loader":"^0.23.1","@babel/register":"^7.0.0","react-inlinesvg":"^1.1.6","react-hot-loader":"next","@babel/preset-env":"^7.1.0","webpack-dev-server":"^3.1.4","@babel/preset-react":"^7.0.0","eslint-plugin-react":"^7.4.0","react-test-renderer":"^16.0.0","regenerator-runtime":"^0.12.1","clean-webpack-plugin":"^0.1.16","enzyme-adapter-react-16":"^1.1.1","react-addons-test-utils":"^15.5.1","@babel/plugin-proposal-class-properties":"^7.5.5"},"peerDependencies":{"react":">= 16.3.0","react-dom":">= 16.3.0"},"_npmOperationalInternal":{"tmp":"tmp/3box-comments-react_0.0.1-beta.5_1569271647185_0.8656018336725644","host":"s3://npm-registry-packages"}},"0.0.1-beta.6":{"name":"3box-comments-react","version":"0.0.1-beta.6","keywords":["comments","3Box","decentralized","ethereum"],"author":{"name":"3box.io"},"license":"MIT","_id":"3box-comments-react@0.0.1-beta.6","maintainers":[{"name":"oznekenzo","email":"mkn293@nyu.edu"}],"contributors":[{"name":"Kenzo Nakamura","email":"kenzo@nyu.edu"}],"dist":{"shasum":"7d0b8243ad276db3c31accb23fc1b4e63f651296","tarball":"https://registry.npmjs.org/3box-comments-react/-/3box-comments-react-0.0.1-beta.6.tgz","fileCount":11,"integrity":"sha512-CDH05Yq8AuU2JPgWxGnNxsIM7JPtgQb/Sg050xpPxd6qODEBePjujuV/Ye7qbwi489+vdnB9TVhPKUtwkOrPyA==","signatures":[{"sig":"MEUCIQChdnWzejNC5BZnNytJJfNm6iZhbHO1jlwmhEREPpCkdgIgFVbrctYkNKq3P1UGiOktpeS4FvBT/Qh3FHcZNvl3wpE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3011659,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdiTWyCRA9TVsSAnZWagAArkkQAJq0RoW8fCGVljDT35mR\nUmBVnwnUoTAk31jAKqv21aCv+YXv8ejvtfPNb+ITzOMHLqKjv/jq18qUXprR\nEDnGCBrSVXgPNnMiBlsym0vbIFNNuhwEY6GJuVEBxL0dpwa6gN77/jU6dhMg\n8ACjK5vds2i6CUmMObtvyHnRJHLhj8FtM0p+F6eMRY/VVGmzX6/JYs1oyjP3\nhM1yoIcvjWs1XqIUK5d+/YasavWwah7MzqlNV+OpYe7v+Xwm+FsvXf1xwZe7\nglzaXrvvApUwmeYhDrs1tx7FussKakcCB4abaIYdug7TP4aR/zvRnYG0FCjF\n574NrFNO5ScRvHghSa15x2JxWdo6pzeGBZtYwhfmmq3NqA15sgsgC0Jm04uW\no2tmSXdjussp4mF0E0fzxAhNIFkyLywOJvkn5WLJO0CrjDabl9kFDkMk3RHZ\nlRVz94Yu1XvpaZ8GrVbM3cbMFmMkEoMjp6Tc/ciBEBZsLrW6P8p8aa17BoZk\nKdUzq9OuQa/9zbZljRIKgf4p6TlIQvzN3KhZQ5J/0PyDkFMMBlO7hN9YTB1i\naxWidGYlcvStsajLOwG1NlJZ1Nz2j77os/3M/BeEkBdQ1mSD4keueLuIWLmU\ngOc8roaH9GcA0KBDD9581lvX6eqsMvO/HrDLCE/c82Bn/BldQ/bcOzhxOTFz\nPVLg\r\n=kKDf\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/index.js","gitHead":"be620e69bf869ecbeeb04aa4807556a97b71d276","scripts":{"lint":"eslint ./src","test":"npm run lint && npm run coverage","build":"webpack --config webpack.config.babel.js","clean":"rm -rf dist coverage","start":"webpack-dev-server --config examples/webpack.config.live.babel.js","coverage":"jest --coverage","prepublish":"npm run clean && npm run test && npm run build","build-examples":"webpack --config examples/webpack.config.babel.js --progress"},"_npmUser":{"name":"oznekenzo","email":"mkn293@nyu.edu"},"_npmVersion":"6.4.1","description":"Comments component for decentralized applications by 3Box","directories":{},"resolutions":{"babel-core":"7.0.0-bridge.0"},"_nodeVersion":"8.12.0","dependencies":{"3box":"^1.10.10","babel-core":"^7.0.0-bridge.0","3id-resolver":"0.0.6","profile-hover":"^1.1.0","react-linkify":"^1.0.0-alpha","@babel/runtime":"^7.6.0","svg-inline-loader":"^0.8.0","ethereum-blockies-base64":"^1.0.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","react":"^16.6.0","enzyme":"^3.3.0","eslint":"^5.8.0","webpack":"^4.9.1","jest-cli":"^23.6.0","node-sass":"^4.7.2","react-dom":"^16.6.0","babel-jest":"^23.6.0","css-loader":"^1.0.1","prop-types":"^15.6.0","@babel/core":"^7.1.2","sass-loader":"^7.0.1","webpack-cli":"^3.1.2","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","did-resolver":"0.0.7","style-loader":"^0.23.1","@babel/register":"^7.0.0","react-inlinesvg":"^1.1.6","react-hot-loader":"next","@babel/preset-env":"^7.1.0","webpack-dev-server":"^3.1.4","@babel/preset-react":"^7.0.0","eslint-plugin-react":"^7.4.0","react-test-renderer":"^16.0.0","regenerator-runtime":"^0.12.1","clean-webpack-plugin":"^0.1.16","enzyme-adapter-react-16":"^1.1.1","react-addons-test-utils":"^15.5.1","@babel/plugin-proposal-class-properties":"^7.5.5"},"peerDependencies":{"react":">= 16.3.0","react-dom":">= 16.3.0"},"_npmOperationalInternal":{"tmp":"tmp/3box-comments-react_0.0.1-beta.6_1569273265456_0.4790935875393969","host":"s3://npm-registry-packages"}},"0.0.1-beta.7":{"name":"3box-comments-react","version":"0.0.1-beta.7","keywords":["comments","3Box","decentralized","ethereum"],"author":{"name":"3box.io"},"license":"MIT","_id":"3box-comments-react@0.0.1-beta.7","maintainers":[{"name":"oznekenzo","email":"mkn293@nyu.edu"}],"contributors":[{"name":"Kenzo Nakamura","email":"kenzo@nyu.edu"}],"dist":{"shasum":"3d2415db35dc17022dbae5d2c58745f18871c6b2","tarball":"https://registry.npmjs.org/3box-comments-react/-/3box-comments-react-0.0.1-beta.7.tgz","fileCount":11,"integrity":"sha512-9xXkXVl5Ar6Bh1QUIFpkoGT4UE39AH9wbVwER2s6J8i1gJfUp0ydQCLTwns/zPm/zAy6Co64FlVbkRVNrIpLlQ==","signatures":[{"sig":"MEQCIBQp1YT/cbKDbauXLhofN5czbdjKOO8Xn8hIH3NXO9akAiAQ+Za8TkNMSuroE+Yku43KTmcN4hIdhRHJfTQ6FcaP4g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3011658,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdiTi9CRA9TVsSAnZWagAAIdYP/iAvTIjwF6XE7FNaNo2f\nInRaJQaTVbd9T8jCzHFjZEbvQ17ISCROqywAzzLO1feNHTUfAKEt+a+ldblC\n6EPjBIC9Nj673/zxCc+p8yLHnrtReBaDJV/E07pUjSUeoZXq9Sy/W76KCrEL\nRBKhfjgX88YYgNYfQwLS6oIl8IW5JsYLEkp1bqisO6jFdyOO5XLiaTeUyx6f\nmWdv91yqsmQJB5vWUPM/BpVtg8PW0yXKzgUxM0mMV+BOvqVhhW0fehPZMmjh\n1img4Itu+yAkWTHmcNEA9WdkZSfQZVQatM20sFDC3aYbeVwSOoFLv/ImcHSY\nP3hhaXqVLqB6Xq4ul/Ii52hydY5PyORW00Z7SeC2VsiusG2AUXJ8e00r8LkL\n5omXQXsKI7p/nutUJf/PsJ2vHHoD7Px22xPHCupvOBg0lS49jvr3JxY7M/b8\nbJyOPhM5ZXhy9FlpSY/xJYycOwq5YTokxLf5ofk19KSg/Fk/DrzG012chHqh\nbuFAfZGWtLPAttuTh/n2YHIeZrTNFMYIe16I8NQi1HaqDGGleH68/DntF+zH\nZPRK767ILRY1dmXo/LELulK26olK7B97G6vR9NklDutjFer6eKOHXyVUsrFi\nu+RVdfu3NDuYg7Lw6sr66MHClfmfrMolUuuCbh0/ZG91aeeXhjegM5HojIMK\nElZo\r\n=2/HB\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/index.js","gitHead":"be620e69bf869ecbeeb04aa4807556a97b71d276","scripts":{"lint":"eslint ./src","test":"npm run lint && npm run coverage","build":"webpack --config webpack.config.babel.js","clean":"rm -rf dist coverage","start":"webpack-dev-server --config examples/webpack.config.live.babel.js","coverage":"jest --coverage","prepublish":"npm run clean && npm run test && npm run build","build-examples":"webpack --config examples/webpack.config.babel.js --progress"},"_npmUser":{"name":"oznekenzo","email":"mkn293@nyu.edu"},"_npmVersion":"6.4.1","description":"Comments component for decentralized applications by 3Box","directories":{},"resolutions":{"babel-core":"7.0.0-bridge.0"},"_nodeVersion":"8.12.0","dependencies":{"3box":"^1.10.10","babel-core":"^7.0.0-bridge.0","3id-resolver":"0.0.6","profile-hover":"^1.1.0","react-linkify":"^1.0.0-alpha","@babel/runtime":"^7.6.0","svg-inline-loader":"^0.8.0","ethereum-blockies-base64":"^1.0.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","react":"^16.6.0","enzyme":"^3.3.0","eslint":"^5.8.0","webpack":"^4.9.1","jest-cli":"^23.6.0","node-sass":"^4.7.2","react-dom":"^16.6.0","babel-jest":"^23.6.0","css-loader":"^1.0.1","prop-types":"^15.6.0","@babel/core":"^7.1.2","sass-loader":"^7.0.1","webpack-cli":"^3.1.2","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","did-resolver":"0.0.7","style-loader":"^0.23.1","@babel/register":"^7.0.0","react-inlinesvg":"^1.1.6","react-hot-loader":"next","@babel/preset-env":"^7.1.0","webpack-dev-server":"^3.1.4","@babel/preset-react":"^7.0.0","eslint-plugin-react":"^7.4.0","react-test-renderer":"^16.0.0","regenerator-runtime":"^0.12.1","clean-webpack-plugin":"^0.1.16","enzyme-adapter-react-16":"^1.1.1","react-addons-test-utils":"^15.5.1","@babel/plugin-proposal-class-properties":"^7.5.5"},"peerDependencies":{"react":">= 16.3.0","react-dom":">= 16.3.0"},"_npmOperationalInternal":{"tmp":"tmp/3box-comments-react_0.0.1-beta.7_1569274044811_0.007316991474037859","host":"s3://npm-registry-packages"}},"0.0.1-beta.8":{"name":"3box-comments-react","version":"0.0.1-beta.8","keywords":["comments","3Box","decentralized","ethereum"],"author":{"name":"3box.io"},"license":"MIT","_id":"3box-comments-react@0.0.1-beta.8","maintainers":[{"name":"oznekenzo","email":"mkn293@nyu.edu"}],"contributors":[{"name":"Kenzo Nakamura","email":"kenzo@nyu.edu"}],"dist":{"shasum":"79800c7c6a0f6797c0729316fedd1f1641b302d3","tarball":"https://registry.npmjs.org/3box-comments-react/-/3box-comments-react-0.0.1-beta.8.tgz","fileCount":11,"integrity":"sha512-8yhgI05nmqJ3706Xie9JzJR5yRAylEnR7N2T/qvfrG8C2DXGszf8rXFmH8305QOF0jGqGZt8s47Vox15fPusLw==","signatures":[{"sig":"MEUCIQDJJkhEVQMQ1fQEIoVNGoXZK4ElrX/cQh+dvA//TbOvpwIgNt4EX6pc8WOBfu4AK2jffLAtzGJnQbpHcf/kMvR3a3o=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3013043,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdimUYCRA9TVsSAnZWagAAdr4P/39BWkM0lhn6G1IPR9Ug\nG2pRTJtWJsnAveUMFnRcyTbrSuJ85jX2OIeN55lNfzeD8UTbHmqZGRcy8wsa\nr8JMptdASf5p+nCzJSYdJO7BgyNDjfF0cwQ9P2l8zsjidn7TCKtXc+WLKd0/\nik+9MMwfu8/MvIlENz+fy9QOBk0ZKsBzjsWfVtXbMlDpRvaWBybJODZdSL2g\nXkeXhD7187PtGNQqddHYdeOu67Fr+7INakmIFyO93e0tgBuA8epMRJQkzfnF\nah3tu/vCS/oU6xyOhGliJDUScYfIK8YeaTWAbuTtR2/AGIZ/8Y0uhrclKLqg\nseIAGRAgEV/hLQ5sYM8TgYxwKcj/qeWn3ez3+3KAAhc/jN3fK3shCBvqJ8t0\nk0vAB6jbXOXgIfKOKPYz06sv4Els4Mbx/qMYS9OY32hkclxJDjObIm3Z9Iik\nDJZR70Lw6FTfYwe5blxyZCRAnPVV8VkVkAMkHultpkliGzO1Ef2+sXfjFaQA\nJ6rkS2h+v2ueAQWeX4O9NpTCRWHqXqujkUZz5MP4Pg2N/iUsPRuInuQ+ralE\nVKcD5Eb0aDrWVuGGbFBwoC+5j/fQIwH8WiL7Vq5PyHqijRkWKAyNyVywmQ+e\nG4rLmDqO8YKaXIUeDmxWDGNkW9gbcdTxVlF0rqQMcaUZzTgGnxRW+4p5vtcI\npHrl\r\n=qf8Y\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/index.js","gitHead":"cab758ec94410c0c613c876a2f612b60901f712e","scripts":{"lint":"eslint ./src","test":"npm run lint && npm run coverage","build":"webpack --config webpack.config.babel.js","clean":"rm -rf dist coverage","start":"webpack-dev-server --config examples/webpack.config.live.babel.js","coverage":"jest --coverage","prepublish":"npm run clean && npm run test && npm run build","build-examples":"webpack --config examples/webpack.config.babel.js --progress"},"_npmUser":{"name":"oznekenzo","email":"mkn293@nyu.edu"},"_npmVersion":"6.4.1","description":"Comments component for decentralized applications by 3Box","directories":{},"resolutions":{"babel-core":"7.0.0-bridge.0"},"_nodeVersion":"8.12.0","dependencies":{"3box":"^1.10.10","babel-core":"^7.0.0-bridge.0","3id-resolver":"0.0.6","profile-hover":"^1.1.1","react-linkify":"^1.0.0-alpha","@babel/runtime":"^7.6.0","svg-inline-loader":"^0.8.0","ethereum-blockies-base64":"^1.0.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","react":"^16.6.0","enzyme":"^3.3.0","eslint":"^5.8.0","webpack":"^4.9.1","jest-cli":"^23.6.0","node-sass":"^4.7.2","react-dom":"^16.6.0","babel-jest":"^23.6.0","css-loader":"^1.0.1","prop-types":"^15.6.0","@babel/core":"^7.1.2","sass-loader":"^7.0.1","webpack-cli":"^3.1.2","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","did-resolver":"0.0.7","style-loader":"^0.23.1","@babel/register":"^7.0.0","react-inlinesvg":"^1.1.6","react-hot-loader":"next","@babel/preset-env":"^7.1.0","webpack-dev-server":"^3.1.4","@babel/preset-react":"^7.0.0","eslint-plugin-react":"^7.4.0","react-test-renderer":"^16.0.0","regenerator-runtime":"^0.12.1","clean-webpack-plugin":"^0.1.16","enzyme-adapter-react-16":"^1.1.1","react-addons-test-utils":"^15.5.1","@babel/plugin-proposal-class-properties":"^7.5.5"},"peerDependencies":{"react":">= 16.3.0","react-dom":">= 16.3.0"},"_npmOperationalInternal":{"tmp":"tmp/3box-comments-react_0.0.1-beta.8_1569350936060_0.22096658061913454","host":"s3://npm-registry-packages"}},"0.0.1-beta.9":{"name":"3box-comments-react","version":"0.0.1-beta.9","keywords":["comments","3Box","decentralized","ethereum"],"author":{"name":"3box.io"},"license":"MIT","_id":"3box-comments-react@0.0.1-beta.9","maintainers":[{"name":"oznekenzo","email":"mkn293@nyu.edu"}],"contributors":[{"name":"Kenzo Nakamura","email":"kenzo@nyu.edu"}],"dist":{"shasum":"9435e56585cdccb5fbae453b1f93e9b661645375","tarball":"https://registry.npmjs.org/3box-comments-react/-/3box-comments-react-0.0.1-beta.9.tgz","fileCount":11,"integrity":"sha512-h0tzSfjIq52o/jLAZ6rZ2nB1L1zIQKxVDovfH4rA5ksZWcpoVAh4Kcpd7UXVtx4JNHf03N8V3gfP+ZkYCR+rYA==","signatures":[{"sig":"MEQCIClB5xYQg3wk6gS5LIyVkrQAwxMAzqfLqOdVSMlXwqtAAiBZc9SQShwycSNJzWwPlYLKdvdDQZk6y8zhznGXjZb46A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3015848,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdioNHCRA9TVsSAnZWagAAACIP/3OUnbOpG4fLNCaqP/Qa\n66wiUW2oYmTSO6MXr8sPncFZr/nwl1r4Nm7oCdtv44Mxsp6n6DRPBe89b6EJ\nDQs8zBTiLgNGwquCvgkm+a3QDNvy0wJzCwlgRIU5no5jY7dKQP6f5WGKCW+0\nIuYzoQLTQGtJ7Y/s6GoY/d/g2E4VCQrDEWX1nOQ3WO3u46rvvKUkYe1IkqIX\nyRYlHQqNuQPcXx4FD9yPtlEJr58CE53ivanJHQjFrvVQEViLtCs71kdRbBgg\nRqEGGyhaoZFBuT3qtAhn1MT/r70qEubJzJsM03iJ040YThrwhGG0Fmx20eEF\n/ghIH7/kALZdw3qWAczyiGFwgb3pstySBqA1qQPlDBnYlwwyPkkOl+bvLR4D\nz1i+XhDpfh3wZdo2lH9KQ2+8Zk+OvOkc1/V+XEbVlXej4LAwJFCmsPBgJvmv\ntOHkXZY3Tgt4ZS8/7ZvA95A3IlSA0Y+VZEoGW/NEjqpKfjuIYdK7BKozVe0R\n2VAavESY9BCWqiDdTWVfzZwrENKnljlk6ROE/9SPhmrnKWE7G25NZC5y2Qad\ningimHG+Vt5lOCSl9y7U/F1Gvo9scXDFsS5ONgWg1WU3WfSht9a0C9f2nFS+\nk8Rcj89gjlgohmW/vwiMLDiDaMz/K6Rk27uILsg1JrvKppGaddkFzK+xjfPd\nzW7x\r\n=NXjW\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/index.js","gitHead":"485ff7e96adad138b893487091a9b68b7eba74b9","scripts":{"lint":"eslint ./src","test":"npm run lint && npm run coverage","build":"webpack --config webpack.config.babel.js","clean":"rm -rf dist coverage","start":"webpack-dev-server --config examples/webpack.config.live.babel.js","coverage":"jest --coverage","prepublish":"npm run clean && npm run test && npm run build","build-examples":"webpack --config examples/webpack.config.babel.js --progress"},"_npmUser":{"name":"oznekenzo","email":"mkn293@nyu.edu"},"_npmVersion":"6.4.1","description":"Comments component for decentralized applications by 3Box","directories":{},"resolutions":{"babel-core":"7.0.0-bridge.0"},"_nodeVersion":"8.12.0","dependencies":{"3box":"^1.10.10","babel-core":"^7.0.0-bridge.0","3id-resolver":"0.0.6","profile-hover":"^1.1.1","react-linkify":"^1.0.0-alpha","@babel/runtime":"^7.6.0","svg-inline-loader":"^0.8.0","ethereum-blockies-base64":"^1.0.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","react":"^16.6.0","enzyme":"^3.3.0","eslint":"^5.8.0","webpack":"^4.9.1","jest-cli":"^23.6.0","node-sass":"^4.7.2","react-dom":"^16.6.0","babel-jest":"^23.6.0","css-loader":"^1.0.1","prop-types":"^15.6.0","@babel/core":"^7.1.2","sass-loader":"^7.0.1","webpack-cli":"^3.1.2","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","did-resolver":"0.0.7","style-loader":"^0.23.1","@babel/register":"^7.0.0","react-inlinesvg":"^1.1.6","react-hot-loader":"next","@babel/preset-env":"^7.1.0","webpack-dev-server":"^3.1.4","@babel/preset-react":"^7.0.0","eslint-plugin-react":"^7.4.0","react-test-renderer":"^16.0.0","regenerator-runtime":"^0.12.1","clean-webpack-plugin":"^0.1.16","enzyme-adapter-react-16":"^1.1.1","react-addons-test-utils":"^15.5.1","@babel/plugin-proposal-class-properties":"^7.5.5"},"peerDependencies":{"react":">= 16.3.0","react-dom":">= 16.3.0"},"_npmOperationalInternal":{"tmp":"tmp/3box-comments-react_0.0.1-beta.9_1569358662676_0.27275804276163385","host":"s3://npm-registry-packages"}},"0.0.1-beta.10":{"name":"3box-comments-react","version":"0.0.1-beta.10","keywords":["comments","3Box","decentralized","ethereum"],"author":{"name":"3box.io"},"license":"MIT","_id":"3box-comments-react@0.0.1-beta.10","maintainers":[{"name":"oznekenzo","email":"mkn293@nyu.edu"}],"contributors":[{"name":"Kenzo Nakamura","email":"kenzo@nyu.edu"}],"dist":{"shasum":"bc97a150aff79349f8b9a12131e5e67904db3764","tarball":"https://registry.npmjs.org/3box-comments-react/-/3box-comments-react-0.0.1-beta.10.tgz","fileCount":11,"integrity":"sha512-j1X4MefD64odlHnTHt3pRC4QJpy+mrpYFzemjxHUmV3FuXGhJCSNQO4phEEPmVjnmoowwsGa2mGCChWG4neSeg==","signatures":[{"sig":"MEUCIBdiBwbSNzMCOzA6Rf6gTs1OPZldy2BuuI02lNARLgjaAiEArOgGKE/njxU5QGRoisExQirxT7NPKQ77VYdnsiThI9E=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3015875,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdiomwCRA9TVsSAnZWagAAbecP/21L8A8BsD6oiIPcCBjo\nbpr/QRibTe4IL3G7YQKj+H6rFzOHrkPQ+lyNvGkraKMDaibV4TYQ9Yfvav2w\nc8dfB4X6PUTrfWw9dSMr7lfjQkDdYOh/ciWCFrHXkh4sGl/+4DIk7uz9S9VB\nPfXQikJuoStNu1UtYcTSoF892Q/csZrIAI2DXwJyj2QYUEw818co9thYN/rS\nGyqpYbX8XQyt4tfXL+irOH+4MQQgLPZMlFGgMQrpnGUqCCGApylur+4SyqJ8\nUrE4QddR2FrkChZxKct/CRCKrjY46KLV796grN3l4DZ4MJc/6X/9JVZlRbx/\nruo3/hK4B0t13N5jNte0STgVqZhK/cZv+OMhCoa13GWOPaDgHUK1wLevPSKi\nzzzKDjM6/e9LUUOBaKj73AexyMNnuuHqpJNPq78zqDL4Q5jYMUS53a6DllC/\nB+8Ml1rP1RJ9c5ASrk0wApMkKGbncRHa+gRnJetnBrfpEEN0mkr1GnD6fs97\nlHkEG+bFuog4gx17QdgE8gJZb+tbagVCncm2Kvp2ktbFCAh/RjFqJPUYHlJ3\ne27nmyiq0F1+aRMmrJ9c1JtL6IvjVGEDU8x42T3F6UjKtSdzJ6DHrPqaaGOF\nbEsi0fBsP1kJM2xYbs3d5OKe5bBedZeDGysBCrla9Po4q25wHl7NEMDuvBOB\nuX3a\r\n=J898\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/index.js","gitHead":"499e3ceae62e1372fa554574e1e2ebdf0f75f19b","scripts":{"lint":"eslint ./src","test":"npm run lint && npm run coverage","build":"webpack --config webpack.config.babel.js","clean":"rm -rf dist coverage","start":"webpack-dev-server --config examples/webpack.config.live.babel.js","coverage":"jest --coverage","prepublish":"npm run clean && npm run test && npm run build","build-examples":"webpack --config examples/webpack.config.babel.js --progress"},"_npmUser":{"name":"oznekenzo","email":"mkn293@nyu.edu"},"_npmVersion":"6.4.1","description":"Comments component for decentralized applications by 3Box","directories":{},"resolutions":{"babel-core":"7.0.0-bridge.0"},"_nodeVersion":"8.12.0","dependencies":{"3box":"^1.10.10","babel-core":"^7.0.0-bridge.0","3id-resolver":"0.0.6","profile-hover":"^1.1.1","react-linkify":"^1.0.0-alpha","@babel/runtime":"^7.6.0","svg-inline-loader":"^0.8.0","ethereum-blockies-base64":"^1.0.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","react":"^16.6.0","enzyme":"^3.3.0","eslint":"^5.8.0","webpack":"^4.9.1","jest-cli":"^23.6.0","node-sass":"^4.7.2","react-dom":"^16.6.0","babel-jest":"^23.6.0","css-loader":"^1.0.1","prop-types":"^15.6.0","@babel/core":"^7.1.2","sass-loader":"^7.0.1","webpack-cli":"^3.1.2","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","did-resolver":"0.0.7","style-loader":"^0.23.1","@babel/register":"^7.0.0","react-inlinesvg":"^1.1.6","react-hot-loader":"next","@babel/preset-env":"^7.1.0","webpack-dev-server":"^3.1.4","@babel/preset-react":"^7.0.0","eslint-plugin-react":"^7.4.0","react-test-renderer":"^16.0.0","regenerator-runtime":"^0.12.1","clean-webpack-plugin":"^0.1.16","enzyme-adapter-react-16":"^1.1.1","react-addons-test-utils":"^15.5.1","@babel/plugin-proposal-class-properties":"^7.5.5"},"peerDependencies":{"react":">= 16.3.0","react-dom":">= 16.3.0"},"_npmOperationalInternal":{"tmp":"tmp/3box-comments-react_0.0.1-beta.10_1569360303392_0.7118714223870377","host":"s3://npm-registry-packages"}},"0.0.1-beta.11":{"name":"3box-comments-react","version":"0.0.1-beta.11","keywords":["comments","3Box","decentralized","ethereum"],"author":{"name":"3box.io"},"license":"MIT","_id":"3box-comments-react@0.0.1-beta.11","maintainers":[{"name":"oznekenzo","email":"mkn293@nyu.edu"}],"contributors":[{"name":"Kenzo Nakamura","email":"kenzo@nyu.edu"}],"dist":{"shasum":"b5520e1091588b17af32038a424b5a669a4d11ff","tarball":"https://registry.npmjs.org/3box-comments-react/-/3box-comments-react-0.0.1-beta.11.tgz","fileCount":13,"integrity":"sha512-S0gF5BHOfAsDnYljWi61P79bNQqomsKyT+c8eh3oX9Zb3W4H1uzBmBK/DkmKgK9WTyajWMWLrKBkGSQv1AJn3g==","signatures":[{"sig":"MEQCICw9gm2OkFn7HRIm6MVYurwVBoAg1zKzhfI2v/YnmiVwAiAvBP+6nPr8aM9gDxkON45PiVBUMLIAckOEQl9KoRFrUA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3453338,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdipkmCRA9TVsSAnZWagAA0z4P/i7qUUxTpk/a0roJb9Qh\nh+Q9dlx1nmSCiGGd3cj2SL8S0jpae6IPKphEZlAYNnFhj4Q8n5nxCyWFLT8q\nbK7W2HaH/NbjTsnB1aHxpmBpQBXQQDgdFeVeWcNqUa/AnlEm0UNkpKhTEDYB\niS0I7JQWv/LdOmK7bOiMiVTk0iezfMVVzZDPXWJTAsOuh+yfObdx4ezDypHE\nD+MlIF0uoKu/4142PBkaHobtrmLmMIxcfXHOTxMh0Kc19bNRaNcKLdAuQUbs\nY3emO86tNtLWOXlJqbxtdKYX2Hcpndg0ElHg+SRsHBt8lb0Oepfq2WlibLwU\n0UmKPbf/IYF45XDoVX0tICxeN2BLSBA+UH2ptbij4hM/9shf30lShF8NQKsx\nhvFNfgvfjh/TAigu+NKjpFuuSHvpBEEat7iny6kYKdy+b20SmaneMC7HjEcR\nYNwP+dvNWWmh/ozlRXQFBV/MheZSeTiRD9ElB9/t5byoGYUB/CTD1AxrOqAN\nUe+iHrAnvrSQKggZZh0k50FquO7Bsf9c9nFBZUaTsF6xQy7/WbACSj2jIJjT\nkl/8oWXPUTvPRaet3Q4Ofn04aTZkrmoSrKwvINL4tF4S/SgWF8aY1bxdYmFg\nf2u3hW76U61koN+VlrX/N+UI3d7sJ0Pd13Dap5NKLPXouHYZi+M43mn7AIZa\nfDpW\r\n=SDAp\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/index.js","gitHead":"79a8ccf22a1f36cefe69f26d0fa5b48cd7b00e31","scripts":{"lint":"eslint ./src","test":"npm run lint && npm run coverage","build":"webpack --config webpack.config.babel.js","clean":"rm -rf dist coverage","start":"webpack-dev-server --config examples/webpack.config.live.babel.js","coverage":"jest --coverage","prepublish":"npm run clean && npm run test && npm run build","build-examples":"webpack --config examples/webpack.config.babel.js --progress"},"_npmUser":{"name":"oznekenzo","email":"mkn293@nyu.edu"},"_npmVersion":"6.4.1","description":"Comments component for decentralized applications by 3Box","directories":{},"resolutions":{"babel-core":"7.0.0-bridge.0"},"_nodeVersion":"8.12.0","dependencies":{"3box":"^1.10.10","babel-core":"^7.0.0-bridge.0","3id-resolver":"0.0.6","profile-hover":"^1.1.1","react-linkify":"^1.0.0-alpha","@babel/runtime":"^7.6.0","svg-inline-loader":"^0.8.0","ethereum-blockies-base64":"^1.0.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","react":"^16.6.0","enzyme":"^3.3.0","eslint":"^5.8.0","webpack":"^4.9.1","jest-cli":"^23.6.0","node-sass":"^4.7.2","react-dom":"^16.6.0","babel-jest":"^23.6.0","css-loader":"^1.0.1","prop-types":"^15.6.0","@babel/core":"^7.1.2","sass-loader":"^7.0.1","webpack-cli":"^3.1.2","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","did-resolver":"0.0.7","style-loader":"^0.23.1","@babel/register":"^7.0.0","react-inlinesvg":"^1.1.6","react-hot-loader":"next","@babel/preset-env":"^7.1.0","webpack-dev-server":"^3.1.4","@babel/preset-react":"^7.0.0","eslint-plugin-react":"^7.4.0","react-test-renderer":"^16.0.0","regenerator-runtime":"^0.12.1","clean-webpack-plugin":"^0.1.16","enzyme-adapter-react-16":"^1.1.1","react-addons-test-utils":"^15.5.1","@babel/plugin-proposal-class-properties":"^7.5.5"},"peerDependencies":{"react":">= 16.3.0","react-dom":">= 16.3.0"},"_npmOperationalInternal":{"tmp":"tmp/3box-comments-react_0.0.1-beta.11_1569364261578_0.46332007228004346","host":"s3://npm-registry-packages"}},"0.0.1-beta.13":{"name":"3box-comments-react","version":"0.0.1-beta.13","keywords":["comments","3Box","decentralized","ethereum"],"author":{"name":"3box.io"},"license":"MIT","_id":"3box-comments-react@0.0.1-beta.13","maintainers":[{"name":"oznekenzo","email":"mkn293@nyu.edu"}],"contributors":[{"name":"Kenzo Nakamura","email":"kenzo@nyu.edu"}],"dist":{"shasum":"f3177ce17649b763bc5a8c7fc006a1a37bae8bc7","tarball":"https://registry.npmjs.org/3box-comments-react/-/3box-comments-react-0.0.1-beta.13.tgz","fileCount":17,"integrity":"sha512-4D3wKwTZtN42A884oo4C/P5Iw7k1ksEvVoMCwW+DfYzRU2gCCwz2A7RAJZS08PASrGffcle4hVbVdDOtzgQGaQ==","signatures":[{"sig":"MEYCIQDHPC+5a4qh4i/93Y898eevGlF6yKrm9mso26GxYxRyowIhANysYwKAly2Zt/yMrBvB17FId9QJc6169zDCv3w2DX/3","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3682691,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdsLOTCRA9TVsSAnZWagAAcZ8QAJB/2VjMWg1aQhvuw1Ke\nfYq5AqhDH+GPnDjTox7orxxztKsPIsdVqftOfyidOT0iIqS5McUMLC4Ocm+3\nwz1dByYTJ2XYXhKz4a7wPGhI8gO+jVtb/Ln7QQYPUzQvTD/iL+KZvz/L8gqQ\nWHeeUjS+vHgDMQN5+aG9mBcgEgFaoPwvxCEGn/T/lyjtOcdVhdNC2Ee+Igp8\n/JVAN+KJY1Bd8Z/7ca1oLstvDKqFkeLksn4XTp6iFpza+pEojweucrOAPCzz\n44CigbF1THjWjiqFmZRBQUJKPrEdW88Qruw8bmbtf/m8wO3rOjCneGddpVcy\n7glAMsZk47H2gh0m+OlV59RZo9f1REHxw7/+I4F+iV8c6VV2LXz8+pLsU9nx\nSGopieT6kLBVqc9WlCC5EUaLNVGZmZvc0rUI2LdGcO7cQ1iUO/Z3yZlqLsIc\n5gsZsOTpbTCmZw2szmdIiqeEcxyYfaCnh7S0Q+vp5/Q5pa/LpzyqMRjOWaJR\nngvA/hkVTjb4Naq4LnIhfhZ23FvbVf2c+on85/FCUrGsP+U1TPg04gtiOawH\nXTtWhCH6kekZrZiDLU9Vx8bBWxzSBMp29AmBvZcMK/Vlc5SqBzbmx+/hBkqk\ncoxRFs1XGlnwACka/HZNwq3ymmIMu89X53KltpFCUlJLqe6mVS9zaontVT5v\nUuMp\r\n=qdBy\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/index.js","gitHead":"b6e3bcd7238b58264f572a089a14a24ee5eba4aa","scripts":{"lint":"eslint ./src","test":"npm run lint && npm run coverage","build":"webpack --config webpack.config.babel.js","clean":"rm -rf dist coverage","start":"webpack-dev-server --config examples/webpack.config.live.babel.js","coverage":"jest --coverage","prepublish":"npm run clean && npm run test && npm run build","build-examples":"webpack --config examples/webpack.config.babel.js --progress"},"_npmUser":{"name":"oznekenzo","email":"mkn293@nyu.edu"},"_npmVersion":"6.4.1","description":"Comments component for decentralized applications by 3Box","directories":{},"resolutions":{"babel-core":"7.0.0-bridge.0"},"_nodeVersion":"8.12.0","dependencies":{"3box":"^1.10.10","emoji-js":"^3.4.1","babel-core":"^7.0.0-bridge.0","3id-resolver":"0.0.6","profile-hover":"^1.1.1","react-linkify":"^1.0.0-alpha","@babel/runtime":"^7.6.0","svg-inline-loader":"^0.8.0","ethereum-blockies-base64":"^1.0.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","react":"^16.6.0","enzyme":"^3.3.0","eslint":"^5.8.0","webpack":"^4.9.1","jest-cli":"^23.6.0","node-sass":"^4.7.2","react-dom":"^16.6.0","babel-jest":"^23.6.0","css-loader":"^1.0.1","prop-types":"^15.6.0","@babel/core":"^7.1.2","sass-loader":"^7.0.1","webpack-cli":"^3.1.2","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","did-resolver":"0.0.7","style-loader":"^0.23.1","@babel/register":"^7.0.0","react-inlinesvg":"^1.1.6","react-hot-loader":"next","@babel/preset-env":"^7.1.0","webpack-dev-server":"^3.1.4","@babel/preset-react":"^7.0.0","eslint-plugin-react":"^7.4.0","react-test-renderer":"^16.0.0","regenerator-runtime":"^0.12.1","clean-webpack-plugin":"^0.1.16","enzyme-adapter-react-16":"^1.1.1","react-addons-test-utils":"^15.5.1","@babel/plugin-proposal-class-properties":"^7.5.5"},"peerDependencies":{"react":">= 16.3.0","react-dom":">= 16.3.0"},"_npmOperationalInternal":{"tmp":"tmp/3box-comments-react_0.0.1-beta.13_1571861395347_0.9300281070825416","host":"s3://npm-registry-packages"}},"0.0.1-beta.14":{"name":"3box-comments-react","version":"0.0.1-beta.14","keywords":["comments","3Box","decentralized","ethereum"],"author":{"name":"3box.io"},"license":"MIT","_id":"3box-comments-react@0.0.1-beta.14","maintainers":[{"name":"oznekenzo","email":"mkn293@nyu.edu"}],"contributors":[{"name":"Kenzo Nakamura","email":"kenzo@nyu.edu"}],"dist":{"shasum":"5b4347016fac23bb4f9e540c8e2a338bfdad20ed","tarball":"https://registry.npmjs.org/3box-comments-react/-/3box-comments-react-0.0.1-beta.14.tgz","fileCount":17,"integrity":"sha512-E9XeoBHPtSe67vaV4ZZopD1/3xUOaBConJ/V48PzZxa7XNICesx0HWv8K/8k5uD7Mou6cC4NBibmGJb5FOcdVA==","signatures":[{"sig":"MEYCIQCGty2KHlVOhxtMc4GkWi2FqaAUJAll9bZGDQcmNXvdzwIhAJf+HNcR2af0DlVLgGWJjHz4k0achbpE7w5zPheHns0B","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3682905,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdsfL1CRA9TVsSAnZWagAAsLUP/0J31i0aE7c3yb70eVkQ\nABmeoh/0k4YdUX6QGZZhIYb7EHPMdHMqvNMSq0GUv+Xz78YCTW1QeH1YBIni\nVC3qRDF69HsnTf/HDlad61vfkJrG+XsMwSXz/ZZ7c0oRkU6RFrQtfuhiPKgr\n8ZK5YJi7fsDxhm8lBXKjhUqHOltqLhipMQwIc0v7HdZ3kqEgl54aKddv3JeG\nVZIB1AS6+FFSNdribURmHVZ49vxJ/HoZ2hLPIWKH1g9AIivr9VjqBDn4z1y7\nZESl0OwOioJyeqXS7wjMjEY9F/xUhlNePNxMjZ6FEUC0kvPV/Gr+iP0m03/c\nl5ufj/IfNzIqWiemEsZQkG6NZv8cAvH+xquCBMNpCVmhRTGC+cqrFyR3L6Jp\nSeSlV7jRJaUoshC29WpzDUhXSQ6GEmqGxDJvfglGIf5jr72NrVODB86JOQtF\nTAn7blVA47w1GnZwFYWFkTHoV4DprwDYMKO49lNrxNx5qp0qESxUOrSLpb51\nLL88SnIIaPz3lxDGpLy4yhfFIRYsunHvIr0eKKlmjPnzhRusqpjF7HkgoTNd\nQP8C7Gqf18FmsC90j+baLQDI3nMiDdBZex/swfNs8Tdew9ZnWWfVpdUb5T87\nIW3fsqHS0KbiV5baSWr2dqfeCzdi3xEJAQAU2PuBySJLLmS9tsr+yA7K1Uk0\nrHPQ\r\n=wUsf\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/index.js","gitHead":"09a42950e8b6e434574e1f92c6b2e9875180c655","scripts":{"lint":"eslint ./src","test":"npm run lint && npm run coverage","build":"webpack --config webpack.config.babel.js","clean":"rm -rf dist coverage","start":"webpack-dev-server --config examples/webpack.config.live.babel.js","coverage":"jest --coverage","prepublish":"npm run clean && npm run test && npm run build","build-examples":"webpack --config examples/webpack.config.babel.js --progress"},"_npmUser":{"name":"oznekenzo","email":"mkn293@nyu.edu"},"_npmVersion":"6.4.1","description":"Comments component for decentralized applications by 3Box","directories":{},"resolutions":{"babel-core":"7.0.0-bridge.0"},"_nodeVersion":"8.12.0","dependencies":{"3box":"^1.10.10","emoji-js":"^3.4.1","babel-core":"^7.0.0-bridge.0","3id-resolver":"0.0.6","profile-hover":"^1.1.1","react-linkify":"^1.0.0-alpha","@babel/runtime":"^7.6.0","svg-inline-loader":"^0.8.0","ethereum-blockies-base64":"^1.0.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","react":"^16.6.0","enzyme":"^3.3.0","eslint":"^5.8.0","webpack":"^4.9.1","jest-cli":"^23.6.0","node-sass":"^4.7.2","react-dom":"^16.6.0","babel-jest":"^23.6.0","css-loader":"^1.0.1","prop-types":"^15.6.0","@babel/core":"^7.1.2","sass-loader":"^7.0.1","webpack-cli":"^3.1.2","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","did-resolver":"0.0.7","style-loader":"^0.23.1","@babel/register":"^7.0.0","react-inlinesvg":"^1.1.6","react-hot-loader":"next","@babel/preset-env":"^7.1.0","webpack-dev-server":"^3.1.4","@babel/preset-react":"^7.0.0","eslint-plugin-react":"^7.4.0","react-test-renderer":"^16.0.0","regenerator-runtime":"^0.12.1","clean-webpack-plugin":"^0.1.16","enzyme-adapter-react-16":"^1.1.1","react-addons-test-utils":"^15.5.1","@babel/plugin-proposal-class-properties":"^7.5.5"},"peerDependencies":{"react":">= 16.3.0","react-dom":">= 16.3.0"},"_npmOperationalInternal":{"tmp":"tmp/3box-comments-react_0.0.1-beta.14_1571943156700_0.043801873050618","host":"s3://npm-registry-packages"}},"0.0.1-beta.15":{"name":"3box-comments-react","version":"0.0.1-beta.15","keywords":["comments","3Box","decentralized","ethereum"],"author":{"name":"3box.io"},"license":"MIT","_id":"3box-comments-react@0.0.1-beta.15","maintainers":[{"name":"oznekenzo","email":"mkn293@nyu.edu"}],"contributors":[{"name":"Kenzo Nakamura","email":"kenzo@nyu.edu"}],"dist":{"shasum":"451900463e732f812b0a6209069e1c67e3e49e80","tarball":"https://registry.npmjs.org/3box-comments-react/-/3box-comments-react-0.0.1-beta.15.tgz","fileCount":17,"integrity":"sha512-ahckWSqZt3l1DtilKQSzqfScJp/0kjtVuRasXHHOmgPy9DOr6dJBEqAYnkkebjI66fkB6sHn69kMl/dwTfbyeQ==","signatures":[{"sig":"MEUCIQC6CT5Xpjc4gfWBnEy9RoSosnB0vcLDHwgUxBPlDmEHLAIgAr/tYYSe6a34QXKgeIaNHS5aiGsW5zLv7FutaiT/PKc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3654774,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdybFpCRA9TVsSAnZWagAAd6wP/3UVE5zZzmB/76jhniPB\nDsiOj+ibFd2hre/uOEBBZPm8vUEGNgb9N+D4O89H1qBu7g8XC6TRuZqgfDFI\nevgqTZf/5IJsU6GWgXdMVx6BuBnV/sOzAGxpR8Z+9/wvSb1qQZwFmav1uQfH\nVeqZymS+NMHD4/BvU4PdP2evmz5SEHNFTzVMJilAICkqfl7P9+Dlw0FXt7aB\nZ7MJFJxg+uA680sSGkkpuA4WWKPC+Rk/pYEXLi13tkFjR+dWhf6Cf7zP8x2N\nuKr2vKdmldBJQj1oG+1Knk0DPoedZwyJQu+ohzxhvz77lRhrzS+/xmxPYRvv\nRtnDRpxTL7rAqkctfGF2rLfJUYzi9YSIETcO0fFNuqyleWt6c/m1FTXBGJzS\n1mErFzarUs2r5UcuJZk2NQ+an6oC278rEM+rs9rceAkfF8OxUbXBx+OKBvGa\n9+LMvElJ+/9y4nN2n1lwpdaG+Js2cgMTIuCaJoz3vB3jbIp7CA+nYfiJwQji\nv5oUU7wotDMOZCuW/WPscPHIf1wV9eN7+9/4t8xVqaFb/IImC1a1qfTa27k6\nsPXTDSN1THlV653Po5XP7l+HqyNfT9IU/Cr3YHq6R+mOV8d45FmsIu2iSX2x\nEIBHDP8S1hAmnYVc3zH9C/dOGWHqLH77BgffUxxWRnS6PTdDFnItFch7eEKP\nowYp\r\n=b1tT\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/index.js","readme":"[![Discord](https://img.shields.io/discord/484729862368526356.svg?style=for-the-badge)](https://discordapp.com/invite/Z3f3Cxy)\r\n[![npm](https://img.shields.io/npm/v/3box-comments-react.svg?style=for-the-badge)](https://www.npmjs.com/package/3box-comments-react)\r\n[![Twitter Follow](https://img.shields.io/twitter/follow/3boxdb.svg?style=for-the-badge&label=Twitter)](https://twitter.com/3boxdb)\r\n\r\n# 3Box Comments Plugin 💬\r\n\r\n`3box-comments-react` node package is a drop-in react component that provides Web3 developers with a readymade commenting system for their Ethereum application. Easily add rich, decentralized social discourse to your dApp with one line of code. The 3Box Comments plugin is built using 3Box infrastructure, and handles all logic for creating a comments thread. *Read the docs on [docs.3box.io](https://docs.3box.io/build/plugins/comments)*.\r\n\r\n### Try the demo [here](https://3box.github.io/3box-comments-react/examples/dist/)\r\n![Example Screenshot](comments-example-screenshot.png)\r\n</br>\r\n\r\n## How it Works\r\n#### Architecture\r\nThe Comments plugin is built using a standard implementation of [Open Threads](https://docs.3box.io/build/web-apps/messaging/choose#open-threads) which are defined in the [3Box Threads API](https://docs.3box.io/api/messaging) and made available via the [`3Box.js SDK`](https://github.com/3box/3box-js). The Comments plugin also includes UI for inputting and displaying user comments, logic for fetching user profiles, and pagination. The component is configurable to various authentication patterns, and can handle both Web3/3Box logged-in & logged-out states. \r\n\r\n#### Authentication\r\nWithout authenticating, users can read messages in the comment thread. However authentication is required to perform more interactive functionality. After the user is authenticated, a user can post a comment, delete their comment, and receive comments from other users in *real-time*.  Note: if you are not logged in and the component has not been passed your ethereum address, the component cannot know which comment belongs to you in order to delete.  In this case, click the login button just below the input UI.\r\n</br>\r\n</br>\r\n\r\n## Getting Started\r\n1. Install the component\r\n2. Choose your authentication pattern\r\n3. Configure application settings\r\n4. Usage\r\n\r\n### 1. Install the component\r\n\r\n```shell\r\nnpm i -S 3box-comments-react\r\n```\r\n\r\n### 2. Choose your authentication pattern\r\nDepending on *when and how* your dApp handles authentication for web3 and 3Box, you will need to provide a different set of props to the component. Three acceptable authentication patterns and their respective props are discussed below in A-C:\r\n\r\n**A) Dapp handles web3 and 3Box logins, and they run *before* component is mounted. (recommended)**\r\n\r\nDapp integrates with `3Box.js SDK` and the `3box-comments-react` component. In this case, the `box` instance returned from `Box.openBox(ethAddr)` via 3Box.js should be passed to the `box` prop in the comments component. The user's current Ethereum address should be passed to the `currentUserAddr` prop to determine `deletePost` access on each comment.\r\n\r\n**B) Dapp handles web3 and 3Box logins, but they haven't run before component is mounted. (recommended)**\r\n\r\nDapp integrates with `3Box.js SDK` and the `3box-comments-react` component. In this case, the login logic implemented in the dapp should be passed to the Comments component as the `loginFunction` prop, which is run when a user attempts to post a comment. The user's current Ethereum address should be passed to the `currentUserAddr` prop to determine `deletePost` access on each comment.\r\n\r\n**C) Dapp has no web3 and 3Box login logic.**\r\n\r\nDapp only integrates with the `3box-comments-react` component, but not `3Box.js SDK`. All web3 and 3Box login logic will be handled within the Comments component, though it's required for the `ethereum` object from your dapp's preferred web3 provider be passed to the `ethereum` prop in the component.\r\n\r\n#### Best practice\r\n\r\nFor the best UX, we recommend implementing one of the following authentication patterns: A; B; or B with A.\r\n\r\nEach of these patterns allow your application to make the `box` object available in global application state where it can be used by all instances of the Comments component regardless of which page the user is on. This global pattern removes the need for users to authenticate on each individual page they wish to comment on, which would be the case in C.\r\n\r\n### 3. Configure application settings\r\n\r\n**First, choose a name for your application's 3Box space.**\r\n\r\nAlthough you are free to choose whichever name you'd like for your app's space, we recommend using the name of your app. If your application already has a 3Box space, you are welcome to use that same one for comments.\r\n\r\n**Next, choose a naming convention for your application's threads.**\r\n\r\nComment threads need a name, and we recommend that your application creates `threadNames` according to a simple rule. We generally like using a natural identifier, such as community name, page URL, token ID, or other similar means.\r\n\r\n**Then, create an admin 3Box account for your application.**\r\n\r\nEach thread is required to have an admin (`adminEthAddr`), which possesses the rights to moderate the thread. We recommend you create an admin Ethereum account for your application so you can perform these actions. While technically you can use any Ethereum address as an admin account, we recommend [creating a 3Box profile](https://3box.io/hub) for that address so if you need to take action in the thread, others will know and trust you as the admin.\r\n\r\n**Lastly, initialize your application's space.**\r\n\r\nBefore threads can be deployed in your dapp, your application's admin account (`adminEthAddr` created in the previous step) must first open the space (`spaceName`) that will be used to store your application's threads. This step *must* be completed before your comment threads can be used by others. This process would likely be done outside the context of your dapp, probably in a test environment.\r\n\r\nSimply open a space by running (via `3Box.js SDK`): \r\n```\r\nconst box = await Box.openBox(adminEthAddr, ethereum);\r\nconst space = await box.openSpace(spaceName, spaceOpts);\r\n```\r\nSign the web3 prompts to complete the space initialization process.\r\n</br>\r\n</br>\r\n\r\n\r\n### 4. Usage\r\n\r\n#### Example\r\n\r\n```jsx\r\nimport ThreeBoxComments from '3box-comments-react';\r\n\r\nconst MyComponent = ({ handleLogin, box, ethereum, myAddress, currentUser3BoxProfile, adminEthAddr }) => (\r\n    <ThreeBoxComments \r\n        // required\r\n        spaceName=\"mySpaceName\"\r\n        threadName=\"myThreadName\"\r\n        adminEthAddr={adminEthAddr}\r\n\r\n\r\n        // Required props for context A) & B)\r\n        box={box}\r\n        currentUserAddr={myAddress}\r\n\r\n        // Required prop for context B)\r\n        loginFunction={handleLogin}\r\n\r\n        // Required prop for context C)\r\n        ethereum={ethereum}\r\n\r\n        // optional\r\n        members={false}\r\n        showCommentCount={10}\r\n        threadOpts={{}}\r\n        useHovers={false}\r\n        currentUser3BoxProfile={currentUser3BoxProfile}\r\n        userProfileURL={address => `https://mywebsite.com/user/${address}`}\r\n    />\r\n);\r\n```\r\n\r\n\r\n#### Prop Types\r\n\r\n| Property | Type          | Default  | Required Case          | Description |\r\n| :-------------------------------- | :-------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------ | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\r\n| `spaceName`    | String        |    |  Always   | Likely your dApp name and / or comment category.  A single `spaceName` with different `threadName`s is common practice when building a dApp with multiple Comment threads. |\r\n| `threadName`    | String       |   | Always    | A name specific to this Comments thread. |\r\n| `adminEthAddr`    | String (Ethereum Address)       |   | Always    | The Ethereum address you wish to give admin rights to for the Comments thread.  This user will be able to delete all comments and accept members in a members-only thread. **A thread with a new admin address, despite identical `spaceName` and `threadName`, will create an entirely new thread.**|\r\n| `box`    | Object         |   | A (and likely B)    | The `box` instance returned from running `await Box.openBox(address, web3)` somewhere in your dApp.|\r\n| `currentUserAddr`    | String (Ethereum Address)          |    | A & B, optional for C | The current user's Ethereum address. Passing this will help determine whether a user has delete access on each comment.  This prop will also let the component fetch that user's 3Box profile on component mount and render that data (profile picture) in the Comment input UI. |\r\n| `loginFunction`    | Function       |    | B    | A function from your dApp that handles web3 and 3Box login at the global dApp state. This callback will run when a user attempts to save a comment but a `box` instance doesn't yet exist. Running this function should result in a box instance (from `const box = Box.openBox(address, web3)`) being passed as the `box` prop to this component.  |\r\n| `ethereum`    | Object        |  window.ethereum  | C    | The `ethereum` object from whichever web3 provider your dApp uses.  The `enable` method on this object will be used to get the current user's Ethereum address and that address will be used to `openBox` within the current Component context.|\r\n| `members`    | Boolean       |  False   | Optional    | A boolean - `true` - to make the thread a members-only thread. Passing `false` will allow all users to post to the thread.  **Changing this setting after creating it will result in an entirely different thread** (see [Docs.3box.io](https://Docs.3box.io) for more info). |\r\n| `showCommentCount`    | Integer       |  30   | Optional    | The number of comments rendered in the UI by default on component mount and the number of additional comments revealed after clicking `Load more` in component. |\r\n| `spaceOpts`    | Object       | | Optional    | Optional parameters for threads (see [Docs.3box.io](https://Docs.3box.io) for more info)|\r\n| `threadOpts`    | Object       | | Optional    | Optional parameters for threads (see [Docs.3box.io](https://Docs.3box.io) for more info)|\r\n| `useHovers`    | Boolean       |  False  | Optional    | Pass true to enable a 3Box profile pop up when hovering over a commenter's name |\r\n| `currentUser3BoxProfile`    | Object       |   | Optional    | If the current user has already had their 3Box data fetched at the global dApp state, pass the object returned from `Box.getProfile(profileAddress)` to avoid an extra request.  This data will be rendered in the Comment input interface.|\r\n| `userProfileURL`    | Function       |  Defaults to returning user's 3Box profile URL  | Optional    | A function that returns a correctly formatted URL of a user's profile on the current platform.  The function will be passed an Ethereum address within the component, if needed.  A user will be redirected to the URL returned from this function when clicking on the name or Ethereum address associated with the comment in the thread.|\r\n\r\n## License\r\n\r\nMIT\r\n","gitHead":"0cb4bfd58275ec4ca1019a2cb47a2e141f574ccd","scripts":{"lint":"eslint ./src","test":"npm run lint && npm run coverage","build":"webpack --config webpack.config.babel.js","clean":"rm -rf dist coverage","start":"webpack-dev-server --config examples/webpack.config.live.babel.js","coverage":"jest --coverage","prepublish":"npm run clean && npm run test && npm run build","build-examples":"webpack --config examples/webpack.config.babel.js --progress"},"_npmUser":{"name":"oznekenzo","email":"mkn293@nyu.edu"},"_npmVersion":"6.4.1","description":"Comments component for decentralized applications by 3Box","directories":{},"resolutions":{"babel-core":"7.0.0-bridge.0"},"_nodeVersion":"8.12.0","dependencies":{"3box":"^1.10.10","emoji-js":"^3.4.1","babel-core":"^7.0.0-bridge.0","3id-resolver":"0.0.6","profile-hover":"^1.1.1","react-linkify":"^1.0.0-alpha","@babel/runtime":"^7.6.0","svg-inline-loader":"^0.8.0","ethereum-blockies-base64":"^1.0.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.1.2","react":"^16.6.0","enzyme":"^3.3.0","eslint":"^5.8.0","webpack":"^4.9.1","jest-cli":"^23.6.0","node-sass":"^4.7.2","react-dom":"^16.6.0","babel-jest":"^23.6.0","css-loader":"^1.0.1","prop-types":"^15.6.0","@babel/core":"^7.1.2","sass-loader":"^7.0.1","webpack-cli":"^3.1.2","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","did-resolver":"0.0.7","style-loader":"^0.23.1","@babel/register":"^7.0.0","react-inlinesvg":"^1.1.6","react-hot-loader":"next","@babel/preset-env":"^7.1.0","webpack-dev-server":"^3.1.4","@babel/preset-react":"^7.0.0","eslint-plugin-react":"^7.4.0","react-test-renderer":"^16.0.0","regenerator-runtime":"^0.12.1","clean-webpack-plugin":"^0.1.16","enzyme-adapter-react-16":"^1.1.1","react-addons-test-utils":"^15.5.1","@babel/plugin-proposal-class-properties":"^7.5.5"},"peerDependencies":{"react":">= 16.3.0","react-dom":">= 16.3.0"},"_npmOperationalInternal":{"tmp":"tmp/3box-comments-react_0.0.1-beta.15_1573499241106_0.9737487542561891","host":"s3://npm-registry-packages"}},"0.0.1-beta.16":{"name":"3box-comments-react","version":"0.0.1-beta.16","keywords":["comments","3Box","decentralized","ethereum"],"author":{"name":"3box.io"},"license":"MIT","_id":"3box-comments-react@0.0.1-beta.16","maintainers":[{"name":"oznekenzo","email":"mkn293@nyu.edu"}],"contributors":[{"name":"Kenzo Nakamura","email":"kenzo@nyu.edu"}],"dist":{"shasum":"963532ce9c937ac2666f47a8dd6915e62c68cb4d","tarball":"https://registry.npmjs.org/3box-comments-react/-/3box-comments-react-0.0.1-beta.16.tgz","fileCount":17,"integrity":"sha512-iGy46PCrYQkZYHxUaTmfs4Yh4HTWzEP+WUKJJ8GCyxd3nm53/RuXJyRsF47ugAf5pT7qQY6qhdShIretdFoKgg==","signatures":[{"sig":"MEUCIQCopJ1blY14BL9pwbs87xJ5zFK19De5Qmsq/TTHTKfcfwIgdc84AIsFqEAqFfyqTBzjMhXrQ7Z9QoFMGb+6dodza1g=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3654774,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdyckiCRA9TVsSAnZWagAAKosQAJ3ceQ1otmmTs+JZ8IG9\nuwCIxBK87JuBZq5eNxb/C+sAUGntnJ8ufeedWIIS3XchXECgdCaoXHMuCcR4\nsKbHjR860Nd1LHfvcBbltjn6YmjcJ+1qcnL5HziMhyUwmifleUGN0ZBjHx26\nahUmmM+TFxy7rf5OTJTPTXKxvdQ0kSEtZJ6JYxnbYzKUoV0JIlOa+wm+Abhq\nld7tLMVSI7I58kshwRAUDsfNXFV8U8CgoTAyyHXdHHE7Vp+GogLDIpxk1z4w\ny6Zq66hPKIUgcSVLM9eYohSGrrG6uUWpHbTRIxcG0kCA+tZm/GLr7MSORC4L\nGJnGkxK3Przv4Rc7tD1G/TbHI8vfk37xwFhpQ9H20KJjRwTYz76z9gSspEKS\ngtyHZBycCS1Q13stV30MPqEeehmExLYhJGDGvH+KvO66RLzbMMKRMhfLuvQV\nVYLlm8lZyC6kyaAj/9qj+uWD9Z3YdwTrQi5ASg3OMiP+tdi+bLhiCiCQqsTC\ne0e4Jf6UUoYqMkyKJxPOw/KusxVLiWLnGgVJRklPmGcs6qAdNu52AFdSnp7z\nbBpBlryRGEyqQ2CoMMJ3BQSE/eSa719EZEQbK5z4TfE7ma35deAMhs1LJgGo\nvrVAHTL0RWiruDBFzO+wKqMTBJl3UkmaqV6OWRrmNrCKJ4NWJbQC2fX1Asst\nlASf\r\n=TQpT\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/index.js","readme":"[![Discord](https://img.shields.io/discord/484729862368526356.svg?style=for-the-badge)](https://discordapp.com/invite/Z3f3Cxy)\r\n[![npm](https://img.shields.io/npm/v/3box-comments-react.svg?style=for-the-badge)](https://www.npmjs.com/package/3box-comments-react)\r\n[![Twitter Follow](https://img.shields.io/twitter/follow/3boxdb.svg?style=for-the-badge&label=Twitter)](https://twitter.com/3boxdb)\r\n\r\n# 3Box Comments Plugin 💬\r\n\r\n`3box-comments-react` node package is a drop-in react component that provides Web3 developers with a readymade commenting system for their Ethereum application. Easily add rich, decentralized social discourse to your dApp with one line of code. The 3Box Comments plugin is built using 3Box infrastructure, and handles all logic for creating a comments thread. *Read the docs on [docs.3box.io](https://docs.3box.io/build/plugins/comments)*.\r\n\r\n### Try the demo [here](https://3box.github.io/3box-comments-react/examples/dist/)\r\n![Example Screenshot](comments-example-screenshot.png)\r\n</br>\r\n\r\n## How it Works\r\n#### Architecture\r\nThe Comments plugin is built using a standard implementation of [Open Threads](https://docs.3box.io/build/web-apps/messaging/choose#open-threads) which are defined in the [3Box Threads API](https://docs.3box.io/api/messaging) and made available via the [`3Box.js SDK`](https://github.com/3box/3box-js). The Comments plugin also includes UI for inputting and displaying user comments, logic for fetching user profiles, and pagination. The component is configurable to various authentication patterns, and can handle both Web3/3Box logged-in & logged-out states. \r\n\r\n#### Authentication\r\nWithout authenticating, users can read messages in the comment thread. However authentication is required to perform more interactive functionality. After the user is authenticated, a user can post a comment, delete their comment, and receive comments from other users in *real-time*.  Note: if you are not logged in and the component has not been passed your ethereum address, the component cannot know which comment belongs to you in order to delete.  In this case, click the login button just below the input UI.\r\n</br>\r\n</br>\r\n\r\n## Getting Started\r\n1. Install the component\r\n2. Choose your authentication pattern\r\n3. Configure application settings\r\n4. Usage\r\n\r\n### 1. Install the component\r\n\r\n```shell\r\nnpm i -S 3box-comments-react\r\n```\r\n\r\n### 2. Choose your authentication pattern\r\nDepending on *when and how* your dApp handles authentication for web3 and 3Box, you will need to provide a different set of props to the component. Three acceptable authentication patterns and their respective props are discussed below in A-C:\r\n\r\n**A) Dapp handles web3 and 3Box logins, and they run *before* component is mounted. (recommended)**\r\n\r\nDapp integrates with `3Box.js SDK` and the `3box-comments-react` component. In this case, the `box` instance returned from `Box.openBox(ethAddr)` via 3Box.js should be passed to the `box` prop in the comments component. The user's current Ethereum address should be passed to the `currentUserAddr` prop to determine `deletePost` access on each comment.\r\n\r\n**B) Dapp handles web3 and 3Box logins, but they haven't run before component is mounted. (recommended)**\r\n\r\nDapp integrates with `3Box.js SDK` and the `3box-comments-react` component. In this case, the login logic implemented in the dapp should be passed to the Comments component as the `loginFunction` prop, which is run when a user attempts to post a comment. The user's current Ethereum address should be passed to the `currentUserAddr` prop to determine `deletePost` access on each comment.\r\n\r\n**C) Dapp has no web3 and 3Box login logic.**\r\n\r\nDapp only integrates with the `3box-comments-react` component, but not `3Box.js SDK`. All web3 and 3Box login logic will be handled within the Comments component, though it's required for the `ethereum` object from your dapp's preferred web3 provider be passed to the `ethereum` prop in the component.\r\n\r\n#### Best practice\r\n\r\nFor the best UX, we recommend implementing one of the following authentication patterns: A; B; or B with A.\r\n\r\nEach of these patterns allow your application to make the `box` object available in global application state where it can be used by all instances of the Comments component regardless of which page the user is on. This global pattern removes the need for users to authenticate on each individual page they wish to comment on, which would be the case in C.\r\n\r\n### 3. Configure application settings\r\n\r\n**First, choose a name for your application's 3Box space.**\r\n\r\nAlthough you are free to choose whichever name you'd like for your app's space, we recommend using the name of your app. If your application already has a 3Box space, you are welcome to use that same one for comments.\r\n\r\n**Next, choose a naming convention for your application's threads.**\r\n\r\nComment threads need a name, and we recommend that your application creates `threadNames` according to a simple rule. We generally like using a natural identifier, such as community name, page URL, token ID, or other similar means.\r\n\r\n**Then, create an admin 3Box account for your application.**\r\n\r\nEach thread is required to have an admin (`adminEthAddr`), which possesses the rights to moderate the thread. We recommend you create an admin Ethereum account for your application so you can perform these actions. While technically you can use any Ethereum address as an admin account, we recommend [creating a 3Box profile](https://3box.io/hub) for that address so if you need to take action in the thread, others will know and trust you as the admin.\r\n\r\n**Lastly, initialize your application's space.**\r\n\r\nBefore threads can be deployed in your dapp, your application's admin account (`adminEthAddr` created in the previous step) must first open the space (`spaceName`) that will be used to store your application's threads. This step *must* be completed before your comment threads can be used by others. This process would likely be done outside the context of your dapp, probably in a test environment.\r\n\r\nSimply open a space by running (via `3Box.js SDK`): \r\n```\r\nconst box = await Box.openBox(adminEthAddr, ethereum);\r\nconst space = await box.openSpace(spaceName, spaceOpts);\r\n```\r\nSign the web3 prompts to complete the space initialization process.\r\n</br>\r\n</br>\r\n\r\n\r\n### 4. Usage\r\n\r\n#### Example\r\n\r\n```jsx\r\nimport ThreeBoxComments from '3box-comments-react';\r\n\r\nconst MyComponent = ({ handleLogin, box, ethereum, myAddress, currentUser3BoxProfile, adminEthAddr }) => (\r\n    <ThreeBoxComments \r\n        // required\r\n        spaceName=\"mySpaceName\"\r\n        threadName=\"myThreadName\"\r\n        adminEthAddr={adminEthAddr}\r\n\r\n\r\n        // Required props for context A) & B)\r\n        box={box}\r\n        currentUserAddr={myAddress}\r\n\r\n        // Required prop for context B)\r\n        loginFunction={handleLogin}\r\n\r\n        // Required prop for context C)\r\n        ethereum={ethereum}\r\n\r\n        // optional\r\n        members={false}\r\n        showCommentCount={10}\r\n        threadOpts={{}}\r\n        useHovers={false}\r\n        currentUser3BoxProfile={currentUser3BoxProfile}\r\n        userProfileURL={address => `https://mywebsite.com/user/${address}`}\r\n    />\r\n);\r\n```\r\n\r\n\r\n#### Prop Types\r\n\r\n| Property | Type          | Default  | Required Case          | Description |\r\n| :-------------------------------- | :-------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------ | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\r\n| `spaceName`    | String        |    |  Always   | Likely your dApp name and / or comment category.  A single `spaceName` with different `threadName`s is common practice when building a dApp with multiple Comment threads. |\r\n| `threadName`    | String       |   | Always    | A name specific to this Comments thread. |\r\n| `adminEthAddr`    | String (Ethereum Address)       |   | Always    | The Ethereum address you wish to give admin rights to for the Comments thread.  This user will be able to delete all comments and accept members in a members-only thread. **A thread with a new admin address, despite identical `spaceName` and `threadName`, will create an entirely new thread.**|\r\n| `box`    | Object         |   | A (and likely B)    | The `box` instance returned from running `await Box.openBox(address, web3)` somewhere in your dApp.|\r\n| `currentUserAddr`    | String (Ethereum Address)          |    | A & B, optional for C | The current user's Ethereum address. Passing this will help determine whether a user has delete access on each comment.  This prop will also let the component fetch that user's 3Box profile on component mount and render that data (profile picture) in the Comment input UI. |\r\n| `loginFunction`    | Function       |    | B    | A function from your dApp that handles web3 and 3Box login at the global dApp state. This callback will run when a user attempts to save a comment but a `box` instance doesn't yet exist. Running this function should result in a box instance (from `const box = Box.openBox(address, web3)`) being passed as the `box` prop to this component.  |\r\n| `ethereum`    | Object        |  window.ethereum  | C    | The `ethereum` object from whichever web3 provider your dApp uses.  The `enable` method on this object will be used to get the current user's Ethereum address and that address will be used to `openBox` within the current Component context.|\r\n| `members`    | Boolean       |  False   | Optional    | A boolean - `true` - to make the thread a members-only thread. Passing `false` will allow all users to post to the thread.  **Changing this setting after creating it will result in an entirely different thread** (see [Docs.3box.io](https://Docs.3box.io) for more info). |\r\n| `showCommentCount`    | Integer       |  30   | Optional    | The number of comments rendered in the UI by default on component mount and the number of additional comments revealed after clicking `Load more` in component. |\r\n| `spaceOpts`    | Object       | | Optional    | Optional parameters for threads (see [Docs.3box.io](https://Docs.3box.io) for more info)|\r\n| `threadOpts`    | Object       | | Optional    | Optional parameters for threads (see [Docs.3box.io](https://Docs.3box.io) for more info)|\r\n| `useHovers`    | Boolean       |  False  | Optional    | Pass true to enable a 3Box profile pop up when hovering over a commenter's name |\r\n| `currentUser3BoxProfile`    | Object       |   | Optional    | If the current user has already had their 3Box data fetched at the global dApp state, pass the object returned from `Box.getProfile(profileAddress)` to avoid an extra request.  This data will be rendered in the Comment input interface.|\r\n| `userProfileURL`    | Function       |  Defaults to returning user's 3Box profile URL  | Optional    | A function that returns a correctly formatted URL of a user's profile on the current platform.  The function will be passed an Ethereum address within the component, if needed.  A user will be redirected to the URL returned from this function when clicking on the name or Ethereum address associated with the comment in the thread.|\r\n\r\n## License\r\n\r\nMIT\r\n","gitHead":"359fdb35cb708831611ca0801170a965b8567416","scripts":{"lint":"eslint ./src","test":"npm run lint && npm run coverage","build":"webpack --config webpack.config.babel.js","clean":"rm -rf dist coverage","start":"webpack-dev-server --config examples/webpack.config.live.babel.js","coverage":"jest --coverage","prepublish":"npm run clean && npm run test && npm run build","build-examples":"webpack --config examples/webpack.config.babel.js --progress"},"_npmUser":{"name":"oznekenzo","email":"mkn293@nyu.edu"},"_npmVersion":"6.4.1","description":"Comments component for decentralized applications by 3Box","directories":{},"resolutions":{"babel-core":"7.0.0-bridge.0"},"_nodeVersion":"8.12.0","dependencies":{"3box":"^1.10.10","emoji-js":"^3.4.1","babel-core":"^7.0.0-bridge.0","3id-resolver":"0.0.6","profile-hover":"^1.1.1","react-linkify":"^1.0.0-alpha","@babel/runtime":"^7.6.0","svg-inline-loader":"^0.8.0","ethereum-blockies-base64":"^1.0.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.1.2","react":"^16.6.0","enzyme":"^3.3.0","eslint":"^5.8.0","webpack":"^4.9.1","jest-cli":"^23.6.0","node-sass":"^4.7.2","react-dom":"^16.6.0","babel-jest":"^23.6.0","css-loader":"^1.0.1","prop-types":"^15.6.0","@babel/core":"^7.1.2","sass-loader":"^7.0.1","webpack-cli":"^3.1.2","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","did-resolver":"0.0.7","style-loader":"^0.23.1","@babel/register":"^7.0.0","react-inlinesvg":"^1.1.6","react-hot-loader":"next","@babel/preset-env":"^7.1.0","webpack-dev-server":"^3.1.4","@babel/preset-react":"^7.0.0","eslint-plugin-react":"^7.4.0","react-test-renderer":"^16.0.0","regenerator-runtime":"^0.12.1","clean-webpack-plugin":"^0.1.16","enzyme-adapter-react-16":"^1.1.1","react-addons-test-utils":"^15.5.1","@babel/plugin-proposal-class-properties":"^7.5.5"},"peerDependencies":{"react":">= 16.3.0","react-dom":">= 16.3.0"},"_npmOperationalInternal":{"tmp":"tmp/3box-comments-react_0.0.1-beta.16_1573505313973_0.04155253498999589","host":"s3://npm-registry-packages"}},"0.0.1-beta.17":{"name":"3box-comments-react","version":"0.0.1-beta.17","keywords":["comments","3Box","decentralized","ethereum"],"author":{"name":"3box.io"},"license":"MIT","_id":"3box-comments-react@0.0.1-beta.17","maintainers":[{"name":"oznekenzo","email":"mkn293@nyu.edu"}],"contributors":[{"name":"Kenzo Nakamura","email":"kenzo@nyu.edu"}],"dist":{"shasum":"93b704747e6e229c10017eddbe47059c4c25fd3c","tarball":"https://registry.npmjs.org/3box-comments-react/-/3box-comments-react-0.0.1-beta.17.tgz","fileCount":17,"integrity":"sha512-klJe+GFLG4ntjG5946LSC9PFsekQDXEUFdWiTMb3yu0EJdTGIA4sXOCnTbiBCNF+bBaGO0RpkJk06IU5rb1h0Q==","signatures":[{"sig":"MEUCIQCyRjZtYlIrLElu2zHipiiYYTGIa1pkpYj59gwPEBMa2wIgSgSzF7Bj0qcGos4ZPQmTRzmgk09UhkpyrYLjSuGy5RY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3654774,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdyc2uCRA9TVsSAnZWagAAZP4P/ipALR3DVOSpDe2n1bWL\nHAdK6BQMd9bw2Pdaua/eiaOTLLG1t/ZS1e9yvw7vZLv6lZdoS5JHbzcB91is\nNZ11tIaY4fGuzOyy1w4JLHT24rBOf3y3X2ldIwvlOs5G9c2P9bpWJAFXPhgY\nbG9QlI51bAs5hNzRcSFYq66GX/CnqcEUvRPvaYrErYPCZinc7bZ+5pN8C0uY\nGypIXNMCMFzpZLt65g/vgVoVN8ng/5vDNZdCg728HiQM++QqOeXBYDwJIiUB\nOsy/rInE+BscDXmL2LYEl+8llC2jsHjOnyTVUfP94cee5PTZavI/Qp/IQ2xU\nOOWMTxkXCn/M9NX8jtTLfrOfN9Fscf8l/yz4WrRDRqnTsKLoc43GUhK9wEDY\nBy0NUhuqP9yo9y9QlModn5e8cdzmMvugq9rQlYhknWZts+5NqHbhOL3MMTrh\n4crBrhIJwgu2jNb7d18/wY0c4JJUP4/x9O+15JMNfv7X+2+FgMoysukfBDe3\n/P/vX/ckLhuL5z1/5LX2OqEgnc1TzKdxcRmMSAsjSc6veMaha8xr1heFyHnO\nF+xmBPx9Lna7d+P6Hj67Gl1+poTWGN9zrvqKj8lGHVG1Oyl4Gpg7kyMMCvOE\nDA+pZsYFPO+pRXu1/T6nGxIpLcX3RN7oY6pWQY15Xeey+zZjNKHKSuazNHId\nIDeE\r\n=N+Lc\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/index.js","readme":"[![Discord](https://img.shields.io/discord/484729862368526356.svg?style=for-the-badge)](https://discordapp.com/invite/Z3f3Cxy)\r\n[![npm](https://img.shields.io/npm/v/3box-comments-react.svg?style=for-the-badge)](https://www.npmjs.com/package/3box-comments-react)\r\n[![Twitter Follow](https://img.shields.io/twitter/follow/3boxdb.svg?style=for-the-badge&label=Twitter)](https://twitter.com/3boxdb)\r\n\r\n# 3Box Comments Plugin 💬\r\n\r\n`3box-comments-react` node package is a drop-in react component that provides Web3 developers with a readymade commenting system for their Ethereum application. Easily add rich, decentralized social discourse to your dApp with one line of code. The 3Box Comments plugin is built using 3Box infrastructure, and handles all logic for creating a comments thread. *Read the docs on [docs.3box.io](https://docs.3box.io/build/plugins/comments)*.\r\n\r\n### Try the demo [here](https://3box.github.io/3box-comments-react/examples/dist/)\r\n![Example Screenshot](comments-example-screenshot.png)\r\n</br>\r\n\r\n## How it Works\r\n#### Architecture\r\nThe Comments plugin is built using a standard implementation of [Open Threads](https://docs.3box.io/build/web-apps/messaging/choose#open-threads) which are defined in the [3Box Threads API](https://docs.3box.io/api/messaging) and made available via the [`3Box.js SDK`](https://github.com/3box/3box-js). The Comments plugin also includes UI for inputting and displaying user comments, logic for fetching user profiles, and pagination. The component is configurable to various authentication patterns, and can handle both Web3/3Box logged-in & logged-out states. \r\n\r\n#### Authentication\r\nWithout authenticating, users can read messages in the comment thread. However authentication is required to perform more interactive functionality. After the user is authenticated, a user can post a comment, delete their comment, and receive comments from other users in *real-time*.  Note: if you are not logged in and the component has not been passed your ethereum address, the component cannot know which comment belongs to you in order to delete.  In this case, click the login button just below the input UI.\r\n</br>\r\n</br>\r\n\r\n## Getting Started\r\n1. Install the component\r\n2. Choose your authentication pattern\r\n3. Configure application settings\r\n4. Usage\r\n\r\n### 1. Install the component\r\n\r\n```shell\r\nnpm i -S 3box-comments-react\r\n```\r\n\r\n### 2. Choose your authentication pattern\r\nDepending on *when and how* your dApp handles authentication for web3 and 3Box, you will need to provide a different set of props to the component. Three acceptable authentication patterns and their respective props are discussed below in A-C:\r\n\r\n**A) Dapp handles web3 and 3Box logins, and they run *before* component is mounted. (recommended)**\r\n\r\nDapp integrates with `3Box.js SDK` and the `3box-comments-react` component. In this case, the `box` instance returned from `Box.openBox(ethAddr)` via 3Box.js should be passed to the `box` prop in the comments component. The user's current Ethereum address should be passed to the `currentUserAddr` prop to determine `deletePost` access on each comment.\r\n\r\n**B) Dapp handles web3 and 3Box logins, but they haven't run before component is mounted. (recommended)**\r\n\r\nDapp integrates with `3Box.js SDK` and the `3box-comments-react` component. In this case, the login logic implemented in the dapp should be passed to the Comments component as the `loginFunction` prop, which is run when a user attempts to post a comment. The user's current Ethereum address should be passed to the `currentUserAddr` prop to determine `deletePost` access on each comment.\r\n\r\n**C) Dapp has no web3 and 3Box login logic.**\r\n\r\nDapp only integrates with the `3box-comments-react` component, but not `3Box.js SDK`. All web3 and 3Box login logic will be handled within the Comments component, though it's required for the `ethereum` object from your dapp's preferred web3 provider be passed to the `ethereum` prop in the component.\r\n\r\n#### Best practice\r\n\r\nFor the best UX, we recommend implementing one of the following authentication patterns: A; B; or B with A.\r\n\r\nEach of these patterns allow your application to make the `box` object available in global application state where it can be used by all instances of the Comments component regardless of which page the user is on. This global pattern removes the need for users to authenticate on each individual page they wish to comment on, which would be the case in C.\r\n\r\n### 3. Configure application settings\r\n\r\n**First, choose a name for your application's 3Box space.**\r\n\r\nAlthough you are free to choose whichever name you'd like for your app's space, we recommend using the name of your app. If your application already has a 3Box space, you are welcome to use that same one for comments.\r\n\r\n**Next, choose a naming convention for your application's threads.**\r\n\r\nComment threads need a name, and we recommend that your application creates `threadNames` according to a simple rule. We generally like using a natural identifier, such as community name, page URL, token ID, or other similar means.\r\n\r\n**Then, create an admin 3Box account for your application.**\r\n\r\nEach thread is required to have an admin (`adminEthAddr`), which possesses the rights to moderate the thread. We recommend you create an admin Ethereum account for your application so you can perform these actions. While technically you can use any Ethereum address as an admin account, we recommend [creating a 3Box profile](https://3box.io/hub) for that address so if you need to take action in the thread, others will know and trust you as the admin.\r\n\r\n**Lastly, initialize your application's space.**\r\n\r\nBefore threads can be deployed in your dapp, your application's admin account (`adminEthAddr` created in the previous step) must first open the space (`spaceName`) that will be used to store your application's threads. This step *must* be completed before your comment threads can be used by others. This process would likely be done outside the context of your dapp, probably in a test environment.\r\n\r\nSimply open a space by running (via `3Box.js SDK`): \r\n```\r\nconst box = await Box.openBox(adminEthAddr, ethereum);\r\nconst space = await box.openSpace(spaceName, spaceOpts);\r\n```\r\nSign the web3 prompts to complete the space initialization process.\r\n</br>\r\n</br>\r\n\r\n\r\n### 4. Usage\r\n\r\n#### Example\r\n\r\n```jsx\r\nimport ThreeBoxComments from '3box-comments-react';\r\n\r\nconst MyComponent = ({ handleLogin, box, ethereum, myAddress, currentUser3BoxProfile, adminEthAddr }) => (\r\n    <ThreeBoxComments \r\n        // required\r\n        spaceName=\"mySpaceName\"\r\n        threadName=\"myThreadName\"\r\n        adminEthAddr={adminEthAddr}\r\n\r\n\r\n        // Required props for context A) & B)\r\n        box={box}\r\n        currentUserAddr={myAddress}\r\n\r\n        // Required prop for context B)\r\n        loginFunction={handleLogin}\r\n\r\n        // Required prop for context C)\r\n        ethereum={ethereum}\r\n\r\n        // optional\r\n        members={false}\r\n        showCommentCount={10}\r\n        threadOpts={{}}\r\n        useHovers={false}\r\n        currentUser3BoxProfile={currentUser3BoxProfile}\r\n        userProfileURL={address => `https://mywebsite.com/user/${address}`}\r\n    />\r\n);\r\n```\r\n\r\n\r\n#### Prop Types\r\n\r\n| Property | Type          | Default  | Required Case          | Description |\r\n| :-------------------------------- | :-------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------ | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\r\n| `spaceName`    | String        |    |  Always   | Likely your dApp name and / or comment category.  A single `spaceName` with different `threadName`s is common practice when building a dApp with multiple Comment threads. |\r\n| `threadName`    | String       |   | Always    | A name specific to this Comments thread. |\r\n| `adminEthAddr`    | String (Ethereum Address)       |   | Always    | The Ethereum address you wish to give admin rights to for the Comments thread.  This user will be able to delete all comments and accept members in a members-only thread. **A thread with a new admin address, despite identical `spaceName` and `threadName`, will create an entirely new thread.**|\r\n| `box`    | Object         |   | A (and likely B)    | The `box` instance returned from running `await Box.openBox(address, web3)` somewhere in your dApp.|\r\n| `currentUserAddr`    | String (Ethereum Address)          |    | A & B, optional for C | The current user's Ethereum address. Passing this will help determine whether a user has delete access on each comment.  This prop will also let the component fetch that user's 3Box profile on component mount and render that data (profile picture) in the Comment input UI. |\r\n| `loginFunction`    | Function       |    | B    | A function from your dApp that handles web3 and 3Box login at the global dApp state. This callback will run when a user attempts to save a comment but a `box` instance doesn't yet exist. Running this function should result in a box instance (from `const box = Box.openBox(address, web3)`) being passed as the `box` prop to this component.  |\r\n| `ethereum`    | Object        |  window.ethereum  | C    | The `ethereum` object from whichever web3 provider your dApp uses.  The `enable` method on this object will be used to get the current user's Ethereum address and that address will be used to `openBox` within the current Component context.|\r\n| `members`    | Boolean       |  False   | Optional    | A boolean - `true` - to make the thread a members-only thread. Passing `false` will allow all users to post to the thread.  **Changing this setting after creating it will result in an entirely different thread** (see [Docs.3box.io](https://Docs.3box.io) for more info). |\r\n| `showCommentCount`    | Integer       |  30   | Optional    | The number of comments rendered in the UI by default on component mount and the number of additional comments revealed after clicking `Load more` in component. |\r\n| `spaceOpts`    | Object       | | Optional    | Optional parameters for threads (see [Docs.3box.io](https://Docs.3box.io) for more info)|\r\n| `threadOpts`    | Object       | | Optional    | Optional parameters for threads (see [Docs.3box.io](https://Docs.3box.io) for more info)|\r\n| `useHovers`    | Boolean       |  False  | Optional    | Pass true to enable a 3Box profile pop up when hovering over a commenter's name |\r\n| `currentUser3BoxProfile`    | Object       |   | Optional    | If the current user has already had their 3Box data fetched at the global dApp state, pass the object returned from `Box.getProfile(profileAddress)` to avoid an extra request.  This data will be rendered in the Comment input interface.|\r\n| `userProfileURL`    | Function       |  Defaults to returning user's 3Box profile URL  | Optional    | A function that returns a correctly formatted URL of a user's profile on the current platform.  The function will be passed an Ethereum address within the component, if needed.  A user will be redirected to the URL returned from this function when clicking on the name or Ethereum address associated with the comment in the thread.|\r\n\r\n## License\r\n\r\nMIT\r\n","gitHead":"359fdb35cb708831611ca0801170a965b8567416","scripts":{"lint":"eslint ./src","test":"npm run lint && npm run coverage","build":"webpack --config webpack.config.babel.js","clean":"rm -rf dist coverage","start":"webpack-dev-server --config examples/webpack.config.live.babel.js","coverage":"jest --coverage","prepublish":"npm run clean && npm run test && npm run build","build-examples":"webpack --config examples/webpack.config.babel.js --progress"},"_npmUser":{"name":"oznekenzo","email":"mkn293@nyu.edu"},"_npmVersion":"6.4.1","description":"Comments component for decentralized applications by 3Box","directories":{},"resolutions":{"babel-core":"7.0.0-bridge.0"},"_nodeVersion":"8.12.0","dependencies":{"3box":"^1.10.10","emoji-js":"^3.4.1","babel-core":"^7.0.0-bridge.0","3id-resolver":"0.0.6","profile-hover":"^1.1.1","react-linkify":"^1.0.0-alpha","@babel/runtime":"^7.6.0","svg-inline-loader":"^0.8.0","ethereum-blockies-base64":"^1.0.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.1.2","react":"^16.6.0","enzyme":"^3.3.0","eslint":"^5.8.0","webpack":"^4.9.1","jest-cli":"^23.6.0","node-sass":"^4.7.2","react-dom":"^16.6.0","babel-jest":"^23.6.0","css-loader":"^1.0.1","prop-types":"^15.6.0","@babel/core":"^7.1.2","sass-loader":"^7.0.1","webpack-cli":"^3.1.2","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","did-resolver":"0.0.7","style-loader":"^0.23.1","@babel/register":"^7.0.0","react-inlinesvg":"^1.1.6","react-hot-loader":"next","@babel/preset-env":"^7.1.0","webpack-dev-server":"^3.1.4","@babel/preset-react":"^7.0.0","eslint-plugin-react":"^7.4.0","react-test-renderer":"^16.0.0","regenerator-runtime":"^0.12.1","clean-webpack-plugin":"^0.1.16","enzyme-adapter-react-16":"^1.1.1","react-addons-test-utils":"^15.5.1","@babel/plugin-proposal-class-properties":"^7.5.5"},"peerDependencies":{"react":">= 16.3.0","react-dom":">= 16.3.0"},"_npmOperationalInternal":{"tmp":"tmp/3box-comments-react_0.0.1-beta.17_1573506477958_0.41783006244184673","host":"s3://npm-registry-packages"}},"0.0.1-beta.18":{"name":"3box-comments-react","version":"0.0.1-beta.18","keywords":["comments","3Box","decentralized","ethereum"],"author":{"name":"3box.io"},"license":"MIT","_id":"3box-comments-react@0.0.1-beta.18","maintainers":[{"name":"oznekenzo","email":"mkn293@nyu.edu"}],"contributors":[{"name":"Kenzo Nakamura","email":"kenzo@nyu.edu"}],"dist":{"shasum":"74417d5bc2cf9d6de90cb835a1ccb748965c4509","tarball":"https://registry.npmjs.org/3box-comments-react/-/3box-comments-react-0.0.1-beta.18.tgz","fileCount":18,"integrity":"sha512-omO1Mjq/Tex9rQQfkjx+RodO1+Qbq+4JJgnWzzXCUNV4Syrz7YNlkmWk8ubwcyOGtssRlwRTwZl5tq/opkzGYg==","signatures":[{"sig":"MEYCIQCEY7pcTDo05d3rnxttvBaf8IYdudpMRDxMBai/mqXX+QIhAKRkhxFwWq3/L19ebG76yV55FvPLUJUdDUOuIDnJm99K","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3655299,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdyc/wCRA9TVsSAnZWagAAUw4QAIJ3h/mLdsqX0LtkT6C4\n8ZPPOHxDpagEzQfuNvcf7HdVujSK9hoh5hJd/Ko0z3/2rsX6lhzE6jFz/hPz\negHOuCPtckPdcxgCAcLMOSDgGHH2D5hsRYO5/sDNPRPyVEDS1MLrARGHabeG\nvouPJa8z6vnECga58BjvU9nNbWZ/rzjbk7B7vI21rGsjHSaFUY9jgteh5Dx1\niVm0MMSIpTSvbV3bn9RTSSiwKOP3lbHLaeJHVpRDuOLxIWamk4Li1s0Vf8IK\nBOpbkWUavRZ0lexuxHNwtqyuhSf/f6jwfAmxmqNoTvZxV3xVkyFrSyNVESqo\nkSRtJE4u85Ye/5UxkU54SZ+KXZlOzpZnC6eh+Q4e0UsMsEHbm4/ZOCrbJWkK\nR4qLOthxMC8mlBRAySDkJ+uxMbG2PNpraRNuk9xFBRwQrTR1PE/hrzI7BpBX\nNYVqB9/P+0EnrptTuPxTQHIYpiGm2KKz8o3iL3pKfs1n9XujQfjKtrXCcjeA\none4fksgQZQH+5mdK+GY8DGj1wh2TUQo4pRQewYLegVYXhcpEKH0qNe2ZsBf\nTbYxgH3gTv3QVcy5ozbkP2InpgDzJU0ZhkhGWrr5feRYpQbIljnOH0PxiV5C\n6YFlUCdo4P/Z/XWK/VSemQ37BHBGs/dtAAW5to7fot7ujk2yt6x9U1J4Kes7\np1sh\r\n=nVLX\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/index.js","readme":"[![Discord](https://img.shields.io/discord/484729862368526356.svg?style=for-the-badge)](https://discordapp.com/invite/Z3f3Cxy)\r\n[![npm](https://img.shields.io/npm/v/3box-comments-react.svg?style=for-the-badge)](https://www.npmjs.com/package/3box-comments-react)\r\n[![Twitter Follow](https://img.shields.io/twitter/follow/3boxdb.svg?style=for-the-badge&label=Twitter)](https://twitter.com/3boxdb)\r\n\r\n# 3Box Comments Plugin 💬\r\n\r\n`3box-comments-react` node package is a drop-in react component that provides Web3 developers with a readymade commenting system for their Ethereum application. Easily add rich, decentralized social discourse to your dApp with one line of code. The 3Box Comments plugin is built using 3Box infrastructure, and handles all logic for creating a comments thread. *Read the docs on [docs.3box.io](https://docs.3box.io/build/plugins/comments)*.\r\n\r\n### Try the demo [here](https://3box.github.io/3box-comments-react/examples/dist/)\r\n![Example Screenshot](comments-example-screenshot.png)\r\n</br>\r\n\r\n## How it Works\r\n#### Architecture\r\nThe Comments plugin is built using a standard implementation of [Open Threads](https://docs.3box.io/build/web-apps/messaging/choose#open-threads) which are defined in the [3Box Threads API](https://docs.3box.io/api/messaging) and made available via the [`3Box.js SDK`](https://github.com/3box/3box-js). The Comments plugin also includes UI for inputting and displaying user comments, logic for fetching user profiles, and pagination. The component is configurable to various authentication patterns, and can handle both Web3/3Box logged-in & logged-out states. \r\n\r\n#### Authentication\r\nWithout authenticating, users can read messages in the comment thread. However authentication is required to perform more interactive functionality. After the user is authenticated, a user can post a comment, delete their comment, and receive comments from other users in *real-time*.  Note: if you are not logged in and the component has not been passed your ethereum address, the component cannot know which comment belongs to you in order to delete.  In this case, click the login button just below the input UI.\r\n</br>\r\n</br>\r\n\r\n## Getting Started\r\n1. Install the component\r\n2. Choose your authentication pattern\r\n3. Configure application settings\r\n4. Usage\r\n\r\n### 1. Install the component\r\n\r\n```shell\r\nnpm i -S 3box-comments-react\r\n```\r\n\r\n### 2. Choose your authentication pattern\r\nDepending on *when and how* your dApp handles authentication for web3 and 3Box, you will need to provide a different set of props to the component. Three acceptable authentication patterns and their respective props are discussed below in A-C:\r\n\r\n**A) Dapp handles web3 and 3Box logins, and they run *before* component is mounted. (recommended)**\r\n\r\nDapp integrates with `3Box.js SDK` and the `3box-comments-react` component. In this case, the `box` instance returned from `Box.openBox(ethAddr)` via 3Box.js should be passed to the `box` prop in the comments component. The user's current Ethereum address should be passed to the `currentUserAddr` prop to determine `deletePost` access on each comment.\r\n\r\n**B) Dapp handles web3 and 3Box logins, but they haven't run before component is mounted. (recommended)**\r\n\r\nDapp integrates with `3Box.js SDK` and the `3box-comments-react` component. In this case, the login logic implemented in the dapp should be passed to the Comments component as the `loginFunction` prop, which is run when a user attempts to post a comment. The user's current Ethereum address should be passed to the `currentUserAddr` prop to determine `deletePost` access on each comment.\r\n\r\n**C) Dapp has no web3 and 3Box login logic.**\r\n\r\nDapp only integrates with the `3box-comments-react` component, but not `3Box.js SDK`. All web3 and 3Box login logic will be handled within the Comments component, though it's required for the `ethereum` object from your dapp's preferred web3 provider be passed to the `ethereum` prop in the component.\r\n\r\n#### Best practice\r\n\r\nFor the best UX, we recommend implementing one of the following authentication patterns: A; B; or B with A.\r\n\r\nEach of these patterns allow your application to make the `box` object available in global application state where it can be used by all instances of the Comments component regardless of which page the user is on. This global pattern removes the need for users to authenticate on each individual page they wish to comment on, which would be the case in C.\r\n\r\n### 3. Configure application settings\r\n\r\n**First, choose a name for your application's 3Box space.**\r\n\r\nAlthough you are free to choose whichever name you'd like for your app's space, we recommend using the name of your app. If your application already has a 3Box space, you are welcome to use that same one for comments.\r\n\r\n**Next, choose a naming convention for your application's threads.**\r\n\r\nComment threads need a name, and we recommend that your application creates `threadNames` according to a simple rule. We generally like using a natural identifier, such as community name, page URL, token ID, or other similar means.\r\n\r\n**Then, create an admin 3Box account for your application.**\r\n\r\nEach thread is required to have an admin (`adminEthAddr`), which possesses the rights to moderate the thread. We recommend you create an admin Ethereum account for your application so you can perform these actions. While technically you can use any Ethereum address as an admin account, we recommend [creating a 3Box profile](https://3box.io/hub) for that address so if you need to take action in the thread, others will know and trust you as the admin.\r\n\r\n**Lastly, initialize your application's space.**\r\n\r\nBefore threads can be deployed in your dapp, your application's admin account (`adminEthAddr` created in the previous step) must first open the space (`spaceName`) that will be used to store your application's threads. This step *must* be completed before your comment threads can be used by others. This process would likely be done outside the context of your dapp, probably in a test environment.\r\n\r\nSimply open a space by running (via `3Box.js SDK`): \r\n```\r\nconst box = await Box.openBox(adminEthAddr, ethereum);\r\nconst space = await box.openSpace(spaceName, spaceOpts);\r\n```\r\nSign the web3 prompts to complete the space initialization process.\r\n</br>\r\n</br>\r\n\r\n\r\n### 4. Usage\r\n\r\n#### Example\r\n\r\n```jsx\r\nimport ThreeBoxComments from '3box-comments-react';\r\n\r\nconst MyComponent = ({ handleLogin, box, ethereum, myAddress, currentUser3BoxProfile, adminEthAddr }) => (\r\n    <ThreeBoxComments \r\n        // required\r\n        spaceName=\"mySpaceName\"\r\n        threadName=\"myThreadName\"\r\n        adminEthAddr={adminEthAddr}\r\n\r\n\r\n        // Required props for context A) & B)\r\n        box={box}\r\n        currentUserAddr={myAddress}\r\n\r\n        // Required prop for context B)\r\n        loginFunction={handleLogin}\r\n\r\n        // Required prop for context C)\r\n        ethereum={ethereum}\r\n\r\n        // optional\r\n        members={false}\r\n        showCommentCount={10}\r\n        threadOpts={{}}\r\n        useHovers={false}\r\n        currentUser3BoxProfile={currentUser3BoxProfile}\r\n        userProfileURL={address => `https://mywebsite.com/user/${address}`}\r\n    />\r\n);\r\n```\r\n\r\n\r\n#### Prop Types\r\n\r\n| Property | Type          | Default  | Required Case          | Description |\r\n| :-------------------------------- | :-------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------ | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\r\n| `spaceName`    | String        |    |  Always   | Likely your dApp name and / or comment category.  A single `spaceName` with different `threadName`s is common practice when building a dApp with multiple Comment threads. |\r\n| `threadName`    | String       |   | Always    | A name specific to this Comments thread. |\r\n| `adminEthAddr`    | String (Ethereum Address)       |   | Always    | The Ethereum address you wish to give admin rights to for the Comments thread.  This user will be able to delete all comments and accept members in a members-only thread. **A thread with a new admin address, despite identical `spaceName` and `threadName`, will create an entirely new thread.**|\r\n| `box`    | Object         |   | A (and likely B)    | The `box` instance returned from running `await Box.openBox(address, web3)` somewhere in your dApp.|\r\n| `currentUserAddr`    | String (Ethereum Address)          |    | A & B, optional for C | The current user's Ethereum address. Passing this will help determine whether a user has delete access on each comment.  This prop will also let the component fetch that user's 3Box profile on component mount and render that data (profile picture) in the Comment input UI. |\r\n| `loginFunction`    | Function       |    | B    | A function from your dApp that handles web3 and 3Box login at the global dApp state. This callback will run when a user attempts to save a comment but a `box` instance doesn't yet exist. Running this function should result in a box instance (from `const box = Box.openBox(address, web3)`) being passed as the `box` prop to this component.  |\r\n| `ethereum`    | Object        |  window.ethereum  | C    | The `ethereum` object from whichever web3 provider your dApp uses.  The `enable` method on this object will be used to get the current user's Ethereum address and that address will be used to `openBox` within the current Component context.|\r\n| `members`    | Boolean       |  False   | Optional    | A boolean - `true` - to make the thread a members-only thread. Passing `false` will allow all users to post to the thread.  **Changing this setting after creating it will result in an entirely different thread** (see [Docs.3box.io](https://Docs.3box.io) for more info). |\r\n| `showCommentCount`    | Integer       |  30   | Optional    | The number of comments rendered in the UI by default on component mount and the number of additional comments revealed after clicking `Load more` in component. |\r\n| `spaceOpts`    | Object       | | Optional    | Optional parameters for threads (see [Docs.3box.io](https://Docs.3box.io) for more info)|\r\n| `threadOpts`    | Object       | | Optional    | Optional parameters for threads (see [Docs.3box.io](https://Docs.3box.io) for more info)|\r\n| `useHovers`    | Boolean       |  False  | Optional    | Pass true to enable a 3Box profile pop up when hovering over a commenter's name |\r\n| `currentUser3BoxProfile`    | Object       |   | Optional    | If the current user has already had their 3Box data fetched at the global dApp state, pass the object returned from `Box.getProfile(profileAddress)` to avoid an extra request.  This data will be rendered in the Comment input interface.|\r\n| `userProfileURL`    | Function       |  Defaults to returning user's 3Box profile URL  | Optional    | A function that returns a correctly formatted URL of a user's profile on the current platform.  The function will be passed an Ethereum address within the component, if needed.  A user will be redirected to the URL returned from this function when clicking on the name or Ethereum address associated with the comment in the thread.|\r\n\r\n## License\r\n\r\nMIT\r\n","gitHead":"359fdb35cb708831611ca0801170a965b8567416","scripts":{"lint":"eslint ./src","test":"npm run lint && npm run coverage","build":"webpack --config webpack.config.babel.js","clean":"rm -rf dist coverage","start":"webpack-dev-server --config examples/webpack.config.live.babel.js","coverage":"jest --coverage","prepublish":"npm run clean && npm run test && npm run build","build-examples":"webpack --config examples/webpack.config.babel.js --progress"},"_npmUser":{"name":"oznekenzo","email":"mkn293@nyu.edu"},"_npmVersion":"6.4.1","description":"Comments component for decentralized applications by 3Box","directories":{},"resolutions":{"babel-core":"7.0.0-bridge.0"},"_nodeVersion":"8.12.0","dependencies":{"3box":"^1.10.10","emoji-js":"^3.4.1","babel-core":"^7.0.0-bridge.0","3id-resolver":"0.0.6","profile-hover":"^1.1.1","react-linkify":"^1.0.0-alpha","@babel/runtime":"^7.6.0","svg-inline-loader":"^0.8.0","ethereum-blockies-base64":"^1.0.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.1.2","react":"^16.6.0","enzyme":"^3.3.0","eslint":"^5.8.0","webpack":"^4.9.1","jest-cli":"^23.6.0","node-sass":"^4.7.2","react-dom":"^16.6.0","babel-jest":"^23.6.0","css-loader":"^1.0.1","prop-types":"^15.6.0","@babel/core":"^7.1.2","sass-loader":"^7.0.1","webpack-cli":"^3.1.2","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","did-resolver":"0.0.7","style-loader":"^0.23.1","@babel/register":"^7.0.0","react-inlinesvg":"^1.1.6","react-hot-loader":"next","@babel/preset-env":"^7.1.0","webpack-dev-server":"^3.1.4","@babel/preset-react":"^7.0.0","eslint-plugin-react":"^7.4.0","react-test-renderer":"^16.0.0","regenerator-runtime":"^0.12.1","clean-webpack-plugin":"^0.1.16","enzyme-adapter-react-16":"^1.1.1","react-addons-test-utils":"^15.5.1","@babel/plugin-proposal-class-properties":"^7.5.5"},"peerDependencies":{"react":">= 16.3.0","react-dom":">= 16.3.0"},"_npmOperationalInternal":{"tmp":"tmp/3box-comments-react_0.0.1-beta.18_1573507056473_0.9292153940936156","host":"s3://npm-registry-packages"}},"0.0.1-beta.19":{"name":"3box-comments-react","version":"0.0.1-beta.19","keywords":["comments","3Box","decentralized","ethereum"],"author":{"name":"3box.io"},"license":"MIT","_id":"3box-comments-react@0.0.1-beta.19","maintainers":[{"name":"oznekenzo","email":"mkn293@nyu.edu"}],"contributors":[{"name":"Kenzo Nakamura","email":"kenzo@nyu.edu"}],"dist":{"shasum":"7b3639d7f77684cf1b4c9fc634a089f29af5baf3","tarball":"https://registry.npmjs.org/3box-comments-react/-/3box-comments-react-0.0.1-beta.19.tgz","fileCount":18,"integrity":"sha512-7WLGEFAkeFwXTymzNm4p/FcoA5hKWHfM3knste3B5byaV76dTL99C9RINFjeByfdArY2ot+erHEsug5FTgHCfg==","signatures":[{"sig":"MEYCIQCFUPUolR/cWQ5f7ZuiXrGhAjxd/3sfrOlLipz/psUQcAIhAICI26ro4JuEFpKjE4rgO9P7+KXY60+nT+6s1C1Py258","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3655299,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdydLHCRA9TVsSAnZWagAA9pUP/1REl4dixC6ks6y9ayVE\ngQJ91hinYnHWu721ICo4ZTmuMliNhKc+K7g8+nbHQZPL9Zhl2hXj02bBJ40T\nsN+hkzOvFOz3rlfi4sy6ndzGZtkIpyQxofSOG/lMu/OsgqUb+JMm2bKGgYz9\noS88z4DK2gXjOaJvzr2NBuaupjXXT8ZgeM4M/8ErU/SJqT5ZERCjqiCfcW81\ndtCu5pcfs0PAXZo8mWQ+oHP7as/lZzqjlyN5sR1bVc2f4K6A4rEh/Twz378i\n8BfHC63//sVgRgJC/vrzyFgkVQU+LyZ4BptBQPFuanqxlg+kZKdarPvp6Kqc\n0fl61F1G9qXXR1kH45vbVs55lw16wndCRfPsmSoN884Ck9hWxObJd/4RbFZc\nxUxkRoVMlINdpsSNU9RCUbWjRxypX/bG6PtRWejRSIhbK9/S4l4hAM3K88rb\nUA/gFKJpwWPqqNS9MUhb96sEL8RxvVH/5o709M5aImU0xrNSjUfmXgn9sN/O\nFmZlPAR9zv2yshHqRf272iMxL+JhOeV3U3cc812JSaQNbBNR/EXbOypRgbX8\nEzZsjVMB0E//jzFPguwM3PhxOovRRVcbmMQEO/P+iNqj4fIZJGWrj647j73S\nN5SUwyx54c/vSOaB7z+W9Z7AO19vCMxbDeR82qaa74a0yPw67atJsxohWcaQ\n8odU\r\n=rZI+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/index.js","gitHead":"c8b28676a53b3a9ddffa55fd0cf3e6db7988bbb6","scripts":{"lint":"eslint ./src","test":"npm run lint && npm run coverage","build":"webpack --config webpack.config.babel.js","clean":"rm -rf dist coverage","start":"webpack-dev-server --config examples/webpack.config.live.babel.js","coverage":"jest --coverage","prepublish":"npm run clean && npm run test && npm run build","build-examples":"webpack --config examples/webpack.config.babel.js --progress"},"_npmUser":{"name":"oznekenzo","email":"mkn293@nyu.edu"},"_npmVersion":"6.4.1","description":"Comments component for decentralized applications by 3Box","directories":{},"resolutions":{"babel-core":"7.0.0-bridge.0"},"_nodeVersion":"8.12.0","dependencies":{"3box":"^1.10.10","emoji-js":"^3.4.1","babel-core":"^7.0.0-bridge.0","3id-resolver":"0.0.6","profile-hover":"^1.1.1","react-linkify":"^1.0.0-alpha","@babel/runtime":"^7.6.0","svg-inline-loader":"^0.8.0","ethereum-blockies-base64":"^1.0.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","react":"^16.6.0","enzyme":"^3.3.0","eslint":"^5.8.0","webpack":"^4.9.1","jest-cli":"^23.6.0","node-sass":"^4.7.2","react-dom":"^16.6.0","babel-jest":"^23.6.0","css-loader":"^1.0.1","prop-types":"^15.6.0","@babel/core":"^7.1.2","sass-loader":"^7.0.1","webpack-cli":"^3.1.2","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","did-resolver":"0.0.7","style-loader":"^0.23.1","@babel/register":"^7.0.0","react-inlinesvg":"^1.1.6","react-hot-loader":"next","@babel/preset-env":"^7.1.0","webpack-dev-server":"^3.1.4","@babel/preset-react":"^7.0.0","eslint-plugin-react":"^7.4.0","react-test-renderer":"^16.0.0","regenerator-runtime":"^0.12.1","clean-webpack-plugin":"^0.1.16","enzyme-adapter-react-16":"^1.1.1","react-addons-test-utils":"^15.5.1","@babel/plugin-proposal-class-properties":"^7.5.5"},"peerDependencies":{"react":">= 16.3.0","react-dom":">= 16.3.0"},"_npmOperationalInternal":{"tmp":"tmp/3box-comments-react_0.0.1-beta.19_1573507783102_0.0878419943682387","host":"s3://npm-registry-packages"}},"0.0.1-beta.20":{"name":"3box-comments-react","version":"0.0.1-beta.20","keywords":["comments","3Box","decentralized","ethereum"],"author":{"name":"3box.io"},"license":"MIT","_id":"3box-comments-react@0.0.1-beta.20","maintainers":[{"name":"oznekenzo","email":"mkn293@nyu.edu"}],"contributors":[{"name":"Kenzo Nakamura","email":"kenzo@nyu.edu"}],"dist":{"shasum":"26d86f85c59810a40cc32850bc71f6d3b70fd075","tarball":"https://registry.npmjs.org/3box-comments-react/-/3box-comments-react-0.0.1-beta.20.tgz","fileCount":18,"integrity":"sha512-gIqNcw7soO8+FhIJOXXEw5lulxLfcEgqf7tG4tEq9Nq07mHUAn+x3i+YIIGAdaXr0DcHTQ6KcbmD5K0FCpAbuA==","signatures":[{"sig":"MEQCICQcGjfDcsLyvl+FEVltSXUrqFWdcXiEO1WY3AM6sMBpAiAbGXMM6k9e84FCPHGzrGODjKQxLuzve4IvgQGx/qK0YA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3655314,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdytqeCRA9TVsSAnZWagAAPnYQAIbnnT07qfsmoIvFw7Qi\nkvwT8I/kW5hFTRlc01M/h5eZXuTinwT+z8tEcfino0svyF6vWUuJ53v1+1Aw\nzuf0Oqkjgum6/dJPTpBV763tIM95Vq5WbLgNjRPvcIGOYpowMyrUJ0WXTiNk\nHrEcFqb0LuF6mfj6eAEBuqZc1hU/MAVVBP89IZ3qI70ICAY0CIxdllH1UTMh\ndUYXeE4QnNlEHHHDu3RCYDbTYS8YBxsWVe09kpjwqDcbru9MQpkDeWEBpD+y\n4so4KlTZPBZOhuP0swah2k7zq/SfJb6EOrZaDDqkV63aPaxFYVkPfUx3OPcF\nHlMkjmCxbLHioSmZDsyWmEORImwF7OaOSFknzo4o8Tm0crstUDkBHmyeOw3P\nWQ08JVOPJJtpWJW+AtUNMhQyWvqJnqt8S9K1d/2sJqk5WR5xGg2q1k2rIYch\n03dEI7308BZIkAl4YA5cAmTeHAbmh/inWD0c24PDyh/ue9C+I2AL4gfh0lyq\nrVmBu/FX9o36URdlIRHsA1nSHBf18N26v1Ha3t2q0yW4m3kES2wFdnb275Ll\nffHCTTarz77T4jWoIVHGAauXd2RNsnNG6yw37Ve5/ZRttgg/JEGCOw1wIhNJ\nWDRiUyLjWcREx0xxYvrSnQYyuQ5BsUAXYDXmpMDwJAZnqE+gAcHUM106qFDy\n8f7C\r\n=QQFF\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/index.js","gitHead":"c6561a815cc8c265569f837b2f24efd002eb7e90","scripts":{"lint":"eslint ./src","test":"npm run lint && npm run coverage","build":"webpack --config webpack.config.babel.js","clean":"rm -rf dist coverage","start":"webpack-dev-server --config examples/webpack.config.live.babel.js","coverage":"jest --coverage","prepublish":"npm run clean && npm run test && npm run build","build-examples":"webpack --config examples/webpack.config.babel.js --progress"},"_npmUser":{"name":"oznekenzo","email":"mkn293@nyu.edu"},"_npmVersion":"6.4.1","description":"Comments component for decentralized applications by 3Box","directories":{},"resolutions":{"babel-core":"7.0.0-bridge.0"},"_nodeVersion":"8.12.0","dependencies":{"3box":"^1.10.10","emoji-js":"^3.4.1","babel-core":"^7.0.0-bridge.0","3id-resolver":"0.0.6","profile-hover":"^1.1.1","react-linkify":"^1.0.0-alpha","@babel/runtime":"^7.6.0","svg-inline-loader":"^0.8.0","ethereum-blockies-base64":"^1.0.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","react":"^16.6.0","enzyme":"^3.3.0","eslint":"^5.8.0","webpack":"^4.9.1","jest-cli":"^23.6.0","node-sass":"^4.7.2","react-dom":"^16.6.0","babel-jest":"^23.6.0","css-loader":"^1.0.1","prop-types":"^15.6.0","@babel/core":"^7.1.2","sass-loader":"^7.0.1","webpack-cli":"^3.1.2","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","did-resolver":"0.0.7","style-loader":"^0.23.1","@babel/register":"^7.0.0","react-inlinesvg":"^1.1.6","react-hot-loader":"next","@babel/preset-env":"^7.1.0","webpack-dev-server":"^3.1.4","@babel/preset-react":"^7.0.0","eslint-plugin-react":"^7.4.0","react-test-renderer":"^16.0.0","regenerator-runtime":"^0.12.1","clean-webpack-plugin":"^0.1.16","enzyme-adapter-react-16":"^1.1.1","react-addons-test-utils":"^15.5.1","@babel/plugin-proposal-class-properties":"^7.5.5"},"peerDependencies":{"react":">= 16.3.0","react-dom":">= 16.3.0"},"_npmOperationalInternal":{"tmp":"tmp/3box-comments-react_0.0.1-beta.20_1573575326243_0.520272407707989","host":"s3://npm-registry-packages"}},"0.0.1-beta.21":{"name":"3box-comments-react","version":"0.0.1-beta.21","keywords":["comments","3Box","decentralized","ethereum"],"author":{"name":"3box.io"},"license":"MIT","_id":"3box-comments-react@0.0.1-beta.21","maintainers":[{"name":"oznekenzo","email":"mkn293@nyu.edu"}],"contributors":[{"name":"Kenzo Nakamura","email":"kenzo@nyu.edu"}],"dist":{"shasum":"03308e36559555a98d4b6eeb17056aff1b4542f9","tarball":"https://registry.npmjs.org/3box-comments-react/-/3box-comments-react-0.0.1-beta.21.tgz","fileCount":47,"integrity":"sha512-YrIn+eO3bdYa4iTk1JzotZ3pR34kLX06ix3Bf12ekI2CwwsGeJlRiv7uoY79Qtq3VKW7I7WDuUyAmw3hlLyhYw==","signatures":[{"sig":"MEYCIQDQrkEc9Nshts3R7YjrjTY0undgC8oAM080kJR8/PqF4QIhAJo4G4HvFhHNVmTCe5cSK3wq3eefYjlK7aXxhkJAO8LQ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":730787,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeE5R/CRA9TVsSAnZWagAAYXcP/0Dob0SLfswBUog3E6DC\nO9PB5G2LM5jORgNhAOBqC/JW4Hb/PVTFGtFAF0khw6gwhPkEb0oojfKthZ/c\neTemJ3C9i+IbCYa4r9QOMpfDWoyEd0ZVVvW6O6PanP4ZzEHQu2dSSRsd8uIR\n8/x7rmPzQd3p8Y9iJ9pXGWiLczAF8F/PnC1CidndosHvmeAXChZ0Uf8zx78c\nIJ3VI4AJY17ucwhgq4/r8J4ooYAObRFbGGffjrLCWBiqlZmcX4hfSbUqksN/\n/kpp07tHEbV84OK5kyKClFkDgRGlWP30XwDyUPjviJYtncDdjWdTLS66sxyy\nb+iltgAOFoOPe7IT77g3dwSVoTQzF8ei15/quoSe8QZ416Yjb4cjxnqpHQvX\nheH3CV9gHBNNCoF2UXFTrWIyAQqnM1PpVhX99B90JDyjPT7EB/EZ0n0Y3UgJ\nkAolZUAK5e0nlXQHKfNcgsdInE29Z9iOf/vHTMqIXLXDsnkJ5OL4nUoHIb+K\nuZMfkp4c3HSRQuFceVEV/8MYnjCJpzILaejo7kSgghw2ujS+35n0bsCN6VRH\ncYkfdo+xpUrAoObKOLxdEIpo7PcoNwKHsWEsATXHaoq8XuW5T7Z+ZZFrGOEs\n8oiTSTxP3pF1GztDF/vZISK8LgKhxg6wR5FNCfqnJ58kBi8QmCxSCkgIIgNw\nEY6Z\r\n=Lh3g\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib/index.js","readme":"[![Discord](https://img.shields.io/discord/484729862368526356.svg?style=for-the-badge)](https://discordapp.com/invite/Z3f3Cxy)\r\n[![npm](https://img.shields.io/npm/v/3box-comments-react.svg?style=for-the-badge)](https://www.npmjs.com/package/3box-comments-react)\r\n[![Twitter Follow](https://img.shields.io/twitter/follow/3boxdb.svg?style=for-the-badge&label=Twitter)](https://twitter.com/3boxdb)\r\n\r\n# 3Box Comments Plugin 💬\r\n\r\n`3box-comments-react` node package is a drop-in react component that provides Web3 developers with a readymade commenting system for their Ethereum application. Easily add rich, decentralized social discourse to your dApp with one line of code. The 3Box Comments plugin is built using 3Box infrastructure, and handles all logic for creating a comments thread. *Read the docs on [docs.3box.io](https://docs.3box.io/build/plugins/comments)*.\r\n\r\n### Try the demo [here](https://3box.github.io/3box-comments-react/examples/dist/)\r\n![Example Screenshot](comments-example-screenshot.png)\r\n</br>\r\n\r\n## How it Works\r\n#### Architecture\r\nThe Comments plugin is built using a standard implementation of [Open Threads](https://docs.3box.io/build/web-apps/messaging/choose#open-threads) which are defined in the [3Box Threads API](https://docs.3box.io/api/messaging) and made available via the [`3Box.js SDK`](https://github.com/3box/3box-js). The Comments plugin also includes UI for inputting and displaying user comments, logic for fetching user profiles, and pagination. The component is configurable to various authentication patterns, and can handle both Web3/3Box logged-in & logged-out states. \r\n\r\n#### Authentication\r\nWithout authenticating, users can read messages in the comment thread. However authentication is required to perform more interactive functionality. After the user is authenticated, a user can post a comment, delete their comment, and receive comments from other users in *real-time*.  Note: if you are not logged in and the component has not been passed your ethereum address, the component cannot know which comment belongs to you in order to delete.  In this case, click the login button just below the input UI.\r\n</br>\r\n</br>\r\n\r\n## Getting Started\r\n1. Install the component\r\n2. Choose your authentication pattern\r\n3. Configure application settings\r\n4. Usage\r\n\r\n### 1. Install the component\r\n\r\n```shell\r\nnpm i -S 3box-comments-react\r\n```\r\n\r\n### 2. Choose your authentication pattern\r\nDepending on *when and how* your dApp handles authentication for web3 and 3Box, you will need to provide a different set of props to the component. Three acceptable authentication patterns and their respective props are discussed below in A-C:\r\n\r\n**A) Dapp handles web3 and 3Box logins, and they run *before* component is mounted. (recommended)**\r\n\r\nDapp integrates with `3Box.js SDK` and the `3box-comments-react` component. In this case, the `box` instance returned from `Box.openBox(ethAddr)` via 3Box.js should be passed to the `box` prop in the comments component. The user's current Ethereum address should be passed to the `currentUserAddr` prop to determine `deletePost` access on each comment.\r\n\r\n**B) Dapp handles web3 and 3Box logins, but they haven't run before component is mounted. (recommended)**\r\n\r\nDapp integrates with `3Box.js SDK` and the `3box-comments-react` component. In this case, the login logic implemented in the dapp should be passed to the Comments component as the `loginFunction` prop, which is run when a user attempts to post a comment. The user's current Ethereum address should be passed to the `currentUserAddr` prop to determine `deletePost` access on each comment.\r\n\r\n**C) Dapp has no web3 and 3Box login logic.**\r\n\r\nDapp only integrates with the `3box-comments-react` component, but not `3Box.js SDK`. All web3 and 3Box login logic will be handled within the Comments component, though it's required for the `ethereum` object from your dapp's preferred web3 provider be passed to the `ethereum` prop in the component.\r\n\r\n#### Best practice\r\n\r\nFor the best UX, we recommend implementing one of the following authentication patterns: A; B; or B with A.\r\n\r\nEach of these patterns allow your application to make the `box` object available in global application state where it can be used by all instances of the Comments component regardless of which page the user is on. This global pattern removes the need for users to authenticate on each individual page they wish to comment on, which would be the case in C.\r\n\r\n### 3. Configure application settings\r\n\r\n**First, choose a name for your application's 3Box space.**\r\n\r\nAlthough you are free to choose whichever name you'd like for your app's space, we recommend using the name of your app. If your application already has a 3Box space, you are welcome to use that same one for comments.\r\n\r\n**Next, choose a naming convention for your application's threads.**\r\n\r\nComment threads need a name, and we recommend that your application creates `threadNames` according to a simple rule. We generally like using a natural identifier, such as community name, page URL, token ID, or other similar means.\r\n\r\n**Then, create an admin 3Box account for your application.**\r\n\r\nEach thread is required to have an admin (`adminEthAddr`), which possesses the rights to moderate the thread. We recommend you create an admin Ethereum account for your application so you can perform these actions. While technically you can use any Ethereum address as an admin account, we recommend [creating a 3Box profile](https://3box.io/hub) for that address so if you need to take action in the thread, others will know and trust you as the admin.\r\n\r\n**Lastly, initialize your application's space.**\r\n\r\nBefore threads can be deployed in your dapp, your application's admin account (`adminEthAddr` created in the previous step) must first open the space (`spaceName`) that will be used to store your application's threads. This step *must* be completed before your comment threads can be used by others. This process would likely be done outside the context of your dapp, probably in a test environment.\r\n\r\nSimply open a space by running (via `3Box.js SDK`): \r\n```\r\nconst box = await Box.openBox(adminEthAddr, ethereum);\r\nconst space = await box.openSpace(spaceName, spaceOpts);\r\n```\r\nSign the web3 prompts to complete the space initialization process.\r\n</br>\r\n</br>\r\n\r\n\r\n### 4. Usage\r\n\r\n#### Example\r\n\r\n```jsx\r\nimport ThreeBoxComments from '3box-comments-react';\r\n\r\nconst MyComponent = ({ handleLogin, box, ethereum, myAddress, currentUser3BoxProfile, adminEthAddr }) => (\r\n    <ThreeBoxComments \r\n        // required\r\n        spaceName=\"mySpaceName\"\r\n        threadName=\"myThreadName\"\r\n        adminEthAddr={adminEthAddr}\r\n\r\n\r\n        // Required props for context A) & B)\r\n        box={box}\r\n        currentUserAddr={myAddress}\r\n\r\n        // Required prop for context B)\r\n        loginFunction={handleLogin}\r\n\r\n        // Required prop for context C)\r\n        ethereum={ethereum}\r\n\r\n        // optional\r\n        members={false}\r\n        showCommentCount={10}\r\n        threadOpts={{}}\r\n        useHovers={false}\r\n        currentUser3BoxProfile={currentUser3BoxProfile}\r\n        userProfileURL={address => `https://mywebsite.com/user/${address}`}\r\n    />\r\n);\r\n```\r\n\r\n\r\n#### Prop Types\r\n\r\n| Property | Type          | Default  | Required Case          | Description |\r\n| :-------------------------------- | :-------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------ | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\r\n| `spaceName`    | String        |    |  Always   | Likely your dApp name and / or comment category.  A single `spaceName` with different `threadName`s is common practice when building a dApp with multiple Comment threads. |\r\n| `threadName`    | String       |   | Always    | A name specific to this Comments thread. |\r\n| `adminEthAddr`    | String (Ethereum Address)       |   | Always    | The Ethereum address you wish to give admin rights to for the Comments thread.  This user will be able to delete all comments and accept members in a members-only thread. **A thread with a new admin address, despite identical `spaceName` and `threadName`, will create an entirely new thread.**|\r\n| `box`    | Object         |   | A (and likely B)    | The `box` instance returned from running `await Box.openBox(address, web3)` somewhere in your dApp.|\r\n| `currentUserAddr`    | String (Ethereum Address)          |    | A & B, optional for C | The current user's Ethereum address. Passing this will help determine whether a user has delete access on each comment.  This prop will also let the component fetch that user's 3Box profile on component mount and render that data (profile picture) in the Comment input UI. |\r\n| `loginFunction`    | Function       |    | B    | A function from your dApp that handles web3 and 3Box login at the global dApp state. This callback will run when a user attempts to save a comment but a `box` instance doesn't yet exist. Running this function should result in a box instance (from `const box = Box.openBox(address, web3)`) being passed as the `box` prop to this component.  |\r\n| `ethereum`    | Object        |  window.ethereum  | C    | The `ethereum` object from whichever web3 provider your dApp uses.  The `enable` method on this object will be used to get the current user's Ethereum address and that address will be used to `openBox` within the current Component context.|\r\n| `members`    | Boolean       |  False   | Optional    | A boolean - `true` - to make the thread a members-only thread. Passing `false` will allow all users to post to the thread.  **Changing this setting after creating it will result in an entirely different thread** (see [Docs.3box.io](https://Docs.3box.io) for more info). |\r\n| `showCommentCount`    | Integer       |  30   | Optional    | The number of comments rendered in the UI by default on component mount and the number of additional comments revealed after clicking `Load more` in component. |\r\n| `spaceOpts`    | Object       | | Optional    | Optional parameters for threads (see [Docs.3box.io](https://Docs.3box.io) for more info)|\r\n| `threadOpts`    | Object       | | Optional    | Optional parameters for threads (see [Docs.3box.io](https://Docs.3box.io) for more info)|\r\n| `useHovers`    | Boolean       |  False  | Optional    | Pass true to enable a 3Box profile pop up when hovering over a commenter's name |\r\n| `currentUser3BoxProfile`    | Object       |   | Optional    | If the current user has already had their 3Box data fetched at the global dApp state, pass the object returned from `Box.getProfile(profileAddress)` to avoid an extra request.  This data will be rendered in the Comment input interface.|\r\n| `userProfileURL`    | Function       |  Defaults to returning user's 3Box profile URL  | Optional    | A function that returns a correctly formatted URL of a user's profile on the current platform.  The function will be passed an Ethereum address within the component, if needed.  A user will be redirected to the URL returned from this function when clicking on the name or Ethereum address associated with the comment in the thread.|\r\n\r\n## License\r\n\r\nMIT\r\n","gitHead":"cb5e34ab5afad31ff694f596116a4d9923dbb860","scripts":{"lint":"eslint ./src","test":"npm run lint && npm run coverage","build":"webpack --config webpack.config.babel.js","clean":"rm -rf dist coverage","start":"webpack-dev-server --config examples/webpack.config.live.babel.js","coverage":"jest --coverage","build:es5":"rm -rf ./lib; ./node_modules/.bin/babel src --out-dir lib --source-maps inline --copy-files --ignore=src/__tests__/,src/__mocks__/","prepublish":"npm run clean && npm run test && npm run build","build-examples":"webpack --config examples/webpack.config.babel.js --progress"},"_npmUser":{"name":"oznekenzo","email":"mkn293@nyu.edu"},"_npmVersion":"6.4.1","description":"Comments component for decentralized applications by 3Box","directories":{},"resolutions":{"babel-core":"7.0.0-bridge.0"},"_nodeVersion":"8.12.0","dependencies":{"3box":"^1.10.10","emoji-js":"^3.4.1","babel-core":"^7.0.0-bridge.0","3id-resolver":"0.0.6","profile-hover":"^1.1.1","react-linkify":"^1.0.0-alpha","@babel/runtime":"^7.6.0","svg-inline-loader":"^0.8.0","ethereum-blockies-base64":"^1.0.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.1.2","react":"^16.6.0","enzyme":"^3.3.0","eslint":"^5.8.0","webpack":"^4.9.1","jest-cli":"^23.6.0","node-sass":"^4.7.2","react-dom":"^16.6.0","@babel/cli":"^7.7.7","babel-jest":"^23.6.0","css-loader":"^1.0.1","prop-types":"^15.6.0","@babel/core":"^7.1.2","sass-loader":"^7.0.1","webpack-cli":"^3.1.2","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","did-resolver":"0.0.7","style-loader":"^0.23.1","@babel/register":"^7.0.0","react-inlinesvg":"^1.1.6","react-hot-loader":"next","@babel/preset-env":"^7.1.0","webpack-dev-server":"^3.1.4","@babel/preset-react":"^7.0.0","eslint-plugin-react":"^7.4.0","react-test-renderer":"^16.0.0","regenerator-runtime":"^0.12.1","clean-webpack-plugin":"^0.1.16","enzyme-adapter-react-16":"^1.1.1","react-addons-test-utils":"^15.5.1","@babel/plugin-proposal-class-properties":"^7.5.5"},"peerDependencies":{"react":">= 16.3.0","react-dom":">= 16.3.0"},"_npmOperationalInternal":{"tmp":"tmp/3box-comments-react_0.0.1-beta.21_1578341502958_0.9637712430436658","host":"s3://npm-registry-packages"}},"0.0.2":{"name":"3box-comments-react","version":"0.0.2","keywords":["comments","3Box","decentralized","ethereum"],"author":{"name":"3box.io"},"license":"MIT","_id":"3box-comments-react@0.0.2","maintainers":[{"name":"oznekenzo","email":"mkn293@nyu.edu"}],"contributors":[{"name":"Kenzo Nakamura","email":"kenzo@nyu.edu"}],"dist":{"shasum":"40be252ba439fe65c87fc4166104fb3c1743a1b8","tarball":"https://registry.npmjs.org/3box-comments-react/-/3box-comments-react-0.0.2.tgz","fileCount":48,"integrity":"sha512-foZQObLF2viGRTtdD3cr2s0IpTGPlZ6fWwanAKQa1+8JHXCBw7E7QCV7TSRU5guTaRxxX+Uylp1yzj5YE5/Ofw==","signatures":[{"sig":"MEUCIQC4gYWlS2V7Ua1ZFKnrKsgsPOQKCrOcJh7/OEOoSmQcbwIgYX8TMuZU5sjv14xeOQjls05OdwmaXPmWgDP1VrxElrs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":730852,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeE5bECRA9TVsSAnZWagAATmwP/2g4ELjDwZwC7VhLxpA0\nJmPYjELSQwN7Ga1wl4Lz6QqB68sNOKGUqqTr6emrAiZnaxxgge1oupR5F8fB\nhhAzExavEkk2JWYnMQEA91Fazy5U+qKRDUmuWKmmbsSiJ2GNjsSH6/Mc0BgI\nsA0zJszDVQdfKOySFQ4Bc+4/PEgU9nHI0Uz7jVl2qNhgZPdmuthgh6YepsTr\nBq7Ntkmu/b5+yVYvfLVgM2xfb7tYiXEZ+M9zDClNomCxnrAt+5nroKkviZMd\nPog7eSr3DZ3HghlXDdtfCt0BkefW6MB3hJEOHpLfc9X737ey4Znc1zPgdiAR\nTksRXq00kosFdroXItGsTT2CqxdpaDyEkZZO0nurkJJhhCjZ2jwRSPuSxplg\n2bE1qPwLeuqjEIK+AkD5boUzitREqOlfPw6CtCYh7leCwuuG3K14englgcRj\nOUJW6jtyYS6W660ylb1SYncMt/nWFf6lKPevTf2CX72LlqFzcV+r3PUnNmsI\n8x7qhjUFQtS8PZurnLwGHVpPy/ILL7lEcgTgZgf/MMeHFo9H+8AxnImTcRSi\ncD3nFAHsQK4hX4HpJRk/KhJrnsDJWOKZNiGXRfVjQBC0qSC0Q/coykfsxrFs\nnQba5wxOm/ska7/oLSuI/TcOrV+vJTbDuZ5sslXaISv16+8nHM/pnLwV7qch\n0m3F\r\n=htGB\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib/index.js","gitHead":"cb5e34ab5afad31ff694f596116a4d9923dbb860","scripts":{"lint":"eslint ./src","test":"npm run lint && npm run coverage","build":"webpack --config webpack.config.babel.js","clean":"rm -rf dist coverage","start":"webpack-dev-server --config examples/webpack.config.live.babel.js","coverage":"jest --coverage","build:es5":"rm -rf ./lib; ./node_modules/.bin/babel src --out-dir lib --source-maps inline --copy-files --ignore=src/__tests__/,src/__mocks__/","prepublish":"npm run clean && npm run test && npm run build","build-examples":"webpack --config examples/webpack.config.babel.js --progress"},"_npmUser":{"name":"oznekenzo","email":"mkn293@nyu.edu"},"deprecated":"Deprecated in favor of Ceramic: https://developers.ceramic.network","_npmVersion":"6.4.1","description":"Comments component for decentralized applications by 3Box","directories":{},"resolutions":{"babel-core":"7.0.0-bridge.0"},"_nodeVersion":"8.12.0","dependencies":{"3box":"^1.10.10","emoji-js":"^3.4.1","babel-core":"^7.0.0-bridge.0","3id-resolver":"0.0.6","profile-hover":"^1.1.1","react-linkify":"^1.0.0-alpha","@babel/runtime":"^7.6.0","svg-inline-loader":"^0.8.0","ethereum-blockies-base64":"^1.0.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","react":"^16.6.0","enzyme":"^3.3.0","eslint":"^5.8.0","webpack":"^4.9.1","jest-cli":"^23.6.0","node-sass":"^4.7.2","react-dom":"^16.6.0","@babel/cli":"^7.7.7","babel-jest":"^23.6.0","css-loader":"^1.0.1","prop-types":"^15.6.0","@babel/core":"^7.1.2","sass-loader":"^7.0.1","webpack-cli":"^3.1.2","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","did-resolver":"0.0.7","style-loader":"^0.23.1","@babel/register":"^7.0.0","react-inlinesvg":"^1.1.6","react-hot-loader":"next","@babel/preset-env":"^7.1.0","webpack-dev-server":"^3.1.4","@babel/preset-react":"^7.0.0","eslint-plugin-react":"^7.4.0","react-test-renderer":"^16.0.0","regenerator-runtime":"^0.12.1","clean-webpack-plugin":"^0.1.16","enzyme-adapter-react-16":"^1.1.1","react-addons-test-utils":"^15.5.1","@babel/plugin-proposal-class-properties":"^7.5.5"},"peerDependencies":{"react":">= 16.3.0","react-dom":">= 16.3.0"},"_npmOperationalInternal":{"tmp":"tmp/3box-comments-react_0.0.2_1578342083720_0.8670951016832504","host":"s3://npm-registry-packages"}},"0.0.3":{"name":"3box-comments-react","version":"0.0.3","keywords":["comments","3Box","decentralized","ethereum"],"author":{"name":"3box.io"},"license":"MIT","_id":"3box-comments-react@0.0.3","maintainers":[{"name":"oznekenzo","email":"mkn293@nyu.edu"}],"contributors":[{"name":"Kenzo Nakamura","email":"kenzo@nyu.edu"}],"dist":{"shasum":"3ee8bd3daba7df10ae5c65993a0d65a36c33d672","tarball":"https://registry.npmjs.org/3box-comments-react/-/3box-comments-react-0.0.3.tgz","fileCount":48,"integrity":"sha512-tWJ1gWOO0dO2uSs29Vc0cyvxCQzHpxFnhqpJ00HespggFwN5KCPBxWKEjo9RZsp7K4s8vKqEy2RlT3b55FXA7w==","signatures":[{"sig":"MEYCIQDsmNd8NcU/dSrjWqDdrxqHC2oWZI5HYwnGosvgbtLB6gIhAMECY4PEcW9gHtp6AechsxWsCfMZak3u6pN3F+D5lVr8","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":730937,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeF6aFCRA9TVsSAnZWagAA6MIP/0iG15PHGTicaMYcWuDC\nT2WPqsvfRipCp/ymjBE+F3WKXCbe/FRh6T8mUB1uzofUM5bvXCl/Za3gdv4z\nKk2vvtFDaZRbfYtO6clS5S9W6XVeuTSkh1JqeKqeAIlZfsxqNidqqKaLNSCF\nY+41TDAEsjFUUaf4KvkVG9136yBDwixL9gpMFM17MPvla8Ba2Kl9O7+QD1a3\nszK9RWWYNYD3qDSkmKdtzF/STizo05SbaunvBdlzb1FOk1SlaTBMnvKtVWJw\nRZ+0Brjv7f+xQ+1PmzbTJ6hJsmUVJqBRZ0oI6h449+Sm+wQV+BD8exbDIXLr\nmjmdZyISSWvMFa6mDat2hSXIyXYXLuAlfOGnNIzorjAzFT4mpRpkEORSITtE\nWK0i9ro98eO3QTA+lnWQby4U16ggUdDQUGOMhFKo2zK53ReySPXELhKtFhSb\nwWwrQVJ1X9LYgcAzKrSGVa+DaAMKfP0FhBCFTKNjU0ZP7noqkxLNkwN6/Jmg\nUEpdEVfCcAXZ3xbcOl1J/OOCVfBWRTjehWHIRQah+z37yqKPVX0fKK7Csih1\n82k3giAHiZXYY4wIhDNgozLO+Eye3RlirwRvvOOa7MO3QEdPqzdW60SYubmz\nnTIETRrqOVwuLl17bpqNKsAEz/i7E+1r0nkRxaeqzSLoK/imfrKp9Py8hcEj\nJ4BS\r\n=bWk3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib/index.js","gitHead":"87a5f1b7d2943cb6eac8d3894b03318d07878aa1","scripts":{"lint":"eslint ./src","test":"npm run lint && npm run coverage","build":"webpack --config webpack.config.babel.js","clean":"rm -rf dist coverage","start":"webpack-dev-server --config examples/webpack.config.live.babel.js","coverage":"jest --coverage","build:es5":"rm -rf ./lib; ./node_modules/.bin/babel src --out-dir lib --source-maps inline --copy-files --ignore=src/__tests__/,src/__mocks__/","prepublish":"npm run clean && npm run test && npm run build","build-examples":"webpack --config examples/webpack.config.babel.js --progress"},"_npmUser":{"name":"oznekenzo","email":"mkn293@nyu.edu"},"deprecated":"Deprecated in favor of Ceramic: https://developers.ceramic.network","_npmVersion":"6.4.1","description":"Comments component for decentralized applications by 3Box","directories":{},"resolutions":{"babel-core":"7.0.0-bridge.0"},"_nodeVersion":"8.12.0","dependencies":{"3box":"^1.10.10","emoji-js":"^3.4.1","babel-core":"^7.0.0-bridge.0","3id-resolver":"0.0.6","profile-hover":"^1.1.1","react-linkify":"^1.0.0-alpha","@babel/runtime":"^7.6.0","react-inlinesvg":"^1.2.0","svg-inline-loader":"^0.8.0","ethereum-blockies-base64":"^1.0.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","react":"^16.6.0","enzyme":"^3.3.0","eslint":"^5.8.0","webpack":"^4.9.1","jest-cli":"^23.6.0","node-sass":"^4.7.2","react-dom":"^16.6.0","@babel/cli":"^7.7.7","babel-jest":"^23.6.0","css-loader":"^1.0.1","prop-types":"^15.6.0","@babel/core":"^7.1.2","sass-loader":"^7.0.1","webpack-cli":"^3.1.2","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","did-resolver":"0.0.7","style-loader":"^0.23.1","@babel/register":"^7.0.0","react-hot-loader":"next","@babel/preset-env":"^7.1.0","webpack-dev-server":"^3.1.4","@babel/preset-react":"^7.0.0","eslint-plugin-react":"^7.4.0","react-test-renderer":"^16.0.0","regenerator-runtime":"^0.12.1","clean-webpack-plugin":"^0.1.16","enzyme-adapter-react-16":"^1.1.1","react-addons-test-utils":"^15.5.1","@babel/plugin-proposal-class-properties":"^7.5.5"},"peerDependencies":{"react":">= 16.3.0","react-dom":">= 16.3.0"},"_npmOperationalInternal":{"tmp":"tmp/3box-comments-react_0.0.3_1578608261228_0.525745606376818","host":"s3://npm-registry-packages"}},"0.0.4":{"name":"3box-comments-react","version":"0.0.4","keywords":["comments","3Box","decentralized","ethereum"],"author":{"name":"3box.io"},"license":"MIT","_id":"3box-comments-react@0.0.4","maintainers":[{"name":"oznekenzo","email":"mkn293@nyu.edu"}],"contributors":[{"name":"Kenzo Nakamura","email":"kenzo@nyu.edu"}],"dist":{"shasum":"a0db5f64f16f9dfa4d5b6c07ef24dd61aa1ac580","tarball":"https://registry.npmjs.org/3box-comments-react/-/3box-comments-react-0.0.4.tgz","fileCount":48,"integrity":"sha512-gJqEvS0jnxvp9YHkTDXIiKzLNBRX78aI8Go18hSHPOJOnS1CChnghKrKNAFA0snpvhiBFZ/gDlRXz1iAx5Yl3A==","signatures":[{"sig":"MEUCIQDJXnPeIU/DTcPyQ0lbDCSBhkf63bGnfNJQqpqSfKfpqQIgShYxs2zz0n8SLrwWFxASDNboFJxfBXksa3ogKcWechA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":730980,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeGI87CRA9TVsSAnZWagAAD0kP+gI7DxJdRLyvTzXr0DNn\nBBXQ50iFGvyJ1OSIPozQBYHEwB4ArehRxwWsUdbt/bTW2Zsa5LOplTBYGcaz\nyl0C4WZZBi0OCAcMUR4PZnmO9Ra08Rqf0lzbL1Edv3AhCHnBuZwnc1Zj2UoR\nllWt52NdWvAZCebuTUrea4c7nQoxniNELhJPSkryKgSvk9pLYKdz1sFdXTGW\nGm90ebngIo1qvbFOwoLvKSn1PtFcIBa32lpe7jz/O4at005wmsR2glVXWoa7\nsUdm5dhbIFURSibBGeKp2aMxAI23sCZLF85449szwl9ybK2Q05Go/jdxuxHX\n5Kxz/clHUsq9LpvNSJc/szszT7gDS6AHhcNqS37e9cEbVy+EPU8aapnL0V7J\nfKX6wa70um4JoslpVdh5XsOTOiaP17lpo6XAiMmTvjQmtkbyiQ51SiQhPbOp\nlSvINgrM+5Dd+9kaD3wyH4FGwFZPUQwfkXUNNZmz7o+p/M0Tt1OgnfSEBUdG\ntNqsSXoJDDpapsmmIXCZd5Jn57B9ht1mHlmXIPgXO+FXK0YjQxkdw0kmKn0K\nhd8OvrZzcLSaIj8RbUV/RqlKoMcqrrQJsawS3vVNWHAsH5PeuQrml6aQjHom\nH0MLlJfZnjruNWj4ORKn4rH87PmwvyHAglNs3fqcgabLvLamAYHSVxG4mjSM\n9SGu\r\n=tI58\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib/index.js","readme":"[![Discord](https://img.shields.io/discord/484729862368526356.svg?style=for-the-badge)](https://discordapp.com/invite/Z3f3Cxy)\r\n[![npm](https://img.shields.io/npm/v/3box-comments-react.svg?style=for-the-badge)](https://www.npmjs.com/package/3box-comments-react)\r\n[![Twitter Follow](https://img.shields.io/twitter/follow/3boxdb.svg?style=for-the-badge&label=Twitter)](https://twitter.com/3boxdb)\r\n\r\n# 3Box Comments Plugin 💬\r\n\r\n`3box-comments-react` node package is a drop-in react component that provides Web3 developers with a readymade commenting system for their Ethereum application. Easily add rich, decentralized social discourse to your dApp with one line of code. The 3Box Comments plugin is built using 3Box infrastructure, and handles all logic for creating a comments thread. *Read the docs on [docs.3box.io](https://docs.3box.io/build/plugins/comments)*.\r\n\r\n### Try the demo [here](https://3box.github.io/3box-comments-react/examples/dist/)\r\n![Example Screenshot](comments-example-screenshot.png)\r\n</br>\r\n\r\n## How it Works\r\n#### Architecture\r\nThe Comments plugin is built using a standard implementation of [Open Threads](https://docs.3box.io/build/web-apps/messaging/choose#open-threads) which are defined in the [3Box Threads API](https://docs.3box.io/api/messaging) and made available via the [`3Box.js SDK`](https://github.com/3box/3box-js). The Comments plugin also includes UI for inputting and displaying user comments, logic for fetching user profiles, and pagination. The component is configurable to various authentication patterns, and can handle both Web3/3Box logged-in & logged-out states. \r\n\r\n#### Authentication\r\nWithout authenticating, users can read messages in the comment thread. However authentication is required to perform more interactive functionality. After the user is authenticated, a user can post a comment, delete their comment, and receive comments from other users in *real-time*.  Note: if you are not logged in and the component has not been passed your ethereum address, the component cannot know which comment belongs to you in order to delete.  In this case, click the login button just below the input UI.\r\n</br>\r\n</br>\r\n\r\n## Getting Started\r\n1. Install the component\r\n2. Choose your authentication pattern\r\n3. Configure application settings\r\n4. Usage\r\n\r\n### 1. Install the component\r\n\r\n```shell\r\nnpm i -S 3box-comments-react\r\n```\r\n\r\n### 2. Choose your authentication pattern\r\nDepending on *when and how* your dApp handles authentication for web3 and 3Box, you will need to provide a different set of props to the component. Three acceptable authentication patterns and their respective props are discussed below in A-C:\r\n\r\n**A) Dapp handles web3 and 3Box logins, and they run *before* component is mounted. (recommended)**\r\n\r\nDapp integrates with `3Box.js SDK` and the `3box-comments-react` component. In this case, the `box` instance returned from `Box.openBox(ethAddr)` via 3Box.js should be passed to the `box` prop in the comments component. The user's current Ethereum address should be passed to the `currentUserAddr` prop to determine `deletePost` access on each comment.\r\n\r\n**B) Dapp handles web3 and 3Box logins, but they haven't run before component is mounted. (recommended)**\r\n\r\nDapp integrates with `3Box.js SDK` and the `3box-comments-react` component. In this case, the login logic implemented in the dapp should be passed to the Comments component as the `loginFunction` prop, which is run when a user attempts to post a comment. The user's current Ethereum address should be passed to the `currentUserAddr` prop to determine `deletePost` access on each comment.\r\n\r\n**C) Dapp has no web3 and 3Box login logic.**\r\n\r\nDapp only integrates with the `3box-comments-react` component, but not `3Box.js SDK`. All web3 and 3Box login logic will be handled within the Comments component, though it's required for the `ethereum` object from your dapp's preferred web3 provider be passed to the `ethereum` prop in the component.\r\n\r\n#### Best practice\r\n\r\nFor the best UX, we recommend implementing one of the following authentication patterns: A; B; or B with A.\r\n\r\nEach of these patterns allow your application to make the `box` object available in global application state where it can be used by all instances of the Comments component regardless of which page the user is on. This global pattern removes the need for users to authenticate on each individual page they wish to comment on, which would be the case in C.\r\n\r\n### 3. Configure application settings\r\n\r\n**First, choose a name for your application's 3Box space.**\r\n\r\nAlthough you are free to choose whichever name you'd like for your app's space, we recommend using the name of your app. If your application already has a 3Box space, you are welcome to use that same one for comments.\r\n\r\n**Next, choose a naming convention for your application's threads.**\r\n\r\nComment threads need a name, and we recommend that your application creates `threadNames` according to a simple rule. We generally like using a natural identifier, such as community name, page URL, token ID, or other similar means.\r\n\r\n**Then, create an admin 3Box account for your application.**\r\n\r\nEach thread is required to have an admin (`adminEthAddr`), which possesses the rights to moderate the thread. We recommend you create an admin Ethereum account for your application so you can perform these actions. While technically you can use any Ethereum address as an admin account, we recommend [creating a 3Box profile](https://3box.io/hub) for that address so if you need to take action in the thread, others will know and trust you as the admin.\r\n\r\n**Lastly, initialize your application's space.**\r\n\r\nBefore threads can be deployed in your dapp, your application's admin account (`adminEthAddr` created in the previous step) must first open the space (`spaceName`) that will be used to store your application's threads. This step *must* be completed before your comment threads can be used by others. This process would likely be done outside the context of your dapp, probably in a test environment.\r\n\r\nSimply open a space by running (via `3Box.js SDK`): \r\n```\r\nconst box = await Box.openBox(adminEthAddr, ethereum);\r\nconst space = await box.openSpace(spaceName, spaceOpts);\r\n```\r\nSign the web3 prompts to complete the space initialization process.\r\n</br>\r\n</br>\r\n\r\n\r\n### 4. Usage\r\n\r\n#### Example\r\n\r\n```jsx\r\nimport ThreeBoxComments from '3box-comments-react';\r\n\r\nconst MyComponent = ({ handleLogin, box, ethereum, myAddress, currentUser3BoxProfile, adminEthAddr }) => (\r\n    <ThreeBoxComments \r\n        // required\r\n        spaceName=\"mySpaceName\"\r\n        threadName=\"myThreadName\"\r\n        adminEthAddr={adminEthAddr}\r\n\r\n\r\n        // Required props for context A) & B)\r\n        box={box}\r\n        currentUserAddr={myAddress}\r\n\r\n        // Required prop for context B)\r\n        loginFunction={handleLogin}\r\n\r\n        // Required prop for context C)\r\n        ethereum={ethereum}\r\n\r\n        // optional\r\n        members={false}\r\n        showCommentCount={10}\r\n        threadOpts={{}}\r\n        useHovers={false}\r\n        currentUser3BoxProfile={currentUser3BoxProfile}\r\n        userProfileURL={address => `https://mywebsite.com/user/${address}`}\r\n    />\r\n);\r\n```\r\n\r\n\r\n#### Prop Types\r\n\r\n| Property | Type          | Default  | Required Case          | Description |\r\n| :-------------------------------- | :-------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------ | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\r\n| `spaceName`    | String        |    |  Always   | Likely your dApp name and / or comment category.  A single `spaceName` with different `threadName`s is common practice when building a dApp with multiple Comment threads. |\r\n| `threadName`    | String       |   | Always    | A name specific to this Comments thread. |\r\n| `adminEthAddr`    | String (Ethereum Address)       |   | Always    | The Ethereum address you wish to give admin rights to for the Comments thread.  This user will be able to delete all comments and accept members in a members-only thread. **A thread with a new admin address, despite identical `spaceName` and `threadName`, will create an entirely new thread.**|\r\n| `box`    | Object         |   | A (and likely B)    | The `box` instance returned from running `await Box.openBox(address, web3)` somewhere in your dApp.|\r\n| `currentUserAddr`    | String (Ethereum Address)          |    | A & B, optional for C | The current user's Ethereum address. Passing this will help determine whether a user has delete access on each comment.  This prop will also let the component fetch that user's 3Box profile on component mount and render that data (profile picture) in the Comment input UI. |\r\n| `loginFunction`    | Function       |    | B    | A function from your dApp that handles web3 and 3Box login at the global dApp state. This callback will run when a user attempts to save a comment but a `box` instance doesn't yet exist. Running this function should result in a box instance (from `const box = Box.openBox(address, web3)`) being passed as the `box` prop to this component.  |\r\n| `ethereum`    | Object        |  window.ethereum  | C    | The `ethereum` object from whichever web3 provider your dApp uses.  The `enable` method on this object will be used to get the current user's Ethereum address and that address will be used to `openBox` within the current Component context.|\r\n| `members`    | Boolean       |  False   | Optional    | A boolean - `true` - to make the thread a members-only thread. Passing `false` will allow all users to post to the thread.  **Changing this setting after creating it will result in an entirely different thread** (see [Docs.3box.io](https://Docs.3box.io) for more info). |\r\n| `showCommentCount`    | Integer       |  30   | Optional    | The number of comments rendered in the UI by default on component mount and the number of additional comments revealed after clicking `Load more` in component. |\r\n| `spaceOpts`    | Object       | | Optional    | Optional parameters for threads (see [Docs.3box.io](https://Docs.3box.io) for more info)|\r\n| `threadOpts`    | Object       | | Optional    | Optional parameters for threads (see [Docs.3box.io](https://Docs.3box.io) for more info)|\r\n| `useHovers`    | Boolean       |  False  | Optional    | Pass true to enable a 3Box profile pop up when hovering over a commenter's name |\r\n| `currentUser3BoxProfile`    | Object       |   | Optional    | If the current user has already had their 3Box data fetched at the global dApp state, pass the object returned from `Box.getProfile(profileAddress)` to avoid an extra request.  This data will be rendered in the Comment input interface.|\r\n| `userProfileURL`    | Function       |  Defaults to returning user's 3Box profile URL  | Optional    | A function that returns a correctly formatted URL of a user's profile on the current platform.  The function will be passed an Ethereum address within the component, if needed.  A user will be redirected to the URL returned from this function when clicking on the name or Ethereum address associated with the comment in the thread.|\r\n\r\n## License\r\n\r\nMIT\r\n","gitHead":"2dabf8f227b5010fcbd06150a2e574ae210570c5","scripts":{"lint":"eslint ./src","test":"npm run lint && npm run coverage","build":"webpack --config webpack.config.babel.js","clean":"rm -rf dist coverage","start":"webpack-dev-server --config examples/webpack.config.live.babel.js","coverage":"jest --coverage","build:es5":"rm -rf ./lib; ./node_modules/.bin/babel src --out-dir lib --source-maps inline --copy-files --ignore=src/__tests__/,src/__mocks__/","prepublish":"npm run clean && npm run test && npm run build","build-examples":"webpack --config examples/webpack.config.babel.js --progress"},"_npmUser":{"name":"oznekenzo","email":"mkn293@nyu.edu"},"deprecated":"Deprecated in favor of Ceramic: https://developers.ceramic.network","_npmVersion":"6.4.1","description":"Comments component for decentralized applications by 3Box","directories":{},"resolutions":{"babel-core":"7.0.0-bridge.0"},"_nodeVersion":"8.12.0","dependencies":{"3box":"^1.16.0-beta.3","emoji-js":"^3.4.1","babel-core":"^7.0.0-bridge.0","multicodec":"^0.5.6","3id-resolver":"0.0.6","profile-hover":"^1.1.1","react-linkify":"^1.0.0-alpha","@babel/runtime":"^7.6.0","react-inlinesvg":"^1.2.0","svg-inline-loader":"^0.8.0","ethereum-blockies-base64":"^1.0.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.1.2","react":"^16.6.0","enzyme":"^3.3.0","eslint":"^5.8.0","webpack":"^4.9.1","jest-cli":"^23.6.0","node-sass":"^4.7.2","react-dom":"^16.6.0","@babel/cli":"^7.7.7","babel-jest":"^23.6.0","css-loader":"^1.0.1","prop-types":"^15.6.0","@babel/core":"^7.1.2","sass-loader":"^7.0.1","webpack-cli":"^3.1.2","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","did-resolver":"0.0.7","style-loader":"^0.23.1","@babel/register":"^7.0.0","react-hot-loader":"next","@babel/preset-env":"^7.1.0","webpack-dev-server":"^3.1.4","@babel/preset-react":"^7.0.0","eslint-plugin-react":"^7.4.0","react-test-renderer":"^16.0.0","regenerator-runtime":"^0.12.1","clean-webpack-plugin":"^0.1.16","enzyme-adapter-react-16":"^1.1.1","react-addons-test-utils":"^15.5.1","@babel/plugin-proposal-class-properties":"^7.5.5"},"peerDependencies":{"react":">= 16.3.0","react-dom":">= 16.3.0"},"_npmOperationalInternal":{"tmp":"tmp/3box-comments-react_0.0.4_1578667835201_0.5207462596831864","host":"s3://npm-registry-packages"}},"0.0.5":{"name":"3box-comments-react","version":"0.0.5","keywords":["comments","3Box","decentralized","ethereum"],"author":{"name":"3box.io"},"license":"MIT","_id":"3box-comments-react@0.0.5","maintainers":[{"name":"oznekenzo","email":"mkn293@nyu.edu"}],"contributors":[{"name":"Kenzo Nakamura","email":"kenzo@nyu.edu"}],"dist":{"shasum":"8a46ead156fa99d26407a4d83892cad6a4ab589c","tarball":"https://registry.npmjs.org/3box-comments-react/-/3box-comments-react-0.0.5.tgz","fileCount":47,"integrity":"sha512-mpyDvPmEUtgo7uOf4cwEFXx9U48LYNG3hv/FPYC5nVq4QRJGfoVUjlDI3JUHUO4EMViM6IB199guv31Sx0yWbg==","signatures":[{"sig":"MEQCIG4ESrOuuxmPHLTQAFWcfBjyJSaWVITd2Vh9RLozW98yAiBfpK9RPzZeqgbtWzw4JBpGnv4aZ/aQ2U5Z+vFDMJqZWA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":725178,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeGJIaCRA9TVsSAnZWagAA4SkP/1xJkZvcCFioQEnqEyg0\nItoV0Rj79HqkYdST30v6kYCkTOpqWdumx2Atk3pCeaPbtjquuDbvezI2uX2j\nib7EvMv6dqHU/kkl8Y2BVYFjcnhNO7nn+pElz5PE0RwHY3mxec0SAGVUIGd7\nTr+t+BbCxfcGhooRLBuVGmo2ClgHQX3I/vv53EVzts5C7YNpg1BmbIExmN3f\nUfNHxUc+IcVyAQS1H6MBIbz0F5VuviBANRmTDxCbtxzSM2+zlWHfGbjGG2M7\na7fI0hKhF6vzInbpU8dygsEfAIoUIlXWjT7T+NckcQ6gE0+ILgRHjjGfZzr0\neiR1wI7/aUMdMTqrHelr6DYUqz5DJfcvVkGdcJPOtA7p206XRqEjpgStzKL3\nkrUoXRba/vXeoJ02JmCLkuXtKVH6ezUfXTf1tDgeBiZrbLcRIYzmWqwl+QYL\nJX3qDK1OFz3/2vHa+THkUI9tJTe5SXL9Hm0wtD7kzFXEtn1mMMaJvvKn2IYp\nh3z9kecZtSz9aNMMxIa47wLWuvsVBCSRelg5qFtOofoHhVn57gTUU/8F7z2M\n+RN/564NFNoJXY1SeaTwngFqnfAxIfsWt2lo+prDsrLGLJyaxKvkncjgexRk\nGY/jfGtQxmKCazeseya9wyyu/1M0TFBVzrDNqMeO3t7IKP0lnpLmw/Wk+9vq\nV+AS\r\n=ZpGk\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib/index.js","readme":"[![Discord](https://img.shields.io/discord/484729862368526356.svg?style=for-the-badge)](https://discordapp.com/invite/Z3f3Cxy)\r\n[![npm](https://img.shields.io/npm/v/3box-comments-react.svg?style=for-the-badge)](https://www.npmjs.com/package/3box-comments-react)\r\n[![Twitter Follow](https://img.shields.io/twitter/follow/3boxdb.svg?style=for-the-badge&label=Twitter)](https://twitter.com/3boxdb)\r\n\r\n# 3Box Comments Plugin 💬\r\n\r\n`3box-comments-react` node package is a drop-in react component that provides Web3 developers with a readymade commenting system for their Ethereum application. Easily add rich, decentralized social discourse to your dApp with one line of code. The 3Box Comments plugin is built using 3Box infrastructure, and handles all logic for creating a comments thread. *Read the docs on [docs.3box.io](https://docs.3box.io/build/plugins/comments)*.\r\n\r\n### Try the demo [here](https://3box.github.io/3box-comments-react/examples/dist/)\r\n![Example Screenshot](comments-example-screenshot.png)\r\n</br>\r\n\r\n## How it Works\r\n#### Architecture\r\nThe Comments plugin is built using a standard implementation of [Open Threads](https://docs.3box.io/build/web-apps/messaging/choose#open-threads) which are defined in the [3Box Threads API](https://docs.3box.io/api/messaging) and made available via the [`3Box.js SDK`](https://github.com/3box/3box-js). The Comments plugin also includes UI for inputting and displaying user comments, logic for fetching user profiles, and pagination. The component is configurable to various authentication patterns, and can handle both Web3/3Box logged-in & logged-out states. \r\n\r\n#### Authentication\r\nWithout authenticating, users can read messages in the comment thread. However authentication is required to perform more interactive functionality. After the user is authenticated, a user can post a comment, delete their comment, and receive comments from other users in *real-time*.  Note: if you are not logged in and the component has not been passed your ethereum address, the component cannot know which comment belongs to you in order to delete.  In this case, click the login button just below the input UI.\r\n</br>\r\n</br>\r\n\r\n## Getting Started\r\n1. Install the component\r\n2. Choose your authentication pattern\r\n3. Configure application settings\r\n4. Usage\r\n\r\n### 1. Install the component\r\n\r\n```shell\r\nnpm i -S 3box-comments-react\r\n```\r\n\r\n### 2. Choose your authentication pattern\r\nDepending on *when and how* your dApp handles authentication for web3 and 3Box, you will need to provide a different set of props to the component. Three acceptable authentication patterns and their respective props are discussed below in A-C:\r\n\r\n**A) Dapp handles web3 and 3Box logins, and they run *before* component is mounted. (recommended)**\r\n\r\nDapp integrates with `3Box.js SDK` and the `3box-comments-react` component. In this case, the `box` instance returned from `Box.openBox(ethAddr)` via 3Box.js should be passed to the `box` prop in the comments component. The user's current Ethereum address should be passed to the `currentUserAddr` prop to determine `deletePost` access on each comment.\r\n\r\n**B) Dapp handles web3 and 3Box logins, but they haven't run before component is mounted. (recommended)**\r\n\r\nDapp integrates with `3Box.js SDK` and the `3box-comments-react` component. In this case, the login logic implemented in the dapp should be passed to the Comments component as the `loginFunction` prop, which is run when a user attempts to post a comment. The user's current Ethereum address should be passed to the `currentUserAddr` prop to determine `deletePost` access on each comment.\r\n\r\n**C) Dapp has no web3 and 3Box login logic.**\r\n\r\nDapp only integrates with the `3box-comments-react` component, but not `3Box.js SDK`. All web3 and 3Box login logic will be handled within the Comments component, though it's required for the `ethereum` object from your dapp's preferred web3 provider be passed to the `ethereum` prop in the component.\r\n\r\n#### Best practice\r\n\r\nFor the best UX, we recommend implementing one of the following authentication patterns: A; B; or B with A.\r\n\r\nEach of these patterns allow your application to make the `box` object available in global application state where it can be used by all instances of the Comments component regardless of which page the user is on. This global pattern removes the need for users to authenticate on each individual page they wish to comment on, which would be the case in C.\r\n\r\n### 3. Configure application settings\r\n\r\n**First, choose a name for your application's 3Box space.**\r\n\r\nAlthough you are free to choose whichever name you'd like for your app's space, we recommend using the name of your app. If your application already has a 3Box space, you are welcome to use that same one for comments.\r\n\r\n**Next, choose a naming convention for your application's threads.**\r\n\r\nComment threads need a name, and we recommend that your application creates `threadNames` according to a simple rule. We generally like using a natural identifier, such as community name, page URL, token ID, or other similar means.\r\n\r\n**Then, create an admin 3Box account for your application.**\r\n\r\nEach thread is required to have an admin (`adminEthAddr`), which possesses the rights to moderate the thread. We recommend you create an admin Ethereum account for your application so you can perform these actions. While technically you can use any Ethereum address as an admin account, we recommend [creating a 3Box profile](https://3box.io/hub) for that address so if you need to take action in the thread, others will know and trust you as the admin.\r\n\r\n**Lastly, initialize your application's space.**\r\n\r\nBefore threads can be deployed in your dapp, your application's admin account (`adminEthAddr` created in the previous step) must first open the space (`spaceName`) that will be used to store your application's threads. This step *must* be completed before your comment threads can be used by others. This process would likely be done outside the context of your dapp, probably in a test environment.\r\n\r\nSimply open a space by running (via `3Box.js SDK`): \r\n```\r\nconst box = await Box.openBox(adminEthAddr, ethereum);\r\nconst space = await box.openSpace(spaceName, spaceOpts);\r\n```\r\nSign the web3 prompts to complete the space initialization process.\r\n</br>\r\n</br>\r\n\r\n\r\n### 4. Usage\r\n\r\n#### Example\r\n\r\n```jsx\r\nimport ThreeBoxComments from '3box-comments-react';\r\n\r\nconst MyComponent = ({ handleLogin, box, ethereum, myAddress, currentUser3BoxProfile, adminEthAddr }) => (\r\n    <ThreeBoxComments \r\n        // required\r\n        spaceName=\"mySpaceName\"\r\n        threadName=\"myThreadName\"\r\n        adminEthAddr={adminEthAddr}\r\n\r\n\r\n        // Required props for context A) & B)\r\n        box={box}\r\n        currentUserAddr={myAddress}\r\n\r\n        // Required prop for context B)\r\n        loginFunction={handleLogin}\r\n\r\n        // Required prop for context C)\r\n        ethereum={ethereum}\r\n\r\n        // optional\r\n        members={false}\r\n        showCommentCount={10}\r\n        threadOpts={{}}\r\n        useHovers={false}\r\n        currentUser3BoxProfile={currentUser3BoxProfile}\r\n        userProfileURL={address => `https://mywebsite.com/user/${address}`}\r\n    />\r\n);\r\n```\r\n\r\n\r\n#### Prop Types\r\n\r\n| Property | Type          | Default  | Required Case          | Description |\r\n| :-------------------------------- | :-------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------ | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\r\n| `spaceName`    | String        |    |  Always   | Likely your dApp name and / or comment category.  A single `spaceName` with different `threadName`s is common practice when building a dApp with multiple Comment threads. |\r\n| `threadName`    | String       |   | Always    | A name specific to this Comments thread. |\r\n| `adminEthAddr`    | String (Ethereum Address)       |   | Always    | The Ethereum address you wish to give admin rights to for the Comments thread.  This user will be able to delete all comments and accept members in a members-only thread. **A thread with a new admin address, despite identical `spaceName` and `threadName`, will create an entirely new thread.**|\r\n| `box`    | Object         |   | A (and likely B)    | The `box` instance returned from running `await Box.openBox(address, web3)` somewhere in your dApp.|\r\n| `currentUserAddr`    | String (Ethereum Address)          |    | A & B, optional for C | The current user's Ethereum address. Passing this will help determine whether a user has delete access on each comment.  This prop will also let the component fetch that user's 3Box profile on component mount and render that data (profile picture) in the Comment input UI. |\r\n| `loginFunction`    | Function       |    | B    | A function from your dApp that handles web3 and 3Box login at the global dApp state. This callback will run when a user attempts to save a comment but a `box` instance doesn't yet exist. Running this function should result in a box instance (from `const box = Box.openBox(address, web3)`) being passed as the `box` prop to this component.  |\r\n| `ethereum`    | Object        |  window.ethereum  | C    | The `ethereum` object from whichever web3 provider your dApp uses.  The `enable` method on this object will be used to get the current user's Ethereum address and that address will be used to `openBox` within the current Component context.|\r\n| `members`    | Boolean       |  False   | Optional    | A boolean - `true` - to make the thread a members-only thread. Passing `false` will allow all users to post to the thread.  **Changing this setting after creating it will result in an entirely different thread** (see [Docs.3box.io](https://Docs.3box.io) for more info). |\r\n| `showCommentCount`    | Integer       |  30   | Optional    | The number of comments rendered in the UI by default on component mount and the number of additional comments revealed after clicking `Load more` in component. |\r\n| `spaceOpts`    | Object       | | Optional    | Optional parameters for threads (see [Docs.3box.io](https://Docs.3box.io) for more info)|\r\n| `threadOpts`    | Object       | | Optional    | Optional parameters for threads (see [Docs.3box.io](https://Docs.3box.io) for more info)|\r\n| `useHovers`    | Boolean       |  False  | Optional    | Pass true to enable a 3Box profile pop up when hovering over a commenter's name |\r\n| `currentUser3BoxProfile`    | Object       |   | Optional    | If the current user has already had their 3Box data fetched at the global dApp state, pass the object returned from `Box.getProfile(profileAddress)` to avoid an extra request.  This data will be rendered in the Comment input interface.|\r\n| `userProfileURL`    | Function       |  Defaults to returning user's 3Box profile URL  | Optional    | A function that returns a correctly formatted URL of a user's profile on the current platform.  The function will be passed an Ethereum address within the component, if needed.  A user will be redirected to the URL returned from this function when clicking on the name or Ethereum address associated with the comment in the thread.|\r\n\r\n## License\r\n\r\nMIT\r\n","gitHead":"2dabf8f227b5010fcbd06150a2e574ae210570c5","scripts":{"lint":"eslint ./src","test":"npm run lint && npm run coverage","build":"webpack --config webpack.config.babel.js","clean":"rm -rf dist coverage","start":"webpack-dev-server --config examples/webpack.config.live.babel.js","coverage":"jest --coverage","build:es5":"rm -rf ./lib; ./node_modules/.bin/babel src --out-dir lib --source-maps inline --copy-files --ignore=src/__tests__/,src/__mocks__/","prepublish":"npm run clean && npm run test && npm run build","build-examples":"webpack --config examples/webpack.config.babel.js --progress"},"_npmUser":{"name":"oznekenzo","email":"mkn293@nyu.edu"},"deprecated":"Deprecated in favor of Ceramic: https://developers.ceramic.network","_npmVersion":"6.4.1","description":"Comments component for decentralized applications by 3Box","directories":{},"resolutions":{"babel-core":"7.0.0-bridge.0"},"_nodeVersion":"8.12.0","dependencies":{"3box":"^1.16.0-beta.3","emoji-js":"^3.4.1","babel-core":"^7.0.0-bridge.0","multicodec":"^0.5.6","3id-resolver":"0.0.6","profile-hover":"^1.1.1","react-linkify":"^1.0.0-alpha","@babel/runtime":"^7.6.0","react-inlinesvg":"^1.2.0","svg-inline-loader":"^0.8.0","ethereum-blockies-base64":"^1.0.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.1.2","react":"^16.6.0","enzyme":"^3.3.0","eslint":"^5.8.0","webpack":"^4.9.1","jest-cli":"^23.6.0","node-sass":"^4.7.2","react-dom":"^16.6.0","@babel/cli":"^7.7.7","babel-jest":"^23.6.0","css-loader":"^1.0.1","prop-types":"^15.6.0","@babel/core":"^7.1.2","sass-loader":"^7.0.1","webpack-cli":"^3.1.2","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","did-resolver":"0.0.7","style-loader":"^0.23.1","@babel/register":"^7.0.0","react-hot-loader":"next","@babel/preset-env":"^7.1.0","webpack-dev-server":"^3.1.4","@babel/preset-react":"^7.0.0","eslint-plugin-react":"^7.4.0","react-test-renderer":"^16.0.0","regenerator-runtime":"^0.12.1","clean-webpack-plugin":"^0.1.16","enzyme-adapter-react-16":"^1.1.1","react-addons-test-utils":"^15.5.1","@babel/plugin-proposal-class-properties":"^7.5.5"},"peerDependencies":{"react":">= 16.3.0","react-dom":">= 16.3.0"},"_npmOperationalInternal":{"tmp":"tmp/3box-comments-react_0.0.5_1578668570283_0.21972197266897964","host":"s3://npm-registry-packages"}},"0.0.5-beta.1":{"name":"3box-comments-react","version":"0.0.5-beta.1","keywords":["comments","3Box","decentralized","ethereum"],"author":{"name":"3box.io"},"license":"MIT","_id":"3box-comments-react@0.0.5-beta.1","maintainers":[{"name":"oznekenzo","email":"mkn293@nyu.edu"}],"contributors":[{"name":"Kenzo Nakamura","email":"kenzo@nyu.edu"}],"dist":{"shasum":"6a2f1f1b9d25d7debf86bc2e42a2869a7a829a4d","tarball":"https://registry.npmjs.org/3box-comments-react/-/3box-comments-react-0.0.5-beta.1.tgz","fileCount":47,"integrity":"sha512-yQh7/NaEwOqDwkJeUuMc4Y9T1c0YBgK6k/gf0qvi5Qa7nV5OTKYOjBhDUzmxJLwhZL2hvQ9IIl5NM3zeJmiqSw==","signatures":[{"sig":"MEUCIHdQB8kStMDlOkR8rkHPpI4UsDbBKE+MTkIFmIZYjvrRAiEA83z3V6KT+2JODOyJktBT061qoQMImU9foC6bSk5hot4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":725967,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeGKa1CRA9TVsSAnZWagAAMEIQAIpYTNE1Q5iiQcVFsCwi\n3OEHoKU83YRBwwn0b7m8vplwG5Um5ihtA6nJXph5eG15WgndXUzIfWmZPD0l\nsP0etIxv7jGtw+AYpldvJK76bwqpEXOgDWfEe3zq0RotIflRjT1ML0lJCukV\nfwieDhhCWY3TqQzNYJM2qy0mkmbL5wRUejyULpOJHanu0B33L9yrnR1UItrI\nhEba1OYdHT8MTMSvuC6nwBjlUagdeGcCUP8eICFztHGdvOBvtuTTfhmjveb4\ncem+r0tfkfwTBTP8WwmquPEumUZtWtHdSForEmRZCLqFxGuFcqYaL8//m7rd\nnM5oSMsBgNg4ULh3WAM0BFkS59WyAREwXpg8A0r/dvPjcemdAw9BfHNq60DJ\nY5hpybBZbYD5EjNy9DdQ4jX796LeeNK4DG/W9x5Vu6daMMqcCRikSYSY3jzy\nYNig7/D8CDkTunpFlQZ+44BsZ+MG6ZTuwG3sDM8wkkZJS/8T7Ia5+CKiQOzR\n9Y9vK2pJA4b2uKhYcVOCaj9Dc+tSBy4W39n/1sA2t41dAMFuidUTRLuhAyKL\nciY0NErbiuCykP7irY22oBp2Le0222p3wOaCjmiAv3y1Mf9N61iiNMUnXLjg\nXTYWpVZ1PPLX48o51SLIgaAFvIfc7fO3211dpnOnThvy7zipkflKkE46hC9s\nBc5n\r\n=qymn\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib/index.js","readme":"[![Discord](https://img.shields.io/discord/484729862368526356.svg?style=for-the-badge)](https://discordapp.com/invite/Z3f3Cxy)\r\n[![npm](https://img.shields.io/npm/v/3box-comments-react.svg?style=for-the-badge)](https://www.npmjs.com/package/3box-comments-react)\r\n[![Twitter Follow](https://img.shields.io/twitter/follow/3boxdb.svg?style=for-the-badge&label=Twitter)](https://twitter.com/3boxdb)\r\n\r\n# 3Box Comments Plugin 💬\r\n\r\n`3box-comments-react` node package is a drop-in react component that provides Web3 developers with a readymade commenting system for their Ethereum application. Easily add rich, decentralized social discourse to your dApp with one line of code. The 3Box Comments plugin is built using 3Box infrastructure, and handles all logic for creating a comments thread. *Read the docs on [docs.3box.io](https://docs.3box.io/build/plugins/comments)*.\r\n\r\n### Try the demo [here](https://3box.github.io/3box-comments-react/examples/dist/)\r\n![Example Screenshot](comments-example-screenshot.png)\r\n</br>\r\n\r\n## How it Works\r\n#### Architecture\r\nThe Comments plugin is built using a standard implementation of [Open Threads](https://docs.3box.io/build/web-apps/messaging/choose#open-threads) which are defined in the [3Box Threads API](https://docs.3box.io/api/messaging) and made available via the [`3Box.js SDK`](https://github.com/3box/3box-js). The Comments plugin also includes UI for inputting and displaying user comments, logic for fetching user profiles, and pagination. The component is configurable to various authentication patterns, and can handle both Web3/3Box logged-in & logged-out states. \r\n\r\n#### Authentication\r\nWithout authenticating, users can read messages in the comment thread. However authentication is required to perform more interactive functionality. After the user is authenticated, a user can post a comment, delete their comment, and receive comments from other users in *real-time*.  Note: if you are not logged in and the component has not been passed your ethereum address, the component cannot know which comment belongs to you in order to delete.  In this case, click the login button just below the input UI.\r\n</br>\r\n</br>\r\n\r\n## Getting Started\r\n1. Install the component\r\n2. Choose your authentication pattern\r\n3. Configure application settings\r\n4. Usage\r\n\r\n### 1. Install the component\r\n\r\n```shell\r\nnpm i -S 3box-comments-react\r\n```\r\n\r\n### 2. Choose your authentication pattern\r\nDepending on *when and how* your dApp handles authentication for web3 and 3Box, you will need to provide a different set of props to the component. Three acceptable authentication patterns and their respective props are discussed below in A-C:\r\n\r\n**A) Dapp handles web3 and 3Box logins, and they run *before* component is mounted. (recommended)**\r\n\r\nDapp integrates with `3Box.js SDK` and the `3box-comments-react` component. In this case, the `box` instance returned from `Box.openBox(ethAddr)` via 3Box.js should be passed to the `box` prop in the comments component. The user's current Ethereum address should be passed to the `currentUserAddr` prop to determine `deletePost` access on each comment.\r\n\r\n**B) Dapp handles web3 and 3Box logins, but they haven't run before component is mounted. (recommended)**\r\n\r\nDapp integrates with `3Box.js SDK` and the `3box-comments-react` component. In this case, the login logic implemented in the dapp should be passed to the Comments component as the `loginFunction` prop, which is run when a user attempts to post a comment. The user's current Ethereum address should be passed to the `currentUserAddr` prop to determine `deletePost` access on each comment.\r\n\r\n**C) Dapp has no web3 and 3Box login logic.**\r\n\r\nDapp only integrates with the `3box-comments-react` component, but not `3Box.js SDK`. All web3 and 3Box login logic will be handled within the Comments component, though it's required for the `ethereum` object from your dapp's preferred web3 provider be passed to the `ethereum` prop in the component.\r\n\r\n#### Best practice\r\n\r\nFor the best UX, we recommend implementing one of the following authentication patterns: A; B; or B with A.\r\n\r\nEach of these patterns allow your application to make the `box` object available in global application state where it can be used by all instances of the Comments component regardless of which page the user is on. This global pattern removes the need for users to authenticate on each individual page they wish to comment on, which would be the case in C.\r\n\r\n### 3. Configure application settings\r\n\r\n**First, choose a name for your application's 3Box space.**\r\n\r\nAlthough you are free to choose whichever name you'd like for your app's space, we recommend using the name of your app. If your application already has a 3Box space, you are welcome to use that same one for comments.\r\n\r\n**Next, choose a naming convention for your application's threads.**\r\n\r\nComment threads need a name, and we recommend that your application creates `threadNames` according to a simple rule. We generally like using a natural identifier, such as community name, page URL, token ID, or other similar means.\r\n\r\n**Then, create an admin 3Box account for your application.**\r\n\r\nEach thread is required to have an admin (`adminEthAddr`), which possesses the rights to moderate the thread. We recommend you create an admin Ethereum account for your application so you can perform these actions. While technically you can use any Ethereum address as an admin account, we recommend [creating a 3Box profile](https://3box.io/hub) for that address so if you need to take action in the thread, others will know and trust you as the admin.\r\n\r\n**Lastly, initialize your application's space.**\r\n\r\nBefore threads can be deployed in your dapp, your application's admin account (`adminEthAddr` created in the previous step) must first open the space (`spaceName`) that will be used to store your application's threads. This step *must* be completed before your comment threads can be used by others. This process would likely be done outside the context of your dapp, probably in a test environment.\r\n\r\nSimply open a space by running (via `3Box.js SDK`): \r\n```\r\nconst box = await Box.openBox(adminEthAddr, ethereum);\r\nconst space = await box.openSpace(spaceName, spaceOpts);\r\n```\r\nSign the web3 prompts to complete the space initialization process.\r\n</br>\r\n</br>\r\n\r\n\r\n### 4. Usage\r\n\r\n#### Example\r\n\r\n```jsx\r\nimport ThreeBoxComments from '3box-comments-react';\r\n\r\nconst MyComponent = ({ handleLogin, box, ethereum, myAddress, currentUser3BoxProfile, adminEthAddr }) => (\r\n    <ThreeBoxComments \r\n        // required\r\n        spaceName=\"mySpaceName\"\r\n        threadName=\"myThreadName\"\r\n        adminEthAddr={adminEthAddr}\r\n\r\n\r\n        // Required props for context A) & B)\r\n        box={box}\r\n        currentUserAddr={myAddress}\r\n\r\n        // Required prop for context B)\r\n        loginFunction={handleLogin}\r\n\r\n        // Required prop for context C)\r\n        ethereum={ethereum}\r\n\r\n        // optional\r\n        members={false}\r\n        showCommentCount={10}\r\n        threadOpts={{}}\r\n        useHovers={false}\r\n        currentUser3BoxProfile={currentUser3BoxProfile}\r\n        userProfileURL={address => `https://mywebsite.com/user/${address}`}\r\n    />\r\n);\r\n```\r\n\r\n\r\n#### Prop Types\r\n\r\n| Property | Type          | Default  | Required Case          | Description |\r\n| :-------------------------------- | :-------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------ | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\r\n| `spaceName`    | String        |    |  Always   | Likely your dApp name and / or comment category.  A single `spaceName` with different `threadName`s is common practice when building a dApp with multiple Comment threads. |\r\n| `threadName`    | String       |   | Always    | A name specific to this Comments thread. |\r\n| `adminEthAddr`    | String (Ethereum Address)       |   | Always    | The Ethereum address you wish to give admin rights to for the Comments thread.  This user will be able to delete all comments and accept members in a members-only thread. **A thread with a new admin address, despite identical `spaceName` and `threadName`, will create an entirely new thread.**|\r\n| `box`    | Object         |   | A (and likely B)    | The `box` instance returned from running `await Box.openBox(address, web3)` somewhere in your dApp.|\r\n| `currentUserAddr`    | String (Ethereum Address)          |    | A & B, optional for C | The current user's Ethereum address. Passing this will help determine whether a user has delete access on each comment.  This prop will also let the component fetch that user's 3Box profile on component mount and render that data (profile picture) in the Comment input UI. |\r\n| `loginFunction`    | Function       |    | B    | A function from your dApp that handles web3 and 3Box login at the global dApp state. This callback will run when a user attempts to save a comment but a `box` instance doesn't yet exist. Running this function should result in a box instance (from `const box = Box.openBox(address, web3)`) being passed as the `box` prop to this component.  |\r\n| `ethereum`    | Object        |  window.ethereum  | C    | The `ethereum` object from whichever web3 provider your dApp uses.  The `enable` method on this object will be used to get the current user's Ethereum address and that address will be used to `openBox` within the current Component context.|\r\n| `members`    | Boolean       |  False   | Optional    | A boolean - `true` - to make the thread a members-only thread. Passing `false` will allow all users to post to the thread.  **Changing this setting after creating it will result in an entirely different thread** (see [Docs.3box.io](https://Docs.3box.io) for more info). |\r\n| `showCommentCount`    | Integer       |  30   | Optional    | The number of comments rendered in the UI by default on component mount and the number of additional comments revealed after clicking `Load more` in component. |\r\n| `spaceOpts`    | Object       | | Optional    | Optional parameters for threads (see [Docs.3box.io](https://Docs.3box.io) for more info)|\r\n| `threadOpts`    | Object       | | Optional    | Optional parameters for threads (see [Docs.3box.io](https://Docs.3box.io) for more info)|\r\n| `useHovers`    | Boolean       |  False  | Optional    | Pass true to enable a 3Box profile pop up when hovering over a commenter's name |\r\n| `currentUser3BoxProfile`    | Object       |   | Optional    | If the current user has already had their 3Box data fetched at the global dApp state, pass the object returned from `Box.getProfile(profileAddress)` to avoid an extra request.  This data will be rendered in the Comment input interface.|\r\n| `userProfileURL`    | Function       |  Defaults to returning user's 3Box profile URL  | Optional    | A function that returns a correctly formatted URL of a user's profile on the current platform.  The function will be passed an Ethereum address within the component, if needed.  A user will be redirected to the URL returned from this function when clicking on the name or Ethereum address associated with the comment in the thread.|\r\n\r\n## License\r\n\r\nMIT\r\n","gitHead":"2dabf8f227b5010fcbd06150a2e574ae210570c5","scripts":{"lint":"eslint ./src","test":"npm run lint && npm run coverage","build":"webpack --config webpack.config.babel.js","clean":"rm -rf dist coverage","start":"webpack-dev-server --config examples/webpack.config.live.babel.js","coverage":"jest --coverage","build:es5":"rm -rf ./lib; ./node_modules/.bin/babel src --out-dir lib --source-maps inline --copy-files --ignore=src/__tests__/,src/__mocks__/","prepublish":"npm run clean && npm run test && npm run build","build-examples":"webpack --config examples/webpack.config.babel.js --progress"},"_npmUser":{"name":"oznekenzo","email":"mkn293@nyu.edu"},"_npmVersion":"6.4.1","description":"Comments component for decentralized applications by 3Box","directories":{},"resolutions":{"babel-core":"7.0.0-bridge.0"},"_nodeVersion":"8.12.0","dependencies":{"3box":"^1.16.0-beta.3","emoji-js":"^3.4.1","babel-core":"^7.0.0-bridge.0","multicodec":"^0.5.6","3id-resolver":"0.0.6","profile-hover":"^1.1.1","react-linkify":"^1.0.0-alpha","@babel/runtime":"^7.6.0","react-inlinesvg":"^1.2.0","svg-inline-loader":"^0.8.0","ethereum-blockies-base64":"^1.0.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.1.2","react":"^16.6.0","enzyme":"^3.3.0","eslint":"^5.8.0","webpack":"^4.9.1","jest-cli":"^23.6.0","node-sass":"^4.7.2","react-dom":"^16.6.0","@babel/cli":"^7.7.7","babel-jest":"^23.6.0","css-loader":"^1.0.1","prop-types":"^15.6.0","@babel/core":"^7.1.2","sass-loader":"^7.0.1","webpack-cli":"^3.1.2","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","did-resolver":"0.0.7","style-loader":"^0.23.1","@babel/register":"^7.0.0","react-hot-loader":"next","@babel/preset-env":"^7.1.0","webpack-dev-server":"^3.1.4","@babel/preset-react":"^7.0.0","eslint-plugin-react":"^7.4.0","react-test-renderer":"^16.0.0","regenerator-runtime":"^0.12.1","clean-webpack-plugin":"^0.1.16","enzyme-adapter-react-16":"^1.1.1","react-addons-test-utils":"^15.5.1","@babel/plugin-proposal-class-properties":"^7.5.5"},"peerDependencies":{"react":">= 16.3.0","react-dom":">= 16.3.0"},"_npmOperationalInternal":{"tmp":"tmp/3box-comments-react_0.0.5-beta.1_1578673844754_0.624283622213158","host":"s3://npm-registry-packages"}},"0.0.5-beta.2":{"name":"3box-comments-react","version":"0.0.5-beta.2","keywords":["comments","3Box","decentralized","ethereum"],"author":{"name":"3box.io"},"license":"MIT","_id":"3box-comments-react@0.0.5-beta.2","maintainers":[{"name":"oznekenzo","email":"mkn293@nyu.edu"}],"contributors":[{"name":"Kenzo Nakamura","email":"kenzo@nyu.edu"}],"dist":{"shasum":"696bff311edd945cb95ac87f4094fe55785e8708","tarball":"https://registry.npmjs.org/3box-comments-react/-/3box-comments-react-0.0.5-beta.2.tgz","fileCount":47,"integrity":"sha512-F13bielqfjJeBZVda2t2HUoLCHQrOuNMkMLOM+PaW2DSBqezXyHFM+YwXgLj4E5EQ7ZLpDMd/Whx/WSAoUwJvg==","signatures":[{"sig":"MEUCIHIS4g+nkN6Uei0XgjIdulLKNoTGWa2XLOYtPX2yYwh0AiEApWVDJNNlQZ7rEnWgYl6zhIQB2gk9/p/mBuBkCzu22Q0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":726311,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeGK1OCRA9TVsSAnZWagAAnBgP/3F8bx++A8fRbKhElAJl\n15qHPniYnlRDwnC0NU5CExhYqu4AuQc9xgQmNTfJL54TS7++/1UA5c0Ryv9i\nNxzw0oqD1VhO/d5Be0aIYkKClXFczJfVuJ0nK7PSWmv2CcNUBOG6OkER92zx\nIwDN3mbjIvJRnTW7dxiZxL0tQyP+iq3mISzir0O0YZce0pC1frY0y8as2efw\n7sGsyoaG6/vNjo2erONb5GhZ9MxRjLF+Q23CRTqXxud99l//ym0Xw4Vrx3Ei\n8MVy4xC5cbruIWbUL/dWHyV3In9gsGUHF85g500J4M5tHYl+ef89Lln2Yl/P\n/kRyA05dQFub8pJv6BKk7P4dBTo/mF+b/8ScfNUiZZKuJor03p8JdFZ09P9E\nnm/iMVCe/O9jnIpc8jTmSC1VPWGfWd+EmrbUS5Uh29dO/Vj/Ub8OmfVgqiUk\nxGd7QvBWANMy56AORG7uxJWk4+gpqN3kIRSXNz5OuGMOctmhZqlYgYvbfLpi\nKJtVvD4EaRAP3hEmCEdQTE9Xgk3MNCvcEH+4j12mpzJIYmnSaGIGRvETJ7mM\n+wULUIMyvqOCupzcHfarF5YgbxZkndnbGamsATzTEzwLora1bQ7gaSl6A8xR\nMVRv3CcJjZBJal2g35nFFfLjis2OsHHXOq8fw0q2SHNCN1X7bSX03B7gZRAR\n4apW\r\n=eBJE\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib/index.js","readme":"[![Discord](https://img.shields.io/discord/484729862368526356.svg?style=for-the-badge)](https://discordapp.com/invite/Z3f3Cxy)\r\n[![npm](https://img.shields.io/npm/v/3box-comments-react.svg?style=for-the-badge)](https://www.npmjs.com/package/3box-comments-react)\r\n[![Twitter Follow](https://img.shields.io/twitter/follow/3boxdb.svg?style=for-the-badge&label=Twitter)](https://twitter.com/3boxdb)\r\n\r\n# 3Box Comments Plugin 💬\r\n\r\n`3box-comments-react` node package is a drop-in react component that provides Web3 developers with a readymade commenting system for their Ethereum application. Easily add rich, decentralized social discourse to your dApp with one line of code. The 3Box Comments plugin is built using 3Box infrastructure, and handles all logic for creating a comments thread. *Read the docs on [docs.3box.io](https://docs.3box.io/build/plugins/comments)*.\r\n\r\n### Try the demo [here](https://3box.github.io/3box-comments-react/examples/dist/)\r\n![Example Screenshot](comments-example-screenshot.png)\r\n</br>\r\n\r\n## How it Works\r\n#### Architecture\r\nThe Comments plugin is built using a standard implementation of [Open Threads](https://docs.3box.io/build/web-apps/messaging/choose#open-threads) which are defined in the [3Box Threads API](https://docs.3box.io/api/messaging) and made available via the [`3Box.js SDK`](https://github.com/3box/3box-js). The Comments plugin also includes UI for inputting and displaying user comments, logic for fetching user profiles, and pagination. The component is configurable to various authentication patterns, and can handle both Web3/3Box logged-in & logged-out states. \r\n\r\n#### Authentication\r\nWithout authenticating, users can read messages in the comment thread. However authentication is required to perform more interactive functionality. After the user is authenticated, a user can post a comment, delete their comment, and receive comments from other users in *real-time*.  Note: if you are not logged in and the component has not been passed your ethereum address, the component cannot know which comment belongs to you in order to delete.  In this case, click the login button just below the input UI.\r\n</br>\r\n</br>\r\n\r\n## Getting Started\r\n1. Install the component\r\n2. Choose your authentication pattern\r\n3. Configure application settings\r\n4. Usage\r\n\r\n### 1. Install the component\r\n\r\n```shell\r\nnpm i -S 3box-comments-react\r\n```\r\n\r\n### 2. Choose your authentication pattern\r\nDepending on *when and how* your dApp handles authentication for web3 and 3Box, you will need to provide a different set of props to the component. Three acceptable authentication patterns and their respective props are discussed below in A-C:\r\n\r\n**A) Dapp handles web3 and 3Box logins, and they run *before* component is mounted. (recommended)**\r\n\r\nDapp integrates with `3Box.js SDK` and the `3box-comments-react` component. In this case, the `box` instance returned from `Box.openBox(ethAddr)` via 3Box.js should be passed to the `box` prop in the comments component. The user's current Ethereum address should be passed to the `currentUserAddr` prop to determine `deletePost` access on each comment.\r\n\r\n**B) Dapp handles web3 and 3Box logins, but they haven't run before component is mounted. (recommended)**\r\n\r\nDapp integrates with `3Box.js SDK` and the `3box-comments-react` component. In this case, the login logic implemented in the dapp should be passed to the Comments component as the `loginFunction` prop, which is run when a user attempts to post a comment. The user's current Ethereum address should be passed to the `currentUserAddr` prop to determine `deletePost` access on each comment.\r\n\r\n**C) Dapp has no web3 and 3Box login logic.**\r\n\r\nDapp only integrates with the `3box-comments-react` component, but not `3Box.js SDK`. All web3 and 3Box login logic will be handled within the Comments component, though it's required for the `ethereum` object from your dapp's preferred web3 provider be passed to the `ethereum` prop in the component.\r\n\r\n#### Best practice\r\n\r\nFor the best UX, we recommend implementing one of the following authentication patterns: A; B; or B with A.\r\n\r\nEach of these patterns allow your application to make the `box` object available in global application state where it can be used by all instances of the Comments component regardless of which page the user is on. This global pattern removes the need for users to authenticate on each individual page they wish to comment on, which would be the case in C.\r\n\r\n### 3. Configure application settings\r\n\r\n**First, choose a name for your application's 3Box space.**\r\n\r\nAlthough you are free to choose whichever name you'd like for your app's space, we recommend using the name of your app. If your application already has a 3Box space, you are welcome to use that same one for comments.\r\n\r\n**Next, choose a naming convention for your application's threads.**\r\n\r\nComment threads need a name, and we recommend that your application creates `threadNames` according to a simple rule. We generally like using a natural identifier, such as community name, page URL, token ID, or other similar means.\r\n\r\n**Then, create an admin 3Box account for your application.**\r\n\r\nEach thread is required to have an admin (`adminEthAddr`), which possesses the rights to moderate the thread. We recommend you create an admin Ethereum account for your application so you can perform these actions. While technically you can use any Ethereum address as an admin account, we recommend [creating a 3Box profile](https://3box.io/hub) for that address so if you need to take action in the thread, others will know and trust you as the admin.\r\n\r\n**Lastly, initialize your application's space.**\r\n\r\nBefore threads can be deployed in your dapp, your application's admin account (`adminEthAddr` created in the previous step) must first open the space (`spaceName`) that will be used to store your application's threads. This step *must* be completed before your comment threads can be used by others. This process would likely be done outside the context of your dapp, probably in a test environment.\r\n\r\nSimply open a space by running (via `3Box.js SDK`): \r\n```\r\nconst box = await Box.openBox(adminEthAddr, ethereum);\r\nconst space = await box.openSpace(spaceName, spaceOpts);\r\n```\r\nSign the web3 prompts to complete the space initialization process.\r\n</br>\r\n</br>\r\n\r\n\r\n### 4. Usage\r\n\r\n#### Example\r\n\r\n```jsx\r\nimport ThreeBoxComments from '3box-comments-react';\r\n\r\nconst MyComponent = ({ handleLogin, box, ethereum, myAddress, currentUser3BoxProfile, adminEthAddr }) => (\r\n    <ThreeBoxComments \r\n        // required\r\n        spaceName=\"mySpaceName\"\r\n        threadName=\"myThreadName\"\r\n        adminEthAddr={adminEthAddr}\r\n\r\n\r\n        // Required props for context A) & B)\r\n        box={box}\r\n        currentUserAddr={myAddress}\r\n\r\n        // Required prop for context B)\r\n        loginFunction={handleLogin}\r\n\r\n        // Required prop for context C)\r\n        ethereum={ethereum}\r\n\r\n        // optional\r\n        members={false}\r\n        showCommentCount={10}\r\n        threadOpts={{}}\r\n        useHovers={false}\r\n        currentUser3BoxProfile={currentUser3BoxProfile}\r\n        userProfileURL={address => `https://mywebsite.com/user/${address}`}\r\n    />\r\n);\r\n```\r\n\r\n\r\n#### Prop Types\r\n\r\n| Property | Type          | Default  | Required Case          | Description |\r\n| :-------------------------------- | :-------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------ | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\r\n| `spaceName`    | String        |    |  Always   | Likely your dApp name and / or comment category.  A single `spaceName` with different `threadName`s is common practice when building a dApp with multiple Comment threads. |\r\n| `threadName`    | String       |   | Always    | A name specific to this Comments thread. |\r\n| `adminEthAddr`    | String (Ethereum Address)       |   | Always    | The Ethereum address you wish to give admin rights to for the Comments thread.  This user will be able to delete all comments and accept members in a members-only thread. **A thread with a new admin address, despite identical `spaceName` and `threadName`, will create an entirely new thread.**|\r\n| `box`    | Object         |   | A (and likely B)    | The `box` instance returned from running `await Box.openBox(address, web3)` somewhere in your dApp.|\r\n| `currentUserAddr`    | String (Ethereum Address)          |    | A & B, optional for C | The current user's Ethereum address. Passing this will help determine whether a user has delete access on each comment.  This prop will also let the component fetch that user's 3Box profile on component mount and render that data (profile picture) in the Comment input UI. |\r\n| `loginFunction`    | Function       |    | B    | A function from your dApp that handles web3 and 3Box login at the global dApp state. This callback will run when a user attempts to save a comment but a `box` instance doesn't yet exist. Running this function should result in a box instance (from `const box = Box.openBox(address, web3)`) being passed as the `box` prop to this component.  |\r\n| `ethereum`    | Object        |  window.ethereum  | C    | The `ethereum` object from whichever web3 provider your dApp uses.  The `enable` method on this object will be used to get the current user's Ethereum address and that address will be used to `openBox` within the current Component context.|\r\n| `members`    | Boolean       |  False   | Optional    | A boolean - `true` - to make the thread a members-only thread. Passing `false` will allow all users to post to the thread.  **Changing this setting after creating it will result in an entirely different thread** (see [Docs.3box.io](https://Docs.3box.io) for more info). |\r\n| `showCommentCount`    | Integer       |  30   | Optional    | The number of comments rendered in the UI by default on component mount and the number of additional comments revealed after clicking `Load more` in component. |\r\n| `spaceOpts`    | Object       | | Optional    | Optional parameters for threads (see [Docs.3box.io](https://Docs.3box.io) for more info)|\r\n| `threadOpts`    | Object       | | Optional    | Optional parameters for threads (see [Docs.3box.io](https://Docs.3box.io) for more info)|\r\n| `useHovers`    | Boolean       |  False  | Optional    | Pass true to enable a 3Box profile pop up when hovering over a commenter's name |\r\n| `currentUser3BoxProfile`    | Object       |   | Optional    | If the current user has already had their 3Box data fetched at the global dApp state, pass the object returned from `Box.getProfile(profileAddress)` to avoid an extra request.  This data will be rendered in the Comment input interface.|\r\n| `userProfileURL`    | Function       |  Defaults to returning user's 3Box profile URL  | Optional    | A function that returns a correctly formatted URL of a user's profile on the current platform.  The function will be passed an Ethereum address within the component, if needed.  A user will be redirected to the URL returned from this function when clicking on the name or Ethereum address associated with the comment in the thread.|\r\n\r\n## License\r\n\r\nMIT\r\n","gitHead":"2dabf8f227b5010fcbd06150a2e574ae210570c5","scripts":{"lint":"eslint ./src","test":"npm run lint && npm run coverage","build":"webpack --config webpack.config.babel.js","clean":"rm -rf dist coverage","start":"webpack-dev-server --config examples/webpack.config.live.babel.js","coverage":"jest --coverage","build:es5":"rm -rf ./lib; ./node_modules/.bin/babel src --out-dir lib --source-maps inline --copy-files --ignore=src/__tests__/,src/__mocks__/","prepublish":"npm run clean && npm run test && npm run build","build-examples":"webpack --config examples/webpack.config.babel.js --progress"},"_npmUser":{"name":"oznekenzo","email":"mkn293@nyu.edu"},"_npmVersion":"6.4.1","description":"Comments component for decentralized applications by 3Box","directories":{},"resolutions":{"babel-core":"7.0.0-bridge.0"},"_nodeVersion":"8.12.0","dependencies":{"3box":"^1.16.0-beta.3","emoji-js":"^3.4.1","babel-core":"^7.0.0-bridge.0","multicodec":"^0.5.6","3id-resolver":"0.0.6","profile-hover":"^1.1.1","react-linkify":"^1.0.0-alpha","@babel/runtime":"^7.6.0","react-inlinesvg":"^1.2.0","svg-inline-loader":"^0.8.0","ethereum-blockies-base64":"^1.0.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.1.2","react":"^16.6.0","enzyme":"^3.3.0","eslint":"^5.8.0","webpack":"^4.9.1","jest-cli":"^23.6.0","node-sass":"^4.7.2","react-dom":"^16.6.0","@babel/cli":"^7.7.7","babel-jest":"^23.6.0","css-loader":"^1.0.1","prop-types":"^15.6.0","@babel/core":"^7.1.2","sass-loader":"^7.0.1","webpack-cli":"^3.1.2","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","did-resolver":"0.0.7","style-loader":"^0.23.1","@babel/register":"^7.0.0","react-hot-loader":"next","@babel/preset-env":"^7.1.0","webpack-dev-server":"^3.1.4","@babel/preset-react":"^7.0.0","eslint-plugin-react":"^7.4.0","react-test-renderer":"^16.0.0","regenerator-runtime":"^0.12.1","clean-webpack-plugin":"^0.1.16","enzyme-adapter-react-16":"^1.1.1","react-addons-test-utils":"^15.5.1","@babel/plugin-proposal-class-properties":"^7.5.5"},"peerDependencies":{"react":">= 16.3.0","react-dom":">= 16.3.0"},"_npmOperationalInternal":{"tmp":"tmp/3box-comments-react_0.0.5-beta.2_1578675534200_0.9813282664903351","host":"s3://npm-registry-packages"}},"0.0.5-beta.3":{"name":"3box-comments-react","version":"0.0.5-beta.3","keywords":["comments","3Box","decentralized","ethereum"],"author":{"name":"3box.io"},"license":"MIT","_id":"3box-comments-react@0.0.5-beta.3","maintainers":[{"name":"oznekenzo","email":"mkn293@nyu.edu"}],"contributors":[{"name":"Kenzo Nakamura","email":"kenzo@nyu.edu"}],"dist":{"shasum":"f4528277fca38a699d70019dafa7e6d15bd9e152","tarball":"https://registry.npmjs.org/3box-comments-react/-/3box-comments-react-0.0.5-beta.3.tgz","fileCount":47,"integrity":"sha512-2bIj6Bu15VEcUmzxaBD0qKE+O7U5FN9yGS3sxRTout5dzHJ+LQ4l9ZI0YtebWX2gVUi+EGIIYocasKDTpU4Z4g==","signatures":[{"sig":"MEUCIQDjYd0h/dkDdzBaEg0mwdYBTNMTeAVdEu81bJE+C/ke2AIgRhcRLpX7HqvU1l21p07yCiGrieR3fgQ7Lpz6GfHtzCw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":726456,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeGMESCRA9TVsSAnZWagAAgEQP/iBAzKb3lYxlswwCA4BP\nZoe5zIEiGVNtgbMwDREECcVFHotUgtSlwuw0IhShGW4DVcDRL0hBhcR5lb+t\nvlLHq9N96DS6oE0JvFBsw2N2BlyXEw5DD0ti/owxGT+0b++2jcJoT2noN4B+\no+9vnvUOPYi9N5dSZeTZeg6crv86jOe7rFb/Kz+FcKqdwsR+f8Sm2ygjUpFP\nXR6JKMZKS/byFpsOXaYA4ZNIBCYIfAkG3BFPD22nLHUdX1iUcjBDzji2k4uD\ngbXSbbOOHHzB2+7a2DrifY0jaWiIPc5YTZ61d9t1gDeoBC3DhBhtNs8kOS+s\nG27mdm8WAPcIB3dWqEm0p377kfH+ovhdu2isEMCUxwsn3T8yY4L1llw4CWni\nZhc/O3kcrarzsPdxsWLKjPweUCdGSrPEGfOjDX6TBbhhIEkMWuwl6IrjKIYx\nHVaoJHmrpUP04fjoNLp6BUzcfbvqnGT9kFl5O5wabFRPx/kOq9b+RsyNh4WU\nFxRJThA+wvBPbwll/Fxl8zBNyg5ff8NFVrwLGM3X+t59ZRJdgLSwchu1XbR8\nH0F9LZUP9FVPwqfbNq167V2DTEANEkg+wzszWBP3CHbIo8O0seH9ucALXFRg\nEL7I7TVGLoFOO7FbzL1JSPjP1VSGyqFuWM+/BBQ8MUf6bT6UZjKyVF3CrZ7K\nyqKP\r\n=bBcS\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib/index.js","readme":"[![Discord](https://img.shields.io/discord/484729862368526356.svg?style=for-the-badge)](https://discordapp.com/invite/Z3f3Cxy)\r\n[![npm](https://img.shields.io/npm/v/3box-comments-react.svg?style=for-the-badge)](https://www.npmjs.com/package/3box-comments-react)\r\n[![Twitter Follow](https://img.shields.io/twitter/follow/3boxdb.svg?style=for-the-badge&label=Twitter)](https://twitter.com/3boxdb)\r\n\r\n# 3Box Comments Plugin 💬\r\n\r\n`3box-comments-react` node package is a drop-in react component that provides Web3 developers with a readymade commenting system for their Ethereum application. Easily add rich, decentralized social discourse to your dApp with one line of code. The 3Box Comments plugin is built using 3Box infrastructure, and handles all logic for creating a comments thread. *Read the docs on [docs.3box.io](https://docs.3box.io/build/plugins/comments)*.\r\n\r\n### Try the demo [here](https://3box.github.io/3box-comments-react/examples/dist/)\r\n![Example Screenshot](comments-example-screenshot.png)\r\n</br>\r\n\r\n## How it Works\r\n#### Architecture\r\nThe Comments plugin is built using a standard implementation of [Open Threads](https://docs.3box.io/build/web-apps/messaging/choose#open-threads) which are defined in the [3Box Threads API](https://docs.3box.io/api/messaging) and made available via the [`3Box.js SDK`](https://github.com/3box/3box-js). The Comments plugin also includes UI for inputting and displaying user comments, logic for fetching user profiles, and pagination. The component is configurable to various authentication patterns, and can handle both Web3/3Box logged-in & logged-out states. \r\n\r\n#### Authentication\r\nWithout authenticating, users can read messages in the comment thread. However authentication is required to perform more interactive functionality. After the user is authenticated, a user can post a comment, delete their comment, and receive comments from other users in *real-time*.  Note: if you are not logged in and the component has not been passed your ethereum address, the component cannot know which comment belongs to you in order to delete.  In this case, click the login button just below the input UI.\r\n</br>\r\n</br>\r\n\r\n## Getting Started\r\n1. Install the component\r\n2. Choose your authentication pattern\r\n3. Configure application settings\r\n4. Usage\r\n\r\n### 1. Install the component\r\n\r\n```shell\r\nnpm i -S 3box-comments-react\r\n```\r\n\r\n### 2. Choose your authentication pattern\r\nDepending on *when and how* your dApp handles authentication for web3 and 3Box, you will need to provide a different set of props to the component. Three acceptable authentication patterns and their respective props are discussed below in A-C:\r\n\r\n**A) Dapp handles web3 and 3Box logins, and they run *before* component is mounted. (recommended)**\r\n\r\nDapp integrates with `3Box.js SDK` and the `3box-comments-react` component. In this case, the `box` instance returned from `Box.openBox(ethAddr)` via 3Box.js should be passed to the `box` prop in the comments component. The user's current Ethereum address should be passed to the `currentUserAddr` prop to determine `deletePost` access on each comment.\r\n\r\n**B) Dapp handles web3 and 3Box logins, but they haven't run before component is mounted. (recommended)**\r\n\r\nDapp integrates with `3Box.js SDK` and the `3box-comments-react` component. In this case, the login logic implemented in the dapp should be passed to the Comments component as the `loginFunction` prop, which is run when a user attempts to post a comment. The user's current Ethereum address should be passed to the `currentUserAddr` prop to determine `deletePost` access on each comment.\r\n\r\n**C) Dapp has no web3 and 3Box login logic.**\r\n\r\nDapp only integrates with the `3box-comments-react` component, but not `3Box.js SDK`. All web3 and 3Box login logic will be handled within the Comments component, though it's required for the `ethereum` object from your dapp's preferred web3 provider be passed to the `ethereum` prop in the component.\r\n\r\n#### Best practice\r\n\r\nFor the best UX, we recommend implementing one of the following authentication patterns: A; B; or B with A.\r\n\r\nEach of these patterns allow your application to make the `box` object available in global application state where it can be used by all instances of the Comments component regardless of which page the user is on. This global pattern removes the need for users to authenticate on each individual page they wish to comment on, which would be the case in C.\r\n\r\n### 3. Configure application settings\r\n\r\n**First, choose a name for your application's 3Box space.**\r\n\r\nAlthough you are free to choose whichever name you'd like for your app's space, we recommend using the name of your app. If your application already has a 3Box space, you are welcome to use that same one for comments.\r\n\r\n**Next, choose a naming convention for your application's threads.**\r\n\r\nComment threads need a name, and we recommend that your application creates `threadNames` according to a simple rule. We generally like using a natural identifier, such as community name, page URL, token ID, or other similar means.\r\n\r\n**Then, create an admin 3Box account for your application.**\r\n\r\nEach thread is required to have an admin (`adminEthAddr`), which possesses the rights to moderate the thread. We recommend you create an admin Ethereum account for your application so you can perform these actions. While technically you can use any Ethereum address as an admin account, we recommend [creating a 3Box profile](https://3box.io/hub) for that address so if you need to take action in the thread, others will know and trust you as the admin.\r\n\r\n**Lastly, initialize your application's space.**\r\n\r\nBefore threads can be deployed in your dapp, your application's admin account (`adminEthAddr` created in the previous step) must first open the space (`spaceName`) that will be used to store your application's threads. This step *must* be completed before your comment threads can be used by others. This process would likely be done outside the context of your dapp, probably in a test environment.\r\n\r\nSimply open a space by running (via `3Box.js SDK`): \r\n```\r\nconst box = await Box.openBox(adminEthAddr, ethereum);\r\nconst space = await box.openSpace(spaceName, spaceOpts);\r\n```\r\nSign the web3 prompts to complete the space initialization process.\r\n</br>\r\n</br>\r\n\r\n\r\n### 4. Usage\r\n\r\n#### Example\r\n\r\n```jsx\r\nimport ThreeBoxComments from '3box-comments-react';\r\n\r\nconst MyComponent = ({ handleLogin, box, ethereum, myAddress, currentUser3BoxProfile, adminEthAddr }) => (\r\n    <ThreeBoxComments \r\n        // required\r\n        spaceName=\"mySpaceName\"\r\n        threadName=\"myThreadName\"\r\n        adminEthAddr={adminEthAddr}\r\n\r\n\r\n        // Required props for context A) & B)\r\n        box={box}\r\n        currentUserAddr={myAddress}\r\n\r\n        // Required prop for context B)\r\n        loginFunction={handleLogin}\r\n\r\n        // Required prop for context C)\r\n        ethereum={ethereum}\r\n\r\n        // optional\r\n        members={false}\r\n        showCommentCount={10}\r\n        threadOpts={{}}\r\n        useHovers={false}\r\n        currentUser3BoxProfile={currentUser3BoxProfile}\r\n        userProfileURL={address => `https://mywebsite.com/user/${address}`}\r\n    />\r\n);\r\n```\r\n\r\n\r\n#### Prop Types\r\n\r\n| Property | Type          | Default  | Required Case          | Description |\r\n| :-------------------------------- | :-------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------ | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\r\n| `spaceName`    | String        |    |  Always   | Likely your dApp name and / or comment category.  A single `spaceName` with different `threadName`s is common practice when building a dApp with multiple Comment threads. |\r\n| `threadName`    | String       |   | Always    | A name specific to this Comments thread. |\r\n| `adminEthAddr`    | String (Ethereum Address)       |   | Always    | The Ethereum address you wish to give admin rights to for the Comments thread.  This user will be able to delete all comments and accept members in a members-only thread. **A thread with a new admin address, despite identical `spaceName` and `threadName`, will create an entirely new thread.**|\r\n| `box`    | Object         |   | A (and likely B)    | The `box` instance returned from running `await Box.openBox(address, web3)` somewhere in your dApp.|\r\n| `currentUserAddr`    | String (Ethereum Address)          |    | A & B, optional for C | The current user's Ethereum address. Passing this will help determine whether a user has delete access on each comment.  This prop will also let the component fetch that user's 3Box profile on component mount and render that data (profile picture) in the Comment input UI. |\r\n| `loginFunction`    | Function       |    | B    | A function from your dApp that handles web3 and 3Box login at the global dApp state. This callback will run when a user attempts to save a comment but a `box` instance doesn't yet exist. Running this function should result in a box instance (from `const box = Box.openBox(address, web3)`) being passed as the `box` prop to this component.  |\r\n| `ethereum`    | Object        |  window.ethereum  | C    | The `ethereum` object from whichever web3 provider your dApp uses.  The `enable` method on this object will be used to get the current user's Ethereum address and that address will be used to `openBox` within the current Component context.|\r\n| `members`    | Boolean       |  False   | Optional    | A boolean - `true` - to make the thread a members-only thread. Passing `false` will allow all users to post to the thread.  **Changing this setting after creating it will result in an entirely different thread** (see [Docs.3box.io](https://Docs.3box.io) for more info). |\r\n| `showCommentCount`    | Integer       |  30   | Optional    | The number of comments rendered in the UI by default on component mount and the number of additional comments revealed after clicking `Load more` in component. |\r\n| `spaceOpts`    | Object       | | Optional    | Optional parameters for threads (see [Docs.3box.io](https://Docs.3box.io) for more info)|\r\n| `threadOpts`    | Object       | | Optional    | Optional parameters for threads (see [Docs.3box.io](https://Docs.3box.io) for more info)|\r\n| `useHovers`    | Boolean       |  False  | Optional    | Pass true to enable a 3Box profile pop up when hovering over a commenter's name |\r\n| `currentUser3BoxProfile`    | Object       |   | Optional    | If the current user has already had their 3Box data fetched at the global dApp state, pass the object returned from `Box.getProfile(profileAddress)` to avoid an extra request.  This data will be rendered in the Comment input interface.|\r\n| `userProfileURL`    | Function       |  Defaults to returning user's 3Box profile URL  | Optional    | A function that returns a correctly formatted URL of a user's profile on the current platform.  The function will be passed an Ethereum address within the component, if needed.  A user will be redirected to the URL returned from this function when clicking on the name or Ethereum address associated with the comment in the thread.|\r\n\r\n## License\r\n\r\nMIT\r\n","gitHead":"2dabf8f227b5010fcbd06150a2e574ae210570c5","scripts":{"lint":"eslint ./src","test":"npm run lint && npm run coverage","build":"webpack --config webpack.config.babel.js","clean":"rm -rf dist coverage","start":"webpack-dev-server --config examples/webpack.config.live.babel.js","coverage":"jest --coverage","build:es5":"rm -rf ./lib; ./node_modules/.bin/babel src --out-dir lib --source-maps inline --copy-files --ignore=src/__tests__/,src/__mocks__/","prepublish":"npm run clean && npm run test && npm run build","build-examples":"webpack --config examples/webpack.config.babel.js --progress"},"_npmUser":{"name":"oznekenzo","email":"mkn293@nyu.edu"},"_npmVersion":"6.4.1","description":"Comments component for decentralized applications by 3Box","directories":{},"resolutions":{"babel-core":"7.0.0-bridge.0"},"_nodeVersion":"8.12.0","dependencies":{"3box":"^1.16.0-beta.3","emoji-js":"^3.4.1","babel-core":"^7.0.0-bridge.0","multicodec":"^0.5.6","3id-resolver":"0.0.6","profile-hover":"^1.1.1","react-linkify":"^1.0.0-alpha","@babel/runtime":"^7.6.0","react-inlinesvg":"^1.2.0","svg-inline-loader":"^0.8.0","ethereum-blockies-base64":"^1.0.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.1.2","react":"^16.6.0","enzyme":"^3.3.0","eslint":"^5.8.0","webpack":"^4.9.1","jest-cli":"^23.6.0","node-sass":"^4.7.2","react-dom":"^16.6.0","@babel/cli":"^7.7.7","babel-jest":"^23.6.0","css-loader":"^1.0.1","prop-types":"^15.6.0","@babel/core":"^7.1.2","sass-loader":"^7.0.1","webpack-cli":"^3.1.2","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","did-resolver":"0.0.7","style-loader":"^0.23.1","@babel/register":"^7.0.0","react-hot-loader":"next","@babel/preset-env":"^7.1.0","webpack-dev-server":"^3.1.4","@babel/preset-react":"^7.0.0","eslint-plugin-react":"^7.4.0","react-test-renderer":"^16.0.0","regenerator-runtime":"^0.12.1","clean-webpack-plugin":"^0.1.16","enzyme-adapter-react-16":"^1.1.1","react-addons-test-utils":"^15.5.1","@babel/plugin-proposal-class-properties":"^7.5.5"},"peerDependencies":{"react":">= 16.3.0","react-dom":">= 16.3.0"},"_npmOperationalInternal":{"tmp":"tmp/3box-comments-react_0.0.5-beta.3_1578680593584_0.5159670364814872","host":"s3://npm-registry-packages"}},"0.0.6":{"name":"3box-comments-react","version":"0.0.6","keywords":["comments","3Box","decentralized","ethereum"],"author":{"name":"3box.io"},"license":"MIT","_id":"3box-comments-react@0.0.6","maintainers":[{"name":"oznekenzo","email":"mkn293@nyu.edu"}],"contributors":[{"name":"Kenzo Nakamura","email":"kenzo@nyu.edu"}],"dist":{"shasum":"1f43b0162113650b4c362acf84e44c63188dd002","tarball":"https://registry.npmjs.org/3box-comments-react/-/3box-comments-react-0.0.6.tgz","fileCount":47,"integrity":"sha512-OPGGenWpHRRpAJulddatXGIGPM/X0OcCbqup58IWoXHykHXrXAIQ9E62DFDEM4p9FmmIF6QLGDMMj0G4G3pI9w==","signatures":[{"sig":"MEYCIQD3VOslO8ggTv5v0lT1ZrNt+UtYlXmx+oIahzkTjnwU9QIhAP9hOng2rdLuu/9g9bQIAQGtuUhAWHcJPY9jBTsE0JPw","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":726449,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeGMTgCRA9TVsSAnZWagAA/m8P+wZojmIeCixq5y9ss0h0\n4nqKheQtxhh9jpodsM4PzmpWAS6oq87bDeUFXbdqjSkzsZ5ZfGAy0TjFYEPu\neWuH0a4bMFgEyIw3FoZoUlLMy5WF6/igkaLc8onogh2KtintNi0JJMwulVVN\nv7nnR3wGWGMMM4MDJHzgFJrUokg25pO2HFJspLSs+KIPrlvWyFQDwS/k+hRo\nFj+g1XvQFakpNA3WWohwN+lEONweYMVnss3+fWC2mprjFZoOPQRFPGaeGWmA\nzkNTP30umdlmc20E7qlSLcMh7msQtZYpVUneuMUItdi5RWpnheXjZw2V7ln9\nCCy00RCAzaObj+/LprIuMbeo6HdPD4i//yEreY9wycfwsv3kbupS2KapfQlp\nHJluxyoJN93dJjDxAM/Stw0l8eUt9/V4TS/YJxYyhnruWgDpIxdWcbV0JrlB\nd99UFAuqhTFL4f+GBSrpk1I1sbkSRvGrb8YNp2lTZ9MvoDP0zI3ZF9GpatAH\nKy7Mu1Uv0czIWPzzjZ/8qjQdTD5CQAj0zSJOA/+tHgZnRAsSO3VqsAnIHt85\nQJFctb0wdefra8nrHjhMY8GLFB701LWwRmUWdA+JiF/EurGte3tGkTnL6hvM\nQsZA/70pqflw0hr6NdVyFTfgei+Uj78U3MV/E6iFOrNoqTCG9QWxoKXfOK9Q\nOH46\r\n=2/F5\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib/index.js","gitHead":"2dabf8f227b5010fcbd06150a2e574ae210570c5","scripts":{"lint":"eslint ./src","test":"npm run lint && npm run coverage","build":"webpack --config webpack.config.babel.js","clean":"rm -rf dist coverage","start":"webpack-dev-server --config examples/webpack.config.live.babel.js","coverage":"jest --coverage","build:es5":"rm -rf ./lib; ./node_modules/.bin/babel src --out-dir lib --source-maps inline --copy-files --ignore=src/__tests__/,src/__mocks__/","prepublish":"npm run clean && npm run test && npm run build","build-examples":"webpack --config examples/webpack.config.babel.js --progress"},"_npmUser":{"name":"oznekenzo","email":"mkn293@nyu.edu"},"deprecated":"Deprecated in favor of Ceramic: https://developers.ceramic.network","_npmVersion":"6.4.1","description":"Comments component for decentralized applications by 3Box","directories":{},"resolutions":{"babel-core":"7.0.0-bridge.0"},"_nodeVersion":"8.12.0","dependencies":{"3box":"^1.16.0-beta.3","emoji-js":"^3.4.1","babel-core":"^7.0.0-bridge.0","multicodec":"^0.5.6","3id-resolver":"0.0.6","profile-hover":"^1.1.1","react-linkify":"^1.0.0-alpha","@babel/runtime":"^7.6.0","react-inlinesvg":"^1.2.0","svg-inline-loader":"^0.8.0","ethereum-blockies-base64":"^1.0.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","react":"^16.6.0","enzyme":"^3.3.0","eslint":"^5.8.0","webpack":"^4.9.1","jest-cli":"^23.6.0","node-sass":"^4.7.2","react-dom":"^16.6.0","@babel/cli":"^7.7.7","babel-jest":"^23.6.0","css-loader":"^1.0.1","prop-types":"^15.6.0","@babel/core":"^7.1.2","sass-loader":"^7.0.1","webpack-cli":"^3.1.2","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","did-resolver":"0.0.7","style-loader":"^0.23.1","@babel/register":"^7.0.0","react-hot-loader":"next","@babel/preset-env":"^7.1.0","webpack-dev-server":"^3.1.4","@babel/preset-react":"^7.0.0","eslint-plugin-react":"^7.4.0","react-test-renderer":"^16.0.0","regenerator-runtime":"^0.12.1","clean-webpack-plugin":"^0.1.16","enzyme-adapter-react-16":"^1.1.1","react-addons-test-utils":"^15.5.1","@babel/plugin-proposal-class-properties":"^7.5.5"},"peerDependencies":{"react":">= 16.3.0","react-dom":">= 16.3.0"},"_npmOperationalInternal":{"tmp":"tmp/3box-comments-react_0.0.6_1578681568308_0.7424745877681613","host":"s3://npm-registry-packages"}},"0.0.7":{"name":"3box-comments-react","version":"0.0.7","keywords":["comments","3Box","decentralized","ethereum"],"author":{"name":"3box.io"},"license":"MIT","_id":"3box-comments-react@0.0.7","maintainers":[{"name":"oznekenzo","email":"mkn293@nyu.edu"}],"contributors":[{"name":"Kenzo Nakamura","email":"kenzo@nyu.edu"}],"dist":{"shasum":"16d3b9bbd5f41b338fa2628c1384a19021de8c65","tarball":"https://registry.npmjs.org/3box-comments-react/-/3box-comments-react-0.0.7.tgz","fileCount":47,"integrity":"sha512-yUESVEzSrUk8bFlXbz4k9yexx618A8xehfVGUq1Rb1rd3c2yyONT+2WKxd2acFD6gU6TXaRSddowKUjQR2iT6Q==","signatures":[{"sig":"MEUCIQCzdAvDJepUYg/95Rd3XOwxolGUvkO4lMn9aKo7BJiBVgIgMM9DY3EFTRBatqMcJacDU+fmmEqxs3MaQwRTYxeTeL0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":726442,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeGMdYCRA9TVsSAnZWagAAMgAP/iRmshz0TTRqwAuS3S+9\nyQWxg4l23vtxCzgixDo79eaoOLGdCPmPRacltqZEEWBNiUa+pv3QFqeUdqI3\n2Ko7M5YTSxVDsUm8mvz8I5cxL3dHaS1BWMNvIKm7Bqsk8IzrLOY94CUE3qK6\n+9wAfHJCOkMbo00dCXmC0X1BacL6Kf5Trjg2QJmBuZgWKRmttoVM4AGEeGmr\nvo7VWBmLxpnRWM4fLXgzKBJpbjXokBTVPMcaqSkKruzVGFhUiLbpuuJIfpXd\nZWIUWtrEFzZWf9BmYWAmm5d3nDyukjrFR+TAFB4ZLzp5Q3EB3dqCajZuG9iw\nsCaJr6OwSp4UbD/q3xZZnrf2b6jX9T3P5n5vwvg2+eiNTxoFCjxcFgRFC5Eb\nwcSLkRnV6yAGcLORykJTwyd9W3bANYdlDFIRTLpS5dLpfl2LyUgz/yzQlfiq\n9jMk8vgRs4wb+25yKFWVgg67IPMqvab10hMEeeIB4x0gDY9hsiRMWwixoFtS\nOlUUFehq5HlIPjYMYH/z4Ap9RdhwDXrXA0KgMrqpfrk9iCHZ/QL5cfT1p88y\nlyRwNlySgZh4ZzGIk1SIthJl6XslGk4qn7yV8NBaK74v+DDyHUwMMBeoyRke\ncdrAajmIDZIFNKtygcFs3lqITqf2vyEwAi/imazu/8uAQiHiK/DN4kDKzLmL\n99ME\r\n=e6gy\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib/index.js","gitHead":"38c3298bf12530fee09c5cefc60aab503d6ef4c8","scripts":{"lint":"eslint ./src","test":"npm run lint && npm run coverage","build":"webpack --config webpack.config.babel.js","clean":"rm -rf dist coverage","start":"webpack-dev-server --config examples/webpack.config.live.babel.js","coverage":"jest --coverage","build:es5":"rm -rf ./lib; ./node_modules/.bin/babel src --out-dir lib --source-maps inline --copy-files --ignore=src/__tests__/,src/__mocks__/","prepublish":"npm run clean && npm run test && npm run build","build-examples":"webpack --config examples/webpack.config.babel.js --progress"},"_npmUser":{"name":"oznekenzo","email":"mkn293@nyu.edu"},"deprecated":"Deprecated in favor of Ceramic: https://developers.ceramic.network","_npmVersion":"6.4.1","description":"Comments component for decentralized applications by 3Box","directories":{},"resolutions":{"babel-core":"7.0.0-bridge.0"},"_nodeVersion":"8.12.0","dependencies":{"3box":"^1.16.0","emoji-js":"^3.4.1","babel-core":"^7.0.0-bridge.0","multicodec":"^0.5.6","3id-resolver":"0.0.6","profile-hover":"^1.1.1","react-linkify":"^1.0.0-alpha","@babel/runtime":"^7.6.0","react-inlinesvg":"^1.2.0","svg-inline-loader":"^0.8.0","ethereum-blockies-base64":"^1.0.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","react":"^16.6.0","enzyme":"^3.3.0","eslint":"^5.8.0","webpack":"^4.9.1","jest-cli":"^23.6.0","node-sass":"^4.7.2","react-dom":"^16.6.0","@babel/cli":"^7.7.7","babel-jest":"^23.6.0","css-loader":"^1.0.1","prop-types":"^15.6.0","@babel/core":"^7.1.2","sass-loader":"^7.0.1","webpack-cli":"^3.1.2","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","did-resolver":"0.0.7","style-loader":"^0.23.1","@babel/register":"^7.0.0","react-hot-loader":"next","@babel/preset-env":"^7.1.0","webpack-dev-server":"^3.1.4","@babel/preset-react":"^7.0.0","eslint-plugin-react":"^7.4.0","react-test-renderer":"^16.0.0","regenerator-runtime":"^0.12.1","clean-webpack-plugin":"^0.1.16","enzyme-adapter-react-16":"^1.1.1","react-addons-test-utils":"^15.5.1","@babel/plugin-proposal-class-properties":"^7.5.5"},"peerDependencies":{"react":">= 16.3.0","react-dom":">= 16.3.0"},"_npmOperationalInternal":{"tmp":"tmp/3box-comments-react_0.0.7_1578682199701_0.27075406860511575","host":"s3://npm-registry-packages"}},"0.0.8":{"name":"3box-comments-react","version":"0.0.8","keywords":["comments","3Box","decentralized","ethereum"],"author":{"name":"3box.io"},"license":"MIT","_id":"3box-comments-react@0.0.8","maintainers":[{"name":"oznekenzo","email":"mkn293@nyu.edu"}],"contributors":[{"name":"Kenzo Nakamura","email":"kenzo@nyu.edu"}],"dist":{"shasum":"9072bfe02f5c05e060406eca8073170ab2fad3b7","tarball":"https://registry.npmjs.org/3box-comments-react/-/3box-comments-react-0.0.8.tgz","fileCount":47,"integrity":"sha512-YTk/s6bp+hhwvt3NL0mA2oQ8tv1f2DlqVvjh/1L+YQJ7qwKXROB0YlJH5cv7sc4GAGZ656YxneaFNUHX0dxUSA==","signatures":[{"sig":"MEUCIGJbIoTqd5x+odUTDRzkr5Ga2lWgrQtR69cZJOzNiWkkAiEAq2svyz9pIJwzS/VIlnLS/+Bzvg0bpA4naeFmUu54Lac=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":726508,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeHLf/CRA9TVsSAnZWagAAl2MP/1WqfHIiWCNytS6bU3hX\nbNSj2kUypJnrHC2fyV8aISRRu57GyEaYHe953jz0Uh2jiKju/YOu+HVjRj2m\nGLLd4Cpt/pFXY8aIP1MtvlhpKnEK8N8SmLd71h9K77czayi2ltjw/xowszod\nJjZBrJ0uw4oPWSXyHorI08eTKyhIvJ4eRmmkuSsnF9Y/JyIaJk6XeN3S+RZh\nKUleqQw/19VQ/DDgmRWsDhvOG3n9HrqC1mxsvwLyPWWcPpiR4IADCL7pDY0t\ndAoKgazgJa8D65sAHZe8ZCoUHLJZG0ekvpv3reSTqFb68nkZR3HuMYTtsCi0\nSPchN9W0sLKMEvDHYM6HmxE5P30X7TygdkETxnXjtjeHmi4ugsOlHIT0/UoQ\nly44BWuU8b+EGtAFqQ/4f4BDc7tCKwEIm0//VbKhFxSRj/TtPUgJhVw+kMGl\nlrMu5NymcBBCMybIgcJZcwsTMiRwFVMHhnrY7HDh1ngGhPGnGHO7rBfcGajp\n1Qh8Ea3b7uX91q4lQ2JDvBSXti5+9cN/Icg+/OAIO8BV9NHYU679LET6v3DE\nKldeKROBPkiaIeRM3DSHMXqorR02DOyDU2xOuXLPytg2lHXX8iGK8+wD/FYf\nc4Fnxo4mwWYKpDDKhtBGyr4LviU6xuseuz5oPJPuPo//OmKDvoN20dRZZEzK\nD9SO\r\n=smSq\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib/index.js","gitHead":"442677beffb16a5401dbed6d6a182360f2c58a82","scripts":{"lint":"eslint ./src","test":"npm run lint && npm run coverage","build":"webpack --config webpack.config.babel.js","clean":"rm -rf dist coverage","start":"webpack-dev-server --config examples/webpack.config.live.babel.js","coverage":"jest --coverage","build:es5":"rm -rf ./lib; ./node_modules/.bin/babel src --out-dir lib --source-maps inline --copy-files --ignore=src/__tests__/,src/__mocks__/","prepublish":"npm run clean && npm run test && npm run build","build-examples":"webpack --config examples/webpack.config.babel.js --progress"},"_npmUser":{"name":"oznekenzo","email":"mkn293@nyu.edu"},"deprecated":"Deprecated in favor of Ceramic: https://developers.ceramic.network","_npmVersion":"6.4.1","description":"Comments component for decentralized applications by 3Box","directories":{},"resolutions":{"babel-core":"7.0.0-bridge.0"},"_nodeVersion":"8.12.0","dependencies":{"3box":"^1.16.0","emoji-js":"^3.4.1","node-sass":"^4.13.0","babel-core":"^7.0.0-bridge.0","multicodec":"^0.5.6","3id-resolver":"0.0.6","profile-hover":"^1.1.1","react-linkify":"^1.0.0-alpha","@babel/runtime":"^7.6.0","react-inlinesvg":"^1.2.0","svg-inline-loader":"^0.8.0","ethereum-blockies-base64":"^1.0.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","react":"^16.6.0","enzyme":"^3.3.0","eslint":"^5.8.0","webpack":"^4.9.1","jest-cli":"^23.6.0","react-dom":"^16.6.0","@babel/cli":"^7.7.7","babel-jest":"^23.6.0","css-loader":"^1.0.1","prop-types":"^15.6.0","@babel/core":"^7.1.2","sass-loader":"^7.0.1","webpack-cli":"^3.1.2","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","did-resolver":"0.0.7","style-loader":"^0.23.1","@babel/register":"^7.0.0","react-hot-loader":"next","@babel/preset-env":"^7.1.0","webpack-dev-server":"^3.1.4","@babel/preset-react":"^7.0.0","eslint-plugin-react":"^7.4.0","react-test-renderer":"^16.0.0","regenerator-runtime":"^0.12.1","clean-webpack-plugin":"^0.1.16","enzyme-adapter-react-16":"^1.1.1","react-addons-test-utils":"^15.5.1","@babel/plugin-proposal-class-properties":"^7.5.5"},"peerDependencies":{"react":">= 16.3.0","react-dom":">= 16.3.0"},"_npmOperationalInternal":{"tmp":"tmp/3box-comments-react_0.0.8_1578940414952_0.6722280232613869","host":"s3://npm-registry-packages"}},"0.0.9":{"name":"3box-comments-react","version":"0.0.9","keywords":["comments","3Box","decentralized","ethereum"],"author":{"name":"3box.io"},"license":"MIT","_id":"3box-comments-react@0.0.9","maintainers":[{"name":"oznekenzo","email":"mkn293@nyu.edu"}],"contributors":[{"name":"Kenzo Nakamura","email":"kenzo@nyu.edu"}],"dist":{"shasum":"193a571a790e9d8d76bdfb844e64a8dfb4de264a","tarball":"https://registry.npmjs.org/3box-comments-react/-/3box-comments-react-0.0.9.tgz","fileCount":47,"integrity":"sha512-3aLxq/NyGjugF1LNig6yHfZb/sIoV+EipovEciT2Fxa0GNnvZGG0Z+WquDSStynIkQPc4jOLSZXsOplv0mVmeQ==","signatures":[{"sig":"MEQCIEIylXjg6uAn1m+uqV2IFHqtUn9ob7d35hRPeJs17D1oAiAdp48VkX5lYMqV1LLKBuddoswsFc7d2orfCOaX24sYgw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":726704,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeHNSlCRA9TVsSAnZWagAAd9sQAJ5cApGGp8H9MRRhuspI\nXdcTrqJNdyBtGiBXOEe52+cmDg1ND3sujnKwOlgGSx60a8VxQAayqbTucGNi\nGEflZ2ZEQLWq+7DxidjqxSr2qIEzPR6jN88k1GhMh3SoHjFI5KOOUyVqGbme\nssxHJ5ZBDWhkXPpiYBY9/Shzugnx/EnHp4COgFlUfkGYpnUejfQ79ZuiBVJl\nZdcwoPmgW4Tr9kjP5pa7esyofFdSVh517Tc/5JVpDW5iyvDsDtygkdVI0IUE\npNhurf28RCGMWb/PYDpFlYmJqpECZQ0tnPGVjUATnAyxICXdgEBdIM07m42C\n4xOCkvWmy5n8e4sLeoo1YuQFIJ1lHzggZrfUGx4uhgqtc/wxEobtYT4mgSo+\nLYLmMnPOp2XT2oojqGBLMlR1eTfWjC3BPTeJyeYgKzXYGp7HsFhlwLiAoS4d\nGX4JXwTWzc2Mq6d2dkuxAtQL1oO+FZ21Vd8EGjB9MiVH5CeR2Q82hrjltpiI\nfWFO7aZYY5cfrQacR5b914QBogDpstQcetWQzc+eQOAqmSxrDmvHtlLi2GUC\nT8+6Ew5y5TFnyr1OAOBFyJScpxxNA4ciAjZk+2WuRL4Ck4vYU89V/758yzGN\nB9AcdSlCCkkFet+kSVAZUYmwnsph8i8rpS3mPwKzxEifmVswFvk0woHiyngb\nis/q\r\n=aCY8\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib/index.js","gitHead":"442677beffb16a5401dbed6d6a182360f2c58a82","scripts":{"lint":"eslint ./src","test":"npm run lint && npm run coverage","build":"webpack --config webpack.config.babel.js","clean":"rm -rf dist coverage","start":"webpack-dev-server --config examples/webpack.config.live.babel.js","coverage":"jest --coverage","build:es5":"rm -rf ./lib; ./node_modules/.bin/babel src --out-dir lib --source-maps inline --copy-files --ignore=src/__tests__/,src/__mocks__/","prepublish":"npm run clean && npm run test && npm run build","build-examples":"webpack --config examples/webpack.config.babel.js --progress"},"_npmUser":{"name":"oznekenzo","email":"mkn293@nyu.edu"},"deprecated":"Deprecated in favor of Ceramic: https://developers.ceramic.network","_npmVersion":"6.4.1","description":"Comments component for decentralized applications by 3Box","directories":{},"resolutions":{"babel-core":"7.0.0-bridge.0"},"_nodeVersion":"8.12.0","dependencies":{"3box":"^1.16.0","emoji-js":"^3.4.1","node-sass":"^4.13.0","babel-core":"^7.0.0-bridge.0","multicodec":"^0.5.6","3id-resolver":"0.0.6","profile-hover":"^1.1.1","react-linkify":"^1.0.0-alpha","@babel/runtime":"^7.6.0","react-inlinesvg":"^1.2.0","svg-inline-loader":"^0.8.0","ethereum-blockies-base64":"^1.0.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","react":"^16.6.0","enzyme":"^3.3.0","eslint":"^5.8.0","webpack":"^4.9.1","jest-cli":"^23.6.0","react-dom":"^16.6.0","@babel/cli":"^7.7.7","babel-jest":"^23.6.0","css-loader":"^1.0.1","prop-types":"^15.6.0","@babel/core":"^7.1.2","sass-loader":"^7.0.1","webpack-cli":"^3.1.2","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","did-resolver":"0.0.7","style-loader":"^0.23.1","@babel/register":"^7.0.0","react-hot-loader":"next","@babel/preset-env":"^7.1.0","webpack-dev-server":"^3.1.4","@babel/preset-react":"^7.0.0","eslint-plugin-react":"^7.4.0","react-test-renderer":"^16.0.0","regenerator-runtime":"^0.12.1","clean-webpack-plugin":"^0.1.16","enzyme-adapter-react-16":"^1.1.1","react-addons-test-utils":"^15.5.1","@babel/plugin-proposal-class-properties":"^7.5.5"},"peerDependencies":{"react":">= 16.3.0","react-dom":">= 16.3.0"},"_npmOperationalInternal":{"tmp":"tmp/3box-comments-react_0.0.9_1578947748965_0.4635404281467592","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"3box-comments-react","version":"1.0.0","keywords":["comments","3Box","decentralized","ethereum"],"author":{"name":"3box.io"},"license":"MIT","_id":"3box-comments-react@1.0.0","maintainers":[{"name":"oznekenzo","email":"mkn293@nyu.edu"}],"contributors":[{"name":"Kenzo Nakamura","email":"kenzo@nyu.edu"}],"dist":{"shasum":"cce200424c3a03b3b990ea721d4aa796dc01d19e","tarball":"https://registry.npmjs.org/3box-comments-react/-/3box-comments-react-1.0.0.tgz","fileCount":55,"integrity":"sha512-sG3mws1dYFckis8Op//72ALqaNl1MtrH324HhHuDt0pVyWy29sODyyB3q9Mow4YHoL8dGNkytrMu29MOdtvFlw==","signatures":[{"sig":"MEYCIQCwKXZzM6iP/Fo11NWBqU00e48EWQxsJJFnWc5WfaOAGAIhALSZZPCPTX0WRgGjrYTAfClA5psCirocdsH3o/54zFJn","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":500048,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeMfdhCRA9TVsSAnZWagAAPUkQAJpwRnK8yCUHghDLl0dG\n5w1PV8btg6sRKkCba4r6b2jizETj8DMt7pCyfJO/ay+mESeCCNH3Q828GUsf\nSMO7QCcT4HdHjeLentNjxNVUkz8eUE/0qStJflFVvZRkKCJYGJ6QkYjXme3W\nvKIo3NmGntzr02PAh1f4KRSANecban3CybwWAqWNt6F7T6PQAb0RmzSVAaWI\nicJEf84stEdmB1Xs5ONR3wsq/1DCFh6rUVi1QLVEILFQZ3AK19qu/HmKHWiE\neTsfuNVeRWi9jZilSZIprliSopcFPyj53fVhF/jiSjqdc3EiP8EBLXPnvpHF\nbfSPePfhi8fHTEeWANZOQXBTvbt8ahV2PsnjTN3DdlNFRTAQhyQpEdqywDNE\nfdpahgNaGtKIuheoWJkdAj+eSrV6RQrCT2Vz6/hiVbcX6Bh/XnbvtMGBHNfI\n7uyEC3EnBZOlTlkRovOwPZG0DxSOGH8e1EICkkFm4ACj8WIfNWuW5mSTYQWB\n8bsNNmx5eoxsGzg50b1fRJsoqeYnmnI+rhbuz/eaySuC/WjJb6s2VODvAIfM\nkbbAhx8gu8VMdl9CsJhrDRo+U/ap7LH7+jq+xAypvbcsyHutPcttgiBIkJiu\nux00UVFOTAXGSmIkx0XfgQdzS1Rwu7z1moCY6EF9Tc+uW/IpeIQHIQV0mg0n\nDjVl\r\n=6aAs\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib/index.js","gitHead":"bce0be050f7fa03311323c2c94f9f5378231b5ad","scripts":{"lint":"eslint ./src","test":"npm run lint && npm run coverage","build":"webpack --config webpack.config.babel.js","clean":"rm -rf dist coverage","start":"webpack-dev-server --config examples/webpack.config.live.babel.js","coverage":"jest --coverage","build:es5":"rm -rf ./lib; ./node_modules/.bin/babel src --out-dir lib --source-maps inline --copy-files --ignore=src/__tests__/,src/__mocks__/","prepublish":"npm run clean && npm run test && npm run build","build-examples":"webpack --config examples/webpack.config.babel.js --progress"},"_npmUser":{"name":"oznekenzo","email":"mkn293@nyu.edu"},"deprecated":"Deprecated in favor of Ceramic: https://developers.ceramic.network","_npmVersion":"6.13.4","description":"Comments component for decentralized applications by 3Box","directories":{},"resolutions":{"babel-core":"7.0.0-bridge.0"},"_nodeVersion":"12.14.1","dependencies":{"3box":"^1.16.0","emoji-js":"^3.4.1","node-sass":"^4.13.0","babel-core":"^7.0.0-bridge.0","multicodec":"^0.5.6","3id-resolver":"0.0.6","profile-hover":"^1.1.1","react-linkify":"^1.0.0-alpha","@babel/runtime":"^7.6.0","react-inlinesvg":"^1.2.0","svg-inline-loader":"^0.8.0","ethereum-blockies-base64":"^1.0.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","react":"^16.6.0","enzyme":"^3.3.0","eslint":"^5.8.0","webpack":"^4.9.1","jest-cli":"^23.6.0","react-dom":"^16.6.0","@babel/cli":"^7.7.7","babel-jest":"^23.6.0","css-loader":"^1.0.1","prop-types":"^15.6.0","@babel/core":"^7.1.2","sass-loader":"^7.0.1","webpack-cli":"^3.1.2","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","did-resolver":"0.0.7","style-loader":"^0.23.1","@babel/register":"^7.0.0","react-hot-loader":"^4.12.19","@babel/preset-env":"^7.1.0","webpack-dev-server":"^3.1.4","@babel/preset-react":"^7.0.0","eslint-plugin-react":"^7.4.0","react-test-renderer":"^16.0.0","regenerator-runtime":"^0.12.1","clean-webpack-plugin":"^0.1.16","enzyme-adapter-react-16":"^1.1.1","react-addons-test-utils":"^15.5.1","@babel/plugin-proposal-class-properties":"^7.5.5"},"peerDependencies":{"react":">= 16.3.0","react-dom":">= 16.3.0"},"_npmOperationalInternal":{"tmp":"tmp/3box-comments-react_1.0.0_1580332896680_0.7416607323375966","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"3box-comments-react","version":"1.0.1","keywords":["comments","3Box","decentralized","ethereum"],"author":{"name":"3box.io"},"license":"MIT","_id":"3box-comments-react@1.0.1","maintainers":[{"name":"oznekenzo","email":"mkn293@nyu.edu"}],"contributors":[{"name":"Kenzo Nakamura","email":"kenzo@nyu.edu"}],"dist":{"shasum":"1405b1163990bf5bc1ff94805bd131f6ddb670fc","tarball":"https://registry.npmjs.org/3box-comments-react/-/3box-comments-react-1.0.1.tgz","fileCount":55,"integrity":"sha512-LdREelT0qmt3JvkFCJVxrIvCKd32S8jtvz5szFBWrD09jQBBlATG9L0YwLyIjoBqdNVZajFHnshb8zaOoFFHYg==","signatures":[{"sig":"MEQCIE0gFC6Rd+xGWShobr5g3YSB9v2pd65UKs9sSvLQj7FWAiAuwvr6Esa8nkZ2L3bkezM1ZM07hB0zjQPnKBgAhaCqEg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":502542,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeOyd1CRA9TVsSAnZWagAALUIQAKIh+0sC7W+nlLB/cN8q\nr2H8SJ1TZ9KRsAmAFki3iLYZi/EaXPvFQv4csSfO3OZdF0+xhhJKIqsTZFFF\n7WbRzvrT2yariR28yGAjrzAOb9U3KXEbDR69HTO7BSuFyF5W3QEE8Rvfka3W\nyp65AAfgUH1mYP+vE753JPQDe2U0+tVcEB9J7njG2uq4fuuKGbu340rwN1Ln\nFpIOmZbB9IPiv1XeKCmXwdgj52XALUOaA5bYt/Q2DbQay2gB7zELa3e7HI4x\nZ6i2zMWUqpuOy0ZDZtJBYSBpwnxj+Q1t6yF5gziW/uJXrSg5mRaGyMiVwcLt\nxyjDhmnWMzRgWI8lZSMRl5ZCu4if0Hp5Q9SoirBcSc52I5xdIH60H92lLPcj\nRqj+GQoDXx7l5EVdrLABpHUhyvbLeULP5QdyT0+Cu7bT1rpPRkVac7nOWFPq\nttN+HVKoaf5z4h4p2TY94wN3PBPDQlazGt9VrCeh/WqnDjyu6p5jqaAzV7D0\nq3j/1fxJw6XU+/AQ9zH+aFzq7h2kVftfTHsLdwB088hog0ZgGzgu77BEqRGR\nzrZP45e8iqPDVCdIfpvJ2dDeFWDPduNAInunlH8vpQd79dY63xe0+f/Ho9J2\nySelXdLVCQR7wjf2ddZ1YCKlaBsN//h28v34W0A5qWJbMOyJ4tLtWlZ6QFRD\nwz6Y\r\n=Y5zj\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib/index.js","gitHead":"2e99434a6f92898178686a6cc65e7a52abf09b0e","scripts":{"lint":"eslint ./src","test":"npm run lint && npm run coverage","build":"webpack --config webpack.config.babel.js","clean":"rm -rf dist coverage","start":"webpack-dev-server --config examples/webpack.config.live.babel.js","coverage":"jest --coverage","build:es5":"rm -rf ./lib; ./node_modules/.bin/babel src --out-dir lib --source-maps inline --copy-files --ignore=src/__tests__/,src/__mocks__/","prepublish":"npm run clean && npm run test && npm run build","build-examples":"webpack --config examples/webpack.config.babel.js --progress"},"_npmUser":{"name":"oznekenzo","email":"mkn293@nyu.edu"},"deprecated":"Deprecated in favor of Ceramic: https://developers.ceramic.network","_npmVersion":"6.13.4","description":"Comments component for decentralized applications by 3Box","directories":{},"resolutions":{"babel-core":"7.0.0-bridge.0"},"_nodeVersion":"12.14.1","dependencies":{"3box":"^1.16.0","emoji-js":"^3.4.1","node-sass":"^4.13.0","babel-core":"^7.0.0-bridge.0","multicodec":"^0.5.6","3id-resolver":"0.0.6","profile-hover":"^1.1.1","react-linkify":"^1.0.0-alpha","@babel/runtime":"^7.6.0","react-inlinesvg":"^1.2.0","svg-inline-loader":"^0.8.0","ethereum-blockies-base64":"^1.0.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","react":"^16.6.0","enzyme":"^3.3.0","eslint":"^5.8.0","webpack":"^4.9.1","jest-cli":"^23.6.0","react-dom":"^16.6.0","@babel/cli":"^7.7.7","babel-jest":"^23.6.0","css-loader":"^1.0.1","prop-types":"^15.6.0","@babel/core":"^7.1.2","sass-loader":"^7.0.1","webpack-cli":"^3.1.2","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","did-resolver":"0.0.7","style-loader":"^0.23.1","@babel/register":"^7.0.0","react-hot-loader":"^4.12.19","@babel/preset-env":"^7.1.0","webpack-dev-server":"^3.1.4","@babel/preset-react":"^7.0.0","eslint-plugin-react":"^7.4.0","react-test-renderer":"^16.0.0","regenerator-runtime":"^0.12.1","clean-webpack-plugin":"^0.1.16","enzyme-adapter-react-16":"^1.1.1","react-addons-test-utils":"^15.5.1","@babel/plugin-proposal-class-properties":"^7.5.5"},"peerDependencies":{"react":">= 16.3.0","react-dom":">= 16.3.0"},"_npmOperationalInternal":{"tmp":"tmp/3box-comments-react_1.0.1_1580935029283_0.5876231993446359","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"3box-comments-react","version":"1.0.2","keywords":["comments","3Box","decentralized","ethereum"],"author":{"name":"3box.io"},"license":"MIT","_id":"3box-comments-react@1.0.2","maintainers":[{"name":"oznekenzo","email":"mkn293@nyu.edu"}],"contributors":[{"name":"Kenzo Nakamura","email":"kenzo@nyu.edu"}],"dist":{"shasum":"3554c87dd803c3627c2c23f5113a6c9d81db75bb","tarball":"https://registry.npmjs.org/3box-comments-react/-/3box-comments-react-1.0.2.tgz","fileCount":55,"integrity":"sha512-qOBT6CPERLwq2XmDRn88gxVuRSWJZz69E3xQ4NEGRu5xCF843Fy0lMRjXvXkAppT5ObQb6PdgunPx6ZANSvcOw==","signatures":[{"sig":"MEQCIEGGPbljjHKstk1OvtYGsmjwPrqbnUMdGaVy6/H9L2CPAiAiup9+HmCS5Ik4DbscTD9rTHGURNBzOCVR0DXLTbybHg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":502601,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeRw2tCRA9TVsSAnZWagAAjO0P/0uErIyMa10rYQxg4Ru1\nS0Vz9iGXW16YNa9kFHaPQO6B/HCEQyAyOme/sFr4AOCqzNLWrmTe43n3YvXm\nrGHHhHSZ6XOyG8oZML4WNNw7/VPhNXrgMGpvGgi7C/ogdlCGGqhVg3x/zE43\nf6pWIhXVMxEvZwl6ntU3W2ILOq1wybLXrZb0Pv0c6Sfn56lfQZEq6BBVipM3\nbkMmq67uNRoKpz2fkfScMaXKCVfK7RSUpgzgf9erErolo0Ej9gMrb+ya6XEQ\niJhXxQxVjuPYLLGu58Av848wrzg1GVj7YRXsZcUn6msW62qJWYpQyp4AWjRZ\nFZK9mYzbD/ykmfvSltr97BIb2JE55hk665ADCb/YzM989UjLmi/BkukJqC7w\nWY2+lnWlnrjHxietSOlaYWUMyBrb52J4oluVHS3O2kz16QRUSLcWqk58QhpZ\nyDJYBFCzvnHMoWUVM1UinZffNiMMiemQ1AaQHRwqohmjGxpnRAazPYEGIDGI\nBKABjvmvCFfVJNa8kMY8XrVlMu5PzSLB0AcjgE7gM7FME82JaFKkS8btGQfd\nbZ2gxdFxXcz3M2S9swk9iQ8YMEWGOHzbVtTnBnX0coWxqmrUbWWkQNWYfqH7\n2HRNcsg+fhTB5K3vM4K7IJpZMWpufv3bLDgRWDWsxqSjAUQOwEC18QiwumEs\nwfiy\r\n=1TOG\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib/index.js","gitHead":"747e6ed9d05463b29d7718dc3c0740d132268a94","scripts":{"lint":"eslint ./src","test":"npm run lint && npm run coverage","build":"webpack --config webpack.config.babel.js","clean":"rm -rf dist coverage","start":"webpack-dev-server --config examples/webpack.config.live.babel.js","coverage":"jest --coverage","build:es5":"rm -rf ./lib; ./node_modules/.bin/babel src --out-dir lib --source-maps inline --copy-files --ignore=src/__tests__/,src/__mocks__/","prepublish":"npm run clean && npm run test && npm run build","build-examples":"webpack --config examples/webpack.config.babel.js --progress"},"_npmUser":{"name":"oznekenzo","email":"mkn293@nyu.edu"},"deprecated":"Deprecated in favor of Ceramic: https://developers.ceramic.network","_npmVersion":"6.13.4","description":"Comments component for decentralized applications by 3Box","directories":{},"resolutions":{"babel-core":"7.0.0-bridge.0"},"_nodeVersion":"12.14.1","dependencies":{"3box":"^1.17.0","emoji-js":"^3.4.1","node-sass":"^4.13.0","babel-core":"^7.0.0-bridge.0","multicodec":"^0.5.6","3id-resolver":"0.0.6","profile-hover":"^1.1.1","react-linkify":"^1.0.0-alpha","@babel/runtime":"^7.6.0","react-inlinesvg":"^1.2.0","svg-inline-loader":"^0.8.0","ethereum-blockies-base64":"^1.0.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","react":"^16.6.0","enzyme":"^3.3.0","eslint":"^5.8.0","webpack":"^4.9.1","jest-cli":"^23.6.0","react-dom":"^16.6.0","@babel/cli":"^7.7.7","babel-jest":"^23.6.0","css-loader":"^1.0.1","prop-types":"^15.6.0","@babel/core":"^7.1.2","sass-loader":"^7.0.1","webpack-cli":"^3.1.2","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","did-resolver":"0.0.7","style-loader":"^0.23.1","@babel/register":"^7.0.0","react-hot-loader":"^4.12.19","@babel/preset-env":"^7.1.0","webpack-dev-server":"^3.1.4","@babel/preset-react":"^7.0.0","eslint-plugin-react":"^7.4.0","react-test-renderer":"^16.0.0","regenerator-runtime":"^0.12.1","clean-webpack-plugin":"^0.1.16","enzyme-adapter-react-16":"^1.1.1","react-addons-test-utils":"^15.5.1","@babel/plugin-proposal-class-properties":"^7.5.5"},"peerDependencies":{"react":">= 16.3.0","react-dom":">= 16.3.0"},"_npmOperationalInternal":{"tmp":"tmp/3box-comments-react_1.0.2_1581714861019_0.7574007546696044","host":"s3://npm-registry-packages"}},"1.0.3-beta.1":{"name":"3box-comments-react","version":"1.0.3-beta.1","keywords":["comments","3Box","decentralized","ethereum"],"author":{"name":"3box.io"},"license":"MIT","_id":"3box-comments-react@1.0.3-beta.1","maintainers":[{"name":"oznekenzo","email":"mkn293@nyu.edu"}],"contributors":[{"name":"Kenzo Nakamura","email":"kenzo@nyu.edu"}],"dist":{"shasum":"878d659b39153dfc5f08f4c14b4acc7ba50b0d61","tarball":"https://registry.npmjs.org/3box-comments-react/-/3box-comments-react-1.0.3-beta.1.tgz","fileCount":67,"integrity":"sha512-rKD/S95TQdc/Dz8TtUtR3p8jwchd1oXwyany2BedeKprhswdS+Mz4XMiz0tnvgffNhC6viJGefgHLEyqCgzMfw==","signatures":[{"sig":"MEUCIGAnD1mauIoHP+xcykgiFt34MEoEwjM4+U5m/+T+VrA8AiEArZyGNxOILnxGuI5vAC10v7sT1cjdfxhrHLoTneAovkg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":525088,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeTb45CRA9TVsSAnZWagAALkAP/1jwwTNVtDW6grRnmwHQ\n7SaWf/3VxQve5jFeElLU1bu+hbj7FeSjvPWm1wZO3pk5TPhOQfVTT+1F5bKh\nJx6F6ohpbeSNtgHxzKUnYWPyWTmNrNLS/PVWG4p5gsZNG/CHoqDS6Ztj9Qej\ntDyJPL1c4qAJJF+ih1YYSZnGr+hEiaRtbIEk7BHfnaRiHyYWLX7Yof1EigRl\nTUmhTPpIGNsplojilNKNR8A3i4s8PaQPMPnOYNkD/0w+YdmhKcojX2gMPFn6\njgrRgbTpsxfH8yYxFXXoldf8ER269mO0NnObmd5EWhDHYO5OhPqmjttim7QK\nnYVrEKum4XV7vDC10uPtyG5PRd3ZblNN0I8bk4LfXVkjZ3J8AaD1ftQ+odqt\nvLUncZbNeQcbt1ErmooucnqGr3deSvpen6DdOyXjDNmtcnyJmrmCIjrkyrjF\n5s6F6+FqQgX/P/6w+sbU35wntEedWjxOvrZwvvOjKiSCpXgfOGCDF87Ep7U2\nzJklTCFKyieoZQT6CwWtP8WYR7j9MzKNjL+Euau0yStrRzsT3p0uE80QJrvT\n+mmJeNKkoORLtJpDOPTTOsru77zXZdEMFFwkSy2PxNiiWuv8YGSj4ahmVOCb\nOxcK3Kg9YMNGvLKKWn5eo9s7bzgfBrPUw86yIk+9PZIPoS97j8oOywwaavQw\nV38M\r\n=klGf\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib/index.js","readme":"[![Discord](https://img.shields.io/discord/484729862368526356.svg?style=for-the-badge)](https://discordapp.com/invite/Z3f3Cxy)\r\n[![npm](https://img.shields.io/npm/v/3box-comments-react.svg?style=for-the-badge)](https://www.npmjs.com/package/3box-comments-react)\r\n[![Twitter Follow](https://img.shields.io/twitter/follow/3boxdb.svg?style=for-the-badge&label=Twitter)](https://twitter.com/3boxdb)\r\n\r\n# 3Box Comments Plugin 💬\r\n\r\n`3box-comments-react` node package is a drop-in react component that provides Web3 developers with a readymade commenting system for their Ethereum application. Easily add rich, decentralized social discourse to your dApp with one line of code. The 3Box Comments plugin is built using 3Box infrastructure, and handles all logic for creating a comments thread. *Read the docs on [docs.3box.io](https://docs.3box.io/build/plugins/comments)*.\r\n\r\n### New Social Features:\r\n**Replies** - reply to comments inline (limited to two levels of replies), deleted comments with nested replies maintain the nested replies</br>\r\n**Emoji reactions** - react to each comment with emojis from an inline picker</br>\r\n**Votes** - Upvote or downvote on any comment</br>\r\n*Note: This is a breaking change - this will break any previously used comments, to create a new one, simply update the threadName in the same space*\r\n</br>\r\n\r\n\r\n### Try the demo [here](https://3box.github.io/3box-comments-react/examples/dist/)\r\n![Example Screenshot](comments-example-screenshot.png)\r\n</br>\r\n\r\n## How it Works\r\n#### Architecture\r\nThe Comments plugin is built using a standard implementation of [Open Threads](https://docs.3box.io/build/web-apps/messaging/choose#open-threads) which are defined in the [3Box Threads API](https://docs.3box.io/api/messaging) and made available via the [`3Box.js SDK`](https://github.com/3box/3box-js). The Comments plugin also includes UI for inputting and displaying user comments, logic for fetching user profiles, and pagination. The component is configurable to various authentication patterns, and can handle both Web3/3Box logged-in & logged-out states. \r\n\r\n#### Authentication\r\nWithout authenticating, users can read messages in the comment thread. However authentication is required to perform more interactive functionality. After the user is authenticated, a user can post a comment, delete their comment, and receive comments from other users in *real-time*.  Note: if you are not logged in and the component has not been passed your ethereum address, the component cannot know which comment belongs to you in order to delete.  In this case, click the login button just below the input UI.\r\n</br>\r\n</br>\r\n\r\n## Getting Started\r\n1. Install the component\r\n2. Choose your authentication pattern\r\n3. Configure application settings\r\n4. Usage\r\n\r\n### 1. Install the component\r\n\r\n```shell\r\nnpm i -S 3box-comments-react\r\n```\r\n\r\n### 2. Choose your authentication pattern\r\nDepending on *when and how* your dApp handles authentication for web3 and 3Box, you will need to provide a different set of props to the component. Three acceptable authentication patterns and their respective props are discussed below in A-C:\r\n\r\n**A) Dapp handles web3 and 3Box logins, and they run *before* component is mounted. (recommended)**\r\n\r\nDapp integrates with `3Box.js SDK` and the `3box-comments-react` component. In this case, the `box` instance returned from `Box.openBox(ethAddr)` via 3Box.js should be passed to the `box` prop in the comments component. The user's current Ethereum address should be passed to the `currentUserAddr` prop to determine `deletePost` access on each comment.\r\n\r\n**B) Dapp handles web3 and 3Box logins, but they haven't run before component is mounted. (recommended)**\r\n\r\nDapp integrates with `3Box.js SDK` and the `3box-comments-react` component. In this case, the login logic implemented in the dapp should be passed to the Comments component as the `loginFunction` prop, which is run when a user attempts to post a comment. The user's current Ethereum address should be passed to the `currentUserAddr` prop to determine `deletePost` access on each comment.\r\n\r\n**C) Dapp has no web3 and 3Box login logic.**\r\n\r\nDapp only integrates with the `3box-comments-react` component, but not `3Box.js SDK`. All web3 and 3Box login logic will be handled within the Comments component, though it's required for the `ethereum` object from your dapp's preferred web3 provider be passed to the `ethereum` prop in the component.\r\n\r\n#### Best practice\r\n\r\nFor the best UX, we recommend implementing one of the following authentication patterns: A; B; or B with A.\r\n\r\nEach of these patterns allow your application to make the `box` object available in global application state where it can be used by all instances of the Comments component regardless of which page the user is on. This global pattern removes the need for users to authenticate on each individual page they wish to comment on, which would be the case in C.\r\n\r\n### 3. Configure application settings\r\n\r\n**First, choose a name for your application's 3Box space.**\r\n\r\nAlthough you are free to choose whichever name you'd like for your app's space, we recommend using the name of your app. If your application already has a 3Box space, you are welcome to use that same one for comments.\r\n\r\n**Next, choose a naming convention for your application's threads.**\r\n\r\nComment threads need a name, and we recommend that your application creates `threadNames` according to a simple rule. We generally like using a natural identifier, such as community name, page URL, token ID, or other similar means.\r\n\r\n**Then, create an admin 3Box account for your application.**\r\n\r\nEach thread is required to have an admin (`adminEthAddr`), which possesses the rights to moderate the thread. We recommend you create an admin Ethereum account for your application so you can perform these actions. While technically you can use any Ethereum address as an admin account, we recommend [creating a 3Box profile](https://3box.io/hub) for that address so if you need to take action in the thread, others will know and trust you as the admin.\r\n\r\n**Lastly, initialize your application's space.**\r\n\r\nBefore threads can be deployed in your dapp, your application's admin account (`adminEthAddr` created in the previous step) must first open the space (`spaceName`) that will be used to store your application's threads. This step *must* be completed before your comment threads can be used by others. This process would likely be done outside the context of your dapp, probably in a test environment.\r\n\r\nSimply open a space by running (via `3Box.js SDK`): \r\n```\r\nconst box = await Box.openBox(adminEthAddr, ethereum);\r\nconst space = await box.openSpace(spaceName, spaceOpts);\r\n```\r\nSign the web3 prompts to complete the space initialization process.\r\n</br>\r\n</br>\r\n\r\n\r\n### 4. Usage\r\n\r\n#### Example\r\n\r\n```jsx\r\nimport ThreeBoxComments from '3box-comments-react';\r\n\r\nconst MyComponent = ({ handleLogin, box, ethereum, myAddress, currentUser3BoxProfile, adminEthAddr }) => (\r\n    <ThreeBoxComments \r\n        // required\r\n        spaceName=\"mySpaceName\"\r\n        threadName=\"myThreadName\"\r\n        adminEthAddr={adminEthAddr}\r\n\r\n\r\n        // Required props for context A) & B)\r\n        box={box}\r\n        currentUserAddr={myAddress}\r\n\r\n        // Required prop for context B)\r\n        loginFunction={handleLogin}\r\n\r\n        // Required prop for context C)\r\n        ethereum={ethereum}\r\n\r\n        // optional\r\n        members={false}\r\n        showCommentCount={10}\r\n        threadOpts={{}}\r\n        useHovers={false}\r\n        currentUser3BoxProfile={currentUser3BoxProfile}\r\n        userProfileURL={address => `https://mywebsite.com/user/${address}`}\r\n    />\r\n);\r\n```\r\n\r\n\r\n#### Prop Types\r\n\r\n| Property | Type          | Default  | Required Case          | Description |\r\n| :-------------------------------- | :-------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------ | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\r\n| `spaceName`    | String        |    |  Always   | Likely your dApp name and / or comment category.  A single `spaceName` with different `threadName`s is common practice when building a dApp with multiple Comment threads. |\r\n| `threadName`    | String       |   | Always    | A name specific to this Comments thread. |\r\n| `adminEthAddr`    | String (Ethereum Address)       |   | Always    | The Ethereum address you wish to give admin rights to for the Comments thread.  This user will be able to delete all comments and accept members in a members-only thread. **A thread with a new admin address, despite identical `spaceName` and `threadName`, will create an entirely new thread.**|\r\n| `box`    | Object         |   | A (and likely B)    | The `box` instance returned from running `await Box.openBox(address, web3)` somewhere in your dApp.|\r\n| `currentUserAddr`    | String (Ethereum Address)          |    | A & B, optional for C | The current user's Ethereum address. Passing this will help determine whether a user has delete access on each comment.  This prop will also let the component fetch that user's 3Box profile on component mount and render that data (profile picture) in the Comment input UI. |\r\n| `loginFunction`    | Function       |    | B    | A function from your dApp that handles web3 and 3Box login at the global dApp state. This callback will run when a user attempts to save a comment but a `box` instance doesn't yet exist. Running this function should result in a box instance (from `const box = Box.openBox(address, web3)`) being passed as the `box` prop to this component.  |\r\n| `ethereum`    | Object        |  window.ethereum  | C    | The `ethereum` object from whichever web3 provider your dApp uses.  The `enable` method on this object will be used to get the current user's Ethereum address and that address will be used to `openBox` within the current Component context.|\r\n| `members`    | Boolean       |  False   | Optional    | A boolean - `true` - to make the thread a members-only thread. Passing `false` will allow all users to post to the thread.  **Changing this setting after creating it will result in an entirely different thread** (see [Docs.3box.io](https://Docs.3box.io) for more info). |\r\n| `showCommentCount`    | Integer       |  30   | Optional    | The number of comments rendered in the UI by default on component mount and the number of additional comments revealed after clicking `Load more` in component. |\r\n| `spaceOpts`    | Object       | | Optional    | Optional parameters for threads (see [Docs.3box.io](https://Docs.3box.io) for more info)|\r\n| `threadOpts`    | Object       | | Optional    | Optional parameters for threads (see [Docs.3box.io](https://Docs.3box.io) for more info)|\r\n| `useHovers`    | Boolean       |  False  | Optional    | Pass true to enable a 3Box profile pop up when hovering over a commenter's name |\r\n| `currentUser3BoxProfile`    | Object       |   | Optional    | If the current user has already had their 3Box data fetched at the global dApp state, pass the object returned from `Box.getProfile(profileAddress)` to avoid an extra request.  This data will be rendered in the Comment input interface.|\r\n| `userProfileURL`    | Function       |  Defaults to returning user's 3Box profile URL  | Optional    | A function that returns a correctly formatted URL of a user's profile on the current platform.  The function will be passed an Ethereum address within the component, if needed.  A user will be redirected to the URL returned from this function when clicking on the name or Ethereum address associated with the comment in the thread.|\r\n\r\n## License\r\n\r\nMIT\r\n","gitHead":"747e6ed9d05463b29d7718dc3c0740d132268a94","scripts":{"lint":"eslint ./src","scss":"node-sass sass -o src/css","test":"npm run lint && npm run coverage","build":"webpack --config webpack.config.babel.js","clean":"rm -rf dist coverage","start":"webpack-dev-server --config examples/webpack.config.live.babel.js; npm run watch","watch":"node-sass --watch scss sass -o src/css","coverage":"jest --coverage","build:es5":"rm -rf ./lib; npm run scss; ./node_modules/.bin/babel src --out-dir lib --source-maps inline --copy-files --ignore=src/__tests__/,src/__mocks__/,src/sass","prepublish":"npm run clean && npm run test && npm run build","build-examples":"webpack --config examples/webpack.config.babel.js --progress"},"_npmUser":{"name":"oznekenzo","email":"mkn293@nyu.edu"},"_npmVersion":"6.13.4","description":"Comments component for decentralized applications by 3Box","directories":{},"resolutions":{"babel-core":"7.0.0-bridge.0"},"_nodeVersion":"12.14.1","dependencies":{"3box":"^1.17.0","emoji-js":"^3.4.1","node-sass":"^4.13.0","babel-core":"^7.0.0-bridge.0","multicodec":"^0.5.6","3id-resolver":"0.0.6","profile-hover":"^1.1.1","react-linkify":"^1.0.0-alpha","@babel/runtime":"^7.6.0","react-inlinesvg":"^1.2.0","svg-inline-loader":"^0.8.0","ethereum-blockies-base64":"^1.0.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.1.2","react":"^16.6.0","enzyme":"^3.3.0","eslint":"^5.8.0","webpack":"^4.9.1","jest-cli":"^23.6.0","react-dom":"^16.6.0","@babel/cli":"^7.7.7","babel-jest":"^23.6.0","css-loader":"^1.0.1","prop-types":"^15.6.0","@babel/core":"^7.1.2","sass-loader":"^7.0.1","webpack-cli":"^3.1.2","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","did-resolver":"0.0.7","style-loader":"^0.23.1","@babel/register":"^7.0.0","react-hot-loader":"^4.12.19","@babel/preset-env":"^7.1.0","webpack-dev-server":"^3.1.4","@babel/preset-react":"^7.0.0","eslint-plugin-react":"^7.4.0","react-test-renderer":"^16.0.0","regenerator-runtime":"^0.12.1","clean-webpack-plugin":"^0.1.16","enzyme-adapter-react-16":"^1.1.1","react-addons-test-utils":"^15.5.1","@babel/plugin-proposal-class-properties":"^7.5.5"},"peerDependencies":{"react":">= 16.3.0","react-dom":">= 16.3.0"},"_npmOperationalInternal":{"tmp":"tmp/3box-comments-react_1.0.3-beta.1_1582153272739_0.3385855991890043","host":"s3://npm-registry-packages"}},"1.0.3-beta.2":{"name":"3box-comments-react","version":"1.0.3-beta.2","keywords":["comments","3Box","decentralized","ethereum"],"author":{"name":"3box.io"},"license":"MIT","_id":"3box-comments-react@1.0.3-beta.2","maintainers":[{"name":"oznekenzo","email":"mkn293@nyu.edu"}],"contributors":[{"name":"Kenzo Nakamura","email":"kenzo@nyu.edu"}],"dist":{"shasum":"c8bdabd10857e59ec8cb1970a049e4e5c8ac6a1a","tarball":"https://registry.npmjs.org/3box-comments-react/-/3box-comments-react-1.0.3-beta.2.tgz","fileCount":67,"integrity":"sha512-YyeIUm97xDPSjesJJUyOJAoHehmAl9m8rpm3i8gbJZxEC6MWO5qW6gh1DVEUqRsnS+ZSnPyFGM45RlkSyQWXoQ==","signatures":[{"sig":"MEYCIQDnxJb/PTWDH049cqU0Ipg7DEO/As66PnC5D9lg0FSCgwIhALru7vDXmSE/067d+XdRVxak9Qo/thQoHZTgANEnpIUO","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":525433,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeVo1SCRA9TVsSAnZWagAA/nMP/18vGFEpK+yysJmc6qW/\nt711nt7N3PX3krdH/ZZGoL4sAdvtXPITtCaMDGZIU+2CLluSqpdS4oEPGOF/\nCg3VtI+UEjG9F7JLs0P93LHHNwpYoy6LTQyKJ4QteenNZ1IAY/6bBSbY+joX\n6mP3A9m1yYTPWQH7Wv5tuJVEUiH6wQh0+e5hN9eMfQF4/QpLVzaHlSlFV1gq\nGevKFV2rvXLE69vwlzzWxtQZsBMgZERUppBz6v3H3xcGjD516P2rvifH6JzU\nuwqAVZZrg5jRO1nVqD92W38XvBQTi0iyxRcR6QI9CfvUdHNz8VV+9JXUrR0s\nmQOePIajRag/etd2ZGIQGE1ibF3AeVl5gJVcRXio06pkS60tzGm186uk2SMG\n3iKeBtn4HfRBbwxeaHEXjwvvNaBMea5gi50apq66zqst+AvpCLasK0GO+wco\nzEeuJdq8fK4Z39l9+Byim77EtqLO+0sCeJuxSE8e6AwWQMt/62IyevWcMOrv\nZzr0LvQN3tymoG8EBjaBxATNEsG3WMrtHBxzkJfTlcM26hf0h7uidUxcehvZ\nn3+d2Sp7GjpaaP95GZq9FcTpf9m/w3iLtcKsWLVuFCzS7rrz/kJ6kUVnqXeK\ny0CHu5ajl7JQHglp1GJRQ0AkNkW+lD8UcXuOUrGilW0ykwYJNfV7cvRYiwxp\nyCXd\r\n=e+gw\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib/index.js","readme":"[![Discord](https://img.shields.io/discord/484729862368526356.svg?style=for-the-badge)](https://discordapp.com/invite/Z3f3Cxy)\r\n[![npm](https://img.shields.io/npm/v/3box-comments-react.svg?style=for-the-badge)](https://www.npmjs.com/package/3box-comments-react)\r\n[![Twitter Follow](https://img.shields.io/twitter/follow/3boxdb.svg?style=for-the-badge&label=Twitter)](https://twitter.com/3boxdb)\r\n\r\n# 3Box Comments Plugin 💬\r\n\r\n`3box-comments-react` node package is a drop-in react component that provides Web3 developers with a readymade commenting system for their Ethereum application. Easily add rich, decentralized social discourse to your dApp with one line of code. The 3Box Comments plugin is built using 3Box infrastructure, and handles all logic for creating a comments thread. *Read the docs on [docs.3box.io](https://docs.3box.io/build/plugins/comments)*.\r\n\r\n### New Social Features:\r\n**Replies** - reply to comments inline (limited to two levels of replies), deleted comments with nested replies maintain the nested replies</br>\r\n**Emoji reactions** - react to each comment with emojis from an inline picker</br>\r\n**Votes** - Upvote or downvote on any comment</br>\r\n*Note: This is a breaking change - this will break any previously used comments, to create a new one, simply update the threadName in the same space*\r\n</br>\r\n\r\n\r\n### Try the demo [here](https://3box.github.io/3box-comments-react/examples/dist/)\r\n![Example Screenshot](comments-example-screenshot.png)\r\n</br>\r\n\r\n## How it Works\r\n#### Architecture\r\nThe Comments plugin is built using a standard implementation of [Open Threads](https://docs.3box.io/build/web-apps/messaging/choose#open-threads) which are defined in the [3Box Threads API](https://docs.3box.io/api/messaging) and made available via the [`3Box.js SDK`](https://github.com/3box/3box-js). The Comments plugin also includes UI for inputting and displaying user comments, logic for fetching user profiles, and pagination. The component is configurable to various authentication patterns, and can handle both Web3/3Box logged-in & logged-out states. \r\n\r\n#### Authentication\r\nWithout authenticating, users can read messages in the comment thread. However authentication is required to perform more interactive functionality. After the user is authenticated, a user can post a comment, delete their comment, and receive comments from other users in *real-time*.  Note: if you are not logged in and the component has not been passed your ethereum address, the component cannot know which comment belongs to you in order to delete.  In this case, click the login button just below the input UI.\r\n</br>\r\n</br>\r\n\r\n## Getting Started\r\n1. Install the component\r\n2. Choose your authentication pattern\r\n3. Configure application settings\r\n4. Usage\r\n\r\n### 1. Install the component\r\n\r\n```shell\r\nnpm i -S 3box-comments-react\r\n```\r\n\r\n### 2. Choose your authentication pattern\r\nDepending on *when and how* your dApp handles authentication for web3 and 3Box, you will need to provide a different set of props to the component. Three acceptable authentication patterns and their respective props are discussed below in A-C:\r\n\r\n**A) Dapp handles web3 and 3Box logins, and they run *before* component is mounted. (recommended)**\r\n\r\nDapp integrates with `3Box.js SDK` and the `3box-comments-react` component. In this case, the `box` instance returned from `Box.openBox(ethAddr)` via 3Box.js should be passed to the `box` prop in the comments component. The user's current Ethereum address should be passed to the `currentUserAddr` prop to determine `deletePost` access on each comment.\r\n\r\n**B) Dapp handles web3 and 3Box logins, but they haven't run before component is mounted. (recommended)**\r\n\r\nDapp integrates with `3Box.js SDK` and the `3box-comments-react` component. In this case, the login logic implemented in the dapp should be passed to the Comments component as the `loginFunction` prop, which is run when a user attempts to post a comment. The user's current Ethereum address should be passed to the `currentUserAddr` prop to determine `deletePost` access on each comment.\r\n\r\n**C) Dapp has no web3 and 3Box login logic.**\r\n\r\nDapp only integrates with the `3box-comments-react` component, but not `3Box.js SDK`. All web3 and 3Box login logic will be handled within the Comments component, though it's required for the `ethereum` object from your dapp's preferred web3 provider be passed to the `ethereum` prop in the component.\r\n\r\n#### Best practice\r\n\r\nFor the best UX, we recommend implementing one of the following authentication patterns: A; B; or B with A.\r\n\r\nEach of these patterns allow your application to make the `box` object available in global application state where it can be used by all instances of the Comments component regardless of which page the user is on. This global pattern removes the need for users to authenticate on each individual page they wish to comment on, which would be the case in C.\r\n\r\n### 3. Configure application settings\r\n\r\n**First, choose a name for your application's 3Box space.**\r\n\r\nAlthough you are free to choose whichever name you'd like for your app's space, we recommend using the name of your app. If your application already has a 3Box space, you are welcome to use that same one for comments.\r\n\r\n**Next, choose a naming convention for your application's threads.**\r\n\r\nComment threads need a name, and we recommend that your application creates `threadNames` according to a simple rule. We generally like using a natural identifier, such as community name, page URL, token ID, or other similar means.\r\n\r\n**Then, create an admin 3Box account for your application.**\r\n\r\nEach thread is required to have an admin (`adminEthAddr`), which possesses the rights to moderate the thread. We recommend you create an admin Ethereum account for your application so you can perform these actions. While technically you can use any Ethereum address as an admin account, we recommend [creating a 3Box profile](https://3box.io/hub) for that address so if you need to take action in the thread, others will know and trust you as the admin.\r\n\r\n**Lastly, initialize your application's space.**\r\n\r\nBefore threads can be deployed in your dapp, your application's admin account (`adminEthAddr` created in the previous step) must first open the space (`spaceName`) that will be used to store your application's threads. This step *must* be completed before your comment threads can be used by others. This process would likely be done outside the context of your dapp, probably in a test environment.\r\n\r\nSimply open a space by running (via `3Box.js SDK`): \r\n```\r\nconst box = await Box.openBox(adminEthAddr, ethereum);\r\nconst space = await box.openSpace(spaceName, spaceOpts);\r\n```\r\nSign the web3 prompts to complete the space initialization process.\r\n</br>\r\n</br>\r\n\r\n\r\n### 4. Usage\r\n\r\n#### Example\r\n\r\n```jsx\r\nimport ThreeBoxComments from '3box-comments-react';\r\n\r\nconst MyComponent = ({ handleLogin, box, ethereum, myAddress, currentUser3BoxProfile, adminEthAddr }) => (\r\n    <ThreeBoxComments \r\n        // required\r\n        spaceName=\"mySpaceName\"\r\n        threadName=\"myThreadName\"\r\n        adminEthAddr={adminEthAddr}\r\n\r\n\r\n        // Required props for context A) & B)\r\n        box={box}\r\n        currentUserAddr={myAddress}\r\n\r\n        // Required prop for context B)\r\n        loginFunction={handleLogin}\r\n\r\n        // Required prop for context C)\r\n        ethereum={ethereum}\r\n\r\n        // optional\r\n        members={false}\r\n        showCommentCount={10}\r\n        threadOpts={{}}\r\n        useHovers={false}\r\n        currentUser3BoxProfile={currentUser3BoxProfile}\r\n        userProfileURL={address => `https://mywebsite.com/user/${address}`}\r\n    />\r\n);\r\n```\r\n\r\n\r\n#### Prop Types\r\n\r\n| Property | Type          | Default  | Required Case          | Description |\r\n| :-------------------------------- | :-------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------ | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\r\n| `spaceName`    | String        |    |  Always   | Likely your dApp name and / or comment category.  A single `spaceName` with different `threadName`s is common practice when building a dApp with multiple Comment threads. |\r\n| `threadName`    | String       |   | Always    | A name specific to this Comments thread. |\r\n| `adminEthAddr`    | String (Ethereum Address)       |   | Always    | The Ethereum address you wish to give admin rights to for the Comments thread.  This user will be able to delete all comments and accept members in a members-only thread. **A thread with a new admin address, despite identical `spaceName` and `threadName`, will create an entirely new thread.**|\r\n| `box`    | Object         |   | A (and likely B)    | The `box` instance returned from running `await Box.openBox(address, web3)` somewhere in your dApp.|\r\n| `currentUserAddr`    | String (Ethereum Address)          |    | A & B, optional for C | The current user's Ethereum address. Passing this will help determine whether a user has delete access on each comment.  This prop will also let the component fetch that user's 3Box profile on component mount and render that data (profile picture) in the Comment input UI. |\r\n| `loginFunction`    | Function       |    | B    | A function from your dApp that handles web3 and 3Box login at the global dApp state. This callback will run when a user attempts to save a comment but a `box` instance doesn't yet exist. Running this function should result in a box instance (from `const box = Box.openBox(address, web3)`) being passed as the `box` prop to this component.  |\r\n| `ethereum`    | Object        |  window.ethereum  | C    | The `ethereum` object from whichever web3 provider your dApp uses.  The `enable` method on this object will be used to get the current user's Ethereum address and that address will be used to `openBox` within the current Component context.|\r\n| `members`    | Boolean       |  False   | Optional    | A boolean - `true` - to make the thread a members-only thread. Passing `false` will allow all users to post to the thread.  **Changing this setting after creating it will result in an entirely different thread** (see [Docs.3box.io](https://Docs.3box.io) for more info). |\r\n| `showCommentCount`    | Integer       |  30   | Optional    | The number of comments rendered in the UI by default on component mount and the number of additional comments revealed after clicking `Load more` in component. |\r\n| `spaceOpts`    | Object       | | Optional    | Optional parameters for threads (see [Docs.3box.io](https://Docs.3box.io) for more info)|\r\n| `threadOpts`    | Object       | | Optional    | Optional parameters for threads (see [Docs.3box.io](https://Docs.3box.io) for more info)|\r\n| `useHovers`    | Boolean       |  False  | Optional    | Pass true to enable a 3Box profile pop up when hovering over a commenter's name |\r\n| `currentUser3BoxProfile`    | Object       |   | Optional    | If the current user has already had their 3Box data fetched at the global dApp state, pass the object returned from `Box.getProfile(profileAddress)` to avoid an extra request.  This data will be rendered in the Comment input interface.|\r\n| `userProfileURL`    | Function       |  Defaults to returning user's 3Box profile URL  | Optional    | A function that returns a correctly formatted URL of a user's profile on the current platform.  The function will be passed an Ethereum address within the component, if needed.  A user will be redirected to the URL returned from this function when clicking on the name or Ethereum address associated with the comment in the thread.|\r\n\r\n## License\r\n\r\nMIT\r\n","gitHead":"747e6ed9d05463b29d7718dc3c0740d132268a94","scripts":{"lint":"eslint ./src","scss":"node-sass sass -o src/css","test":"npm run lint && npm run coverage","build":"webpack --config webpack.config.babel.js","clean":"rm -rf dist coverage","start":"webpack-dev-server --config examples/webpack.config.live.babel.js; npm run watch","watch":"node-sass --watch scss sass -o src/css","coverage":"jest --coverage","build:es5":"rm -rf ./lib; npm run scss; ./node_modules/.bin/babel src --out-dir lib --source-maps inline --copy-files --ignore=src/__tests__/,src/__mocks__/,src/sass","prepublish":"npm run clean && npm run test && npm run build","build-examples":"webpack --config examples/webpack.config.babel.js --progress"},"_npmUser":{"name":"oznekenzo","email":"mkn293@nyu.edu"},"_npmVersion":"6.13.4","description":"Comments component for decentralized applications by 3Box","directories":{},"resolutions":{"babel-core":"7.0.0-bridge.0"},"_nodeVersion":"12.14.1","dependencies":{"3box":"^1.17.0","emoji-js":"^3.4.1","node-sass":"^4.13.0","babel-core":"^7.0.0-bridge.0","multicodec":"^0.5.6","3id-resolver":"0.0.6","profile-hover":"^1.1.1","react-linkify":"^1.0.0-alpha","@babel/runtime":"^7.6.0","react-inlinesvg":"^1.2.0","svg-inline-loader":"^0.8.0","ethereum-blockies-base64":"^1.0.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.1.2","react":"^16.6.0","enzyme":"^3.3.0","eslint":"^5.8.0","webpack":"^4.9.1","jest-cli":"^23.6.0","react-dom":"^16.6.0","@babel/cli":"^7.7.7","babel-jest":"^23.6.0","css-loader":"^1.0.1","prop-types":"^15.6.0","@babel/core":"^7.1.2","sass-loader":"^7.0.1","webpack-cli":"^3.1.2","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","did-resolver":"0.0.7","style-loader":"^0.23.1","@babel/register":"^7.0.0","react-hot-loader":"^4.12.19","@babel/preset-env":"^7.1.0","webpack-dev-server":"^3.1.4","@babel/preset-react":"^7.0.0","eslint-plugin-react":"^7.4.0","react-test-renderer":"^16.0.0","regenerator-runtime":"^0.12.1","clean-webpack-plugin":"^0.1.16","enzyme-adapter-react-16":"^1.1.1","react-addons-test-utils":"^15.5.1","@babel/plugin-proposal-class-properties":"^7.5.5"},"peerDependencies":{"react":">= 16.3.0","react-dom":">= 16.3.0"},"_npmOperationalInternal":{"tmp":"tmp/3box-comments-react_1.0.3-beta.2_1582730577655_0.21509824668429545","host":"s3://npm-registry-packages"}},"1.0.3-beta.3":{"name":"3box-comments-react","version":"1.0.3-beta.3","keywords":["comments","3Box","decentralized","ethereum"],"author":{"name":"3box.io"},"license":"MIT","_id":"3box-comments-react@1.0.3-beta.3","maintainers":[{"name":"oznekenzo","email":"mkn293@nyu.edu"}],"contributors":[{"name":"Kenzo Nakamura","email":"kenzo@nyu.edu"}],"dist":{"shasum":"be56c8c42a33f71ddc904b543d7e7288f838eba1","tarball":"https://registry.npmjs.org/3box-comments-react/-/3box-comments-react-1.0.3-beta.3.tgz","fileCount":67,"integrity":"sha512-BpsBJD2dggnnROz3cIHyL/BIV4W5iokcPmTaXnQC+rB1BbTRgsi75mP2SDYQdWBc+TzdhkDNrh5DDdZcAJkvGQ==","signatures":[{"sig":"MEYCIQCG9/PpmIgPqBbgOlq7mrY7e6Nc4qgPexVdIfpgq0DN8QIhANWcxzYxX/fgqenYbSsiXPx3NAJ5OiOC7vaVEEVneo0F","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":525473,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeXn4aCRA9TVsSAnZWagAA2qUQAI182KuvQyI0TlpOWZua\noOYrkjdp7r0QDGlew0JZc0gBplbT+J5lYG/Z6oUrHLd9VXLn6AsDVHdVUN4v\n1+KiQptohiYCse5e8ijD9ZEDiSGZYsqUGODDWsULSq4y5cn7dLkgMK2DwyQZ\nwKoq+u4DKEqe5/ARrMzdGcdDFr+QLRSgPNqbRB+WByRhGAFZQ0bcue+cgcFM\n53LGOlYe95qBWZlPq+alZrkqe31dHNAGFg6BrnhK8TFkK5ZrolYRWwiCb7Lc\nAHQh76B17vCnXTLroIZWG/WjqZgQUiEBwfecGcdsKOagLLH23S4HNRhXUDeX\nl0jm2VeRDFJv6v/6C3Edxm2xiK/QfX+zHQbrveXGgkrgd45JvmCMvdQJPHpa\nfQYy61d2R6mxnlv64FWXHPhWBxQl+c5M0SDlDxbC9Kh9GalogBcyyOhML4UQ\nOBrSD4oj070XBQ7B4SArjM5rRYvAwRJeNKytpfMKeHOQg0iVm9v6DM6Td8aU\nkBJ0D8fcQcHh9iq1Gcw2llNvE1XocpgbrH0xqJu1NfzAJ0U9jar+YFqTafJH\nz2YUJWKIk1RtxLNVmSeop/Hk4nPt2DcwdhIB1/pwfj6ofZapb0Ch7SXh+w8k\nXd5xF9GQWGwL+Pf2sszPMhJ/skTBOXhe/neFUWNQGMEtxZWxG7s5JsPeBYpO\nequi\r\n=qV71\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib/index.js","readme":"[![Discord](https://img.shields.io/discord/484729862368526356.svg?style=for-the-badge)](https://discordapp.com/invite/Z3f3Cxy)\r\n[![npm](https://img.shields.io/npm/v/3box-comments-react.svg?style=for-the-badge)](https://www.npmjs.com/package/3box-comments-react)\r\n[![Twitter Follow](https://img.shields.io/twitter/follow/3boxdb.svg?style=for-the-badge&label=Twitter)](https://twitter.com/3boxdb)\r\n\r\n# 3Box Comments Plugin 💬\r\n\r\n`3box-comments-react` node package is a drop-in react component that provides Web3 developers with a readymade commenting system for their Ethereum application. Easily add rich, decentralized social discourse to your dApp with one line of code. The 3Box Comments plugin is built using 3Box infrastructure, and handles all logic for creating a comments thread. *Read the docs on [docs.3box.io](https://docs.3box.io/build/plugins/comments)*.\r\n\r\n### New Social Features:\r\n**Replies** - reply to comments inline (limited to two levels of replies), deleted comments with nested replies maintain the nested replies</br>\r\n**Emoji reactions** - react to each comment with emojis from an inline picker</br>\r\n**Votes** - Upvote or downvote on any comment</br>\r\n*Note: This is a breaking change - this will break any previously used comments, to create a new one, simply update the threadName in the same space*\r\n</br>\r\n\r\n\r\n### Try the demo [here](https://3box.github.io/3box-comments-react/examples/dist/)\r\n![Example Screenshot](comments-example-screenshot.png)\r\n</br>\r\n\r\n## How it Works\r\n#### Architecture\r\nThe Comments plugin is built using a standard implementation of [Open Threads](https://docs.3box.io/build/web-apps/messaging/choose#open-threads) which are defined in the [3Box Threads API](https://docs.3box.io/api/messaging) and made available via the [`3Box.js SDK`](https://github.com/3box/3box-js). The Comments plugin also includes UI for inputting and displaying user comments, logic for fetching user profiles, and pagination. The component is configurable to various authentication patterns, and can handle both Web3/3Box logged-in & logged-out states. \r\n\r\n#### Authentication\r\nWithout authenticating, users can read messages in the comment thread. However authentication is required to perform more interactive functionality. After the user is authenticated, a user can post a comment, delete their comment, and receive comments from other users in *real-time*.  Note: if you are not logged in and the component has not been passed your ethereum address, the component cannot know which comment belongs to you in order to delete.  In this case, click the login button just below the input UI.\r\n</br>\r\n</br>\r\n\r\n## Getting Started\r\n1. Install the component\r\n2. Choose your authentication pattern\r\n3. Configure application settings\r\n4. Usage\r\n\r\n### 1. Install the component\r\n\r\n```shell\r\nnpm i -S 3box-comments-react\r\n```\r\n\r\n### 2. Choose your authentication pattern\r\nDepending on *when and how* your dApp handles authentication for web3 and 3Box, you will need to provide a different set of props to the component. Three acceptable authentication patterns and their respective props are discussed below in A-C:\r\n\r\n**A) Dapp handles web3 and 3Box logins, and they run *before* component is mounted. (recommended)**\r\n\r\nDapp integrates with `3Box.js SDK` and the `3box-comments-react` component. In this case, the `box` instance returned from `Box.openBox(ethAddr)` via 3Box.js should be passed to the `box` prop in the comments component. The user's current Ethereum address should be passed to the `currentUserAddr` prop to determine `deletePost` access on each comment.\r\n\r\n**B) Dapp handles web3 and 3Box logins, but they haven't run before component is mounted. (recommended)**\r\n\r\nDapp integrates with `3Box.js SDK` and the `3box-comments-react` component. In this case, the login logic implemented in the dapp should be passed to the Comments component as the `loginFunction` prop, which is run when a user attempts to post a comment. The user's current Ethereum address should be passed to the `currentUserAddr` prop to determine `deletePost` access on each comment.\r\n\r\n**C) Dapp has no web3 and 3Box login logic.**\r\n\r\nDapp only integrates with the `3box-comments-react` component, but not `3Box.js SDK`. All web3 and 3Box login logic will be handled within the Comments component, though it's required for the `ethereum` object from your dapp's preferred web3 provider be passed to the `ethereum` prop in the component.\r\n\r\n#### Best practice\r\n\r\nFor the best UX, we recommend implementing one of the following authentication patterns: A; B; or B with A.\r\n\r\nEach of these patterns allow your application to make the `box` object available in global application state where it can be used by all instances of the Comments component regardless of which page the user is on. This global pattern removes the need for users to authenticate on each individual page they wish to comment on, which would be the case in C.\r\n\r\n### 3. Configure application settings\r\n\r\n**First, choose a name for your application's 3Box space.**\r\n\r\nAlthough you are free to choose whichever name you'd like for your app's space, we recommend using the name of your app. If your application already has a 3Box space, you are welcome to use that same one for comments.\r\n\r\n**Next, choose a naming convention for your application's threads.**\r\n\r\nComment threads need a name, and we recommend that your application creates `threadNames` according to a simple rule. We generally like using a natural identifier, such as community name, page URL, token ID, or other similar means.\r\n\r\n**Then, create an admin 3Box account for your application.**\r\n\r\nEach thread is required to have an admin (`adminEthAddr`), which possesses the rights to moderate the thread. We recommend you create an admin Ethereum account for your application so you can perform these actions. While technically you can use any Ethereum address as an admin account, we recommend [creating a 3Box profile](https://3box.io/hub) for that address so if you need to take action in the thread, others will know and trust you as the admin.\r\n\r\n**Lastly, initialize your application's space.**\r\n\r\nBefore threads can be deployed in your dapp, your application's admin account (`adminEthAddr` created in the previous step) must first open the space (`spaceName`) that will be used to store your application's threads. This step *must* be completed before your comment threads can be used by others. This process would likely be done outside the context of your dapp, probably in a test environment.\r\n\r\nSimply open a space by running (via `3Box.js SDK`): \r\n```\r\nconst box = await Box.openBox(adminEthAddr, ethereum);\r\nconst space = await box.openSpace(spaceName, spaceOpts);\r\n```\r\nSign the web3 prompts to complete the space initialization process.\r\n</br>\r\n</br>\r\n\r\n\r\n### 4. Usage\r\n\r\n#### Example\r\n\r\n```jsx\r\nimport ThreeBoxComments from '3box-comments-react';\r\n\r\nconst MyComponent = ({ handleLogin, box, ethereum, myAddress, currentUser3BoxProfile, adminEthAddr }) => (\r\n    <ThreeBoxComments \r\n        // required\r\n        spaceName=\"mySpaceName\"\r\n        threadName=\"myThreadName\"\r\n        adminEthAddr={adminEthAddr}\r\n\r\n\r\n        // Required props for context A) & B)\r\n        box={box}\r\n        currentUserAddr={myAddress}\r\n\r\n        // Required prop for context B)\r\n        loginFunction={handleLogin}\r\n\r\n        // Required prop for context C)\r\n        ethereum={ethereum}\r\n\r\n        // optional\r\n        members={false}\r\n        showCommentCount={10}\r\n        threadOpts={{}}\r\n        useHovers={false}\r\n        currentUser3BoxProfile={currentUser3BoxProfile}\r\n        userProfileURL={address => `https://mywebsite.com/user/${address}`}\r\n    />\r\n);\r\n```\r\n\r\n\r\n#### Prop Types\r\n\r\n| Property | Type          | Default  | Required Case          | Description |\r\n| :-------------------------------- | :-------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------ | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\r\n| `spaceName`    | String        |    |  Always   | Likely your dApp name and / or comment category.  A single `spaceName` with different `threadName`s is common practice when building a dApp with multiple Comment threads. |\r\n| `threadName`    | String       |   | Always    | A name specific to this Comments thread. |\r\n| `adminEthAddr`    | String (Ethereum Address)       |   | Always    | The Ethereum address you wish to give admin rights to for the Comments thread.  This user will be able to delete all comments and accept members in a members-only thread. **A thread with a new admin address, despite identical `spaceName` and `threadName`, will create an entirely new thread.**|\r\n| `box`    | Object         |   | A (and likely B)    | The `box` instance returned from running `await Box.openBox(address, web3)` somewhere in your dApp.|\r\n| `currentUserAddr`    | String (Ethereum Address)          |    | A & B, optional for C | The current user's Ethereum address. Passing this will help determine whether a user has delete access on each comment.  This prop will also let the component fetch that user's 3Box profile on component mount and render that data (profile picture) in the Comment input UI. |\r\n| `loginFunction`    | Function       |    | B    | A function from your dApp that handles web3 and 3Box login at the global dApp state. This callback will run when a user attempts to save a comment but a `box` instance doesn't yet exist. Running this function should result in a box instance (from `const box = Box.openBox(address, web3)`) being passed as the `box` prop to this component.  |\r\n| `ethereum`    | Object        |  window.ethereum  | C    | The `ethereum` object from whichever web3 provider your dApp uses.  The `enable` method on this object will be used to get the current user's Ethereum address and that address will be used to `openBox` within the current Component context.|\r\n| `members`    | Boolean       |  False   | Optional    | A boolean - `true` - to make the thread a members-only thread. Passing `false` will allow all users to post to the thread.  **Changing this setting after creating it will result in an entirely different thread** (see [Docs.3box.io](https://Docs.3box.io) for more info). |\r\n| `showCommentCount`    | Integer       |  30   | Optional    | The number of comments rendered in the UI by default on component mount and the number of additional comments revealed after clicking `Load more` in component. |\r\n| `spaceOpts`    | Object       | | Optional    | Optional parameters for threads (see [Docs.3box.io](https://Docs.3box.io) for more info)|\r\n| `threadOpts`    | Object       | | Optional    | Optional parameters for threads (see [Docs.3box.io](https://Docs.3box.io) for more info)|\r\n| `useHovers`    | Boolean       |  False  | Optional    | Pass true to enable a 3Box profile pop up when hovering over a commenter's name |\r\n| `currentUser3BoxProfile`    | Object       |   | Optional    | If the current user has already had their 3Box data fetched at the global dApp state, pass the object returned from `Box.getProfile(profileAddress)` to avoid an extra request.  This data will be rendered in the Comment input interface.|\r\n| `userProfileURL`    | Function       |  Defaults to returning user's 3Box profile URL  | Optional    | A function that returns a correctly formatted URL of a user's profile on the current platform.  The function will be passed an Ethereum address within the component, if needed.  A user will be redirected to the URL returned from this function when clicking on the name or Ethereum address associated with the comment in the thread.|\r\n\r\n## License\r\n\r\nMIT\r\n","gitHead":"89fd5b707f4ad3e900aad1c46094493710375d72","scripts":{"lint":"eslint ./src","scss":"node-sass sass -o src/css","test":"npm run lint && npm run coverage","build":"webpack --config webpack.config.babel.js","clean":"rm -rf dist coverage","start":"webpack-dev-server --config examples/webpack.config.live.babel.js; npm run watch","watch":"node-sass --watch scss sass -o src/css","coverage":"jest --coverage","build:es5":"rm -rf ./lib; npm run scss; ./node_modules/.bin/babel src --out-dir lib --source-maps inline --copy-files --ignore=src/__tests__/,src/__mocks__/,src/sass","prepublish":"npm run clean && npm run test && npm run build","build-examples":"webpack --config examples/webpack.config.babel.js --progress"},"_npmUser":{"name":"oznekenzo","email":"mkn293@nyu.edu"},"_npmVersion":"6.13.4","description":"Comments component for decentralized applications by 3Box","directories":{},"resolutions":{"babel-core":"7.0.0-bridge.0"},"_nodeVersion":"10.18.0","dependencies":{"3box":"^1.17.0","emoji-js":"^3.4.1","node-sass":"^4.13.0","babel-core":"^7.0.0-bridge.0","multicodec":"^0.5.6","3id-resolver":"0.0.6","profile-hover":"^1.1.1","react-linkify":"^1.0.0-alpha","@babel/runtime":"^7.6.0","react-inlinesvg":"^1.2.0","svg-inline-loader":"^0.8.0","ethereum-blockies-base64":"^1.0.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.1.2","react":"^16.6.0","enzyme":"^3.3.0","eslint":"^5.8.0","webpack":"^4.9.1","jest-cli":"^23.6.0","react-dom":"^16.6.0","@babel/cli":"^7.7.7","babel-jest":"^23.6.0","css-loader":"^1.0.1","prop-types":"^15.6.0","@babel/core":"^7.1.2","sass-loader":"^7.0.1","webpack-cli":"^3.1.2","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","did-resolver":"0.0.7","style-loader":"^0.23.1","@babel/register":"^7.0.0","react-hot-loader":"^4.12.19","@babel/preset-env":"^7.1.0","webpack-dev-server":"^3.1.4","@babel/preset-react":"^7.0.0","eslint-plugin-react":"^7.4.0","react-test-renderer":"^16.0.0","regenerator-runtime":"^0.12.1","clean-webpack-plugin":"^0.1.16","enzyme-adapter-react-16":"^1.1.1","react-addons-test-utils":"^15.5.1","@babel/plugin-proposal-class-properties":"^7.5.5"},"peerDependencies":{"react":">= 16.3.0","react-dom":">= 16.3.0"},"_npmOperationalInternal":{"tmp":"tmp/3box-comments-react_1.0.3-beta.3_1583250969849_0.40320457502573204","host":"s3://npm-registry-packages"}},"1.0.3-beta.4":{"name":"3box-comments-react","version":"1.0.3-beta.4","keywords":["comments","3Box","decentralized","ethereum"],"author":{"name":"3box.io"},"license":"MIT","_id":"3box-comments-react@1.0.3-beta.4","maintainers":[{"name":"oznekenzo","email":"mkn293@nyu.edu"}],"contributors":[{"name":"Kenzo Nakamura","email":"kenzo@nyu.edu"}],"dist":{"shasum":"5580d04b53d910ed1d5c5938898df60b0b48e87e","tarball":"https://registry.npmjs.org/3box-comments-react/-/3box-comments-react-1.0.3-beta.4.tgz","fileCount":67,"integrity":"sha512-6w6yC7D6KsFBJBrP408QzTjdIA7TjUIO4UCIhJB8xndWHnCnxm0t6KYvq/3WdtkiDCRS7zrz1T9GXutfWHYMdA==","signatures":[{"sig":"MEYCIQCLNJCvf6Q8wTq99RBXTzLTpvjfuDU63hNaJM2VtDvasAIhAJ2DDfyi5mDrzx4X3ksM8dj8EYVrbipfoiSgRgAGgzZK","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":525715,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeXpImCRA9TVsSAnZWagAASQkQAJXRw4ve6lbyozYa/1aO\n6s3sBhaLHdsa5wIgGlSzWWNcFIp5+Aneiv85VkHTEcmXdabwEUGN3Zfo7pbW\nCpeMtk+AJgTTpFXecR/PxApb/f82f7xcq2linUQqvKvAKGCHFgoRPYVQw8z9\n/9uBknTtbJKPCSc4drOVCz5RKOaVXXUffQRI3shnF9MVLdTZtYO8dO/z22iU\nJ/HhZmNv2msTkNBiK7CRX0NtFHnM2TZfJV4UXdfb9bHdBOelD7Xrg7yoaDcF\n8PUcRVcVEvvQGwlb61h6OUDzfi3c0mtfBtYG1aZ789DgCjGvw4tV4wZYtXaD\nw5NInDE2dx8Vb/NiEqMKuC9cf00igPCiMn6U7YR9VhP+z/b8gsA3pu8AzB3J\n6AkKRWxTuHrdFdbkWomYPyPMWpT5g5nygJYhGiu+ThYfgVOhFSeA3j8eIZxF\nJ9NpPtWkfKqGyzvtf0rv6CywYfO4HewnFalNKL3gs901t8WESVTqz/h4FhJv\nZsIDkPnYFIKbHu7fBZgqlcwOqw9X7gAD0t1Yl1y5IlJzuwB2tEB+Q72QafmY\nJ14k+NoGaoNfWAH593fNqvxk/xUpbnRQsa0Ve0sNYB568ieQRhGNv4ZsYurG\nAST153qyU/mwE0xT6deeWZhOPz1m5jKCTXtqdkN5srqC9RoQ8dwPXcLOvhfM\nEunY\r\n=WR+J\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib/index.js","readme":"[![Discord](https://img.shields.io/discord/484729862368526356.svg?style=for-the-badge)](https://discordapp.com/invite/Z3f3Cxy)\r\n[![npm](https://img.shields.io/npm/v/3box-comments-react.svg?style=for-the-badge)](https://www.npmjs.com/package/3box-comments-react)\r\n[![Twitter Follow](https://img.shields.io/twitter/follow/3boxdb.svg?style=for-the-badge&label=Twitter)](https://twitter.com/3boxdb)\r\n\r\n# 3Box Comments Plugin 💬\r\n\r\n`3box-comments-react` node package is a drop-in react component that provides Web3 developers with a readymade commenting system for their Ethereum application. Easily add rich, decentralized social discourse to your dApp with one line of code. The 3Box Comments plugin is built using 3Box infrastructure, and handles all logic for creating a comments thread. *Read the docs on [docs.3box.io](https://docs.3box.io/build/plugins/comments)*.\r\n\r\n### New Social Features:\r\n**Replies** - reply to comments inline (limited to two levels of replies), deleted comments with nested replies maintain the nested replies</br>\r\n**Emoji reactions** - react to each comment with emojis from an inline picker</br>\r\n**Votes** - Upvote or downvote on any comment</br>\r\n*Note: This is a breaking change - this will break any previously used comments, to create a new one, simply update the threadName in the same space*\r\n</br>\r\n\r\n\r\n### Try the demo [here](https://3box.github.io/3box-comments-react/examples/dist/)\r\n![Example Screenshot](comments-example-screenshot.png)\r\n</br>\r\n\r\n## How it Works\r\n#### Architecture\r\nThe Comments plugin is built using a standard implementation of [Open Threads](https://docs.3box.io/build/web-apps/messaging/choose#open-threads) which are defined in the [3Box Threads API](https://docs.3box.io/api/messaging) and made available via the [`3Box.js SDK`](https://github.com/3box/3box-js). The Comments plugin also includes UI for inputting and displaying user comments, logic for fetching user profiles, and pagination. The component is configurable to various authentication patterns, and can handle both Web3/3Box logged-in & logged-out states. \r\n\r\n#### Authentication\r\nWithout authenticating, users can read messages in the comment thread. However authentication is required to perform more interactive functionality. After the user is authenticated, a user can post a comment, delete their comment, and receive comments from other users in *real-time*.  Note: if you are not logged in and the component has not been passed your ethereum address, the component cannot know which comment belongs to you in order to delete.  In this case, click the login button just below the input UI.\r\n</br>\r\n</br>\r\n\r\n## Getting Started\r\n1. Install the component\r\n2. Choose your authentication pattern\r\n3. Configure application settings\r\n4. Usage\r\n\r\n### 1. Install the component\r\n\r\n```shell\r\nnpm i -S 3box-comments-react\r\n```\r\n\r\n### 2. Choose your authentication pattern\r\nDepending on *when and how* your dApp handles authentication for web3 and 3Box, you will need to provide a different set of props to the component. Three acceptable authentication patterns and their respective props are discussed below in A-C:\r\n\r\n**A) Dapp handles web3 and 3Box logins, and they run *before* component is mounted. (recommended)**\r\n\r\nDapp integrates with `3Box.js SDK` and the `3box-comments-react` component. In this case, the `box` instance returned from `Box.openBox(ethAddr)` via 3Box.js should be passed to the `box` prop in the comments component. The user's current Ethereum address should be passed to the `currentUserAddr` prop to determine `deletePost` access on each comment.\r\n\r\n**B) Dapp handles web3 and 3Box logins, but they haven't run before component is mounted. (recommended)**\r\n\r\nDapp integrates with `3Box.js SDK` and the `3box-comments-react` component. In this case, the login logic implemented in the dapp should be passed to the Comments component as the `loginFunction` prop, which is run when a user attempts to post a comment. The user's current Ethereum address should be passed to the `currentUserAddr` prop to determine `deletePost` access on each comment.\r\n\r\n**C) Dapp has no web3 and 3Box login logic.**\r\n\r\nDapp only integrates with the `3box-comments-react` component, but not `3Box.js SDK`. All web3 and 3Box login logic will be handled within the Comments component, though it's required for the `ethereum` object from your dapp's preferred web3 provider be passed to the `ethereum` prop in the component.\r\n\r\n#### Best practice\r\n\r\nFor the best UX, we recommend implementing one of the following authentication patterns: A; B; or B with A.\r\n\r\nEach of these patterns allow your application to make the `box` object available in global application state where it can be used by all instances of the Comments component regardless of which page the user is on. This global pattern removes the need for users to authenticate on each individual page they wish to comment on, which would be the case in C.\r\n\r\n### 3. Configure application settings\r\n\r\n**First, choose a name for your application's 3Box space.**\r\n\r\nAlthough you are free to choose whichever name you'd like for your app's space, we recommend using the name of your app. If your application already has a 3Box space, you are welcome to use that same one for comments.\r\n\r\n**Next, choose a naming convention for your application's threads.**\r\n\r\nComment threads need a name, and we recommend that your application creates `threadNames` according to a simple rule. We generally like using a natural identifier, such as community name, page URL, token ID, or other similar means.\r\n\r\n**Then, create an admin 3Box account for your application.**\r\n\r\nEach thread is required to have an admin (`adminEthAddr`), which possesses the rights to moderate the thread. We recommend you create an admin Ethereum account for your application so you can perform these actions. While technically you can use any Ethereum address as an admin account, we recommend [creating a 3Box profile](https://3box.io/hub) for that address so if you need to take action in the thread, others will know and trust you as the admin.\r\n\r\n**Lastly, initialize your application's space.**\r\n\r\nBefore threads can be deployed in your dapp, your application's admin account (`adminEthAddr` created in the previous step) must first open the space (`spaceName`) that will be used to store your application's threads. This step *must* be completed before your comment threads can be used by others. This process would likely be done outside the context of your dapp, probably in a test environment.\r\n\r\nSimply open a space by running (via `3Box.js SDK`): \r\n```\r\nconst box = await Box.openBox(adminEthAddr, ethereum);\r\nconst space = await box.openSpace(spaceName, spaceOpts);\r\n```\r\nSign the web3 prompts to complete the space initialization process.\r\n</br>\r\n</br>\r\n\r\n\r\n### 4. Usage\r\n\r\n#### Example\r\n\r\n```jsx\r\nimport ThreeBoxComments from '3box-comments-react';\r\n\r\nconst MyComponent = ({ handleLogin, box, ethereum, myAddress, currentUser3BoxProfile, adminEthAddr }) => (\r\n    <ThreeBoxComments \r\n        // required\r\n        spaceName=\"mySpaceName\"\r\n        threadName=\"myThreadName\"\r\n        adminEthAddr={adminEthAddr}\r\n\r\n\r\n        // Required props for context A) & B)\r\n        box={box}\r\n        currentUserAddr={myAddress}\r\n\r\n        // Required prop for context B)\r\n        loginFunction={handleLogin}\r\n\r\n        // Required prop for context C)\r\n        ethereum={ethereum}\r\n\r\n        // optional\r\n        members={false}\r\n        showCommentCount={10}\r\n        threadOpts={{}}\r\n        useHovers={false}\r\n        currentUser3BoxProfile={currentUser3BoxProfile}\r\n        userProfileURL={address => `https://mywebsite.com/user/${address}`}\r\n    />\r\n);\r\n```\r\n\r\n\r\n#### Prop Types\r\n\r\n| Property | Type          | Default  | Required Case          | Description |\r\n| :-------------------------------- | :-------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------ | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\r\n| `spaceName`    | String        |    |  Always   | Likely your dApp name and / or comment category.  A single `spaceName` with different `threadName`s is common practice when building a dApp with multiple Comment threads. |\r\n| `threadName`    | String       |   | Always    | A name specific to this Comments thread. |\r\n| `adminEthAddr`    | String (Ethereum Address)       |   | Always    | The Ethereum address you wish to give admin rights to for the Comments thread.  This user will be able to delete all comments and accept members in a members-only thread. **A thread with a new admin address, despite identical `spaceName` and `threadName`, will create an entirely new thread.**|\r\n| `box`    | Object         |   | A (and likely B)    | The `box` instance returned from running `await Box.openBox(address, web3)` somewhere in your dApp.|\r\n| `currentUserAddr`    | String (Ethereum Address)          |    | A & B, optional for C | The current user's Ethereum address. Passing this will help determine whether a user has delete access on each comment.  This prop will also let the component fetch that user's 3Box profile on component mount and render that data (profile picture) in the Comment input UI. |\r\n| `loginFunction`    | Function       |    | B    | A function from your dApp that handles web3 and 3Box login at the global dApp state. This callback will run when a user attempts to save a comment but a `box` instance doesn't yet exist. Running this function should result in a box instance (from `const box = Box.openBox(address, web3)`) being passed as the `box` prop to this component.  |\r\n| `ethereum`    | Object        |  window.ethereum  | C    | The `ethereum` object from whichever web3 provider your dApp uses.  The `enable` method on this object will be used to get the current user's Ethereum address and that address will be used to `openBox` within the current Component context.|\r\n| `members`    | Boolean       |  False   | Optional    | A boolean - `true` - to make the thread a members-only thread. Passing `false` will allow all users to post to the thread.  **Changing this setting after creating it will result in an entirely different thread** (see [Docs.3box.io](https://Docs.3box.io) for more info). |\r\n| `showCommentCount`    | Integer       |  30   | Optional    | The number of comments rendered in the UI by default on component mount and the number of additional comments revealed after clicking `Load more` in component. |\r\n| `spaceOpts`    | Object       | | Optional    | Optional parameters for threads (see [Docs.3box.io](https://Docs.3box.io) for more info)|\r\n| `threadOpts`    | Object       | | Optional    | Optional parameters for threads (see [Docs.3box.io](https://Docs.3box.io) for more info)|\r\n| `useHovers`    | Boolean       |  False  | Optional    | Pass true to enable a 3Box profile pop up when hovering over a commenter's name |\r\n| `currentUser3BoxProfile`    | Object       |   | Optional    | If the current user has already had their 3Box data fetched at the global dApp state, pass the object returned from `Box.getProfile(profileAddress)` to avoid an extra request.  This data will be rendered in the Comment input interface.|\r\n| `userProfileURL`    | Function       |  Defaults to returning user's 3Box profile URL  | Optional    | A function that returns a correctly formatted URL of a user's profile on the current platform.  The function will be passed an Ethereum address within the component, if needed.  A user will be redirected to the URL returned from this function when clicking on the name or Ethereum address associated with the comment in the thread.|\r\n\r\n## License\r\n\r\nMIT\r\n","gitHead":"89fd5b707f4ad3e900aad1c46094493710375d72","scripts":{"lint":"eslint ./src","scss":"node-sass sass -o src/css","test":"npm run lint && npm run coverage","build":"webpack --config webpack.config.babel.js","clean":"rm -rf dist coverage","start":"webpack-dev-server --config examples/webpack.config.live.babel.js; npm run watch","watch":"node-sass --watch scss sass -o src/css","coverage":"jest --coverage","build:es5":"rm -rf ./lib; npm run scss; ./node_modules/.bin/babel src --out-dir lib --source-maps inline --copy-files --ignore=src/__tests__/,src/__mocks__/,src/sass","prepublish":"npm run clean && npm run test && npm run build","build-examples":"webpack --config examples/webpack.config.babel.js --progress"},"_npmUser":{"name":"oznekenzo","email":"mkn293@nyu.edu"},"_npmVersion":"6.13.4","description":"Comments component for decentralized applications by 3Box","directories":{},"resolutions":{"babel-core":"7.0.0-bridge.0"},"_nodeVersion":"10.18.0","dependencies":{"3box":"^1.17.0","emoji-js":"^3.4.1","node-sass":"^4.13.0","babel-core":"^7.0.0-bridge.0","multicodec":"^0.5.6","3id-resolver":"0.0.6","profile-hover":"^1.1.1","react-linkify":"^1.0.0-alpha","@babel/runtime":"^7.6.0","react-inlinesvg":"^1.2.0","svg-inline-loader":"^0.8.0","ethereum-blockies-base64":"^1.0.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.1.2","react":"^16.6.0","enzyme":"^3.3.0","eslint":"^5.8.0","webpack":"^4.9.1","jest-cli":"^23.6.0","react-dom":"^16.6.0","@babel/cli":"^7.7.7","babel-jest":"^23.6.0","css-loader":"^1.0.1","prop-types":"^15.6.0","@babel/core":"^7.1.2","sass-loader":"^7.0.1","webpack-cli":"^3.1.2","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","did-resolver":"0.0.7","style-loader":"^0.23.1","@babel/register":"^7.0.0","react-hot-loader":"^4.12.19","@babel/preset-env":"^7.1.0","webpack-dev-server":"^3.1.4","@babel/preset-react":"^7.0.0","eslint-plugin-react":"^7.4.0","react-test-renderer":"^16.0.0","regenerator-runtime":"^0.12.1","clean-webpack-plugin":"^0.1.16","enzyme-adapter-react-16":"^1.1.1","react-addons-test-utils":"^15.5.1","@babel/plugin-proposal-class-properties":"^7.5.5"},"peerDependencies":{"react":">= 16.3.0","react-dom":">= 16.3.0"},"_npmOperationalInternal":{"tmp":"tmp/3box-comments-react_1.0.3-beta.4_1583256101598_0.374199031031788","host":"s3://npm-registry-packages"}},"1.0.3-beta.5":{"name":"3box-comments-react","version":"1.0.3-beta.5","keywords":["comments","3Box","decentralized","ethereum"],"author":{"name":"3box.io"},"license":"MIT","_id":"3box-comments-react@1.0.3-beta.5","maintainers":[{"name":"oznekenzo","email":"mkn293@nyu.edu"}],"contributors":[{"name":"Kenzo Nakamura","email":"kenzo@nyu.edu"}],"dist":{"shasum":"ef43b9a96e4ecf2569bc4cf4767bf8816bce8b1d","tarball":"https://registry.npmjs.org/3box-comments-react/-/3box-comments-react-1.0.3-beta.5.tgz","fileCount":67,"integrity":"sha512-QRC/0iH51sEUUrt6tV3gZXjiV4pQ0NvaKe2epDXNgXGvDJJPGemkr8K+PG5508Gi2J1XdZnvDt0gfiGxvqu6Zw==","signatures":[{"sig":"MEUCIQCvtPrqpVJ9eV1Y2SFfmxcP7GSBY7qGJaUM2xBY5u1pTgIgVYF5hb8h7TgNmUjoH8iijxiqNojAGU+72erZrnpINyE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":526223,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeXtfbCRA9TVsSAnZWagAAhjUP/2YB78ZOsCp0BZLnyqpp\nL3BL/HU/L/TrKzofURHcjq05HrOIFR25acKf3PcLtJ/QfmCfu5HTWX9CPXv2\nqG99l5dBraSUYMUsrl9SJOtQ+ikHdmk2RKUz59TPZa/fhFC/W2PE13s67lOa\n8uy/oUXGme7TTXl4SsftD1adf54utbo2yFTkeiqk9ObXNOOBKJ07/0U1M0gJ\nYu21X2z08CzBZkNeBGX83il3gm3KdF/FsgGRD2is7dgreou9azafWoEmiXEW\nENolqJCW7Eqe5leETvcR1EVizBuZTtWLG8kNTVJGOQJCwrxg/1yhO4XYH/9B\nf5FIKhJ1mwpNOucw9gpltH+oRKYT0FGeivR00M3O5X0ROlctHwhPrV221AZm\nJ0gACIUk38nuO1NYLEODKgZYhmBIsSlymGvYYqxejgi4XRQPFgtBEp0IkdcG\nKLsAtFYksp1ePMo9UuuxlvdpWOg0tawkBHWSNV7Gw7bVIiutWcGx4IqAeyi9\nXCr9R3gmmgbPfqf7+YdO3iQNdiCSbsqIBGlxo30QbUQotoxjwL1V3XAo0C9L\nsFT3MGVZ/DnSIbvIKUwn78SxrPFCAqxj0CkT7ocyVvrkWKPqBy3uwDfCMNCp\ngSCnDEEXRv68xf1vdavdBPxrM2eDsxi0vszdVeL/QYqeiYdZGqLQN8Rr9rA8\nle83\r\n=K9It\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib/index.js","readme":"[![Discord](https://img.shields.io/discord/484729862368526356.svg?style=for-the-badge)](https://discordapp.com/invite/Z3f3Cxy)\r\n[![npm](https://img.shields.io/npm/v/3box-comments-react.svg?style=for-the-badge)](https://www.npmjs.com/package/3box-comments-react)\r\n[![Twitter Follow](https://img.shields.io/twitter/follow/3boxdb.svg?style=for-the-badge&label=Twitter)](https://twitter.com/3boxdb)\r\n\r\n# 3Box Comments Plugin 💬\r\n\r\n`3box-comments-react` node package is a drop-in react component that provides Web3 developers with a readymade commenting system for their Ethereum application. Easily add rich, decentralized social discourse to your dApp with one line of code. The 3Box Comments plugin is built using 3Box infrastructure, and handles all logic for creating a comments thread. *Read the docs on [docs.3box.io](https://docs.3box.io/build/plugins/comments)*.\r\n\r\n### New Social Features:\r\n**Replies** - reply to comments inline (limited to two levels of replies), deleted comments with nested replies maintain the nested replies</br>\r\n**Emoji reactions** - react to each comment with emojis from an inline picker</br>\r\n**Votes** - Upvote or downvote on any comment</br>\r\n*Note: This is a breaking change - this will break any previously used comments, to create a new one, simply update the threadName in the same space*\r\n</br>\r\n\r\n\r\n### Try the demo [here](https://3box.github.io/3box-comments-react/examples/dist/)\r\n![Example Screenshot](comments-example-screenshot.png)\r\n</br>\r\n\r\n## How it Works\r\n#### Architecture\r\nThe Comments plugin is built using a standard implementation of [Open Threads](https://docs.3box.io/build/web-apps/messaging/choose#open-threads) which are defined in the [3Box Threads API](https://docs.3box.io/api/messaging) and made available via the [`3Box.js SDK`](https://github.com/3box/3box-js). The Comments plugin also includes UI for inputting and displaying user comments, logic for fetching user profiles, and pagination. The component is configurable to various authentication patterns, and can handle both Web3/3Box logged-in & logged-out states. \r\n\r\n#### Authentication\r\nWithout authenticating, users can read messages in the comment thread. However authentication is required to perform more interactive functionality. After the user is authenticated, a user can post a comment, delete their comment, and receive comments from other users in *real-time*.  Note: if you are not logged in and the component has not been passed your ethereum address, the component cannot know which comment belongs to you in order to delete.  In this case, click the login button just below the input UI.\r\n</br>\r\n</br>\r\n\r\n## Getting Started\r\n1. Install the component\r\n2. Choose your authentication pattern\r\n3. Configure application settings\r\n4. Usage\r\n\r\n### 1. Install the component\r\n\r\n```shell\r\nnpm i -S 3box-comments-react\r\n```\r\n\r\n### 2. Choose your authentication pattern\r\nDepending on *when and how* your dApp handles authentication for web3 and 3Box, you will need to provide a different set of props to the component. Three acceptable authentication patterns and their respective props are discussed below in A-C:\r\n\r\n**A) Dapp handles web3 and 3Box logins, and they run *before* component is mounted. (recommended)**\r\n\r\nDapp integrates with `3Box.js SDK` and the `3box-comments-react` component. In this case, the `box` instance returned from `Box.openBox(ethAddr)` via 3Box.js should be passed to the `box` prop in the comments component. The user's current Ethereum address should be passed to the `currentUserAddr` prop to determine `deletePost` access on each comment.\r\n\r\n**B) Dapp handles web3 and 3Box logins, but they haven't run before component is mounted. (recommended)**\r\n\r\nDapp integrates with `3Box.js SDK` and the `3box-comments-react` component. In this case, the login logic implemented in the dapp should be passed to the Comments component as the `loginFunction` prop, which is run when a user attempts to post a comment. The user's current Ethereum address should be passed to the `currentUserAddr` prop to determine `deletePost` access on each comment.\r\n\r\n**C) Dapp has no web3 and 3Box login logic.**\r\n\r\nDapp only integrates with the `3box-comments-react` component, but not `3Box.js SDK`. All web3 and 3Box login logic will be handled within the Comments component, though it's required for the `ethereum` object from your dapp's preferred web3 provider be passed to the `ethereum` prop in the component.\r\n\r\n#### Best practice\r\n\r\nFor the best UX, we recommend implementing one of the following authentication patterns: A; B; or B with A.\r\n\r\nEach of these patterns allow your application to make the `box` object available in global application state where it can be used by all instances of the Comments component regardless of which page the user is on. This global pattern removes the need for users to authenticate on each individual page they wish to comment on, which would be the case in C.\r\n\r\n### 3. Configure application settings\r\n\r\n**First, choose a name for your application's 3Box space.**\r\n\r\nAlthough you are free to choose whichever name you'd like for your app's space, we recommend using the name of your app. If your application already has a 3Box space, you are welcome to use that same one for comments.\r\n\r\n**Next, choose a naming convention for your application's threads.**\r\n\r\nComment threads need a name, and we recommend that your application creates `threadNames` according to a simple rule. We generally like using a natural identifier, such as community name, page URL, token ID, or other similar means.\r\n\r\n**Then, create an admin 3Box account for your application.**\r\n\r\nEach thread is required to have an admin (`adminEthAddr`), which possesses the rights to moderate the thread. We recommend you create an admin Ethereum account for your application so you can perform these actions. While technically you can use any Ethereum address as an admin account, we recommend [creating a 3Box profile](https://3box.io/hub) for that address so if you need to take action in the thread, others will know and trust you as the admin.\r\n\r\n**Lastly, initialize your application's space.**\r\n\r\nBefore threads can be deployed in your dapp, your application's admin account (`adminEthAddr` created in the previous step) must first open the space (`spaceName`) that will be used to store your application's threads. This step *must* be completed before your comment threads can be used by others. This process would likely be done outside the context of your dapp, probably in a test environment.\r\n\r\nSimply open a space by running (via `3Box.js SDK`): \r\n```\r\nconst box = await Box.openBox(adminEthAddr, ethereum);\r\nconst space = await box.openSpace(spaceName, spaceOpts);\r\n```\r\nSign the web3 prompts to complete the space initialization process.\r\n</br>\r\n</br>\r\n\r\n\r\n### 4. Usage\r\n\r\n#### Example\r\n\r\n```jsx\r\nimport ThreeBoxComments from '3box-comments-react';\r\n\r\nconst MyComponent = ({ handleLogin, box, ethereum, myAddress, currentUser3BoxProfile, adminEthAddr }) => (\r\n    <ThreeBoxComments \r\n        // required\r\n        spaceName=\"mySpaceName\"\r\n        threadName=\"myThreadName\"\r\n        adminEthAddr={adminEthAddr}\r\n\r\n\r\n        // Required props for context A) & B)\r\n        box={box}\r\n        currentUserAddr={myAddress}\r\n\r\n        // Required prop for context B)\r\n        loginFunction={handleLogin}\r\n\r\n        // Required prop for context C)\r\n        ethereum={ethereum}\r\n\r\n        // optional\r\n        members={false}\r\n        showCommentCount={10}\r\n        threadOpts={{}}\r\n        useHovers={false}\r\n        currentUser3BoxProfile={currentUser3BoxProfile}\r\n        userProfileURL={address => `https://mywebsite.com/user/${address}`}\r\n    />\r\n);\r\n```\r\n\r\n\r\n#### Prop Types\r\n\r\n| Property | Type          | Default  | Required Case          | Description |\r\n| :-------------------------------- | :-------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------ | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\r\n| `spaceName`    | String        |    |  Always   | Likely your dApp name and / or comment category.  A single `spaceName` with different `threadName`s is common practice when building a dApp with multiple Comment threads. |\r\n| `threadName`    | String       |   | Always    | A name specific to this Comments thread. |\r\n| `adminEthAddr`    | String (Ethereum Address)       |   | Always    | The Ethereum address you wish to give admin rights to for the Comments thread.  This user will be able to delete all comments and accept members in a members-only thread. **A thread with a new admin address, despite identical `spaceName` and `threadName`, will create an entirely new thread.**|\r\n| `box`    | Object         |   | A (and likely B)    | The `box` instance returned from running `await Box.openBox(address, web3)` somewhere in your dApp.|\r\n| `currentUserAddr`    | String (Ethereum Address)          |    | A & B, optional for C | The current user's Ethereum address. Passing this will help determine whether a user has delete access on each comment.  This prop will also let the component fetch that user's 3Box profile on component mount and render that data (profile picture) in the Comment input UI. |\r\n| `loginFunction`    | Function       |    | B    | A function from your dApp that handles web3 and 3Box login at the global dApp state. This callback will run when a user attempts to save a comment but a `box` instance doesn't yet exist. Running this function should result in a box instance (from `const box = Box.openBox(address, web3)`) being passed as the `box` prop to this component.  |\r\n| `ethereum`    | Object        |  window.ethereum  | C    | The `ethereum` object from whichever web3 provider your dApp uses.  The `enable` method on this object will be used to get the current user's Ethereum address and that address will be used to `openBox` within the current Component context.|\r\n| `members`    | Boolean       |  False   | Optional    | A boolean - `true` - to make the thread a members-only thread. Passing `false` will allow all users to post to the thread.  **Changing this setting after creating it will result in an entirely different thread** (see [Docs.3box.io](https://Docs.3box.io) for more info). |\r\n| `showCommentCount`    | Integer       |  30   | Optional    | The number of comments rendered in the UI by default on component mount and the number of additional comments revealed after clicking `Load more` in component. |\r\n| `spaceOpts`    | Object       | | Optional    | Optional parameters for threads (see [Docs.3box.io](https://Docs.3box.io) for more info)|\r\n| `threadOpts`    | Object       | | Optional    | Optional parameters for threads (see [Docs.3box.io](https://Docs.3box.io) for more info)|\r\n| `useHovers`    | Boolean       |  False  | Optional    | Pass true to enable a 3Box profile pop up when hovering over a commenter's name |\r\n| `currentUser3BoxProfile`    | Object       |   | Optional    | If the current user has already had their 3Box data fetched at the global dApp state, pass the object returned from `Box.getProfile(profileAddress)` to avoid an extra request.  This data will be rendered in the Comment input interface.|\r\n| `userProfileURL`    | Function       |  Defaults to returning user's 3Box profile URL  | Optional    | A function that returns a correctly formatted URL of a user's profile on the current platform.  The function will be passed an Ethereum address within the component, if needed.  A user will be redirected to the URL returned from this function when clicking on the name or Ethereum address associated with the comment in the thread.|\r\n\r\n## License\r\n\r\nMIT\r\n","gitHead":"89fd5b707f4ad3e900aad1c46094493710375d72","scripts":{"lint":"eslint ./src","scss":"node-sass sass -o src/css","test":"npm run lint && npm run coverage","build":"webpack --config webpack.config.babel.js","clean":"rm -rf dist coverage","start":"webpack-dev-server --config examples/webpack.config.live.babel.js; npm run watch","watch":"node-sass --watch scss sass -o src/css","coverage":"jest --coverage","build:es5":"rm -rf ./lib; npm run scss; ./node_modules/.bin/babel src --out-dir lib --source-maps inline --copy-files --ignore=src/__tests__/,src/__mocks__/,src/sass","prepublish":"npm run clean && npm run test && npm run build","build-examples":"webpack --config examples/webpack.config.babel.js --progress"},"_npmUser":{"name":"oznekenzo","email":"mkn293@nyu.edu"},"_npmVersion":"6.13.4","description":"Comments component for decentralized applications by 3Box","directories":{},"resolutions":{"babel-core":"7.0.0-bridge.0"},"_nodeVersion":"10.18.0","dependencies":{"3box":"^1.17.0","emoji-js":"^3.4.1","node-sass":"^4.13.0","babel-core":"^7.0.0-bridge.0","multicodec":"^0.5.6","3id-resolver":"0.0.6","profile-hover":"^1.1.1","react-linkify":"^1.0.0-alpha","@babel/runtime":"^7.6.0","react-inlinesvg":"^1.2.0","svg-inline-loader":"^0.8.0","ethereum-blockies-base64":"^1.0.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.1.2","react":"^16.6.0","enzyme":"^3.3.0","eslint":"^5.8.0","webpack":"^4.9.1","jest-cli":"^23.6.0","react-dom":"^16.6.0","@babel/cli":"^7.7.7","babel-jest":"^23.6.0","css-loader":"^1.0.1","prop-types":"^15.6.0","@babel/core":"^7.1.2","sass-loader":"^7.0.1","webpack-cli":"^3.1.2","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","did-resolver":"0.0.7","style-loader":"^0.23.1","@babel/register":"^7.0.0","react-hot-loader":"^4.12.19","@babel/preset-env":"^7.1.0","webpack-dev-server":"^3.1.4","@babel/preset-react":"^7.0.0","eslint-plugin-react":"^7.4.0","react-test-renderer":"^16.0.0","regenerator-runtime":"^0.12.1","clean-webpack-plugin":"^0.1.16","enzyme-adapter-react-16":"^1.1.1","react-addons-test-utils":"^15.5.1","@babel/plugin-proposal-class-properties":"^7.5.5"},"peerDependencies":{"react":">= 16.3.0","react-dom":">= 16.3.0"},"_npmOperationalInternal":{"tmp":"tmp/3box-comments-react_1.0.3-beta.5_1583273947075_0.39275413653587976","host":"s3://npm-registry-packages"}},"1.0.3-beta.6":{"name":"3box-comments-react","version":"1.0.3-beta.6","keywords":["comments","3Box","decentralized","ethereum"],"author":{"name":"3box.io"},"license":"MIT","_id":"3box-comments-react@1.0.3-beta.6","maintainers":[{"name":"oznekenzo","email":"mkn293@nyu.edu"}],"contributors":[{"name":"Kenzo Nakamura","email":"kenzo@nyu.edu"}],"dist":{"shasum":"7930304c742aec7f151bfc075cd17bf1026683d6","tarball":"https://registry.npmjs.org/3box-comments-react/-/3box-comments-react-1.0.3-beta.6.tgz","fileCount":67,"integrity":"sha512-bXQiNHP/S5CObSQc3y7onXF2Qvk6JU3BaZ6ycyWfaNtPrTxJRc4K+/nJyKYBQ20t3LNWHYG0ANeOIouBWZp5MA==","signatures":[{"sig":"MEYCIQCJ9DrVmhZLjURNtfN2v+90fncCxT+ibbZd4VddQee5dgIhAJLd1dY2zt2tqt3BqB/HcK/WkH/ZaxwHK9HRocaxMx9/","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":526285,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeXtiMCRA9TVsSAnZWagAAkJUQAIIX9WBG2g4Pw8AFGFHQ\nLPaDwdrZOpnDQfvPcdnL+cqwYW82q5/ayeiJXTCWGA2r4DoFBr5CYolEwPde\npFDXSwzDxeUu0chOf4u4o79lNcBU6ARjhx4Ost8Yf29Io6mbkuxHmx/C/N9S\nYrt4FlEPhFwduLDHbQfet7+MiYG3GZBFwSC+RPKdqT8nGDLj6W7CduoXpoFO\nx7NKgxPTef3cBe43YO5P12PuP/wRF6Nr7P6/OuJsZANl8IScxvxq8hjpVUpa\nJrMhUNJDPADXybtfwo4wXucoH4BnIJqZvTdxWXd3OxPYwPX4UNZZkYdOggTh\nyS07BP/CF/f9WOTd90RfbkYBAHevMiFmxYNDNKtUKsvI/PHWhWJOeqIwVmSP\nma7jw30KkQC7KAY9TMvq5qGc2Y9V8ELjWmoJPDprJ1HgEV/tBAthHHi+2qJy\nWBiHpEepY/yynb2ud4GpOsndFKQ2YGJxTeddQggn9sUm3Dkpt3a17/l2wgfG\njA3DmejByucW0YVEeAymAVF7mcy9qpDz2A+FS4aN2msTABGpNQbgXw64SaWm\nfqPO8mwBqV5QBreNZjhjaUEbeeAeAK9RZ0tizU4tPgp3hHCjs56HJp689TAC\nHLxP1u6Lvn8uQEvZu56cCemQ6lfTquHrySS0qpJ24PdY5FfmIVbbt2X4lGhz\nAogu\r\n=Wl6J\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib/index.js","readme":"[![Discord](https://img.shields.io/discord/484729862368526356.svg?style=for-the-badge)](https://discordapp.com/invite/Z3f3Cxy)\r\n[![npm](https://img.shields.io/npm/v/3box-comments-react.svg?style=for-the-badge)](https://www.npmjs.com/package/3box-comments-react)\r\n[![Twitter Follow](https://img.shields.io/twitter/follow/3boxdb.svg?style=for-the-badge&label=Twitter)](https://twitter.com/3boxdb)\r\n\r\n# 3Box Comments Plugin 💬\r\n\r\n`3box-comments-react` node package is a drop-in react component that provides Web3 developers with a readymade commenting system for their Ethereum application. Easily add rich, decentralized social discourse to your dApp with one line of code. The 3Box Comments plugin is built using 3Box infrastructure, and handles all logic for creating a comments thread. *Read the docs on [docs.3box.io](https://docs.3box.io/build/plugins/comments)*.\r\n\r\n### New Social Features:\r\n**Replies** - reply to comments inline (limited to two levels of replies), deleted comments with nested replies maintain the nested replies</br>\r\n**Emoji reactions** - react to each comment with emojis from an inline picker</br>\r\n**Votes** - Upvote or downvote on any comment</br>\r\n*Note: This is a breaking change - this will break any previously used comments, to create a new one, simply update the threadName in the same space*\r\n</br>\r\n\r\n\r\n### Try the demo [here](https://3box.github.io/3box-comments-react/examples/dist/)\r\n![Example Screenshot](comments-example-screenshot.png)\r\n</br>\r\n\r\n## How it Works\r\n#### Architecture\r\nThe Comments plugin is built using a standard implementation of [Open Threads](https://docs.3box.io/build/web-apps/messaging/choose#open-threads) which are defined in the [3Box Threads API](https://docs.3box.io/api/messaging) and made available via the [`3Box.js SDK`](https://github.com/3box/3box-js). The Comments plugin also includes UI for inputting and displaying user comments, logic for fetching user profiles, and pagination. The component is configurable to various authentication patterns, and can handle both Web3/3Box logged-in & logged-out states. \r\n\r\n#### Authentication\r\nWithout authenticating, users can read messages in the comment thread. However authentication is required to perform more interactive functionality. After the user is authenticated, a user can post a comment, delete their comment, and receive comments from other users in *real-time*.  Note: if you are not logged in and the component has not been passed your ethereum address, the component cannot know which comment belongs to you in order to delete.  In this case, click the login button just below the input UI.\r\n</br>\r\n</br>\r\n\r\n## Getting Started\r\n1. Install the component\r\n2. Choose your authentication pattern\r\n3. Configure application settings\r\n4. Usage\r\n\r\n### 1. Install the component\r\n\r\n```shell\r\nnpm i -S 3box-comments-react\r\n```\r\n\r\n### 2. Choose your authentication pattern\r\nDepending on *when and how* your dApp handles authentication for web3 and 3Box, you will need to provide a different set of props to the component. Three acceptable authentication patterns and their respective props are discussed below in A-C:\r\n\r\n**A) Dapp handles web3 and 3Box logins, and they run *before* component is mounted. (recommended)**\r\n\r\nDapp integrates with `3Box.js SDK` and the `3box-comments-react` component. In this case, the `box` instance returned from `Box.openBox(ethAddr)` via 3Box.js should be passed to the `box` prop in the comments component. The user's current Ethereum address should be passed to the `currentUserAddr` prop to determine `deletePost` access on each comment.\r\n\r\n**B) Dapp handles web3 and 3Box logins, but they haven't run before component is mounted. (recommended)**\r\n\r\nDapp integrates with `3Box.js SDK` and the `3box-comments-react` component. In this case, the login logic implemented in the dapp should be passed to the Comments component as the `loginFunction` prop, which is run when a user attempts to post a comment. The user's current Ethereum address should be passed to the `currentUserAddr` prop to determine `deletePost` access on each comment.\r\n\r\n**C) Dapp has no web3 and 3Box login logic.**\r\n\r\nDapp only integrates with the `3box-comments-react` component, but not `3Box.js SDK`. All web3 and 3Box login logic will be handled within the Comments component, though it's required for the `ethereum` object from your dapp's preferred web3 provider be passed to the `ethereum` prop in the component.\r\n\r\n#### Best practice\r\n\r\nFor the best UX, we recommend implementing one of the following authentication patterns: A; B; or B with A.\r\n\r\nEach of these patterns allow your application to make the `box` object available in global application state where it can be used by all instances of the Comments component regardless of which page the user is on. This global pattern removes the need for users to authenticate on each individual page they wish to comment on, which would be the case in C.\r\n\r\n### 3. Configure application settings\r\n\r\n**First, choose a name for your application's 3Box space.**\r\n\r\nAlthough you are free to choose whichever name you'd like for your app's space, we recommend using the name of your app. If your application already has a 3Box space, you are welcome to use that same one for comments.\r\n\r\n**Next, choose a naming convention for your application's threads.**\r\n\r\nComment threads need a name, and we recommend that your application creates `threadNames` according to a simple rule. We generally like using a natural identifier, such as community name, page URL, token ID, or other similar means.\r\n\r\n**Then, create an admin 3Box account for your application.**\r\n\r\nEach thread is required to have an admin (`adminEthAddr`), which possesses the rights to moderate the thread. We recommend you create an admin Ethereum account for your application so you can perform these actions. While technically you can use any Ethereum address as an admin account, we recommend [creating a 3Box profile](https://3box.io/hub) for that address so if you need to take action in the thread, others will know and trust you as the admin.\r\n\r\n**Lastly, initialize your application's space.**\r\n\r\nBefore threads can be deployed in your dapp, your application's admin account (`adminEthAddr` created in the previous step) must first open the space (`spaceName`) that will be used to store your application's threads. This step *must* be completed before your comment threads can be used by others. This process would likely be done outside the context of your dapp, probably in a test environment.\r\n\r\nSimply open a space by running (via `3Box.js SDK`): \r\n```\r\nconst box = await Box.openBox(adminEthAddr, ethereum);\r\nconst space = await box.openSpace(spaceName, spaceOpts);\r\n```\r\nSign the web3 prompts to complete the space initialization process.\r\n</br>\r\n</br>\r\n\r\n\r\n### 4. Usage\r\n\r\n#### Example\r\n\r\n```jsx\r\nimport ThreeBoxComments from '3box-comments-react';\r\n\r\nconst MyComponent = ({ handleLogin, box, ethereum, myAddress, currentUser3BoxProfile, adminEthAddr }) => (\r\n    <ThreeBoxComments \r\n        // required\r\n        spaceName=\"mySpaceName\"\r\n        threadName=\"myThreadName\"\r\n        adminEthAddr={adminEthAddr}\r\n\r\n\r\n        // Required props for context A) & B)\r\n        box={box}\r\n        currentUserAddr={myAddress}\r\n\r\n        // Required prop for context B)\r\n        loginFunction={handleLogin}\r\n\r\n        // Required prop for context C)\r\n        ethereum={ethereum}\r\n\r\n        // optional\r\n        members={false}\r\n        showCommentCount={10}\r\n        threadOpts={{}}\r\n        useHovers={false}\r\n        currentUser3BoxProfile={currentUser3BoxProfile}\r\n        userProfileURL={address => `https://mywebsite.com/user/${address}`}\r\n    />\r\n);\r\n```\r\n\r\n\r\n#### Prop Types\r\n\r\n| Property | Type          | Default  | Required Case          | Description |\r\n| :-------------------------------- | :-------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------ | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\r\n| `spaceName`    | String        |    |  Always   | Likely your dApp name and / or comment category.  A single `spaceName` with different `threadName`s is common practice when building a dApp with multiple Comment threads. |\r\n| `threadName`    | String       |   | Always    | A name specific to this Comments thread. |\r\n| `adminEthAddr`    | String (Ethereum Address)       |   | Always    | The Ethereum address you wish to give admin rights to for the Comments thread.  This user will be able to delete all comments and accept members in a members-only thread. **A thread with a new admin address, despite identical `spaceName` and `threadName`, will create an entirely new thread.**|\r\n| `box`    | Object         |   | A (and likely B)    | The `box` instance returned from running `await Box.openBox(address, web3)` somewhere in your dApp.|\r\n| `currentUserAddr`    | String (Ethereum Address)          |    | A & B, optional for C | The current user's Ethereum address. Passing this will help determine whether a user has delete access on each comment.  This prop will also let the component fetch that user's 3Box profile on component mount and render that data (profile picture) in the Comment input UI. |\r\n| `loginFunction`    | Function       |    | B    | A function from your dApp that handles web3 and 3Box login at the global dApp state. This callback will run when a user attempts to save a comment but a `box` instance doesn't yet exist. Running this function should result in a box instance (from `const box = Box.openBox(address, web3)`) being passed as the `box` prop to this component.  |\r\n| `ethereum`    | Object        |  window.ethereum  | C    | The `ethereum` object from whichever web3 provider your dApp uses.  The `enable` method on this object will be used to get the current user's Ethereum address and that address will be used to `openBox` within the current Component context.|\r\n| `members`    | Boolean       |  False   | Optional    | A boolean - `true` - to make the thread a members-only thread. Passing `false` will allow all users to post to the thread.  **Changing this setting after creating it will result in an entirely different thread** (see [Docs.3box.io](https://Docs.3box.io) for more info). |\r\n| `showCommentCount`    | Integer       |  30   | Optional    | The number of comments rendered in the UI by default on component mount and the number of additional comments revealed after clicking `Load more` in component. |\r\n| `spaceOpts`    | Object       | | Optional    | Optional parameters for threads (see [Docs.3box.io](https://Docs.3box.io) for more info)|\r\n| `threadOpts`    | Object       | | Optional    | Optional parameters for threads (see [Docs.3box.io](https://Docs.3box.io) for more info)|\r\n| `useHovers`    | Boolean       |  False  | Optional    | Pass true to enable a 3Box profile pop up when hovering over a commenter's name |\r\n| `currentUser3BoxProfile`    | Object       |   | Optional    | If the current user has already had their 3Box data fetched at the global dApp state, pass the object returned from `Box.getProfile(profileAddress)` to avoid an extra request.  This data will be rendered in the Comment input interface.|\r\n| `userProfileURL`    | Function       |  Defaults to returning user's 3Box profile URL  | Optional    | A function that returns a correctly formatted URL of a user's profile on the current platform.  The function will be passed an Ethereum address within the component, if needed.  A user will be redirected to the URL returned from this function when clicking on the name or Ethereum address associated with the comment in the thread.|\r\n\r\n## License\r\n\r\nMIT\r\n","gitHead":"89fd5b707f4ad3e900aad1c46094493710375d72","scripts":{"lint":"eslint ./src","scss":"node-sass sass -o src/css","test":"npm run lint && npm run coverage","build":"webpack --config webpack.config.babel.js","clean":"rm -rf dist coverage","start":"webpack-dev-server --config examples/webpack.config.live.babel.js; npm run watch","watch":"node-sass --watch scss sass -o src/css","coverage":"jest --coverage","build:es5":"rm -rf ./lib; npm run scss; ./node_modules/.bin/babel src --out-dir lib --source-maps inline --copy-files --ignore=src/__tests__/,src/__mocks__/,src/sass","prepublish":"npm run clean && npm run test && npm run build","build-examples":"webpack --config examples/webpack.config.babel.js --progress"},"_npmUser":{"name":"oznekenzo","email":"mkn293@nyu.edu"},"_npmVersion":"6.13.4","description":"Comments component for decentralized applications by 3Box","directories":{},"resolutions":{"babel-core":"7.0.0-bridge.0"},"_nodeVersion":"10.18.0","dependencies":{"3box":"^1.17.0","emoji-js":"^3.4.1","node-sass":"^4.13.0","babel-core":"^7.0.0-bridge.0","multicodec":"^0.5.6","3id-resolver":"0.0.6","profile-hover":"^1.1.1","react-linkify":"^1.0.0-alpha","@babel/runtime":"^7.6.0","react-inlinesvg":"^1.2.0","svg-inline-loader":"^0.8.0","ethereum-blockies-base64":"^1.0.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.1.2","react":"^16.6.0","enzyme":"^3.3.0","eslint":"^5.8.0","webpack":"^4.9.1","jest-cli":"^23.6.0","react-dom":"^16.6.0","@babel/cli":"^7.7.7","babel-jest":"^23.6.0","css-loader":"^1.0.1","prop-types":"^15.6.0","@babel/core":"^7.1.2","sass-loader":"^7.0.1","webpack-cli":"^3.1.2","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","did-resolver":"0.0.7","style-loader":"^0.23.1","@babel/register":"^7.0.0","react-hot-loader":"^4.12.19","@babel/preset-env":"^7.1.0","webpack-dev-server":"^3.1.4","@babel/preset-react":"^7.0.0","eslint-plugin-react":"^7.4.0","react-test-renderer":"^16.0.0","regenerator-runtime":"^0.12.1","clean-webpack-plugin":"^0.1.16","enzyme-adapter-react-16":"^1.1.1","react-addons-test-utils":"^15.5.1","@babel/plugin-proposal-class-properties":"^7.5.5"},"peerDependencies":{"react":">= 16.3.0","react-dom":">= 16.3.0"},"_npmOperationalInternal":{"tmp":"tmp/3box-comments-react_1.0.3-beta.6_1583274124392_0.5544193385573175","host":"s3://npm-registry-packages"}},"1.0.3-beta.7":{"name":"3box-comments-react","version":"1.0.3-beta.7","keywords":["comments","3Box","decentralized","ethereum"],"author":{"name":"3box.io"},"license":"MIT","_id":"3box-comments-react@1.0.3-beta.7","maintainers":[{"name":"oznekenzo","email":"mkn293@nyu.edu"}],"contributors":[{"name":"Kenzo Nakamura","email":"kenzo@nyu.edu"}],"dist":{"shasum":"e10bb9756bc89e817e4cf225889e3dbef3324929","tarball":"https://registry.npmjs.org/3box-comments-react/-/3box-comments-react-1.0.3-beta.7.tgz","fileCount":67,"integrity":"sha512-MEH+KX51dhUsy8NBTvW5bFJ98tdRUGRw2H1i75/lQpN177UJtyImXZgcPk9vn8jm/o+VW1q768QXFEvCbQciMQ==","signatures":[{"sig":"MEUCIBoYYeJFpiLzToc7sOEsscoKtit5KIAVlPZhb+KQ1kK+AiEA5BR/TmBBS/lfRycS9oLv+9LL44A1UidyInnDDxbiFwQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":528336,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeX9brCRA9TVsSAnZWagAAi88P/A0oNEi4XzDXu+2CYfl4\nS+sDdzJ50WXARvQMg48J1rAGHHwHMQaEKs/IwO7l6y090w6I29F4fOoGB5cS\n57vCDTwQI6lb6PhsovOOOMsrnzfjp+iJEuwLyPLQhlYeFiCQSKVVAmLPYDYE\nnoo6T1HGAfiNwGR2CaTj2/SpUdHeJokuKGAZi2QdjpQxf3qroxVUwudq55Kt\nH29eWNTDfeQm9Z/45jHi3VojAWFrwS3xOdjHMwHUXMLMab4odC9VfkBZvyid\n0wEm6978e/bcg1AqKMgHvdAFhK1rvukz+UOS2yziYjAs+QTXvIyaHNPrVs63\nZVxf3AzF5YLtvQWEQwJtdCHdljwFshTSdN1W5AnYf+QWE5dMmap71go3ZC2E\npJlHIAueis7wgU65L49K3vwmIdM+6I/lflkgYTYVTDWVcnQ1GX2BBarWuPNK\nN6vpIVWR2AoHGpASBsMtbj/OwU5+wxo79/uSIpoQIMHQWIc3tetg/VaexOvo\nmWD/+MrChwFX+NHKoDNvEswHRgWkWFnXgl3Hu3WCDBhBmfk6xWXKAPXajfo2\no81s7ZYnh6w4p2acFvhfmXPFnh58Q5BTpxStGbgrhGa+s6tUtxdC9hQ8naWP\nnAZZTXJxtlr/qGjddcwRGX2XfkUinDxKi0dZcvmVgtKXZWKzXNV4zd7cGZbK\nUn9j\r\n=mZyR\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib/index.js","readme":"[![Discord](https://img.shields.io/discord/484729862368526356.svg?style=for-the-badge)](https://discordapp.com/invite/Z3f3Cxy)\r\n[![npm](https://img.shields.io/npm/v/3box-comments-react.svg?style=for-the-badge)](https://www.npmjs.com/package/3box-comments-react)\r\n[![Twitter Follow](https://img.shields.io/twitter/follow/3boxdb.svg?style=for-the-badge&label=Twitter)](https://twitter.com/3boxdb)\r\n\r\n# 3Box Comments Plugin 💬\r\n\r\n`3box-comments-react` node package is a drop-in react component that provides Web3 developers with a readymade commenting system for their Ethereum application. Easily add rich, decentralized social discourse to your dApp with one line of code. The 3Box Comments plugin is built using 3Box infrastructure, and handles all logic for creating a comments thread. *Read the docs on [docs.3box.io](https://docs.3box.io/build/plugins/comments)*.\r\n\r\n### New Social Features:\r\n**Replies** - reply to comments inline (limited to two levels of replies), deleted comments with nested replies maintain the nested replies</br>\r\n**Emoji reactions** - react to each comment with emojis from an inline picker</br>\r\n**Votes** - Upvote or downvote on any comment</br>\r\n*Note: This is a breaking change - this will break any previously used comments, to create a new one, simply update the threadName in the same space*\r\n</br>\r\n\r\n\r\n### Try the demo [here](https://3box.github.io/3box-comments-react/examples/dist/)\r\n![Example Screenshot](comments-example-screenshot.png)\r\n</br>\r\n\r\n## How it Works\r\n#### Architecture\r\nThe Comments plugin is built using a standard implementation of [Open Threads](https://docs.3box.io/build/web-apps/messaging/choose#open-threads) which are defined in the [3Box Threads API](https://docs.3box.io/api/messaging) and made available via the [`3Box.js SDK`](https://github.com/3box/3box-js). The Comments plugin also includes UI for inputting and displaying user comments, logic for fetching user profiles, and pagination. The component is configurable to various authentication patterns, and can handle both Web3/3Box logged-in & logged-out states. \r\n\r\n#### Authentication\r\nWithout authenticating, users can read messages in the comment thread. However authentication is required to perform more interactive functionality. After the user is authenticated, a user can post a comment, delete their comment, and receive comments from other users in *real-time*.  Note: if you are not logged in and the component has not been passed your ethereum address, the component cannot know which comment belongs to you in order to delete.  In this case, click the login button just below the input UI.\r\n</br>\r\n</br>\r\n\r\n## Getting Started\r\n1. Install the component\r\n2. Choose your authentication pattern\r\n3. Configure application settings\r\n4. Usage\r\n\r\n### 1. Install the component\r\n\r\n```shell\r\nnpm i -S 3box-comments-react\r\n```\r\n\r\n### 2. Choose your authentication pattern\r\nDepending on *when and how* your dApp handles authentication for web3 and 3Box, you will need to provide a different set of props to the component.  Regardless of the context, the component must be passed either an ethereum provider or the user's box object before it mounts. Three acceptable authentication patterns and their respective props are discussed below in A-C:\r\n\r\n**A) Dapp handles web3 and 3Box logins, and they run *before* component is mounted. (recommended)**\r\n\r\nDapp integrates with `3Box.js SDK` and the `3box-comments-react` component. In this case, the `box` instance returned from `Box.openBox(ethAddr)` via 3Box.js should be passed to the `box` prop in the comments component. The user's current Ethereum address should be passed to the `currentUserAddr` prop to determine `deletePost` access on each comment.\r\n\r\n**B) Dapp handles web3 and 3Box logins, but they haven't run before component is mounted. (recommended)**\r\n\r\nDapp integrates with `3Box.js SDK` and the `3box-comments-react` component. In this case, the login logic implemented in the dapp should be passed to the Comments component as the `loginFunction` prop, which is run when a user attempts to post a comment. The user's current Ethereum address should be passed to the `currentUserAddr` prop to determine `deletePost` access on each comment.\r\n\r\n**C) Dapp has no web3 and 3Box login logic.**\r\n\r\nDapp only integrates with the `3box-comments-react` component, but not `3Box.js SDK`. All web3 and 3Box login logic will be handled within the Comments component, though it's required for the `ethereum` object from your dapp's preferred web3 provider be passed to the `ethereum` prop in the component.\r\n\r\n#### Best practice\r\n\r\nFor the best UX, we recommend implementing one of the following authentication patterns: A; B; or B with A.\r\n\r\nEach of these patterns allow your application to make the `box` object available in global application state where it can be used by all instances of the Comments component regardless of which page the user is on. This global pattern removes the need for users to authenticate on each individual page they wish to comment on, which would be the case in C.\r\n\r\n### 3. Configure application settings\r\n\r\n**First, choose a name for your application's 3Box space.**\r\n\r\nAlthough you are free to choose whichever name you'd like for your app's space, we recommend using the name of your app. If your application already has a 3Box space, you are welcome to use that same one for comments.\r\n\r\n**Next, choose a naming convention for your application's threads.**\r\n\r\nComment threads need a name, and we recommend that your application creates `threadNames` according to a simple rule. We generally like using a natural identifier, such as community name, page URL, token ID, or other similar means.\r\n\r\n**Then, create an admin 3Box account for your application.**\r\n\r\nEach thread is required to have an admin (`adminEthAddr`), which possesses the rights to moderate the thread. We recommend you create an admin Ethereum account for your application so you can perform these actions. While technically you can use any Ethereum address as an admin account, we recommend [creating a 3Box profile](https://3box.io/hub) for that address so if you need to take action in the thread, others will know and trust you as the admin.\r\n\r\n**Lastly, initialize your application's space.**\r\n\r\nBefore threads can be deployed in your dapp, your application's admin account (`adminEthAddr` created in the previous step) must first open the space (`spaceName`) that will be used to store your application's threads. This step *must* be completed before your comment threads can be used by others. This process would likely be done outside the context of your dapp, probably in a test environment.\r\n\r\nSimply open a space by running (via `3Box.js SDK`): \r\n```\r\nconst box = await Box.openBox(adminEthAddr, ethereum);\r\nconst space = await box.openSpace(spaceName, spaceOpts);\r\n```\r\nSign the web3 prompts to complete the space initialization process.\r\n</br>\r\n</br>\r\n\r\n\r\n### 4. Usage\r\n\r\n#### Example\r\n\r\n```jsx\r\nimport ThreeBoxComments from '3box-comments-react';\r\n\r\nconst MyComponent = ({ handleLogin, box, ethereum, myAddress, currentUser3BoxProfile, adminEthAddr }) => (\r\n    <ThreeBoxComments \r\n        // required\r\n        spaceName=\"mySpaceName\"\r\n        threadName=\"myThreadName\"\r\n        adminEthAddr={adminEthAddr}\r\n\r\n\r\n        // Required props for context A) & B)\r\n        box={box}\r\n        currentUserAddr={myAddress}\r\n\r\n        // Required prop for context B)\r\n        loginFunction={handleLogin}\r\n\r\n        // Required prop for context C)\r\n        ethereum={ethereum}\r\n\r\n        // optional\r\n        members={false}\r\n        showCommentCount={10}\r\n        threadOpts={{}}\r\n        useHovers={false}\r\n        currentUser3BoxProfile={currentUser3BoxProfile}\r\n        userProfileURL={address => `https://mywebsite.com/user/${address}`}\r\n    />\r\n);\r\n```\r\n\r\n\r\n#### Prop Types\r\n\r\n| Property | Type          | Default  | Required Case          | Description |\r\n| :-------------------------------- | :-------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------ | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\r\n| `spaceName`    | String        |    |  Always   | Likely your dApp name and / or comment category.  A single `spaceName` with different `threadName`s is common practice when building a dApp with multiple Comment threads. |\r\n| `threadName`    | String       |   | Always    | A name specific to this Comments thread. |\r\n| `adminEthAddr`    | String (Ethereum Address)       |   | Always    | The Ethereum address you wish to give admin rights to for the Comments thread.  This user will be able to delete all comments and accept members in a members-only thread. **A thread with a new admin address, despite identical `spaceName` and `threadName`, will create an entirely new thread.**|\r\n| `box`    | Object         |   | A (and likely B)    | The `box` instance returned from running `await Box.openBox(address, web3)` somewhere in your dApp.|\r\n| `currentUserAddr`    | String (Ethereum Address)          |    | A & B, optional for C | The current user's Ethereum address. Passing this will help determine whether a user has delete access on each comment.  This prop will also let the component fetch that user's 3Box profile on component mount and render that data (profile picture) in the Comment input UI. |\r\n| `loginFunction`    | Function       |    | B    | A function from your dApp that handles web3 and 3Box login at the global dApp state. This callback will run when a user attempts to save a comment but a `box` instance doesn't yet exist. Running this function should result in a box instance (from `const box = Box.openBox(address, web3)`) being passed as the `box` prop to this component.  |\r\n| `ethereum`    | Object        |  window.ethereum  | C    | The `ethereum` object from whichever web3 provider your dApp uses.  The `enable` method on this object will be used to get the current user's Ethereum address and that address will be used to `openBox` within the current Component context.|\r\n| `members`    | Boolean       |  False   | Optional    | A boolean - `true` - to make the thread a members-only thread. Passing `false` will allow all users to post to the thread.  **Changing this setting after creating it will result in an entirely different thread** (see [Docs.3box.io](https://Docs.3box.io) for more info). |\r\n| `showCommentCount`    | Integer       |  30   | Optional    | The number of comments rendered in the UI by default on component mount and the number of additional comments revealed after clicking `Load more` in component. |\r\n| `spaceOpts`    | Object       | | Optional    | Optional parameters for threads (see [Docs.3box.io](https://Docs.3box.io) for more info)|\r\n| `threadOpts`    | Object       | | Optional    | Optional parameters for threads (see [Docs.3box.io](https://Docs.3box.io) for more info)|\r\n| `useHovers`    | Boolean       |  False  | Optional    | Pass true to enable a 3Box profile pop up when hovering over a commenter's name |\r\n| `currentUser3BoxProfile`    | Object       |   | Optional    | If the current user has already had their 3Box data fetched at the global dApp state, pass the object returned from `Box.getProfile(profileAddress)` to avoid an extra request.  This data will be rendered in the Comment input interface.|\r\n| `userProfileURL`    | Function       |  Defaults to returning user's 3Box profile URL  | Optional    | A function that returns a correctly formatted URL of a user's profile on the current platform.  The function will be passed an Ethereum address within the component, if needed.  A user will be redirected to the URL returned from this function when clicking on the name or Ethereum address associated with the comment in the thread.|\r\n\r\n## License\r\n\r\nMIT\r\n","gitHead":"89fd5b707f4ad3e900aad1c46094493710375d72","scripts":{"lint":"eslint ./src","scss":"node-sass sass -o src/css","test":"npm run lint && npm run coverage","build":"webpack --config webpack.config.babel.js","clean":"rm -rf dist coverage","start":"webpack-dev-server --config examples/webpack.config.live.babel.js; npm run watch","watch":"node-sass --watch scss sass -o src/css","coverage":"jest --coverage","build:es5":"rm -rf ./lib; npm run scss; ./node_modules/.bin/babel src --out-dir lib --source-maps inline --copy-files --ignore=src/__tests__/,src/__mocks__/,src/sass","prepublish":"npm run clean && npm run test && npm run build","build-examples":"webpack --config examples/webpack.config.babel.js --progress"},"_npmUser":{"name":"oznekenzo","email":"mkn293@nyu.edu"},"_npmVersion":"6.13.4","description":"Comments component for decentralized applications by 3Box","directories":{},"resolutions":{"babel-core":"7.0.0-bridge.0"},"_nodeVersion":"10.18.0","dependencies":{"3box":"^1.17.0","emoji-js":"^3.4.1","node-sass":"^4.13.0","babel-core":"^7.0.0-bridge.0","multicodec":"^0.5.6","3id-resolver":"0.0.6","profile-hover":"^1.1.1","react-linkify":"^1.0.0-alpha","@babel/runtime":"^7.6.0","react-inlinesvg":"^1.2.0","svg-inline-loader":"^0.8.0","ethereum-blockies-base64":"^1.0.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.1.2","react":"^16.6.0","enzyme":"^3.3.0","eslint":"^5.8.0","webpack":"^4.9.1","jest-cli":"^23.6.0","react-dom":"^16.6.0","@babel/cli":"^7.7.7","babel-jest":"^23.6.0","css-loader":"^1.0.1","prop-types":"^15.6.0","@babel/core":"^7.1.2","sass-loader":"^7.0.1","webpack-cli":"^3.1.2","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","did-resolver":"0.0.7","style-loader":"^0.23.1","@babel/register":"^7.0.0","react-hot-loader":"^4.12.19","@babel/preset-env":"^7.1.0","webpack-dev-server":"^3.1.4","@babel/preset-react":"^7.0.0","eslint-plugin-react":"^7.4.0","react-test-renderer":"^16.0.0","regenerator-runtime":"^0.12.1","clean-webpack-plugin":"^0.1.16","enzyme-adapter-react-16":"^1.1.1","react-addons-test-utils":"^15.5.1","@babel/plugin-proposal-class-properties":"^7.5.5"},"peerDependencies":{"react":">= 16.3.0","react-dom":">= 16.3.0"},"_npmOperationalInternal":{"tmp":"tmp/3box-comments-react_1.0.3-beta.7_1583339242908_0.12728489130724863","host":"s3://npm-registry-packages"}},"1.0.3-beta.8":{"name":"3box-comments-react","version":"1.0.3-beta.8","keywords":["comments","3Box","decentralized","ethereum"],"author":{"name":"3box.io"},"license":"MIT","_id":"3box-comments-react@1.0.3-beta.8","maintainers":[{"name":"oznekenzo","email":"mkn293@nyu.edu"}],"contributors":[{"name":"Kenzo Nakamura","email":"kenzo@nyu.edu"}],"dist":{"shasum":"5e29849b0898c47e8866c5800d10cfd76e25a415","tarball":"https://registry.npmjs.org/3box-comments-react/-/3box-comments-react-1.0.3-beta.8.tgz","fileCount":67,"integrity":"sha512-ynHVuqH5Q+a2Qf6CbVnW0a3dNv6kTVzy4j54YuTzeXTqI2O+g35dvaYArV3El6YQvpAgFXueKD40Zx3NthqKfg==","signatures":[{"sig":"MEUCIE7RrBe+Yjlydc0qolhGtxbpwX9sNxmu2OiGXLOqzkVJAiEAsG4g+oJrz8R1uoB5TVoPL/1Vh8SuurqX2jWLq5ScRCg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":528926,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeX+uOCRA9TVsSAnZWagAA/SsP/0qs0qYidvspmfhgFy8l\n5zywciMFFQAEjJRPoUtwiyXfcKpWmOu5DqrBSpz1TidR2lKRgSzRWD3dwcL4\n2oetBn/UTc5LL6rb/lIB4PpSDQUerQ+1CnGWC+B91k8uoexhcaeObJ0UlVl+\nt4fH34i3xg1oFhM93G79SWFb+yLn3v1HMArDss0PJJs+kWZ2Br9xhGLBXBIE\nZfB6V2z0GmWx5mmthJbFn/pSJhb3jpjgvoiUJhvFwynWBx7gYWvrJWz486fE\noIh8bbblhK7DIbVil5WGvrFcEjfchXllOc2uo8HK5UD3D1geHiOLS0Ds/2DU\n2TxuHQW7DW/xzyrEyqN812vdU+qM2KUuT40obAre+HblSfeQiC4JqRSoRSep\nSptHPNMYvBHSVqLSJ0wkUIGugRkYNUdWgLyusXDOdUxl7cnmvEPiBt7+BEQx\norEc8Vys5y33+8DawKGO1MDMCzLPuTEXAuZ7AAM0z3geM9AUnupyodEEjM9i\n2O4rc7n82kHSXFqfAJOhsRWQ5lxCqMLMlB0kLR/1xA2hetETm+ep4xYACdIE\n/iCFCDSvrovO2rEdRAtH/i1kD38pDYhrnsgzkxq8BdYmjht+rKRy1no6gPTy\n7R41OCDIst3Uw7VA51KX8prLhSy7q+vRBD/EFIm5/tMEnF/dcvx8z1TKlXvY\nA27e\r\n=naye\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib/index.js","readme":"[![Discord](https://img.shields.io/discord/484729862368526356.svg?style=for-the-badge)](https://discordapp.com/invite/Z3f3Cxy)\r\n[![npm](https://img.shields.io/npm/v/3box-comments-react.svg?style=for-the-badge)](https://www.npmjs.com/package/3box-comments-react)\r\n[![Twitter Follow](https://img.shields.io/twitter/follow/3boxdb.svg?style=for-the-badge&label=Twitter)](https://twitter.com/3boxdb)\r\n\r\n# 3Box Comments Plugin 💬\r\n\r\n`3box-comments-react` node package is a drop-in react component that provides Web3 developers with a readymade commenting system for their Ethereum application. Easily add rich, decentralized social discourse to your dApp with one line of code. The 3Box Comments plugin is built using 3Box infrastructure, and handles all logic for creating a comments thread. *Read the docs on [docs.3box.io](https://docs.3box.io/build/plugins/comments)*.\r\n\r\n### New Social Features:\r\n**Replies** - reply to comments inline (limited to two levels of replies), deleted comments with nested replies maintain the nested replies</br>\r\n**Emoji reactions** - react to each comment with emojis from an inline picker</br>\r\n**Votes** - Upvote or downvote on any comment</br>\r\n*Note: This is a breaking change - this will break any previously used comments, to create a new one, simply update the threadName in the same space*\r\n</br>\r\n\r\n\r\n### Try the demo [here](https://3box.github.io/3box-comments-react/examples/dist/)\r\n![Example Screenshot](comments-example-screenshot.png)\r\n</br>\r\n\r\n## How it Works\r\n#### Architecture\r\nThe Comments plugin is built using a standard implementation of [Open Threads](https://docs.3box.io/build/web-apps/messaging/choose#open-threads) which are defined in the [3Box Threads API](https://docs.3box.io/api/messaging) and made available via the [`3Box.js SDK`](https://github.com/3box/3box-js). The Comments plugin also includes UI for inputting and displaying user comments, logic for fetching user profiles, and pagination. The component is configurable to various authentication patterns, and can handle both Web3/3Box logged-in & logged-out states. \r\n\r\n#### Authentication\r\nWithout authenticating, users can read messages in the comment thread. However authentication is required to perform more interactive functionality. After the user is authenticated, a user can post a comment, delete their comment, and receive comments from other users in *real-time*.  Note: if you are not logged in and the component has not been passed your ethereum address, the component cannot know which comment belongs to you in order to delete.  In this case, click the login button just below the input UI.\r\n</br>\r\n</br>\r\n\r\n## Getting Started\r\n1. Install the component\r\n2. Choose your authentication pattern\r\n3. Configure application settings\r\n4. Usage\r\n\r\n### 1. Install the component\r\n\r\n```shell\r\nnpm i -S 3box-comments-react\r\n```\r\n\r\n### 2. Choose your authentication pattern\r\nDepending on *when and how* your dApp handles authentication for web3 and 3Box, you will need to provide a different set of props to the component.  Regardless of the context, the component must be passed either an ethereum provider or the user's box object before it mounts. Three acceptable authentication patterns and their respective props are discussed below in A-C:\r\n\r\n**A) Dapp handles web3 and 3Box logins, and they run *before* component is mounted. (recommended)**\r\n\r\nDapp integrates with `3Box.js SDK` and the `3box-comments-react` component. In this case, the `box` instance returned from `Box.openBox(ethAddr)` via 3Box.js should be passed to the `box` prop in the comments component. The user's current Ethereum address should be passed to the `currentUserAddr` prop to determine `deletePost` access on each comment.\r\n\r\n**B) Dapp handles web3 and 3Box logins, but they haven't run before component is mounted. (recommended)**\r\n\r\nDapp integrates with `3Box.js SDK` and the `3box-comments-react` component. In this case, the login logic implemented in the dapp should be passed to the Comments component as the `loginFunction` prop, which is run when a user attempts to post a comment. The user's current Ethereum address should be passed to the `currentUserAddr` prop to determine `deletePost` access on each comment.\r\n\r\n**C) Dapp has no web3 and 3Box login logic.**\r\n\r\nDapp only integrates with the `3box-comments-react` component, but not `3Box.js SDK`. All web3 and 3Box login logic will be handled within the Comments component, though it's required for the `ethereum` object from your dapp's preferred web3 provider be passed to the `ethereum` prop in the component.\r\n\r\n#### Best practice\r\n\r\nFor the best UX, we recommend implementing one of the following authentication patterns: A; B; or B with A.\r\n\r\nEach of these patterns allow your application to make the `box` object available in global application state where it can be used by all instances of the Comments component regardless of which page the user is on. This global pattern removes the need for users to authenticate on each individual page they wish to comment on, which would be the case in C.\r\n\r\n### 3. Configure application settings\r\n\r\n**First, choose a name for your application's 3Box space.**\r\n\r\nAlthough you are free to choose whichever name you'd like for your app's space, we recommend using the name of your app. If your application already has a 3Box space, you are welcome to use that same one for comments.\r\n\r\n**Next, choose a naming convention for your application's threads.**\r\n\r\nComment threads need a name, and we recommend that your application creates `threadNames` according to a simple rule. We generally like using a natural identifier, such as community name, page URL, token ID, or other similar means.\r\n\r\n**Then, create an admin 3Box account for your application.**\r\n\r\nEach thread is required to have an admin (`adminEthAddr`), which possesses the rights to moderate the thread. We recommend you create an admin Ethereum account for your application so you can perform these actions. While technically you can use any Ethereum address as an admin account, we recommend [creating a 3Box profile](https://3box.io/hub) for that address so if you need to take action in the thread, others will know and trust you as the admin.\r\n\r\n**Lastly, initialize your application's space.**\r\n\r\nBefore threads can be deployed in your dapp, your application's admin account (`adminEthAddr` created in the previous step) must first open the space (`spaceName`) that will be used to store your application's threads. This step *must* be completed before your comment threads can be used by others. This process would likely be done outside the context of your dapp, probably in a test environment.\r\n\r\nSimply open a space by running (via `3Box.js SDK`): \r\n```\r\nconst box = await Box.openBox(adminEthAddr, ethereum);\r\nconst space = await box.openSpace(spaceName, spaceOpts);\r\n```\r\nSign the web3 prompts to complete the space initialization process.\r\n</br>\r\n</br>\r\n\r\n\r\n### 4. Usage\r\n\r\n#### Example\r\n\r\n```jsx\r\nimport ThreeBoxComments from '3box-comments-react';\r\n\r\nconst MyComponent = ({ handleLogin, box, ethereum, myAddress, currentUser3BoxProfile, adminEthAddr }) => (\r\n    <ThreeBoxComments \r\n        // required\r\n        spaceName=\"mySpaceName\"\r\n        threadName=\"myThreadName\"\r\n        adminEthAddr={adminEthAddr}\r\n\r\n\r\n        // Required props for context A) & B)\r\n        box={box}\r\n        currentUserAddr={myAddress}\r\n\r\n        // Required prop for context B)\r\n        loginFunction={handleLogin}\r\n\r\n        // Required prop for context C)\r\n        ethereum={ethereum}\r\n\r\n        // optional\r\n        members={false}\r\n        showCommentCount={10}\r\n        threadOpts={{}}\r\n        useHovers={false}\r\n        currentUser3BoxProfile={currentUser3BoxProfile}\r\n        userProfileURL={address => `https://mywebsite.com/user/${address}`}\r\n    />\r\n);\r\n```\r\n\r\n\r\n#### Prop Types\r\n\r\n| Property | Type          | Default  | Required Case          | Description |\r\n| :-------------------------------- | :-------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------ | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\r\n| `spaceName`    | String        |    |  Always   | Likely your dApp name and / or comment category.  A single `spaceName` with different `threadName`s is common practice when building a dApp with multiple Comment threads. |\r\n| `threadName`    | String       |   | Always    | A name specific to this Comments thread. |\r\n| `adminEthAddr`    | String (Ethereum Address)       |   | Always    | The Ethereum address you wish to give admin rights to for the Comments thread.  This user will be able to delete all comments and accept members in a members-only thread. **A thread with a new admin address, despite identical `spaceName` and `threadName`, will create an entirely new thread.**|\r\n| `box`    | Object         |   | A (and likely B)    | The `box` instance returned from running `await Box.openBox(address, web3)` somewhere in your dApp.|\r\n| `currentUserAddr`    | String (Ethereum Address)          |    | A & B, optional for C | The current user's Ethereum address. Passing this will help determine whether a user has delete access on each comment.  This prop will also let the component fetch that user's 3Box profile on component mount and render that data (profile picture) in the Comment input UI. |\r\n| `loginFunction`    | Function       |    | B    | A function from your dApp that handles web3 and 3Box login at the global dApp state. This callback will run when a user attempts to save a comment but a `box` instance doesn't yet exist. Running this function should result in a box instance (from `const box = Box.openBox(address, web3)`) being passed as the `box` prop to this component.  |\r\n| `ethereum`    | Object        |  window.ethereum  | C    | The `ethereum` object from whichever web3 provider your dApp uses.  The `enable` method on this object will be used to get the current user's Ethereum address and that address will be used to `openBox` within the current Component context.|\r\n| `members`    | Boolean       |  False   | Optional    | A boolean - `true` - to make the thread a members-only thread. Passing `false` will allow all users to post to the thread.  **Changing this setting after creating it will result in an entirely different thread** (see [Docs.3box.io](https://Docs.3box.io) for more info). |\r\n| `showCommentCount`    | Integer       |  30   | Optional    | The number of comments rendered in the UI by default on component mount and the number of additional comments revealed after clicking `Load more` in component. |\r\n| `spaceOpts`    | Object       | | Optional    | Optional parameters for threads (see [Docs.3box.io](https://Docs.3box.io) for more info)|\r\n| `threadOpts`    | Object       | | Optional    | Optional parameters for threads (see [Docs.3box.io](https://Docs.3box.io) for more info)|\r\n| `useHovers`    | Boolean       |  False  | Optional    | Pass true to enable a 3Box profile pop up when hovering over a commenter's name |\r\n| `currentUser3BoxProfile`    | Object       |   | Optional    | If the current user has already had their 3Box data fetched at the global dApp state, pass the object returned from `Box.getProfile(profileAddress)` to avoid an extra request.  This data will be rendered in the Comment input interface.|\r\n| `userProfileURL`    | Function       |  Defaults to returning user's 3Box profile URL  | Optional    | A function that returns a correctly formatted URL of a user's profile on the current platform.  The function will be passed an Ethereum address within the component, if needed.  A user will be redirected to the URL returned from this function when clicking on the name or Ethereum address associated with the comment in the thread.|\r\n\r\n## License\r\n\r\nMIT\r\n","gitHead":"89fd5b707f4ad3e900aad1c46094493710375d72","scripts":{"lint":"eslint ./src","scss":"node-sass sass -o src/css","test":"npm run lint && npm run coverage","build":"webpack --config webpack.config.babel.js","clean":"rm -rf dist coverage","start":"webpack-dev-server --config examples/webpack.config.live.babel.js; npm run watch","watch":"node-sass --watch scss sass -o src/css","coverage":"jest --coverage","build:es5":"rm -rf ./lib; npm run scss; ./node_modules/.bin/babel src --out-dir lib --source-maps inline --copy-files --ignore=src/__tests__/,src/__mocks__/,src/sass","prepublish":"npm run clean && npm run test && npm run build","build-examples":"webpack --config examples/webpack.config.babel.js --progress"},"_npmUser":{"name":"oznekenzo","email":"mkn293@nyu.edu"},"_npmVersion":"6.13.4","description":"Comments component for decentralized applications by 3Box","directories":{},"resolutions":{"babel-core":"7.0.0-bridge.0"},"_nodeVersion":"10.18.0","dependencies":{"3box":"^1.17.0","emoji-js":"^3.4.1","node-sass":"^4.13.0","babel-core":"^7.0.0-bridge.0","multicodec":"^0.5.6","3id-resolver":"0.0.6","profile-hover":"^1.1.1","react-linkify":"^1.0.0-alpha","@babel/runtime":"^7.6.0","react-inlinesvg":"^1.2.0","svg-inline-loader":"^0.8.0","ethereum-blockies-base64":"^1.0.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.1.2","react":"^16.6.0","enzyme":"^3.3.0","eslint":"^5.8.0","webpack":"^4.9.1","jest-cli":"^23.6.0","react-dom":"^16.6.0","@babel/cli":"^7.7.7","babel-jest":"^23.6.0","css-loader":"^1.0.1","prop-types":"^15.6.0","@babel/core":"^7.1.2","sass-loader":"^7.0.1","webpack-cli":"^3.1.2","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","did-resolver":"0.0.7","style-loader":"^0.23.1","@babel/register":"^7.0.0","react-hot-loader":"^4.12.19","@babel/preset-env":"^7.1.0","webpack-dev-server":"^3.1.4","@babel/preset-react":"^7.0.0","eslint-plugin-react":"^7.4.0","react-test-renderer":"^16.0.0","regenerator-runtime":"^0.12.1","clean-webpack-plugin":"^0.1.16","enzyme-adapter-react-16":"^1.1.1","react-addons-test-utils":"^15.5.1","@babel/plugin-proposal-class-properties":"^7.5.5"},"peerDependencies":{"react":">= 16.3.0","react-dom":">= 16.3.0"},"_npmOperationalInternal":{"tmp":"tmp/3box-comments-react_1.0.3-beta.8_1583344526229_0.9429807910905261","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"3box-comments-react","version":"2.0.0","keywords":["comments","3Box","decentralized","ethereum"],"author":{"name":"3box.io"},"license":"MIT","_id":"3box-comments-react@2.0.0","maintainers":[{"name":"oznekenzo","email":"mkn293@nyu.edu"}],"contributors":[{"name":"Kenzo Nakamura","email":"kenzo@nyu.edu"}],"dist":{"shasum":"9ad8ff45a53e82936fd82094418d2a88a1ae874c","tarball":"https://registry.npmjs.org/3box-comments-react/-/3box-comments-react-2.0.0.tgz","fileCount":67,"integrity":"sha512-eE5x9GTM4xVYulj+4KriL5DLr1y2Jt1ltPdahrlDZ12yGNHOjbtZn+UmlFL6HXm+md29vF1hLm607y1ixazt+w==","signatures":[{"sig":"MEUCIFZNkxlzSPfrdDTbBqsCra0DDgW6HfPCx0XDG1YJsQELAiEA8UrKKaNal/rVd/MqSyzGkNfHVSclhR1QdTflcNSCeRQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":529126,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJefMBiCRA9TVsSAnZWagAAlhQP/R0JARw5HuAesTRTJ3Y8\nW+JfjvUVVRIuNtFAfdNeZugi3vjEPsfcKqIOxqeAqSfe1RzvkxT8eh7ok5GW\nqKQVOBgqWnO7fJNEY0uZcdT+5zWuBYzOASgkRQmpRW7ww7WLxnb9aZab3G1B\nnnCzDS9uaptbkiz/wRHU2gs3kh2IBR2RZHcU8sxfU0ajW+fHJ/TLA0xZv6ci\npiOH0GPSFEne2sNPKm9XHcCvsIpc+Iy9UgllS/dqWzwr0QKzLWKn0NGG07Wo\nBmkQGuPsDmIKJJ3CiUuglevbTHeZANBW7y88+sFQWxmour3Qt6sSN26rya0i\nML8KA+y4Wrcp9N4QGFonveOAGtup5FFTG9Glo4B1x9xRTlHGrRODmEwkP6Ic\nRxvhAS2DA5ykvjuTTNum3KMs8YpOMYSoCTh1NqPo48krLpq8YfgO+buwdp16\nFBE/+2uQint94X3JrAaVJE/WQ3DYpekcK3rFXlKxZ/5u0j9j+sW/DP2kP5qE\nII9cXqTpPpnKq92v6cqL51fuCm0f0i6LDWNzcyw2ECHgX4kNeRSKmxtdNKGh\ny3ziEaAbCNS+Y3CceKnXLQVY7/tjwsALP8aWd1gD7cPlT6Mq8jIL1ArSwmMB\n/4uKVQcry6WHaOUVJb8xaVUf6BUB6MkeUSYVvtDP0rQdPd6UvKiupaKLN7EL\noauq\r\n=+/yK\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib/index.js","gitHead":"89fd5b707f4ad3e900aad1c46094493710375d72","scripts":{"lint":"eslint ./src","scss":"node-sass sass -o src/css","test":"npm run lint && npm run coverage","build":"webpack --config webpack.config.babel.js","clean":"rm -rf dist coverage","start":"webpack-dev-server --config examples/webpack.config.live.babel.js; npm run watch","watch":"node-sass --watch scss sass -o src/css","coverage":"jest --coverage","build:es5":"rm -rf ./lib; npm run scss; ./node_modules/.bin/babel src --out-dir lib --source-maps inline --copy-files --ignore=src/__tests__/,src/__mocks__/,src/sass","prepublish":"npm run clean && npm run test && npm run build","build-examples":"webpack --config examples/webpack.config.babel.js --progress"},"_npmUser":{"name":"oznekenzo","email":"mkn293@nyu.edu"},"deprecated":"Deprecated in favor of Ceramic: https://developers.ceramic.network","_npmVersion":"6.13.4","description":"Comments component for decentralized applications by 3Box","directories":{},"resolutions":{"babel-core":"7.0.0-bridge.0"},"_nodeVersion":"10.18.0","dependencies":{"3box":"^1.17.1","emoji-js":"^3.4.1","node-sass":"^4.13.0","babel-core":"^7.0.0-bridge.0","multicodec":"^0.5.6","3id-resolver":"0.0.6","profile-hover":"^1.1.1","react-linkify":"^1.0.0-alpha","@babel/runtime":"^7.6.0","react-inlinesvg":"^1.2.0","svg-inline-loader":"^0.8.0","ethereum-blockies-base64":"^1.0.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","react":"^16.6.0","enzyme":"^3.3.0","eslint":"^5.8.0","webpack":"^4.9.1","jest-cli":"^23.6.0","react-dom":"^16.6.0","@babel/cli":"^7.7.7","babel-jest":"^23.6.0","css-loader":"^1.0.1","prop-types":"^15.6.0","@babel/core":"^7.1.2","sass-loader":"^7.0.1","webpack-cli":"^3.1.2","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","did-resolver":"0.0.7","style-loader":"^0.23.1","@babel/register":"^7.0.0","react-hot-loader":"^4.12.19","@babel/preset-env":"^7.1.0","webpack-dev-server":"^3.1.4","@babel/preset-react":"^7.0.0","eslint-plugin-react":"^7.4.0","react-test-renderer":"^16.0.0","regenerator-runtime":"^0.12.1","clean-webpack-plugin":"^0.1.16","enzyme-adapter-react-16":"^1.1.1","react-addons-test-utils":"^15.5.1","@babel/plugin-proposal-class-properties":"^7.5.5"},"peerDependencies":{"react":">= 16.3.0","react-dom":">= 16.3.0"},"_npmOperationalInternal":{"tmp":"tmp/3box-comments-react_2.0.0_1585234017866_0.6369529239054452","host":"s3://npm-registry-packages"}},"2.0.1":{"name":"3box-comments-react","version":"2.0.1","keywords":["comments","3Box","decentralized","ethereum"],"author":{"name":"3box.io"},"license":"MIT","_id":"3box-comments-react@2.0.1","maintainers":[{"name":"oznekenzo","email":"mkn293@nyu.edu"}],"contributors":[{"name":"Kenzo Nakamura","email":"kenzo@nyu.edu"}],"dist":{"shasum":"ee3bf25d837381900202851a24d2c17e703b34cb","tarball":"https://registry.npmjs.org/3box-comments-react/-/3box-comments-react-2.0.1.tgz","fileCount":67,"integrity":"sha512-D+kHr6XgrR5TflQ26m9rpivu8JXwSUivMDbO4N2AMFg59Z5e/869RsV8qdCDmUwI8/m+VaXpXGW+tVnM+c0XCQ==","signatures":[{"sig":"MEUCIGeR/5bgNVFSkeBj2smUXl35qh41T+UenzoKOg0ozQO/AiEAhvKXEsFaRkAPF/vLvVPwTcVJVf0+5q6wKa2PXSwlPmk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":527132,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJelhFyCRA9TVsSAnZWagAAiLYP/2o1KeGVmRmLjrxf5r7T\nScJU8SlSyCkCvYeVsjufDNtO3DDQi4rk7/9lH01RIO8lhq7CJdaGAoIDKGvY\nldLhwWxZ0hHvpEwvF0PoFur0fZfi1c6ICyZNHUoPrjy4gXBdatG/FjPkPi8n\nEZT8APywvS0n3InSV1yLarHN2umqIuw44QSsPqOLSB6tvVF4B/+N2OexthP2\nLMHwLini4ib6RrFd739HPHKSD3bz9CtYE3tPmAMtu8hoVvbA4Yd0zFstJFGK\nIgrpTJQJ/yKbw+chnGM5jZ+95xVo27I4aBKGLrYHgvOW361O2i9iTrIFcrRB\n2qIqkenGtlD2ZxOEObBd6b0mi/5UDZRtBKykqfx5pxjqtrBnclDGTGhoKoNr\n7XOTwZM8ln5xjX8yYh+EskBVfB8UJJWo0bP+CAMPiFibUXimVbToqyO9JEm+\n9F7bTt4jU3szR7wkoTlbwUufKRC1cQ3MRPSprPzECJ6i5isHlZaZF5A3LONd\nuBXkobkBCC2k358mf9OLzT/JJ9jygHol7bXvdu8/nZUF/1h6wHKIxX31iUBe\nqvaW2U3silLP1rYmLqyT3Fy2W7YBVIJV+oXg132iIlmipnAGEMEN6i4QU3cz\niO4yk/2gQ5TfeUf3mqNfWLlOPvG0/orsMdcI+G+TeP1uSVSFaLou94w6Zu8S\njMCR\r\n=5PID\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib/index.js","gitHead":"beca5a3308f1a993d4bc4b77c29cc725e8bcaeea","scripts":{"lint":"eslint ./src","scss":"node-sass sass -o src/css","test":"npm run lint && npm run coverage","build":"webpack --config webpack.config.babel.js","clean":"rm -rf dist coverage","start":"webpack-dev-server --config examples/webpack.config.live.babel.js; npm run watch","watch":"node-sass --watch scss sass -o src/css","coverage":"jest --coverage","build:es5":"rm -rf ./lib; npm run scss; ./node_modules/.bin/babel src --out-dir lib --source-maps inline --copy-files --ignore=src/__tests__/,src/__mocks__/,src/sass","prepublish":"npm run clean && npm run test && npm run build","build-examples":"webpack --config examples/webpack.config.babel.js --progress"},"_npmUser":{"name":"oznekenzo","email":"mkn293@nyu.edu"},"deprecated":"Deprecated in favor of Ceramic: https://developers.ceramic.network","_npmVersion":"6.13.4","description":"Comments component for decentralized applications by 3Box","directories":{},"resolutions":{"babel-core":"7.0.0-bridge.0"},"_nodeVersion":"10.18.0","dependencies":{"3box":"^1.17.1","emoji-js":"^3.4.1","node-sass":"^4.13.0","babel-core":"^7.0.0-bridge.0","multicodec":"^0.5.6","3id-resolver":"0.0.6","profile-hover":"^1.1.1","react-linkify":"^1.0.0-alpha","@babel/runtime":"^7.6.0","react-inlinesvg":"^1.2.0","svg-inline-loader":"^0.8.0","ethereum-blockies-base64":"^1.0.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","react":"^16.6.0","enzyme":"^3.3.0","eslint":"^5.8.0","webpack":"^4.9.1","jest-cli":"^23.6.0","react-dom":"^16.6.0","@babel/cli":"^7.7.7","babel-jest":"^23.6.0","css-loader":"^1.0.1","prop-types":"^15.6.0","@babel/core":"^7.1.2","sass-loader":"^7.0.1","webpack-cli":"^3.1.2","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","did-resolver":"0.0.7","style-loader":"^0.23.1","@babel/register":"^7.0.0","react-hot-loader":"^4.12.19","@babel/preset-env":"^7.1.0","webpack-dev-server":"^3.1.4","@babel/preset-react":"^7.0.0","eslint-plugin-react":"^7.4.0","react-test-renderer":"^16.0.0","regenerator-runtime":"^0.12.1","clean-webpack-plugin":"^0.1.16","enzyme-adapter-react-16":"^1.1.1","react-addons-test-utils":"^15.5.1","@babel/plugin-proposal-class-properties":"^7.5.5"},"peerDependencies":{"react":">= 16.3.0","react-dom":">= 16.3.0"},"_npmOperationalInternal":{"tmp":"tmp/3box-comments-react_2.0.1_1586893169605_0.7295399607342858","host":"s3://npm-registry-packages"}},"2.0.2":{"name":"3box-comments-react","version":"2.0.2","keywords":["comments","3Box","decentralized","ethereum"],"author":{"name":"3box.io"},"license":"MIT","_id":"3box-comments-react@2.0.2","maintainers":[{"name":"oznekenzo","email":"mkn293@nyu.edu"}],"contributors":[{"name":"Kenzo Nakamura","email":"kenzo@nyu.edu"}],"dist":{"shasum":"f4f67b7732e5f7d261a8b4e7be183931c65896db","tarball":"https://registry.npmjs.org/3box-comments-react/-/3box-comments-react-2.0.2.tgz","fileCount":67,"integrity":"sha512-2fJ8pHRTWAOF2ZbtaEaZLaGEEYdgzsxlNALusrGuQjJk7gK3AFZqc9IHWQ6/+kFwUBqQ260PMPEKOyRYelsW8w==","signatures":[{"sig":"MEUCIQDbMqe9G+NPUtlLrkVVx6TybqW48q+JVBIa+uZJgtr1DAIgfKf4vdQP7gKzMT05vTQ89QyIWJTPZ+wS3Be/DEqLgyo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":527192,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJelhMfCRA9TVsSAnZWagAAGXIP+QBN6LrULhnsw3qbFhQs\nJchgark32Tolcm55FjTLX05NIu0erGSpNP3Dt5Hsc0adR4GG88+e5esuFsmv\nG2zUks9c9KipW15Fw/P4x/A3lHq7jeK3QDlPnGC4Z7zBbJk9gfAt3rkdXwo3\nfnQ3t7Oi/hihjaU716yBUF1oem5MgzKR8+MPe3SxJX5KpJOp+T0GsQZkuWLZ\nYQAoMCZbLXJIbWb0VQcAY7CDmWyWZyw33r45plz7X8St0f2Xj+pc7sVGYbPN\nXPb3COp9VV+reI7Rvq8tFP3pICGRViNz0pzgCcivOxguv/GotOZJV5MSTeQE\nKGPSRoqyPPN96KBjNFtbqBnpsPANY51h0TEgw42tDmU2z+OVzS+LJoVox/R4\nu7Q0Lg4xIwmm78vSHw65UNDRLInvSN31nLStdQB48Iy9T4ejawpM/Zgflodc\nimLKKD7BctXVV68NL4JP3XGuQ4gr9wmb/yLNv9MXUcjJ2VIj0W6c0Ny3mkN1\n+N8JmB/UeFLLNr0217/TfarehYmp0r0nD5QzXIgc+r1i2GMpkdoCiwSono21\n0qa3ekwu/JR+/GvG3KsGWVLkqhu3HSNaeYDuDgm74hMFHKy2KciIbZEQfbOl\noS1C2lBYKO1CPVa6OmJGdR8Q/z67ArgSIZeGqKwW5Xy0x7h1qqBMZCPMq2fI\noDp8\r\n=n9eO\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib/index.js","gitHead":"aff45703f53d2f46dfd52a25a8293c8ffd2e9d44","scripts":{"lint":"eslint ./src","scss":"node-sass sass -o src/css","test":"npm run lint && npm run coverage","build":"webpack --config webpack.config.babel.js","clean":"rm -rf dist coverage","start":"webpack-dev-server --config examples/webpack.config.live.babel.js; npm run watch","watch":"node-sass --watch scss sass -o src/css","coverage":"jest --coverage","build:es5":"rm -rf ./lib; npm run scss; ./node_modules/.bin/babel src --out-dir lib --source-maps inline --copy-files --ignore=src/__tests__/,src/__mocks__/,src/sass","prepublish":"npm run clean && npm run test && npm run build","build-examples":"webpack --config examples/webpack.config.babel.js --progress"},"_npmUser":{"name":"oznekenzo","email":"mkn293@nyu.edu"},"deprecated":"Deprecated in favor of Ceramic: https://developers.ceramic.network","_npmVersion":"6.13.4","description":"Comments component for decentralized applications by 3Box","directories":{},"resolutions":{"babel-core":"7.0.0-bridge.0"},"_nodeVersion":"10.18.0","dependencies":{"3box":"^1.17.1","emoji-js":"^3.4.1","node-sass":"^4.13.0","babel-core":"^7.0.0-bridge.0","multicodec":"^0.5.6","3id-resolver":"0.0.6","profile-hover":"^1.1.1","react-linkify":"^1.0.0-alpha","@babel/runtime":"^7.6.0","react-inlinesvg":"^1.2.0","svg-inline-loader":"^0.8.0","ethereum-blockies-base64":"^1.0.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","react":"^16.6.0","enzyme":"^3.3.0","eslint":"^5.8.0","webpack":"^4.9.1","jest-cli":"^23.6.0","react-dom":"^16.6.0","@babel/cli":"^7.7.7","babel-jest":"^23.6.0","css-loader":"^1.0.1","prop-types":"^15.6.0","@babel/core":"^7.1.2","sass-loader":"^7.0.1","webpack-cli":"^3.1.2","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","did-resolver":"0.0.7","style-loader":"^0.23.1","@babel/register":"^7.0.0","react-hot-loader":"^4.12.19","@babel/preset-env":"^7.1.0","webpack-dev-server":"^3.1.4","@babel/preset-react":"^7.0.0","eslint-plugin-react":"^7.4.0","react-test-renderer":"^16.0.0","regenerator-runtime":"^0.12.1","clean-webpack-plugin":"^0.1.16","enzyme-adapter-react-16":"^1.1.1","react-addons-test-utils":"^15.5.1","@babel/plugin-proposal-class-properties":"^7.5.5"},"peerDependencies":{"react":">= 16.3.0","react-dom":">= 16.3.0"},"_npmOperationalInternal":{"tmp":"tmp/3box-comments-react_2.0.2_1586893599174_0.3907367306884759","host":"s3://npm-registry-packages"}},"2.0.3":{"name":"3box-comments-react","version":"2.0.3","keywords":["comments","3Box","decentralized","ethereum"],"author":{"name":"3box.io"},"license":"MIT","_id":"3box-comments-react@2.0.3","maintainers":[{"name":"oznekenzo","email":"mkn293@nyu.edu"}],"contributors":[{"name":"Kenzo Nakamura","email":"kenzo@nyu.edu"}],"dist":{"shasum":"694044e74b9490dfab3eb807c8eb11746afaef39","tarball":"https://registry.npmjs.org/3box-comments-react/-/3box-comments-react-2.0.3.tgz","fileCount":67,"integrity":"sha512-Fa6m/wsGGLPDqWmNAeHBP5vPvju9qGO2LHETHAXnW61ra5v+sBNoaB11KfC+Zq/iWtvPfkxSRT3c2ke6K8Lbiw==","signatures":[{"sig":"MEUCIHQf5FD1MPnwZ7jFe5rfNewVmw9ohS3QVmOocnuGmq+qAiEA/i51SkbHiMV6qNXjeIONivysywIgnMfv6ZBNtO9Ii4M=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":527527,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeozt3CRA9TVsSAnZWagAANCQP/3RSPmJ5AE5IsoN8f/fG\nfeqOzxGoVxBuvT/UcA3OPIyvQLqD2ci3jUYVe/v8OiDoOM2jenlUX0Dsx9xK\nM4Fu46vLoxxrzVrDkyzce5wa7yjpKx9AdYkHu1j3RmVWtlXgublk1g8+2aXt\ntDdLYh6Fq5T4h41Lwr+aL/r0Jc7ioS3sa4wVW35Fuf+M8/pm6j1crB5PGesZ\nRRY8WyzuwU1n3oWrBuIQiYFkOP8PD/gKIR+n+O/Ohd6XeuaWY5xwBpwQRgDk\nr24zuzJX751NdYwwaYaDLHVm+s6IaHzMXHVNO1WVr1pvygxw8YYEQcrAHG/Q\nsvnLG54fvA7nn1uhYmwy0Sd/ycppS+TDqogFBreD5Syhn/FJ3zS8nSLk1ehi\ni4OxgaalfqvzAifRgpAnoT43A7aM29KZNis7mABVta1Kd5gozfbgGzl8tyLC\n8o/LKbJdcoqAykyH62cf5eiHu+N65BTDYP/J+g+/FUgFpAoFZTfVuPSyf5tf\nOouSQ+6joRNxY2q5wnJWlKItpKArwBgMZodlx5C4+bSYJULIGTLfrLHvsAzT\nB+FV+M1/ylV//P9DPstNn5NPeREfi3WihUNJfkeaYdsogZjjDWfT2yO0TguV\n7gfr6leDkJYLd+0PVbtbqxsWE9yPGOKXp52uPQKFGxVrrtjS4rwRNmsyKP1x\nBoDb\r\n=pZe0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib/index.js","gitHead":"53f06a2a8c2aa897e7e48aed5859e5889642987d","scripts":{"lint":"eslint ./src","scss":"node-sass sass -o src/css","test":"npm run lint && npm run coverage","build":"webpack --config webpack.config.babel.js","clean":"rm -rf dist coverage","start":"webpack-dev-server --config examples/webpack.config.live.babel.js; npm run watch","watch":"node-sass --watch scss sass -o src/css","coverage":"jest --coverage","build:es5":"rm -rf ./lib; npm run scss; ./node_modules/.bin/babel src --out-dir lib --source-maps inline --copy-files --ignore=src/__tests__/,src/__mocks__/,src/sass","prepublish":"npm run clean && npm run test && npm run build","build-examples":"webpack --config examples/webpack.config.babel.js --progress"},"_npmUser":{"name":"oznekenzo","email":"mkn293@nyu.edu"},"deprecated":"Deprecated in favor of Ceramic: https://developers.ceramic.network","_npmVersion":"6.13.4","description":"Comments component for decentralized applications by 3Box","directories":{},"resolutions":{"babel-core":"7.0.0-bridge.0"},"_nodeVersion":"10.18.0","dependencies":{"3box":"^1.17.0","emoji-js":"^3.4.1","node-sass":"^4.13.0","babel-core":"^7.0.0-bridge.0","multicodec":"^0.5.6","3id-resolver":"0.0.6","profile-hover":"^1.1.1","react-linkify":"^1.0.0-alpha","@babel/runtime":"^7.6.0","react-inlinesvg":"^1.2.0","svg-inline-loader":"^0.8.0","ethereum-blockies-base64":"^1.0.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","react":"^16.6.0","enzyme":"^3.3.0","eslint":"^5.8.0","webpack":"^4.9.1","jest-cli":"^23.6.0","react-dom":"^16.6.0","@babel/cli":"^7.7.7","babel-jest":"^23.6.0","css-loader":"^1.0.1","prop-types":"^15.6.0","@babel/core":"^7.1.2","sass-loader":"^7.0.1","webpack-cli":"^3.1.2","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","did-resolver":"0.0.7","style-loader":"^0.23.1","@babel/register":"^7.0.0","react-hot-loader":"^4.12.19","@babel/preset-env":"^7.1.0","webpack-dev-server":"^3.1.4","@babel/preset-react":"^7.0.0","eslint-plugin-react":"^7.4.0","react-test-renderer":"^16.0.0","regenerator-runtime":"^0.12.1","clean-webpack-plugin":"^0.1.16","enzyme-adapter-react-16":"^1.1.1","react-addons-test-utils":"^15.5.1","@babel/plugin-proposal-class-properties":"^7.5.5"},"peerDependencies":{"react":">= 16.3.0","react-dom":">= 16.3.0"},"_npmOperationalInternal":{"tmp":"tmp/3box-comments-react_2.0.3_1587755895030_0.01804299970129919","host":"s3://npm-registry-packages"}},"3.0.1":{"name":"3box-comments-react","version":"3.0.1","keywords":["comments","3Box","decentralized","ethereum"],"author":{"name":"3box.io"},"license":"MIT","_id":"3box-comments-react@3.0.1","maintainers":[{"name":"oznekenzo","email":"mkn293@nyu.edu"}],"contributors":[{"name":"Kenzo Nakamura","email":"kenzo@nyu.edu"}],"dist":{"shasum":"7bf65c63c91e84031b56ce31a25f27bb244ccb93","tarball":"https://registry.npmjs.org/3box-comments-react/-/3box-comments-react-3.0.1.tgz","fileCount":67,"integrity":"sha512-iSiGGxorSP5ObTq9VVIROO7HPoyNSLtboHaUPyRJRzliGO95vqElS4NI0b9qDnleFdQ5bUqtdauyGcUftipgyw==","signatures":[{"sig":"MEQCIGxxMjWg8t5Cd4RKaCirA7W70ikUiiNfauYzfm8eY2G0AiArDzkVF7WNr37qpMjYnzLeiUqMr4DUv5yhqqMJuS6e9w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":532280,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJerHhOCRA9TVsSAnZWagAATvMP/01WrQLoeMgmeH1kx6Ry\nEkaHIUQDoNHU0kD5rCXy+w7gNKTm7dOVk/AlJDSUcY1uUzztVJ6gZHq0tBcb\ne9KDUAArZQzsGPTNWkRVeVqdjkBczobDl2GM/5W/nu41EZQhvFff5qkr7kMg\nY0DMzmxwd2g24hPAfR2CTCvcmA10Xg2DWhdH/KcGezm4FYVKEJREJCfCHIBr\nQ007qZU9uY0mFNBRQP6Pm/KkDX4F5ux3CzRukov4sUPzi/d9tln3E0nF3zRN\nWScFSfo5/kIWPCffEjPaPvXWVzochQ4uM60pYBTMNnO8CvXlFqNwMp8Qfknu\nTaAbTmM2CcPoh+ysIrsVb8sqvbchMZs97XVYd9fa/LflzxhPvdTWJKM5fys0\nG8E3krGEgUnSHstSBdqDlf10ABcv5Q4c3jZN6gTQpStuUMFsC62JHKU7Mcki\nMf7ftyReOahLQ4EljUYW+vTRBwsAzkCz+N8dR9JVKmf5G9eAtzVnFY/QP01x\n0dlXGFgcYblS7/deSw6ly4TuAsdfSRBOTsntx++oC81IJGBGANwJHgVhxTvQ\nHIW8z7Je4bCoMA8zGZs/Ai+1xrBj20FV7nnK3gQoVcL/daFJVg8N8eVUIF7t\nVxBcYgfUIIBMQgTgqwmezz4d1ThYb3nFwqOs2Z5U1SqOW7E/VEw9ykfWncE4\n3+7l\r\n=9pgZ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib/index.js","gitHead":"f9056c507d7726d3de9a9e66d6aa6023a5fed0a1","scripts":{"lint":"eslint ./src","scss":"node-sass sass -o src/css","test":"npm run lint && npm run coverage","build":"webpack --config webpack.config.babel.js","clean":"rm -rf dist coverage","start":"webpack-dev-server --config examples/webpack.config.live.babel.js; npm run watch","watch":"node-sass --watch scss sass -o src/css","coverage":"jest --coverage","build:es5":"rm -rf ./lib; npm run scss; ./node_modules/.bin/babel src --out-dir lib --source-maps inline --copy-files --ignore=src/__tests__/,src/__mocks__/,src/sass","prepublish":"npm run clean && npm run test && npm run build","build-examples":"webpack --config examples/webpack.config.babel.js --progress"},"_npmUser":{"name":"oznekenzo","email":"mkn293@nyu.edu"},"deprecated":"Deprecated in favor of Ceramic: https://developers.ceramic.network","_npmVersion":"6.13.4","description":"Comments component for decentralized applications by 3Box","directories":{},"resolutions":{"babel-core":"7.0.0-bridge.0"},"_nodeVersion":"10.18.0","dependencies":{"3box":"^1.17.1","emoji-js":"^3.4.1","node-sass":"^4.13.0","babel-core":"^7.0.0-bridge.0","multicodec":"^0.5.6","3id-resolver":"0.0.6","profile-hover":"^1.1.1","react-linkify":"^1.0.0-alpha","@babel/runtime":"^7.6.0","react-inlinesvg":"^1.2.0","svg-inline-loader":"^0.8.0","ethereum-blockies-base64":"^1.0.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","react":"^16.6.0","enzyme":"^3.3.0","eslint":"^5.8.0","webpack":"^4.9.1","jest-cli":"^23.6.0","react-dom":"^16.6.0","@babel/cli":"^7.7.7","babel-jest":"^23.6.0","css-loader":"^1.0.1","prop-types":"^15.6.0","@babel/core":"^7.1.2","sass-loader":"^7.0.1","webpack-cli":"^3.1.2","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","did-resolver":"0.0.7","style-loader":"^0.23.1","@babel/register":"^7.0.0","react-hot-loader":"^4.12.19","@babel/preset-env":"^7.1.0","webpack-dev-server":"^3.1.4","@babel/preset-react":"^7.0.0","eslint-plugin-react":"^7.4.0","react-test-renderer":"^16.0.0","regenerator-runtime":"^0.12.1","clean-webpack-plugin":"^0.1.16","enzyme-adapter-react-16":"^1.1.1","react-addons-test-utils":"^15.5.1","@babel/plugin-proposal-class-properties":"^7.5.5"},"peerDependencies":{"react":">= 16.3.0","react-dom":">= 16.3.0"},"_npmOperationalInternal":{"tmp":"tmp/3box-comments-react_3.0.1_1588361294227_0.14230494752233125","host":"s3://npm-registry-packages"}},"3.0.2":{"name":"3box-comments-react","version":"3.0.2","keywords":["comments","3Box","decentralized","ethereum"],"author":{"name":"3box.io"},"license":"MIT","_id":"3box-comments-react@3.0.2","maintainers":[{"name":"oed","email":"oed@3box.io"},{"name":"zachferland","email":"zachferland@gmail.com"}],"contributors":[{"name":"Kenzo Nakamura","email":"kenzo@nyu.edu"}],"dist":{"shasum":"2465f850320cc3bca67d4c6c57ab17207101e6de","tarball":"https://registry.npmjs.org/3box-comments-react/-/3box-comments-react-3.0.2.tgz","fileCount":58,"integrity":"sha512-vYRMEB4Qlt7p9Fe/l5wW8ZRbh9+Xfeju1dh5Ih6FX9myIIJPYuFWlzhRM9Nv2aNzCcBu6Nigeu74KEE7MuSMYg==","signatures":[{"sig":"MEQCIBu6X31MUrOX5GW/WzP5YWCyqLzKD958grkjqSCNL9yeAiA5VVw8G+AEVoIXiOjjDzfI1AZwota3xRvB8nZ3zILp+g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":155484,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe11uVCRA9TVsSAnZWagAA/EoP/iBLkfbX5LIKyekL28pw\ngRg1pGzdg2b+f3YGuUqF09TkgtxFY5jyH0Fg602V9VcNA6jQMA9LZaa2FtJa\nHcNNt06e+80ljaN2KARB/yonD5NHN/qSp1r3ckcwdeG5oQV+D3d1HXLgAFUQ\nnsfMJ5GxU4gVKOVSh3LKuHXt4/5xv2D67WQiKsdaCq3arPaQpqD7DaObeSdw\nKyC/ioABjn7Y6Zt8h6cQeMOcQ17CKkRg7xbvHhjj600u14/c/0dC+eRQgnWw\na4YHarGWJWKxsSiCWsXc8zWpg1CW6Qqz6Ttyu98a8Rz0wiUYKYVkIxafJd0R\n8YGUZzTT1zxZ6vQZECEXDY+myI0xacsArzFgbn0xSmBTb0zimpxKiNYRS57e\nlRrgGPfQPCOuyQXGotZfWKoRnzE6yEF+pjHylsqEBPw6Qcpv0JK8KRJxArzR\n/ByxH51B1zgAi2Ty9irpJnlAAREBpLAVKWMtZMAvSuHClONl5UBkG5hWsCJy\nrsrqeqnG5AiEt/vE+HCwRDFCs/KhVdBU2r+N9A6jjxvBInaTih3dwwiFXu2v\nXi7KvVV6tRQ/lSv8Mopo62nnlVDVg+wKpdxYH0OHmBzp70Rs80P6KcpqNnou\nueswFqZq5ToZHqZpWvZ03g91fTANENkm3rfAmuhnOUV57lmD8R81jsnZ2tWs\no72p\r\n=BPVs\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib/index.js","gitHead":"895dfee23121cbbebb545287efbd230f15f29033","scripts":{"lint":"eslint ./src","scss":"node-sass sass -o src/css","test":"npm run lint && npm run coverage","build":"webpack --config webpack.config.babel.js","clean":"rm -rf dist coverage","start":"webpack-dev-server --config examples/webpack.config.live.babel.js; npm run watch","watch":"node-sass --watch scss sass -o src/css","coverage":"jest --coverage","build:es5":"rm -rf ./lib; npm run scss; ./node_modules/.bin/babel src --out-dir lib --source-maps inline --copy-files --ignore=src/__tests__/,src/__mocks__/,src/sass","prepublish":"npm run clean && npm run test && npm run build","build-examples":"webpack --config examples/webpack.config.babel.js --progress"},"_npmUser":{"name":"oed","email":"oed@3box.io"},"deprecated":"Deprecated in favor of Ceramic: https://developers.ceramic.network","_npmVersion":"6.11.3","description":"Comments component for decentralized applications by 3Box","directories":{},"resolutions":{"babel-core":"7.0.0-bridge.0"},"_nodeVersion":"10.16.3","dependencies":{"3box":"^1.19.0","emoji-js":"^3.4.1","node-sass":"^4.13.0","babel-core":"^7.0.0-bridge.0","multicodec":"^0.5.6","3id-resolver":"^1.0.0","did-resolver":"^1.1.0","profile-hover":"^1.1.1","react-linkify":"^1.0.0-alpha","@babel/runtime":"^7.6.0","react-inlinesvg":"^1.2.0","svg-inline-loader":"^0.8.0","ethereum-blockies-base64":"^1.0.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","react":"^16.6.0","enzyme":"^3.3.0","eslint":"^5.8.0","webpack":"^4.9.1","jest-cli":"^23.6.0","react-dom":"^16.6.0","@babel/cli":"^7.7.7","babel-jest":"^23.6.0","css-loader":"^1.0.1","prop-types":"^15.6.0","@babel/core":"^7.1.2","sass-loader":"^7.0.1","webpack-cli":"^3.1.2","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","style-loader":"^0.23.1","@babel/register":"^7.0.0","react-hot-loader":"^4.12.19","@babel/preset-env":"^7.1.0","webpack-dev-server":"^3.1.4","@babel/preset-react":"^7.0.0","eslint-plugin-react":"^7.4.0","react-test-renderer":"^16.0.0","regenerator-runtime":"^0.12.1","clean-webpack-plugin":"^0.1.16","enzyme-adapter-react-16":"^1.1.1","react-addons-test-utils":"^15.5.1","@babel/plugin-proposal-class-properties":"^7.5.5"},"peerDependencies":{"react":">= 16.3.0","react-dom":">= 16.3.0"},"_npmOperationalInternal":{"tmp":"tmp/3box-comments-react_3.0.2_1591171989237_0.6298935934241723","host":"s3://npm-registry-packages"}},"3.0.3":{"name":"3box-comments-react","version":"3.0.3","keywords":["comments","3Box","decentralized","ethereum"],"author":{"name":"3box.io"},"license":"MIT","_id":"3box-comments-react@3.0.3","maintainers":[{"name":"oed","email":"oed@3box.io"},{"name":"zachferland","email":"zachferland@gmail.com"}],"contributors":[{"name":"Kenzo Nakamura","email":"kenzo@nyu.edu"}],"dist":{"shasum":"174a59f580fe2d2ded42d8fb3b50e76ad3eac835","tarball":"https://registry.npmjs.org/3box-comments-react/-/3box-comments-react-3.0.3.tgz","fileCount":95,"integrity":"sha512-FSgL97FID2ursjdIhpNBi9UMYuVUjHEDP227fZMaA5DXoXh6T1c1LBgdCXWA0EGntoReP0xRhYYAaFPz39by7Q==","signatures":[{"sig":"MEQCIAwENoTUIfoFp22pL3Q6cHbWd8zoDQF3o1TxN6hYSbXxAiBLr9BFslp83DieyW5AEiTtMt7Ns+htmQzpBeBn6LtiTw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":569945,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe16TdCRA9TVsSAnZWagAAqkAP/0WrWUwPDxq29W51TYrY\n2mO9EI97bmGS+B9ulwtAKOBsYtYyboiYjOIdadahesgZOZBNnUYiwq2lHOir\nWWGhigQCCGXG34KvRt0tszi20aIyPhokTTvw5ZwRjbdZ+Gkd4GVpgulMu6OR\nLCtv7W67bxs9O9/ZZd/arIBcswvSl2jUf3Nzw9KxvHktIxzn1eJ5AtDoPJzc\n2HvQgEMBdwYNMzwkAfNmXdO0UeevyzeRk4qAbyWDVDpQXP83Iu6PSowoqfmW\nNlSqGJ6vzrzlRLlSe0flJZdKJRhXwloeLAzH92bI+WBqEfsfULLbK/8YPgwg\ng5EqmNmixzvFhCufoB64qXoH+jE8dvagD3N6vbKN70kHL8nLitbSUKF1sAZj\noGt8pCYeHXwiYGG+EoMvNlqDY5RxnlhFccbfztPU24FZS3+AywrhR2sNILjW\n+gvBpyALLchIx/rgHAlUg5JXaiYZEpLzbdihC2309aivykDEG2MxfyOjhIX7\nxStIvIk4IOptY3j48ITSGMYGp+vLvOt/AAX0bLTNRsr3e4wJanMryRsDOEol\n6T3zh3kZ2Mi92y1DbwJXWSsV+YkmmiDT63aeEsN010N6zQmwrnV/+VDOJnqY\nEpp57lzF7ai5CayhZslYNg5AQvV0GOctu5YIjstk5cBXGRrCS+Q4CKfIwdFC\nqqpM\r\n=1fXP\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","gitHead":"895dfee23121cbbebb545287efbd230f15f29033","scripts":{"lint":"eslint ./src","scss":"node-sass sass -o src/css","test":"npm run lint && npm run coverage","build":"webpack --config webpack.config.babel.js","clean":"rm -rf dist coverage","start":"webpack-dev-server --config examples/webpack.config.live.babel.js; npm run watch","watch":"node-sass --watch scss sass -o src/css","coverage":"jest --coverage","build:es5":"rm -rf ./lib; npm run scss; ./node_modules/.bin/babel src --out-dir lib --source-maps inline --copy-files --ignore=src/__tests__/,src/__mocks__/,src/sass","prepublish":"npm run clean && npm run test && npm run build","build-examples":"webpack --config examples/webpack.config.babel.js --progress"},"_npmUser":{"name":"oed","email":"oed@3box.io"},"deprecated":"Deprecated in favor of Ceramic: https://developers.ceramic.network","_npmVersion":"6.11.3","description":"Comments component for decentralized applications by 3Box","directories":{},"resolutions":{"babel-core":"7.0.0-bridge.0"},"_nodeVersion":"10.16.3","dependencies":{"3box":"^1.19.0","emoji-js":"^3.4.1","node-sass":"^4.13.0","babel-core":"^7.0.0-bridge.0","multicodec":"^0.5.6","3id-resolver":"^1.0.0","did-resolver":"^1.1.0","profile-hover":"^1.1.1","react-linkify":"^1.0.0-alpha","@babel/runtime":"^7.6.0","react-inlinesvg":"^1.2.0","svg-inline-loader":"^0.8.0","ethereum-blockies-base64":"^1.0.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","react":"^16.6.0","enzyme":"^3.3.0","eslint":"^5.8.0","webpack":"^4.9.1","jest-cli":"^23.6.0","react-dom":"^16.6.0","@babel/cli":"^7.7.7","babel-jest":"^23.6.0","css-loader":"^1.0.1","prop-types":"^15.6.0","@babel/core":"^7.1.2","sass-loader":"^7.0.1","webpack-cli":"^3.1.2","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","style-loader":"^0.23.1","@babel/register":"^7.0.0","react-hot-loader":"^4.12.19","@babel/preset-env":"^7.1.0","webpack-dev-server":"^3.1.4","@babel/preset-react":"^7.0.0","eslint-plugin-react":"^7.4.0","react-test-renderer":"^16.0.0","regenerator-runtime":"^0.12.1","clean-webpack-plugin":"^0.1.16","enzyme-adapter-react-16":"^1.1.1","react-addons-test-utils":"^15.5.1","@babel/plugin-proposal-class-properties":"^7.5.5"},"peerDependencies":{"react":">= 16.3.0","react-dom":">= 16.3.0"},"_npmOperationalInternal":{"tmp":"tmp/3box-comments-react_3.0.3_1591190749367_0.45578476382820887","host":"s3://npm-registry-packages"}},"3.0.4":{"name":"3box-comments-react","version":"3.0.4","keywords":["comments","3Box","decentralized","ethereum"],"author":{"name":"3box.io"},"license":"MIT","_id":"3box-comments-react@3.0.4","maintainers":[{"name":"oed","email":"oed@3box.io"},{"name":"zachferland","email":"zachferland@gmail.com"}],"contributors":[{"name":"Kenzo Nakamura","email":"kenzo@nyu.edu"}],"dist":{"shasum":"5cd5344ed7d073e897d34a3c8ced36fad8b4b911","tarball":"https://registry.npmjs.org/3box-comments-react/-/3box-comments-react-3.0.4.tgz","fileCount":67,"integrity":"sha512-SkwImE3wV54s4DpY94p9glWEKISd/fLureCyfPsrgg+eYTdSglHVUXnwlhi/wsrK0lp1qSr9t+xFipLuf9PKPQ==","signatures":[{"sig":"MEYCIQDFy+r4FgBWb+yM1PgfoDOto+6xpMepN7J+tD1okTnwbQIhAKQNi91M4WQqhNUtHoChuM7tZtaLqH+CuniqxV2Gqosj","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":532672,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe3zTUCRA9TVsSAnZWagAAYvUP+wRYV5lzpVEyadhxj0aN\nqYhW1AYPb+A+AhKtZhrlhp8CckV6ip0TC4QMKCCFHyZmHmH1uqfAhOcP8KAa\nsmc45h9vZgynNXgj0FUSSuA052eMmbPwkzNOgyRwSIn2RxFcyhewm1AEAIRX\nycPxF/i6Kn/gN4Ls9SK12dc/VOdC3j7GSGYSq/3oBZQEiTFhcL4/Kd/QI7TS\nyl2Pr//kzfCDmLJEta9BwJpsC/HKkHkTqPM+kxONtxjWzV8gCCR79QcbtEJH\nIXEZsLXDp6YIZKY7Mco17l1lKVz4L6vc2eIV3Lt+2snFVfNWNxe+CvJX8jA+\n2EcjdBN8FtwAtGE/bkC91bqdtZoM88ecLAiuGiYYgbl1c2PScYvtrhbTCh71\nBFi5S/2C8DnGXN8e09A2Rc9MgGH5wBX+u5EBQk8Q0wFNW4OKV2QjmSn/7+ev\nSMHySYtWDBiRBhku2DoScmCZqTrtOogRgKgwHRWUUBXzdUX/YKw9Z2u5dKKC\nagG2R5rFl9oUBghBDynIAIhHtCBV7eyg1dijwZdZsZTwJkc2HwVqGDG3XpQe\nPY5G8GJF08LDcykimkwC5x9+pr9mkisCnihdZRRtdmNX57jv9LaywV8Q+biH\nq6qeWcgR0K9dRgugK0ABXNMcmOwJI8xIw4F+9Dct2cZUkizz4i8Nsqjwvt9X\niPEG\r\n=Owhd\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","gitHead":"6d06e212f003909cfa8d0f0b5c6d3e903fcbcee0","scripts":{"lint":"eslint ./src","scss":"node-sass sass -o src/css","test":"npm run lint && npm run coverage","build":"webpack --config webpack.config.babel.js","clean":"rm -rf dist coverage","start":"webpack-dev-server --config examples/webpack.config.live.babel.js; npm run watch","watch":"node-sass --watch scss sass -o src/css","coverage":"jest --coverage","build:es5":"rm -rf ./lib; npm run scss; ./node_modules/.bin/babel src --out-dir lib --source-maps inline --copy-files --ignore=src/__tests__/,src/__mocks__/,src/sass","prepublish":"npm run clean && npm run test && npm run build && npm run build:es5","build-examples":"webpack --config examples/webpack.config.babel.js --progress"},"_npmUser":{"name":"oed","email":"oed@3box.io"},"deprecated":"Deprecated in favor of Ceramic: https://developers.ceramic.network","_npmVersion":"6.11.3","description":"Comments component for decentralized applications by 3Box","directories":{},"resolutions":{"babel-core":"7.0.0-bridge.0"},"_nodeVersion":"10.16.3","dependencies":{"3box":"^1.19.0","emoji-js":"^3.4.1","node-sass":"^4.13.0","babel-core":"^7.0.0-bridge.0","multicodec":"^0.5.6","3id-resolver":"^1.0.0","did-resolver":"^1.1.0","profile-hover":"^1.1.1","react-linkify":"^1.0.0-alpha","@babel/runtime":"^7.6.0","react-inlinesvg":"^1.2.0","svg-inline-loader":"^0.8.0","ethereum-blockies-base64":"^1.0.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","react":"^16.6.0","enzyme":"^3.3.0","eslint":"^5.8.0","webpack":"^4.9.1","jest-cli":"^23.6.0","react-dom":"^16.6.0","@babel/cli":"^7.7.7","babel-jest":"^23.6.0","css-loader":"^1.0.1","prop-types":"^15.6.0","@babel/core":"^7.1.2","sass-loader":"^7.0.1","webpack-cli":"^3.1.2","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","style-loader":"^0.23.1","@babel/register":"^7.0.0","react-hot-loader":"^4.12.19","@babel/preset-env":"^7.1.0","webpack-dev-server":"^3.1.4","@babel/preset-react":"^7.0.0","eslint-plugin-react":"^7.4.0","react-test-renderer":"^16.0.0","regenerator-runtime":"^0.12.1","clean-webpack-plugin":"^0.1.16","enzyme-adapter-react-16":"^1.1.1","react-addons-test-utils":"^15.5.1","@babel/plugin-proposal-class-properties":"^7.5.5"},"peerDependencies":{"react":">= 16.3.0","react-dom":">= 16.3.0"},"_npmOperationalInternal":{"tmp":"tmp/3box-comments-react_3.0.4_1591686355496_0.5960756045340163","host":"s3://npm-registry-packages"}},"3.0.5":{"name":"3box-comments-react","version":"3.0.5","keywords":["comments","3Box","decentralized","ethereum"],"author":{"name":"3box.io"},"license":"MIT","_id":"3box-comments-react@3.0.5","maintainers":[{"name":"oed","email":"oed@3box.io"},{"name":"zachferland","email":"zachferland@gmail.com"}],"contributors":[{"name":"Kenzo Nakamura","email":"kenzo@nyu.edu"}],"dist":{"shasum":"ee85243ed8db9516558bb7d951b686f9ffac853e","tarball":"https://registry.npmjs.org/3box-comments-react/-/3box-comments-react-3.0.5.tgz","fileCount":67,"integrity":"sha512-ZKJN1Jo/rLfGQ7CJConVJwk87ojxMy0Dsz8yFmQGR/oT0yGK/KWiLcOWn1Fq3yXOrnVK6LLQgr4zFY7HTD+uwQ==","signatures":[{"sig":"MEYCIQDoPkiABcEmyXPZxraRTz0DzOdLygNBN02QTauHxaRtCQIhAOtSzNml02IriPj8veMIvUKk/c5mh2F59dPCWWGEN3AO","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":539939,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe62fcCRA9TVsSAnZWagAACFcP/RwMGjt91Priis0S5l2y\nwMTN87IGX0Rw9bpGXCOo/H0qDaW3qu1J3tdTEcNaJwbmTNwGhHd5UnDdF0c7\nDQ3xQ7yLzk/m2/eMRQ7zsVRrHCpi7/gCITDz5OcWfgMg/PMPIvL3hD1UI6VA\nrrSfwcokXHs2Y8cdsFDOQTlOoozIO6S/Ve5GkR5dWoB2IfKvMQrVM1nlUxkg\nfxh/BEB2udWoc2h9JVxJwWMkk0XOWrl0e+YhMuvrkE2M7Ft+y7yMH4twA3qU\nIcRCxVLTkFd7nGnF/YqICA6koAs3CskXTQl/GOiOr1rSdkuuQ0lkee72nGGV\nzdqJrdI1ynl63kbqNktNGTWajhDuk6XJasOOTKAc3Fl8mw0Vm1GfD2R1VZVa\nHX/IyX5+eh9abvILAmWxpf7aGQeS56RzxJeMYqnXAzqRaTulgsO2pN9xmvbo\nHFUtWf7PmfTALzZCWS2Iq4nDlQaPxS165tcQN0afIJs0muonmmvRmcNLMt8X\nJrOHWt/eXxZ4nQt7Mgqttxlu7R679IOYzoxiHXiK+czbKRegJ23U2vokoIFX\nLMWhnLt0HK/Tk2ckN8bhk6AJN9UmIO1bUy07jci8KoP5sNYW+CYrUphLSQQ5\nAARE32R4dE7sp+86nrWiboTWEU5k5nltSL48TcTkCiUmEKxKp3vmD79b23xA\nCkKr\r\n=aeLI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","gitHead":"a0d5ede1b3cc34a940fcb795b56c98e08f02a518","scripts":{"lint":"eslint ./src","scss":"node-sass sass -o src/css","test":"npm run lint && npm run coverage","build":"webpack --config webpack.config.babel.js","clean":"rm -rf dist coverage","start":"webpack-dev-server --config examples/webpack.config.live.babel.js; npm run watch","watch":"node-sass --watch scss sass -o src/css","coverage":"jest --coverage","build:es5":"rm -rf ./lib; npm run scss; ./node_modules/.bin/babel src --out-dir lib --source-maps inline --copy-files --ignore=src/__tests__/,src/__mocks__/,src/sass","prepublish":"npm run clean && npm run test && npm run build && npm run build:es5","build-examples":"webpack --config examples/webpack.config.babel.js --progress"},"_npmUser":{"name":"oed","email":"oed@3box.io"},"deprecated":"Deprecated in favor of Ceramic: https://developers.ceramic.network","_npmVersion":"6.14.4","description":"Comments component for decentralized applications by 3Box","directories":{},"resolutions":{"babel-core":"7.0.0-bridge.0"},"_nodeVersion":"14.4.0","dependencies":{"3box":"^1.20.0","emoji-js":"^3.4.1","node-sass":"^4.13.0","babel-core":"^7.0.0-bridge.0","multicodec":"^0.5.6","3id-resolver":"^1.0.0","did-resolver":"^1.1.0","profile-hover":"^1.1.1","react-linkify":"^1.0.0-alpha","@babel/runtime":"^7.6.0","react-inlinesvg":"^1.2.0","svg-inline-loader":"^0.8.0","ethereum-blockies-base64":"^1.0.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","react":"^16.6.0","enzyme":"^3.3.0","eslint":"^5.8.0","webpack":"^4.9.1","jest-cli":"^23.6.0","react-dom":"^16.6.0","@babel/cli":"^7.7.7","babel-jest":"^23.6.0","css-loader":"^1.0.1","prop-types":"^15.6.0","@babel/core":"^7.1.2","sass-loader":"^7.0.1","webpack-cli":"^3.1.2","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","style-loader":"^0.23.1","@babel/register":"^7.0.0","react-hot-loader":"^4.12.19","@babel/preset-env":"^7.1.0","webpack-dev-server":"^3.1.4","@babel/preset-react":"^7.0.0","eslint-plugin-react":"^7.4.0","react-test-renderer":"^16.0.0","regenerator-runtime":"^0.12.1","clean-webpack-plugin":"^0.1.16","enzyme-adapter-react-16":"^1.1.1","react-addons-test-utils":"^15.5.1","@babel/plugin-proposal-class-properties":"^7.5.5"},"peerDependencies":{"react":">= 16.3.0","react-dom":">= 16.3.0"},"_npmOperationalInternal":{"tmp":"tmp/3box-comments-react_3.0.5_1592485851547_0.01326094992618354","host":"s3://npm-registry-packages"}}},"time":{"created":"2019-09-17T21:41:47.997Z","modified":"2024-10-23T15:43:09.269Z","0.0.1-beta.1":"2019-09-17T21:41:48.233Z","0.0.1-beta.2":"2019-09-18T21:29:49.537Z","0.0.1-beta.3":"2019-09-18T21:58:07.059Z","0.0.1-beta.4":"2019-09-23T20:20:09.375Z","0.0.1-beta.5":"2019-09-23T20:47:27.359Z","0.0.1-beta.6":"2019-09-23T21:14:25.677Z","0.0.1-beta.7":"2019-09-23T21:27:25.008Z","0.0.1-beta.8":"2019-09-24T18:48:56.327Z","0.0.1-beta.9":"2019-09-24T20:57:42.911Z","0.0.1-beta.10":"2019-09-24T21:25:03.545Z","0.0.1-beta.11":"2019-09-24T22:31:01.845Z","0.0.1-beta.13":"2019-10-23T20:09:55.548Z","0.0.1-beta.14":"2019-10-24T18:52:36.901Z","0.0.1-beta.15":"2019-11-11T19:07:21.311Z","0.0.1-beta.16":"2019-11-11T20:48:34.174Z","0.0.1-beta.17":"2019-11-11T21:07:58.292Z","0.0.1-beta.18":"2019-11-11T21:17:36.700Z","0.0.1-beta.19":"2019-11-11T21:29:43.269Z","0.0.1-beta.20":"2019-11-12T16:15:26.488Z","0.0.1-beta.21":"2020-01-06T20:11:43.161Z","0.0.2":"2020-01-06T20:21:23.936Z","0.0.3":"2020-01-09T22:17:41.401Z","0.0.4":"2020-01-10T14:50:35.377Z","0.0.5":"2020-01-10T15:02:50.402Z","0.0.5-beta.1":"2020-01-10T16:30:44.917Z","0.0.5-beta.2":"2020-01-10T16:58:54.372Z","0.0.5-beta.3":"2020-01-10T18:23:13.737Z","0.0.6":"2020-01-10T18:39:28.433Z","0.0.7":"2020-01-10T18:49:59.824Z","0.0.8":"2020-01-13T18:33:35.115Z","0.0.9":"2020-01-13T20:35:49.202Z","1.0.0":"2020-01-29T21:21:36.797Z","1.0.1":"2020-02-05T20:37:09.510Z","1.0.2":"2020-02-14T21:14:21.173Z","1.0.3-beta.1":"2020-02-19T23:01:12.907Z","1.0.3-beta.2":"2020-02-26T15:22:57.890Z","1.0.3-beta.3":"2020-03-03T15:56:10.039Z","1.0.3-beta.4":"2020-03-03T17:21:41.731Z","1.0.3-beta.5":"2020-03-03T22:19:07.313Z","1.0.3-beta.6":"2020-03-03T22:22:04.561Z","1.0.3-beta.7":"2020-03-04T16:27:23.056Z","1.0.3-beta.8":"2020-03-04T17:55:26.363Z","2.0.0":"2020-03-26T14:46:58.017Z","2.0.1":"2020-04-14T19:39:29.760Z","2.0.2":"2020-04-14T19:46:39.319Z","2.0.3":"2020-04-24T19:18:15.196Z","3.0.1":"2020-05-01T19:28:14.399Z","3.0.2":"2020-06-03T08:13:09.442Z","3.0.3":"2020-06-03T13:25:49.528Z","3.0.4":"2020-06-09T07:05:55.678Z","3.0.5":"2020-06-18T13:10:51.695Z"},"author":{"name":"3box.io"},"license":"MIT","keywords":["comments","3Box","decentralized","ethereum"],"description":"Comments component for decentralized applications by 3Box","contributors":[{"name":"Kenzo Nakamura","email":"kenzo@nyu.edu"}],"maintainers":[{"email":"oed@3box.io","name":"oed"}],"readme":"[![Discord](https://img.shields.io/discord/484729862368526356.svg?style=for-the-badge)](https://discordapp.com/invite/Z3f3Cxy)\r\n[![npm](https://img.shields.io/npm/v/3box-comments-react.svg?style=for-the-badge)](https://www.npmjs.com/package/3box-comments-react)\r\n[![Twitter Follow](https://img.shields.io/twitter/follow/3boxdb.svg?style=for-the-badge&label=Twitter)](https://twitter.com/3boxdb)\r\n\r\n# 3Box Comments Plugin 💬\r\n\r\n`3box-comments-react` node package is a drop-in react component that provides Web3 developers with a readymade commenting system for their Ethereum application. Easily add rich, decentralized social discourse to your dApp with one line of code. The 3Box Comments plugin is built using 3Box infrastructure, and handles all logic for creating a comments thread. *Read the docs on [docs.3box.io](https://docs.3box.io/build/plugins/comments)*.\r\n\r\n### New Social Features:\r\n**Replies** - reply to comments inline (limited to two levels of replies), deleted comments with nested replies maintain the nested replies</br>\r\n**Emoji reactions** - react to each comment with emojis from an inline picker</br>\r\n**Votes** - Upvote or downvote on any comment</br>\r\n*Note: This is a breaking change - this will break any previously used comments, to create a new one, simply update the threadName in the same space*\r\n</br>\r\n\r\n\r\n### Try the demo [here](https://3box.github.io/3box-comments-react/examples/dist/)\r\n![Example Screenshot](comments-example-screenshot.png)\r\n</br>\r\n\r\n## How it Works\r\n#### Architecture\r\nThe Comments plugin is built using a standard implementation of [Open Threads](https://docs.3box.io/build/web-apps/messaging/choose#open-threads) which are defined in the [3Box Threads API](https://docs.3box.io/api/messaging) and made available via the [`3Box.js SDK`](https://github.com/3box/3box-js). The Comments plugin also includes UI for inputting and displaying user comments, logic for fetching user profiles, and pagination. The component is configurable to various authentication patterns, and can handle both Web3/3Box logged-in & logged-out states. \r\n\r\n#### Authentication\r\nWithout authenticating, users can read messages in the comment thread. However authentication is required to perform more interactive functionality. After the user is authenticated, a user can post a comment, delete their comment, and receive comments from other users in *real-time*.  Note: if you are not logged in and the component has not been passed your ethereum address, the component cannot know which comment belongs to you in order to delete.  In this case, click the login button just below the input UI.\r\n</br>\r\n</br>\r\n\r\n## Getting Started\r\n1. Install the component\r\n2. Choose your authentication pattern\r\n3. Configure application settings\r\n4. Usage\r\n\r\n### 1. Install the component\r\n\r\n```shell\r\nnpm i -S 3box-comments-react\r\n```\r\n\r\n### 2. Choose your authentication pattern\r\nDepending on *when and how* your dApp handles authentication for web3 and 3Box, you will need to provide a different set of props to the component.  Regardless of the context, the component must be passed either an ethereum provider or the user's box object before it mounts. Three acceptable authentication patterns and their respective props are discussed below in A-C:\r\n\r\n**A) Dapp handles web3 and 3Box logins, and they run *before* component is mounted. (recommended)**\r\n\r\nDapp integrates with `3Box.js SDK` and the `3box-comments-react` component. In this case, the `box` instance returned from `Box.openBox(ethAddr)` via 3Box.js should be passed to the `box` prop in the comments component. The user's current Ethereum address should be passed to the `currentUserAddr` prop to determine `deletePost` access on each comment.\r\n\r\n**B) Dapp handles web3 and 3Box logins, but they haven't run before component is mounted. (recommended)**\r\n\r\nDapp integrates with `3Box.js SDK` and the `3box-comments-react` component. In this case, the login logic implemented in the dapp should be passed to the Comments component as the `loginFunction` prop, which is run when a user attempts to post a comment. The user's current Ethereum address should be passed to the `currentUserAddr` prop to determine `deletePost` access on each comment.\r\n\r\n**C) Dapp has no web3 and 3Box login logic.**\r\n\r\nDapp only integrates with the `3box-comments-react` component, but not `3Box.js SDK`. All web3 and 3Box login logic will be handled within the Comments component, though it's required for the `ethereum` object from your dapp's preferred web3 provider be passed to the `ethereum` prop in the component.\r\n\r\n#### Best practice\r\n\r\nFor the best UX, we recommend implementing one of the following authentication patterns: A; B; or B with A.\r\n\r\nEach of these patterns allow your application to make the `box` object available in global application state where it can be used by all instances of the Comments component regardless of which page the user is on. This global pattern removes the need for users to authenticate on each individual page they wish to comment on, which would be the case in C.\r\n\r\n### 3. Configure application settings\r\n\r\n**First, choose a name for your application's 3Box space.**\r\n\r\nAlthough you are free to choose whichever name you'd like for your app's space, we recommend using the name of your app. If your application already has a 3Box space, you are welcome to use that same one for comments.\r\n\r\n**Next, choose a naming convention for your application's threads.**\r\n\r\nComment threads need a name, and we recommend that your application creates `threadNames` according to a simple rule. We generally like using a natural identifier, such as community name, page URL, token ID, or other similar means.\r\n\r\n**Then, create an admin 3Box account for your application.**\r\n\r\nEach thread is required to have an admin (`adminEthAddr`), which possesses the rights to moderate the thread. We recommend you create an admin Ethereum account for your application so you can perform these actions. While technically you can use any Ethereum address as an admin account, we recommend [creating a 3Box profile](https://3box.io/hub) for that address so if you need to take action in the thread, others will know and trust you as the admin.\r\n\r\n**Lastly, initialize your application's space.**\r\n\r\nBefore threads can be deployed in your dapp, your application's admin account (`adminEthAddr` created in the previous step) must first open the space (`spaceName`) that will be used to store your application's threads. This step *must* be completed before your comment threads can be used by others. This process would likely be done outside the context of your dapp, probably in a test environment.\r\n\r\nSimply open a space by running (via `3Box.js SDK`): \r\n```\r\nconst box = await Box.openBox(adminEthAddr, ethereum);\r\nconst space = await box.openSpace(spaceName, spaceOpts);\r\n```\r\nSign the web3 prompts to complete the space initialization process.\r\n</br>\r\n</br>\r\n\r\n\r\n### 4. Usage\r\n\r\n#### Example\r\n\r\n```jsx\r\nimport ThreeBoxComments from '3box-comments-react';\r\n\r\nconst MyComponent = ({ handleLogin, box, ethereum, myAddress, currentUser3BoxProfile, adminEthAddr }) => (\r\n    <ThreeBoxComments \r\n        // required\r\n        spaceName=\"mySpaceName\"\r\n        threadName=\"myThreadName\"\r\n        adminEthAddr={adminEthAddr}\r\n        ethereum={ethereum}\r\n\r\n        // Required props for context A) & B)\r\n        box={box}\r\n        currentUserAddr={myAddress}\r\n\r\n        // Required prop for context B)\r\n        loginFunction={handleLogin}\r\n\r\n        // optional\r\n        members={false}\r\n        showCommentCount={10}\r\n        threadOpts={{}}\r\n        useHovers={false}\r\n        currentUser3BoxProfile={currentUser3BoxProfile}\r\n        userProfileURL={address => `https://mywebsite.com/user/${address}`}\r\n    />\r\n);\r\n```\r\n\r\n\r\n#### Prop Types\r\n\r\n| Property | Type          | Default  | Required Case          | Description |\r\n| :-------------------------------- | :-------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------ | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\r\n| `spaceName`    | String        |    |  Always   | Likely your dApp name and / or comment category.  A single `spaceName` with different `threadName`s is common practice when building a dApp with multiple Comment threads. |\r\n| `threadName`    | String       |   | Always    | A name specific to this Comments thread. |\r\n| `adminEthAddr`    | String (Ethereum Address)       |   | Always    | The Ethereum address you wish to give admin rights to for the Comments thread.  This user will be able to delete all comments and accept members in a members-only thread. **A thread with a new admin address, despite identical `spaceName` and `threadName`, will create an entirely new thread.**|\r\n| `box`    | Object         |   | A (and likely B)    | The `box` instance returned from running `await Box.openBox(address, web3)` somewhere in your dApp.|\r\n| `currentUserAddr`    | String (Ethereum Address)          |    | A & B, optional for C | The current user's Ethereum address. Passing this will help determine whether a user has delete access on each comment.  This prop will also let the component fetch that user's 3Box profile on component mount and render that data (profile picture) in the Comment input UI. |\r\n| `loginFunction`    | Function       |    | B    | A function from your dApp that handles web3 and 3Box login at the global dApp state. This callback will run when a user attempts to save a comment but a `box` instance doesn't yet exist. Running this function should result in a box instance (from `const box = Box.openBox(address, web3)`) being passed as the `box` prop to this component.  |\r\n| `ethereum`    | Object        |  window.ethereum  | Always    | The `ethereum` object from whichever web3 provider your dApp uses.  The `enable` method on this object will be used to get the current user's Ethereum address and that address will be used to `openBox` within the current Component context.|\r\n| `members`    | Boolean       |  False   | Optional    | A boolean - `true` - to make the thread a members-only thread. Passing `false` will allow all users to post to the thread.  **Changing this setting after creating it will result in an entirely different thread** (see [Docs.3box.io](https://Docs.3box.io) for more info). |\r\n| `showCommentCount`    | Integer       |  30   | Optional    | The number of comments rendered in the UI by default on component mount and the number of additional comments revealed after clicking `Load more` in component. |\r\n| `spaceOpts`    | Object       | | Optional    | Optional parameters for threads (see [Docs.3box.io](https://Docs.3box.io) for more info)|\r\n| `threadOpts`    | Object       | | Optional    | Optional parameters for threads (see [Docs.3box.io](https://Docs.3box.io) for more info)|\r\n| `useHovers`    | Boolean       |  False  | Optional    | Pass true to enable a 3Box profile pop up when hovering over a commenter's name |\r\n| `currentUser3BoxProfile`    | Object       |   | Optional    | If the current user has already had their 3Box data fetched at the global dApp state, pass the object returned from `Box.getProfile(profileAddress)` to avoid an extra request.  This data will be rendered in the Comment input interface.|\r\n| `userProfileURL`    | Function       |  Defaults to returning user's 3Box profile URL  | Optional    | A function that returns a correctly formatted URL of a user's profile on the current platform.  The function will be passed an Ethereum address within the component, if needed.  A user will be redirected to the URL returned from this function when clicking on the name or Ethereum address associated with the comment in the thread.|\r\n\r\n## Maintainers\r\n[@oed](https://github.com/oed)\r\n\r\n## License\r\n\r\nMIT\r\n","readmeFilename":"README.md"}