{"name":"redux-devtools-dispatch","version":"1.0.0","description":"Dispatch your actions manually to test if your app reacts well","main":"lib/index.js","scripts":{"clean":"rimraf lib","build":"babel src --out-dir lib","prepublish":"npm run clean && npm run build"},"repository":{"type":"git","url":"git+https://github.com/YoruNoHikage/redux-devtools-dispatch.git"},"keywords":["redux","devtools","dispatch","actions","manually"],"author":{"name":"Alexis Launay","email":"yorunohikage@gmail.com","url":"http://github.com/YoruNoHikage"},"license":"MIT","bugs":{"url":"https://github.com/YoruNoHikage/redux-devtools-dispatch/issues"},"homepage":"https://github.com/YoruNoHikage/redux-devtools-dispatch","devDependencies":{"babel-cli":"^6.3.15","babel-core":"^6.1.20","babel-loader":"^6.2.0","babel-preset-es2015-loose":"^6.1.3","babel-preset-react":"^6.3.13","babel-preset-stage-0":"^6.3.13","rimraf":"^2.3.4","webpack":"^1.11.0"},"peerDependencies":{"react":"^0.14.0","redux-devtools":"^3.0.0"},"dependencies":{"get-params":"^0.1.2","redux-devtools-themes":"^1.0.0"},"gitHead":"e002392692d9ebf56ac735da16a1340553350160","_id":"redux-devtools-dispatch@1.0.0","_shasum":"49419dc923a185373ac2c09daaa9ed38427561b9","_from":".","_npmVersion":"3.5.3","_nodeVersion":"5.0.0","_npmUser":{"name":"yorunohikage","email":"yorunohikage@gmail.com"},"dist":{"shasum":"49419dc923a185373ac2c09daaa9ed38427561b9","tarball":"http://registry-npm.ywwl.com/redux-devtools-dispatch/download/redux-devtools-dispatch-1.0.0.tgz","integrity":"sha512-ZWmRCyB5O6hkCRM1NCx4OjCxcKskEfOjfNAF8H69YjWztL6w4XYULsyxoHOTIxKIK4lqIg29dOrKKPUqHM3c6Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICJSEY23A2aEZSuFLZ2Sxhr6HGyBS5BDibbB9+LGrP28AiBdm+jD6EUq8UPVdkc1m73gPw4WqZbaePhYI0XvsPVdnQ=="}],"size":7240,"noattachment":false,"key":"/redux-devtools-dispatch/-/redux-devtools-dispatch-1.0.0.tgz"},"maintainers":[{"name":"yorunohikage","email":"yorunohikage@gmail.com"}],"_npmOperationalInternal":{"host":"packages-5-east.internal.npmjs.com","tmp":"tmp/redux-devtools-dispatch-1.0.0.tgz_1454870662835_0.06078236596658826"},"directories":{},"readme":"# Redux DevTools Dispatch\r\nDispatch your actions manually to test if your app reacts well.\r\n\r\n[![npm version](https://img.shields.io/npm/v/redux-devtools-dispatch.svg?style=flat-square)](https://www.npmjs.com/package/redux-devtools-dispatch)\r\n\r\n![redux-devtools-dispatch](https://cloud.githubusercontent.com/assets/969003/12874321/2c3624ec-cdd2-11e5-9856-fd7e24efb8d5.gif)\r\n\r\n### Installation\r\n\r\n`npm install --save-dev redux-devtools-dispatch`\r\n\r\n### Usage\r\n\r\nYou can declare your Dispatcher the same way you declare a Monitor in your Dev Tools.\r\n\r\n```jsx\r\nimport React from 'react';\r\nimport { createDevTools } from 'redux-devtools';\r\nimport Dispatcher from 'redux-devtools-dispatch';\r\n\r\nexport default createDevTools(\r\n  <Dispatcher />\r\n);\r\n```\r\n\r\nYou can inject action creators to ease the process of testing your app firing yourself actions.\r\n\r\n```jsx\r\nimport React from 'react';\r\nimport { createDevTools } from 'redux-devtools';\r\nimport Dispatcher from 'redux-devtools-dispatch';\r\n\r\nconst actionCreators = {\r\n  increment() {\r\n    return {type: 'INCREMENT_COUNTER'};\r\n  },\r\n  decrement() {\r\n    return {type: 'DECREMENT_COUNTER'};\r\n  },\r\n  nested: {\r\n    worksToo() {\r\n      return {type: 'NESTED_WORKS_TOO', cool: true};\r\n    },\r\n  },\r\n};\r\n\r\nexport default createDevTools(\r\n  <Dispatcher actionCreators={actionCreators} />\r\n);\r\n```\r\n\r\nYou can also use `<MultipleMonitors>` from [`redux-devtools-multiple-monitors`](https://github.com/YoruNoHikage/redux-devtools-multiple-monitors) to use multiple monitors into the `<DockMonitor>`:\r\n\r\n```jsx\r\nimport React from 'react';\r\n\r\nimport { createDevTools } from 'redux-devtools';\r\nimport LogMonitor from 'redux-devtools-log-monitor';\r\nimport DockMonitor from 'redux-devtools-dock-monitor';\r\nimport Dispatcher from 'redux-devtools-dispatch';\r\nimport MultipleMonitors from 'redux-devtools-multiple-monitors';\r\n\r\nexport default createDevTools(\r\n  <DockMonitor toggleVisibilityKey=\"ctrl-h\" changePositionKey=\"ctrl-q\" defaultIsVisible={false}>\r\n    <MultipleMonitors>\r\n      <LogMonitor />\r\n      <Dispatcher />\r\n    </MultipleMonitors>\r\n  </DockMonitor>\r\n);\r\n```\r\n\r\nThen, just write an JSON action in the field, click on Dispatch, and that's all!\r\n\r\n### Props\r\n\r\nName                  | Description\r\n-------------         | -------------\r\n`theme`               | _Same as in LogMonitor's package_ Either a string referring to one of the themes provided by [redux-devtools-themes](https://github.com/gaearon/redux-devtools-themes) (feel free to contribute!) or a custom object of the same format. Optional. By default, set to [`'nicinabox'`](https://github.com/gaearon/redux-devtools-themes/blob/master/src/nicinabox.js).\r\n`initEmpty`           | When `true`, the dispatcher is empty. By default, set to `false`, the dispatcher contains : `{ \"type\": \"\" }`.\r\n`actionCreators`      | Either a array of action creators or an object containing action creators. When defined, a selector appears to choose the action creator you want to fire, you can fill up the arguments and dispatch the action.\r\n`dispatchFn`          | Function to be called for dispatching actions. By default it is using component's `this.context.store.dispatch`. \r\n\r\n### Contributing\r\n\r\nAs this package is my first, any comment, pull request, issue is welcome so I can learn more from everyone.\r\n\r\n### License\r\n\r\nMIT\r\n","publish_time":1454870663969,"_cnpm_publish_time":1454870663969,"dist-tags":{"latest":"2.2.1"}}