@lukeashford/aurelius 2.16.0 → 2.17.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 +64 -13
- package/dist/index.d.ts +64 -13
- package/dist/index.js +679 -610
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +648 -581
- package/dist/index.mjs.map +1 -1
- package/dist/styles/theme.css +5 -0
- package/llms.md +23 -3
- package/package.json +1 -1
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
|
-
|
|
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>>;
|
|
@@ -953,15 +951,15 @@ interface ScriptElement {
|
|
|
953
951
|
*/
|
|
954
952
|
content: string;
|
|
955
953
|
}
|
|
956
|
-
interface ScriptCardProps extends
|
|
954
|
+
interface ScriptCardProps extends Omit<CardProps, 'title'> {
|
|
957
955
|
/**
|
|
958
956
|
* Title of the script (shown at top)
|
|
959
957
|
*/
|
|
960
|
-
title?:
|
|
958
|
+
title?: React$1.ReactNode;
|
|
961
959
|
/**
|
|
962
960
|
* Subtitle/metadata (e.g., "30-second spot • Directed by AI Creative")
|
|
963
961
|
*/
|
|
964
|
-
subtitle?:
|
|
962
|
+
subtitle?: React$1.ReactNode;
|
|
965
963
|
/**
|
|
966
964
|
* Array of script elements in order.
|
|
967
965
|
* Available types: 'scene-heading', 'action', 'character', 'dialogue', 'parenthetical',
|
|
@@ -1586,8 +1584,8 @@ declare const ColorSwatch: React$1.ForwardRefExoticComponent<ColorSwatchProps &
|
|
|
1586
1584
|
type AspectRatioPreset = 'landscape' | 'portrait' | 'square';
|
|
1587
1585
|
type AspectRatio = AspectRatioPreset | `${number}/${number}`;
|
|
1588
1586
|
interface ImageCardProps extends Omit<CardProps, 'title'> {
|
|
1589
|
-
src
|
|
1590
|
-
alt
|
|
1587
|
+
src?: string;
|
|
1588
|
+
alt?: string;
|
|
1591
1589
|
title?: React$1.ReactNode;
|
|
1592
1590
|
subtitle?: React$1.ReactNode;
|
|
1593
1591
|
aspectRatio?: AspectRatio;
|
|
@@ -1601,7 +1599,7 @@ declare const ImageCard: React$1.ForwardRefExoticComponent<ImageCardProps & Reac
|
|
|
1601
1599
|
type VideoAspectRatioPreset = 'video' | 'cinema' | 'square';
|
|
1602
1600
|
type VideoAspectRatio = VideoAspectRatioPreset | `${number}/${number}`;
|
|
1603
1601
|
interface VideoCardProps extends Omit<CardProps, 'title'> {
|
|
1604
|
-
src
|
|
1602
|
+
src?: string;
|
|
1605
1603
|
title?: React$1.ReactNode;
|
|
1606
1604
|
subtitle?: React$1.ReactNode;
|
|
1607
1605
|
aspectRatio?: VideoAspectRatio;
|
|
@@ -1618,7 +1616,7 @@ interface VideoCardProps extends Omit<CardProps, 'title'> {
|
|
|
1618
1616
|
declare const VideoCard: React$1.ForwardRefExoticComponent<VideoCardProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1619
1617
|
|
|
1620
1618
|
interface AudioCardProps extends Omit<CardProps, 'title'> {
|
|
1621
|
-
src
|
|
1619
|
+
src?: string;
|
|
1622
1620
|
title?: React$1.ReactNode;
|
|
1623
1621
|
subtitle?: React$1.ReactNode;
|
|
1624
1622
|
playing?: boolean;
|
|
@@ -1637,7 +1635,7 @@ interface PdfCardProps extends Omit<CardProps, 'title'> {
|
|
|
1637
1635
|
/**
|
|
1638
1636
|
* URL of the PDF file
|
|
1639
1637
|
*/
|
|
1640
|
-
|
|
1638
|
+
src?: string;
|
|
1641
1639
|
/**
|
|
1642
1640
|
* Title of the document
|
|
1643
1641
|
*/
|
|
@@ -1664,6 +1662,59 @@ interface PdfCardProps extends Omit<CardProps, 'title'> {
|
|
|
1664
1662
|
*/
|
|
1665
1663
|
declare const PdfCard: React$1.ForwardRefExoticComponent<PdfCardProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1666
1664
|
|
|
1665
|
+
interface TextCardProps extends Omit<CardProps, 'title'> {
|
|
1666
|
+
/**
|
|
1667
|
+
* Text content to display (Markdown, HTML, or plain text)
|
|
1668
|
+
*/
|
|
1669
|
+
content: string;
|
|
1670
|
+
/**
|
|
1671
|
+
* Optional title for the card
|
|
1672
|
+
*/
|
|
1673
|
+
title?: React$1.ReactNode;
|
|
1674
|
+
/**
|
|
1675
|
+
* Optional subtitle or metadata
|
|
1676
|
+
*/
|
|
1677
|
+
subtitle?: React$1.ReactNode;
|
|
1678
|
+
/**
|
|
1679
|
+
* Whether the content should be treated as Markdown
|
|
1680
|
+
* @default true
|
|
1681
|
+
*/
|
|
1682
|
+
isMarkdown?: boolean;
|
|
1683
|
+
/**
|
|
1684
|
+
* Maximum height of the content area before scrolling
|
|
1685
|
+
* @default '16rem'
|
|
1686
|
+
*/
|
|
1687
|
+
maxHeight?: string | number;
|
|
1688
|
+
/**
|
|
1689
|
+
* Optional class name for the content container
|
|
1690
|
+
*/
|
|
1691
|
+
contentClassName?: string;
|
|
1692
|
+
}
|
|
1693
|
+
/**
|
|
1694
|
+
* A card for displaying text content, supporting Markdown and HTML formatting.
|
|
1695
|
+
*/
|
|
1696
|
+
declare const TextCard: React$1.ForwardRefExoticComponent<TextCardProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1697
|
+
|
|
1698
|
+
interface ArtifactCardProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
1699
|
+
/**
|
|
1700
|
+
* The artifact object to display
|
|
1701
|
+
*/
|
|
1702
|
+
artifact: Artifact;
|
|
1703
|
+
/**
|
|
1704
|
+
* Callback when the artifact should be expanded/opened
|
|
1705
|
+
*/
|
|
1706
|
+
onExpand?: (artifact: Artifact) => void;
|
|
1707
|
+
/**
|
|
1708
|
+
* Whether the artifact is still loading
|
|
1709
|
+
*/
|
|
1710
|
+
isLoading?: boolean;
|
|
1711
|
+
}
|
|
1712
|
+
/**
|
|
1713
|
+
* A dispatcher component that renders the appropriate specialist card
|
|
1714
|
+
* based on the artifact type.
|
|
1715
|
+
*/
|
|
1716
|
+
declare const ArtifactCard: React$1.ForwardRefExoticComponent<ArtifactCardProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1717
|
+
|
|
1667
1718
|
type SectionHeadingLevel = 'h2' | 'h3';
|
|
1668
1719
|
interface SectionHeadingProps extends React$1.HTMLAttributes<HTMLHeadingElement> {
|
|
1669
1720
|
level?: SectionHeadingLevel;
|
|
@@ -1682,4 +1733,4 @@ declare const SectionHeading: React$1.ForwardRefExoticComponent<SectionHeadingPr
|
|
|
1682
1733
|
|
|
1683
1734
|
declare const version = "2.0.0";
|
|
1684
1735
|
|
|
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 };
|
|
1736
|
+
export { 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, 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, 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
|
-
|
|
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>>;
|
|
@@ -953,15 +951,15 @@ interface ScriptElement {
|
|
|
953
951
|
*/
|
|
954
952
|
content: string;
|
|
955
953
|
}
|
|
956
|
-
interface ScriptCardProps extends
|
|
954
|
+
interface ScriptCardProps extends Omit<CardProps, 'title'> {
|
|
957
955
|
/**
|
|
958
956
|
* Title of the script (shown at top)
|
|
959
957
|
*/
|
|
960
|
-
title?:
|
|
958
|
+
title?: React$1.ReactNode;
|
|
961
959
|
/**
|
|
962
960
|
* Subtitle/metadata (e.g., "30-second spot • Directed by AI Creative")
|
|
963
961
|
*/
|
|
964
|
-
subtitle?:
|
|
962
|
+
subtitle?: React$1.ReactNode;
|
|
965
963
|
/**
|
|
966
964
|
* Array of script elements in order.
|
|
967
965
|
* Available types: 'scene-heading', 'action', 'character', 'dialogue', 'parenthetical',
|
|
@@ -1586,8 +1584,8 @@ declare const ColorSwatch: React$1.ForwardRefExoticComponent<ColorSwatchProps &
|
|
|
1586
1584
|
type AspectRatioPreset = 'landscape' | 'portrait' | 'square';
|
|
1587
1585
|
type AspectRatio = AspectRatioPreset | `${number}/${number}`;
|
|
1588
1586
|
interface ImageCardProps extends Omit<CardProps, 'title'> {
|
|
1589
|
-
src
|
|
1590
|
-
alt
|
|
1587
|
+
src?: string;
|
|
1588
|
+
alt?: string;
|
|
1591
1589
|
title?: React$1.ReactNode;
|
|
1592
1590
|
subtitle?: React$1.ReactNode;
|
|
1593
1591
|
aspectRatio?: AspectRatio;
|
|
@@ -1601,7 +1599,7 @@ declare const ImageCard: React$1.ForwardRefExoticComponent<ImageCardProps & Reac
|
|
|
1601
1599
|
type VideoAspectRatioPreset = 'video' | 'cinema' | 'square';
|
|
1602
1600
|
type VideoAspectRatio = VideoAspectRatioPreset | `${number}/${number}`;
|
|
1603
1601
|
interface VideoCardProps extends Omit<CardProps, 'title'> {
|
|
1604
|
-
src
|
|
1602
|
+
src?: string;
|
|
1605
1603
|
title?: React$1.ReactNode;
|
|
1606
1604
|
subtitle?: React$1.ReactNode;
|
|
1607
1605
|
aspectRatio?: VideoAspectRatio;
|
|
@@ -1618,7 +1616,7 @@ interface VideoCardProps extends Omit<CardProps, 'title'> {
|
|
|
1618
1616
|
declare const VideoCard: React$1.ForwardRefExoticComponent<VideoCardProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1619
1617
|
|
|
1620
1618
|
interface AudioCardProps extends Omit<CardProps, 'title'> {
|
|
1621
|
-
src
|
|
1619
|
+
src?: string;
|
|
1622
1620
|
title?: React$1.ReactNode;
|
|
1623
1621
|
subtitle?: React$1.ReactNode;
|
|
1624
1622
|
playing?: boolean;
|
|
@@ -1637,7 +1635,7 @@ interface PdfCardProps extends Omit<CardProps, 'title'> {
|
|
|
1637
1635
|
/**
|
|
1638
1636
|
* URL of the PDF file
|
|
1639
1637
|
*/
|
|
1640
|
-
|
|
1638
|
+
src?: string;
|
|
1641
1639
|
/**
|
|
1642
1640
|
* Title of the document
|
|
1643
1641
|
*/
|
|
@@ -1664,6 +1662,59 @@ interface PdfCardProps extends Omit<CardProps, 'title'> {
|
|
|
1664
1662
|
*/
|
|
1665
1663
|
declare const PdfCard: React$1.ForwardRefExoticComponent<PdfCardProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1666
1664
|
|
|
1665
|
+
interface TextCardProps extends Omit<CardProps, 'title'> {
|
|
1666
|
+
/**
|
|
1667
|
+
* Text content to display (Markdown, HTML, or plain text)
|
|
1668
|
+
*/
|
|
1669
|
+
content: string;
|
|
1670
|
+
/**
|
|
1671
|
+
* Optional title for the card
|
|
1672
|
+
*/
|
|
1673
|
+
title?: React$1.ReactNode;
|
|
1674
|
+
/**
|
|
1675
|
+
* Optional subtitle or metadata
|
|
1676
|
+
*/
|
|
1677
|
+
subtitle?: React$1.ReactNode;
|
|
1678
|
+
/**
|
|
1679
|
+
* Whether the content should be treated as Markdown
|
|
1680
|
+
* @default true
|
|
1681
|
+
*/
|
|
1682
|
+
isMarkdown?: boolean;
|
|
1683
|
+
/**
|
|
1684
|
+
* Maximum height of the content area before scrolling
|
|
1685
|
+
* @default '16rem'
|
|
1686
|
+
*/
|
|
1687
|
+
maxHeight?: string | number;
|
|
1688
|
+
/**
|
|
1689
|
+
* Optional class name for the content container
|
|
1690
|
+
*/
|
|
1691
|
+
contentClassName?: string;
|
|
1692
|
+
}
|
|
1693
|
+
/**
|
|
1694
|
+
* A card for displaying text content, supporting Markdown and HTML formatting.
|
|
1695
|
+
*/
|
|
1696
|
+
declare const TextCard: React$1.ForwardRefExoticComponent<TextCardProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1697
|
+
|
|
1698
|
+
interface ArtifactCardProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
1699
|
+
/**
|
|
1700
|
+
* The artifact object to display
|
|
1701
|
+
*/
|
|
1702
|
+
artifact: Artifact;
|
|
1703
|
+
/**
|
|
1704
|
+
* Callback when the artifact should be expanded/opened
|
|
1705
|
+
*/
|
|
1706
|
+
onExpand?: (artifact: Artifact) => void;
|
|
1707
|
+
/**
|
|
1708
|
+
* Whether the artifact is still loading
|
|
1709
|
+
*/
|
|
1710
|
+
isLoading?: boolean;
|
|
1711
|
+
}
|
|
1712
|
+
/**
|
|
1713
|
+
* A dispatcher component that renders the appropriate specialist card
|
|
1714
|
+
* based on the artifact type.
|
|
1715
|
+
*/
|
|
1716
|
+
declare const ArtifactCard: React$1.ForwardRefExoticComponent<ArtifactCardProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1717
|
+
|
|
1667
1718
|
type SectionHeadingLevel = 'h2' | 'h3';
|
|
1668
1719
|
interface SectionHeadingProps extends React$1.HTMLAttributes<HTMLHeadingElement> {
|
|
1669
1720
|
level?: SectionHeadingLevel;
|
|
@@ -1682,4 +1733,4 @@ declare const SectionHeading: React$1.ForwardRefExoticComponent<SectionHeadingPr
|
|
|
1682
1733
|
|
|
1683
1734
|
declare const version = "2.0.0";
|
|
1684
1735
|
|
|
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 };
|
|
1736
|
+
export { 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, 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, 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 };
|