Skip to content

Commit

Permalink
Merge pull request #268 from FlowiseAI/feature/Chat-Attachments
Browse files Browse the repository at this point in the history
Feature/chat attachments
  • Loading branch information
HenryHengZJ authored Oct 23, 2024
2 parents 6700787 + f94df87 commit e8f5789
Show file tree
Hide file tree
Showing 14 changed files with 192 additions and 51 deletions.
2 changes: 1 addition & 1 deletion dist/components/Bot.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export type UploadsConfig = {
fileUploadSizeAndTypes: IUploadConstraits[];
isImageUploadAllowed: boolean;
isSpeechToTextEnabled: boolean;
isFileUploadAllowed: boolean;
isRAGFileUploadAllowed: boolean;
};
type FilePreviewData = string | ArrayBuffer;
type FilePreview = {
Expand Down
2 changes: 1 addition & 1 deletion dist/components/Bot.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ type CardWithDeleteOverlayProps = {
item: {
name: string;
};
disabled?: boolean;
onDelete: (item: {
name: string;
}) => void;
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion dist/components/inputs/textInput/components/TextInput.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ type Props = {
backgroundColor?: string;
textColor?: string;
sendButtonColor?: string;
defaultValue?: string;
inputValue: string;
fontSize?: number;
disabled?: boolean;
onSubmit: (value: string) => void;
onInputChange: (value: string) => void;
uploadsConfig?: Partial<UploadsConfig>;
isFullFileUpload?: boolean;
setPreviews: Setter<unknown[]>;
onMicrophoneClicked: () => void;
handleFileChange: (event: FileEvent<HTMLInputElement>) => void;
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions dist/queries/sendMessageQuery.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ export declare const sendMessageQuery: ({ chatflowid, apiHost, body, onRequest }
data?: any;
error?: Error | undefined;
}>;
export declare const createAttachmentWithFormData: ({ chatflowid, apiHost, formData, onRequest }: UpsertRequest) => Promise<{
data?: unknown;
error?: Error | undefined;
}>;
export declare const upsertVectorStoreWithFormData: ({ chatflowid, apiHost, formData, onRequest }: UpsertRequest) => Promise<{
data?: unknown;
error?: Error | undefined;
Expand Down
2 changes: 1 addition & 1 deletion dist/queries/sendMessageQuery.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/web.js

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions src/assets/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -471,3 +471,21 @@ button {
font-size: var(--tooltip-font-size, 12px);
transition: opacity 0.3s ease-in-out;
}

@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}

.spinner {
border: 4px solid rgba(255, 255, 255, 0.3); /* Light gray border */
border-top: 4px solid white; /* White spinner */
border-radius: 50%;
width: 24px;
height: 24px;
animation: spin 1s linear infinite;
}
Loading

0 comments on commit e8f5789

Please sign in to comment.