{"_id":"@aminohealth/fractal-react-adapter","_rev":"16-16d9b97a8efb6a18fc068054ecbc502e","name":"@aminohealth/fractal-react-adapter","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"@aminohealth/fractal-react-adapter","version":"1.0.0","description":"Use React as the template engine for Fractal components.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/aminohealth/fractal-react-adapter.git"},"keywords":["fractal","react"],"author":{"name":"Sumul Shah","email":"sumul@sumulshah.com"},"license":"MIT","bugs":{"url":"https://github.com/aminohealth/fractal-react-adapter/issues"},"homepage":"https://github.com/aminohealth/fractal-react-adapter#readme","dependencies":{"@babel/preset-react":"^7.0.0","@babel/register":"^7.0.0","@frctl/fractal":"^1.1.3","babel-plugin-module-resolver":"^3.1.1","bluebird":"^3.5.0","html":"^1.0.0","lodash":"^4.17.4","react":"^15.4.2","react-dom":"^15.4.2"},"gitHead":"6cad3478ac21d790e4a3dbe7e7155b7c7acf3c32","_id":"@aminohealth/fractal-react-adapter@1.0.0","_npmVersion":"6.5.0","_nodeVersion":"11.6.0","_npmUser":{"name":"nickdunkman","email":"nickdunkman@gmail.com"},"dist":{"integrity":"sha512-s3+f0AuETeCCL98Be5xfYWzc1EqCq2xuMN1bIBrWYJsB0YUZJO0Vbnf2Y4vNAmflwLUk9zton0OKeAHX4uB85w==","shasum":"61d7bc40135b2c2d14e185767b496bdd57739218","tarball":"https://registry.npmjs.org/@aminohealth/fractal-react-adapter/-/fractal-react-adapter-1.0.0.tgz","fileCount":8,"unpackedSize":173312,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcLp78CRA9TVsSAnZWagAACooP/2BvzCyEa4Ki7qxOVICL\npyfMpFKZgC8D6mJWGq0U8FvNFz6/X5KrldzRRoIpTMPmz2UhclM0sbEWQC1K\nxVgNENWc+P7Y131tjm6yyGC85Y71zVkMSY5xMOzsv+RYsXFklsWAl7mUmJKD\nc9TLr627ZbGiV5ZB6JoReGGple/EkQG4dA1fDu5fS+cJG/z5GgbNKs+xAGJb\nVbEEgcMUiF/X/xwcOlSLw/YRP47DMxkiO+Dh5wlEIsdFztGE/7eC/kXf33//\nYK0X3nafSNuILFYPhYrhdG6VCEJ/TGes0q6Drp4Bc/Cz448KsFPTzN5302NN\nSIPkusAFy6mqlFsQh9Ii7D2G3NG+TLyEXa4MjzS1rthu7b96ST7qdU8avUxG\nqF8+8EFkW5Um+M+t0dEuUDdIy5iaUbVAC+0QQMtgbrWfvODbLEFt8ATqhF5d\n8zqfNUr4B+m62ZSdxo0Fgb6a2trrbRul3x+/vrBuOdkMTS+IwFqoSQH6zQjN\nvx8Y5bHIjZBuF3hgVj0GCpe2ztmHqtRk9dlpE+08HlqO4hb4EOenP0hZ5pQw\nnr58KS/y2CYBAs948czXIUhkhJQzbB3ckkfogQcJRtS0ky+P4mD0vJiiQGJK\nYik1+tESC0ybnepAx/8itBd/u17ojhYyEbTgC08BYt7iEIWQJCL1PMzNVFcC\nOg6d\r\n=w0p/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIArBxSDZ1QM7rq9jp0vYUPi5R4/ZAmGMThH6vj2kVYzLAiBJjsnlEyK06fvtPGJ1EpGIFxTn3hCyzHpD4F7mcylhwQ=="}]},"maintainers":[{"name":"sumul","email":"npm@sumulshah.com"},{"name":"aminoadmin","email":"techadmin+npm@amino.com"},{"name":"kevinqi","email":"iqnivek@gmail.com"},{"name":"nickdunkman","email":"nickdunkman@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fractal-react-adapter_1.0.0_1546559227740_0.7967383502746579"},"_hasShrinkwrap":false},"1.0.1":{"name":"@aminohealth/fractal-react-adapter","version":"1.0.1","description":"Use React as the template engine for Fractal components.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/aminohealth/fractal-react-adapter.git"},"keywords":["fractal","react"],"author":{"name":"Sumul Shah","email":"sumul@sumulshah.com"},"license":"MIT","bugs":{"url":"https://github.com/aminohealth/fractal-react-adapter/issues"},"homepage":"https://github.com/aminohealth/fractal-react-adapter#readme","dependencies":{"@babel/preset-react":"^7.0.0","@babel/register":"^7.0.0","@frctl/fractal":"^1.1.3","babel-plugin-module-resolver":"^3.1.1","bluebird":"^3.5.0","html":"^1.0.0","lodash":"^4.17.4","react":"^15.4.2","react-dom":"^15.4.2"},"gitHead":"c69e55055eb140eda4afc0ed526fafdba7c94359","_id":"@aminohealth/fractal-react-adapter@1.0.1","_npmVersion":"6.5.0","_nodeVersion":"11.6.0","_npmUser":{"name":"nickdunkman","email":"nickdunkman@gmail.com"},"dist":{"integrity":"sha512-lpLfdcyOGDW4Zqm3nzacI8xiMyNu71plhBGQGiUe9kvtq/P5fl1YDGRbjj116fjNZ9aZ0e83UfZNvOeDbCPc1A==","shasum":"c529d775c2bfc8df9e8655472b1802684837ce85","tarball":"https://registry.npmjs.org/@aminohealth/fractal-react-adapter/-/fractal-react-adapter-1.0.1.tgz","fileCount":8,"unpackedSize":173309,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcLqaaCRA9TVsSAnZWagAA0dwP+QCTxuVUqzgwFddRzkgi\nb7HAOlrd3tEd6c/ijd0nO6ZFNQhUABhUWaNf5WQQ3DhZOQheCzv4f46u1jh0\nLZpmXe7lR8LdC7iP3ALiI64FKb3WI/P/no1MCmYio1cJUco+wCzJHyWK2IuR\nexvh7HhJywNpuv96CUgzyd2x9e4KgwpY868M3gDowE0kGjfp5+ucHWNmgJ68\nkzAjM33Wtnj4wkl7mzhjozTQ9gENyVNntKsH0IqL4Dlw57LA7uFRT4f3kHn+\naetCOkhtikOI7HZ7vWy5WnNv3bAtrZJcW1m+lgtkiJDFSoG2IODZrQZKnnSn\nqhiR/s/NVH5R6EyEiJyUDVAhSnq2fuMunN6pJfYvmtvmhViZdF0YZvOMWcXg\n6E5/x9DgzovvMi3bar8vcQgpxdGoUeYuEXjisuD2I/mgKCOoxKnMqm825aAD\nEHSEl6gxydGbloTlmAOMlHOFnNvll12bRiIyJdphjYhwyaK8+OPV2YAQopYt\nzhigwEVxybpapWqZS5cUj5apup1zjWqnjm35YHimA8Z3DhLzQcIZIFY3aWV7\nv4txkxQVLZy5X3pC6ZYmH1S7gilZy/AxLVR/B0JH5Yc4ttE7GGh5TcoH1cNH\n0UxrMOQHhfJ5VFoRFXDRLuBXr5Za0okjzY5dL7c9RDHMawbL/eFxsoO+Oo6b\ngXpQ\r\n=a+kl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDwfqqZ2GL2yAAfBIhWB8Aq5stvKePOQ3HnGDANsUbftwIhAPh7SALt5eExY59CmxkjhSkmrcI9GSpQKMCc2JTRZ2Xj"}]},"maintainers":[{"name":"aminoadmin","email":"techadmin+npm@amino.com"},{"name":"kevinqi","email":"iqnivek@gmail.com"},{"name":"nickdunkman","email":"nickdunkman@gmail.com"},{"name":"sumul","email":"npm@sumulshah.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fractal-react-adapter_1.0.1_1546561177568_0.29296769242000864"},"_hasShrinkwrap":false},"2.0.0":{"name":"@aminohealth/fractal-react-adapter","version":"2.0.0","description":"Use React as the template engine for Fractal components.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/aminohealth/fractal-react-adapter.git"},"keywords":["fractal","react"],"author":{"name":"Sumul Shah","email":"sumul@sumulshah.com"},"license":"MIT","bugs":{"url":"https://github.com/aminohealth/fractal-react-adapter/issues"},"homepage":"https://github.com/aminohealth/fractal-react-adapter#readme","dependencies":{"@babel/preset-react":"^7.0.0","@babel/register":"^7.0.0","@frctl/fractal":"^1.1.3","babel-plugin-module-resolver":"^3.1.1","bluebird":"^3.5.0","html":"^1.0.0","lodash":"^4.17.4","react":"^17.0.2","react-dom":"^17.0.2"},"gitHead":"a8dcf0abc38f11d13a05343f8ede46eecb929300","_id":"@aminohealth/fractal-react-adapter@2.0.0","_nodeVersion":"14.17.4","_npmVersion":"6.14.14","dist":{"integrity":"sha512-wUATNKVE9r5ws5/jHOBrU4xhxCLjWv/uMRQDNbcrGEXK5GtzWb9yOO17eKlaQcELK8MkOyMmNUBUXgPxiLcdqw==","shasum":"6b6750a4104c9d703e8687984fa998330f2e0b97","tarball":"https://registry.npmjs.org/@aminohealth/fractal-react-adapter/-/fractal-react-adapter-2.0.0.tgz","fileCount":7,"unpackedSize":8319,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzFOzCRA9TVsSAnZWagAAZD0QAIM1ryZc30z2/aZTs8LR\nZa00FUcY8tcDR3RIe7XKP7Ueg9haWds2wnCsftVJtsuuCwpgD8r0XBbqaQ6l\nbVbyCMtDWvSVmpKhIP3yiH9xos1BmMg+i+Nn1O3lmixRt0HB6do2p3006WC9\nhyWWjXigbvZl5TWuHpztgIQ7K1Mw07ETZmOQ6o+eeTzVlxNu7440vOltjONg\n/d0ht+2SOAfED+zpjQJWOZGO9JxwehtRmUVFgvlh6pNyGKdpI9Oy8YGyRhe9\nJXZD7yhKXxI6vYkrh6rRGQgjmSBUpQ7jHsxyQZ1KECNqiodY2N16+4z9jnPn\n/0ytECBaKB1pn23Im9/Aytgt/hnPPEcSirxvmVm7Vf32H/2PQ3o1XWtY3YoT\n+5u6Kx6T4Rv2LtQ+SlTFz/AW6KbiNszd0dbq3FTLk3Ui3NlG/MK0AM5FRLdk\n+7fv/baPjjaNvhqYkTiFpH/i7IAi+TKDwc2dhMx2tSOEwnnGNRWdZs8UKwd9\nPetdZslvckF3LZMsuuxS63GanSBdQmBNnHrD8g/PqYCAOOon7rKVDWRDSHPh\nhdE10141mOX+uH2Gc8NcF2xbML1WsAk2tou136ZMTryK0Ib4eAzZOogB5eHO\neECVeWqD1mmfqSHRWFlD2XFqeM8MAfdAp4tj3TALyZE3lsoMOE32YCs6b6qp\n+gpx\r\n=Z9cI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDgbcY4mgf67lnSKPg4mercbj148dawPDMWoK98J74AxwIhAMuSnDTeK/P3mvSH0wYHxZGhJmY09nDQZ2sYWTuBzodJ"}]},"_npmUser":{"name":"ahmedmodan","email":"ahmed.modan@gmail.com"},"directories":{},"maintainers":[{"name":"sumul","email":"npm@sumulshah.com"},{"name":"aminoadmin","email":"techadmin+npm@amino.com"},{"name":"nickdunkman","email":"nickdunkman@gmail.com"},{"name":"jessiditocco","email":"jessi.ditocco@gmail.com"},{"name":"cduffett","email":"carlton.duffett@gmail.com"},{"name":"ahmedmodan","email":"ahmed.modan@gmail.com"},{"name":"ewdicus","email":"ewdicus@gmail.com"},{"name":"gelsto","email":"lauragelston@gmail.com"},{"name":"orjames","email":"orjames@berkeley.edu"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fractal-react-adapter_2.0.0_1634319885772_0.7122251416013619"},"_hasShrinkwrap":false}},"time":{"created":"2019-01-03T23:47:07.613Z","1.0.0":"2019-01-03T23:47:07.886Z","modified":"2024-01-05T01:07:03.245Z","1.0.1":"2019-01-04T00:19:37.685Z","2.0.0":"2021-10-15T17:44:45.933Z"},"maintainers":[{"email":"npm@sumulshah.com","name":"sumul"},{"email":"techadmin+npm@amino.com","name":"aminoadmin"},{"email":"nickdunkman@gmail.com","name":"nickdunkman"},{"email":"jessi.ditocco@gmail.com","name":"jessiditocco"},{"email":"ewdicus@gmail.com","name":"ewdicus"},{"email":"lauragelston@gmail.com","name":"gelsto"}],"description":"Use React as the template engine for Fractal components.","homepage":"https://github.com/aminohealth/fractal-react-adapter#readme","keywords":["fractal","react"],"repository":{"type":"git","url":"git+https://github.com/aminohealth/fractal-react-adapter.git"},"author":{"name":"Sumul Shah","email":"sumul@sumulshah.com"},"bugs":{"url":"https://github.com/aminohealth/fractal-react-adapter/issues"},"license":"MIT","readme":"## What is fractal-react-adapter?\n\nForked from [@sumul's](https://github.com/sumul) original [fractal-react-adapter](https://github.com/sumul/fractal-react-adapter), the adapter lets you use React as a template engine in [Fractal](http://fractal.build). It's based on Fractal's [Handlebars adapter](https://github.com/frctl/handlebars). This adapter aims to maintain a React flavor rather than achieve complete feature parity with the Handlebars adapter. The goal is to facilitate writing React components that can easily be used in other projects.\n\n## Installation\n\nInstall the adapter via NPM:\n\n```\nnpm i --save @aminohealth/fractal-react-adapter\n```\n\nPlug it into your `fractal.js` file like so:\n\n```js\nconst reactAdapter = require(\"fractal-react-adapter\")();\nfractal.components.engine(reactAdapter);\nfractal.components.set(\"ext\", \".jsx\");\n```\n\nThe adapter uses [Babel](https://babeljs.io) to compile React components via [@babel/register](https://babeljs.io/docs/en/babel-register/) (which hooks into `require` or `import` and automatically routes those files through Babel). By default, `@babel/register` is configured to compile `.jsx` files and use the `@babel/preset-react` preset, but you can override these with any valid `@babel/register` config (see Configuration below).\n\n```js\n// Default babel-register config\n{\n  extensions: ['.jsx'],\n  presets: ['@babel/preset-react']\n}\n```\n\nThe adapter also uses `babel-plugin-module-resolver` to expose Fractal's component handles as node module names. This allows you to move a component around in the file system without worrying about rewriting your imports.\n\n```js\nimport Button from \"@button\";\n```\n\n```js\nconst Button = require(\"@button\");\n```\n\n## Configuration\n\nThese options can be overridden when the adapter is set up.\n\n* `babelConfig`: any valid configuration options for [@babel/register](https://babeljs.io/docs/en/babel-register/)\n* `renderMethod`: `'renderToStaticMarkup'` or `'renderToString'` (see [ReactDOMServer](https://facebook.github.io/react/docs/react-dom-server.html))\n\n```js\nconst reactAdapter = require(\"fractal-react-adapter\")({\n  babelConfig: {\n    plugins: [\"@babel/plugin-proposal-class-properties\"]\n  },\n  renderMethod: \"renderToString\"\n});\n```","readmeFilename":"README.md"}