Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@rjsf/core

Package Overview
Dependencies
Maintainers
2
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rjsf/core - npm Package Compare versions

Comparing version 3.0.2 to 3.1.0

7

dist/cjs/components/fields/ArrayField.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc