{"name":"redux-devtools-dispatch","version":"2.2.1","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.9","redux-devtools":"^3.0.0"},"dependencies":{"get-params":"^0.1.2","prop-types":"^15.5.10","redux-devtools-themes":"^1.0.0"},"gitHead":"973b67b5fa1d3b8956c7377b289a730329a49882","_id":"redux-devtools-dispatch@2.2.1","_shasum":"2674310c9fd58ee4461c95425ce2ba21b9255201","_from":".","_npmVersion":"4.6.1","_nodeVersion":"7.9.0","_npmUser":{"name":"yorunohikage","email":"yorunohikage@gmail.com"},"dist":{"shasum":"2674310c9fd58ee4461c95425ce2ba21b9255201","tarball":"http://registry-npm.ywwl.com/redux-devtools-dispatch/download/redux-devtools-dispatch-2.2.1.tgz","integrity":"sha512-HcsNNgjaOG6ILo3HgjVRph4254yFLqVSYPPwX9XsuEZv4lcBB+ZKE+0zEyeQ4y2IJ/5Hmd6OAOJqXaDTcS4aBQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHaYh3r8zUAmoopiSNHE9qhmZquMIv6Z2xjta9fJDNkXAiEAi8i5Yi9+QpyaAHaxaH1iw3OawiMDvbu/FTBdDhMz+tc="}],"size":7028,"noattachment":false,"key":"/redux-devtools-dispatch/-/redux-devtools-dispatch-2.2.1.tgz"},"maintainers":[{"name":"yorunohikage","email":"yorunohikage@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/redux-devtools-dispatch-2.2.1.tgz_1494918033560_0.6511763862799853"},"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":1494918034233,"_cnpm_publish_time":1494918034233,"dist-tags":{"latest":"2.2.1"}}