UNPKG

skypager-project-types-react

Version:
85 lines (62 loc) 7.63 kB
module.exports = /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ return installedModules[moduleId].exports; /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ // Flag the module as loaded /******/ module.l = true; /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ // identity function for calling harmory imports with the correct context /******/ __webpack_require__.i = function(value) { return value; }; /******/ // define getter function for harmory exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ Object.defineProperty(exports, name, { /******/ configurable: false, /******/ enumerable: true, /******/ get: getter /******/ }); /******/ }; /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ // __webpack_public_path__ /******/ __webpack_require__.p = "/"; /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 18); /******/ }) /************************************************************************/ /******/ ({ /***/ 18: /***/ function(module, exports, __webpack_require__) { module.exports = __webpack_require__(3); /***/ }, /***/ 3: /***/ function(module, exports) { module.exports = "{\"ast\":{\"type\":\"root\",\"children\":[{\"type\":\"heading\",\"depth\":1,\"children\":[{\"type\":\"text\",\"value\":\"Embedding React Components In Markdown\",\"position\":{\"start\":{\"line\":1,\"column\":3,\"offset\":2},\"end\":{\"line\":1,\"column\":41,\"offset\":40},\"indent\":[]}}],\"position\":{\"start\":{\"line\":1,\"column\":1,\"offset\":0},\"end\":{\"line\":1,\"column\":42,\"offset\":41},\"indent\":[]}},{\"type\":\"paragraph\",\"children\":[{\"type\":\"text\",\"value\":\"You begin write a markdown document as usual. But then you want to render a react component.\",\"position\":{\"start\":{\"line\":3,\"column\":1,\"offset\":43},\"end\":{\"line\":3,\"column\":93,\"offset\":135},\"indent\":[]}}],\"position\":{\"start\":{\"line\":3,\"column\":1,\"offset\":43},\"end\":{\"line\":3,\"column\":93,\"offset\":135},\"indent\":[]}},{\"type\":\"paragraph\",\"children\":[{\"type\":\"text\",\"value\":\"Look at the component below:\",\"position\":{\"start\":{\"line\":5,\"column\":1,\"offset\":137},\"end\":{\"line\":5,\"column\":29,\"offset\":165},\"indent\":[]}}],\"position\":{\"start\":{\"line\":5,\"column\":1,\"offset\":137},\"end\":{\"line\":5,\"column\":29,\"offset\":165},\"indent\":[]}},{\"type\":\"code\",\"lang\":\"jsx\",\"value\":\"<StatelessExample propOne=\\\"propOne\\\" propTwo=\\\"propTwo\\\">\\n <h1>Hello World</h1> \\n <ExampleComponent name=\\\"Whatever\\\" />\\n</StatelessExample>\",\"position\":{\"start\":{\"line\":7,\"column\":1,\"offset\":167},\"end\":{\"line\":12,\"column\":4,\"offset\":315},\"indent\":[1,1,1,1,1]}},{\"type\":\"heading\",\"depth\":2,\"children\":[{\"type\":\"text\",\"value\":\"Components\",\"position\":{\"start\":{\"line\":14,\"column\":4,\"offset\":320},\"end\":{\"line\":14,\"column\":14,\"offset\":330},\"indent\":[]}}],\"position\":{\"start\":{\"line\":14,\"column\":1,\"offset\":317},\"end\":{\"line\":14,\"column\":14,\"offset\":330},\"indent\":[]}},{\"type\":\"paragraph\",\"children\":[{\"type\":\"text\",\"value\":\"Any code blocks that live underneath the components section will be defined and registered automatically.\",\"position\":{\"start\":{\"line\":16,\"column\":1,\"offset\":332},\"end\":{\"line\":16,\"column\":106,\"offset\":437},\"indent\":[]}}],\"position\":{\"start\":{\"line\":16,\"column\":1,\"offset\":332},\"end\":{\"line\":16,\"column\":106,\"offset\":437},\"indent\":[]}},{\"type\":\"heading\",\"depth\":3,\"children\":[{\"type\":\"text\",\"value\":\"Example Component\",\"position\":{\"start\":{\"line\":18,\"column\":5,\"offset\":443},\"end\":{\"line\":18,\"column\":22,\"offset\":460},\"indent\":[]}}],\"position\":{\"start\":{\"line\":18,\"column\":1,\"offset\":439},\"end\":{\"line\":18,\"column\":22,\"offset\":460},\"indent\":[]}},{\"type\":\"code\",\"lang\":\"javascript\",\"value\":\"class ExampleComponent extends React.Component {\\n render() {\\n return (<div>This is an example component! My name is ${this.props.name}</div>)\\n }\\n}\",\"position\":{\"start\":{\"line\":20,\"column\":1,\"offset\":462},\"end\":{\"line\":26,\"column\":4,\"offset\":631},\"indent\":[1,1,1,1,1,1]}},{\"type\":\"heading\",\"depth\":3,\"children\":[{\"type\":\"text\",\"value\":\"Stateless Example\",\"position\":{\"start\":{\"line\":28,\"column\":5,\"offset\":637},\"end\":{\"line\":28,\"column\":22,\"offset\":654},\"indent\":[]}}],\"position\":{\"start\":{\"line\":28,\"column\":1,\"offset\":633},\"end\":{\"line\":28,\"column\":22,\"offset\":654},\"indent\":[]}},{\"type\":\"code\",\"lang\":\"javascript\",\"value\":\"(props = {}) => \\n <div>\\n <ul>\\n { Object.keys(props).map((key) => (\\n <li key={key}>Has the {key} prop</li>\\n ))}\\n </ul>\\n {props.children}\\n </div>\",\"position\":{\"start\":{\"line\":30,\"column\":1,\"offset\":656},\"end\":{\"line\":40,\"column\":4,\"offset\":833},\"indent\":[1,1,1,1,1,1,1,1,1,1]}}],\"position\":{\"start\":{\"line\":1,\"column\":1,\"offset\":0},\"end\":{\"line\":41,\"column\":1,\"offset\":834}}},\"meta\":{},\"contents\":\"# Embedding React Components In Markdown \\n\\nYou begin write a markdown document as usual. But then you want to render a react component.\\n\\nLook at the component below:\\n\\n```jsx\\n<StatelessExample propOne=\\\"propOne\\\" propTwo=\\\"propTwo\\\">\\n <h1>Hello World</h1> \\n <ExampleComponent name=\\\"Whatever\\\" />\\n</StatelessExample>\\n```\\n\\n## Components\\n\\nAny code blocks that live underneath the components section will be defined and registered automatically.\\n\\n### Example Component\\n\\n```javascript\\nclass ExampleComponent extends React.Component {\\n render() {\\n return (<div>This is an example component! My name is ${this.props.name}</div>)\\n }\\n}\\n```\\n\\n### Stateless Example\\n\\n```javascript\\n(props = {}) => \\n <div>\\n <ul>\\n { Object.keys(props).map((key) => (\\n <li key={key}>Has the {key} prop</li>\\n ))}\\n </ul>\\n {props.children}\\n </div>\\n```\\n\",\"path\":\"/Users/jonathan/Skypager/packages/skypager-react-project/examples/markdown-with-inline-react.md\",\"query\":{}}" /***/ } /******/ });