@linktr.ee/messaging-react 1.8.7 → 1.8.8
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 +7 -0
- package/dist/index.js +579 -575
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ChannelList/index.tsx +2 -0
- package/src/components/MessagingShell/index.tsx +2 -0
- package/src/types.ts +8 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Channel } from 'stream-chat';
|
|
2
2
|
import { ChannelFilters } from 'stream-chat';
|
|
3
3
|
import { default as default_2 } from 'react';
|
|
4
|
+
import { EmptyStateIndicatorProps } from 'stream-chat-react';
|
|
4
5
|
import { MessagingUser } from '@linktr.ee/messaging-core';
|
|
5
6
|
import { StreamChat } from 'stream-chat';
|
|
6
7
|
import { StreamChatService } from '@linktr.ee/messaging-core';
|
|
@@ -40,6 +41,7 @@ export declare interface ChannelListProps {
|
|
|
40
41
|
participantLabel?: string;
|
|
41
42
|
className?: string;
|
|
42
43
|
filters: ChannelFilters;
|
|
44
|
+
customEmptyStateIndicator?: React.ComponentType<EmptyStateIndicatorProps>;
|
|
43
45
|
}
|
|
44
46
|
|
|
45
47
|
/**
|
|
@@ -193,6 +195,11 @@ export declare interface MessagingShellProps {
|
|
|
193
195
|
* Filters for channel list. Passed through to StreamChat ChannelList.
|
|
194
196
|
*/
|
|
195
197
|
filters?: ChannelFilters;
|
|
198
|
+
/**
|
|
199
|
+
* Custom empty state indicator component to render when the channel list is empty.
|
|
200
|
+
* Useful for showing a custom empty state indicator when the channel list is empty.
|
|
201
|
+
*/
|
|
202
|
+
channelListCustomEmptyStateIndicator?: React.ComponentType<EmptyStateIndicatorProps>;
|
|
196
203
|
}
|
|
197
204
|
|
|
198
205
|
/**
|