teodor-new-chat-ui 4.3.463 → 4.3.465

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.
@@ -0,0 +1,27 @@
1
+ import React from "react";
2
+ export interface ChatInputRowProps {
3
+ composerValue: string;
4
+ onComposerChange: (text: string) => void;
5
+ onSend: (text: string, attachments: File[]) => Promise<void> | void;
6
+ onCancelEdit?: () => void;
7
+ onStop?: () => void;
8
+ editingMessageId?: string | null;
9
+ editingInitialValue?: string;
10
+ placeholder?: string;
11
+ isStreaming?: boolean;
12
+ disabled?: boolean;
13
+ textareaClassName?: string;
14
+ customStyles?: {
15
+ textarea?: string;
16
+ moreButton?: string;
17
+ };
18
+ enableFileUpload?: boolean;
19
+ enableExcelUpload?: boolean;
20
+ onExcelUpload?: (file: File) => Promise<void> | void;
21
+ onError?: (message: string) => void;
22
+ allowEmptySend?: boolean;
23
+ inputError?: string | null;
24
+ }
25
+ export declare function ChatInputRow({ composerValue, onComposerChange, onSend, onCancelEdit, onStop, editingMessageId, editingInitialValue, placeholder, isStreaming, disabled, textareaClassName, customStyles, enableFileUpload, enableExcelUpload, onExcelUpload, onError, allowEmptySend, inputError, }: ChatInputRowProps): import("react/jsx-runtime").JSX.Element;
26
+ declare const _default: React.MemoExoticComponent<typeof ChatInputRow>;
27
+ export default _default;
@@ -3,7 +3,6 @@
3
3
  * Designed for use across multiple applications with customizable styling.
4
4
  * Relies on the split context hooks (useThreads/useMessages/useStream/useApi).
5
5
  */
6
- import type { ExcelUploadResponse } from "@/types";
7
6
  export interface ChatInterfaceProps {
8
7
  className?: string;
9
8
  placeholder?: string;
@@ -34,7 +33,6 @@ export interface ChatInterfaceProps {
34
33
  onMessageSent?: (message: string) => void;
35
34
  onExcelUploadSuccess?: (payload: {
36
35
  file: File;
37
- response: ExcelUploadResponse;
38
36
  }) => void;
39
37
  onError?: (error: string) => void;
40
38
  }
@@ -3,6 +3,8 @@ export { ChatInterface } from "./ChatInterface";
3
3
  export type { ChatInterfaceProps } from "./ChatInterface";
4
4
  export { ChatInput } from "./ChatInput";
5
5
  export type { ChatInputProps } from "./ChatInput";
6
+ export { ChatInputRow } from "./ChatInputRow";
7
+ export type { ChatInputRowProps } from "./ChatInputRow";
6
8
  export { ChatWidget } from "./ChatWidget";
7
9
  export type { ChatWidgetProps } from "./ChatWidget";
8
10
  export { NewChatButton } from "./NewChatButton";