@medipha/chat 1.0.33 → 1.0.35

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.
@@ -6,10 +6,5 @@ interface WidgetConversationScreenProps {
6
6
  onOpenAllConversations?: () => void;
7
7
  onRequestClose?: () => void;
8
8
  }
9
- /** The anchored rail plus, once a conversation is picked, one floating chat window.
10
- * The window is portalled to the document rather than rendered inside the rail: it is a
11
- * modal that floats over the host page, so it must not inherit the rail's box, stacking
12
- * context or width. It carries no settings column — the header's zoom button hands the
13
- * conversation to the host's full-page chat instead. */
14
9
  export declare function WidgetConversationScreen({ isWindowVisible, isExpanded, onToggleExpand, onOpenFullPage, onOpenAllConversations, onRequestClose, }: WidgetConversationScreenProps): import("react/jsx-runtime").JSX.Element;
15
10
  export {};
@@ -42,8 +42,11 @@ interface ConversationFooterProps {
42
42
  imageUploadInputRef: RefObject<HTMLInputElement>;
43
43
  acceptAttribute: string;
44
44
  }
45
+ export interface ConversationFooterHandle {
46
+ focusComposer: () => void;
47
+ }
45
48
  /** The message composer itself — toolbar + input — plus its two hidden file inputs. Owns
46
49
  * turning a submitted draft (text and/or staged attachments) into outgoing messages,
47
50
  * including uploading any staged files before they're sent. */
48
- export declare function ConversationFooter({ conversationId, currentUserId, conversationTitle, composerPlaceholder, isCompactComposer, mentionMembers, canMentionAll, isGroup, disabled, lockedReason, pendingAttachmentsState, replyTargetState, replySenderName, replySenderAvatarUrl, emitOutgoingMessage, markMessageFailed, mergeOutgoingMessage, stickToLatest, onComposerError, onAttach, onAttachImages, onTypingStart, onTypingStop, uploadInputRef, imageUploadInputRef, acceptAttribute, }: ConversationFooterProps): import("react/jsx-runtime").JSX.Element;
51
+ export declare const ConversationFooter: import('react').ForwardRefExoticComponent<ConversationFooterProps & import('react').RefAttributes<ConversationFooterHandle>>;
49
52
  export {};
@@ -3,6 +3,9 @@ export interface ConversationGroupHandle {
3
3
  /** Jumps the message timeline to the given message — used by the page-level SearchPanel,
4
4
  * which lives outside this group but needs to drive its message window. */
5
5
  loadAround: (messageId: string) => Promise<boolean> | boolean;
6
+ /** Hands the caret to the composer without waiting for it to be ready — the composer's
7
+ * own focus defers until the editor has initialised (see runOnEditor). */
8
+ focusComposer: () => void;
6
9
  }
7
10
  interface ConversationGroupProps {
8
11
  conversationId: string | undefined;