@linktr.ee/messaging-react 1.11.5 → 1.12.1
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 +37 -0
- package/dist/index.js +595 -564
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ChannelView.tsx +56 -14
- package/src/components/MessagingShell/index.tsx +12 -1
- package/src/types.ts +40 -0
package/dist/index.d.ts
CHANGED
|
@@ -62,6 +62,23 @@ export declare interface ChannelViewProps {
|
|
|
62
62
|
onBlockParticipant?: (participantId?: string) => void;
|
|
63
63
|
className?: string;
|
|
64
64
|
CustomChannelEmptyState?: React.ComponentType;
|
|
65
|
+
/**
|
|
66
|
+
* Show the "Delete Conversation" button in channel info dialog.
|
|
67
|
+
* Defaults to true for backward compatibility.
|
|
68
|
+
*/
|
|
69
|
+
showDeleteConversation?: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Analytics callback fired when "Delete Conversation" is clicked.
|
|
72
|
+
*/
|
|
73
|
+
onDeleteConversationClick?: () => void;
|
|
74
|
+
/**
|
|
75
|
+
* Analytics callback fired when "Block" or "Unblock" is clicked.
|
|
76
|
+
*/
|
|
77
|
+
onBlockParticipantClick?: () => void;
|
|
78
|
+
/**
|
|
79
|
+
* Analytics callback fired when "Report" is clicked.
|
|
80
|
+
*/
|
|
81
|
+
onReportParticipantClick?: () => void;
|
|
65
82
|
}
|
|
66
83
|
|
|
67
84
|
export declare interface Faq {
|
|
@@ -106,6 +123,11 @@ export declare interface MessagingCapabilities {
|
|
|
106
123
|
showStartConversation?: boolean;
|
|
107
124
|
participantSource?: ParticipantSource;
|
|
108
125
|
participantLabel?: string;
|
|
126
|
+
/**
|
|
127
|
+
* Show the "Delete Conversation" button in channel info dialog.
|
|
128
|
+
* Defaults to true for backward compatibility.
|
|
129
|
+
*/
|
|
130
|
+
showDeleteConversation?: boolean;
|
|
109
131
|
}
|
|
110
132
|
|
|
111
133
|
/**
|
|
@@ -190,6 +212,21 @@ export declare interface MessagingShellProps {
|
|
|
190
212
|
* Useful for showing a custom empty state indicator when the channel list is empty.
|
|
191
213
|
*/
|
|
192
214
|
channelListCustomEmptyStateIndicator?: React.ComponentType<EmptyStateIndicatorProps>;
|
|
215
|
+
/**
|
|
216
|
+
* Analytics callback fired when "Delete Conversation" is clicked.
|
|
217
|
+
* Called before the action is performed.
|
|
218
|
+
*/
|
|
219
|
+
onDeleteConversationClick?: () => void;
|
|
220
|
+
/**
|
|
221
|
+
* Analytics callback fired when "Block" or "Unblock" is clicked.
|
|
222
|
+
* Called before the action is performed.
|
|
223
|
+
*/
|
|
224
|
+
onBlockParticipantClick?: () => void;
|
|
225
|
+
/**
|
|
226
|
+
* Analytics callback fired when "Report" is clicked.
|
|
227
|
+
* Called before the action is performed.
|
|
228
|
+
*/
|
|
229
|
+
onReportParticipantClick?: () => void;
|
|
193
230
|
}
|
|
194
231
|
|
|
195
232
|
/**
|