@linktr.ee/messaging-react 1.24.2 → 1.24.3-rc-1773289717
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 +2 -1
- package/dist/index.js +906 -900
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ChannelView.stories.tsx +27 -0
- package/src/components/ChannelView.test.tsx +147 -0
- package/src/components/ChannelView.tsx +6 -0
- package/src/components/MessagingShell/index.tsx +2 -0
- package/src/types.ts +2 -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' | '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' | 'customChannelActions' | 'renderMessage'>;
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
77
|
* ChannelView component props
|
|
@@ -81,6 +81,7 @@ export declare interface ChannelViewProps {
|
|
|
81
81
|
onBack?: () => void;
|
|
82
82
|
showBackButton?: boolean;
|
|
83
83
|
renderMessageInputActions?: (channel: Channel) => React.ReactNode;
|
|
84
|
+
renderConversationFooter?: (channel: Channel) => React.ReactNode;
|
|
84
85
|
onLeaveConversation?: (channel: Channel) => void;
|
|
85
86
|
onBlockParticipant?: (participantId?: string) => void;
|
|
86
87
|
className?: string;
|