@medipha/chat 1.0.59 → 1.0.61

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.
@@ -3,5 +3,9 @@ export type PendingAttachmentKind = MediaKind;
3
3
  export interface PendingAttachment {
4
4
  file: File;
5
5
  previewUrl?: string;
6
+ videoUrl?: string;
7
+ thumbnailFile?: File;
8
+ preparedVideo?: boolean;
9
+ videoPreparationNotice?: string;
6
10
  kind: PendingAttachmentKind;
7
11
  }
@@ -1,4 +1,2 @@
1
1
  import { ChatMessage } from '../../utils/chat';
2
- /** Uploads a message's staged files, then emits it as a normal outgoing message. Used both
3
- * for sending a fresh attachment message and for retrying one that previously failed. */
4
2
  export declare function useAttachmentUpload(emitOutgoingMessage: (message: ChatMessage) => void, markMessageFailed: (message: ChatMessage, failureStage: 'upload' | 'send') => void, mergeOutgoingMessage: (message: ChatMessage) => void): (message: ChatMessage) => Promise<void>;
@@ -1,12 +1,7 @@
1
1
  import { PendingAttachment } from './pending-attachment';
2
- /**
3
- * Owns the files staged in the composer before send: validating/adding picked files,
4
- * removing one, and clearing the whole batch — either after a successful send (files are
5
- * already handed off, no preview URLs to release) or when discarding them outright (e.g.
6
- * switching conversations), which does release every preview URL.
7
- */
8
2
  export declare function usePendingAttachments(): {
9
3
  pendingAttachments: PendingAttachment[];
4
+ isPreparing: boolean;
10
5
  addFiles: (files: File[], options?: {
11
6
  forceDocument?: boolean;
12
7
  }) => boolean;
@@ -0,0 +1,2 @@
1
+ export declare function prepareVideoFileForUpload(file: File): Promise<File>;
2
+ export declare function createVideoThumbnail(file: File): Promise<File | null>;
@@ -9,4 +9,11 @@ interface TagQuickPickerProps {
9
9
  submenuAlign?: 'left' | 'right';
10
10
  }
11
11
  export declare function TagQuickPicker({ conversation, triggerRef, onManageTags, onClose, variant, submenuAlign, }: TagQuickPickerProps): import('react/jsx-runtime').JSX.Element | null;
12
+ interface TagQuickPickerPopoverProps {
13
+ conversation: Conversation;
14
+ triggerRef: RefObject<HTMLButtonElement | null>;
15
+ onManageTags: () => void;
16
+ onClose: () => void;
17
+ }
18
+ export declare function TagQuickPickerPopover({ conversation, triggerRef, onManageTags, onClose, }: TagQuickPickerPopoverProps): import('react').ReactPortal;
12
19
  export {};