stream-chat-react 13.14.2 → 13.14.4

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.
@@ -18350,7 +18350,7 @@ var isOnlyEmojis = (text8) => {
18350
18350
  return !noSpace;
18351
18351
  };
18352
18352
  var isMessageBounced = (message) => message.type === "error" && (message.moderation_details?.action === "MESSAGE_RESPONSE_ACTION_BOUNCE" || message.moderation?.action === "bounce");
18353
- var isMessageBlocked = (message) => message.type === "error" && (message.moderation_details?.action === "MESSAGE_RESPONSE_ACTION_REMOVE" || message.moderation?.action === "remove");
18353
+ var isMessageBlocked = (message) => message.shadowed || message.type === "error" && (message.moderation_details?.action === "MESSAGE_RESPONSE_ACTION_REMOVE" || message.moderation?.action === "remove");
18354
18354
  var isMessageEdited = (message) => !!message.message_text_updated_at;
18355
18355
 
18356
18356
  // src/components/Message/hooks/useDeleteHandler.ts
@@ -25992,9 +25992,10 @@ var UnMemoizedCustomNotification = (props) => {
25992
25992
  {
25993
25993
  "aria-live": "polite",
25994
25994
  className: (0, import_clsx44.default)(
25995
- `str-chat__custom-notification notification-${type}`,
25995
+ `str-chat__custom-notification`,
25996
25996
  `str-chat__notification`,
25997
25997
  `str-chat-react__notification`,
25998
+ { [`notification-${type}`]: type },
25998
25999
  className
25999
26000
  ),
26000
26001
  "data-testid": "custom-notification"
@@ -31018,7 +31019,7 @@ var import_react184 = require("react");
31018
31019
 
31019
31020
  // src/utils/findReverse.ts
31020
31021
  var findReverse = (items, matches) => {
31021
- for (let i = items.length - 1; i > 0; i -= 1) {
31022
+ for (let i = items.length - 1; i >= 0; i -= 1) {
31022
31023
  if (matches(items[i])) {
31023
31024
  return items[i];
31024
31025
  }
@@ -39291,7 +39292,7 @@ var useChat = ({
39291
39292
  };
39292
39293
  (0, import_react289.useEffect)(() => {
39293
39294
  if (!client) return;
39294
- const version = "13.14.2";
39295
+ const version = "13.14.4";
39295
39296
  const userAgent = client.getUserAgent();
39296
39297
  if (!userAgent.includes("stream-chat-react")) {
39297
39298
  client.setUserAgent(`stream-chat-react-${version}-${userAgent}`);