redux-form
Advanced tools
Comparing version 7.4.0 to 7.4.1
@@ -12,2 +12,3 @@ 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; }; | ||
import React, { Component, createElement } from 'react'; | ||
import { polyfill } from 'react-lifecycles-compat'; | ||
import PropTypes from 'prop-types'; | ||
@@ -158,2 +159,3 @@ import invariant from 'invariant'; | ||
polyfill(Field); | ||
return Field; | ||
@@ -160,0 +162,0 @@ }; |
@@ -14,2 +14,3 @@ 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; }; | ||
import React, { Component, createElement } from 'react'; | ||
import { polyfill } from 'react-lifecycles-compat'; | ||
import PropTypes from 'prop-types'; | ||
@@ -139,2 +140,3 @@ import invariant from 'invariant'; | ||
polyfill(FieldArray); | ||
return FieldArray; | ||
@@ -141,0 +143,0 @@ }; |
@@ -72,2 +72,3 @@ 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; }; | ||
}, | ||
splice: arraySplice, | ||
swap: arraySwap, | ||
@@ -74,0 +75,0 @@ unshift: arrayUnshift |
@@ -12,2 +12,3 @@ 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; }; | ||
import { Component, createElement } from 'react'; | ||
import { polyfill } from 'react-lifecycles-compat'; | ||
import PropTypes from 'prop-types'; | ||
@@ -157,2 +158,3 @@ import invariant from 'invariant'; | ||
polyfill(Fields); | ||
return Fields; | ||
@@ -159,0 +161,0 @@ }; |
@@ -23,2 +23,3 @@ import _merge from 'lodash-es/merge'; | ||
import * as React from 'react'; | ||
import { polyfill } from 'react-lifecycles-compat'; | ||
import hoistStatics from 'hoist-non-react-statics'; | ||
@@ -333,2 +334,3 @@ import invariant from 'invariant'; | ||
this.props.initialize(nextProps.initialValues, _keepDirty, { | ||
keepValues: nextProps.keepValues, | ||
lastInitialValues: this.props.initialValues, | ||
@@ -340,2 +342,3 @@ updateUnregisteredFields: nextProps.updateUnregisteredFields | ||
this.props.initialize(this.props.initialValues, this.props.keepDirtyOnReinitialize, { | ||
keepValues: this.props.keepValues, | ||
updateUnregisteredFields: this.props.updateUnregisteredFields | ||
@@ -597,2 +600,3 @@ }); | ||
keepDirtyOnReinitialize = _props9.keepDirtyOnReinitialize, | ||
keepValues = _props9.keepValues, | ||
updateUnregisteredFields = _props9.updateUnregisteredFields, | ||
@@ -632,3 +636,3 @@ pristine = _props9.pristine, | ||
warning = _props9.warning, | ||
rest = _objectWithoutProperties(_props9, ['anyTouched', 'array', 'arrayInsert', 'arrayMove', 'arrayPop', 'arrayPush', 'arrayRemove', 'arrayRemoveAll', 'arrayShift', 'arraySplice', 'arraySwap', 'arrayUnshift', 'asyncErrors', 'asyncValidate', 'asyncValidating', 'blur', 'change', 'clearSubmit', 'destroy', 'destroyOnUnmount', 'forceUnregisterOnUnmount', 'dirty', 'dispatch', 'enableReinitialize', 'error', 'focus', 'form', 'getFormState', 'immutableProps', 'initialize', 'initialized', 'initialValues', 'invalid', 'keepDirtyOnReinitialize', 'updateUnregisteredFields', 'pristine', 'propNamespace', 'registeredFields', 'registerField', 'reset', 'resetSection', 'setSubmitFailed', 'setSubmitSucceeded', 'shouldAsyncValidate', 'shouldValidate', 'shouldError', 'shouldWarn', 'startAsyncValidation', 'startSubmit', 'stopAsyncValidation', 'stopSubmit', 'submitting', 'submitFailed', 'submitSucceeded', 'touch', 'touchOnBlur', 'touchOnChange', 'persistentSubmitErrors', 'syncErrors', 'syncWarnings', 'unregisterField', 'untouch', 'updateSyncErrors', 'updateSyncWarnings', 'valid', 'validExceptSubmit', 'values', 'warning']); | ||
rest = _objectWithoutProperties(_props9, ['anyTouched', 'array', 'arrayInsert', 'arrayMove', 'arrayPop', 'arrayPush', 'arrayRemove', 'arrayRemoveAll', 'arrayShift', 'arraySplice', 'arraySwap', 'arrayUnshift', 'asyncErrors', 'asyncValidate', 'asyncValidating', 'blur', 'change', 'clearSubmit', 'destroy', 'destroyOnUnmount', 'forceUnregisterOnUnmount', 'dirty', 'dispatch', 'enableReinitialize', 'error', 'focus', 'form', 'getFormState', 'immutableProps', 'initialize', 'initialized', 'initialValues', 'invalid', 'keepDirtyOnReinitialize', 'keepValues', 'updateUnregisteredFields', 'pristine', 'propNamespace', 'registeredFields', 'registerField', 'reset', 'resetSection', 'setSubmitFailed', 'setSubmitSucceeded', 'shouldAsyncValidate', 'shouldValidate', 'shouldError', 'shouldWarn', 'startAsyncValidation', 'startSubmit', 'stopAsyncValidation', 'stopSubmit', 'submitting', 'submitFailed', 'submitSucceeded', 'touch', 'touchOnBlur', 'touchOnChange', 'persistentSubmitErrors', 'syncErrors', 'syncWarnings', 'unregisterField', 'untouch', 'updateSyncErrors', 'updateSyncWarnings', 'valid', 'validExceptSubmit', 'values', 'warning']); | ||
/* eslint-enable no-unused-vars */ | ||
@@ -889,2 +893,3 @@ | ||
polyfill(ReduxForm); | ||
return hoistStatics(ReduxForm, WrappedComponent); | ||
@@ -891,0 +896,0 @@ }; |
@@ -10,2 +10,3 @@ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
import React, { Component } from 'react'; | ||
import { polyfill } from 'react-lifecycles-compat'; | ||
import PropTypes from 'prop-types'; | ||
@@ -49,2 +50,3 @@ | ||
polyfill(Form); | ||
export default Form; |
@@ -15,2 +15,4 @@ 'use strict'; | ||
var _reactLifecyclesCompat = require('react-lifecycles-compat'); | ||
var _propTypes = require('prop-types'); | ||
@@ -185,2 +187,3 @@ | ||
(0, _reactLifecyclesCompat.polyfill)(Field); | ||
return Field; | ||
@@ -187,0 +190,0 @@ }; |
@@ -15,2 +15,4 @@ 'use strict'; | ||
var _reactLifecyclesCompat = require('react-lifecycles-compat'); | ||
var _propTypes = require('prop-types'); | ||
@@ -160,2 +162,3 @@ | ||
(0, _reactLifecyclesCompat.polyfill)(FieldArray); | ||
return FieldArray; | ||
@@ -162,0 +165,0 @@ }; |
@@ -78,2 +78,3 @@ 'use strict'; | ||
}, | ||
splice: arraySplice, | ||
swap: arraySwap, | ||
@@ -80,0 +81,0 @@ unshift: arrayUnshift |
@@ -13,2 +13,4 @@ 'use strict'; | ||
var _reactLifecyclesCompat = require('react-lifecycles-compat'); | ||
var _propTypes = require('prop-types'); | ||
@@ -182,2 +184,3 @@ | ||
(0, _reactLifecyclesCompat.polyfill)(Fields); | ||
return Fields; | ||
@@ -184,0 +187,0 @@ }; |
@@ -25,2 +25,4 @@ 'use strict'; | ||
var _reactLifecyclesCompat = require('react-lifecycles-compat'); | ||
var _hoistNonReactStatics = require('hoist-non-react-statics'); | ||
@@ -403,2 +405,3 @@ | ||
this.props.initialize(nextProps.initialValues, _keepDirty, { | ||
keepValues: nextProps.keepValues, | ||
lastInitialValues: this.props.initialValues, | ||
@@ -410,2 +413,3 @@ updateUnregisteredFields: nextProps.updateUnregisteredFields | ||
this.props.initialize(this.props.initialValues, this.props.keepDirtyOnReinitialize, { | ||
keepValues: this.props.keepValues, | ||
updateUnregisteredFields: this.props.updateUnregisteredFields | ||
@@ -667,2 +671,3 @@ }); | ||
keepDirtyOnReinitialize = _props9.keepDirtyOnReinitialize, | ||
keepValues = _props9.keepValues, | ||
updateUnregisteredFields = _props9.updateUnregisteredFields, | ||
@@ -702,3 +707,3 @@ pristine = _props9.pristine, | ||
warning = _props9.warning, | ||
rest = _objectWithoutProperties(_props9, ['anyTouched', 'array', 'arrayInsert', 'arrayMove', 'arrayPop', 'arrayPush', 'arrayRemove', 'arrayRemoveAll', 'arrayShift', 'arraySplice', 'arraySwap', 'arrayUnshift', 'asyncErrors', 'asyncValidate', 'asyncValidating', 'blur', 'change', 'clearSubmit', 'destroy', 'destroyOnUnmount', 'forceUnregisterOnUnmount', 'dirty', 'dispatch', 'enableReinitialize', 'error', 'focus', 'form', 'getFormState', 'immutableProps', 'initialize', 'initialized', 'initialValues', 'invalid', 'keepDirtyOnReinitialize', 'updateUnregisteredFields', 'pristine', 'propNamespace', 'registeredFields', 'registerField', 'reset', 'resetSection', 'setSubmitFailed', 'setSubmitSucceeded', 'shouldAsyncValidate', 'shouldValidate', 'shouldError', 'shouldWarn', 'startAsyncValidation', 'startSubmit', 'stopAsyncValidation', 'stopSubmit', 'submitting', 'submitFailed', 'submitSucceeded', 'touch', 'touchOnBlur', 'touchOnChange', 'persistentSubmitErrors', 'syncErrors', 'syncWarnings', 'unregisterField', 'untouch', 'updateSyncErrors', 'updateSyncWarnings', 'valid', 'validExceptSubmit', 'values', 'warning']); | ||
rest = _objectWithoutProperties(_props9, ['anyTouched', 'array', 'arrayInsert', 'arrayMove', 'arrayPop', 'arrayPush', 'arrayRemove', 'arrayRemoveAll', 'arrayShift', 'arraySplice', 'arraySwap', 'arrayUnshift', 'asyncErrors', 'asyncValidate', 'asyncValidating', 'blur', 'change', 'clearSubmit', 'destroy', 'destroyOnUnmount', 'forceUnregisterOnUnmount', 'dirty', 'dispatch', 'enableReinitialize', 'error', 'focus', 'form', 'getFormState', 'immutableProps', 'initialize', 'initialized', 'initialValues', 'invalid', 'keepDirtyOnReinitialize', 'keepValues', 'updateUnregisteredFields', 'pristine', 'propNamespace', 'registeredFields', 'registerField', 'reset', 'resetSection', 'setSubmitFailed', 'setSubmitSucceeded', 'shouldAsyncValidate', 'shouldValidate', 'shouldError', 'shouldWarn', 'startAsyncValidation', 'startSubmit', 'stopAsyncValidation', 'stopSubmit', 'submitting', 'submitFailed', 'submitSucceeded', 'touch', 'touchOnBlur', 'touchOnChange', 'persistentSubmitErrors', 'syncErrors', 'syncWarnings', 'unregisterField', 'untouch', 'updateSyncErrors', 'updateSyncWarnings', 'valid', 'validExceptSubmit', 'values', 'warning']); | ||
/* eslint-enable no-unused-vars */ | ||
@@ -959,2 +964,3 @@ | ||
(0, _reactLifecyclesCompat.polyfill)(ReduxForm); | ||
return (0, _hoistNonReactStatics2.default)(ReduxForm, WrappedComponent); | ||
@@ -961,0 +967,0 @@ }; |
@@ -13,2 +13,4 @@ 'use strict'; | ||
var _reactLifecyclesCompat = require('react-lifecycles-compat'); | ||
var _propTypes = require('prop-types'); | ||
@@ -62,2 +64,3 @@ | ||
(0, _reactLifecyclesCompat.polyfill)(Form); | ||
exports.default = Form; |
{ | ||
"name": "redux-form", | ||
"version": "7.4.0", | ||
"version": "7.4.1", | ||
"description": "A higher order component decorator for forms using Redux and React", | ||
@@ -69,3 +69,4 @@ "main": "./lib/index.js", | ||
"lodash-es": "^4.17.10", | ||
"prop-types": "^15.6.1" | ||
"prop-types": "^15.6.1", | ||
"react-lifecycles-compat": "^3.0.4" | ||
}, | ||
@@ -72,0 +73,0 @@ "devDependencies": { |
@@ -34,8 +34,8 @@ [<img src="https://raw.githubusercontent.com/erikras/redux-form/master/logo.png" align="right" class="logo" height="100" width="165"/>](http://erikras.github.io/redux-form/) | ||
* [Getting Started](https://redux-form.com/7.4.0/docs/GettingStarted.md/) | ||
* [Examples](https://redux-form.com/7.4.0/examples/) | ||
* [API](https://redux-form.com/7.4.0/docs/api/) | ||
* [FAQ](https://redux-form.com/7.4.0/docs/faq/) | ||
* [Release Notes](https://github.com/erikras/redux-form/releases) | ||
* [Older Documentation](https://redux-form.com/7.4.0/docs/DocumentationVersions.md/) | ||
- [Getting Started](https://redux-form.com/7.4.1/docs/GettingStarted.md/) | ||
- [Examples](https://redux-form.com/7.4.1/examples/) | ||
- [API](https://redux-form.com/7.4.1/docs/api/) | ||
- [FAQ](https://redux-form.com/7.4.1/docs/faq/) | ||
- [Release Notes](https://github.com/erikras/redux-form/releases) | ||
- [Older Documentation](https://redux-form.com/7.4.1/docs/DocumentationVersions.md/) | ||
@@ -46,14 +46,14 @@ ## 🏖 Code Sandboxes 🏖 | ||
* [Simple Form](https://codesandbox.io/s/mZRjw05yp) | ||
* [Synchronous Validation](https://codesandbox.io/s/pQj03w7Y6) | ||
* [Field-Level Validation](https://codesandbox.io/s/PNQYw1kVy) | ||
* [Submit Validation](https://codesandbox.io/s/XoA5vXDgA) | ||
* [Asynchronous Blur Validation](https://codesandbox.io/s/nKlYo387) | ||
* [Initializing From State](https://codesandbox.io/s/MQnD536Km) | ||
* [Field Arrays](https://codesandbox.io/s/Ww4QG1Wx) | ||
* [Remote Submit](https://codesandbox.io/s/ElYvJR21K) | ||
* [Normalizing](https://codesandbox.io/s/L8KWERjDw) | ||
* [Immutable JS](https://codesandbox.io/s/ZVGJQBJMw) | ||
* [Selecting Form Values](https://codesandbox.io/s/gJOBWZMRZ) | ||
* [Wizard Form](https://codesandbox.io/s/0Qzz3843) | ||
- [Simple Form](https://codesandbox.io/s/mZRjw05yp) | ||
- [Synchronous Validation](https://codesandbox.io/s/pQj03w7Y6) | ||
- [Field-Level Validation](https://codesandbox.io/s/PNQYw1kVy) | ||
- [Submit Validation](https://codesandbox.io/s/XoA5vXDgA) | ||
- [Asynchronous Blur Validation](https://codesandbox.io/s/nKlYo387) | ||
- [Initializing From State](https://codesandbox.io/s/MQnD536Km) | ||
- [Field Arrays](https://codesandbox.io/s/Ww4QG1Wx) | ||
- [Remote Submit](https://codesandbox.io/s/ElYvJR21K) | ||
- [Normalizing](https://codesandbox.io/s/L8KWERjDw) | ||
- [Immutable JS](https://codesandbox.io/s/ZVGJQBJMw) | ||
- [Selecting Form Values](https://codesandbox.io/s/gJOBWZMRZ) | ||
- [Wizard Form](https://codesandbox.io/s/0Qzz3843) | ||
@@ -60,0 +60,0 @@ ## Videos |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
1138299
13696
11
64
190