Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

redux-form

Package Overview
Dependencies
Maintainers
1
Versions
236
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redux-form - npm Package Compare versions

Comparing version 1.7.0 to 2.0.0

lib/createAll.js

2

dist/redux-form.min.js

@@ -1,1 +0,1 @@

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.ReduxForm=e(require("react")):t.ReduxForm=e(t.React)}(this,function(t){return function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return t[n].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},i=r(5),a=o(i),s=r(6),c=o(s),f=r(13),l=o(f),d=r(1),p=o(d),v=r(4),h=o(v),y=r(3),m=n(y),g=u({},p.default(u({},m,{initializeWithKey:function(t,e){return h.default(m.initialize,{key:t})(e)}}),function(t){return function(e){for(var r=arguments.length,n=Array(r>1?r-1:0),o=1;r>o;o++)n[o-1]=arguments[o];return h.default(t,{form:e}).apply(void 0,n)}})),b=g.blur,_=g.change,O=g.focus,T=g.initialize,S=g.initializeWithKey,x=g.reset,w=g.startAsyncValidation,A=g.startSubmit,P=g.stopAsyncValidation,j=g.stopSubmit,I=g.touch,M=g.untouch;e.blur=b,e.change=_,e.connectReduxForm=l.default,e.focus=O,e.reducer=a.default,e.initialize=T,e.initializeWithKey=S,e.reset=x,e.startAsyncValidation=w,e.startSubmit=A,e.stopAsyncValidation=P,e.stopSubmit=j,e.touch=I,e.untouch=M,e.default=c.default},function(t,e){"use strict";function r(t,e){return Object.keys(t).reduce(function(r,o){var u;return n({},r,(u={},u[o]=e(t[o],o),u))},{})}e.__esModule=!0;var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};e.default=r,t.exports=e.default},function(t,e){"use strict";e.__esModule=!0;var r="redux-form/BLUR";e.BLUR=r;var n="redux-form/CHANGE";e.CHANGE=n;var o="redux-form/FOCUS";e.FOCUS=o;var u="redux-form/INITIALIZE";e.INITIALIZE=u;var i="redux-form/RESET";e.RESET=i;var a="redux-form/START_ASYNC_VALIDATION";e.START_ASYNC_VALIDATION=a;var s="redux-form/START_SUBMIT";e.START_SUBMIT=s;var c="redux-form/STOP_ASYNC_VALIDATION";e.STOP_ASYNC_VALIDATION=c;var f="redux-form/STOP_SUBMIT";e.STOP_SUBMIT=f;var l="redux-form/TOUCH";e.TOUCH=l;var d="redux-form/UNTOUCH";e.UNTOUCH=d},function(t,e,r){"use strict";function n(t,e){return{type:v.BLUR,field:t,value:e}}function o(t,e){return{type:v.CHANGE,field:t,value:e}}function u(t){return{type:v.FOCUS,field:t}}function i(t){return{type:v.INITIALIZE,data:t}}function a(){return{type:v.RESET}}function s(){return{type:v.START_ASYNC_VALIDATION}}function c(){return{type:v.START_SUBMIT}}function f(t){return{type:v.STOP_ASYNC_VALIDATION,errors:t}}function l(t){return{type:v.STOP_SUBMIT,errors:t}}function d(){for(var t=arguments.length,e=Array(t),r=0;t>r;r++)e[r]=arguments[r];return{type:v.TOUCH,fields:e}}function p(){for(var t=arguments.length,e=Array(t),r=0;t>r;r++)e[r]=arguments[r];return{type:v.UNTOUCH,fields:e}}e.__esModule=!0,e.blur=n,e.change=o,e.focus=u,e.initialize=i,e.reset=a,e.startAsyncValidation=s,e.startSubmit=c,e.stopAsyncValidation=f,e.stopSubmit=l,e.touch=d,e.untouch=p;var v=r(2)},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){return"function"==typeof t?function(){return u({},t.apply(void 0,arguments),e)}:"object"==typeof t?a.default(t,function(t){return o(t,e)}):t}e.__esModule=!0;var u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};e.default=o;var i=r(1),a=n(i);t.exports=e.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){var r={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}function u(){var t,e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=r.form,u=r.key,i=o(r,["form","key"]);if(!n)return e;if(u){var s,c;return a({},e,(c={},c[n]=a({},e[n],(s={},s[u]=p((e[n]||{})[u],i),s)),c))}return a({},e,(t={},t[n]=p(e[n],i),t))}function i(t){return t.plugin=function(t){var e=this;return i(function(){var r=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o=e(r,n);return a({},o,f.default(t,function(t,e){return t(o[e]||l,n)}))})},t.normalize=function(t){var e=this;return i(function(){var r=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o=e(r,n);return a({},o,f.default(t,function(t,e){var n=a({},l,o[e]);return a({},n,f.default(t,function(t,o){return a({},n[o],{value:t(n[o]?n[o].value:void 0,r[e]&&r[e][o]?r[e][o].value:void 0,d(n))})}))}))})},t}e.__esModule=!0;var a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},s=r(2),c=r(1),f=n(c),l={_active:void 0,_asyncValidating:!1,_error:void 0,_submitting:!1};e.initialState=l;var d=function(t){return Object.keys(t).reduce(function(e,r){var n;return"_"===r[0]?e:a({},e,(n={},n[r]=t[r].value,n))},{})},p=function(){var t,e,r,n=arguments.length<=0||void 0===arguments[0]?l:arguments[0],o=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];switch(o.type){case s.BLUR:return a({},n,(t={},t[o.field]=a({},n[o.field],{value:void 0===o.value?(n[o.field]||{}).value:o.value,touched:!(!o.touch&&!(n[o.field]||{}).touched)}),t._active=void 0,t));case s.CHANGE:return a({},n,(e={},e[o.field]=a({},n[o.field],{value:o.value,touched:!(!o.touch&&!(n[o.field]||{}).touched),asyncError:null,submitError:null}),e._error=void 0,e));case s.FOCUS:return a({},n,(r={},r[o.field]=a({},n[o.field],{visited:!0}),r._active=o.field,r));case s.INITIALIZE:return a({},f.default(o.data,function(t){return{initial:t,value:t}}),{_asyncValidating:!1,_active:void 0,_error:void 0,_submitting:!1});case s.RESET:return a({},f.default(n,function(t,e){return"_"===e[0]?t:{initial:t.initial,value:t.initial}}),{_active:void 0,_asyncValidating:!1,_error:void 0,_submitting:!1});case s.START_ASYNC_VALIDATION:return a({},n,{_asyncValidating:!0});case s.START_SUBMIT:return a({},n,{_submitting:!0});case s.STOP_ASYNC_VALIDATION:return a({},n,f.default(o.errors,function(t,e){return a({},n[e],{asyncError:t})}),{_asyncValidating:!1,_error:o.errors._error});case s.STOP_SUBMIT:return a({},n,o.errors?f.default(o.errors,function(t,e){return a({},n[e],{submitError:t})}):{},{_error:o.errors&&o.errors._error,_submitting:!1});case s.TOUCH:return a({},n,o.fields.reduce(function(t,e){var r;return a({},t,(r={},r[e]=a({},n[e],{touched:!0}),r))},{}));case s.UNTOUCH:return a({},n,o.fields.reduce(function(t,e){var r;return a({},t,(r={},r[e]=a({},n[e],{touched:!1}),r))},{}));default:return n}};e.default=i(u)},function(t,e,r){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}function o(t){return t&&t.__esModule?t:{"default":t}}function u(t,e){var r={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){var e=["asyncValidate","handleBlur","handleChange","handleFocus","handleSubmit","onBlur","onChange","onFocus"];return!~e.indexOf(t)}function c(t,e,r){if(t&&t[e]){if(!r)return t[e];if(t[e][r])return t[e][r]}return j.initialState}function f(t,e){if(void 0!==t||!e)return"object"==typeof t&&t.value?t.value:t;if(void 0!==e.nativeEvent&&void 0!==e.nativeEvent.text)return e.nativeEvent.text;if(void 0===e.target)return e;var r=e.target,n=r.type,o=r.value,u=r.checked,i=r.files,a=e.dataTransfer;return"checkbox"===n?u:"file"===n?i||a&&a.files:o}function l(t){return function(e){for(var r=arguments.length,n=Array(r>1?r-1:0),o=1;r>o;o++)n[o-1]=arguments[o];return e&&e.preventDefault?(e.preventDefault(),e.stopPropagation(),t.apply(void 0,n)):t.apply(void 0,[e].concat(n))}}function d(t){return!t||Object.keys(t).reduce(function(e,r){return e&&w.default(t[r])},!0)}function p(t){var e=h({validate:function(){return{}},touchOnBlur:!0,touchOnChange:!1,readonly:!1,asyncValidate:null,asyncBlurFields:[]},t),r=e.form,n=e.fields,o=e.validate,p=e.readonly,g=e.touchOnBlur,_=e.touchOnChange,T=e.asyncValidate,x=e.asyncBlurFields;if(!n||!n.length)throw new Error('No fields passed to redux-form. Must be passed to connectReduxForm({fields: ["my", "field", "names"]})');var A=function(t){return p?Object.keys(t).reduce(function(e,r){var n;return s(r)?h({},e,(n={},n[r]=t[r],n)):e},{}):t};return function(t){return function(e){function s(){i(this,s),e.apply(this,arguments)}return a(s,e),s.prototype.componentWillMount=function(){var t=this.props,e=t.initialValues,r=t.dispatch,n=t.formName,o=t.formKey;if(e){var u=o?P.default(b,{form:n,key:o}):P.default(b,{form:n}),i=u.initialize;r(i(e))}},s.prototype.render=function(){function e(){v(V(p));var t=T(M,v);if(!t||"function"!=typeof t.then)throw new Error("asyncValidate function passed to reduxForm must return a promise!");return t.then(function(t){return v(F(t)),d(t)},function(t){throw v(F({})),new Error("redux-form: Asynchronous validation failed: "+t)})}var r=this,i=this.props,a=i.formName,s=i.form,p=i.formKey,v=i.dispatch,y=u(i,["formName","form","formKey","dispatch"]);if(!a)throw new Error('No form name given to redux-form. Must be passed to connectReduxForm({form: [form name]}) or as a "formName" prop');var O=c(s,a,p),j=!0,I=!0,M=n.reduce(function(t,e){var r;return h({},t,(r={},r[e]=O[e]?O[e].value:void 0,r))},{}),C=p?P.default(b,{form:a,key:p}):P.default(b,{form:a}),E=C.blur,N=C.change,R=C.focus,k=C.initialize,U=C.reset,V=C.startAsyncValidation,B=C.startSubmit,F=C.stopAsyncValidation,D=C.stopSubmit,L=C.touch,z=C.untouch,H=function(t,r){return function(n){var u=f(r,n),i=P.default(E,{touch:g});if(v(i(t,u)),T&&~x.indexOf(t)){var a,s=o(h({},M,(a={},a[t]=u,a)))[t];s||e()}}},W=function(t){return function(){v(R(t))}},q=function(t,e){return function(r){var n=P.default(N,{touch:_});v(n(t,f(e,r)))}},Y=function(t){var o=function(t){return function(r){r&&r.preventDefault&&(r.preventDefault(),r.stopPropagation());var o=function(){var e=t(M);return e&&"function"==typeof e.then?(v(B()),e.then(function(t){return v(D()),t},function(t){return v(D(t)),t})):void 0};return v(L.apply(void 0,n)),j?T?e().then(function(t){return j&&t?o(M):void 0}):o(M):void 0}};if("function"==typeof t)return o(t);var u=r.props.onSubmit;if(!u)throw new Error("You must either pass handleSubmit() an onSubmit function or pass onSubmit as a prop");o(u)(t)},K=o(M),G=n.reduce(function(t,e){var r,n=O[e]||{},o=S.default(n.value,n.initial),u=K[e]||n.asyncError||n.submitError,i=w.default(u),a=H(e),s=q(e),c=W(e);return i||(j=!1),o||(I=!1),h({},t,(r={},r[e]=A({active:O._active===e,checked:"boolean"==typeof n.value?n.value:void 0,dirty:!o,error:u,handleBlur:a,handleChange:s,handleFocus:c,invalid:!i,name:e,onBlur:a,onChange:s,onFocus:c,onUpdate:s,pristine:o,touched:n.touched,valid:i,value:n.value,visited:n.visited}),r))},{}),Z=K._error||O._error;return Z&&(j=!1),m.default.createElement(t,h({active:O._active,asyncValidating:O._asyncValidating,dirty:!I,error:Z,fields:G,formKey:p,invalid:!j,pristine:I,submitting:O._submitting,valid:j,values:M,asyncValidate:l(e),handleBlur:l(H),handleChange:l(q),handleFocus:W,handleSubmit:l(Y),initializeForm:l(function(t){return v(k(t))}),resetForm:l(function(){return v(U())}),touch:l(function(){return v(L.apply(void 0,arguments))}),touchAll:l(function(){return v(L.apply(void 0,n))}),untouch:l(function(){return v(z.apply(void 0,arguments))}),untouchAll:l(function(){return v(z.apply(void 0,n))}),dispatch:v},y))},v(s,null,[{key:"displayName",value:"ReduxForm("+O.default(t)+")",enumerable:!0},{key:"DecoratedComponent",value:t,enumerable:!0},{key:"propTypes",value:{formName:y.PropTypes.string,formKey:y.PropTypes.string,form:y.PropTypes.object,onSubmit:y.PropTypes.func,dispatch:y.PropTypes.func.isRequired,initialValues:y.PropTypes.object},enumerable:!0},{key:"defaultProps",value:{formName:r},enumerable:!0}]),s}(y.Component)}}e.__esModule=!0;var v=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),h=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};e.default=p;var y=r(12),m=o(y),g=r(3),b=n(g),_=r(14),O=o(_),T=r(15),S=o(T),x=r(16),w=o(x),A=r(4),P=o(A),j=r(5);t.exports=e.default},function(t,e){"use strict";function r(t){return t.shape({subscribe:t.func.isRequired,dispatch:t.func.isRequired,getState:t.func.isRequired})}e.__esModule=!0,e.default=r,t.exports=e.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){function r(){return c}function n(t){return f.push(t),function(){var e=f.indexOf(t);f.splice(e,1)}}function o(t){if(!i.default(t))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(l)throw new Error("Reducers may not dispatch actions.");try{l=!0,c=s(c,t)}finally{l=!1}return f.slice().forEach(function(t){return t()}),t}function u(t){s=t,o({type:a.INIT})}if("function"!=typeof t)throw new Error("Expected the reducer to be a function.");var s=t,c=e,f=[],l=!1;return o({type:a.INIT}),{dispatch:o,subscribe:n,getState:r,replaceReducer:u}}e.__esModule=!0,e.default=o;var u=r(10),i=n(u),a={INIT:"@@redux/INIT"};e.ActionTypes=a},function(t,e){"use strict";function r(){for(var t=arguments.length,e=Array(t),r=0;t>r;r++)e[r]=arguments[r];return function(t){return e.reduceRight(function(t,e){return e(t)},t)}}e.__esModule=!0,e.default=r,t.exports=e.default},function(t,e){"use strict";function r(t){if(!t||"object"!=typeof t)return!1;var e="function"==typeof t.constructor?Object.getPrototypeOf(t):Object.prototype;if(null===e)return!0;var r=e.constructor;return"function"==typeof r&&r instanceof r&&n(r)===n(Object)}e.__esModule=!0,e.default=r;var n=function(t){return Function.prototype.toString.call(t)};t.exports=e.default},function(t,e){"use strict";function r(t,e){return Object.keys(t).reduce(function(r,n){return r[n]=e(t[n],n),r},{})}e.__esModule=!0,e.default=r,t.exports=e.default},function(e,r){e.exports=t},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(){for(var t=arguments.length,e=Array(t),r=0;t>r;r++)e[r]=arguments[r];return function(t){return e.reduce(function(t,e){return e(t)},t)}}function u(){return o(s.default.apply(void 0,arguments),c)}e.__esModule=!0,e.default=u;var i=r(20),a=r(6),s=n(a),c=i.connect(function(t){return{form:t.form}});t.exports=e.default},function(t,e){"use strict";function r(t){return t.displayName||t.name||"Component"}e.__esModule=!0,e.default=r,t.exports=e.default},function(t,e){"use strict";function r(t,e){if(t===e)return!0;if(t&&"object"==typeof t){if(!e||"object"!=typeof e)return!1;for(var n=Object.keys(e),o=0;o<n.length;o++){var u=n[o];if(!r(t[u],e[u]))return!1}}else if(t||e)return t===e;return!0}e.__esModule=!0,e.default=r,t.exports=e.default},function(t,e){"use strict";function r(t){return Array.isArray(t)?t.reduce(function(t,e){return t&&r(e)},!0):!t}e.__esModule=!0,e.default=r,t.exports=e.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){var e=i.default(t),r=s.default(t);return{Provider:e,connect:r}}e.__esModule=!0,e.default=o;var u=r(19),i=n(u),a=r(18),s=n(a);t.exports=e.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function i(t){return t.displayName||t.name||"Component"}function a(t){var e=t.Component,r=t.PropTypes,n=l.default(r);return function(r,a,f){function l(t,e){var r=t.getState(),n=P?x(r,e):x(r);return b.default(h.default(n),"`mapStateToProps` must return an object. Instead received %s.",n),n}function d(t,e){var r=t.dispatch,n=j?w(r,e):w(r);return b.default(h.default(n),"`mapDispatchToProps` must return an object. Instead received %s.",n),n}function v(t,e,r){var n=A(t,e,r);return b.default(h.default(n),"`mergeProps` must return an object. Instead received %s.",n),n}var y=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],g=Boolean(r),x=r||_,w=h.default(a)?m.default(a):a||O,A=f||T,P=x.length>1,j=w.length>1,I=y.pure,M=void 0===I?!0:I,C=S++;return function(r){var a=function(e){function a(t,r){o(this,a),e.call(this,t,r),this.version=C,this.store=t.store||r.store,b.default(this.store,'Could not find "store" in either the context or '+('props of "'+this.constructor.displayName+'". ')+"Either wrap the root component in a <Provider>, "+('or explicitly pass "store" as a prop to "'+this.constructor.displayName+'".')),this.stateProps=l(this.store,t),this.dispatchProps=d(this.store,t),this.state={props:this.computeNextState()}}return u(a,e),a.prototype.shouldComponentUpdate=function(t,e){return!M||!p.default(this.state.props,e.props)},s(a,null,[{key:"displayName",value:"Connect("+i(r)+")",enumerable:!0},{key:"WrappedComponent",value:r,enumerable:!0},{key:"contextTypes",value:{store:n},enumerable:!0},{key:"propTypes",value:{store:n},enumerable:!0}]),a.prototype.computeNextState=function(){var t=arguments.length<=0||void 0===arguments[0]?this.props:arguments[0];return v(this.stateProps,this.dispatchProps,t)},a.prototype.updateStateProps=function(){var t=arguments.length<=0||void 0===arguments[0]?this.props:arguments[0],e=l(this.store,t);return p.default(e,this.stateProps)?!1:(this.stateProps=e,!0)},a.prototype.updateDispatchProps=function(){var t=arguments.length<=0||void 0===arguments[0]?this.props:arguments[0],e=d(this.store,t);return p.default(e,this.dispatchProps)?!1:(this.dispatchProps=e,!0)},a.prototype.updateState=function(){var t=arguments.length<=0||void 0===arguments[0]?this.props:arguments[0],e=this.computeNextState(t);p.default(e,this.state.props)||this.setState({props:e})},a.prototype.isSubscribed=function(){return"function"==typeof this.unsubscribe},a.prototype.trySubscribe=function(){g&&!this.unsubscribe&&(this.unsubscribe=this.store.subscribe(this.handleChange.bind(this)),this.handleChange())},a.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},a.prototype.componentDidMount=function(){this.trySubscribe()},a.prototype.componentWillReceiveProps=function(t){p.default(t,this.props)||(P&&this.updateStateProps(t),j&&this.updateDispatchProps(t),this.updateState(t))},a.prototype.componentWillUnmount=function(){this.tryUnsubscribe()},a.prototype.handleChange=function(){this.unsubscribe&&this.updateStateProps()&&this.updateState()},a.prototype.getWrappedInstance=function(){return this.refs.wrappedInstance},a.prototype.render=function(){return t.createElement(r,c({ref:"wrappedInstance"},this.state.props))},a}(e);return a}}}e.__esModule=!0;var s=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};e.default=a;var f=r(7),l=n(f),d=r(22),p=n(d),v=r(21),h=n(v),y=r(23),m=n(y),g=r(24),b=n(g),_=function(){return{}},O=function(t){return{dispatch:t}},T=function(t,e,r){return c({},r,t,e)},S=0;t.exports=e.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function i(t){var e=t.version;if("string"!=typeof e)return!0;var r=e.split("."),n=parseInt(r[0],10),o=parseInt(r[1],10);return 0===n&&13===o}function a(t){function e(){v||p||(v=!0,console.error("With React 0.14 and later versions, you no longer need to wrap <Provider> child into a function."))}function r(){!v&&p&&(v=!0,console.error("With React 0.13, you need to wrap <Provider> child into a function. This restriction will be removed with React 0.14."))}function n(){h||(h=!0,console.error("<Provider> does not support changing `store` on the fly. It is most likely that you see this error because you updated to Redux 2.x and React Redux 2.x which no longer hot reload reducers automatically. See https://github.com/rackt/react-redux/releases/tag/v2.0.0 for the migration instructions."))}var a=t.Component,c=t.PropTypes,l=t.Children,d=f.default(c),p=i(t),v=!1,h=!1;return function(t){function i(e,r){o(this,i),t.call(this,e,r),this.store=e.store}return u(i,t),i.prototype.getChildContext=function(){return{store:this.store}},s(i,null,[{key:"childContextTypes",value:{store:d.isRequired},enumerable:!0},{key:"propTypes",value:{store:d.isRequired,children:(p?c.func:c.element).isRequired},enumerable:!0}]),i.prototype.componentWillReceiveProps=function(t){var e=this.store,r=t.store;e!==r&&n()},i.prototype.render=function(){var t=this.props.children;return"function"==typeof t?(e(),t=t()):r(),l.only(t)},i}(a)}e.__esModule=!0;var s=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();e.default=a;var c=r(7),f=n(c);t.exports=e.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=r(12),u=n(o),i=r(17),a=n(i),s=a.default(u.default),c=s.Provider,f=s.connect;e.Provider=c,e.connect=f},function(t,e){"use strict";function r(t){if(!t||"object"!=typeof t)return!1;var e="function"==typeof t.constructor?Object.getPrototypeOf(t):Object.prototype;if(null===e)return!0;var r=e.constructor;return"function"==typeof r&&r instanceof r&&n(r)===n(Object)}e.__esModule=!0,e.default=r;var n=function(t){return Function.prototype.toString.call(t)};t.exports=e.default},function(t,e){"use strict";function r(t,e){if(t===e)return!0;var r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(var o=Object.prototype.hasOwnProperty,u=0;u<r.length;u++)if(!o.call(e,r[u])||t[r[u]]!==e[r[u]])return!1;return!0}e.__esModule=!0,e.default=r,t.exports=e.default},function(t,e,r){"use strict";function n(t){return function(e){return o.bindActionCreators(t,e)}}e.__esModule=!0,e.default=n;var o=r(25);t.exports=e.default},function(t,e,r){"use strict";var n=function(t,e,r,n,o,u,i,a){if(!t){var s;if(void 0===e)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,n,o,u,i,a],f=0;s=new Error("Invariant Violation: "+e.replace(/%s/g,function(){return c[f++]}))}throw s.framesToPop=1,s}};t.exports=n},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=r(8),u=n(o),i=r(28),a=n(i),s=r(27),c=n(s),f=r(26),l=n(f),d=r(9),p=n(d);e.createStore=u.default,e.combineReducers=a.default,e.bindActionCreators=c.default,e.applyMiddleware=l.default,e.compose=p.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(){for(var t=arguments.length,e=Array(t),r=0;t>r;r++)e[r]=arguments[r];return function(t){return function(r,n){var o=t(r,n),i=o.dispatch,s=[],c={getState:o.getState,dispatch:function(t){return i(t)}};return s=e.map(function(t){return t(c)}),i=a.default.apply(void 0,s)(o.dispatch),u({},o,{dispatch:i})}}}e.__esModule=!0;var u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};e.default=o;var i=r(9),a=n(i);t.exports=e.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){return function(){return e(t.apply(void 0,arguments))}}function u(t,e){if("function"==typeof t)return o(t,e);if("object"!=typeof t||null==t)throw new Error("bindActionCreators expected an object or a function, instead received "+typeof t+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');return a.default(t,function(t){return o(t,e)})}e.__esModule=!0,e.default=u;var i=r(11),a=n(i);t.exports=e.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){var r=e&&e.type,n=r&&'"'+r.toString()+'"'||"an action";return'Reducer "'+t+'" returned undefined handling '+n+". To ignore an action, you must explicitly return the previous state."}function u(t){var e=l.default(t,function(t){return"function"==typeof t});Object.keys(e).forEach(function(t){var r=e[t];if("undefined"==typeof r(void 0,{type:i.ActionTypes.INIT}))throw new Error('Reducer "'+t+'" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined.');var n=Math.random().toString(36).substring(7).split("").join(".");if("undefined"==typeof r(void 0,{type:n}))throw new Error('Reducer "'+t+'" returned undefined when probed with a random type. '+("Don't try to handle "+i.ActionTypes.INIT+' or other actions in "redux/*" ')+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined.")});var r=c.default(e,function(){return void 0});return function(t,n){void 0===t&&(t=r);var u=c.default(e,function(e,r){var u=e(t[r],n);if("undefined"==typeof u)throw new Error(o(r,n));return u});return u}}e.__esModule=!0,e.default=u;var i=r(8),a=r(10),s=(n(a),r(11)),c=n(s),f=r(29),l=n(f);t.exports=e.default},function(t,e){"use strict";function r(t,e){return Object.keys(t).reduce(function(r,n){return e(t[n])&&(r[n]=t[n]),r},{})}e.__esModule=!0,e.default=r,t.exports=e.default}])});
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.ReduxForm=e(require("react")):t.ReduxForm=e(t.React)}(this,function(t){return function(t){function e(n){if(r[n])return r[n].exports;var u=r[n]={exports:{},id:n,loaded:!1};return t[n].call(u.exports,u,u.exports,e),u.loaded=!0,u.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var u=r(12),o=n(u),i=r(13),a=n(i),s=a.default(!1,o.default),c=s.blur,f=s.change,l=s.connectReduxForm,d=s.focus,p=s.reducer,v=s.reduxForm,h=s.initialize,y=s.initializeWithKey,m=s.reset,g=s.startAsyncValidation,b=s.startSubmit,_=s.stopAsyncValidation,O=s.stopSubmit,S=s.touch,x=s.untouch;e.blur=c,e.change=f,e.connectReduxForm=l,e.focus=d,e.reducer=p,e.reduxForm=v,e.initialize=h,e.initializeWithKey=y,e.reset=m,e.startAsyncValidation=g,e.startSubmit=b,e.stopAsyncValidation=_,e.stopSubmit=O,e.touch=S,e.untouch=x},function(t,e){"use strict";function r(t,e){return Object.keys(t).reduce(function(r,u){var o;return n({},r,(o={},o[u]=e(t[u],u),o))},{})}e.__esModule=!0;var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};e.default=r,t.exports=e.default},function(t,e){"use strict";e.__esModule=!0;var r="redux-form/BLUR";e.BLUR=r;var n="redux-form/CHANGE";e.CHANGE=n;var u="redux-form/FOCUS";e.FOCUS=u;var o="redux-form/INITIALIZE";e.INITIALIZE=o;var i="redux-form/RESET";e.RESET=i;var a="redux-form/START_ASYNC_VALIDATION";e.START_ASYNC_VALIDATION=a;var s="redux-form/START_SUBMIT";e.START_SUBMIT=s;var c="redux-form/STOP_ASYNC_VALIDATION";e.STOP_ASYNC_VALIDATION=c;var f="redux-form/STOP_SUBMIT";e.STOP_SUBMIT=f;var l="redux-form/TOUCH";e.TOUCH=l;var d="redux-form/UNTOUCH";e.UNTOUCH=d},function(t,e,r){"use strict";function n(t,e){return{type:v.BLUR,field:t,value:e}}function u(t,e){return{type:v.CHANGE,field:t,value:e}}function o(t){return{type:v.FOCUS,field:t}}function i(t){return{type:v.INITIALIZE,data:t}}function a(){return{type:v.RESET}}function s(){return{type:v.START_ASYNC_VALIDATION}}function c(){return{type:v.START_SUBMIT}}function f(t){return{type:v.STOP_ASYNC_VALIDATION,errors:t}}function l(t){return{type:v.STOP_SUBMIT,errors:t}}function d(){for(var t=arguments.length,e=Array(t),r=0;t>r;r++)e[r]=arguments[r];return{type:v.TOUCH,fields:e}}function p(){for(var t=arguments.length,e=Array(t),r=0;t>r;r++)e[r]=arguments[r];return{type:v.UNTOUCH,fields:e}}e.__esModule=!0,e.blur=n,e.change=u,e.focus=o,e.initialize=i,e.reset=a,e.startAsyncValidation=s,e.startSubmit=c,e.stopAsyncValidation=f,e.stopSubmit=l,e.touch=d,e.untouch=p;var v=r(2)},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function u(t,e){return"function"==typeof t?function(){return o({},t.apply(void 0,arguments),e)}:"object"==typeof t?a.default(t,function(t){return u(t,e)}):t}e.__esModule=!0;var o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};e.default=u;var i=r(1),a=n(i);t.exports=e.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function u(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}function o(t,e){var r={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){var e=["asyncValidate","handleBlur","handleChange","handleFocus","handleSubmit","onBlur","onChange","onFocus"];return!~e.indexOf(t)}function c(t,e,r){if(t&&t[e]){if(!r)return t[e];if(t[e][r])return t[e][r]}return w.initialState}function f(t){return function(e){for(var r=arguments.length,n=Array(r>1?r-1:0),u=1;r>u;u++)n[u-1]=arguments[u];return e&&e.preventDefault?(e.preventDefault(),e.stopPropagation(),t.apply(void 0,n)):t.apply(void 0,[e].concat(n))}}function l(t){return!t||Object.keys(t).reduce(function(e,r){return e&&S.default(t[r])},!0)}function d(t,e){function r(e,r){if(void 0!==e||!r)return"object"==typeof e&&e.value?e.value:e;if(!t&&void 0!==r.nativeEvent&&void 0!==r.nativeEvent.text)return r.nativeEvent.text;if(t&&void 0!==r.nativeEvent)return r.nativeEvent.text;if(void 0===r.target)return r;var n=r.target,u=n.type,o=n.value,i=n.checked,a=n.files,s=r.dataTransfer;return"checkbox"===u?i:"file"===u?a||s&&s.files:o}var n=e.Component,u=e.PropTypes;return function(t){var d=v({validate:function(){return{}},touchOnBlur:!0,touchOnChange:!1,readonly:!1,asyncValidate:null,asyncBlurFields:[]},t),h=d.form,m=d.fields,b=d.validate,O=d.readonly,x=d.touchOnBlur,w=d.touchOnChange,A=d.asyncValidate,j=d.asyncBlurFields;if(!m||!m.length)throw new Error('No fields passed to redux-form. Must be passed to connectReduxForm({fields: ["my", "field", "names"]})');var I=function(t){return O?Object.keys(t).reduce(function(e,r){var n;return s(r)?v({},e,(n={},n[r]=t[r],n)):e},{}):t};return function(t){return function(n){function s(){i(this,s),n.apply(this,arguments)}return a(s,n),s.prototype.componentWillMount=function(){var t=this.props,e=t.initialValues,r=t.dispatch,n=t.formName,u=t.formKey;if(e){var o=u?T.default(y,{form:n,key:u}):T.default(y,{form:n}),i=o.initialize;r(i(e))}},s.prototype.render=function(){function n(){p(k(d));var t=A(M,p);if(!t||"function"!=typeof t.then)throw new Error("asyncValidate function passed to reduxForm must return a promise!");return t.then(function(t){return p(B(t)),l(t)},function(t){throw p(B({})),new Error("redux-form: Asynchronous validation failed: "+t)})}var u=this,i=this.props,a=i.formName,s=i.form,d=i.formKey,p=i.dispatch,h=o(i,["formName","form","formKey","dispatch"]);if(!a)throw new Error('No form name given to redux-form. Must be passed to connectReduxForm({form: [form name]}) or as a "formName" prop');var g=c(s,a,d),O=!0,P=!0,M=m.reduce(function(t,e){var r;return v({},t,(r={},r[e]=g[e]?g[e].value:void 0,r))},{}),C=d?T.default(y,{form:a,key:d}):T.default(y,{form:a}),E=C.blur,N=C.change,R=C.focus,U=C.initialize,V=C.reset,k=C.startAsyncValidation,F=C.startSubmit,B=C.stopAsyncValidation,D=C.stopSubmit,z=C.touch,L=C.untouch,H=function(t,e){return function(u){var o=r(e,u),i=T.default(E,{touch:x});if(p(i(t,o)),A&&~j.indexOf(t)){var a,s=b(v({},M,(a={},a[t]=o,a)))[t];s||n()}}},W=function(t){return function(){p(R(t))}},K=function(t,e){return function(n){var u=T.default(N,{touch:w});p(u(t,r(e,n)))}},q=function(t){var e=function(t){return function(e){e&&e.preventDefault&&(e.preventDefault(),e.stopPropagation());var r=function(){var e=t(M);return e&&"function"==typeof e.then?(p(F()),e.then(function(t){return p(D()),t},function(t){return p(D(t)),t})):void 0};return p(z.apply(void 0,m)),O?A?n().then(function(t){return O&&t?r(M):void 0}):r(M):void 0}};if("function"==typeof t)return e(t);var r=u.props.onSubmit;if(!r)throw new Error("You must either pass handleSubmit() an onSubmit function or pass onSubmit as a prop");e(r)(t)},Y=b(M),G=m.reduce(function(t,e){var r,n=g[e]||{},u=_.default(n.value,n.initial),o=Y[e]||n.asyncError||n.submitError,i=S.default(o),a=H(e),s=K(e),c=W(e);return i||(O=!1),u||(P=!1),v({},t,(r={},r[e]=I({active:g._active===e,checked:"boolean"==typeof n.value?n.value:void 0,dirty:!u,error:o,handleBlur:a,handleChange:s,handleFocus:c,invalid:!i,name:e,onBlur:a,onChange:s,onFocus:c,onUpdate:s,pristine:u,touched:n.touched,valid:i,value:n.value,visited:n.visited}),r))},{}),Z=Y._error||g._error;return Z&&(O=!1),e.createElement(t,v({active:g._active,asyncValidating:g._asyncValidating,dirty:!P,error:Z,fields:G,formKey:d,invalid:!O,pristine:P,submitting:g._submitting,valid:O,values:M,asyncValidate:f(n),handleBlur:f(H),handleChange:f(K),handleFocus:W,handleSubmit:f(q),initializeForm:f(function(t){return p(U(t))}),resetForm:f(function(){return p(V())}),touch:f(function(){return p(z.apply(void 0,arguments))}),touchAll:f(function(){return p(z.apply(void 0,m))}),untouch:f(function(){return p(L.apply(void 0,arguments))}),untouchAll:f(function(){return p(L.apply(void 0,m))}),dispatch:p},h))},p(s,null,[{key:"displayName",value:"ReduxForm("+g.default(t)+")",enumerable:!0},{key:"DecoratedComponent",value:t,enumerable:!0},{key:"propTypes",value:{formName:u.string,formKey:u.string,form:u.object,onSubmit:u.func,dispatch:u.func.isRequired,initialValues:u.object},enumerable:!0},{key:"defaultProps",value:{formName:h},enumerable:!0}]),s}(n)}}}e.__esModule=!0;var p=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),v=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};e.default=d;var h=r(3),y=u(h),m=r(15),g=n(m),b=r(16),_=n(b),O=r(17),S=n(O),x=r(4),T=n(x),w=r(6);t.exports=e.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function u(t,e){var r={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}function o(){var t,e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=r.form,o=r.key,i=u(r,["form","key"]);if(!n)return e;if(o){var s,c;return a({},e,(c={},c[n]=a({},e[n],(s={},s[o]=p((e[n]||{})[o],i),s)),c))}return a({},e,(t={},t[n]=p(e[n],i),t))}function i(t){return t.plugin=function(t){var e=this;return i(function(){var r=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],u=e(r,n);return a({},u,f.default(t,function(t,e){return t(u[e]||l,n)}))})},t.normalize=function(t){var e=this;return i(function(){var r=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],u=e(r,n);return a({},u,f.default(t,function(t,e){var n=a({},l,u[e]);return a({},n,f.default(t,function(t,u){return a({},n[u],{value:t(n[u]?n[u].value:void 0,r[e]&&r[e][u]?r[e][u].value:void 0,d(n))})}))}))})},t}e.__esModule=!0;var a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},s=r(2),c=r(1),f=n(c),l={_active:void 0,_asyncValidating:!1,_error:void 0,_submitting:!1};e.initialState=l;var d=function(t){return Object.keys(t).reduce(function(e,r){var n;return"_"===r[0]?e:a({},e,(n={},n[r]=t[r].value,n))},{})},p=function(){var t,e,r,n=arguments.length<=0||void 0===arguments[0]?l:arguments[0],u=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];switch(u.type){case s.BLUR:return a({},n,(t={},t[u.field]=a({},n[u.field],{value:void 0===u.value?(n[u.field]||{}).value:u.value,touched:!(!u.touch&&!(n[u.field]||{}).touched)}),t._active=void 0,t));case s.CHANGE:return a({},n,(e={},e[u.field]=a({},n[u.field],{value:u.value,touched:!(!u.touch&&!(n[u.field]||{}).touched),asyncError:null,submitError:null}),e._error=void 0,e));case s.FOCUS:return a({},n,(r={},r[u.field]=a({},n[u.field],{visited:!0}),r._active=u.field,r));case s.INITIALIZE:return a({},f.default(u.data,function(t){return{initial:t,value:t}}),{_asyncValidating:!1,_active:void 0,_error:void 0,_submitting:!1});case s.RESET:return a({},f.default(n,function(t,e){return"_"===e[0]?t:{initial:t.initial,value:t.initial}}),{_active:void 0,_asyncValidating:!1,_error:void 0,_submitting:!1});case s.START_ASYNC_VALIDATION:return a({},n,{_asyncValidating:!0});case s.START_SUBMIT:return a({},n,{_submitting:!0});case s.STOP_ASYNC_VALIDATION:return a({},n,f.default(u.errors,function(t,e){return a({},n[e],{asyncError:t})}),{_asyncValidating:!1,_error:u.errors._error});case s.STOP_SUBMIT:return a({},n,u.errors?f.default(u.errors,function(t,e){return a({},n[e],{submitError:t})}):{},{_error:u.errors&&u.errors._error,_submitting:!1});case s.TOUCH:return a({},n,u.fields.reduce(function(t,e){var r;return a({},t,(r={},r[e]=a({},n[e],{touched:!0}),r))},{}));case s.UNTOUCH:return a({},n,u.fields.reduce(function(t,e){var r;return a({},t,(r={},r[e]=a({},n[e],{touched:!1}),r))},{}));default:return n}};e.default=i(o)},function(t,e){"use strict";function r(t){return t.shape({subscribe:t.func.isRequired,dispatch:t.func.isRequired,getState:t.func.isRequired})}e.__esModule=!0,e.default=r,t.exports=e.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function u(t,e){function r(){return c}function n(t){return f.push(t),function(){var e=f.indexOf(t);f.splice(e,1)}}function u(t){if(!i.default(t))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"==typeof t.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(l)throw new Error("Reducers may not dispatch actions.");try{l=!0,c=s(c,t)}finally{l=!1}return f.slice().forEach(function(t){return t()}),t}function o(t){s=t,u({type:a.INIT})}if("function"!=typeof t)throw new Error("Expected the reducer to be a function.");var s=t,c=e,f=[],l=!1;return u({type:a.INIT}),{dispatch:u,subscribe:n,getState:r,replaceReducer:o}}e.__esModule=!0,e.default=u;var o=r(10),i=n(o),a={INIT:"@@redux/INIT"};e.ActionTypes=a},function(t,e){"use strict";function r(){for(var t=arguments.length,e=Array(t),r=0;t>r;r++)e[r]=arguments[r];return function(t){return e.reduceRight(function(t,e){return e(t)},t)}}e.__esModule=!0,e.default=r,t.exports=e.default},function(t,e){"use strict";function r(t){if(!t||"object"!=typeof t)return!1;var e="function"==typeof t.constructor?Object.getPrototypeOf(t):Object.prototype;if(null===e)return!0;var r=e.constructor;return"function"==typeof r&&r instanceof r&&n(r)===n(Object)}e.__esModule=!0,e.default=r;var n=function(t){return Function.prototype.toString.call(t)};t.exports=e.default},function(t,e){"use strict";function r(t,e){return Object.keys(t).reduce(function(r,n){return r[n]=e(t[n],n),r},{})}e.__esModule=!0,e.default=r,t.exports=e.default},function(e,r){e.exports=t},function(t,e,r){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}function u(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){return{blur:_,change:O,connectReduxForm:d.default(t,e),focus:S,reducer:s.default,initialize:x,initializeWithKey:T,reduxForm:f.default(t,e),reset:w,startAsyncValidation:A,startSubmit:j,stopAsyncValidation:I,stopSubmit:P,touch:M,untouch:C}}e.__esModule=!0;var i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};e.default=o;var a=r(6),s=u(a),c=r(5),f=u(c),l=r(14),d=u(l),p=r(1),v=u(p),h=r(4),y=u(h),m=r(3),g=n(m),b=i({},v.default(i({},g,{initializeWithKey:function(t,e){return y.default(g.initialize,{key:t})(e)}}),function(t){return function(e){for(var r=arguments.length,n=Array(r>1?r-1:0),u=1;r>u;u++)n[u-1]=arguments[u];return y.default(t,{form:e}).apply(void 0,n)}})),_=b.blur,O=b.change,S=b.focus,x=b.initialize,T=b.initializeWithKey,w=b.reset,A=b.startAsyncValidation,j=b.startSubmit,I=b.stopAsyncValidation,P=b.stopSubmit,M=b.touch,C=b.untouch;t.exports=e.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function u(){for(var t=arguments.length,e=Array(t),r=0;t>r;r++)e[r]=arguments[r];return function(t){return e.reduce(function(t,e){return e(t)},t)}}function o(t,e){var r=s.default(t,e);return function(){return u(r.apply(void 0,arguments),c)}}e.__esModule=!0,e.default=o;var i=r(21),a=r(5),s=n(a),c=i.connect(function(t){return{form:t.form}});t.exports=e.default},function(t,e){"use strict";function r(t){return t.displayName||t.name||"Component"}e.__esModule=!0,e.default=r,t.exports=e.default},function(t,e){"use strict";function r(t,e){if(t===e)return!0;if(t&&"object"==typeof t){if(!e||"object"!=typeof e)return!1;for(var n=Object.keys(e),u=0;u<n.length;u++){var o=n[u];if(!r(t[o],e[o]))return!1}}else if(t||e)return t===e;return!0}e.__esModule=!0,e.default=r,t.exports=e.default},function(t,e){"use strict";function r(t){return Array.isArray(t)?t.reduce(function(t,e){return t&&r(e)},!0):!t}e.__esModule=!0,e.default=r,t.exports=e.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function u(t){var e=i.default(t),r=s.default(t);return{Provider:e,connect:r}}e.__esModule=!0,e.default=u;var o=r(20),i=n(o),a=r(19),s=n(a);t.exports=e.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function i(t){return t.displayName||t.name||"Component"}function a(t){var e=t.Component,r=t.PropTypes,n=l.default(r);return function(r,a,f){function l(t,e){var r=t.getState(),n=j?T(r,e):T(r);return b.default(h.default(n),"`mapStateToProps` must return an object. Instead received %s.",n),n}function d(t,e){var r=t.dispatch,n=I?w(r,e):w(r);return b.default(h.default(n),"`mapDispatchToProps` must return an object. Instead received %s.",n),n}function v(t,e,r){var n=A(t,e,r);return b.default(h.default(n),"`mergeProps` must return an object. Instead received %s.",n),n}var y=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],g=Boolean(r),T=r||_,w=h.default(a)?m.default(a):a||O,A=f||S,j=T.length>1,I=w.length>1,P=y.pure,M=void 0===P?!0:P,C=x++;return function(r){var a=function(e){function a(t,r){u(this,a),e.call(this,t,r),this.version=C,this.store=t.store||r.store,b.default(this.store,'Could not find "store" in either the context or '+('props of "'+this.constructor.displayName+'". ')+"Either wrap the root component in a <Provider>, "+('or explicitly pass "store" as a prop to "'+this.constructor.displayName+'".')),this.stateProps=l(this.store,t),this.dispatchProps=d(this.store,t),this.state={storeState:null},this.updateState()}return o(a,e),a.prototype.shouldComponentUpdate=function(t,e){if(!M)return this.updateStateProps(t),this.updateDispatchProps(t),this.updateState(t),!0;var r=e.storeState!==this.state.storeState,n=!p.default(t,this.props),u=!1,o=!1;return(r||n&&j)&&(u=this.updateStateProps(t)),n&&I&&(o=this.updateDispatchProps(t)),n||u||o?(this.updateState(t),!0):!1},s(a,null,[{key:"displayName",value:"Connect("+i(r)+")",enumerable:!0},{key:"WrappedComponent",value:r,enumerable:!0},{key:"contextTypes",value:{store:n},enumerable:!0},{key:"propTypes",value:{store:n},enumerable:!0}]),a.prototype.computeNextState=function(){var t=arguments.length<=0||void 0===arguments[0]?this.props:arguments[0];return v(this.stateProps,this.dispatchProps,t)},a.prototype.updateStateProps=function(){var t=arguments.length<=0||void 0===arguments[0]?this.props:arguments[0],e=l(this.store,t);return p.default(e,this.stateProps)?!1:(this.stateProps=e,!0)},a.prototype.updateDispatchProps=function(){var t=arguments.length<=0||void 0===arguments[0]?this.props:arguments[0],e=d(this.store,t);return p.default(e,this.dispatchProps)?!1:(this.dispatchProps=e,!0)},a.prototype.updateState=function(){var t=arguments.length<=0||void 0===arguments[0]?this.props:arguments[0];this.nextState=this.computeNextState(t)},a.prototype.isSubscribed=function(){return"function"==typeof this.unsubscribe},a.prototype.trySubscribe=function(){g&&!this.unsubscribe&&(this.unsubscribe=this.store.subscribe(this.handleChange.bind(this)),this.handleChange())},a.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},a.prototype.componentDidMount=function(){this.trySubscribe()},a.prototype.componentWillUnmount=function(){this.tryUnsubscribe()},a.prototype.handleChange=function(){this.unsubscribe&&this.setState({storeState:this.store.getState()})},a.prototype.getWrappedInstance=function(){return this.refs.wrappedInstance},a.prototype.render=function(){return t.createElement(r,c({ref:"wrappedInstance"},this.nextState))},a}(e);return a}}}e.__esModule=!0;var s=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};e.default=a;var f=r(7),l=n(f),d=r(23),p=n(d),v=r(22),h=n(v),y=r(24),m=n(y),g=r(25),b=n(g),_=function(){return{}},O=function(t){return{dispatch:t}},S=function(t,e,r){return c({},r,t,e)},x=0;t.exports=e.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function i(t){var e=t.version;if("string"!=typeof e)return!0;var r=e.split("."),n=parseInt(r[0],10),u=parseInt(r[1],10);return 0===n&&13===u}function a(t){function e(){v||p||(v=!0,console.error("With React 0.14 and later versions, you no longer need to wrap <Provider> child into a function."))}function r(){!v&&p&&(v=!0,console.error("With React 0.13, you need to wrap <Provider> child into a function. This restriction will be removed with React 0.14."))}function n(){h||(h=!0,console.error("<Provider> does not support changing `store` on the fly. It is most likely that you see this error because you updated to Redux 2.x and React Redux 2.x which no longer hot reload reducers automatically. See https://github.com/rackt/react-redux/releases/tag/v2.0.0 for the migration instructions."))}var a=t.Component,c=t.PropTypes,l=t.Children,d=f.default(c),p=i(t),v=!1,h=!1;return function(t){function i(e,r){u(this,i),t.call(this,e,r),this.store=e.store}return o(i,t),i.prototype.getChildContext=function(){return{store:this.store}},s(i,null,[{key:"childContextTypes",value:{store:d.isRequired},enumerable:!0},{key:"propTypes",value:{store:d.isRequired,children:(p?c.func:c.element).isRequired},enumerable:!0}]),i.prototype.componentWillReceiveProps=function(t){var e=this.store,r=t.store;e!==r&&n()},i.prototype.render=function(){var t=this.props.children;return"function"==typeof t?(e(),t=t()):r(),l.only(t)},i}(a)}e.__esModule=!0;var s=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();e.default=a;var c=r(7),f=n(c);t.exports=e.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var u=r(12),o=n(u),i=r(18),a=n(i),s=a.default(o.default),c=s.Provider,f=s.connect;e.Provider=c,e.connect=f},function(t,e){"use strict";function r(t){if(!t||"object"!=typeof t)return!1;var e="function"==typeof t.constructor?Object.getPrototypeOf(t):Object.prototype;if(null===e)return!0;var r=e.constructor;return"function"==typeof r&&r instanceof r&&n(r)===n(Object)}e.__esModule=!0,e.default=r;var n=function(t){return Function.prototype.toString.call(t)};t.exports=e.default},function(t,e){"use strict";function r(t,e){if(t===e)return!0;var r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(var u=Object.prototype.hasOwnProperty,o=0;o<r.length;o++)if(!u.call(e,r[o])||t[r[o]]!==e[r[o]])return!1;return!0}e.__esModule=!0,e.default=r,t.exports=e.default},function(t,e,r){"use strict";function n(t){return function(e){return u.bindActionCreators(t,e)}}e.__esModule=!0,e.default=n;var u=r(26);t.exports=e.default},function(t,e,r){"use strict";var n=function(t,e,r,n,u,o,i,a){if(!t){var s;if(void 0===e)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,n,u,o,i,a],f=0;s=new Error("Invariant Violation: "+e.replace(/%s/g,function(){return c[f++]}))}throw s.framesToPop=1,s}};t.exports=n},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var u=r(8),o=n(u),i=r(29),a=n(i),s=r(28),c=n(s),f=r(27),l=n(f),d=r(9),p=n(d);e.createStore=o.default,e.combineReducers=a.default,e.bindActionCreators=c.default,e.applyMiddleware=l.default,e.compose=p.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function u(){for(var t=arguments.length,e=Array(t),r=0;t>r;r++)e[r]=arguments[r];return function(t){return function(r,n){var u=t(r,n),i=u.dispatch,s=[],c={getState:u.getState,dispatch:function(t){return i(t)}};return s=e.map(function(t){return t(c)}),i=a.default.apply(void 0,s)(u.dispatch),o({},u,{dispatch:i})}}}e.__esModule=!0;var o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};e.default=u;var i=r(9),a=n(i);t.exports=e.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function u(t,e){return function(){return e(t.apply(void 0,arguments))}}function o(t,e){if("function"==typeof t)return u(t,e);if("object"!=typeof t||null===t||void 0===t)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===t?"null":typeof t)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');return a.default(t,function(t){return u(t,e)})}e.__esModule=!0,e.default=o;var i=r(11),a=n(i);t.exports=e.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function u(t,e){var r=e&&e.type,n=r&&'"'+r.toString()+'"'||"an action";return'Reducer "'+t+'" returned undefined handling '+n+". To ignore an action, you must explicitly return the previous state."}function o(t){Object.keys(t).forEach(function(e){var r=t[e],n=r(void 0,{type:a.ActionTypes.INIT});if("undefined"==typeof n)throw new Error('Reducer "'+e+'" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined.');var u="@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".");if("undefined"==typeof r(void 0,{type:u}))throw new Error('Reducer "'+e+'" returned undefined when probed with a random type. '+("Don't try to handle "+a.ActionTypes.INIT+' or other actions in "redux/*" ')+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined.")})}function i(t){var e,r=d.default(t,function(t){return"function"==typeof t});try{o(r)}catch(n){e=n}var i=f.default(r,function(){return void 0});return function(t,n){if(void 0===t&&(t=i),e)throw e;var o=f.default(r,function(e,r){var o=e(t[r],n);if("undefined"==typeof o){var i=u(r,n);throw new Error(i)}return o});return o}}e.__esModule=!0,e.default=i;var a=r(8),s=r(10),c=(n(s),r(11)),f=n(c),l=r(30),d=n(l);t.exports=e.default},function(t,e){"use strict";function r(t,e){return Object.keys(t).reduce(function(r,n){return e(t[n])&&(r[n]=t[n]),r},{})}e.__esModule=!0,e.default=r,t.exports=e.default}])});

@@ -5,65 +5,35 @@ 'use strict';

var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } }
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
var _reducer = require('./reducer');
var _react = require('react');
var _reducer2 = _interopRequireDefault(_reducer);
var _react2 = _interopRequireDefault(_react);
var _reduxForm = require('./reduxForm');
var _createAll2 = require('./createAll');
var _reduxForm2 = _interopRequireDefault(_reduxForm);
var _createAll3 = _interopRequireDefault(_createAll2);
var _connectReduxForm = require('./connectReduxForm');
var _createAll = _createAll3['default'](false, _react2['default']);
var _connectReduxForm2 = _interopRequireDefault(_connectReduxForm);
var _mapValues = require('./mapValues');
var _mapValues2 = _interopRequireDefault(_mapValues);
var _bindActionData = require('./bindActionData');
var _bindActionData2 = _interopRequireDefault(_bindActionData);
var _actions = require('./actions');
var actions = _interopRequireWildcard(_actions);
// bind form as first parameter of action creators
var boundActions = _extends({}, _mapValues2['default'](_extends({}, actions, {
initializeWithKey: function initializeWithKey(key, data) {
return _bindActionData2['default'](actions.initialize, { key: key })(data);
}
}), function (action) {
return function (form) {
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
args[_key - 1] = arguments[_key];
}
return _bindActionData2['default'](action, { form: form }).apply(undefined, args);
};
}));
var blur = boundActions.blur;
var change = boundActions.change;
var focus = boundActions.focus;
var initialize = boundActions.initialize;
var initializeWithKey = boundActions.initializeWithKey;
var reset = boundActions.reset;
var startAsyncValidation = boundActions.startAsyncValidation;
var startSubmit = boundActions.startSubmit;
var stopAsyncValidation = boundActions.stopAsyncValidation;
var stopSubmit = boundActions.stopSubmit;
var touch = boundActions.touch;
var untouch = boundActions.untouch;
var blur = _createAll.blur;
var change = _createAll.change;
var connectReduxForm = _createAll.connectReduxForm;
var focus = _createAll.focus;
var reducer = _createAll.reducer;
var reduxForm = _createAll.reduxForm;
var initialize = _createAll.initialize;
var initializeWithKey = _createAll.initializeWithKey;
var reset = _createAll.reset;
var startAsyncValidation = _createAll.startAsyncValidation;
var startSubmit = _createAll.startSubmit;
var stopAsyncValidation = _createAll.stopAsyncValidation;
var stopSubmit = _createAll.stopSubmit;
var touch = _createAll.touch;
var untouch = _createAll.untouch;
exports.blur = blur;
exports.change = change;
exports.connectReduxForm = _connectReduxForm2['default'];
exports.connectReduxForm = connectReduxForm;
exports.focus = focus;
exports.reducer = _reducer2['default'];
exports.reducer = reducer;
exports.reduxForm = reduxForm;
exports.initialize = initialize;

@@ -77,3 +47,2 @@ exports.initializeWithKey = initializeWithKey;

exports.touch = touch;
exports.untouch = untouch;
exports['default'] = _reduxForm2['default'];
exports.untouch = untouch;

@@ -15,4 +15,4 @@ 'use strict';

var dataKeys = Object.keys(data);
for (var i = 0; i < dataKeys.length; i++) {
var key = dataKeys[i];
for (var index = 0; index < dataKeys.length; index++) {
var key = dataKeys[index];
if (!isPristine(initial[key], data[key])) {

@@ -19,0 +19,0 @@ return false;

{
"name": "redux-form",
"version": "1.7.0",
"version": "2.0.0",
"description": "A higher order component decorator for forms using Redux and React",

@@ -37,19 +37,19 @@ "main": "./lib/index.js",

"devDependencies": {
"babel": "^5.8.21",
"babel-core": "^5.8.22",
"babel-eslint": "^4.0.10",
"babel": "5.8.23",
"babel-core": "5.8.25",
"babel-eslint": "4.1.3",
"babel-loader": "5.3.2",
"eslint": "^1.2.0",
"eslint-config-airbnb": "0.0.7",
"eslint-plugin-react": "^3.2.3",
"expect": "^1.9.0",
"mocha": "^2.3.0",
"react": "^0.13.3",
"rifraf": "^2.0.2",
"rimraf": "^2.4.2",
"webpack": "^1.10.5"
"eslint": "1.5.1",
"eslint-config-airbnb": "0.1.0",
"eslint-plugin-react": "3.4.2",
"expect": "1.11.1",
"mocha": "2.3.3",
"react": "0.13.3",
"rifraf": "2.0.2",
"rimraf": "2.4.3",
"webpack": "1.12.2"
},
"dependencies": {
"react-redux": ">=1.0.0 >=2.0.0",
"redux": ">=1.0.0"
"react-redux": "3.0.1",
"redux": "3.0.2"
},

@@ -56,0 +56,0 @@ "npmName": "redux-form",

@@ -9,2 +9,3 @@ #redux-form

[![PayPal donate button](http://img.shields.io/paypal/donate.png?color=yellowgreen)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=3QQPTMLGV6GU2)
[![Twitter URL](https://img.shields.io/twitter/url/https/github.com/erikras/redux-form.svg?style=social)](https://twitter.com/intent/tweet?text=With%20@ReduxForm,%20I%20can%20keep%20all%20my%20form%20state%20in%20Redux!%20Thanks,%20@erikras!)

@@ -15,2 +16,3 @@ `redux-form` works with [React Redux](https://github.com/gaearon/react-redux) to enable an html form in

## Table of Contents
<img src="logo.png" align="right" height="250" width="250"/>

@@ -26,2 +28,3 @@ * [Installation](#installation)

* [ES7 Decorator Sugar](#es7-decorator-sugar) - :warning: Experimental! :warning:
* [React Native Support](#react-native-support)
* [Synchronous Validation](#synchronous-validation) - Client Side

@@ -64,2 +67,4 @@ * [Asynchronous Validation](#asynchronous-validation) - Server Side

**New releases will be tweeted by [@ReduxForm](https://twitter.com/ReduxForm). Follow it!**
## Benefits

@@ -114,6 +119,2 @@

> ___IMPORTANT:___ _If you are using `redux-form` with `react-native`, you will need to
[use `reduxForm()` instead of `connectReduxForm()`](#doing-the-connecting-yourself), at least until React 0.14
is released._
```javascript

@@ -187,2 +188,7 @@ import React, {Component, PropTypes} from 'react';

### React Native Support
`redux-form` works just fine on React Native. Just like with `react-redux`, the only change you will need to make to
use `redux-form` with React Native is to import everything from `redux-form/native`, not from `redux-form`.
### Synchronous Validation

@@ -538,3 +544,3 @@

import {connect} from 'react-redux';
import reduxForm from 'redux-form';
import {reduxForm} from 'redux-form';
import validateContact from './validateContact';

@@ -541,0 +547,0 @@

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc