teodor-new-chat-ui 2.0.52 → 2.0.53

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.
@@ -2,6 +2,7 @@
2
2
  * Chat Interface - Clean, exportable chat UI component
3
3
  * Designed for use across multiple applications with customizable styling
4
4
  */
5
+ import type { ExcelUploadResponse } from "@/types/api";
5
6
  export interface ChatInterfaceProps {
6
7
  className?: string;
7
8
  placeholder?: string;
@@ -10,6 +11,7 @@ export interface ChatInterfaceProps {
10
11
  /** debounce for mid-stream markdown rendering */
11
12
  streamingDebounceMs?: number;
12
13
  enableFileUpload?: boolean;
14
+ enableExcelUpload?: boolean;
13
15
  enableMessageEditing?: boolean;
14
16
  customStyles?: {
15
17
  container?: string;
@@ -20,6 +22,10 @@ export interface ChatInterfaceProps {
20
22
  moreButton?: string;
21
23
  };
22
24
  onMessageSent?: (message: string) => void;
25
+ onExcelUploadSuccess?: (payload: {
26
+ file: File;
27
+ response: ExcelUploadResponse;
28
+ }) => void;
23
29
  onError?: (error: string) => void;
24
30
  }
25
- export declare function ChatInterface({ className, placeholder, autoFocus, maxHeight, streamingDebounceMs, enableFileUpload, enableMessageEditing, customStyles, onMessageSent, onError, }: ChatInterfaceProps): import("react/jsx-runtime").JSX.Element;
31
+ export declare function ChatInterface({ className, placeholder, autoFocus, maxHeight, streamingDebounceMs, enableFileUpload, enableExcelUpload, enableMessageEditing, customStyles, onMessageSent, onExcelUploadSuccess, onError, }: ChatInterfaceProps): import("react/jsx-runtime").JSX.Element;