@rjsf/core 5.1.0 → 5.2.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/core.cjs.development.js +79 -40
- package/dist/core.cjs.development.js.map +1 -1
- package/dist/core.cjs.production.min.js +1 -1
- package/dist/core.cjs.production.min.js.map +1 -1
- package/dist/core.esm.js +79 -41
- package/dist/core.esm.js.map +1 -1
- package/dist/core.umd.development.js +82 -44
- package/dist/core.umd.development.js.map +1 -1
- package/dist/core.umd.production.min.js +1 -1
- package/dist/core.umd.production.min.js.map +1 -1
- package/dist/index.d.ts +7 -1
- package/package.json +6 -5
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
|
-
import { StrictRJSFSchema, RJSFSchema, FormContextType, ValidatorType, UiSchema, RegistryFieldsType, TemplatesType, RegistryWidgetsType, RJSFValidationError, CustomValidator, ErrorSchema, ErrorTransformer, IdSchema, SchemaUtilsType, ValidationData,
|
|
2
|
+
import { StrictRJSFSchema, RJSFSchema, FormContextType, ValidatorType, UiSchema, RegistryFieldsType, TemplatesType, RegistryWidgetsType, RJSFValidationError, CustomValidator, ErrorSchema, ErrorTransformer, Registry, 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> {
|
|
@@ -131,6 +131,12 @@ interface FormProps<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends
|
|
|
131
131
|
/** If set to true, then the first field with an error will receive the focus when the form is submitted with errors
|
|
132
132
|
*/
|
|
133
133
|
focusOnFirstError?: boolean;
|
|
134
|
+
/** Optional string translation function, if provided, allows users to change the translation of the RJSF internal
|
|
135
|
+
* strings. Some strings contain replaceable parameter values as indicated by `%1`, `%2`, etc. The number after the
|
|
136
|
+
* `%` indicates the order of the parameter. The ordering of parameters is important because some languages may choose
|
|
137
|
+
* to put the second parameter before the first in its translation.
|
|
138
|
+
*/
|
|
139
|
+
translateString?: Registry["translateString"];
|
|
134
140
|
/**
|
|
135
141
|
* _internalFormWrapper is currently used by the semantic-ui theme to provide a custom wrapper around `<Form />`
|
|
136
142
|
* 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.
|
|
3
|
+
"version": "5.2.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",
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"lodash": "^4.17.15",
|
|
41
41
|
"lodash-es": "^4.17.15",
|
|
42
|
+
"markdown-to-jsx": "^7.1.9",
|
|
42
43
|
"nanoid": "^3.3.4",
|
|
43
44
|
"prop-types": "^15.7.2"
|
|
44
45
|
},
|
|
@@ -52,9 +53,9 @@
|
|
|
52
53
|
"@babel/preset-env": "^7.20.2",
|
|
53
54
|
"@babel/preset-react": "^7.18.6",
|
|
54
55
|
"@babel/register": "^7.18.9",
|
|
55
|
-
"@rjsf/utils": "^5.
|
|
56
|
-
"@rjsf/validator-ajv6": "^5.
|
|
57
|
-
"@rjsf/validator-ajv8": "^5.
|
|
56
|
+
"@rjsf/utils": "^5.2.0",
|
|
57
|
+
"@rjsf/validator-ajv6": "^5.2.0",
|
|
58
|
+
"@rjsf/validator-ajv8": "^5.2.0",
|
|
58
59
|
"@types/lodash": "^4.14.191",
|
|
59
60
|
"@types/react": "^17.0.39",
|
|
60
61
|
"@types/react-dom": "^17.0.11",
|
|
@@ -93,5 +94,5 @@
|
|
|
93
94
|
"publishConfig": {
|
|
94
95
|
"access": "public"
|
|
95
96
|
},
|
|
96
|
-
"gitHead": "
|
|
97
|
+
"gitHead": "43002ee01891686f9404960d217fcc1ea7eb5633"
|
|
97
98
|
}
|