stream-chat-react 13.1.0 → 13.1.1

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.
@@ -24,7 +24,7 @@ export const useChat = ({ client, defaultLanguage = 'en', i18nInstance, initialN
24
24
  useEffect(() => {
25
25
  if (!client)
26
26
  return;
27
- const version = "13.1.0";
27
+ const version = "13.1.1";
28
28
  const userAgent = client.getUserAgent();
29
29
  if (!userAgent.includes('stream-chat-react')) {
30
30
  // result looks like: 'stream-chat-react-2.3.2-stream-chat-javascript-client-browser-2.2.2'
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const MessageIsThreadReplyInChannelButtonIndicator: () => React.JSX.Element | null;
@@ -1,7 +1,7 @@
1
1
  import React, { useEffect, useRef } from 'react';
2
2
  import { formatMessage } from 'stream-chat';
3
3
  import { useChannelActionContext, useChannelStateContext, useChatContext, useMessageContext, useTranslationContext, } from '../../context';
4
- export const MessageThreadReplyInChannelButtonIndicator = () => {
4
+ export const MessageIsThreadReplyInChannelButtonIndicator = () => {
5
5
  const { client } = useChatContext();
6
6
  const { t } = useTranslationContext();
7
7
  const { channel } = useChannelStateContext();
@@ -26,7 +26,7 @@ export const MessageThreadReplyInChannelButtonIndicator = () => {
26
26
  },
27
27
  origin: {
28
28
  context: { threadReply: message },
29
- emitter: 'MessageThreadReplyInChannelButtonIndicator',
29
+ emitter: 'MessageIsThreadReplyInChannelButtonIndicator',
30
30
  },
31
31
  });
32
32
  });
@@ -11,7 +11,7 @@ import { MessageText } from './MessageText';
11
11
  import { MessageTimestamp as DefaultMessageTimestamp } from './MessageTimestamp';
12
12
  import { StreamedMessageText as DefaultStreamedMessageText } from './StreamedMessageText';
13
13
  import { isDateSeparatorMessage } from '../MessageList';
14
- import { MessageThreadReplyInChannelButtonIndicator as DefaultMessageIsThreadReplyInChannelButtonIndicator } from './MessageThreadReplyInChannelButtonIndicator';
14
+ import { MessageIsThreadReplyInChannelButtonIndicator as DefaultMessageIsThreadReplyInChannelButtonIndicator } from './MessageIsThreadReplyInChannelButtonIndicator';
15
15
  import { ReminderNotification as DefaultReminderNotification } from './ReminderNotification';
16
16
  import { useMessageReminder } from './hooks';
17
17
  import { areMessageUIPropsEqual, isMessageBlocked, isMessageBounced, isMessageEdited, messageHasAttachments, messageHasReactions, } from './utils';
@@ -65,7 +65,7 @@ export type ComponentContextValue = {
65
65
  MessageBlocked?: React.ComponentType;
66
66
  /** Custom UI component for a deleted message, defaults to and accepts same props as: [MessageDeleted](https://github.com/GetStream/stream-chat-react/blob/master/src/components/Message/MessageDeleted.tsx) */
67
67
  MessageDeleted?: React.ComponentType<MessageDeletedProps>;
68
- /** Custom UI component for an indicator that a message is a thread reply sent to channel list: [MessageThreadReplyInChannelButtonIndicator](https://github.com/GetStream/stream-chat-react/blob/master/src/components/Message/MessageIsThreadReplyInChannelButtonIndicator.tsx) */
68
+ /** Custom UI component for an indicator that a message is a thread reply sent to channel list: [MessageIsThreadReplyInChannelButtonIndicator](https://github.com/GetStream/stream-chat-react/blob/master/src/components/Message/MessageIsThreadReplyInChannelButtonIndicator.tsx) */
69
69
  MessageIsThreadReplyInChannelButtonIndicator?: React.ComponentType;
70
70
  MessageListMainPanel?: React.ComponentType<PropsWithChildrenOnly>;
71
71
  /** Custom UI component that displays message and connection status notifications in the `MessageList`, defaults to and accepts same props as [DefaultMessageListNotifications](https://github.com/GetStream/stream-chat-react/blob/master/src/components/MessageList/MessageListNotifications.tsx) */
@@ -115,6 +115,7 @@ export type ComponentContextValue = {
115
115
  /** Custom UI component to display the reactions modal, defaults to and accepts same props as: [ReactionsListModal](https://github.com/GetStream/stream-chat-react/blob/master/src/components/Reactions/ReactionsListModal.tsx) */
116
116
  ReactionsListModal?: React.ComponentType<ReactionsListModalProps>;
117
117
  RecordingPermissionDeniedNotification?: React.ComponentType<RecordingPermissionDeniedNotificationProps>;
118
+ /** Custom UI component to display the message reminder information in the Message UI, defaults to and accepts same props as: [ReminderNotification](https://github.com/GetStream/stream-chat-react/blob/master/src/components/Message/ReminderNotification.tsx) */
118
119
  ReminderNotification?: React.ComponentType<ReminderNotificationProps>;
119
120
  /** Custom component to display the search UI, defaults to and accepts same props as: [Search](https://github.com/GetStream/stream-chat-react/blob/master/src/components/Search/Search.tsx) */
120
121
  Search?: React.ComponentType<SearchProps>;