@rjsf/core 6.1.1 → 6.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rjsf/core",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.2",
|
|
4
4
|
"description": "A simple React component capable of building HTML forms out of a JSON schema.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"compileReplacer": "tsc -p tsconfig.replacer.json && move-file lodashReplacer.js lodashReplacer.cjs",
|
package/src/components/Form.tsx
CHANGED
|
@@ -56,6 +56,11 @@ import _unset from 'lodash/unset';
|
|
|
56
56
|
import getDefaultRegistry from '../getDefaultRegistry';
|
|
57
57
|
import { ADDITIONAL_PROPERTY_KEY_REMOVE, IS_RESET } from './constants';
|
|
58
58
|
|
|
59
|
+
/** Represents a boolean option that is deprecated.
|
|
60
|
+
* @deprecated - In a future major release, this type will be removed
|
|
61
|
+
*/
|
|
62
|
+
type DeprecatedBooleanOption = boolean;
|
|
63
|
+
|
|
59
64
|
/** The properties that are passed to the `Form` */
|
|
60
65
|
export interface FormProps<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any> {
|
|
61
66
|
/** The JSON schema object for the form */
|
|
@@ -184,9 +189,9 @@ export interface FormProps<T = any, S extends StrictRJSFSchema = RJSFSchema, F e
|
|
|
184
189
|
* is provided, then live validation will be performed when a field that was updated is blurred (as a performance
|
|
185
190
|
* optimization).
|
|
186
191
|
*
|
|
187
|
-
*
|
|
192
|
+
* NOTE: In a future major release, the `boolean` options for this flag will be removed
|
|
188
193
|
*/
|
|
189
|
-
liveValidate?:
|
|
194
|
+
liveValidate?: 'onChange' | 'onBlur' | DeprecatedBooleanOption;
|
|
190
195
|
/** Flag that describes when live omit will be performed. Live omit happens only when `omitExtraData` is also set to
|
|
191
196
|
* to `true` and the form's data is updated by the user.
|
|
192
197
|
*
|
|
@@ -195,9 +200,9 @@ export interface FormProps<T = any, S extends StrictRJSFSchema = RJSFSchema, F e
|
|
|
195
200
|
* is provided, then live omit will be performed when a field that was updated is blurred (as a performance
|
|
196
201
|
* optimization).
|
|
197
202
|
*
|
|
198
|
-
*
|
|
203
|
+
* NOTE: In a future major release, the `boolean` options for this flag will be removed
|
|
199
204
|
*/
|
|
200
|
-
liveOmit?:
|
|
205
|
+
liveOmit?: 'onChange' | 'onBlur' | DeprecatedBooleanOption;
|
|
201
206
|
/** If set to true, then extra form data values that are not in any form field will be removed whenever `onSubmit` is
|
|
202
207
|
* called. Set to `false` by default.
|
|
203
208
|
*/
|