@lukeashford/aurelius 2.15.1 → 2.16.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 +75 -10
- package/dist/index.d.ts +75 -10
- package/dist/index.js +257 -180
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +213 -137
- package/dist/index.mjs.map +1 -1
- package/llms.md +34 -6
- package/package.json +8 -4
package/dist/index.d.mts
CHANGED
|
@@ -701,7 +701,15 @@ interface StreamingCursorProps extends React$1.HTMLAttributes<HTMLSpanElement> {
|
|
|
701
701
|
declare const StreamingCursor: React$1.ForwardRefExoticComponent<StreamingCursorProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
702
702
|
|
|
703
703
|
interface MarkdownContentProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
704
|
+
/**
|
|
705
|
+
* Content to display (can be Markdown or HTML)
|
|
706
|
+
*/
|
|
704
707
|
content: string;
|
|
708
|
+
/**
|
|
709
|
+
* Whether the content should be treated as Markdown
|
|
710
|
+
* @default true
|
|
711
|
+
*/
|
|
712
|
+
isMarkdown?: boolean;
|
|
705
713
|
sanitizeConfig?: Config;
|
|
706
714
|
/**
|
|
707
715
|
* When true, injects a streaming cursor at the end of the content
|
|
@@ -936,7 +944,13 @@ type ScriptElementType = 'scene-heading' | 'action' | 'character' | 'dialogue' |
|
|
|
936
944
|
* A single element in the script
|
|
937
945
|
*/
|
|
938
946
|
interface ScriptElement {
|
|
947
|
+
/**
|
|
948
|
+
* The type of script element (e.g., 'scene-heading', 'character', 'dialogue')
|
|
949
|
+
*/
|
|
939
950
|
type: ScriptElementType;
|
|
951
|
+
/**
|
|
952
|
+
* The text content of the element
|
|
953
|
+
*/
|
|
940
954
|
content: string;
|
|
941
955
|
}
|
|
942
956
|
interface ScriptCardProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
@@ -949,7 +963,9 @@ interface ScriptCardProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
949
963
|
*/
|
|
950
964
|
subtitle?: string;
|
|
951
965
|
/**
|
|
952
|
-
* Array of script elements in order
|
|
966
|
+
* Array of script elements in order.
|
|
967
|
+
* Available types: 'scene-heading', 'action', 'character', 'dialogue', 'parenthetical',
|
|
968
|
+
* 'transition', 'title', 'subtitle'
|
|
953
969
|
*/
|
|
954
970
|
elements: ScriptElement[];
|
|
955
971
|
/**
|
|
@@ -966,21 +982,38 @@ interface ScriptCardProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
966
982
|
* - Character names: uppercase, centered-left
|
|
967
983
|
* - Dialogue: indented from both sides
|
|
968
984
|
* - Transitions: uppercase, right-aligned
|
|
985
|
+
*
|
|
986
|
+
* @example
|
|
987
|
+
* ```tsx
|
|
988
|
+
* <ScriptCard
|
|
989
|
+
* title="The Arrival"
|
|
990
|
+
* elements={[
|
|
991
|
+
* { type: 'scene-heading', content: 'EXT. SPACE STATION - NIGHT' },
|
|
992
|
+
* { type: 'action', content: 'A lone ship approaches the docking bay.' },
|
|
993
|
+
* { type: 'character', content: 'PILOT' },
|
|
994
|
+
* { type: 'dialogue', content: 'Requesting permission to land.' }
|
|
995
|
+
* ]}
|
|
996
|
+
* />
|
|
997
|
+
* ```
|
|
969
998
|
*/
|
|
970
999
|
declare const ScriptCard: React$1.ForwardRefExoticComponent<ScriptCardProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
971
1000
|
|
|
972
|
-
type ArtifactType = '
|
|
1001
|
+
type ArtifactType = 'TEXT' | 'IMAGE' | 'VIDEO' | 'AUDIO' | 'SCRIPT' | 'PDF';
|
|
973
1002
|
interface Artifact {
|
|
974
1003
|
id: string;
|
|
975
1004
|
type: ArtifactType;
|
|
976
1005
|
/**
|
|
977
|
-
* For text artifacts - the markdown
|
|
1006
|
+
* For text artifacts - the content (markdown, HTML, or plain text)
|
|
978
1007
|
*/
|
|
979
|
-
|
|
1008
|
+
inlineContent?: string;
|
|
980
1009
|
/**
|
|
981
|
-
* For
|
|
1010
|
+
* For artifacts that source from a URL (image, video, audio, pdf, file)
|
|
982
1011
|
*/
|
|
983
|
-
|
|
1012
|
+
url?: string;
|
|
1013
|
+
/**
|
|
1014
|
+
* The mime type of the content
|
|
1015
|
+
*/
|
|
1016
|
+
mimeType?: string;
|
|
984
1017
|
/**
|
|
985
1018
|
* For image artifacts - alt text
|
|
986
1019
|
*/
|
|
@@ -1039,12 +1072,12 @@ interface UseArtifactsReturn {
|
|
|
1039
1072
|
* const { artifacts, scheduleArtifact, showArtifact, removeArtifact } = useArtifacts()
|
|
1040
1073
|
*
|
|
1041
1074
|
* // When SSE operator.started event arrives
|
|
1042
|
-
* scheduleArtifact({ id: operatorId, type: '
|
|
1075
|
+
* scheduleArtifact({ id: operatorId, type: 'IMAGE' })
|
|
1043
1076
|
*
|
|
1044
1077
|
* // When SSE artifact.created event arrives
|
|
1045
1078
|
* showArtifact(artifactId, {
|
|
1046
|
-
* type: '
|
|
1047
|
-
*
|
|
1079
|
+
* type: 'IMAGE',
|
|
1080
|
+
* url: 'https://example.com/image.png',
|
|
1048
1081
|
* title: 'Generated Image',
|
|
1049
1082
|
* })
|
|
1050
1083
|
*
|
|
@@ -1596,9 +1629,41 @@ interface AudioCardProps extends Omit<CardProps, 'title'> {
|
|
|
1596
1629
|
mediaClassName?: string;
|
|
1597
1630
|
contentClassName?: string;
|
|
1598
1631
|
playerProps?: any;
|
|
1632
|
+
height?: string | number;
|
|
1599
1633
|
}
|
|
1600
1634
|
declare const AudioCard: React$1.ForwardRefExoticComponent<AudioCardProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1601
1635
|
|
|
1636
|
+
interface PdfCardProps extends Omit<CardProps, 'title'> {
|
|
1637
|
+
/**
|
|
1638
|
+
* URL of the PDF file
|
|
1639
|
+
*/
|
|
1640
|
+
url: string;
|
|
1641
|
+
/**
|
|
1642
|
+
* Title of the document
|
|
1643
|
+
*/
|
|
1644
|
+
title?: React$1.ReactNode;
|
|
1645
|
+
/**
|
|
1646
|
+
* Subtitle or document metadata
|
|
1647
|
+
*/
|
|
1648
|
+
subtitle?: React$1.ReactNode;
|
|
1649
|
+
/**
|
|
1650
|
+
* Height of the PDF viewer
|
|
1651
|
+
*/
|
|
1652
|
+
height?: string | number;
|
|
1653
|
+
/**
|
|
1654
|
+
* Optional class name for the media container
|
|
1655
|
+
*/
|
|
1656
|
+
mediaClassName?: string;
|
|
1657
|
+
/**
|
|
1658
|
+
* Optional class name for the content container
|
|
1659
|
+
*/
|
|
1660
|
+
contentClassName?: string;
|
|
1661
|
+
}
|
|
1662
|
+
/**
|
|
1663
|
+
* A card for displaying PDF documents with an embedded viewer.
|
|
1664
|
+
*/
|
|
1665
|
+
declare const PdfCard: React$1.ForwardRefExoticComponent<PdfCardProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1666
|
+
|
|
1602
1667
|
type SectionHeadingLevel = 'h2' | 'h3';
|
|
1603
1668
|
interface SectionHeadingProps extends React$1.HTMLAttributes<HTMLHeadingElement> {
|
|
1604
1669
|
level?: SectionHeadingLevel;
|
|
@@ -1617,4 +1682,4 @@ declare const SectionHeading: React$1.ForwardRefExoticComponent<SectionHeadingPr
|
|
|
1617
1682
|
|
|
1618
1683
|
declare const version = "2.0.0";
|
|
1619
1684
|
|
|
1620
|
-
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, 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 };
|
|
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -701,7 +701,15 @@ interface StreamingCursorProps extends React$1.HTMLAttributes<HTMLSpanElement> {
|
|
|
701
701
|
declare const StreamingCursor: React$1.ForwardRefExoticComponent<StreamingCursorProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
702
702
|
|
|
703
703
|
interface MarkdownContentProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
704
|
+
/**
|
|
705
|
+
* Content to display (can be Markdown or HTML)
|
|
706
|
+
*/
|
|
704
707
|
content: string;
|
|
708
|
+
/**
|
|
709
|
+
* Whether the content should be treated as Markdown
|
|
710
|
+
* @default true
|
|
711
|
+
*/
|
|
712
|
+
isMarkdown?: boolean;
|
|
705
713
|
sanitizeConfig?: Config;
|
|
706
714
|
/**
|
|
707
715
|
* When true, injects a streaming cursor at the end of the content
|
|
@@ -936,7 +944,13 @@ type ScriptElementType = 'scene-heading' | 'action' | 'character' | 'dialogue' |
|
|
|
936
944
|
* A single element in the script
|
|
937
945
|
*/
|
|
938
946
|
interface ScriptElement {
|
|
947
|
+
/**
|
|
948
|
+
* The type of script element (e.g., 'scene-heading', 'character', 'dialogue')
|
|
949
|
+
*/
|
|
939
950
|
type: ScriptElementType;
|
|
951
|
+
/**
|
|
952
|
+
* The text content of the element
|
|
953
|
+
*/
|
|
940
954
|
content: string;
|
|
941
955
|
}
|
|
942
956
|
interface ScriptCardProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
@@ -949,7 +963,9 @@ interface ScriptCardProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
949
963
|
*/
|
|
950
964
|
subtitle?: string;
|
|
951
965
|
/**
|
|
952
|
-
* Array of script elements in order
|
|
966
|
+
* Array of script elements in order.
|
|
967
|
+
* Available types: 'scene-heading', 'action', 'character', 'dialogue', 'parenthetical',
|
|
968
|
+
* 'transition', 'title', 'subtitle'
|
|
953
969
|
*/
|
|
954
970
|
elements: ScriptElement[];
|
|
955
971
|
/**
|
|
@@ -966,21 +982,38 @@ interface ScriptCardProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
966
982
|
* - Character names: uppercase, centered-left
|
|
967
983
|
* - Dialogue: indented from both sides
|
|
968
984
|
* - Transitions: uppercase, right-aligned
|
|
985
|
+
*
|
|
986
|
+
* @example
|
|
987
|
+
* ```tsx
|
|
988
|
+
* <ScriptCard
|
|
989
|
+
* title="The Arrival"
|
|
990
|
+
* elements={[
|
|
991
|
+
* { type: 'scene-heading', content: 'EXT. SPACE STATION - NIGHT' },
|
|
992
|
+
* { type: 'action', content: 'A lone ship approaches the docking bay.' },
|
|
993
|
+
* { type: 'character', content: 'PILOT' },
|
|
994
|
+
* { type: 'dialogue', content: 'Requesting permission to land.' }
|
|
995
|
+
* ]}
|
|
996
|
+
* />
|
|
997
|
+
* ```
|
|
969
998
|
*/
|
|
970
999
|
declare const ScriptCard: React$1.ForwardRefExoticComponent<ScriptCardProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
971
1000
|
|
|
972
|
-
type ArtifactType = '
|
|
1001
|
+
type ArtifactType = 'TEXT' | 'IMAGE' | 'VIDEO' | 'AUDIO' | 'SCRIPT' | 'PDF';
|
|
973
1002
|
interface Artifact {
|
|
974
1003
|
id: string;
|
|
975
1004
|
type: ArtifactType;
|
|
976
1005
|
/**
|
|
977
|
-
* For text artifacts - the markdown
|
|
1006
|
+
* For text artifacts - the content (markdown, HTML, or plain text)
|
|
978
1007
|
*/
|
|
979
|
-
|
|
1008
|
+
inlineContent?: string;
|
|
980
1009
|
/**
|
|
981
|
-
* For
|
|
1010
|
+
* For artifacts that source from a URL (image, video, audio, pdf, file)
|
|
982
1011
|
*/
|
|
983
|
-
|
|
1012
|
+
url?: string;
|
|
1013
|
+
/**
|
|
1014
|
+
* The mime type of the content
|
|
1015
|
+
*/
|
|
1016
|
+
mimeType?: string;
|
|
984
1017
|
/**
|
|
985
1018
|
* For image artifacts - alt text
|
|
986
1019
|
*/
|
|
@@ -1039,12 +1072,12 @@ interface UseArtifactsReturn {
|
|
|
1039
1072
|
* const { artifacts, scheduleArtifact, showArtifact, removeArtifact } = useArtifacts()
|
|
1040
1073
|
*
|
|
1041
1074
|
* // When SSE operator.started event arrives
|
|
1042
|
-
* scheduleArtifact({ id: operatorId, type: '
|
|
1075
|
+
* scheduleArtifact({ id: operatorId, type: 'IMAGE' })
|
|
1043
1076
|
*
|
|
1044
1077
|
* // When SSE artifact.created event arrives
|
|
1045
1078
|
* showArtifact(artifactId, {
|
|
1046
|
-
* type: '
|
|
1047
|
-
*
|
|
1079
|
+
* type: 'IMAGE',
|
|
1080
|
+
* url: 'https://example.com/image.png',
|
|
1048
1081
|
* title: 'Generated Image',
|
|
1049
1082
|
* })
|
|
1050
1083
|
*
|
|
@@ -1596,9 +1629,41 @@ interface AudioCardProps extends Omit<CardProps, 'title'> {
|
|
|
1596
1629
|
mediaClassName?: string;
|
|
1597
1630
|
contentClassName?: string;
|
|
1598
1631
|
playerProps?: any;
|
|
1632
|
+
height?: string | number;
|
|
1599
1633
|
}
|
|
1600
1634
|
declare const AudioCard: React$1.ForwardRefExoticComponent<AudioCardProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1601
1635
|
|
|
1636
|
+
interface PdfCardProps extends Omit<CardProps, 'title'> {
|
|
1637
|
+
/**
|
|
1638
|
+
* URL of the PDF file
|
|
1639
|
+
*/
|
|
1640
|
+
url: string;
|
|
1641
|
+
/**
|
|
1642
|
+
* Title of the document
|
|
1643
|
+
*/
|
|
1644
|
+
title?: React$1.ReactNode;
|
|
1645
|
+
/**
|
|
1646
|
+
* Subtitle or document metadata
|
|
1647
|
+
*/
|
|
1648
|
+
subtitle?: React$1.ReactNode;
|
|
1649
|
+
/**
|
|
1650
|
+
* Height of the PDF viewer
|
|
1651
|
+
*/
|
|
1652
|
+
height?: string | number;
|
|
1653
|
+
/**
|
|
1654
|
+
* Optional class name for the media container
|
|
1655
|
+
*/
|
|
1656
|
+
mediaClassName?: string;
|
|
1657
|
+
/**
|
|
1658
|
+
* Optional class name for the content container
|
|
1659
|
+
*/
|
|
1660
|
+
contentClassName?: string;
|
|
1661
|
+
}
|
|
1662
|
+
/**
|
|
1663
|
+
* A card for displaying PDF documents with an embedded viewer.
|
|
1664
|
+
*/
|
|
1665
|
+
declare const PdfCard: React$1.ForwardRefExoticComponent<PdfCardProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1666
|
+
|
|
1602
1667
|
type SectionHeadingLevel = 'h2' | 'h3';
|
|
1603
1668
|
interface SectionHeadingProps extends React$1.HTMLAttributes<HTMLHeadingElement> {
|
|
1604
1669
|
level?: SectionHeadingLevel;
|
|
@@ -1617,4 +1682,4 @@ declare const SectionHeading: React$1.ForwardRefExoticComponent<SectionHeadingPr
|
|
|
1617
1682
|
|
|
1618
1683
|
declare const version = "2.0.0";
|
|
1619
1684
|
|
|
1620
|
-
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, 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 };
|
|
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 };
|