@limetech/lime-elements 36.2.0-next.3 → 36.2.0-next.4

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.
@@ -27,4 +27,15 @@ export declare class SchemaField extends React.Component<FieldProps> {
27
27
  private buildCustomComponentProps;
28
28
  private renderCustomComponent;
29
29
  render(): React.FunctionComponentElement<any> | React.CElement<import("@rjsf/core/lib/components/fields/SchemaField").SchemaFieldProps<any>, JSONSchemaField>;
30
+ /**
31
+ * Gets the path to the current property within the schema
32
+ *
33
+ * @param {string} schemaId the id of the schema
34
+ * @returns {string[]} an array with the schema path for the current property
35
+ * @example
36
+ * const schemaId = 'root_sections_0_controls_0_name';
37
+ * const schemaPath = getSchemaPath(schemaId);
38
+ * // => ['sections', '0', 'controls', '0', 'name']
39
+ */
40
+ private getSchemaPath;
30
41
  }
@@ -94,6 +94,10 @@ export interface FormInfo {
94
94
  * The name of the current property
95
95
  */
96
96
  name?: string;
97
+ /**
98
+ * Path to the property within the schema
99
+ */
100
+ schemaPath?: string[];
97
101
  }
98
102
  /**
99
103
  * Lime elements specific options that can be specified under the `lime` key in
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@limetech/lime-elements",
3
- "version": "36.2.0-next.3",
3
+ "version": "36.2.0-next.4",
4
4
  "description": "Lime Elements",
5
5
  "author": "Lime Technologies",
6
6
  "license": "Apache-2.0",