You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/messageComposer/configuration/types.ts
+8-1Lines changed: 8 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,9 @@ export type DraftsConfiguration = {
12
12
enabled: boolean;
13
13
};
14
14
exporttypeTextComposerConfig={
15
-
/** If true, triggers typing events on text input keystroke */
15
+
/** If false, the text input, change and selection events are disabled */
16
+
enabled: boolean;
17
+
/** If true, triggers typing events on text input keystroke. Disabled for threads and message editing by default. */
16
18
publishTypingEvents: boolean;
17
19
/** Default value for the message input */
18
20
defaultValue?: string;
@@ -30,6 +32,11 @@ export type AttachmentManagerConfig = {
30
32
fileUploadFilter: FileUploadFilter;
31
33
/** Maximum number of attachments allowed per message */
32
34
maxNumberOfFilesPerMessage: number;
35
+
/**
36
+
* Array of one or more file types, or unique file type specifiers (https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attributes/accept#unique_file_type_specifiers),
37
+
* describing which file types to allow to select when uploading files.
38
+
*/
39
+
acceptedFiles: string[];
33
40
// todo: refactor this. We want a pipeline where it would be possible to customize the preparation, upload, and post-upload steps.
34
41
/** Function that allows to customize the upload request. */
0 commit comments