stream-chat-react-native-core 5.25.0-beta.6 → 5.25.0
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/Channel/Channel.js +22 -17
- package/lib/commonjs/components/Channel/Channel.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateInputMessageInputContext.js +3 -1
- package/lib/commonjs/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateOwnCapabilitiesContext.js +22 -5
- package/lib/commonjs/components/Channel/hooks/useCreateOwnCapabilitiesContext.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreview.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessage.js +2 -2
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessage.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessenger.js +1 -4
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessenger.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewStatus.js +4 -4
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewStatus.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewTitle.js +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewTitle.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewUnreadCount.js +2 -2
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewUnreadCount.js.map +1 -1
- package/lib/commonjs/components/Message/Message.js +11 -8
- package/lib/commonjs/components/Message/Message.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageContent.js +7 -3
- package/lib/commonjs/components/Message/MessageSimple/MessageContent.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageSimple.js +7 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageSimple.js.map +1 -1
- package/lib/commonjs/components/MessageInput/MessageInput.js +5 -5
- package/lib/commonjs/components/MessageInput/MessageInput.js.map +1 -1
- package/lib/commonjs/components/MessageInput/hooks/useCountdown.js.map +1 -1
- package/lib/commonjs/components/MessageList/MessageList.js +32 -30
- package/lib/commonjs/components/MessageList/MessageList.js.map +1 -1
- package/lib/commonjs/components/MessageOverlay/MessageActionListItem.js +5 -5
- package/lib/commonjs/components/MessageOverlay/MessageActionListItem.js.map +1 -1
- package/lib/commonjs/contexts/channelsContext/ChannelsContext.js.map +1 -1
- package/lib/commonjs/contexts/chatContext/ChatContext.js +2 -2
- package/lib/commonjs/contexts/chatContext/ChatContext.js.map +1 -1
- package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js.map +1 -1
- package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +3 -1
- package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
- package/lib/commonjs/contexts/themeContext/ThemeContext.js.map +1 -1
- package/lib/commonjs/i18n/en.json +1 -1
- package/lib/commonjs/i18n/es.json +56 -56
- package/lib/commonjs/i18n/fr.json +56 -56
- package/lib/commonjs/i18n/he.json +56 -56
- package/lib/commonjs/i18n/hi.json +56 -56
- package/lib/commonjs/i18n/it.json +56 -56
- package/lib/commonjs/i18n/ja.json +56 -56
- package/lib/commonjs/i18n/ko.json +56 -56
- package/lib/commonjs/i18n/nl.json +56 -56
- package/lib/commonjs/i18n/ru.json +56 -56
- package/lib/commonjs/i18n/tr.json +56 -56
- package/lib/commonjs/icons/ArrowRight.js.map +1 -1
- package/lib/commonjs/icons/AtMentions.js.map +1 -1
- package/lib/commonjs/icons/Attach.js.map +1 -1
- package/lib/commonjs/icons/Audio.js.map +1 -1
- package/lib/commonjs/icons/CSV.js.map +1 -1
- package/lib/commonjs/icons/Camera.js.map +1 -1
- package/lib/commonjs/icons/Check.js.map +1 -1
- package/lib/commonjs/icons/CheckAll.js.map +1 -1
- package/lib/commonjs/icons/CheckSend.js.map +1 -1
- package/lib/commonjs/icons/CircleClose.js.map +1 -1
- package/lib/commonjs/icons/CirclePlus.js.map +1 -1
- package/lib/commonjs/icons/CircleRight.js.map +1 -1
- package/lib/commonjs/icons/Close.js.map +1 -1
- package/lib/commonjs/icons/Copy.js.map +1 -1
- package/lib/commonjs/icons/CurveLineLeftUp.js.map +1 -1
- package/lib/commonjs/icons/DOC.js.map +1 -1
- package/lib/commonjs/icons/DOCX.js.map +1 -1
- package/lib/commonjs/icons/Delete.js.map +1 -1
- package/lib/commonjs/icons/Down.js.map +1 -1
- package/lib/commonjs/icons/DownloadArrow.js.map +1 -1
- package/lib/commonjs/icons/DownloadCloud.js.map +1 -1
- package/lib/commonjs/icons/Edit.js.map +1 -1
- package/lib/commonjs/icons/Error.js.map +1 -1
- package/lib/commonjs/icons/Eye.js.map +1 -1
- package/lib/commonjs/icons/Flag.js.map +1 -1
- package/lib/commonjs/icons/Folder.js.map +1 -1
- package/lib/commonjs/icons/GenericFile.js.map +1 -1
- package/lib/commonjs/icons/GiphyIcon.js.map +1 -1
- package/lib/commonjs/icons/Grid.js.map +1 -1
- package/lib/commonjs/icons/Group.js.map +1 -1
- package/lib/commonjs/icons/HTML.js.map +1 -1
- package/lib/commonjs/icons/Imgur.js.map +1 -1
- package/lib/commonjs/icons/LOLReaction.js.map +1 -1
- package/lib/commonjs/icons/Lightning.js.map +1 -1
- package/lib/commonjs/icons/Link.js.map +1 -1
- package/lib/commonjs/icons/Logo.js.map +1 -1
- package/lib/commonjs/icons/LoveReaction.js.map +1 -1
- package/lib/commonjs/icons/MD.js.map +1 -1
- package/lib/commonjs/icons/MailOpen.js.map +1 -1
- package/lib/commonjs/icons/MenuPointHorizontal.js.map +1 -1
- package/lib/commonjs/icons/MenuPointVertical.js.map +1 -1
- package/lib/commonjs/icons/MessageFlag.js.map +1 -1
- package/lib/commonjs/icons/MessageIcon.js.map +1 -1
- package/lib/commonjs/icons/Mute.js.map +1 -1
- package/lib/commonjs/icons/Notification.js.map +1 -1
- package/lib/commonjs/icons/ODT.js.map +1 -1
- package/lib/commonjs/icons/PDF.js.map +1 -1
- package/lib/commonjs/icons/PPT.js.map +1 -1
- package/lib/commonjs/icons/PPTX.js.map +1 -1
- package/lib/commonjs/icons/Pause.js.map +1 -1
- package/lib/commonjs/icons/Picture.js.map +1 -1
- package/lib/commonjs/icons/Pin.js.map +1 -1
- package/lib/commonjs/icons/PinHeader.js.map +1 -1
- package/lib/commonjs/icons/Play.js.map +1 -1
- package/lib/commonjs/icons/RAR.js.map +1 -1
- package/lib/commonjs/icons/RTF.js.map +1 -1
- package/lib/commonjs/icons/Recorder.js.map +1 -1
- package/lib/commonjs/icons/Refresh.js.map +1 -1
- package/lib/commonjs/icons/SEVEN_Z.js.map +1 -1
- package/lib/commonjs/icons/Search.js.map +1 -1
- package/lib/commonjs/icons/SendRight.js.map +1 -1
- package/lib/commonjs/icons/SendUp.js.map +1 -1
- package/lib/commonjs/icons/Share.js.map +1 -1
- package/lib/commonjs/icons/ShareRightArrow.js.map +1 -1
- package/lib/commonjs/icons/Smile.js.map +1 -1
- package/lib/commonjs/icons/Sound.js.map +1 -1
- package/lib/commonjs/icons/TAR.js.map +1 -1
- package/lib/commonjs/icons/TXT.js.map +1 -1
- package/lib/commonjs/icons/ThreadReply.js.map +1 -1
- package/lib/commonjs/icons/ThumbsDownReaction.js.map +1 -1
- package/lib/commonjs/icons/ThumbsUpReaction.js.map +1 -1
- package/lib/commonjs/icons/Time.js.map +1 -1
- package/lib/commonjs/icons/Unknown.js.map +1 -1
- package/lib/commonjs/icons/Unpin.js.map +1 -1
- package/lib/commonjs/icons/User.js.map +1 -1
- package/lib/commonjs/icons/UserAdd.js.map +1 -1
- package/lib/commonjs/icons/UserAdmin.js.map +1 -1
- package/lib/commonjs/icons/UserDelete.js.map +1 -1
- package/lib/commonjs/icons/UserMinus.js.map +1 -1
- package/lib/commonjs/icons/Video.js.map +1 -1
- package/lib/commonjs/icons/Warning.js.map +1 -1
- package/lib/commonjs/icons/WutReaction.js.map +1 -1
- package/lib/commonjs/icons/XLS.js.map +1 -1
- package/lib/commonjs/icons/XLSX.js.map +1 -1
- package/lib/commonjs/icons/ZIP.js.map +1 -1
- package/lib/commonjs/icons/utils/base.js.map +1 -1
- package/lib/commonjs/version.json +1 -1
- package/lib/module/components/Channel/Channel.js +22 -17
- package/lib/module/components/Channel/Channel.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateInputMessageInputContext.js +3 -1
- package/lib/module/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateOwnCapabilitiesContext.js +22 -5
- package/lib/module/components/Channel/hooks/useCreateOwnCapabilitiesContext.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreview.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewMessage.js +2 -2
- package/lib/module/components/ChannelPreview/ChannelPreviewMessage.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewMessenger.js +1 -4
- package/lib/module/components/ChannelPreview/ChannelPreviewMessenger.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewStatus.js +4 -4
- package/lib/module/components/ChannelPreview/ChannelPreviewStatus.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewTitle.js +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewTitle.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewUnreadCount.js +2 -2
- package/lib/module/components/ChannelPreview/ChannelPreviewUnreadCount.js.map +1 -1
- package/lib/module/components/Message/Message.js +11 -8
- package/lib/module/components/Message/Message.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageContent.js +7 -3
- package/lib/module/components/Message/MessageSimple/MessageContent.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageSimple.js +7 -1
- package/lib/module/components/Message/MessageSimple/MessageSimple.js.map +1 -1
- package/lib/module/components/MessageInput/MessageInput.js +5 -5
- package/lib/module/components/MessageInput/MessageInput.js.map +1 -1
- package/lib/module/components/MessageInput/hooks/useCountdown.js.map +1 -1
- package/lib/module/components/MessageList/MessageList.js +32 -30
- package/lib/module/components/MessageList/MessageList.js.map +1 -1
- package/lib/module/components/MessageOverlay/MessageActionListItem.js +5 -5
- package/lib/module/components/MessageOverlay/MessageActionListItem.js.map +1 -1
- package/lib/module/contexts/channelsContext/ChannelsContext.js.map +1 -1
- package/lib/module/contexts/chatContext/ChatContext.js +2 -2
- package/lib/module/contexts/chatContext/ChatContext.js.map +1 -1
- package/lib/module/contexts/messageInputContext/MessageInputContext.js.map +1 -1
- package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +3 -1
- package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
- package/lib/module/contexts/themeContext/ThemeContext.js.map +1 -1
- package/lib/module/i18n/en.json +1 -1
- package/lib/module/i18n/es.json +56 -56
- package/lib/module/i18n/fr.json +56 -56
- package/lib/module/i18n/he.json +56 -56
- package/lib/module/i18n/hi.json +56 -56
- package/lib/module/i18n/it.json +56 -56
- package/lib/module/i18n/ja.json +56 -56
- package/lib/module/i18n/ko.json +56 -56
- package/lib/module/i18n/nl.json +56 -56
- package/lib/module/i18n/ru.json +56 -56
- package/lib/module/i18n/tr.json +56 -56
- package/lib/module/icons/ArrowRight.js.map +1 -1
- package/lib/module/icons/AtMentions.js.map +1 -1
- package/lib/module/icons/Attach.js.map +1 -1
- package/lib/module/icons/Audio.js.map +1 -1
- package/lib/module/icons/CSV.js.map +1 -1
- package/lib/module/icons/Camera.js.map +1 -1
- package/lib/module/icons/Check.js.map +1 -1
- package/lib/module/icons/CheckAll.js.map +1 -1
- package/lib/module/icons/CheckSend.js.map +1 -1
- package/lib/module/icons/CircleClose.js.map +1 -1
- package/lib/module/icons/CirclePlus.js.map +1 -1
- package/lib/module/icons/CircleRight.js.map +1 -1
- package/lib/module/icons/Close.js.map +1 -1
- package/lib/module/icons/Copy.js.map +1 -1
- package/lib/module/icons/CurveLineLeftUp.js.map +1 -1
- package/lib/module/icons/DOC.js.map +1 -1
- package/lib/module/icons/DOCX.js.map +1 -1
- package/lib/module/icons/Delete.js.map +1 -1
- package/lib/module/icons/Down.js.map +1 -1
- package/lib/module/icons/DownloadArrow.js.map +1 -1
- package/lib/module/icons/DownloadCloud.js.map +1 -1
- package/lib/module/icons/Edit.js.map +1 -1
- package/lib/module/icons/Error.js.map +1 -1
- package/lib/module/icons/Eye.js.map +1 -1
- package/lib/module/icons/Flag.js.map +1 -1
- package/lib/module/icons/Folder.js.map +1 -1
- package/lib/module/icons/GenericFile.js.map +1 -1
- package/lib/module/icons/GiphyIcon.js.map +1 -1
- package/lib/module/icons/Grid.js.map +1 -1
- package/lib/module/icons/Group.js.map +1 -1
- package/lib/module/icons/HTML.js.map +1 -1
- package/lib/module/icons/Imgur.js.map +1 -1
- package/lib/module/icons/LOLReaction.js.map +1 -1
- package/lib/module/icons/Lightning.js.map +1 -1
- package/lib/module/icons/Link.js.map +1 -1
- package/lib/module/icons/Logo.js.map +1 -1
- package/lib/module/icons/LoveReaction.js.map +1 -1
- package/lib/module/icons/MD.js.map +1 -1
- package/lib/module/icons/MailOpen.js.map +1 -1
- package/lib/module/icons/MenuPointHorizontal.js.map +1 -1
- package/lib/module/icons/MenuPointVertical.js.map +1 -1
- package/lib/module/icons/MessageFlag.js.map +1 -1
- package/lib/module/icons/MessageIcon.js.map +1 -1
- package/lib/module/icons/Mute.js.map +1 -1
- package/lib/module/icons/Notification.js.map +1 -1
- package/lib/module/icons/ODT.js.map +1 -1
- package/lib/module/icons/PDF.js.map +1 -1
- package/lib/module/icons/PPT.js.map +1 -1
- package/lib/module/icons/PPTX.js.map +1 -1
- package/lib/module/icons/Pause.js.map +1 -1
- package/lib/module/icons/Picture.js.map +1 -1
- package/lib/module/icons/Pin.js.map +1 -1
- package/lib/module/icons/PinHeader.js.map +1 -1
- package/lib/module/icons/Play.js.map +1 -1
- package/lib/module/icons/RAR.js.map +1 -1
- package/lib/module/icons/RTF.js.map +1 -1
- package/lib/module/icons/Recorder.js.map +1 -1
- package/lib/module/icons/Refresh.js.map +1 -1
- package/lib/module/icons/SEVEN_Z.js.map +1 -1
- package/lib/module/icons/Search.js.map +1 -1
- package/lib/module/icons/SendRight.js.map +1 -1
- package/lib/module/icons/SendUp.js.map +1 -1
- package/lib/module/icons/Share.js.map +1 -1
- package/lib/module/icons/ShareRightArrow.js.map +1 -1
- package/lib/module/icons/Smile.js.map +1 -1
- package/lib/module/icons/Sound.js.map +1 -1
- package/lib/module/icons/TAR.js.map +1 -1
- package/lib/module/icons/TXT.js.map +1 -1
- package/lib/module/icons/ThreadReply.js.map +1 -1
- package/lib/module/icons/ThumbsDownReaction.js.map +1 -1
- package/lib/module/icons/ThumbsUpReaction.js.map +1 -1
- package/lib/module/icons/Time.js.map +1 -1
- package/lib/module/icons/Unknown.js.map +1 -1
- package/lib/module/icons/Unpin.js.map +1 -1
- package/lib/module/icons/User.js.map +1 -1
- package/lib/module/icons/UserAdd.js.map +1 -1
- package/lib/module/icons/UserAdmin.js.map +1 -1
- package/lib/module/icons/UserDelete.js.map +1 -1
- package/lib/module/icons/UserMinus.js.map +1 -1
- package/lib/module/icons/Video.js.map +1 -1
- package/lib/module/icons/Warning.js.map +1 -1
- package/lib/module/icons/WutReaction.js.map +1 -1
- package/lib/module/icons/XLS.js.map +1 -1
- package/lib/module/icons/XLSX.js.map +1 -1
- package/lib/module/icons/ZIP.js.map +1 -1
- package/lib/module/icons/utils/base.js.map +1 -1
- package/lib/module/version.json +1 -1
- package/lib/typescript/components/Attachment/Attachment.d.ts +3 -3
- package/lib/typescript/components/Attachment/AttachmentActions.d.ts +2 -2
- package/lib/typescript/components/Attachment/AudioAttachment.d.ts +2 -2
- package/lib/typescript/components/Attachment/Card.d.ts +2 -2
- package/lib/typescript/components/Attachment/FileAttachment.d.ts +3 -3
- package/lib/typescript/components/Attachment/FileAttachmentGroup.d.ts +2 -2
- package/lib/typescript/components/Attachment/FileIcon.d.ts +1 -1
- package/lib/typescript/components/Attachment/Gallery.d.ts +2 -2
- package/lib/typescript/components/Attachment/GalleryImage.d.ts +2 -2
- package/lib/typescript/components/Attachment/Giphy.d.ts +2 -2
- package/lib/typescript/components/Attachment/ImageLoadingFailedIndicator.d.ts +1 -1
- package/lib/typescript/components/Attachment/ImageLoadingIndicator.d.ts +1 -1
- package/lib/typescript/components/Attachment/VideoThumbnail.d.ts +1 -1
- package/lib/typescript/components/Attachment/utils/buildGallery/types.d.ts +4 -4
- package/lib/typescript/components/Attachment/utils/getGalleryImageBorderRadius.d.ts +1 -1
- package/lib/typescript/components/Attachment/utils/openUrlSafely.d.ts +1 -1
- package/lib/typescript/components/AttachmentPicker/AttachmentPicker.d.ts +1 -1
- package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerError.d.ts +1 -1
- package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerItem.d.ts +1 -1
- package/lib/typescript/components/AttachmentPicker/components/ImageSelectorIcon.d.ts +1 -1
- package/lib/typescript/components/AutoCompleteInput/AutoCompleteInput.d.ts +2 -2
- package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionHeader.d.ts +2 -2
- package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionItem.d.ts +2 -2
- package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionList.d.ts +3 -3
- package/lib/typescript/components/Avatar/Avatar.d.ts +1 -1
- package/lib/typescript/components/Avatar/GroupAvatar.d.ts +1 -1
- package/lib/typescript/components/Channel/Channel.d.ts +2 -2
- package/lib/typescript/components/Channel/hooks/useCreateInputMessageInputContext.d.ts +62 -1
- package/lib/typescript/components/Channel/hooks/useTargetedMessage.d.ts +1 -1
- package/lib/typescript/components/ChannelList/ChannelList.d.ts +1 -1
- package/lib/typescript/components/ChannelList/ChannelListHeaderErrorIndicator.d.ts +1 -1
- package/lib/typescript/components/ChannelList/ChannelListMessenger.d.ts +2 -2
- package/lib/typescript/components/ChannelList/hooks/listeners/useAddedToChannelNotification.d.ts +1 -1
- package/lib/typescript/components/ChannelList/hooks/listeners/useChannelDeleted.d.ts +1 -1
- package/lib/typescript/components/ChannelList/hooks/listeners/useChannelHidden.d.ts +1 -1
- package/lib/typescript/components/ChannelList/hooks/listeners/useChannelTruncated.d.ts +1 -1
- package/lib/typescript/components/ChannelList/hooks/listeners/useChannelUpdated.d.ts +1 -1
- package/lib/typescript/components/ChannelList/hooks/listeners/useChannelVisible.d.ts +1 -1
- package/lib/typescript/components/ChannelList/hooks/listeners/useNewMessage.d.ts +1 -1
- package/lib/typescript/components/ChannelList/hooks/listeners/useNewMessageNotification.d.ts +1 -1
- package/lib/typescript/components/ChannelList/hooks/listeners/useRemovedFromChannelNotification.d.ts +1 -1
- package/lib/typescript/components/ChannelList/hooks/listeners/useUserPresence.d.ts +1 -1
- package/lib/typescript/components/ChannelList/hooks/usePaginatedChannels.d.ts +3 -3
- package/lib/typescript/components/ChannelList/utils.d.ts +2 -2
- package/lib/typescript/components/ChannelPreview/ChannelAvatar.d.ts +2 -2
- package/lib/typescript/components/ChannelPreview/ChannelPreview.d.ts +3 -3
- package/lib/typescript/components/ChannelPreview/ChannelPreviewMessage.d.ts +4 -1
- package/lib/typescript/components/ChannelPreview/ChannelPreviewMessenger.d.ts +2 -2
- package/lib/typescript/components/ChannelPreview/ChannelPreviewStatus.d.ts +1 -2
- package/lib/typescript/components/ChannelPreview/ChannelPreviewTitle.d.ts +5 -4
- package/lib/typescript/components/ChannelPreview/ChannelPreviewUnreadCount.d.ts +5 -3
- package/lib/typescript/components/ChannelPreview/hooks/useChannelPreviewDisplayName.d.ts +1 -1
- package/lib/typescript/components/ChannelPreview/hooks/useLatestMessagePreview.d.ts +2 -2
- package/lib/typescript/components/Chat/Chat.d.ts +1 -1
- package/lib/typescript/components/Chat/hooks/handleEventToSyncDB.d.ts +1 -1
- package/lib/typescript/components/Chat/hooks/useSyncDatabase.d.ts +1 -1
- package/lib/typescript/components/ImageGallery/ImageGallery.d.ts +3 -3
- package/lib/typescript/components/ImageGallery/components/AnimatedGalleryImage.d.ts +1 -1
- package/lib/typescript/components/ImageGallery/components/AnimatedGalleryVideo.d.ts +1 -1
- package/lib/typescript/components/ImageGallery/components/ImageGalleryFooter.d.ts +6 -6
- package/lib/typescript/components/ImageGallery/components/ImageGalleryHeader.d.ts +3 -3
- package/lib/typescript/components/ImageGallery/components/ImageGalleryOverlay.d.ts +1 -1
- package/lib/typescript/components/ImageGallery/components/ImageGrid.d.ts +4 -4
- package/lib/typescript/components/ImageGallery/components/ImageGridHandle.d.ts +3 -3
- package/lib/typescript/components/Indicators/EmptyStateIndicator.d.ts +1 -1
- package/lib/typescript/components/Indicators/LoadingDot.d.ts +1 -1
- package/lib/typescript/components/Indicators/LoadingDots.d.ts +1 -1
- package/lib/typescript/components/Indicators/LoadingErrorIndicator.d.ts +1 -1
- package/lib/typescript/components/Indicators/LoadingIndicator.d.ts +1 -1
- package/lib/typescript/components/Message/Message.d.ts +18 -9
- package/lib/typescript/components/Message/MessageSimple/MessageAvatar.d.ts +2 -2
- package/lib/typescript/components/Message/MessageSimple/MessageBounce.d.ts +2 -2
- package/lib/typescript/components/Message/MessageSimple/MessageContent.d.ts +2 -2
- package/lib/typescript/components/Message/MessageSimple/MessageDeleted.d.ts +2 -2
- package/lib/typescript/components/Message/MessageSimple/MessageError.d.ts +1 -1
- package/lib/typescript/components/Message/MessageSimple/MessageFooter.d.ts +2 -2
- package/lib/typescript/components/Message/MessageSimple/MessagePinnedHeader.d.ts +2 -2
- package/lib/typescript/components/Message/MessageSimple/MessageReplies.d.ts +2 -2
- package/lib/typescript/components/Message/MessageSimple/MessageRepliesAvatars.d.ts +2 -2
- package/lib/typescript/components/Message/MessageSimple/MessageSimple.d.ts +2 -2
- package/lib/typescript/components/Message/MessageSimple/MessageStatus.d.ts +2 -2
- package/lib/typescript/components/Message/MessageSimple/MessageTextContainer.d.ts +3 -3
- package/lib/typescript/components/Message/MessageSimple/ReactionList.d.ts +3 -3
- package/lib/typescript/components/Message/MessageSimple/utils/generateMarkdownText.d.ts +1 -1
- package/lib/typescript/components/Message/MessageSimple/utils/renderText.d.ts +2 -2
- package/lib/typescript/components/Message/utils/messageActions.d.ts +2 -2
- package/lib/typescript/components/MessageInput/AttachButton.d.ts +2 -2
- package/lib/typescript/components/MessageInput/CommandsButton.d.ts +2 -2
- package/lib/typescript/components/MessageInput/CooldownTimer.d.ts +1 -1
- package/lib/typescript/components/MessageInput/FileUploadPreview.d.ts +2 -2
- package/lib/typescript/components/MessageInput/ImageUploadPreview.d.ts +2 -2
- package/lib/typescript/components/MessageInput/InputButtons.d.ts +2 -2
- package/lib/typescript/components/MessageInput/MessageInput.d.ts +2 -2
- package/lib/typescript/components/MessageInput/MoreOptionsButton.d.ts +2 -2
- package/lib/typescript/components/MessageInput/SendButton.d.ts +2 -2
- package/lib/typescript/components/MessageInput/ShowThreadMessageInChannelButton.d.ts +2 -2
- package/lib/typescript/components/MessageInput/UploadProgressIndicator.d.ts +1 -1
- package/lib/typescript/components/MessageInput/components/InputEditingStateHeader.d.ts +2 -2
- package/lib/typescript/components/MessageInput/components/InputGiphySearch.d.ts +2 -2
- package/lib/typescript/components/MessageInput/components/InputReplyStateHeader.d.ts +2 -2
- package/lib/typescript/components/MessageList/DateHeader.d.ts +1 -1
- package/lib/typescript/components/MessageList/InlineDateSeparator.d.ts +1 -1
- package/lib/typescript/components/MessageList/InlineLoadingMoreIndicator.d.ts +1 -1
- package/lib/typescript/components/MessageList/InlineLoadingMoreRecentIndicator.d.ts +1 -1
- package/lib/typescript/components/MessageList/InlineLoadingMoreThreadIndicator.d.ts +1 -1
- package/lib/typescript/components/MessageList/MessageList.d.ts +2 -2
- package/lib/typescript/components/MessageList/MessageSystem.d.ts +1 -1
- package/lib/typescript/components/MessageList/ScrollToBottomButton.d.ts +1 -1
- package/lib/typescript/components/MessageList/TypingIndicatorContainer.d.ts +2 -2
- package/lib/typescript/components/MessageList/hooks/useMessageList.d.ts +4 -4
- package/lib/typescript/components/MessageList/utils/filterTypingUsers.d.ts +1 -1
- package/lib/typescript/components/MessageList/utils/getDateSeparators.d.ts +2 -2
- package/lib/typescript/components/MessageList/utils/getGroupStyles.d.ts +1 -1
- package/lib/typescript/components/MessageList/utils/getReadStates.d.ts +1 -0
- package/lib/typescript/components/MessageOverlay/MessageActionList.d.ts +2 -2
- package/lib/typescript/components/MessageOverlay/MessageActionListItem.d.ts +19 -3
- package/lib/typescript/components/MessageOverlay/MessageOverlay.d.ts +2 -2
- package/lib/typescript/components/MessageOverlay/OverlayBackdrop.d.ts +1 -1
- package/lib/typescript/components/MessageOverlay/OverlayReactionList.d.ts +3 -3
- package/lib/typescript/components/MessageOverlay/OverlayReactions.d.ts +2 -2
- package/lib/typescript/components/MessageOverlay/OverlayReactionsAvatar.d.ts +1 -1
- package/lib/typescript/components/MessageOverlay/hooks/useMessageActionAnimation.d.ts +1 -1
- package/lib/typescript/components/ProgressControl/ProgressControl.d.ts +1 -1
- package/lib/typescript/components/RTLComponents/WritingDirectionAwareText.d.ts +1 -1
- package/lib/typescript/components/Reply/Reply.d.ts +2 -2
- package/lib/typescript/components/Spinner/Spinner.d.ts +1 -1
- package/lib/typescript/components/Thread/Thread.d.ts +2 -2
- package/lib/typescript/contexts/activeChannelsRefContext/ActiveChannelsRefContext.d.ts +1 -1
- package/lib/typescript/contexts/attachmentPickerContext/AttachmentPickerContext.d.ts +2 -2
- package/lib/typescript/contexts/channelContext/ChannelContext.d.ts +1 -1
- package/lib/typescript/contexts/channelsContext/ChannelsContext.d.ts +2 -2
- package/lib/typescript/contexts/channelsStateContext/ChannelsStateContext.d.ts +5 -5
- package/lib/typescript/contexts/channelsStateContext/useChannelState.d.ts +1 -1
- package/lib/typescript/contexts/chatContext/ChatContext.d.ts +4 -1
- package/lib/typescript/contexts/debugContext/DebugContext.d.ts +2 -2
- package/lib/typescript/contexts/imageGalleryContext/ImageGalleryContext.d.ts +2 -2
- package/lib/typescript/contexts/keyboardContext/KeyboardContext.d.ts +1 -1
- package/lib/typescript/contexts/messageContext/MessageContext.d.ts +3 -3
- package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts +6 -6
- package/lib/typescript/contexts/messageInputContext/hooks/useCreateMessageInputContext.d.ts +1 -1
- package/lib/typescript/contexts/messageInputContext/hooks/useMessageDetailsForState.d.ts +1 -1
- package/lib/typescript/contexts/messageOverlayContext/MessageOverlayContext.d.ts +2 -2
- package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts +3 -3
- package/lib/typescript/contexts/overlayContext/OverlayContext.d.ts +3 -3
- package/lib/typescript/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.d.ts +2 -2
- package/lib/typescript/contexts/paginatedMessageListContext/PaginatedMessageListContext.d.ts +1 -1
- package/lib/typescript/contexts/suggestionsContext/SuggestionsContext.d.ts +6 -6
- package/lib/typescript/contexts/themeContext/ThemeContext.d.ts +5 -5
- package/lib/typescript/contexts/themeContext/utils/theme.d.ts +2 -2
- package/lib/typescript/contexts/threadContext/ThreadContext.d.ts +1 -1
- package/lib/typescript/contexts/translationContext/TranslationContext.d.ts +5 -5
- package/lib/typescript/contexts/typingContext/TypingContext.d.ts +1 -1
- package/lib/typescript/emoji-data/index.d.ts +2 -2
- package/lib/typescript/hooks/useAppStateListener.d.ts +1 -1
- package/lib/typescript/hooks/useStreami18n.d.ts +1 -1
- package/lib/typescript/hooks/useViewport.d.ts +1 -1
- package/lib/typescript/i18n/en.json +1 -1
- package/lib/typescript/i18n/es.json +56 -56
- package/lib/typescript/i18n/fr.json +56 -56
- package/lib/typescript/i18n/he.json +56 -56
- package/lib/typescript/i18n/hi.json +56 -56
- package/lib/typescript/i18n/it.json +56 -56
- package/lib/typescript/i18n/ja.json +56 -56
- package/lib/typescript/i18n/ko.json +56 -56
- package/lib/typescript/i18n/nl.json +56 -56
- package/lib/typescript/i18n/ru.json +56 -56
- package/lib/typescript/i18n/tr.json +56 -56
- package/lib/typescript/icons/ArrowRight.d.ts +2 -2
- package/lib/typescript/icons/AtMentions.d.ts +2 -2
- package/lib/typescript/icons/Attach.d.ts +2 -2
- package/lib/typescript/icons/Audio.d.ts +2 -2
- package/lib/typescript/icons/CSV.d.ts +2 -2
- package/lib/typescript/icons/Camera.d.ts +2 -2
- package/lib/typescript/icons/Check.d.ts +2 -2
- package/lib/typescript/icons/CheckAll.d.ts +2 -2
- package/lib/typescript/icons/CheckSend.d.ts +2 -2
- package/lib/typescript/icons/CircleClose.d.ts +2 -2
- package/lib/typescript/icons/CirclePlus.d.ts +2 -2
- package/lib/typescript/icons/CircleRight.d.ts +2 -2
- package/lib/typescript/icons/Close.d.ts +2 -2
- package/lib/typescript/icons/CurveLineLeftUp.d.ts +2 -2
- package/lib/typescript/icons/DOC.d.ts +2 -2
- package/lib/typescript/icons/DOCX.d.ts +2 -2
- package/lib/typescript/icons/Delete.d.ts +2 -2
- package/lib/typescript/icons/Down.d.ts +2 -2
- package/lib/typescript/icons/DownloadArrow.d.ts +2 -2
- package/lib/typescript/icons/DownloadCloud.d.ts +2 -2
- package/lib/typescript/icons/Edit.d.ts +2 -2
- package/lib/typescript/icons/Error.d.ts +2 -2
- package/lib/typescript/icons/Eye.d.ts +2 -2
- package/lib/typescript/icons/Flag.d.ts +2 -2
- package/lib/typescript/icons/Folder.d.ts +2 -2
- package/lib/typescript/icons/GenericFile.d.ts +2 -2
- package/lib/typescript/icons/GiphyIcon.d.ts +2 -2
- package/lib/typescript/icons/Grid.d.ts +2 -2
- package/lib/typescript/icons/Group.d.ts +2 -2
- package/lib/typescript/icons/HTML.d.ts +2 -2
- package/lib/typescript/icons/Imgur.d.ts +2 -2
- package/lib/typescript/icons/LOLReaction.d.ts +2 -2
- package/lib/typescript/icons/Lightning.d.ts +2 -2
- package/lib/typescript/icons/Link.d.ts +2 -2
- package/lib/typescript/icons/Loading.d.ts +1 -1
- package/lib/typescript/icons/Logo.d.ts +2 -2
- package/lib/typescript/icons/LoveReaction.d.ts +2 -2
- package/lib/typescript/icons/MD.d.ts +2 -2
- package/lib/typescript/icons/MailOpen.d.ts +2 -2
- package/lib/typescript/icons/MenuPointHorizontal.d.ts +2 -2
- package/lib/typescript/icons/MenuPointVertical.d.ts +2 -2
- package/lib/typescript/icons/MessageFlag.d.ts +2 -2
- package/lib/typescript/icons/MessageIcon.d.ts +2 -2
- package/lib/typescript/icons/Mute.d.ts +2 -2
- package/lib/typescript/icons/Notification.d.ts +2 -2
- package/lib/typescript/icons/ODT.d.ts +2 -2
- package/lib/typescript/icons/PDF.d.ts +2 -2
- package/lib/typescript/icons/PPT.d.ts +2 -2
- package/lib/typescript/icons/PPTX.d.ts +2 -2
- package/lib/typescript/icons/Pause.d.ts +2 -2
- package/lib/typescript/icons/Picture.d.ts +2 -2
- package/lib/typescript/icons/Pin.d.ts +2 -2
- package/lib/typescript/icons/PinHeader.d.ts +2 -2
- package/lib/typescript/icons/Play.d.ts +2 -2
- package/lib/typescript/icons/RAR.d.ts +2 -2
- package/lib/typescript/icons/RTF.d.ts +2 -2
- package/lib/typescript/icons/Recorder.d.ts +2 -2
- package/lib/typescript/icons/Refresh.d.ts +2 -2
- package/lib/typescript/icons/SEVEN_Z.d.ts +2 -2
- package/lib/typescript/icons/Search.d.ts +2 -2
- package/lib/typescript/icons/SendRight.d.ts +2 -2
- package/lib/typescript/icons/SendUp.d.ts +2 -2
- package/lib/typescript/icons/Share.d.ts +2 -2
- package/lib/typescript/icons/ShareRightArrow.d.ts +2 -2
- package/lib/typescript/icons/Smile.d.ts +2 -2
- package/lib/typescript/icons/Sound.d.ts +2 -2
- package/lib/typescript/icons/TAR.d.ts +2 -2
- package/lib/typescript/icons/TXT.d.ts +2 -2
- package/lib/typescript/icons/ThreadReply.d.ts +2 -2
- package/lib/typescript/icons/ThumbsDownReaction.d.ts +2 -2
- package/lib/typescript/icons/ThumbsUpReaction.d.ts +2 -2
- package/lib/typescript/icons/Time.d.ts +2 -2
- package/lib/typescript/icons/Unknown.d.ts +2 -2
- package/lib/typescript/icons/Unpin.d.ts +2 -2
- package/lib/typescript/icons/User.d.ts +2 -2
- package/lib/typescript/icons/UserAdd.d.ts +2 -2
- package/lib/typescript/icons/UserAdmin.d.ts +2 -2
- package/lib/typescript/icons/UserDelete.d.ts +2 -2
- package/lib/typescript/icons/UserMinus.d.ts +2 -2
- package/lib/typescript/icons/Video.d.ts +2 -2
- package/lib/typescript/icons/Warning.d.ts +2 -2
- package/lib/typescript/icons/WutReaction.d.ts +2 -2
- package/lib/typescript/icons/XLS.d.ts +2 -2
- package/lib/typescript/icons/XLSX.d.ts +2 -2
- package/lib/typescript/icons/ZIP.d.ts +2 -2
- package/lib/typescript/icons/utils/base.d.ts +5 -5
- package/lib/typescript/native.d.ts +26 -26
- package/lib/typescript/store/QuickSqliteClient.d.ts +1 -1
- package/lib/typescript/store/apis/upsertChannels.d.ts +2 -2
- package/lib/typescript/store/apis/upsertCidsForQuery.d.ts +2 -2
- package/lib/typescript/store/mappers/mapDateTimeToStorable.d.ts +1 -1
- package/lib/typescript/store/schema.d.ts +2 -2
- package/lib/typescript/store/sqlite-utils/appendOrderByClause.d.ts +1 -1
- package/lib/typescript/store/sqlite-utils/appendWhereCluase.d.ts +1 -1
- package/lib/typescript/store/sqlite-utils/createUpsertQuery.d.ts +1 -1
- package/lib/typescript/store/types.d.ts +8 -8
- package/lib/typescript/types/types.d.ts +7 -7
- package/lib/typescript/utils/StreamChatRN.d.ts +1 -1
- package/lib/typescript/utils/Streami18n.d.ts +2 -2
- package/lib/typescript/utils/compressImage.d.ts +1 -1
- package/lib/typescript/utils/getResizedImageUrl.d.ts +1 -1
- package/lib/typescript/utils/utils.d.ts +14 -14
- package/package.json +3 -7
- package/src/components/Channel/Channel.tsx +9 -3
- package/src/components/Channel/hooks/useCreateInputMessageInputContext.ts +11 -1
- package/src/components/Channel/hooks/useCreateOwnCapabilitiesContext.ts +24 -6
- package/src/components/ChannelPreview/ChannelPreview.tsx +1 -1
- package/src/components/ChannelPreview/ChannelPreviewMessage.tsx +3 -0
- package/src/components/ChannelPreview/ChannelPreviewMessenger.tsx +2 -3
- package/src/components/ChannelPreview/ChannelPreviewStatus.tsx +1 -3
- package/src/components/ChannelPreview/ChannelPreviewTitle.tsx +5 -12
- package/src/components/ChannelPreview/ChannelPreviewUnreadCount.tsx +5 -4
- package/src/components/Message/Message.tsx +15 -1
- package/src/components/Message/MessageSimple/MessageContent.tsx +5 -0
- package/src/components/Message/MessageSimple/MessageSimple.tsx +8 -2
- package/src/components/MessageInput/MessageInput.tsx +3 -7
- package/src/components/MessageInput/hooks/useCountdown.ts +1 -1
- package/src/components/MessageList/MessageList.tsx +3 -1
- package/src/components/MessageOverlay/MessageActionListItem.tsx +16 -0
- package/src/contexts/channelsContext/ChannelsContext.tsx +1 -1
- package/src/contexts/chatContext/ChatContext.tsx +3 -0
- package/src/contexts/messageInputContext/MessageInputContext.tsx +1 -1
- package/src/contexts/messageInputContext/hooks/useCreateMessageInputContext.ts +3 -0
- package/src/contexts/themeContext/ThemeContext.tsx +3 -3
- package/src/i18n/en.json +1 -1
- package/src/i18n/es.json +56 -56
- package/src/i18n/fr.json +56 -56
- package/src/i18n/he.json +56 -56
- package/src/i18n/hi.json +56 -56
- package/src/i18n/it.json +56 -56
- package/src/i18n/ja.json +56 -56
- package/src/i18n/ko.json +56 -56
- package/src/i18n/nl.json +56 -56
- package/src/i18n/ru.json +56 -56
- package/src/i18n/tr.json +56 -56
- package/src/icons/ArrowRight.tsx +1 -1
- package/src/icons/AtMentions.tsx +1 -1
- package/src/icons/Attach.tsx +1 -1
- package/src/icons/Audio.tsx +1 -1
- package/src/icons/CSV.tsx +1 -1
- package/src/icons/Camera.tsx +1 -1
- package/src/icons/Check.tsx +1 -1
- package/src/icons/CheckAll.tsx +1 -1
- package/src/icons/CheckSend.tsx +1 -1
- package/src/icons/CircleClose.tsx +1 -1
- package/src/icons/CirclePlus.tsx +1 -1
- package/src/icons/CircleRight.tsx +1 -1
- package/src/icons/Close.tsx +1 -1
- package/src/icons/Copy.tsx +1 -1
- package/src/icons/CurveLineLeftUp.tsx +1 -1
- package/src/icons/DOC.tsx +1 -1
- package/src/icons/DOCX.tsx +1 -1
- package/src/icons/Delete.tsx +1 -1
- package/src/icons/Down.tsx +1 -1
- package/src/icons/DownloadArrow.tsx +1 -1
- package/src/icons/DownloadCloud.tsx +1 -1
- package/src/icons/Edit.tsx +1 -1
- package/src/icons/Error.tsx +1 -1
- package/src/icons/Eye.tsx +1 -1
- package/src/icons/Flag.tsx +1 -1
- package/src/icons/Folder.tsx +1 -1
- package/src/icons/GenericFile.tsx +1 -1
- package/src/icons/GiphyIcon.tsx +1 -1
- package/src/icons/Grid.tsx +1 -1
- package/src/icons/Group.tsx +1 -1
- package/src/icons/HTML.tsx +1 -1
- package/src/icons/Imgur.tsx +1 -1
- package/src/icons/LOLReaction.tsx +1 -1
- package/src/icons/Lightning.tsx +1 -1
- package/src/icons/Link.tsx +1 -1
- package/src/icons/Logo.tsx +1 -1
- package/src/icons/LoveReaction.tsx +1 -1
- package/src/icons/MD.tsx +1 -1
- package/src/icons/MailOpen.tsx +1 -1
- package/src/icons/MenuPointHorizontal.tsx +1 -1
- package/src/icons/MenuPointVertical.tsx +1 -1
- package/src/icons/MessageFlag.tsx +1 -1
- package/src/icons/MessageIcon.tsx +1 -1
- package/src/icons/Mute.tsx +1 -1
- package/src/icons/Notification.tsx +1 -1
- package/src/icons/ODT.tsx +1 -1
- package/src/icons/PDF.tsx +1 -1
- package/src/icons/PPT.tsx +1 -1
- package/src/icons/PPTX.tsx +1 -1
- package/src/icons/Pause.tsx +1 -1
- package/src/icons/Picture.tsx +1 -1
- package/src/icons/Pin.tsx +1 -1
- package/src/icons/PinHeader.tsx +1 -1
- package/src/icons/Play.tsx +1 -1
- package/src/icons/RAR.tsx +1 -1
- package/src/icons/RTF.tsx +1 -1
- package/src/icons/Recorder.tsx +1 -1
- package/src/icons/Refresh.tsx +1 -1
- package/src/icons/SEVEN_Z.tsx +1 -1
- package/src/icons/Search.tsx +1 -1
- package/src/icons/SendRight.tsx +1 -1
- package/src/icons/SendUp.tsx +1 -1
- package/src/icons/Share.tsx +1 -1
- package/src/icons/ShareRightArrow.tsx +1 -1
- package/src/icons/Smile.tsx +1 -1
- package/src/icons/Sound.tsx +1 -1
- package/src/icons/TAR.tsx +1 -1
- package/src/icons/TXT.tsx +1 -1
- package/src/icons/ThreadReply.tsx +1 -1
- package/src/icons/ThumbsDownReaction.tsx +1 -1
- package/src/icons/ThumbsUpReaction.tsx +1 -1
- package/src/icons/Time.tsx +1 -1
- package/src/icons/Unknown.tsx +1 -1
- package/src/icons/Unpin.tsx +1 -1
- package/src/icons/User.tsx +1 -1
- package/src/icons/UserAdd.tsx +1 -1
- package/src/icons/UserAdmin.tsx +1 -1
- package/src/icons/UserDelete.tsx +1 -1
- package/src/icons/UserMinus.tsx +1 -1
- package/src/icons/Video.tsx +1 -1
- package/src/icons/Warning.tsx +1 -1
- package/src/icons/WutReaction.tsx +1 -1
- package/src/icons/XLS.tsx +1 -1
- package/src/icons/XLSX.tsx +1 -1
- package/src/icons/ZIP.tsx +1 -1
- package/src/icons/utils/base.tsx +2 -2
- package/src/version.json +1 -1
|
@@ -2,26 +2,26 @@ import type React from 'react';
|
|
|
2
2
|
import { FlatList as DefaultFlatList, StyleProp, ViewStyle } from 'react-native';
|
|
3
3
|
import type { NetInfoSubscription } from '@react-native-community/netinfo';
|
|
4
4
|
import type { Asset, File } from './types/types';
|
|
5
|
-
|
|
5
|
+
type CompressImage = ({ compressImageQuality, height, uri, width, }: {
|
|
6
6
|
compressImageQuality: number;
|
|
7
7
|
height: number;
|
|
8
8
|
uri: string;
|
|
9
9
|
width: number;
|
|
10
10
|
}) => Promise<string> | never;
|
|
11
11
|
export declare let compressImage: CompressImage;
|
|
12
|
-
|
|
12
|
+
type DeleteFile = ({ uri }: {
|
|
13
13
|
uri: string;
|
|
14
14
|
}) => Promise<boolean> | never;
|
|
15
15
|
export declare let deleteFile: DeleteFile;
|
|
16
|
-
|
|
16
|
+
type GetLocalAssetUri = (uriOrAssetId: string) => Promise<string | undefined> | never;
|
|
17
17
|
export declare let getLocalAssetUri: GetLocalAssetUri;
|
|
18
|
-
|
|
18
|
+
type OniOS14LibrarySelectionChange = (callback: () => void) => {
|
|
19
19
|
unsubscribe: () => void;
|
|
20
20
|
};
|
|
21
21
|
export declare let oniOS14GalleryLibrarySelectionChange: OniOS14LibrarySelectionChange;
|
|
22
|
-
|
|
22
|
+
type iOS14RefreshGallerySelection = () => Promise<void>;
|
|
23
23
|
export declare let iOS14RefreshGallerySelection: iOS14RefreshGallerySelection;
|
|
24
|
-
|
|
24
|
+
type GetPhotos = ({ after, first }: {
|
|
25
25
|
first: number;
|
|
26
26
|
after?: string;
|
|
27
27
|
}) => Promise<{
|
|
@@ -33,34 +33,34 @@ declare type GetPhotos = ({ after, first }: {
|
|
|
33
33
|
iOSLimited: boolean;
|
|
34
34
|
}> | never;
|
|
35
35
|
export declare let getPhotos: GetPhotos;
|
|
36
|
-
|
|
36
|
+
type NetInfo = {
|
|
37
37
|
addEventListener: (listener: (isConnected: boolean) => void) => NetInfoSubscription | never;
|
|
38
38
|
fetch: (requestedInterface?: string | undefined) => Promise<boolean> | never;
|
|
39
39
|
};
|
|
40
40
|
export declare let FlatList: typeof DefaultFlatList;
|
|
41
41
|
export declare let NetInfo: NetInfo;
|
|
42
|
-
|
|
42
|
+
type PickDocument = ({ maxNumberOfFiles }: {
|
|
43
43
|
maxNumberOfFiles?: number;
|
|
44
44
|
}) => Promise<{
|
|
45
45
|
cancelled: boolean;
|
|
46
46
|
assets?: File[];
|
|
47
47
|
}> | never;
|
|
48
48
|
export declare let pickDocument: PickDocument;
|
|
49
|
-
|
|
49
|
+
type SaveFileOptions = {
|
|
50
50
|
fileName: string;
|
|
51
51
|
fromUrl: string;
|
|
52
52
|
};
|
|
53
|
-
|
|
53
|
+
type SaveFile = (options: SaveFileOptions) => Promise<string> | never;
|
|
54
54
|
export declare let saveFile: SaveFile;
|
|
55
|
-
|
|
55
|
+
type SetClipboardString = (text: string) => Promise<void> | never;
|
|
56
56
|
export declare let setClipboardString: SetClipboardString;
|
|
57
|
-
|
|
57
|
+
type ShareOptions = {
|
|
58
58
|
type?: string;
|
|
59
59
|
url?: string;
|
|
60
60
|
};
|
|
61
|
-
|
|
61
|
+
type ShareImage = (options: ShareOptions) => Promise<boolean> | never;
|
|
62
62
|
export declare let shareImage: ShareImage;
|
|
63
|
-
|
|
63
|
+
type Photo = (Omit<Asset, 'source'> & {
|
|
64
64
|
cancelled: false;
|
|
65
65
|
source: 'camera';
|
|
66
66
|
askToOpenSettings?: boolean;
|
|
@@ -68,14 +68,14 @@ declare type Photo = (Omit<Asset, 'source'> & {
|
|
|
68
68
|
cancelled: true;
|
|
69
69
|
askToOpenSettings?: boolean;
|
|
70
70
|
};
|
|
71
|
-
|
|
71
|
+
type TakePhoto = (options: {
|
|
72
72
|
compressImageQuality?: number;
|
|
73
73
|
}) => Promise<Photo> | never;
|
|
74
74
|
export declare let takePhoto: TakePhoto;
|
|
75
|
-
|
|
76
|
-
|
|
75
|
+
type HapticFeedbackMethod = 'impactHeavy' | 'impactLight' | 'impactMedium' | 'notificationError' | 'notificationSuccess' | 'notificationWarning' | 'selection';
|
|
76
|
+
type TriggerHaptic = (method: HapticFeedbackMethod) => void | never;
|
|
77
77
|
export declare let triggerHaptic: TriggerHaptic;
|
|
78
|
-
export
|
|
78
|
+
export type PlaybackStatus = {
|
|
79
79
|
didJustFinish: boolean;
|
|
80
80
|
durationMillis: number;
|
|
81
81
|
error: string;
|
|
@@ -85,7 +85,7 @@ export declare type PlaybackStatus = {
|
|
|
85
85
|
isPlaying: boolean;
|
|
86
86
|
positionMillis: number;
|
|
87
87
|
};
|
|
88
|
-
export
|
|
88
|
+
export type AVPlaybackStatusToSet = {
|
|
89
89
|
isLooping: boolean;
|
|
90
90
|
isMuted: boolean;
|
|
91
91
|
positionMillis: number;
|
|
@@ -96,7 +96,7 @@ export declare type AVPlaybackStatusToSet = {
|
|
|
96
96
|
volume: number;
|
|
97
97
|
};
|
|
98
98
|
export declare let SDK: string;
|
|
99
|
-
export
|
|
99
|
+
export type SoundOptions = {
|
|
100
100
|
basePathOrCallback?: string;
|
|
101
101
|
callback?: () => void;
|
|
102
102
|
filenameOrFile?: string;
|
|
@@ -106,7 +106,7 @@ export declare type SoundOptions = {
|
|
|
106
106
|
uri: string;
|
|
107
107
|
};
|
|
108
108
|
};
|
|
109
|
-
export
|
|
109
|
+
export type SoundReturnType = {
|
|
110
110
|
paused: boolean;
|
|
111
111
|
testID: string;
|
|
112
112
|
getDuration?: () => number;
|
|
@@ -133,19 +133,19 @@ export declare type SoundReturnType = {
|
|
|
133
133
|
unloadAsync?: () => void;
|
|
134
134
|
uri?: string;
|
|
135
135
|
};
|
|
136
|
-
export
|
|
136
|
+
export type SoundType = {
|
|
137
137
|
initializeSound: (source?: {
|
|
138
138
|
uri: string;
|
|
139
139
|
}, initialStatus?: Partial<AVPlaybackStatusToSet>, onPlaybackStatusUpdate?: (playbackStatus: PlaybackStatus) => void) => Promise<SoundReturnType | null>;
|
|
140
140
|
Player: React.ComponentType<SoundReturnType> | null;
|
|
141
141
|
};
|
|
142
142
|
export declare let Sound: SoundType;
|
|
143
|
-
export
|
|
143
|
+
export type VideoProgressData = {
|
|
144
144
|
currentTime: number;
|
|
145
145
|
seekableDuration: number;
|
|
146
146
|
playableDuration?: number;
|
|
147
147
|
};
|
|
148
|
-
export
|
|
148
|
+
export type VideoPayloadData = {
|
|
149
149
|
duration: number;
|
|
150
150
|
audioTracks?: {
|
|
151
151
|
index: number;
|
|
@@ -173,7 +173,7 @@ export declare type VideoPayloadData = {
|
|
|
173
173
|
width: number;
|
|
174
174
|
}[];
|
|
175
175
|
};
|
|
176
|
-
export
|
|
176
|
+
export type VideoType = {
|
|
177
177
|
paused: boolean;
|
|
178
178
|
testID: string;
|
|
179
179
|
uri: string;
|
|
@@ -195,7 +195,7 @@ export declare type VideoType = {
|
|
|
195
195
|
style?: StyleProp<ViewStyle>;
|
|
196
196
|
};
|
|
197
197
|
export declare let Video: React.ComponentType<VideoType>;
|
|
198
|
-
|
|
198
|
+
type Handlers = {
|
|
199
199
|
compressImage?: CompressImage;
|
|
200
200
|
deleteFile?: DeleteFile;
|
|
201
201
|
FlatList?: typeof DefaultFlatList;
|
|
@@ -13,7 +13,7 @@ export declare class QuickSqliteClient {
|
|
|
13
13
|
static openDB: () => void;
|
|
14
14
|
static closeDB: () => void;
|
|
15
15
|
static executeSqlBatch: (queries: PreparedQueries[]) => void;
|
|
16
|
-
static executeSql: (query: string, params?: string[]
|
|
16
|
+
static executeSql: (query: string, params?: string[]) => any[];
|
|
17
17
|
static dropTables: () => void;
|
|
18
18
|
static deleteDatabase: () => boolean;
|
|
19
19
|
static initializeDatabase: () => void;
|
|
@@ -2,8 +2,8 @@ import type { ChannelAPIResponse, ChannelFilters, ChannelSort } from 'stream-cha
|
|
|
2
2
|
import type { PreparedQueries } from '../types';
|
|
3
3
|
export declare const upsertChannels: ({ channels, filters, flush, isLatestMessagesSet, sort, }: {
|
|
4
4
|
channels: ChannelAPIResponse[];
|
|
5
|
-
filters?: ChannelFilters
|
|
5
|
+
filters?: ChannelFilters | undefined;
|
|
6
6
|
flush?: boolean | undefined;
|
|
7
7
|
isLatestMessagesSet?: boolean | undefined;
|
|
8
|
-
sort?: ChannelSort
|
|
8
|
+
sort?: ChannelSort | undefined;
|
|
9
9
|
}) => PreparedQueries[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ChannelFilters, ChannelSort } from 'stream-chat';
|
|
2
2
|
export declare const upsertCidsForQuery: ({ cids, filters, flush, sort, }: {
|
|
3
3
|
cids: string[];
|
|
4
|
-
filters?: ChannelFilters
|
|
4
|
+
filters?: ChannelFilters | undefined;
|
|
5
5
|
flush?: boolean | undefined;
|
|
6
|
-
sort?: ChannelSort
|
|
6
|
+
sort?: ChannelSort | undefined;
|
|
7
7
|
}) => import("../types").PreparedQueries[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const mapDateTimeToStorable: (datetime?: string | Date
|
|
1
|
+
export declare const mapDateTimeToStorable: (datetime?: string | Date) => string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { MessageLabel, Role } from 'stream-chat';
|
|
2
2
|
import type { PendingTaskTypes } from './types';
|
|
3
3
|
import type { ValueOf } from '../types/types';
|
|
4
|
-
|
|
4
|
+
type Tables = {
|
|
5
5
|
[P in keyof Schema]: {
|
|
6
6
|
columns: {
|
|
7
7
|
[K in keyof Schema[P]]: string;
|
|
@@ -21,7 +21,7 @@ declare type Tables = {
|
|
|
21
21
|
};
|
|
22
22
|
};
|
|
23
23
|
export declare const tables: Tables;
|
|
24
|
-
export
|
|
24
|
+
export type Schema = {
|
|
25
25
|
channelQueries: {
|
|
26
26
|
cids: string;
|
|
27
27
|
id: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { Schema } from '../schema';
|
|
2
|
-
import type { PreparedQueries } from '../types';
|
|
2
|
+
import type { PreparedQueries, TableColumnNames } from '../types';
|
|
3
3
|
export declare const appendOrderByClause: <T extends keyof Schema>(selectQuery: string, orderBy?: Partial<{ [k in keyof Schema[T]]: 1 | -1; }> | undefined) => PreparedQueries;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { Schema } from '../schema';
|
|
2
|
-
import type { PreparedQueries, TableColumnValue } from '../types';
|
|
2
|
+
import type { PreparedQueries, TableColumnNames, TableColumnValue } from '../types';
|
|
3
3
|
export declare const appendWhereClause: <T extends keyof Schema>(selectQuery: string, whereCondition?: Partial<{ [k in keyof Schema[T]]: TableColumnValue | TableColumnValue[]; }> | undefined) => PreparedQueries;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import type { Channel, StreamChat } from 'stream-chat';
|
|
2
2
|
import type { Schema } from './schema';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
3
|
+
export type Table = keyof Schema;
|
|
4
|
+
export type TableRow<T extends Table> = Schema[T];
|
|
5
|
+
export type TableRowJoinedUser<T extends Table> = Schema[T] & {
|
|
6
6
|
user: TableRow<'users'>;
|
|
7
7
|
};
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
8
|
+
export type TableColumnNames<T extends Table> = keyof Schema[T];
|
|
9
|
+
export type TableColumnValue = string | boolean | number | undefined;
|
|
10
|
+
export type PreparedQueries = [string] | [string, Array<any>];
|
|
11
|
+
export type PendingTaskTypes = {
|
|
12
12
|
deleteMessage: 'delete-message';
|
|
13
13
|
deleteReaction: 'delete-reaction';
|
|
14
14
|
sendReaction: 'send-reaction';
|
|
15
15
|
};
|
|
16
|
-
export
|
|
16
|
+
export type PendingTask = {
|
|
17
17
|
channelId: string;
|
|
18
18
|
channelType: string;
|
|
19
19
|
messageId: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ExtendableGenerics, LiteralStringForUnion } from 'stream-chat';
|
|
2
2
|
import type { FileStateValue } from '../utils/utils';
|
|
3
|
-
export
|
|
3
|
+
export type Asset = {
|
|
4
4
|
duration: number;
|
|
5
5
|
height: number;
|
|
6
6
|
name: string;
|
|
@@ -11,7 +11,7 @@ export declare type Asset = {
|
|
|
11
11
|
id?: string;
|
|
12
12
|
size?: number;
|
|
13
13
|
};
|
|
14
|
-
export
|
|
14
|
+
export type File = {
|
|
15
15
|
name: string;
|
|
16
16
|
duration?: number;
|
|
17
17
|
id?: string;
|
|
@@ -19,7 +19,7 @@ export declare type File = {
|
|
|
19
19
|
size?: number;
|
|
20
20
|
uri?: string;
|
|
21
21
|
};
|
|
22
|
-
export
|
|
22
|
+
export type FileUpload = {
|
|
23
23
|
file: File;
|
|
24
24
|
id: string;
|
|
25
25
|
state: FileStateValue;
|
|
@@ -29,7 +29,7 @@ export declare type FileUpload = {
|
|
|
29
29
|
thumb_url?: string;
|
|
30
30
|
url?: string;
|
|
31
31
|
};
|
|
32
|
-
export
|
|
32
|
+
export type ImageUpload = {
|
|
33
33
|
file: Partial<Asset>;
|
|
34
34
|
id: string;
|
|
35
35
|
state: FileStateValue;
|
|
@@ -37,7 +37,7 @@ export declare type ImageUpload = {
|
|
|
37
37
|
url?: string;
|
|
38
38
|
width?: number;
|
|
39
39
|
};
|
|
40
|
-
export
|
|
40
|
+
export type DefaultAttachmentType = UnknownType & {
|
|
41
41
|
file_size?: number;
|
|
42
42
|
mime_type?: string;
|
|
43
43
|
originalFile?: File;
|
|
@@ -59,6 +59,6 @@ export interface DefaultStreamChatGenerics extends ExtendableGenerics {
|
|
|
59
59
|
reactionType: UnknownType;
|
|
60
60
|
userType: DefaultUserType;
|
|
61
61
|
}
|
|
62
|
-
export
|
|
63
|
-
export
|
|
62
|
+
export type UnknownType = Record<string, unknown>;
|
|
63
|
+
export type ValueOf<T> = T[keyof T];
|
|
64
64
|
export {};
|
|
@@ -20,7 +20,7 @@ import 'dayjs/locale/tr';
|
|
|
20
20
|
*/
|
|
21
21
|
import 'dayjs/locale/en';
|
|
22
22
|
import type { DefaultStreamChatGenerics } from '../types/types';
|
|
23
|
-
|
|
23
|
+
type Options = {
|
|
24
24
|
DateTimeParser?: typeof Dayjs | typeof moment;
|
|
25
25
|
dayjsLocaleConfigForLanguage?: Partial<ILocale>;
|
|
26
26
|
debug?: boolean;
|
|
@@ -29,7 +29,7 @@ declare type Options = {
|
|
|
29
29
|
logger?: (msg?: string) => void;
|
|
30
30
|
translationsForLanguage?: Partial<typeof enTranslations>;
|
|
31
31
|
};
|
|
32
|
-
|
|
32
|
+
type I18NextConfig = {
|
|
33
33
|
debug: boolean;
|
|
34
34
|
fallbackLng: false | FallbackLng;
|
|
35
35
|
interpolation: {
|
|
@@ -5,4 +5,4 @@ import type { Asset } from '../types/types';
|
|
|
5
5
|
* @param compressImageQuality
|
|
6
6
|
* @returns string
|
|
7
7
|
*/
|
|
8
|
-
export declare const compressedImageURI: (image: Partial<Asset>, compressImageQuality?: number
|
|
8
|
+
export declare const compressedImageURI: (image: Partial<Asset>, compressImageQuality?: number) => Promise<string>;
|
|
@@ -8,16 +8,16 @@ import { Emoji } from '../emoji-data';
|
|
|
8
8
|
import type { IconProps } from '../icons/utils/base';
|
|
9
9
|
import type { TableRowJoinedUser } from '../store/types';
|
|
10
10
|
import type { DefaultStreamChatGenerics, ValueOf } from '../types/types';
|
|
11
|
-
export
|
|
11
|
+
export type ReactionData = {
|
|
12
12
|
Icon: React.FC<IconProps>;
|
|
13
13
|
type: string;
|
|
14
14
|
};
|
|
15
15
|
export declare const FileState: Readonly<{
|
|
16
|
-
FINISHED:
|
|
17
|
-
NOT_SUPPORTED:
|
|
18
|
-
UPLOAD_FAILED:
|
|
19
|
-
UPLOADED:
|
|
20
|
-
UPLOADING:
|
|
16
|
+
FINISHED: "finished";
|
|
17
|
+
NOT_SUPPORTED: "not_supported";
|
|
18
|
+
UPLOAD_FAILED: "upload_failed";
|
|
19
|
+
UPLOADED: "uploaded";
|
|
20
|
+
UPLOADING: "uploading";
|
|
21
21
|
}>;
|
|
22
22
|
export declare const ProgressIndicatorTypes: {
|
|
23
23
|
IN_PROGRESS: 'in_progress';
|
|
@@ -30,8 +30,8 @@ export declare const MessageStatusTypes: {
|
|
|
30
30
|
RECEIVED: string;
|
|
31
31
|
SENDING: string;
|
|
32
32
|
};
|
|
33
|
-
export
|
|
34
|
-
|
|
33
|
+
export type FileStateValue = typeof FileState[keyof typeof FileState];
|
|
34
|
+
type Progress = ValueOf<typeof ProgressIndicatorTypes>;
|
|
35
35
|
export declare const getIndicatorTypeForFileState: (fileState: FileStateValue, enableOfflineSupport: boolean) => Progress | null;
|
|
36
36
|
/**
|
|
37
37
|
* Utility to check if the message is a Blocked message.
|
|
@@ -55,8 +55,8 @@ export declare const queryUsersDebounced: DebouncedFunc<(<StreamChatGenerics ext
|
|
|
55
55
|
export declare const isCommandTrigger: (trigger: Trigger) => trigger is "/";
|
|
56
56
|
export declare const isEmojiTrigger: (trigger: Trigger) => trigger is ":";
|
|
57
57
|
export declare const isMentionTrigger: (trigger: Trigger) => trigger is "@";
|
|
58
|
-
export
|
|
59
|
-
export
|
|
58
|
+
export type Trigger = '/' | '@' | ':';
|
|
59
|
+
export type TriggerSettings<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
60
60
|
'/'?: {
|
|
61
61
|
dataProvider: (query: CommandResponse<StreamChatGenerics>['name'], text: string, onReady?: (data: CommandResponse<StreamChatGenerics>[], q: CommandResponse<StreamChatGenerics>['name']) => void, options?: {
|
|
62
62
|
limit?: number;
|
|
@@ -92,17 +92,17 @@ export declare type TriggerSettings<StreamChatGenerics extends DefaultStreamChat
|
|
|
92
92
|
type: SuggestionComponentType;
|
|
93
93
|
};
|
|
94
94
|
};
|
|
95
|
-
export
|
|
95
|
+
export type ACITriggerSettingsParams<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
96
96
|
channel: Channel<StreamChatGenerics>;
|
|
97
97
|
client: StreamChat<StreamChatGenerics>;
|
|
98
98
|
onMentionSelectItem: (item: SuggestionUser<StreamChatGenerics>) => void;
|
|
99
99
|
emojiSearchIndex?: EmojiSearchIndex;
|
|
100
100
|
};
|
|
101
|
-
export
|
|
101
|
+
export type QueryUsersFunction<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = (client: StreamChat<StreamChatGenerics>, query: SuggestionUser<StreamChatGenerics>['name'], onReady?: (users: SuggestionUser<StreamChatGenerics>[]) => void, options?: {
|
|
102
102
|
limit?: number;
|
|
103
103
|
mentionAllAppUsersQuery?: MentionAllAppUsersQuery<StreamChatGenerics>;
|
|
104
104
|
}) => Promise<void>;
|
|
105
|
-
export
|
|
105
|
+
export type QueryMembersFunction<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = (channel: Channel<StreamChatGenerics>, query: SuggestionUser<StreamChatGenerics>['name'], onReady?: (users: SuggestionUser<StreamChatGenerics>[]) => void, options?: {
|
|
106
106
|
limit?: number;
|
|
107
107
|
}) => Promise<void>;
|
|
108
108
|
/**
|
|
@@ -122,7 +122,7 @@ export declare const defaultEmojiSearchIndex: EmojiSearchIndex;
|
|
|
122
122
|
*/
|
|
123
123
|
export declare const ACITriggerSettings: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ channel, client, emojiSearchIndex, onMentionSelectItem, }: ACITriggerSettingsParams<StreamChatGenerics>) => TriggerSettings<StreamChatGenerics>;
|
|
124
124
|
export declare const makeImageCompatibleUrl: (url: string) => string;
|
|
125
|
-
export declare const getUrlWithoutParams: (url?: string
|
|
125
|
+
export declare const getUrlWithoutParams: (url?: string) => string | undefined;
|
|
126
126
|
export declare const isLocalUrl: (url: string) => boolean;
|
|
127
127
|
export declare const generateRandomId: (a?: string) => string;
|
|
128
128
|
export declare const hasOnlyEmojis: (text: string) => boolean;
|
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": "5.25.0
|
|
4
|
+
"version": "5.25.0",
|
|
5
5
|
"author": {
|
|
6
6
|
"company": "Stream.io Inc",
|
|
7
7
|
"name": "Stream.io Inc"
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"path": "0.12.7",
|
|
82
82
|
"react-native-markdown-package": "1.8.2",
|
|
83
83
|
"react-native-url-polyfill": "^1.3.0",
|
|
84
|
-
"stream-chat": "8.
|
|
84
|
+
"stream-chat": "8.17.0"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
87
|
"react-native-quick-sqlite": ">=5.1.0",
|
|
@@ -150,12 +150,8 @@
|
|
|
150
150
|
"react-native-svg": "12.1.1",
|
|
151
151
|
"react-native-typescript-transformer": "1.2.13",
|
|
152
152
|
"react-test-renderer": "17.0.2",
|
|
153
|
-
"typescript": "
|
|
153
|
+
"typescript": "5.0.4",
|
|
154
154
|
"uuid": "^8.3.2",
|
|
155
155
|
"webpack": "4.44.2"
|
|
156
|
-
},
|
|
157
|
-
"resolutions": {
|
|
158
|
-
"@types/react": "17.0.5",
|
|
159
|
-
"@types/react-native": "0.67.3"
|
|
160
156
|
}
|
|
161
157
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { PropsWithChildren, useCallback, useEffect, useRef, useState } from 'react';
|
|
1
|
+
import React, { PropsWithChildren, useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
2
2
|
import { KeyboardAvoidingViewProps, StyleSheet, Text, View } from 'react-native';
|
|
3
3
|
|
|
4
4
|
import debounce from 'lodash/debounce';
|
|
@@ -1472,8 +1472,8 @@ const ChannelWithContext = <
|
|
|
1472
1472
|
text,
|
|
1473
1473
|
type: 'regular',
|
|
1474
1474
|
user: {
|
|
1475
|
-
id: client.userID,
|
|
1476
1475
|
...messageUser,
|
|
1476
|
+
id: client.userID,
|
|
1477
1477
|
},
|
|
1478
1478
|
...extraFields,
|
|
1479
1479
|
} as unknown as MessageResponse<StreamChatGenerics>;
|
|
@@ -2093,6 +2093,11 @@ const ChannelWithContext = <
|
|
|
2093
2093
|
}
|
|
2094
2094
|
};
|
|
2095
2095
|
|
|
2096
|
+
const disabledValue = useMemo(
|
|
2097
|
+
() => !!channel?.data?.frozen && disableIfFrozenChannel,
|
|
2098
|
+
[channel.data?.frozen, disableIfFrozenChannel],
|
|
2099
|
+
);
|
|
2100
|
+
|
|
2096
2101
|
const ownCapabilitiesContext = useCreateOwnCapabilitiesContext({
|
|
2097
2102
|
channel,
|
|
2098
2103
|
overrideCapabilities: overrideOwnCapabilities,
|
|
@@ -2100,7 +2105,7 @@ const ChannelWithContext = <
|
|
|
2100
2105
|
|
|
2101
2106
|
const channelContext = useCreateChannelContext({
|
|
2102
2107
|
channel,
|
|
2103
|
-
disabled:
|
|
2108
|
+
disabled: disabledValue,
|
|
2104
2109
|
EmptyStateIndicator,
|
|
2105
2110
|
enableMessageGroupingByUser,
|
|
2106
2111
|
enforceUniqueReaction,
|
|
@@ -2147,6 +2152,7 @@ const ChannelWithContext = <
|
|
|
2147
2152
|
CommandsButton,
|
|
2148
2153
|
compressImageQuality,
|
|
2149
2154
|
CooldownTimer,
|
|
2155
|
+
disabled: disabledValue,
|
|
2150
2156
|
doDocUploadRequest,
|
|
2151
2157
|
doImageUploadRequest,
|
|
2152
2158
|
editing,
|
|
@@ -16,6 +16,7 @@ export const useCreateInputMessageInputContext = <
|
|
|
16
16
|
CommandsButton,
|
|
17
17
|
compressImageQuality,
|
|
18
18
|
CooldownTimer,
|
|
19
|
+
disabled,
|
|
19
20
|
doDocUploadRequest,
|
|
20
21
|
doImageUploadRequest,
|
|
21
22
|
editing,
|
|
@@ -72,6 +73,7 @@ export const useCreateInputMessageInputContext = <
|
|
|
72
73
|
CommandsButton,
|
|
73
74
|
compressImageQuality,
|
|
74
75
|
CooldownTimer,
|
|
76
|
+
disabled,
|
|
75
77
|
doDocUploadRequest,
|
|
76
78
|
doImageUploadRequest,
|
|
77
79
|
editing,
|
|
@@ -105,7 +107,15 @@ export const useCreateInputMessageInputContext = <
|
|
|
105
107
|
ShowThreadMessageInChannelButton,
|
|
106
108
|
UploadProgressIndicator,
|
|
107
109
|
}),
|
|
108
|
-
[
|
|
110
|
+
[
|
|
111
|
+
compressImageQuality,
|
|
112
|
+
channelId,
|
|
113
|
+
disabled,
|
|
114
|
+
editingDep,
|
|
115
|
+
initialValue,
|
|
116
|
+
maxMessageLength,
|
|
117
|
+
quotedMessageId,
|
|
118
|
+
],
|
|
109
119
|
);
|
|
110
120
|
|
|
111
121
|
return inputMessageInputContext;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useMemo } from 'react';
|
|
1
|
+
import { useEffect, useMemo, useState } from 'react';
|
|
2
2
|
|
|
3
3
|
import type { Channel } from 'stream-chat';
|
|
4
4
|
|
|
@@ -18,15 +18,33 @@ export const useCreateOwnCapabilitiesContext = <
|
|
|
18
18
|
channel: Channel<StreamChatGenerics>;
|
|
19
19
|
overrideCapabilities?: Partial<OwnCapabilitiesContextValue>;
|
|
20
20
|
}) => {
|
|
21
|
+
const [own_capabilities, setOwnCapabilites] = useState(
|
|
22
|
+
JSON.stringify(channel.data?.own_capabilities as Array<string>),
|
|
23
|
+
);
|
|
21
24
|
const overrideCapabilitiesStr = overrideCapabilities
|
|
22
25
|
? JSON.stringify(Object.values(overrideCapabilities))
|
|
23
26
|
: null;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
+
|
|
28
|
+
// Effect to watch for changes in channel.data?.own_capabilities and update the own_capabilties state accordingly.
|
|
29
|
+
useEffect(() => {
|
|
30
|
+
setOwnCapabilites(JSON.stringify(channel.data?.own_capabilities as Array<string>));
|
|
31
|
+
}, [channel.data?.own_capabilities]);
|
|
32
|
+
|
|
33
|
+
// Effect to listen to the `capabilities.changed` event.
|
|
34
|
+
useEffect(() => {
|
|
35
|
+
const listener = channel.on('capabilities.changed', (event) => {
|
|
36
|
+
if (event.own_capabilities) {
|
|
37
|
+
setOwnCapabilites(JSON.stringify(event.own_capabilities as Array<string>));
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
return () => {
|
|
42
|
+
listener.unsubscribe();
|
|
43
|
+
};
|
|
44
|
+
}, []);
|
|
27
45
|
|
|
28
46
|
const ownCapabilitiesContext: OwnCapabilitiesContextValue = useMemo(() => {
|
|
29
|
-
const capabilities = (
|
|
47
|
+
const capabilities = (own_capabilities || []) as Array<string>;
|
|
30
48
|
const ownCapabilitiesContext = Object.keys(allOwnCapabilities).reduce(
|
|
31
49
|
(result, capability) => ({
|
|
32
50
|
...result,
|
|
@@ -38,7 +56,7 @@ export const useCreateOwnCapabilitiesContext = <
|
|
|
38
56
|
);
|
|
39
57
|
|
|
40
58
|
return ownCapabilitiesContext;
|
|
41
|
-
}, [channel.id, overrideCapabilitiesStr,
|
|
59
|
+
}, [channel.id, overrideCapabilitiesStr, own_capabilities]);
|
|
42
60
|
|
|
43
61
|
return ownCapabilitiesContext;
|
|
44
62
|
};
|
|
@@ -18,7 +18,7 @@ export type ChannelPreviewPropsWithContext<
|
|
|
18
18
|
> = Pick<ChatContextValue<StreamChatGenerics>, 'client'> &
|
|
19
19
|
Pick<ChannelsContextValue<StreamChatGenerics>, 'Preview' | 'forceUpdate'> & {
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Instance of Channel from stream-chat package.
|
|
22
22
|
*/
|
|
23
23
|
channel: Channel<StreamChatGenerics>;
|
|
24
24
|
};
|
|
@@ -18,6 +18,9 @@ const styles = StyleSheet.create({
|
|
|
18
18
|
export type ChannelPreviewMessageProps<
|
|
19
19
|
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
20
20
|
> = {
|
|
21
|
+
/**
|
|
22
|
+
* Latest message on a channel, formatted for preview.
|
|
23
|
+
*/
|
|
21
24
|
latestMessagePreview: LatestMessagePreview<StreamChatGenerics>;
|
|
22
25
|
};
|
|
23
26
|
|
|
@@ -165,16 +165,15 @@ const ChannelPreviewMessengerWithContext = <
|
|
|
165
165
|
testID={`channel-preview-content-${channel.id}`}
|
|
166
166
|
>
|
|
167
167
|
<View style={[styles.row, row]}>
|
|
168
|
-
<PreviewTitle
|
|
168
|
+
<PreviewTitle displayName={displayName} />
|
|
169
169
|
<View style={[styles.statusContainer, row]}>
|
|
170
170
|
{isChannelMuted && <PreviewMutedStatus />}
|
|
171
|
-
<PreviewUnreadCount
|
|
171
|
+
<PreviewUnreadCount maxUnreadCount={maxUnreadCount} unread={unread} />
|
|
172
172
|
</View>
|
|
173
173
|
</View>
|
|
174
174
|
<View style={[styles.row, row]}>
|
|
175
175
|
<PreviewMessage latestMessagePreview={latestMessagePreview} />
|
|
176
176
|
<PreviewStatus
|
|
177
|
-
channel={channel}
|
|
178
177
|
formatLatestMessageDate={formatLatestMessageDate}
|
|
179
178
|
latestMessagePreview={latestMessagePreview}
|
|
180
179
|
/>
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { StyleSheet, Text, View } from 'react-native';
|
|
3
3
|
|
|
4
|
-
import type { ChannelPreviewProps } from './ChannelPreview';
|
|
5
4
|
import type { ChannelPreviewMessengerPropsWithContext } from './ChannelPreviewMessenger';
|
|
6
5
|
import { MessageReadStatus } from './hooks/useLatestMessagePreview';
|
|
7
6
|
|
|
@@ -26,8 +25,7 @@ export type ChannelPreviewStatusProps<
|
|
|
26
25
|
> = Pick<
|
|
27
26
|
ChannelPreviewMessengerPropsWithContext<StreamChatGenerics>,
|
|
28
27
|
'latestMessagePreview' | 'formatLatestMessageDate'
|
|
29
|
-
|
|
30
|
-
Pick<ChannelPreviewProps<StreamChatGenerics>, 'channel'>;
|
|
28
|
+
>;
|
|
31
29
|
|
|
32
30
|
export const ChannelPreviewStatus = <
|
|
33
31
|
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|