@lukeashford/aurelius 2.16.0 → 2.18.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
@@ -23,6 +23,7 @@ interface CardProps extends React$1.HTMLAttributes<HTMLDivElement> {
23
23
  interactive?: boolean;
24
24
  selected?: boolean;
25
25
  noPadding?: boolean;
26
+ isLoading?: boolean;
26
27
  }
27
28
  interface CardHeaderProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, 'title'> {
28
29
  title?: React$1.ReactNode;
@@ -35,11 +36,8 @@ interface CardFooterProps extends React$1.HTMLAttributes<HTMLDivElement> {
35
36
  align?: 'start' | 'center' | 'end' | 'between';
36
37
  }
37
38
  interface CardMediaProps extends React$1.HTMLAttributes<HTMLDivElement> {
38
- src?: string;
39
- alt?: string;
40
- aspect?: 'video' | 'square' | 'wide';
39
+ aspect?: 'video' | 'square' | 'wide' | 'none';
41
40
  position?: 'top' | 'bottom';
42
- isVideo?: boolean;
43
41
  }
44
42
  declare const Card: React$1.ForwardRefExoticComponent<CardProps & React$1.RefAttributes<HTMLDivElement>> & {
45
43
  Header: React$1.ForwardRefExoticComponent<CardHeaderProps & React$1.RefAttributes<HTMLDivElement>>;
@@ -848,7 +846,14 @@ interface CollapsedSidebarToggleProps extends React$1.ButtonHTMLAttributes<HTMLB
848
846
  }
849
847
  declare const CollapsedSidebarToggle: React$1.ForwardRefExoticComponent<CollapsedSidebarToggleProps & React$1.RefAttributes<HTMLButtonElement>>;
850
848
 
851
- type TaskStatus = 'pending' | 'in_progress' | 'done' | 'cancelled' | 'failed';
849
+ declare const TASK_STATUSES: {
850
+ readonly PENDING: "pending";
851
+ readonly IN_PROGRESS: "in_progress";
852
+ readonly DONE: "done";
853
+ readonly CANCELLED: "cancelled";
854
+ readonly FAILED: "failed";
855
+ };
856
+ type TaskStatus = typeof TASK_STATUSES[keyof typeof TASK_STATUSES];
852
857
  interface Task {
853
858
  /**
854
859
  * Unique identifier for the task
@@ -883,9 +888,11 @@ interface TodosListProps extends React$1.HTMLAttributes<HTMLDivElement> {
883
888
  *
884
889
  * Features:
885
890
  * - Nested tasks with indentation
886
- * - Status indicators: done (checkmark), in_progress (snake animation), pending (empty), cancelled, failed
891
+ * - Status indicators: done (checkmark), in_progress (snake animation), pending (empty),
892
+ * cancelled, failed
887
893
  * - Done tasks are crossed out with golden checkmark
888
- * - Cancelled/failed tasks are crossed out with subtle styling and sorted to bottom of their local group
894
+ * - Cancelled/failed tasks are crossed out with subtle styling and sorted to bottom of their local
895
+ * group
889
896
  * - Max 1/4 screen height with scroll
890
897
  * - Subtasks appear when parent task is in_progress or done
891
898
  *
@@ -939,7 +946,17 @@ declare function useScrollAnchor(options?: UseScrollAnchorOptions): UseScrollAnc
939
946
  /**
940
947
  * Script element types following standard screenplay format
941
948
  */
942
- type ScriptElementType = 'scene-heading' | 'action' | 'character' | 'dialogue' | 'parenthetical' | 'transition' | 'title' | 'subtitle';
949
+ declare const SCRIPT_ELEMENT_TYPES: {
950
+ readonly SCENE_HEADING: "scene-heading";
951
+ readonly ACTION: "action";
952
+ readonly CHARACTER: "character";
953
+ readonly DIALOGUE: "dialogue";
954
+ readonly PARENTHETICAL: "parenthetical";
955
+ readonly TRANSITION: "transition";
956
+ readonly TITLE: "title";
957
+ readonly SUBTITLE: "subtitle";
958
+ };
959
+ type ScriptElementType = typeof SCRIPT_ELEMENT_TYPES[keyof typeof SCRIPT_ELEMENT_TYPES];
943
960
  /**
944
961
  * A single element in the script
945
962
  */
@@ -953,15 +970,15 @@ interface ScriptElement {
953
970
  */
954
971
  content: string;
955
972
  }
956
- interface ScriptCardProps extends React$1.HTMLAttributes<HTMLDivElement> {
973
+ interface ScriptCardProps extends Omit<CardProps, 'title'> {
957
974
  /**
958
975
  * Title of the script (shown at top)
959
976
  */
960
- title?: string;
977
+ title?: React$1.ReactNode;
961
978
  /**
962
979
  * Subtitle/metadata (e.g., "30-second spot • Directed by AI Creative")
963
980
  */
964
- subtitle?: string;
981
+ subtitle?: React$1.ReactNode;
965
982
  /**
966
983
  * Array of script elements in order.
967
984
  * Available types: 'scene-heading', 'action', 'character', 'dialogue', 'parenthetical',
@@ -998,7 +1015,18 @@ interface ScriptCardProps extends React$1.HTMLAttributes<HTMLDivElement> {
998
1015
  */
999
1016
  declare const ScriptCard: React$1.ForwardRefExoticComponent<ScriptCardProps & React$1.RefAttributes<HTMLDivElement>>;
1000
1017
 
1001
- type ArtifactType = 'TEXT' | 'IMAGE' | 'VIDEO' | 'AUDIO' | 'SCRIPT' | 'PDF';
1018
+ /**
1019
+ * Artifact types supported by the system
1020
+ */
1021
+ declare const ARTIFACT_TYPES: {
1022
+ readonly TEXT: "TEXT";
1023
+ readonly IMAGE: "IMAGE";
1024
+ readonly VIDEO: "VIDEO";
1025
+ readonly AUDIO: "AUDIO";
1026
+ readonly SCRIPT: "SCRIPT";
1027
+ readonly PDF: "PDF";
1028
+ };
1029
+ type ArtifactType = typeof ARTIFACT_TYPES[keyof typeof ARTIFACT_TYPES];
1002
1030
  interface Artifact {
1003
1031
  id: string;
1004
1032
  type: ArtifactType;
@@ -1039,6 +1067,26 @@ interface Artifact {
1039
1067
  */
1040
1068
  scriptElements?: ScriptElement[];
1041
1069
  }
1070
+ interface ArtifactCardProps extends React$1.HTMLAttributes<HTMLDivElement> {
1071
+ /**
1072
+ * The artifact object to display
1073
+ */
1074
+ artifact: Artifact;
1075
+ /**
1076
+ * Callback when the artifact should be expanded/opened
1077
+ */
1078
+ onExpand?: (artifact: Artifact) => void;
1079
+ /**
1080
+ * Whether the artifact is still loading
1081
+ */
1082
+ isLoading?: boolean;
1083
+ }
1084
+ /**
1085
+ * A dispatcher component that renders the appropriate specialist card
1086
+ * based on the artifact type.
1087
+ */
1088
+ declare const ArtifactCard: React$1.ForwardRefExoticComponent<ArtifactCardProps & React$1.RefAttributes<HTMLDivElement>>;
1089
+
1042
1090
  interface UseArtifactsReturn {
1043
1091
  /**
1044
1092
  * Current list of artifacts
@@ -1586,8 +1634,8 @@ declare const ColorSwatch: React$1.ForwardRefExoticComponent<ColorSwatchProps &
1586
1634
  type AspectRatioPreset = 'landscape' | 'portrait' | 'square';
1587
1635
  type AspectRatio = AspectRatioPreset | `${number}/${number}`;
1588
1636
  interface ImageCardProps extends Omit<CardProps, 'title'> {
1589
- src: string;
1590
- alt: string;
1637
+ src?: string;
1638
+ alt?: string;
1591
1639
  title?: React$1.ReactNode;
1592
1640
  subtitle?: React$1.ReactNode;
1593
1641
  aspectRatio?: AspectRatio;
@@ -1601,7 +1649,7 @@ declare const ImageCard: React$1.ForwardRefExoticComponent<ImageCardProps & Reac
1601
1649
  type VideoAspectRatioPreset = 'video' | 'cinema' | 'square';
1602
1650
  type VideoAspectRatio = VideoAspectRatioPreset | `${number}/${number}`;
1603
1651
  interface VideoCardProps extends Omit<CardProps, 'title'> {
1604
- src: string;
1652
+ src?: string;
1605
1653
  title?: React$1.ReactNode;
1606
1654
  subtitle?: React$1.ReactNode;
1607
1655
  aspectRatio?: VideoAspectRatio;
@@ -1618,7 +1666,7 @@ interface VideoCardProps extends Omit<CardProps, 'title'> {
1618
1666
  declare const VideoCard: React$1.ForwardRefExoticComponent<VideoCardProps & React$1.RefAttributes<HTMLDivElement>>;
1619
1667
 
1620
1668
  interface AudioCardProps extends Omit<CardProps, 'title'> {
1621
- src: string;
1669
+ src?: string;
1622
1670
  title?: React$1.ReactNode;
1623
1671
  subtitle?: React$1.ReactNode;
1624
1672
  playing?: boolean;
@@ -1637,7 +1685,7 @@ interface PdfCardProps extends Omit<CardProps, 'title'> {
1637
1685
  /**
1638
1686
  * URL of the PDF file
1639
1687
  */
1640
- url: string;
1688
+ src?: string;
1641
1689
  /**
1642
1690
  * Title of the document
1643
1691
  */
@@ -1664,6 +1712,39 @@ interface PdfCardProps extends Omit<CardProps, 'title'> {
1664
1712
  */
1665
1713
  declare const PdfCard: React$1.ForwardRefExoticComponent<PdfCardProps & React$1.RefAttributes<HTMLDivElement>>;
1666
1714
 
1715
+ interface TextCardProps extends Omit<CardProps, 'title'> {
1716
+ /**
1717
+ * Text content to display (Markdown, HTML, or plain text)
1718
+ */
1719
+ content: string;
1720
+ /**
1721
+ * Optional title for the card
1722
+ */
1723
+ title?: React$1.ReactNode;
1724
+ /**
1725
+ * Optional subtitle or metadata
1726
+ */
1727
+ subtitle?: React$1.ReactNode;
1728
+ /**
1729
+ * Whether the content should be treated as Markdown
1730
+ * @default true
1731
+ */
1732
+ isMarkdown?: boolean;
1733
+ /**
1734
+ * Maximum height of the content area before scrolling
1735
+ * @default '16rem'
1736
+ */
1737
+ maxHeight?: string | number;
1738
+ /**
1739
+ * Optional class name for the content container
1740
+ */
1741
+ contentClassName?: string;
1742
+ }
1743
+ /**
1744
+ * A card for displaying text content, supporting Markdown and HTML formatting.
1745
+ */
1746
+ declare const TextCard: React$1.ForwardRefExoticComponent<TextCardProps & React$1.RefAttributes<HTMLDivElement>>;
1747
+
1667
1748
  type SectionHeadingLevel = 'h2' | 'h3';
1668
1749
  interface SectionHeadingProps extends React$1.HTMLAttributes<HTMLHeadingElement> {
1669
1750
  level?: SectionHeadingLevel;
@@ -1682,4 +1763,4 @@ declare const SectionHeading: React$1.ForwardRefExoticComponent<SectionHeadingPr
1682
1763
 
1683
1764
  declare const version = "2.0.0";
1684
1765
 
1685
- export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, Alert, AlertDialog, type AlertDialogProps, type AlertProps, type AlertVariant, type Artifact, type ArtifactType, 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, 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, ChatInput, type ChatInputPosition, type ChatInputProps, ChatInterface, type ChatInterfaceProps, type ChatMessage, ChatView, type ChatViewItem, type ChatViewProps, CheckSquareIcon, Checkbox, type CheckboxProps, ChevronLeftIcon, ChevronRightIcon, CloseIcon, Col, type ColOffset, type ColOrder, type ColProps, type ColSpan, CollapsedSidebarToggle, type CollapsedSidebarToggleProps, ColorSwatch, type ColorSwatchProps, ConfirmDialog, type ConfirmDialogProps, Container, type ContainerProps, type ContainerSize, type Conversation, ConversationSidebar, type ConversationSidebarProps, type ConversationTree, CrossSquareIcon, Divider, type DividerProps, Drawer, type DrawerPosition, type DrawerProps, EmptySquareIcon, ExpandIcon, FileChip, type FileChipProps, type FileChipStatus, HelperText, type HelperTextProps, HistoryIcon, type IconProps, ImageCard, type ImageCardProps, Input, type InputAddonProps, type InputElementProps, InputGroup, type InputGroupProps, InputLeftAddon, InputLeftElement, type InputProps, InputRightAddon, InputRightElement, InputWrapper, type InputWrapperProps, Label, type LabelProps, LayersIcon, List, ListItem, type ListItemProps, ListItemText, type ListItemTextProps, type ListProps, ListSubheader, type ListSubheaderProps, MarkdownContent, type MarkdownContentProps, 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, Navbar, NavbarBrand, type NavbarBrandProps, NavbarContent, type NavbarContentProps, NavbarDivider, NavbarItem, type NavbarItemProps, NavbarLink, type NavbarLinkProps, type NavbarProps, Pagination, type PaginationProps, PdfCard, type PdfCardProps, PlusIcon, Popover, type PopoverAlign, type PopoverPosition, type PopoverProps, Progress, type ProgressProps, PromptDialog, type PromptDialogProps, Radio, type RadioProps, Row, type RowAlign, type RowGutter, type RowJustify, type RowProps, 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, SquareLoaderIcon, Stack, type StackDirection, type StackGap, type StackProps, type Step, type StepStatus, Stepper, type StepperProps, StreamingCursor, type StreamingCursorProps, Switch, type SwitchProps, 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, Textarea, type TextareaProps, ThinkingIndicator, type ThinkingIndicatorProps, type ToastData, type ToastPosition, ToastProvider, type ToastProviderProps, type ToastVariant, TodosList, type TodosListProps, Tooltip, type TooltipProps, type UseArtifactsReturn, type UseScrollAnchorOptions, type UseScrollAnchorReturn, type VideoAspectRatio, type VideoAspectRatioPreset, VideoCard, type VideoCardProps, addMessageToTree, createEmptyTree, createPreviewUrl, generateId, getActivePathMessages, getSiblingInfo, isBranchPoint, isImageFile, messagesToTree, revokePreviewUrl, switchBranch, updateNodeContent, useArtifacts, useResizable, useScrollAnchor, useToast, version };
1766
+ export { ARTIFACT_TYPES, Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, Alert, AlertDialog, type AlertDialogProps, type AlertProps, type AlertVariant, type Artifact, ArtifactCard, type ArtifactCardProps, type ArtifactType, 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, 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, ChatInput, type ChatInputPosition, type ChatInputProps, ChatInterface, type ChatInterfaceProps, type ChatMessage, ChatView, type ChatViewItem, type ChatViewProps, CheckSquareIcon, Checkbox, type CheckboxProps, ChevronLeftIcon, ChevronRightIcon, CloseIcon, Col, type ColOffset, type ColOrder, type ColProps, type ColSpan, CollapsedSidebarToggle, type CollapsedSidebarToggleProps, ColorSwatch, type ColorSwatchProps, ConfirmDialog, type ConfirmDialogProps, Container, type ContainerProps, type ContainerSize, type Conversation, ConversationSidebar, type ConversationSidebarProps, type ConversationTree, CrossSquareIcon, Divider, type DividerProps, Drawer, type DrawerPosition, type DrawerProps, EmptySquareIcon, ExpandIcon, FileChip, type FileChipProps, type FileChipStatus, HelperText, type HelperTextProps, HistoryIcon, type IconProps, ImageCard, type ImageCardProps, Input, type InputAddonProps, type InputElementProps, InputGroup, type InputGroupProps, InputLeftAddon, InputLeftElement, type InputProps, InputRightAddon, InputRightElement, InputWrapper, type InputWrapperProps, Label, type LabelProps, LayersIcon, List, ListItem, type ListItemProps, ListItemText, type ListItemTextProps, type ListProps, ListSubheader, type ListSubheaderProps, MarkdownContent, type MarkdownContentProps, 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, Navbar, NavbarBrand, type NavbarBrandProps, NavbarContent, type NavbarContentProps, NavbarDivider, NavbarItem, type NavbarItemProps, NavbarLink, type NavbarLinkProps, type NavbarProps, Pagination, type PaginationProps, PdfCard, type PdfCardProps, PlusIcon, Popover, type PopoverAlign, type PopoverPosition, type PopoverProps, Progress, type ProgressProps, PromptDialog, type PromptDialogProps, 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, 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, TextCard, type TextCardProps, Textarea, type TextareaProps, ThinkingIndicator, type ThinkingIndicatorProps, type ToastData, type ToastPosition, ToastProvider, type ToastProviderProps, type ToastVariant, TodosList, type TodosListProps, Tooltip, type TooltipProps, type UseArtifactsReturn, type UseScrollAnchorOptions, type UseScrollAnchorReturn, type VideoAspectRatio, type VideoAspectRatioPreset, VideoCard, type VideoCardProps, addMessageToTree, createEmptyTree, createPreviewUrl, generateId, getActivePathMessages, getSiblingInfo, isBranchPoint, isImageFile, messagesToTree, revokePreviewUrl, switchBranch, updateNodeContent, useArtifacts, useResizable, useScrollAnchor, useToast, version };
package/dist/index.d.ts CHANGED
@@ -23,6 +23,7 @@ interface CardProps extends React$1.HTMLAttributes<HTMLDivElement> {
23
23
  interactive?: boolean;
24
24
  selected?: boolean;
25
25
  noPadding?: boolean;
26
+ isLoading?: boolean;
26
27
  }
27
28
  interface CardHeaderProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, 'title'> {
28
29
  title?: React$1.ReactNode;
@@ -35,11 +36,8 @@ interface CardFooterProps extends React$1.HTMLAttributes<HTMLDivElement> {
35
36
  align?: 'start' | 'center' | 'end' | 'between';
36
37
  }
37
38
  interface CardMediaProps extends React$1.HTMLAttributes<HTMLDivElement> {
38
- src?: string;
39
- alt?: string;
40
- aspect?: 'video' | 'square' | 'wide';
39
+ aspect?: 'video' | 'square' | 'wide' | 'none';
41
40
  position?: 'top' | 'bottom';
42
- isVideo?: boolean;
43
41
  }
44
42
  declare const Card: React$1.ForwardRefExoticComponent<CardProps & React$1.RefAttributes<HTMLDivElement>> & {
45
43
  Header: React$1.ForwardRefExoticComponent<CardHeaderProps & React$1.RefAttributes<HTMLDivElement>>;
@@ -848,7 +846,14 @@ interface CollapsedSidebarToggleProps extends React$1.ButtonHTMLAttributes<HTMLB
848
846
  }
849
847
  declare const CollapsedSidebarToggle: React$1.ForwardRefExoticComponent<CollapsedSidebarToggleProps & React$1.RefAttributes<HTMLButtonElement>>;
850
848
 
851
- type TaskStatus = 'pending' | 'in_progress' | 'done' | 'cancelled' | 'failed';
849
+ declare const TASK_STATUSES: {
850
+ readonly PENDING: "pending";
851
+ readonly IN_PROGRESS: "in_progress";
852
+ readonly DONE: "done";
853
+ readonly CANCELLED: "cancelled";
854
+ readonly FAILED: "failed";
855
+ };
856
+ type TaskStatus = typeof TASK_STATUSES[keyof typeof TASK_STATUSES];
852
857
  interface Task {
853
858
  /**
854
859
  * Unique identifier for the task
@@ -883,9 +888,11 @@ interface TodosListProps extends React$1.HTMLAttributes<HTMLDivElement> {
883
888
  *
884
889
  * Features:
885
890
  * - Nested tasks with indentation
886
- * - Status indicators: done (checkmark), in_progress (snake animation), pending (empty), cancelled, failed
891
+ * - Status indicators: done (checkmark), in_progress (snake animation), pending (empty),
892
+ * cancelled, failed
887
893
  * - Done tasks are crossed out with golden checkmark
888
- * - Cancelled/failed tasks are crossed out with subtle styling and sorted to bottom of their local group
894
+ * - Cancelled/failed tasks are crossed out with subtle styling and sorted to bottom of their local
895
+ * group
889
896
  * - Max 1/4 screen height with scroll
890
897
  * - Subtasks appear when parent task is in_progress or done
891
898
  *
@@ -939,7 +946,17 @@ declare function useScrollAnchor(options?: UseScrollAnchorOptions): UseScrollAnc
939
946
  /**
940
947
  * Script element types following standard screenplay format
941
948
  */
942
- type ScriptElementType = 'scene-heading' | 'action' | 'character' | 'dialogue' | 'parenthetical' | 'transition' | 'title' | 'subtitle';
949
+ declare const SCRIPT_ELEMENT_TYPES: {
950
+ readonly SCENE_HEADING: "scene-heading";
951
+ readonly ACTION: "action";
952
+ readonly CHARACTER: "character";
953
+ readonly DIALOGUE: "dialogue";
954
+ readonly PARENTHETICAL: "parenthetical";
955
+ readonly TRANSITION: "transition";
956
+ readonly TITLE: "title";
957
+ readonly SUBTITLE: "subtitle";
958
+ };
959
+ type ScriptElementType = typeof SCRIPT_ELEMENT_TYPES[keyof typeof SCRIPT_ELEMENT_TYPES];
943
960
  /**
944
961
  * A single element in the script
945
962
  */
@@ -953,15 +970,15 @@ interface ScriptElement {
953
970
  */
954
971
  content: string;
955
972
  }
956
- interface ScriptCardProps extends React$1.HTMLAttributes<HTMLDivElement> {
973
+ interface ScriptCardProps extends Omit<CardProps, 'title'> {
957
974
  /**
958
975
  * Title of the script (shown at top)
959
976
  */
960
- title?: string;
977
+ title?: React$1.ReactNode;
961
978
  /**
962
979
  * Subtitle/metadata (e.g., "30-second spot • Directed by AI Creative")
963
980
  */
964
- subtitle?: string;
981
+ subtitle?: React$1.ReactNode;
965
982
  /**
966
983
  * Array of script elements in order.
967
984
  * Available types: 'scene-heading', 'action', 'character', 'dialogue', 'parenthetical',
@@ -998,7 +1015,18 @@ interface ScriptCardProps extends React$1.HTMLAttributes<HTMLDivElement> {
998
1015
  */
999
1016
  declare const ScriptCard: React$1.ForwardRefExoticComponent<ScriptCardProps & React$1.RefAttributes<HTMLDivElement>>;
1000
1017
 
1001
- type ArtifactType = 'TEXT' | 'IMAGE' | 'VIDEO' | 'AUDIO' | 'SCRIPT' | 'PDF';
1018
+ /**
1019
+ * Artifact types supported by the system
1020
+ */
1021
+ declare const ARTIFACT_TYPES: {
1022
+ readonly TEXT: "TEXT";
1023
+ readonly IMAGE: "IMAGE";
1024
+ readonly VIDEO: "VIDEO";
1025
+ readonly AUDIO: "AUDIO";
1026
+ readonly SCRIPT: "SCRIPT";
1027
+ readonly PDF: "PDF";
1028
+ };
1029
+ type ArtifactType = typeof ARTIFACT_TYPES[keyof typeof ARTIFACT_TYPES];
1002
1030
  interface Artifact {
1003
1031
  id: string;
1004
1032
  type: ArtifactType;
@@ -1039,6 +1067,26 @@ interface Artifact {
1039
1067
  */
1040
1068
  scriptElements?: ScriptElement[];
1041
1069
  }
1070
+ interface ArtifactCardProps extends React$1.HTMLAttributes<HTMLDivElement> {
1071
+ /**
1072
+ * The artifact object to display
1073
+ */
1074
+ artifact: Artifact;
1075
+ /**
1076
+ * Callback when the artifact should be expanded/opened
1077
+ */
1078
+ onExpand?: (artifact: Artifact) => void;
1079
+ /**
1080
+ * Whether the artifact is still loading
1081
+ */
1082
+ isLoading?: boolean;
1083
+ }
1084
+ /**
1085
+ * A dispatcher component that renders the appropriate specialist card
1086
+ * based on the artifact type.
1087
+ */
1088
+ declare const ArtifactCard: React$1.ForwardRefExoticComponent<ArtifactCardProps & React$1.RefAttributes<HTMLDivElement>>;
1089
+
1042
1090
  interface UseArtifactsReturn {
1043
1091
  /**
1044
1092
  * Current list of artifacts
@@ -1586,8 +1634,8 @@ declare const ColorSwatch: React$1.ForwardRefExoticComponent<ColorSwatchProps &
1586
1634
  type AspectRatioPreset = 'landscape' | 'portrait' | 'square';
1587
1635
  type AspectRatio = AspectRatioPreset | `${number}/${number}`;
1588
1636
  interface ImageCardProps extends Omit<CardProps, 'title'> {
1589
- src: string;
1590
- alt: string;
1637
+ src?: string;
1638
+ alt?: string;
1591
1639
  title?: React$1.ReactNode;
1592
1640
  subtitle?: React$1.ReactNode;
1593
1641
  aspectRatio?: AspectRatio;
@@ -1601,7 +1649,7 @@ declare const ImageCard: React$1.ForwardRefExoticComponent<ImageCardProps & Reac
1601
1649
  type VideoAspectRatioPreset = 'video' | 'cinema' | 'square';
1602
1650
  type VideoAspectRatio = VideoAspectRatioPreset | `${number}/${number}`;
1603
1651
  interface VideoCardProps extends Omit<CardProps, 'title'> {
1604
- src: string;
1652
+ src?: string;
1605
1653
  title?: React$1.ReactNode;
1606
1654
  subtitle?: React$1.ReactNode;
1607
1655
  aspectRatio?: VideoAspectRatio;
@@ -1618,7 +1666,7 @@ interface VideoCardProps extends Omit<CardProps, 'title'> {
1618
1666
  declare const VideoCard: React$1.ForwardRefExoticComponent<VideoCardProps & React$1.RefAttributes<HTMLDivElement>>;
1619
1667
 
1620
1668
  interface AudioCardProps extends Omit<CardProps, 'title'> {
1621
- src: string;
1669
+ src?: string;
1622
1670
  title?: React$1.ReactNode;
1623
1671
  subtitle?: React$1.ReactNode;
1624
1672
  playing?: boolean;
@@ -1637,7 +1685,7 @@ interface PdfCardProps extends Omit<CardProps, 'title'> {
1637
1685
  /**
1638
1686
  * URL of the PDF file
1639
1687
  */
1640
- url: string;
1688
+ src?: string;
1641
1689
  /**
1642
1690
  * Title of the document
1643
1691
  */
@@ -1664,6 +1712,39 @@ interface PdfCardProps extends Omit<CardProps, 'title'> {
1664
1712
  */
1665
1713
  declare const PdfCard: React$1.ForwardRefExoticComponent<PdfCardProps & React$1.RefAttributes<HTMLDivElement>>;
1666
1714
 
1715
+ interface TextCardProps extends Omit<CardProps, 'title'> {
1716
+ /**
1717
+ * Text content to display (Markdown, HTML, or plain text)
1718
+ */
1719
+ content: string;
1720
+ /**
1721
+ * Optional title for the card
1722
+ */
1723
+ title?: React$1.ReactNode;
1724
+ /**
1725
+ * Optional subtitle or metadata
1726
+ */
1727
+ subtitle?: React$1.ReactNode;
1728
+ /**
1729
+ * Whether the content should be treated as Markdown
1730
+ * @default true
1731
+ */
1732
+ isMarkdown?: boolean;
1733
+ /**
1734
+ * Maximum height of the content area before scrolling
1735
+ * @default '16rem'
1736
+ */
1737
+ maxHeight?: string | number;
1738
+ /**
1739
+ * Optional class name for the content container
1740
+ */
1741
+ contentClassName?: string;
1742
+ }
1743
+ /**
1744
+ * A card for displaying text content, supporting Markdown and HTML formatting.
1745
+ */
1746
+ declare const TextCard: React$1.ForwardRefExoticComponent<TextCardProps & React$1.RefAttributes<HTMLDivElement>>;
1747
+
1667
1748
  type SectionHeadingLevel = 'h2' | 'h3';
1668
1749
  interface SectionHeadingProps extends React$1.HTMLAttributes<HTMLHeadingElement> {
1669
1750
  level?: SectionHeadingLevel;
@@ -1682,4 +1763,4 @@ declare const SectionHeading: React$1.ForwardRefExoticComponent<SectionHeadingPr
1682
1763
 
1683
1764
  declare const version = "2.0.0";
1684
1765
 
1685
- export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, Alert, AlertDialog, type AlertDialogProps, type AlertProps, type AlertVariant, type Artifact, type ArtifactType, 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, 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, ChatInput, type ChatInputPosition, type ChatInputProps, ChatInterface, type ChatInterfaceProps, type ChatMessage, ChatView, type ChatViewItem, type ChatViewProps, CheckSquareIcon, Checkbox, type CheckboxProps, ChevronLeftIcon, ChevronRightIcon, CloseIcon, Col, type ColOffset, type ColOrder, type ColProps, type ColSpan, CollapsedSidebarToggle, type CollapsedSidebarToggleProps, ColorSwatch, type ColorSwatchProps, ConfirmDialog, type ConfirmDialogProps, Container, type ContainerProps, type ContainerSize, type Conversation, ConversationSidebar, type ConversationSidebarProps, type ConversationTree, CrossSquareIcon, Divider, type DividerProps, Drawer, type DrawerPosition, type DrawerProps, EmptySquareIcon, ExpandIcon, FileChip, type FileChipProps, type FileChipStatus, HelperText, type HelperTextProps, HistoryIcon, type IconProps, ImageCard, type ImageCardProps, Input, type InputAddonProps, type InputElementProps, InputGroup, type InputGroupProps, InputLeftAddon, InputLeftElement, type InputProps, InputRightAddon, InputRightElement, InputWrapper, type InputWrapperProps, Label, type LabelProps, LayersIcon, List, ListItem, type ListItemProps, ListItemText, type ListItemTextProps, type ListProps, ListSubheader, type ListSubheaderProps, MarkdownContent, type MarkdownContentProps, 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, Navbar, NavbarBrand, type NavbarBrandProps, NavbarContent, type NavbarContentProps, NavbarDivider, NavbarItem, type NavbarItemProps, NavbarLink, type NavbarLinkProps, type NavbarProps, Pagination, type PaginationProps, PdfCard, type PdfCardProps, PlusIcon, Popover, type PopoverAlign, type PopoverPosition, type PopoverProps, Progress, type ProgressProps, PromptDialog, type PromptDialogProps, Radio, type RadioProps, Row, type RowAlign, type RowGutter, type RowJustify, type RowProps, 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, SquareLoaderIcon, Stack, type StackDirection, type StackGap, type StackProps, type Step, type StepStatus, Stepper, type StepperProps, StreamingCursor, type StreamingCursorProps, Switch, type SwitchProps, 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, Textarea, type TextareaProps, ThinkingIndicator, type ThinkingIndicatorProps, type ToastData, type ToastPosition, ToastProvider, type ToastProviderProps, type ToastVariant, TodosList, type TodosListProps, Tooltip, type TooltipProps, type UseArtifactsReturn, type UseScrollAnchorOptions, type UseScrollAnchorReturn, type VideoAspectRatio, type VideoAspectRatioPreset, VideoCard, type VideoCardProps, addMessageToTree, createEmptyTree, createPreviewUrl, generateId, getActivePathMessages, getSiblingInfo, isBranchPoint, isImageFile, messagesToTree, revokePreviewUrl, switchBranch, updateNodeContent, useArtifacts, useResizable, useScrollAnchor, useToast, version };
1766
+ export { ARTIFACT_TYPES, Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, Alert, AlertDialog, type AlertDialogProps, type AlertProps, type AlertVariant, type Artifact, ArtifactCard, type ArtifactCardProps, type ArtifactType, 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, 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, ChatInput, type ChatInputPosition, type ChatInputProps, ChatInterface, type ChatInterfaceProps, type ChatMessage, ChatView, type ChatViewItem, type ChatViewProps, CheckSquareIcon, Checkbox, type CheckboxProps, ChevronLeftIcon, ChevronRightIcon, CloseIcon, Col, type ColOffset, type ColOrder, type ColProps, type ColSpan, CollapsedSidebarToggle, type CollapsedSidebarToggleProps, ColorSwatch, type ColorSwatchProps, ConfirmDialog, type ConfirmDialogProps, Container, type ContainerProps, type ContainerSize, type Conversation, ConversationSidebar, type ConversationSidebarProps, type ConversationTree, CrossSquareIcon, Divider, type DividerProps, Drawer, type DrawerPosition, type DrawerProps, EmptySquareIcon, ExpandIcon, FileChip, type FileChipProps, type FileChipStatus, HelperText, type HelperTextProps, HistoryIcon, type IconProps, ImageCard, type ImageCardProps, Input, type InputAddonProps, type InputElementProps, InputGroup, type InputGroupProps, InputLeftAddon, InputLeftElement, type InputProps, InputRightAddon, InputRightElement, InputWrapper, type InputWrapperProps, Label, type LabelProps, LayersIcon, List, ListItem, type ListItemProps, ListItemText, type ListItemTextProps, type ListProps, ListSubheader, type ListSubheaderProps, MarkdownContent, type MarkdownContentProps, 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, Navbar, NavbarBrand, type NavbarBrandProps, NavbarContent, type NavbarContentProps, NavbarDivider, NavbarItem, type NavbarItemProps, NavbarLink, type NavbarLinkProps, type NavbarProps, Pagination, type PaginationProps, PdfCard, type PdfCardProps, PlusIcon, Popover, type PopoverAlign, type PopoverPosition, type PopoverProps, Progress, type ProgressProps, PromptDialog, type PromptDialogProps, 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, 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, TextCard, type TextCardProps, Textarea, type TextareaProps, ThinkingIndicator, type ThinkingIndicatorProps, type ToastData, type ToastPosition, ToastProvider, type ToastProviderProps, type ToastVariant, TodosList, type TodosListProps, Tooltip, type TooltipProps, type UseArtifactsReturn, type UseScrollAnchorOptions, type UseScrollAnchorReturn, type VideoAspectRatio, type VideoAspectRatioPreset, VideoCard, type VideoCardProps, addMessageToTree, createEmptyTree, createPreviewUrl, generateId, getActivePathMessages, getSiblingInfo, isBranchPoint, isImageFile, messagesToTree, revokePreviewUrl, switchBranch, updateNodeContent, useArtifacts, useResizable, useScrollAnchor, useToast, version };