@epam/ai-dial-ui-kit 0.13.0-dev.32 → 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.
- package/dist/{JsonEditor-DT-tw7al.js → JsonEditor-BFVCwB_-.js} +1 -1
- package/dist/{JsonEditor-BLapL2l5.cjs → JsonEditor-DPmFczWq.cjs} +1 -1
- package/dist/{MarkdownEditor-CIhYUd0N.cjs → MarkdownEditor-DH4y6YcB.cjs} +1 -1
- package/dist/{MarkdownEditor-DYx_XBqx.js → MarkdownEditor-DRriHKa0.js} +1 -1
- package/dist/components-manifest.json +2 -2
- package/dist/dial-ui-kit.cjs.js +1 -1
- package/dist/dial-ui-kit.es.js +1 -1
- package/dist/{index-ZanyR1Yq.cjs → index-CcJwtOyd.cjs} +29 -29
- package/dist/{index-B9v-C2mQ.js → index-DCwGM8To.js} +5807 -5720
- package/dist/src/components/SchemaRenderer/components/SchemaKeyValueEditor.d.ts +9 -1
- package/package.json +1 -1
|
@@ -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>;
|