Skip to content

Commit 472abc3

Browse files
committed
Merge branch 'master' into feat/channel-delivery-state
# Conflicts: # package.json # yarn.lock
2 parents ff9135c + 757f667 commit 472abc3

File tree

7 files changed

+51
-3
lines changed

7 files changed

+51
-3
lines changed

CHANGELOG.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,33 @@
1+
## [13.8.1](https://github.com/GetStream/stream-chat-react/compare/v13.8.0...v13.8.1) (2025-10-08)
2+
3+
### Bug Fixes
4+
5+
* add "team" property to the `DefaultChannelData` interface ([#2850](https://github.com/GetStream/stream-chat-react/issues/2850)) ([edac5f6](https://github.com/GetStream/stream-chat-react/commit/edac5f6681bfe7e54dc055ab48e2e96074525504))
6+
7+
### Chores
8+
9+
* **deps:** upgrade steam-chat to v9.21.0 ([fad4407](https://github.com/GetStream/stream-chat-react/commit/fad4407d0103aeb173e9c72ca9a7c120e5c35826))
10+
11+
## [13.8.0](https://github.com/GetStream/stream-chat-react/compare/v13.7.0...v13.8.0) (2025-10-08)
12+
13+
### Bug Fixes
14+
15+
* add CustomMessageComposerData redeclaration ([#2833](https://github.com/GetStream/stream-chat-react/issues/2833)) ([641cdd3](https://github.com/GetStream/stream-chat-react/commit/641cdd346e5e4ed1ff8410f65a28c25f39aa5b58))
16+
* add notification translator for notification validation:attachment:upload:in-progress ([#2842](https://github.com/GetStream/stream-chat-react/issues/2842)) ([7c2a965](https://github.com/GetStream/stream-chat-react/commit/7c2a965ce6664bb8f17682b277c704bcdee24ff4))
17+
* **ChannelPreview:** call getLatestMessagePreview on every relevant WS event ([#2838](https://github.com/GetStream/stream-chat-react/issues/2838)) ([386ef55](https://github.com/GetStream/stream-chat-react/commit/386ef55b291520b6fcc9a6063d93d1a119941627))
18+
* check cast-poll-vote permission to show "Suggest an option" poll action ([#2835](https://github.com/GetStream/stream-chat-react/issues/2835)) ([a14367e](https://github.com/GetStream/stream-chat-react/commit/a14367e0134a92326aaaa188484a09ff4e6852d0))
19+
* **giphy:** allow using actions in quoted messages ([#2849](https://github.com/GetStream/stream-chat-react/issues/2849)) ([8052bd7](https://github.com/GetStream/stream-chat-react/commit/8052bd7fc639158eea5a2b7f9f2c4f479f5db238))
20+
* **TextareaComposer:** check sendable data before allowing message submission ([#2852](https://github.com/GetStream/stream-chat-react/issues/2852)) ([4300ed6](https://github.com/GetStream/stream-chat-react/commit/4300ed686482ea73c532da6b0e50931c7aa76a6d))
21+
* **useMessageComposer:** keep editing message composer with up-to-date edited message reference ([#2851](https://github.com/GetStream/stream-chat-react/issues/2851)) ([d4eb2d7](https://github.com/GetStream/stream-chat-react/commit/d4eb2d712e19e42e0828b2bad9ab15f756309580))
22+
23+
### Features
24+
25+
* allow to override EditMessageModal and thus its additionalMessageInputProps ([#2853](https://github.com/GetStream/stream-chat-react/issues/2853)) ([50e3c62](https://github.com/GetStream/stream-chat-react/commit/50e3c6253653079c393a4282c5ff20108e7eca79))
26+
27+
### Chores
28+
29+
* **deps:** upgrade stream-chat to v9.20.3 ([51ea875](https://github.com/GetStream/stream-chat-react/commit/51ea8758941208ccd6263b582e523bb97d697ec7))
30+
131
## [13.7.0](https://github.com/GetStream/stream-chat-react/compare/v13.6.6...v13.7.0) (2025-09-18)
232

333
### Features

src/components/Channel/Channel.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ type ChannelPropsForwardedToComponentContext = Pick<
106106
| 'CustomMessageActionsList'
107107
| 'DateSeparator'
108108
| 'EditMessageInput'
109+
| 'EditMessageModal'
109110
| 'EmojiPicker'
110111
| 'emojiSearchIndex'
111112
| 'EmptyStateIndicator'
@@ -1207,6 +1208,7 @@ const ChannelInner = (
12071208
CustomMessageActionsList: props.CustomMessageActionsList,
12081209
DateSeparator: props.DateSeparator,
12091210
EditMessageInput: props.EditMessageInput,
1211+
EditMessageModal: props.EditMessageModal,
12101212
EmojiPicker: props.EmojiPicker,
12111213
emojiSearchIndex: props.emojiSearchIndex,
12121214
EmptyStateIndicator: props.EmptyStateIndicator,
@@ -1276,6 +1278,7 @@ const ChannelInner = (
12761278
props.CustomMessageActionsList,
12771279
props.DateSeparator,
12781280
props.EditMessageInput,
1281+
props.EditMessageModal,
12791282
props.EmojiPicker,
12801283
props.emojiSearchIndex,
12811284
props.EmptyStateIndicator,

src/components/Message/MessageSimple.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import {
2626

2727
import { Avatar as DefaultAvatar } from '../Avatar';
2828
import { Attachment as DefaultAttachment } from '../Attachment';
29-
import { EditMessageModal } from '../MessageInput';
29+
import { EditMessageModal as DefaultEditMessageModal } from '../MessageInput';
3030
import { Poll } from '../Poll';
3131
import { ReactionsList as DefaultReactionList } from '../Reactions';
3232
import { MessageBounceModal } from '../MessageBounce/MessageBounceModal';
@@ -69,6 +69,7 @@ const MessageSimpleWithContext = (props: MessageSimpleWithContextProps) => {
6969
const {
7070
Attachment = DefaultAttachment,
7171
Avatar = DefaultAvatar,
72+
EditMessageModal = DefaultEditMessageModal,
7273
MessageOptions = DefaultMessageOptions,
7374
// TODO: remove this "passthrough" in the next
7475
// major release and use the new default instead

src/components/MessageInput/EditMessageForm.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,14 @@ export const EditMessageForm = () => {
6868
);
6969
};
7070

71+
export type EditMessageModalProps = Pick<
72+
MessageUIComponentProps,
73+
'additionalMessageInputProps'
74+
>;
75+
7176
export const EditMessageModal = ({
7277
additionalMessageInputProps,
73-
}: Pick<MessageUIComponentProps, 'additionalMessageInputProps'>) => {
78+
}: EditMessageModalProps) => {
7479
const { EditMessageInput = EditMessageForm, Modal = DefaultModal } =
7580
useComponentContext();
7681
const { clearEditingState } = useMessageContext();

src/components/TextareaComposer/TextareaComposer.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,11 @@ export const TextareaComposer = ({
194194
return nextIndex;
195195
});
196196
}
197-
} else if (shouldSubmit(event) && textareaRef.current) {
197+
} else if (
198+
shouldSubmit(event) &&
199+
textareaRef.current &&
200+
messageComposer.hasSendableData
201+
) {
198202
if (event.key === 'Enter') {
199203
// prevent adding newline when submitting a message with
200204
event.preventDefault();
@@ -205,6 +209,7 @@ export const TextareaComposer = ({
205209
[
206210
focusedItemIndex,
207211
handleSubmit,
212+
messageComposer,
208213
onKeyDown,
209214
shouldSubmit,
210215
suggestions,

src/context/ComponentContext.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import type {
1010
CooldownTimerProps,
1111
CustomMessageActionsListProps,
1212
DateSeparatorProps,
13+
EditMessageModalProps,
1314
EmojiSearchIndex,
1415
EmptyStateIndicatorProps,
1516
EventComponentProps,
@@ -96,6 +97,8 @@ export type ComponentContextValue = {
9697
DateSeparator?: React.ComponentType<DateSeparatorProps>;
9798
/** Custom UI component to override default edit message input, defaults to and accepts same props as: [EditMessageForm](https://github.com/GetStream/stream-chat-react/blob/master/src/components/MessageInput/EditMessageForm.tsx) */
9899
EditMessageInput?: React.ComponentType<MessageInputProps>;
100+
/** Custom UI component to override default EditMessageModal, defaults to and accepts same props as: [EditMessageModal](https://github.com/GetStream/stream-chat-react/blob/master/src/components/MessageInput/EditMessageForm.tsx) */
101+
EditMessageModal?: React.ComponentType<EditMessageModalProps>;
99102
/** Custom UI component for rendering button with emoji picker in MessageInput */
100103
EmojiPicker?: React.ComponentType;
101104
/** Mechanism to be used with autocomplete and text replace features of the `MessageInput` component, see [emoji-mart `SearchIndex`](https://github.com/missive/emoji-mart#%EF%B8%8F%EF%B8%8F-headless-search) */

src/types/defaultDataInterfaces.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ export interface DefaultChannelData {
33
image?: string;
44
name?: string;
55
subtitle?: string;
6+
team?: string;
67
}
78

89
export interface DefaultAttachmentData {}

0 commit comments

Comments
 (0)