{"name":"babel-plugin-apply-mdx-type-prop","version":"2.0.0-next.6","description":"Apply the MDX type prop used in the MDX pragma","repository":{"type":"git","url":"git+https://github.com/mdx-js/mdx.git"},"homepage":"https://mdxjs.com","bugs":{"url":"https://github.com/mdx-js/mdx/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"John Otander","email":"johnotander@gmail.com","url":"http://johnotander.com"},"contributors":[{"name":"JounQin","email":"admin@1stg.me","url":"https://www.1stg.me"}],"license":"MIT","keywords":["mdx","markdown","react","jsx","remark","babel"],"peerDependencies":{"@babel/core":"^7.10.5"},"dependencies":{"@babel/helper-plugin-utils":"7.10.4","@mdx-js/util":"^2.0.0-next.6"},"gitHead":"cbfeb8bbbfc830fc91717e098aacb2b2776abc68","readme":"# `babel-plugin-apply-mdx-type-prop`\n\nBabel plugin that applies the `mdxType` prop which is\nused by the [MDX](https://mdxjs.com) pragma.\n\nIt also stores all components encountered as `names` in\nthe plugin state.\n\n## Installation\n\n```sh\nyarn add babel-plugin-apply-mdx-type-prop\n```\n\n## Usage\n\n```js\nconst babel = require('@babel/core')\n\nconst BabelPluginApplyMdxTypeProp = require('babel-plugin-apply-mdx-type-prop')\n\nconst jsx = `\nexport const Foo = () => (\n  <div>\n    <Button />\n  </div>\n)\n\nexport default () => (\n  <>\n    <h1>Hello!</h1>\n    <TomatoBox />\n  </>\n)\n`\n\nconst plugin = new BabelPluginApplyMdxTypeProp()\n\nconst result = babel.transform(jsx, {\n  configFile: false,\n  plugins: ['@babel/plugin-syntax-jsx', plugin.plugin]\n})\n\nconsole.log(result.code)\nconsole.log(plugin.state.names)\n```\n\n### Input\n\n```js\nexport const Foo = () => (\n  <div>\n    <Button />\n  </div>\n)\n\nexport default () => (\n  <>\n    <h1>Hello!</h1>\n    <TomatoBox />\n  </>\n)\n```\n\n### Output\n\n```js\nexport const Foo = () => (\n  <div>\n    <Button mdxType=\"Button\" />\n  </div>\n)\n\nexport default () => (\n  <>\n    <h1>Hello!</h1>\n    <TomatoBox mdxType=\"Button\" />\n  </>\n)\n```\n\n## License\n\nMIT\n","readmeFilename":"readme.md","_id":"babel-plugin-apply-mdx-type-prop@2.0.0-next.6","_nodeVersion":"14.4.0","_npmVersion":"lerna/3.22.1/node@v14.4.0+x64 (darwin)","dist":{"integrity":"sha512-14ri4aP+f5KREFRq/q1J/5t4FOKL5SIgYiHwSB5lPQye/duKDpeTrM5+doSYlNUf0DXLOSoK50wdbjTfyDZUQg==","shasum":"7ae8872484088d783e0ddbf67516077b1da67b7e","tarball":"http://registry-npm.ywwl.com/babel-plugin-apply-mdx-type-prop/download/babel-plugin-apply-mdx-type-prop-2.0.0-next.6.tgz","fileCount":4,"unpackedSize":3976,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfHzUvCRA9TVsSAnZWagAAMwQP/AkmmidMSZvTlbFC2zyt\n934LNw8jtHF01MLiVkaE1ADF+l0BhRcBYCZQIBvn3TpqsDyYwM6ipzmMCxD4\nfR05QQxzp1P89HfVe7y66AKQA6RhPxVyH5wVXuh6lIt9GrQ5ZFo+66+aFTb1\nUxtOGYVm63VY9EIflkWF68N2E2OyTkqO7/124UGveZsjfNkgmJtHGXs4AOPx\nMuBbwrCTFOQxwU4WFQrBBUtOCULxhrAQMRLv08WW3R5gUJXD9bm+K8xR7mdU\nzL9v5APj6/vWHdhPra2NHDdyVyCa7ANzn/aXq/jQMkJEOEdVcMI7ZVJ0hXPA\nhE0Hqka32eyLWiZTg9hHrZa3ufYAye6FCr5VuHHTx0LKjbSbUZaWUtz7R7vT\nKlqnpYQTGqMjtVxdUjzC0Vuw1QbUVdNJBADIJ99ATmAl6Ekh0Wdy8PELLh3j\nGzzTgJJwv1Kd+vitr9ZVHhwAhEBxOqjJeJMRL1Ko+eRj2QGjd/YHfK4jmq7s\nJnBXCcz2OHF8Za3GkxxzxPredUKSLUChwdlqn+A7uTmR9Nixy0/JcTxh607k\nsnNBDDJBxM84NS7U3ZauxpzQ3ULT8K/QkNRMml5UadYXip3WDjeumlHTfXvZ\nUNeT9rOWWi95l0rpnrIYIe3ov0Of8MOe7rQgabwIPw1ZPKiWVo6/3rHk4Ydr\nzvbQ\r\n=aFNb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDueXozOoZhdqi65pK8ldUTihthiPnU9dltZvIxrl4zYAIhAOmGbAEQhv1nhhhq59yVSBBMlYocaRMC1CPzVxRNsvWf"}],"size":1996,"noattachment":false,"key":"/babel-plugin-apply-mdx-type-prop/-/babel-plugin-apply-mdx-type-prop-2.0.0-next.6.tgz"},"maintainers":[{"email":"johnotander@gmail.com","name":"johno"},{"email":"matija.marohnic@gmail.com","name":"silvenon"},{"email":"tim@timneutkens.nl","name":"timneutkens"},{"email":"tituswormer@gmail.com","name":"wooorm"}],"_npmUser":{"name":"johno","email":"johnotander@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-apply-mdx-type-prop_2.0.0-next.6_1595880750184_0.9067425517374723"},"_hasShrinkwrap":false,"publish_time":1595880750399,"_cnpm_publish_time":1595880750399,"dist-tags":{"ci":"1.6.13-ci.1","latest":"2.0.0","next":"2.0.0-next.8"}}