@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/index.d.ts
CHANGED
|
@@ -106,7 +106,7 @@ declare module '@rjsf/core' {
|
|
|
106
106
|
readonly: boolean;
|
|
107
107
|
autofocus: boolean;
|
|
108
108
|
onChange: (value: any) => void;
|
|
109
|
-
options:
|
|
109
|
+
options: NonNullable<UiSchema['ui:options']>;
|
|
110
110
|
formContext: any;
|
|
111
111
|
onBlur: (id: string, value: boolean | number | string | null) => void;
|
|
112
112
|
onFocus: (id: string, value: boolean | number | string | null) => void;
|
package/lib/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: {}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rjsf/core",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.1",
|
|
4
4
|
"description": "A simple React component capable of building HTML forms out of a JSON schema.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "npm run dist:build:umd && npm run build:cjs && npm run build:es && npm run build:es:lib",
|
|
@@ -130,5 +130,5 @@
|
|
|
130
130
|
"publishConfig": {
|
|
131
131
|
"access": "public"
|
|
132
132
|
},
|
|
133
|
-
"gitHead": "
|
|
133
|
+
"gitHead": "6f3c4c78765cbae67b91bf7762094c9b7e38c7d1"
|
|
134
134
|
}
|