@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/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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rjsf/utils",
3
- "version": "6.0.0-beta.11",
3
+ "version": "6.0.0-beta.12",
4
4
  "main": "dist/index.js",
5
5
  "module": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
@@ -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`