{"_id":"react-submittable","_rev":"409272","name":"react-submittable","description":"a replacement for preventing the default behavior of forms: allows submission on enter","dist-tags":{"latest":"2.0.0"},"maintainers":[{"name":"tmcw","email":"tom@macwright.org"}],"time":{"modified":"2021-08-04T05:01:58.000Z","created":"2015-08-14T16:44:36.550Z","2.0.0":"2017-10-02T16:45:21.094Z","1.0.4":"2017-04-22T00:08:29.321Z","1.0.3":"2016-10-10T20:57:57.920Z","1.0.2":"2015-09-28T16:50:25.102Z","1.0.1":"2015-08-14T16:46:53.730Z","1.0.0":"2015-08-14T16:44:36.550Z"},"users":{},"author":{"name":"Mapbox"},"repository":{"type":"git","url":"git+ssh://git@github.com/mapbox/react-submittable.git"},"versions":{"2.0.0":{"name":"react-submittable","version":"2.0.0","description":"a replacement for preventing the default behavior of forms: allows submission on enter","main":"dist/submittable.js","scripts":{"format":"prettier --write src/*.js","build":"babel src -d dist","jest":"jest","pretest":"npm run build","prepublishOnly":"npm run build","test":"npm run jest"},"keywords":["submit","form","element","react"],"files":["dist","src"],"author":{"name":"Mapbox"},"license":"ISC","devDependencies":{"babel-cli":"^6.24.1","babel-plugin-transform-class-properties":"^6.24.1","babel-preset-env":"^1.6.0","babel-preset-react":"^6.16.0","enzyme":"^3.0.0","enzyme-adapter-react-16":"^1.0.0","jest":"^21.2.1","prettier":"^1.2.2","react":"^16.0.0","react-dom":"^16.0.0","react-test-renderer":"^16.0.0"},"prettier":{"singleQuote":true},"babel":{"presets":["react","env"],"plugins":["transform-class-properties"]},"peerDependencies":{"react":"^15.5.0 || ^16.0.0","react-dom":"^15.5.0 || ^16.0.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/mapbox/react-submittable.git"},"jest":{"clearMocks":true,"setupFiles":["<rootDir>/test/test-util/jest-setup.js"]},"gitHead":"9df0860c68ddee44629d05a199b66325ebb55305","bugs":{"url":"https://github.com/mapbox/react-submittable/issues"},"homepage":"https://github.com/mapbox/react-submittable#readme","_id":"react-submittable@2.0.0","_npmVersion":"5.4.2","_nodeVersion":"6.11.3","_npmUser":{"name":"davidtheclark","email":"david.dave.clark@gmail.com"},"dist":{"shasum":"290c86c264e4fa781c2b8d66d74b94d4716acb71","size":3225,"noattachment":false,"key":"/react-submittable/-/react-submittable-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-submittable/download/react-submittable-2.0.0.tgz"},"maintainers":[{"name":"tmcw","email":"tom@macwright.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-submittable-2.0.0.tgz_1506962721047_0.005221223225817084"},"directories":{},"publish_time":1506962721094,"_cnpm_publish_time":1506962721094,"_hasShrinkwrap":false},"1.0.4":{"name":"react-submittable","version":"1.0.4","description":"a replacement for preventing the default behavior of forms: allows submission on enter","main":"dist/submittable.js","scripts":{"build":"babel src -d dist","jest":"jest","pretest":"npm run build","prepublish":"npm run build","test":"npm run jest"},"keywords":["submit","form","element","react"],"author":{"name":"Tom MacWright"},"license":"ISC","devDependencies":{"babel-cli":"^6.24.1","babel-plugin-transform-class-properties":"^6.24.1","babel-preset-es2015":"^6.24.1","babel-preset-react":"^6.16.0","enzyme":"^2.8.2","jest":"^19.0.2","prettier":"^1.2.2","react-dom":"^15.5.4"},"babel":{"presets":["react","es2015"],"plugins":["transform-class-properties"]},"dependencies":{"react":"^15.5.4","react-test-renderer":"^15.5.4"},"repository":{"type":"git","url":"git+ssh://git@github.com/mapbox/react-submittable.git"},"jest":{"collectCoverage":true},"gitHead":"f2c61accfe2858f69904b40c69dd5e0af2b0d381","bugs":{"url":"https://github.com/mapbox/react-submittable/issues"},"homepage":"https://github.com/mapbox/react-submittable#readme","_id":"react-submittable@1.0.4","_shasum":"3e68384b7680f911b2316c96f07ef9a4ce7ffa12","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.0","_npmUser":{"name":"davidtheclark","email":"david.dave.clark@gmail.com"},"dist":{"shasum":"3e68384b7680f911b2316c96f07ef9a4ce7ffa12","size":32931,"noattachment":false,"key":"/react-submittable/-/react-submittable-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-submittable/download/react-submittable-1.0.4.tgz"},"maintainers":[{"name":"tmcw","email":"tom@macwright.org"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/react-submittable-1.0.4.tgz_1492819709086_0.38436792441643775"},"directories":{},"publish_time":1492819709321,"_cnpm_publish_time":1492819709321,"_hasShrinkwrap":false},"1.0.3":{"name":"react-submittable","version":"1.0.3","description":"a replacement for preventing the default behavior of forms: allows submission on enter","main":"index.js","scripts":{"jest":"jest","test":"npm run jest"},"keywords":["submit","form","element","react"],"author":{"name":"Tom MacWright"},"license":"ISC","devDependencies":{"babel-jest":"^16.0.0","babel-preset-react":"^6.16.0","enzyme":"^2.4.1","jest":"^16.0.1","react-addons-test-utils":"^15.3.2","react-dom":"^15.3.2"},"babel":{"presets":["react"]},"dependencies":{"react":"*"},"repository":{"type":"git","url":"git+ssh://git@github.com/mapbox/react-submittable.git"},"jest":{"collectCoverage":true},"gitHead":"af407323290eb08da2aebe6a175cefa731993296","bugs":{"url":"https://github.com/mapbox/react-submittable/issues"},"homepage":"https://github.com/mapbox/react-submittable#readme","_id":"react-submittable@1.0.3","_shasum":"fbe4d47d3e359c992d14e8e809e72769fbe2d8f1","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.6.0","_npmUser":{"name":"davidtheclark","email":"david.dave.clark@gmail.com"},"dist":{"shasum":"fbe4d47d3e359c992d14e8e809e72769fbe2d8f1","size":2181,"noattachment":false,"key":"/react-submittable/-/react-submittable-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-submittable/download/react-submittable-1.0.3.tgz"},"maintainers":[{"name":"tmcw","email":"tom@macwright.org"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/react-submittable-1.0.3.tgz_1476133077672_0.24879351002164185"},"directories":{},"publish_time":1476133077920,"_cnpm_publish_time":1476133077920,"_hasShrinkwrap":false},"1.0.2":{"name":"react-submittable","version":"1.0.2","description":"a replacement for preventing the default behavior of forms: allows submission on enter","main":"index.js","scripts":{"test":"jest && coveralls < coverage/lcov.info"},"keywords":["submit","form","element","react"],"author":{"name":"Tom MacWright"},"license":"ISC","devDependencies":{"jest-cli":"^0.4.18","coveralls":"^2.11.4","react-tools":"^0.13.3"},"jest":{"scriptPreprocessor":"<rootDir>/preprocessor.js","unmockedModulePathPatterns":["<rootDir>/node_modules/react"],"collectCoverage":true},"dependencies":{"react":"*"},"repository":{"type":"git","url":"git+ssh://git@github.com/mapbox/react-submittable.git"},"gitHead":"0798203cd38171bbeca4136ee0e7812083374e0c","bugs":{"url":"https://github.com/mapbox/react-submittable/issues"},"homepage":"https://github.com/mapbox/react-submittable#readme","_id":"react-submittable@1.0.2","_shasum":"51c74466c929f2c1724420198dbc18c6fc8080f8","_from":".","_npmVersion":"2.14.3","_nodeVersion":"0.10.39","_npmUser":{"name":"tmcw","email":"tom@macwright.org"},"maintainers":[{"name":"tmcw","email":"tom@macwright.org"}],"dist":{"shasum":"51c74466c929f2c1724420198dbc18c6fc8080f8","size":14899,"noattachment":false,"key":"/react-submittable/-/react-submittable-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-submittable/download/react-submittable-1.0.2.tgz"},"directories":{},"publish_time":1443459025102,"_cnpm_publish_time":1443459025102,"_hasShrinkwrap":false},"1.0.1":{"name":"react-submittable","version":"1.0.1","description":"a replacement for preventing the default behavior of forms: allows submission on enter","main":"index.js","scripts":{"test":"jest && coveralls < coverage/lcov.info"},"keywords":["submit","form","element","react"],"author":{"name":"Tom MacWright"},"license":"ISC","devDependencies":{"jest-cli":"^0.4.18","react-tools":"^0.13.3"},"jest":{"scriptPreprocessor":"<rootDir>/preprocessor.js","unmockedModulePathPatterns":["<rootDir>/node_modules/react"],"collectCoverage":true},"dependencies":{"coveralls":"^2.11.4","react":"*"},"repository":{"type":"git","url":"git@github.com:mapbox/react-submittable.git"},"gitHead":"3d4fa03dc6558fcca1af29d23a6571504aec08ef","bugs":{"url":"https://github.com/mapbox/react-submittable/issues"},"homepage":"https://github.com/mapbox/react-submittable","_id":"react-submittable@1.0.1","_shasum":"a0dd549683504e43d8487176d1dd66d0c46e72bf","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"tmcw","email":"tom@macwright.org"},"maintainers":[{"name":"tmcw","email":"tom@macwright.org"}],"dist":{"shasum":"a0dd549683504e43d8487176d1dd66d0c46e72bf","size":14870,"noattachment":false,"key":"/react-submittable/-/react-submittable-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-submittable/download/react-submittable-1.0.1.tgz"},"directories":{},"publish_time":1439570813730,"_cnpm_publish_time":1439570813730,"_hasShrinkwrap":false},"1.0.0":{"name":"react-submittable","version":"1.0.0","description":"a replacement for preventing the default behavior of forms: allows submission on enter","main":"index.js","scripts":{"test":"jest && coveralls < coverage/lcov.info"},"keywords":["submit","form","element","react"],"author":{"name":"Tom MacWright"},"license":"ISC","devDependencies":{"jest-cli":"^0.4.18","react-tools":"^0.13.3"},"jest":{"scriptPreprocessor":"<rootDir>/preprocessor.js","unmockedModulePathPatterns":["<rootDir>/node_modules/react"],"collectCoverage":true},"dependencies":{"coveralls":"^2.11.4","react":"*"},"gitHead":"b77fb79dcae9fe629251f9656b150811719bffa3","_id":"react-submittable@1.0.0","_shasum":"c657bb2727458d703453a03c24b9ae508da08cfb","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"tmcw","email":"tom@macwright.org"},"maintainers":[{"name":"tmcw","email":"tom@macwright.org"}],"dist":{"shasum":"c657bb2727458d703453a03c24b9ae508da08cfb","size":14840,"noattachment":false,"key":"/react-submittable/-/react-submittable-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-submittable/download/react-submittable-1.0.0.tgz"},"directories":{},"publish_time":1439570676550,"_cnpm_publish_time":1439570676550,"_hasShrinkwrap":false}},"readme":"# react-submittable\n\n[![build status](https://secure.travis-ci.org/mapbox/react-submittable.svg)](http://travis-ci.org/mapbox/react-submittable)\n[![Coverage Status](https://coveralls.io/repos/mapbox/react-submittable/badge.svg?branch=master&service=github)](https://coveralls.io/github/mapbox/react-submittable?branch=master)\n\nStop using `preventDefault` to get form behavior in React.\n\n```js\n<Submittable\n  onEnter={this.onEnter}\n  onCancel={this.onCancel}>\n  <input type='text' />\n</Submittable>\n```\n\nThe `Submittable` component simulates the same enter & escape behaviors\nyou would get with the `submit` event of an HTML form, without having to\nshut down the default behavior. It also catches the escape key and calls\nan `onCancel` event when it sees it.\n\n## install\n\n    npm install --save react-submittable\n","_attachments":{},"homepage":"https://github.com/mapbox/react-submittable#readme","bugs":{"url":"https://github.com/mapbox/react-submittable/issues"},"license":"ISC"}