@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/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: { [key: string]: boolean | number | string | object | null };
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: require("./components/fields")["default"],
100
- widgets: require("./components/widgets")["default"],
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.0",
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": "32717c73f81653bcc78d187fade97b851ed9fe40"
133
+ "gitHead": "6f3c4c78765cbae67b91bf7762094c9b7e38c7d1"
134
134
  }