@uipath/apollo-wind 2.57.1 → 2.59.0
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/components/ui/field-actions/ai-assist-action.cjs +51 -7
- package/dist/components/ui/field-actions/ai-assist-action.d.ts +12 -3
- package/dist/components/ui/field-actions/ai-assist-action.js +52 -8
- package/dist/components/ui/field-actions/insert-variable-action.cjs +16 -15
- package/dist/components/ui/field-actions/insert-variable-action.d.ts +15 -4
- package/dist/components/ui/field-actions/insert-variable-action.js +16 -15
- package/dist/components/ui/field-addons/built-in-value-modes.cjs +84 -0
- package/dist/components/ui/field-addons/built-in-value-modes.d.ts +21 -0
- package/dist/components/ui/field-addons/built-in-value-modes.js +44 -0
- package/dist/components/ui/field-addons/{value-mode-menu.cjs → field-menu.cjs} +20 -25
- package/dist/components/ui/field-addons/{value-mode-menu.d.ts → field-menu.d.ts} +19 -20
- package/dist/components/ui/field-addons/{value-mode-menu.js → field-menu.js} +20 -25
- package/dist/components/ui/field-addons/index.cjs +12 -11
- package/dist/components/ui/field-addons/index.d.ts +3 -2
- package/dist/components/ui/field-addons/index.js +4 -3
- package/dist/components/ui/field-addons/value-mode-indicator.cjs +4 -4
- package/dist/components/ui/field-addons/value-mode-indicator.d.ts +3 -1
- package/dist/components/ui/field-addons/value-mode-indicator.js +5 -5
- package/dist/components/ui/field-addons/value-mode-strings.cjs +9 -27
- package/dist/components/ui/field-addons/value-mode-strings.d.ts +14 -16
- package/dist/components/ui/field-addons/value-mode-strings.js +8 -20
- package/dist/components/ui/index.cjs +210 -143
- package/dist/components/ui/index.d.ts +2 -2
- package/dist/components/ui/index.js +2 -2
- package/dist/components/ui/lockable-value-field/components/field-header.cjs +20 -1
- package/dist/components/ui/lockable-value-field/components/field-header.d.ts +1 -1
- package/dist/components/ui/lockable-value-field/components/field-header.js +20 -1
- package/dist/components/ui/lockable-value-field/lockable-value-field.cjs +3 -3
- package/dist/components/ui/lockable-value-field/lockable-value-field.js +1 -1
- package/dist/components/ui/tree-view.cjs +6 -2
- package/dist/components/ui/tree-view.d.ts +35 -21
- package/dist/components/ui/tree-view.js +4 -3
- package/dist/index.cjs +19 -16
- package/dist/index.d.ts +8 -8
- package/dist/index.js +5 -5
- package/package.json +1 -1
|
@@ -61,6 +61,6 @@ export * from './textarea';
|
|
|
61
61
|
export * from './toggle';
|
|
62
62
|
export * from './toggle-group';
|
|
63
63
|
export * from './tooltip';
|
|
64
|
-
export type { TreeViewIconMap, TreeViewItem, TreeViewItemAction, TreeViewMenuItem, TreeViewProps, TreeViewSelectionMode, } from './tree-view';
|
|
65
|
-
export { default as TreeView } from './tree-view';
|
|
64
|
+
export type { FileTreeViewIconMap, FileTreeViewItem, FileTreeViewItemAction, FileTreeViewMenuItem, FileTreeViewProps, FileTreeViewSelectionMode, TreeViewIconMap, TreeViewItem, TreeViewItemAction, TreeViewMenuItem, TreeViewProps, TreeViewSelectionMode, } from './tree-view';
|
|
65
|
+
export { default as FileTreeView, TreeView } from './tree-view';
|
|
66
66
|
export * from './variable-picker';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import tree_view from "./tree-view.js";
|
|
1
|
+
import tree_view, { TreeView } from "./tree-view.js";
|
|
2
2
|
export * from "./accordion.js";
|
|
3
3
|
export * from "./alert.js";
|
|
4
4
|
export * from "./alert-dialog.js";
|
|
@@ -63,4 +63,4 @@ export * from "./toggle.js";
|
|
|
63
63
|
export * from "./toggle-group.js";
|
|
64
64
|
export * from "./tooltip.js";
|
|
65
65
|
export * from "./variable-picker/index.js";
|
|
66
|
-
export { tree_view as TreeView };
|
|
66
|
+
export { tree_view as FileTreeView, TreeView };
|
|
@@ -28,6 +28,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
28
28
|
});
|
|
29
29
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
30
30
|
const external_lucide_react_namespaceObject = require("lucide-react");
|
|
31
|
+
const external_react_namespaceObject = require("react");
|
|
31
32
|
const external_dropdown_menu_cjs_namespaceObject = require("../../dropdown-menu.cjs");
|
|
32
33
|
const external_label_cjs_namespaceObject = require("../../label.cjs");
|
|
33
34
|
const external_popover_cjs_namespaceObject = require("../../popover.cjs");
|
|
@@ -38,8 +39,26 @@ const ai_assist_action_cjs_namespaceObject = require("../../field-actions/ai-ass
|
|
|
38
39
|
const collapse_cjs_namespaceObject = require("../../field-actions/collapse.cjs");
|
|
39
40
|
const insert_variable_action_cjs_namespaceObject = require("../../field-actions/insert-variable-action.cjs");
|
|
40
41
|
const external_types_cjs_namespaceObject = require("../types.cjs");
|
|
42
|
+
function toVariableTree(variables) {
|
|
43
|
+
return [
|
|
44
|
+
{
|
|
45
|
+
id: 'vars',
|
|
46
|
+
label: '$vars',
|
|
47
|
+
type: 'object',
|
|
48
|
+
children: variables.map((variable)=>({
|
|
49
|
+
id: variable.value,
|
|
50
|
+
label: variable.label,
|
|
51
|
+
value: variable.value,
|
|
52
|
+
type: 'string'
|
|
53
|
+
}))
|
|
54
|
+
}
|
|
55
|
+
];
|
|
56
|
+
}
|
|
41
57
|
function FieldHeader({ label, fieldId, fieldLabel, required, fieldType, onFieldTypeChange, onRequiredChange, compact, showFieldActions, showAiAssist, value, onValueChange, variables, onGenerateWithAi, headerActions }) {
|
|
42
58
|
const typeMeta = external_types_cjs_namespaceObject.FIELD_TYPE_META[fieldType];
|
|
59
|
+
const variableTree = (0, external_react_namespaceObject.useMemo)(()=>toVariableTree(variables), [
|
|
60
|
+
variables
|
|
61
|
+
]);
|
|
43
62
|
const collapsedTextClass = (0, index_cjs_namespaceObject.cn)(collapse_cjs_namespaceObject.COLLAPSED_HIDDEN, compact && '!hidden');
|
|
44
63
|
const collapsedPaddingClass = (0, index_cjs_namespaceObject.cn)(collapse_cjs_namespaceObject.COLLAPSED_ICON_PADDING, compact && '!px-1.5');
|
|
45
64
|
const compactOnlyClass = (0, index_cjs_namespaceObject.cn)(collapse_cjs_namespaceObject.COLLAPSED_ONLY, compact && '!block');
|
|
@@ -199,7 +218,7 @@ function FieldHeader({ label, fieldId, fieldLabel, required, fieldType, onFieldT
|
|
|
199
218
|
hint: `Output: ${typeMeta.label}${typeMeta.supportsExpression ? ' expression' : ' value'}`
|
|
200
219
|
}),
|
|
201
220
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(insert_variable_action_cjs_namespaceObject.InsertVariableAction, {
|
|
202
|
-
variables:
|
|
221
|
+
variables: variableTree,
|
|
203
222
|
compact: compact,
|
|
204
223
|
onInsert: onValueChange && ((variable)=>onValueChange(value ? `${value} ${variable}` : variable))
|
|
205
224
|
})
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
2
|
import type { LockableFieldType, LockableValueFieldOption } from '../types';
|
|
3
3
|
export declare function FieldHeader({ label, fieldId, fieldLabel, required, fieldType, onFieldTypeChange, onRequiredChange, compact, showFieldActions, showAiAssist, value, onValueChange, variables, onGenerateWithAi, headerActions, }: {
|
|
4
4
|
label?: ReactNode;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Asterisk, ChevronDown } from "lucide-react";
|
|
3
|
+
import { useMemo } from "react";
|
|
3
4
|
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "../../dropdown-menu.js";
|
|
4
5
|
import { Label, RequiredIndicator } from "../../label.js";
|
|
5
6
|
import { Popover, PopoverContent, PopoverTrigger } from "../../popover.js";
|
|
@@ -10,8 +11,26 @@ import { AiAssistAction } from "../../field-actions/ai-assist-action.js";
|
|
|
10
11
|
import { COLLAPSED_HIDDEN, COLLAPSED_ICON_PADDING, COLLAPSED_ONLY } from "../../field-actions/collapse.js";
|
|
11
12
|
import { InsertVariableAction } from "../../field-actions/insert-variable-action.js";
|
|
12
13
|
import { FIELD_TYPE_META, FIELD_TYPE_ORDER } from "../types.js";
|
|
14
|
+
function toVariableTree(variables) {
|
|
15
|
+
return [
|
|
16
|
+
{
|
|
17
|
+
id: 'vars',
|
|
18
|
+
label: '$vars',
|
|
19
|
+
type: 'object',
|
|
20
|
+
children: variables.map((variable)=>({
|
|
21
|
+
id: variable.value,
|
|
22
|
+
label: variable.label,
|
|
23
|
+
value: variable.value,
|
|
24
|
+
type: 'string'
|
|
25
|
+
}))
|
|
26
|
+
}
|
|
27
|
+
];
|
|
28
|
+
}
|
|
13
29
|
function FieldHeader({ label, fieldId, fieldLabel, required, fieldType, onFieldTypeChange, onRequiredChange, compact, showFieldActions, showAiAssist, value, onValueChange, variables, onGenerateWithAi, headerActions }) {
|
|
14
30
|
const typeMeta = FIELD_TYPE_META[fieldType];
|
|
31
|
+
const variableTree = useMemo(()=>toVariableTree(variables), [
|
|
32
|
+
variables
|
|
33
|
+
]);
|
|
15
34
|
const collapsedTextClass = cn(COLLAPSED_HIDDEN, compact && '!hidden');
|
|
16
35
|
const collapsedPaddingClass = cn(COLLAPSED_ICON_PADDING, compact && '!px-1.5');
|
|
17
36
|
const compactOnlyClass = cn(COLLAPSED_ONLY, compact && '!block');
|
|
@@ -171,7 +190,7 @@ function FieldHeader({ label, fieldId, fieldLabel, required, fieldType, onFieldT
|
|
|
171
190
|
hint: `Output: ${typeMeta.label}${typeMeta.supportsExpression ? ' expression' : ' value'}`
|
|
172
191
|
}),
|
|
173
192
|
/*#__PURE__*/ jsx(InsertVariableAction, {
|
|
174
|
-
variables:
|
|
193
|
+
variables: variableTree,
|
|
175
194
|
compact: compact,
|
|
176
195
|
onInsert: onValueChange && ((variable)=>onValueChange(value ? `${value} ${variable}` : variable))
|
|
177
196
|
})
|
|
@@ -38,7 +38,7 @@ const external_popover_cjs_namespaceObject = require("../popover.cjs");
|
|
|
38
38
|
const external_select_cjs_namespaceObject = require("../select.cjs");
|
|
39
39
|
const external_switch_cjs_namespaceObject = require("../switch.cjs");
|
|
40
40
|
const index_cjs_namespaceObject = require("../../../lib/index.cjs");
|
|
41
|
-
const
|
|
41
|
+
const field_menu_cjs_namespaceObject = require("../field-addons/field-menu.cjs");
|
|
42
42
|
const field_header_cjs_namespaceObject = require("./components/field-header.cjs");
|
|
43
43
|
const lock_toggle_button_cjs_namespaceObject = require("./components/lock-toggle-button.cjs");
|
|
44
44
|
const external_types_cjs_namespaceObject = require("./types.cjs");
|
|
@@ -241,14 +241,14 @@ function LockableValueField({ value = '', onValueChange, onValueBlur, locked = t
|
|
|
241
241
|
align: "end",
|
|
242
242
|
className: "w-56",
|
|
243
243
|
children: [
|
|
244
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
244
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(field_menu_cjs_namespaceObject.ValueModeMenuItem, {
|
|
245
245
|
icon: external_lucide_react_namespaceObject.Type,
|
|
246
246
|
label: typeMeta.fixedLabel,
|
|
247
247
|
description: typeMeta.fixedDescription,
|
|
248
248
|
active: 'fixed' === effectiveMode,
|
|
249
249
|
onClick: ()=>onModeChange?.('fixed')
|
|
250
250
|
}),
|
|
251
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
251
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(field_menu_cjs_namespaceObject.ValueModeMenuItem, {
|
|
252
252
|
icon: external_lucide_react_namespaceObject.Code2,
|
|
253
253
|
label: "Expression",
|
|
254
254
|
description: "Use a JS expression",
|
|
@@ -10,7 +10,7 @@ import { Popover, PopoverContent, PopoverTrigger } from "../popover.js";
|
|
|
10
10
|
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "../select.js";
|
|
11
11
|
import { Switch } from "../switch.js";
|
|
12
12
|
import { cn } from "../../../lib/index.js";
|
|
13
|
-
import { ValueModeMenuItem } from "../field-addons/
|
|
13
|
+
import { ValueModeMenuItem } from "../field-addons/field-menu.js";
|
|
14
14
|
import { FieldHeader } from "./components/field-header.js";
|
|
15
15
|
import { LockToggleButton } from "./components/lock-toggle-button.js";
|
|
16
16
|
import { FIELD_TYPE_META } from "./types.js";
|
|
@@ -25,6 +25,7 @@ var __webpack_require__ = {};
|
|
|
25
25
|
var __webpack_exports__ = {};
|
|
26
26
|
__webpack_require__.r(__webpack_exports__);
|
|
27
27
|
__webpack_require__.d(__webpack_exports__, {
|
|
28
|
+
TreeView: ()=>TreeView,
|
|
28
29
|
default: ()=>tree_view
|
|
29
30
|
});
|
|
30
31
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
@@ -758,7 +759,7 @@ function TreeItem({ item, depth = 0, selectedIds, lastSelectedId, onSelect, expa
|
|
|
758
759
|
]
|
|
759
760
|
});
|
|
760
761
|
}
|
|
761
|
-
const
|
|
762
|
+
const tree_view_FileTreeView = /*#__PURE__*/ external_react_namespaceObject.forwardRef(function({ className, containerClassName, checkboxLabels = {
|
|
762
763
|
check: 'Check',
|
|
763
764
|
uncheck: 'Uncheck'
|
|
764
765
|
}, data, iconMap, searchPlaceholder = 'Search...', selectionText = 'selected', showExpandAll = true, showCheckboxes = false, showSelectionCheckboxes = false, selectionMode = 'multiple', title, getIcon, onSelectionChange, onAction, onCheckChange, menuItems }, ref) {
|
|
@@ -1115,9 +1116,12 @@ const tree_view_TreeView = /*#__PURE__*/ external_react_namespaceObject.forwardR
|
|
|
1115
1116
|
})
|
|
1116
1117
|
});
|
|
1117
1118
|
});
|
|
1118
|
-
const tree_view =
|
|
1119
|
+
const tree_view = tree_view_FileTreeView;
|
|
1120
|
+
const TreeView = tree_view_FileTreeView;
|
|
1121
|
+
exports.TreeView = __webpack_exports__.TreeView;
|
|
1119
1122
|
exports["default"] = __webpack_exports__["default"];
|
|
1120
1123
|
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
1124
|
+
"TreeView",
|
|
1121
1125
|
"default"
|
|
1122
1126
|
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
1123
1127
|
Object.defineProperty(exports, '__esModule', {
|
|
@@ -3,7 +3,7 @@ import * as React from 'react';
|
|
|
3
3
|
* Action shown in the item's dropdown menu (Edit, Delete, etc.).
|
|
4
4
|
* Actions appear as a single "more" icon that opens a dropdown to avoid horizontal overflow.
|
|
5
5
|
*/
|
|
6
|
-
export interface
|
|
6
|
+
export interface FileTreeViewItemAction {
|
|
7
7
|
/** Unique action identifier */
|
|
8
8
|
id: string;
|
|
9
9
|
/** Icon to display in the dropdown menu item */
|
|
@@ -11,12 +11,12 @@ export interface TreeViewItemAction {
|
|
|
11
11
|
/** Accessible label for the action */
|
|
12
12
|
label?: string;
|
|
13
13
|
/** Called when the action is clicked */
|
|
14
|
-
onClick: (item:
|
|
14
|
+
onClick: (item: FileTreeViewItem) => void;
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
17
|
* A single item in the tree. Supports hierarchical structure, selection, and rich metadata.
|
|
18
18
|
*/
|
|
19
|
-
export interface
|
|
19
|
+
export interface FileTreeViewItem {
|
|
20
20
|
/** Unique identifier (must be unique across the entire tree) */
|
|
21
21
|
id: string;
|
|
22
22
|
/** Display name */
|
|
@@ -24,7 +24,7 @@ export interface TreeViewItem {
|
|
|
24
24
|
/** Type used for icon lookup in iconMap */
|
|
25
25
|
type: string;
|
|
26
26
|
/** Child items for expandable folders */
|
|
27
|
-
children?:
|
|
27
|
+
children?: FileTreeViewItem[];
|
|
28
28
|
/** Checked state when using access-rights checkboxes (showCheckboxes) */
|
|
29
29
|
checked?: boolean;
|
|
30
30
|
/** When true, item is greyed out and cannot be selected */
|
|
@@ -34,16 +34,16 @@ export interface TreeViewItem {
|
|
|
34
34
|
/** Secondary metadata shown after the badge (e.g. "Production", "2 workflows") */
|
|
35
35
|
meta?: string | React.ReactNode;
|
|
36
36
|
/** Actions shown in a dropdown menu (Edit, Delete, etc.). Uses a single "more" icon to prevent horizontal scroll. */
|
|
37
|
-
actions?:
|
|
37
|
+
actions?: FileTreeViewItemAction[];
|
|
38
38
|
}
|
|
39
|
-
export interface
|
|
39
|
+
export interface FileTreeViewIconMap {
|
|
40
40
|
[key: string]: React.ReactNode | undefined;
|
|
41
41
|
}
|
|
42
|
-
export interface
|
|
42
|
+
export interface FileTreeViewMenuItem {
|
|
43
43
|
id: string;
|
|
44
44
|
label: string;
|
|
45
45
|
icon?: React.ReactNode;
|
|
46
|
-
action: (items:
|
|
46
|
+
action: (items: FileTreeViewItem[]) => void;
|
|
47
47
|
}
|
|
48
48
|
/**
|
|
49
49
|
* Controls how items can be selected.
|
|
@@ -51,18 +51,18 @@ export interface TreeViewMenuItem {
|
|
|
51
51
|
* - `"single"`: Only one item can be selected at a time
|
|
52
52
|
* - `"none"`: No selection; expand/collapse only
|
|
53
53
|
*/
|
|
54
|
-
export type
|
|
55
|
-
export interface
|
|
54
|
+
export type FileTreeViewSelectionMode = 'single' | 'multiple' | 'none';
|
|
55
|
+
export interface FileTreeViewProps {
|
|
56
56
|
className?: string;
|
|
57
57
|
containerClassName?: string;
|
|
58
|
-
data:
|
|
58
|
+
data: FileTreeViewItem[];
|
|
59
59
|
title?: string;
|
|
60
60
|
showExpandAll?: boolean;
|
|
61
61
|
showCheckboxes?: boolean;
|
|
62
62
|
/** Show selection checkboxes on leaf items only (folders do not get checkboxes) */
|
|
63
63
|
showSelectionCheckboxes?: boolean;
|
|
64
64
|
/** Selection behavior: "multiple" (default), "single", or "none" */
|
|
65
|
-
selectionMode?:
|
|
65
|
+
selectionMode?: FileTreeViewSelectionMode;
|
|
66
66
|
checkboxPosition?: 'left' | 'right';
|
|
67
67
|
searchPlaceholder?: string;
|
|
68
68
|
selectionText?: string;
|
|
@@ -70,15 +70,15 @@ export interface TreeViewProps {
|
|
|
70
70
|
check: string;
|
|
71
71
|
uncheck: string;
|
|
72
72
|
};
|
|
73
|
-
getIcon?: (item:
|
|
74
|
-
onSelectionChange?: (selectedItems:
|
|
75
|
-
onAction?: (action: string, items:
|
|
76
|
-
onCheckChange?: (item:
|
|
77
|
-
iconMap?:
|
|
78
|
-
menuItems?:
|
|
73
|
+
getIcon?: (item: FileTreeViewItem, depth: number) => React.ReactNode;
|
|
74
|
+
onSelectionChange?: (selectedItems: FileTreeViewItem[]) => void;
|
|
75
|
+
onAction?: (action: string, items: FileTreeViewItem[]) => void;
|
|
76
|
+
onCheckChange?: (item: FileTreeViewItem, checked: boolean) => void;
|
|
77
|
+
iconMap?: FileTreeViewIconMap;
|
|
78
|
+
menuItems?: FileTreeViewMenuItem[];
|
|
79
79
|
}
|
|
80
80
|
/**
|
|
81
|
-
*
|
|
81
|
+
* FileTreeView displays hierarchical data with expand/collapse, search, selection, and optional actions.
|
|
82
82
|
*
|
|
83
83
|
* **Features:**
|
|
84
84
|
* - **Search**: Filters items by name and auto-expands matching branches
|
|
@@ -92,5 +92,19 @@ export interface TreeViewProps {
|
|
|
92
92
|
*
|
|
93
93
|
* **Layout**: Title → Search bar → Expand/Collapse + Selected count + Clear → Tree. No horizontal scroll.
|
|
94
94
|
*/
|
|
95
|
-
declare const
|
|
96
|
-
export default
|
|
95
|
+
declare const FileTreeView: React.ForwardRefExoticComponent<FileTreeViewProps & React.RefAttributes<HTMLDivElement>>;
|
|
96
|
+
export default FileTreeView;
|
|
97
|
+
/** @deprecated Use `FileTreeView`. */
|
|
98
|
+
export declare const TreeView: React.ForwardRefExoticComponent<FileTreeViewProps & React.RefAttributes<HTMLDivElement>>;
|
|
99
|
+
/** @deprecated Use `FileTreeViewItemAction`. */
|
|
100
|
+
export type TreeViewItemAction = FileTreeViewItemAction;
|
|
101
|
+
/** @deprecated Use `FileTreeViewItem`. */
|
|
102
|
+
export type TreeViewItem = FileTreeViewItem;
|
|
103
|
+
/** @deprecated Use `FileTreeViewIconMap`. */
|
|
104
|
+
export type TreeViewIconMap = FileTreeViewIconMap;
|
|
105
|
+
/** @deprecated Use `FileTreeViewMenuItem`. */
|
|
106
|
+
export type TreeViewMenuItem = FileTreeViewMenuItem;
|
|
107
|
+
/** @deprecated Use `FileTreeViewSelectionMode`. */
|
|
108
|
+
export type TreeViewSelectionMode = FileTreeViewSelectionMode;
|
|
109
|
+
/** @deprecated Use `FileTreeViewProps`. */
|
|
110
|
+
export type TreeViewProps = FileTreeViewProps;
|
|
@@ -730,7 +730,7 @@ function TreeItem({ item, depth = 0, selectedIds, lastSelectedId, onSelect, expa
|
|
|
730
730
|
]
|
|
731
731
|
});
|
|
732
732
|
}
|
|
733
|
-
const
|
|
733
|
+
const tree_view_FileTreeView = /*#__PURE__*/ forwardRef(function({ className, containerClassName, checkboxLabels = {
|
|
734
734
|
check: 'Check',
|
|
735
735
|
uncheck: 'Uncheck'
|
|
736
736
|
}, data, iconMap, searchPlaceholder = 'Search...', selectionText = 'selected', showExpandAll = true, showCheckboxes = false, showSelectionCheckboxes = false, selectionMode = 'multiple', title, getIcon, onSelectionChange, onAction, onCheckChange, menuItems }, ref) {
|
|
@@ -1087,5 +1087,6 @@ const tree_view_TreeView = /*#__PURE__*/ forwardRef(function({ className, contai
|
|
|
1087
1087
|
})
|
|
1088
1088
|
});
|
|
1089
1089
|
});
|
|
1090
|
-
const tree_view =
|
|
1091
|
-
|
|
1090
|
+
const tree_view = tree_view_FileTreeView;
|
|
1091
|
+
const TreeView = tree_view_FileTreeView;
|
|
1092
|
+
export { TreeView, tree_view as default };
|
package/dist/index.cjs
CHANGED
|
@@ -47,7 +47,6 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
47
47
|
FormFieldHeader: ()=>form_field_cjs_namespaceObject.FormFieldHeader,
|
|
48
48
|
auditPlugin: ()=>form_plugins_cjs_namespaceObject.auditPlugin,
|
|
49
49
|
ContextMenuLabel: ()=>context_menu_cjs_namespaceObject.ContextMenuLabel,
|
|
50
|
-
useValueModeStrings: ()=>field_addons_index_cjs_namespaceObject.useValueModeStrings,
|
|
51
50
|
ContextMenuSub: ()=>context_menu_cjs_namespaceObject.ContextMenuSub,
|
|
52
51
|
PopoverTrigger: ()=>popover_cjs_namespaceObject.PopoverTrigger,
|
|
53
52
|
toast: ()=>sonner_cjs_namespaceObject.toast,
|
|
@@ -60,9 +59,10 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
60
59
|
Spinner: ()=>spinner_cjs_namespaceObject.Spinner,
|
|
61
60
|
DrawerContent: ()=>drawer_cjs_namespaceObject.DrawerContent,
|
|
62
61
|
DrawerDescription: ()=>drawer_cjs_namespaceObject.DrawerDescription,
|
|
63
|
-
|
|
62
|
+
FileTreeView: ()=>tree_view_cjs_default(),
|
|
64
63
|
FolderSwitcher: ()=>model_picker_index_cjs_namespaceObject.FolderSwitcher,
|
|
65
64
|
AlertDialogPortal: ()=>alert_dialog_cjs_namespaceObject.AlertDialogPortal,
|
|
65
|
+
ModalTitle: ()=>dialog_cjs_namespaceObject.ModalTitle,
|
|
66
66
|
OutputTokenNode: ()=>prompt_editor_index_cjs_namespaceObject.OutputTokenNode,
|
|
67
67
|
SheetOverlay: ()=>sheet_cjs_namespaceObject.SheetOverlay,
|
|
68
68
|
TabsList: ()=>tabs_cjs_namespaceObject.TabsList,
|
|
@@ -70,13 +70,14 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
70
70
|
TableBody: ()=>table_cjs_namespaceObject.TableBody,
|
|
71
71
|
AvatarImage: ()=>avatar_cjs_namespaceObject.AvatarImage,
|
|
72
72
|
RuleBuilder: ()=>rules_engine_cjs_namespaceObject.RuleBuilder,
|
|
73
|
-
|
|
73
|
+
BUILTIN_VALUE_MODES: ()=>field_addons_index_cjs_namespaceObject.BUILTIN_VALUE_MODES,
|
|
74
74
|
AlertDialogTitle: ()=>alert_dialog_cjs_namespaceObject.AlertDialogTitle,
|
|
75
75
|
DataSourceBuilder: ()=>data_fetcher_cjs_namespaceObject.DataSourceBuilder,
|
|
76
|
+
DrawerFooter: ()=>drawer_cjs_namespaceObject.DrawerFooter,
|
|
76
77
|
badgeVariants: ()=>badge_cjs_namespaceObject.badgeVariants,
|
|
77
78
|
createEditableColumn: ()=>editable_cell_cjs_namespaceObject.createEditableColumn,
|
|
78
|
-
resolveLabels: ()=>model_picker_index_cjs_namespaceObject.resolveLabels,
|
|
79
79
|
FormFieldDescription: ()=>form_field_cjs_namespaceObject.FormFieldDescription,
|
|
80
|
+
resolveLabels: ()=>model_picker_index_cjs_namespaceObject.resolveLabels,
|
|
80
81
|
toggleVariants: ()=>toggle_cjs_namespaceObject.toggleVariants,
|
|
81
82
|
SheetHeader: ()=>sheet_cjs_namespaceObject.SheetHeader,
|
|
82
83
|
Column: ()=>column_cjs_namespaceObject.Column,
|
|
@@ -91,7 +92,6 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
91
92
|
AvatarFallback: ()=>avatar_cjs_namespaceObject.AvatarFallback,
|
|
92
93
|
ContextMenu: ()=>context_menu_cjs_namespaceObject.ContextMenu,
|
|
93
94
|
BreadcrumbItem: ()=>breadcrumb_cjs_namespaceObject.BreadcrumbItem,
|
|
94
|
-
ValueModeStringsProvider: ()=>field_addons_index_cjs_namespaceObject.ValueModeStringsProvider,
|
|
95
95
|
normalizeRichTextTokens: ()=>prompt_editor_index_cjs_namespaceObject.normalizeRichTextTokens,
|
|
96
96
|
AlertDialogFooter: ()=>alert_dialog_cjs_namespaceObject.AlertDialogFooter,
|
|
97
97
|
DEFAULT_INSERT_VARIABLE_ACTION_STRINGS: ()=>index_cjs_namespaceObject.DEFAULT_INSERT_VARIABLE_ACTION_STRINGS,
|
|
@@ -120,6 +120,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
120
120
|
Toaster: ()=>sonner_cjs_namespaceObject.Toaster,
|
|
121
121
|
isPromptTokenNode: ()=>prompt_editor_index_cjs_namespaceObject.isPromptTokenNode,
|
|
122
122
|
DialogTitle: ()=>dialog_cjs_namespaceObject.DialogTitle,
|
|
123
|
+
builtInValueModes: ()=>field_addons_index_cjs_namespaceObject.builtInValueModes,
|
|
123
124
|
DrawerPortal: ()=>drawer_cjs_namespaceObject.DrawerPortal,
|
|
124
125
|
ChartLegendContent: ()=>chart_cjs_namespaceObject.ChartLegendContent,
|
|
125
126
|
Popover: ()=>popover_cjs_namespaceObject.Popover,
|
|
@@ -199,10 +200,11 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
199
200
|
TokenPill: ()=>prompt_editor_index_cjs_namespaceObject.TokenPill,
|
|
200
201
|
ContextMenuCheckboxItem: ()=>context_menu_cjs_namespaceObject.ContextMenuCheckboxItem,
|
|
201
202
|
isCustomField: ()=>form_schema_cjs_namespaceObject.isCustomField,
|
|
203
|
+
FieldMenu: ()=>field_addons_index_cjs_namespaceObject.FieldMenu,
|
|
202
204
|
getPromptEditorTokenTypeLabel: ()=>prompt_editor_index_cjs_namespaceObject.getPromptEditorTokenTypeLabel,
|
|
203
205
|
FormFieldError: ()=>form_field_cjs_namespaceObject.FormFieldError,
|
|
204
206
|
createInputTokenNode: ()=>prompt_editor_index_cjs_namespaceObject.createInputTokenNode,
|
|
205
|
-
TreeView: ()=>
|
|
207
|
+
TreeView: ()=>tree_view_cjs_namespaceObject.TreeView,
|
|
206
208
|
TableCaption: ()=>table_cjs_namespaceObject.TableCaption,
|
|
207
209
|
TooltipTrigger: ()=>tooltip_cjs_namespaceObject.TooltipTrigger,
|
|
208
210
|
SheetClose: ()=>sheet_cjs_namespaceObject.SheetClose,
|
|
@@ -289,7 +291,6 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
289
291
|
DialogDescription: ()=>dialog_cjs_namespaceObject.DialogDescription,
|
|
290
292
|
isTextGenerationModel: ()=>model_picker_index_cjs_namespaceObject.isTextGenerationModel,
|
|
291
293
|
CommandShortcut: ()=>command_cjs_namespaceObject.CommandShortcut,
|
|
292
|
-
ValueModeMenu: ()=>field_addons_index_cjs_namespaceObject.ValueModeMenu,
|
|
293
294
|
Textarea: ()=>textarea_cjs_namespaceObject.Textarea,
|
|
294
295
|
SelectItem: ()=>select_cjs_namespaceObject.SelectItem,
|
|
295
296
|
formatContextWindow: ()=>model_picker_index_cjs_namespaceObject.formatContextWindow,
|
|
@@ -395,10 +396,10 @@ const drawer_cjs_namespaceObject = require("./components/ui/drawer.cjs");
|
|
|
395
396
|
const dropdown_menu_cjs_namespaceObject = require("./components/ui/dropdown-menu.cjs");
|
|
396
397
|
const editable_cell_cjs_namespaceObject = require("./components/ui/editable-cell.cjs");
|
|
397
398
|
const empty_state_cjs_namespaceObject = require("./components/ui/empty-state.cjs");
|
|
398
|
-
const file_upload_cjs_namespaceObject = require("./components/ui/file-upload.cjs");
|
|
399
|
-
const form_field_cjs_namespaceObject = require("./components/ui/form-field.cjs");
|
|
400
399
|
const index_cjs_namespaceObject = require("./components/ui/field-actions/index.cjs");
|
|
401
400
|
const field_addons_index_cjs_namespaceObject = require("./components/ui/field-addons/index.cjs");
|
|
401
|
+
const file_upload_cjs_namespaceObject = require("./components/ui/file-upload.cjs");
|
|
402
|
+
const form_field_cjs_namespaceObject = require("./components/ui/form-field.cjs");
|
|
402
403
|
const hover_card_cjs_namespaceObject = require("./components/ui/hover-card.cjs");
|
|
403
404
|
const info_tooltip_cjs_namespaceObject = require("./components/ui/info-tooltip.cjs");
|
|
404
405
|
const input_cjs_namespaceObject = require("./components/ui/input.cjs");
|
|
@@ -408,6 +409,7 @@ const column_cjs_namespaceObject = require("./components/ui/layout/column.cjs");
|
|
|
408
409
|
const grid_cjs_namespaceObject = require("./components/ui/layout/grid.cjs");
|
|
409
410
|
const row_cjs_namespaceObject = require("./components/ui/layout/row.cjs");
|
|
410
411
|
const lockable_value_field_index_cjs_namespaceObject = require("./components/ui/lockable-value-field/index.cjs");
|
|
412
|
+
const model_picker_index_cjs_namespaceObject = require("./components/ui/model-picker/index.cjs");
|
|
411
413
|
const multi_select_cjs_namespaceObject = require("./components/ui/multi-select.cjs");
|
|
412
414
|
const pagination_cjs_namespaceObject = require("./components/ui/pagination.cjs");
|
|
413
415
|
const popover_cjs_namespaceObject = require("./components/ui/popover.cjs");
|
|
@@ -436,7 +438,6 @@ const toggle_group_cjs_namespaceObject = require("./components/ui/toggle-group.c
|
|
|
436
438
|
const tooltip_cjs_namespaceObject = require("./components/ui/tooltip.cjs");
|
|
437
439
|
const tree_view_cjs_namespaceObject = require("./components/ui/tree-view.cjs");
|
|
438
440
|
var tree_view_cjs_default = /*#__PURE__*/ __webpack_require__.n(tree_view_cjs_namespaceObject);
|
|
439
|
-
const model_picker_index_cjs_namespaceObject = require("./components/ui/model-picker/index.cjs");
|
|
440
441
|
const variable_picker_index_cjs_namespaceObject = require("./components/ui/variable-picker/index.cjs");
|
|
441
442
|
const utils_cjs_namespaceObject = require("./lib/utils.cjs");
|
|
442
443
|
exports.$insertTokenAtCursor = __webpack_exports__.$insertTokenAtCursor;
|
|
@@ -463,6 +464,7 @@ exports.AspectRatio = __webpack_exports__.AspectRatio;
|
|
|
463
464
|
exports.Avatar = __webpack_exports__.Avatar;
|
|
464
465
|
exports.AvatarFallback = __webpack_exports__.AvatarFallback;
|
|
465
466
|
exports.AvatarImage = __webpack_exports__.AvatarImage;
|
|
467
|
+
exports.BUILTIN_VALUE_MODES = __webpack_exports__.BUILTIN_VALUE_MODES;
|
|
466
468
|
exports.Badge = __webpack_exports__.Badge;
|
|
467
469
|
exports.Breadcrumb = __webpack_exports__.Breadcrumb;
|
|
468
470
|
exports.BreadcrumbEllipsis = __webpack_exports__.BreadcrumbEllipsis;
|
|
@@ -573,6 +575,8 @@ exports.ExpressionBuilder = __webpack_exports__.ExpressionBuilder;
|
|
|
573
575
|
exports.FIELD_TYPE_META = __webpack_exports__.FIELD_TYPE_META;
|
|
574
576
|
exports.FIELD_TYPE_ORDER = __webpack_exports__.FIELD_TYPE_ORDER;
|
|
575
577
|
exports.FetchAdapter = __webpack_exports__.FetchAdapter;
|
|
578
|
+
exports.FieldMenu = __webpack_exports__.FieldMenu;
|
|
579
|
+
exports.FileTreeView = __webpack_exports__.FileTreeView;
|
|
576
580
|
exports.FileUpload = __webpack_exports__.FileUpload;
|
|
577
581
|
exports.FolderSwitcher = __webpack_exports__.FolderSwitcher;
|
|
578
582
|
exports.FormDesigner = __webpack_exports__.FormDesigner;
|
|
@@ -712,8 +716,6 @@ exports.TreeView = __webpack_exports__.TreeView;
|
|
|
712
716
|
exports.VARIABLE_DRAG_MIME = __webpack_exports__.VARIABLE_DRAG_MIME;
|
|
713
717
|
exports.VARIABLE_PATH_REGEX = __webpack_exports__.VARIABLE_PATH_REGEX;
|
|
714
718
|
exports.ValueModeIndicator = __webpack_exports__.ValueModeIndicator;
|
|
715
|
-
exports.ValueModeMenu = __webpack_exports__.ValueModeMenu;
|
|
716
|
-
exports.ValueModeStringsProvider = __webpack_exports__.ValueModeStringsProvider;
|
|
717
719
|
exports.VariablePicker = __webpack_exports__.VariablePicker;
|
|
718
720
|
exports.VariablePickerContent = __webpack_exports__.VariablePickerContent;
|
|
719
721
|
exports.VirtualOptionList = __webpack_exports__.VirtualOptionList;
|
|
@@ -722,6 +724,7 @@ exports.analyticsPlugin = __webpack_exports__.analyticsPlugin;
|
|
|
722
724
|
exports.auditPlugin = __webpack_exports__.auditPlugin;
|
|
723
725
|
exports.autoSavePlugin = __webpack_exports__.autoSavePlugin;
|
|
724
726
|
exports.badgeVariants = __webpack_exports__.badgeVariants;
|
|
727
|
+
exports.builtInValueModes = __webpack_exports__.builtInValueModes;
|
|
725
728
|
exports.buttonVariants = __webpack_exports__.buttonVariants;
|
|
726
729
|
exports.cn = __webpack_exports__.cn;
|
|
727
730
|
exports.createEditableColumn = __webpack_exports__.createEditableColumn;
|
|
@@ -762,7 +765,6 @@ exports.toast = __webpack_exports__.toast;
|
|
|
762
765
|
exports.toggleVariants = __webpack_exports__.toggleVariants;
|
|
763
766
|
exports.useInputGroup = __webpack_exports__.useInputGroup;
|
|
764
767
|
exports.useModelPickerState = __webpack_exports__.useModelPickerState;
|
|
765
|
-
exports.useValueModeStrings = __webpack_exports__.useValueModeStrings;
|
|
766
768
|
exports.useWatch = __webpack_exports__.useWatch;
|
|
767
769
|
exports.validationPlugin = __webpack_exports__.validationPlugin;
|
|
768
770
|
exports.workflowPlugin = __webpack_exports__.workflowPlugin;
|
|
@@ -791,6 +793,7 @@ for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
|
791
793
|
"Avatar",
|
|
792
794
|
"AvatarFallback",
|
|
793
795
|
"AvatarImage",
|
|
796
|
+
"BUILTIN_VALUE_MODES",
|
|
794
797
|
"Badge",
|
|
795
798
|
"Breadcrumb",
|
|
796
799
|
"BreadcrumbEllipsis",
|
|
@@ -901,6 +904,8 @@ for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
|
901
904
|
"FIELD_TYPE_META",
|
|
902
905
|
"FIELD_TYPE_ORDER",
|
|
903
906
|
"FetchAdapter",
|
|
907
|
+
"FieldMenu",
|
|
908
|
+
"FileTreeView",
|
|
904
909
|
"FileUpload",
|
|
905
910
|
"FolderSwitcher",
|
|
906
911
|
"FormDesigner",
|
|
@@ -1040,8 +1045,6 @@ for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
|
1040
1045
|
"VARIABLE_DRAG_MIME",
|
|
1041
1046
|
"VARIABLE_PATH_REGEX",
|
|
1042
1047
|
"ValueModeIndicator",
|
|
1043
|
-
"ValueModeMenu",
|
|
1044
|
-
"ValueModeStringsProvider",
|
|
1045
1048
|
"VariablePicker",
|
|
1046
1049
|
"VariablePickerContent",
|
|
1047
1050
|
"VirtualOptionList",
|
|
@@ -1050,6 +1053,7 @@ for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
|
1050
1053
|
"auditPlugin",
|
|
1051
1054
|
"autoSavePlugin",
|
|
1052
1055
|
"badgeVariants",
|
|
1056
|
+
"builtInValueModes",
|
|
1053
1057
|
"buttonVariants",
|
|
1054
1058
|
"cn",
|
|
1055
1059
|
"createEditableColumn",
|
|
@@ -1090,7 +1094,6 @@ for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
|
1090
1094
|
"toggleVariants",
|
|
1091
1095
|
"useInputGroup",
|
|
1092
1096
|
"useModelPickerState",
|
|
1093
|
-
"useValueModeStrings",
|
|
1094
1097
|
"useWatch",
|
|
1095
1098
|
"validationPlugin",
|
|
1096
1099
|
"workflowPlugin"
|
package/dist/index.d.ts
CHANGED
|
@@ -46,14 +46,14 @@ export type { EditableCellMeta, EditableCellType, } from './components/ui/editab
|
|
|
46
46
|
export { createEditableColumn, EditableCell, } from './components/ui/editable-cell';
|
|
47
47
|
export type { EmptyStateProps } from './components/ui/empty-state';
|
|
48
48
|
export { EmptyState } from './components/ui/empty-state';
|
|
49
|
+
export type { AiAssistActionProps, AiAssistActionStrings, InsertVariableActionProps, InsertVariableActionStrings, } from './components/ui/field-actions';
|
|
50
|
+
export { AiAssistAction, DEFAULT_AI_ASSIST_ACTION_STRINGS, DEFAULT_INSERT_VARIABLE_ACTION_STRINGS, InsertVariableAction, } from './components/ui/field-actions';
|
|
51
|
+
export type { BuiltInValueModesOptions, FieldMenuItem, FieldMenuMode, FieldMenuProps, ValueMode, ValueModeIndicatorProps, ValueModeOption, ValueModeStrings, } from './components/ui/field-addons';
|
|
52
|
+
export { BUILTIN_VALUE_MODES, builtInValueModes, DEFAULT_VALUE_MODE_STRINGS, FieldMenu, ValueModeIndicator, } from './components/ui/field-addons';
|
|
49
53
|
export type { FileUploadProps } from './components/ui/file-upload';
|
|
50
54
|
export { FileUpload } from './components/ui/file-upload';
|
|
51
55
|
export type { FormFieldDescriptionProps, FormFieldErrorProps, FormFieldHeaderProps, FormFieldLabelProps, FormFieldProps, } from './components/ui/form-field';
|
|
52
56
|
export { FormField, FormFieldDescription, FormFieldError, FormFieldHeader, FormFieldLabel, } from './components/ui/form-field';
|
|
53
|
-
export type { AiAssistActionProps, AiAssistActionStrings, InsertVariableActionProps, InsertVariableActionStrings, } from './components/ui/field-actions';
|
|
54
|
-
export { AiAssistAction, DEFAULT_AI_ASSIST_ACTION_STRINGS, DEFAULT_INSERT_VARIABLE_ACTION_STRINGS, InsertVariableAction, } from './components/ui/field-actions';
|
|
55
|
-
export type { ValueMode, ValueModeIndicatorProps, ValueModeMenuAction, ValueModeMenuProps, ValueModeOption, ValueModeStrings, ValueModeStringsProviderProps, } from './components/ui/field-addons';
|
|
56
|
-
export { DEFAULT_VALUE_MODE_STRINGS, useValueModeStrings, ValueModeIndicator, ValueModeMenu, ValueModeStringsProvider, } from './components/ui/field-addons';
|
|
57
57
|
export { HoverCard, HoverCardContent, HoverCardTrigger, } from './components/ui/hover-card';
|
|
58
58
|
export type { InfoTooltipProps } from './components/ui/info-tooltip';
|
|
59
59
|
export { InfoTooltip } from './components/ui/info-tooltip';
|
|
@@ -71,6 +71,8 @@ export type { RowProps } from './components/ui/layout/row';
|
|
|
71
71
|
export { Row } from './components/ui/layout/row';
|
|
72
72
|
export type { LockableFieldType, LockableValueFieldMode, LockableValueFieldMoreActions, LockableValueFieldOption, LockableValueFieldProps, } from './components/ui/lockable-value-field';
|
|
73
73
|
export { FIELD_TYPE_META, FIELD_TYPE_ORDER, LockableValueField, } from './components/ui/lockable-value-field';
|
|
74
|
+
export type { AnnotatedModel, ByomDetails, CostTier, DeprecationDetails, DeriveModelTagsContext, DiscoveryModel, FolderSwitcherFolder, FolderSwitcherProps, GroupHeaderProps, GroupModelsContext, GroupStrategy, ModelBadgeDefinition, ModelBadgeKind, ModelCostDetails, ModelDetails, ModelFlatCosts, ModelGeography, ModelGroup, ModelOptionRowProps, ModelPickerChangeHandler, ModelPickerLabels, ModelPickerProps, ModelPickerSlotContext, ModelPickerSlots, ModelPickerVariant, ModelSubscriptionType, ModelTag, ModelTagChipProps, ModelTagKind, ModelTieredCost, ModelType, ModelVendor, OptionListProps, PickerPopupProps, PickerSearchInputProps, PickerTriggerProps, RoutingDetails, StaticLabelKey, UseModelPickerStateOptions, UseModelPickerStateResult, } from './components/ui/model-picker';
|
|
75
|
+
export { DEFAULT_MODEL_PICKER_LABELS, defaultCostTier, defaultRowActions, deriveModelTags, FolderSwitcher, filterModels, formatContextWindow, GroupedOptionList, GroupHeader, getSubstitutionTarget, groupModels, isTextGenerationModel, MODEL_BADGES, ModelOptionRow, ModelPicker, ModelTagChip, optionDomId, PickerPopup, PickerSearchInput, PickerTrigger, resolveHomeGeography, resolveLabels, useModelPickerState, VirtualOptionList, } from './components/ui/model-picker';
|
|
74
76
|
export type { MultiSelectProps } from './components/ui/multi-select';
|
|
75
77
|
export { MultiSelect } from './components/ui/multi-select';
|
|
76
78
|
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, } from './components/ui/pagination';
|
|
@@ -107,10 +109,8 @@ export { Textarea } from './components/ui/textarea';
|
|
|
107
109
|
export { Toggle, toggleVariants } from './components/ui/toggle';
|
|
108
110
|
export { ToggleGroup, ToggleGroupItem } from './components/ui/toggle-group';
|
|
109
111
|
export { Tooltip, TooltipContent, TooltipPortal, TooltipProvider, TooltipTrigger, } from './components/ui/tooltip';
|
|
110
|
-
export type { TreeViewIconMap, TreeViewItem, TreeViewItemAction, TreeViewMenuItem, TreeViewProps, TreeViewSelectionMode, } from './components/ui/tree-view';
|
|
111
|
-
export { default as TreeView } from './components/ui/tree-view';
|
|
112
|
-
export type { AnnotatedModel, ByomDetails, CostTier, DeprecationDetails, DeriveModelTagsContext, DiscoveryModel, FolderSwitcherFolder, FolderSwitcherProps, GroupHeaderProps, GroupModelsContext, GroupStrategy, ModelBadgeDefinition, ModelBadgeKind, ModelCostDetails, ModelFlatCosts, ModelTieredCost, ModelType, ModelDetails, ModelGeography, ModelGroup, ModelOptionRowProps, ModelPickerChangeHandler, ModelPickerProps, ModelPickerSlotContext, ModelPickerSlots, ModelPickerVariant, ModelSubscriptionType, ModelTag, ModelTagChipProps, ModelTagKind, ModelVendor, OptionListProps, ModelPickerLabels, PickerPopupProps, PickerSearchInputProps, StaticLabelKey, PickerTriggerProps, RoutingDetails, UseModelPickerStateOptions, UseModelPickerStateResult, } from './components/ui/model-picker';
|
|
113
|
-
export { defaultCostTier, defaultRowActions, DEFAULT_MODEL_PICKER_LABELS, deriveModelTags, formatContextWindow, filterModels, FolderSwitcher, GroupedOptionList, GroupHeader, groupModels, getSubstitutionTarget, isTextGenerationModel, MODEL_BADGES, ModelOptionRow, ModelPicker, ModelTagChip, optionDomId, PickerPopup, PickerSearchInput, PickerTrigger, resolveHomeGeography, resolveLabels, useModelPickerState, VirtualOptionList, } from './components/ui/model-picker';
|
|
112
|
+
export type { FileTreeViewIconMap, FileTreeViewItem, FileTreeViewItemAction, FileTreeViewMenuItem, FileTreeViewProps, FileTreeViewSelectionMode, TreeViewIconMap, TreeViewItem, TreeViewItemAction, TreeViewMenuItem, TreeViewProps, TreeViewSelectionMode, } from './components/ui/tree-view';
|
|
113
|
+
export { default as FileTreeView, TreeView } from './components/ui/tree-view';
|
|
114
114
|
export type { VariablePickerContentProps, VariablePickerItem, VariablePickerProps, } from './components/ui/variable-picker';
|
|
115
115
|
export { VariablePicker, VariablePickerContent, } from './components/ui/variable-picker';
|
|
116
116
|
export { cn } from './lib/utils';
|
package/dist/index.js
CHANGED
|
@@ -32,10 +32,10 @@ import { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, Dr
|
|
|
32
32
|
import { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from "./components/ui/dropdown-menu.js";
|
|
33
33
|
import { EditableCell, createEditableColumn } from "./components/ui/editable-cell.js";
|
|
34
34
|
import { EmptyState } from "./components/ui/empty-state.js";
|
|
35
|
+
import { AiAssistAction, DEFAULT_AI_ASSIST_ACTION_STRINGS, DEFAULT_INSERT_VARIABLE_ACTION_STRINGS, InsertVariableAction } from "./components/ui/field-actions/index.js";
|
|
36
|
+
import { BUILTIN_VALUE_MODES, DEFAULT_VALUE_MODE_STRINGS, FieldMenu, ValueModeIndicator, builtInValueModes } from "./components/ui/field-addons/index.js";
|
|
35
37
|
import { FileUpload } from "./components/ui/file-upload.js";
|
|
36
38
|
import { FormField, FormFieldDescription, FormFieldError, FormFieldHeader, FormFieldLabel } from "./components/ui/form-field.js";
|
|
37
|
-
import { AiAssistAction, DEFAULT_AI_ASSIST_ACTION_STRINGS, DEFAULT_INSERT_VARIABLE_ACTION_STRINGS, InsertVariableAction } from "./components/ui/field-actions/index.js";
|
|
38
|
-
import { DEFAULT_VALUE_MODE_STRINGS, ValueModeIndicator, ValueModeMenu, ValueModeStringsProvider, useValueModeStrings } from "./components/ui/field-addons/index.js";
|
|
39
39
|
import { HoverCard, HoverCardContent, HoverCardTrigger } from "./components/ui/hover-card.js";
|
|
40
40
|
import { InfoTooltip } from "./components/ui/info-tooltip.js";
|
|
41
41
|
import { Input } from "./components/ui/input.js";
|
|
@@ -45,6 +45,7 @@ import { Column } from "./components/ui/layout/column.js";
|
|
|
45
45
|
import { Grid } from "./components/ui/layout/grid.js";
|
|
46
46
|
import { Row } from "./components/ui/layout/row.js";
|
|
47
47
|
import { FIELD_TYPE_META, FIELD_TYPE_ORDER, LockableValueField } from "./components/ui/lockable-value-field/index.js";
|
|
48
|
+
import { DEFAULT_MODEL_PICKER_LABELS, FolderSwitcher, GroupHeader, GroupedOptionList, MODEL_BADGES, ModelOptionRow, ModelPicker, ModelTagChip, PickerPopup, PickerSearchInput, PickerTrigger, VirtualOptionList, defaultCostTier, defaultRowActions, deriveModelTags, filterModels, formatContextWindow, getSubstitutionTarget, groupModels, isTextGenerationModel, optionDomId, resolveHomeGeography, resolveLabels, useModelPickerState } from "./components/ui/model-picker/index.js";
|
|
48
49
|
import { MultiSelect } from "./components/ui/multi-select.js";
|
|
49
50
|
import { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious } from "./components/ui/pagination.js";
|
|
50
51
|
import { Popover, PopoverAnchor, PopoverContent, PopoverTrigger } from "./components/ui/popover.js";
|
|
@@ -71,8 +72,7 @@ import { Textarea } from "./components/ui/textarea.js";
|
|
|
71
72
|
import { Toggle, toggleVariants } from "./components/ui/toggle.js";
|
|
72
73
|
import { ToggleGroup, ToggleGroupItem } from "./components/ui/toggle-group.js";
|
|
73
74
|
import { Tooltip, TooltipContent, TooltipPortal, TooltipProvider, TooltipTrigger } from "./components/ui/tooltip.js";
|
|
74
|
-
import tree_view from "./components/ui/tree-view.js";
|
|
75
|
-
import { DEFAULT_MODEL_PICKER_LABELS, FolderSwitcher, GroupHeader, GroupedOptionList, MODEL_BADGES, ModelOptionRow, ModelPicker, ModelTagChip, PickerPopup, PickerSearchInput, PickerTrigger, VirtualOptionList, defaultCostTier, defaultRowActions, deriveModelTags, filterModels, formatContextWindow, getSubstitutionTarget, groupModels, isTextGenerationModel, optionDomId, resolveHomeGeography, resolveLabels, useModelPickerState } from "./components/ui/model-picker/index.js";
|
|
75
|
+
import tree_view, { TreeView } from "./components/ui/tree-view.js";
|
|
76
76
|
import { VariablePicker, VariablePickerContent } from "./components/ui/variable-picker/index.js";
|
|
77
77
|
import { cn } from "./lib/utils.js";
|
|
78
|
-
export { $insertTokenAtCursor, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AiAssistAction, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Column, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DEFAULT_AI_ASSIST_ACTION_STRINGS, DEFAULT_INSERT_VARIABLE_ACTION_STRINGS, DEFAULT_MODEL_PICKER_LABELS, DEFAULT_PROMPT_EDITOR_STRINGS, DEFAULT_VALUE_MODE_STRINGS, DataFetcher, DataSourceBuilder, DataTable, DataTableColumnHeader, DataTableSelectColumn, DataTransformers, DatePicker, DateRangePicker, DateTimePicker, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EditableCell, EmptyState, ExpressionBuilder, FIELD_TYPE_META, FIELD_TYPE_ORDER, FetchAdapter, FileUpload, FolderSwitcher, FormDesigner, FormField, FormFieldDescription, FormFieldError, FormFieldHeader, FormFieldLabel, FormFieldRenderer, FormStateViewer, Grid, GroupHeader, GroupedOptionList, HoverCard, HoverCardContent, HoverCardTrigger, InfoTooltip, Input, InputGroup, InputGroupAddon, InputGroupBody, InputGroupButton, InputGroupInput, InputGroupPopoverTrigger, InputGroupRow, InputGroupText, InputGroupTextarea, InputGroupTrigger, InputTokenNode, InsertVariableAction, Label, LockableValueField, MODEL_BADGES, MetadataForm, Modal, ModalClose, ModalContent, ModalDescription, ModalFooter, ModalHeader, ModalOverlay, ModalPortal, ModalTitle, ModalTrigger, ModelOptionRow, ModelPicker, ModelTagChip, MultiSelect, OutputTokenNode, PROMPT_EDITOR_RICH_TRANSFORMERS, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PickerPopup, PickerSearchInput, PickerTrigger, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PortalContainerProvider, Progress, PromptEditor, RadioGroup, RadioGroupItem, RequiredIndicator, ResizableHandle, ResizablePanel, ResizablePanelGroup, ResourceTokenNode, Row, RuleBuilder, RulesEngine, ScrollArea, ScrollBar, ScrollableTabsList, Search, SearchWithSuggestions, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Skeleton, Slider, Spinner, StateTokenNode, StatsCard, Stepper, StringListField, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toaster, Toggle, ToggleGroup, ToggleGroupItem, TokenPill, TokenPillWithTooltip, Tooltip, TooltipContent, TooltipPortal, TooltipProvider, TooltipTrigger,
|
|
78
|
+
export { $insertTokenAtCursor, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AiAssistAction, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Avatar, AvatarFallback, AvatarImage, BUILTIN_VALUE_MODES, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Column, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DEFAULT_AI_ASSIST_ACTION_STRINGS, DEFAULT_INSERT_VARIABLE_ACTION_STRINGS, DEFAULT_MODEL_PICKER_LABELS, DEFAULT_PROMPT_EDITOR_STRINGS, DEFAULT_VALUE_MODE_STRINGS, DataFetcher, DataSourceBuilder, DataTable, DataTableColumnHeader, DataTableSelectColumn, DataTransformers, DatePicker, DateRangePicker, DateTimePicker, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EditableCell, EmptyState, ExpressionBuilder, FIELD_TYPE_META, FIELD_TYPE_ORDER, FetchAdapter, FieldMenu, tree_view as FileTreeView, FileUpload, FolderSwitcher, FormDesigner, FormField, FormFieldDescription, FormFieldError, FormFieldHeader, FormFieldLabel, FormFieldRenderer, FormStateViewer, Grid, GroupHeader, GroupedOptionList, HoverCard, HoverCardContent, HoverCardTrigger, InfoTooltip, Input, InputGroup, InputGroupAddon, InputGroupBody, InputGroupButton, InputGroupInput, InputGroupPopoverTrigger, InputGroupRow, InputGroupText, InputGroupTextarea, InputGroupTrigger, InputTokenNode, InsertVariableAction, Label, LockableValueField, MODEL_BADGES, MetadataForm, Modal, ModalClose, ModalContent, ModalDescription, ModalFooter, ModalHeader, ModalOverlay, ModalPortal, ModalTitle, ModalTrigger, ModelOptionRow, ModelPicker, ModelTagChip, MultiSelect, OutputTokenNode, PROMPT_EDITOR_RICH_TRANSFORMERS, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PickerPopup, PickerSearchInput, PickerTrigger, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PortalContainerProvider, Progress, PromptEditor, RadioGroup, RadioGroupItem, RequiredIndicator, ResizableHandle, ResizablePanel, ResizablePanelGroup, ResourceTokenNode, Row, RuleBuilder, RulesEngine, ScrollArea, ScrollBar, ScrollableTabsList, Search, SearchWithSuggestions, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Skeleton, Slider, Spinner, StateTokenNode, StatsCard, Stepper, StringListField, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toaster, Toggle, ToggleGroup, ToggleGroupItem, TokenPill, TokenPillWithTooltip, Tooltip, TooltipContent, TooltipPortal, TooltipProvider, TooltipTrigger, TreeView, VARIABLE_DRAG_MIME, VARIABLE_PATH_REGEX, ValueModeIndicator, VariablePicker, VariablePickerContent, VirtualOptionList, WORD_JOINER, analyticsPlugin, auditPlugin, autoSavePlugin, badgeVariants, builtInValueModes, buttonVariants, cn, createEditableColumn, createInputTokenNode, createOutputTokenNode, createResourceTokenNode, createStateTokenNode, createTokenNodeForOption, defaultCostTier, defaultRowActions, deriveModelTags, filterModels, formatContextWindow, formatTemplate, formattingPlugin, getAllPromptTokenNodes, getEditorTokens, getPromptEditorTokenColors, getPromptEditorTokenTypeLabel, getSubstitutionTarget, groupModels, hasMinMaxStep, hasOptions, inferTokenTypeFromPath, inputGroupVariants, isCustomField, isFileField, isPromptTokenNode, isTextGenerationModel, normalizeRichTextTokens, normalizeVariablePath, optionDomId, resolveHomeGeography, resolveLabels, setEditorTokens, spinnerVariants, toast, toggleVariants, useInputGroup, useModelPickerState, useWatch, validationPlugin, workflowPlugin };
|