@rjsf/core 2.4.0 → 2.4.1
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/dist/cjs/utils.js +8 -4
- package/dist/es/utils.js +5 -3
- package/dist/react-jsonschema-form.js +3 -3
- package/dist/react-jsonschema-form.js.map +1 -1
- package/index.d.ts +1 -1
- package/lib/utils.js +5 -3
- package/package.json +2 -2
package/dist/cjs/utils.js
CHANGED
|
@@ -52,12 +52,16 @@ var _jsonSchemaMergeAllof = _interopRequireDefault(require("json-schema-merge-al
|
|
|
52
52
|
|
|
53
53
|
var _fill = _interopRequireDefault(require("core-js/library/fn/array/fill"));
|
|
54
54
|
|
|
55
|
-
var _validate = _interopRequireWildcard(require("./validate"));
|
|
56
|
-
|
|
57
55
|
var _union = _interopRequireDefault(require("lodash/union"));
|
|
58
56
|
|
|
59
57
|
var _jsonpointer = _interopRequireDefault(require("jsonpointer"));
|
|
60
58
|
|
|
59
|
+
var _fields = _interopRequireDefault(require("./components/fields"));
|
|
60
|
+
|
|
61
|
+
var _widgets = _interopRequireDefault(require("./components/widgets"));
|
|
62
|
+
|
|
63
|
+
var _validate = _interopRequireWildcard(require("./validate"));
|
|
64
|
+
|
|
61
65
|
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj["default"] = obj; return newObj; } }
|
|
62
66
|
|
|
63
67
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -163,8 +167,8 @@ function canExpand(schema, uiSchema, formData) {
|
|
|
163
167
|
|
|
164
168
|
function getDefaultRegistry() {
|
|
165
169
|
return {
|
|
166
|
-
fields:
|
|
167
|
-
widgets:
|
|
170
|
+
fields: _fields["default"],
|
|
171
|
+
widgets: _widgets["default"],
|
|
168
172
|
definitions: {},
|
|
169
173
|
rootSchema: {},
|
|
170
174
|
formContext: {}
|
package/dist/es/utils.js
CHANGED
|
@@ -19,9 +19,11 @@ import React from "react";
|
|
|
19
19
|
import * as ReactIs from "react-is";
|
|
20
20
|
import mergeAllOf from "json-schema-merge-allof";
|
|
21
21
|
import fill from "core-js/library/fn/array/fill";
|
|
22
|
-
import validateFormData, { isValid } from "./validate";
|
|
23
22
|
import union from "lodash/union";
|
|
24
23
|
import jsonpointer from "jsonpointer";
|
|
24
|
+
import fields from "./components/fields";
|
|
25
|
+
import widgets from "./components/widgets";
|
|
26
|
+
import validateFormData, { isValid } from "./validate";
|
|
25
27
|
export var ADDITIONAL_PROPERTY_FLAG = "__additional_property";
|
|
26
28
|
var widgetMap = {
|
|
27
29
|
"boolean": {
|
|
@@ -96,8 +98,8 @@ export function canExpand(schema, uiSchema, formData) {
|
|
|
96
98
|
}
|
|
97
99
|
export function getDefaultRegistry() {
|
|
98
100
|
return {
|
|
99
|
-
fields:
|
|
100
|
-
widgets:
|
|
101
|
+
fields: fields,
|
|
102
|
+
widgets: widgets,
|
|
101
103
|
definitions: {},
|
|
102
104
|
rootSchema: {},
|
|
103
105
|
formContext: {}
|