@linktr.ee/messaging-react 1.24.3-rc-1773289717 → 1.24.3-rc-1773689393
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 +10 -1
- package/dist/index.js +841 -833
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ChannelInfoDialog/ChannelInfoDialog.test.tsx +240 -0
- package/src/components/ChannelInfoDialog/index.tsx +316 -0
- package/src/components/ChannelView.tsx +7 -309
- package/src/components/MessagingShell/index.tsx +2 -0
- package/src/types.ts +11 -0
package/dist/index.d.ts
CHANGED
|
@@ -71,7 +71,7 @@ export declare const ChannelView: default_2.NamedExoticComponent<ChannelViewProp
|
|
|
71
71
|
* Props that MessagingShell passes through to ChannelView.
|
|
72
72
|
* ChannelViewProps is the source of truth for these props.
|
|
73
73
|
*/
|
|
74
|
-
declare type ChannelViewPassthroughProps = Pick<ChannelViewProps, 'renderMessageInputActions' | 'renderConversationFooter' | 'CustomChannelEmptyState' | 'onDeleteConversationClick' | 'onBlockParticipantClick' | 'onReportParticipantClick' | 'dmAgentEnabled' | 'messageMetadata' | 'onMessageSent' | 'showStarButton' | 'chatbotVotingEnabled' | 'renderChannelBanner' | 'customChannelActions' | 'renderMessage'>;
|
|
74
|
+
declare type ChannelViewPassthroughProps = Pick<ChannelViewProps, 'renderMessageInputActions' | 'renderConversationFooter' | 'CustomChannelEmptyState' | 'onDeleteConversationClick' | 'onBlockParticipantClick' | 'onReportParticipantClick' | 'dmAgentEnabled' | 'messageMetadata' | 'onMessageSent' | 'showStarButton' | 'chatbotVotingEnabled' | 'renderChannelBanner' | 'customProfileContent' | 'customChannelActions' | 'renderMessage'>;
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
77
|
* ChannelView component props
|
|
@@ -148,6 +148,15 @@ export declare interface ChannelViewProps {
|
|
|
148
148
|
* Useful for showing summaries, alerts, or contextual information.
|
|
149
149
|
*/
|
|
150
150
|
renderChannelBanner?: () => React.ReactNode;
|
|
151
|
+
/**
|
|
152
|
+
* Custom content rendered below the participant name and contact details
|
|
153
|
+
* in the channel info dialog profile card.
|
|
154
|
+
* Useful for badges (e.g. follower status), metadata, or any extra info.
|
|
155
|
+
*
|
|
156
|
+
* @example
|
|
157
|
+
* customProfileContent={<SubscriptionBadge isFollower={channel.data?.isFollower} />}
|
|
158
|
+
*/
|
|
159
|
+
customProfileContent?: React.ReactNode;
|
|
151
160
|
/**
|
|
152
161
|
* Custom actions rendered at the bottom of the channel info dialog
|
|
153
162
|
* (below Delete Conversation, Block/Unblock, Report).
|