@hxdhxd/harmony-flow-ui 0.2.0 → 0.4.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/README.md +43 -5
- package/dist/index.cjs +2022 -1297
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +786 -155
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +115 -12
- package/dist/index.d.ts +115 -12
- package/dist/index.js +2003 -1285
- package/dist/index.js.map +1 -1
- package/dist/monaco-assets/LICENSE.monaco.txt +21 -0
- package/dist/monaco-assets/ThirdPartyNotices.txt +448 -0
- package/dist/monaco-assets/chunks/chunk-2KWDR4W3.js +1 -0
- package/dist/monaco-assets/chunks/chunk-2KWDR4W3.js.gz +0 -0
- package/dist/monaco-assets/chunks/chunk-6CWAYXCI.js +870 -0
- package/dist/monaco-assets/chunks/chunk-6CWAYXCI.js.gz +0 -0
- package/dist/monaco-assets/chunks/chunk-AD5KIREA.js +61 -0
- package/dist/monaco-assets/chunks/chunk-AD5KIREA.js.gz +0 -0
- package/dist/monaco-assets/chunks/chunk-NYAGVHXV.js +1 -0
- package/dist/monaco-assets/chunks/chunk-NYAGVHXV.js.gz +0 -0
- package/dist/monaco-assets/chunks/javascript-Q5O4BLC5.css +1 -0
- package/dist/monaco-assets/chunks/javascript-Q5O4BLC5.css.gz +0 -0
- package/dist/monaco-assets/chunks/javascript-R6AQIXSX.js +1 -0
- package/dist/monaco-assets/chunks/javascript-R6AQIXSX.js.gz +0 -0
- package/dist/monaco-assets/chunks/jsonMode-I4YAYKCC.css +1 -0
- package/dist/monaco-assets/chunks/jsonMode-I4YAYKCC.css.gz +0 -0
- package/dist/monaco-assets/chunks/jsonMode-PVXHFVY4.js +10 -0
- package/dist/monaco-assets/chunks/jsonMode-PVXHFVY4.js.gz +0 -0
- package/dist/monaco-assets/chunks/tsMode-4CIG5YX5.js +11 -0
- package/dist/monaco-assets/chunks/tsMode-4CIG5YX5.js.gz +0 -0
- package/dist/monaco-assets/chunks/tsMode-LEY4YWTP.css +1 -0
- package/dist/monaco-assets/chunks/tsMode-LEY4YWTP.css.gz +0 -0
- package/dist/monaco-assets/chunks/typescript-DYIPN6WN.js +1 -0
- package/dist/monaco-assets/chunks/typescript-DYIPN6WN.js.gz +0 -0
- package/dist/monaco-assets/chunks/typescript-Z6MD7EEQ.css +1 -0
- package/dist/monaco-assets/chunks/typescript-Z6MD7EEQ.css.gz +0 -0
- package/dist/monaco-assets/editor.worker.js +30 -0
- package/dist/monaco-assets/editor.worker.js.gz +0 -0
- package/dist/monaco-assets/fonts/codicon-KP4OV2OO.ttf +0 -0
- package/dist/monaco-assets/json.worker.js +62 -0
- package/dist/monaco-assets/json.worker.js.gz +0 -0
- package/dist/monaco-assets/manifest.json +5 -0
- package/dist/monaco-assets/runtime.css +1 -0
- package/dist/monaco-assets/runtime.css.gz +0 -0
- package/dist/monaco-assets/runtime.js +1 -0
- package/dist/monaco-assets/runtime.js.gz +0 -0
- package/dist/monaco-assets/typescript.worker.js +67740 -0
- package/dist/monaco-assets/typescript.worker.js.gz +0 -0
- package/dist/monaco.cjs +521 -0
- package/dist/monaco.cjs.map +1 -0
- package/dist/monaco.css +35 -0
- package/dist/monaco.css.map +1 -0
- package/dist/monaco.d.cts +22 -0
- package/dist/monaco.d.ts +22 -0
- package/dist/monaco.js +494 -0
- package/dist/monaco.js.map +1 -0
- package/package.json +11 -3
package/dist/index.d.cts
CHANGED
|
@@ -374,6 +374,16 @@ interface ContextMenuProps {
|
|
|
374
374
|
}
|
|
375
375
|
declare function ContextMenu({ items, onSelect, label, children }: PropsWithChildren<ContextMenuProps>): react.JSX.Element;
|
|
376
376
|
|
|
377
|
+
interface CodeEditorProps {
|
|
378
|
+
value: string;
|
|
379
|
+
onChange: (value: string) => void;
|
|
380
|
+
language?: string;
|
|
381
|
+
label?: string;
|
|
382
|
+
readOnly?: boolean;
|
|
383
|
+
height?: number;
|
|
384
|
+
}
|
|
385
|
+
declare function CodeEditor({ value, onChange, language, label, readOnly, height }: CodeEditorProps): react.JSX.Element;
|
|
386
|
+
|
|
377
387
|
interface RichTextEditorProps {
|
|
378
388
|
value: string;
|
|
379
389
|
onChange: (html: string) => void;
|
|
@@ -396,15 +406,6 @@ interface MentionInputProps {
|
|
|
396
406
|
disabled?: boolean;
|
|
397
407
|
}
|
|
398
408
|
declare function MentionInput({ value, onChange, options, label, placeholder, disabled }: MentionInputProps): react.JSX.Element;
|
|
399
|
-
interface CodeEditorProps {
|
|
400
|
-
value: string;
|
|
401
|
-
onChange: (value: string) => void;
|
|
402
|
-
language?: string;
|
|
403
|
-
label?: string;
|
|
404
|
-
readOnly?: boolean;
|
|
405
|
-
height?: number;
|
|
406
|
-
}
|
|
407
|
-
declare function CodeEditor({ value, onChange, language, label, readOnly, height }: CodeEditorProps): react.JSX.Element;
|
|
408
409
|
|
|
409
410
|
interface ChatMessageProps {
|
|
410
411
|
role: 'user' | 'assistant' | 'system';
|
|
@@ -667,6 +668,7 @@ declare function FileExplorer({ items, selectedId, onSelect, empty }: {
|
|
|
667
668
|
onSelect?: (id: string) => void;
|
|
668
669
|
empty?: ReactNode;
|
|
669
670
|
}): react.JSX.Element;
|
|
671
|
+
|
|
670
672
|
declare function FilePreview({ name, type, children, size, modified, actions, empty }: {
|
|
671
673
|
name?: ReactNode;
|
|
672
674
|
type?: string;
|
|
@@ -676,6 +678,7 @@ declare function FilePreview({ name, type, children, size, modified, actions, em
|
|
|
676
678
|
actions?: ReactNode;
|
|
677
679
|
empty?: ReactNode;
|
|
678
680
|
}): react.JSX.Element;
|
|
681
|
+
|
|
679
682
|
interface VersionItem {
|
|
680
683
|
id: string;
|
|
681
684
|
version: string;
|
|
@@ -862,8 +865,64 @@ declare function MobileNavigation({ brand, items, mode, activeKey, open, onOpenC
|
|
|
862
865
|
interface ScrollspyProps extends HTMLAttributes<HTMLElement>, NavigationSelectionProps {
|
|
863
866
|
items: readonly NavigationItem[];
|
|
864
867
|
rootMargin?: string;
|
|
868
|
+
/** Scroll container that owns the observed sections. Omit to observe the document viewport. */
|
|
869
|
+
target?: HTMLElement | null;
|
|
870
|
+
}
|
|
871
|
+
declare function Scrollspy({ items, activeKey, onItemSelect, rootMargin, target, className, ...props }: ScrollspyProps): react.JSX.Element;
|
|
872
|
+
|
|
873
|
+
interface BackToTopProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onClick' | 'type'> {
|
|
874
|
+
target?: HTMLElement | null;
|
|
875
|
+
threshold?: number;
|
|
876
|
+
behavior?: ScrollBehavior;
|
|
877
|
+
label?: string;
|
|
878
|
+
onActivate?: () => void;
|
|
879
|
+
}
|
|
880
|
+
declare function BackToTop({ target, threshold, behavior, label, onActivate, className, ...props }: BackToTopProps): react.JSX.Element | null;
|
|
881
|
+
|
|
882
|
+
interface HierarchicalSidebarProps extends Omit<HTMLAttributes<HTMLElement>, 'title'>, NavigationSelectionProps {
|
|
883
|
+
items: readonly NavigationItem[];
|
|
884
|
+
title?: ReactNode;
|
|
885
|
+
expandedKeys?: readonly string[];
|
|
886
|
+
defaultExpandedKeys?: readonly string[];
|
|
887
|
+
onExpandedChange?: (keys: string[]) => void;
|
|
888
|
+
}
|
|
889
|
+
declare function HierarchicalSidebar({ items, title, activeKey, onItemSelect, expandedKeys, defaultExpandedKeys, onExpandedChange, className, ...props }: HierarchicalSidebarProps): react.JSX.Element;
|
|
890
|
+
|
|
891
|
+
interface LongPageNavigationProps extends Omit<HTMLAttributes<HTMLElement>, 'title'>, NavigationSelectionProps {
|
|
892
|
+
items: readonly NavigationItem[];
|
|
893
|
+
target?: HTMLElement | null;
|
|
894
|
+
title?: ReactNode;
|
|
895
|
+
progressLabel?: string;
|
|
896
|
+
rootMargin?: string;
|
|
897
|
+
backToTopThreshold?: number;
|
|
898
|
+
showProgress?: boolean;
|
|
899
|
+
}
|
|
900
|
+
declare function LongPageNavigation({ items, target, title, progressLabel, rootMargin, backToTopThreshold, showProgress, activeKey, onItemSelect, className, ...props }: LongPageNavigationProps): react.JSX.Element;
|
|
901
|
+
|
|
902
|
+
interface BottomNavigationProps extends HTMLAttributes<HTMLElement>, NavigationSelectionProps {
|
|
903
|
+
items: readonly NavigationItem[];
|
|
904
|
+
label?: string;
|
|
865
905
|
}
|
|
866
|
-
declare function
|
|
906
|
+
declare function BottomNavigation({ items, label, activeKey, onItemSelect, className, ...props }: BottomNavigationProps): react.JSX.Element;
|
|
907
|
+
|
|
908
|
+
interface PullToRefreshProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onRefresh'> {
|
|
909
|
+
children: ReactNode;
|
|
910
|
+
onRefresh: () => void | Promise<void>;
|
|
911
|
+
threshold?: number;
|
|
912
|
+
disabled?: boolean;
|
|
913
|
+
label?: string;
|
|
914
|
+
onRefreshError?: (error: unknown) => void;
|
|
915
|
+
}
|
|
916
|
+
declare function PullToRefresh({ children, onRefresh, threshold, disabled, label, onRefreshError, className, onPointerDown, onPointerMove, onPointerUp, onPointerCancel, ...props }: PullToRefreshProps): react.JSX.Element;
|
|
917
|
+
|
|
918
|
+
interface MobileContentNavigationProps extends HTMLAttributes<HTMLDivElement>, NavigationSelectionProps {
|
|
919
|
+
items: readonly NavigationItem[];
|
|
920
|
+
children: ReactNode;
|
|
921
|
+
onRefresh?: () => void | Promise<void>;
|
|
922
|
+
refreshThreshold?: number;
|
|
923
|
+
navigationLabel?: string;
|
|
924
|
+
}
|
|
925
|
+
declare function MobileContentNavigation({ items, children, onRefresh, refreshThreshold, navigationLabel, activeKey, onItemSelect, className, ...props }: MobileContentNavigationProps): react.JSX.Element;
|
|
867
926
|
|
|
868
927
|
interface ShrinkNavProps extends HTMLAttributes<HTMLElement>, NavigationSelectionProps {
|
|
869
928
|
brand: ReactNode;
|
|
@@ -1449,9 +1508,14 @@ interface TreeProps {
|
|
|
1449
1508
|
selectedKey?: string;
|
|
1450
1509
|
onSelect?: (key: string) => void;
|
|
1451
1510
|
defaultExpandedKeys?: readonly string[];
|
|
1511
|
+
expandedKeys?: readonly string[];
|
|
1512
|
+
onExpand?: (keys: string[]) => void;
|
|
1452
1513
|
label?: string;
|
|
1514
|
+
showIcon?: boolean;
|
|
1515
|
+
showLine?: boolean;
|
|
1516
|
+
emptyText?: ReactNode;
|
|
1453
1517
|
}
|
|
1454
|
-
declare function Tree({ nodes, selectedKey, onSelect, defaultExpandedKeys, label }: TreeProps): react.JSX.Element;
|
|
1518
|
+
declare function Tree({ nodes, selectedKey, onSelect, defaultExpandedKeys, expandedKeys, onExpand, label, showIcon, showLine, emptyText }: TreeProps): react.JSX.Element;
|
|
1455
1519
|
|
|
1456
1520
|
interface AuthLayoutProps {
|
|
1457
1521
|
children: ReactNode;
|
|
@@ -1828,4 +1892,43 @@ interface OptimisticUpdateProps<T> {
|
|
|
1828
1892
|
}
|
|
1829
1893
|
declare function OptimisticUpdate<T>(props: OptimisticUpdateProps<T>): react.JSX.Element;
|
|
1830
1894
|
|
|
1831
|
-
|
|
1895
|
+
type TaskProgressPhase = 'idle' | 'running' | 'success' | 'error' | 'cancelled';
|
|
1896
|
+
interface TaskProgressReport {
|
|
1897
|
+
stageId: string;
|
|
1898
|
+
progress?: number;
|
|
1899
|
+
message?: string;
|
|
1900
|
+
}
|
|
1901
|
+
interface TaskProgressContext {
|
|
1902
|
+
signal: AbortSignal;
|
|
1903
|
+
report: (update: TaskProgressReport) => void;
|
|
1904
|
+
}
|
|
1905
|
+
interface TaskProgressSnapshot<TResult> {
|
|
1906
|
+
phase: TaskProgressPhase;
|
|
1907
|
+
activeStageId?: string;
|
|
1908
|
+
progress: number;
|
|
1909
|
+
message?: string;
|
|
1910
|
+
result?: TResult;
|
|
1911
|
+
start: () => void;
|
|
1912
|
+
cancel: () => void;
|
|
1913
|
+
retry: () => void;
|
|
1914
|
+
}
|
|
1915
|
+
|
|
1916
|
+
interface TaskProgressStage {
|
|
1917
|
+
id: string;
|
|
1918
|
+
label: ReactNode;
|
|
1919
|
+
description?: ReactNode;
|
|
1920
|
+
}
|
|
1921
|
+
interface TaskProgressProps<TResult> {
|
|
1922
|
+
taskKey: string | number;
|
|
1923
|
+
stages: readonly TaskProgressStage[];
|
|
1924
|
+
run: (context: TaskProgressContext) => Promise<TResult>;
|
|
1925
|
+
title?: ReactNode;
|
|
1926
|
+
autoStart?: boolean;
|
|
1927
|
+
disabled?: boolean;
|
|
1928
|
+
renderResult?: (result: TResult) => ReactNode;
|
|
1929
|
+
onPhaseChange?: (phase: TaskProgressPhase) => void;
|
|
1930
|
+
className?: string;
|
|
1931
|
+
}
|
|
1932
|
+
declare function TaskProgress<TResult>(props: TaskProgressProps<TResult>): react.JSX.Element;
|
|
1933
|
+
|
|
1934
|
+
export { Accordion, type AccordionItem, type AccordionProps, ActivityFeed, type ActivityFeedProps, ActivityIndicator, type ActivityIndicatorProps, type ActivityItem, type AgentRunStatus, type AgentRunStep, AgentRunTimeline, type AgentRunTimelineProps, Alert, type Announcement, AnnouncementBar, type AnnouncementBarProps, ApprovalFlow, type ApprovalFlowProps, type ApprovalStatus, type ApprovalStep, type AuditEvent, AuditLog, type AuditLogProps, AuthLayout, type AuthLayoutProps, AvailabilityGrid, type AvailabilityState, Avatar, AvatarGroup, type AvatarGroupItem, type AvatarGroupProps, BackToTop, type BackToTopProps, Badge, BottomNavigation, type BottomNavigationProps, Breadcrumb, type BreadcrumbProps, Button, ButtonGroup, type ButtonProps, Calendar, type CalendarProps, type CalendarResource, Card, type CardProps, Cascader, type CascaderOption, ChartContainer, type ChartContainerProps, ChartCrosshair, type ChartCrosshairProps, type ChartLegendItem, type ChatAttachment, ChatComposer, type ChatComposerProps, ChatMessage, type ChatMessageProps, Checkbox, CheckboxGroup, ChecklistConfirm, type ChecklistConfirmProps, ChoiceGroup, type ChoiceOption, CircularProgress, type CircularProgressProps, type CitationItem, CitationList, type CitationListProps, CodeBlock, type CodeBlockProps, CodeEditor, type CodeEditorProps, ColorPicker, type ColorPickerProps, Combobox, type ComboboxOption, type ComboboxProps, type CommandItem, CommandPalette, type CommandPaletteProps, type CommentItem, CommentThread, type CommentThreadProps, type ConfirmationItem, Container, type ContainerProps, ContextMenu, type ContextMenuProps, ConversationBranch, type ConversationBranchProps, type CrosshairPoint, DataGrid, type DataGridColumn, type DataGridProps, DatePicker, type DatePickerProps, DateRangePicker, type DescriptionItem, Descriptions, DiffViewer, type DiffViewerProps, Divider, Drawer, type DrawerProps, DrilldownChart, type DrilldownChartProps, type DrilldownItem, Dropdown, type DropdownItem, DropdownMenu, type DropdownProps, EmptyState, EventCard, ExpandablePanel, type ExpandablePanelProps, FileExplorer, type FileItem, FilePreview, FilterBuilder, type FilterBuilderProps, type FilterField, type FilterOption, type FilterValue, FloatingNav, type FloatingNavProps, FlowCanvas, type FlowCanvasProps, type FlowEdge, type FlowNode, Form, FormItem, type FormItemProps, type FormProps, GanttChart, type GanttChartProps, type GanttTask, Grid, type GridProps, Hero, type HeroProps, HierarchicalSidebar, type HierarchicalSidebarProps, HoldToConfirm, type HoldToConfirmProps, HotspotGuide, type HotspotGuideProps, Icon, IconButton, type IconButtonProps, type IconName, type IconProps, InfiniteScroll, type InfiniteScrollProps, Input, type InputProps, InsightBoard, type InsightBoardProps, JsonViewer, type JsonViewerProps, KanbanBoard, type KanbanBoardProps, type KanbanCard, type KanbanColumn, LazyLoad, type LazyLoadProps, LegendFilter, type LegendFilterItem, type LegendFilterProps, Link, List, type ListItem, LoadMore, type LoadMoreProps, LoadingDots, LoadingOverlay, type LoadingOverlayProps, LongPageNavigation, type LongPageNavigationProps, MarkdownContent, type MarkdownContentProps, Masonry, type MasonryProps, MegaMenu, type MemberOption, MemberPicker, MentionInput, type MentionInputProps, type MentionOption, MobileContentNavigation, type MobileContentNavigationProps, MobileNavigation, type MobileNavigationProps, Modal, type ModalProps, type ModelOption, ModelSelector, type ModelSelectorProps, MultiSelect, type MultiSelectProps, type NavigationItem, type NavigationSelectionProps, Notification, NotificationCenter, type NotificationCenterProps, type NotificationItem, type NotificationProps, NumberInput, type NumberInputProps, OnboardingChecklist, type OnboardingChecklistProps, type OnboardingTask, OptimisticUpdate, type OptimisticUpdateProps, type OptimisticUpdateState, PageLayout, type PageLayoutProps, Pagination, type PaginationProps, type PermissionLevel, PermissionMatrix, type PermissionResource, type PermissionSubject, PivotTable, type PivotTableProps, type PivotValue, Popconfirm, type PopconfirmProps, Popover, type PopoverProps, Presence, type PresenceProps, type PresenceStatus, ProductTour, type ProductTourProps, type ProductTourStep, Progress, ProgressBar, type ProgressProps, ProgressRing, type PromptSuggestion, PromptSuggestions, type PromptSuggestionsProps, PullToRefresh, type PullToRefreshProps, QueryBuilder, type QueryBuilderProps, type QueryField, type QueryOperator, type QueryRule, Radio, RadioGroup, RangeBrush, type RangeBrushProps, ReadMore, type ReadMoreProps, ReadingProgress, type ReadingProgressProps, RecurrenceEditor, type RecurrenceValue, ResizablePanel, type ResizablePanelProps, ResourceCalendar, Result, type ResultProps, RichTextEditor, type RichTextEditorProps, type ScheduleEvent, Scheduler, Scrollspy, type ScrollspyProps, SearchInput, type SegmentOption, SegmentedControl, type SegmentedControlProps, Select, type SelectOption, type SelectProps, SharePanel, type ShareScope, ShrinkNav, type ShrinkNavProps, Sidebar, type SidebarProps, Skeleton, type SkeletonProps, Slider, type SliderProps, SortableList, type SortableListItem, type SortableListProps, Sparkline, type SparklineProps, Spinner, SplitButton, type SplitButtonOption, type SplitButtonProps, Stack, type StackProps, Stat, StatisticCard, type StatisticCardProps, type StepItem, StepProgress, type StepProgressProps, Steps, type StepsProps, type SwipeAction, SwipeActions, type SwipeActionsProps, Switch, type SwitchProps, type TabItem, Table, type TableColumn, type TableProps, Tabs, type TabsProps, Tag, TaskProgress, type TaskProgressContext, type TaskProgressPhase, type TaskProgressProps, type TaskProgressReport, type TaskProgressSnapshot, type TaskProgressStage, Textarea, type TextareaProps, ThemeProvider, type ThemeProviderProps, type ThemeTokens, TimePicker, type TimePickerProps, Timeline, type TimelineItem, type TimezoneOption, TimezoneSelect, Toast, type ToastProps, TokenUsage, type TokenUsageProps, ToolCallCard, type ToolCallCardProps, type ToolCallStatus, Tooltip, Transfer, type TransferItem, Tree, type TreeNode, type TreeProps, TreeSelect, type TreeSelectOption, TypedConfirm, type TypedConfirmProps, Typography, type TypographyProps, type TypographyVariant, UndoNotice, type UndoNoticeProps, Upload, type UploadProps, type UploadRejection, type UploadRejectionReason, ValidatedInput, type ValidatedInputProps, type ValidationRule, VersionHistory, type VersionItem, VirtualList, type VirtualListProps, VoiceInput, type VoiceInputProps, ZoomableChart, type ZoomableChartProps, activateNavigationItem, darkTheme, defaultTheme, highContrastTheme, tokensToStyle, validateForm, validateValue };
|
package/dist/index.d.ts
CHANGED
|
@@ -374,6 +374,16 @@ interface ContextMenuProps {
|
|
|
374
374
|
}
|
|
375
375
|
declare function ContextMenu({ items, onSelect, label, children }: PropsWithChildren<ContextMenuProps>): react.JSX.Element;
|
|
376
376
|
|
|
377
|
+
interface CodeEditorProps {
|
|
378
|
+
value: string;
|
|
379
|
+
onChange: (value: string) => void;
|
|
380
|
+
language?: string;
|
|
381
|
+
label?: string;
|
|
382
|
+
readOnly?: boolean;
|
|
383
|
+
height?: number;
|
|
384
|
+
}
|
|
385
|
+
declare function CodeEditor({ value, onChange, language, label, readOnly, height }: CodeEditorProps): react.JSX.Element;
|
|
386
|
+
|
|
377
387
|
interface RichTextEditorProps {
|
|
378
388
|
value: string;
|
|
379
389
|
onChange: (html: string) => void;
|
|
@@ -396,15 +406,6 @@ interface MentionInputProps {
|
|
|
396
406
|
disabled?: boolean;
|
|
397
407
|
}
|
|
398
408
|
declare function MentionInput({ value, onChange, options, label, placeholder, disabled }: MentionInputProps): react.JSX.Element;
|
|
399
|
-
interface CodeEditorProps {
|
|
400
|
-
value: string;
|
|
401
|
-
onChange: (value: string) => void;
|
|
402
|
-
language?: string;
|
|
403
|
-
label?: string;
|
|
404
|
-
readOnly?: boolean;
|
|
405
|
-
height?: number;
|
|
406
|
-
}
|
|
407
|
-
declare function CodeEditor({ value, onChange, language, label, readOnly, height }: CodeEditorProps): react.JSX.Element;
|
|
408
409
|
|
|
409
410
|
interface ChatMessageProps {
|
|
410
411
|
role: 'user' | 'assistant' | 'system';
|
|
@@ -667,6 +668,7 @@ declare function FileExplorer({ items, selectedId, onSelect, empty }: {
|
|
|
667
668
|
onSelect?: (id: string) => void;
|
|
668
669
|
empty?: ReactNode;
|
|
669
670
|
}): react.JSX.Element;
|
|
671
|
+
|
|
670
672
|
declare function FilePreview({ name, type, children, size, modified, actions, empty }: {
|
|
671
673
|
name?: ReactNode;
|
|
672
674
|
type?: string;
|
|
@@ -676,6 +678,7 @@ declare function FilePreview({ name, type, children, size, modified, actions, em
|
|
|
676
678
|
actions?: ReactNode;
|
|
677
679
|
empty?: ReactNode;
|
|
678
680
|
}): react.JSX.Element;
|
|
681
|
+
|
|
679
682
|
interface VersionItem {
|
|
680
683
|
id: string;
|
|
681
684
|
version: string;
|
|
@@ -862,8 +865,64 @@ declare function MobileNavigation({ brand, items, mode, activeKey, open, onOpenC
|
|
|
862
865
|
interface ScrollspyProps extends HTMLAttributes<HTMLElement>, NavigationSelectionProps {
|
|
863
866
|
items: readonly NavigationItem[];
|
|
864
867
|
rootMargin?: string;
|
|
868
|
+
/** Scroll container that owns the observed sections. Omit to observe the document viewport. */
|
|
869
|
+
target?: HTMLElement | null;
|
|
870
|
+
}
|
|
871
|
+
declare function Scrollspy({ items, activeKey, onItemSelect, rootMargin, target, className, ...props }: ScrollspyProps): react.JSX.Element;
|
|
872
|
+
|
|
873
|
+
interface BackToTopProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onClick' | 'type'> {
|
|
874
|
+
target?: HTMLElement | null;
|
|
875
|
+
threshold?: number;
|
|
876
|
+
behavior?: ScrollBehavior;
|
|
877
|
+
label?: string;
|
|
878
|
+
onActivate?: () => void;
|
|
879
|
+
}
|
|
880
|
+
declare function BackToTop({ target, threshold, behavior, label, onActivate, className, ...props }: BackToTopProps): react.JSX.Element | null;
|
|
881
|
+
|
|
882
|
+
interface HierarchicalSidebarProps extends Omit<HTMLAttributes<HTMLElement>, 'title'>, NavigationSelectionProps {
|
|
883
|
+
items: readonly NavigationItem[];
|
|
884
|
+
title?: ReactNode;
|
|
885
|
+
expandedKeys?: readonly string[];
|
|
886
|
+
defaultExpandedKeys?: readonly string[];
|
|
887
|
+
onExpandedChange?: (keys: string[]) => void;
|
|
888
|
+
}
|
|
889
|
+
declare function HierarchicalSidebar({ items, title, activeKey, onItemSelect, expandedKeys, defaultExpandedKeys, onExpandedChange, className, ...props }: HierarchicalSidebarProps): react.JSX.Element;
|
|
890
|
+
|
|
891
|
+
interface LongPageNavigationProps extends Omit<HTMLAttributes<HTMLElement>, 'title'>, NavigationSelectionProps {
|
|
892
|
+
items: readonly NavigationItem[];
|
|
893
|
+
target?: HTMLElement | null;
|
|
894
|
+
title?: ReactNode;
|
|
895
|
+
progressLabel?: string;
|
|
896
|
+
rootMargin?: string;
|
|
897
|
+
backToTopThreshold?: number;
|
|
898
|
+
showProgress?: boolean;
|
|
899
|
+
}
|
|
900
|
+
declare function LongPageNavigation({ items, target, title, progressLabel, rootMargin, backToTopThreshold, showProgress, activeKey, onItemSelect, className, ...props }: LongPageNavigationProps): react.JSX.Element;
|
|
901
|
+
|
|
902
|
+
interface BottomNavigationProps extends HTMLAttributes<HTMLElement>, NavigationSelectionProps {
|
|
903
|
+
items: readonly NavigationItem[];
|
|
904
|
+
label?: string;
|
|
865
905
|
}
|
|
866
|
-
declare function
|
|
906
|
+
declare function BottomNavigation({ items, label, activeKey, onItemSelect, className, ...props }: BottomNavigationProps): react.JSX.Element;
|
|
907
|
+
|
|
908
|
+
interface PullToRefreshProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onRefresh'> {
|
|
909
|
+
children: ReactNode;
|
|
910
|
+
onRefresh: () => void | Promise<void>;
|
|
911
|
+
threshold?: number;
|
|
912
|
+
disabled?: boolean;
|
|
913
|
+
label?: string;
|
|
914
|
+
onRefreshError?: (error: unknown) => void;
|
|
915
|
+
}
|
|
916
|
+
declare function PullToRefresh({ children, onRefresh, threshold, disabled, label, onRefreshError, className, onPointerDown, onPointerMove, onPointerUp, onPointerCancel, ...props }: PullToRefreshProps): react.JSX.Element;
|
|
917
|
+
|
|
918
|
+
interface MobileContentNavigationProps extends HTMLAttributes<HTMLDivElement>, NavigationSelectionProps {
|
|
919
|
+
items: readonly NavigationItem[];
|
|
920
|
+
children: ReactNode;
|
|
921
|
+
onRefresh?: () => void | Promise<void>;
|
|
922
|
+
refreshThreshold?: number;
|
|
923
|
+
navigationLabel?: string;
|
|
924
|
+
}
|
|
925
|
+
declare function MobileContentNavigation({ items, children, onRefresh, refreshThreshold, navigationLabel, activeKey, onItemSelect, className, ...props }: MobileContentNavigationProps): react.JSX.Element;
|
|
867
926
|
|
|
868
927
|
interface ShrinkNavProps extends HTMLAttributes<HTMLElement>, NavigationSelectionProps {
|
|
869
928
|
brand: ReactNode;
|
|
@@ -1449,9 +1508,14 @@ interface TreeProps {
|
|
|
1449
1508
|
selectedKey?: string;
|
|
1450
1509
|
onSelect?: (key: string) => void;
|
|
1451
1510
|
defaultExpandedKeys?: readonly string[];
|
|
1511
|
+
expandedKeys?: readonly string[];
|
|
1512
|
+
onExpand?: (keys: string[]) => void;
|
|
1452
1513
|
label?: string;
|
|
1514
|
+
showIcon?: boolean;
|
|
1515
|
+
showLine?: boolean;
|
|
1516
|
+
emptyText?: ReactNode;
|
|
1453
1517
|
}
|
|
1454
|
-
declare function Tree({ nodes, selectedKey, onSelect, defaultExpandedKeys, label }: TreeProps): react.JSX.Element;
|
|
1518
|
+
declare function Tree({ nodes, selectedKey, onSelect, defaultExpandedKeys, expandedKeys, onExpand, label, showIcon, showLine, emptyText }: TreeProps): react.JSX.Element;
|
|
1455
1519
|
|
|
1456
1520
|
interface AuthLayoutProps {
|
|
1457
1521
|
children: ReactNode;
|
|
@@ -1828,4 +1892,43 @@ interface OptimisticUpdateProps<T> {
|
|
|
1828
1892
|
}
|
|
1829
1893
|
declare function OptimisticUpdate<T>(props: OptimisticUpdateProps<T>): react.JSX.Element;
|
|
1830
1894
|
|
|
1831
|
-
|
|
1895
|
+
type TaskProgressPhase = 'idle' | 'running' | 'success' | 'error' | 'cancelled';
|
|
1896
|
+
interface TaskProgressReport {
|
|
1897
|
+
stageId: string;
|
|
1898
|
+
progress?: number;
|
|
1899
|
+
message?: string;
|
|
1900
|
+
}
|
|
1901
|
+
interface TaskProgressContext {
|
|
1902
|
+
signal: AbortSignal;
|
|
1903
|
+
report: (update: TaskProgressReport) => void;
|
|
1904
|
+
}
|
|
1905
|
+
interface TaskProgressSnapshot<TResult> {
|
|
1906
|
+
phase: TaskProgressPhase;
|
|
1907
|
+
activeStageId?: string;
|
|
1908
|
+
progress: number;
|
|
1909
|
+
message?: string;
|
|
1910
|
+
result?: TResult;
|
|
1911
|
+
start: () => void;
|
|
1912
|
+
cancel: () => void;
|
|
1913
|
+
retry: () => void;
|
|
1914
|
+
}
|
|
1915
|
+
|
|
1916
|
+
interface TaskProgressStage {
|
|
1917
|
+
id: string;
|
|
1918
|
+
label: ReactNode;
|
|
1919
|
+
description?: ReactNode;
|
|
1920
|
+
}
|
|
1921
|
+
interface TaskProgressProps<TResult> {
|
|
1922
|
+
taskKey: string | number;
|
|
1923
|
+
stages: readonly TaskProgressStage[];
|
|
1924
|
+
run: (context: TaskProgressContext) => Promise<TResult>;
|
|
1925
|
+
title?: ReactNode;
|
|
1926
|
+
autoStart?: boolean;
|
|
1927
|
+
disabled?: boolean;
|
|
1928
|
+
renderResult?: (result: TResult) => ReactNode;
|
|
1929
|
+
onPhaseChange?: (phase: TaskProgressPhase) => void;
|
|
1930
|
+
className?: string;
|
|
1931
|
+
}
|
|
1932
|
+
declare function TaskProgress<TResult>(props: TaskProgressProps<TResult>): react.JSX.Element;
|
|
1933
|
+
|
|
1934
|
+
export { Accordion, type AccordionItem, type AccordionProps, ActivityFeed, type ActivityFeedProps, ActivityIndicator, type ActivityIndicatorProps, type ActivityItem, type AgentRunStatus, type AgentRunStep, AgentRunTimeline, type AgentRunTimelineProps, Alert, type Announcement, AnnouncementBar, type AnnouncementBarProps, ApprovalFlow, type ApprovalFlowProps, type ApprovalStatus, type ApprovalStep, type AuditEvent, AuditLog, type AuditLogProps, AuthLayout, type AuthLayoutProps, AvailabilityGrid, type AvailabilityState, Avatar, AvatarGroup, type AvatarGroupItem, type AvatarGroupProps, BackToTop, type BackToTopProps, Badge, BottomNavigation, type BottomNavigationProps, Breadcrumb, type BreadcrumbProps, Button, ButtonGroup, type ButtonProps, Calendar, type CalendarProps, type CalendarResource, Card, type CardProps, Cascader, type CascaderOption, ChartContainer, type ChartContainerProps, ChartCrosshair, type ChartCrosshairProps, type ChartLegendItem, type ChatAttachment, ChatComposer, type ChatComposerProps, ChatMessage, type ChatMessageProps, Checkbox, CheckboxGroup, ChecklistConfirm, type ChecklistConfirmProps, ChoiceGroup, type ChoiceOption, CircularProgress, type CircularProgressProps, type CitationItem, CitationList, type CitationListProps, CodeBlock, type CodeBlockProps, CodeEditor, type CodeEditorProps, ColorPicker, type ColorPickerProps, Combobox, type ComboboxOption, type ComboboxProps, type CommandItem, CommandPalette, type CommandPaletteProps, type CommentItem, CommentThread, type CommentThreadProps, type ConfirmationItem, Container, type ContainerProps, ContextMenu, type ContextMenuProps, ConversationBranch, type ConversationBranchProps, type CrosshairPoint, DataGrid, type DataGridColumn, type DataGridProps, DatePicker, type DatePickerProps, DateRangePicker, type DescriptionItem, Descriptions, DiffViewer, type DiffViewerProps, Divider, Drawer, type DrawerProps, DrilldownChart, type DrilldownChartProps, type DrilldownItem, Dropdown, type DropdownItem, DropdownMenu, type DropdownProps, EmptyState, EventCard, ExpandablePanel, type ExpandablePanelProps, FileExplorer, type FileItem, FilePreview, FilterBuilder, type FilterBuilderProps, type FilterField, type FilterOption, type FilterValue, FloatingNav, type FloatingNavProps, FlowCanvas, type FlowCanvasProps, type FlowEdge, type FlowNode, Form, FormItem, type FormItemProps, type FormProps, GanttChart, type GanttChartProps, type GanttTask, Grid, type GridProps, Hero, type HeroProps, HierarchicalSidebar, type HierarchicalSidebarProps, HoldToConfirm, type HoldToConfirmProps, HotspotGuide, type HotspotGuideProps, Icon, IconButton, type IconButtonProps, type IconName, type IconProps, InfiniteScroll, type InfiniteScrollProps, Input, type InputProps, InsightBoard, type InsightBoardProps, JsonViewer, type JsonViewerProps, KanbanBoard, type KanbanBoardProps, type KanbanCard, type KanbanColumn, LazyLoad, type LazyLoadProps, LegendFilter, type LegendFilterItem, type LegendFilterProps, Link, List, type ListItem, LoadMore, type LoadMoreProps, LoadingDots, LoadingOverlay, type LoadingOverlayProps, LongPageNavigation, type LongPageNavigationProps, MarkdownContent, type MarkdownContentProps, Masonry, type MasonryProps, MegaMenu, type MemberOption, MemberPicker, MentionInput, type MentionInputProps, type MentionOption, MobileContentNavigation, type MobileContentNavigationProps, MobileNavigation, type MobileNavigationProps, Modal, type ModalProps, type ModelOption, ModelSelector, type ModelSelectorProps, MultiSelect, type MultiSelectProps, type NavigationItem, type NavigationSelectionProps, Notification, NotificationCenter, type NotificationCenterProps, type NotificationItem, type NotificationProps, NumberInput, type NumberInputProps, OnboardingChecklist, type OnboardingChecklistProps, type OnboardingTask, OptimisticUpdate, type OptimisticUpdateProps, type OptimisticUpdateState, PageLayout, type PageLayoutProps, Pagination, type PaginationProps, type PermissionLevel, PermissionMatrix, type PermissionResource, type PermissionSubject, PivotTable, type PivotTableProps, type PivotValue, Popconfirm, type PopconfirmProps, Popover, type PopoverProps, Presence, type PresenceProps, type PresenceStatus, ProductTour, type ProductTourProps, type ProductTourStep, Progress, ProgressBar, type ProgressProps, ProgressRing, type PromptSuggestion, PromptSuggestions, type PromptSuggestionsProps, PullToRefresh, type PullToRefreshProps, QueryBuilder, type QueryBuilderProps, type QueryField, type QueryOperator, type QueryRule, Radio, RadioGroup, RangeBrush, type RangeBrushProps, ReadMore, type ReadMoreProps, ReadingProgress, type ReadingProgressProps, RecurrenceEditor, type RecurrenceValue, ResizablePanel, type ResizablePanelProps, ResourceCalendar, Result, type ResultProps, RichTextEditor, type RichTextEditorProps, type ScheduleEvent, Scheduler, Scrollspy, type ScrollspyProps, SearchInput, type SegmentOption, SegmentedControl, type SegmentedControlProps, Select, type SelectOption, type SelectProps, SharePanel, type ShareScope, ShrinkNav, type ShrinkNavProps, Sidebar, type SidebarProps, Skeleton, type SkeletonProps, Slider, type SliderProps, SortableList, type SortableListItem, type SortableListProps, Sparkline, type SparklineProps, Spinner, SplitButton, type SplitButtonOption, type SplitButtonProps, Stack, type StackProps, Stat, StatisticCard, type StatisticCardProps, type StepItem, StepProgress, type StepProgressProps, Steps, type StepsProps, type SwipeAction, SwipeActions, type SwipeActionsProps, Switch, type SwitchProps, type TabItem, Table, type TableColumn, type TableProps, Tabs, type TabsProps, Tag, TaskProgress, type TaskProgressContext, type TaskProgressPhase, type TaskProgressProps, type TaskProgressReport, type TaskProgressSnapshot, type TaskProgressStage, Textarea, type TextareaProps, ThemeProvider, type ThemeProviderProps, type ThemeTokens, TimePicker, type TimePickerProps, Timeline, type TimelineItem, type TimezoneOption, TimezoneSelect, Toast, type ToastProps, TokenUsage, type TokenUsageProps, ToolCallCard, type ToolCallCardProps, type ToolCallStatus, Tooltip, Transfer, type TransferItem, Tree, type TreeNode, type TreeProps, TreeSelect, type TreeSelectOption, TypedConfirm, type TypedConfirmProps, Typography, type TypographyProps, type TypographyVariant, UndoNotice, type UndoNoticeProps, Upload, type UploadProps, type UploadRejection, type UploadRejectionReason, ValidatedInput, type ValidatedInputProps, type ValidationRule, VersionHistory, type VersionItem, VirtualList, type VirtualListProps, VoiceInput, type VoiceInputProps, ZoomableChart, type ZoomableChartProps, activateNavigationItem, darkTheme, defaultTheme, highContrastTheme, tokensToStyle, validateForm, validateValue };
|