Comparing version 4.57.0 to 4.58.0
@@ -17,3 +17,3 @@ 'use strict'; | ||
var _excluded = ["onSubmit", "onReset", "onChange", "onSubmitFailure", "onValueChange", "onValueSet", "onValid", "onInvalid", "onValueModified", "initialValues", "validateFields", "autocomplete", "showErrorIfError", "showErrorIfTouched", "showErrorIfDirty", "validateOn", "validateOnMount", "formApiRef", "dontPreventDefault", "yupSchema", "allowEmptyStrings", "disabled", "preventEnter", "validateModified", "schema", "ajv", "ajvErrors", "components", "errorMessage", "fieldMap", "adapter", "name", "keepState", "keepStateIfRelevant", "focusOnInvalid", "scrollOnInvalid", "resetOnlyOnscreen"]; | ||
var _excluded = ["onSubmit", "onReset", "onChange", "onSubmitFailure", "onValueChange", "onValueSet", "onValid", "onInvalid", "onValueModified", "initialValues", "validateFields", "autocomplete", "showErrorIfError", "showErrorIfTouched", "showErrorIfDirty", "validateOn", "validateOnMount", "formApiRef", "dontPreventDefault", "yupSchema", "allowEmptyStrings", "disabled", "preventEnter", "validateModified", "schema", "ajv", "ajvErrors", "components", "errorMessage", "fieldMap", "adapter", "name", "keepState", "keepStateIfRelevant", "focusOnInvalid", "scrollOnInvalid", "resetOnlyOnscreen", "debounceGather", "debounceError"]; | ||
var logger = debug.Debug('informed:useForm' + '\t'); | ||
@@ -58,2 +58,4 @@ var useForm = function useForm(_ref) { | ||
resetOnlyOnscreen = _ref.resetOnlyOnscreen, | ||
debounceGather = _ref.debounceGather, | ||
debounceError = _ref.debounceError, | ||
userProps = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded); | ||
@@ -97,3 +99,5 @@ // Register this controller by name if we are in global context | ||
scrollOnInvalid: scrollOnInvalid, | ||
resetOnlyOnscreen: resetOnlyOnscreen | ||
resetOnlyOnscreen: resetOnlyOnscreen, | ||
debounceGather: debounceGather, | ||
debounceError: debounceError | ||
}; | ||
@@ -100,0 +104,0 @@ var optionsRef = React.useRef(); |
@@ -9,3 +9,3 @@ import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _slicedToArray, objectSpread2 as _objectSpread2 } from '../_virtual/_rollupPluginBabelHelpers.js'; | ||
var _excluded = ["onSubmit", "onReset", "onChange", "onSubmitFailure", "onValueChange", "onValueSet", "onValid", "onInvalid", "onValueModified", "initialValues", "validateFields", "autocomplete", "showErrorIfError", "showErrorIfTouched", "showErrorIfDirty", "validateOn", "validateOnMount", "formApiRef", "dontPreventDefault", "yupSchema", "allowEmptyStrings", "disabled", "preventEnter", "validateModified", "schema", "ajv", "ajvErrors", "components", "errorMessage", "fieldMap", "adapter", "name", "keepState", "keepStateIfRelevant", "focusOnInvalid", "scrollOnInvalid", "resetOnlyOnscreen"]; | ||
var _excluded = ["onSubmit", "onReset", "onChange", "onSubmitFailure", "onValueChange", "onValueSet", "onValid", "onInvalid", "onValueModified", "initialValues", "validateFields", "autocomplete", "showErrorIfError", "showErrorIfTouched", "showErrorIfDirty", "validateOn", "validateOnMount", "formApiRef", "dontPreventDefault", "yupSchema", "allowEmptyStrings", "disabled", "preventEnter", "validateModified", "schema", "ajv", "ajvErrors", "components", "errorMessage", "fieldMap", "adapter", "name", "keepState", "keepStateIfRelevant", "focusOnInvalid", "scrollOnInvalid", "resetOnlyOnscreen", "debounceGather", "debounceError"]; | ||
var logger = Debug('informed:useForm' + '\t'); | ||
@@ -50,2 +50,4 @@ var useForm = function useForm(_ref) { | ||
resetOnlyOnscreen = _ref.resetOnlyOnscreen, | ||
debounceGather = _ref.debounceGather, | ||
debounceError = _ref.debounceError, | ||
userProps = _objectWithoutProperties(_ref, _excluded); | ||
@@ -89,3 +91,5 @@ // Register this controller by name if we are in global context | ||
scrollOnInvalid: scrollOnInvalid, | ||
resetOnlyOnscreen: resetOnlyOnscreen | ||
resetOnlyOnscreen: resetOnlyOnscreen, | ||
debounceGather: debounceGather, | ||
debounceError: debounceError | ||
}; | ||
@@ -92,0 +96,0 @@ var optionsRef = useRef(); |
@@ -204,2 +204,4 @@ import React from 'react'; | ||
scrollOnInvalid?: ScrollIntoViewOptions; | ||
debounceGather?: number; | ||
debounceError?: number; | ||
} & Omit<UserProps, 'onSubmit' | 'onReset' | 'onChange' | 'onSubmitFailure'>; | ||
@@ -206,0 +208,0 @@ |
{ | ||
"name": "informed", | ||
"version": "4.57.0", | ||
"version": "4.58.0", | ||
"description": "A lightweight framework and utility for building powerful forms in React applications", | ||
@@ -5,0 +5,0 @@ "type": "module", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
605733
15247