@linktr.ee/messaging-react 1.20.0 → 1.21.0-rc-1771294922

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
@@ -58,7 +58,7 @@ export declare const ChannelView: default_2.NamedExoticComponent<ChannelViewProp
58
58
  * Props that MessagingShell passes through to ChannelView.
59
59
  * ChannelViewProps is the source of truth for these props.
60
60
  */
61
- declare type ChannelViewPassthroughProps = Pick<ChannelViewProps, 'renderMessageInputActions' | 'CustomChannelEmptyState' | 'onDeleteConversationClick' | 'onBlockParticipantClick' | 'onReportParticipantClick' | 'dmAgentEnabled' | 'messageMetadata' | 'onMessageSent' | 'showStarButton' | 'chatbotVotingEnabled'>;
61
+ declare type ChannelViewPassthroughProps = Pick<ChannelViewProps, 'renderMessageInputActions' | 'CustomChannelEmptyState' | 'onDeleteConversationClick' | 'onBlockParticipantClick' | 'onReportParticipantClick' | 'dmAgentEnabled' | 'messageMetadata' | 'onMessageSent' | 'showStarButton' | 'chatbotVotingEnabled' | 'renderChannelBanner'>;
62
62
 
63
63
  /**
64
64
  * ChannelView component props
@@ -128,6 +128,12 @@ export declare interface ChannelViewProps {
128
128
  * Defaults to false.
129
129
  */
130
130
  chatbotVotingEnabled?: boolean;
131
+ /**
132
+ * Custom render function for a banner/card component that renders
133
+ * between the channel header and message list.
134
+ * Useful for showing summaries, alerts, or contextual information.
135
+ */
136
+ renderChannelBanner?: () => React.ReactNode;
131
137
  }
132
138
 
133
139
  export declare interface Faq {