@uipath/apollo-wind 2.72.2 → 2.73.1
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/alert-dialog.cjs +1 -1
- package/dist/components/ui/alert-dialog.js +1 -1
- package/dist/components/ui/attachment.cjs +40 -8
- package/dist/components/ui/attachment.d.ts +11 -1
- package/dist/components/ui/attachment.js +43 -11
- package/dist/components/ui/bubble.cjs +1 -1
- package/dist/components/ui/bubble.d.ts +6 -0
- package/dist/components/ui/bubble.js +1 -1
- package/dist/components/ui/chat-composer.cjs +8 -2
- package/dist/components/ui/chat-composer.d.ts +6 -0
- package/dist/components/ui/chat-composer.js +9 -3
- package/dist/components/ui/citation.cjs +5 -3
- package/dist/components/ui/citation.d.ts +6 -0
- package/dist/components/ui/citation.js +5 -3
- package/dist/components/ui/code-block.cjs +6 -6
- package/dist/components/ui/code-block.d.ts +6 -0
- package/dist/components/ui/code-block.js +6 -6
- package/dist/components/ui/context-menu.cjs +2 -2
- package/dist/components/ui/context-menu.js +2 -2
- package/dist/components/ui/dialog.cjs +18 -5
- package/dist/components/ui/dialog.d.ts +15 -0
- package/dist/components/ui/dialog.js +16 -6
- package/dist/components/ui/disclosure-tree.cjs +269 -0
- package/dist/components/ui/disclosure-tree.d.ts +45 -0
- package/dist/components/ui/disclosure-tree.js +235 -0
- package/dist/components/ui/dropdown-menu.cjs +2 -2
- package/dist/components/ui/dropdown-menu.js +2 -2
- package/dist/components/ui/dropzone-overlay.cjs +21 -5
- package/dist/components/ui/dropzone-overlay.d.ts +12 -1
- package/dist/components/ui/dropzone-overlay.js +21 -5
- package/dist/components/ui/empty-state.cjs +28 -10
- package/dist/components/ui/empty-state.d.ts +9 -0
- package/dist/components/ui/empty-state.js +30 -12
- package/dist/components/ui/hover-card.cjs +1 -1
- package/dist/components/ui/hover-card.js +1 -1
- package/dist/components/ui/index.cjs +221 -208
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.js +1 -0
- package/dist/components/ui/markdown.cjs +129 -22
- package/dist/components/ui/markdown.d.ts +23 -4
- package/dist/components/ui/markdown.js +129 -22
- package/dist/components/ui/message-actions.cjs +1 -1
- package/dist/components/ui/message-actions.d.ts +3 -0
- package/dist/components/ui/message-actions.js +1 -1
- package/dist/components/ui/message.cjs +4 -4
- package/dist/components/ui/message.d.ts +7 -0
- package/dist/components/ui/message.js +4 -4
- package/dist/components/ui/popover.cjs +1 -1
- package/dist/components/ui/popover.js +1 -1
- package/dist/components/ui/search.cjs +16 -5
- package/dist/components/ui/search.d.ts +9 -0
- package/dist/components/ui/search.js +13 -5
- package/dist/components/ui/select.cjs +1 -1
- package/dist/components/ui/select.js +1 -1
- package/dist/components/ui/sheet.cjs +12 -2
- package/dist/components/ui/sheet.d.ts +7 -0
- package/dist/components/ui/sheet.js +10 -3
- package/dist/components/ui/sources.cjs +1 -1
- package/dist/components/ui/sources.d.ts +6 -0
- package/dist/components/ui/sources.js +1 -1
- package/dist/components/ui/thinking-indicator.cjs +5 -3
- package/dist/components/ui/thinking-indicator.d.ts +6 -0
- package/dist/components/ui/thinking-indicator.js +5 -3
- package/dist/components/ui/tool-call.cjs +10 -7
- package/dist/components/ui/tool-call.d.ts +6 -0
- package/dist/components/ui/tool-call.js +10 -7
- package/dist/components/ui/tooltip.cjs +1 -1
- package/dist/components/ui/tooltip.js +1 -1
- package/dist/index.cjs +14 -1
- package/dist/index.d.ts +10 -6
- package/dist/index.js +5 -4
- package/dist/lib/disclosure-row.cjs +36 -0
- package/dist/lib/disclosure-row.d.ts +1 -0
- package/dist/lib/disclosure-row.js +2 -0
- package/dist/lib/use-ancestor-density.cjs +65 -0
- package/dist/lib/use-ancestor-density.d.ts +8 -0
- package/dist/lib/use-ancestor-density.js +31 -0
- package/dist/styles.css +679 -52
- package/dist/tailwind.utilities.css +173 -0
- package/package.json +1 -1
|
@@ -3,6 +3,7 @@ import { cva } from "class-variance-authority";
|
|
|
3
3
|
import { ChevronDown, ChevronRight, CircleCheck, CircleX, Clock, Loader2 } from "lucide-react";
|
|
4
4
|
import { createContext, forwardRef, useCallback, useContext, useEffect, useLayoutEffect, useMemo, useState } from "react";
|
|
5
5
|
import { cn } from "../../lib/index.js";
|
|
6
|
+
import { disclosureRowClassName } from "../../lib/disclosure-row.js";
|
|
6
7
|
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "./collapsible.js";
|
|
7
8
|
import { JsonTreeView, buildJsonTree, collectContainerPaths } from "./json-tree-view/index.js";
|
|
8
9
|
const DEFAULT_TOOL_CALL_STRINGS = {
|
|
@@ -34,19 +35,21 @@ function mergeStrings(overrides) {
|
|
|
34
35
|
return merged;
|
|
35
36
|
}
|
|
36
37
|
const useIsomorphicLayoutEffect = "u" < typeof window ? useEffect : useLayoutEffect;
|
|
37
|
-
const TOGGLE_CLASSES =
|
|
38
|
+
const TOGGLE_CLASSES = `${disclosureRowClassName} hover:text-foreground`;
|
|
38
39
|
const toolCallVariants = cva('group/tool-call flex w-full min-w-0 flex-col text-muted-foreground', {
|
|
39
40
|
variants: {
|
|
40
41
|
size: {
|
|
41
42
|
sm: 'p-2 text-xs',
|
|
42
|
-
md: 'p-
|
|
43
|
+
md: 'p-(--tool-call-padding,0.75rem) text-(length:--tool-call-font-size,0.875rem) leading-(--tool-call-leading,1.25rem)'
|
|
43
44
|
}
|
|
44
45
|
},
|
|
45
46
|
defaultVariants: {
|
|
46
47
|
size: 'md'
|
|
47
48
|
}
|
|
48
49
|
});
|
|
49
|
-
const
|
|
50
|
+
const COMPACT_TOOL_CALL_CLASSES = 'in-data-[density=compact]:[--tool-call-padding:0.5rem] in-data-[density=compact]:[--tool-call-font-size:0.75rem] in-data-[density=compact]:[--tool-call-leading:1rem] in-data-[density=compact]:[--tool-call-icon-size:1rem] in-data-[density=compact]:[--tool-call-indent:0.5rem] in-data-[density=compact]:[--tool-call-body-gap:0.25rem]';
|
|
51
|
+
const ToolCall = /*#__PURE__*/ forwardRef(({ className, status, size: sizeProp, open, defaultOpen, onOpenChange, strings, jsonTreeStrings, ...props }, ref)=>{
|
|
52
|
+
const size = sizeProp ?? 'md';
|
|
50
53
|
const [contentCount, setContentCount] = useState(0);
|
|
51
54
|
const registerContent = useCallback(()=>{
|
|
52
55
|
setContentCount((count)=>count + 1);
|
|
@@ -79,7 +82,7 @@ const ToolCall = /*#__PURE__*/ forwardRef(({ className, status, size = 'md', ope
|
|
|
79
82
|
"data-size": size,
|
|
80
83
|
className: cn(toolCallVariants({
|
|
81
84
|
size
|
|
82
|
-
}), className),
|
|
85
|
+
}), null == sizeProp && COMPACT_TOOL_CALL_CLASSES, className),
|
|
83
86
|
...props
|
|
84
87
|
})
|
|
85
88
|
})
|
|
@@ -92,7 +95,7 @@ const STATUS_ICONS = {
|
|
|
92
95
|
completed: CircleCheck,
|
|
93
96
|
failed: CircleX
|
|
94
97
|
};
|
|
95
|
-
const toolCallStatusIconVariants = cva('size-
|
|
98
|
+
const toolCallStatusIconVariants = cva('size-(--tool-call-icon-size,1.25rem) shrink-0 group-data-[size=sm]/tool-call:size-4', {
|
|
96
99
|
variants: {
|
|
97
100
|
status: {
|
|
98
101
|
pending: 'text-muted-foreground',
|
|
@@ -144,7 +147,7 @@ const ToolCallHeader = /*#__PURE__*/ forwardRef(({ className, name, duration, ..
|
|
|
144
147
|
})
|
|
145
148
|
]
|
|
146
149
|
}) : /*#__PURE__*/ jsx("div", {
|
|
147
|
-
className: "flex min-w-0 items-center gap-2 p-1",
|
|
150
|
+
className: "flex min-w-0 items-center gap-2 p-1 in-data-[density=compact]:py-0.5",
|
|
148
151
|
children: line
|
|
149
152
|
})
|
|
150
153
|
});
|
|
@@ -158,7 +161,7 @@ const ToolCallContent = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=
|
|
|
158
161
|
return /*#__PURE__*/ jsx(CollapsibleContent, {
|
|
159
162
|
ref: ref,
|
|
160
163
|
"data-slot": "tool-call-content",
|
|
161
|
-
className: cn('mt-
|
|
164
|
+
className: cn('mt-(--tool-call-body-gap,0.5rem) ml-(--tool-call-indent,0.75rem) flex min-w-0 flex-col border-l pl-(--tool-call-indent,0.75rem) group-data-[size=sm]/tool-call:ml-2 group-data-[size=sm]/tool-call:pl-2', className),
|
|
162
165
|
...props
|
|
163
166
|
});
|
|
164
167
|
});
|
|
@@ -65,7 +65,7 @@ const TooltipContent = /*#__PURE__*/ external_react_namespaceObject.forwardRef((
|
|
|
65
65
|
ref: ref,
|
|
66
66
|
"data-slot": "tooltip-content",
|
|
67
67
|
sideOffset: sideOffset,
|
|
68
|
-
className: (0, index_cjs_namespaceObject.cn)('z-50 overflow-hidden rounded-md border border-border bg-accent px-3 py-1.5 text-xs text-accent-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-
|
|
68
|
+
className: (0, index_cjs_namespaceObject.cn)('z-50 overflow-hidden rounded-md border border-border bg-accent px-3 py-1.5 text-xs text-accent-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-tooltip-content-transform-origin)', className),
|
|
69
69
|
...props
|
|
70
70
|
}));
|
|
71
71
|
TooltipContent.displayName = react_tooltip_namespaceObject.Content.displayName;
|
|
@@ -33,7 +33,7 @@ const TooltipContent = /*#__PURE__*/ forwardRef(({ className, sideOffset = 4, ..
|
|
|
33
33
|
ref: ref,
|
|
34
34
|
"data-slot": "tooltip-content",
|
|
35
35
|
sideOffset: sideOffset,
|
|
36
|
-
className: cn('z-50 overflow-hidden rounded-md border border-border bg-accent px-3 py-1.5 text-xs text-accent-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-
|
|
36
|
+
className: cn('z-50 overflow-hidden rounded-md border border-border bg-accent px-3 py-1.5 text-xs text-accent-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-tooltip-content-transform-origin)', className),
|
|
37
37
|
...props
|
|
38
38
|
}));
|
|
39
39
|
TooltipContent.displayName = Content.displayName;
|
package/dist/index.cjs
CHANGED
|
@@ -77,9 +77,10 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
77
77
|
BreadcrumbItem: ()=>breadcrumb_cjs_namespaceObject.BreadcrumbItem,
|
|
78
78
|
SelectSeparator: ()=>select_cjs_namespaceObject.SelectSeparator,
|
|
79
79
|
HoverCard: ()=>hover_card_cjs_namespaceObject.HoverCard,
|
|
80
|
+
DEFAULT_DIALOG_STRINGS: ()=>dialog_cjs_namespaceObject.DEFAULT_DIALOG_STRINGS,
|
|
80
81
|
SelectScrollUpButton: ()=>select_cjs_namespaceObject.SelectScrollUpButton,
|
|
81
|
-
ThinkingIndicator: ()=>thinking_indicator_cjs_namespaceObject.ThinkingIndicator,
|
|
82
82
|
ResizablePanel: ()=>resizable_cjs_namespaceObject.ResizablePanel,
|
|
83
|
+
ThinkingIndicator: ()=>thinking_indicator_cjs_namespaceObject.ThinkingIndicator,
|
|
83
84
|
SheetTitle: ()=>sheet_cjs_namespaceObject.SheetTitle,
|
|
84
85
|
AccordionContent: ()=>accordion_cjs_namespaceObject.AccordionContent,
|
|
85
86
|
buildJsonTree: ()=>json_tree_view_index_cjs_namespaceObject.buildJsonTree,
|
|
@@ -214,6 +215,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
214
215
|
ContextMenuGroup: ()=>context_menu_cjs_namespaceObject.ContextMenuGroup,
|
|
215
216
|
analyticsPlugin: ()=>form_plugins_cjs_namespaceObject.analyticsPlugin,
|
|
216
217
|
DataFetcher: ()=>data_fetcher_cjs_namespaceObject.DataFetcher,
|
|
218
|
+
DisclosureTree: ()=>disclosure_tree_cjs_namespaceObject.DisclosureTree,
|
|
217
219
|
SidebarSeparator: ()=>sidebar_index_cjs_namespaceObject.SidebarSeparator,
|
|
218
220
|
VariableValueControl: ()=>variable_value_control_cjs_namespaceObject.VariableValueControl,
|
|
219
221
|
ButtonGroup: ()=>button_group_cjs_namespaceObject.ButtonGroup,
|
|
@@ -299,6 +301,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
299
301
|
CommandEmpty: ()=>command_cjs_namespaceObject.CommandEmpty,
|
|
300
302
|
SidebarGroupContent: ()=>sidebar_index_cjs_namespaceObject.SidebarGroupContent,
|
|
301
303
|
Skeleton: ()=>skeleton_cjs_namespaceObject.Skeleton,
|
|
304
|
+
DEFAULT_SHEET_STRINGS: ()=>sheet_cjs_namespaceObject.DEFAULT_SHEET_STRINGS,
|
|
302
305
|
auditPlugin: ()=>form_plugins_cjs_namespaceObject.auditPlugin,
|
|
303
306
|
isArrayItemTemplateRoot: ()=>json_tree_view_index_cjs_namespaceObject.isArrayItemTemplateRoot,
|
|
304
307
|
BooleanRadioGroup: ()=>boolean_radio_group_cjs_namespaceObject.BooleanRadioGroup,
|
|
@@ -440,6 +443,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
440
443
|
ChatComposerAttachButton: ()=>chat_composer_cjs_namespaceObject.ChatComposerAttachButton,
|
|
441
444
|
DropdownMenuContent: ()=>dropdown_menu_cjs_namespaceObject.DropdownMenuContent,
|
|
442
445
|
MessageActions: ()=>message_actions_cjs_namespaceObject.MessageActions,
|
|
446
|
+
DEFAULT_SEARCH_STRINGS: ()=>search_cjs_namespaceObject.DEFAULT_SEARCH_STRINGS,
|
|
443
447
|
DateRangePicker: ()=>date_picker_cjs_namespaceObject.DateRangePicker,
|
|
444
448
|
useWatch: ()=>metadata_form_cjs_namespaceObject.useWatch,
|
|
445
449
|
ScrollableTabsList: ()=>tabs_cjs_namespaceObject.ScrollableTabsList,
|
|
@@ -587,6 +591,7 @@ const data_table_cjs_namespaceObject = require("./components/ui/data-table.cjs")
|
|
|
587
591
|
const date_picker_cjs_namespaceObject = require("./components/ui/date-picker.cjs");
|
|
588
592
|
const datetime_picker_cjs_namespaceObject = require("./components/ui/datetime-picker.cjs");
|
|
589
593
|
const dialog_cjs_namespaceObject = require("./components/ui/dialog.cjs");
|
|
594
|
+
const disclosure_tree_cjs_namespaceObject = require("./components/ui/disclosure-tree.cjs");
|
|
590
595
|
const drawer_cjs_namespaceObject = require("./components/ui/drawer.cjs");
|
|
591
596
|
const dropdown_menu_cjs_namespaceObject = require("./components/ui/dropdown-menu.cjs");
|
|
592
597
|
const dropzone_overlay_cjs_namespaceObject = require("./components/ui/dropzone-overlay.cjs");
|
|
@@ -773,6 +778,7 @@ exports.DEFAULT_BOOLEAN_RADIO_GROUP_STRINGS = __webpack_exports__.DEFAULT_BOOLEA
|
|
|
773
778
|
exports.DEFAULT_CHAT_COMPOSER_STRINGS = __webpack_exports__.DEFAULT_CHAT_COMPOSER_STRINGS;
|
|
774
779
|
exports.DEFAULT_CITATION_STRINGS = __webpack_exports__.DEFAULT_CITATION_STRINGS;
|
|
775
780
|
exports.DEFAULT_CODE_BLOCK_STRINGS = __webpack_exports__.DEFAULT_CODE_BLOCK_STRINGS;
|
|
781
|
+
exports.DEFAULT_DIALOG_STRINGS = __webpack_exports__.DEFAULT_DIALOG_STRINGS;
|
|
776
782
|
exports.DEFAULT_DROPZONE_OVERLAY_STRINGS = __webpack_exports__.DEFAULT_DROPZONE_OVERLAY_STRINGS;
|
|
777
783
|
exports.DEFAULT_INSERT_VARIABLE_ACTION_STRINGS = __webpack_exports__.DEFAULT_INSERT_VARIABLE_ACTION_STRINGS;
|
|
778
784
|
exports.DEFAULT_JSON_TREE_VIEW_STRINGS = __webpack_exports__.DEFAULT_JSON_TREE_VIEW_STRINGS;
|
|
@@ -790,6 +796,8 @@ exports.DEFAULT_MULTI_SELECT_STRINGS = __webpack_exports__.DEFAULT_MULTI_SELECT_
|
|
|
790
796
|
exports.DEFAULT_PROMPT_EDITOR_STRINGS = __webpack_exports__.DEFAULT_PROMPT_EDITOR_STRINGS;
|
|
791
797
|
exports.DEFAULT_PROMPT_SUGGESTIONS_STRINGS = __webpack_exports__.DEFAULT_PROMPT_SUGGESTIONS_STRINGS;
|
|
792
798
|
exports.DEFAULT_QUICK_FORM_FIELD_STRINGS = __webpack_exports__.DEFAULT_QUICK_FORM_FIELD_STRINGS;
|
|
799
|
+
exports.DEFAULT_SEARCH_STRINGS = __webpack_exports__.DEFAULT_SEARCH_STRINGS;
|
|
800
|
+
exports.DEFAULT_SHEET_STRINGS = __webpack_exports__.DEFAULT_SHEET_STRINGS;
|
|
793
801
|
exports.DEFAULT_SOURCES_STRINGS = __webpack_exports__.DEFAULT_SOURCES_STRINGS;
|
|
794
802
|
exports.DEFAULT_THINKING_INDICATOR_STRINGS = __webpack_exports__.DEFAULT_THINKING_INDICATOR_STRINGS;
|
|
795
803
|
exports.DEFAULT_TOOL_CALL_STRINGS = __webpack_exports__.DEFAULT_TOOL_CALL_STRINGS;
|
|
@@ -813,6 +821,7 @@ exports.DialogOverlay = __webpack_exports__.DialogOverlay;
|
|
|
813
821
|
exports.DialogPortal = __webpack_exports__.DialogPortal;
|
|
814
822
|
exports.DialogTitle = __webpack_exports__.DialogTitle;
|
|
815
823
|
exports.DialogTrigger = __webpack_exports__.DialogTrigger;
|
|
824
|
+
exports.DisclosureTree = __webpack_exports__.DisclosureTree;
|
|
816
825
|
exports.Drawer = __webpack_exports__.Drawer;
|
|
817
826
|
exports.DrawerClose = __webpack_exports__.DrawerClose;
|
|
818
827
|
exports.DrawerContent = __webpack_exports__.DrawerContent;
|
|
@@ -1285,6 +1294,7 @@ for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
|
1285
1294
|
"DEFAULT_CHAT_COMPOSER_STRINGS",
|
|
1286
1295
|
"DEFAULT_CITATION_STRINGS",
|
|
1287
1296
|
"DEFAULT_CODE_BLOCK_STRINGS",
|
|
1297
|
+
"DEFAULT_DIALOG_STRINGS",
|
|
1288
1298
|
"DEFAULT_DROPZONE_OVERLAY_STRINGS",
|
|
1289
1299
|
"DEFAULT_INSERT_VARIABLE_ACTION_STRINGS",
|
|
1290
1300
|
"DEFAULT_JSON_TREE_VIEW_STRINGS",
|
|
@@ -1302,6 +1312,8 @@ for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
|
1302
1312
|
"DEFAULT_PROMPT_EDITOR_STRINGS",
|
|
1303
1313
|
"DEFAULT_PROMPT_SUGGESTIONS_STRINGS",
|
|
1304
1314
|
"DEFAULT_QUICK_FORM_FIELD_STRINGS",
|
|
1315
|
+
"DEFAULT_SEARCH_STRINGS",
|
|
1316
|
+
"DEFAULT_SHEET_STRINGS",
|
|
1305
1317
|
"DEFAULT_SOURCES_STRINGS",
|
|
1306
1318
|
"DEFAULT_THINKING_INDICATOR_STRINGS",
|
|
1307
1319
|
"DEFAULT_TOOL_CALL_STRINGS",
|
|
@@ -1325,6 +1337,7 @@ for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
|
1325
1337
|
"DialogPortal",
|
|
1326
1338
|
"DialogTitle",
|
|
1327
1339
|
"DialogTrigger",
|
|
1340
|
+
"DisclosureTree",
|
|
1328
1341
|
"Drawer",
|
|
1329
1342
|
"DrawerClose",
|
|
1330
1343
|
"DrawerContent",
|
package/dist/index.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, } from '.
|
|
|
25
25
|
export { Alert, AlertDescription, AlertTitle } from './components/ui/alert';
|
|
26
26
|
export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, } from './components/ui/alert-dialog';
|
|
27
27
|
export { AspectRatio } from './components/ui/aspect-ratio';
|
|
28
|
-
export type { AttachmentActionProps, AttachmentMediaProps, AttachmentProps, AttachmentState, AttachmentTriggerProps, } from './components/ui/attachment';
|
|
28
|
+
export type { AttachmentActionProps, AttachmentMediaProps, AttachmentProps, AttachmentState, AttachmentTitleProps, AttachmentTriggerProps, } from './components/ui/attachment';
|
|
29
29
|
export { Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentGroup, AttachmentMedia, AttachmentTitle, AttachmentTrigger, attachmentVariants, } from './components/ui/attachment';
|
|
30
30
|
export { Avatar, AvatarFallback, AvatarImage } from './components/ui/avatar';
|
|
31
31
|
export type { BadgeProps } from './components/ui/badge';
|
|
@@ -63,7 +63,10 @@ export type { DatePickerProps, DateRangePickerProps } from './components/ui/date
|
|
|
63
63
|
export { DatePicker, DateRangePicker } from './components/ui/date-picker';
|
|
64
64
|
export type { DateTimePickerProps } from './components/ui/datetime-picker';
|
|
65
65
|
export { DateTimePicker } from './components/ui/datetime-picker';
|
|
66
|
-
export {
|
|
66
|
+
export type { DialogStrings } from './components/ui/dialog';
|
|
67
|
+
export { DEFAULT_DIALOG_STRINGS, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Modal, ModalClose, ModalContent, ModalDescription, ModalFooter, ModalHeader, ModalOverlay, ModalPortal, ModalTitle, ModalTrigger, } from './components/ui/dialog';
|
|
68
|
+
export type { DisclosureTreeItem, DisclosureTreeProps } from './components/ui/disclosure-tree';
|
|
69
|
+
export { DisclosureTree } from './components/ui/disclosure-tree';
|
|
67
70
|
export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, } from './components/ui/drawer';
|
|
68
71
|
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, } from './components/ui/dropdown-menu';
|
|
69
72
|
export type { DropzoneOverlayProps, DropzoneOverlayStrings, } from './components/ui/dropzone-overlay';
|
|
@@ -107,7 +110,7 @@ export type { LoadingDotsProps, LoadingDotsStrings } from './components/ui/loadi
|
|
|
107
110
|
export { DEFAULT_LOADING_DOTS_STRINGS, LoadingDots, loadingDotsVariants, } from './components/ui/loading-dots';
|
|
108
111
|
export type { LockableFieldType, LockableValueFieldMode, LockableValueFieldMoreActions, LockableValueFieldOption, LockableValueFieldProps, LockableValueFieldStrings, } from './components/ui/lockable-value-field';
|
|
109
112
|
export { LockableValueField } from './components/ui/lockable-value-field';
|
|
110
|
-
export type { MarkdownCodeBlock, MarkdownImagePolicy, MarkdownProps, MarkdownStrings, } from './components/ui/markdown';
|
|
113
|
+
export type { MarkdownCodeBlock, MarkdownImagePolicy, MarkdownKatexOptions, MarkdownProps, MarkdownStrings, } from './components/ui/markdown';
|
|
111
114
|
export { DEFAULT_MARKDOWN_STRINGS, Markdown } from './components/ui/markdown';
|
|
112
115
|
export type { MarkerProps } from './components/ui/marker';
|
|
113
116
|
export { Marker, MarkerContent, MarkerIcon, markerVariants } from './components/ui/marker';
|
|
@@ -141,12 +144,13 @@ export { ReferenceChip, type ReferenceChipProps } from './components/ui/referenc
|
|
|
141
144
|
export { getReferenceChipColors } from './components/ui/reference-chip-colors';
|
|
142
145
|
export { ResizableHandle, ResizablePanel, ResizablePanelGroup, } from './components/ui/resizable';
|
|
143
146
|
export { ScrollArea, ScrollBar } from './components/ui/scroll-area';
|
|
144
|
-
export type { SearchProps, SearchWithSuggestionsProps, } from './components/ui/search';
|
|
145
|
-
export { Search, SearchWithSuggestions } from './components/ui/search';
|
|
147
|
+
export type { SearchProps, SearchStrings, SearchWithSuggestionsProps, } from './components/ui/search';
|
|
148
|
+
export { DEFAULT_SEARCH_STRINGS, Search, SearchWithSuggestions } from './components/ui/search';
|
|
146
149
|
export type { SelectTriggerProps } from './components/ui/select';
|
|
147
150
|
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, } from './components/ui/select';
|
|
148
151
|
export { Separator } from './components/ui/separator';
|
|
149
|
-
export {
|
|
152
|
+
export type { SheetStrings } from './components/ui/sheet';
|
|
153
|
+
export { DEFAULT_SHEET_STRINGS, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, } from './components/ui/sheet';
|
|
150
154
|
export type { SidebarMenuButtonProps, SidebarMenuSubButtonProps, SidebarProps, SidebarProviderProps, } from './components/ui/sidebar';
|
|
151
155
|
export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, sidebarMenuButtonVariants, useSidebar, } from './components/ui/sidebar';
|
|
152
156
|
export { Skeleton } from './components/ui/skeleton';
|
package/dist/index.js
CHANGED
|
@@ -39,7 +39,8 @@ import { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGr
|
|
|
39
39
|
import { DataTable, DataTableColumnHeader, DataTableSelectColumn } from "./components/ui/data-table.js";
|
|
40
40
|
import { DatePicker, DateRangePicker } from "./components/ui/date-picker.js";
|
|
41
41
|
import { DateTimePicker } from "./components/ui/datetime-picker.js";
|
|
42
|
-
import { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Modal, ModalClose, ModalContent, ModalDescription, ModalFooter, ModalHeader, ModalOverlay, ModalPortal, ModalTitle, ModalTrigger } from "./components/ui/dialog.js";
|
|
42
|
+
import { DEFAULT_DIALOG_STRINGS, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Modal, ModalClose, ModalContent, ModalDescription, ModalFooter, ModalHeader, ModalOverlay, ModalPortal, ModalTitle, ModalTrigger } from "./components/ui/dialog.js";
|
|
43
|
+
import { DisclosureTree } from "./components/ui/disclosure-tree.js";
|
|
43
44
|
import { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger } from "./components/ui/drawer.js";
|
|
44
45
|
import { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from "./components/ui/dropdown-menu.js";
|
|
45
46
|
import { DEFAULT_DROPZONE_OVERLAY_STRINGS, DropzoneOverlay } from "./components/ui/dropzone-overlay.js";
|
|
@@ -84,10 +85,10 @@ import { ReferenceChip } from "./components/ui/reference-chip.js";
|
|
|
84
85
|
import { getReferenceChipColors } from "./components/ui/reference-chip-colors.js";
|
|
85
86
|
import { ResizableHandle, ResizablePanel, ResizablePanelGroup } from "./components/ui/resizable.js";
|
|
86
87
|
import { ScrollArea, ScrollBar } from "./components/ui/scroll-area.js";
|
|
87
|
-
import { Search, SearchWithSuggestions } from "./components/ui/search.js";
|
|
88
|
+
import { DEFAULT_SEARCH_STRINGS, Search, SearchWithSuggestions } from "./components/ui/search.js";
|
|
88
89
|
import { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue } from "./components/ui/select.js";
|
|
89
90
|
import { Separator } from "./components/ui/separator.js";
|
|
90
|
-
import { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger } from "./components/ui/sheet.js";
|
|
91
|
+
import { DEFAULT_SHEET_STRINGS, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger } from "./components/ui/sheet.js";
|
|
91
92
|
import { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, sidebarMenuButtonVariants, useSidebar } from "./components/ui/sidebar/index.js";
|
|
92
93
|
import { Skeleton } from "./components/ui/skeleton.js";
|
|
93
94
|
import { Slider } from "./components/ui/slider.js";
|
|
@@ -109,4 +110,4 @@ import tree_view, { TreeView } from "./components/ui/tree-view.js";
|
|
|
109
110
|
import { VariablePicker, VariablePickerContent } from "./components/ui/variable-picker/index.js";
|
|
110
111
|
import { VariableValueControl } from "./components/ui/variable-value-control.js";
|
|
111
112
|
import { cn } from "./lib/utils.js";
|
|
112
|
-
export { $insertTokenAtCursor, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AiAssistAction, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentGroup, AttachmentMedia, AttachmentTitle, AttachmentTrigger, Avatar, AvatarFallback, AvatarImage, BUILTIN_VALUE_MODES, Badge, BooleanRadioGroup, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Bubble, BubbleContent, BubbleGroup, BubbleReactions, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, ChatComposer, ChatComposerAttachButton, ChatComposerAttachments, ChatComposerError, ChatComposerFooter, ChatComposerInputGroup, ChatComposerSubmit, ChatComposerTextarea, ChatComposerToolbar, ChatHero, ChatHeroDescription, ChatHeroHeader, ChatHeroLogo, ChatHeroTitle, Checkbox, Citation, CodeBlock, CodeBlockHeader, 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_BOOLEAN_RADIO_GROUP_STRINGS, DEFAULT_CHAT_COMPOSER_STRINGS, DEFAULT_CITATION_STRINGS, DEFAULT_CODE_BLOCK_STRINGS, DEFAULT_DROPZONE_OVERLAY_STRINGS, DEFAULT_INSERT_VARIABLE_ACTION_STRINGS, DEFAULT_JSON_TREE_VIEW_STRINGS, DEFAULT_LOADING_DOTS_STRINGS, DEFAULT_MARKDOWN_STRINGS, DEFAULT_MESSAGE_ACTIONS_OVERFLOW_STRINGS, DEFAULT_MESSAGE_ACTIONS_STRINGS, DEFAULT_MESSAGE_ACTION_COPY_STRINGS, DEFAULT_MESSAGE_ACTION_FEEDBACK_STRINGS, DEFAULT_MESSAGE_SCROLLER_BUTTON_STRINGS, DEFAULT_MESSAGE_SCROLLER_VIEWPORT_STRINGS, DEFAULT_METADATA_FORM_STRINGS, DEFAULT_MODEL_PICKER_LABELS, DEFAULT_MULTI_SELECT_STRINGS, DEFAULT_PROMPT_EDITOR_STRINGS, DEFAULT_PROMPT_SUGGESTIONS_STRINGS, DEFAULT_QUICK_FORM_FIELD_STRINGS, DEFAULT_SOURCES_STRINGS, DEFAULT_THINKING_INDICATOR_STRINGS, DEFAULT_TOOL_CALL_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, DropzoneOverlay, EditableCell, EmptyState, ExpressionBuilder, FIELD_CONTROL_GEOMETRY, FIELD_TYPE_META, FIELD_TYPE_ORDER, FetchAdapter, FieldControl, FieldMenu, tree_view as FileTreeView, FileUpload, FolderPicker, FolderPickerContent, 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, JsonContainerEditor, JsonLeafValueEditor, JsonMultilineLeafEditor, JsonTreeToolbar, JsonTreeView, JsonTreeViewProvider, JsonTypeBadge, Label, LiveRegion, LoadingDots, LockableValueField, MODEL_BADGES, Markdown, Marker, MarkerContent, MarkerIcon, Message, MessageAction, MessageActionCopy, MessageActionFeedback, MessageActions, MessageActionsOverflow, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader, MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerProvider, MessageScrollerViewport, MetadataForm, Modal, ModalClose, ModalContent, ModalDescription, ModalFooter, ModalHeader, ModalOverlay, ModalPortal, ModalTitle, ModalTrigger, ModeAwareField, ModelOptionRow, ModelPicker, ModelTagChip, MultiSelect, OutputTokenNode, PROMPT_EDITOR_RICH_TRANSFORMERS, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PanelTabs, PanelTabsContent, PanelTabsList, PanelTabsStrip, PanelTabsTrigger, PickerPopup, PickerSearchInput, PickerTrigger, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PortalContainerProvider, Progress, PromptEditor, PromptSuggestions, PromptValueControl, QuickFormField, RadioGroup, RadioGroupItem, ReferenceChip, 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, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, SourceItem, Sources, SourcesList, Spinner, StateTokenNode, StatsCard, Stepper, StringListField, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ThinkingIndicator, Toaster, Toggle, ToggleGroup, ToggleGroupItem, TokenPill, TokenPillWithTooltip, ToolCall, ToolCallContent, ToolCallError, ToolCallHeader, ToolCallInput, ToolCallOutput, ToolCallSection, Tooltip, TooltipContent, TooltipPortal, TooltipProvider, TooltipTrigger, TreeView, VALUE_MODE_OPAQUE, VARIABLE_DRAG_MIME, VARIABLE_PATH_REGEX, ValueModeIndicator, ValueModeSwitchDialog, VariablePicker, VariablePickerContent, VariableValueControl, VirtualOptionList, WORD_JOINER, analyticsPlugin, appendPathSegment, attachmentVariants, auditPlugin, autoSavePlugin, badgeVariants, bubbleVariants, buildJsonTree, builtInValueModes, buttonVariants, chatComposerErrorVariants, chatComposerVariants, chatHeroDescriptionVariants, chatHeroTitleVariants, chatHeroVariants, citationVariants, cn, collectContainerPaths, copyTextToClipboard, createAiAssistAction, createClearAction, createEditableColumn, createInputTokenNode, createInsertVariableAction, createOutputTokenNode, createResourceTokenNode, createStateTokenNode, createTokenNodeForOption, defaultCostTier, defaultRowActions, deriveModelTags, envelopeCodec, filterModels, flattenJsonTree, formatContextWindow, formatFileSize, formatLeafValue, formatTemplate, formattingPlugin, getAllPromptTokenNodes, getEditorTokens, getPromptEditorTokenColors, getPromptEditorTokenTypeLabel, getReferenceChipColors, getSubstitutionTarget, getValueAtPath, groupModels, hasMinMaxStep, hasOptions, inferTokenTypeFromPath, inferValueType, inputGroupVariants, isArrayItemTemplateRoot, isCustomField, isEmptyModeValue, isFileField, isFileTypeAccepted, isJsonObject, isPathCollapsed, isPromptTokenNode, isTextGenerationModel, isValueModeEnvelope, keepFolderSearchOnEscape, literalValues, loadingDotsVariants, markerVariants, messageActionsVariants, normalizeRichTextTokens, normalizeVariablePath, optionDomId, promptSuggestionVariants, promptSuggestionsListVariants, removeValueAtPath, resolveHomeGeography, resolveLabels, resolveVariables, schemaDisplayType, setEditorTokens, setValueAtPath, sidebarMenuButtonVariants, spinnerVariants, thinkingIndicatorVariants, toast, toggleVariants, toolCallVariants, useChatComposer, useInputGroup, useJsonTreeViewStrings, useMessageScroller, useMessageScrollerScrollable, useMessageScrollerVisibility, useModelPickerState, useSidebar, useWatch, validateFiles, validationPlugin, workflowPlugin };
|
|
113
|
+
export { $insertTokenAtCursor, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AiAssistAction, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentGroup, AttachmentMedia, AttachmentTitle, AttachmentTrigger, Avatar, AvatarFallback, AvatarImage, BUILTIN_VALUE_MODES, Badge, BooleanRadioGroup, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Bubble, BubbleContent, BubbleGroup, BubbleReactions, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, ChatComposer, ChatComposerAttachButton, ChatComposerAttachments, ChatComposerError, ChatComposerFooter, ChatComposerInputGroup, ChatComposerSubmit, ChatComposerTextarea, ChatComposerToolbar, ChatHero, ChatHeroDescription, ChatHeroHeader, ChatHeroLogo, ChatHeroTitle, Checkbox, Citation, CodeBlock, CodeBlockHeader, 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_BOOLEAN_RADIO_GROUP_STRINGS, DEFAULT_CHAT_COMPOSER_STRINGS, DEFAULT_CITATION_STRINGS, DEFAULT_CODE_BLOCK_STRINGS, DEFAULT_DIALOG_STRINGS, DEFAULT_DROPZONE_OVERLAY_STRINGS, DEFAULT_INSERT_VARIABLE_ACTION_STRINGS, DEFAULT_JSON_TREE_VIEW_STRINGS, DEFAULT_LOADING_DOTS_STRINGS, DEFAULT_MARKDOWN_STRINGS, DEFAULT_MESSAGE_ACTIONS_OVERFLOW_STRINGS, DEFAULT_MESSAGE_ACTIONS_STRINGS, DEFAULT_MESSAGE_ACTION_COPY_STRINGS, DEFAULT_MESSAGE_ACTION_FEEDBACK_STRINGS, DEFAULT_MESSAGE_SCROLLER_BUTTON_STRINGS, DEFAULT_MESSAGE_SCROLLER_VIEWPORT_STRINGS, DEFAULT_METADATA_FORM_STRINGS, DEFAULT_MODEL_PICKER_LABELS, DEFAULT_MULTI_SELECT_STRINGS, DEFAULT_PROMPT_EDITOR_STRINGS, DEFAULT_PROMPT_SUGGESTIONS_STRINGS, DEFAULT_QUICK_FORM_FIELD_STRINGS, DEFAULT_SEARCH_STRINGS, DEFAULT_SHEET_STRINGS, DEFAULT_SOURCES_STRINGS, DEFAULT_THINKING_INDICATOR_STRINGS, DEFAULT_TOOL_CALL_STRINGS, DEFAULT_VALUE_MODE_STRINGS, DataFetcher, DataSourceBuilder, DataTable, DataTableColumnHeader, DataTableSelectColumn, DataTransformers, DatePicker, DateRangePicker, DateTimePicker, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DisclosureTree, 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, DropzoneOverlay, EditableCell, EmptyState, ExpressionBuilder, FIELD_CONTROL_GEOMETRY, FIELD_TYPE_META, FIELD_TYPE_ORDER, FetchAdapter, FieldControl, FieldMenu, tree_view as FileTreeView, FileUpload, FolderPicker, FolderPickerContent, 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, JsonContainerEditor, JsonLeafValueEditor, JsonMultilineLeafEditor, JsonTreeToolbar, JsonTreeView, JsonTreeViewProvider, JsonTypeBadge, Label, LiveRegion, LoadingDots, LockableValueField, MODEL_BADGES, Markdown, Marker, MarkerContent, MarkerIcon, Message, MessageAction, MessageActionCopy, MessageActionFeedback, MessageActions, MessageActionsOverflow, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader, MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerProvider, MessageScrollerViewport, MetadataForm, Modal, ModalClose, ModalContent, ModalDescription, ModalFooter, ModalHeader, ModalOverlay, ModalPortal, ModalTitle, ModalTrigger, ModeAwareField, ModelOptionRow, ModelPicker, ModelTagChip, MultiSelect, OutputTokenNode, PROMPT_EDITOR_RICH_TRANSFORMERS, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PanelTabs, PanelTabsContent, PanelTabsList, PanelTabsStrip, PanelTabsTrigger, PickerPopup, PickerSearchInput, PickerTrigger, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PortalContainerProvider, Progress, PromptEditor, PromptSuggestions, PromptValueControl, QuickFormField, RadioGroup, RadioGroupItem, ReferenceChip, 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, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, SourceItem, Sources, SourcesList, Spinner, StateTokenNode, StatsCard, Stepper, StringListField, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ThinkingIndicator, Toaster, Toggle, ToggleGroup, ToggleGroupItem, TokenPill, TokenPillWithTooltip, ToolCall, ToolCallContent, ToolCallError, ToolCallHeader, ToolCallInput, ToolCallOutput, ToolCallSection, Tooltip, TooltipContent, TooltipPortal, TooltipProvider, TooltipTrigger, TreeView, VALUE_MODE_OPAQUE, VARIABLE_DRAG_MIME, VARIABLE_PATH_REGEX, ValueModeIndicator, ValueModeSwitchDialog, VariablePicker, VariablePickerContent, VariableValueControl, VirtualOptionList, WORD_JOINER, analyticsPlugin, appendPathSegment, attachmentVariants, auditPlugin, autoSavePlugin, badgeVariants, bubbleVariants, buildJsonTree, builtInValueModes, buttonVariants, chatComposerErrorVariants, chatComposerVariants, chatHeroDescriptionVariants, chatHeroTitleVariants, chatHeroVariants, citationVariants, cn, collectContainerPaths, copyTextToClipboard, createAiAssistAction, createClearAction, createEditableColumn, createInputTokenNode, createInsertVariableAction, createOutputTokenNode, createResourceTokenNode, createStateTokenNode, createTokenNodeForOption, defaultCostTier, defaultRowActions, deriveModelTags, envelopeCodec, filterModels, flattenJsonTree, formatContextWindow, formatFileSize, formatLeafValue, formatTemplate, formattingPlugin, getAllPromptTokenNodes, getEditorTokens, getPromptEditorTokenColors, getPromptEditorTokenTypeLabel, getReferenceChipColors, getSubstitutionTarget, getValueAtPath, groupModels, hasMinMaxStep, hasOptions, inferTokenTypeFromPath, inferValueType, inputGroupVariants, isArrayItemTemplateRoot, isCustomField, isEmptyModeValue, isFileField, isFileTypeAccepted, isJsonObject, isPathCollapsed, isPromptTokenNode, isTextGenerationModel, isValueModeEnvelope, keepFolderSearchOnEscape, literalValues, loadingDotsVariants, markerVariants, messageActionsVariants, normalizeRichTextTokens, normalizeVariablePath, optionDomId, promptSuggestionVariants, promptSuggestionsListVariants, removeValueAtPath, resolveHomeGeography, resolveLabels, resolveVariables, schemaDisplayType, setEditorTokens, setValueAtPath, sidebarMenuButtonVariants, spinnerVariants, thinkingIndicatorVariants, toast, toggleVariants, toolCallVariants, useChatComposer, useInputGroup, useJsonTreeViewStrings, useMessageScroller, useMessageScrollerScrollable, useMessageScrollerVisibility, useModelPickerState, useSidebar, useWatch, validateFiles, validationPlugin, workflowPlugin };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
5
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: definition[key]
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
})();
|
|
11
|
+
(()=>{
|
|
12
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13
|
+
})();
|
|
14
|
+
(()=>{
|
|
15
|
+
__webpack_require__.r = (exports1)=>{
|
|
16
|
+
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
+
value: 'Module'
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
+
value: true
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
})();
|
|
24
|
+
var __webpack_exports__ = {};
|
|
25
|
+
__webpack_require__.r(__webpack_exports__);
|
|
26
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
+
disclosureRowClassName: ()=>disclosureRowClassName
|
|
28
|
+
});
|
|
29
|
+
const disclosureRowClassName = 'flex w-full min-w-0 items-center gap-2 rounded p-1 text-left transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none in-data-[density=compact]:py-0.5';
|
|
30
|
+
exports.disclosureRowClassName = __webpack_exports__.disclosureRowClassName;
|
|
31
|
+
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
32
|
+
"disclosureRowClassName"
|
|
33
|
+
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
34
|
+
Object.defineProperty(exports, '__esModule', {
|
|
35
|
+
value: true
|
|
36
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const disclosureRowClassName = "flex w-full min-w-0 items-center gap-2 rounded p-1 text-left transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none in-data-[density=compact]:py-0.5";
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const disclosureRowClassName = 'flex w-full min-w-0 items-center gap-2 rounded p-1 text-left transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none in-data-[density=compact]:py-0.5';
|
|
2
|
+
export { disclosureRowClassName };
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
5
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: definition[key]
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
})();
|
|
11
|
+
(()=>{
|
|
12
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13
|
+
})();
|
|
14
|
+
(()=>{
|
|
15
|
+
__webpack_require__.r = (exports1)=>{
|
|
16
|
+
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
+
value: 'Module'
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
+
value: true
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
})();
|
|
24
|
+
var __webpack_exports__ = {};
|
|
25
|
+
__webpack_require__.r(__webpack_exports__);
|
|
26
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
+
useAncestorDensity: ()=>useAncestorDensity
|
|
28
|
+
});
|
|
29
|
+
const external_react_namespaceObject = require("react");
|
|
30
|
+
const useIsomorphicLayoutEffect = "u" < typeof window ? external_react_namespaceObject.useEffect : external_react_namespaceObject.useLayoutEffect;
|
|
31
|
+
function useAncestorDensity(node, enabled) {
|
|
32
|
+
const [density, setDensity] = external_react_namespaceObject.useState(void 0);
|
|
33
|
+
const watched = external_react_namespaceObject.useRef(null);
|
|
34
|
+
useIsomorphicLayoutEffect(()=>{
|
|
35
|
+
const ancestor = enabled && node.current?.parentElement?.closest('[data-density="compact"]') || null;
|
|
36
|
+
setDensity(ancestor ? 'compact' : void 0);
|
|
37
|
+
if (watched.current?.ancestor === ancestor) return;
|
|
38
|
+
watched.current?.observer?.disconnect();
|
|
39
|
+
watched.current = null;
|
|
40
|
+
if (!ancestor) return;
|
|
41
|
+
const observer = "u" < typeof MutationObserver ? void 0 : new MutationObserver(()=>setDensity('compact' === ancestor.getAttribute('data-density') ? 'compact' : void 0));
|
|
42
|
+
observer?.observe(ancestor, {
|
|
43
|
+
attributes: true,
|
|
44
|
+
attributeFilter: [
|
|
45
|
+
'data-density'
|
|
46
|
+
]
|
|
47
|
+
});
|
|
48
|
+
watched.current = {
|
|
49
|
+
ancestor,
|
|
50
|
+
observer
|
|
51
|
+
};
|
|
52
|
+
});
|
|
53
|
+
external_react_namespaceObject.useEffect(()=>()=>{
|
|
54
|
+
watched.current?.observer?.disconnect();
|
|
55
|
+
watched.current = null;
|
|
56
|
+
}, []);
|
|
57
|
+
return density;
|
|
58
|
+
}
|
|
59
|
+
exports.useAncestorDensity = __webpack_exports__.useAncestorDensity;
|
|
60
|
+
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
61
|
+
"useAncestorDensity"
|
|
62
|
+
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
63
|
+
Object.defineProperty(exports, '__esModule', {
|
|
64
|
+
value: true
|
|
65
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* `compact` while any ancestor has `data-density="compact"`, as the `in-data-[density=compact]:`
|
|
4
|
+
* variant the chat primitives use in CSS. For the few that must change markup or props, not just
|
|
5
|
+
* classes (ChatComposer, EmptyState). That ancestor's attribute is watched; an ancestor that only
|
|
6
|
+
* gains it later is picked up on the component's next render. Off when `enabled` is false.
|
|
7
|
+
*/
|
|
8
|
+
export declare function useAncestorDensity(node: React.RefObject<HTMLElement | null>, enabled: boolean): "compact" | undefined;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { useEffect, useLayoutEffect, useRef, useState } from "react";
|
|
2
|
+
const useIsomorphicLayoutEffect = "u" < typeof window ? useEffect : useLayoutEffect;
|
|
3
|
+
function useAncestorDensity(node, enabled) {
|
|
4
|
+
const [density, setDensity] = useState(void 0);
|
|
5
|
+
const watched = useRef(null);
|
|
6
|
+
useIsomorphicLayoutEffect(()=>{
|
|
7
|
+
const ancestor = enabled && node.current?.parentElement?.closest('[data-density="compact"]') || null;
|
|
8
|
+
setDensity(ancestor ? 'compact' : void 0);
|
|
9
|
+
if (watched.current?.ancestor === ancestor) return;
|
|
10
|
+
watched.current?.observer?.disconnect();
|
|
11
|
+
watched.current = null;
|
|
12
|
+
if (!ancestor) return;
|
|
13
|
+
const observer = "u" < typeof MutationObserver ? void 0 : new MutationObserver(()=>setDensity('compact' === ancestor.getAttribute('data-density') ? 'compact' : void 0));
|
|
14
|
+
observer?.observe(ancestor, {
|
|
15
|
+
attributes: true,
|
|
16
|
+
attributeFilter: [
|
|
17
|
+
'data-density'
|
|
18
|
+
]
|
|
19
|
+
});
|
|
20
|
+
watched.current = {
|
|
21
|
+
ancestor,
|
|
22
|
+
observer
|
|
23
|
+
};
|
|
24
|
+
});
|
|
25
|
+
useEffect(()=>()=>{
|
|
26
|
+
watched.current?.observer?.disconnect();
|
|
27
|
+
watched.current = null;
|
|
28
|
+
}, []);
|
|
29
|
+
return density;
|
|
30
|
+
}
|
|
31
|
+
export { useAncestorDensity };
|