@linktr.ee/messaging-react 1.17.1 → 1.18.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 +7 -1
- package/dist/index.js +926 -914
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ChannelView.tsx +43 -23
- package/src/components/MessagingShell/index.tsx +10 -2
- package/src/types.ts +13 -1
package/dist/index.d.ts
CHANGED
|
@@ -56,7 +56,7 @@ export declare const ChannelView: default_2.NamedExoticComponent<ChannelViewProp
|
|
|
56
56
|
* Props that MessagingShell passes through to ChannelView.
|
|
57
57
|
* ChannelViewProps is the source of truth for these props.
|
|
58
58
|
*/
|
|
59
|
-
declare type ChannelViewPassthroughProps = Pick<ChannelViewProps, 'renderMessageInputActions' | 'CustomChannelEmptyState' | 'onDeleteConversationClick' | 'onBlockParticipantClick' | 'onReportParticipantClick' | 'dmAgentEnabled' | 'messageMetadata' | 'onMessageSent'>;
|
|
59
|
+
declare type ChannelViewPassthroughProps = Pick<ChannelViewProps, 'renderMessageInputActions' | 'CustomChannelEmptyState' | 'onDeleteConversationClick' | 'onBlockParticipantClick' | 'onReportParticipantClick' | 'dmAgentEnabled' | 'messageMetadata' | 'onMessageSent' | 'showStarButton'>;
|
|
60
60
|
|
|
61
61
|
/**
|
|
62
62
|
* ChannelView component props
|
|
@@ -113,6 +113,12 @@ export declare interface ChannelViewProps {
|
|
|
113
113
|
* }}
|
|
114
114
|
*/
|
|
115
115
|
onMessageSent?: (response: SendMessageAPIResponse) => void;
|
|
116
|
+
/**
|
|
117
|
+
* Show the star/pin button in channel header.
|
|
118
|
+
* Defaults to false. Only useful when users can view multiple channels
|
|
119
|
+
* and filter by starred/pinned status.
|
|
120
|
+
*/
|
|
121
|
+
showStarButton?: boolean;
|
|
116
122
|
}
|
|
117
123
|
|
|
118
124
|
export declare interface Faq {
|