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
|
@@ -1,6 +1,67 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import type { InputMessageInputContextValue } from '../../../contexts/messageInputContext/MessageInputContext';
|
|
2
3
|
import type { DefaultStreamChatGenerics } from '../../../types/types';
|
|
3
|
-
export declare const useCreateInputMessageInputContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ additionalTextInputProps, AttachButton, autoCompleteSuggestionsLimit, autoCompleteTriggerSettings, channelId, clearEditingState, clearQuotedMessageState, CommandsButton, compressImageQuality, CooldownTimer, doDocUploadRequest, doImageUploadRequest, editing, editMessage, emojiSearchIndex, FileUploadPreview, hasCommands, hasFilePicker, hasImagePicker, ImageUploadPreview, initialValue, Input, InputButtons, InputEditingStateHeader, InputGiphySearch, InputReplyStateHeader, maxMessageLength, maxNumberOfFiles, mentionAllAppUsersEnabled, mentionAllAppUsersQuery, MoreOptionsButton, numberOfLines, onChangeText, quotedMessage, SendButton, sendImageAsync, sendMessage, SendMessageDisallowedIndicator, setInputRef, setQuotedMessageState, ShowThreadMessageInChannelButton, UploadProgressIndicator, }:
|
|
4
|
+
export declare const useCreateInputMessageInputContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ additionalTextInputProps, AttachButton, autoCompleteSuggestionsLimit, autoCompleteTriggerSettings, channelId, clearEditingState, clearQuotedMessageState, CommandsButton, compressImageQuality, CooldownTimer, disabled, doDocUploadRequest, doImageUploadRequest, editing, editMessage, emojiSearchIndex, FileUploadPreview, hasCommands, hasFilePicker, hasImagePicker, ImageUploadPreview, initialValue, Input, InputButtons, InputEditingStateHeader, InputGiphySearch, InputReplyStateHeader, maxMessageLength, maxNumberOfFiles, mentionAllAppUsersEnabled, mentionAllAppUsersQuery, MoreOptionsButton, numberOfLines, onChangeText, quotedMessage, SendButton, sendImageAsync, sendMessage, SendMessageDisallowedIndicator, setInputRef, setQuotedMessageState, ShowThreadMessageInChannelButton, UploadProgressIndicator, }: Pick<import("../../..").ChannelContextValue<StreamChatGenerics>, "disabled"> & {
|
|
5
|
+
AttachButton: import("react").ComponentType<Partial<Pick<import("../../..").ChannelContextValue<StreamChatGenerics>, "disabled"> & {
|
|
6
|
+
handleOnPress?: (((event: import("react-native").GestureResponderEvent) => void) & (() => void)) | undefined;
|
|
7
|
+
selectedPicker?: "images" | undefined;
|
|
8
|
+
}>>;
|
|
9
|
+
clearEditingState: () => void;
|
|
10
|
+
clearQuotedMessageState: () => void;
|
|
11
|
+
CommandsButton: import("react").ComponentType<Partial<Pick<import("../../..").ChannelContextValue<StreamChatGenerics>, "disabled"> & Pick<import("../../..").SuggestionsContextValue<StreamChatGenerics>, "suggestions"> & {
|
|
12
|
+
handleOnPress?: (((event: import("react-native").GestureResponderEvent) => void) & (() => void)) | undefined;
|
|
13
|
+
}>>;
|
|
14
|
+
CooldownTimer: import("react").ComponentType<import("../..").CooldownTimerProps>;
|
|
15
|
+
editMessage: (message: import("stream-chat").UpdatedMessage<StreamChatGenerics>, userId?: string | {
|
|
16
|
+
id: string;
|
|
17
|
+
} | undefined, options?: import("stream-chat").UpdateMessageOptions | undefined) => Promise<import("stream-chat").UpdateMessageAPIResponse<StreamChatGenerics>>;
|
|
18
|
+
FileUploadPreview: import("react").ComponentType<Partial<Pick<import("../../../contexts/messageInputContext/MessageInputContext").MessageInputContextValue<StreamChatGenerics>, "uploadFile" | "fileUploads" | "removeFile" | "setFileUploads"> & Pick<import("../../..").MessagesContextValue<StreamChatGenerics>, "AudioAttachment" | "FileAttachmentIcon"> & Pick<import("../../..").ChatContextValue<StreamChatGenerics>, "enableOfflineSupport">>>;
|
|
19
|
+
hasCommands: boolean;
|
|
20
|
+
hasFilePicker: boolean;
|
|
21
|
+
hasImagePicker: boolean;
|
|
22
|
+
ImageUploadPreview: import("react").ComponentType<Partial<Pick<import("../../../contexts/messageInputContext/MessageInputContext").MessageInputContextValue<StreamChatGenerics>, "imageUploads" | "removeImage" | "uploadImage"> & Pick<import("../../..").ChatContextValue<StreamChatGenerics>, "enableOfflineSupport">>>;
|
|
23
|
+
InputEditingStateHeader: import("react").ComponentType<Partial<import("../../MessageInput/components/InputEditingStateHeader").InputEditingStateHeaderPropsWithContext<StreamChatGenerics>>>;
|
|
24
|
+
InputGiphySearch: import("react").ComponentType<Partial<import("../../MessageInput/components/InputGiphySearch").InputGiphySearchPropsWithContext<StreamChatGenerics>>>;
|
|
25
|
+
InputReplyStateHeader: import("react").ComponentType<Partial<import("../../MessageInput/components/InputReplyStateHeader").InputReplyStateHeaderPropsWithContext<StreamChatGenerics>>>;
|
|
26
|
+
maxNumberOfFiles: number;
|
|
27
|
+
MoreOptionsButton: import("react").ComponentType<Partial<Pick<import("../../..").ChannelContextValue<StreamChatGenerics>, "disabled"> & {
|
|
28
|
+
handleOnPress?: (((event: import("react-native").GestureResponderEvent) => void) & (() => void)) | undefined;
|
|
29
|
+
}>>;
|
|
30
|
+
numberOfLines: number;
|
|
31
|
+
quotedMessage: boolean | import("../..").MessageType<StreamChatGenerics>;
|
|
32
|
+
SendButton: import("react").ComponentType<Partial<Pick<import("../../../contexts/messageInputContext/MessageInputContext").MessageInputContextValue<StreamChatGenerics>, "sendMessage" | "giphyActive"> & {
|
|
33
|
+
disabled: boolean;
|
|
34
|
+
}>>;
|
|
35
|
+
sendImageAsync: boolean;
|
|
36
|
+
sendMessage: (message: Partial<import("stream-chat").Message<StreamChatGenerics>>) => Promise<void>;
|
|
37
|
+
setQuotedMessageState: (message: import("../..").MessageType<StreamChatGenerics>) => void;
|
|
38
|
+
ShowThreadMessageInChannelButton: import("react").ComponentType<{
|
|
39
|
+
threadList?: boolean | undefined;
|
|
40
|
+
}>;
|
|
41
|
+
UploadProgressIndicator: import("react").ComponentType<import("../..").UploadProgressIndicatorProps>;
|
|
42
|
+
additionalTextInputProps?: import("react-native").TextInputProps | undefined;
|
|
43
|
+
autoCompleteSuggestionsLimit?: number | undefined;
|
|
44
|
+
autoCompleteTriggerSettings?: ((settings: import("../../..").ACITriggerSettingsParams<StreamChatGenerics>) => import("../../..").TriggerSettings<StreamChatGenerics>) | undefined;
|
|
45
|
+
compressImageQuality?: number | undefined;
|
|
46
|
+
doDocUploadRequest?: ((file: import("../../../types/types").File, channel: import("stream-chat").Channel<StreamChatGenerics>) => Promise<import("stream-chat").SendFileAPIResponse>) | undefined;
|
|
47
|
+
doImageUploadRequest?: ((file: {
|
|
48
|
+
name?: string | undefined;
|
|
49
|
+
uri?: string | undefined;
|
|
50
|
+
}, channel: import("stream-chat").Channel<StreamChatGenerics>) => Promise<import("stream-chat").SendFileAPIResponse>) | undefined;
|
|
51
|
+
editing?: import("../..").MessageType<StreamChatGenerics> | undefined;
|
|
52
|
+
emojiSearchIndex?: import("../../../contexts/messageInputContext/MessageInputContext").EmojiSearchIndex | undefined;
|
|
53
|
+
initialValue?: string | undefined;
|
|
54
|
+
Input?: import("react").ComponentType<Omit<Partial<Pick<import("../../..").ChatContextValue<StreamChatGenerics>, "isOnline"> & Pick<import("../../..").ChannelContextValue<StreamChatGenerics>, "disabled" | "members" | "watchers" | "threadList"> & Pick<import("../../../contexts/messageInputContext/MessageInputContext").MessageInputContextValue<StreamChatGenerics>, "maxNumberOfFiles" | "numberOfUploads" | "clearEditingState" | "clearQuotedMessageState" | "CooldownTimer" | "FileUploadPreview" | "ImageUploadPreview" | "InputEditingStateHeader" | "InputGiphySearch" | "InputReplyStateHeader" | "quotedMessage" | "SendButton" | "ShowThreadMessageInChannelButton" | "additionalTextInputProps" | "editing" | "Input" | "InputButtons" | "asyncIds" | "asyncUploads" | "closeAttachmentPicker" | "cooldownEndsAt" | "fileUploads" | "removeFile" | "giphyActive" | "imageUploads" | "removeImage" | "inputBoxRef" | "isValidMessage" | "mentionedUsers" | "resetInput" | "sending" | "sendMessageAsync" | "setShowMoreOptions" | "setGiphyActive" | "showMoreOptions" | "uploadNewFile" | "uploadNewImage"> & Pick<import("../../..").MessagesContextValue<StreamChatGenerics>, "Reply"> & Pick<import("../../..").SuggestionsContextValue<StreamChatGenerics>, "suggestions" | "AutoCompleteSuggestionHeader" | "AutoCompleteSuggestionItem" | "AutoCompleteSuggestionList" | "triggerType"> & Pick<import("../../..").ThreadContextValue<StreamChatGenerics>, "thread"> & Pick<import("../../..").TranslationContextValue, "t">>, "Input"> & Partial<import("../..").InputButtonsWithContextProps<StreamChatGenerics>> & {
|
|
55
|
+
getUsers: () => import("stream-chat").UserResponse<StreamChatGenerics>[];
|
|
56
|
+
}> | undefined;
|
|
57
|
+
InputButtons?: import("react").ComponentType<Partial<import("../..").InputButtonsWithContextProps<StreamChatGenerics>>> | undefined;
|
|
58
|
+
maxMessageLength?: number | undefined;
|
|
59
|
+
mentionAllAppUsersEnabled?: boolean | undefined;
|
|
60
|
+
mentionAllAppUsersQuery?: import("../../../contexts/messageInputContext/MessageInputContext").MentionAllAppUsersQuery<StreamChatGenerics> | undefined;
|
|
61
|
+
onChangeText?: ((newText: string) => void) | undefined;
|
|
62
|
+
SendMessageDisallowedIndicator?: import("react").ComponentType<{}> | undefined;
|
|
63
|
+
setInputRef?: ((ref: import("react-native").TextInput | null) => void) | undefined;
|
|
64
|
+
} & {
|
|
4
65
|
/**
|
|
5
66
|
* To ensure we allow re-render, when channel is changed
|
|
6
67
|
*/
|
|
@@ -3,7 +3,7 @@ import type { Channel, ChannelFilters, ChannelOptions, ChannelSort, Event } from
|
|
|
3
3
|
import { ChannelListMessengerProps } from './ChannelListMessenger';
|
|
4
4
|
import { ChannelsContextValue } from '../../contexts/channelsContext/ChannelsContext';
|
|
5
5
|
import type { DefaultStreamChatGenerics } from '../../types/types';
|
|
6
|
-
export
|
|
6
|
+
export type ChannelListProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Partial<Pick<ChannelsContextValue<StreamChatGenerics>, 'additionalFlatListProps' | 'EmptyStateIndicator' | 'FooterLoadingIndicator' | 'HeaderErrorIndicator' | 'HeaderNetworkDownIndicator' | 'LoadingErrorIndicator' | 'LoadingIndicator' | 'Preview' | 'setFlatListRef' | 'ListHeaderComponent' | 'onSelect' | 'PreviewAvatar' | 'PreviewMessage' | 'PreviewMutedStatus' | 'PreviewStatus' | 'PreviewTitle' | 'PreviewUnreadCount' | 'loadMoreThreshold' | 'Skeleton' | 'maxUnreadCount' | 'numberOfSkeletons'>> & {
|
|
7
7
|
/** Optional function to filter channels prior to rendering the list. Do not use any complex logic that would delay the loading of the ChannelList. We recommend using a pure function with array methods like filter/sort/reduce. */
|
|
8
8
|
channelRenderFilterFn?: (channels: Array<Channel<StreamChatGenerics>>) => Array<Channel<StreamChatGenerics>>;
|
|
9
9
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { GestureResponderEvent } from 'react-native';
|
|
3
|
-
export
|
|
3
|
+
export type HeaderErrorProps = {
|
|
4
4
|
onPress?: (event: GestureResponderEvent) => void;
|
|
5
5
|
};
|
|
6
6
|
export declare const ChannelListHeaderErrorIndicator: React.FC<HeaderErrorProps>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ChannelsContextValue } from '../../contexts/channelsContext/ChannelsContext';
|
|
3
3
|
import type { DefaultStreamChatGenerics } from '../../types/types';
|
|
4
|
-
export
|
|
5
|
-
export
|
|
4
|
+
export type ChannelListMessengerPropsWithContext<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Omit<ChannelsContextValue<StreamChatGenerics>, 'HeaderErrorIndicator' | 'HeaderNetworkDownIndicator' | 'maxUnreadCount' | 'numberOfSkeletons' | 'onSelect' | 'Preview' | 'PreviewTitle' | 'PreviewStatus' | 'PreviewAvatar' | 'previewMessage' | 'Skeleton'>;
|
|
5
|
+
export type ChannelListMessengerProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Partial<ChannelListMessengerPropsWithContext<StreamChatGenerics>>;
|
|
6
6
|
/**
|
|
7
7
|
* This UI component displays the preview list of channels and handles Channel navigation. It
|
|
8
8
|
* receives all props from the ChannelList component.
|
package/lib/typescript/components/ChannelList/hooks/listeners/useAddedToChannelNotification.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { Channel, Event } from 'stream-chat';
|
|
3
3
|
import type { DefaultStreamChatGenerics } from '../../../../types/types';
|
|
4
|
-
|
|
4
|
+
type Parameters<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
5
5
|
setChannels: React.Dispatch<React.SetStateAction<Channel<StreamChatGenerics>[] | null>>;
|
|
6
6
|
onAddedToChannel?: (setChannels: React.Dispatch<React.SetStateAction<Channel<StreamChatGenerics>[] | null>>, event: Event<StreamChatGenerics>) => void;
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { Channel, Event } from 'stream-chat';
|
|
3
3
|
import type { DefaultStreamChatGenerics } from '../../../../types/types';
|
|
4
|
-
|
|
4
|
+
type Parameters<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
5
5
|
setChannels: React.Dispatch<React.SetStateAction<Channel<StreamChatGenerics>[] | null>>;
|
|
6
6
|
onChannelDeleted?: (setChannels: React.Dispatch<React.SetStateAction<Channel<StreamChatGenerics>[] | null>>, event: Event<StreamChatGenerics>) => void;
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { Channel, Event } from 'stream-chat';
|
|
3
3
|
import type { DefaultStreamChatGenerics } from '../../../../types/types';
|
|
4
|
-
|
|
4
|
+
type Parameters<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
5
5
|
setChannels: React.Dispatch<React.SetStateAction<Channel<StreamChatGenerics>[] | null>>;
|
|
6
6
|
onChannelHidden?: (setChannels: React.Dispatch<React.SetStateAction<Channel<StreamChatGenerics>[] | null>>, event: Event<StreamChatGenerics>) => void;
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { Channel, Event } from 'stream-chat';
|
|
3
3
|
import type { DefaultStreamChatGenerics } from '../../../../types/types';
|
|
4
|
-
|
|
4
|
+
type Parameters<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
5
5
|
refreshList: () => void;
|
|
6
6
|
setChannels: React.Dispatch<React.SetStateAction<Channel<StreamChatGenerics>[] | null>>;
|
|
7
7
|
setForceUpdate: React.Dispatch<React.SetStateAction<number>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { Channel, Event } from 'stream-chat';
|
|
3
3
|
import type { DefaultStreamChatGenerics } from '../../../../types/types';
|
|
4
|
-
|
|
4
|
+
type Parameters<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
5
5
|
setChannels: React.Dispatch<React.SetStateAction<Channel<StreamChatGenerics>[] | null>>;
|
|
6
6
|
onChannelUpdated?: (setChannels: React.Dispatch<React.SetStateAction<Channel<StreamChatGenerics>[] | null>>, event: Event<StreamChatGenerics>) => void;
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { Channel, Event } from 'stream-chat';
|
|
3
3
|
import type { DefaultStreamChatGenerics } from '../../../../types/types';
|
|
4
|
-
|
|
4
|
+
type Parameters<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
5
5
|
setChannels: React.Dispatch<React.SetStateAction<Channel<StreamChatGenerics>[] | null>>;
|
|
6
6
|
onChannelVisible?: (setChannels: React.Dispatch<React.SetStateAction<Channel<StreamChatGenerics>[] | null>>, event: Event<StreamChatGenerics>) => void;
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { Channel, Event } from 'stream-chat';
|
|
3
3
|
import type { DefaultStreamChatGenerics } from '../../../../types/types';
|
|
4
|
-
|
|
4
|
+
type Parameters<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
5
5
|
lockChannelOrder: boolean;
|
|
6
6
|
setChannels: React.Dispatch<React.SetStateAction<Channel<StreamChatGenerics>[] | null>>;
|
|
7
7
|
onNewMessage?: (lockChannelOrder: boolean, setChannels: React.Dispatch<React.SetStateAction<Channel<StreamChatGenerics>[] | null>>, event: Event<StreamChatGenerics>) => void;
|
package/lib/typescript/components/ChannelList/hooks/listeners/useNewMessageNotification.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { Channel, Event } from 'stream-chat';
|
|
3
3
|
import type { DefaultStreamChatGenerics } from '../../../../types/types';
|
|
4
|
-
|
|
4
|
+
type Parameters<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
5
5
|
setChannels: React.Dispatch<React.SetStateAction<Channel<StreamChatGenerics>[] | null>>;
|
|
6
6
|
onMessageNew?: (setChannels: React.Dispatch<React.SetStateAction<Channel<StreamChatGenerics>[] | null>>, event: Event<StreamChatGenerics>) => void;
|
|
7
7
|
onNewMessageNotification?: (setChannels: React.Dispatch<React.SetStateAction<Channel<StreamChatGenerics>[] | null>>, event: Event<StreamChatGenerics>) => void;
|
package/lib/typescript/components/ChannelList/hooks/listeners/useRemovedFromChannelNotification.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { Channel, Event } from 'stream-chat';
|
|
3
3
|
import type { DefaultStreamChatGenerics } from '../../../../types/types';
|
|
4
|
-
|
|
4
|
+
type Parameters<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
5
5
|
setChannels: React.Dispatch<React.SetStateAction<Channel<StreamChatGenerics>[] | null>>;
|
|
6
6
|
onRemovedFromChannel?: (setChannels: React.Dispatch<React.SetStateAction<Channel<StreamChatGenerics>[] | null>>, event: Event<StreamChatGenerics>) => void;
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { Channel } from 'stream-chat';
|
|
3
3
|
import type { DefaultStreamChatGenerics } from '../../../../types/types';
|
|
4
|
-
|
|
4
|
+
type Parameters<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
5
5
|
setChannels: React.Dispatch<React.SetStateAction<Channel<StreamChatGenerics>[] | null>>;
|
|
6
6
|
};
|
|
7
7
|
export declare const useUserPresence: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ setChannels, }: Parameters<StreamChatGenerics>) => void;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { Channel, ChannelFilters, ChannelOptions, ChannelSort } from 'stream-chat';
|
|
3
3
|
import type { DefaultStreamChatGenerics } from '../../../types/types';
|
|
4
|
-
|
|
4
|
+
type Parameters<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
5
5
|
enableOfflineSupport: boolean;
|
|
6
6
|
filters: ChannelFilters<StreamChatGenerics>;
|
|
7
7
|
options: ChannelOptions;
|
|
8
8
|
setForceUpdate: React.Dispatch<React.SetStateAction<number>>;
|
|
9
9
|
sort: ChannelSort<StreamChatGenerics>;
|
|
10
10
|
};
|
|
11
|
-
|
|
12
|
-
export
|
|
11
|
+
type QueryType = 'queryLocalDB' | 'reload' | 'refresh' | 'loadChannels';
|
|
12
|
+
export type QueryChannels = (queryType?: QueryType, retryCount?: number) => Promise<void>;
|
|
13
13
|
export declare const usePaginatedChannels: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ enableOfflineSupport, filters, options, setForceUpdate, sort, }: Parameters<StreamChatGenerics>) => {
|
|
14
14
|
channels: Channel<StreamChatGenerics>[] | null;
|
|
15
15
|
error: Error | undefined;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { Channel, StreamChat } from 'stream-chat';
|
|
2
2
|
import type { DefaultStreamChatGenerics } from '../../types/types';
|
|
3
|
-
|
|
3
|
+
type MoveParameters<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
4
4
|
channels: Channel<StreamChatGenerics>[];
|
|
5
5
|
cid: string;
|
|
6
6
|
};
|
|
7
7
|
export declare const moveChannelUp: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ cid, channels, }: MoveParameters<StreamChatGenerics>) => Channel<StreamChatGenerics>[];
|
|
8
|
-
|
|
8
|
+
type GetParameters<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
9
9
|
client: StreamChat<StreamChatGenerics>;
|
|
10
10
|
id: string;
|
|
11
11
|
type: string;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import type { ChannelPreviewProps } from './ChannelPreview';
|
|
3
3
|
import { ChatContextValue } from '../../contexts/chatContext/ChatContext';
|
|
4
4
|
import type { DefaultStreamChatGenerics } from '../../types/types';
|
|
5
|
-
export
|
|
5
|
+
export type ChannelAvatarProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<ChannelPreviewProps<StreamChatGenerics>, 'channel'>;
|
|
6
6
|
/**
|
|
7
7
|
* This UI component displays an avatar for a particular channel.
|
|
8
8
|
*/
|
|
9
|
-
export declare const ChannelAvatarWithContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: ChannelAvatarProps<StreamChatGenerics> & Pick<ChatContextValue
|
|
9
|
+
export declare const ChannelAvatarWithContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: ChannelAvatarProps<StreamChatGenerics> & Pick<ChatContextValue, "ImageComponent">) => JSX.Element;
|
|
10
10
|
export declare const ChannelAvatar: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: ChannelAvatarProps<StreamChatGenerics>) => JSX.Element;
|
|
@@ -3,11 +3,11 @@ import type { Channel } from 'stream-chat';
|
|
|
3
3
|
import { ChannelsContextValue } from '../../contexts/channelsContext/ChannelsContext';
|
|
4
4
|
import { ChatContextValue } from '../../contexts/chatContext/ChatContext';
|
|
5
5
|
import type { DefaultStreamChatGenerics } from '../../types/types';
|
|
6
|
-
export
|
|
6
|
+
export type ChannelPreviewPropsWithContext<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<ChatContextValue<StreamChatGenerics>, 'client'> & Pick<ChannelsContextValue<StreamChatGenerics>, 'Preview' | 'forceUpdate'> & {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Instance of Channel from stream-chat package.
|
|
9
9
|
*/
|
|
10
10
|
channel: Channel<StreamChatGenerics>;
|
|
11
11
|
};
|
|
12
|
-
export
|
|
12
|
+
export type ChannelPreviewProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Partial<Omit<ChannelPreviewPropsWithContext<StreamChatGenerics>, 'channel'>> & Pick<ChannelPreviewPropsWithContext<StreamChatGenerics>, 'channel'>;
|
|
13
13
|
export declare const ChannelPreview: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: ChannelPreviewProps<StreamChatGenerics>) => JSX.Element;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { LatestMessagePreview } from './hooks/useLatestMessagePreview';
|
|
3
3
|
import type { DefaultStreamChatGenerics } from '../../types/types';
|
|
4
|
-
export
|
|
4
|
+
export type ChannelPreviewMessageProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
5
|
+
/**
|
|
6
|
+
* Latest message on a channel, formatted for preview.
|
|
7
|
+
*/
|
|
5
8
|
latestMessagePreview: LatestMessagePreview<StreamChatGenerics>;
|
|
6
9
|
};
|
|
7
10
|
export declare const ChannelPreviewMessage: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: ChannelPreviewMessageProps<StreamChatGenerics>) => JSX.Element;
|
|
@@ -3,7 +3,7 @@ import type { ChannelPreviewProps } from './ChannelPreview';
|
|
|
3
3
|
import type { LatestMessagePreview } from './hooks/useLatestMessagePreview';
|
|
4
4
|
import { ChannelsContextValue } from '../../contexts/channelsContext/ChannelsContext';
|
|
5
5
|
import type { DefaultStreamChatGenerics } from '../../types/types';
|
|
6
|
-
export
|
|
6
|
+
export type ChannelPreviewMessengerPropsWithContext<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<ChannelPreviewProps<StreamChatGenerics>, 'channel'> & Pick<ChannelsContextValue<StreamChatGenerics>, 'maxUnreadCount' | 'onSelect' | 'PreviewAvatar' | 'PreviewMessage' | 'PreviewMutedStatus' | 'PreviewStatus' | 'PreviewTitle' | 'PreviewUnreadCount'> & {
|
|
7
7
|
/**
|
|
8
8
|
* Latest message on a channel, formatted for preview
|
|
9
9
|
*
|
|
@@ -43,7 +43,7 @@ export declare type ChannelPreviewMessengerPropsWithContext<StreamChatGenerics e
|
|
|
43
43
|
/** Number of unread messages on the channel */
|
|
44
44
|
unread?: number;
|
|
45
45
|
};
|
|
46
|
-
export
|
|
46
|
+
export type ChannelPreviewMessengerProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Partial<Omit<ChannelPreviewMessengerPropsWithContext<StreamChatGenerics>, 'channel' | 'latestMessagePreview'>> & Pick<ChannelPreviewMessengerPropsWithContext<StreamChatGenerics>, 'channel' | 'latestMessagePreview'>;
|
|
47
47
|
/**
|
|
48
48
|
* This UI component displays an individual preview item for each channel in a list. It also receives all props
|
|
49
49
|
* from the ChannelPreview component.
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { ChannelPreviewProps } from './ChannelPreview';
|
|
3
2
|
import type { ChannelPreviewMessengerPropsWithContext } from './ChannelPreviewMessenger';
|
|
4
3
|
import type { DefaultStreamChatGenerics } from '../../types/types';
|
|
5
|
-
export
|
|
4
|
+
export type ChannelPreviewStatusProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<ChannelPreviewMessengerPropsWithContext<StreamChatGenerics>, 'latestMessagePreview' | 'formatLatestMessageDate'>;
|
|
6
5
|
export declare const ChannelPreviewStatus: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: ChannelPreviewStatusProps<StreamChatGenerics>) => JSX.Element;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
export type ChannelPreviewTitleProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Formatted name for the previewed channel.
|
|
5
|
+
*/
|
|
5
6
|
displayName: string;
|
|
6
7
|
};
|
|
7
|
-
export declare const ChannelPreviewTitle:
|
|
8
|
+
export declare const ChannelPreviewTitle: (props: ChannelPreviewTitleProps) => JSX.Element;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
2
|
+
import type { ChannelsContextValue } from '../../contexts/channelsContext/ChannelsContext';
|
|
3
3
|
import type { DefaultStreamChatGenerics } from '../../types/types';
|
|
4
|
-
export
|
|
5
|
-
|
|
4
|
+
export type ChannelPreviewUnreadCountProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<ChannelsContextValue<StreamChatGenerics>, 'maxUnreadCount'> & {
|
|
5
|
+
/**
|
|
6
|
+
* Number of unread messages on the channel
|
|
7
|
+
*/
|
|
6
8
|
unread?: number;
|
|
7
9
|
};
|
|
8
10
|
export declare const ChannelPreviewUnreadCount: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: ChannelPreviewUnreadCountProps<StreamChatGenerics>) => JSX.Element | null;
|
|
@@ -6,4 +6,4 @@ export declare const getChannelPreviewDisplayName: <StreamChatGenerics extends D
|
|
|
6
6
|
currentUserId?: string | undefined;
|
|
7
7
|
members?: Record<string, ChannelMemberResponse<StreamChatGenerics>> | undefined;
|
|
8
8
|
}) => string;
|
|
9
|
-
export declare const useChannelPreviewDisplayName: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(channel?: Channel<StreamChatGenerics> | undefined, characterLength?: number
|
|
9
|
+
export declare const useChannelPreviewDisplayName: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(channel?: Channel<StreamChatGenerics> | undefined, characterLength?: number) => string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Channel, ChannelState, MessageResponse } from 'stream-chat';
|
|
2
2
|
import type { DefaultStreamChatGenerics } from '../../../types/types';
|
|
3
|
-
|
|
4
|
-
export
|
|
3
|
+
type LatestMessage<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = ReturnType<ChannelState<StreamChatGenerics>['formatMessage']> | MessageResponse<StreamChatGenerics>;
|
|
4
|
+
export type LatestMessagePreview<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
5
5
|
created_at: string | number | Date;
|
|
6
6
|
messageObject: LatestMessage<StreamChatGenerics> | undefined;
|
|
7
7
|
previews: {
|
|
@@ -4,7 +4,7 @@ import { DeepPartial } from '../../contexts/themeContext/ThemeContext';
|
|
|
4
4
|
import type { Theme } from '../../contexts/themeContext/utils/theme';
|
|
5
5
|
import type { DefaultStreamChatGenerics } from '../../types/types';
|
|
6
6
|
import type { Streami18n } from '../../utils/Streami18n';
|
|
7
|
-
export
|
|
7
|
+
export type ChatProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<ChatContextValue<StreamChatGenerics>, 'client'> & Partial<Pick<ChatContextValue<StreamChatGenerics>, 'ImageComponent'>> & {
|
|
8
8
|
/**
|
|
9
9
|
* When false, ws connection won't be disconnection upon backgrounding the app.
|
|
10
10
|
* To receive push notifications, its necessary that user doesn't have active
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Event } from 'stream-chat';
|
|
2
|
-
export declare const handleEventToSyncDB: (event: Event, flush?: boolean
|
|
2
|
+
export declare const handleEventToSyncDB: (event: Event, flush?: boolean) => import("../../../store/types").PreparedQueries[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { StreamChat } from 'stream-chat';
|
|
2
2
|
import type { DefaultStreamChatGenerics } from '../../../types/types';
|
|
3
|
-
|
|
3
|
+
type Params<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
4
4
|
client: StreamChat<StreamChatGenerics>;
|
|
5
5
|
enableOfflineSupport: boolean;
|
|
6
6
|
initialisedDatabase: boolean;
|
|
@@ -16,7 +16,7 @@ export declare enum IsSwiping {
|
|
|
16
16
|
TRUE = 1,
|
|
17
17
|
FALSE = 2
|
|
18
18
|
}
|
|
19
|
-
export
|
|
19
|
+
export type ImageGalleryCustomComponents<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
20
20
|
/**
|
|
21
21
|
* Override props for following UI components, which are part of [image gallery](https://github.com/GetStream/stream-chat-react-native/wiki/Cookbook-v3.0#gallery-components).
|
|
22
22
|
*
|
|
@@ -55,7 +55,7 @@ export declare type ImageGalleryCustomComponents<StreamChatGenerics extends Defa
|
|
|
55
55
|
header?: ImageGalleryHeaderCustomComponentProps<StreamChatGenerics>;
|
|
56
56
|
};
|
|
57
57
|
};
|
|
58
|
-
|
|
58
|
+
type Props<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = ImageGalleryCustomComponents<StreamChatGenerics> & {
|
|
59
59
|
overlayOpacity: Animated.SharedValue<number>;
|
|
60
60
|
} & Pick<OverlayProviderProps<StreamChatGenerics>, 'giphyVersion' | 'imageGalleryGridSnapPoints' | 'imageGalleryGridHandleHeight' | 'numberOfImageGalleryGridColumns' | 'autoPlayVideo'>;
|
|
61
61
|
export declare const ImageGallery: {
|
|
@@ -66,7 +66,7 @@ export declare const ImageGallery: {
|
|
|
66
66
|
* Clamping worklet to clamp the scaling
|
|
67
67
|
*/
|
|
68
68
|
export declare const clamp: (value: number, lowerBound: number, upperBound: number) => number;
|
|
69
|
-
export
|
|
69
|
+
export type Photo<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
70
70
|
id: string;
|
|
71
71
|
uri: string;
|
|
72
72
|
channelId?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ImageStyle, StyleProp } from 'react-native';
|
|
3
3
|
import Animated from 'react-native-reanimated';
|
|
4
|
-
|
|
4
|
+
type Props = {
|
|
5
5
|
accessibilityLabel: string;
|
|
6
6
|
index: number;
|
|
7
7
|
offsetScale: Animated.SharedValue<number>;
|
|
@@ -3,7 +3,7 @@ import { ViewStyle } from 'react-native';
|
|
|
3
3
|
import type { StyleProp } from 'react-native';
|
|
4
4
|
import Animated from 'react-native-reanimated';
|
|
5
5
|
import { VideoType } from '../../../native';
|
|
6
|
-
export
|
|
6
|
+
export type AnimatedGalleryVideoType = {
|
|
7
7
|
attachmentId: string;
|
|
8
8
|
handleEnd: () => void;
|
|
9
9
|
handleLoad: (index: string, duration: number) => void;
|
|
@@ -3,21 +3,21 @@ import Animated from 'react-native-reanimated';
|
|
|
3
3
|
import { VideoType } from '../../../native';
|
|
4
4
|
import type { DefaultStreamChatGenerics } from '../../../types/types';
|
|
5
5
|
import type { Photo } from '../ImageGallery';
|
|
6
|
-
export
|
|
6
|
+
export type ImageGalleryFooterCustomComponent<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = ({ openGridView, photo, share, shareMenuOpen, }: {
|
|
7
7
|
openGridView: () => void;
|
|
8
8
|
share: () => Promise<void>;
|
|
9
9
|
shareMenuOpen: boolean;
|
|
10
10
|
photo?: Photo<StreamChatGenerics>;
|
|
11
11
|
}) => React.ReactElement | null;
|
|
12
|
-
export
|
|
12
|
+
export type ImageGalleryFooterVideoControlProps = {
|
|
13
13
|
duration: number;
|
|
14
14
|
onPlayPause: (status?: boolean) => void;
|
|
15
15
|
paused: boolean;
|
|
16
16
|
progress: number;
|
|
17
17
|
videoRef: React.RefObject<VideoType>;
|
|
18
18
|
};
|
|
19
|
-
export
|
|
20
|
-
export
|
|
19
|
+
export type ImageGalleryFooterVideoControlComponent = ({ duration, onPlayPause, paused, progress, }: ImageGalleryFooterVideoControlProps) => React.ReactElement | null;
|
|
20
|
+
export type ImageGalleryFooterCustomComponentProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
21
21
|
centerElement?: ImageGalleryFooterCustomComponent<StreamChatGenerics>;
|
|
22
22
|
GridIcon?: React.ReactElement;
|
|
23
23
|
leftElement?: ImageGalleryFooterCustomComponent<StreamChatGenerics>;
|
|
@@ -25,7 +25,7 @@ export declare type ImageGalleryFooterCustomComponentProps<StreamChatGenerics ex
|
|
|
25
25
|
ShareIcon?: React.ReactElement;
|
|
26
26
|
videoControlElement?: ImageGalleryFooterVideoControlComponent;
|
|
27
27
|
};
|
|
28
|
-
|
|
28
|
+
type ImageGalleryFooterPropsWithContext<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = ImageGalleryFooterCustomComponentProps<StreamChatGenerics> & {
|
|
29
29
|
accessibilityLabel: string;
|
|
30
30
|
duration: number;
|
|
31
31
|
onPlayPause: () => void;
|
|
@@ -40,7 +40,7 @@ declare type ImageGalleryFooterPropsWithContext<StreamChatGenerics extends Defau
|
|
|
40
40
|
visible: Animated.SharedValue<number>;
|
|
41
41
|
};
|
|
42
42
|
export declare const ImageGalleryFooterWithContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: ImageGalleryFooterPropsWithContext<StreamChatGenerics>) => JSX.Element;
|
|
43
|
-
export
|
|
43
|
+
export type ImageGalleryFooterProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = ImageGalleryFooterPropsWithContext<StreamChatGenerics>;
|
|
44
44
|
export declare const ImageGalleryFooter: {
|
|
45
45
|
<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: ImageGalleryFooterProps<StreamChatGenerics>): JSX.Element;
|
|
46
46
|
displayName: string;
|
|
@@ -2,17 +2,17 @@ import React from 'react';
|
|
|
2
2
|
import Animated from 'react-native-reanimated';
|
|
3
3
|
import type { DefaultStreamChatGenerics } from '../../../types/types';
|
|
4
4
|
import type { Photo } from '../ImageGallery';
|
|
5
|
-
export
|
|
5
|
+
export type ImageGalleryHeaderCustomComponent<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = ({ hideOverlay, photo, }: {
|
|
6
6
|
hideOverlay: () => void;
|
|
7
7
|
photo?: Photo<StreamChatGenerics>;
|
|
8
8
|
}) => React.ReactElement | null;
|
|
9
|
-
export
|
|
9
|
+
export type ImageGalleryHeaderCustomComponentProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
10
10
|
centerElement?: ImageGalleryHeaderCustomComponent<StreamChatGenerics>;
|
|
11
11
|
CloseIcon?: React.ReactElement;
|
|
12
12
|
leftElement?: ImageGalleryHeaderCustomComponent<StreamChatGenerics>;
|
|
13
13
|
rightElement?: ImageGalleryHeaderCustomComponent<StreamChatGenerics>;
|
|
14
14
|
};
|
|
15
|
-
|
|
15
|
+
type Props<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = ImageGalleryHeaderCustomComponentProps<StreamChatGenerics> & {
|
|
16
16
|
opacity: Animated.SharedValue<number>;
|
|
17
17
|
visible: Animated.SharedValue<number>;
|
|
18
18
|
photo?: Photo<StreamChatGenerics>;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { DefaultStreamChatGenerics } from '../../../types/types';
|
|
3
3
|
import type { Photo } from '../ImageGallery';
|
|
4
|
-
export
|
|
4
|
+
export type ImageGalleryGridImageComponent<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = ({ item, }: {
|
|
5
5
|
item: Photo<StreamChatGenerics> & {
|
|
6
6
|
selectAndClose: () => void;
|
|
7
7
|
numberOfImageGalleryGridColumns?: number;
|
|
8
8
|
};
|
|
9
9
|
}) => React.ReactElement | null;
|
|
10
|
-
export
|
|
10
|
+
export type ImageGalleryGridImageComponents<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
11
11
|
avatarComponent?: ImageGalleryGridImageComponent<StreamChatGenerics>;
|
|
12
12
|
imageComponent?: ImageGalleryGridImageComponent<StreamChatGenerics>;
|
|
13
13
|
};
|
|
14
|
-
export
|
|
14
|
+
export type GridImageItem<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Photo<StreamChatGenerics> & ImageGalleryGridImageComponents<StreamChatGenerics> & {
|
|
15
15
|
selectAndClose: () => void;
|
|
16
16
|
numberOfImageGalleryGridColumns?: number;
|
|
17
17
|
};
|
|
18
|
-
export
|
|
18
|
+
export type ImageGridType<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = ImageGalleryGridImageComponents<StreamChatGenerics> & {
|
|
19
19
|
closeGridView: () => void;
|
|
20
20
|
photos: Photo<StreamChatGenerics>[];
|
|
21
21
|
setSelectedMessage: React.Dispatch<React.SetStateAction<{
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type ImageGalleryGridHandleCustomComponent = ({ closeGridView, }: {
|
|
3
3
|
closeGridView: () => void;
|
|
4
4
|
}) => React.ReactElement | null;
|
|
5
|
-
export
|
|
5
|
+
export type ImageGalleryGridHandleCustomComponentProps = {
|
|
6
6
|
centerComponent?: ImageGalleryGridHandleCustomComponent;
|
|
7
7
|
leftComponent?: ImageGalleryGridHandleCustomComponent;
|
|
8
8
|
rightComponent?: ImageGalleryGridHandleCustomComponent;
|
|
9
9
|
};
|
|
10
|
-
|
|
10
|
+
type Props = ImageGalleryGridHandleCustomComponentProps & {
|
|
11
11
|
closeGridView: () => void;
|
|
12
12
|
};
|
|
13
13
|
export declare const ImageGridHandle: React.FC<Props>;
|