@linktr.ee/messaging-react 1.32.1 → 1.33.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/{Card-1CQEn-OT.js → Card-DEe10CiS.js} +2 -2
- package/dist/{Card-1CQEn-OT.js.map → Card-DEe10CiS.js.map} +1 -1
- package/dist/{Card-ClE_iExA.js → Card-Ddi8bg90.js} +2 -2
- package/dist/{Card-ClE_iExA.js.map → Card-Ddi8bg90.js.map} +1 -1
- package/dist/index-BePLvyvi.js +2868 -0
- package/dist/index-BePLvyvi.js.map +1 -0
- package/dist/index.d.ts +19 -1
- package/dist/index.js +20 -2477
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ChannelView.stories.tsx +38 -0
- package/src/components/ChannelView.test.tsx +25 -6
- package/src/components/ChannelView.tsx +2 -0
- package/src/components/CustomMessageInput/CustomMessageInput.stories.tsx +180 -0
- package/src/components/CustomMessageInput/CustomMessageInput.test.tsx +63 -1
- package/src/components/CustomMessageInput/index.tsx +24 -5
- package/src/components/MediaMessage/MediaMessage.stories.tsx +170 -0
- package/src/components/MediaMessage/MediaMessage.test.tsx +261 -0
- package/src/components/MediaMessage/index.tsx +165 -0
- package/src/components/MessagingShell/index.tsx +2 -0
- package/src/index.ts +2 -0
- package/src/types.ts +13 -0
- package/dist/MediaPlayer-B9Ws2NeE.js +0 -292
- package/dist/MediaPlayer-B9Ws2NeE.js.map +0 -1
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 { ChannelListProps as ChannelListProps_2 } from 'stream-chat-react';
|
|
4
4
|
import { ChannelSort } from 'stream-chat';
|
|
5
|
+
import { ComponentType } from 'react';
|
|
5
6
|
import { default as default_2 } from 'react';
|
|
6
7
|
import { EmptyStateIndicatorProps } from 'stream-chat-react';
|
|
7
8
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
@@ -112,7 +113,7 @@ export declare const ChannelView: default_2.NamedExoticComponent<ChannelViewProp
|
|
|
112
113
|
* Props that MessagingShell passes through to ChannelView.
|
|
113
114
|
* ChannelViewProps is the source of truth for these props.
|
|
114
115
|
*/
|
|
115
|
-
declare type ChannelViewPassthroughProps = Pick<ChannelViewProps, 'renderMessageInputActions' | 'renderConversationFooter' | 'CustomChannelEmptyState' | 'onDeleteConversationClick' | 'onBlockParticipantClick' | 'onReportParticipantClick' | 'dmAgentEnabled' | 'messageMetadata' | 'onMessageSent' | 'showStarButton' | 'chatbotVotingEnabled' | 'renderChannelBanner' | 'customProfileContent' | 'customChannelActions' | 'renderMessage'>;
|
|
116
|
+
declare type ChannelViewPassthroughProps = Pick<ChannelViewProps, 'renderMessageInputActions' | 'renderConversationFooter' | 'CustomChannelEmptyState' | 'onDeleteConversationClick' | 'onBlockParticipantClick' | 'onReportParticipantClick' | 'dmAgentEnabled' | 'messageMetadata' | 'onMessageSent' | 'showStarButton' | 'chatbotVotingEnabled' | 'renderChannelBanner' | 'customProfileContent' | 'customChannelActions' | 'renderMessage' | 'sendButton'>;
|
|
116
117
|
|
|
117
118
|
/**
|
|
118
119
|
* ChannelView component props
|
|
@@ -217,6 +218,16 @@ export declare interface ChannelViewProps {
|
|
|
217
218
|
* )}
|
|
218
219
|
*/
|
|
219
220
|
renderMessage?: (messageNode: React.ReactElement, message: LocalMessage) => React.ReactNode;
|
|
221
|
+
/**
|
|
222
|
+
* Passed to Stream `Channel` as `SendButton`. Required for hosts that replace
|
|
223
|
+
* the send control: `Channel` merges this into `ComponentContext` and an
|
|
224
|
+
* explicit `SendButton: undefined` would otherwise override outer
|
|
225
|
+
* `WithComponents` overrides.
|
|
226
|
+
*
|
|
227
|
+
* @example
|
|
228
|
+
* sendButton={MediaSendButton}
|
|
229
|
+
*/
|
|
230
|
+
sendButton?: ComponentType<any>;
|
|
220
231
|
}
|
|
221
232
|
|
|
222
233
|
export declare interface CreatorCardProps extends LockedAttachmentBaseProps {
|
|
@@ -299,6 +310,13 @@ export declare interface LockedAttachmentSource {
|
|
|
299
310
|
thumbnailUrl?: string;
|
|
300
311
|
}
|
|
301
312
|
|
|
313
|
+
export declare const MediaMessage: default_2.FC<MediaMessageProps>;
|
|
314
|
+
|
|
315
|
+
export declare interface MediaMessageProps {
|
|
316
|
+
message: LocalMessage;
|
|
317
|
+
isMyMessage?: boolean;
|
|
318
|
+
}
|
|
319
|
+
|
|
302
320
|
declare type MessageCustomType = 'MESSAGE_TIP' | 'MESSAGE_PAID' | 'MESSAGE_CHATBOT' | 'MESSAGE_ATTACHMENT' | AgeSafetySystemType | DmAgentSystemType;
|
|
303
321
|
|
|
304
322
|
export declare interface MessageMetadata {
|