@epam/ai-dial-ui-kit 0.12.0-dev.32 → 0.12.0-dev.34

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.
@@ -8,6 +8,7 @@ interface SchemaRendererContextValue {
8
8
  defaultExpanded?: boolean;
9
9
  inputClassName?: string;
10
10
  jsonEditorTheme?: EditorThemes;
11
+ acceptableResourceTypes?: Record<string, unknown>;
11
12
  renderField?: (path: string[], schema: JsonSchemaDef, defaultElement: React.ReactElement) => React.ReactNode;
12
13
  touchedPaths?: ReadonlySet<string>;
13
14
  markTouched?: (path: string) => void;
@@ -47,6 +47,7 @@ export interface JsonSchemaDef {
47
47
  };
48
48
  'dial:meta'?: Record<string, unknown>;
49
49
  'dial:resource'?: boolean;
50
+ acceptableResourceTypes?: string[];
50
51
  [key: string]: unknown;
51
52
  }
52
53
  export interface JsonSchema extends JsonSchemaDef {
@@ -100,6 +101,13 @@ export interface DialSchemaRendererProps {
100
101
  * schema's `properties`. Defaults to `EditorThemes.dark`.
101
102
  */
102
103
  jsonEditorTheme?: EditorThemes;
104
+ /**
105
+ * Live resource options for schema properties flagged with `dial:resource: true`.
106
+ * Keyed by the resource type name referenced in a property's `acceptableResourceTypes`
107
+ * array; each value provides the selectable entries for that resource type (a string
108
+ * array for string-typed properties).
109
+ */
110
+ acceptableResourceTypes?: Record<string, unknown>;
103
111
  onChange?: (value: Record<string, unknown>) => void;
104
112
  onPropertyChange?: (path: string, value: unknown) => void;
105
113
  onDefaultValues?: (value: Record<string, unknown>) => void;
@@ -1,6 +1,7 @@
1
1
  import { FC, ReactNode, MouseEvent, Ref } from 'react';
2
2
  import { SelectOption } from '../../models/select';
3
3
  import { SelectSize, SelectVariant } from '../../types/select';
4
+ import { ElementSize } from '../../types/size';
4
5
  export interface DialSelectProps {
5
6
  options: SelectOption[];
6
7
  multiple?: boolean;
@@ -13,6 +14,7 @@ export interface DialSelectProps {
13
14
  defaultValue?: string | string[];
14
15
  placeholder?: string;
15
16
  searchable?: boolean;
17
+ searchSize?: ElementSize;
16
18
  searchPlaceholder?: string;
17
19
  selectAll?: boolean;
18
20
  selectAllLabel?: string;
@@ -71,6 +73,7 @@ export interface DialSelectProps {
71
73
  * @param [defaultValue] - Uncontrolled initial selected value(s).
72
74
  * @param [placeholder="Select..."] - Placeholder text when no selection is made.
73
75
  * @param [searchable=false] - Show a search field in the overlay header.
76
+ * @param [searchSize=ElementSize.Standard] - Size of the overlay search input when `searchable` is enabled.
74
77
  * @param [searchPlaceholder] - Placeholder for the search input (overlay/inline).
75
78
  * @param [selectAll=false] - Show a "Select All" checkbox in multiple mode.
76
79
  * @param [selectAllLabel="Select all"] - Label for the "Select All" checkbox.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-ui-kit",
3
- "version": "0.12.0-dev.32",
3
+ "version": "0.12.0-dev.34",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "A modern UI kit for building AI DIAL interfaces with React",