@linktr.ee/messaging-react 1.23.0 → 1.24.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/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { Channel } from 'stream-chat';
2
2
  import { ChannelFilters } from 'stream-chat';
3
+ import { ChannelSort } from 'stream-chat';
3
4
  import { default as default_2 } from 'react';
4
5
  import { EmptyStateIndicatorProps } from 'stream-chat-react';
5
6
  import { JSX as JSX_2 } from 'react/jsx-runtime';
@@ -52,6 +53,11 @@ export declare interface ChannelListProps {
52
53
  participantLabel?: string;
53
54
  className?: string;
54
55
  filters: ChannelFilters;
56
+ /**
57
+ * Sort order for the channel list query.
58
+ * Defaults to `{ last_message_at: -1 }` (most recent first).
59
+ */
60
+ sort?: ChannelSort;
55
61
  customEmptyStateIndicator?: React.ComponentType<EmptyStateIndicatorProps>;
56
62
  renderMessagePreview?: (message: LocalMessage | undefined, defaultPreview?: string) => React.ReactNode;
57
63
  }