stream-chat-react-native-core 4.7.1 → 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.
Files changed (43) hide show
  1. package/README.md +1 -1
  2. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteInput.js +6 -16
  3. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteInput.js.map +1 -1
  4. package/lib/commonjs/components/ChannelList/ChannelList.js.map +1 -1
  5. package/lib/commonjs/components/MessageInput/MessageInput.js.map +1 -1
  6. package/lib/commonjs/components/MessageList/MessageList.js.map +1 -1
  7. package/lib/commonjs/components/Thread/Thread.js.map +1 -1
  8. package/lib/commonjs/contexts/channelsContext/ChannelsContext.js.map +1 -1
  9. package/lib/commonjs/contexts/messageContext/MessageContext.js +2 -9
  10. package/lib/commonjs/contexts/messageContext/MessageContext.js.map +1 -1
  11. package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js.map +1 -1
  12. package/lib/commonjs/contexts/messagesContext/MessagesContext.js.map +1 -1
  13. package/lib/commonjs/version.json +1 -1
  14. package/lib/module/components/AutoCompleteInput/AutoCompleteInput.js +6 -16
  15. package/lib/module/components/AutoCompleteInput/AutoCompleteInput.js.map +1 -1
  16. package/lib/module/components/ChannelList/ChannelList.js.map +1 -1
  17. package/lib/module/components/MessageInput/MessageInput.js.map +1 -1
  18. package/lib/module/components/MessageList/MessageList.js.map +1 -1
  19. package/lib/module/components/Thread/Thread.js.map +1 -1
  20. package/lib/module/contexts/channelsContext/ChannelsContext.js.map +1 -1
  21. package/lib/module/contexts/messageContext/MessageContext.js +2 -9
  22. package/lib/module/contexts/messageContext/MessageContext.js.map +1 -1
  23. package/lib/module/contexts/messageInputContext/MessageInputContext.js.map +1 -1
  24. package/lib/module/contexts/messagesContext/MessagesContext.js.map +1 -1
  25. package/lib/module/version.json +1 -1
  26. package/lib/typescript/components/ChannelList/ChannelList.d.ts +1 -1
  27. package/lib/typescript/components/MessageInput/MessageInput.d.ts +5 -5
  28. package/lib/typescript/components/Thread/Thread.d.ts +4 -4
  29. package/lib/typescript/contexts/channelsContext/ChannelsContext.d.ts +7 -7
  30. package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts +4 -4
  31. package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts +5 -5
  32. package/package.json +1 -1
  33. package/src/components/AutoCompleteInput/AutoCompleteInput.tsx +1 -1
  34. package/src/components/ChannelList/ChannelList.tsx +1 -1
  35. package/src/components/MessageInput/MessageInput.tsx +5 -5
  36. package/src/components/MessageList/MessageList.tsx +5 -5
  37. package/src/components/Thread/Thread.tsx +4 -4
  38. package/src/contexts/__tests__/index.test.tsx +0 -5
  39. package/src/contexts/channelsContext/ChannelsContext.tsx +7 -7
  40. package/src/contexts/messageContext/MessageContext.tsx +0 -7
  41. package/src/contexts/messageInputContext/MessageInputContext.tsx +4 -4
  42. package/src/contexts/messagesContext/MessagesContext.tsx +5 -5
  43. 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.github.io/stream-chat-react-native/v3/#emptystateindicator)
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.github.io/stream-chat-react-native/v3/#ChannelListFooterLoadingIndicator)
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.github.io/stream-chat-react-native/v3/#ChannelListHeaderErrorIndicator)
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.github.io/stream-chat-react-native/v3/#ChannelListHeaderNetworkDownIndicator)
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.github.io/stream-chat-react-native/v3/#loadingerrorindicator)
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.github.io/stream-chat-react-native/v3/#channelpreviewmessenger)
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.github.io/stream-chat-react-native/v3/#skeleton)
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.github.io/stream-chat-react-native/v3/#attachbutton)
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.github.io/stream-chat-react-native/v3/#commandsbutton)
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.github.io/stream-chat-react-native/v3/#moreoptionsbutton)
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.github.io/stream-chat-react-native/v3/#sendbutton)
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.github.io/stream-chat-react-native/v3/#messagesystem)
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.github.io/stream-chat-react-native/v3/#reply)
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.github.io/stream-chat-react-native/v3/#ScrollToBottomButton)
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.github.io/stream-chat-react-native/v3/#typingindicator)
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.github.io/stream-chat-react-native/v3/#typingindicatorcontainer)
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.1",
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 (giphyEnabled && !(await handleCommand(text))) {
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.github.io/stream-chat-react-native/v3/#channellistmessenger)
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.github.io/stream-chat-react-native/v3/#channelcontext),
712
- * [Chat Context](https://getstream.github.io/stream-chat-react-native/v3/#chatcontext),
713
- * [MessageInput Context](https://getstream.github.io/stream-chat-react-native/v3/#messageinputcontext),
714
- * [Suggestions Context](https://getstream.github.io/stream-chat-react-native/v3/#suggestionscontext), and
715
- * [Translation Context](https://getstream.github.io/stream-chat-react-native/v3/#translationcontext)
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.github.io/stream-chat-react-native/v3/#channelcontext)
216
- * [ChatContext](https://getstream.github.io/stream-chat-react-native/v3/#chatcontext)
217
- * [MessagesContext](https://getstream.github.io/stream-chat-react-native/v3/#messagescontext)
218
- * [ThreadContext](https://getstream.github.io/stream-chat-react-native/v3/#threadcontext)
219
- * [TranslationContext](https://getstream.github.io/stream-chat-react-native/v3/#translationcontext)
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.github.io/stream-chat-react-native/v3/#messageinput
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.github.io/stream-chat-react-native/v3/#messagelist
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.github.io/stream-chat-react-native/v3/#messageinput)**
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.github.io/stream-chat-react-native/v3/#channelcontext)
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
@@ -9,7 +9,6 @@ import {
9
9
  useChannelsContext,
10
10
  useChatContext,
11
11
  useImageGalleryContext,
12
- useMessageContext,
13
12
  useMessageOverlayContext,
14
13
  useMessagesContext,
15
14
  useOverlayContext,
@@ -75,10 +74,6 @@ describe('contexts hooks in a component throws an error with message when not wr
75
74
  useImageGalleryContext,
76
75
  `The useImageGalleryContext hook was called outside the ImageGalleryContext Provider. Make sure you have configured OverlayProvider component correctly - https://getstream.io/chat/docs/sdk/reactnative/basics/hello_stream_chat/#overlay-provider`,
77
76
  ],
78
- [
79
- useMessageContext,
80
- `The useMessageContext hook was called outside of the MessageContext provider. Make sure you have configured MessageList component correctly - https://getstream.io/chat/docs/sdk/reactnative/basics/hello_stream_chat/#message-list`,
81
- ],
82
77
  [
83
78
  useMessageOverlayContext,
84
79
  `The useMessageOverlayContext hook was called outside the MessageOverlayContext Provider. Make sure you have configured OverlayProvider component correctly - https://getstream.io/chat/docs/sdk/reactnative/basics/hello_stream_chat/#overlay-provider`,
@@ -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.github.io/stream-chat-react-native/v3/#emptystateindicator)
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.github.io/stream-chat-react-native/v3/#ChannelListFooterLoadingIndicator)
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.github.io/stream-chat-react-native/v3/#ChannelListHeaderErrorIndicator)
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.github.io/stream-chat-react-native/v3/#ChannelListHeaderNetworkDownIndicator)
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.github.io/stream-chat-react-native/v3/#loadingerrorindicator)
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.github.io/stream-chat-react-native/v3/#channelpreviewmessenger)
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.github.io/stream-chat-react-native/v3/#skeleton)
161
+ * Default: [Skeleton](https://getstream.io/chat/docs/sdk/reactnative/contexts/channels-context/#skeleton)
162
162
  */
163
163
  Skeleton: React.ComponentType;
164
164
  /**
@@ -14,7 +14,6 @@ import type { DefaultStreamChatGenerics, UnknownType } from '../../types/types';
14
14
  import { DEFAULT_BASE_CONTEXT_VALUE } from '../utils/defaultBaseContextValue';
15
15
 
16
16
  import { getDisplayName } from '../utils/getDisplayName';
17
- import { isTestEnvironment } from '../utils/isTestEnvironment';
18
17
 
19
18
  export type Alignment = 'right' | 'left';
20
19
 
@@ -129,12 +128,6 @@ export const useMessageContext = <
129
128
  MessageContext,
130
129
  ) as unknown as MessageContextValue<StreamChatGenerics>;
131
130
 
132
- if (contextValue === DEFAULT_BASE_CONTEXT_VALUE && !isTestEnvironment()) {
133
- throw new Error(
134
- `The useMessageContext hook was called outside of the MessageContext provider. Make sure you have configured MessageList component correctly - https://getstream.io/chat/docs/sdk/reactnative/basics/hello_stream_chat/#message-list`,
135
- );
136
- }
137
-
138
131
  return contextValue;
139
132
  };
140
133
 
@@ -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.github.io/stream-chat-react-native/v3/#attachbutton)
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.github.io/stream-chat-react-native/v3/#commandsbutton)
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.github.io/stream-chat-react-native/v3/#moreoptionsbutton)
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.github.io/stream-chat-react-native/v3/#sendbutton)
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.github.io/stream-chat-react-native/v3/#messagesystem)
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.github.io/stream-chat-react-native/v3/#reply)
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.github.io/stream-chat-react-native/v3/#ScrollToBottomButton)
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.github.io/stream-chat-react-native/v3/#typingindicator)
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.github.io/stream-chat-react-native/v3/#typingindicatorcontainer)
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
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "4.7.1"
2
+ "version": "4.7.3-beta.1"
3
3
  }