stream-chat-react-native-core 4.7.2 → 4.7.3-beta.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/README.md +1 -1
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteInput.js +6 -16
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteInput.js.map +1 -1
- package/lib/commonjs/components/ChannelList/ChannelList.js.map +1 -1
- package/lib/commonjs/components/MessageInput/MessageInput.js.map +1 -1
- package/lib/commonjs/components/MessageList/MessageList.js.map +1 -1
- package/lib/commonjs/components/Thread/Thread.js.map +1 -1
- package/lib/commonjs/contexts/channelsContext/ChannelsContext.js.map +1 -1
- package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js.map +1 -1
- package/lib/commonjs/contexts/messagesContext/MessagesContext.js.map +1 -1
- package/lib/commonjs/version.json +1 -1
- package/lib/module/components/AutoCompleteInput/AutoCompleteInput.js +6 -16
- package/lib/module/components/AutoCompleteInput/AutoCompleteInput.js.map +1 -1
- package/lib/module/components/ChannelList/ChannelList.js.map +1 -1
- package/lib/module/components/MessageInput/MessageInput.js.map +1 -1
- package/lib/module/components/MessageList/MessageList.js.map +1 -1
- package/lib/module/components/Thread/Thread.js.map +1 -1
- package/lib/module/contexts/channelsContext/ChannelsContext.js.map +1 -1
- package/lib/module/contexts/messageInputContext/MessageInputContext.js.map +1 -1
- package/lib/module/contexts/messagesContext/MessagesContext.js.map +1 -1
- package/lib/module/version.json +1 -1
- package/lib/typescript/components/ChannelList/ChannelList.d.ts +1 -1
- package/lib/typescript/components/MessageInput/MessageInput.d.ts +5 -5
- package/lib/typescript/components/Thread/Thread.d.ts +4 -4
- package/lib/typescript/contexts/channelsContext/ChannelsContext.d.ts +7 -7
- package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts +4 -4
- package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts +5 -5
- package/package.json +1 -1
- package/src/components/AutoCompleteInput/AutoCompleteInput.tsx +1 -1
- package/src/components/ChannelList/ChannelList.tsx +1 -1
- package/src/components/MessageInput/MessageInput.tsx +5 -5
- package/src/components/MessageList/MessageList.tsx +5 -5
- package/src/components/Thread/Thread.tsx +4 -4
- package/src/contexts/channelsContext/ChannelsContext.tsx +7 -7
- package/src/contexts/messageInputContext/MessageInputContext.tsx +4 -4
- package/src/contexts/messagesContext/MessagesContext.tsx +5 -5
- package/src/version.json +1 -1
|
@@ -41,13 +41,13 @@ export declare type ChannelsContextValue<StreamChatGenerics extends DefaultStrea
|
|
|
41
41
|
/**
|
|
42
42
|
* Custom indicator to use when channel list is empty
|
|
43
43
|
*
|
|
44
|
-
* Default: [EmptyStateIndicator](https://getstream.
|
|
44
|
+
* Default: [EmptyStateIndicator](https://getstream.io/chat/docs/sdk/reactnative/core-components/channel/#emptystateindicator)
|
|
45
45
|
* */
|
|
46
46
|
EmptyStateIndicator: React.ComponentType<EmptyStateProps>;
|
|
47
47
|
/**
|
|
48
48
|
* Custom loading indicator to display at bottom of the list, while loading further pages
|
|
49
49
|
*
|
|
50
|
-
* Default: [ChannelListFooterLoadingIndicator](https://getstream.
|
|
50
|
+
* Default: [ChannelListFooterLoadingIndicator](https://getstream.io/chat/docs/sdk/reactnative/contexts/channels-context/#footerloadingindicator)
|
|
51
51
|
*/
|
|
52
52
|
FooterLoadingIndicator: React.ComponentType;
|
|
53
53
|
/**
|
|
@@ -61,13 +61,13 @@ export declare type ChannelsContextValue<StreamChatGenerics extends DefaultStrea
|
|
|
61
61
|
/**
|
|
62
62
|
* Custom indicator to display error at top of list, if loading/pagination error occurs
|
|
63
63
|
*
|
|
64
|
-
* Default: [ChannelListHeaderErrorIndicator](https://getstream.
|
|
64
|
+
* Default: [ChannelListHeaderErrorIndicator](https://getstream.io/chat/docs/sdk/reactnative/contexts/channels-context/#headererrorindicator)
|
|
65
65
|
*/
|
|
66
66
|
HeaderErrorIndicator: React.ComponentType<HeaderErrorProps>;
|
|
67
67
|
/**
|
|
68
68
|
* Custom indicator to display network-down error at top of list, if there is connectivity issue
|
|
69
69
|
*
|
|
70
|
-
* Default: [ChannelListHeaderNetworkDownIndicator](https://getstream.
|
|
70
|
+
* Default: [ChannelListHeaderNetworkDownIndicator](https://getstream.io/chat/docs/sdk/reactnative/contexts/channels-context/#headernetworkdownindicator)
|
|
71
71
|
*/
|
|
72
72
|
HeaderNetworkDownIndicator: React.ComponentType;
|
|
73
73
|
/**
|
|
@@ -77,7 +77,7 @@ export declare type ChannelsContextValue<StreamChatGenerics extends DefaultStrea
|
|
|
77
77
|
/**
|
|
78
78
|
* Custom indicator to use when there is error in fetching channels
|
|
79
79
|
*
|
|
80
|
-
* Default: [LoadingErrorIndicator](https://getstream.
|
|
80
|
+
* Default: [LoadingErrorIndicator](https://getstream.io/chat/docs/sdk/reactnative/contexts/channels-context/#loadingerrorindicator)
|
|
81
81
|
* */
|
|
82
82
|
LoadingErrorIndicator: React.ComponentType<LoadingErrorProps>;
|
|
83
83
|
/**
|
|
@@ -109,7 +109,7 @@ export declare type ChannelsContextValue<StreamChatGenerics extends DefaultStrea
|
|
|
109
109
|
/**
|
|
110
110
|
* Custom UI component to display individual channel list items
|
|
111
111
|
*
|
|
112
|
-
* Default: [ChannelPreviewMessenger](https://getstream.
|
|
112
|
+
* Default: [ChannelPreviewMessenger](https://getstream.io/chat/docs/sdk/reactnative/ui-components/channel-preview-messenger/)
|
|
113
113
|
*/
|
|
114
114
|
Preview: React.ComponentType<ChannelPreviewMessengerProps<StreamChatGenerics>>;
|
|
115
115
|
/**
|
|
@@ -141,7 +141,7 @@ export declare type ChannelsContextValue<StreamChatGenerics extends DefaultStrea
|
|
|
141
141
|
/**
|
|
142
142
|
* Custom UI component to display loading channel skeletons
|
|
143
143
|
*
|
|
144
|
-
* Default: [Skeleton](https://getstream.
|
|
144
|
+
* Default: [Skeleton](https://getstream.io/chat/docs/sdk/reactnative/contexts/channels-context/#skeleton)
|
|
145
145
|
*/
|
|
146
146
|
Skeleton: React.ComponentType;
|
|
147
147
|
/**
|
|
@@ -168,7 +168,7 @@ export declare type InputMessageInputContextValue<StreamChatGenerics extends Def
|
|
|
168
168
|
/**
|
|
169
169
|
* Custom UI component for attach button.
|
|
170
170
|
*
|
|
171
|
-
* Defaults to and accepts same props as: [AttachButton](https://getstream.
|
|
171
|
+
* Defaults to and accepts same props as: [AttachButton](https://getstream.io/chat/docs/sdk/reactnative/ui-components/attach-button/)
|
|
172
172
|
*/
|
|
173
173
|
AttachButton: React.ComponentType<AttachButtonProps<StreamChatGenerics>>;
|
|
174
174
|
clearEditingState: () => void;
|
|
@@ -176,7 +176,7 @@ export declare type InputMessageInputContextValue<StreamChatGenerics extends Def
|
|
|
176
176
|
/**
|
|
177
177
|
* Custom UI component for commands button.
|
|
178
178
|
*
|
|
179
|
-
* Defaults to and accepts same props as: [CommandsButton](https://getstream.
|
|
179
|
+
* Defaults to and accepts same props as: [CommandsButton](https://getstream.io/chat/docs/sdk/reactnative/ui-components/commands-button/)
|
|
180
180
|
*/
|
|
181
181
|
CommandsButton: React.ComponentType<CommandsButtonProps<StreamChatGenerics>>;
|
|
182
182
|
/**
|
|
@@ -213,7 +213,7 @@ export declare type InputMessageInputContextValue<StreamChatGenerics extends Def
|
|
|
213
213
|
/**
|
|
214
214
|
* Custom UI component for more options button.
|
|
215
215
|
*
|
|
216
|
-
* Defaults to and accepts same props as: [MoreOptionsButton](https://getstream.
|
|
216
|
+
* Defaults to and accepts same props as: [MoreOptionsButton](https://getstream.io/chat/docs/sdk/reactnative/ui-components/more-options-button/)
|
|
217
217
|
*/
|
|
218
218
|
MoreOptionsButton: React.ComponentType<MoreOptionsButtonProps<StreamChatGenerics>>;
|
|
219
219
|
/** Limit on the number of lines in the text input before scrolling */
|
|
@@ -222,7 +222,7 @@ export declare type InputMessageInputContextValue<StreamChatGenerics extends Def
|
|
|
222
222
|
/**
|
|
223
223
|
* Custom UI component for send button.
|
|
224
224
|
*
|
|
225
|
-
* Defaults to and accepts same props as: [SendButton](https://getstream.
|
|
225
|
+
* Defaults to and accepts same props as: [SendButton](https://getstream.io/chat/docs/sdk/reactnative/ui-components/send-button/)
|
|
226
226
|
*/
|
|
227
227
|
SendButton: React.ComponentType<SendButtonProps<StreamChatGenerics>>;
|
|
228
228
|
sendImageAsync: boolean;
|
|
@@ -159,7 +159,7 @@ export declare type MessagesContextValue<StreamChatGenerics extends DefaultStrea
|
|
|
159
159
|
MessageStatus: React.ComponentType<MessageStatusProps<StreamChatGenerics>>;
|
|
160
160
|
/**
|
|
161
161
|
* UI component for MessageSystem
|
|
162
|
-
* Defaults to: [MessageSystem](https://getstream.
|
|
162
|
+
* Defaults to: [MessageSystem](https://getstream.io/chat/docs/sdk/reactnative/ui-components/message-system/)
|
|
163
163
|
*/
|
|
164
164
|
MessageSystem: React.ComponentType<MessageSystemProps<StreamChatGenerics>>;
|
|
165
165
|
/**
|
|
@@ -177,7 +177,7 @@ export declare type MessagesContextValue<StreamChatGenerics extends DefaultStrea
|
|
|
177
177
|
}) => void;
|
|
178
178
|
/**
|
|
179
179
|
* UI component for Reply
|
|
180
|
-
* Defaults to: [Reply](https://getstream.
|
|
180
|
+
* Defaults to: [Reply](https://getstream.io/chat/docs/sdk/reactnative/ui-components/reply/)
|
|
181
181
|
*/
|
|
182
182
|
Reply: React.ComponentType<ReplyProps<StreamChatGenerics>>;
|
|
183
183
|
/**
|
|
@@ -186,7 +186,7 @@ export declare type MessagesContextValue<StreamChatGenerics extends DefaultStrea
|
|
|
186
186
|
retrySendMessage: (message: MessageResponse<StreamChatGenerics>) => Promise<void>;
|
|
187
187
|
/**
|
|
188
188
|
* UI component for ScrollToBottomButton
|
|
189
|
-
* Defaults to: [ScrollToBottomButton](https://getstream.
|
|
189
|
+
* Defaults to: [ScrollToBottomButton](https://getstream.io/chat/docs/sdk/reactnative/ui-components/scroll-to-bottom-button/)
|
|
190
190
|
*/
|
|
191
191
|
ScrollToBottomButton: React.ComponentType<ScrollToBottomButtonProps>;
|
|
192
192
|
setEditingState: (message: MessageType<StreamChatGenerics>) => void;
|
|
@@ -194,12 +194,12 @@ export declare type MessagesContextValue<StreamChatGenerics extends DefaultStrea
|
|
|
194
194
|
supportedReactions: ReactionData[];
|
|
195
195
|
/**
|
|
196
196
|
* UI component for TypingIndicator
|
|
197
|
-
* Defaults to: [TypingIndicator](https://getstream.
|
|
197
|
+
* Defaults to: [TypingIndicator](https://getstream.io/chat/docs/sdk/reactnative/ui-components/typing-indicator/)
|
|
198
198
|
*/
|
|
199
199
|
TypingIndicator: React.ComponentType;
|
|
200
200
|
/**
|
|
201
201
|
* UI component for TypingIndicatorContainer
|
|
202
|
-
* Defaults to: [TypingIndicatorContainer](https://getstream.
|
|
202
|
+
* Defaults to: [TypingIndicatorContainer](https://getstream.io/chat/docs/sdk/reactnative/contexts/messages-context/#typingindicatorcontainer)
|
|
203
203
|
*/
|
|
204
204
|
TypingIndicatorContainer: React.ComponentType;
|
|
205
205
|
updateMessage: (updatedMessage: MessageResponse<StreamChatGenerics>, extraState?: {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stream-chat-react-native-core",
|
|
3
3
|
"description": "The official React Native and Expo components for Stream Chat, a service for building chat applications",
|
|
4
|
-
"version": "4.7.
|
|
4
|
+
"version": "4.7.3-beta.1",
|
|
5
5
|
"author": {
|
|
6
6
|
"company": "Stream.io Inc",
|
|
7
7
|
"name": "Stream.io Inc"
|
|
@@ -362,7 +362,7 @@ const AutoCompleteInputWithContext = <
|
|
|
362
362
|
isTrackingStarted.current
|
|
363
363
|
) {
|
|
364
364
|
stopTracking();
|
|
365
|
-
} else if (
|
|
365
|
+
} else if (!(await handleCommand(text))) {
|
|
366
366
|
const mentionTokenMatch = text
|
|
367
367
|
.slice(0, selectionEnd.current)
|
|
368
368
|
.match(/(?!^|\W)?@[^\s@]*\s?[^\s@]*$/g);
|
|
@@ -71,7 +71,7 @@ export type ChannelListProps<
|
|
|
71
71
|
/**
|
|
72
72
|
* Custom UI component to display the list of channels
|
|
73
73
|
*
|
|
74
|
-
* Default: [ChannelListMessenger](https://getstream.
|
|
74
|
+
* Default: [ChannelListMessenger](https://getstream.io/chat/docs/sdk/reactnative/ui-components/channel-list-messenger/)
|
|
75
75
|
*/
|
|
76
76
|
List?: React.ComponentType<ChannelListMessengerProps<StreamChatGenerics>>;
|
|
77
77
|
/**
|
|
@@ -708,11 +708,11 @@ export type MessageInputProps<
|
|
|
708
708
|
/**
|
|
709
709
|
* UI Component for message input
|
|
710
710
|
* It's a consumer of
|
|
711
|
-
* [Channel Context](https://getstream.
|
|
712
|
-
* [Chat Context](https://getstream.
|
|
713
|
-
* [MessageInput Context](https://getstream.
|
|
714
|
-
* [Suggestions Context](https://getstream.
|
|
715
|
-
* [Translation Context](https://getstream.
|
|
711
|
+
* [Channel Context](https://getstream.io/chat/docs/sdk/reactnative/contexts/channel-context/),
|
|
712
|
+
* [Chat Context](https://getstream.io/chat/docs/sdk/reactnative/contexts/chat-context/),
|
|
713
|
+
* [MessageInput Context](https://getstream.io/chat/docs/sdk/reactnative/contexts/message-input-context/),
|
|
714
|
+
* [Suggestions Context](https://getstream.io/chat/docs/sdk/reactnative/contexts/suggestions-context/), and
|
|
715
|
+
* [Translation Context](https://getstream.io/chat/docs/sdk/reactnative/contexts/translation-context/)
|
|
716
716
|
*/
|
|
717
717
|
export const MessageInput = <
|
|
718
718
|
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
@@ -212,11 +212,11 @@ type MessageListPropsWithContext<
|
|
|
212
212
|
/**
|
|
213
213
|
* The message list component renders a list of messages. It consumes the following contexts:
|
|
214
214
|
*
|
|
215
|
-
* [ChannelContext](https://getstream.
|
|
216
|
-
* [ChatContext](https://getstream.
|
|
217
|
-
* [MessagesContext](https://getstream.
|
|
218
|
-
* [ThreadContext](https://getstream.
|
|
219
|
-
* [TranslationContext](https://getstream.
|
|
215
|
+
* [ChannelContext](https://getstream.io/chat/docs/sdk/reactnative/contexts/channel-context/)
|
|
216
|
+
* [ChatContext](https://getstream.io/chat/docs/sdk/reactnative/contexts/chat-context/)
|
|
217
|
+
* [MessagesContext](https://getstream.io/chat/docs/sdk/reactnative/contexts/messages-context/)
|
|
218
|
+
* [ThreadContext](https://getstream.io/chat/docs/sdk/reactnative/contexts/thread-context/)
|
|
219
|
+
* [TranslationContext](https://getstream.io/chat/docs/sdk/reactnative/contexts/translation-context/)
|
|
220
220
|
*/
|
|
221
221
|
const MessageListWithContext = <
|
|
222
222
|
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
@@ -27,12 +27,12 @@ type ThreadPropsWithContext<
|
|
|
27
27
|
> & {
|
|
28
28
|
/**
|
|
29
29
|
* Additional props for underlying MessageInput component.
|
|
30
|
-
* Available props - https://getstream.
|
|
30
|
+
* Available props - https://getstream.io/chat/docs/sdk/reactnative/ui-components/message-input/#props
|
|
31
31
|
* */
|
|
32
32
|
additionalMessageInputProps?: Partial<MessageInputProps<StreamChatGenerics>>;
|
|
33
33
|
/**
|
|
34
34
|
* Additional props for underlying MessageList component.
|
|
35
|
-
* Available props - https://getstream.
|
|
35
|
+
* Available props - https://getstream.io/chat/docs/sdk/reactnative/ui-components/message-list/#props
|
|
36
36
|
* */
|
|
37
37
|
additionalMessageListProps?: Partial<MessageListProps<StreamChatGenerics>>;
|
|
38
38
|
/** Make input focus on mounting thread */
|
|
@@ -43,7 +43,7 @@ type ThreadPropsWithContext<
|
|
|
43
43
|
disabled?: boolean;
|
|
44
44
|
/**
|
|
45
45
|
* **Customized MessageInput component to used within Thread instead of default MessageInput
|
|
46
|
-
* **Available from [MessageInput](https://getstream.
|
|
46
|
+
* **Available from [MessageInput](https://getstream.io/chat/docs/sdk/reactnative/ui-components/message-input)**
|
|
47
47
|
*/
|
|
48
48
|
MessageInput?: React.ComponentType<MessageInputProps<StreamChatGenerics>>;
|
|
49
49
|
/**
|
|
@@ -119,7 +119,7 @@ export type ThreadProps<
|
|
|
119
119
|
* Thread - The Thread renders a parent message with a list of replies. Use the standard message list of the main channel's messages.
|
|
120
120
|
* The thread is only used for the list of replies to a message.
|
|
121
121
|
*
|
|
122
|
-
* Thread is a consumer of [channel context](https://getstream.
|
|
122
|
+
* Thread is a consumer of [channel context](https://getstream.io/chat/docs/sdk/reactnative/contexts/channel-context/)
|
|
123
123
|
* Underlying MessageList, MessageInput and Message components can be customized using props:
|
|
124
124
|
* - additionalMessageListProps
|
|
125
125
|
* - additionalMessageInputProps
|
|
@@ -52,13 +52,13 @@ export type ChannelsContextValue<
|
|
|
52
52
|
/**
|
|
53
53
|
* Custom indicator to use when channel list is empty
|
|
54
54
|
*
|
|
55
|
-
* Default: [EmptyStateIndicator](https://getstream.
|
|
55
|
+
* Default: [EmptyStateIndicator](https://getstream.io/chat/docs/sdk/reactnative/core-components/channel/#emptystateindicator)
|
|
56
56
|
* */
|
|
57
57
|
EmptyStateIndicator: React.ComponentType<EmptyStateProps>;
|
|
58
58
|
/**
|
|
59
59
|
* Custom loading indicator to display at bottom of the list, while loading further pages
|
|
60
60
|
*
|
|
61
|
-
* Default: [ChannelListFooterLoadingIndicator](https://getstream.
|
|
61
|
+
* Default: [ChannelListFooterLoadingIndicator](https://getstream.io/chat/docs/sdk/reactnative/contexts/channels-context/#footerloadingindicator)
|
|
62
62
|
*/
|
|
63
63
|
FooterLoadingIndicator: React.ComponentType;
|
|
64
64
|
/**
|
|
@@ -72,13 +72,13 @@ export type ChannelsContextValue<
|
|
|
72
72
|
/**
|
|
73
73
|
* Custom indicator to display error at top of list, if loading/pagination error occurs
|
|
74
74
|
*
|
|
75
|
-
* Default: [ChannelListHeaderErrorIndicator](https://getstream.
|
|
75
|
+
* Default: [ChannelListHeaderErrorIndicator](https://getstream.io/chat/docs/sdk/reactnative/contexts/channels-context/#headererrorindicator)
|
|
76
76
|
*/
|
|
77
77
|
HeaderErrorIndicator: React.ComponentType<HeaderErrorProps>;
|
|
78
78
|
/**
|
|
79
79
|
* Custom indicator to display network-down error at top of list, if there is connectivity issue
|
|
80
80
|
*
|
|
81
|
-
* Default: [ChannelListHeaderNetworkDownIndicator](https://getstream.
|
|
81
|
+
* Default: [ChannelListHeaderNetworkDownIndicator](https://getstream.io/chat/docs/sdk/reactnative/contexts/channels-context/#headernetworkdownindicator)
|
|
82
82
|
*/
|
|
83
83
|
HeaderNetworkDownIndicator: React.ComponentType;
|
|
84
84
|
/**
|
|
@@ -88,7 +88,7 @@ export type ChannelsContextValue<
|
|
|
88
88
|
/**
|
|
89
89
|
* Custom indicator to use when there is error in fetching channels
|
|
90
90
|
*
|
|
91
|
-
* Default: [LoadingErrorIndicator](https://getstream.
|
|
91
|
+
* Default: [LoadingErrorIndicator](https://getstream.io/chat/docs/sdk/reactnative/contexts/channels-context/#loadingerrorindicator)
|
|
92
92
|
* */
|
|
93
93
|
LoadingErrorIndicator: React.ComponentType<LoadingErrorProps>;
|
|
94
94
|
/**
|
|
@@ -120,7 +120,7 @@ export type ChannelsContextValue<
|
|
|
120
120
|
/**
|
|
121
121
|
* Custom UI component to display individual channel list items
|
|
122
122
|
*
|
|
123
|
-
* Default: [ChannelPreviewMessenger](https://getstream.
|
|
123
|
+
* Default: [ChannelPreviewMessenger](https://getstream.io/chat/docs/sdk/reactnative/ui-components/channel-preview-messenger/)
|
|
124
124
|
*/
|
|
125
125
|
Preview: React.ComponentType<ChannelPreviewMessengerProps<StreamChatGenerics>>;
|
|
126
126
|
/**
|
|
@@ -158,7 +158,7 @@ export type ChannelsContextValue<
|
|
|
158
158
|
/**
|
|
159
159
|
* Custom UI component to display loading channel skeletons
|
|
160
160
|
*
|
|
161
|
-
* Default: [Skeleton](https://getstream.
|
|
161
|
+
* Default: [Skeleton](https://getstream.io/chat/docs/sdk/reactnative/contexts/channels-context/#skeleton)
|
|
162
162
|
*/
|
|
163
163
|
Skeleton: React.ComponentType;
|
|
164
164
|
/**
|
|
@@ -216,7 +216,7 @@ export type InputMessageInputContextValue<
|
|
|
216
216
|
/**
|
|
217
217
|
* Custom UI component for attach button.
|
|
218
218
|
*
|
|
219
|
-
* Defaults to and accepts same props as: [AttachButton](https://getstream.
|
|
219
|
+
* Defaults to and accepts same props as: [AttachButton](https://getstream.io/chat/docs/sdk/reactnative/ui-components/attach-button/)
|
|
220
220
|
*/
|
|
221
221
|
AttachButton: React.ComponentType<AttachButtonProps<StreamChatGenerics>>;
|
|
222
222
|
clearEditingState: () => void;
|
|
@@ -224,7 +224,7 @@ export type InputMessageInputContextValue<
|
|
|
224
224
|
/**
|
|
225
225
|
* Custom UI component for commands button.
|
|
226
226
|
*
|
|
227
|
-
* Defaults to and accepts same props as: [CommandsButton](https://getstream.
|
|
227
|
+
* Defaults to and accepts same props as: [CommandsButton](https://getstream.io/chat/docs/sdk/reactnative/ui-components/commands-button/)
|
|
228
228
|
*/
|
|
229
229
|
CommandsButton: React.ComponentType<CommandsButtonProps<StreamChatGenerics>>;
|
|
230
230
|
/**
|
|
@@ -263,7 +263,7 @@ export type InputMessageInputContextValue<
|
|
|
263
263
|
/**
|
|
264
264
|
* Custom UI component for more options button.
|
|
265
265
|
*
|
|
266
|
-
* Defaults to and accepts same props as: [MoreOptionsButton](https://getstream.
|
|
266
|
+
* Defaults to and accepts same props as: [MoreOptionsButton](https://getstream.io/chat/docs/sdk/reactnative/ui-components/more-options-button/)
|
|
267
267
|
*/
|
|
268
268
|
MoreOptionsButton: React.ComponentType<MoreOptionsButtonProps<StreamChatGenerics>>;
|
|
269
269
|
/** Limit on the number of lines in the text input before scrolling */
|
|
@@ -272,7 +272,7 @@ export type InputMessageInputContextValue<
|
|
|
272
272
|
/**
|
|
273
273
|
* Custom UI component for send button.
|
|
274
274
|
*
|
|
275
|
-
* Defaults to and accepts same props as: [SendButton](https://getstream.
|
|
275
|
+
* Defaults to and accepts same props as: [SendButton](https://getstream.io/chat/docs/sdk/reactnative/ui-components/send-button/)
|
|
276
276
|
*/
|
|
277
277
|
SendButton: React.ComponentType<SendButtonProps<StreamChatGenerics>>;
|
|
278
278
|
sendImageAsync: boolean;
|
|
@@ -179,7 +179,7 @@ export type MessagesContextValue<
|
|
|
179
179
|
MessageStatus: React.ComponentType<MessageStatusProps<StreamChatGenerics>>;
|
|
180
180
|
/**
|
|
181
181
|
* UI component for MessageSystem
|
|
182
|
-
* Defaults to: [MessageSystem](https://getstream.
|
|
182
|
+
* Defaults to: [MessageSystem](https://getstream.io/chat/docs/sdk/reactnative/ui-components/message-system/)
|
|
183
183
|
*/
|
|
184
184
|
MessageSystem: React.ComponentType<MessageSystemProps<StreamChatGenerics>>;
|
|
185
185
|
/**
|
|
@@ -194,7 +194,7 @@ export type MessagesContextValue<
|
|
|
194
194
|
removeMessage: (message: { id: string; parent_id?: string }) => void;
|
|
195
195
|
/**
|
|
196
196
|
* UI component for Reply
|
|
197
|
-
* Defaults to: [Reply](https://getstream.
|
|
197
|
+
* Defaults to: [Reply](https://getstream.io/chat/docs/sdk/reactnative/ui-components/reply/)
|
|
198
198
|
*/
|
|
199
199
|
Reply: React.ComponentType<ReplyProps<StreamChatGenerics>>;
|
|
200
200
|
/**
|
|
@@ -203,7 +203,7 @@ export type MessagesContextValue<
|
|
|
203
203
|
retrySendMessage: (message: MessageResponse<StreamChatGenerics>) => Promise<void>;
|
|
204
204
|
/**
|
|
205
205
|
* UI component for ScrollToBottomButton
|
|
206
|
-
* Defaults to: [ScrollToBottomButton](https://getstream.
|
|
206
|
+
* Defaults to: [ScrollToBottomButton](https://getstream.io/chat/docs/sdk/reactnative/ui-components/scroll-to-bottom-button/)
|
|
207
207
|
*/
|
|
208
208
|
ScrollToBottomButton: React.ComponentType<ScrollToBottomButtonProps>;
|
|
209
209
|
setEditingState: (message: MessageType<StreamChatGenerics>) => void;
|
|
@@ -211,12 +211,12 @@ export type MessagesContextValue<
|
|
|
211
211
|
supportedReactions: ReactionData[];
|
|
212
212
|
/**
|
|
213
213
|
* UI component for TypingIndicator
|
|
214
|
-
* Defaults to: [TypingIndicator](https://getstream.
|
|
214
|
+
* Defaults to: [TypingIndicator](https://getstream.io/chat/docs/sdk/reactnative/ui-components/typing-indicator/)
|
|
215
215
|
*/
|
|
216
216
|
TypingIndicator: React.ComponentType;
|
|
217
217
|
/**
|
|
218
218
|
* UI component for TypingIndicatorContainer
|
|
219
|
-
* Defaults to: [TypingIndicatorContainer](https://getstream.
|
|
219
|
+
* Defaults to: [TypingIndicatorContainer](https://getstream.io/chat/docs/sdk/reactnative/contexts/messages-context/#typingindicatorcontainer)
|
|
220
220
|
*/
|
|
221
221
|
TypingIndicatorContainer: React.ComponentType;
|
|
222
222
|
updateMessage: (
|
package/src/version.json
CHANGED