@epam/ai-dial-ui-kit 0.13.0-dev.31 → 0.13.0-dev.33

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.
@@ -4,9 +4,13 @@ export interface SchemaKeyValueEditorProps {
4
4
  schema: JsonSchemaDef;
5
5
  value: unknown;
6
6
  onChange: (value: unknown) => void;
7
+ path: string[];
8
+ level: number;
7
9
  }
8
10
  /**
9
- * Renders an `additionalProperties` object schema as an editable key-value list.
11
+ * Renders an `additionalProperties` object schema as an editable key-value list. Primitive
12
+ * values render inline; object/`oneOf`/array values render as a collapsible section recursing
13
+ * back into `SchemaFieldContent`.
10
14
  * aliases: KeyValueSchemaEditor|AdditionalPropertiesEditor
11
15
  *
12
16
  * @example
@@ -15,11 +19,15 @@ export interface SchemaKeyValueEditorProps {
15
19
  * schema={{ type: 'object', additionalProperties: { type: 'string' } }}
16
20
  * value={{ foo: 'bar' }}
17
21
  * onChange={(v) => console.log(v)}
22
+ * path={['metadata']}
23
+ * level={1}
18
24
  * />
19
25
  * ```
20
26
  *
21
27
  * @param schema - The JSON Schema object definition with `additionalProperties`
22
28
  * @param value - Current object value (treated as a key-value map)
23
29
  * @param onChange - Called with the updated object when pairs are added, removed, or changed
30
+ * @param path - Field path segments used for validation error tracking
31
+ * @param level - Nesting depth passed to child section components
24
32
  */
25
33
  export declare const SchemaKeyValueEditor: FC<SchemaKeyValueEditorProps>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-ui-kit",
3
- "version": "0.13.0-dev.31",
3
+ "version": "0.13.0-dev.33",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "A modern UI kit for building AI DIAL interfaces with React",