Skip to content

Commit e8f5789

Browse files
authored
Merge pull request #268 from FlowiseAI/feature/Chat-Attachments
Feature/chat attachments
2 parents 6700787 + f94df87 commit e8f5789

File tree

14 files changed

+192
-51
lines changed

14 files changed

+192
-51
lines changed

dist/components/Bot.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export type UploadsConfig = {
1717
fileUploadSizeAndTypes: IUploadConstraits[];
1818
isImageUploadAllowed: boolean;
1919
isSpeechToTextEnabled: boolean;
20-
isFileUploadAllowed: boolean;
20+
isRAGFileUploadAllowed: boolean;
2121
};
2222
type FilePreviewData = string | ArrayBuffer;
2323
type FilePreview = {

dist/components/Bot.d.ts.map

+1-1
Original file line numberDiff line numberDiff line change

dist/components/inputs/textInput/components/FilePreview.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ type CardWithDeleteOverlayProps = {
22
item: {
33
name: string;
44
};
5+
disabled?: boolean;
56
onDelete: (item: {
67
name: string;
78
}) => void;

dist/components/inputs/textInput/components/FilePreview.d.ts.map

+1-1
Original file line numberDiff line numberDiff line change

dist/components/inputs/textInput/components/TextInput.d.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@ type Props = {
55
backgroundColor?: string;
66
textColor?: string;
77
sendButtonColor?: string;
8-
defaultValue?: string;
8+
inputValue: string;
99
fontSize?: number;
1010
disabled?: boolean;
1111
onSubmit: (value: string) => void;
12+
onInputChange: (value: string) => void;
1213
uploadsConfig?: Partial<UploadsConfig>;
14+
isFullFileUpload?: boolean;
1315
setPreviews: Setter<unknown[]>;
1416
onMicrophoneClicked: () => void;
1517
handleFileChange: (event: FileEvent<HTMLInputElement>) => void;

dist/components/inputs/textInput/components/TextInput.d.ts.map

+1-1
Original file line numberDiff line numberDiff line change

dist/queries/sendMessageQuery.d.ts

+4
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ export declare const sendMessageQuery: ({ chatflowid, apiHost, body, onRequest }
5959
data?: any;
6060
error?: Error | undefined;
6161
}>;
62+
export declare const createAttachmentWithFormData: ({ chatflowid, apiHost, formData, onRequest }: UpsertRequest) => Promise<{
63+
data?: unknown;
64+
error?: Error | undefined;
65+
}>;
6266
export declare const upsertVectorStoreWithFormData: ({ chatflowid, apiHost, formData, onRequest }: UpsertRequest) => Promise<{
6367
data?: unknown;
6468
error?: Error | undefined;

dist/queries/sendMessageQuery.d.ts.map

+1-1
Original file line numberDiff line numberDiff line change

dist/web.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/assets/index.css

+18
Original file line numberDiff line numberDiff line change
@@ -471,3 +471,21 @@ button {
471471
font-size: var(--tooltip-font-size, 12px);
472472
transition: opacity 0.3s ease-in-out;
473473
}
474+
475+
@keyframes spin {
476+
0% {
477+
transform: rotate(0deg);
478+
}
479+
100% {
480+
transform: rotate(360deg);
481+
}
482+
}
483+
484+
.spinner {
485+
border: 4px solid rgba(255, 255, 255, 0.3); /* Light gray border */
486+
border-top: 4px solid white; /* White spinner */
487+
border-radius: 50%;
488+
width: 24px;
489+
height: 24px;
490+
animation: spin 1s linear infinite;
491+
}

0 commit comments

Comments
 (0)