{"_id":"@storybook/mantra-core","_rev":"471382","name":"@storybook/mantra-core","description":"Core API for Mantra","dist-tags":{"latest":"1.7.2"},"maintainers":[{"name":"aaronmcadam","email":"aaron@aaronmcadam.com"},{"name":"arunoda","email":"arunoda.susiripala@gmail.com"},{"name":"hypnosphi","email":""},{"name":"mnmtanish","email":"mnmtanish@gmail.com"},{"name":"mthuret","email":"mlthutrix@gmail.com"},{"name":"ndelangen","email":""},{"name":"usulpro","email":"regx@usul.su"}],"time":{"modified":"2021-08-05T08:19:50.000Z","created":"2017-11-15T16:51:53.058Z","1.7.2":"2017-11-15T17:12:54.927Z","1.7.1":"2017-11-15T16:51:53.058Z"},"users":{},"repository":{"type":"git","url":"git+https://github.com/storybooks/mantra-core.git"},"versions":{"1.7.2":{"name":"@storybook/mantra-core","version":"1.7.2","description":"Core API for Mantra","repository":{"type":"git","url":"git+https://github.com/storybooks/mantra-core.git"},"license":"MIT","options":{"mocha":"--require scripts/mocha_runner src/**/__tests__/**/*.js"},"scripts":{"prepublish":". ./scripts/prepublish.sh","lint":"eslint ./src","lintfix":"eslint ./src --fix","testonly":"mocha $npm_package_options_mocha","test":"npm run lint && npm run testonly","test-watch":"npm run testonly -- --watch --watch-extensions js"},"devDependencies":{"nodemon":"1.7.x","mocha":"2.x.x","chai":"3.x.x","eslint":"1.7.x","babel-eslint":"4.x.x","eslint-plugin-babel":"2.x.x","babel-cli":"6.x.x","babel-core":"6.x.x","babel-polyfill":"6.x.x","babel-preset-es2015":"6.x.x","babel-preset-stage-2":"6.x.x","babel-plugin-transform-runtime":"6.x.x","react":"^0.14.6"},"dependencies":{"babel-runtime":"6.x.x","@storybook/react-komposer":"^2.0.1","@storybook/react-simple-di":"^1.2.1"},"gitHead":"54f0cbd2b68272092ded5c51a72829d50a5f1f0a","bugs":{"url":"https://github.com/storybooks/mantra-core/issues"},"homepage":"https://github.com/storybooks/mantra-core#readme","_id":"@storybook/mantra-core@1.7.2","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"danielduan","email":"dduan@yahoo.com"},"dist":{"shasum":"e10c7faca29769e97131e0e0308ef7cfb655b70c","size":5568,"noattachment":false,"key":"/@storybook/mantra-core/-/@storybook/mantra-core-1.7.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@storybook/mantra-core/download/@storybook/mantra-core-1.7.2.tgz"},"maintainers":[{"name":"aaronmcadam","email":"aaron@aaronmcadam.com"},{"name":"arunoda","email":"arunoda.susiripala@gmail.com"},{"name":"hypnosphi","email":""},{"name":"mnmtanish","email":"mnmtanish@gmail.com"},{"name":"mthuret","email":"mlthutrix@gmail.com"},{"name":"ndelangen","email":""},{"name":"usulpro","email":"regx@usul.su"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mantra-core-1.7.2.tgz_1510765973284_0.5204895571805537"},"directories":{},"publish_time":1510765974927,"_hasShrinkwrap":false,"_cnpm_publish_time":1510765974927},"1.7.1":{"name":"@storybook/mantra-core","version":"1.7.1","description":"Core API for Mantra","repository":{"type":"git","url":"git+https://github.com/storybooks/mantra-core.git"},"license":"MIT","options":{"mocha":"--require scripts/mocha_runner src/**/__tests__/**/*.js"},"scripts":{"prepublish":". ./scripts/prepublish.sh","lint":"eslint ./src","lintfix":"eslint ./src --fix","testonly":"mocha $npm_package_options_mocha","test":"npm run lint && npm run testonly","test-watch":"npm run testonly -- --watch --watch-extensions js"},"devDependencies":{"nodemon":"1.7.x","mocha":"2.x.x","chai":"3.x.x","eslint":"1.7.x","babel-eslint":"4.x.x","eslint-plugin-babel":"2.x.x","babel-cli":"6.x.x","babel-core":"6.x.x","babel-polyfill":"6.x.x","babel-preset-es2015":"6.x.x","babel-preset-stage-2":"6.x.x","babel-plugin-transform-runtime":"6.x.x","react":"^0.14.6"},"dependencies":{"babel-runtime":"6.x.x","@storybook/react-komposer":"^2.0.1","@storybook/react-simple-di":"^1.2.1"},"gitHead":"34bc924bedf630b28a5010c312d4c40ece69e5ad","bugs":{"url":"https://github.com/storybooks/mantra-core/issues"},"homepage":"https://github.com/storybooks/mantra-core#readme","_id":"@storybook/mantra-core@1.7.1","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"danielduan","email":"dduan@yahoo.com"},"dist":{"shasum":"d2776b82cff9ef0589fa9b04b40352b0a148cd70","size":5551,"noattachment":false,"key":"/@storybook/mantra-core/-/@storybook/mantra-core-1.7.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@storybook/mantra-core/download/@storybook/mantra-core-1.7.1.tgz"},"maintainers":[{"name":"aaronmcadam","email":"aaron@aaronmcadam.com"},{"name":"arunoda","email":"arunoda.susiripala@gmail.com"},{"name":"hypnosphi","email":""},{"name":"mnmtanish","email":"mnmtanish@gmail.com"},{"name":"mthuret","email":"mlthutrix@gmail.com"},{"name":"ndelangen","email":""},{"name":"usulpro","email":"regx@usul.su"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mantra-core-1.7.1.tgz_1510764712084_0.03654755186289549"},"directories":{},"publish_time":1510764713058,"_hasShrinkwrap":false,"_cnpm_publish_time":1510764713058}},"readme":"#mantra-core\n\nCore API for Mantra.\n\n### Introduction\n\nThis repo contains the core APP api where we create an mantra app and initialize it.\n\nAlso, this package contains exported functions from both [`react-komposer`](https://github.com/kadirahq/react-komposer) and [`react-simple-di`](https://github.com/kadirahq/react-simple-di).\nThat's purely for the ease of use.\n\n### Installation\n\n```\nnpm i --save mantra-core react\n```\n\n### App API\n\n```js\nimport MyComp from './myComp';\nimport {createApp} from 'mantra-core';\n\n// Here's a simple Mantra Module\nconst module = {\n  routes(injectDeps) {\n    const InjectedComp = injectDeps(MyComp);\n    // load routes and put `InjectedComp` to the screen.\n  },\n  load(context, actions) {\n    // do any module initialization\n  },\n  actions: {\n    myNamespace: {\n      doSomething: (context, arg1) => {}\n    }\n  }\n};\n\nconst context = {\n  client: new DataClient()\n};\n\nconst app = createApp(context);\napp.loadModule(module);\n// app.loadModule(someOtherModule);\napp.init();\n```\n","_attachments":{},"homepage":"https://github.com/storybooks/mantra-core#readme","bugs":{"url":"https://github.com/storybooks/mantra-core/issues"},"license":"MIT"}