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

react-jsonschema-form

Package Overview
Dependencies
Maintainers
6
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-jsonschema-form - npm Package Compare versions

Comparing version 0.36.1 to 0.37.0

4

lib/components/fields/ArrayField.js

@@ -256,7 +256,4 @@ "use strict";

var uiSchema = _props3.uiSchema;
var name = _props3.name;
var disabled = _props3.disabled;
var readonly = _props3.readonly;
var title = schema.title || name;
var items = this.state.items;

@@ -275,3 +272,2 @@ var definitions = this.props.registry.definitions;

schema: schema,
placeholder: title,
value: items,

@@ -278,0 +274,0 @@ disabled: disabled,

@@ -42,3 +42,2 @@ "use strict";

var title = schema.title;
var description = schema.description;
var widgets = registry.widgets;

@@ -52,3 +51,2 @@

label: title || name,
placeholder: description,
value: (0, _utils.defaultFieldValue)(formData, schema),

@@ -55,0 +53,0 @@ required: required,

1

lib/components/fields/NumberField.js

@@ -31,2 +31,3 @@ "use strict";

schema: _react.PropTypes.object.isRequired,
uiSchema: _react.PropTypes.object,
idSchema: _react.PropTypes.object,

@@ -33,0 +34,0 @@ onChange: _react.PropTypes.func.isRequired,

@@ -152,5 +152,5 @@ "use strict";

label: _react.PropTypes.string,
description: _react.PropTypes.string,
description: _react.PropTypes.oneOfType([_react.PropTypes.string, _react.PropTypes.element]),
help: _react.PropTypes.oneOfType([_react.PropTypes.string, _react.PropTypes.element]),
hidden: _react.PropTypes.bool,
help: _react.PropTypes.oneOfType([_react.PropTypes.string, _react.PropTypes.element]),
required: _react.PropTypes.bool,

@@ -157,0 +157,0 @@ displayLabel: _react.PropTypes.bool,

@@ -37,6 +37,6 @@ "use strict";

var title = schema.title;
var description = schema.description;
var widgets = registry.widgets;
var widget = uiSchema["ui:widget"] || schema.format;
var placeholder = uiSchema["ui:placeholder"] || "";
var commonProps = {

@@ -46,5 +46,4 @@ schema: schema,

label: title || name,
placeholder: description,
value: (0, _utils.defaultFieldValue)(formData, schema),
onChange: onChange,
value: (0, _utils.defaultFieldValue)(formData, schema),
required: required,

@@ -64,5 +63,5 @@ disabled: disabled,

var _Widget = (0, _utils.getAlternativeWidget)(schema, widget, widgets);
return _react2.default.createElement(_Widget, commonProps);
return _react2.default.createElement(_Widget, _extends({}, commonProps, { placeholder: placeholder }));
}
return _react2.default.createElement(_TextWidget2.default, commonProps);
return _react2.default.createElement(_TextWidget2.default, _extends({}, commonProps, { placeholder: placeholder }));
}

@@ -73,2 +72,3 @@

schema: _react.PropTypes.object.isRequired,
uiSchema: _react.PropTypes.object.isRequired,
idSchema: _react.PropTypes.object,

@@ -75,0 +75,0 @@ onChange: _react.PropTypes.func.isRequired,

@@ -27,3 +27,2 @@ "use strict";

id: _react.PropTypes.string.isRequired,
placeholder: _react.PropTypes.string,
value: _react2.default.PropTypes.string,

@@ -30,0 +29,0 @@ required: _react.PropTypes.bool,

@@ -213,3 +213,2 @@ "use strict";

id: _react.PropTypes.string.isRequired,
placeholder: _react.PropTypes.string,
value: _react2.default.PropTypes.string,

@@ -216,0 +215,0 @@ required: _react.PropTypes.bool,

@@ -81,3 +81,2 @@ "use strict";

}).isRequired,
placeholder: _react.PropTypes.string,
value: _react.PropTypes.any,

@@ -84,0 +83,0 @@ required: _react.PropTypes.bool,

@@ -19,3 +19,2 @@ "use strict";

var disabled = _ref.disabled;
var placeholder = _ref.placeholder;
var _onChange = _ref.onChange;

@@ -32,3 +31,2 @@ var label = _ref.label;

id: id,
title: placeholder,
checked: typeof value === "undefined" ? false : value,

@@ -54,4 +52,3 @@ required: required,

value: _react.PropTypes.bool,
required: _react.PropTypes.bool,
placeholder: _react.PropTypes.string
required: _react.PropTypes.bool
};

@@ -58,0 +55,0 @@ }

@@ -16,3 +16,2 @@ "use strict";

var options = _ref.options;
var placeholder = _ref.placeholder;
var value = _ref.value;

@@ -43,3 +42,2 @@ var required = _ref.required;

disabled: disabled,
placeholder: placeholder,
onChange: function onChange(_) {

@@ -62,3 +60,2 @@ return _onChange(option.value);

}).isRequired,
placeholder: _react.PropTypes.string,
value: _react.PropTypes.any,

@@ -65,0 +62,0 @@ required: _react.PropTypes.bool,

@@ -32,3 +32,2 @@ "use strict";

var options = _ref.options;
var placeholder = _ref.placeholder;
var value = _ref.value;

@@ -48,3 +47,2 @@ var required = _ref.required;

className: "form-control",
title: placeholder,
value: value,

@@ -88,3 +86,2 @@ required: required,

}).isRequired,
placeholder: _react.PropTypes.string,
value: _react.PropTypes.any,

@@ -91,0 +88,0 @@ required: _react.PropTypes.bool,

{
"name": "react-jsonschema-form",
"version": "0.36.1",
"version": "0.37.0",
"description": "A simple React component capable of building HTML forms out of a JSON schema.",

@@ -5,0 +5,0 @@ "scripts": {

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