{"_id":"@burning-duck/rehace","_rev":"4-c0ac46d53b00ae6efda5e83b4164d107","name":"@burning-duck/rehace","description":"ReHaCe - React Habitat Cerebral","dist-tags":{"latest":"0.4.0","next":"0.3.1-alpha.1"},"versions":{"0.3.0":{"name":"@burning-duck/rehace","version":"0.3.0","description":"ReHaCe - React Habitat Cerebral","main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/burning-duck/rehace.git"},"bugs":{"url":"https://github.com/burning-duck/rehace/issues"},"homepage":"https://github.com/burning-duck/rehace","author":{"name":"burning-duck"},"contributors":[{"name":"Peter Höffling"},{"name":"Jan Rösler"}],"license":"MIT","keywords":["cerebral","react","react-habitat"],"scripts":{"prepublishOnly":"npm run build:lib","build:lib":"rimraf dist && cross-env BABEL_ENV=production babel src/ --out-dir=lib/ -s","build:docs":"rimraf docs && cross-env NODE_ENV=production webpack --optimize-minimize  --config=demo/webpack.config.js","start:docs":"rimraf docs && cross-env NODE_ENV=development webpack-dev-server --open --progress --config=demo/webpack.config.js"},"devDependencies":{"@cerebral/react":"^3.0.1","babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-loader":"^7.1.2","babel-preset-env":"^1.6.1","babel-preset-react":"^6.24.1","cerebral":"4.0.1","cross-env":"^5.1.3","eslint":"^4.15.0","eslint-config-standard":"^11.0.0-beta.0","eslint-config-standard-react":"^5.0.0","eslint-plugin-import":"^2.8.0","eslint-plugin-node":"^5.2.1","eslint-plugin-promise":"^3.6.0","eslint-plugin-react":"^7.5.1","eslint-plugin-standard":"^3.0.1","html-webpack-plugin":"^2.30.1","react":"^16.2.0","react-dom":"^16.2.0","rimraf":"^2.6.2","webpack":"^3.10.0","webpack-dev-server":"^2.10.1"},"dependencies":{"react-habitat":"^0.6.1"},"peerDependencies":{"@cerebral/react":"^3.0.1","cerebral":"^4.0.1","react":"^16.2.0","react-dom":"^16.2.0"},"gitHead":"7eb096983b9c48fad2764a688ff6d583f4a72e6c","_id":"@burning-duck/rehace@0.3.0","_npmVersion":"5.6.0","_nodeVersion":"6.9.1","_npmUser":{"name":"burning-duck","email":"burning.duck.org@gmail.com"},"dist":{"integrity":"sha512-MOQO5RqXsatjMZbKyZS+/ncOjHDfMS/5QSOrEpecUmsJHbaVOuU1HzYda9DUiDLBnp14cz+WRIAy1sg6aeifyg==","shasum":"290ae700e13277f0ce0090f010a8d57d81412569","tarball":"https://registry.npmjs.org/@burning-duck/rehace/-/rehace-0.3.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIChiuJ7bRL+Sudu7vlZeqW7/58NFTd2pRZ89l64q/hjQAiEAuINuAci1WJrDVrSiM9DV/2Mnbovo2CsPbv9QefRTrL0="}]},"maintainers":[{"name":"burning-duck","email":"burning.duck.org@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rehace-0.3.0.tgz_1515822527742_0.8387442016974092"}},"0.3.0-alpha.1":{"name":"@burning-duck/rehace","version":"0.3.0-alpha.1","description":"ReHaCe - React Habitat Cerebral","main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/burning-duck/rehace.git"},"bugs":{"url":"https://github.com/burning-duck/rehace/issues"},"homepage":"https://github.com/burning-duck/rehace","author":{"name":"burning-duck"},"contributors":[{"name":"Peter Höffling"},{"name":"Jan Rösler"}],"license":"MIT","keywords":["cerebral","react","react-habitat"],"scripts":{"prepublishOnly":"npm run build:lib","build:lib":"rimraf dist && cross-env BABEL_ENV=production babel src/ --out-dir=lib/ -s","build:docs":"rimraf docs && cross-env NODE_ENV=production webpack --optimize-minimize  --config=demo/webpack.config.js","start:docs":"rimraf docs && cross-env NODE_ENV=development webpack-dev-server --open --progress --config=demo/webpack.config.js"},"devDependencies":{"@cerebral/react":"^3.0.1","babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-loader":"^7.1.2","babel-preset-env":"^1.6.1","babel-preset-react":"^6.24.1","cerebral":"4.0.1","cross-env":"^5.1.3","eslint":"^4.15.0","eslint-config-standard":"^11.0.0-beta.0","eslint-config-standard-react":"^5.0.0","eslint-plugin-import":"^2.8.0","eslint-plugin-node":"^5.2.1","eslint-plugin-promise":"^3.6.0","eslint-plugin-react":"^7.5.1","eslint-plugin-standard":"^3.0.1","html-webpack-plugin":"^2.30.1","react":"^16.2.0","react-dom":"^16.2.0","rimraf":"^2.6.2","webpack":"^3.10.0","webpack-dev-server":"^2.10.1"},"dependencies":{"react-habitat":"^0.6.1"},"peerDependencies":{"@cerebral/react":">=3.0.0","cerebral":">=4.0.0","react":">=15.0.0 <17.0.0","react-dom":">=15.0.0 <17.0.0"},"gitHead":"d4606ca620310e3c71cd7b4688483180d77f05d5","_id":"@burning-duck/rehace@0.3.0-alpha.1","_npmVersion":"5.6.0","_nodeVersion":"6.9.1","_npmUser":{"name":"burning-duck","email":"burning.duck.org@gmail.com"},"dist":{"integrity":"sha512-8FCy8gRibHMmn7XYIucbyCIsxtzQ6GJnfgXWAkEJ5nufv4vP6ah5mW3J7yhZWYvbhYEA2hrot51gDPTSsSK2+Q==","shasum":"58b3545ee17920f0b2042b7be34b298a7a1794b4","tarball":"https://registry.npmjs.org/@burning-duck/rehace/-/rehace-0.3.0-alpha.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCjTssWRDsHHJLcCVBV83nobqLz74haZOoy64/iENcJ6gIhAJkZSrN73nmbVUriWuRk6Xyv3t52/Ojn0cCqa+01YZup"}]},"maintainers":[{"name":"burning-duck","email":"burning.duck.org@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rehace-0.3.0-alpha.1.tgz_1515824466530_0.027094529941678047"}},"0.3.1-alpha.1":{"name":"@burning-duck/rehace","version":"0.3.1-alpha.1","description":"ReHaCe - React Habitat Cerebral","main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/burning-duck/rehace.git"},"bugs":{"url":"https://github.com/burning-duck/rehace/issues"},"homepage":"https://github.com/burning-duck/rehace","author":{"name":"burning-duck"},"contributors":[{"name":"Peter Höffling"},{"name":"Jan Rösler"}],"license":"MIT","keywords":["cerebral","react","react-habitat"],"scripts":{"prepublishOnly":"npm run build:lib","build:lib":"rimraf dist && cross-env BABEL_ENV=production babel src/ --out-dir=lib/ -s","build:docs":"rimraf docs && cross-env NODE_ENV=production webpack --optimize-minimize  --config=demo/webpack.config.js","start:docs":"rimraf docs && cross-env NODE_ENV=development webpack-dev-server --open --progress --config=demo/webpack.config.js"},"devDependencies":{"@cerebral/react":"^3.0.1","babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-loader":"^7.1.2","babel-preset-env":"^1.6.1","babel-preset-react":"^6.24.1","cerebral":"4.0.1","cross-env":"^5.1.3","eslint":"^4.15.0","eslint-config-standard":"^11.0.0-beta.0","eslint-config-standard-react":"^5.0.0","eslint-plugin-import":"^2.8.0","eslint-plugin-node":"^5.2.1","eslint-plugin-promise":"^3.6.0","eslint-plugin-react":"^7.5.1","eslint-plugin-standard":"^3.0.1","html-webpack-plugin":"^2.30.1","react":"^16.2.0","react-dom":"^16.2.0","rimraf":"^2.6.2","webpack":"^3.10.0","webpack-dev-server":"^2.10.1"},"dependencies":{"react-habitat":"^0.6.1"},"peerDependencies":{"@cerebral/react":">=3.0.0","cerebral":">=4.0.0","react":">=15.0.0 <17.0.0","react-dom":">=15.0.0 <17.0.0"},"gitHead":"d4606ca620310e3c71cd7b4688483180d77f05d5","_id":"@burning-duck/rehace@0.3.1-alpha.1","_npmVersion":"5.6.0","_nodeVersion":"6.9.1","_npmUser":{"name":"burning-duck","email":"burning.duck.org@gmail.com"},"dist":{"integrity":"sha512-bgkAYgd8L+jwVFVP5OZeiR/XLgtuR8ZJrnkjRsZLFA1wyYMDxrvJkEhfXOFvrMZ40k4SEpVX4kVQzPTTGdERlA==","shasum":"95581a68838043b1bc6c484d33bd6cf1b3b53b28","tarball":"https://registry.npmjs.org/@burning-duck/rehace/-/rehace-0.3.1-alpha.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDz4i8n0WQBLXqvUw3SPJlpv9jSu2YEGBF9l3kT2KvHQAiAPRQxXMLHJ3NGwBgSGr+rYw7P8GAw/TJUfYzz7Yg6iEA=="}]},"maintainers":[{"name":"burning-duck","email":"burning.duck.org@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rehace-0.3.1-alpha.1.tgz_1515824520046_0.7789538486395031"}},"0.4.0":{"name":"@burning-duck/rehace","version":"0.4.0","description":"ReHaCe - React Habitat Cerebral","main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/burning-duck/rehace.git"},"bugs":{"url":"https://github.com/burning-duck/rehace/issues"},"homepage":"https://github.com/burning-duck/rehace","author":{"name":"burning-duck"},"contributors":[{"name":"Peter Höffling"},{"name":"Jan Rösler"}],"license":"MIT","keywords":["cerebral","react","react-habitat"],"scripts":{"prepublishOnly":"npm run build:lib","build:lib":"rimraf dist && cross-env BABEL_ENV=production babel src/ --out-dir=lib/ -s","build:docs":"rimraf docs && cross-env NODE_ENV=production webpack --optimize-minimize  --config=demo/webpack.config.js","start:docs":"rimraf docs && cross-env NODE_ENV=development webpack-dev-server --open --progress --config=demo/webpack.config.js"},"devDependencies":{"@cerebral/react":"^3.0.1","babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-loader":"^7.1.2","babel-preset-env":"^1.6.1","babel-preset-react":"^6.24.1","cerebral":"4.0.1","cross-env":"^5.1.3","eslint":"^4.15.0","eslint-config-standard":"^11.0.0-beta.0","eslint-config-standard-react":"^5.0.0","eslint-plugin-import":"^2.8.0","eslint-plugin-node":"^5.2.1","eslint-plugin-promise":"^3.6.0","eslint-plugin-react":"^7.5.1","eslint-plugin-standard":"^3.0.1","html-webpack-plugin":"^2.30.1","react":"^16.2.0","react-dom":"^16.2.0","rimraf":"^2.6.2","webpack":"^3.10.0","webpack-dev-server":"^2.10.1"},"dependencies":{"react-habitat":"^0.6.1"},"peerDependencies":{"@cerebral/react":">=3.0.0","cerebral":">=4.0.0","react":">=15.0.0 <17.0.0","react-dom":">=15.0.0 <17.0.0"},"gitHead":"e9bd3baeb7fa8d8917b0112fe4903088bcecff7c","_id":"@burning-duck/rehace@0.4.0","_npmVersion":"5.6.0","_nodeVersion":"6.9.1","_npmUser":{"name":"burning-duck","email":"burning.duck.org@gmail.com"},"dist":{"integrity":"sha512-PKKYUGowvvg38NNwl28GXT4BrFEhlZyPXXZxyKN1WOHEhNCTOohPxdAtoeyx1UdBC+maYJKk3MKE3TexChj2jQ==","shasum":"e5d38b9fde4655d021169bdcc13dab95a61c5f37","tarball":"https://registry.npmjs.org/@burning-duck/rehace/-/rehace-0.4.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDN7k7uJvtVuJ7xhGQZx0K7Ngm+KGTJyKTtXfRkVHvU/AIgE9t1HxCWQf6McM0n/7IdyZl0hJRHtyy0M7qFKEJLc2Q="}]},"maintainers":[{"name":"burning-duck","email":"burning.duck.org@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rehace-0.4.0.tgz_1515826842524_0.14892042172141373"}}},"readme":"# rehace\r\n\r\nReact-Habitat-Cerebral: Components for HTML\r\n\r\nConnects React-Habitat components to a single Cerebral controller.\r\n\r\n## Install\r\n\r\n```\r\nyarn add @burning-duck/rehace\r\n```\r\n\r\n## Basic Usage\r\n\r\nYou can find a simple demo using the [Counter example](http://cerebraljs.com/docs/get_started/counter.html) from the cerebral sitein the [/demo](/demo) folder of this repo.\r\nSee the working example at [https://burning-duck.github.io/rehace/](https://burning-duck.github.io/rehace/).\r\n\r\n\r\nThe main difference is, that you don't render your root Components into the page.\r\nJust register them in an React-Habitat container for later use.\r\n\r\nReHaCe wraps each registered component in an Cerebral container using controller instance you passed in.\r\nThis allows each component to connect to the same state.\r\n\r\nindex.js\r\n```js\r\nimport { Rehace } from '@burning-duck/rehace'\r\n\r\n// This is the Cerebral controller\r\nimport controller from './controller'\r\n\r\n// Components to register\r\nimport Counter from './components/Counter'\r\nimport IncreaseButton from './components/IncreaseButton'\r\nimport DecreaseButton from './components/DecreaseButton'\r\n\r\nexport const app =  Rehace(Module{\r\n  controller: controller,\r\n  components: {\r\n    'Counter': Counter,\r\n    'IncreaseButton': IncreaseButton,\r\n    'DecreaseButton': DecreaseButton\r\n  }\r\n})\r\n```\r\n\r\nIn your HTML file you can use React-Habitat syntax to use the components.\r\n\r\nindex.html\r\n```html\r\n<p>\r\n    The current count is <strong><span data-component=\"Counter\"></span></strong>.<br/>\r\n    You can increase the counter: <span data-component=\"IncreaseButton\"></span>.<br/>\r\n    You can descrease the counter: <span data-component=\"DecreaseButton\"></span>.<br/>\r\n</p>\r\n```\r\n\r\n## Read more\r\n\r\n- [Cerebral](http://cerebraljs.com/)\r\n- [React-Habitat](https://github.com/DeloitteDigitalAPAC/react-habitat/)\r\n","maintainers":[{"name":"burning-duck","email":"burning.duck.org@gmail.com"}],"time":{"modified":"2022-04-04T21:07:41.943Z","created":"2018-01-13T05:48:47.860Z","0.3.0":"2018-01-13T05:48:47.860Z","0.3.0-alpha.1":"2018-01-13T06:21:07.435Z","0.3.1-alpha.1":"2018-01-13T06:22:00.139Z","0.4.0":"2018-01-13T07:00:43.408Z"},"homepage":"https://github.com/burning-duck/rehace","keywords":["cerebral","react","react-habitat"],"repository":{"type":"git","url":"git+https://github.com/burning-duck/rehace.git"},"contributors":[{"name":"Peter Höffling"},{"name":"Jan Rösler"}],"author":{"name":"burning-duck"},"bugs":{"url":"https://github.com/burning-duck/rehace/issues"},"license":"MIT","readmeFilename":"README.md"}