@poolse/react-ui 3.2.0 → 3.3.0

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.
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { CallParticipant, CallDevice, CallDeviceKind, Uuid, Message, LiveCall, Conversation, Membership, Attachment, MessageCreateRequest } from '@poolse/sdk';
2
+ import { CallParticipant, CallDevice, CallDeviceKind, Message, Uuid, LiveCall, Conversation, Membership, Attachment, MessageCreateRequest } from '@poolse/sdk';
3
3
  import * as react from 'react';
4
4
  import { SVGProps, ReactElement, ReactNode } from 'react';
5
5
  import { UseRoom, UploadItem, ReactionMap } from '@poolse/react';
@@ -337,6 +337,105 @@ interface CallDeviceMenuProps {
337
337
  */
338
338
  declare function CallDeviceMenu({ title, devices, activeId, onSelect, onClose, }: CallDeviceMenuProps): react_jsx_runtime.JSX.Element | null;
339
339
 
340
+ /**
341
+ * Position of this bubble within a same-sender, same-day, ≤5-min
342
+ * cluster. Drives the tail-corner rendering: only `last` and
343
+ * `standalone` get the asymmetric tail, matching the WhatsApp /
344
+ * iMessage convention where consecutive bursts read as a single
345
+ * unit with one trailing tail.
346
+ */
347
+ type BubbleGroupPosition = 'first' | 'middle' | 'last' | 'standalone';
348
+ interface MessageBubbleProps {
349
+ message: Message;
350
+ /** Used to decide left/right alignment + color, and whether to show the read-receipt glyph. */
351
+ currentUserId: string | null;
352
+ /**
353
+ * Show the read-receipt check-double on self-sent messages. Pass
354
+ * `true` when at least one other member's `last_read_message_id`
355
+ * is >= this message's sequence. Single-tick + double-tick variants
356
+ * map to "sent" and "read" respectively per brand conventions.
357
+ */
358
+ readState?: 'sent' | 'read';
359
+ /**
360
+ * Optional friendly label for a quoted message's sender. Same shape
361
+ * as `<MemberList labelFor>` — `(externalId) => string` looking up a
362
+ * display name from the local member roster.
363
+ */
364
+ labelFor?: (externalId: string) => string;
365
+ /**
366
+ * Called when the user clicks the quoted card. Typically used to
367
+ * scroll the chat to the original message + flash a highlight.
368
+ * No-op when omitted.
369
+ */
370
+ onQuotedClick?: (quotedMessageId: Uuid) => void;
371
+ /**
372
+ * Where this bubble sits within a same-sender cluster (see
373
+ * BubbleGroupPosition). Defaults to `standalone`.
374
+ */
375
+ groupPosition?: BubbleGroupPosition;
376
+ /**
377
+ * When > 0, truncates the body at this many characters and shows a
378
+ * "Read more" toggle to expand. Defaults to 0 (no truncation).
379
+ */
380
+ maxBodyLength?: number;
381
+ /**
382
+ * Render the body as GitHub-flavored Markdown (bold, italic, lists,
383
+ * fenced code, blockquotes, strikethrough, autolinks). Defaults to
384
+ * `false`. `<ConversationView>` flips this on by default.
385
+ */
386
+ markdown?: boolean;
387
+ /**
388
+ * Show a colored sender label above the body for other-side
389
+ * bubbles. Only meaningful in group chats (3+ participants) and
390
+ * only on the FIRST / STANDALONE bubble of a cluster (continuation
391
+ * bubbles share the cluster's identity). The label name comes
392
+ * from the SDK's `useUser` hook via the customer's
393
+ * `userResolver` config.
394
+ */
395
+ showSenderName?: boolean;
396
+ /**
397
+ * Makes the sender label (see `showSenderName`) a button — e.g. to
398
+ * open the sender's profile.
399
+ */
400
+ onSenderPress?: () => void;
401
+ /**
402
+ * Slot for a "show actions" affordance — typically a chevron
403
+ * rendered by `<MessageRow>` that toggles the actions popover on
404
+ * desktop click. Positioned absolutely at the top-trailing corner
405
+ * inside the bubble so it overlays the message border; hidden by
406
+ * CSS until the row is hovered.
407
+ */
408
+ actionsTrigger?: ReactNode;
409
+ /**
410
+ * Render the message's attachments INSIDE the bubble (WhatsApp-
411
+ * style): images mosaic at the top, file cards below, then the
412
+ * message body. Defaults to `true`. Pass `false` if you're rendering
413
+ * attachments yourself outside the bubble.
414
+ */
415
+ showAttachments?: boolean;
416
+ }
417
+ /**
418
+ * One message bubble. The default renderer for `<ConversationView>` —
419
+ * customers swap it out via `renderMessage` for full visual control
420
+ * without rebuilding the rest of the chat.
421
+ *
422
+ * Styling: 16px radius bubble with a 5px tail on the sender's side
423
+ * (coral for self, surface-with-border for others), matching the
424
+ * brand-kit chat showcase.
425
+ */
426
+ declare function MessageBubble({ message, currentUserId, readState, labelFor, onQuotedClick, groupPosition, maxBodyLength, markdown, showSenderName, onSenderPress, actionsTrigger, showAttachments, }: MessageBubbleProps): react_jsx_runtime.JSX.Element;
427
+
428
+ /** Who sent a message — what `onSenderPress` / `onAvatarPress` receive. */
429
+ interface MessageUser {
430
+ /** poolse user id. */
431
+ userId: Uuid | null;
432
+ /** Your own user id (`external_id`) — what `userResolver` takes. */
433
+ externalId: string | null;
434
+ /** Resolved name, or the fallback shown in its place. */
435
+ displayName: string;
436
+ avatarUrl: string | null;
437
+ }
438
+
340
439
  interface ConversationViewProps {
341
440
  conversationId: Uuid;
342
441
  /** Placeholder when there are no messages. */
@@ -423,12 +522,35 @@ interface ConversationViewProps {
423
522
  */
424
523
  avatars?: 'auto' | 'always' | 'never';
425
524
  /**
426
- * Fired once after the caller's auto-mark-read fires for a fresh
427
- * message. Useful for clearing a sidebar unread badge before the
428
- * `member:read` realtime echo round-trips. Receives the conv id so
429
- * a single handler can switch between rooms.
525
+ * Fired after the view marks the latest message read and the server
526
+ * accepts it. Every `useConversations()` / `<ConversationList>` under
527
+ * the same provider has already cleared this conversation's badge by
528
+ * then; use this for anything else (an app-level badge, say).
529
+ * Receives the conv id so a single handler can switch between rooms.
430
530
  */
431
531
  onMarkedRead?: (conversationId: string) => void;
532
+ /**
533
+ * Jump to this message: older pages load until it's there, then it
534
+ * scrolls into view and flashes. Set it again (or to another id) to
535
+ * jump again. When it can't be found — deleted, a thread reply, or
536
+ * not in this conversation — a short notice shows and
537
+ * `onFocusMessageNotFound` fires.
538
+ */
539
+ focusMessageId?: Uuid | null;
540
+ /** `focusMessageId` couldn't be found in this conversation. */
541
+ onFocusMessageNotFound?: (messageId: Uuid) => void;
542
+ /** Makes the sender label on other people's messages a button. */
543
+ onSenderPress?: (user: MessageUser) => void;
544
+ /** Makes the avatar next to other people's messages a button. */
545
+ onAvatarPress?: (user: MessageUser) => void;
546
+ /**
547
+ * `false` hides the composer (and with it quote-reply and dropping
548
+ * files) — for an archived conversation or a viewer who can't post.
549
+ * Defaults to `true`.
550
+ */
551
+ composer?: boolean;
552
+ /** Same as `composer={false}`. */
553
+ readOnly?: boolean;
432
554
  /**
433
555
  * Offer "Call back" on call-log rows the viewer missed or declined,
434
556
  * or placed with no answer. Receives the call's media; place the call
@@ -444,7 +566,7 @@ interface ConversationViewProps {
444
566
  /** The call this client is already on, if any — its banner is hidden. */
445
567
  currentCallId?: string | null;
446
568
  }
447
- declare function ConversationView({ conversationId, emptyState, renderMessage, labelFor, loadFonts, reactions, mentions, attachments, actions, threads, quotations, readReceipts, markdown, maxBodyLength, grouping, groupingWindowMs, daySeparators, senderLabels, avatars, onMarkedRead, onCallBack, onJoinCall, currentCallId, }: ConversationViewProps): react_jsx_runtime.JSX.Element;
569
+ declare function ConversationView({ conversationId, emptyState, renderMessage, labelFor, loadFonts, reactions, mentions, attachments, actions, threads, quotations, readReceipts, markdown, maxBodyLength, grouping, groupingWindowMs, daySeparators, senderLabels, avatars, onMarkedRead, focusMessageId, onFocusMessageNotFound, onSenderPress, onAvatarPress, composer, readOnly, onCallBack, onJoinCall, currentCallId, }: ConversationViewProps): react_jsx_runtime.JSX.Element;
448
570
 
449
571
  interface ChatHeaderProps {
450
572
  /** Conversation id — used to fetch the row + members for the title / presence dot. */
@@ -547,89 +669,6 @@ interface GroupDetailsSheetProps {
547
669
  }
548
670
  declare function GroupDetailsSheet({ visible, onClose, conversationId, labelFor, avatarFor, footer, }: GroupDetailsSheetProps): react_jsx_runtime.JSX.Element | null;
549
671
 
550
- /**
551
- * Position of this bubble within a same-sender, same-day, ≤5-min
552
- * cluster. Drives the tail-corner rendering: only `last` and
553
- * `standalone` get the asymmetric tail, matching the WhatsApp /
554
- * iMessage convention where consecutive bursts read as a single
555
- * unit with one trailing tail.
556
- */
557
- type BubbleGroupPosition = 'first' | 'middle' | 'last' | 'standalone';
558
- interface MessageBubbleProps {
559
- message: Message;
560
- /** Used to decide left/right alignment + color, and whether to show the read-receipt glyph. */
561
- currentUserId: string | null;
562
- /**
563
- * Show the read-receipt check-double on self-sent messages. Pass
564
- * `true` when at least one other member's `last_read_message_id`
565
- * is >= this message's sequence. Single-tick + double-tick variants
566
- * map to "sent" and "read" respectively per brand conventions.
567
- */
568
- readState?: 'sent' | 'read';
569
- /**
570
- * Optional friendly label for a quoted message's sender. Same shape
571
- * as `<MemberList labelFor>` — `(externalId) => string` looking up a
572
- * display name from the local member roster.
573
- */
574
- labelFor?: (externalId: string) => string;
575
- /**
576
- * Called when the user clicks the quoted card. Typically used to
577
- * scroll the chat to the original message + flash a highlight.
578
- * No-op when omitted.
579
- */
580
- onQuotedClick?: (quotedMessageId: Uuid) => void;
581
- /**
582
- * Where this bubble sits within a same-sender cluster (see
583
- * BubbleGroupPosition). Defaults to `standalone`.
584
- */
585
- groupPosition?: BubbleGroupPosition;
586
- /**
587
- * When > 0, truncates the body at this many characters and shows a
588
- * "Read more" toggle to expand. Defaults to 0 (no truncation).
589
- */
590
- maxBodyLength?: number;
591
- /**
592
- * Render the body as GitHub-flavored Markdown (bold, italic, lists,
593
- * fenced code, blockquotes, strikethrough, autolinks). Defaults to
594
- * `false`. `<ConversationView>` flips this on by default.
595
- */
596
- markdown?: boolean;
597
- /**
598
- * Show a colored sender label above the body for other-side
599
- * bubbles. Only meaningful in group chats (3+ participants) and
600
- * only on the FIRST / STANDALONE bubble of a cluster (continuation
601
- * bubbles share the cluster's identity). The label name comes
602
- * from the SDK's `useUser` hook via the customer's
603
- * `userResolver` config.
604
- */
605
- showSenderName?: boolean;
606
- /**
607
- * Slot for a "show actions" affordance — typically a chevron
608
- * rendered by `<MessageRow>` that toggles the actions popover on
609
- * desktop click. Positioned absolutely at the top-trailing corner
610
- * inside the bubble so it overlays the message border; hidden by
611
- * CSS until the row is hovered.
612
- */
613
- actionsTrigger?: ReactNode;
614
- /**
615
- * Render the message's attachments INSIDE the bubble (WhatsApp-
616
- * style): images mosaic at the top, file cards below, then the
617
- * message body. Defaults to `true`. Pass `false` if you're rendering
618
- * attachments yourself outside the bubble.
619
- */
620
- showAttachments?: boolean;
621
- }
622
- /**
623
- * One message bubble. The default renderer for `<ConversationView>` —
624
- * customers swap it out via `renderMessage` for full visual control
625
- * without rebuilding the rest of the chat.
626
- *
627
- * Styling: 16px radius bubble with a 5px tail on the sender's side
628
- * (coral for self, surface-with-border for others), matching the
629
- * brand-kit chat showcase.
630
- */
631
- declare function MessageBubble({ message, currentUserId, readState, labelFor, onQuotedClick, groupPosition, maxBodyLength, markdown, showSenderName, actionsTrigger, showAttachments, }: MessageBubbleProps): react_jsx_runtime.JSX.Element;
632
-
633
672
  interface CallLogRowProps {
634
673
  /** The call-log message. Rows that aren't call logs render nothing. */
635
674
  msg: Pick<Message, 'type' | 'body' | 'inserted_at'> & {
@@ -1029,4 +1068,4 @@ declare function usePoolseFonts(enabled?: boolean): void;
1029
1068
  */
1030
1069
  declare function PoolseFonts(): null;
1031
1070
 
1032
- export { AttachmentPreview, type AttachmentPreviewProps, Avatar, type AvatarProps, CallControlButton, type CallControlButtonProps, CallDeviceMenu, type CallDeviceMenuProps, CallLogRow, type CallLogRowProps, CallVideoGrid, type CallVideoGridProps, ChatHeader, type ChatHeaderProps, ConversationList, type ConversationListProps, ConversationView, type ConversationViewProps, EditableMessageBubble, type EditableMessageBubbleProps, GroupDetailsSheet, type GroupDetailsSheetProps, type IconName, type InboxUser, LiveCallBanner, type LiveCallBannerProps, MemberList, type MemberListProps, MentionInput, type MentionInputProps, MessageActions, type MessageActionsProps, MessageBubble, type MessageBubbleProps, MessageComposer, type MessageComposerProps, PoolseFonts, PoolseIcon, type PoolseIconProps, PoolseInbox, type PoolseInboxHandle, type PoolseInboxProps, PoolseLogo, type PoolseLogoProps, type PoolseLogoVariant, ReactionPicker, ReactionStrip, type ReactionStripProps, RoomJoinBar, type RoomJoinBarProps, RoomStage, type RoomStageProps, ThreadView, type ThreadViewProps, TypingIndicator, type TypingIndicatorProps, UploadQueueStrip, UserName, type UserNameProps, UserPickerSheet, type UserPickerSheetProps, useDisplayName, usePoolseFonts };
1071
+ export { AttachmentPreview, type AttachmentPreviewProps, Avatar, type AvatarProps, CallControlButton, type CallControlButtonProps, CallDeviceMenu, type CallDeviceMenuProps, CallLogRow, type CallLogRowProps, CallVideoGrid, type CallVideoGridProps, ChatHeader, type ChatHeaderProps, ConversationList, type ConversationListProps, ConversationView, type ConversationViewProps, EditableMessageBubble, type EditableMessageBubbleProps, GroupDetailsSheet, type GroupDetailsSheetProps, type IconName, type InboxUser, LiveCallBanner, type LiveCallBannerProps, MemberList, type MemberListProps, MentionInput, type MentionInputProps, MessageActions, type MessageActionsProps, MessageBubble, type MessageBubbleProps, MessageComposer, type MessageComposerProps, type MessageUser, PoolseFonts, PoolseIcon, type PoolseIconProps, PoolseInbox, type PoolseInboxHandle, type PoolseInboxProps, PoolseLogo, type PoolseLogoProps, type PoolseLogoVariant, ReactionPicker, ReactionStrip, type ReactionStripProps, RoomJoinBar, type RoomJoinBarProps, RoomStage, type RoomStageProps, ThreadView, type ThreadViewProps, TypingIndicator, type TypingIndicatorProps, UploadQueueStrip, UserName, type UserNameProps, UserPickerSheet, type UserPickerSheetProps, useDisplayName, usePoolseFonts };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { CallParticipant, CallDevice, CallDeviceKind, Uuid, Message, LiveCall, Conversation, Membership, Attachment, MessageCreateRequest } from '@poolse/sdk';
2
+ import { CallParticipant, CallDevice, CallDeviceKind, Message, Uuid, LiveCall, Conversation, Membership, Attachment, MessageCreateRequest } from '@poolse/sdk';
3
3
  import * as react from 'react';
4
4
  import { SVGProps, ReactElement, ReactNode } from 'react';
5
5
  import { UseRoom, UploadItem, ReactionMap } from '@poolse/react';
@@ -337,6 +337,105 @@ interface CallDeviceMenuProps {
337
337
  */
338
338
  declare function CallDeviceMenu({ title, devices, activeId, onSelect, onClose, }: CallDeviceMenuProps): react_jsx_runtime.JSX.Element | null;
339
339
 
340
+ /**
341
+ * Position of this bubble within a same-sender, same-day, ≤5-min
342
+ * cluster. Drives the tail-corner rendering: only `last` and
343
+ * `standalone` get the asymmetric tail, matching the WhatsApp /
344
+ * iMessage convention where consecutive bursts read as a single
345
+ * unit with one trailing tail.
346
+ */
347
+ type BubbleGroupPosition = 'first' | 'middle' | 'last' | 'standalone';
348
+ interface MessageBubbleProps {
349
+ message: Message;
350
+ /** Used to decide left/right alignment + color, and whether to show the read-receipt glyph. */
351
+ currentUserId: string | null;
352
+ /**
353
+ * Show the read-receipt check-double on self-sent messages. Pass
354
+ * `true` when at least one other member's `last_read_message_id`
355
+ * is >= this message's sequence. Single-tick + double-tick variants
356
+ * map to "sent" and "read" respectively per brand conventions.
357
+ */
358
+ readState?: 'sent' | 'read';
359
+ /**
360
+ * Optional friendly label for a quoted message's sender. Same shape
361
+ * as `<MemberList labelFor>` — `(externalId) => string` looking up a
362
+ * display name from the local member roster.
363
+ */
364
+ labelFor?: (externalId: string) => string;
365
+ /**
366
+ * Called when the user clicks the quoted card. Typically used to
367
+ * scroll the chat to the original message + flash a highlight.
368
+ * No-op when omitted.
369
+ */
370
+ onQuotedClick?: (quotedMessageId: Uuid) => void;
371
+ /**
372
+ * Where this bubble sits within a same-sender cluster (see
373
+ * BubbleGroupPosition). Defaults to `standalone`.
374
+ */
375
+ groupPosition?: BubbleGroupPosition;
376
+ /**
377
+ * When > 0, truncates the body at this many characters and shows a
378
+ * "Read more" toggle to expand. Defaults to 0 (no truncation).
379
+ */
380
+ maxBodyLength?: number;
381
+ /**
382
+ * Render the body as GitHub-flavored Markdown (bold, italic, lists,
383
+ * fenced code, blockquotes, strikethrough, autolinks). Defaults to
384
+ * `false`. `<ConversationView>` flips this on by default.
385
+ */
386
+ markdown?: boolean;
387
+ /**
388
+ * Show a colored sender label above the body for other-side
389
+ * bubbles. Only meaningful in group chats (3+ participants) and
390
+ * only on the FIRST / STANDALONE bubble of a cluster (continuation
391
+ * bubbles share the cluster's identity). The label name comes
392
+ * from the SDK's `useUser` hook via the customer's
393
+ * `userResolver` config.
394
+ */
395
+ showSenderName?: boolean;
396
+ /**
397
+ * Makes the sender label (see `showSenderName`) a button — e.g. to
398
+ * open the sender's profile.
399
+ */
400
+ onSenderPress?: () => void;
401
+ /**
402
+ * Slot for a "show actions" affordance — typically a chevron
403
+ * rendered by `<MessageRow>` that toggles the actions popover on
404
+ * desktop click. Positioned absolutely at the top-trailing corner
405
+ * inside the bubble so it overlays the message border; hidden by
406
+ * CSS until the row is hovered.
407
+ */
408
+ actionsTrigger?: ReactNode;
409
+ /**
410
+ * Render the message's attachments INSIDE the bubble (WhatsApp-
411
+ * style): images mosaic at the top, file cards below, then the
412
+ * message body. Defaults to `true`. Pass `false` if you're rendering
413
+ * attachments yourself outside the bubble.
414
+ */
415
+ showAttachments?: boolean;
416
+ }
417
+ /**
418
+ * One message bubble. The default renderer for `<ConversationView>` —
419
+ * customers swap it out via `renderMessage` for full visual control
420
+ * without rebuilding the rest of the chat.
421
+ *
422
+ * Styling: 16px radius bubble with a 5px tail on the sender's side
423
+ * (coral for self, surface-with-border for others), matching the
424
+ * brand-kit chat showcase.
425
+ */
426
+ declare function MessageBubble({ message, currentUserId, readState, labelFor, onQuotedClick, groupPosition, maxBodyLength, markdown, showSenderName, onSenderPress, actionsTrigger, showAttachments, }: MessageBubbleProps): react_jsx_runtime.JSX.Element;
427
+
428
+ /** Who sent a message — what `onSenderPress` / `onAvatarPress` receive. */
429
+ interface MessageUser {
430
+ /** poolse user id. */
431
+ userId: Uuid | null;
432
+ /** Your own user id (`external_id`) — what `userResolver` takes. */
433
+ externalId: string | null;
434
+ /** Resolved name, or the fallback shown in its place. */
435
+ displayName: string;
436
+ avatarUrl: string | null;
437
+ }
438
+
340
439
  interface ConversationViewProps {
341
440
  conversationId: Uuid;
342
441
  /** Placeholder when there are no messages. */
@@ -423,12 +522,35 @@ interface ConversationViewProps {
423
522
  */
424
523
  avatars?: 'auto' | 'always' | 'never';
425
524
  /**
426
- * Fired once after the caller's auto-mark-read fires for a fresh
427
- * message. Useful for clearing a sidebar unread badge before the
428
- * `member:read` realtime echo round-trips. Receives the conv id so
429
- * a single handler can switch between rooms.
525
+ * Fired after the view marks the latest message read and the server
526
+ * accepts it. Every `useConversations()` / `<ConversationList>` under
527
+ * the same provider has already cleared this conversation's badge by
528
+ * then; use this for anything else (an app-level badge, say).
529
+ * Receives the conv id so a single handler can switch between rooms.
430
530
  */
431
531
  onMarkedRead?: (conversationId: string) => void;
532
+ /**
533
+ * Jump to this message: older pages load until it's there, then it
534
+ * scrolls into view and flashes. Set it again (or to another id) to
535
+ * jump again. When it can't be found — deleted, a thread reply, or
536
+ * not in this conversation — a short notice shows and
537
+ * `onFocusMessageNotFound` fires.
538
+ */
539
+ focusMessageId?: Uuid | null;
540
+ /** `focusMessageId` couldn't be found in this conversation. */
541
+ onFocusMessageNotFound?: (messageId: Uuid) => void;
542
+ /** Makes the sender label on other people's messages a button. */
543
+ onSenderPress?: (user: MessageUser) => void;
544
+ /** Makes the avatar next to other people's messages a button. */
545
+ onAvatarPress?: (user: MessageUser) => void;
546
+ /**
547
+ * `false` hides the composer (and with it quote-reply and dropping
548
+ * files) — for an archived conversation or a viewer who can't post.
549
+ * Defaults to `true`.
550
+ */
551
+ composer?: boolean;
552
+ /** Same as `composer={false}`. */
553
+ readOnly?: boolean;
432
554
  /**
433
555
  * Offer "Call back" on call-log rows the viewer missed or declined,
434
556
  * or placed with no answer. Receives the call's media; place the call
@@ -444,7 +566,7 @@ interface ConversationViewProps {
444
566
  /** The call this client is already on, if any — its banner is hidden. */
445
567
  currentCallId?: string | null;
446
568
  }
447
- declare function ConversationView({ conversationId, emptyState, renderMessage, labelFor, loadFonts, reactions, mentions, attachments, actions, threads, quotations, readReceipts, markdown, maxBodyLength, grouping, groupingWindowMs, daySeparators, senderLabels, avatars, onMarkedRead, onCallBack, onJoinCall, currentCallId, }: ConversationViewProps): react_jsx_runtime.JSX.Element;
569
+ declare function ConversationView({ conversationId, emptyState, renderMessage, labelFor, loadFonts, reactions, mentions, attachments, actions, threads, quotations, readReceipts, markdown, maxBodyLength, grouping, groupingWindowMs, daySeparators, senderLabels, avatars, onMarkedRead, focusMessageId, onFocusMessageNotFound, onSenderPress, onAvatarPress, composer, readOnly, onCallBack, onJoinCall, currentCallId, }: ConversationViewProps): react_jsx_runtime.JSX.Element;
448
570
 
449
571
  interface ChatHeaderProps {
450
572
  /** Conversation id — used to fetch the row + members for the title / presence dot. */
@@ -547,89 +669,6 @@ interface GroupDetailsSheetProps {
547
669
  }
548
670
  declare function GroupDetailsSheet({ visible, onClose, conversationId, labelFor, avatarFor, footer, }: GroupDetailsSheetProps): react_jsx_runtime.JSX.Element | null;
549
671
 
550
- /**
551
- * Position of this bubble within a same-sender, same-day, ≤5-min
552
- * cluster. Drives the tail-corner rendering: only `last` and
553
- * `standalone` get the asymmetric tail, matching the WhatsApp /
554
- * iMessage convention where consecutive bursts read as a single
555
- * unit with one trailing tail.
556
- */
557
- type BubbleGroupPosition = 'first' | 'middle' | 'last' | 'standalone';
558
- interface MessageBubbleProps {
559
- message: Message;
560
- /** Used to decide left/right alignment + color, and whether to show the read-receipt glyph. */
561
- currentUserId: string | null;
562
- /**
563
- * Show the read-receipt check-double on self-sent messages. Pass
564
- * `true` when at least one other member's `last_read_message_id`
565
- * is >= this message's sequence. Single-tick + double-tick variants
566
- * map to "sent" and "read" respectively per brand conventions.
567
- */
568
- readState?: 'sent' | 'read';
569
- /**
570
- * Optional friendly label for a quoted message's sender. Same shape
571
- * as `<MemberList labelFor>` — `(externalId) => string` looking up a
572
- * display name from the local member roster.
573
- */
574
- labelFor?: (externalId: string) => string;
575
- /**
576
- * Called when the user clicks the quoted card. Typically used to
577
- * scroll the chat to the original message + flash a highlight.
578
- * No-op when omitted.
579
- */
580
- onQuotedClick?: (quotedMessageId: Uuid) => void;
581
- /**
582
- * Where this bubble sits within a same-sender cluster (see
583
- * BubbleGroupPosition). Defaults to `standalone`.
584
- */
585
- groupPosition?: BubbleGroupPosition;
586
- /**
587
- * When > 0, truncates the body at this many characters and shows a
588
- * "Read more" toggle to expand. Defaults to 0 (no truncation).
589
- */
590
- maxBodyLength?: number;
591
- /**
592
- * Render the body as GitHub-flavored Markdown (bold, italic, lists,
593
- * fenced code, blockquotes, strikethrough, autolinks). Defaults to
594
- * `false`. `<ConversationView>` flips this on by default.
595
- */
596
- markdown?: boolean;
597
- /**
598
- * Show a colored sender label above the body for other-side
599
- * bubbles. Only meaningful in group chats (3+ participants) and
600
- * only on the FIRST / STANDALONE bubble of a cluster (continuation
601
- * bubbles share the cluster's identity). The label name comes
602
- * from the SDK's `useUser` hook via the customer's
603
- * `userResolver` config.
604
- */
605
- showSenderName?: boolean;
606
- /**
607
- * Slot for a "show actions" affordance — typically a chevron
608
- * rendered by `<MessageRow>` that toggles the actions popover on
609
- * desktop click. Positioned absolutely at the top-trailing corner
610
- * inside the bubble so it overlays the message border; hidden by
611
- * CSS until the row is hovered.
612
- */
613
- actionsTrigger?: ReactNode;
614
- /**
615
- * Render the message's attachments INSIDE the bubble (WhatsApp-
616
- * style): images mosaic at the top, file cards below, then the
617
- * message body. Defaults to `true`. Pass `false` if you're rendering
618
- * attachments yourself outside the bubble.
619
- */
620
- showAttachments?: boolean;
621
- }
622
- /**
623
- * One message bubble. The default renderer for `<ConversationView>` —
624
- * customers swap it out via `renderMessage` for full visual control
625
- * without rebuilding the rest of the chat.
626
- *
627
- * Styling: 16px radius bubble with a 5px tail on the sender's side
628
- * (coral for self, surface-with-border for others), matching the
629
- * brand-kit chat showcase.
630
- */
631
- declare function MessageBubble({ message, currentUserId, readState, labelFor, onQuotedClick, groupPosition, maxBodyLength, markdown, showSenderName, actionsTrigger, showAttachments, }: MessageBubbleProps): react_jsx_runtime.JSX.Element;
632
-
633
672
  interface CallLogRowProps {
634
673
  /** The call-log message. Rows that aren't call logs render nothing. */
635
674
  msg: Pick<Message, 'type' | 'body' | 'inserted_at'> & {
@@ -1029,4 +1068,4 @@ declare function usePoolseFonts(enabled?: boolean): void;
1029
1068
  */
1030
1069
  declare function PoolseFonts(): null;
1031
1070
 
1032
- export { AttachmentPreview, type AttachmentPreviewProps, Avatar, type AvatarProps, CallControlButton, type CallControlButtonProps, CallDeviceMenu, type CallDeviceMenuProps, CallLogRow, type CallLogRowProps, CallVideoGrid, type CallVideoGridProps, ChatHeader, type ChatHeaderProps, ConversationList, type ConversationListProps, ConversationView, type ConversationViewProps, EditableMessageBubble, type EditableMessageBubbleProps, GroupDetailsSheet, type GroupDetailsSheetProps, type IconName, type InboxUser, LiveCallBanner, type LiveCallBannerProps, MemberList, type MemberListProps, MentionInput, type MentionInputProps, MessageActions, type MessageActionsProps, MessageBubble, type MessageBubbleProps, MessageComposer, type MessageComposerProps, PoolseFonts, PoolseIcon, type PoolseIconProps, PoolseInbox, type PoolseInboxHandle, type PoolseInboxProps, PoolseLogo, type PoolseLogoProps, type PoolseLogoVariant, ReactionPicker, ReactionStrip, type ReactionStripProps, RoomJoinBar, type RoomJoinBarProps, RoomStage, type RoomStageProps, ThreadView, type ThreadViewProps, TypingIndicator, type TypingIndicatorProps, UploadQueueStrip, UserName, type UserNameProps, UserPickerSheet, type UserPickerSheetProps, useDisplayName, usePoolseFonts };
1071
+ export { AttachmentPreview, type AttachmentPreviewProps, Avatar, type AvatarProps, CallControlButton, type CallControlButtonProps, CallDeviceMenu, type CallDeviceMenuProps, CallLogRow, type CallLogRowProps, CallVideoGrid, type CallVideoGridProps, ChatHeader, type ChatHeaderProps, ConversationList, type ConversationListProps, ConversationView, type ConversationViewProps, EditableMessageBubble, type EditableMessageBubbleProps, GroupDetailsSheet, type GroupDetailsSheetProps, type IconName, type InboxUser, LiveCallBanner, type LiveCallBannerProps, MemberList, type MemberListProps, MentionInput, type MentionInputProps, MessageActions, type MessageActionsProps, MessageBubble, type MessageBubbleProps, MessageComposer, type MessageComposerProps, type MessageUser, PoolseFonts, PoolseIcon, type PoolseIconProps, PoolseInbox, type PoolseInboxHandle, type PoolseInboxProps, PoolseLogo, type PoolseLogoProps, type PoolseLogoVariant, ReactionPicker, ReactionStrip, type ReactionStripProps, RoomJoinBar, type RoomJoinBarProps, RoomStage, type RoomStageProps, ThreadView, type ThreadViewProps, TypingIndicator, type TypingIndicatorProps, UploadQueueStrip, UserName, type UserNameProps, UserPickerSheet, type UserPickerSheetProps, useDisplayName, usePoolseFonts };