@linktr.ee/messaging-react 1.3.0 → 1.4.0-rc-1761053580
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 +17 -0
- package/dist/index.js +724 -629
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ChannelList/index.tsx +1 -1
- package/src/components/ChannelView.tsx +7 -2
- package/src/components/MessagingShell/EmptyState.tsx +1 -1
- package/src/components/MessagingShell/ErrorState.stories.tsx +9 -9
- package/src/components/MessagingShell/ErrorState.tsx +18 -20
- package/src/components/MessagingShell/LoadingState.tsx +1 -1
- package/src/components/MessagingShell/index.tsx +154 -13
- package/src/components/ParticipantPicker/ParticipantPicker.tsx +6 -1
- package/src/types.ts +80 -58
package/dist/index.d.ts
CHANGED
|
@@ -119,6 +119,23 @@ export declare interface MessagingShellProps {
|
|
|
119
119
|
renderMessageInputActions?: (channel: Channel) => React.ReactNode;
|
|
120
120
|
onChannelSelect?: (channel: Channel) => void;
|
|
121
121
|
onParticipantSelect?: (participant: Participant) => void;
|
|
122
|
+
/**
|
|
123
|
+
* Auto-select a conversation with this participant on mount.
|
|
124
|
+
* Useful for deep-linking to a specific conversation (e.g., /messages/[accountUuid])
|
|
125
|
+
*
|
|
126
|
+
* If a channel with this participant exists, it will be auto-selected.
|
|
127
|
+
* If no channel exists, you can provide initialParticipantData to automatically
|
|
128
|
+
* create the channel using the existing ChannelCreator.
|
|
129
|
+
*/
|
|
130
|
+
initialParticipantFilter?: string;
|
|
131
|
+
/**
|
|
132
|
+
* Participant data for auto-creating a channel when initialParticipantFilter
|
|
133
|
+
* is provided but no channel exists. If this is provided, MessagingShell will
|
|
134
|
+
* automatically call service.startChannelWithParticipant() to create the channel.
|
|
135
|
+
*
|
|
136
|
+
* This reuses the existing ChannelCreator from StreamChatServiceConfig.
|
|
137
|
+
*/
|
|
138
|
+
initialParticipantData?: Participant;
|
|
122
139
|
}
|
|
123
140
|
|
|
124
141
|
/**
|