@linktr.ee/messaging-react 1.32.1 → 1.33.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.ts CHANGED
@@ -2,6 +2,7 @@ import { Channel } from 'stream-chat';
2
2
  import { ChannelFilters } from 'stream-chat';
3
3
  import { ChannelListProps as ChannelListProps_2 } from 'stream-chat-react';
4
4
  import { ChannelSort } from 'stream-chat';
5
+ import { ComponentType } from 'react';
5
6
  import { default as default_2 } from 'react';
6
7
  import { EmptyStateIndicatorProps } from 'stream-chat-react';
7
8
  import { JSX as JSX_2 } from 'react/jsx-runtime';
@@ -112,7 +113,7 @@ export declare const ChannelView: default_2.NamedExoticComponent<ChannelViewProp
112
113
  * Props that MessagingShell passes through to ChannelView.
113
114
  * ChannelViewProps is the source of truth for these props.
114
115
  */
115
- declare type ChannelViewPassthroughProps = Pick<ChannelViewProps, 'renderMessageInputActions' | 'renderConversationFooter' | 'CustomChannelEmptyState' | 'onDeleteConversationClick' | 'onBlockParticipantClick' | 'onReportParticipantClick' | 'dmAgentEnabled' | 'messageMetadata' | 'onMessageSent' | 'showStarButton' | 'chatbotVotingEnabled' | 'renderChannelBanner' | 'customProfileContent' | 'customChannelActions' | 'renderMessage'>;
116
+ declare type ChannelViewPassthroughProps = Pick<ChannelViewProps, 'renderMessageInputActions' | 'renderConversationFooter' | 'CustomChannelEmptyState' | 'onDeleteConversationClick' | 'onBlockParticipantClick' | 'onReportParticipantClick' | 'dmAgentEnabled' | 'messageMetadata' | 'onMessageSent' | 'showStarButton' | 'chatbotVotingEnabled' | 'renderChannelBanner' | 'customProfileContent' | 'customChannelActions' | 'renderMessage' | 'sendButton'>;
116
117
 
117
118
  /**
118
119
  * ChannelView component props
@@ -217,6 +218,16 @@ export declare interface ChannelViewProps {
217
218
  * )}
218
219
  */
219
220
  renderMessage?: (messageNode: React.ReactElement, message: LocalMessage) => React.ReactNode;
221
+ /**
222
+ * Passed to Stream `Channel` as `SendButton`. Required for hosts that replace
223
+ * the send control: `Channel` merges this into `ComponentContext` and an
224
+ * explicit `SendButton: undefined` would otherwise override outer
225
+ * `WithComponents` overrides.
226
+ *
227
+ * @example
228
+ * sendButton={MediaSendButton}
229
+ */
230
+ sendButton?: ComponentType<any>;
220
231
  }
221
232
 
222
233
  export declare interface CreatorCardProps extends LockedAttachmentBaseProps {
@@ -299,6 +310,13 @@ export declare interface LockedAttachmentSource {
299
310
  thumbnailUrl?: string;
300
311
  }
301
312
 
313
+ export declare const MediaMessage: default_2.FC<MediaMessageProps>;
314
+
315
+ export declare interface MediaMessageProps {
316
+ message: LocalMessage;
317
+ isMyMessage?: boolean;
318
+ }
319
+
302
320
  declare type MessageCustomType = 'MESSAGE_TIP' | 'MESSAGE_PAID' | 'MESSAGE_CHATBOT' | 'MESSAGE_ATTACHMENT' | AgeSafetySystemType | DmAgentSystemType;
303
321
 
304
322
  export declare interface MessageMetadata {