@rjsf/utils 6.0.0-beta.11 → 6.0.0-beta.12
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.js +7 -0
- package/dist/index.js.map +2 -2
- package/dist/utils.esm.js +7 -0
- package/dist/utils.esm.js.map +2 -2
- package/dist/utils.umd.js +7 -0
- package/lib/createSchemaUtils.js +7 -0
- package/lib/createSchemaUtils.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/types.d.ts +5 -0
- package/package.json +1 -1
- package/src/createSchemaUtils.ts +8 -0
- package/src/types.ts +5 -0
package/lib/types.d.ts
CHANGED
|
@@ -891,6 +891,11 @@ export interface FoundFieldType<S extends StrictRJSFSchema = RJSFSchema> {
|
|
|
891
891
|
* set of APIs to the `@rjsf/core` components and the various themes as well.
|
|
892
892
|
*/
|
|
893
893
|
export interface SchemaUtilsType<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any> {
|
|
894
|
+
/** Returns the `rootSchema` in the `SchemaUtilsType`
|
|
895
|
+
*
|
|
896
|
+
* @returns - The rootSchema
|
|
897
|
+
*/
|
|
898
|
+
getRootSchema(): S;
|
|
894
899
|
/** Returns the `ValidatorType` in the `SchemaUtilsType`
|
|
895
900
|
*
|
|
896
901
|
* @returns - The `ValidatorType`
|
package/package.json
CHANGED
package/src/createSchemaUtils.ts
CHANGED
|
@@ -63,6 +63,14 @@ class SchemaUtils<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends Fo
|
|
|
63
63
|
this.experimental_customMergeAllOf = experimental_customMergeAllOf;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
+
/** Returns the `rootSchema` in the `SchemaUtilsType`
|
|
67
|
+
*
|
|
68
|
+
* @returns - The `rootSchema`
|
|
69
|
+
*/
|
|
70
|
+
getRootSchema() {
|
|
71
|
+
return this.rootSchema;
|
|
72
|
+
}
|
|
73
|
+
|
|
66
74
|
/** Returns the `ValidatorType` in the `SchemaUtilsType`
|
|
67
75
|
*
|
|
68
76
|
* @returns - The `ValidatorType`
|
package/src/types.ts
CHANGED
|
@@ -1114,6 +1114,11 @@ export interface FoundFieldType<S extends StrictRJSFSchema = RJSFSchema> {
|
|
|
1114
1114
|
* set of APIs to the `@rjsf/core` components and the various themes as well.
|
|
1115
1115
|
*/
|
|
1116
1116
|
export interface SchemaUtilsType<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any> {
|
|
1117
|
+
/** Returns the `rootSchema` in the `SchemaUtilsType`
|
|
1118
|
+
*
|
|
1119
|
+
* @returns - The rootSchema
|
|
1120
|
+
*/
|
|
1121
|
+
getRootSchema(): S;
|
|
1117
1122
|
/** Returns the `ValidatorType` in the `SchemaUtilsType`
|
|
1118
1123
|
*
|
|
1119
1124
|
* @returns - The `ValidatorType`
|