@medipha/chat 1.0.53 → 1.0.55

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.
@@ -1,7 +1,7 @@
1
1
  import { PendingAttachment } from './pending-attachment';
2
- export declare const ACCEPT_ATTRIBUTE = ".jpg,.jpeg,.png,.webp,.gif,.pdf,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.txt,.csv,.zip,.rar,.mp4,.mp3";
3
- export declare const ACCEPTED_FILE_EXTENSIONS: Set<string>;
2
+ export declare const BLOCKED_FILE_EXTENSIONS: Set<string>;
4
3
  export declare const getFileExtension: (file: File) => string;
4
+ export declare const isBlockedFile: (file: File) => boolean;
5
5
  export declare const isImageFile: (file: File) => boolean;
6
6
  /** A clipboard image is not a file on disk, so the browser invents its name — usually the
7
7
  * same generic "image.png" for every paste, which both the staging filter and the backend
@@ -11,7 +11,7 @@ export declare const isImageFile: (file: File) => boolean;
11
11
  export declare const withImageFileExtension: (file: File) => File;
12
12
  /** Splits staged files into same-kind runs (images vs. documents) so each becomes one grouped message. */
13
13
  export declare const groupAttachmentsByKind: (attachments: PendingAttachment[]) => PendingAttachment[][];
14
- /** Keeps only files with a supported extension; `hasRejectedFiles` tells the caller
14
+ /** Drops executable files; `hasRejectedFiles` tells the caller
15
15
  * whether to surface a format-not-supported error. */
16
16
  export declare const splitValidAttachmentFiles: (files: File[]) => {
17
17
  validFiles: File[];