@citron-systems/citron-ui 1.23.0 → 1.24.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
@@ -26,9 +26,10 @@ interface GlobalAssistantChatProps {
26
26
  isProcessing?: boolean;
27
27
  placeholder?: string;
28
28
  emptyStateMessage?: string;
29
+ onVoiceClick?: () => void;
29
30
  className?: string;
30
31
  }
31
- declare function GlobalAssistantChat({ messages, onSend, isProcessing, placeholder, emptyStateMessage, className, }: GlobalAssistantChatProps): react_jsx_runtime.JSX.Element;
32
+ declare function GlobalAssistantChat({ messages, onSend, isProcessing, placeholder, emptyStateMessage, onVoiceClick, className, }: GlobalAssistantChatProps): react_jsx_runtime.JSX.Element;
32
33
 
33
34
  interface AssistantPanelProps extends Omit<GlobalAssistantChatProps, 'className'> {
34
35
  open: boolean;
@@ -68,14 +69,14 @@ interface CenteredAIChatComposePayload {
68
69
  interface CenteredAIChatProps {
69
70
  messages?: CenteredAIChatMessage[];
70
71
  /**
71
- * Igual que `GlobalAssistantChat` / `CenteredAssistantChat`: texto y archivos en un solo callback.
72
+ * Same shape as `GlobalAssistantChat`: text and files in one callback.
72
73
  */
73
74
  onSend?: (payload: {
74
75
  text: string;
75
76
  files: File[];
76
77
  }) => void;
77
78
  /**
78
- * Si está definido, se usa al enviar en lugar de `onSend` (misma forma de payload).
79
+ * When set, used on submit instead of `onSend` (same payload shape).
79
80
  */
80
81
  onComposeSubmit?: (payload: CenteredAIChatComposePayload) => void;
81
82
  isProcessing?: boolean;
@@ -84,8 +85,8 @@ interface CenteredAIChatProps {
84
85
  activeAgent?: string;
85
86
  onAgentChange?: (agentId: string) => void;
86
87
  /**
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 }`.
88
+ * Only if neither `onSend` nor `onComposeSubmit`: called with files on send (text has no handler).
89
+ * @deprecated Prefer `onSend` with `{ text, files }`.
89
90
  */
90
91
  onFilesAttach?: (files: File[]) => void;
91
92
  onVoiceClick?: () => void;
package/dist/index.d.ts CHANGED
@@ -26,9 +26,10 @@ interface GlobalAssistantChatProps {
26
26
  isProcessing?: boolean;
27
27
  placeholder?: string;
28
28
  emptyStateMessage?: string;
29
+ onVoiceClick?: () => void;
29
30
  className?: string;
30
31
  }
31
- declare function GlobalAssistantChat({ messages, onSend, isProcessing, placeholder, emptyStateMessage, className, }: GlobalAssistantChatProps): react_jsx_runtime.JSX.Element;
32
+ declare function GlobalAssistantChat({ messages, onSend, isProcessing, placeholder, emptyStateMessage, onVoiceClick, className, }: GlobalAssistantChatProps): react_jsx_runtime.JSX.Element;
32
33
 
33
34
  interface AssistantPanelProps extends Omit<GlobalAssistantChatProps, 'className'> {
34
35
  open: boolean;
@@ -68,14 +69,14 @@ interface CenteredAIChatComposePayload {
68
69
  interface CenteredAIChatProps {
69
70
  messages?: CenteredAIChatMessage[];
70
71
  /**
71
- * Igual que `GlobalAssistantChat` / `CenteredAssistantChat`: texto y archivos en un solo callback.
72
+ * Same shape as `GlobalAssistantChat`: text and files in one callback.
72
73
  */
73
74
  onSend?: (payload: {
74
75
  text: string;
75
76
  files: File[];
76
77
  }) => void;
77
78
  /**
78
- * Si está definido, se usa al enviar en lugar de `onSend` (misma forma de payload).
79
+ * When set, used on submit instead of `onSend` (same payload shape).
79
80
  */
80
81
  onComposeSubmit?: (payload: CenteredAIChatComposePayload) => void;
81
82
  isProcessing?: boolean;
@@ -84,8 +85,8 @@ interface CenteredAIChatProps {
84
85
  activeAgent?: string;
85
86
  onAgentChange?: (agentId: string) => void;
86
87
  /**
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 }`.
88
+ * Only if neither `onSend` nor `onComposeSubmit`: called with files on send (text has no handler).
89
+ * @deprecated Prefer `onSend` with `{ text, files }`.
89
90
  */
90
91
  onFilesAttach?: (files: File[]) => void;
91
92
  onVoiceClick?: () => void;