@rjsf/core
Advanced tools
Comparing version 3.0.2 to 3.1.0
@@ -556,3 +556,2 @@ "use strict"; | ||
required = _this$props6.required, | ||
label = _this$props6.label, | ||
placeholder = _this$props6.placeholder, | ||
@@ -564,3 +563,4 @@ autofocus = _this$props6.autofocus, | ||
registry = _this$props6$registry === void 0 ? (0, _utils.getDefaultRegistry)() : _this$props6$registry, | ||
rawErrors = _this$props6.rawErrors; | ||
rawErrors = _this$props6.rawErrors, | ||
name = _this$props6.name; | ||
var items = this.props.formData; | ||
@@ -571,2 +571,3 @@ var widgets = registry.widgets, | ||
var itemsSchema = (0, _utils.retrieveSchema)(schema.items, rootSchema, formData); | ||
var title = schema.title || name; | ||
var enumOptions = (0, _utils.optionsList)(itemsSchema); | ||
@@ -595,3 +596,3 @@ | ||
required: required, | ||
label: label, | ||
label: title, | ||
placeholder: placeholder, | ||
@@ -598,0 +599,0 @@ formContext: formContext, |
@@ -539,3 +539,2 @@ function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
required = _this$props6.required, | ||
label = _this$props6.label, | ||
placeholder = _this$props6.placeholder, | ||
@@ -547,3 +546,4 @@ autofocus = _this$props6.autofocus, | ||
registry = _this$props6$registry === void 0 ? getDefaultRegistry() : _this$props6$registry, | ||
rawErrors = _this$props6.rawErrors; | ||
rawErrors = _this$props6.rawErrors, | ||
name = _this$props6.name; | ||
var items = this.props.formData; | ||
@@ -554,2 +554,3 @@ var widgets = registry.widgets, | ||
var itemsSchema = retrieveSchema(schema.items, rootSchema, formData); | ||
var title = schema.title || name; | ||
var enumOptions = optionsList(itemsSchema); | ||
@@ -578,3 +579,3 @@ | ||
required: required, | ||
label: label, | ||
label: title, | ||
placeholder: placeholder, | ||
@@ -581,0 +582,0 @@ formContext: formContext, |
@@ -117,2 +117,3 @@ // Originally from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/@rjsf/core/index.d.ts | ||
rawErrors: string[]; | ||
registry: Registry; | ||
} | ||
@@ -122,2 +123,9 @@ | ||
export interface Registry { | ||
fields: { [name: string]: Field }; | ||
widgets: { [name: string]: Widget }; | ||
definitions: { [name: string]: any }; | ||
formContext: any; | ||
} | ||
export interface FieldProps<T = any> | ||
@@ -132,8 +140,3 @@ extends Pick<React.HTMLAttributes<HTMLElement>, Exclude<keyof React.HTMLAttributes<HTMLElement>, 'onBlur'>> { | ||
onBlur: (id: string, value: any) => void; | ||
registry: { | ||
fields: { [name: string]: Field }; | ||
widgets: { [name: string]: Widget }; | ||
definitions: { [name: string]: any }; | ||
formContext: any; | ||
}; | ||
registry: Registry; | ||
formContext: any; | ||
@@ -140,0 +143,0 @@ autofocus: boolean; |
@@ -539,3 +539,2 @@ function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
required = _this$props6.required, | ||
label = _this$props6.label, | ||
placeholder = _this$props6.placeholder, | ||
@@ -547,3 +546,4 @@ autofocus = _this$props6.autofocus, | ||
registry = _this$props6$registry === void 0 ? getDefaultRegistry() : _this$props6$registry, | ||
rawErrors = _this$props6.rawErrors; | ||
rawErrors = _this$props6.rawErrors, | ||
name = _this$props6.name; | ||
var items = this.props.formData; | ||
@@ -554,2 +554,3 @@ var widgets = registry.widgets, | ||
var itemsSchema = retrieveSchema(schema.items, rootSchema, formData); | ||
var title = schema.title || name; | ||
var enumOptions = optionsList(itemsSchema); | ||
@@ -578,3 +579,3 @@ | ||
required: required, | ||
label: label, | ||
label: title, | ||
placeholder: placeholder, | ||
@@ -581,0 +582,0 @@ formContext: formContext, |
{ | ||
"name": "@rjsf/core", | ||
"version": "3.0.2", | ||
"version": "3.1.0", | ||
"description": "A simple React component capable of building HTML forms out of a JSON schema.", | ||
@@ -123,3 +123,3 @@ "scripts": { | ||
}, | ||
"gitHead": "d1a70868a7dac508f31c4140648710ff1681f2f3" | ||
"gitHead": "dffebb78e435d794712a5459e164c6ba7720f35a" | ||
} |
Sorry, the diff of this file is too big to display
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
1998807
16795
4