stream-chat-react-native-core 4.3.0-beta.5 → 4.3.1-beta.2
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/lib/commonjs/components/Attachment/Giphy.js +26 -22
- package/lib/commonjs/components/Attachment/Giphy.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
- package/lib/commonjs/components/Channel/Channel.js.map +1 -1
- package/lib/commonjs/components/Chat/Chat.js +8 -4
- package/lib/commonjs/components/Chat/Chat.js.map +1 -1
- package/lib/commonjs/components/Chat/hooks/useAppSettings.js +80 -0
- package/lib/commonjs/components/Chat/hooks/useAppSettings.js.map +1 -0
- package/lib/commonjs/components/Chat/hooks/useCreateChatContext.js +3 -1
- package/lib/commonjs/components/Chat/hooks/useCreateChatContext.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/ImageGallery.js +21 -20
- package/lib/commonjs/components/ImageGallery/ImageGallery.js.map +1 -1
- package/lib/commonjs/components/Message/Message.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageContent.js +4 -4
- package/lib/commonjs/components/Message/MessageSimple/MessageContent.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageSimple.js +4 -4
- package/lib/commonjs/components/Message/MessageSimple/MessageSimple.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/utils/renderText.md +1 -1
- package/lib/commonjs/contexts/attachmentPickerContext/AttachmentPickerContext.js.map +1 -1
- package/lib/commonjs/contexts/channelContext/ChannelContext.js.map +1 -1
- package/lib/commonjs/contexts/channelContext/ChannelContext.md +2 -2
- package/lib/commonjs/contexts/channelsContext/ChannelsContext.js.map +1 -1
- package/lib/commonjs/contexts/channelsContext/ChannelsContext.md +2 -2
- package/lib/commonjs/contexts/chatContext/ChatContext.js +2 -2
- package/lib/commonjs/contexts/chatContext/ChatContext.js.map +1 -1
- package/lib/commonjs/contexts/chatContext/ChatContext.md +2 -2
- package/lib/commonjs/contexts/imageGalleryContext/ImageGalleryContext.md +2 -2
- package/lib/commonjs/contexts/keyboardContext/KeyboardContext.md +1 -1
- package/lib/commonjs/contexts/messageContext/MessageContext.js.map +1 -1
- package/lib/commonjs/contexts/messageContext/MessageContext.md +1 -1
- package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js.map +1 -1
- package/lib/commonjs/contexts/messageInputContext/MessageInputContext.md +1 -1
- package/lib/commonjs/contexts/messageOverlayContext/MessageOverlayContext.js.map +1 -1
- package/lib/commonjs/contexts/messagesContext/MessagesContext.js.map +1 -1
- package/lib/commonjs/contexts/messagesContext/MessagesContext.md +1 -1
- package/lib/commonjs/contexts/overlayContext/OverlayContext.js.map +1 -1
- package/lib/commonjs/contexts/overlayContext/OverlayContext.md +2 -2
- package/lib/commonjs/contexts/overlayContext/OverlayProvider.js +1 -2
- package/lib/commonjs/contexts/overlayContext/OverlayProvider.js.map +1 -1
- package/lib/commonjs/contexts/paginatedMessageListContext/PaginatedMessageListContext.md +2 -2
- package/lib/commonjs/contexts/suggestionsContext/SuggestionsContext.md +1 -1
- package/lib/commonjs/contexts/typingContext/TypingContext.md +2 -2
- package/lib/commonjs/version.json +1 -1
- package/lib/module/components/Attachment/Giphy.js +26 -22
- package/lib/module/components/Attachment/Giphy.js.map +1 -1
- package/lib/module/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
- package/lib/module/components/Channel/Channel.js.map +1 -1
- package/lib/module/components/Chat/Chat.js +8 -4
- package/lib/module/components/Chat/Chat.js.map +1 -1
- package/lib/module/components/Chat/hooks/useAppSettings.js +80 -0
- package/lib/module/components/Chat/hooks/useAppSettings.js.map +1 -0
- package/lib/module/components/Chat/hooks/useCreateChatContext.js +3 -1
- package/lib/module/components/Chat/hooks/useCreateChatContext.js.map +1 -1
- package/lib/module/components/ImageGallery/ImageGallery.js +21 -20
- package/lib/module/components/ImageGallery/ImageGallery.js.map +1 -1
- package/lib/module/components/Message/Message.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageContent.js +4 -4
- package/lib/module/components/Message/MessageSimple/MessageContent.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageSimple.js +4 -4
- package/lib/module/components/Message/MessageSimple/MessageSimple.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/utils/renderText.md +1 -1
- package/lib/module/contexts/attachmentPickerContext/AttachmentPickerContext.js.map +1 -1
- package/lib/module/contexts/channelContext/ChannelContext.js.map +1 -1
- package/lib/module/contexts/channelContext/ChannelContext.md +2 -2
- package/lib/module/contexts/channelsContext/ChannelsContext.js.map +1 -1
- package/lib/module/contexts/channelsContext/ChannelsContext.md +2 -2
- package/lib/module/contexts/chatContext/ChatContext.js +2 -2
- package/lib/module/contexts/chatContext/ChatContext.js.map +1 -1
- package/lib/module/contexts/chatContext/ChatContext.md +2 -2
- package/lib/module/contexts/imageGalleryContext/ImageGalleryContext.md +2 -2
- package/lib/module/contexts/keyboardContext/KeyboardContext.md +1 -1
- package/lib/module/contexts/messageContext/MessageContext.js.map +1 -1
- package/lib/module/contexts/messageContext/MessageContext.md +1 -1
- package/lib/module/contexts/messageInputContext/MessageInputContext.js.map +1 -1
- package/lib/module/contexts/messageInputContext/MessageInputContext.md +1 -1
- package/lib/module/contexts/messageOverlayContext/MessageOverlayContext.js.map +1 -1
- package/lib/module/contexts/messagesContext/MessagesContext.js.map +1 -1
- package/lib/module/contexts/messagesContext/MessagesContext.md +1 -1
- package/lib/module/contexts/overlayContext/OverlayContext.js.map +1 -1
- package/lib/module/contexts/overlayContext/OverlayContext.md +2 -2
- package/lib/module/contexts/overlayContext/OverlayProvider.js +1 -2
- package/lib/module/contexts/overlayContext/OverlayProvider.js.map +1 -1
- package/lib/module/contexts/paginatedMessageListContext/PaginatedMessageListContext.md +2 -2
- package/lib/module/contexts/suggestionsContext/SuggestionsContext.md +1 -1
- package/lib/module/contexts/typingContext/TypingContext.md +2 -2
- package/lib/module/version.json +1 -1
- package/lib/typescript/components/AttachmentPicker/AttachmentPicker.d.ts +4 -4
- package/lib/typescript/components/Channel/Channel.d.ts +2 -2
- package/lib/typescript/components/Chat/Chat.d.ts +1 -1
- package/lib/typescript/components/Chat/hooks/__tests__/useAppSettings.test.d.ts +1 -0
- package/lib/typescript/components/Chat/hooks/useAppSettings.d.ts +3 -0
- package/lib/typescript/components/Chat/hooks/useCreateChatContext.d.ts +1 -1
- package/lib/typescript/components/ImageGallery/ImageGallery.d.ts +1 -7
- package/lib/typescript/components/Message/Message.d.ts +2 -2
- package/lib/typescript/contexts/attachmentPickerContext/AttachmentPickerContext.d.ts +3 -3
- package/lib/typescript/contexts/channelContext/ChannelContext.d.ts +2 -2
- package/lib/typescript/contexts/channelsContext/ChannelsContext.d.ts +6 -6
- package/lib/typescript/contexts/chatContext/ChatContext.d.ts +5 -1
- package/lib/typescript/contexts/messageContext/MessageContext.d.ts +2 -2
- package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts +6 -6
- package/lib/typescript/contexts/messageOverlayContext/MessageOverlayContext.d.ts +3 -3
- package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts +20 -20
- package/lib/typescript/contexts/overlayContext/OverlayContext.d.ts +1 -1
- package/package.json +1 -1
- package/src/components/Attachment/Giphy.tsx +4 -0
- package/src/components/Attachment/__tests__/Attachment.test.js +0 -61
- package/src/components/Attachment/__tests__/Giphy.test.js +290 -0
- package/src/components/AttachmentPicker/AttachmentPicker.tsx +4 -4
- package/src/components/Channel/Channel.tsx +2 -2
- package/src/components/Channel/__tests__/isAttachmentEqualHandler.test.js +1 -1
- package/src/components/ChannelList/hooks/listeners/__tests__/useChannelUpdated.test.tsx +1 -0
- package/src/components/Chat/Chat.tsx +5 -1
- package/src/components/Chat/hooks/__tests__/useAppSettings.test.tsx +34 -0
- package/src/components/Chat/hooks/useAppSettings.ts +39 -0
- package/src/components/Chat/hooks/useCreateChatContext.ts +2 -0
- package/src/components/ImageGallery/ImageGallery.tsx +9 -8
- package/src/components/Message/Message.tsx +2 -2
- package/src/components/Message/MessageSimple/MessageContent.tsx +16 -17
- package/src/components/Message/MessageSimple/MessageSimple.tsx +11 -12
- package/src/components/Message/MessageSimple/utils/renderText.md +1 -1
- package/src/contexts/attachmentPickerContext/AttachmentPickerContext.tsx +3 -3
- package/src/contexts/channelContext/ChannelContext.md +2 -2
- package/src/contexts/channelContext/ChannelContext.tsx +2 -2
- package/src/contexts/channelsContext/ChannelsContext.md +2 -2
- package/src/contexts/channelsContext/ChannelsContext.tsx +6 -6
- package/src/contexts/chatContext/ChatContext.md +2 -2
- package/src/contexts/chatContext/ChatContext.tsx +5 -1
- package/src/contexts/imageGalleryContext/ImageGalleryContext.md +2 -2
- package/src/contexts/keyboardContext/KeyboardContext.md +1 -1
- package/src/contexts/messageContext/MessageContext.md +1 -1
- package/src/contexts/messageContext/MessageContext.tsx +2 -2
- package/src/contexts/messageInputContext/MessageInputContext.md +1 -1
- package/src/contexts/messageInputContext/MessageInputContext.tsx +6 -6
- package/src/contexts/messageOverlayContext/MessageOverlayContext.tsx +3 -3
- package/src/contexts/messagesContext/MessagesContext.md +1 -1
- package/src/contexts/messagesContext/MessagesContext.tsx +20 -20
- package/src/contexts/overlayContext/OverlayContext.md +2 -2
- package/src/contexts/overlayContext/OverlayContext.tsx +1 -1
- package/src/contexts/overlayContext/OverlayProvider.tsx +1 -1
- package/src/contexts/paginatedMessageListContext/PaginatedMessageListContext.md +2 -2
- package/src/contexts/suggestionsContext/SuggestionsContext.md +1 -1
- package/src/contexts/typingContext/TypingContext.md +2 -2
- package/src/version.json +1 -1
|
@@ -445,23 +445,22 @@ const areEqual = <StreamChatGenerics extends DefaultStreamChatGenerics = Default
|
|
|
445
445
|
const prevMessageAttachments = prevMessage.attachments;
|
|
446
446
|
const nextMessageAttachments = nextMessage.attachments;
|
|
447
447
|
const attachmentsEqual =
|
|
448
|
-
Array.isArray(prevMessageAttachments) &&
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
});
|
|
448
|
+
Array.isArray(prevMessageAttachments) && Array.isArray(nextMessageAttachments)
|
|
449
|
+
? prevMessageAttachments.length === nextMessageAttachments.length &&
|
|
450
|
+
prevMessageAttachments.every((attachment, index) => {
|
|
451
|
+
const attachmentKeysEqual =
|
|
452
|
+
attachment.image_url === nextMessageAttachments[index].image_url &&
|
|
453
|
+
attachment.og_scrape_url === nextMessageAttachments[index].og_scrape_url &&
|
|
454
|
+
attachment.thumb_url === nextMessageAttachments[index].thumb_url;
|
|
455
|
+
|
|
456
|
+
if (isAttachmentEqual)
|
|
457
|
+
return (
|
|
458
|
+
attachmentKeysEqual && !!isAttachmentEqual(attachment, nextMessageAttachments[index])
|
|
459
|
+
);
|
|
460
|
+
|
|
461
|
+
return attachmentKeysEqual;
|
|
462
|
+
})
|
|
463
|
+
: prevMessageAttachments === nextMessageAttachments;
|
|
465
464
|
if (!attachmentsEqual) return false;
|
|
466
465
|
|
|
467
466
|
const latestReactionsEqual =
|
|
@@ -147,18 +147,17 @@ const areEqual = <StreamChatGenerics extends DefaultStreamChatGenerics = Default
|
|
|
147
147
|
const prevMessageAttachments = prevMessage.attachments;
|
|
148
148
|
const nextMessageAttachments = nextMessage.attachments;
|
|
149
149
|
const attachmentsEqual =
|
|
150
|
-
Array.isArray(prevMessageAttachments) &&
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
});
|
|
150
|
+
Array.isArray(prevMessageAttachments) && Array.isArray(nextMessageAttachments)
|
|
151
|
+
? prevMessageAttachments.length === nextMessageAttachments.length &&
|
|
152
|
+
prevMessageAttachments.every((attachment, index) => {
|
|
153
|
+
const attachmentKeysEqual =
|
|
154
|
+
attachment.image_url === nextMessageAttachments[index].image_url &&
|
|
155
|
+
attachment.og_scrape_url === nextMessageAttachments[index].og_scrape_url &&
|
|
156
|
+
attachment.thumb_url === nextMessageAttachments[index].thumb_url;
|
|
157
|
+
|
|
158
|
+
return attachmentKeysEqual;
|
|
159
|
+
})
|
|
160
|
+
: prevMessageAttachments === nextMessageAttachments;
|
|
162
161
|
if (!attachmentsEqual) return false;
|
|
163
162
|
|
|
164
163
|
const latestReactionsEqual =
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[src/components/Message/MessageSimple/utils/renderText.ts](https://github.com/GetStream/stream-chat-react-native/blob/master/src/components/Message/MessageSimple/utils/renderText.ts)
|
|
1
|
+
[src/components/Message/MessageSimple/utils/renderText.ts](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/Message/MessageSimple/utils/renderText.ts)
|
|
2
2
|
|
|
3
3
|
Function that handles markdown and parsing for the text of message.
|
|
4
4
|
|
|
@@ -21,20 +21,20 @@ export type AttachmentPickerContextValue = {
|
|
|
21
21
|
/**
|
|
22
22
|
* Custom UI component for [camera selector icon](https://github.com/GetStream/stream-chat-react-native/blob/master/screenshots/docs/1.png)
|
|
23
23
|
*
|
|
24
|
-
* **Default: ** [CameraSelectorIcon](https://github.com/GetStream/stream-chat-react-native/blob/master/src/components/AttachmentPicker/components/CameraSelectorIcon.tsx)
|
|
24
|
+
* **Default: ** [CameraSelectorIcon](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/AttachmentPicker/components/CameraSelectorIcon.tsx)
|
|
25
25
|
*/
|
|
26
26
|
CameraSelectorIcon: React.ComponentType<AttachmentPickerIconProps>;
|
|
27
27
|
closePicker: () => void;
|
|
28
28
|
/**
|
|
29
29
|
* Custom UI component for [file selector icon](https://github.com/GetStream/stream-chat-react-native/blob/master/screenshots/docs/1.png)
|
|
30
30
|
*
|
|
31
|
-
* **Default: ** [FileSelectorIcon](https://github.com/GetStream/stream-chat-react-native/blob/master/src/components/AttachmentPicker/components/FileSelectorIcon.tsx)
|
|
31
|
+
* **Default: ** [FileSelectorIcon](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/AttachmentPicker/components/FileSelectorIcon.tsx)
|
|
32
32
|
*/
|
|
33
33
|
FileSelectorIcon: React.ComponentType<AttachmentPickerIconProps>;
|
|
34
34
|
/**
|
|
35
35
|
* Custom UI component for [image selector icon](https://github.com/GetStream/stream-chat-react-native/blob/master/screenshots/docs/1.png)
|
|
36
36
|
*
|
|
37
|
-
* **Default: ** [ImageSelectorIcon](https://github.com/GetStream/stream-chat-react-native/blob/master/src/components/AttachmentPicker/components/ImageSelectorIcon.tsx)
|
|
37
|
+
* **Default: ** [ImageSelectorIcon](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/AttachmentPicker/components/ImageSelectorIcon.tsx)
|
|
38
38
|
*/
|
|
39
39
|
ImageSelectorIcon: React.ComponentType<AttachmentPickerIconProps>;
|
|
40
40
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Please check the `ChannelContextValue` in [ChannelContext](https://github.com/GetStream/stream-chat-react-native/blob/master/src/contexts/channelContext/ChannelContext.md), for consumable values.
|
|
1
|
+
Please check the `ChannelContextValue` in [ChannelContext](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/contexts/channelContext/ChannelContext.md), for consumable values.
|
|
2
2
|
Provider for this context exists in `Channel` component. And so, any child component of Channel
|
|
3
3
|
can get access to context as following:
|
|
4
4
|
|
|
@@ -34,4 +34,4 @@ class SomeChildComponent extends React.Component {
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
export withChannelContext(SomeChildComponent);
|
|
37
|
-
```
|
|
37
|
+
```
|
|
@@ -36,7 +36,7 @@ export type ChannelContextValue<
|
|
|
36
36
|
/**
|
|
37
37
|
* Custom UI component to display empty state when channel has no messages.
|
|
38
38
|
*
|
|
39
|
-
* **Default** [EmptyStateIndicator](https://github.com/GetStream/stream-chat-react-native/blob/master/src/components/Indicators/EmptyStateIndicator.tsx)
|
|
39
|
+
* **Default** [EmptyStateIndicator](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/Indicators/EmptyStateIndicator.tsx)
|
|
40
40
|
*/
|
|
41
41
|
EmptyStateIndicator: React.ComponentType<EmptyStateProps>;
|
|
42
42
|
/**
|
|
@@ -155,7 +155,7 @@ export type ChannelContextValue<
|
|
|
155
155
|
/**
|
|
156
156
|
* Custom UI component for sticky header of channel.
|
|
157
157
|
*
|
|
158
|
-
* **Default** [DateHeader](https://github.com/GetStream/stream-chat-react-native/blob/master/src/components/MessageList/DateHeader.tsx)
|
|
158
|
+
* **Default** [DateHeader](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/MessageList/DateHeader.tsx)
|
|
159
159
|
*/
|
|
160
160
|
StickyHeader?: React.ComponentType<{ dateString: string }>;
|
|
161
161
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Please check the `ChannelsContextValue` in [ChannelsContext](https://github.com/GetStream/stream-chat-react-native/blob/master/src/contexts/channelsContext/ChannelsContext.md), for consumable values.
|
|
1
|
+
Please check the `ChannelsContextValue` in [ChannelsContext](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/contexts/channelsContext/ChannelsContext.md), for consumable values.
|
|
2
2
|
Provider for this context exists in `ChannelList` component. And so, any child component of ChannelList
|
|
3
3
|
can get access to context as following:
|
|
4
4
|
|
|
@@ -35,4 +35,4 @@ class SomeChildComponent extends React.Component {
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
export withChannelsContext(SomeChildComponent);
|
|
38
|
-
```
|
|
38
|
+
```
|
|
@@ -172,37 +172,37 @@ export type ChannelsContextValue<
|
|
|
172
172
|
/**
|
|
173
173
|
* Custom UI component to render preview avatar.
|
|
174
174
|
*
|
|
175
|
-
* **Default** [ChannelAvatar](https://github.com/GetStream/stream-chat-react-native/blob/master/src/components/ChannelPreview/ChannelAvatar.tsx)
|
|
175
|
+
* **Default** [ChannelAvatar](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/ChannelPreview/ChannelAvatar.tsx)
|
|
176
176
|
*/
|
|
177
177
|
PreviewAvatar?: React.ComponentType<ChannelAvatarProps<StreamChatGenerics>>;
|
|
178
178
|
/**
|
|
179
179
|
* Custom UI component to render preview of latest message on channel.
|
|
180
180
|
*
|
|
181
|
-
* **Default** [ChannelPreviewMessage](https://github.com/GetStream/stream-chat-react-native/blob/master/src/components/ChannelPreview/ChannelPreviewMessage.tsx)
|
|
181
|
+
* **Default** [ChannelPreviewMessage](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/ChannelPreview/ChannelPreviewMessage.tsx)
|
|
182
182
|
*/
|
|
183
183
|
PreviewMessage?: React.ComponentType<ChannelPreviewMessageProps<StreamChatGenerics>>;
|
|
184
184
|
/**
|
|
185
185
|
* Custom UI component to render muted status.
|
|
186
186
|
*
|
|
187
|
-
* **Default** [ChannelMutedStatus](https://github.com/GetStream/stream-chat-react-native/blob/master/src/components/ChannelPreview/ChannelPreviewMutedStatus.tsx)
|
|
187
|
+
* **Default** [ChannelMutedStatus](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/ChannelPreview/ChannelPreviewMutedStatus.tsx)
|
|
188
188
|
*/
|
|
189
189
|
PreviewMutedStatus?: React.ComponentType<ChannelPreviewMutedStatusProps<StreamChatGenerics>>;
|
|
190
190
|
/**
|
|
191
191
|
* Custom UI component to render preview avatar.
|
|
192
192
|
*
|
|
193
|
-
* **Default** [ChannelPreviewStatus](https://github.com/GetStream/stream-chat-react-native/blob/master/src/components/ChannelPreview/ChannelPreviewStatus.tsx)
|
|
193
|
+
* **Default** [ChannelPreviewStatus](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/ChannelPreview/ChannelPreviewStatus.tsx)
|
|
194
194
|
*/
|
|
195
195
|
PreviewStatus?: React.ComponentType<ChannelPreviewStatusProps<StreamChatGenerics>>;
|
|
196
196
|
/**
|
|
197
197
|
* Custom UI component to render preview avatar.
|
|
198
198
|
*
|
|
199
|
-
* **Default** [ChannelPreviewTitle](https://github.com/GetStream/stream-chat-react-native/blob/master/src/components/ChannelPreview/ChannelPreviewTitle.tsx)
|
|
199
|
+
* **Default** [ChannelPreviewTitle](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/ChannelPreview/ChannelPreviewTitle.tsx)
|
|
200
200
|
*/
|
|
201
201
|
PreviewTitle?: React.ComponentType<ChannelPreviewTitleProps<StreamChatGenerics>>;
|
|
202
202
|
/**
|
|
203
203
|
* Custom UI component to render preview avatar.
|
|
204
204
|
*
|
|
205
|
-
* **Default** [ChannelPreviewUnreadCount](https://github.com/GetStream/stream-chat-react-native/blob/master/src/components/ChannelPreview/ChannelPreviewUnreadCount.tsx)
|
|
205
|
+
* **Default** [ChannelPreviewUnreadCount](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/ChannelPreview/ChannelPreviewUnreadCount.tsx)
|
|
206
206
|
*/
|
|
207
207
|
PreviewUnreadCount?: React.ComponentType<ChannelPreviewUnreadCountProps<StreamChatGenerics>>;
|
|
208
208
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Please check the `ChatContextValue` in [ChatContext](https://github.com/GetStream/stream-chat-react-native/blob/master/src/contexts/chatContext/ChatContext.tsx), for consumable values.
|
|
1
|
+
Please check the `ChatContextValue` in [ChatContext](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/contexts/chatContext/ChatContext.tsx), for consumable values.
|
|
2
2
|
Provider for this context exists in `Chat` component. And so, any child component of Chat
|
|
3
3
|
can get access to context as following:
|
|
4
4
|
|
|
@@ -34,4 +34,4 @@ class SomeChildComponent extends React.Component {
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
export withChatContext(SomeChildComponent);
|
|
37
|
-
```
|
|
37
|
+
```
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { PropsWithChildren, useContext } from 'react';
|
|
2
2
|
|
|
3
|
-
import type { Channel, Mute, StreamChat } from 'stream-chat';
|
|
3
|
+
import type { AppSettingsAPIResponse, Channel, Mute, StreamChat } from 'stream-chat';
|
|
4
4
|
|
|
5
5
|
import type { DefaultStreamChatGenerics, UnknownType } from '../../types/types';
|
|
6
6
|
import { getDisplayName } from '../utils/getDisplayName';
|
|
@@ -8,6 +8,10 @@ import { getDisplayName } from '../utils/getDisplayName';
|
|
|
8
8
|
export type ChatContextValue<
|
|
9
9
|
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
10
10
|
> = {
|
|
11
|
+
/**
|
|
12
|
+
* Object of application settings returned from Stream.
|
|
13
|
+
* */
|
|
14
|
+
appSettings: AppSettingsAPIResponse<StreamChatGenerics> | null;
|
|
11
15
|
/**
|
|
12
16
|
* The StreamChat client object
|
|
13
17
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Please check the `ImageGalleryContextValue` in [ImageGalleryContext](https://github.com/GetStream/stream-chat-react-native/blob/master/src/contexts/imageGalleryContext/ImageGalleryContext.tsx), for consumable values.
|
|
1
|
+
Please check the `ImageGalleryContextValue` in [ImageGalleryContext](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/contexts/imageGalleryContext/ImageGalleryContext.tsx), for consumable values.
|
|
2
2
|
Provider for this context exists in `OverlayProvider` component. And so, any child component of OverlayProvider
|
|
3
3
|
can get access to context as following:
|
|
4
4
|
|
|
@@ -35,4 +35,4 @@ class SomeChildComponent extends React.Component {
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
export withImageGalleryContext(SomeChildComponent);
|
|
38
|
-
```
|
|
38
|
+
```
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
When user focuses on input box, keyboard opens up on mobile devices. When keyboard opens, it is necessary to update the position of input box and height of content on screen
|
|
2
|
-
so that it doesn't get hidden behind keyboard. This is handled by [KeyboardCompatibleView](https://github.com/GetStream/stream-chat-react-native/blob/master/src/components/KeyboardCompatibleView/KeyboardCompatibleView.tsx) which
|
|
2
|
+
so that it doesn't get hidden behind keyboard. This is handled by [KeyboardCompatibleView](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/KeyboardCompatibleView/KeyboardCompatibleView.tsx) which
|
|
3
3
|
is a HOC. It creates a context which contain following function.
|
|
4
4
|
|
|
5
5
|
- **dismissKeyboard** Dismisses the keyboard and adjusts the height of content on screen.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Please check the `MessageContextValue` in [MessageContext](https://github.com/GetStream/stream-chat-react-native/blob/master/src/contexts/messageContext/MessageContext.tsx), for consumable values.
|
|
1
|
+
Please check the `MessageContextValue` in [MessageContext](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/contexts/messageContext/MessageContext.tsx), for consumable values.
|
|
2
2
|
Provider for this context exists in `Message` component. And so, any child component of `Message`
|
|
3
3
|
can get access to context as following:
|
|
4
4
|
|
|
@@ -58,7 +58,7 @@ export type MessageContextValue<
|
|
|
58
58
|
* You can call methods available on the Message
|
|
59
59
|
* component such as handleEdit, handleDelete, handleAction etc.
|
|
60
60
|
*
|
|
61
|
-
* Source - [Message](https://github.com/GetStream/stream-chat-react-native/blob/master/src/components/Message/Message.tsx)
|
|
61
|
+
* Source - [Message](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/Message/Message.tsx)
|
|
62
62
|
*
|
|
63
63
|
* By default, we show the overlay with all the message actions on long press.
|
|
64
64
|
*
|
|
@@ -73,7 +73,7 @@ export type MessageContextValue<
|
|
|
73
73
|
* You can call methods available on the Message
|
|
74
74
|
* component such as handleEdit, handleDelete, handleAction etc.
|
|
75
75
|
*
|
|
76
|
-
* Source - [Message](https://github.com/GetStream/stream-chat-react-native/blob/master/src/components/Message/Message.tsx)
|
|
76
|
+
* Source - [Message](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/Message/Message.tsx)
|
|
77
77
|
*
|
|
78
78
|
* By default, we will dismiss the keyboard on press.
|
|
79
79
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Please check the `MessageInputContextValue` in [MessageInputContext](https://github.com/GetStream/stream-chat-react-native/blob/master/src/contexts/messageInputContext/MessageInputContext.tsx), for consumable values.
|
|
1
|
+
Please check the `MessageInputContextValue` in [MessageInputContext](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/contexts/messageInputContext/MessageInputContext.tsx), for consumable values.
|
|
2
2
|
Provider for this context exists in `Channel` component. And so, any child component of `Channel`
|
|
3
3
|
can get access to context as following:
|
|
4
4
|
|
|
@@ -237,7 +237,7 @@ export type InputMessageInputContextValue<
|
|
|
237
237
|
* being allowed to send another message. This component is displayed in place of the
|
|
238
238
|
* send button for the MessageInput component.
|
|
239
239
|
*
|
|
240
|
-
* **default** [CooldownTimer](https://github.com/GetStream/stream-chat-react-native/blob/master/src/components/MessageInput/CooldownTimer.tsx)
|
|
240
|
+
* **default** [CooldownTimer](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/MessageInput/CooldownTimer.tsx)
|
|
241
241
|
*/
|
|
242
242
|
CooldownTimer: React.ComponentType<CooldownTimerProps>;
|
|
243
243
|
editing: boolean | MessageType<StreamChatGenerics>;
|
|
@@ -245,7 +245,7 @@ export type InputMessageInputContextValue<
|
|
|
245
245
|
|
|
246
246
|
/**
|
|
247
247
|
* Custom UI component for FileUploadPreview.
|
|
248
|
-
* Defaults to and accepts same props as: https://github.com/GetStream/stream-chat-react-native/blob/master/src/components/MessageInput/FileUploadPreview.tsx
|
|
248
|
+
* Defaults to and accepts same props as: https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/MessageInput/FileUploadPreview.tsx
|
|
249
249
|
*/
|
|
250
250
|
FileUploadPreview: React.ComponentType<FileUploadPreviewProps<StreamChatGenerics>>;
|
|
251
251
|
|
|
@@ -257,7 +257,7 @@ export type InputMessageInputContextValue<
|
|
|
257
257
|
hasImagePicker: boolean;
|
|
258
258
|
/**
|
|
259
259
|
* Custom UI component for ImageUploadPreview.
|
|
260
|
-
* Defaults to and accepts same props as: https://github.com/GetStream/stream-chat-react-native/blob/master/src/components/MessageInput/ImageUploadPreview.tsx
|
|
260
|
+
* Defaults to and accepts same props as: https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/MessageInput/ImageUploadPreview.tsx
|
|
261
261
|
*/
|
|
262
262
|
ImageUploadPreview: React.ComponentType<ImageUploadPreviewProps<StreamChatGenerics>>;
|
|
263
263
|
InputEditingStateHeader: React.ComponentType<InputEditingStateHeaderProps<StreamChatGenerics>>;
|
|
@@ -293,7 +293,7 @@ export type InputMessageInputContextValue<
|
|
|
293
293
|
/**
|
|
294
294
|
* Custom UI component to render upload progress indicator on attachment preview.
|
|
295
295
|
*
|
|
296
|
-
* **Default** [UploadProgressIndicator](https://github.com/GetStream/stream-chat-react-native/blob/master/src/components/MessageInput/UploadProgressIndicator.tsx)
|
|
296
|
+
* **Default** [UploadProgressIndicator](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/MessageInput/UploadProgressIndicator.tsx)
|
|
297
297
|
*/
|
|
298
298
|
UploadProgressIndicator: React.ComponentType<UploadProgressIndicatorProps>;
|
|
299
299
|
/**
|
|
@@ -354,7 +354,7 @@ export type InputMessageInputContextValue<
|
|
|
354
354
|
initialValue?: string;
|
|
355
355
|
/**
|
|
356
356
|
* Custom UI component for AutoCompleteInput.
|
|
357
|
-
* Has access to all of [MessageInputContext](https://github.com/GetStream/stream-chat-react-native/blob/master/src/contexts/messageInputContext/MessageInputContext.tsx)
|
|
357
|
+
* Has access to all of [MessageInputContext](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/contexts/messageInputContext/MessageInputContext.tsx)
|
|
358
358
|
*/
|
|
359
359
|
Input?: React.ComponentType<
|
|
360
360
|
Omit<MessageInputProps<StreamChatGenerics>, 'Input'> &
|
|
@@ -364,7 +364,7 @@ export type InputMessageInputContextValue<
|
|
|
364
364
|
>;
|
|
365
365
|
/**
|
|
366
366
|
* Custom UI component to override buttons on left side of input box
|
|
367
|
-
* Defaults to [InputButtons](https://github.com/GetStream/stream-chat-react-native/blob/master/src/components/MessageInput/InputButtons.tsx),
|
|
367
|
+
* Defaults to [InputButtons](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/MessageInput/InputButtons.tsx),
|
|
368
368
|
* which contain following components/buttons:
|
|
369
369
|
*
|
|
370
370
|
* - AttachButton
|
|
@@ -48,20 +48,20 @@ export type MessageOverlayContextValue<
|
|
|
48
48
|
/**
|
|
49
49
|
* Custom UI component for rendering [message actions](https://github.com/GetStream/stream-chat-react-native/blob/master/screenshots/docs/2.png) in overlay.
|
|
50
50
|
*
|
|
51
|
-
* **Default** [MessageActionList](https://github.com/GetStream/stream-chat-react-native/blob/master/src/components/MessageOverlay/MessageActions.tsx)
|
|
51
|
+
* **Default** [MessageActionList](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/MessageOverlay/MessageActions.tsx)
|
|
52
52
|
*/
|
|
53
53
|
MessageActionList: React.ComponentType<MessageActionListProps<StreamChatGenerics>>;
|
|
54
54
|
MessageActionListItem: React.ComponentType<MessageActionListItemProps<StreamChatGenerics>>;
|
|
55
55
|
/**
|
|
56
56
|
* Custom UI component for rendering [reaction selector](https://github.com/GetStream/stream-chat-react-native/blob/master/screenshots/docs/2.png) in overlay (which shows up on long press on message).
|
|
57
57
|
*
|
|
58
|
-
* **Default** [OverlayReactionList](https://github.com/GetStream/stream-chat-react-native/blob/master/src/components/MessageOverlay/OverlayReactionList.tsx)
|
|
58
|
+
* **Default** [OverlayReactionList](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/MessageOverlay/OverlayReactionList.tsx)
|
|
59
59
|
*/
|
|
60
60
|
OverlayReactionList: React.ComponentType<OverlayReactionListProps<StreamChatGenerics>>;
|
|
61
61
|
/**
|
|
62
62
|
* Custom UI component for rendering [reactions list](https://github.com/GetStream/stream-chat-react-native/blob/master/screenshots/docs/2.png), in overlay (which shows up on long press on message).
|
|
63
63
|
*
|
|
64
|
-
* **Default** [OverlayReactions](https://github.com/GetStream/stream-chat-react-native/blob/master/src/components/MessageOverlay/OverlayReactions.tsx)
|
|
64
|
+
* **Default** [OverlayReactions](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/MessageOverlay/OverlayReactions.tsx)
|
|
65
65
|
*/
|
|
66
66
|
OverlayReactions: React.ComponentType<OverlayReactionsProps<StreamChatGenerics>>;
|
|
67
67
|
OverlayReactionsAvatar: React.ComponentType<OverlayReactionsAvatarProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Please check the `MessagesContextValue` in [MessagesContext](https://github.com/GetStream/stream-chat-react-native/blob/master/src/contexts/messageContext/MessageContext.tsx), for consumable values.
|
|
1
|
+
Please check the `MessagesContextValue` in [MessagesContext](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/contexts/messageContext/MessageContext.tsx), for consumable values.
|
|
2
2
|
Provider for this context exists in `Channel` component. And so, any child component of Channel
|
|
3
3
|
can get access to context as following:
|
|
4
4
|
|
|
@@ -57,22 +57,22 @@ export type MessagesContextValue<
|
|
|
57
57
|
> = {
|
|
58
58
|
/**
|
|
59
59
|
* UI component for Attachment.
|
|
60
|
-
* Defaults to: [Attachment](https://github.com/GetStream/stream-chat-react-native/blob/master/src/components/Attachment/Attachment.tsx)
|
|
60
|
+
* Defaults to: [Attachment](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/Attachment/Attachment.tsx)
|
|
61
61
|
*/
|
|
62
62
|
Attachment: React.ComponentType<AttachmentProps<StreamChatGenerics>>;
|
|
63
63
|
/**
|
|
64
64
|
* UI component to display AttachmentActions. e.g., send, shuffle, cancel in case of giphy
|
|
65
|
-
* Defaults to: [AttachmentActions](https://github.com/GetStream/stream-chat-react-native/blob/master/src/components/Attachment/AttachmentActions.tsx)
|
|
65
|
+
* Defaults to: [AttachmentActions](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/Attachment/AttachmentActions.tsx)
|
|
66
66
|
*/
|
|
67
67
|
AttachmentActions: React.ComponentType<AttachmentActionsProps<StreamChatGenerics>>;
|
|
68
68
|
/**
|
|
69
69
|
* UI component to display generic media type e.g. giphy, url preview etc
|
|
70
|
-
* Defaults to: [Card](https://github.com/GetStream/stream-chat-react-native/blob/master/src/components/Attachment/Card.tsx)
|
|
70
|
+
* Defaults to: [Card](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/Attachment/Card.tsx)
|
|
71
71
|
*/
|
|
72
72
|
Card: React.ComponentType<CardProps<StreamChatGenerics>>;
|
|
73
73
|
/**
|
|
74
74
|
* UI component for DateHeader
|
|
75
|
-
* Defaults to: [DateHeader](https://github.com/GetStream/stream-chat-react-native/blob/master/src/components/MessageList/DateHeader.tsx)
|
|
75
|
+
* Defaults to: [DateHeader](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/MessageList/DateHeader.tsx)
|
|
76
76
|
**/
|
|
77
77
|
DateHeader: React.ComponentType<DateHeaderProps>;
|
|
78
78
|
|
|
@@ -83,28 +83,28 @@ export type MessagesContextValue<
|
|
|
83
83
|
|
|
84
84
|
/**
|
|
85
85
|
* UI component to display File type attachment.
|
|
86
|
-
* Defaults to: [FileAttachment](https://github.com/GetStream/stream-chat-react-native/blob/master/src/components/Attachment/FileAttachment.tsx)
|
|
86
|
+
* Defaults to: [FileAttachment](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/Attachment/FileAttachment.tsx)
|
|
87
87
|
*/
|
|
88
88
|
FileAttachment: React.ComponentType<FileAttachmentProps<StreamChatGenerics>>;
|
|
89
89
|
/**
|
|
90
90
|
* UI component to display group of File type attachments or multiple file attachments (in single message).
|
|
91
|
-
* Defaults to: [FileAttachmentGroup](https://github.com/GetStream/stream-chat-react-native/blob/master/src/components/Attachment/FileAttachmentGroup.tsx)
|
|
91
|
+
* Defaults to: [FileAttachmentGroup](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/Attachment/FileAttachmentGroup.tsx)
|
|
92
92
|
*/
|
|
93
93
|
FileAttachmentGroup: React.ComponentType<FileAttachmentGroupProps<StreamChatGenerics>>;
|
|
94
94
|
/**
|
|
95
95
|
* UI component for attachment icon for type 'file' attachment.
|
|
96
|
-
* Defaults to: https://github.com/GetStream/stream-chat-react-native/blob/master/src/components/Attachment/FileIcon.tsx
|
|
96
|
+
* Defaults to: https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/Attachment/FileIcon.tsx
|
|
97
97
|
*/
|
|
98
98
|
FileAttachmentIcon: React.ComponentType<FileIconProps>;
|
|
99
99
|
FlatList: typeof FlatList;
|
|
100
100
|
/**
|
|
101
101
|
* UI component to display image attachments
|
|
102
|
-
* Defaults to: [Gallery](https://github.com/GetStream/stream-chat-react-native/blob/master/src/components/Attachment/Gallery.tsx)
|
|
102
|
+
* Defaults to: [Gallery](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/Attachment/Gallery.tsx)
|
|
103
103
|
*/
|
|
104
104
|
Gallery: React.ComponentType<GalleryProps<StreamChatGenerics>>;
|
|
105
105
|
/**
|
|
106
106
|
* UI component for Giphy
|
|
107
|
-
* Defaults to: [Giphy](https://github.com/GetStream/stream-chat-react-native/blob/master/src/components/Attachment/Giphy.tsx)
|
|
107
|
+
* Defaults to: [Giphy](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/Attachment/Giphy.tsx)
|
|
108
108
|
*/
|
|
109
109
|
Giphy: React.ComponentType<GiphyProps<StreamChatGenerics>>;
|
|
110
110
|
/**
|
|
@@ -117,30 +117,30 @@ export type MessagesContextValue<
|
|
|
117
117
|
initialScrollToFirstUnreadMessage: boolean;
|
|
118
118
|
/**
|
|
119
119
|
* UI component for Message Date Separator Component
|
|
120
|
-
* Defaults to: [InlineDateSeparator](https://github.com/GetStream/stream-chat-react-native/blob/master/src/components/MessageList/InlineDateSeparator.tsx)
|
|
120
|
+
* Defaults to: [InlineDateSeparator](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/MessageList/InlineDateSeparator.tsx)
|
|
121
121
|
*/
|
|
122
122
|
InlineDateSeparator: React.ComponentType<InlineDateSeparatorProps>;
|
|
123
123
|
/**
|
|
124
124
|
* UI component for InlineUnreadIndicator
|
|
125
|
-
* Defaults to: [InlineUnreadIndicator](https://github.com/GetStream/stream-chat-react-native/blob/master/src/components/Message/MessageSimple/InlineUnreadIndicator.tsx)
|
|
125
|
+
* Defaults to: [InlineUnreadIndicator](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/Message/MessageSimple/InlineUnreadIndicator.tsx)
|
|
126
126
|
**/
|
|
127
127
|
InlineUnreadIndicator: React.ComponentType;
|
|
128
128
|
Message: React.ComponentType<MessageProps<StreamChatGenerics>>;
|
|
129
129
|
/**
|
|
130
130
|
* UI component for MessageAvatar
|
|
131
|
-
* Defaults to: [MessageAvatar](https://github.com/GetStream/stream-chat-react-native/blob/master/src/components/Message/MessageSimple/MessageAvatar.tsx)
|
|
131
|
+
* Defaults to: [MessageAvatar](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/Message/MessageSimple/MessageAvatar.tsx)
|
|
132
132
|
**/
|
|
133
133
|
MessageAvatar: React.ComponentType<MessageAvatarProps<StreamChatGenerics>>;
|
|
134
134
|
/**
|
|
135
135
|
* UI component for MessageContent
|
|
136
|
-
* Defaults to: [MessageContent](https://github.com/GetStream/stream-chat-react-native/blob/master/src/components/Message/MessageSimple/MessageContent.tsx)
|
|
136
|
+
* Defaults to: [MessageContent](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/Message/MessageSimple/MessageContent.tsx)
|
|
137
137
|
*/
|
|
138
138
|
MessageContent: React.ComponentType<MessageContentProps<StreamChatGenerics>>;
|
|
139
139
|
/** Order to render the message content */
|
|
140
140
|
messageContentOrder: MessageContentType[];
|
|
141
141
|
/**
|
|
142
142
|
* UI component for MessageDeleted
|
|
143
|
-
* Defaults to: [MessageDeleted](https://github.com/GetStream/stream-chat-react-native/blob/master/src/components/MessageSimple/MessageDeleted.tsx)
|
|
143
|
+
* Defaults to: [MessageDeleted](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/MessageSimple/MessageDeleted.tsx)
|
|
144
144
|
*/
|
|
145
145
|
MessageDeleted: React.ComponentType<MessageDeletedProps<StreamChatGenerics>>;
|
|
146
146
|
/**
|
|
@@ -154,23 +154,23 @@ export type MessagesContextValue<
|
|
|
154
154
|
MessagePinnedHeader: React.ComponentType<MessagePinnedHeaderProps<StreamChatGenerics>>;
|
|
155
155
|
/**
|
|
156
156
|
* UI component for MessageReplies
|
|
157
|
-
* Defaults to: [MessageReplies](https://github.com/GetStream/stream-chat-react-native/blob/master/src/components/MessageSimple/MessageReplies.tsx)
|
|
157
|
+
* Defaults to: [MessageReplies](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/MessageSimple/MessageReplies.tsx)
|
|
158
158
|
*/
|
|
159
159
|
|
|
160
160
|
MessageReplies: React.ComponentType<MessageRepliesProps<StreamChatGenerics>>;
|
|
161
161
|
/**
|
|
162
162
|
* UI Component for MessageRepliesAvatars
|
|
163
|
-
* Defaults to: [MessageRepliesAvatars](https://github.com/GetStream/stream-chat-react-native/blob/master/src/components/MessageSimple/MessageRepliesAvatars.tsx)
|
|
163
|
+
* Defaults to: [MessageRepliesAvatars](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/MessageSimple/MessageRepliesAvatars.tsx)
|
|
164
164
|
*/
|
|
165
165
|
MessageRepliesAvatars: React.ComponentType<MessageRepliesAvatarsProps<StreamChatGenerics>>;
|
|
166
166
|
/**
|
|
167
167
|
* UI component for MessageSimple
|
|
168
|
-
* Defaults to: [MessageSimple](https://github.com/GetStream/stream-chat-react-native/blob/master/src/components/Message/MessageSimple/MessageSimple.tsx)
|
|
168
|
+
* Defaults to: [MessageSimple](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/Message/MessageSimple/MessageSimple.tsx)
|
|
169
169
|
*/
|
|
170
170
|
MessageSimple: React.ComponentType<MessageSimpleProps<StreamChatGenerics>>;
|
|
171
171
|
/**
|
|
172
172
|
* UI component for MessageStatus (delivered/read)
|
|
173
|
-
* Defaults to: [MessageStatus](https://github.com/GetStream/stream-chat-react-native/blob/master/src/components/Message/MessageSimple/MessageStatus.tsx)
|
|
173
|
+
* Defaults to: [MessageStatus](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/Message/MessageSimple/MessageStatus.tsx)
|
|
174
174
|
*/
|
|
175
175
|
MessageStatus: React.ComponentType<MessageStatusProps<StreamChatGenerics>>;
|
|
176
176
|
/**
|
|
@@ -184,7 +184,7 @@ export type MessagesContextValue<
|
|
|
184
184
|
OverlayReactionList: React.ComponentType<OverlayReactionListProps<StreamChatGenerics>>;
|
|
185
185
|
/**
|
|
186
186
|
* UI component for ReactionList
|
|
187
|
-
* Defaults to: [ReactionList](https://github.com/GetStream/stream-chat-react-native/blob/master/src/components/Reaction/ReactionList.tsx)
|
|
187
|
+
* Defaults to: [ReactionList](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/Reaction/ReactionList.tsx)
|
|
188
188
|
*/
|
|
189
189
|
ReactionList: React.ComponentType<ReactionListProps<StreamChatGenerics>>;
|
|
190
190
|
removeMessage: (message: { id: string; parent_id?: string }) => void;
|
|
@@ -225,7 +225,7 @@ export type MessagesContextValue<
|
|
|
225
225
|
) => void;
|
|
226
226
|
/**
|
|
227
227
|
* Custom UI component to display enriched url preview.
|
|
228
|
-
* Defaults to https://github.com/GetStream/stream-chat-react-native/blob/master/src/components/Attachment/Card.tsx
|
|
228
|
+
* Defaults to https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/components/Attachment/Card.tsx
|
|
229
229
|
*/
|
|
230
230
|
UrlPreview: React.ComponentType<CardProps<StreamChatGenerics>>;
|
|
231
231
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Please check the `OverlayContextValue` in [OverlayContext](https://github.com/GetStream/stream-chat-react-native/blob/master/src/contexts/overlayContext/OverlayContext.tsx), for consumable values.
|
|
1
|
+
Please check the `OverlayContextValue` in [OverlayContext](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/contexts/overlayContext/OverlayContext.tsx), for consumable values.
|
|
2
2
|
Provider for this context exists in `OverlayProvider` component. And so, any child component of OverlayProvider
|
|
3
3
|
can get access to context as following:
|
|
4
4
|
|
|
@@ -31,4 +31,4 @@ class SomeChildComponent extends React.Component {
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
// UI Logic
|
|
34
|
-
}
|
|
34
|
+
}
|
|
@@ -56,9 +56,9 @@ export type OverlayProviderProps<
|
|
|
56
56
|
/**
|
|
57
57
|
* The giphy version to render - check the keys of the [Image Object](https://developers.giphy.com/docs/api/schema#image-object) for possible values. Uses 'fixed_height' by default
|
|
58
58
|
* */
|
|
59
|
-
giphyVersion: keyof NonNullable<Attachment['giphy']>;
|
|
60
59
|
closePicker?: (ref: React.RefObject<BottomSheetMethods>) => void;
|
|
61
60
|
error?: boolean | Error;
|
|
61
|
+
giphyVersion?: keyof NonNullable<Attachment['giphy']>;
|
|
62
62
|
/** https://github.com/GetStream/stream-chat-react-native/wiki/Internationalization-(i18n) */
|
|
63
63
|
i18nInstance?: Streami18n;
|
|
64
64
|
imageGalleryGridHandleHeight?: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Please check the `PaginatedMessageListContextValue` in [PaginatedMessageListContext](https://github.com/GetStream/stream-chat-react-native/blob/master/src/contexts/paginatedMessageListContext/PaginatedMessageListContext.tsx), for consumable values.
|
|
1
|
+
Please check the `PaginatedMessageListContextValue` in [PaginatedMessageListContext](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/contexts/paginatedMessageListContext/PaginatedMessageListContext.tsx), for consumable values.
|
|
2
2
|
Provider for this context exists in `Channel` component. And so, any child component of Channel
|
|
3
3
|
can get access to context as following:
|
|
4
4
|
|
|
@@ -31,4 +31,4 @@ class SomeChildComponent extends React.Component {
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
// UI Logic
|
|
34
|
-
}
|
|
34
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
The MessageInput component supports a suggestions feature. Suggestions are displayed using a popup which contains a list of the suggestion items. All functionality is saved in the SuggestionsContext and can be accessed through the [SuggestionsProvider](https://github.com/GetStream/stream-chat-react-native/blob/master/src/contexts/suggestionsContext/SuggestionsContext.tsx) higher order component. This HOC provides the following functions to its underlying child components:
|
|
1
|
+
The MessageInput component supports a suggestions feature. Suggestions are displayed using a popup which contains a list of the suggestion items. All functionality is saved in the SuggestionsContext and can be accessed through the [SuggestionsProvider](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/contexts/suggestionsContext/SuggestionsContext.tsx) higher order component. This HOC provides the following functions to its underlying child components:
|
|
2
2
|
|
|
3
3
|
- **closeSuggestions** {function} Closes the suggestions popup above the input box
|
|
4
4
|
- **openSuggestions** {function} Opens the suggestions popup above the input box
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Please check the `TypingContextValue` in [TypingContext](https://github.com/GetStream/stream-chat-react-native/blob/master/src/contexts/TypingContext/TypingContext.tsx), for consumable values.
|
|
1
|
+
Please check the `TypingContextValue` in [TypingContext](https://github.com/GetStream/stream-chat-react-native/blob/master/package/src/contexts/TypingContext/TypingContext.tsx), for consumable values.
|
|
2
2
|
Provider for this context exists in `Channel` component. And so, any child component of Channel
|
|
3
3
|
can get access to context as following:
|
|
4
4
|
|
|
@@ -30,4 +30,4 @@ class SomeChildComponent extends React.Component {
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
// UI Logic
|
|
33
|
-
}
|
|
33
|
+
}
|
package/src/version.json
CHANGED