@airbnb/lunar-forms
Advanced tools
Comparing version 3.3.0 to 3.3.1
@@ -6,2 +6,10 @@ # Change Log | ||
### 3.3.1 - 2020-05-12 | ||
**Note:** Version bump only for package @airbnb/lunar-forms | ||
## 3.3.0 - 2020-05-11 | ||
@@ -8,0 +16,0 @@ |
@@ -11,2 +11,3 @@ import _pt from "prop-types"; | ||
import { createForm, formSubscriptionItems, getIn, setIn, FORM_ERROR } from 'final-form'; | ||
import arrayMutators from 'final-form-arrays'; | ||
import T from '@airbnb/lunar/lib/components/Translate'; | ||
@@ -171,5 +172,5 @@ import { getErrorMessage } from '@airbnb/lunar/lib/components/ErrorMessage'; | ||
initialValues, | ||
mutators: { | ||
mutators: _extends({ | ||
setFieldConfig: this.setFieldConfig | ||
}, | ||
}, arrayMutators), | ||
onSubmit: this.handleSubmit, | ||
@@ -344,2 +345,4 @@ validate: this.handleValidate | ||
register: this.registerField, | ||
// Since we have a known list of mutators, we can type it more specifically | ||
mutators: this.form.mutators, | ||
submit: this.submitForm | ||
@@ -346,0 +349,0 @@ } |
@@ -16,2 +16,4 @@ "use strict"; | ||
var _finalFormArrays = _interopRequireDefault(require("final-form-arrays")); | ||
var _Translate = _interopRequireDefault(require("@airbnb/lunar/lib/components/Translate")); | ||
@@ -186,5 +188,5 @@ | ||
initialValues, | ||
mutators: { | ||
mutators: _extends({ | ||
setFieldConfig: this.setFieldConfig | ||
}, | ||
}, _finalFormArrays.default), | ||
onSubmit: this.handleSubmit, | ||
@@ -359,2 +361,4 @@ validate: this.handleValidate | ||
register: this.registerField, | ||
// Since we have a known list of mutators, we can type it more specifically | ||
mutators: this.form.mutators, | ||
submit: this.submitForm | ||
@@ -361,0 +365,0 @@ } |
import { IsEqual, FormState, FieldState, FieldSubscriber, FieldSubscription, FieldValidator, Unsubscribe } from 'final-form'; | ||
import { Mutators } from 'final-form-arrays'; | ||
export { IsEqual, FormState, FieldState, FieldSubscriber, FieldSubscription, FieldValidator, Unsubscribe, Mutators, }; | ||
export declare type Context = { | ||
@@ -7,2 +9,3 @@ change: (name: string, value: unknown, batchValues?: object) => void; | ||
register: (field: Field<any>, onUpdate: FieldSubscriber<any>) => Unsubscribe; | ||
mutators: Mutators; | ||
submit: () => Promise<object | undefined>; | ||
@@ -9,0 +12,0 @@ }; |
@@ -1,1 +0,17 @@ | ||
"use strict"; | ||
"use strict"; | ||
exports.__esModule = true; | ||
var _finalForm = require("final-form"); | ||
exports.IsEqual = _finalForm.IsEqual; | ||
exports.FormState = _finalForm.FormState; | ||
exports.FieldState = _finalForm.FieldState; | ||
exports.FieldSubscriber = _finalForm.FieldSubscriber; | ||
exports.FieldSubscription = _finalForm.FieldSubscription; | ||
exports.FieldValidator = _finalForm.FieldValidator; | ||
exports.Unsubscribe = _finalForm.Unsubscribe; | ||
var _finalFormArrays = require("final-form-arrays"); | ||
exports.Mutators = _finalFormArrays.Mutators; |
{ | ||
"name": "@airbnb/lunar-forms", | ||
"version": "3.3.0", | ||
"version": "3.3.1", | ||
"release": "1583350587083", | ||
@@ -38,3 +38,3 @@ "description": "Form functionality for Lunar.", | ||
}, | ||
"gitHead": "7cf8771006fa2c49637c9f9af5228fb03facc04b" | ||
"gitHead": "92bd3c3e60099eba3159139450f40e8eb34f54b0" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
141821
2593