@linktr.ee/messaging-react 1.21.2-rc-1771385662 → 1.21.2

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
@@ -2,6 +2,7 @@ import { Channel } from 'stream-chat';
2
2
  import { ChannelFilters } from 'stream-chat';
3
3
  import { default as default_2 } from 'react';
4
4
  import { EmptyStateIndicatorProps } from 'stream-chat-react';
5
+ import { JSX as JSX_2 } from 'react/jsx-runtime';
5
6
  import { LocalMessage } from 'stream-chat';
6
7
  import { MessagingUser } from '@linktr.ee/messaging-core';
7
8
  import { SendMessageAPIResponse } from 'stream-chat';
@@ -9,6 +10,12 @@ import { StreamChat } from 'stream-chat';
9
10
  import { StreamChatService } from '@linktr.ee/messaging-core';
10
11
  import { StreamChatServiceConfig } from '@linktr.ee/messaging-core';
11
12
 
13
+ export declare const ActionButton: ({ variant, className, children, ...rest }: ActionButtonProps) => JSX_2.Element;
14
+
15
+ export declare interface ActionButtonProps extends default_2.ButtonHTMLAttributes<HTMLButtonElement> {
16
+ variant?: "default" | "danger";
17
+ }
18
+
12
19
  /**
13
20
  * Avatar component that displays a user image or colored initial fallback
14
21
  */
@@ -58,7 +65,7 @@ export declare const ChannelView: default_2.NamedExoticComponent<ChannelViewProp
58
65
  * Props that MessagingShell passes through to ChannelView.
59
66
  * ChannelViewProps is the source of truth for these props.
60
67
  */
61
- declare type ChannelViewPassthroughProps = Pick<ChannelViewProps, 'renderMessageInputActions' | 'CustomChannelEmptyState' | 'onDeleteConversationClick' | 'onBlockParticipantClick' | 'onReportParticipantClick' | 'dmAgentEnabled' | 'messageMetadata' | 'onMessageSent' | 'showStarButton' | 'chatbotVotingEnabled' | 'renderChannelBanner'>;
68
+ declare type ChannelViewPassthroughProps = Pick<ChannelViewProps, 'renderMessageInputActions' | 'CustomChannelEmptyState' | 'onDeleteConversationClick' | 'onBlockParticipantClick' | 'onReportParticipantClick' | 'dmAgentEnabled' | 'messageMetadata' | 'onMessageSent' | 'showStarButton' | 'chatbotVotingEnabled' | 'renderChannelBanner' | 'customChannelActions'>;
62
69
 
63
70
  /**
64
71
  * ChannelView component props
@@ -134,6 +141,13 @@ export declare interface ChannelViewProps {
134
141
  * Useful for showing summaries, alerts, or contextual information.
135
142
  */
136
143
  renderChannelBanner?: () => React.ReactNode;
144
+ /**
145
+ * Custom actions rendered at the bottom of the channel info dialog
146
+ * (below Delete Conversation, Block/Unblock, Report).
147
+ * Pass one or more <li> elements so they match the list styling.
148
+ * Use the exported ActionButton for consistent styling.
149
+ */
150
+ customChannelActions?: React.ReactNode;
137
151
  }
138
152
 
139
153
  export declare interface Faq {