@lukeashford/aurelius 3.5.0 → 3.7.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 +70 -4
- package/dist/index.d.ts +70 -4
- package/dist/index.js +513 -214
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +512 -214
- package/dist/index.mjs.map +1 -1
- package/llms.md +22 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -739,7 +739,8 @@ declare const MarkdownContent: React$1.ForwardRefExoticComponent<MarkdownContent
|
|
|
739
739
|
|
|
740
740
|
interface ChatInputNotice {
|
|
741
741
|
/**
|
|
742
|
-
* Visual severity: 'warning' shows a dismissible amber notice, 'error' shows a persistent red
|
|
742
|
+
* Visual severity: 'warning' shows a dismissible amber notice, 'error' shows a persistent red
|
|
743
|
+
* notice
|
|
743
744
|
*/
|
|
744
745
|
variant: 'warning' | 'error';
|
|
745
746
|
/**
|
|
@@ -822,6 +823,14 @@ interface ChatInputProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, 'o
|
|
|
822
823
|
* Called whenever the input value changes, giving the consumer access to the current text
|
|
823
824
|
*/
|
|
824
825
|
onInputChange?: (value: string) => void;
|
|
826
|
+
/**
|
|
827
|
+
* Initial value for the input, used for state restoration (e.g. from DB or localStorage)
|
|
828
|
+
*/
|
|
829
|
+
initialInputValue?: string;
|
|
830
|
+
/**
|
|
831
|
+
* Whether to automatically focus the input when it becomes enabled
|
|
832
|
+
*/
|
|
833
|
+
autoFocus?: boolean;
|
|
825
834
|
}
|
|
826
835
|
/**
|
|
827
836
|
* ChatInput is a context-aware input component that can transition between
|
|
@@ -1308,10 +1317,27 @@ interface ChatMessage {
|
|
|
1308
1317
|
isStreaming?: boolean;
|
|
1309
1318
|
}
|
|
1310
1319
|
interface Conversation {
|
|
1320
|
+
/**
|
|
1321
|
+
* Unique identifier for the conversation
|
|
1322
|
+
*/
|
|
1311
1323
|
id: string;
|
|
1324
|
+
/**
|
|
1325
|
+
* Title shown as the first line of the row. Editable via the rename affordance.
|
|
1326
|
+
*/
|
|
1312
1327
|
title: string;
|
|
1313
|
-
|
|
1314
|
-
|
|
1328
|
+
/**
|
|
1329
|
+
* Project this conversation belongs to. Shown as the second line of the row and
|
|
1330
|
+
* collected into the project filter in the history panel.
|
|
1331
|
+
*/
|
|
1332
|
+
project?: string;
|
|
1333
|
+
/**
|
|
1334
|
+
* Timestamp used to group conversations into Today / Yesterday / Older.
|
|
1335
|
+
* Accepts a Date, ISO string, or millisecond epoch. Not displayed.
|
|
1336
|
+
*/
|
|
1337
|
+
timestamp?: string | number | Date;
|
|
1338
|
+
/**
|
|
1339
|
+
* Whether this conversation is currently active (highlighted in the list).
|
|
1340
|
+
*/
|
|
1315
1341
|
isActive?: boolean;
|
|
1316
1342
|
}
|
|
1317
1343
|
interface ChatInterfaceProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, 'onSubmit'> {
|
|
@@ -1360,6 +1386,11 @@ interface ChatInterfaceProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>
|
|
|
1360
1386
|
* Called when the "New Chat" button is clicked in the sidebar.
|
|
1361
1387
|
*/
|
|
1362
1388
|
onNewChat?: () => void;
|
|
1389
|
+
/**
|
|
1390
|
+
* Called when a conversation's title is renamed from the history panel.
|
|
1391
|
+
* Receives the conversation id and the new, trimmed title.
|
|
1392
|
+
*/
|
|
1393
|
+
onRenameConversation?: (id: string, newTitle: string) => void;
|
|
1363
1394
|
/**
|
|
1364
1395
|
* Whether the assistant is currently streaming a response.
|
|
1365
1396
|
* Shows a stop button and disables certain actions.
|
|
@@ -1442,6 +1473,10 @@ interface ChatInterfaceProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>
|
|
|
1442
1473
|
* Called whenever the chat input value changes, giving the consumer access to the current text.
|
|
1443
1474
|
*/
|
|
1444
1475
|
onInputChange?: (value: string) => void;
|
|
1476
|
+
/**
|
|
1477
|
+
* Initial value for the input, used for state restoration (e.g. from DB or localStorage)
|
|
1478
|
+
*/
|
|
1479
|
+
initialInputValue?: string;
|
|
1445
1480
|
/**
|
|
1446
1481
|
* Additional tools to add to the tool sidebars. Each ExternalToolDefinition provides
|
|
1447
1482
|
* an id, icon, label, group ('top-left' | 'bottom-left' | 'top-right' | 'bottom-right'),
|
|
@@ -1450,6 +1485,11 @@ interface ChatInterfaceProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>
|
|
|
1450
1485
|
* (bottom-right). Consumer tools are added alongside these.
|
|
1451
1486
|
*/
|
|
1452
1487
|
tools?: ExternalToolDefinition[];
|
|
1488
|
+
/**
|
|
1489
|
+
* Whether to automatically focus the chat input when it becomes enabled.
|
|
1490
|
+
* Defaults to true.
|
|
1491
|
+
*/
|
|
1492
|
+
autoFocus?: boolean;
|
|
1453
1493
|
}
|
|
1454
1494
|
/**
|
|
1455
1495
|
* ChatInterface is the main orchestrator for a full-featured chat experience.
|
|
@@ -1554,6 +1594,32 @@ interface ArtifactsPanelToggleProps extends React$1.ButtonHTMLAttributes<HTMLBut
|
|
|
1554
1594
|
}
|
|
1555
1595
|
declare const ArtifactsPanelToggle: React$1.ForwardRefExoticComponent<ArtifactsPanelToggleProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1556
1596
|
|
|
1597
|
+
interface HistoryPanelProps {
|
|
1598
|
+
/**
|
|
1599
|
+
* List of past conversations to display.
|
|
1600
|
+
*/
|
|
1601
|
+
conversations: Conversation[];
|
|
1602
|
+
/**
|
|
1603
|
+
* Called when a conversation is selected.
|
|
1604
|
+
*/
|
|
1605
|
+
onSelectConversation?: (id: string) => void;
|
|
1606
|
+
/**
|
|
1607
|
+
* Called when the "New Chat" button is clicked.
|
|
1608
|
+
*/
|
|
1609
|
+
onNewChat?: () => void;
|
|
1610
|
+
/**
|
|
1611
|
+
* Called when a conversation's title is edited.
|
|
1612
|
+
*/
|
|
1613
|
+
onRenameConversation?: (id: string, newTitle: string) => void;
|
|
1614
|
+
}
|
|
1615
|
+
/**
|
|
1616
|
+
* HistoryPanel renders the conversation history sidebar: a project filter,
|
|
1617
|
+
* a "New Chat" button, and the conversation list grouped by recency
|
|
1618
|
+
* (Today / Yesterday / Older). Each row shows the title and an optional
|
|
1619
|
+
* project subtitle, and exposes an inline rename affordance on hover.
|
|
1620
|
+
*/
|
|
1621
|
+
declare function HistoryPanel({ conversations, onSelectConversation, onNewChat, onRenameConversation, }: HistoryPanelProps): React$1.JSX.Element;
|
|
1622
|
+
|
|
1557
1623
|
interface ToolPanelContainerProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
1558
1624
|
/**
|
|
1559
1625
|
* Content for the top tool slot (from the top group).
|
|
@@ -1976,4 +2042,4 @@ declare const ArtifactVariantStack: React$1.ForwardRefExoticComponent<ArtifactVa
|
|
|
1976
2042
|
|
|
1977
2043
|
declare const version = "2.0.0";
|
|
1978
2044
|
|
|
1979
|
-
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, ArtifactGroup, type ArtifactGroupProps, type ArtifactNode, type ArtifactType, ArtifactVariantStack, type ArtifactVariantStackProps, ArtifactsPanel, type ArtifactsPanelProps, ArtifactsPanelToggle, type ArtifactsPanelToggleProps, type AspectRatio, type AspectRatioPreset, type Attachment, type AttachmentItem, AttachmentPreview, type AttachmentPreviewProps, type AttachmentStatus, AudioCard, type AudioCardProps, Avatar, type AvatarProps, type AvatarSize, Badge, type BadgeProps, type BadgeVariant, BranchNavigator, type BranchNavigatorProps, BrandIcon, type BrandIconProps, type BrandIconSize, type BrandIconVariant, Breadcrumb, type BreadcrumbEntry, BreadcrumbItem, type BreadcrumbItemProps, BreadcrumbLink, type BreadcrumbLinkProps, type BreadcrumbProps, Button, type ButtonProps, type ButtonSize, type ButtonVariant, Card, type CardBodyProps, type CardFooterProps, type CardHeaderProps, type CardMediaProps, type CardProps, type CardVariant, ChatBubbleIcon, ChatInput, type ChatInputNotice, type ChatInputPosition, type ChatInputProps, ChatInterface, type ChatInterfaceProps, type ChatMessage, ChatView, type ChatViewItem, type ChatViewProps, CheckSquareIcon, Checkbox, type CheckboxProps, ChevronLeftIcon, ChevronRightIcon, CloseIcon, Col, type ColOffset, type ColOrder, type ColProps, type ColSpan, ColorSwatch, type ColorSwatchProps, ConfirmDialog, type ConfirmDialogProps, Container, type ContainerProps, type ContainerSize, type Conversation, type ConversationTree, CrossSquareIcon, Divider, type DividerProps, Drawer, type DrawerPosition, type DrawerProps, EmptySquareIcon, ExpandIcon, type ExternalToolDefinition, 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, MediaIcon, Menu, MenuContent, type MenuContentProps, MenuItem, type MenuItemProps, MenuLabel, type MenuProps, MenuSeparator, MenuTrigger, type MenuTriggerProps, Message, MessageActions, type MessageActionsConfig, type MessageActionsProps, type MessageActionsVariant, type MessageBranchInfo, type MessageNode, type MessageProps, type MessageVariant, Modal, type ModalProps, NODE_TYPES, Navbar, NavbarBrand, type NavbarBrandProps, NavbarContent, type NavbarContentProps, NavbarDivider, NavbarItem, type NavbarItemProps, NavbarLink, type NavbarLinkProps, type NavbarProps, type NodeType, 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, type ToolDefinition, type ToolGroup, ToolPanelContainer, type ToolPanelContainerProps, type ToolPanelState, ToolSidebar, type ToolSidebarProps, Tooltip, type TooltipProps, type UseArtifactTreeNavigationReturn, type UseScrollAnchorOptions, type UseScrollAnchorReturn, type VideoAspectRatio, type VideoAspectRatioPreset, VideoCard, type VideoCardProps, addMessageToTree, areAllTasksSettled, createEmptyTree, createPreviewUrl, generateId, getActivePathMessages, getSiblingInfo, isBranchPoint, isImageFile, messagesToTree, revokePreviewUrl, switchBranch, updateNodeContent, useArtifactTreeNavigation, useResizable, useScrollAnchor, useToast, version };
|
|
2045
|
+
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, ArtifactGroup, type ArtifactGroupProps, type ArtifactNode, type ArtifactType, ArtifactVariantStack, type ArtifactVariantStackProps, ArtifactsPanel, type ArtifactsPanelProps, ArtifactsPanelToggle, type ArtifactsPanelToggleProps, type AspectRatio, type AspectRatioPreset, type Attachment, type AttachmentItem, AttachmentPreview, type AttachmentPreviewProps, type AttachmentStatus, AudioCard, type AudioCardProps, Avatar, type AvatarProps, type AvatarSize, Badge, type BadgeProps, type BadgeVariant, BranchNavigator, type BranchNavigatorProps, BrandIcon, type BrandIconProps, type BrandIconSize, type BrandIconVariant, Breadcrumb, type BreadcrumbEntry, BreadcrumbItem, type BreadcrumbItemProps, BreadcrumbLink, type BreadcrumbLinkProps, type BreadcrumbProps, Button, type ButtonProps, type ButtonSize, type ButtonVariant, Card, type CardBodyProps, type CardFooterProps, type CardHeaderProps, type CardMediaProps, type CardProps, type CardVariant, ChatBubbleIcon, ChatInput, type ChatInputNotice, type ChatInputPosition, type ChatInputProps, ChatInterface, type ChatInterfaceProps, type ChatMessage, ChatView, type ChatViewItem, type ChatViewProps, CheckSquareIcon, Checkbox, type CheckboxProps, ChevronLeftIcon, ChevronRightIcon, CloseIcon, Col, type ColOffset, type ColOrder, type ColProps, type ColSpan, ColorSwatch, type ColorSwatchProps, ConfirmDialog, type ConfirmDialogProps, Container, type ContainerProps, type ContainerSize, type Conversation, type ConversationTree, CrossSquareIcon, Divider, type DividerProps, Drawer, type DrawerPosition, type DrawerProps, EmptySquareIcon, ExpandIcon, type ExternalToolDefinition, FileChip, type FileChipProps, type FileChipStatus, HelperText, type HelperTextProps, HistoryIcon, HistoryPanel, type HistoryPanelProps, 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, MediaIcon, Menu, MenuContent, type MenuContentProps, MenuItem, type MenuItemProps, MenuLabel, type MenuProps, MenuSeparator, MenuTrigger, type MenuTriggerProps, Message, MessageActions, type MessageActionsConfig, type MessageActionsProps, type MessageActionsVariant, type MessageBranchInfo, type MessageNode, type MessageProps, type MessageVariant, Modal, type ModalProps, NODE_TYPES, Navbar, NavbarBrand, type NavbarBrandProps, NavbarContent, type NavbarContentProps, NavbarDivider, NavbarItem, type NavbarItemProps, NavbarLink, type NavbarLinkProps, type NavbarProps, type NodeType, 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, type ToolDefinition, type ToolGroup, ToolPanelContainer, type ToolPanelContainerProps, type ToolPanelState, ToolSidebar, type ToolSidebarProps, Tooltip, type TooltipProps, type UseArtifactTreeNavigationReturn, type UseScrollAnchorOptions, type UseScrollAnchorReturn, type VideoAspectRatio, type VideoAspectRatioPreset, VideoCard, type VideoCardProps, addMessageToTree, areAllTasksSettled, createEmptyTree, createPreviewUrl, generateId, getActivePathMessages, getSiblingInfo, isBranchPoint, isImageFile, messagesToTree, revokePreviewUrl, switchBranch, updateNodeContent, useArtifactTreeNavigation, useResizable, useScrollAnchor, useToast, version };
|
package/dist/index.d.ts
CHANGED
|
@@ -739,7 +739,8 @@ declare const MarkdownContent: React$1.ForwardRefExoticComponent<MarkdownContent
|
|
|
739
739
|
|
|
740
740
|
interface ChatInputNotice {
|
|
741
741
|
/**
|
|
742
|
-
* Visual severity: 'warning' shows a dismissible amber notice, 'error' shows a persistent red
|
|
742
|
+
* Visual severity: 'warning' shows a dismissible amber notice, 'error' shows a persistent red
|
|
743
|
+
* notice
|
|
743
744
|
*/
|
|
744
745
|
variant: 'warning' | 'error';
|
|
745
746
|
/**
|
|
@@ -822,6 +823,14 @@ interface ChatInputProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, 'o
|
|
|
822
823
|
* Called whenever the input value changes, giving the consumer access to the current text
|
|
823
824
|
*/
|
|
824
825
|
onInputChange?: (value: string) => void;
|
|
826
|
+
/**
|
|
827
|
+
* Initial value for the input, used for state restoration (e.g. from DB or localStorage)
|
|
828
|
+
*/
|
|
829
|
+
initialInputValue?: string;
|
|
830
|
+
/**
|
|
831
|
+
* Whether to automatically focus the input when it becomes enabled
|
|
832
|
+
*/
|
|
833
|
+
autoFocus?: boolean;
|
|
825
834
|
}
|
|
826
835
|
/**
|
|
827
836
|
* ChatInput is a context-aware input component that can transition between
|
|
@@ -1308,10 +1317,27 @@ interface ChatMessage {
|
|
|
1308
1317
|
isStreaming?: boolean;
|
|
1309
1318
|
}
|
|
1310
1319
|
interface Conversation {
|
|
1320
|
+
/**
|
|
1321
|
+
* Unique identifier for the conversation
|
|
1322
|
+
*/
|
|
1311
1323
|
id: string;
|
|
1324
|
+
/**
|
|
1325
|
+
* Title shown as the first line of the row. Editable via the rename affordance.
|
|
1326
|
+
*/
|
|
1312
1327
|
title: string;
|
|
1313
|
-
|
|
1314
|
-
|
|
1328
|
+
/**
|
|
1329
|
+
* Project this conversation belongs to. Shown as the second line of the row and
|
|
1330
|
+
* collected into the project filter in the history panel.
|
|
1331
|
+
*/
|
|
1332
|
+
project?: string;
|
|
1333
|
+
/**
|
|
1334
|
+
* Timestamp used to group conversations into Today / Yesterday / Older.
|
|
1335
|
+
* Accepts a Date, ISO string, or millisecond epoch. Not displayed.
|
|
1336
|
+
*/
|
|
1337
|
+
timestamp?: string | number | Date;
|
|
1338
|
+
/**
|
|
1339
|
+
* Whether this conversation is currently active (highlighted in the list).
|
|
1340
|
+
*/
|
|
1315
1341
|
isActive?: boolean;
|
|
1316
1342
|
}
|
|
1317
1343
|
interface ChatInterfaceProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, 'onSubmit'> {
|
|
@@ -1360,6 +1386,11 @@ interface ChatInterfaceProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>
|
|
|
1360
1386
|
* Called when the "New Chat" button is clicked in the sidebar.
|
|
1361
1387
|
*/
|
|
1362
1388
|
onNewChat?: () => void;
|
|
1389
|
+
/**
|
|
1390
|
+
* Called when a conversation's title is renamed from the history panel.
|
|
1391
|
+
* Receives the conversation id and the new, trimmed title.
|
|
1392
|
+
*/
|
|
1393
|
+
onRenameConversation?: (id: string, newTitle: string) => void;
|
|
1363
1394
|
/**
|
|
1364
1395
|
* Whether the assistant is currently streaming a response.
|
|
1365
1396
|
* Shows a stop button and disables certain actions.
|
|
@@ -1442,6 +1473,10 @@ interface ChatInterfaceProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>
|
|
|
1442
1473
|
* Called whenever the chat input value changes, giving the consumer access to the current text.
|
|
1443
1474
|
*/
|
|
1444
1475
|
onInputChange?: (value: string) => void;
|
|
1476
|
+
/**
|
|
1477
|
+
* Initial value for the input, used for state restoration (e.g. from DB or localStorage)
|
|
1478
|
+
*/
|
|
1479
|
+
initialInputValue?: string;
|
|
1445
1480
|
/**
|
|
1446
1481
|
* Additional tools to add to the tool sidebars. Each ExternalToolDefinition provides
|
|
1447
1482
|
* an id, icon, label, group ('top-left' | 'bottom-left' | 'top-right' | 'bottom-right'),
|
|
@@ -1450,6 +1485,11 @@ interface ChatInterfaceProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>
|
|
|
1450
1485
|
* (bottom-right). Consumer tools are added alongside these.
|
|
1451
1486
|
*/
|
|
1452
1487
|
tools?: ExternalToolDefinition[];
|
|
1488
|
+
/**
|
|
1489
|
+
* Whether to automatically focus the chat input when it becomes enabled.
|
|
1490
|
+
* Defaults to true.
|
|
1491
|
+
*/
|
|
1492
|
+
autoFocus?: boolean;
|
|
1453
1493
|
}
|
|
1454
1494
|
/**
|
|
1455
1495
|
* ChatInterface is the main orchestrator for a full-featured chat experience.
|
|
@@ -1554,6 +1594,32 @@ interface ArtifactsPanelToggleProps extends React$1.ButtonHTMLAttributes<HTMLBut
|
|
|
1554
1594
|
}
|
|
1555
1595
|
declare const ArtifactsPanelToggle: React$1.ForwardRefExoticComponent<ArtifactsPanelToggleProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1556
1596
|
|
|
1597
|
+
interface HistoryPanelProps {
|
|
1598
|
+
/**
|
|
1599
|
+
* List of past conversations to display.
|
|
1600
|
+
*/
|
|
1601
|
+
conversations: Conversation[];
|
|
1602
|
+
/**
|
|
1603
|
+
* Called when a conversation is selected.
|
|
1604
|
+
*/
|
|
1605
|
+
onSelectConversation?: (id: string) => void;
|
|
1606
|
+
/**
|
|
1607
|
+
* Called when the "New Chat" button is clicked.
|
|
1608
|
+
*/
|
|
1609
|
+
onNewChat?: () => void;
|
|
1610
|
+
/**
|
|
1611
|
+
* Called when a conversation's title is edited.
|
|
1612
|
+
*/
|
|
1613
|
+
onRenameConversation?: (id: string, newTitle: string) => void;
|
|
1614
|
+
}
|
|
1615
|
+
/**
|
|
1616
|
+
* HistoryPanel renders the conversation history sidebar: a project filter,
|
|
1617
|
+
* a "New Chat" button, and the conversation list grouped by recency
|
|
1618
|
+
* (Today / Yesterday / Older). Each row shows the title and an optional
|
|
1619
|
+
* project subtitle, and exposes an inline rename affordance on hover.
|
|
1620
|
+
*/
|
|
1621
|
+
declare function HistoryPanel({ conversations, onSelectConversation, onNewChat, onRenameConversation, }: HistoryPanelProps): React$1.JSX.Element;
|
|
1622
|
+
|
|
1557
1623
|
interface ToolPanelContainerProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
1558
1624
|
/**
|
|
1559
1625
|
* Content for the top tool slot (from the top group).
|
|
@@ -1976,4 +2042,4 @@ declare const ArtifactVariantStack: React$1.ForwardRefExoticComponent<ArtifactVa
|
|
|
1976
2042
|
|
|
1977
2043
|
declare const version = "2.0.0";
|
|
1978
2044
|
|
|
1979
|
-
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, ArtifactGroup, type ArtifactGroupProps, type ArtifactNode, type ArtifactType, ArtifactVariantStack, type ArtifactVariantStackProps, ArtifactsPanel, type ArtifactsPanelProps, ArtifactsPanelToggle, type ArtifactsPanelToggleProps, type AspectRatio, type AspectRatioPreset, type Attachment, type AttachmentItem, AttachmentPreview, type AttachmentPreviewProps, type AttachmentStatus, AudioCard, type AudioCardProps, Avatar, type AvatarProps, type AvatarSize, Badge, type BadgeProps, type BadgeVariant, BranchNavigator, type BranchNavigatorProps, BrandIcon, type BrandIconProps, type BrandIconSize, type BrandIconVariant, Breadcrumb, type BreadcrumbEntry, BreadcrumbItem, type BreadcrumbItemProps, BreadcrumbLink, type BreadcrumbLinkProps, type BreadcrumbProps, Button, type ButtonProps, type ButtonSize, type ButtonVariant, Card, type CardBodyProps, type CardFooterProps, type CardHeaderProps, type CardMediaProps, type CardProps, type CardVariant, ChatBubbleIcon, ChatInput, type ChatInputNotice, type ChatInputPosition, type ChatInputProps, ChatInterface, type ChatInterfaceProps, type ChatMessage, ChatView, type ChatViewItem, type ChatViewProps, CheckSquareIcon, Checkbox, type CheckboxProps, ChevronLeftIcon, ChevronRightIcon, CloseIcon, Col, type ColOffset, type ColOrder, type ColProps, type ColSpan, ColorSwatch, type ColorSwatchProps, ConfirmDialog, type ConfirmDialogProps, Container, type ContainerProps, type ContainerSize, type Conversation, type ConversationTree, CrossSquareIcon, Divider, type DividerProps, Drawer, type DrawerPosition, type DrawerProps, EmptySquareIcon, ExpandIcon, type ExternalToolDefinition, 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, MediaIcon, Menu, MenuContent, type MenuContentProps, MenuItem, type MenuItemProps, MenuLabel, type MenuProps, MenuSeparator, MenuTrigger, type MenuTriggerProps, Message, MessageActions, type MessageActionsConfig, type MessageActionsProps, type MessageActionsVariant, type MessageBranchInfo, type MessageNode, type MessageProps, type MessageVariant, Modal, type ModalProps, NODE_TYPES, Navbar, NavbarBrand, type NavbarBrandProps, NavbarContent, type NavbarContentProps, NavbarDivider, NavbarItem, type NavbarItemProps, NavbarLink, type NavbarLinkProps, type NavbarProps, type NodeType, 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, type ToolDefinition, type ToolGroup, ToolPanelContainer, type ToolPanelContainerProps, type ToolPanelState, ToolSidebar, type ToolSidebarProps, Tooltip, type TooltipProps, type UseArtifactTreeNavigationReturn, type UseScrollAnchorOptions, type UseScrollAnchorReturn, type VideoAspectRatio, type VideoAspectRatioPreset, VideoCard, type VideoCardProps, addMessageToTree, areAllTasksSettled, createEmptyTree, createPreviewUrl, generateId, getActivePathMessages, getSiblingInfo, isBranchPoint, isImageFile, messagesToTree, revokePreviewUrl, switchBranch, updateNodeContent, useArtifactTreeNavigation, useResizable, useScrollAnchor, useToast, version };
|
|
2045
|
+
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, ArtifactGroup, type ArtifactGroupProps, type ArtifactNode, type ArtifactType, ArtifactVariantStack, type ArtifactVariantStackProps, ArtifactsPanel, type ArtifactsPanelProps, ArtifactsPanelToggle, type ArtifactsPanelToggleProps, type AspectRatio, type AspectRatioPreset, type Attachment, type AttachmentItem, AttachmentPreview, type AttachmentPreviewProps, type AttachmentStatus, AudioCard, type AudioCardProps, Avatar, type AvatarProps, type AvatarSize, Badge, type BadgeProps, type BadgeVariant, BranchNavigator, type BranchNavigatorProps, BrandIcon, type BrandIconProps, type BrandIconSize, type BrandIconVariant, Breadcrumb, type BreadcrumbEntry, BreadcrumbItem, type BreadcrumbItemProps, BreadcrumbLink, type BreadcrumbLinkProps, type BreadcrumbProps, Button, type ButtonProps, type ButtonSize, type ButtonVariant, Card, type CardBodyProps, type CardFooterProps, type CardHeaderProps, type CardMediaProps, type CardProps, type CardVariant, ChatBubbleIcon, ChatInput, type ChatInputNotice, type ChatInputPosition, type ChatInputProps, ChatInterface, type ChatInterfaceProps, type ChatMessage, ChatView, type ChatViewItem, type ChatViewProps, CheckSquareIcon, Checkbox, type CheckboxProps, ChevronLeftIcon, ChevronRightIcon, CloseIcon, Col, type ColOffset, type ColOrder, type ColProps, type ColSpan, ColorSwatch, type ColorSwatchProps, ConfirmDialog, type ConfirmDialogProps, Container, type ContainerProps, type ContainerSize, type Conversation, type ConversationTree, CrossSquareIcon, Divider, type DividerProps, Drawer, type DrawerPosition, type DrawerProps, EmptySquareIcon, ExpandIcon, type ExternalToolDefinition, FileChip, type FileChipProps, type FileChipStatus, HelperText, type HelperTextProps, HistoryIcon, HistoryPanel, type HistoryPanelProps, 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, MediaIcon, Menu, MenuContent, type MenuContentProps, MenuItem, type MenuItemProps, MenuLabel, type MenuProps, MenuSeparator, MenuTrigger, type MenuTriggerProps, Message, MessageActions, type MessageActionsConfig, type MessageActionsProps, type MessageActionsVariant, type MessageBranchInfo, type MessageNode, type MessageProps, type MessageVariant, Modal, type ModalProps, NODE_TYPES, Navbar, NavbarBrand, type NavbarBrandProps, NavbarContent, type NavbarContentProps, NavbarDivider, NavbarItem, type NavbarItemProps, NavbarLink, type NavbarLinkProps, type NavbarProps, type NodeType, 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, type ToolDefinition, type ToolGroup, ToolPanelContainer, type ToolPanelContainerProps, type ToolPanelState, ToolSidebar, type ToolSidebarProps, Tooltip, type TooltipProps, type UseArtifactTreeNavigationReturn, type UseScrollAnchorOptions, type UseScrollAnchorReturn, type VideoAspectRatio, type VideoAspectRatioPreset, VideoCard, type VideoCardProps, addMessageToTree, areAllTasksSettled, createEmptyTree, createPreviewUrl, generateId, getActivePathMessages, getSiblingInfo, isBranchPoint, isImageFile, messagesToTree, revokePreviewUrl, switchBranch, updateNodeContent, useArtifactTreeNavigation, useResizable, useScrollAnchor, useToast, version };
|