@linktr.ee/messaging-react 1.24.4 → 1.25.0-rc-1774238116
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 +11 -1
- package/dist/index.js +906 -883
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Avatar/Avatar.stories.tsx +7 -0
- package/src/components/Avatar/index.tsx +26 -14
- package/src/components/ChannelInfoDialog/ChannelInfoDialog.test.tsx +259 -0
- package/src/components/ChannelInfoDialog/index.tsx +316 -0
- package/src/components/ChannelList/CustomChannelPreview.tsx +7 -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
|
@@ -29,6 +29,7 @@ export declare interface AvatarProps {
|
|
|
29
29
|
image?: string;
|
|
30
30
|
size?: number;
|
|
31
31
|
className?: string;
|
|
32
|
+
starred?: boolean;
|
|
32
33
|
shape?: 'squircle' | 'circle';
|
|
33
34
|
}
|
|
34
35
|
|
|
@@ -92,7 +93,7 @@ export declare const ChannelView: default_2.NamedExoticComponent<ChannelViewProp
|
|
|
92
93
|
* Props that MessagingShell passes through to ChannelView.
|
|
93
94
|
* ChannelViewProps is the source of truth for these props.
|
|
94
95
|
*/
|
|
95
|
-
declare type ChannelViewPassthroughProps = Pick<ChannelViewProps, 'renderMessageInputActions' | 'renderConversationFooter' | 'CustomChannelEmptyState' | 'onDeleteConversationClick' | 'onBlockParticipantClick' | 'onReportParticipantClick' | 'dmAgentEnabled' | 'messageMetadata' | 'onMessageSent' | 'showStarButton' | 'chatbotVotingEnabled' | 'renderChannelBanner' | 'customChannelActions' | 'renderMessage'>;
|
|
96
|
+
declare type ChannelViewPassthroughProps = Pick<ChannelViewProps, 'renderMessageInputActions' | 'renderConversationFooter' | 'CustomChannelEmptyState' | 'onDeleteConversationClick' | 'onBlockParticipantClick' | 'onReportParticipantClick' | 'dmAgentEnabled' | 'messageMetadata' | 'onMessageSent' | 'showStarButton' | 'chatbotVotingEnabled' | 'renderChannelBanner' | 'customProfileContent' | 'customChannelActions' | 'renderMessage'>;
|
|
96
97
|
|
|
97
98
|
/**
|
|
98
99
|
* ChannelView component props
|
|
@@ -169,6 +170,15 @@ export declare interface ChannelViewProps {
|
|
|
169
170
|
* Useful for showing summaries, alerts, or contextual information.
|
|
170
171
|
*/
|
|
171
172
|
renderChannelBanner?: () => React.ReactNode;
|
|
173
|
+
/**
|
|
174
|
+
* Custom content rendered below the participant name and contact details
|
|
175
|
+
* in the channel info dialog profile card.
|
|
176
|
+
* Useful for badges (e.g. follower status), metadata, or any extra info.
|
|
177
|
+
*
|
|
178
|
+
* @example
|
|
179
|
+
* customProfileContent={<SubscriptionBadge isFollower={channel.data?.isFollower} />}
|
|
180
|
+
*/
|
|
181
|
+
customProfileContent?: React.ReactNode;
|
|
172
182
|
/**
|
|
173
183
|
* Custom actions rendered at the bottom of the channel info dialog
|
|
174
184
|
* (below Delete Conversation, Block/Unblock, Report).
|