@citron-systems/citron-ui 1.19.0 → 1.22.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.cts +23 -9
- package/dist/index.d.ts +23 -9
- package/dist/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -5,17 +5,18 @@ import { LucideIcon } from 'lucide-react';
|
|
|
5
5
|
import { FallbackProps } from 'react-error-boundary';
|
|
6
6
|
import { NavLinkProps as NavLinkProps$1 } from 'react-router-dom';
|
|
7
7
|
|
|
8
|
+
interface PendingAttachment {
|
|
9
|
+
file: File;
|
|
10
|
+
kind: 'image' | 'file';
|
|
11
|
+
previewUrl?: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
8
14
|
interface AssistantMessage {
|
|
9
15
|
id: string;
|
|
10
16
|
role: 'user' | 'assistant';
|
|
11
17
|
content: string;
|
|
12
18
|
renderedContent?: ReactNode;
|
|
13
19
|
}
|
|
14
|
-
interface PendingAttachment {
|
|
15
|
-
file: File;
|
|
16
|
-
kind: 'image' | 'file';
|
|
17
|
-
previewUrl?: string;
|
|
18
|
-
}
|
|
19
20
|
interface GlobalAssistantChatProps {
|
|
20
21
|
messages?: AssistantMessage[];
|
|
21
22
|
onSend?: (payload: {
|
|
@@ -60,20 +61,33 @@ interface CenteredAIChatMessage {
|
|
|
60
61
|
content: string;
|
|
61
62
|
renderedContent?: ReactNode;
|
|
62
63
|
}
|
|
64
|
+
interface CenteredAIChatComposePayload {
|
|
65
|
+
text: string;
|
|
66
|
+
files: File[];
|
|
67
|
+
}
|
|
63
68
|
interface CenteredAIChatProps {
|
|
64
69
|
messages?: CenteredAIChatMessage[];
|
|
65
70
|
onSend?: (content: string) => void;
|
|
71
|
+
/**
|
|
72
|
+
* Prefer this when you need text + files in one step. Files stay in a preview queue until send.
|
|
73
|
+
* When set, it is used on send instead of calling `onSend` / `onFilesAttach` separately.
|
|
74
|
+
*/
|
|
75
|
+
onComposeSubmit?: (payload: CenteredAIChatComposePayload) => void;
|
|
66
76
|
isProcessing?: boolean;
|
|
67
77
|
placeholder?: string;
|
|
68
78
|
agents?: CenteredAIChatAgent[];
|
|
69
79
|
activeAgent?: string;
|
|
70
80
|
onAgentChange?: (agentId: string) => void;
|
|
81
|
+
/**
|
|
82
|
+
* Legacy: invoked when the user sends and there are pending attachments (after preview).
|
|
83
|
+
* Ignored if `onComposeSubmit` is provided.
|
|
84
|
+
*/
|
|
71
85
|
onFilesAttach?: (files: File[]) => void;
|
|
72
86
|
onVoiceClick?: () => void;
|
|
73
87
|
emptyStateMessage?: string;
|
|
74
88
|
className?: string;
|
|
75
89
|
}
|
|
76
|
-
declare function CenteredAIChat({ messages, onSend, isProcessing, placeholder, agents, activeAgent, onAgentChange, onFilesAttach, onVoiceClick, emptyStateMessage, className, }: CenteredAIChatProps): react_jsx_runtime.JSX.Element;
|
|
90
|
+
declare function CenteredAIChat({ messages, onSend, onComposeSubmit, isProcessing, placeholder, agents, activeAgent, onAgentChange, onFilesAttach, onVoiceClick, emptyStateMessage, className, }: CenteredAIChatProps): react_jsx_runtime.JSX.Element;
|
|
77
91
|
|
|
78
92
|
interface ActionButtonItem {
|
|
79
93
|
id: string;
|
|
@@ -207,7 +221,7 @@ interface ErrorBoundaryState {
|
|
|
207
221
|
declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
|
|
208
222
|
constructor(props: ErrorBoundaryProps);
|
|
209
223
|
static getDerivedStateFromError(error: Error): ErrorBoundaryState;
|
|
210
|
-
render(): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> |
|
|
224
|
+
render(): string | number | bigint | boolean | react_jsx_runtime.JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | null | undefined;
|
|
211
225
|
}
|
|
212
226
|
|
|
213
227
|
interface CitronEvent {
|
|
@@ -302,7 +316,7 @@ interface ModuleErrorBoundaryState {
|
|
|
302
316
|
declare class ModuleErrorBoundary extends Component<ModuleErrorBoundaryProps, ModuleErrorBoundaryState> {
|
|
303
317
|
constructor(props: ModuleErrorBoundaryProps);
|
|
304
318
|
static getDerivedStateFromError(error: Error): ModuleErrorBoundaryState;
|
|
305
|
-
render(): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> |
|
|
319
|
+
render(): string | number | bigint | boolean | react_jsx_runtime.JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | null | undefined;
|
|
306
320
|
}
|
|
307
321
|
|
|
308
322
|
interface PageErrorFallbackProps extends FallbackProps {
|
|
@@ -1575,4 +1589,4 @@ declare const semanticInteractivePrimary = "var(--inkblot-semantic-color-interac
|
|
|
1575
1589
|
declare const semanticInteractiveSecondary = "var(--inkblot-semantic-color-interactive-secondary)";
|
|
1576
1590
|
declare const semanticInteractiveSecondaryHover = "var(--inkblot-semantic-color-interactive-secondary-hover)";
|
|
1577
1591
|
|
|
1578
|
-
export { AIComposeInput, type AIComposeInputProps, AIEmailGenerator, type AIEmailGeneratorProps, Accordion, type AccordionItem, type AccordionProps, type ActionButtonItem, ActionButtons, type ActionButtonsProps, ActivityStream, type ActivityStreamProps, AdvancedDropdown, type AdvancedDropdownOption, type AdvancedDropdownProps, Alert, AlertDialog, type AlertDialogProps, type AlertProps, type AlertVariant, AppLayout, type AppLayoutProps, AppNavigationRail, type AppNavigationRailItem, type AppNavigationRailProps, AppSidebar, type AppSidebarItem, type AppSidebarProps, AspectRatio, type AspectRatioProps, type AssistantMessage, AssistantPanel, type AssistantPanelProps, Avatar, type AvatarProps, type AvatarSize, Badge, type BadgeProps, type BadgeVariant, type BlockType, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, Button, type ButtonProps, type ButtonVariant, CITRON_THEME_STORAGE_KEY, Calendar, type CalendarProps, type CampaignStatus, CampaignTable, type CampaignTableProps, type CampaignTableRow, type CanvasBlock, type CanvasContextValue, CanvasProvider, type CanvasProviderProps, Card, CardContent, CardDescription, CardFooter, CardHeader, type CardProps, CardTitle, Carousel, type CarouselProps, CenteredAIChat, type CenteredAIChatAgent, type CenteredAIChatMessage, type CenteredAIChatProps, CenteredAssistantChat, type CenteredAssistantChatProps, Chart, type ChartDatum, type ChartProps, type ChatMessage, Checkbox, type CheckboxProps, CircularScore, type CircularScoreProps, type CitronEvent, type CitronTheme, Collapsible, type CollapsibleProps, Command, CommandBar, type CommandBarProps, CommandCanvas, type CommandCanvasCardType, type CommandCanvasMessage, type CommandCanvasProps, type CommandItem, type CommandProps, ContextMenu, type ContextMenuItem, type ContextMenuProps, Dialog, DialogClose, type DialogCloseProps, DialogContent, type DialogContentProps, DialogDescription, type DialogDescriptionProps, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderProps, type DialogProps, DialogTitle, type DialogTitleProps, DialogTrigger, type DialogTriggerProps, Drawer, DrawerClose, type DrawerCloseProps, DrawerContent, type DrawerContentProps, DrawerDescription, type DrawerDescriptionProps, DrawerFooter, type DrawerFooterProps, DrawerHeader, type DrawerHeaderProps, type DrawerProps, DrawerTitle, type DrawerTitleProps, DrawerTrigger, type DrawerTriggerProps, DropdownMenu, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuItem, type DropdownMenuItemProps, type DropdownMenuProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuTrigger, type DropdownMenuTriggerProps, type Edge, type EmailBlock, EmailBlockEditor, type EmailBlockEditorProps, EmailCampaignsView, type EmailCampaignsViewProps, EmailComposeActionButtons, type EmailTemplateItem, EmailTemplatesSection, type EmailTemplatesSectionProps, EntityCard, type EntityCardProps, type EntityCardStat, EntityCommandCard, type EntityCommandCardProps, type EntityCommandCardStat, type EntityType, ErrorBoundary, type ErrorBoundaryProps, EventFeed, type EventFeedItem, type EventFeedProps, EventRow, type EventRowProps, type EventStatus, type EventStreamEvent, EventStreamFeed, type EventStreamFeedProps, EventStreamSidebar, type EventStreamSidebarProps, type EventStreamStatus, Form, FormActions, type FormActionsProps, FormField, type FormFieldProps, type FormProps, GlobalAssistantChat, type GlobalAssistantChatProps, type GraphEdge, type GraphNode$1 as GraphNode, GraphView, type GraphViewProps, GuidedTour, type GuidedTourProps, type GuidedTourStep, HoverCard, HoverCardContent, type HoverCardContentProps, type HoverCardProps, HoverCardTrigger, type HoverCardTriggerProps, Input, InputOtp, type InputOtpProps, type InputProps, IntegrationPlaceholder, type IntegrationPlaceholderProps, IntelligenceCard, type IntelligenceCardProps, IntelligenceLab, type IntelligenceLabInsight, type IntelligenceLabKpiCard, type IntelligenceLabProps, IntelligenceScoreCard, type IntelligenceScoreCardProps, type IntelligenceScoreItem, type InvoiceClient, InvoiceEditorPage, type InvoiceEditorPageProps, InvoiceForm, type InvoiceFormData, type InvoiceFormProps, InvoicePreview, type InvoicePreviewProps, type InvoiceProduct, Label, type LabelProps, MainShell, type MainShellProps, Menubar, MenubarCloseZone, type MenubarCloseZoneProps, MenubarContent, type MenubarContentProps, MenubarItem, type MenubarItemProps, MenubarMenu, type MenubarMenuProps, type MenubarProps, MenubarSeparator, type MenubarSeparatorProps, MenubarTrigger, type MenubarTriggerProps, type MetricComparisonItem, MetricComparisonList, type MetricComparisonListProps, type MetricComparisonVariant, ModuleContainer, type ModuleContainerProps, ModuleErrorBoundary, type ModuleErrorBoundaryProps, ModuleSkeleton, type ModuleSkeletonProps, NavLink, type NavLinkProps, NavLinkRouter, type NavLinkRouterProps, NavigationMenu, type NavigationMenuItem, type NavigationMenuProps, OSNavigationRail, type OSNavigationRailItem, type OSNavigationRailProps, OnboardingWizard, type OnboardingWizardProps, PageErrorFallback, type PageErrorFallbackProps, PageHeader, PageHeaderActionButton, type PageHeaderActionButtonProps, type PageHeaderProps, Pagination, type PaginationProps, type PendingAttachment, Popover, PopoverClose, type PopoverCloseProps, PopoverContent, type PopoverContentProps, type PopoverProps, PopoverTrigger, type PopoverTriggerProps, Progress, type ProgressProps, RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioGroupOption, type RadioGroupProps, Resizable, type ResizableProps, RouteWithErrorBoundary, type RouteWithErrorBoundaryProps, ScrollArea, type ScrollAreaProps, SearchBar, type SearchBarProps, Select, type SelectOption, type SelectProps, Separator, type SeparatorOrientation, type SeparatorProps, Sheet, type SheetProps, type SheetSide, Sidebar, type SidebarItem, type SidebarProps, Skeleton, type SkeletonProps, Slider, type SliderProps, Sonner, type SonnerProps, type StatCardChangeVariant, StatCardGrid, type StatCardGridProps, type StatCardItem, type StatCardWithChartItem, StatCards, type StatCardsProps, StatCardsWithChart, type StatCardsWithChartProps, StatusBadge, type StatusBadgeProps, type StatusBadgeVariant, Switch, type SwitchProps, type TabItem, TabSystem, type TabSystemProps, Table, TableBody, TableCaption, TableCell, TableEmptyState, TableHead, TableHeader, TableRow, type TableSortDirection, Tabs, type TabsItem, type TabsProps, TaskCreateForm, type TaskCreateFormProps, type TaskCreatePayload, type TaskDetailsField, TaskDetailsPanel, type TaskDetailsPanelProps, TaskItem, type TaskItemData, type TaskItemProps, TaskKanbanBoard as TaskKanban, TaskKanbanBoard, type TaskKanbanBoardProps, TaskKanbanCard, type TaskKanbanCardProps, TaskKanbanColumn, type TaskKanbanColumnProps, type TaskKanbanBoardProps as TaskKanbanProps, TaskList, type TaskListProps, type TaskPriority, type TaskSection, type TaskStatus, type TaskWithStatus, TasksView, type TasksViewProps, TemplateCard, type TemplateCardProps, TemplateMasonryGrid, type TemplateMasonryGridProps, type TemplateMasonryItem, Textarea, type TextareaProps, type TextareaResize, type ThemeContextValue, ThemeProvider, ThemeSwitcherButton, type ThemeSwitcherButtonProps, Toast, type ToastAction, type ToastProps, type ToastVariant, Toaster, type ToasterItem, type ToasterPosition, type ToasterProps, Toggle, ToggleGroup, type ToggleGroupItem, type ToggleGroupProps, type ToggleGroupType, type ToggleProps, type ToggleSize, type ToggleVariant, Tooltip, type TooltipProps, type TooltipSide, semanticBackgroundPrimary, semanticBackgroundSecondary, semanticBorderDefault, semanticInteractivePrimary, semanticInteractiveSecondary, semanticInteractiveSecondaryHover, semanticTextPrimary, semanticTextSecondary, useCanvas, useTheme };
|
|
1592
|
+
export { AIComposeInput, type AIComposeInputProps, AIEmailGenerator, type AIEmailGeneratorProps, Accordion, type AccordionItem, type AccordionProps, type ActionButtonItem, ActionButtons, type ActionButtonsProps, ActivityStream, type ActivityStreamProps, AdvancedDropdown, type AdvancedDropdownOption, type AdvancedDropdownProps, Alert, AlertDialog, type AlertDialogProps, type AlertProps, type AlertVariant, AppLayout, type AppLayoutProps, AppNavigationRail, type AppNavigationRailItem, type AppNavigationRailProps, AppSidebar, type AppSidebarItem, type AppSidebarProps, AspectRatio, type AspectRatioProps, type AssistantMessage, AssistantPanel, type AssistantPanelProps, Avatar, type AvatarProps, type AvatarSize, Badge, type BadgeProps, type BadgeVariant, type BlockType, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, Button, type ButtonProps, type ButtonVariant, CITRON_THEME_STORAGE_KEY, Calendar, type CalendarProps, type CampaignStatus, CampaignTable, type CampaignTableProps, type CampaignTableRow, type CanvasBlock, type CanvasContextValue, CanvasProvider, type CanvasProviderProps, Card, CardContent, CardDescription, CardFooter, CardHeader, type CardProps, CardTitle, Carousel, type CarouselProps, CenteredAIChat, type CenteredAIChatAgent, type CenteredAIChatComposePayload, type CenteredAIChatMessage, type CenteredAIChatProps, CenteredAssistantChat, type CenteredAssistantChatProps, Chart, type ChartDatum, type ChartProps, type ChatMessage, Checkbox, type CheckboxProps, CircularScore, type CircularScoreProps, type CitronEvent, type CitronTheme, Collapsible, type CollapsibleProps, Command, CommandBar, type CommandBarProps, CommandCanvas, type CommandCanvasCardType, type CommandCanvasMessage, type CommandCanvasProps, type CommandItem, type CommandProps, ContextMenu, type ContextMenuItem, type ContextMenuProps, Dialog, DialogClose, type DialogCloseProps, DialogContent, type DialogContentProps, DialogDescription, type DialogDescriptionProps, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderProps, type DialogProps, DialogTitle, type DialogTitleProps, DialogTrigger, type DialogTriggerProps, Drawer, DrawerClose, type DrawerCloseProps, DrawerContent, type DrawerContentProps, DrawerDescription, type DrawerDescriptionProps, DrawerFooter, type DrawerFooterProps, DrawerHeader, type DrawerHeaderProps, type DrawerProps, DrawerTitle, type DrawerTitleProps, DrawerTrigger, type DrawerTriggerProps, DropdownMenu, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuItem, type DropdownMenuItemProps, type DropdownMenuProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuTrigger, type DropdownMenuTriggerProps, type Edge, type EmailBlock, EmailBlockEditor, type EmailBlockEditorProps, EmailCampaignsView, type EmailCampaignsViewProps, EmailComposeActionButtons, type EmailTemplateItem, EmailTemplatesSection, type EmailTemplatesSectionProps, EntityCard, type EntityCardProps, type EntityCardStat, EntityCommandCard, type EntityCommandCardProps, type EntityCommandCardStat, type EntityType, ErrorBoundary, type ErrorBoundaryProps, EventFeed, type EventFeedItem, type EventFeedProps, EventRow, type EventRowProps, type EventStatus, type EventStreamEvent, EventStreamFeed, type EventStreamFeedProps, EventStreamSidebar, type EventStreamSidebarProps, type EventStreamStatus, Form, FormActions, type FormActionsProps, FormField, type FormFieldProps, type FormProps, GlobalAssistantChat, type GlobalAssistantChatProps, type GraphEdge, type GraphNode$1 as GraphNode, GraphView, type GraphViewProps, GuidedTour, type GuidedTourProps, type GuidedTourStep, HoverCard, HoverCardContent, type HoverCardContentProps, type HoverCardProps, HoverCardTrigger, type HoverCardTriggerProps, Input, InputOtp, type InputOtpProps, type InputProps, IntegrationPlaceholder, type IntegrationPlaceholderProps, IntelligenceCard, type IntelligenceCardProps, IntelligenceLab, type IntelligenceLabInsight, type IntelligenceLabKpiCard, type IntelligenceLabProps, IntelligenceScoreCard, type IntelligenceScoreCardProps, type IntelligenceScoreItem, type InvoiceClient, InvoiceEditorPage, type InvoiceEditorPageProps, InvoiceForm, type InvoiceFormData, type InvoiceFormProps, InvoicePreview, type InvoicePreviewProps, type InvoiceProduct, Label, type LabelProps, MainShell, type MainShellProps, Menubar, MenubarCloseZone, type MenubarCloseZoneProps, MenubarContent, type MenubarContentProps, MenubarItem, type MenubarItemProps, MenubarMenu, type MenubarMenuProps, type MenubarProps, MenubarSeparator, type MenubarSeparatorProps, MenubarTrigger, type MenubarTriggerProps, type MetricComparisonItem, MetricComparisonList, type MetricComparisonListProps, type MetricComparisonVariant, ModuleContainer, type ModuleContainerProps, ModuleErrorBoundary, type ModuleErrorBoundaryProps, ModuleSkeleton, type ModuleSkeletonProps, NavLink, type NavLinkProps, NavLinkRouter, type NavLinkRouterProps, NavigationMenu, type NavigationMenuItem, type NavigationMenuProps, OSNavigationRail, type OSNavigationRailItem, type OSNavigationRailProps, OnboardingWizard, type OnboardingWizardProps, PageErrorFallback, type PageErrorFallbackProps, PageHeader, PageHeaderActionButton, type PageHeaderActionButtonProps, type PageHeaderProps, Pagination, type PaginationProps, type PendingAttachment, Popover, PopoverClose, type PopoverCloseProps, PopoverContent, type PopoverContentProps, type PopoverProps, PopoverTrigger, type PopoverTriggerProps, Progress, type ProgressProps, RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioGroupOption, type RadioGroupProps, Resizable, type ResizableProps, RouteWithErrorBoundary, type RouteWithErrorBoundaryProps, ScrollArea, type ScrollAreaProps, SearchBar, type SearchBarProps, Select, type SelectOption, type SelectProps, Separator, type SeparatorOrientation, type SeparatorProps, Sheet, type SheetProps, type SheetSide, Sidebar, type SidebarItem, type SidebarProps, Skeleton, type SkeletonProps, Slider, type SliderProps, Sonner, type SonnerProps, type StatCardChangeVariant, StatCardGrid, type StatCardGridProps, type StatCardItem, type StatCardWithChartItem, StatCards, type StatCardsProps, StatCardsWithChart, type StatCardsWithChartProps, StatusBadge, type StatusBadgeProps, type StatusBadgeVariant, Switch, type SwitchProps, type TabItem, TabSystem, type TabSystemProps, Table, TableBody, TableCaption, TableCell, TableEmptyState, TableHead, TableHeader, TableRow, type TableSortDirection, Tabs, type TabsItem, type TabsProps, TaskCreateForm, type TaskCreateFormProps, type TaskCreatePayload, type TaskDetailsField, TaskDetailsPanel, type TaskDetailsPanelProps, TaskItem, type TaskItemData, type TaskItemProps, TaskKanbanBoard as TaskKanban, TaskKanbanBoard, type TaskKanbanBoardProps, TaskKanbanCard, type TaskKanbanCardProps, TaskKanbanColumn, type TaskKanbanColumnProps, type TaskKanbanBoardProps as TaskKanbanProps, TaskList, type TaskListProps, type TaskPriority, type TaskSection, type TaskStatus, type TaskWithStatus, TasksView, type TasksViewProps, TemplateCard, type TemplateCardProps, TemplateMasonryGrid, type TemplateMasonryGridProps, type TemplateMasonryItem, Textarea, type TextareaProps, type TextareaResize, type ThemeContextValue, ThemeProvider, ThemeSwitcherButton, type ThemeSwitcherButtonProps, Toast, type ToastAction, type ToastProps, type ToastVariant, Toaster, type ToasterItem, type ToasterPosition, type ToasterProps, Toggle, ToggleGroup, type ToggleGroupItem, type ToggleGroupProps, type ToggleGroupType, type ToggleProps, type ToggleSize, type ToggleVariant, Tooltip, type TooltipProps, type TooltipSide, semanticBackgroundPrimary, semanticBackgroundSecondary, semanticBorderDefault, semanticInteractivePrimary, semanticInteractiveSecondary, semanticInteractiveSecondaryHover, semanticTextPrimary, semanticTextSecondary, useCanvas, useTheme };
|
package/dist/index.d.ts
CHANGED
|
@@ -5,17 +5,18 @@ import { LucideIcon } from 'lucide-react';
|
|
|
5
5
|
import { FallbackProps } from 'react-error-boundary';
|
|
6
6
|
import { NavLinkProps as NavLinkProps$1 } from 'react-router-dom';
|
|
7
7
|
|
|
8
|
+
interface PendingAttachment {
|
|
9
|
+
file: File;
|
|
10
|
+
kind: 'image' | 'file';
|
|
11
|
+
previewUrl?: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
8
14
|
interface AssistantMessage {
|
|
9
15
|
id: string;
|
|
10
16
|
role: 'user' | 'assistant';
|
|
11
17
|
content: string;
|
|
12
18
|
renderedContent?: ReactNode;
|
|
13
19
|
}
|
|
14
|
-
interface PendingAttachment {
|
|
15
|
-
file: File;
|
|
16
|
-
kind: 'image' | 'file';
|
|
17
|
-
previewUrl?: string;
|
|
18
|
-
}
|
|
19
20
|
interface GlobalAssistantChatProps {
|
|
20
21
|
messages?: AssistantMessage[];
|
|
21
22
|
onSend?: (payload: {
|
|
@@ -60,20 +61,33 @@ interface CenteredAIChatMessage {
|
|
|
60
61
|
content: string;
|
|
61
62
|
renderedContent?: ReactNode;
|
|
62
63
|
}
|
|
64
|
+
interface CenteredAIChatComposePayload {
|
|
65
|
+
text: string;
|
|
66
|
+
files: File[];
|
|
67
|
+
}
|
|
63
68
|
interface CenteredAIChatProps {
|
|
64
69
|
messages?: CenteredAIChatMessage[];
|
|
65
70
|
onSend?: (content: string) => void;
|
|
71
|
+
/**
|
|
72
|
+
* Prefer this when you need text + files in one step. Files stay in a preview queue until send.
|
|
73
|
+
* When set, it is used on send instead of calling `onSend` / `onFilesAttach` separately.
|
|
74
|
+
*/
|
|
75
|
+
onComposeSubmit?: (payload: CenteredAIChatComposePayload) => void;
|
|
66
76
|
isProcessing?: boolean;
|
|
67
77
|
placeholder?: string;
|
|
68
78
|
agents?: CenteredAIChatAgent[];
|
|
69
79
|
activeAgent?: string;
|
|
70
80
|
onAgentChange?: (agentId: string) => void;
|
|
81
|
+
/**
|
|
82
|
+
* Legacy: invoked when the user sends and there are pending attachments (after preview).
|
|
83
|
+
* Ignored if `onComposeSubmit` is provided.
|
|
84
|
+
*/
|
|
71
85
|
onFilesAttach?: (files: File[]) => void;
|
|
72
86
|
onVoiceClick?: () => void;
|
|
73
87
|
emptyStateMessage?: string;
|
|
74
88
|
className?: string;
|
|
75
89
|
}
|
|
76
|
-
declare function CenteredAIChat({ messages, onSend, isProcessing, placeholder, agents, activeAgent, onAgentChange, onFilesAttach, onVoiceClick, emptyStateMessage, className, }: CenteredAIChatProps): react_jsx_runtime.JSX.Element;
|
|
90
|
+
declare function CenteredAIChat({ messages, onSend, onComposeSubmit, isProcessing, placeholder, agents, activeAgent, onAgentChange, onFilesAttach, onVoiceClick, emptyStateMessage, className, }: CenteredAIChatProps): react_jsx_runtime.JSX.Element;
|
|
77
91
|
|
|
78
92
|
interface ActionButtonItem {
|
|
79
93
|
id: string;
|
|
@@ -207,7 +221,7 @@ interface ErrorBoundaryState {
|
|
|
207
221
|
declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
|
|
208
222
|
constructor(props: ErrorBoundaryProps);
|
|
209
223
|
static getDerivedStateFromError(error: Error): ErrorBoundaryState;
|
|
210
|
-
render(): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> |
|
|
224
|
+
render(): string | number | bigint | boolean | react_jsx_runtime.JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | null | undefined;
|
|
211
225
|
}
|
|
212
226
|
|
|
213
227
|
interface CitronEvent {
|
|
@@ -302,7 +316,7 @@ interface ModuleErrorBoundaryState {
|
|
|
302
316
|
declare class ModuleErrorBoundary extends Component<ModuleErrorBoundaryProps, ModuleErrorBoundaryState> {
|
|
303
317
|
constructor(props: ModuleErrorBoundaryProps);
|
|
304
318
|
static getDerivedStateFromError(error: Error): ModuleErrorBoundaryState;
|
|
305
|
-
render(): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> |
|
|
319
|
+
render(): string | number | bigint | boolean | react_jsx_runtime.JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | null | undefined;
|
|
306
320
|
}
|
|
307
321
|
|
|
308
322
|
interface PageErrorFallbackProps extends FallbackProps {
|
|
@@ -1575,4 +1589,4 @@ declare const semanticInteractivePrimary = "var(--inkblot-semantic-color-interac
|
|
|
1575
1589
|
declare const semanticInteractiveSecondary = "var(--inkblot-semantic-color-interactive-secondary)";
|
|
1576
1590
|
declare const semanticInteractiveSecondaryHover = "var(--inkblot-semantic-color-interactive-secondary-hover)";
|
|
1577
1591
|
|
|
1578
|
-
export { AIComposeInput, type AIComposeInputProps, AIEmailGenerator, type AIEmailGeneratorProps, Accordion, type AccordionItem, type AccordionProps, type ActionButtonItem, ActionButtons, type ActionButtonsProps, ActivityStream, type ActivityStreamProps, AdvancedDropdown, type AdvancedDropdownOption, type AdvancedDropdownProps, Alert, AlertDialog, type AlertDialogProps, type AlertProps, type AlertVariant, AppLayout, type AppLayoutProps, AppNavigationRail, type AppNavigationRailItem, type AppNavigationRailProps, AppSidebar, type AppSidebarItem, type AppSidebarProps, AspectRatio, type AspectRatioProps, type AssistantMessage, AssistantPanel, type AssistantPanelProps, Avatar, type AvatarProps, type AvatarSize, Badge, type BadgeProps, type BadgeVariant, type BlockType, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, Button, type ButtonProps, type ButtonVariant, CITRON_THEME_STORAGE_KEY, Calendar, type CalendarProps, type CampaignStatus, CampaignTable, type CampaignTableProps, type CampaignTableRow, type CanvasBlock, type CanvasContextValue, CanvasProvider, type CanvasProviderProps, Card, CardContent, CardDescription, CardFooter, CardHeader, type CardProps, CardTitle, Carousel, type CarouselProps, CenteredAIChat, type CenteredAIChatAgent, type CenteredAIChatMessage, type CenteredAIChatProps, CenteredAssistantChat, type CenteredAssistantChatProps, Chart, type ChartDatum, type ChartProps, type ChatMessage, Checkbox, type CheckboxProps, CircularScore, type CircularScoreProps, type CitronEvent, type CitronTheme, Collapsible, type CollapsibleProps, Command, CommandBar, type CommandBarProps, CommandCanvas, type CommandCanvasCardType, type CommandCanvasMessage, type CommandCanvasProps, type CommandItem, type CommandProps, ContextMenu, type ContextMenuItem, type ContextMenuProps, Dialog, DialogClose, type DialogCloseProps, DialogContent, type DialogContentProps, DialogDescription, type DialogDescriptionProps, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderProps, type DialogProps, DialogTitle, type DialogTitleProps, DialogTrigger, type DialogTriggerProps, Drawer, DrawerClose, type DrawerCloseProps, DrawerContent, type DrawerContentProps, DrawerDescription, type DrawerDescriptionProps, DrawerFooter, type DrawerFooterProps, DrawerHeader, type DrawerHeaderProps, type DrawerProps, DrawerTitle, type DrawerTitleProps, DrawerTrigger, type DrawerTriggerProps, DropdownMenu, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuItem, type DropdownMenuItemProps, type DropdownMenuProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuTrigger, type DropdownMenuTriggerProps, type Edge, type EmailBlock, EmailBlockEditor, type EmailBlockEditorProps, EmailCampaignsView, type EmailCampaignsViewProps, EmailComposeActionButtons, type EmailTemplateItem, EmailTemplatesSection, type EmailTemplatesSectionProps, EntityCard, type EntityCardProps, type EntityCardStat, EntityCommandCard, type EntityCommandCardProps, type EntityCommandCardStat, type EntityType, ErrorBoundary, type ErrorBoundaryProps, EventFeed, type EventFeedItem, type EventFeedProps, EventRow, type EventRowProps, type EventStatus, type EventStreamEvent, EventStreamFeed, type EventStreamFeedProps, EventStreamSidebar, type EventStreamSidebarProps, type EventStreamStatus, Form, FormActions, type FormActionsProps, FormField, type FormFieldProps, type FormProps, GlobalAssistantChat, type GlobalAssistantChatProps, type GraphEdge, type GraphNode$1 as GraphNode, GraphView, type GraphViewProps, GuidedTour, type GuidedTourProps, type GuidedTourStep, HoverCard, HoverCardContent, type HoverCardContentProps, type HoverCardProps, HoverCardTrigger, type HoverCardTriggerProps, Input, InputOtp, type InputOtpProps, type InputProps, IntegrationPlaceholder, type IntegrationPlaceholderProps, IntelligenceCard, type IntelligenceCardProps, IntelligenceLab, type IntelligenceLabInsight, type IntelligenceLabKpiCard, type IntelligenceLabProps, IntelligenceScoreCard, type IntelligenceScoreCardProps, type IntelligenceScoreItem, type InvoiceClient, InvoiceEditorPage, type InvoiceEditorPageProps, InvoiceForm, type InvoiceFormData, type InvoiceFormProps, InvoicePreview, type InvoicePreviewProps, type InvoiceProduct, Label, type LabelProps, MainShell, type MainShellProps, Menubar, MenubarCloseZone, type MenubarCloseZoneProps, MenubarContent, type MenubarContentProps, MenubarItem, type MenubarItemProps, MenubarMenu, type MenubarMenuProps, type MenubarProps, MenubarSeparator, type MenubarSeparatorProps, MenubarTrigger, type MenubarTriggerProps, type MetricComparisonItem, MetricComparisonList, type MetricComparisonListProps, type MetricComparisonVariant, ModuleContainer, type ModuleContainerProps, ModuleErrorBoundary, type ModuleErrorBoundaryProps, ModuleSkeleton, type ModuleSkeletonProps, NavLink, type NavLinkProps, NavLinkRouter, type NavLinkRouterProps, NavigationMenu, type NavigationMenuItem, type NavigationMenuProps, OSNavigationRail, type OSNavigationRailItem, type OSNavigationRailProps, OnboardingWizard, type OnboardingWizardProps, PageErrorFallback, type PageErrorFallbackProps, PageHeader, PageHeaderActionButton, type PageHeaderActionButtonProps, type PageHeaderProps, Pagination, type PaginationProps, type PendingAttachment, Popover, PopoverClose, type PopoverCloseProps, PopoverContent, type PopoverContentProps, type PopoverProps, PopoverTrigger, type PopoverTriggerProps, Progress, type ProgressProps, RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioGroupOption, type RadioGroupProps, Resizable, type ResizableProps, RouteWithErrorBoundary, type RouteWithErrorBoundaryProps, ScrollArea, type ScrollAreaProps, SearchBar, type SearchBarProps, Select, type SelectOption, type SelectProps, Separator, type SeparatorOrientation, type SeparatorProps, Sheet, type SheetProps, type SheetSide, Sidebar, type SidebarItem, type SidebarProps, Skeleton, type SkeletonProps, Slider, type SliderProps, Sonner, type SonnerProps, type StatCardChangeVariant, StatCardGrid, type StatCardGridProps, type StatCardItem, type StatCardWithChartItem, StatCards, type StatCardsProps, StatCardsWithChart, type StatCardsWithChartProps, StatusBadge, type StatusBadgeProps, type StatusBadgeVariant, Switch, type SwitchProps, type TabItem, TabSystem, type TabSystemProps, Table, TableBody, TableCaption, TableCell, TableEmptyState, TableHead, TableHeader, TableRow, type TableSortDirection, Tabs, type TabsItem, type TabsProps, TaskCreateForm, type TaskCreateFormProps, type TaskCreatePayload, type TaskDetailsField, TaskDetailsPanel, type TaskDetailsPanelProps, TaskItem, type TaskItemData, type TaskItemProps, TaskKanbanBoard as TaskKanban, TaskKanbanBoard, type TaskKanbanBoardProps, TaskKanbanCard, type TaskKanbanCardProps, TaskKanbanColumn, type TaskKanbanColumnProps, type TaskKanbanBoardProps as TaskKanbanProps, TaskList, type TaskListProps, type TaskPriority, type TaskSection, type TaskStatus, type TaskWithStatus, TasksView, type TasksViewProps, TemplateCard, type TemplateCardProps, TemplateMasonryGrid, type TemplateMasonryGridProps, type TemplateMasonryItem, Textarea, type TextareaProps, type TextareaResize, type ThemeContextValue, ThemeProvider, ThemeSwitcherButton, type ThemeSwitcherButtonProps, Toast, type ToastAction, type ToastProps, type ToastVariant, Toaster, type ToasterItem, type ToasterPosition, type ToasterProps, Toggle, ToggleGroup, type ToggleGroupItem, type ToggleGroupProps, type ToggleGroupType, type ToggleProps, type ToggleSize, type ToggleVariant, Tooltip, type TooltipProps, type TooltipSide, semanticBackgroundPrimary, semanticBackgroundSecondary, semanticBorderDefault, semanticInteractivePrimary, semanticInteractiveSecondary, semanticInteractiveSecondaryHover, semanticTextPrimary, semanticTextSecondary, useCanvas, useTheme };
|
|
1592
|
+
export { AIComposeInput, type AIComposeInputProps, AIEmailGenerator, type AIEmailGeneratorProps, Accordion, type AccordionItem, type AccordionProps, type ActionButtonItem, ActionButtons, type ActionButtonsProps, ActivityStream, type ActivityStreamProps, AdvancedDropdown, type AdvancedDropdownOption, type AdvancedDropdownProps, Alert, AlertDialog, type AlertDialogProps, type AlertProps, type AlertVariant, AppLayout, type AppLayoutProps, AppNavigationRail, type AppNavigationRailItem, type AppNavigationRailProps, AppSidebar, type AppSidebarItem, type AppSidebarProps, AspectRatio, type AspectRatioProps, type AssistantMessage, AssistantPanel, type AssistantPanelProps, Avatar, type AvatarProps, type AvatarSize, Badge, type BadgeProps, type BadgeVariant, type BlockType, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, Button, type ButtonProps, type ButtonVariant, CITRON_THEME_STORAGE_KEY, Calendar, type CalendarProps, type CampaignStatus, CampaignTable, type CampaignTableProps, type CampaignTableRow, type CanvasBlock, type CanvasContextValue, CanvasProvider, type CanvasProviderProps, Card, CardContent, CardDescription, CardFooter, CardHeader, type CardProps, CardTitle, Carousel, type CarouselProps, CenteredAIChat, type CenteredAIChatAgent, type CenteredAIChatComposePayload, type CenteredAIChatMessage, type CenteredAIChatProps, CenteredAssistantChat, type CenteredAssistantChatProps, Chart, type ChartDatum, type ChartProps, type ChatMessage, Checkbox, type CheckboxProps, CircularScore, type CircularScoreProps, type CitronEvent, type CitronTheme, Collapsible, type CollapsibleProps, Command, CommandBar, type CommandBarProps, CommandCanvas, type CommandCanvasCardType, type CommandCanvasMessage, type CommandCanvasProps, type CommandItem, type CommandProps, ContextMenu, type ContextMenuItem, type ContextMenuProps, Dialog, DialogClose, type DialogCloseProps, DialogContent, type DialogContentProps, DialogDescription, type DialogDescriptionProps, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderProps, type DialogProps, DialogTitle, type DialogTitleProps, DialogTrigger, type DialogTriggerProps, Drawer, DrawerClose, type DrawerCloseProps, DrawerContent, type DrawerContentProps, DrawerDescription, type DrawerDescriptionProps, DrawerFooter, type DrawerFooterProps, DrawerHeader, type DrawerHeaderProps, type DrawerProps, DrawerTitle, type DrawerTitleProps, DrawerTrigger, type DrawerTriggerProps, DropdownMenu, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuItem, type DropdownMenuItemProps, type DropdownMenuProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuTrigger, type DropdownMenuTriggerProps, type Edge, type EmailBlock, EmailBlockEditor, type EmailBlockEditorProps, EmailCampaignsView, type EmailCampaignsViewProps, EmailComposeActionButtons, type EmailTemplateItem, EmailTemplatesSection, type EmailTemplatesSectionProps, EntityCard, type EntityCardProps, type EntityCardStat, EntityCommandCard, type EntityCommandCardProps, type EntityCommandCardStat, type EntityType, ErrorBoundary, type ErrorBoundaryProps, EventFeed, type EventFeedItem, type EventFeedProps, EventRow, type EventRowProps, type EventStatus, type EventStreamEvent, EventStreamFeed, type EventStreamFeedProps, EventStreamSidebar, type EventStreamSidebarProps, type EventStreamStatus, Form, FormActions, type FormActionsProps, FormField, type FormFieldProps, type FormProps, GlobalAssistantChat, type GlobalAssistantChatProps, type GraphEdge, type GraphNode$1 as GraphNode, GraphView, type GraphViewProps, GuidedTour, type GuidedTourProps, type GuidedTourStep, HoverCard, HoverCardContent, type HoverCardContentProps, type HoverCardProps, HoverCardTrigger, type HoverCardTriggerProps, Input, InputOtp, type InputOtpProps, type InputProps, IntegrationPlaceholder, type IntegrationPlaceholderProps, IntelligenceCard, type IntelligenceCardProps, IntelligenceLab, type IntelligenceLabInsight, type IntelligenceLabKpiCard, type IntelligenceLabProps, IntelligenceScoreCard, type IntelligenceScoreCardProps, type IntelligenceScoreItem, type InvoiceClient, InvoiceEditorPage, type InvoiceEditorPageProps, InvoiceForm, type InvoiceFormData, type InvoiceFormProps, InvoicePreview, type InvoicePreviewProps, type InvoiceProduct, Label, type LabelProps, MainShell, type MainShellProps, Menubar, MenubarCloseZone, type MenubarCloseZoneProps, MenubarContent, type MenubarContentProps, MenubarItem, type MenubarItemProps, MenubarMenu, type MenubarMenuProps, type MenubarProps, MenubarSeparator, type MenubarSeparatorProps, MenubarTrigger, type MenubarTriggerProps, type MetricComparisonItem, MetricComparisonList, type MetricComparisonListProps, type MetricComparisonVariant, ModuleContainer, type ModuleContainerProps, ModuleErrorBoundary, type ModuleErrorBoundaryProps, ModuleSkeleton, type ModuleSkeletonProps, NavLink, type NavLinkProps, NavLinkRouter, type NavLinkRouterProps, NavigationMenu, type NavigationMenuItem, type NavigationMenuProps, OSNavigationRail, type OSNavigationRailItem, type OSNavigationRailProps, OnboardingWizard, type OnboardingWizardProps, PageErrorFallback, type PageErrorFallbackProps, PageHeader, PageHeaderActionButton, type PageHeaderActionButtonProps, type PageHeaderProps, Pagination, type PaginationProps, type PendingAttachment, Popover, PopoverClose, type PopoverCloseProps, PopoverContent, type PopoverContentProps, type PopoverProps, PopoverTrigger, type PopoverTriggerProps, Progress, type ProgressProps, RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioGroupOption, type RadioGroupProps, Resizable, type ResizableProps, RouteWithErrorBoundary, type RouteWithErrorBoundaryProps, ScrollArea, type ScrollAreaProps, SearchBar, type SearchBarProps, Select, type SelectOption, type SelectProps, Separator, type SeparatorOrientation, type SeparatorProps, Sheet, type SheetProps, type SheetSide, Sidebar, type SidebarItem, type SidebarProps, Skeleton, type SkeletonProps, Slider, type SliderProps, Sonner, type SonnerProps, type StatCardChangeVariant, StatCardGrid, type StatCardGridProps, type StatCardItem, type StatCardWithChartItem, StatCards, type StatCardsProps, StatCardsWithChart, type StatCardsWithChartProps, StatusBadge, type StatusBadgeProps, type StatusBadgeVariant, Switch, type SwitchProps, type TabItem, TabSystem, type TabSystemProps, Table, TableBody, TableCaption, TableCell, TableEmptyState, TableHead, TableHeader, TableRow, type TableSortDirection, Tabs, type TabsItem, type TabsProps, TaskCreateForm, type TaskCreateFormProps, type TaskCreatePayload, type TaskDetailsField, TaskDetailsPanel, type TaskDetailsPanelProps, TaskItem, type TaskItemData, type TaskItemProps, TaskKanbanBoard as TaskKanban, TaskKanbanBoard, type TaskKanbanBoardProps, TaskKanbanCard, type TaskKanbanCardProps, TaskKanbanColumn, type TaskKanbanColumnProps, type TaskKanbanBoardProps as TaskKanbanProps, TaskList, type TaskListProps, type TaskPriority, type TaskSection, type TaskStatus, type TaskWithStatus, TasksView, type TasksViewProps, TemplateCard, type TemplateCardProps, TemplateMasonryGrid, type TemplateMasonryGridProps, type TemplateMasonryItem, Textarea, type TextareaProps, type TextareaResize, type ThemeContextValue, ThemeProvider, ThemeSwitcherButton, type ThemeSwitcherButtonProps, Toast, type ToastAction, type ToastProps, type ToastVariant, Toaster, type ToasterItem, type ToasterPosition, type ToasterProps, Toggle, ToggleGroup, type ToggleGroupItem, type ToggleGroupProps, type ToggleGroupType, type ToggleProps, type ToggleSize, type ToggleVariant, Tooltip, type TooltipProps, type TooltipSide, semanticBackgroundPrimary, semanticBackgroundSecondary, semanticBorderDefault, semanticInteractivePrimary, semanticInteractiveSecondary, semanticInteractiveSecondaryHover, semanticTextPrimary, semanticTextSecondary, useCanvas, useTheme };
|