@linktr.ee/messaging-react 1.12.8-rc-1765966726 → 1.12.8-rc-1766044049
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 +21 -0
- package/dist/index.js +678 -613
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ChannelView.tsx +34 -34
- package/src/components/CustomMessageInput/index.tsx +118 -8
- package/src/components/MessagingShell/index.tsx +4 -0
- package/src/types.ts +25 -1
- package/src/components/CustomMessage/index.tsx +0 -9
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Attachment } from 'stream-chat';
|
|
1
2
|
import { Channel } from 'stream-chat';
|
|
2
3
|
import { ChannelFilters } from 'stream-chat';
|
|
3
4
|
import { default as default_2 } from 'react';
|
|
@@ -80,6 +81,16 @@ export declare interface ChannelViewProps {
|
|
|
80
81
|
* Analytics callback fired when "Report" is clicked.
|
|
81
82
|
*/
|
|
82
83
|
onReportParticipantClick?: () => void;
|
|
84
|
+
/**
|
|
85
|
+
* Pending attachment to be staged in the message input.
|
|
86
|
+
* When set, displays a preview and includes the attachment when sending.
|
|
87
|
+
*/
|
|
88
|
+
pendingAttachment?: Attachment | null;
|
|
89
|
+
/**
|
|
90
|
+
* Callback to clear the pending attachment.
|
|
91
|
+
* Called after the message is sent or when the user removes the attachment.
|
|
92
|
+
*/
|
|
93
|
+
onClearPendingAttachment?: () => void;
|
|
83
94
|
}
|
|
84
95
|
|
|
85
96
|
export declare interface Faq {
|
|
@@ -228,6 +239,16 @@ export declare interface MessagingShellProps {
|
|
|
228
239
|
* Called before the action is performed.
|
|
229
240
|
*/
|
|
230
241
|
onReportParticipantClick?: () => void;
|
|
242
|
+
/**
|
|
243
|
+
* Pending attachment to be staged in the message input.
|
|
244
|
+
* When set, displays a preview and includes the attachment when sending.
|
|
245
|
+
*/
|
|
246
|
+
pendingAttachment?: Attachment | null;
|
|
247
|
+
/**
|
|
248
|
+
* Callback to clear the pending attachment.
|
|
249
|
+
* Called after the message is sent or when the user removes the attachment.
|
|
250
|
+
*/
|
|
251
|
+
onClearPendingAttachment?: () => void;
|
|
231
252
|
}
|
|
232
253
|
|
|
233
254
|
/**
|