stream-chat-react 12.15.5 → 12.15.7
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/components/Channel/Channel.js +1 -0
- package/dist/components/ChannelList/hooks/useChannelListShape.js +3 -3
- package/dist/components/Chat/hooks/useChat.js +1 -1
- package/dist/components/MessageList/VirtualizedMessageListComponents.d.ts +1 -1
- package/dist/components/MessageList/VirtualizedMessageListComponents.js +4 -0
- package/dist/css/v2/index.css +1 -1
- package/dist/css/v2/index.layout.css +1 -1
- package/dist/index.browser.cjs +8 -5
- package/dist/index.browser.cjs.map +2 -2
- package/dist/index.node.cjs +8 -5
- package/dist/index.node.cjs.map +2 -2
- package/dist/scss/v2/Message/Message-layout.scss +2 -1
- package/package.json +2 -2
package/dist/index.browser.cjs
CHANGED
|
@@ -41965,13 +41965,13 @@ var useChannelListShapeDefaults = () => {
|
|
|
41965
41965
|
if (typeof customHandler === "function") {
|
|
41966
41966
|
return customHandler(setChannels, event);
|
|
41967
41967
|
}
|
|
41968
|
-
if (!event.
|
|
41968
|
+
if (!event.channel_id && !event.channel_type) {
|
|
41969
41969
|
return;
|
|
41970
41970
|
}
|
|
41971
41971
|
const channel = await getChannel({
|
|
41972
41972
|
client,
|
|
41973
|
-
id: event.
|
|
41974
|
-
type: event.
|
|
41973
|
+
id: event.channel_id,
|
|
41974
|
+
type: event.channel_type
|
|
41975
41975
|
});
|
|
41976
41976
|
const considerArchivedChannels = shouldConsiderArchivedChannels(filters);
|
|
41977
41977
|
if (isChannelArchived(channel) && considerArchivedChannels && !filters.archived) {
|
|
@@ -51466,6 +51466,8 @@ var EmptyPlaceholder = ({
|
|
|
51466
51466
|
context
|
|
51467
51467
|
}) => {
|
|
51468
51468
|
const { EmptyStateIndicator: EmptyStateIndicator2 = EmptyStateIndicator } = useComponentContext("VirtualizedMessageList");
|
|
51469
|
+
if (typeof context?.processedMessages !== "undefined" && context.processedMessages.length > 0)
|
|
51470
|
+
return null;
|
|
51469
51471
|
return /* @__PURE__ */ import_react257.default.createElement(import_react257.default.Fragment, null, EmptyStateIndicator2 && /* @__PURE__ */ import_react257.default.createElement(EmptyStateIndicator2, { listType: context?.threadList ? "thread" : "message" }));
|
|
51470
51472
|
};
|
|
51471
51473
|
var messageRenderer = (virtuosoIndex, _data, virtuosoContext) => {
|
|
@@ -52195,7 +52197,8 @@ var ChannelInner = (props) => {
|
|
|
52195
52197
|
{
|
|
52196
52198
|
...initialState,
|
|
52197
52199
|
hasMore: channel.state.messagePagination.hasPrev,
|
|
52198
|
-
loading: !channel.initialized
|
|
52200
|
+
loading: !channel.initialized,
|
|
52201
|
+
messages: channel.state.messages
|
|
52199
52202
|
}
|
|
52200
52203
|
);
|
|
52201
52204
|
const jumpToMessageFromSearch = useSearchFocusedMessage();
|
|
@@ -53127,7 +53130,7 @@ var useChat = ({
|
|
|
53127
53130
|
};
|
|
53128
53131
|
(0, import_react263.useEffect)(() => {
|
|
53129
53132
|
if (!client) return;
|
|
53130
|
-
const version = "12.15.
|
|
53133
|
+
const version = "12.15.7";
|
|
53131
53134
|
const userAgent = client.getUserAgent();
|
|
53132
53135
|
if (!userAgent.includes("stream-chat-react")) {
|
|
53133
53136
|
client.setUserAgent(`stream-chat-react-${version}-${userAgent}`);
|