@uipath/apollo-wind 2.95.3 → 2.96.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/byo-model-dialog/byo-model-dialog.cjs +340 -212
- package/dist/components/ui/byo-model-dialog/byo-model-dialog.js +342 -214
- package/dist/components/ui/byo-model-dialog/index.d.ts +1 -1
- package/dist/components/ui/byo-model-dialog/labels.cjs +22 -10
- package/dist/components/ui/byo-model-dialog/labels.d.ts +19 -5
- package/dist/components/ui/byo-model-dialog/labels.js +22 -10
- package/dist/components/ui/byo-model-dialog/model-alias-picker.cjs +293 -0
- package/dist/components/ui/byo-model-dialog/model-alias-picker.d.ts +24 -0
- package/dist/components/ui/byo-model-dialog/model-alias-picker.js +259 -0
- package/dist/components/ui/byo-model-dialog/types.d.ts +19 -0
- package/dist/components/ui/index.cjs +38 -38
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Check, ChevronDown, Pencil, Plus } from "lucide-react";
|
|
3
|
+
import { useEffect, useRef, useState } from "react";
|
|
4
|
+
import { Button } from "../button.js";
|
|
5
|
+
import { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList } from "../command.js";
|
|
6
|
+
import { Input } from "../input.js";
|
|
7
|
+
import { Popover, PopoverContent, PopoverTrigger } from "../popover.js";
|
|
8
|
+
import { Tooltip, TooltipContent, TooltipPortal, TooltipProvider, TooltipTrigger } from "../tooltip.js";
|
|
9
|
+
import { cn } from "../../../lib/index.js";
|
|
10
|
+
function ModelAliasPicker({ replaceable, allowsCustom, value, onChange, disabled, invalid, container, labels }) {
|
|
11
|
+
const [open, setOpen] = useState(false);
|
|
12
|
+
const [query, setQuery] = useState('');
|
|
13
|
+
const [adding, setAdding] = useState(false);
|
|
14
|
+
const [draft, setDraft] = useState('');
|
|
15
|
+
const searchRef = useRef(null);
|
|
16
|
+
const custom = value?.kind === 'custom' ? value.name : null;
|
|
17
|
+
const q = query.trim().toLowerCase();
|
|
18
|
+
const shown = replaceable.filter((m)=>m.name.toLowerCase().includes(q));
|
|
19
|
+
const customShown = custom?.toLowerCase().includes(q) ?? false;
|
|
20
|
+
const close = ()=>{
|
|
21
|
+
setOpen(false);
|
|
22
|
+
setQuery('');
|
|
23
|
+
setAdding(false);
|
|
24
|
+
setDraft('');
|
|
25
|
+
};
|
|
26
|
+
const choose = (alias)=>{
|
|
27
|
+
onChange(alias);
|
|
28
|
+
close();
|
|
29
|
+
};
|
|
30
|
+
const startAdding = ()=>{
|
|
31
|
+
setDraft(custom ?? query.trim());
|
|
32
|
+
setAdding(true);
|
|
33
|
+
};
|
|
34
|
+
const [returning, setReturning] = useState(false);
|
|
35
|
+
const stopAdding = ()=>{
|
|
36
|
+
setAdding(false);
|
|
37
|
+
setReturning(true);
|
|
38
|
+
};
|
|
39
|
+
useEffect(()=>{
|
|
40
|
+
if (!returning) return;
|
|
41
|
+
setReturning(false);
|
|
42
|
+
searchRef.current?.focus();
|
|
43
|
+
}, [
|
|
44
|
+
returning
|
|
45
|
+
]);
|
|
46
|
+
const confirmCustom = ()=>{
|
|
47
|
+
const name = draft.trim();
|
|
48
|
+
if (name) choose({
|
|
49
|
+
kind: 'custom',
|
|
50
|
+
name
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
const placeholder = replaceable.length ? labels.replacementPlaceholder : labels.addCustomAlias;
|
|
54
|
+
const customGroup = allowsCustom && (null === custom || customShown) && /*#__PURE__*/ jsx(CommandGroup, {
|
|
55
|
+
heading: labels.useOwnName,
|
|
56
|
+
children: null !== custom ? /*#__PURE__*/ jsxs(CommandItem, {
|
|
57
|
+
value: `custom:${custom}`,
|
|
58
|
+
onSelect: ()=>choose({
|
|
59
|
+
kind: 'custom',
|
|
60
|
+
name: custom
|
|
61
|
+
}),
|
|
62
|
+
className: "gap-2 py-1",
|
|
63
|
+
children: [
|
|
64
|
+
/*#__PURE__*/ jsx(Selected, {
|
|
65
|
+
on: true
|
|
66
|
+
}),
|
|
67
|
+
/*#__PURE__*/ jsx("span", {
|
|
68
|
+
className: "min-w-0 truncate font-mono text-xs text-foreground",
|
|
69
|
+
children: custom
|
|
70
|
+
}),
|
|
71
|
+
/*#__PURE__*/ jsx(TooltipProvider, {
|
|
72
|
+
delayDuration: 300,
|
|
73
|
+
children: /*#__PURE__*/ jsxs(Tooltip, {
|
|
74
|
+
children: [
|
|
75
|
+
/*#__PURE__*/ jsx(TooltipTrigger, {
|
|
76
|
+
asChild: true,
|
|
77
|
+
children: /*#__PURE__*/ jsx(Button, {
|
|
78
|
+
variant: "ghost",
|
|
79
|
+
size: "3xs",
|
|
80
|
+
icon: true,
|
|
81
|
+
className: "ml-auto",
|
|
82
|
+
"aria-label": labels.editCustomAlias,
|
|
83
|
+
onPointerDown: (e)=>e.stopPropagation(),
|
|
84
|
+
onKeyDown: (e)=>{
|
|
85
|
+
if ('Enter' === e.key || ' ' === e.key) e.stopPropagation();
|
|
86
|
+
},
|
|
87
|
+
onClick: (e)=>{
|
|
88
|
+
e.preventDefault();
|
|
89
|
+
e.stopPropagation();
|
|
90
|
+
startAdding();
|
|
91
|
+
},
|
|
92
|
+
children: /*#__PURE__*/ jsx(Pencil, {})
|
|
93
|
+
})
|
|
94
|
+
}),
|
|
95
|
+
/*#__PURE__*/ jsx(TooltipPortal, {
|
|
96
|
+
container: container,
|
|
97
|
+
children: /*#__PURE__*/ jsx(TooltipContent, {
|
|
98
|
+
children: labels.editCustomAlias
|
|
99
|
+
})
|
|
100
|
+
})
|
|
101
|
+
]
|
|
102
|
+
})
|
|
103
|
+
})
|
|
104
|
+
]
|
|
105
|
+
}) : /*#__PURE__*/ jsxs(CommandItem, {
|
|
106
|
+
value: "custom:add",
|
|
107
|
+
onSelect: startAdding,
|
|
108
|
+
className: "gap-2 py-1.5 text-foreground-accent",
|
|
109
|
+
children: [
|
|
110
|
+
/*#__PURE__*/ jsx(Plus, {
|
|
111
|
+
size: 14
|
|
112
|
+
}),
|
|
113
|
+
labels.addCustomAlias
|
|
114
|
+
]
|
|
115
|
+
})
|
|
116
|
+
});
|
|
117
|
+
const customLast = Boolean(q) && null === custom && shown.length > 0;
|
|
118
|
+
return /*#__PURE__*/ jsxs(Popover, {
|
|
119
|
+
open: open,
|
|
120
|
+
onOpenChange: (next)=>next ? setOpen(true) : close(),
|
|
121
|
+
modal: true,
|
|
122
|
+
children: [
|
|
123
|
+
/*#__PURE__*/ jsx(PopoverTrigger, {
|
|
124
|
+
asChild: true,
|
|
125
|
+
children: /*#__PURE__*/ jsxs(Button, {
|
|
126
|
+
variant: "outline",
|
|
127
|
+
role: "combobox",
|
|
128
|
+
"aria-expanded": open,
|
|
129
|
+
"aria-label": labels.nameStep,
|
|
130
|
+
"aria-invalid": invalid || void 0,
|
|
131
|
+
disabled: disabled,
|
|
132
|
+
className: "w-full justify-between font-normal",
|
|
133
|
+
children: [
|
|
134
|
+
value ? /*#__PURE__*/ jsxs("span", {
|
|
135
|
+
className: "flex min-w-0 items-center gap-2",
|
|
136
|
+
children: [
|
|
137
|
+
/*#__PURE__*/ jsx("span", {
|
|
138
|
+
className: "truncate font-mono text-xs",
|
|
139
|
+
children: value.name
|
|
140
|
+
}),
|
|
141
|
+
'custom' === value.kind && /*#__PURE__*/ jsx("span", {
|
|
142
|
+
className: "shrink-0 text-xs text-foreground-muted",
|
|
143
|
+
children: labels.useOwnName
|
|
144
|
+
})
|
|
145
|
+
]
|
|
146
|
+
}) : /*#__PURE__*/ jsx("span", {
|
|
147
|
+
className: "truncate text-foreground-muted",
|
|
148
|
+
children: placeholder
|
|
149
|
+
}),
|
|
150
|
+
/*#__PURE__*/ jsx(ChevronDown, {
|
|
151
|
+
className: "shrink-0 opacity-50"
|
|
152
|
+
})
|
|
153
|
+
]
|
|
154
|
+
})
|
|
155
|
+
}),
|
|
156
|
+
/*#__PURE__*/ jsx(PopoverContent, {
|
|
157
|
+
container: container,
|
|
158
|
+
align: "start",
|
|
159
|
+
className: "w-[var(--radix-popover-trigger-width)] overflow-hidden p-0",
|
|
160
|
+
onOpenAutoFocus: (e)=>{
|
|
161
|
+
e.preventDefault();
|
|
162
|
+
searchRef.current?.focus();
|
|
163
|
+
},
|
|
164
|
+
onEscapeKeyDown: (e)=>{
|
|
165
|
+
if (!adding) return;
|
|
166
|
+
e.preventDefault();
|
|
167
|
+
stopAdding();
|
|
168
|
+
},
|
|
169
|
+
children: adding ? /*#__PURE__*/ jsxs("div", {
|
|
170
|
+
className: "flex flex-col gap-2 p-2",
|
|
171
|
+
children: [
|
|
172
|
+
/*#__PURE__*/ jsx(Input, {
|
|
173
|
+
autoFocus: true,
|
|
174
|
+
"aria-label": labels.customAliasPlaceholder,
|
|
175
|
+
placeholder: labels.customAliasPlaceholder,
|
|
176
|
+
value: draft,
|
|
177
|
+
onChange: (e)=>setDraft(e.target.value),
|
|
178
|
+
onKeyDown: (e)=>{
|
|
179
|
+
if ('Enter' === e.key) {
|
|
180
|
+
e.preventDefault();
|
|
181
|
+
confirmCustom();
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}),
|
|
185
|
+
/*#__PURE__*/ jsxs("div", {
|
|
186
|
+
className: "flex gap-2",
|
|
187
|
+
children: [
|
|
188
|
+
/*#__PURE__*/ jsx(Button, {
|
|
189
|
+
size: "2xs",
|
|
190
|
+
disabled: !draft.trim(),
|
|
191
|
+
onClick: confirmCustom,
|
|
192
|
+
children: null === custom ? labels.addAlias : labels.saveAlias
|
|
193
|
+
}),
|
|
194
|
+
/*#__PURE__*/ jsx(Button, {
|
|
195
|
+
size: "2xs",
|
|
196
|
+
variant: "ghost",
|
|
197
|
+
onClick: stopAdding,
|
|
198
|
+
children: labels.cancel
|
|
199
|
+
})
|
|
200
|
+
]
|
|
201
|
+
})
|
|
202
|
+
]
|
|
203
|
+
}) : /*#__PURE__*/ jsxs(Command, {
|
|
204
|
+
shouldFilter: false,
|
|
205
|
+
children: [
|
|
206
|
+
/*#__PURE__*/ jsx(CommandInput, {
|
|
207
|
+
ref: searchRef,
|
|
208
|
+
"aria-label": labels.nameStep,
|
|
209
|
+
placeholder: labels.aliasSearch,
|
|
210
|
+
value: query,
|
|
211
|
+
onValueChange: setQuery
|
|
212
|
+
}),
|
|
213
|
+
/*#__PURE__*/ jsxs(CommandList, {
|
|
214
|
+
className: "max-h-[280px]",
|
|
215
|
+
children: [
|
|
216
|
+
/*#__PURE__*/ jsx(CommandEmpty, {
|
|
217
|
+
children: labels.aliasNoMatch(query)
|
|
218
|
+
}),
|
|
219
|
+
!customLast && customGroup,
|
|
220
|
+
shown.length > 0 && /*#__PURE__*/ jsx(CommandGroup, {
|
|
221
|
+
heading: labels.useReplacement,
|
|
222
|
+
children: shown.map((m)=>/*#__PURE__*/ jsxs(CommandItem, {
|
|
223
|
+
value: `replacement:${m.name}`,
|
|
224
|
+
onSelect: ()=>choose({
|
|
225
|
+
kind: 'replacement',
|
|
226
|
+
name: m.name
|
|
227
|
+
}),
|
|
228
|
+
className: "gap-2 py-1.5",
|
|
229
|
+
children: [
|
|
230
|
+
/*#__PURE__*/ jsx(Selected, {
|
|
231
|
+
on: value?.kind === 'replacement' && value.name === m.name
|
|
232
|
+
}),
|
|
233
|
+
/*#__PURE__*/ jsx("span", {
|
|
234
|
+
className: "min-w-0 truncate font-mono text-xs text-foreground",
|
|
235
|
+
children: m.name
|
|
236
|
+
}),
|
|
237
|
+
m.retiresOn && /*#__PURE__*/ jsx("span", {
|
|
238
|
+
className: "ml-auto shrink-0 pl-2 text-xs text-foreground-muted",
|
|
239
|
+
children: labels.deprecated
|
|
240
|
+
})
|
|
241
|
+
]
|
|
242
|
+
}, m.name))
|
|
243
|
+
}),
|
|
244
|
+
customLast && customGroup
|
|
245
|
+
]
|
|
246
|
+
})
|
|
247
|
+
]
|
|
248
|
+
})
|
|
249
|
+
})
|
|
250
|
+
]
|
|
251
|
+
});
|
|
252
|
+
}
|
|
253
|
+
function Selected({ on }) {
|
|
254
|
+
return /*#__PURE__*/ jsx(Check, {
|
|
255
|
+
size: 14,
|
|
256
|
+
className: cn('shrink-0', on ? 'text-foreground-accent' : 'opacity-0')
|
|
257
|
+
});
|
|
258
|
+
}
|
|
259
|
+
export { ModelAliasPicker };
|
|
@@ -54,6 +54,16 @@ export interface ByoConnection {
|
|
|
54
54
|
name: string;
|
|
55
55
|
folderId: string;
|
|
56
56
|
}
|
|
57
|
+
/**
|
|
58
|
+
* What using a saved connection here changes in it, which the user agrees to first.
|
|
59
|
+
* The host words it: the dialog shows it under the connection.
|
|
60
|
+
*/
|
|
61
|
+
export interface ByoConnectionChange {
|
|
62
|
+
title: string;
|
|
63
|
+
message: string;
|
|
64
|
+
/** The checkbox the user ticks to agree to the change. */
|
|
65
|
+
agreement: string;
|
|
66
|
+
}
|
|
57
67
|
export interface ByoProviderModel {
|
|
58
68
|
id: string;
|
|
59
69
|
/** Short trailing text on the row, e.g. the inference profile in use. */
|
|
@@ -77,6 +87,8 @@ export interface ByoFailure {
|
|
|
77
87
|
title: string;
|
|
78
88
|
message?: string;
|
|
79
89
|
detail?: string;
|
|
90
|
+
/** Asking again gives the same answer, so the dialog offers no Try again. */
|
|
91
|
+
final?: boolean;
|
|
80
92
|
}
|
|
81
93
|
export type ByoResult<T> = {
|
|
82
94
|
ok: true;
|
|
@@ -173,6 +185,13 @@ export interface ByoModelDialogApi {
|
|
|
173
185
|
/** Creates a connection, or updates `existing` when one is given. */
|
|
174
186
|
connect: (request: ByoConnectRequest) => Promise<ByoResult<ByoConnection>>;
|
|
175
187
|
listModels: (providerId: string, connection: ByoConnection) => Promise<ByoResult<ByoProviderModels>>;
|
|
188
|
+
/**
|
|
189
|
+
* What using `connection` here would change in it, or `null` when it can be used as it is.
|
|
190
|
+
* Asked before its models are listed; a host that never changes a connection leaves it out.
|
|
191
|
+
*/
|
|
192
|
+
checkConnection?: (providerId: string, connection: ByoConnection) => Promise<ByoResult<ByoConnectionChange | null>>;
|
|
193
|
+
/** Makes the change `checkConnection` described, once the user has agreed to it. */
|
|
194
|
+
applyConnectionChange?: (providerId: string, connection: ByoConnection) => Promise<ByoResult<ByoConnection>>;
|
|
176
195
|
/**
|
|
177
196
|
* The API types the provider can call the model through, most suitable first: replacing the
|
|
178
197
|
* UiPath model `replaces`, or under a name of the user's own when it is `null`. Answers from
|
|
@@ -18,7 +18,7 @@ var __webpack_modules__ = {
|
|
|
18
18
|
"./avatar" (module) {
|
|
19
19
|
module.exports = require("./avatar.cjs");
|
|
20
20
|
},
|
|
21
|
-
"
|
|
21
|
+
"@/components/ui/badge" (module) {
|
|
22
22
|
module.exports = require("./badge.cjs");
|
|
23
23
|
},
|
|
24
24
|
"./boolean-radio-group" (module) {
|
|
@@ -33,13 +33,13 @@ var __webpack_modules__ = {
|
|
|
33
33
|
"./button-group" (module) {
|
|
34
34
|
module.exports = require("./button-group.cjs");
|
|
35
35
|
},
|
|
36
|
-
"
|
|
36
|
+
"@/components/ui/button" (module) {
|
|
37
37
|
module.exports = require("./button.cjs");
|
|
38
38
|
},
|
|
39
39
|
"./byo-model-dialog" (module) {
|
|
40
40
|
module.exports = require("./byo-model-dialog/index.cjs");
|
|
41
41
|
},
|
|
42
|
-
"
|
|
42
|
+
"@/components/ui/calendar" (module) {
|
|
43
43
|
module.exports = require("./calendar.cjs");
|
|
44
44
|
},
|
|
45
45
|
"@/components/ui/card" (module) {
|
|
@@ -54,7 +54,7 @@ var __webpack_modules__ = {
|
|
|
54
54
|
"./chat-hero" (module) {
|
|
55
55
|
module.exports = require("./chat-hero.cjs");
|
|
56
56
|
},
|
|
57
|
-
"
|
|
57
|
+
"@/components/ui/checkbox" (module) {
|
|
58
58
|
module.exports = require("./checkbox.cjs");
|
|
59
59
|
},
|
|
60
60
|
"./citation" (module) {
|
|
@@ -90,7 +90,7 @@ var __webpack_modules__ = {
|
|
|
90
90
|
"./datetime-picker" (module) {
|
|
91
91
|
module.exports = require("./datetime-picker.cjs");
|
|
92
92
|
},
|
|
93
|
-
"
|
|
93
|
+
"./dialog" (module) {
|
|
94
94
|
module.exports = require("./dialog.cjs");
|
|
95
95
|
},
|
|
96
96
|
"./disclosure-tree" (module) {
|
|
@@ -99,13 +99,13 @@ var __webpack_modules__ = {
|
|
|
99
99
|
"./drawer" (module) {
|
|
100
100
|
module.exports = require("./drawer.cjs");
|
|
101
101
|
},
|
|
102
|
-
"
|
|
102
|
+
"./dropdown-menu" (module) {
|
|
103
103
|
module.exports = require("./dropdown-menu.cjs");
|
|
104
104
|
},
|
|
105
105
|
"./dropzone-overlay" (module) {
|
|
106
106
|
module.exports = require("./dropzone-overlay.cjs");
|
|
107
107
|
},
|
|
108
|
-
"
|
|
108
|
+
"./editable-cell" (module) {
|
|
109
109
|
module.exports = require("./editable-cell.cjs");
|
|
110
110
|
},
|
|
111
111
|
"./editable-text" (module) {
|
|
@@ -132,22 +132,22 @@ var __webpack_modules__ = {
|
|
|
132
132
|
"./hover-card" (module) {
|
|
133
133
|
module.exports = require("./hover-card.cjs");
|
|
134
134
|
},
|
|
135
|
-
"
|
|
135
|
+
"@/components/ui/info-tooltip" (module) {
|
|
136
136
|
module.exports = require("./info-tooltip.cjs");
|
|
137
137
|
},
|
|
138
138
|
"@/components/ui/input-group" (module) {
|
|
139
139
|
module.exports = require("./input-group.cjs");
|
|
140
140
|
},
|
|
141
|
-
"
|
|
141
|
+
"@/components/ui/input" (module) {
|
|
142
142
|
module.exports = require("./input.cjs");
|
|
143
143
|
},
|
|
144
144
|
"./json-tree-view" (module) {
|
|
145
145
|
module.exports = require("./json-tree-view/index.cjs");
|
|
146
146
|
},
|
|
147
|
-
"
|
|
147
|
+
"@/components/ui/label" (module) {
|
|
148
148
|
module.exports = require("./label.cjs");
|
|
149
149
|
},
|
|
150
|
-
"
|
|
150
|
+
"@/components/ui/layout" (module) {
|
|
151
151
|
module.exports = require("./layout/index.cjs");
|
|
152
152
|
},
|
|
153
153
|
"./live-region" (module) {
|
|
@@ -192,7 +192,7 @@ var __webpack_modules__ = {
|
|
|
192
192
|
"./password-input" (module) {
|
|
193
193
|
module.exports = require("./password-input.cjs");
|
|
194
194
|
},
|
|
195
|
-
"
|
|
195
|
+
"@/components/ui/popover" (module) {
|
|
196
196
|
module.exports = require("./popover.cjs");
|
|
197
197
|
},
|
|
198
198
|
"@/components/ui/portal-container" (module) {
|
|
@@ -219,7 +219,7 @@ var __webpack_modules__ = {
|
|
|
219
219
|
"./reference-chip-colors" (module) {
|
|
220
220
|
module.exports = require("./reference-chip-colors.cjs");
|
|
221
221
|
},
|
|
222
|
-
"
|
|
222
|
+
"@/components/ui/reference-chip" (module) {
|
|
223
223
|
module.exports = require("./reference-chip.cjs");
|
|
224
224
|
},
|
|
225
225
|
"./resizable" (module) {
|
|
@@ -252,7 +252,7 @@ var __webpack_modules__ = {
|
|
|
252
252
|
"./sidebar" (module) {
|
|
253
253
|
module.exports = require("./sidebar/index.cjs");
|
|
254
254
|
},
|
|
255
|
-
"
|
|
255
|
+
"./skeleton" (module) {
|
|
256
256
|
module.exports = require("./skeleton.cjs");
|
|
257
257
|
},
|
|
258
258
|
"./slider" (module) {
|
|
@@ -264,7 +264,7 @@ var __webpack_modules__ = {
|
|
|
264
264
|
"./sources" (module) {
|
|
265
265
|
module.exports = require("./sources.cjs");
|
|
266
266
|
},
|
|
267
|
-
"
|
|
267
|
+
"@/components/ui/spinner" (module) {
|
|
268
268
|
module.exports = require("./spinner.cjs");
|
|
269
269
|
},
|
|
270
270
|
"./stats-card" (module) {
|
|
@@ -276,7 +276,7 @@ var __webpack_modules__ = {
|
|
|
276
276
|
"./switch" (module) {
|
|
277
277
|
module.exports = require("./switch.cjs");
|
|
278
278
|
},
|
|
279
|
-
"
|
|
279
|
+
"./table" (module) {
|
|
280
280
|
module.exports = require("./table.cjs");
|
|
281
281
|
},
|
|
282
282
|
"./tabs" (module) {
|
|
@@ -291,19 +291,19 @@ var __webpack_modules__ = {
|
|
|
291
291
|
"./toggle-group" (module) {
|
|
292
292
|
module.exports = require("./toggle-group.cjs");
|
|
293
293
|
},
|
|
294
|
-
"
|
|
294
|
+
"@/components/ui/toggle" (module) {
|
|
295
295
|
module.exports = require("./toggle.cjs");
|
|
296
296
|
},
|
|
297
297
|
"./tool-call" (module) {
|
|
298
298
|
module.exports = require("./tool-call.cjs");
|
|
299
299
|
},
|
|
300
|
-
"
|
|
300
|
+
"@/components/ui/tooltip" (module) {
|
|
301
301
|
module.exports = require("./tooltip.cjs");
|
|
302
302
|
},
|
|
303
303
|
"./tree-view" (module) {
|
|
304
304
|
module.exports = require("./tree-view.cjs");
|
|
305
305
|
},
|
|
306
|
-
"
|
|
306
|
+
"@/components/ui/variable-picker" (module) {
|
|
307
307
|
module.exports = require("./variable-picker/index.cjs");
|
|
308
308
|
},
|
|
309
309
|
"./variable-value-control" (module) {
|
|
@@ -419,7 +419,7 @@ var __webpack_exports__ = {};
|
|
|
419
419
|
"ReferenceChip"
|
|
420
420
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_avatar__rspack_import_5[__rspack_import_key];
|
|
421
421
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
422
|
-
var _badge__rspack_import_6 = __webpack_require__("
|
|
422
|
+
var _badge__rspack_import_6 = __webpack_require__("@/components/ui/badge");
|
|
423
423
|
var __rspack_reexport = {};
|
|
424
424
|
for(const __rspack_import_key in _badge__rspack_import_6)if ([
|
|
425
425
|
"getReferenceChipColors",
|
|
@@ -459,7 +459,7 @@ var __webpack_exports__ = {};
|
|
|
459
459
|
"ReferenceChip"
|
|
460
460
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_bubble__rspack_import_9[__rspack_import_key];
|
|
461
461
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
462
|
-
var _button__rspack_import_10 = __webpack_require__("
|
|
462
|
+
var _button__rspack_import_10 = __webpack_require__("@/components/ui/button");
|
|
463
463
|
var __rspack_reexport = {};
|
|
464
464
|
for(const __rspack_import_key in _button__rspack_import_10)if ([
|
|
465
465
|
"getReferenceChipColors",
|
|
@@ -489,7 +489,7 @@ var __webpack_exports__ = {};
|
|
|
489
489
|
"ReferenceChip"
|
|
490
490
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_byo_model_dialog__rspack_import_12[__rspack_import_key];
|
|
491
491
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
492
|
-
var _calendar__rspack_import_13 = __webpack_require__("
|
|
492
|
+
var _calendar__rspack_import_13 = __webpack_require__("@/components/ui/calendar");
|
|
493
493
|
var __rspack_reexport = {};
|
|
494
494
|
for(const __rspack_import_key in _calendar__rspack_import_13)if ([
|
|
495
495
|
"getReferenceChipColors",
|
|
@@ -539,7 +539,7 @@ var __webpack_exports__ = {};
|
|
|
539
539
|
"ReferenceChip"
|
|
540
540
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_chat_hero__rspack_import_17[__rspack_import_key];
|
|
541
541
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
542
|
-
var _checkbox__rspack_import_18 = __webpack_require__("
|
|
542
|
+
var _checkbox__rspack_import_18 = __webpack_require__("@/components/ui/checkbox");
|
|
543
543
|
var __rspack_reexport = {};
|
|
544
544
|
for(const __rspack_import_key in _checkbox__rspack_import_18)if ([
|
|
545
545
|
"getReferenceChipColors",
|
|
@@ -659,7 +659,7 @@ var __webpack_exports__ = {};
|
|
|
659
659
|
"ReferenceChip"
|
|
660
660
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_datetime_picker__rspack_import_29[__rspack_import_key];
|
|
661
661
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
662
|
-
var _dialog__rspack_import_30 = __webpack_require__("
|
|
662
|
+
var _dialog__rspack_import_30 = __webpack_require__("./dialog");
|
|
663
663
|
var __rspack_reexport = {};
|
|
664
664
|
for(const __rspack_import_key in _dialog__rspack_import_30)if ([
|
|
665
665
|
"getReferenceChipColors",
|
|
@@ -689,7 +689,7 @@ var __webpack_exports__ = {};
|
|
|
689
689
|
"ReferenceChip"
|
|
690
690
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_drawer__rspack_import_32[__rspack_import_key];
|
|
691
691
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
692
|
-
var _dropdown_menu__rspack_import_33 = __webpack_require__("
|
|
692
|
+
var _dropdown_menu__rspack_import_33 = __webpack_require__("./dropdown-menu");
|
|
693
693
|
var __rspack_reexport = {};
|
|
694
694
|
for(const __rspack_import_key in _dropdown_menu__rspack_import_33)if ([
|
|
695
695
|
"getReferenceChipColors",
|
|
@@ -709,7 +709,7 @@ var __webpack_exports__ = {};
|
|
|
709
709
|
"ReferenceChip"
|
|
710
710
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_dropzone_overlay__rspack_import_34[__rspack_import_key];
|
|
711
711
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
712
|
-
var _editable_cell__rspack_import_35 = __webpack_require__("
|
|
712
|
+
var _editable_cell__rspack_import_35 = __webpack_require__("./editable-cell");
|
|
713
713
|
var __rspack_reexport = {};
|
|
714
714
|
for(const __rspack_import_key in _editable_cell__rspack_import_35)if ([
|
|
715
715
|
"getReferenceChipColors",
|
|
@@ -799,7 +799,7 @@ var __webpack_exports__ = {};
|
|
|
799
799
|
"ReferenceChip"
|
|
800
800
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_hover_card__rspack_import_43[__rspack_import_key];
|
|
801
801
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
802
|
-
var _info_tooltip__rspack_import_44 = __webpack_require__("
|
|
802
|
+
var _info_tooltip__rspack_import_44 = __webpack_require__("@/components/ui/info-tooltip");
|
|
803
803
|
var __rspack_reexport = {};
|
|
804
804
|
for(const __rspack_import_key in _info_tooltip__rspack_import_44)if ([
|
|
805
805
|
"getReferenceChipColors",
|
|
@@ -809,7 +809,7 @@ var __webpack_exports__ = {};
|
|
|
809
809
|
"ReferenceChip"
|
|
810
810
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_info_tooltip__rspack_import_44[__rspack_import_key];
|
|
811
811
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
812
|
-
var _input__rspack_import_45 = __webpack_require__("
|
|
812
|
+
var _input__rspack_import_45 = __webpack_require__("@/components/ui/input");
|
|
813
813
|
var __rspack_reexport = {};
|
|
814
814
|
for(const __rspack_import_key in _input__rspack_import_45)if ([
|
|
815
815
|
"getReferenceChipColors",
|
|
@@ -839,7 +839,7 @@ var __webpack_exports__ = {};
|
|
|
839
839
|
"ReferenceChip"
|
|
840
840
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_json_tree_view__rspack_import_47[__rspack_import_key];
|
|
841
841
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
842
|
-
var _label__rspack_import_48 = __webpack_require__("
|
|
842
|
+
var _label__rspack_import_48 = __webpack_require__("@/components/ui/label");
|
|
843
843
|
var __rspack_reexport = {};
|
|
844
844
|
for(const __rspack_import_key in _label__rspack_import_48)if ([
|
|
845
845
|
"getReferenceChipColors",
|
|
@@ -849,7 +849,7 @@ var __webpack_exports__ = {};
|
|
|
849
849
|
"ReferenceChip"
|
|
850
850
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_label__rspack_import_48[__rspack_import_key];
|
|
851
851
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
852
|
-
var _layout__rspack_import_49 = __webpack_require__("
|
|
852
|
+
var _layout__rspack_import_49 = __webpack_require__("@/components/ui/layout");
|
|
853
853
|
var __rspack_reexport = {};
|
|
854
854
|
for(const __rspack_import_key in _layout__rspack_import_49)if ([
|
|
855
855
|
"getReferenceChipColors",
|
|
@@ -999,7 +999,7 @@ var __webpack_exports__ = {};
|
|
|
999
999
|
"ReferenceChip"
|
|
1000
1000
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_password_input__rspack_import_63[__rspack_import_key];
|
|
1001
1001
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
1002
|
-
var _popover__rspack_import_64 = __webpack_require__("
|
|
1002
|
+
var _popover__rspack_import_64 = __webpack_require__("@/components/ui/popover");
|
|
1003
1003
|
var __rspack_reexport = {};
|
|
1004
1004
|
for(const __rspack_import_key in _popover__rspack_import_64)if ([
|
|
1005
1005
|
"getReferenceChipColors",
|
|
@@ -1079,7 +1079,7 @@ var __webpack_exports__ = {};
|
|
|
1079
1079
|
"ReferenceChip"
|
|
1080
1080
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_radio_group__rspack_import_71[__rspack_import_key];
|
|
1081
1081
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
1082
|
-
var _reference_chip__rspack_import_72 = __webpack_require__("
|
|
1082
|
+
var _reference_chip__rspack_import_72 = __webpack_require__("@/components/ui/reference-chip");
|
|
1083
1083
|
var _reference_chip_colors__rspack_import_73 = __webpack_require__("./reference-chip-colors");
|
|
1084
1084
|
var _resizable__rspack_import_74 = __webpack_require__("./resizable");
|
|
1085
1085
|
var __rspack_reexport = {};
|
|
@@ -1181,7 +1181,7 @@ var __webpack_exports__ = {};
|
|
|
1181
1181
|
"ReferenceChip"
|
|
1182
1182
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_sidebar__rspack_import_83[__rspack_import_key];
|
|
1183
1183
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
1184
|
-
var _skeleton__rspack_import_84 = __webpack_require__("
|
|
1184
|
+
var _skeleton__rspack_import_84 = __webpack_require__("./skeleton");
|
|
1185
1185
|
var __rspack_reexport = {};
|
|
1186
1186
|
for(const __rspack_import_key in _skeleton__rspack_import_84)if ([
|
|
1187
1187
|
"getReferenceChipColors",
|
|
@@ -1221,7 +1221,7 @@ var __webpack_exports__ = {};
|
|
|
1221
1221
|
"ReferenceChip"
|
|
1222
1222
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_sources__rspack_import_87[__rspack_import_key];
|
|
1223
1223
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
1224
|
-
var _spinner__rspack_import_88 = __webpack_require__("
|
|
1224
|
+
var _spinner__rspack_import_88 = __webpack_require__("@/components/ui/spinner");
|
|
1225
1225
|
var __rspack_reexport = {};
|
|
1226
1226
|
for(const __rspack_import_key in _spinner__rspack_import_88)if ([
|
|
1227
1227
|
"getReferenceChipColors",
|
|
@@ -1261,7 +1261,7 @@ var __webpack_exports__ = {};
|
|
|
1261
1261
|
"ReferenceChip"
|
|
1262
1262
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_switch__rspack_import_91[__rspack_import_key];
|
|
1263
1263
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
1264
|
-
var _table__rspack_import_92 = __webpack_require__("
|
|
1264
|
+
var _table__rspack_import_92 = __webpack_require__("./table");
|
|
1265
1265
|
var __rspack_reexport = {};
|
|
1266
1266
|
for(const __rspack_import_key in _table__rspack_import_92)if ([
|
|
1267
1267
|
"getReferenceChipColors",
|
|
@@ -1301,7 +1301,7 @@ var __webpack_exports__ = {};
|
|
|
1301
1301
|
"ReferenceChip"
|
|
1302
1302
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_thinking_indicator__rspack_import_95[__rspack_import_key];
|
|
1303
1303
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
1304
|
-
var _toggle__rspack_import_96 = __webpack_require__("
|
|
1304
|
+
var _toggle__rspack_import_96 = __webpack_require__("@/components/ui/toggle");
|
|
1305
1305
|
var __rspack_reexport = {};
|
|
1306
1306
|
for(const __rspack_import_key in _toggle__rspack_import_96)if ([
|
|
1307
1307
|
"getReferenceChipColors",
|
|
@@ -1331,7 +1331,7 @@ var __webpack_exports__ = {};
|
|
|
1331
1331
|
"ReferenceChip"
|
|
1332
1332
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_tool_call__rspack_import_98[__rspack_import_key];
|
|
1333
1333
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
1334
|
-
var _tooltip__rspack_import_99 = __webpack_require__("
|
|
1334
|
+
var _tooltip__rspack_import_99 = __webpack_require__("@/components/ui/tooltip");
|
|
1335
1335
|
var __rspack_reexport = {};
|
|
1336
1336
|
for(const __rspack_import_key in _tooltip__rspack_import_99)if ([
|
|
1337
1337
|
"getReferenceChipColors",
|
|
@@ -1343,7 +1343,7 @@ var __webpack_exports__ = {};
|
|
|
1343
1343
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
1344
1344
|
var _tree_view__rspack_import_100 = __webpack_require__("./tree-view");
|
|
1345
1345
|
var _tree_view__rspack_import_100_default = /*#__PURE__*/ __webpack_require__.n(_tree_view__rspack_import_100);
|
|
1346
|
-
var _variable_picker__rspack_import_101 = __webpack_require__("
|
|
1346
|
+
var _variable_picker__rspack_import_101 = __webpack_require__("@/components/ui/variable-picker");
|
|
1347
1347
|
var __rspack_reexport = {};
|
|
1348
1348
|
for(const __rspack_import_key in _variable_picker__rspack_import_101)if ([
|
|
1349
1349
|
"getReferenceChipColors",
|
package/dist/index.d.ts
CHANGED
|
@@ -47,7 +47,7 @@ export { Bubble, BubbleContent, BubbleGroup, BubbleReactions, bubbleVariants, }
|
|
|
47
47
|
export type { ButtonProps } from './components/ui/button';
|
|
48
48
|
export { Button, buttonVariants } from './components/ui/button';
|
|
49
49
|
export { ButtonGroup, ButtonGroupSeparator, ButtonGroupText, } from './components/ui/button-group';
|
|
50
|
-
export type { ByoApiType, ByoAuthType, ByoConnection, ByoConnectionForm, ByoConnectionValues, ByoConnectRequest, ByoDialogContext, ByoEditTarget, ByoFailure, ByoFieldOption, ByoFolder, ByoFormField, ByoModelDialogApi, ByoModelDialogLabels, ByoModelDialogProps, ByoModelToEdit, ByoProvider, ByoProviderModel, ByoProviderModels, ByoReplaceableModel, ByoResult, ByoSavedModel, ByoSaveRequest, } from './components/ui/byo-model-dialog';
|
|
50
|
+
export type { ByoApiType, ByoAuthType, ByoConnection, ByoConnectionChange, ByoConnectionForm, ByoConnectionValues, ByoConnectRequest, ByoDialogContext, ByoEditTarget, ByoFailure, ByoFieldOption, ByoFolder, ByoFormField, ByoModelDialogApi, ByoModelDialogLabels, ByoModelDialogProps, ByoModelToEdit, ByoProvider, ByoProviderModel, ByoProviderModels, ByoReplaceableModel, ByoResult, ByoSavedModel, ByoSaveRequest, } from './components/ui/byo-model-dialog';
|
|
51
51
|
export { ByoModelDialog, DEFAULT_BYO_MODEL_DIALOG_LABELS, resolveByoModelDialogLabels, } from './components/ui/byo-model-dialog';
|
|
52
52
|
export { Calendar } from './components/ui/calendar';
|
|
53
53
|
export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, } from './components/ui/card';
|