@lukeashford/aurelius 4.10.1 → 4.11.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/index.d.mts CHANGED
@@ -536,6 +536,53 @@ interface ProgressProps extends React$1.HTMLAttributes<HTMLDivElement> {
536
536
  }
537
537
  declare const Progress: React$1.ForwardRefExoticComponent<ProgressProps & React$1.RefAttributes<HTMLDivElement>>;
538
538
 
539
+ type BusyOverlayTone = 'dim' | 'frost';
540
+ type BusyOverlayBlurStrength = 'sm' | 'md' | 'lg';
541
+ interface BusyOverlayProps extends React$1.HTMLAttributes<HTMLDivElement> {
542
+ /**
543
+ * Optional content rendered next to the spinner — typically a short label
544
+ * like "Loading session…". Pass any ReactNode so callers can compose icons,
545
+ * countdowns, or even nested links if needed.
546
+ */
547
+ label?: React$1.ReactNode;
548
+ /**
549
+ * Backdrop blur strength. `sm` is the default and reads as "this region is
550
+ * busy, the scene behind is still legible". Use `md` or `lg` only when you
551
+ * deliberately want to discourage the user from interacting with the
552
+ * region behind — e.g. a destructive retry-in-flight.
553
+ * @default 'sm'
554
+ */
555
+ blurStrength?: BusyOverlayBlurStrength;
556
+ /**
557
+ * Visual weight of the overlay tint.
558
+ *
559
+ * - `dim` (default) — translucent dark wash, lighter on the eyes,
560
+ * communicates "this area is temporarily busy".
561
+ * - `frost` — heavier wash + blur, communicates "blocking-modal feel"
562
+ * suitable for in-flight retries where the user shouldn't keep
563
+ * reading the dimmed content.
564
+ *
565
+ * @default 'dim'
566
+ */
567
+ tone?: BusyOverlayTone;
568
+ }
569
+ /**
570
+ * Centered busy indicator that mounts `position: absolute inset-0` over its
571
+ * positioned parent. Use it when a known region is *temporarily unavailable
572
+ * but its surrounding chrome still matters* — chat tree mid-load, retry
573
+ * in-flight, "reconnecting" hops. Prefer `Skeleton` for data-shaped regions
574
+ * where the layout is known and you can preview content shape; prefer the
575
+ * `ChatInputNotice` slot when the unavailability is on a control rather
576
+ * than a region.
577
+ *
578
+ * The host must establish a positioning context (`relative`, `absolute`, or
579
+ * `fixed`) — `BusyOverlay` does not create its own.
580
+ */
581
+ declare function BusyOverlay({ label, blurStrength, tone, className, ...rest }: BusyOverlayProps): React$1.JSX.Element;
582
+ declare namespace BusyOverlay {
583
+ var displayName: string;
584
+ }
585
+
539
586
  type ToastVariant = 'default' | 'success' | 'error' | 'warning' | 'info';
540
587
  type ToastPosition = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left' | 'top-center' | 'bottom-center';
541
588
  interface ToastData {
@@ -1148,18 +1195,25 @@ declare function revokePreviewUrl(url: string | undefined): void;
1148
1195
  */
1149
1196
  declare function generateId(): string;
1150
1197
 
1198
+ type ChatInputNoticeVariant = 'info' | 'warning' | 'error';
1151
1199
  interface ChatInputNotice {
1152
1200
  /**
1153
- * Visual severity: 'warning' shows a dismissible amber notice, 'error' shows a persistent red
1154
- * notice
1201
+ * Visual severity. `info` is muted neutral (slate) and non-dismissible by
1202
+ * default — use it for transient "control unavailable" states like draft
1203
+ * hydration or backend reconnects. `warning` is amber and dismissible by
1204
+ * default — use it for soft-limit warnings the user can still act past.
1205
+ * `error` is red and non-dismissible by default — use it for hard-block
1206
+ * states like credit exhaustion.
1155
1207
  */
1156
- variant: 'warning' | 'error';
1208
+ variant: ChatInputNoticeVariant;
1157
1209
  /**
1158
- * Content to render — plain text or any React node (e.g. text + button for error state)
1210
+ * Content to render — plain text or any React node (e.g. text + button for
1211
+ * error state, or a `<Spinner/>` + label for info).
1159
1212
  */
1160
1213
  content: React$1.ReactNode;
1161
1214
  /**
1162
- * Whether to show a dismiss (×) button. Defaults to true for warning, ignored for error.
1215
+ * Whether to show a dismiss (×) button. Defaults to true for `warning`,
1216
+ * false for `info` and `error`. Override either way explicitly.
1163
1217
  */
1164
1218
  dismissible?: boolean;
1165
1219
  /**
@@ -2135,6 +2189,33 @@ interface ChatInterfaceProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>
2135
2189
  * Arrow / Enter / Escape while an autocomplete panel is open.
2136
2190
  */
2137
2191
  onTextareaKeyDown?: (e: React$1.KeyboardEvent<HTMLTextAreaElement>) => void;
2192
+ /**
2193
+ * When true, the messages region renders a `BusyOverlay` over its content
2194
+ * — use it while the chat tree for the current session is still loading.
2195
+ * The surrounding chrome (sidebars, input, tool panels, header) stays
2196
+ * mounted, so the user keeps every other affordance during the transition
2197
+ * and the input can still surface its own notice (e.g. "Loading your
2198
+ * draft…").
2199
+ */
2200
+ chatLoading?: boolean;
2201
+ /**
2202
+ * Forwarded to the internal `ArtifactsPanel`'s `loading` prop, which
2203
+ * renders aurelius's existing artifact skeletons. Use it during cold-start
2204
+ * or while the artifact snapshot is retrying — the panel chrome stays
2205
+ * mounted and the skeletons stand in for the unknown nodes.
2206
+ */
2207
+ artifactsLoading?: boolean;
2208
+ /**
2209
+ * Forwarded to the chat-input's `disabled` prop. Pair with `inputNotice`
2210
+ * to gate the input on consumer-owned conditions (credit exhaustion,
2211
+ * draft hydrating, hypocaust unreachable) without blocking the rest of
2212
+ * the surface. ChatInput stays domain-agnostic; consumers compute the
2213
+ * `{disabled, notice}` pair and ChatInterface forwards both.
2214
+ *
2215
+ * OR-merged with the streaming-driven internal disable, so consumer
2216
+ * disable doesn't accidentally re-enable an input that's mid-stream.
2217
+ */
2218
+ inputDisabled?: boolean;
2138
2219
  }
2139
2220
  /**
2140
2221
  * ChatInterface is the main orchestrator for a full-featured chat experience.
@@ -2323,9 +2404,14 @@ interface ArtifactsPanelProps extends React$1.HTMLAttributes<HTMLDivElement> {
2323
2404
  */
2324
2405
  nodes?: ArtifactNode[];
2325
2406
  /**
2326
- * Whether artifacts are still loading (show skeletons)
2407
+ * Loading signal for the panel. Pass `true` for the cold-start case — the
2408
+ * panel renders placeholder skeleton cards in place of real artifacts so
2409
+ * the user sees "stuff is on its way" instead of an empty grid. Pass a
2410
+ * `CardSlotLoading` config to skeletonise specific slots on existing
2411
+ * cards (e.g. while a single artifact's media is hydrating). Falsy ⇒
2412
+ * render real content.
2327
2413
  */
2328
- loading?: CardSlotLoading;
2414
+ loading?: boolean | CardSlotLoading;
2329
2415
  /**
2330
2416
  * When set to a non-null id, surfaces the same expanded artifact card the
2331
2417
  * panel grid would. Drives chip click-through from outside the panel.
@@ -2879,4 +2965,4 @@ declare function getTextareaCaretCoords(textarea: HTMLTextAreaElement): Textarea
2879
2965
 
2880
2966
  declare const version = "2.0.0";
2881
2967
 
2882
- export { ARTIFACT_TYPES, Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, type AddNodeOptions, Alert, AlertDialog, type AlertDialogProps, type AlertProps, type AlertVariant, type Artifact, ArtifactCard, type ArtifactCardProps, ArtifactGroup, type ArtifactGroupProps, ArtifactImageGridSection, type ArtifactImageGridSectionProps, type ArtifactNode, ArtifactSpotlightSection, type ArtifactSpotlightSectionProps, type ArtifactType, ArtifactVariantStack, type ArtifactVariantStackProps, ArtifactsPanel, type ArtifactsPanelProps, ArtifactsPanelToggle, type ArtifactsPanelToggleProps, type AspectRatio, type AspectRatioPreset, type Attachment, type AttachmentItem, AttachmentPreview, type AttachmentPreviewProps, type AttachmentStatus, AudioCard, type AudioCardProps, Avatar, type AvatarProps, type AvatarSize, Badge, type BadgeProps, type BadgeVariant, BranchNavigator, type BranchNavigatorProps, BrandIcon, type BrandIconProps, type BrandIconSize, type BrandIconVariant, Breadcrumb, type BreadcrumbEntry, BreadcrumbItem, type BreadcrumbItemProps, BreadcrumbLink, type BreadcrumbLinkProps, type BreadcrumbProps, Button, type ButtonProps, type ButtonSize, type ButtonVariant, Card, type CardBodyProps, type CardFooterProps, type CardHeaderProps, type CardMediaProps, type CardProps, type CardVariant, ChatBubbleIcon, ChatInput, type ChatInputNotice, type ChatInputPosition, type ChatInputProps, ChatInterface, type ChatInterfaceHandle, type ChatInterfaceProps, type ChatNode, ChatView, type ChatViewCheckpointItem, type ChatViewDividerItem, type ChatViewItem, type ChatViewMessageItem, type ChatViewProps, CheckSquareIcon, Checkbox, type CheckboxProps, Checkpoint, type CheckpointBranchInfo, type CheckpointExecutionKind, type CheckpointNode, type CheckpointProps, type CheckpointStatus, ChevronLeftIcon, ChevronRightIcon, CloseIcon, Col, type ColOffset, type ColOrder, type ColProps, type ColSpan, ColorPaletteSection, type ColorPaletteSectionProps, ColorSwatch, type ColorSwatchProps, Combobox, type ComboboxNav, type ComboboxProps, ConfirmDialog, type ConfirmDialogProps, Container, type ContainerProps, type ContainerSize, type Conversation, type ConversationTree, CoverSection, type CoverSectionProps, CrossSquareIcon, type Deliverable, type DeliverableArtifactRef, DeliverableCard, type DeliverableCardProps, type DeliverableImageItem, DeliverableRenderer, type DeliverableRendererProps, type DeliverableSection, type DeliverableSwatch, type DeliverableTheme, Divider, type DividerProps, Drawer, type DrawerPosition, type DrawerProps, EmptySquareIcon, ExpandIcon, type ExternalToolDefinition, FileChip, type FileChipProps, type FileChipStatus, GreyedDivider, type GreyedDividerProps, HelperText, type HelperTextProps, HistoryIcon, HistoryPanel, type HistoryPanelProps, type IconProps, ImageCard, type ImageCardProps, type ImageGridAspectRatio, Input, type InputAddonProps, type InputElementProps, InputGroup, type InputGroupProps, InputLeftAddon, InputLeftElement, type InputProps, InputRightAddon, InputRightElement, InputWrapper, type InputWrapperProps, Label, type LabelProps, LayersIcon, Lightbox, type LightboxProps, List, ListItem, type ListItemProps, ListItemText, type ListItemTextProps, type ListProps, ListSubheader, type ListSubheaderProps, MarkdownContent, type MarkdownContentProps, MediaIcon, MentionChip, type MentionChipProps, Menu, MenuContent, type MenuContentProps, MenuItem, type MenuItemProps, MenuLabel, type MenuProps, MenuSeparator, MenuTrigger, type MenuTriggerProps, Message, MessageActions, type MessageActionsConfig, type MessageActionsProps, type MessageActionsVariant, type MessageBranchInfo, type MessageNode, type MessageProps, type MessageVariant, Modal, type ModalProps, NODE_TYPES, Navbar, NavbarBrand, type NavbarBrandProps, NavbarContent, type NavbarContentProps, NavbarDivider, NavbarItem, type NavbarItemProps, NavbarLink, type NavbarLinkProps, type NavbarProps, type NodeTopology, type NodeType, Pagination, type PaginationProps, PdfCard, type PdfCardProps, PlusIcon, Popover, type PopoverAlign, type PopoverPosition, type PopoverProps, Progress, type ProgressProps, PromptDialog, type PromptDialogProps, QuoteBlockSection, type QuoteBlockSectionProps, Radio, type RadioProps, Row, type RowAlign, type RowGutter, type RowJustify, type RowProps, SCRIPT_ELEMENT_TYPES, ScriptCard, type ScriptCardProps, type ScriptElement, type ScriptElementType, SectionHeading, type SectionHeadingLevel, type SectionHeadingProps, Select, type SelectOption, type SelectProps, Skeleton, type SkeletonProps, Slider, type SliderProps, Spinner, type SpinnerProps, type SpotlightVariant, SquareLoaderIcon, Stack, type StackDirection, type StackGap, type StackProps, type Step, type StepStatus, Stepper, type StepperProps, StreamingCursor, type StreamingCursorProps, Switch, type SwitchProps, TASK_STATUSES, Tab, TabList, type TabListProps, TabPanel, type TabPanelProps, type TabProps, Table, TableBody, type TableBodyProps, TableCaption, type TableCaptionProps, TableCell, type TableCellProps, TableFooter, type TableFooterProps, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsProps, type Task, type TaskStatus, TextBlockSection, type TextBlockSectionProps, TextCard, type TextCardProps, Textarea, type TextareaCaretCoords, type TextareaProps, ThinkingIndicator, type ThinkingIndicatorProps, type ToastData, type ToastPosition, ToastProvider, type ToastProviderProps, type ToastVariant, TodosList, type TodosListProps, type ToolDefinition, type ToolGroup, ToolPanelContainer, type ToolPanelContainerProps, type ToolPanelState, ToolSidebar, type ToolSidebarProps, Tooltip, type TooltipProps, type TreeNode, type UseArtifactTreeNavigationReturn, type UseComboboxNavOptions, type UseScrollAnchorOptions, type UseScrollAnchorReturn, type VideoAspectRatio, type VideoAspectRatioPreset, VideoCard, type VideoCardProps, addNodeToTree, areAllTasksSettled, createEmptyTree, createPreviewUrl, findAncestor, generateId, getActivePath, getGreyedFuture, getSiblingInfo, getTextareaCaretCoords, isBranchPoint, isImageFile, messagesToTree, revokePreviewUrl, setActiveLeaf, switchBranch, updateMessageContent, useArtifactTreeNavigation, useComboboxNav, useResizable, useScrollAnchor, useToast, version };
2968
+ export { ARTIFACT_TYPES, Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, type AddNodeOptions, Alert, AlertDialog, type AlertDialogProps, type AlertProps, type AlertVariant, type Artifact, ArtifactCard, type ArtifactCardProps, ArtifactGroup, type ArtifactGroupProps, ArtifactImageGridSection, type ArtifactImageGridSectionProps, type ArtifactNode, ArtifactSpotlightSection, type ArtifactSpotlightSectionProps, type ArtifactType, ArtifactVariantStack, type ArtifactVariantStackProps, ArtifactsPanel, type ArtifactsPanelProps, ArtifactsPanelToggle, type ArtifactsPanelToggleProps, type AspectRatio, type AspectRatioPreset, type Attachment, type AttachmentItem, AttachmentPreview, type AttachmentPreviewProps, type AttachmentStatus, AudioCard, type AudioCardProps, Avatar, type AvatarProps, type AvatarSize, Badge, type BadgeProps, type BadgeVariant, BranchNavigator, type BranchNavigatorProps, BrandIcon, type BrandIconProps, type BrandIconSize, type BrandIconVariant, Breadcrumb, type BreadcrumbEntry, BreadcrumbItem, type BreadcrumbItemProps, BreadcrumbLink, type BreadcrumbLinkProps, type BreadcrumbProps, BusyOverlay, type BusyOverlayBlurStrength, type BusyOverlayProps, type BusyOverlayTone, Button, type ButtonProps, type ButtonSize, type ButtonVariant, Card, type CardBodyProps, type CardFooterProps, type CardHeaderProps, type CardMediaProps, type CardProps, type CardVariant, ChatBubbleIcon, ChatInput, type ChatInputNotice, type ChatInputNoticeVariant, type ChatInputPosition, type ChatInputProps, ChatInterface, type ChatInterfaceHandle, type ChatInterfaceProps, type ChatNode, ChatView, type ChatViewCheckpointItem, type ChatViewDividerItem, type ChatViewItem, type ChatViewMessageItem, type ChatViewProps, CheckSquareIcon, Checkbox, type CheckboxProps, Checkpoint, type CheckpointBranchInfo, type CheckpointExecutionKind, type CheckpointNode, type CheckpointProps, type CheckpointStatus, ChevronLeftIcon, ChevronRightIcon, CloseIcon, Col, type ColOffset, type ColOrder, type ColProps, type ColSpan, ColorPaletteSection, type ColorPaletteSectionProps, ColorSwatch, type ColorSwatchProps, Combobox, type ComboboxNav, type ComboboxProps, ConfirmDialog, type ConfirmDialogProps, Container, type ContainerProps, type ContainerSize, type Conversation, type ConversationTree, CoverSection, type CoverSectionProps, CrossSquareIcon, type Deliverable, type DeliverableArtifactRef, DeliverableCard, type DeliverableCardProps, type DeliverableImageItem, DeliverableRenderer, type DeliverableRendererProps, type DeliverableSection, type DeliverableSwatch, type DeliverableTheme, Divider, type DividerProps, Drawer, type DrawerPosition, type DrawerProps, EmptySquareIcon, ExpandIcon, type ExternalToolDefinition, FileChip, type FileChipProps, type FileChipStatus, GreyedDivider, type GreyedDividerProps, HelperText, type HelperTextProps, HistoryIcon, HistoryPanel, type HistoryPanelProps, type IconProps, ImageCard, type ImageCardProps, type ImageGridAspectRatio, Input, type InputAddonProps, type InputElementProps, InputGroup, type InputGroupProps, InputLeftAddon, InputLeftElement, type InputProps, InputRightAddon, InputRightElement, InputWrapper, type InputWrapperProps, Label, type LabelProps, LayersIcon, Lightbox, type LightboxProps, List, ListItem, type ListItemProps, ListItemText, type ListItemTextProps, type ListProps, ListSubheader, type ListSubheaderProps, MarkdownContent, type MarkdownContentProps, MediaIcon, MentionChip, type MentionChipProps, Menu, MenuContent, type MenuContentProps, MenuItem, type MenuItemProps, MenuLabel, type MenuProps, MenuSeparator, MenuTrigger, type MenuTriggerProps, Message, MessageActions, type MessageActionsConfig, type MessageActionsProps, type MessageActionsVariant, type MessageBranchInfo, type MessageNode, type MessageProps, type MessageVariant, Modal, type ModalProps, NODE_TYPES, Navbar, NavbarBrand, type NavbarBrandProps, NavbarContent, type NavbarContentProps, NavbarDivider, NavbarItem, type NavbarItemProps, NavbarLink, type NavbarLinkProps, type NavbarProps, type NodeTopology, type NodeType, Pagination, type PaginationProps, PdfCard, type PdfCardProps, PlusIcon, Popover, type PopoverAlign, type PopoverPosition, type PopoverProps, Progress, type ProgressProps, PromptDialog, type PromptDialogProps, QuoteBlockSection, type QuoteBlockSectionProps, Radio, type RadioProps, Row, type RowAlign, type RowGutter, type RowJustify, type RowProps, SCRIPT_ELEMENT_TYPES, ScriptCard, type ScriptCardProps, type ScriptElement, type ScriptElementType, SectionHeading, type SectionHeadingLevel, type SectionHeadingProps, Select, type SelectOption, type SelectProps, Skeleton, type SkeletonProps, Slider, type SliderProps, Spinner, type SpinnerProps, type SpotlightVariant, SquareLoaderIcon, Stack, type StackDirection, type StackGap, type StackProps, type Step, type StepStatus, Stepper, type StepperProps, StreamingCursor, type StreamingCursorProps, Switch, type SwitchProps, TASK_STATUSES, Tab, TabList, type TabListProps, TabPanel, type TabPanelProps, type TabProps, Table, TableBody, type TableBodyProps, TableCaption, type TableCaptionProps, TableCell, type TableCellProps, TableFooter, type TableFooterProps, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsProps, type Task, type TaskStatus, TextBlockSection, type TextBlockSectionProps, TextCard, type TextCardProps, Textarea, type TextareaCaretCoords, type TextareaProps, ThinkingIndicator, type ThinkingIndicatorProps, type ToastData, type ToastPosition, ToastProvider, type ToastProviderProps, type ToastVariant, TodosList, type TodosListProps, type ToolDefinition, type ToolGroup, ToolPanelContainer, type ToolPanelContainerProps, type ToolPanelState, ToolSidebar, type ToolSidebarProps, Tooltip, type TooltipProps, type TreeNode, type UseArtifactTreeNavigationReturn, type UseComboboxNavOptions, type UseScrollAnchorOptions, type UseScrollAnchorReturn, type VideoAspectRatio, type VideoAspectRatioPreset, VideoCard, type VideoCardProps, addNodeToTree, areAllTasksSettled, createEmptyTree, createPreviewUrl, findAncestor, generateId, getActivePath, getGreyedFuture, getSiblingInfo, getTextareaCaretCoords, isBranchPoint, isImageFile, messagesToTree, revokePreviewUrl, setActiveLeaf, switchBranch, updateMessageContent, useArtifactTreeNavigation, useComboboxNav, useResizable, useScrollAnchor, useToast, version };
package/dist/index.d.ts CHANGED
@@ -536,6 +536,53 @@ interface ProgressProps extends React$1.HTMLAttributes<HTMLDivElement> {
536
536
  }
537
537
  declare const Progress: React$1.ForwardRefExoticComponent<ProgressProps & React$1.RefAttributes<HTMLDivElement>>;
538
538
 
539
+ type BusyOverlayTone = 'dim' | 'frost';
540
+ type BusyOverlayBlurStrength = 'sm' | 'md' | 'lg';
541
+ interface BusyOverlayProps extends React$1.HTMLAttributes<HTMLDivElement> {
542
+ /**
543
+ * Optional content rendered next to the spinner — typically a short label
544
+ * like "Loading session…". Pass any ReactNode so callers can compose icons,
545
+ * countdowns, or even nested links if needed.
546
+ */
547
+ label?: React$1.ReactNode;
548
+ /**
549
+ * Backdrop blur strength. `sm` is the default and reads as "this region is
550
+ * busy, the scene behind is still legible". Use `md` or `lg` only when you
551
+ * deliberately want to discourage the user from interacting with the
552
+ * region behind — e.g. a destructive retry-in-flight.
553
+ * @default 'sm'
554
+ */
555
+ blurStrength?: BusyOverlayBlurStrength;
556
+ /**
557
+ * Visual weight of the overlay tint.
558
+ *
559
+ * - `dim` (default) — translucent dark wash, lighter on the eyes,
560
+ * communicates "this area is temporarily busy".
561
+ * - `frost` — heavier wash + blur, communicates "blocking-modal feel"
562
+ * suitable for in-flight retries where the user shouldn't keep
563
+ * reading the dimmed content.
564
+ *
565
+ * @default 'dim'
566
+ */
567
+ tone?: BusyOverlayTone;
568
+ }
569
+ /**
570
+ * Centered busy indicator that mounts `position: absolute inset-0` over its
571
+ * positioned parent. Use it when a known region is *temporarily unavailable
572
+ * but its surrounding chrome still matters* — chat tree mid-load, retry
573
+ * in-flight, "reconnecting" hops. Prefer `Skeleton` for data-shaped regions
574
+ * where the layout is known and you can preview content shape; prefer the
575
+ * `ChatInputNotice` slot when the unavailability is on a control rather
576
+ * than a region.
577
+ *
578
+ * The host must establish a positioning context (`relative`, `absolute`, or
579
+ * `fixed`) — `BusyOverlay` does not create its own.
580
+ */
581
+ declare function BusyOverlay({ label, blurStrength, tone, className, ...rest }: BusyOverlayProps): React$1.JSX.Element;
582
+ declare namespace BusyOverlay {
583
+ var displayName: string;
584
+ }
585
+
539
586
  type ToastVariant = 'default' | 'success' | 'error' | 'warning' | 'info';
540
587
  type ToastPosition = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left' | 'top-center' | 'bottom-center';
541
588
  interface ToastData {
@@ -1148,18 +1195,25 @@ declare function revokePreviewUrl(url: string | undefined): void;
1148
1195
  */
1149
1196
  declare function generateId(): string;
1150
1197
 
1198
+ type ChatInputNoticeVariant = 'info' | 'warning' | 'error';
1151
1199
  interface ChatInputNotice {
1152
1200
  /**
1153
- * Visual severity: 'warning' shows a dismissible amber notice, 'error' shows a persistent red
1154
- * notice
1201
+ * Visual severity. `info` is muted neutral (slate) and non-dismissible by
1202
+ * default — use it for transient "control unavailable" states like draft
1203
+ * hydration or backend reconnects. `warning` is amber and dismissible by
1204
+ * default — use it for soft-limit warnings the user can still act past.
1205
+ * `error` is red and non-dismissible by default — use it for hard-block
1206
+ * states like credit exhaustion.
1155
1207
  */
1156
- variant: 'warning' | 'error';
1208
+ variant: ChatInputNoticeVariant;
1157
1209
  /**
1158
- * Content to render — plain text or any React node (e.g. text + button for error state)
1210
+ * Content to render — plain text or any React node (e.g. text + button for
1211
+ * error state, or a `<Spinner/>` + label for info).
1159
1212
  */
1160
1213
  content: React$1.ReactNode;
1161
1214
  /**
1162
- * Whether to show a dismiss (×) button. Defaults to true for warning, ignored for error.
1215
+ * Whether to show a dismiss (×) button. Defaults to true for `warning`,
1216
+ * false for `info` and `error`. Override either way explicitly.
1163
1217
  */
1164
1218
  dismissible?: boolean;
1165
1219
  /**
@@ -2135,6 +2189,33 @@ interface ChatInterfaceProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>
2135
2189
  * Arrow / Enter / Escape while an autocomplete panel is open.
2136
2190
  */
2137
2191
  onTextareaKeyDown?: (e: React$1.KeyboardEvent<HTMLTextAreaElement>) => void;
2192
+ /**
2193
+ * When true, the messages region renders a `BusyOverlay` over its content
2194
+ * — use it while the chat tree for the current session is still loading.
2195
+ * The surrounding chrome (sidebars, input, tool panels, header) stays
2196
+ * mounted, so the user keeps every other affordance during the transition
2197
+ * and the input can still surface its own notice (e.g. "Loading your
2198
+ * draft…").
2199
+ */
2200
+ chatLoading?: boolean;
2201
+ /**
2202
+ * Forwarded to the internal `ArtifactsPanel`'s `loading` prop, which
2203
+ * renders aurelius's existing artifact skeletons. Use it during cold-start
2204
+ * or while the artifact snapshot is retrying — the panel chrome stays
2205
+ * mounted and the skeletons stand in for the unknown nodes.
2206
+ */
2207
+ artifactsLoading?: boolean;
2208
+ /**
2209
+ * Forwarded to the chat-input's `disabled` prop. Pair with `inputNotice`
2210
+ * to gate the input on consumer-owned conditions (credit exhaustion,
2211
+ * draft hydrating, hypocaust unreachable) without blocking the rest of
2212
+ * the surface. ChatInput stays domain-agnostic; consumers compute the
2213
+ * `{disabled, notice}` pair and ChatInterface forwards both.
2214
+ *
2215
+ * OR-merged with the streaming-driven internal disable, so consumer
2216
+ * disable doesn't accidentally re-enable an input that's mid-stream.
2217
+ */
2218
+ inputDisabled?: boolean;
2138
2219
  }
2139
2220
  /**
2140
2221
  * ChatInterface is the main orchestrator for a full-featured chat experience.
@@ -2323,9 +2404,14 @@ interface ArtifactsPanelProps extends React$1.HTMLAttributes<HTMLDivElement> {
2323
2404
  */
2324
2405
  nodes?: ArtifactNode[];
2325
2406
  /**
2326
- * Whether artifacts are still loading (show skeletons)
2407
+ * Loading signal for the panel. Pass `true` for the cold-start case — the
2408
+ * panel renders placeholder skeleton cards in place of real artifacts so
2409
+ * the user sees "stuff is on its way" instead of an empty grid. Pass a
2410
+ * `CardSlotLoading` config to skeletonise specific slots on existing
2411
+ * cards (e.g. while a single artifact's media is hydrating). Falsy ⇒
2412
+ * render real content.
2327
2413
  */
2328
- loading?: CardSlotLoading;
2414
+ loading?: boolean | CardSlotLoading;
2329
2415
  /**
2330
2416
  * When set to a non-null id, surfaces the same expanded artifact card the
2331
2417
  * panel grid would. Drives chip click-through from outside the panel.
@@ -2879,4 +2965,4 @@ declare function getTextareaCaretCoords(textarea: HTMLTextAreaElement): Textarea
2879
2965
 
2880
2966
  declare const version = "2.0.0";
2881
2967
 
2882
- export { ARTIFACT_TYPES, Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, type AddNodeOptions, Alert, AlertDialog, type AlertDialogProps, type AlertProps, type AlertVariant, type Artifact, ArtifactCard, type ArtifactCardProps, ArtifactGroup, type ArtifactGroupProps, ArtifactImageGridSection, type ArtifactImageGridSectionProps, type ArtifactNode, ArtifactSpotlightSection, type ArtifactSpotlightSectionProps, type ArtifactType, ArtifactVariantStack, type ArtifactVariantStackProps, ArtifactsPanel, type ArtifactsPanelProps, ArtifactsPanelToggle, type ArtifactsPanelToggleProps, type AspectRatio, type AspectRatioPreset, type Attachment, type AttachmentItem, AttachmentPreview, type AttachmentPreviewProps, type AttachmentStatus, AudioCard, type AudioCardProps, Avatar, type AvatarProps, type AvatarSize, Badge, type BadgeProps, type BadgeVariant, BranchNavigator, type BranchNavigatorProps, BrandIcon, type BrandIconProps, type BrandIconSize, type BrandIconVariant, Breadcrumb, type BreadcrumbEntry, BreadcrumbItem, type BreadcrumbItemProps, BreadcrumbLink, type BreadcrumbLinkProps, type BreadcrumbProps, Button, type ButtonProps, type ButtonSize, type ButtonVariant, Card, type CardBodyProps, type CardFooterProps, type CardHeaderProps, type CardMediaProps, type CardProps, type CardVariant, ChatBubbleIcon, ChatInput, type ChatInputNotice, type ChatInputPosition, type ChatInputProps, ChatInterface, type ChatInterfaceHandle, type ChatInterfaceProps, type ChatNode, ChatView, type ChatViewCheckpointItem, type ChatViewDividerItem, type ChatViewItem, type ChatViewMessageItem, type ChatViewProps, CheckSquareIcon, Checkbox, type CheckboxProps, Checkpoint, type CheckpointBranchInfo, type CheckpointExecutionKind, type CheckpointNode, type CheckpointProps, type CheckpointStatus, ChevronLeftIcon, ChevronRightIcon, CloseIcon, Col, type ColOffset, type ColOrder, type ColProps, type ColSpan, ColorPaletteSection, type ColorPaletteSectionProps, ColorSwatch, type ColorSwatchProps, Combobox, type ComboboxNav, type ComboboxProps, ConfirmDialog, type ConfirmDialogProps, Container, type ContainerProps, type ContainerSize, type Conversation, type ConversationTree, CoverSection, type CoverSectionProps, CrossSquareIcon, type Deliverable, type DeliverableArtifactRef, DeliverableCard, type DeliverableCardProps, type DeliverableImageItem, DeliverableRenderer, type DeliverableRendererProps, type DeliverableSection, type DeliverableSwatch, type DeliverableTheme, Divider, type DividerProps, Drawer, type DrawerPosition, type DrawerProps, EmptySquareIcon, ExpandIcon, type ExternalToolDefinition, FileChip, type FileChipProps, type FileChipStatus, GreyedDivider, type GreyedDividerProps, HelperText, type HelperTextProps, HistoryIcon, HistoryPanel, type HistoryPanelProps, type IconProps, ImageCard, type ImageCardProps, type ImageGridAspectRatio, Input, type InputAddonProps, type InputElementProps, InputGroup, type InputGroupProps, InputLeftAddon, InputLeftElement, type InputProps, InputRightAddon, InputRightElement, InputWrapper, type InputWrapperProps, Label, type LabelProps, LayersIcon, Lightbox, type LightboxProps, List, ListItem, type ListItemProps, ListItemText, type ListItemTextProps, type ListProps, ListSubheader, type ListSubheaderProps, MarkdownContent, type MarkdownContentProps, MediaIcon, MentionChip, type MentionChipProps, Menu, MenuContent, type MenuContentProps, MenuItem, type MenuItemProps, MenuLabel, type MenuProps, MenuSeparator, MenuTrigger, type MenuTriggerProps, Message, MessageActions, type MessageActionsConfig, type MessageActionsProps, type MessageActionsVariant, type MessageBranchInfo, type MessageNode, type MessageProps, type MessageVariant, Modal, type ModalProps, NODE_TYPES, Navbar, NavbarBrand, type NavbarBrandProps, NavbarContent, type NavbarContentProps, NavbarDivider, NavbarItem, type NavbarItemProps, NavbarLink, type NavbarLinkProps, type NavbarProps, type NodeTopology, type NodeType, Pagination, type PaginationProps, PdfCard, type PdfCardProps, PlusIcon, Popover, type PopoverAlign, type PopoverPosition, type PopoverProps, Progress, type ProgressProps, PromptDialog, type PromptDialogProps, QuoteBlockSection, type QuoteBlockSectionProps, Radio, type RadioProps, Row, type RowAlign, type RowGutter, type RowJustify, type RowProps, SCRIPT_ELEMENT_TYPES, ScriptCard, type ScriptCardProps, type ScriptElement, type ScriptElementType, SectionHeading, type SectionHeadingLevel, type SectionHeadingProps, Select, type SelectOption, type SelectProps, Skeleton, type SkeletonProps, Slider, type SliderProps, Spinner, type SpinnerProps, type SpotlightVariant, SquareLoaderIcon, Stack, type StackDirection, type StackGap, type StackProps, type Step, type StepStatus, Stepper, type StepperProps, StreamingCursor, type StreamingCursorProps, Switch, type SwitchProps, TASK_STATUSES, Tab, TabList, type TabListProps, TabPanel, type TabPanelProps, type TabProps, Table, TableBody, type TableBodyProps, TableCaption, type TableCaptionProps, TableCell, type TableCellProps, TableFooter, type TableFooterProps, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsProps, type Task, type TaskStatus, TextBlockSection, type TextBlockSectionProps, TextCard, type TextCardProps, Textarea, type TextareaCaretCoords, type TextareaProps, ThinkingIndicator, type ThinkingIndicatorProps, type ToastData, type ToastPosition, ToastProvider, type ToastProviderProps, type ToastVariant, TodosList, type TodosListProps, type ToolDefinition, type ToolGroup, ToolPanelContainer, type ToolPanelContainerProps, type ToolPanelState, ToolSidebar, type ToolSidebarProps, Tooltip, type TooltipProps, type TreeNode, type UseArtifactTreeNavigationReturn, type UseComboboxNavOptions, type UseScrollAnchorOptions, type UseScrollAnchorReturn, type VideoAspectRatio, type VideoAspectRatioPreset, VideoCard, type VideoCardProps, addNodeToTree, areAllTasksSettled, createEmptyTree, createPreviewUrl, findAncestor, generateId, getActivePath, getGreyedFuture, getSiblingInfo, getTextareaCaretCoords, isBranchPoint, isImageFile, messagesToTree, revokePreviewUrl, setActiveLeaf, switchBranch, updateMessageContent, useArtifactTreeNavigation, useComboboxNav, useResizable, useScrollAnchor, useToast, version };
2968
+ export { ARTIFACT_TYPES, Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, type AddNodeOptions, Alert, AlertDialog, type AlertDialogProps, type AlertProps, type AlertVariant, type Artifact, ArtifactCard, type ArtifactCardProps, ArtifactGroup, type ArtifactGroupProps, ArtifactImageGridSection, type ArtifactImageGridSectionProps, type ArtifactNode, ArtifactSpotlightSection, type ArtifactSpotlightSectionProps, type ArtifactType, ArtifactVariantStack, type ArtifactVariantStackProps, ArtifactsPanel, type ArtifactsPanelProps, ArtifactsPanelToggle, type ArtifactsPanelToggleProps, type AspectRatio, type AspectRatioPreset, type Attachment, type AttachmentItem, AttachmentPreview, type AttachmentPreviewProps, type AttachmentStatus, AudioCard, type AudioCardProps, Avatar, type AvatarProps, type AvatarSize, Badge, type BadgeProps, type BadgeVariant, BranchNavigator, type BranchNavigatorProps, BrandIcon, type BrandIconProps, type BrandIconSize, type BrandIconVariant, Breadcrumb, type BreadcrumbEntry, BreadcrumbItem, type BreadcrumbItemProps, BreadcrumbLink, type BreadcrumbLinkProps, type BreadcrumbProps, BusyOverlay, type BusyOverlayBlurStrength, type BusyOverlayProps, type BusyOverlayTone, Button, type ButtonProps, type ButtonSize, type ButtonVariant, Card, type CardBodyProps, type CardFooterProps, type CardHeaderProps, type CardMediaProps, type CardProps, type CardVariant, ChatBubbleIcon, ChatInput, type ChatInputNotice, type ChatInputNoticeVariant, type ChatInputPosition, type ChatInputProps, ChatInterface, type ChatInterfaceHandle, type ChatInterfaceProps, type ChatNode, ChatView, type ChatViewCheckpointItem, type ChatViewDividerItem, type ChatViewItem, type ChatViewMessageItem, type ChatViewProps, CheckSquareIcon, Checkbox, type CheckboxProps, Checkpoint, type CheckpointBranchInfo, type CheckpointExecutionKind, type CheckpointNode, type CheckpointProps, type CheckpointStatus, ChevronLeftIcon, ChevronRightIcon, CloseIcon, Col, type ColOffset, type ColOrder, type ColProps, type ColSpan, ColorPaletteSection, type ColorPaletteSectionProps, ColorSwatch, type ColorSwatchProps, Combobox, type ComboboxNav, type ComboboxProps, ConfirmDialog, type ConfirmDialogProps, Container, type ContainerProps, type ContainerSize, type Conversation, type ConversationTree, CoverSection, type CoverSectionProps, CrossSquareIcon, type Deliverable, type DeliverableArtifactRef, DeliverableCard, type DeliverableCardProps, type DeliverableImageItem, DeliverableRenderer, type DeliverableRendererProps, type DeliverableSection, type DeliverableSwatch, type DeliverableTheme, Divider, type DividerProps, Drawer, type DrawerPosition, type DrawerProps, EmptySquareIcon, ExpandIcon, type ExternalToolDefinition, FileChip, type FileChipProps, type FileChipStatus, GreyedDivider, type GreyedDividerProps, HelperText, type HelperTextProps, HistoryIcon, HistoryPanel, type HistoryPanelProps, type IconProps, ImageCard, type ImageCardProps, type ImageGridAspectRatio, Input, type InputAddonProps, type InputElementProps, InputGroup, type InputGroupProps, InputLeftAddon, InputLeftElement, type InputProps, InputRightAddon, InputRightElement, InputWrapper, type InputWrapperProps, Label, type LabelProps, LayersIcon, Lightbox, type LightboxProps, List, ListItem, type ListItemProps, ListItemText, type ListItemTextProps, type ListProps, ListSubheader, type ListSubheaderProps, MarkdownContent, type MarkdownContentProps, MediaIcon, MentionChip, type MentionChipProps, Menu, MenuContent, type MenuContentProps, MenuItem, type MenuItemProps, MenuLabel, type MenuProps, MenuSeparator, MenuTrigger, type MenuTriggerProps, Message, MessageActions, type MessageActionsConfig, type MessageActionsProps, type MessageActionsVariant, type MessageBranchInfo, type MessageNode, type MessageProps, type MessageVariant, Modal, type ModalProps, NODE_TYPES, Navbar, NavbarBrand, type NavbarBrandProps, NavbarContent, type NavbarContentProps, NavbarDivider, NavbarItem, type NavbarItemProps, NavbarLink, type NavbarLinkProps, type NavbarProps, type NodeTopology, type NodeType, Pagination, type PaginationProps, PdfCard, type PdfCardProps, PlusIcon, Popover, type PopoverAlign, type PopoverPosition, type PopoverProps, Progress, type ProgressProps, PromptDialog, type PromptDialogProps, QuoteBlockSection, type QuoteBlockSectionProps, Radio, type RadioProps, Row, type RowAlign, type RowGutter, type RowJustify, type RowProps, SCRIPT_ELEMENT_TYPES, ScriptCard, type ScriptCardProps, type ScriptElement, type ScriptElementType, SectionHeading, type SectionHeadingLevel, type SectionHeadingProps, Select, type SelectOption, type SelectProps, Skeleton, type SkeletonProps, Slider, type SliderProps, Spinner, type SpinnerProps, type SpotlightVariant, SquareLoaderIcon, Stack, type StackDirection, type StackGap, type StackProps, type Step, type StepStatus, Stepper, type StepperProps, StreamingCursor, type StreamingCursorProps, Switch, type SwitchProps, TASK_STATUSES, Tab, TabList, type TabListProps, TabPanel, type TabPanelProps, type TabProps, Table, TableBody, type TableBodyProps, TableCaption, type TableCaptionProps, TableCell, type TableCellProps, TableFooter, type TableFooterProps, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsProps, type Task, type TaskStatus, TextBlockSection, type TextBlockSectionProps, TextCard, type TextCardProps, Textarea, type TextareaCaretCoords, type TextareaProps, ThinkingIndicator, type ThinkingIndicatorProps, type ToastData, type ToastPosition, ToastProvider, type ToastProviderProps, type ToastVariant, TodosList, type TodosListProps, type ToolDefinition, type ToolGroup, ToolPanelContainer, type ToolPanelContainerProps, type ToolPanelState, ToolSidebar, type ToolSidebarProps, Tooltip, type TooltipProps, type TreeNode, type UseArtifactTreeNavigationReturn, type UseComboboxNavOptions, type UseScrollAnchorOptions, type UseScrollAnchorReturn, type VideoAspectRatio, type VideoAspectRatioPreset, VideoCard, type VideoCardProps, addNodeToTree, areAllTasksSettled, createEmptyTree, createPreviewUrl, findAncestor, generateId, getActivePath, getGreyedFuture, getSiblingInfo, getTextareaCaretCoords, isBranchPoint, isImageFile, messagesToTree, revokePreviewUrl, setActiveLeaf, switchBranch, updateMessageContent, useArtifactTreeNavigation, useComboboxNav, useResizable, useScrollAnchor, useToast, version };