@medipha/chat 1.0.54 → 1.0.56

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,6 +1,7 @@
1
1
  import { VirtuosoHandle } from 'react-virtuoso';
2
2
  import { RefObject } from 'react';
3
3
  import { MessageRemovedPayload } from '@medipha/chat-core';
4
+ import { MediaPreviewSource } from '../../../features/media-preview/use-image-lightbox';
4
5
  import { ChatMessage, ChatUser, ConversationMember, MessageReplyPreview } from '../../../utils/chat';
5
6
  import { PendingAttachment } from '../../../features/composer/pending-attachment';
6
7
  interface MessageWindowForDetail {
@@ -66,7 +67,7 @@ interface ConversationDetailProps {
66
67
  onJumpToReply: (replyMessageId: string, preview?: MessageReplyPreview) => void;
67
68
  onOpenMentionCard: (userId: string) => void;
68
69
  onOpenUserProfile: (userId: string) => void;
69
- onOpenImageLightbox: (message: ChatMessage, urls: string[], index: number) => void;
70
+ onOpenImageLightbox: (message: ChatMessage, sources: MediaPreviewSource[], index: number) => void;
70
71
  onRetry: (message: ChatMessage) => void;
71
72
  /** Failed sends never reached the server (no `id`), so removing one is a local-only drop. */
72
73
  onDeleteFailed: (message: ChatMessage) => void;