@rjsf/core 5.6.2 → 5.7.0

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/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { ReactNode, FormEvent, ElementType, Ref, Component, RefObject, ComponentType } from 'react';
2
- import { StrictRJSFSchema, RJSFSchema, FormContextType, ValidatorType, UiSchema, RegistryFieldsType, TemplatesType, RegistryWidgetsType, RJSFValidationError, CustomValidator, ErrorSchema, ErrorTransformer, Registry, IdSchema, SchemaUtilsType, ValidationData, PathSchema } from '@rjsf/utils';
2
+ import { StrictRJSFSchema, RJSFSchema, FormContextType, ValidatorType, UiSchema, RegistryFieldsType, TemplatesType, RegistryWidgetsType, RJSFValidationError, CustomValidator, ErrorSchema, ErrorTransformer, Registry, Experimental_DefaultFormStateBehavior, IdSchema, SchemaUtilsType, ValidationData, PathSchema } from '@rjsf/utils';
3
3
 
4
4
  /** The properties that are passed to the `Form` */
5
5
  interface FormProps<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any> {
@@ -137,6 +137,11 @@ interface FormProps<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends
137
137
  * to put the second parameter before the first in its translation.
138
138
  */
139
139
  translateString?: Registry['translateString'];
140
+ /** Optional configuration object with flags, if provided, allows users to override default form state behavior
141
+ * Currently only affecting minItems on array fields and handling of setting defaults based on the value of
142
+ * `emptyObjectFields`
143
+ */
144
+ experimental_defaultFormStateBehavior?: Experimental_DefaultFormStateBehavior;
140
145
  /**
141
146
  * _internalFormWrapper is currently used by the semantic-ui theme to provide a custom wrapper around `<Form />`
142
147
  * that supports the proper rendering of those themes. To use this prop, one must pass a component that takes two
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rjsf/core",
3
- "version": "5.6.2",
3
+ "version": "5.7.0",
4
4
  "description": "A simple React component capable of building HTML forms out of a JSON schema.",
5
5
  "scripts": {
6
6
  "build": "rimraf dist && dts build --rollupTypes --format cjs,esm,umd",
@@ -45,27 +45,27 @@
45
45
  "prop-types": "^15.8.1"
46
46
  },
47
47
  "devDependencies": {
48
- "@babel/cli": "^7.21.0",
49
- "@babel/core": "^7.21.4",
48
+ "@babel/cli": "^7.21.5",
49
+ "@babel/core": "^7.21.8",
50
50
  "@babel/plugin-proposal-class-properties": "^7.18.6",
51
51
  "@babel/plugin-proposal-optional-chaining": "^7.21.0",
52
52
  "@babel/plugin-transform-object-assign": "^7.18.6",
53
- "@babel/plugin-transform-react-jsx": "^7.21.0",
54
- "@babel/preset-env": "^7.21.4",
53
+ "@babel/plugin-transform-react-jsx": "^7.21.5",
54
+ "@babel/preset-env": "^7.21.5",
55
55
  "@babel/preset-react": "^7.18.6",
56
56
  "@babel/register": "^7.21.0",
57
- "@rjsf/utils": "^5.6.2",
58
- "@rjsf/validator-ajv6": "^5.6.2",
59
- "@rjsf/validator-ajv8": "^5.6.2",
57
+ "@rjsf/utils": "^5.7.0",
58
+ "@rjsf/validator-ajv6": "^5.7.0",
59
+ "@rjsf/validator-ajv8": "^5.7.0",
60
60
  "@types/lodash": "^4.14.194",
61
- "@types/react": "^17.0.58",
62
- "@types/react-dom": "^17.0.19",
61
+ "@types/react": "^17.0.59",
62
+ "@types/react-dom": "^17.0.20",
63
63
  "@types/react-test-renderer": "^17.0.2",
64
64
  "ajv": "^8.12.0",
65
65
  "atob": "^2.1.2",
66
66
  "chai": "^3.5.0",
67
67
  "dts-cli": "^1.6.3",
68
- "eslint": "^8.38.0",
68
+ "eslint": "^8.40.0",
69
69
  "html": "^1.0.0",
70
70
  "jsdom": "^20.0.3",
71
71
  "mocha": "^10.2.0",
@@ -97,5 +97,5 @@
97
97
  "publishConfig": {
98
98
  "access": "public"
99
99
  },
100
- "gitHead": "efe9d2b6a447569b1090b5eddc4b9b23dc5b2df8"
100
+ "gitHead": "109ff6d01ef2e35c1a4b81738d0df27c5044d472"
101
101
  }