@uipath/apollo-wind 2.65.0 → 2.65.2
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/index.cjs +16 -16
- package/dist/components/ui/json-tree-view/JsonTree.cjs +1 -1
- package/dist/components/ui/json-tree-view/JsonTree.d.ts +2 -2
- package/dist/components/ui/json-tree-view/JsonTree.js +1 -1
- package/dist/components/ui/json-tree-view/JsonTree.types.d.ts +6 -0
- package/dist/components/ui/json-tree-view/JsonTreeRow.cjs +1 -1
- package/dist/components/ui/json-tree-view/JsonTreeRow.d.ts +2 -2
- package/dist/components/ui/json-tree-view/JsonTreeRow.js +1 -1
- package/dist/components/ui/model-picker/types.d.ts +1 -0
- package/dist/components/ui/model-picker/utils.cjs +1 -0
- package/dist/components/ui/model-picker/utils.d.ts +2 -2
- package/dist/components/ui/model-picker/utils.js +1 -0
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -39,10 +39,10 @@ var __webpack_modules__ = {
|
|
|
39
39
|
"./chart" (module) {
|
|
40
40
|
module.exports = require("./chart.cjs");
|
|
41
41
|
},
|
|
42
|
-
"
|
|
42
|
+
"@/components/ui/checkbox" (module) {
|
|
43
43
|
module.exports = require("./checkbox.cjs");
|
|
44
44
|
},
|
|
45
|
-
"
|
|
45
|
+
"@/components/ui/collapsible" (module) {
|
|
46
46
|
module.exports = require("./collapsible.cjs");
|
|
47
47
|
},
|
|
48
48
|
"./combobox" (module) {
|
|
@@ -72,7 +72,7 @@ var __webpack_modules__ = {
|
|
|
72
72
|
"@/components/ui/dropdown-menu" (module) {
|
|
73
73
|
module.exports = require("./dropdown-menu.cjs");
|
|
74
74
|
},
|
|
75
|
-
"
|
|
75
|
+
"@/components/ui/editable-cell" (module) {
|
|
76
76
|
module.exports = require("./editable-cell.cjs");
|
|
77
77
|
},
|
|
78
78
|
"./empty-state" (module) {
|
|
@@ -93,7 +93,7 @@ var __webpack_modules__ = {
|
|
|
93
93
|
"@/components/ui/hover-card" (module) {
|
|
94
94
|
module.exports = require("./hover-card.cjs");
|
|
95
95
|
},
|
|
96
|
-
"
|
|
96
|
+
"@/components/ui/info-tooltip" (module) {
|
|
97
97
|
module.exports = require("./info-tooltip.cjs");
|
|
98
98
|
},
|
|
99
99
|
"@/components/ui/input-group" (module) {
|
|
@@ -105,10 +105,10 @@ var __webpack_modules__ = {
|
|
|
105
105
|
"./json-tree-view" (module) {
|
|
106
106
|
module.exports = require("./json-tree-view/index.cjs");
|
|
107
107
|
},
|
|
108
|
-
"
|
|
108
|
+
"@/components/ui/label" (module) {
|
|
109
109
|
module.exports = require("./label.cjs");
|
|
110
110
|
},
|
|
111
|
-
"
|
|
111
|
+
"@/components/ui/layout" (module) {
|
|
112
112
|
module.exports = require("./layout/index.cjs");
|
|
113
113
|
},
|
|
114
114
|
"./lockable-value-field" (module) {
|
|
@@ -186,7 +186,7 @@ var __webpack_modules__ = {
|
|
|
186
186
|
"./switch" (module) {
|
|
187
187
|
module.exports = require("./switch.cjs");
|
|
188
188
|
},
|
|
189
|
-
"
|
|
189
|
+
"./table" (module) {
|
|
190
190
|
module.exports = require("./table.cjs");
|
|
191
191
|
},
|
|
192
192
|
"./tabs" (module) {
|
|
@@ -201,7 +201,7 @@ var __webpack_modules__ = {
|
|
|
201
201
|
"@/components/ui/toggle" (module) {
|
|
202
202
|
module.exports = require("./toggle.cjs");
|
|
203
203
|
},
|
|
204
|
-
"
|
|
204
|
+
"@/components/ui/tooltip" (module) {
|
|
205
205
|
module.exports = require("./tooltip.cjs");
|
|
206
206
|
},
|
|
207
207
|
"./tree-view" (module) {
|
|
@@ -365,7 +365,7 @@ var __webpack_exports__ = {};
|
|
|
365
365
|
"TreeView"
|
|
366
366
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_chart__rspack_import_12[__rspack_import_key];
|
|
367
367
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
368
|
-
var _checkbox__rspack_import_13 = __webpack_require__("
|
|
368
|
+
var _checkbox__rspack_import_13 = __webpack_require__("@/components/ui/checkbox");
|
|
369
369
|
var __rspack_reexport = {};
|
|
370
370
|
for(const __rspack_import_key in _checkbox__rspack_import_13)if ([
|
|
371
371
|
"default",
|
|
@@ -373,7 +373,7 @@ var __webpack_exports__ = {};
|
|
|
373
373
|
"TreeView"
|
|
374
374
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_checkbox__rspack_import_13[__rspack_import_key];
|
|
375
375
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
376
|
-
var _collapsible__rspack_import_14 = __webpack_require__("
|
|
376
|
+
var _collapsible__rspack_import_14 = __webpack_require__("@/components/ui/collapsible");
|
|
377
377
|
var __rspack_reexport = {};
|
|
378
378
|
for(const __rspack_import_key in _collapsible__rspack_import_14)if ([
|
|
379
379
|
"default",
|
|
@@ -453,7 +453,7 @@ var __webpack_exports__ = {};
|
|
|
453
453
|
"TreeView"
|
|
454
454
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_dropdown_menu__rspack_import_23[__rspack_import_key];
|
|
455
455
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
456
|
-
var _editable_cell__rspack_import_24 = __webpack_require__("
|
|
456
|
+
var _editable_cell__rspack_import_24 = __webpack_require__("@/components/ui/editable-cell");
|
|
457
457
|
var __rspack_reexport = {};
|
|
458
458
|
for(const __rspack_import_key in _editable_cell__rspack_import_24)if ([
|
|
459
459
|
"default",
|
|
@@ -509,7 +509,7 @@ var __webpack_exports__ = {};
|
|
|
509
509
|
"TreeView"
|
|
510
510
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_hover_card__rspack_import_30[__rspack_import_key];
|
|
511
511
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
512
|
-
var _info_tooltip__rspack_import_31 = __webpack_require__("
|
|
512
|
+
var _info_tooltip__rspack_import_31 = __webpack_require__("@/components/ui/info-tooltip");
|
|
513
513
|
var __rspack_reexport = {};
|
|
514
514
|
for(const __rspack_import_key in _info_tooltip__rspack_import_31)if ([
|
|
515
515
|
"default",
|
|
@@ -541,7 +541,7 @@ var __webpack_exports__ = {};
|
|
|
541
541
|
"TreeView"
|
|
542
542
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_input_group__rspack_import_34[__rspack_import_key];
|
|
543
543
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
544
|
-
var _label__rspack_import_35 = __webpack_require__("
|
|
544
|
+
var _label__rspack_import_35 = __webpack_require__("@/components/ui/label");
|
|
545
545
|
var __rspack_reexport = {};
|
|
546
546
|
for(const __rspack_import_key in _label__rspack_import_35)if ([
|
|
547
547
|
"default",
|
|
@@ -549,7 +549,7 @@ var __webpack_exports__ = {};
|
|
|
549
549
|
"TreeView"
|
|
550
550
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_label__rspack_import_35[__rspack_import_key];
|
|
551
551
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
552
|
-
var _layout__rspack_import_36 = __webpack_require__("
|
|
552
|
+
var _layout__rspack_import_36 = __webpack_require__("@/components/ui/layout");
|
|
553
553
|
var __rspack_reexport = {};
|
|
554
554
|
for(const __rspack_import_key in _layout__rspack_import_36)if ([
|
|
555
555
|
"default",
|
|
@@ -757,7 +757,7 @@ var __webpack_exports__ = {};
|
|
|
757
757
|
"TreeView"
|
|
758
758
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_switch__rspack_import_61[__rspack_import_key];
|
|
759
759
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
760
|
-
var _table__rspack_import_62 = __webpack_require__("
|
|
760
|
+
var _table__rspack_import_62 = __webpack_require__("./table");
|
|
761
761
|
var __rspack_reexport = {};
|
|
762
762
|
for(const __rspack_import_key in _table__rspack_import_62)if ([
|
|
763
763
|
"default",
|
|
@@ -797,7 +797,7 @@ var __webpack_exports__ = {};
|
|
|
797
797
|
"TreeView"
|
|
798
798
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_toggle_group__rspack_import_66[__rspack_import_key];
|
|
799
799
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
800
|
-
var _tooltip__rspack_import_67 = __webpack_require__("
|
|
800
|
+
var _tooltip__rspack_import_67 = __webpack_require__("@/components/ui/tooltip");
|
|
801
801
|
var __rspack_reexport = {};
|
|
802
802
|
for(const __rspack_import_key in _tooltip__rspack_import_67)if ([
|
|
803
803
|
"default",
|
|
@@ -168,7 +168,7 @@ function JsonTreeViewContent({ nodes, collapsed = {}, onToggleCollapsed, query,
|
|
|
168
168
|
});
|
|
169
169
|
});
|
|
170
170
|
};
|
|
171
|
-
const copyPath = (node)=>copy(node, 'path', pathForCopy?.(node.path) ?? node.path);
|
|
171
|
+
const copyPath = (node)=>copy(node, 'path', pathForCopy?.(node.path, node.segments) ?? node.path);
|
|
172
172
|
const copyValue = (node)=>copy(node, 'value', valueAsText(node));
|
|
173
173
|
const toggleWrapped = (node)=>{
|
|
174
174
|
setWrappedPaths((prev)=>({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CopyEvent, DeriveTypeIcon, JsonTreeNode, JsonTreeRowWrapper, JsonValue, NodeActionsResolver, NodeDecoration, RenderCodeEditor, RenderValueCell } from './JsonTree.types';
|
|
1
|
+
import type { CopyEvent, DeriveTypeIcon, JsonTreeNode, JsonTreeRowWrapper, JsonValue, NodeActionsResolver, NodeDecoration, PathForCopy, RenderCodeEditor, RenderValueCell } from './JsonTree.types';
|
|
2
2
|
import { type JsonTreeViewStrings } from './strings';
|
|
3
3
|
export interface JsonTreeViewProps {
|
|
4
4
|
/** Tree built with `buildJsonTree`. */
|
|
@@ -43,7 +43,7 @@ export interface JsonTreeViewProps {
|
|
|
43
43
|
/** Renders the object/array editing surface as a code editor (defaults to a textarea). */
|
|
44
44
|
renderCodeEditor?: RenderCodeEditor;
|
|
45
45
|
/** Builds the text copied when a field name is clicked. Defaults to the path itself. */
|
|
46
|
-
pathForCopy?:
|
|
46
|
+
pathForCopy?: PathForCopy;
|
|
47
47
|
/** Called after something is copied to the clipboard. */
|
|
48
48
|
onCopy?: (event: CopyEvent) => void;
|
|
49
49
|
/**
|
|
@@ -140,7 +140,7 @@ function JsonTreeViewContent({ nodes, collapsed = {}, onToggleCollapsed, query,
|
|
|
140
140
|
});
|
|
141
141
|
});
|
|
142
142
|
};
|
|
143
|
-
const copyPath = (node)=>copy(node, 'path', pathForCopy?.(node.path) ?? node.path);
|
|
143
|
+
const copyPath = (node)=>copy(node, 'path', pathForCopy?.(node.path, node.segments) ?? node.path);
|
|
144
144
|
const copyValue = (node)=>copy(node, 'value', valueAsText(node));
|
|
145
145
|
const toggleWrapped = (node)=>{
|
|
146
146
|
setWrappedPaths((prev)=>({
|
|
@@ -206,6 +206,12 @@ export interface CopyEvent {
|
|
|
206
206
|
/** The text placed on the clipboard. */
|
|
207
207
|
text: string;
|
|
208
208
|
}
|
|
209
|
+
/**
|
|
210
|
+
* Builds the text copied when a field name is clicked. `segments` is the
|
|
211
|
+
* unquoted form of `path`, so a consumer can rewrite part of it (e.g. the root
|
|
212
|
+
* key) without re-parsing the bracket-quoted string.
|
|
213
|
+
*/
|
|
214
|
+
export type PathForCopy = (path: string, segments: PathSegment[]) => string;
|
|
209
215
|
/** Details about a single value edit. */
|
|
210
216
|
export interface JsonTreeChange {
|
|
211
217
|
path: string;
|
|
@@ -157,7 +157,7 @@ function JsonTreeRow({ node, depth }) {
|
|
|
157
157
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_NodeKey_cjs_namespaceObject.NodeKey, {
|
|
158
158
|
node: node,
|
|
159
159
|
label: isTemplateItem ? templateItemLabel : decoration?.label,
|
|
160
|
-
displayPath: pathForCopy?.(node.path) ?? node.path,
|
|
160
|
+
displayPath: pathForCopy?.(node.path, node.segments) ?? node.path,
|
|
161
161
|
onCopyPath: copyPath,
|
|
162
162
|
className: isTemplateItem ? 'font-normal italic text-foreground-subtle' : void 0
|
|
163
163
|
}),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CopyEvent, DeriveTypeIcon, JsonTreeNode, JsonTreeRowWrapper, JsonValue, NodeActionsResolver, NodeDecoration, RenderCodeEditor, RenderValueCell } from './JsonTree.types';
|
|
1
|
+
import type { CopyEvent, DeriveTypeIcon, JsonTreeNode, JsonTreeRowWrapper, JsonValue, NodeActionsResolver, NodeDecoration, PathForCopy, RenderCodeEditor, RenderValueCell } from './JsonTree.types';
|
|
2
2
|
/** `min-h-7` above (1.75rem) in px at the default root size: the virtualizer's estimate
|
|
3
3
|
* until each row is measured, so a different root size costs accuracy but not correctness. */
|
|
4
4
|
export declare const ROW_MIN_HEIGHT_PX = 28;
|
|
@@ -17,7 +17,7 @@ export interface JsonTreeRowContextValue {
|
|
|
17
17
|
nodeActions?: NodeActionsResolver;
|
|
18
18
|
maxInlineActions: number;
|
|
19
19
|
renderCodeEditor?: RenderCodeEditor;
|
|
20
|
-
pathForCopy?:
|
|
20
|
+
pathForCopy?: PathForCopy;
|
|
21
21
|
/** Editability is row-invariant (props only), so it is resolved once. */
|
|
22
22
|
canEdit: boolean;
|
|
23
23
|
RowWrapper: JsonTreeRowWrapper;
|
|
@@ -127,7 +127,7 @@ function JsonTreeRow({ node, depth }) {
|
|
|
127
127
|
/*#__PURE__*/ jsx(NodeKey, {
|
|
128
128
|
node: node,
|
|
129
129
|
label: isTemplateItem ? templateItemLabel : decoration?.label,
|
|
130
|
-
displayPath: pathForCopy?.(node.path) ?? node.path,
|
|
130
|
+
displayPath: pathForCopy?.(node.path, node.segments) ?? node.path,
|
|
131
131
|
onCopyPath: copyPath,
|
|
132
132
|
className: isTemplateItem ? 'font-normal italic text-foreground-subtle' : void 0
|
|
133
133
|
}),
|
|
@@ -99,6 +99,7 @@ export interface DiscoveryModel {
|
|
|
99
99
|
* text generation only passes `filter={isTextGenerationModel}`.
|
|
100
100
|
*/
|
|
101
101
|
modelType?: ModelType;
|
|
102
|
+
capabilities?: ('Chat' | 'Embeddings' | string)[];
|
|
102
103
|
deprecationDetails?: DeprecationDetails | null;
|
|
103
104
|
byomDetails?: ByomDetails | null;
|
|
104
105
|
modelDetails?: ModelDetails;
|
|
@@ -39,6 +39,7 @@ const RECOMMENDED_SUBSCRIPTION = 'UiPathOwned';
|
|
|
39
39
|
const isByoModel = (m)=>'BYOMAdded' === m.modelSubscriptionType || 'BYOMReplacedAlternative' === m.modelSubscriptionType || 'BYOMReplacedLikeForLike' === m.modelSubscriptionType || !!m.byomDetails || !!m.byoConnectionLabel;
|
|
40
40
|
function isTextGenerationModel(m) {
|
|
41
41
|
if ('Realtime' === m.modelType) return false;
|
|
42
|
+
if (m.capabilities?.includes('Embeddings') && !m.capabilities.includes('Chat')) return false;
|
|
42
43
|
return !(m.apiFlavor ?? '').includes('Embeddings');
|
|
43
44
|
}
|
|
44
45
|
const OMS_REGION_TO_GEOGRAPHY = {
|
|
@@ -61,8 +61,8 @@ export interface DeriveModelTagsContext {
|
|
|
61
61
|
export declare const isByoModel: (m: DiscoveryModel) => boolean;
|
|
62
62
|
/**
|
|
63
63
|
* Ready-made `filter` predicate for products that only offer text-generation
|
|
64
|
-
* models: drops embeddings (by API flavor —
|
|
65
|
-
* `GeminiEmbeddings`) and realtime (by `modelType`).
|
|
64
|
+
* models: drops embeddings (by `capabilities`, or by API flavor —
|
|
65
|
+
* `OpenAiEmbeddings`, `GeminiEmbeddings`) and realtime (by `modelType`).
|
|
66
66
|
*
|
|
67
67
|
* The picker does NOT apply this itself: which modalities to offer is a
|
|
68
68
|
* per-product decision — an indexing or context-grounding surface picks
|
|
@@ -4,6 +4,7 @@ const RECOMMENDED_SUBSCRIPTION = 'UiPathOwned';
|
|
|
4
4
|
const isByoModel = (m)=>'BYOMAdded' === m.modelSubscriptionType || 'BYOMReplacedAlternative' === m.modelSubscriptionType || 'BYOMReplacedLikeForLike' === m.modelSubscriptionType || !!m.byomDetails || !!m.byoConnectionLabel;
|
|
5
5
|
function isTextGenerationModel(m) {
|
|
6
6
|
if ('Realtime' === m.modelType) return false;
|
|
7
|
+
if (m.capabilities?.includes('Embeddings') && !m.capabilities.includes('Chat')) return false;
|
|
7
8
|
return !(m.apiFlavor ?? '').includes('Embeddings');
|
|
8
9
|
}
|
|
9
10
|
const OMS_REGION_TO_GEOGRAPHY = {
|
package/dist/index.d.ts
CHANGED
|
@@ -129,7 +129,7 @@ export { Textarea } from './components/ui/textarea';
|
|
|
129
129
|
export { Toggle, toggleVariants } from './components/ui/toggle';
|
|
130
130
|
export { ToggleGroup, ToggleGroupItem } from './components/ui/toggle-group';
|
|
131
131
|
export { Tooltip, TooltipContent, TooltipPortal, TooltipProvider, TooltipTrigger, } from './components/ui/tooltip';
|
|
132
|
-
export type { BuildJsonTreeOptions, ContainerPath, CopyEvent, DeriveTypeIcon, FlatJsonTreeRow, FlattenOptions, JsonCodeEditorRenderProps, JsonContainer, JsonContainerEditorProps, JsonLeafValueEditorProps, JsonMultilineLeafEditorProps, JsonObject, JsonSchema, JsonSchemaTypeName, JsonTreeChange, JsonTreeFilterOption, JsonTreeNode, JsonTreeNodeType, JsonTreeRowWrapper, JsonTreeRowWrapperProps, JsonTreeToolbarProps, JsonTreeViewProps, JsonTreeViewProviderProps, JsonTreeViewStrings, JsonTypeBadgeProps, JsonValue, NodeAction, NodeActionContext, NodeActionsResolver, NodeBadgeReference, NodeDecoration, NodeDecorationBadge, NodeDecorationChip, NodeDecorationTone, NodeDisplayTexts, PathSegment, RenderCodeEditor, RenderValueCell, RenderValueContext, ResolvedJsonTreeViewStrings, } from './components/ui/json-tree-view';
|
|
132
|
+
export type { BuildJsonTreeOptions, ContainerPath, CopyEvent, DeriveTypeIcon, FlatJsonTreeRow, FlattenOptions, JsonCodeEditorRenderProps, JsonContainer, JsonContainerEditorProps, JsonLeafValueEditorProps, JsonMultilineLeafEditorProps, JsonObject, JsonSchema, JsonSchemaTypeName, JsonTreeChange, JsonTreeFilterOption, JsonTreeNode, JsonTreeNodeType, JsonTreeRowWrapper, JsonTreeRowWrapperProps, JsonTreeToolbarProps, JsonTreeViewProps, JsonTreeViewProviderProps, JsonTreeViewStrings, JsonTypeBadgeProps, JsonValue, NodeAction, NodeActionContext, NodeActionsResolver, NodeBadgeReference, NodeDecoration, NodeDecorationBadge, NodeDecorationChip, NodeDecorationTone, NodeDisplayTexts, PathForCopy, PathSegment, RenderCodeEditor, RenderValueCell, RenderValueContext, ResolvedJsonTreeViewStrings, } from './components/ui/json-tree-view';
|
|
133
133
|
export { appendPathSegment, buildJsonTree, collectContainerPaths, copyTextToClipboard, DEFAULT_JSON_TREE_VIEW_STRINGS, flattenJsonTree, formatLeafValue, getValueAtPath, inferValueType, isArrayItemTemplateRoot, isJsonObject, JsonContainerEditor, JsonLeafValueEditor, JsonMultilineLeafEditor, JsonTreeToolbar, JsonTreeView, JsonTreeViewProvider, JsonTypeBadge, removeValueAtPath, schemaDisplayType, setValueAtPath, useJsonTreeViewStrings, } from './components/ui/json-tree-view';
|
|
134
134
|
export type { FileTreeViewIconMap, FileTreeViewItem, FileTreeViewItemAction, FileTreeViewMenuItem, FileTreeViewProps, FileTreeViewSelectionMode, TreeViewIconMap, TreeViewItem, TreeViewItemAction, TreeViewMenuItem, TreeViewProps, TreeViewSelectionMode, } from './components/ui/tree-view';
|
|
135
135
|
export { default as FileTreeView, TreeView } from './components/ui/tree-view';
|