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.
- package/dist/components/Chat/hooks/useChat.js +1 -1
- package/dist/components/Message/MessageIsThreadReplyInChannelButtonIndicator.d.ts +2 -0
- package/dist/components/Message/{MessageThreadReplyInChannelButtonIndicator.js → MessageIsThreadReplyInChannelButtonIndicator.js} +2 -2
- package/dist/components/Message/MessageSimple.js +1 -1
- package/dist/context/ComponentContext.d.ts +2 -1
- package/dist/experimental/index.browser.cjs.map +2 -2
- package/dist/experimental/index.node.cjs.map +2 -2
- package/dist/i18n/TranslationBuilder/TranslationBuilder.d.ts +9 -5
- package/dist/i18n/TranslationBuilder/TranslationBuilder.js +37 -13
- package/dist/i18n/TranslationBuilder/notifications/index.d.ts +1 -0
- package/dist/i18n/TranslationBuilder/notifications/index.js +1 -0
- package/dist/i18n/index.d.ts +1 -1
- package/dist/i18n/index.js +1 -1
- package/dist/index.browser.cjs +46 -18
- package/dist/index.browser.cjs.map +4 -4
- package/dist/index.node.cjs +47 -18
- package/dist/index.node.cjs.map +4 -4
- package/package.json +1 -1
- package/dist/components/Message/MessageThreadReplyInChannelButtonIndicator.d.ts +0 -2
|
@@ -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.
|
|
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'
|
|
@@ -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
|
|
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: '
|
|
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 {
|
|
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: [
|
|
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>;
|