stream-chat-react-native-core 5.25.0-beta.7 → 5.25.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/components/Channel/Channel.js +422 -393
- package/lib/commonjs/components/Channel/Channel.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 +7 -7
- package/lib/commonjs/components/Message/Message.js.map +1 -1
- package/lib/commonjs/components/MessageInput/hooks/useCountdown.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/themeContext/ThemeContext.js.map +1 -1
- package/lib/commonjs/i18n/en.json +1 -1
- package/lib/commonjs/i18n/es.json +38 -38
- package/lib/commonjs/i18n/fr.json +38 -38
- package/lib/commonjs/i18n/he.json +38 -38
- package/lib/commonjs/i18n/hi.json +38 -38
- package/lib/commonjs/i18n/it.json +39 -39
- package/lib/commonjs/i18n/ja.json +39 -39
- package/lib/commonjs/i18n/ko.json +39 -39
- package/lib/commonjs/i18n/nl.json +39 -39
- package/lib/commonjs/i18n/ru.json +36 -36
- package/lib/commonjs/i18n/tr.json +36 -36
- 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 +422 -393
- package/lib/module/components/Channel/Channel.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 +7 -7
- package/lib/module/components/Message/Message.js.map +1 -1
- package/lib/module/components/MessageInput/hooks/useCountdown.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/themeContext/ThemeContext.js.map +1 -1
- package/lib/module/i18n/en.json +1 -1
- package/lib/module/i18n/es.json +38 -38
- package/lib/module/i18n/fr.json +38 -38
- package/lib/module/i18n/he.json +38 -38
- package/lib/module/i18n/hi.json +38 -38
- package/lib/module/i18n/it.json +39 -39
- package/lib/module/i18n/ja.json +39 -39
- package/lib/module/i18n/ko.json +39 -39
- package/lib/module/i18n/nl.json +39 -39
- package/lib/module/i18n/ru.json +36 -36
- package/lib/module/i18n/tr.json +36 -36
- 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/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 +5 -5
- 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 +38 -38
- package/lib/typescript/i18n/fr.json +38 -38
- package/lib/typescript/i18n/he.json +38 -38
- package/lib/typescript/i18n/hi.json +38 -38
- package/lib/typescript/i18n/it.json +39 -39
- package/lib/typescript/i18n/ja.json +39 -39
- package/lib/typescript/i18n/ko.json +39 -39
- package/lib/typescript/i18n/nl.json +39 -39
- package/lib/typescript/i18n/ru.json +36 -36
- package/lib/typescript/i18n/tr.json +36 -36
- 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 +2 -6
- package/src/components/Channel/Channel.tsx +27 -20
- 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 +9 -0
- package/src/components/MessageInput/hooks/useCountdown.ts +1 -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/themeContext/ThemeContext.tsx +3 -3
- package/src/i18n/en.json +1 -1
- package/src/i18n/es.json +38 -38
- package/src/i18n/fr.json +38 -38
- package/src/i18n/he.json +38 -38
- package/src/i18n/hi.json +38 -38
- package/src/i18n/it.json +39 -39
- package/src/i18n/ja.json +39 -39
- package/src/i18n/ko.json +39 -39
- package/src/i18n/nl.json +39 -39
- package/src/i18n/ru.json +36 -36
- package/src/i18n/tr.json +36 -36
- 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
|
@@ -12,37 +12,46 @@ import { ThreadContextValue } from '../../contexts/threadContext/ThreadContext';
|
|
|
12
12
|
import { TranslationContextValue } from '../../contexts/translationContext/TranslationContext';
|
|
13
13
|
import type { DefaultStreamChatGenerics } from '../../types/types';
|
|
14
14
|
import { MessageType } from '../MessageList/hooks/useMessageList';
|
|
15
|
-
export
|
|
16
|
-
export
|
|
15
|
+
export type TouchableEmitter = 'fileAttachment' | 'gallery' | 'giphy' | 'message' | 'messageContent' | 'messageReplies' | 'reactionList';
|
|
16
|
+
export type TextMentionTouchableHandlerPayload<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
17
17
|
emitter: 'textMention';
|
|
18
18
|
additionalInfo?: {
|
|
19
19
|
user?: UserResponse<StreamChatGenerics>;
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
|
-
export
|
|
22
|
+
export type UrlTouchableHandlerPayload = {
|
|
23
23
|
emitter: 'textLink' | 'card';
|
|
24
24
|
additionalInfo?: {
|
|
25
25
|
url?: string;
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
|
-
export
|
|
28
|
+
export type FileAttachmentTouchableHandlerPayload<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
29
29
|
emitter: 'fileAttachment';
|
|
30
30
|
additionalInfo?: {
|
|
31
31
|
attachment?: Attachment<StreamChatGenerics>;
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
|
-
export
|
|
34
|
+
export type TouchableHandlerPayload = {
|
|
35
35
|
defaultHandler?: () => void;
|
|
36
36
|
event?: GestureResponderEvent;
|
|
37
37
|
} & ({
|
|
38
38
|
emitter?: Exclude<TouchableEmitter, 'textMention' | 'textLink' | 'card' | 'fileAttachment'>;
|
|
39
39
|
} | TextMentionTouchableHandlerPayload | UrlTouchableHandlerPayload | FileAttachmentTouchableHandlerPayload);
|
|
40
|
-
export
|
|
40
|
+
export type MessageTouchableHandlerPayload<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = TouchableHandlerPayload & {
|
|
41
|
+
/**
|
|
42
|
+
* Set of action handler functions for various message actions. You can use these functions to perform any action when give interaction occurs.
|
|
43
|
+
*/
|
|
41
44
|
actionHandlers?: MessageActionHandlers;
|
|
45
|
+
/**
|
|
46
|
+
* Additional message touchable handler info.
|
|
47
|
+
*/
|
|
42
48
|
additionalInfo?: Record<string, unknown>;
|
|
49
|
+
/**
|
|
50
|
+
* Message object, on which interaction occurred.
|
|
51
|
+
*/
|
|
43
52
|
message?: MessageType<StreamChatGenerics>;
|
|
44
53
|
};
|
|
45
|
-
export
|
|
54
|
+
export type MessageActionHandlers = {
|
|
46
55
|
deleteMessage: () => Promise<void>;
|
|
47
56
|
editMessage: () => void;
|
|
48
57
|
pinMessage: () => Promise<void>;
|
|
@@ -53,7 +62,7 @@ export declare type MessageActionHandlers = {
|
|
|
53
62
|
toggleMuteUser: () => Promise<void>;
|
|
54
63
|
toggleReaction: (reactionType: string) => Promise<void>;
|
|
55
64
|
};
|
|
56
|
-
export
|
|
65
|
+
export type MessagePropsWithContext<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<ChannelContextValue<StreamChatGenerics>, 'channel' | 'disabled' | 'enforceUniqueReaction' | 'members'> & Pick<KeyboardContextValue, 'dismissKeyboard'> & Partial<Omit<MessageContextValue<StreamChatGenerics>, 'groupStyles' | 'message'>> & Pick<MessageContextValue<StreamChatGenerics>, 'groupStyles' | 'message'> & Pick<MessagesContextValue<StreamChatGenerics>, 'sendReaction' | 'deleteMessage' | 'dismissKeyboardOnMessageTouch' | 'forceAlignMessages' | 'handleBlock' | 'handleCopy' | 'handleDelete' | 'handleEdit' | 'handleFlag' | 'handleMute' | 'handlePinMessage' | 'handleQuotedReply' | 'handleReaction' | 'handleRetry' | 'handleThreadReply' | 'isAttachmentEqual' | 'messageActions' | 'messageContentOrder' | 'MessageBounce' | 'MessageSimple' | 'onLongPressMessage' | 'onPressInMessage' | 'onPressMessage' | 'OverlayReactionList' | 'removeMessage' | 'deleteReaction' | 'retrySendMessage' | 'selectReaction' | 'setEditingState' | 'setQuotedMessageState' | 'supportedReactions' | 'updateMessage'> & Pick<MessageOverlayContextValue<StreamChatGenerics>, 'setData'> & Pick<OverlayContextValue, 'setOverlay'> & Pick<ThreadContextValue<StreamChatGenerics>, 'openThread'> & Pick<TranslationContextValue, 't'> & {
|
|
57
66
|
chatContext: ChatContextValue<StreamChatGenerics>;
|
|
58
67
|
messagesContext: MessagesContextValue<StreamChatGenerics>;
|
|
59
68
|
/**
|
|
@@ -100,7 +109,7 @@ export declare type MessagePropsWithContext<StreamChatGenerics extends DefaultSt
|
|
|
100
109
|
showUnreadUnderlay?: boolean;
|
|
101
110
|
style?: StyleProp<ViewStyle>;
|
|
102
111
|
};
|
|
103
|
-
export
|
|
112
|
+
export type MessageProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Partial<Omit<MessagePropsWithContext<StreamChatGenerics>, 'groupStyles' | 'message'>> & Pick<MessagePropsWithContext<StreamChatGenerics>, 'groupStyles' | 'message'>;
|
|
104
113
|
/**
|
|
105
114
|
* Message - A high level component which implements all the logic required for a message.
|
|
106
115
|
* The actual rendering of the message is delegated via the "Message" property
|
|
@@ -3,8 +3,8 @@ import { ChatContextValue } from '../../../contexts/chatContext/ChatContext';
|
|
|
3
3
|
import { MessageContextValue } from '../../../contexts/messageContext/MessageContext';
|
|
4
4
|
import type { DefaultStreamChatGenerics } from '../../../types/types';
|
|
5
5
|
import { AvatarProps } from '../../Avatar/Avatar';
|
|
6
|
-
export
|
|
7
|
-
export
|
|
6
|
+
export type MessageAvatarPropsWithContext<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<MessageContextValue<StreamChatGenerics>, 'alignment' | 'lastGroupMessage' | 'message' | 'showAvatar'> & Pick<ChatContextValue<StreamChatGenerics>, 'ImageComponent'> & Partial<Pick<AvatarProps, 'size'>>;
|
|
7
|
+
export type MessageAvatarProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Partial<MessageAvatarPropsWithContext<StreamChatGenerics>>;
|
|
8
8
|
export declare const MessageAvatar: {
|
|
9
9
|
<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: Partial<MessageAvatarPropsWithContext<StreamChatGenerics>>): JSX.Element;
|
|
10
10
|
displayName: string;
|
|
@@ -2,11 +2,11 @@ import React from 'react';
|
|
|
2
2
|
import { MessageContextValue } from '../../../contexts/messageContext/MessageContext';
|
|
3
3
|
import { MessagesContextValue } from '../../../contexts/messagesContext/MessagesContext';
|
|
4
4
|
import type { DefaultStreamChatGenerics } from '../../../types/types';
|
|
5
|
-
export
|
|
5
|
+
export type MessageBouncePropsWithContext<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<MessagesContextValue<StreamChatGenerics>, 'setEditingState' | 'removeMessage' | 'retrySendMessage'> & Pick<MessageContextValue<StreamChatGenerics>, 'message'> & {
|
|
6
6
|
setIsBounceDialogOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
7
7
|
};
|
|
8
8
|
export declare const MessageBounceWithContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: MessageBouncePropsWithContext<StreamChatGenerics>) => JSX.Element;
|
|
9
|
-
export
|
|
9
|
+
export type MessageBounceProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Partial<MessageBouncePropsWithContext<StreamChatGenerics>> & {
|
|
10
10
|
setIsBounceDialogOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
11
11
|
};
|
|
12
12
|
export declare const MessageBounce: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: MessageBounceProps<StreamChatGenerics>) => JSX.Element;
|
|
@@ -3,10 +3,10 @@ import { MessageContextValue } from '../../../contexts/messageContext/MessageCon
|
|
|
3
3
|
import { MessagesContextValue } from '../../../contexts/messagesContext/MessagesContext';
|
|
4
4
|
import { TranslationContextValue } from '../../../contexts/translationContext/TranslationContext';
|
|
5
5
|
import type { DefaultStreamChatGenerics } from '../../../types/types';
|
|
6
|
-
export
|
|
6
|
+
export type MessageContentPropsWithContext<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<MessageContextValue<StreamChatGenerics>, 'alignment' | 'disabled' | 'goToMessage' | 'groupStyles' | 'hasReactions' | 'isMyMessage' | 'lastGroupMessage' | 'members' | 'message' | 'messageContentOrder' | 'onLongPress' | 'onlyEmojis' | 'onPress' | 'onPressIn' | 'otherAttachments' | 'preventPress' | 'showMessageStatus' | 'threadList'> & Pick<MessagesContextValue<StreamChatGenerics>, 'additionalTouchableProps' | 'Attachment' | 'FileAttachmentGroup' | 'formatDate' | 'Gallery' | 'isAttachmentEqual' | 'MessageFooter' | 'MessageHeader' | 'MessageDeleted' | 'MessageError' | 'MessageReplies' | 'MessageStatus' | 'myMessageTheme' | 'onPressInMessage' | 'Reply'> & Pick<TranslationContextValue, 't' | 'tDateTimeParser'> & {
|
|
7
7
|
setMessageContentWidth: React.Dispatch<React.SetStateAction<number>>;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type MessageContentProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Partial<Omit<MessageContentPropsWithContext<StreamChatGenerics>, 'setMessageContentWidth'>> & Pick<MessageContentPropsWithContext<StreamChatGenerics>, 'setMessageContentWidth'>;
|
|
10
10
|
/**
|
|
11
11
|
* Child of MessageSimple that displays a message's content
|
|
12
12
|
*/
|
|
@@ -4,13 +4,13 @@ import type { MessageFooterProps } from './MessageFooter';
|
|
|
4
4
|
import { Alignment } from '../../../contexts/messageContext/MessageContext';
|
|
5
5
|
import type { DefaultStreamChatGenerics } from '../../../types/types';
|
|
6
6
|
import type { MessageType } from '../../MessageList/hooks/useMessageList';
|
|
7
|
-
|
|
7
|
+
type MessageDeletedComponentProps = {
|
|
8
8
|
formattedDate: string | Date;
|
|
9
9
|
groupStyle: string;
|
|
10
10
|
noBorder: boolean;
|
|
11
11
|
onLayout: (event: LayoutChangeEvent) => void;
|
|
12
12
|
};
|
|
13
|
-
export
|
|
13
|
+
export type MessageDeletedProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = MessageDeletedComponentProps & {
|
|
14
14
|
alignment?: Alignment;
|
|
15
15
|
message?: MessageType<StreamChatGenerics>;
|
|
16
16
|
MessageFooter?: React.ComponentType<MessageFooterProps<StreamChatGenerics>>;
|
|
@@ -5,11 +5,11 @@ import type { ChannelContextValue } from '../../../contexts/channelContext/Chann
|
|
|
5
5
|
import { Alignment } from '../../../contexts/messageContext/MessageContext';
|
|
6
6
|
import type { DefaultStreamChatGenerics } from '../../../types/types';
|
|
7
7
|
import type { MessageType } from '../../MessageList/hooks/useMessageList';
|
|
8
|
-
|
|
8
|
+
type MessageFooterComponentProps = {
|
|
9
9
|
formattedDate: string | Date;
|
|
10
10
|
isDeleted?: boolean;
|
|
11
11
|
};
|
|
12
|
-
export
|
|
12
|
+
export type MessageFooterProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Partial<Pick<ChannelContextValue<StreamChatGenerics>, 'members'>> & MessageFooterComponentProps & {
|
|
13
13
|
alignment?: Alignment;
|
|
14
14
|
lastGroupMessage?: boolean;
|
|
15
15
|
message?: MessageType<StreamChatGenerics>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { MessageContextValue } from '../../../contexts/messageContext/MessageContext';
|
|
3
3
|
import type { DefaultStreamChatGenerics } from '../../../types/types';
|
|
4
|
-
export
|
|
5
|
-
export
|
|
4
|
+
export type MessagePinnedHeaderPropsWithContext<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<MessageContextValue<StreamChatGenerics>, 'alignment' | 'message'>;
|
|
5
|
+
export type MessagePinnedHeaderProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Partial<MessagePinnedHeaderPropsWithContext<StreamChatGenerics>>;
|
|
6
6
|
export declare const MessagePinnedHeader: {
|
|
7
7
|
<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: Partial<MessagePinnedHeaderPropsWithContext<StreamChatGenerics>>): JSX.Element;
|
|
8
8
|
displayName: string;
|
|
@@ -4,11 +4,11 @@ import { MessageContextValue } from '../../../contexts/messageContext/MessageCon
|
|
|
4
4
|
import { MessagesContextValue } from '../../../contexts/messagesContext/MessagesContext';
|
|
5
5
|
import { TranslationContextValue } from '../../../contexts/translationContext/TranslationContext';
|
|
6
6
|
import type { DefaultStreamChatGenerics } from '../../../types/types';
|
|
7
|
-
export
|
|
7
|
+
export type MessageRepliesPropsWithContext<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<MessageContextValue<StreamChatGenerics>, 'alignment' | 'message' | 'onLongPress' | 'onPress' | 'onPressIn' | 'onOpenThread' | 'preventPress' | 'threadList'> & Pick<MessagesContextValue<StreamChatGenerics>, 'MessageRepliesAvatars'> & Pick<TranslationContextValue, 't'> & {
|
|
8
8
|
noBorder?: boolean;
|
|
9
9
|
repliesCurveColor?: ColorValue;
|
|
10
10
|
};
|
|
11
|
-
export
|
|
11
|
+
export type MessageRepliesProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Partial<MessageRepliesPropsWithContext<StreamChatGenerics>>;
|
|
12
12
|
export declare const MessageReplies: {
|
|
13
13
|
<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: Partial<MessageRepliesPropsWithContext<StreamChatGenerics>>): JSX.Element;
|
|
14
14
|
displayName: string;
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
import { ChatContextValue } from '../../../contexts/chatContext/ChatContext';
|
|
3
3
|
import type { MessageContextValue } from '../../../contexts/messageContext/MessageContext';
|
|
4
4
|
import type { DefaultStreamChatGenerics } from '../../../types/types';
|
|
5
|
-
export
|
|
6
|
-
export declare const MessageRepliesAvatarsWithContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: MessageRepliesAvatarsProps<StreamChatGenerics> & Pick<ChatContextValue
|
|
5
|
+
export type MessageRepliesAvatarsProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<MessageContextValue<StreamChatGenerics>, 'alignment' | 'message'>;
|
|
6
|
+
export declare const MessageRepliesAvatarsWithContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: MessageRepliesAvatarsProps<StreamChatGenerics> & Pick<ChatContextValue, "ImageComponent">) => JSX.Element;
|
|
7
7
|
export declare const MessageRepliesAvatars: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: MessageRepliesAvatarsProps<StreamChatGenerics>) => JSX.Element;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { MessageContextValue } from '../../../contexts/messageContext/MessageContext';
|
|
3
3
|
import { MessagesContextValue } from '../../../contexts/messagesContext/MessagesContext';
|
|
4
4
|
import type { DefaultStreamChatGenerics } from '../../../types/types';
|
|
5
|
-
export
|
|
6
|
-
export
|
|
5
|
+
export type MessageSimplePropsWithContext<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<MessageContextValue<StreamChatGenerics>, 'alignment' | 'channel' | 'disabled' | 'groupStyles' | 'hasReactions' | 'message'> & Pick<MessagesContextValue<StreamChatGenerics>, 'enableMessageGroupingByUser' | 'myMessageTheme' | 'MessageAvatar' | 'MessageContent' | 'MessagePinnedHeader' | 'ReactionList'>;
|
|
6
|
+
export type MessageSimpleProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Partial<MessageSimplePropsWithContext<StreamChatGenerics>>;
|
|
7
7
|
/**
|
|
8
8
|
*
|
|
9
9
|
* Message UI component
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { MessageContextValue } from '../../../contexts/messageContext/MessageContext';
|
|
3
3
|
import type { DefaultStreamChatGenerics } from '../../../types/types';
|
|
4
|
-
export
|
|
5
|
-
export
|
|
4
|
+
export type MessageStatusPropsWithContext<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<MessageContextValue<StreamChatGenerics>, 'message' | 'threadList'>;
|
|
5
|
+
export type MessageStatusProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Partial<MessageStatusPropsWithContext<StreamChatGenerics>>;
|
|
6
6
|
export declare const MessageStatus: {
|
|
7
7
|
<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: Partial<MessageStatusPropsWithContext<StreamChatGenerics>>): JSX.Element;
|
|
8
8
|
displayName: string;
|
|
@@ -5,13 +5,13 @@ import { MessageContextValue } from '../../../contexts/messageContext/MessageCon
|
|
|
5
5
|
import { MessagesContextValue } from '../../../contexts/messagesContext/MessagesContext';
|
|
6
6
|
import type { MarkdownStyle, Theme } from '../../../contexts/themeContext/utils/theme';
|
|
7
7
|
import type { DefaultStreamChatGenerics } from '../../../types/types';
|
|
8
|
-
export
|
|
8
|
+
export type MessageTextProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = MessageTextContainerProps<StreamChatGenerics> & {
|
|
9
9
|
renderText: (params: RenderTextParams<StreamChatGenerics>) => JSX.Element | null;
|
|
10
10
|
theme: {
|
|
11
11
|
theme: Theme;
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
|
-
export
|
|
14
|
+
export type MessageTextContainerPropsWithContext<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<MessageContextValue<StreamChatGenerics>, 'message' | 'onLongPress' | 'onlyEmojis' | 'onPress' | 'preventPress'> & Pick<MessagesContextValue<StreamChatGenerics>, 'markdownRules' | 'MessageText' | 'myMessageTheme'> & {
|
|
15
15
|
markdownStyles?: MarkdownStyle;
|
|
16
16
|
messageOverlay?: boolean;
|
|
17
17
|
messageTextNumberOfLines?: number;
|
|
@@ -19,7 +19,7 @@ export declare type MessageTextContainerPropsWithContext<StreamChatGenerics exte
|
|
|
19
19
|
textContainer: StyleProp<ViewStyle>;
|
|
20
20
|
}>;
|
|
21
21
|
};
|
|
22
|
-
export
|
|
22
|
+
export type MessageTextContainerProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Partial<MessageTextContainerPropsWithContext<StreamChatGenerics>>;
|
|
23
23
|
export declare const MessageTextContainer: {
|
|
24
24
|
<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: Partial<MessageTextContainerPropsWithContext<StreamChatGenerics>>): JSX.Element;
|
|
25
25
|
displayName: string;
|
|
@@ -3,11 +3,11 @@ import { MessageContextValue, Reactions } from '../../../contexts/messageContext
|
|
|
3
3
|
import { MessagesContextValue } from '../../../contexts/messagesContext/MessagesContext';
|
|
4
4
|
import type { DefaultStreamChatGenerics } from '../../../types/types';
|
|
5
5
|
import type { ReactionData } from '../../../utils/utils';
|
|
6
|
-
export
|
|
6
|
+
export type MessageReactions = {
|
|
7
7
|
reactions: Reactions;
|
|
8
8
|
supportedReactions?: ReactionData[];
|
|
9
9
|
};
|
|
10
|
-
export
|
|
10
|
+
export type ReactionListPropsWithContext<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<MessageContextValue<StreamChatGenerics>, 'alignment' | 'message' | 'onLongPress' | 'onPress' | 'onPressIn' | 'preventPress' | 'reactions' | 'showMessageOverlay'> & Pick<MessagesContextValue<StreamChatGenerics>, 'targetedMessage'> & {
|
|
11
11
|
messageContentWidth: number;
|
|
12
12
|
supportedReactions: ReactionData[];
|
|
13
13
|
fill?: string;
|
|
@@ -16,7 +16,7 @@ export declare type ReactionListPropsWithContext<StreamChatGenerics extends Defa
|
|
|
16
16
|
stroke?: string;
|
|
17
17
|
strokeSize?: number;
|
|
18
18
|
};
|
|
19
|
-
export
|
|
19
|
+
export type ReactionListProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Partial<Omit<ReactionListPropsWithContext<StreamChatGenerics>, 'messageContentWidth'>> & Pick<ReactionListPropsWithContext<StreamChatGenerics>, 'messageContentWidth'>;
|
|
20
20
|
/**
|
|
21
21
|
* ReactionList - A high level component which implements all the logic required for a message reaction list
|
|
22
22
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const generateMarkdownText: (text?: string
|
|
1
|
+
export declare const generateMarkdownText: (text?: string) => string | null;
|
|
@@ -4,8 +4,8 @@ import type { MessageContextValue } from '../../../../contexts/messageContext/Me
|
|
|
4
4
|
import type { Colors, MarkdownStyle } from '../../../../contexts/themeContext/utils/theme';
|
|
5
5
|
import type { DefaultStreamChatGenerics } from '../../../../types/types';
|
|
6
6
|
import type { MessageType } from '../../../MessageList/hooks/useMessageList';
|
|
7
|
-
export
|
|
8
|
-
export
|
|
7
|
+
export type MarkdownRules = Partial<DefaultRules>;
|
|
8
|
+
export type RenderTextParams<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Partial<Pick<MessageContextValue<StreamChatGenerics>, 'onLongPress' | 'onPress' | 'preventPress'>> & {
|
|
9
9
|
colors: typeof Colors;
|
|
10
10
|
message: MessageType<StreamChatGenerics>;
|
|
11
11
|
markdownRules?: MarkdownRules;
|
|
@@ -2,7 +2,7 @@ import type { MessageContextValue } from '../../../contexts/messageContext/Messa
|
|
|
2
2
|
import type { OwnCapabilitiesContextValue } from '../../../contexts/ownCapabilitiesContext/OwnCapabilitiesContext';
|
|
3
3
|
import type { DefaultStreamChatGenerics } from '../../../types/types';
|
|
4
4
|
import type { MessageActionType } from '../../MessageOverlay/MessageActionListItem';
|
|
5
|
-
export
|
|
5
|
+
export type MessageActionsParams<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
6
6
|
blockUser: MessageActionType;
|
|
7
7
|
deleteMessage: MessageActionType;
|
|
8
8
|
dismissOverlay: () => void;
|
|
@@ -20,5 +20,5 @@ export declare type MessageActionsParams<StreamChatGenerics extends DefaultStrea
|
|
|
20
20
|
unpinMessage: MessageActionType;
|
|
21
21
|
copyMessage?: MessageActionType;
|
|
22
22
|
} & Pick<MessageContextValue<StreamChatGenerics>, 'message' | 'isMyMessage'>;
|
|
23
|
-
export
|
|
23
|
+
export type MessageActionsProp<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = (param: MessageActionsParams<StreamChatGenerics>) => MessageActionType[];
|
|
24
24
|
export declare const messageActions: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ blockUser, copyMessage, deleteMessage, editMessage, error, flagMessage, isMyMessage, isThreadMessage, message, messageReactions, ownCapabilities, pinMessage, quotedReply, retry, threadReply, unpinMessage, }: MessageActionsParams<StreamChatGenerics>) => MessageActionType[] | undefined;
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import type { GestureResponderEvent } from 'react-native';
|
|
3
3
|
import { ChannelContextValue } from '../../contexts/channelContext/ChannelContext';
|
|
4
4
|
import type { DefaultStreamChatGenerics } from '../../types/types';
|
|
5
|
-
|
|
5
|
+
type AttachButtonPropsWithContext<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<ChannelContextValue<StreamChatGenerics>, 'disabled'> & {
|
|
6
6
|
/** Function that opens attachment options bottom sheet */
|
|
7
7
|
handleOnPress?: ((event: GestureResponderEvent) => void) & (() => void);
|
|
8
8
|
selectedPicker?: 'images';
|
|
9
9
|
};
|
|
10
|
-
export
|
|
10
|
+
export type AttachButtonProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Partial<AttachButtonPropsWithContext<StreamChatGenerics>>;
|
|
11
11
|
/**
|
|
12
12
|
* UI Component for attach button in MessageInput component.
|
|
13
13
|
*/
|
|
@@ -3,11 +3,11 @@ import type { GestureResponderEvent } from 'react-native';
|
|
|
3
3
|
import { ChannelContextValue } from '../../contexts/channelContext/ChannelContext';
|
|
4
4
|
import { SuggestionsContextValue } from '../../contexts/suggestionsContext/SuggestionsContext';
|
|
5
5
|
import type { DefaultStreamChatGenerics } from '../../types/types';
|
|
6
|
-
|
|
6
|
+
type CommandsButtonPropsWithContext<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<ChannelContextValue<StreamChatGenerics>, 'disabled'> & Pick<SuggestionsContextValue<StreamChatGenerics>, 'suggestions'> & {
|
|
7
7
|
/** Function that opens commands selector */
|
|
8
8
|
handleOnPress?: ((event: GestureResponderEvent) => void) & (() => void);
|
|
9
9
|
};
|
|
10
|
-
export
|
|
10
|
+
export type CommandsButtonProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Partial<CommandsButtonPropsWithContext<StreamChatGenerics>>;
|
|
11
11
|
/**
|
|
12
12
|
* UI Component for attach button in MessageInput component.
|
|
13
13
|
*/
|
|
@@ -3,8 +3,8 @@ import { ChatContextValue } from '../../contexts';
|
|
|
3
3
|
import { MessageInputContextValue } from '../../contexts/messageInputContext/MessageInputContext';
|
|
4
4
|
import { MessagesContextValue } from '../../contexts/messagesContext/MessagesContext';
|
|
5
5
|
import type { DefaultStreamChatGenerics } from '../../types/types';
|
|
6
|
-
|
|
7
|
-
export
|
|
6
|
+
type FileUploadPreviewPropsWithContext<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<MessageInputContextValue<StreamChatGenerics>, 'fileUploads' | 'removeFile' | 'uploadFile' | 'setFileUploads'> & Pick<MessagesContextValue<StreamChatGenerics>, 'AudioAttachment' | 'FileAttachmentIcon'> & Pick<ChatContextValue<StreamChatGenerics>, 'enableOfflineSupport'>;
|
|
7
|
+
export type FileUploadPreviewProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Partial<FileUploadPreviewPropsWithContext<StreamChatGenerics>>;
|
|
8
8
|
/**
|
|
9
9
|
* FileUploadPreview
|
|
10
10
|
* UI Component to preview the files set for upload
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { ChatContextValue } from '../../contexts';
|
|
3
3
|
import { MessageInputContextValue } from '../../contexts/messageInputContext/MessageInputContext';
|
|
4
4
|
import type { DefaultStreamChatGenerics } from '../../types/types';
|
|
5
|
-
|
|
6
|
-
export
|
|
5
|
+
type ImageUploadPreviewPropsWithContext<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<MessageInputContextValue<StreamChatGenerics>, 'imageUploads' | 'removeImage' | 'uploadImage'> & Pick<ChatContextValue<StreamChatGenerics>, 'enableOfflineSupport'>;
|
|
6
|
+
export type ImageUploadPreviewProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Partial<ImageUploadPreviewPropsWithContext<StreamChatGenerics>>;
|
|
7
7
|
/**
|
|
8
8
|
* UI Component to preview the images set for upload
|
|
9
9
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { MessageInputContextValue } from '../../contexts/messageInputContext/MessageInputContext';
|
|
3
3
|
import type { DefaultStreamChatGenerics } from '../../types/types';
|
|
4
|
-
export
|
|
5
|
-
export
|
|
4
|
+
export type InputButtonsProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Partial<InputButtonsWithContextProps<StreamChatGenerics>>;
|
|
5
|
+
export type InputButtonsWithContextProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<MessageInputContextValue<StreamChatGenerics>, 'AttachButton' | 'CommandsButton' | 'giphyActive' | 'hasCommands' | 'hasFilePicker' | 'hasImagePicker' | 'MoreOptionsButton' | 'openCommandsPicker' | 'selectedPicker' | 'setShowMoreOptions' | 'showMoreOptions' | 'text' | 'toggleAttachmentPicker'>;
|
|
6
6
|
export declare const InputButtonsWithContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: InputButtonsWithContextProps<StreamChatGenerics>) => JSX.Element | null;
|
|
7
7
|
export declare const InputButtons: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: Partial<InputButtonsWithContextProps<StreamChatGenerics>>) => JSX.Element;
|
|
@@ -7,8 +7,8 @@ import { SuggestionsContextValue } from '../../contexts/suggestionsContext/Sugge
|
|
|
7
7
|
import { ThreadContextValue } from '../../contexts/threadContext/ThreadContext';
|
|
8
8
|
import { TranslationContextValue } from '../../contexts/translationContext/TranslationContext';
|
|
9
9
|
import type { DefaultStreamChatGenerics } from '../../types/types';
|
|
10
|
-
|
|
11
|
-
export
|
|
10
|
+
type MessageInputPropsWithContext<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<ChatContextValue<StreamChatGenerics>, 'isOnline'> & Pick<ChannelContextValue<StreamChatGenerics>, 'disabled' | 'members' | 'threadList' | 'watchers'> & Pick<MessageInputContextValue<StreamChatGenerics>, 'additionalTextInputProps' | 'asyncIds' | 'asyncUploads' | 'cooldownEndsAt' | 'CooldownTimer' | 'clearEditingState' | 'clearQuotedMessageState' | 'closeAttachmentPicker' | 'editing' | 'FileUploadPreview' | 'fileUploads' | 'giphyActive' | 'ImageUploadPreview' | 'imageUploads' | 'Input' | 'inputBoxRef' | 'InputButtons' | 'InputEditingStateHeader' | 'InputGiphySearch' | 'InputReplyStateHeader' | 'isValidMessage' | 'maxNumberOfFiles' | 'mentionedUsers' | 'numberOfUploads' | 'quotedMessage' | 'resetInput' | 'SendButton' | 'sending' | 'sendMessageAsync' | 'setShowMoreOptions' | 'setGiphyActive' | 'showMoreOptions' | 'ShowThreadMessageInChannelButton' | 'removeFile' | 'removeImage' | 'uploadNewFile' | 'uploadNewImage'> & Pick<MessagesContextValue<StreamChatGenerics>, 'Reply'> & Pick<SuggestionsContextValue<StreamChatGenerics>, 'AutoCompleteSuggestionHeader' | 'AutoCompleteSuggestionItem' | 'AutoCompleteSuggestionList' | 'suggestions' | 'triggerType'> & Pick<ThreadContextValue<StreamChatGenerics>, 'thread'> & Pick<TranslationContextValue, 't'>;
|
|
11
|
+
export type MessageInputProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Partial<MessageInputPropsWithContext<StreamChatGenerics>>;
|
|
12
12
|
/**
|
|
13
13
|
* UI Component for message input
|
|
14
14
|
* It's a consumer of
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import type { GestureResponderEvent } from 'react-native';
|
|
3
3
|
import { ChannelContextValue } from '../../contexts/channelContext/ChannelContext';
|
|
4
4
|
import type { DefaultStreamChatGenerics } from '../../types/types';
|
|
5
|
-
|
|
5
|
+
type MoreOptionsButtonPropsWithContext<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<ChannelContextValue<StreamChatGenerics>, 'disabled'> & {
|
|
6
6
|
/** Function that opens attachment options bottom sheet */
|
|
7
7
|
handleOnPress?: ((event: GestureResponderEvent) => void) & (() => void);
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type MoreOptionsButtonProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Partial<MoreOptionsButtonPropsWithContext<StreamChatGenerics>>;
|
|
10
10
|
/**
|
|
11
11
|
* UI Component for more options button in MessageInput component.
|
|
12
12
|
*/
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { MessageInputContextValue } from '../../contexts/messageInputContext/MessageInputContext';
|
|
3
3
|
import type { DefaultStreamChatGenerics } from '../../types/types';
|
|
4
|
-
|
|
4
|
+
type SendButtonPropsWithContext<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<MessageInputContextValue<StreamChatGenerics>, 'giphyActive' | 'sendMessage'> & {
|
|
5
5
|
/** Disables the button */ disabled: boolean;
|
|
6
6
|
};
|
|
7
|
-
export
|
|
7
|
+
export type SendButtonProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Partial<SendButtonPropsWithContext<StreamChatGenerics>>;
|
|
8
8
|
/**
|
|
9
9
|
* UI Component for send button in MessageInput component.
|
|
10
10
|
*/
|
|
@@ -3,11 +3,11 @@ import { MessageInputContextValue } from '../../contexts/messageInputContext/Mes
|
|
|
3
3
|
import { ThreadContextValue } from '../../contexts/threadContext/ThreadContext';
|
|
4
4
|
import { TranslationContextValue } from '../../contexts/translationContext/TranslationContext';
|
|
5
5
|
import type { DefaultStreamChatGenerics } from '../../types/types';
|
|
6
|
-
export
|
|
6
|
+
export type ShowThreadMessageInChannelButtonWithContextProps = Pick<MessageInputContextValue, 'sendThreadMessageInChannel' | 'setSendThreadMessageInChannel'> & Pick<ThreadContextValue, 'allowThreadMessagesInChannel'> & Pick<TranslationContextValue, 't'> & {
|
|
7
7
|
threadList?: boolean;
|
|
8
8
|
};
|
|
9
9
|
export declare const ShowThreadMessageInChannelButtonWithContext: React.FC<ShowThreadMessageInChannelButtonWithContextProps>;
|
|
10
|
-
export
|
|
10
|
+
export type ShowThreadMessageInChannelButtonProps = Partial<ShowThreadMessageInChannelButtonWithContextProps>;
|
|
11
11
|
export declare const ShowThreadMessageInChannelButton: {
|
|
12
12
|
<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: ShowThreadMessageInChannelButtonProps): JSX.Element;
|
|
13
13
|
displayName: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
2
|
import { GestureResponderEvent, StyleProp, ViewStyle } from 'react-native';
|
|
3
|
-
export
|
|
3
|
+
export type UploadProgressIndicatorProps = {
|
|
4
4
|
/** Action triggered when clicked indicator */
|
|
5
5
|
action?: (event: GestureResponderEvent) => void;
|
|
6
6
|
/** style */
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import type { ChannelContextValue } from '../../../contexts/channelContext/ChannelContext';
|
|
3
3
|
import { MessageInputContextValue } from '../../../contexts/messageInputContext/MessageInputContext';
|
|
4
4
|
import type { DefaultStreamChatGenerics } from '../../../types/types';
|
|
5
|
-
export
|
|
5
|
+
export type InputEditingStateHeaderPropsWithContext<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<MessageInputContextValue<StreamChatGenerics>, 'clearEditingState' | 'resetInput'> & Pick<ChannelContextValue<StreamChatGenerics>, 'disabled'>;
|
|
6
6
|
export declare const InputEditingStateHeaderWithContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ clearEditingState, disabled, resetInput, }: InputEditingStateHeaderPropsWithContext<StreamChatGenerics>) => JSX.Element;
|
|
7
|
-
export
|
|
7
|
+
export type InputEditingStateHeaderProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Partial<InputEditingStateHeaderPropsWithContext<StreamChatGenerics>>;
|
|
8
8
|
export declare const InputEditingStateHeader: {
|
|
9
9
|
<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: Partial<InputEditingStateHeaderPropsWithContext<StreamChatGenerics>>): JSX.Element;
|
|
10
10
|
displayName: string;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import type { ChannelContextValue } from '../../../contexts/channelContext/ChannelContext';
|
|
3
3
|
import { MessageInputContextValue } from '../../../contexts/messageInputContext/MessageInputContext';
|
|
4
4
|
import type { DefaultStreamChatGenerics } from '../../../types/types';
|
|
5
|
-
export
|
|
5
|
+
export type InputGiphySearchPropsWithContext<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<MessageInputContextValue<StreamChatGenerics>, 'additionalTextInputProps' | 'cooldownEndsAt' | 'setGiphyActive' | 'setShowMoreOptions'> & Pick<ChannelContextValue<StreamChatGenerics>, 'disabled'>;
|
|
6
6
|
export declare const InputGiphySearchWithContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ additionalTextInputProps, cooldownEndsAt, disabled, setGiphyActive, setShowMoreOptions, }: InputGiphySearchPropsWithContext<StreamChatGenerics>) => JSX.Element;
|
|
7
|
-
export
|
|
7
|
+
export type InputGiphySearchProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Partial<InputGiphySearchPropsWithContext<StreamChatGenerics>>;
|
|
8
8
|
export declare const InputGiphySearch: {
|
|
9
9
|
<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: Partial<InputGiphySearchPropsWithContext<StreamChatGenerics>>): JSX.Element;
|
|
10
10
|
displayName: string;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import type { ChannelContextValue } from '../../../contexts/channelContext/ChannelContext';
|
|
3
3
|
import { MessageInputContextValue } from '../../../contexts/messageInputContext/MessageInputContext';
|
|
4
4
|
import type { DefaultStreamChatGenerics } from '../../../types/types';
|
|
5
|
-
export
|
|
5
|
+
export type InputReplyStateHeaderPropsWithContext<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<MessageInputContextValue<StreamChatGenerics>, 'clearQuotedMessageState' | 'resetInput'> & Pick<ChannelContextValue<StreamChatGenerics>, 'disabled'>;
|
|
6
6
|
export declare const InputReplyStateHeaderWithContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ clearQuotedMessageState, disabled, resetInput, }: InputReplyStateHeaderPropsWithContext<StreamChatGenerics>) => JSX.Element;
|
|
7
|
-
export
|
|
7
|
+
export type InputReplyStateHeaderProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Partial<InputReplyStateHeaderPropsWithContext<StreamChatGenerics>>;
|
|
8
8
|
export declare const InputReplyStateHeader: {
|
|
9
9
|
<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: Partial<InputReplyStateHeaderPropsWithContext<StreamChatGenerics>>): JSX.Element;
|
|
10
10
|
displayName: string;
|