@citron-systems/citron-ui 1.19.0 → 1.23.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 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,38 @@ 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
- onSend?: (content: string) => void;
70
+ /**
71
+ * Igual que `GlobalAssistantChat` / `CenteredAssistantChat`: texto y archivos en un solo callback.
72
+ */
73
+ onSend?: (payload: {
74
+ text: string;
75
+ files: File[];
76
+ }) => void;
77
+ /**
78
+ * Si está definido, se usa al enviar en lugar de `onSend` (misma forma de payload).
79
+ */
80
+ onComposeSubmit?: (payload: CenteredAIChatComposePayload) => void;
66
81
  isProcessing?: boolean;
67
82
  placeholder?: string;
68
83
  agents?: CenteredAIChatAgent[];
69
84
  activeAgent?: string;
70
85
  onAgentChange?: (agentId: string) => void;
86
+ /**
87
+ * Solo si no hay `onSend` ni `onComposeSubmit`: se llama con los archivos al enviar (el texto no tiene destino).
88
+ * @deprecated Prefer `onSend` con `{ text, files }`.
89
+ */
71
90
  onFilesAttach?: (files: File[]) => void;
72
91
  onVoiceClick?: () => void;
73
92
  emptyStateMessage?: string;
74
93
  className?: string;
75
94
  }
76
- declare function CenteredAIChat({ messages, onSend, isProcessing, placeholder, agents, activeAgent, onAgentChange, onFilesAttach, onVoiceClick, emptyStateMessage, className, }: CenteredAIChatProps): react_jsx_runtime.JSX.Element;
95
+ declare function CenteredAIChat({ messages, onSend, onComposeSubmit, isProcessing, placeholder, agents, activeAgent, onAgentChange, onFilesAttach, onVoiceClick, emptyStateMessage, className, }: CenteredAIChatProps): react_jsx_runtime.JSX.Element;
77
96
 
78
97
  interface ActionButtonItem {
79
98
  id: string;
@@ -207,7 +226,7 @@ interface ErrorBoundaryState {
207
226
  declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
208
227
  constructor(props: ErrorBoundaryProps);
209
228
  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> | react_jsx_runtime.JSX.Element | null | undefined;
229
+ 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
230
  }
212
231
 
213
232
  interface CitronEvent {
@@ -302,7 +321,7 @@ interface ModuleErrorBoundaryState {
302
321
  declare class ModuleErrorBoundary extends Component<ModuleErrorBoundaryProps, ModuleErrorBoundaryState> {
303
322
  constructor(props: ModuleErrorBoundaryProps);
304
323
  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> | react_jsx_runtime.JSX.Element | null | undefined;
324
+ 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
325
  }
307
326
 
308
327
  interface PageErrorFallbackProps extends FallbackProps {
@@ -1575,4 +1594,4 @@ declare const semanticInteractivePrimary = "var(--inkblot-semantic-color-interac
1575
1594
  declare const semanticInteractiveSecondary = "var(--inkblot-semantic-color-interactive-secondary)";
1576
1595
  declare const semanticInteractiveSecondaryHover = "var(--inkblot-semantic-color-interactive-secondary-hover)";
1577
1596
 
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 };
1597
+ 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,38 @@ 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
- onSend?: (content: string) => void;
70
+ /**
71
+ * Igual que `GlobalAssistantChat` / `CenteredAssistantChat`: texto y archivos en un solo callback.
72
+ */
73
+ onSend?: (payload: {
74
+ text: string;
75
+ files: File[];
76
+ }) => void;
77
+ /**
78
+ * Si está definido, se usa al enviar en lugar de `onSend` (misma forma de payload).
79
+ */
80
+ onComposeSubmit?: (payload: CenteredAIChatComposePayload) => void;
66
81
  isProcessing?: boolean;
67
82
  placeholder?: string;
68
83
  agents?: CenteredAIChatAgent[];
69
84
  activeAgent?: string;
70
85
  onAgentChange?: (agentId: string) => void;
86
+ /**
87
+ * Solo si no hay `onSend` ni `onComposeSubmit`: se llama con los archivos al enviar (el texto no tiene destino).
88
+ * @deprecated Prefer `onSend` con `{ text, files }`.
89
+ */
71
90
  onFilesAttach?: (files: File[]) => void;
72
91
  onVoiceClick?: () => void;
73
92
  emptyStateMessage?: string;
74
93
  className?: string;
75
94
  }
76
- declare function CenteredAIChat({ messages, onSend, isProcessing, placeholder, agents, activeAgent, onAgentChange, onFilesAttach, onVoiceClick, emptyStateMessage, className, }: CenteredAIChatProps): react_jsx_runtime.JSX.Element;
95
+ declare function CenteredAIChat({ messages, onSend, onComposeSubmit, isProcessing, placeholder, agents, activeAgent, onAgentChange, onFilesAttach, onVoiceClick, emptyStateMessage, className, }: CenteredAIChatProps): react_jsx_runtime.JSX.Element;
77
96
 
78
97
  interface ActionButtonItem {
79
98
  id: string;
@@ -207,7 +226,7 @@ interface ErrorBoundaryState {
207
226
  declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
208
227
  constructor(props: ErrorBoundaryProps);
209
228
  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> | react_jsx_runtime.JSX.Element | null | undefined;
229
+ 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
230
  }
212
231
 
213
232
  interface CitronEvent {
@@ -302,7 +321,7 @@ interface ModuleErrorBoundaryState {
302
321
  declare class ModuleErrorBoundary extends Component<ModuleErrorBoundaryProps, ModuleErrorBoundaryState> {
303
322
  constructor(props: ModuleErrorBoundaryProps);
304
323
  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> | react_jsx_runtime.JSX.Element | null | undefined;
324
+ 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
325
  }
307
326
 
308
327
  interface PageErrorFallbackProps extends FallbackProps {
@@ -1575,4 +1594,4 @@ declare const semanticInteractivePrimary = "var(--inkblot-semantic-color-interac
1575
1594
  declare const semanticInteractiveSecondary = "var(--inkblot-semantic-color-interactive-secondary)";
1576
1595
  declare const semanticInteractiveSecondaryHover = "var(--inkblot-semantic-color-interactive-secondary-hover)";
1577
1596
 
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 };
1597
+ 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 };