teodor-new-chat-ui 4.3.552 → 4.3.553

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.
@@ -5,6 +5,7 @@ export declare class FileApi {
5
5
  downloadFileById(fileId: number | string, onProgress?: (p: number) => void): Promise<void>;
6
6
  getFileInfo(fileId: number | string): Promise<any>;
7
7
  listFiles(threadId?: string | null, limit?: number, offset?: number): Promise<any[]>;
8
+ uploadFile(file: File, threadId?: string | null, onProgress?: (p: number) => void): Promise<any>;
8
9
  }
9
10
  export declare const fileApiClient: FileApi;
10
11
  export default fileApiClient;
@@ -77,6 +77,11 @@ export interface ThreadStateContextValue {
77
77
  export interface StreamSubmitPayload {
78
78
  text?: string;
79
79
  attachments?: File[];
80
+ /**
81
+ * Pre-processed message parts (e.g. from upload-first flow).
82
+ * If provided, `attachments` logic is skipped.
83
+ */
84
+ contentParts?: import("@/types").MessagePart[];
80
85
  payload?: Record<string, unknown>;
81
86
  messageAdditionalKwargs?: Record<string, unknown>;
82
87
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "teodor-new-chat-ui",
3
- "version": "4.3.552",
3
+ "version": "4.3.553",
4
4
  "description": "React chat UI components with streaming support, tool calls, and modern design",
5
5
  "main": "dist/index.umd.js",
6
6
  "module": "dist/index.esm.js",