stream-chat-react-native-core 5.40.0-rc.2 → 5.40.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/README.md +1 -0
- package/lib/commonjs/components/Attachment/Attachment.js +1 -1
- package/lib/commonjs/components/Attachment/Attachment.js.map +1 -1
- package/lib/commonjs/components/Attachment/Card.js +6 -6
- package/lib/commonjs/components/Attachment/Card.js.map +1 -1
- package/lib/commonjs/components/Attachment/FileAttachment.js +5 -5
- package/lib/commonjs/components/Attachment/FileAttachment.js.map +1 -1
- package/lib/commonjs/components/Attachment/FileAttachmentGroup.js +1 -1
- package/lib/commonjs/components/Attachment/FileAttachmentGroup.js.map +1 -1
- package/lib/commonjs/components/Attachment/Gallery.js +22 -29
- package/lib/commonjs/components/Attachment/Gallery.js.map +1 -1
- package/lib/commonjs/components/Attachment/Giphy.js +8 -8
- package/lib/commonjs/components/Attachment/Giphy.js.map +1 -1
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildGallery.js +0 -7
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildGallery.js.map +1 -1
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.js +1 -3
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.js.map +1 -1
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.js +0 -3
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.js.map +1 -1
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.js +0 -4
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.js.map +1 -1
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildThumbnail.js +0 -2
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildThumbnail.js.map +1 -1
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildThumbnailGrid.js +0 -2
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildThumbnailGrid.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerItem.js +3 -3
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerItem.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerSelectionBar.js +27 -0
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerSelectionBar.js.map +1 -1
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionList.js +2 -1
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionList.js.map +1 -1
- package/lib/commonjs/components/Avatar/Avatar.js +0 -4
- package/lib/commonjs/components/Avatar/Avatar.js.map +1 -1
- package/lib/commonjs/components/Avatar/GroupAvatar.js +0 -4
- package/lib/commonjs/components/Avatar/GroupAvatar.js.map +1 -1
- package/lib/commonjs/components/Channel/Channel.js +445 -301
- package/lib/commonjs/components/Channel/Channel.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateChannelContext.js +2 -0
- package/lib/commonjs/components/Channel/hooks/useCreateChannelContext.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateInputMessageInputContext.js +9 -3
- package/lib/commonjs/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js +15 -27
- package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateThreadContext.js +9 -8
- package/lib/commonjs/components/Channel/hooks/useCreateThreadContext.js.map +1 -1
- package/lib/commonjs/components/ChannelList/ChannelList.js +2 -0
- package/lib/commonjs/components/ChannelList/ChannelList.js.map +1 -1
- package/lib/commonjs/components/ChannelList/ChannelListFooterLoadingIndicator.js +1 -1
- package/lib/commonjs/components/ChannelList/ChannelListFooterLoadingIndicator.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/listeners/useNewMessageNotification.js +18 -8
- package/lib/commonjs/components/ChannelList/hooks/listeners/useNewMessageNotification.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/hooks/useLatestMessagePreview.js +46 -3
- package/lib/commonjs/components/ChannelPreview/hooks/useLatestMessagePreview.js.map +1 -1
- package/lib/commonjs/components/Chat/Chat.js +11 -2
- package/lib/commonjs/components/Chat/Chat.js.map +1 -1
- package/lib/commonjs/components/Chat/hooks/handleEventToSyncDB.js +13 -3
- package/lib/commonjs/components/Chat/hooks/handleEventToSyncDB.js.map +1 -1
- package/lib/commonjs/components/Chat/hooks/useCreateChatContext.js +2 -0
- package/lib/commonjs/components/Chat/hooks/useCreateChatContext.js.map +1 -1
- package/lib/commonjs/components/Chat/hooks/useIsOnline.js +13 -16
- package/lib/commonjs/components/Chat/hooks/useIsOnline.js.map +1 -1
- package/lib/commonjs/components/{UIComponents/ImageBackground.js → ImageBackground.js} +1 -1
- package/lib/commonjs/components/ImageBackground.js.map +1 -0
- package/lib/commonjs/components/ImageGallery/ImageGallery.js +96 -58
- package/lib/commonjs/components/ImageGallery/ImageGallery.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/AnimatedGalleryVideo.js +3 -3
- package/lib/commonjs/components/ImageGallery/components/AnimatedGalleryVideo.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryFooter.js +90 -92
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js +39 -39
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryOverlay.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/hooks/useImageGalleryGestures.js +221 -221
- package/lib/commonjs/components/ImageGallery/hooks/useImageGalleryGestures.js.map +1 -1
- package/lib/commonjs/components/Indicators/LoadingIndicator.js +1 -1
- package/lib/commonjs/components/Indicators/LoadingIndicator.js.map +1 -1
- package/lib/commonjs/components/Message/Message.js +186 -123
- package/lib/commonjs/components/Message/Message.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageAvatar.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageContent.js +168 -48
- package/lib/commonjs/components/Message/MessageSimple/MessageContent.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageDeleted.js +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageDeleted.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageFooter.js +1 -0
- package/lib/commonjs/components/Message/MessageSimple/MessageFooter.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessagePinnedHeader.js +34 -20
- package/lib/commonjs/components/Message/MessageSimple/MessagePinnedHeader.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageSimple.js +44 -180
- package/lib/commonjs/components/Message/MessageSimple/MessageSimple.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageTextContainer.js +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageTextContainer.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/ReactionList.js +305 -0
- package/lib/commonjs/components/Message/MessageSimple/ReactionList.js.map +1 -0
- package/lib/commonjs/components/Message/hooks/useCreateMessageContext.js +16 -4
- package/lib/commonjs/components/Message/hooks/useCreateMessageContext.js.map +1 -1
- package/lib/commonjs/components/Message/hooks/useMessageActions.js +72 -36
- package/lib/commonjs/components/Message/hooks/useMessageActions.js.map +1 -1
- package/lib/commonjs/components/Message/hooks/useProcessReactions.js +3 -3
- package/lib/commonjs/components/Message/hooks/useProcessReactions.js.map +1 -1
- package/lib/commonjs/components/Message/utils/messageActions.js +6 -4
- package/lib/commonjs/components/Message/utils/messageActions.js.map +1 -1
- package/lib/commonjs/components/MessageInput/FileUploadPreview.js +1 -1
- package/lib/commonjs/components/MessageInput/FileUploadPreview.js.map +1 -1
- package/lib/commonjs/components/MessageInput/MessageInput.js +46 -2
- package/lib/commonjs/components/MessageInput/MessageInput.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js +0 -1
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.js +2 -1
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/NativeAttachmentPicker.js +18 -1
- package/lib/commonjs/components/MessageInput/components/NativeAttachmentPicker.js.map +1 -1
- package/lib/commonjs/components/MessageInput/hooks/useAudioController.js +60 -42
- package/lib/commonjs/components/MessageInput/hooks/useAudioController.js.map +1 -1
- package/lib/commonjs/components/MessageList/MessageList.js +3 -1
- package/lib/commonjs/components/MessageList/MessageList.js.map +1 -1
- package/lib/commonjs/components/MessageOverlay/MessageActionList.js +112 -0
- package/lib/commonjs/components/MessageOverlay/MessageActionList.js.map +1 -0
- package/lib/commonjs/components/MessageOverlay/MessageActionListItem.js +87 -0
- package/lib/commonjs/components/MessageOverlay/MessageActionListItem.js.map +1 -0
- package/lib/commonjs/components/MessageOverlay/MessageOverlay.js +452 -0
- package/lib/commonjs/components/MessageOverlay/MessageOverlay.js.map +1 -0
- package/lib/commonjs/components/MessageOverlay/OverlayBackdrop.js +24 -0
- package/lib/commonjs/components/MessageOverlay/OverlayBackdrop.js.map +1 -0
- package/lib/commonjs/components/MessageOverlay/OverlayReactionList.js +305 -0
- package/lib/commonjs/components/MessageOverlay/OverlayReactionList.js.map +1 -0
- package/lib/commonjs/components/MessageOverlay/OverlayReactions.js +188 -0
- package/lib/commonjs/components/MessageOverlay/OverlayReactions.js.map +1 -0
- package/lib/{module/components/MessageMenu/MessageUserReactionsAvatar.js → commonjs/components/MessageOverlay/OverlayReactionsAvatar.js} +6 -5
- package/lib/commonjs/components/MessageOverlay/OverlayReactionsAvatar.js.map +1 -0
- package/lib/commonjs/components/MessageOverlay/OverlayReactionsItem.js +166 -0
- package/lib/commonjs/components/MessageOverlay/OverlayReactionsItem.js.map +1 -0
- package/lib/{module/components/MessageMenu → commonjs/components/MessageOverlay}/hooks/useFetchReactions.js +0 -2
- package/lib/commonjs/components/MessageOverlay/hooks/useFetchReactions.js.map +1 -0
- package/lib/commonjs/components/MessageOverlay/hooks/useMessageActionAnimation.js +34 -0
- package/lib/commonjs/components/MessageOverlay/hooks/useMessageActionAnimation.js.map +1 -0
- package/lib/commonjs/components/Poll/CreatePollContent.js +386 -0
- package/lib/commonjs/components/Poll/CreatePollContent.js.map +1 -0
- package/lib/commonjs/components/Poll/Poll.js +112 -0
- package/lib/commonjs/components/Poll/Poll.js.map +1 -0
- package/lib/commonjs/components/Poll/components/Button.js +513 -0
- package/lib/commonjs/components/Poll/components/Button.js.map +1 -0
- package/lib/commonjs/components/Poll/components/CreatePollIcon.js +23 -0
- package/lib/commonjs/components/Poll/components/CreatePollIcon.js.map +1 -0
- package/lib/commonjs/components/Poll/components/CreatePollOptions.js +281 -0
- package/lib/commonjs/components/Poll/components/CreatePollOptions.js.map +1 -0
- package/lib/commonjs/components/Poll/components/PollAnswersList.js +154 -0
- package/lib/commonjs/components/Poll/components/PollAnswersList.js.map +1 -0
- package/lib/commonjs/components/Poll/components/PollInputDialog.js +139 -0
- package/lib/commonjs/components/Poll/components/PollInputDialog.js.map +1 -0
- package/lib/commonjs/components/Poll/components/PollModalHeader.js +60 -0
- package/lib/commonjs/components/Poll/components/PollModalHeader.js.map +1 -0
- package/lib/commonjs/components/Poll/components/PollOption.js +209 -0
- package/lib/commonjs/components/Poll/components/PollOption.js.map +1 -0
- package/lib/commonjs/components/Poll/components/PollResults/PollOptionFullResults.js +123 -0
- package/lib/commonjs/components/Poll/components/PollResults/PollOptionFullResults.js.map +1 -0
- package/lib/commonjs/components/Poll/components/PollResults/PollResultItem.js +152 -0
- package/lib/commonjs/components/Poll/components/PollResults/PollResultItem.js.map +1 -0
- package/lib/commonjs/components/Poll/components/PollResults/PollResults.js +101 -0
- package/lib/commonjs/components/Poll/components/PollResults/PollResults.js.map +1 -0
- package/lib/commonjs/components/Poll/components/PollResults/index.js +37 -0
- package/lib/commonjs/components/Poll/components/PollResults/index.js.map +1 -0
- package/lib/commonjs/components/Poll/components/index.js +92 -0
- package/lib/commonjs/components/Poll/components/index.js.map +1 -0
- package/lib/commonjs/components/Poll/hooks/usePollAnswersPagination.js +129 -0
- package/lib/commonjs/components/Poll/hooks/usePollAnswersPagination.js.map +1 -0
- package/lib/commonjs/components/Poll/hooks/usePollOptionVotesPagination.js +140 -0
- package/lib/commonjs/components/Poll/hooks/usePollOptionVotesPagination.js.map +1 -0
- package/lib/commonjs/components/Poll/hooks/usePollState.js +103 -0
- package/lib/commonjs/components/Poll/hooks/usePollState.js.map +1 -0
- package/lib/commonjs/components/Poll/hooks/usePollStateStore.js +13 -0
- package/lib/commonjs/components/Poll/hooks/usePollStateStore.js.map +1 -0
- package/lib/commonjs/components/Poll/index.js +81 -0
- package/lib/commonjs/components/Poll/index.js.map +1 -0
- package/lib/commonjs/components/ProgressControl/ProgressControl.js +28 -21
- package/lib/commonjs/components/ProgressControl/ProgressControl.js.map +1 -1
- package/lib/commonjs/components/ProgressControl/WaveProgressBar.js +27 -22
- package/lib/commonjs/components/ProgressControl/WaveProgressBar.js.map +1 -1
- package/lib/commonjs/components/Reply/Reply.js +3 -7
- package/lib/commonjs/components/Reply/Reply.js.map +1 -1
- package/lib/commonjs/components/{UIComponents → Spinner}/Spinner.js +1 -1
- package/lib/commonjs/components/Spinner/Spinner.js.map +1 -0
- package/lib/commonjs/components/ThreadList/ThreadList.js +8 -7
- package/lib/commonjs/components/ThreadList/ThreadList.js.map +1 -1
- package/lib/commonjs/components/ThreadList/ThreadListItem.js +12 -9
- package/lib/commonjs/components/ThreadList/ThreadListItem.js.map +1 -1
- package/lib/commonjs/components/ThreadList/ThreadListUnreadBanner.js +4 -4
- package/lib/commonjs/components/ThreadList/ThreadListUnreadBanner.js.map +1 -1
- package/lib/commonjs/components/docs/data.js.map +1 -1
- package/lib/commonjs/components/index.js +50 -50
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/contexts/activeChannelsRefContext/ActiveChannelsRefContext.js +13 -1
- package/lib/commonjs/contexts/activeChannelsRefContext/ActiveChannelsRefContext.js.map +1 -1
- package/lib/commonjs/contexts/attachmentPickerContext/AttachmentPickerContext.js +11 -1
- package/lib/commonjs/contexts/attachmentPickerContext/AttachmentPickerContext.js.map +1 -1
- package/lib/commonjs/contexts/channelContext/ChannelContext.js +11 -1
- package/lib/commonjs/contexts/channelContext/ChannelContext.js.map +1 -1
- package/lib/commonjs/contexts/channelsContext/ChannelsContext.js +11 -1
- package/lib/commonjs/contexts/channelsContext/ChannelsContext.js.map +1 -1
- package/lib/commonjs/contexts/channelsStateContext/ChannelsStateContext.js +11 -1
- package/lib/commonjs/contexts/channelsStateContext/ChannelsStateContext.js.map +1 -1
- package/lib/commonjs/contexts/chatContext/ChatContext.js +11 -1
- package/lib/commonjs/contexts/chatContext/ChatContext.js.map +1 -1
- package/lib/commonjs/contexts/imageGalleryContext/ImageGalleryContext.js +11 -1
- package/lib/commonjs/contexts/imageGalleryContext/ImageGalleryContext.js.map +1 -1
- package/lib/commonjs/contexts/index.js +22 -11
- package/lib/commonjs/contexts/index.js.map +1 -1
- package/lib/commonjs/contexts/keyboardContext/KeyboardContext.js +11 -1
- package/lib/commonjs/contexts/keyboardContext/KeyboardContext.js.map +1 -1
- package/lib/commonjs/contexts/messageContext/MessageContext.js +11 -1
- package/lib/commonjs/contexts/messageContext/MessageContext.js.map +1 -1
- package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js +40 -7
- package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js.map +1 -1
- package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +10 -2
- package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
- package/lib/commonjs/contexts/messageOverlayContext/MessageOverlayContext.js +45 -0
- package/lib/commonjs/contexts/messageOverlayContext/MessageOverlayContext.js.map +1 -0
- package/lib/commonjs/contexts/messageOverlayContext/hooks/useResettableState.js +27 -0
- package/lib/commonjs/contexts/messageOverlayContext/hooks/useResettableState.js.map +1 -0
- package/lib/commonjs/contexts/messageOverlayContext/hooks/useResettableState.test.js +67 -0
- package/lib/commonjs/contexts/messageOverlayContext/hooks/useResettableState.test.js.map +1 -0
- package/lib/commonjs/contexts/messagesContext/MessagesContext.js +11 -1
- package/lib/commonjs/contexts/messagesContext/MessagesContext.js.map +1 -1
- package/lib/commonjs/contexts/overlayContext/OverlayContext.js +14 -1
- package/lib/commonjs/contexts/overlayContext/OverlayContext.js.map +1 -1
- package/lib/commonjs/contexts/overlayContext/OverlayProvider.js +58 -18
- package/lib/commonjs/contexts/overlayContext/OverlayProvider.js.map +1 -1
- package/lib/commonjs/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.js +3 -0
- package/lib/commonjs/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.js.map +1 -1
- package/lib/commonjs/contexts/paginatedMessageListContext/PaginatedMessageListContext.js +11 -1
- package/lib/commonjs/contexts/paginatedMessageListContext/PaginatedMessageListContext.js.map +1 -1
- package/lib/commonjs/contexts/pollContext/createPollContentContext.js +33 -0
- package/lib/commonjs/contexts/pollContext/createPollContentContext.js.map +1 -0
- package/lib/commonjs/contexts/pollContext/index.js +26 -0
- package/lib/commonjs/contexts/pollContext/index.js.map +1 -0
- package/lib/commonjs/contexts/{chatConfigContext/ChatConfigContext.js → pollContext/pollContext.js} +17 -17
- package/lib/commonjs/contexts/pollContext/pollContext.js.map +1 -0
- package/lib/commonjs/contexts/suggestionsContext/SuggestionsContext.js +11 -1
- package/lib/commonjs/contexts/suggestionsContext/SuggestionsContext.js.map +1 -1
- package/lib/commonjs/contexts/themeContext/utils/theme.js +176 -68
- package/lib/commonjs/contexts/themeContext/utils/theme.js.map +1 -1
- package/lib/commonjs/contexts/threadContext/ThreadContext.js +11 -1
- package/lib/commonjs/contexts/threadContext/ThreadContext.js.map +1 -1
- package/lib/commonjs/contexts/translationContext/TranslationContext.js +11 -1
- package/lib/commonjs/contexts/translationContext/TranslationContext.js.map +1 -1
- package/lib/commonjs/contexts/typingContext/TypingContext.js +11 -1
- package/lib/commonjs/contexts/typingContext/TypingContext.js.map +1 -1
- package/lib/commonjs/hooks/useStateStore.js.map +1 -1
- package/lib/commonjs/hooks/useTranslatedMessage.js +4 -1
- package/lib/commonjs/hooks/useTranslatedMessage.js.map +1 -1
- package/lib/commonjs/i18n/en.json +34 -0
- package/lib/commonjs/i18n/es.json +38 -0
- package/lib/commonjs/i18n/fr.json +38 -0
- package/lib/commonjs/i18n/he.json +38 -0
- package/lib/commonjs/i18n/hi.json +34 -0
- package/lib/commonjs/i18n/it.json +38 -0
- package/lib/commonjs/i18n/ja.json +34 -0
- package/lib/commonjs/i18n/ko.json +34 -0
- package/lib/commonjs/i18n/nl.json +34 -0
- package/lib/commonjs/i18n/pt-br.json +38 -0
- package/lib/commonjs/i18n/ru.json +42 -0
- package/lib/commonjs/i18n/tr.json +34 -0
- package/lib/commonjs/icons/Back.js +19 -0
- package/lib/commonjs/icons/Back.js.map +1 -0
- package/lib/commonjs/icons/DragHandle.js +21 -0
- package/lib/commonjs/icons/DragHandle.js.map +1 -0
- package/lib/commonjs/icons/PinHeader.js +6 -17
- package/lib/commonjs/icons/PinHeader.js.map +1 -1
- package/lib/commonjs/icons/PollThumbnail.js +19 -0
- package/lib/commonjs/icons/PollThumbnail.js.map +1 -0
- package/lib/commonjs/icons/SendPoll.js +19 -0
- package/lib/commonjs/icons/SendPoll.js.map +1 -0
- package/lib/commonjs/icons/index.js +44 -0
- package/lib/commonjs/icons/index.js.map +1 -1
- package/lib/commonjs/index.js +23 -4
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/mock-builders/DB/mock.js +82 -79
- package/lib/commonjs/mock-builders/DB/mock.js.map +1 -1
- package/lib/commonjs/native.js +25 -36
- package/lib/commonjs/native.js.map +1 -1
- package/lib/commonjs/store/QuickSqliteClient.js +158 -0
- package/lib/commonjs/store/QuickSqliteClient.js.map +1 -0
- package/lib/commonjs/store/apis/addPendingTask.js +5 -5
- package/lib/commonjs/store/apis/addPendingTask.js.map +1 -1
- package/lib/commonjs/store/apis/deleteChannel.js +3 -3
- package/lib/commonjs/store/apis/deleteChannel.js.map +1 -1
- package/lib/commonjs/store/apis/deleteMember.js +3 -3
- package/lib/commonjs/store/apis/deleteMember.js.map +1 -1
- package/lib/commonjs/store/apis/deleteMessage.js +3 -3
- package/lib/commonjs/store/apis/deleteMessage.js.map +1 -1
- package/lib/commonjs/store/apis/deleteMessagesForChannel.js +3 -3
- package/lib/commonjs/store/apis/deleteMessagesForChannel.js.map +1 -1
- package/lib/commonjs/store/apis/deletePendingTask.js +3 -3
- package/lib/commonjs/store/apis/deletePendingTask.js.map +1 -1
- package/lib/commonjs/store/apis/deleteReaction.js +3 -3
- package/lib/commonjs/store/apis/deleteReaction.js.map +1 -1
- package/lib/commonjs/store/apis/deleteReactions.js +2 -2
- package/lib/commonjs/store/apis/deleteReactions.js.map +1 -1
- package/lib/commonjs/store/apis/getAllChannelIds.js +2 -2
- package/lib/commonjs/store/apis/getAllChannelIds.js.map +1 -1
- package/lib/commonjs/store/apis/getAppSettings.js +3 -3
- package/lib/commonjs/store/apis/getAppSettings.js.map +1 -1
- package/lib/commonjs/store/apis/getChannelMessages.js +2 -2
- package/lib/commonjs/store/apis/getChannelMessages.js.map +1 -1
- package/lib/commonjs/store/apis/getChannels.js +2 -2
- package/lib/commonjs/store/apis/getChannels.js.map +1 -1
- package/lib/commonjs/store/apis/getChannelsForFilterSort.js +2 -2
- package/lib/commonjs/store/apis/getChannelsForFilterSort.js.map +1 -1
- package/lib/commonjs/store/apis/getLastSyncedAt.js +3 -3
- package/lib/commonjs/store/apis/getLastSyncedAt.js.map +1 -1
- package/lib/commonjs/store/apis/getMembers.js +2 -2
- package/lib/commonjs/store/apis/getMembers.js.map +1 -1
- package/lib/commonjs/store/apis/getPendingTasks.js +3 -3
- package/lib/commonjs/store/apis/getPendingTasks.js.map +1 -1
- package/lib/commonjs/store/apis/getReactions.js +2 -2
- package/lib/commonjs/store/apis/getReactions.js.map +1 -1
- package/lib/commonjs/store/apis/getReactionsforFilterSort.js +3 -6
- package/lib/commonjs/store/apis/getReactionsforFilterSort.js.map +1 -1
- package/lib/commonjs/store/apis/getReads.js +2 -2
- package/lib/commonjs/store/apis/getReads.js.map +1 -1
- package/lib/commonjs/store/apis/index.js +11 -0
- package/lib/commonjs/store/apis/index.js.map +1 -1
- package/lib/commonjs/store/apis/insertReaction.js +3 -3
- package/lib/commonjs/store/apis/insertReaction.js.map +1 -1
- package/lib/commonjs/store/apis/queries/selectChannelIdsForFilterSort.js +3 -3
- package/lib/commonjs/store/apis/queries/selectChannelIdsForFilterSort.js.map +1 -1
- package/lib/commonjs/store/apis/queries/selectChannels.js +3 -3
- package/lib/commonjs/store/apis/queries/selectChannels.js.map +1 -1
- package/lib/commonjs/store/apis/queries/selectMembersForChannels.js +3 -3
- package/lib/commonjs/store/apis/queries/selectMembersForChannels.js.map +1 -1
- package/lib/commonjs/store/apis/queries/selectMessagesForChannels.js +3 -3
- package/lib/commonjs/store/apis/queries/selectMessagesForChannels.js.map +1 -1
- package/lib/commonjs/store/apis/queries/selectReactionsForMessages.js +3 -3
- package/lib/commonjs/store/apis/queries/selectReactionsForMessages.js.map +1 -1
- package/lib/commonjs/store/apis/queries/selectReadsForChannels.js +3 -3
- package/lib/commonjs/store/apis/queries/selectReadsForChannels.js.map +1 -1
- package/lib/commonjs/store/apis/updateMessage.js +4 -4
- package/lib/commonjs/store/apis/updateMessage.js.map +1 -1
- package/lib/commonjs/store/apis/updatePollMessage.js +50 -0
- package/lib/commonjs/store/apis/updatePollMessage.js.map +1 -0
- package/lib/commonjs/store/apis/updateReaction.js +3 -3
- package/lib/commonjs/store/apis/updateReaction.js.map +1 -1
- package/lib/commonjs/store/apis/upsertAppSettings.js +3 -3
- package/lib/commonjs/store/apis/upsertAppSettings.js.map +1 -1
- package/lib/commonjs/store/apis/upsertChannelData.js +3 -3
- package/lib/commonjs/store/apis/upsertChannelData.js.map +1 -1
- package/lib/commonjs/store/apis/upsertChannelDataFromChannel.js +2 -2
- package/lib/commonjs/store/apis/upsertChannelDataFromChannel.js.map +1 -1
- package/lib/commonjs/store/apis/upsertChannels.js +3 -3
- package/lib/commonjs/store/apis/upsertChannels.js.map +1 -1
- package/lib/commonjs/store/apis/upsertCidsForQuery.js +3 -3
- package/lib/commonjs/store/apis/upsertCidsForQuery.js.map +1 -1
- package/lib/commonjs/store/apis/upsertMembers.js +3 -3
- package/lib/commonjs/store/apis/upsertMembers.js.map +1 -1
- package/lib/commonjs/store/apis/upsertMessages.js +3 -3
- package/lib/commonjs/store/apis/upsertMessages.js.map +1 -1
- package/lib/commonjs/store/apis/upsertReads.js +3 -3
- package/lib/commonjs/store/apis/upsertReads.js.map +1 -1
- package/lib/commonjs/store/apis/upsertUserSyncStatus.js +3 -3
- package/lib/commonjs/store/apis/upsertUserSyncStatus.js.map +1 -1
- package/lib/commonjs/store/mappers/mapMessageToStorable.js +5 -1
- package/lib/commonjs/store/mappers/mapMessageToStorable.js.map +1 -1
- package/lib/commonjs/store/mappers/mapStorableToMessage.js +5 -1
- package/lib/commonjs/store/mappers/mapStorableToMessage.js.map +1 -1
- package/lib/commonjs/store/schema.js +2 -0
- package/lib/commonjs/store/schema.js.map +1 -1
- package/lib/commonjs/utils/DBSyncManager.js +4 -4
- package/lib/commonjs/utils/DBSyncManager.js.map +1 -1
- package/lib/commonjs/utils/StreamChatRN.js +25 -0
- package/lib/commonjs/utils/StreamChatRN.js.map +1 -0
- package/lib/commonjs/utils/getResizedImageUrl.js +3 -5
- package/lib/commonjs/utils/getResizedImageUrl.js.map +1 -1
- package/lib/commonjs/version.json +1 -1
- package/lib/module/components/Attachment/Attachment.js +1 -1
- package/lib/module/components/Attachment/Attachment.js.map +1 -1
- package/lib/module/components/Attachment/Card.js +6 -6
- package/lib/module/components/Attachment/Card.js.map +1 -1
- package/lib/module/components/Attachment/FileAttachment.js +5 -5
- package/lib/module/components/Attachment/FileAttachment.js.map +1 -1
- package/lib/module/components/Attachment/FileAttachmentGroup.js +1 -1
- package/lib/module/components/Attachment/FileAttachmentGroup.js.map +1 -1
- package/lib/module/components/Attachment/Gallery.js +22 -29
- package/lib/module/components/Attachment/Gallery.js.map +1 -1
- package/lib/module/components/Attachment/Giphy.js +8 -8
- package/lib/module/components/Attachment/Giphy.js.map +1 -1
- package/lib/module/components/Attachment/utils/buildGallery/buildGallery.js +0 -7
- package/lib/module/components/Attachment/utils/buildGallery/buildGallery.js.map +1 -1
- package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.js +1 -3
- package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.js.map +1 -1
- package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.js +0 -3
- package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.js.map +1 -1
- package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.js +0 -4
- package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.js.map +1 -1
- package/lib/module/components/Attachment/utils/buildGallery/buildThumbnail.js +0 -2
- package/lib/module/components/Attachment/utils/buildGallery/buildThumbnail.js.map +1 -1
- package/lib/module/components/Attachment/utils/buildGallery/buildThumbnailGrid.js +0 -2
- package/lib/module/components/Attachment/utils/buildGallery/buildThumbnailGrid.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerItem.js +3 -3
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerItem.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerSelectionBar.js +27 -0
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerSelectionBar.js.map +1 -1
- package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionList.js +2 -1
- package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionList.js.map +1 -1
- package/lib/module/components/Avatar/Avatar.js +0 -4
- package/lib/module/components/Avatar/Avatar.js.map +1 -1
- package/lib/module/components/Avatar/GroupAvatar.js +0 -4
- package/lib/module/components/Avatar/GroupAvatar.js.map +1 -1
- package/lib/module/components/Channel/Channel.js +445 -301
- package/lib/module/components/Channel/Channel.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateChannelContext.js +2 -0
- package/lib/module/components/Channel/hooks/useCreateChannelContext.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateInputMessageInputContext.js +9 -3
- package/lib/module/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateMessagesContext.js +15 -27
- package/lib/module/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateThreadContext.js +9 -8
- package/lib/module/components/Channel/hooks/useCreateThreadContext.js.map +1 -1
- package/lib/module/components/ChannelList/ChannelList.js +2 -0
- package/lib/module/components/ChannelList/ChannelList.js.map +1 -1
- package/lib/module/components/ChannelList/ChannelListFooterLoadingIndicator.js +1 -1
- package/lib/module/components/ChannelList/ChannelListFooterLoadingIndicator.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/listeners/useNewMessageNotification.js +18 -8
- package/lib/module/components/ChannelList/hooks/listeners/useNewMessageNotification.js.map +1 -1
- package/lib/module/components/ChannelPreview/hooks/useLatestMessagePreview.js +46 -3
- package/lib/module/components/ChannelPreview/hooks/useLatestMessagePreview.js.map +1 -1
- package/lib/module/components/Chat/Chat.js +11 -2
- package/lib/module/components/Chat/Chat.js.map +1 -1
- package/lib/module/components/Chat/hooks/handleEventToSyncDB.js +13 -3
- package/lib/module/components/Chat/hooks/handleEventToSyncDB.js.map +1 -1
- package/lib/module/components/Chat/hooks/useCreateChatContext.js +2 -0
- package/lib/module/components/Chat/hooks/useCreateChatContext.js.map +1 -1
- package/lib/module/components/Chat/hooks/useIsOnline.js +13 -16
- package/lib/module/components/Chat/hooks/useIsOnline.js.map +1 -1
- package/lib/module/components/{UIComponents/ImageBackground.js → ImageBackground.js} +1 -1
- package/lib/module/components/ImageBackground.js.map +1 -0
- package/lib/module/components/ImageGallery/ImageGallery.js +96 -58
- package/lib/module/components/ImageGallery/ImageGallery.js.map +1 -1
- package/lib/module/components/ImageGallery/components/AnimatedGalleryVideo.js +3 -3
- package/lib/module/components/ImageGallery/components/AnimatedGalleryVideo.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js +90 -92
- package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js +39 -39
- package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryOverlay.js.map +1 -1
- package/lib/module/components/ImageGallery/hooks/useImageGalleryGestures.js +221 -221
- package/lib/module/components/ImageGallery/hooks/useImageGalleryGestures.js.map +1 -1
- package/lib/module/components/Indicators/LoadingIndicator.js +1 -1
- package/lib/module/components/Indicators/LoadingIndicator.js.map +1 -1
- package/lib/module/components/Message/Message.js +186 -123
- package/lib/module/components/Message/Message.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageAvatar.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageContent.js +168 -48
- package/lib/module/components/Message/MessageSimple/MessageContent.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageDeleted.js +1 -1
- package/lib/module/components/Message/MessageSimple/MessageDeleted.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageFooter.js +1 -0
- package/lib/module/components/Message/MessageSimple/MessageFooter.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessagePinnedHeader.js +34 -20
- package/lib/module/components/Message/MessageSimple/MessagePinnedHeader.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageSimple.js +44 -180
- package/lib/module/components/Message/MessageSimple/MessageSimple.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageTextContainer.js +1 -1
- package/lib/module/components/Message/MessageSimple/MessageTextContainer.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/ReactionList.js +305 -0
- package/lib/module/components/Message/MessageSimple/ReactionList.js.map +1 -0
- package/lib/module/components/Message/hooks/useCreateMessageContext.js +16 -4
- package/lib/module/components/Message/hooks/useCreateMessageContext.js.map +1 -1
- package/lib/module/components/Message/hooks/useMessageActions.js +72 -36
- package/lib/module/components/Message/hooks/useMessageActions.js.map +1 -1
- package/lib/module/components/Message/hooks/useProcessReactions.js +3 -3
- package/lib/module/components/Message/hooks/useProcessReactions.js.map +1 -1
- package/lib/module/components/Message/utils/messageActions.js +6 -4
- package/lib/module/components/Message/utils/messageActions.js.map +1 -1
- package/lib/module/components/MessageInput/FileUploadPreview.js +1 -1
- package/lib/module/components/MessageInput/FileUploadPreview.js.map +1 -1
- package/lib/module/components/MessageInput/MessageInput.js +46 -2
- package/lib/module/components/MessageInput/MessageInput.js.map +1 -1
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js +0 -1
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js.map +1 -1
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.js +2 -1
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.js.map +1 -1
- package/lib/module/components/MessageInput/components/NativeAttachmentPicker.js +18 -1
- package/lib/module/components/MessageInput/components/NativeAttachmentPicker.js.map +1 -1
- package/lib/module/components/MessageInput/hooks/useAudioController.js +60 -42
- package/lib/module/components/MessageInput/hooks/useAudioController.js.map +1 -1
- package/lib/module/components/MessageList/MessageList.js +3 -1
- package/lib/module/components/MessageList/MessageList.js.map +1 -1
- package/lib/module/components/MessageOverlay/MessageActionList.js +112 -0
- package/lib/module/components/MessageOverlay/MessageActionList.js.map +1 -0
- package/lib/module/components/MessageOverlay/MessageActionListItem.js +87 -0
- package/lib/module/components/MessageOverlay/MessageActionListItem.js.map +1 -0
- package/lib/module/components/MessageOverlay/MessageOverlay.js +452 -0
- package/lib/module/components/MessageOverlay/MessageOverlay.js.map +1 -0
- package/lib/module/components/MessageOverlay/OverlayBackdrop.js +24 -0
- package/lib/module/components/MessageOverlay/OverlayBackdrop.js.map +1 -0
- package/lib/module/components/MessageOverlay/OverlayReactionList.js +305 -0
- package/lib/module/components/MessageOverlay/OverlayReactionList.js.map +1 -0
- package/lib/module/components/MessageOverlay/OverlayReactions.js +188 -0
- package/lib/module/components/MessageOverlay/OverlayReactions.js.map +1 -0
- package/lib/{commonjs/components/MessageMenu/MessageUserReactionsAvatar.js → module/components/MessageOverlay/OverlayReactionsAvatar.js} +6 -5
- package/lib/module/components/MessageOverlay/OverlayReactionsAvatar.js.map +1 -0
- package/lib/module/components/MessageOverlay/OverlayReactionsItem.js +166 -0
- package/lib/module/components/MessageOverlay/OverlayReactionsItem.js.map +1 -0
- package/lib/{commonjs/components/MessageMenu → module/components/MessageOverlay}/hooks/useFetchReactions.js +0 -2
- package/lib/module/components/MessageOverlay/hooks/useFetchReactions.js.map +1 -0
- package/lib/module/components/MessageOverlay/hooks/useMessageActionAnimation.js +34 -0
- package/lib/module/components/MessageOverlay/hooks/useMessageActionAnimation.js.map +1 -0
- package/lib/module/components/Poll/CreatePollContent.js +386 -0
- package/lib/module/components/Poll/CreatePollContent.js.map +1 -0
- package/lib/module/components/Poll/Poll.js +112 -0
- package/lib/module/components/Poll/Poll.js.map +1 -0
- package/lib/module/components/Poll/components/Button.js +513 -0
- package/lib/module/components/Poll/components/Button.js.map +1 -0
- package/lib/module/components/Poll/components/CreatePollIcon.js +23 -0
- package/lib/module/components/Poll/components/CreatePollIcon.js.map +1 -0
- package/lib/module/components/Poll/components/CreatePollOptions.js +281 -0
- package/lib/module/components/Poll/components/CreatePollOptions.js.map +1 -0
- package/lib/module/components/Poll/components/PollAnswersList.js +154 -0
- package/lib/module/components/Poll/components/PollAnswersList.js.map +1 -0
- package/lib/module/components/Poll/components/PollInputDialog.js +139 -0
- package/lib/module/components/Poll/components/PollInputDialog.js.map +1 -0
- package/lib/module/components/Poll/components/PollModalHeader.js +60 -0
- package/lib/module/components/Poll/components/PollModalHeader.js.map +1 -0
- package/lib/module/components/Poll/components/PollOption.js +209 -0
- package/lib/module/components/Poll/components/PollOption.js.map +1 -0
- package/lib/module/components/Poll/components/PollResults/PollOptionFullResults.js +123 -0
- package/lib/module/components/Poll/components/PollResults/PollOptionFullResults.js.map +1 -0
- package/lib/module/components/Poll/components/PollResults/PollResultItem.js +152 -0
- package/lib/module/components/Poll/components/PollResults/PollResultItem.js.map +1 -0
- package/lib/module/components/Poll/components/PollResults/PollResults.js +101 -0
- package/lib/module/components/Poll/components/PollResults/PollResults.js.map +1 -0
- package/lib/module/components/Poll/components/PollResults/index.js +37 -0
- package/lib/module/components/Poll/components/PollResults/index.js.map +1 -0
- package/lib/module/components/Poll/components/index.js +92 -0
- package/lib/module/components/Poll/components/index.js.map +1 -0
- package/lib/module/components/Poll/hooks/usePollAnswersPagination.js +129 -0
- package/lib/module/components/Poll/hooks/usePollAnswersPagination.js.map +1 -0
- package/lib/module/components/Poll/hooks/usePollOptionVotesPagination.js +140 -0
- package/lib/module/components/Poll/hooks/usePollOptionVotesPagination.js.map +1 -0
- package/lib/module/components/Poll/hooks/usePollState.js +103 -0
- package/lib/module/components/Poll/hooks/usePollState.js.map +1 -0
- package/lib/module/components/Poll/hooks/usePollStateStore.js +13 -0
- package/lib/module/components/Poll/hooks/usePollStateStore.js.map +1 -0
- package/lib/module/components/Poll/index.js +81 -0
- package/lib/module/components/Poll/index.js.map +1 -0
- package/lib/module/components/ProgressControl/ProgressControl.js +28 -21
- package/lib/module/components/ProgressControl/ProgressControl.js.map +1 -1
- package/lib/module/components/ProgressControl/WaveProgressBar.js +27 -22
- package/lib/module/components/ProgressControl/WaveProgressBar.js.map +1 -1
- package/lib/module/components/Reply/Reply.js +3 -7
- package/lib/module/components/Reply/Reply.js.map +1 -1
- package/lib/module/components/{UIComponents → Spinner}/Spinner.js +1 -1
- package/lib/module/components/Spinner/Spinner.js.map +1 -0
- package/lib/module/components/ThreadList/ThreadList.js +8 -7
- package/lib/module/components/ThreadList/ThreadList.js.map +1 -1
- package/lib/module/components/ThreadList/ThreadListItem.js +12 -9
- package/lib/module/components/ThreadList/ThreadListItem.js.map +1 -1
- package/lib/module/components/ThreadList/ThreadListUnreadBanner.js +4 -4
- package/lib/module/components/ThreadList/ThreadListUnreadBanner.js.map +1 -1
- package/lib/module/components/docs/data.js.map +1 -1
- package/lib/module/components/index.js +50 -50
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/contexts/activeChannelsRefContext/ActiveChannelsRefContext.js +13 -1
- package/lib/module/contexts/activeChannelsRefContext/ActiveChannelsRefContext.js.map +1 -1
- package/lib/module/contexts/attachmentPickerContext/AttachmentPickerContext.js +11 -1
- package/lib/module/contexts/attachmentPickerContext/AttachmentPickerContext.js.map +1 -1
- package/lib/module/contexts/channelContext/ChannelContext.js +11 -1
- package/lib/module/contexts/channelContext/ChannelContext.js.map +1 -1
- package/lib/module/contexts/channelsContext/ChannelsContext.js +11 -1
- package/lib/module/contexts/channelsContext/ChannelsContext.js.map +1 -1
- package/lib/module/contexts/channelsStateContext/ChannelsStateContext.js +11 -1
- package/lib/module/contexts/channelsStateContext/ChannelsStateContext.js.map +1 -1
- package/lib/module/contexts/chatContext/ChatContext.js +11 -1
- package/lib/module/contexts/chatContext/ChatContext.js.map +1 -1
- package/lib/module/contexts/imageGalleryContext/ImageGalleryContext.js +11 -1
- package/lib/module/contexts/imageGalleryContext/ImageGalleryContext.js.map +1 -1
- package/lib/module/contexts/index.js +22 -11
- package/lib/module/contexts/index.js.map +1 -1
- package/lib/module/contexts/keyboardContext/KeyboardContext.js +11 -1
- package/lib/module/contexts/keyboardContext/KeyboardContext.js.map +1 -1
- package/lib/module/contexts/messageContext/MessageContext.js +11 -1
- package/lib/module/contexts/messageContext/MessageContext.js.map +1 -1
- package/lib/module/contexts/messageInputContext/MessageInputContext.js +40 -7
- package/lib/module/contexts/messageInputContext/MessageInputContext.js.map +1 -1
- package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +10 -2
- package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
- package/lib/module/contexts/messageOverlayContext/MessageOverlayContext.js +45 -0
- package/lib/module/contexts/messageOverlayContext/MessageOverlayContext.js.map +1 -0
- package/lib/module/contexts/messageOverlayContext/hooks/useResettableState.js +27 -0
- package/lib/module/contexts/messageOverlayContext/hooks/useResettableState.js.map +1 -0
- package/lib/module/contexts/messageOverlayContext/hooks/useResettableState.test.js +67 -0
- package/lib/module/contexts/messageOverlayContext/hooks/useResettableState.test.js.map +1 -0
- package/lib/module/contexts/messagesContext/MessagesContext.js +11 -1
- package/lib/module/contexts/messagesContext/MessagesContext.js.map +1 -1
- package/lib/module/contexts/overlayContext/OverlayContext.js +14 -1
- package/lib/module/contexts/overlayContext/OverlayContext.js.map +1 -1
- package/lib/module/contexts/overlayContext/OverlayProvider.js +58 -18
- package/lib/module/contexts/overlayContext/OverlayProvider.js.map +1 -1
- package/lib/module/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.js +3 -0
- package/lib/module/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.js.map +1 -1
- package/lib/module/contexts/paginatedMessageListContext/PaginatedMessageListContext.js +11 -1
- package/lib/module/contexts/paginatedMessageListContext/PaginatedMessageListContext.js.map +1 -1
- package/lib/module/contexts/pollContext/createPollContentContext.js +33 -0
- package/lib/module/contexts/pollContext/createPollContentContext.js.map +1 -0
- package/lib/module/contexts/pollContext/index.js +26 -0
- package/lib/module/contexts/pollContext/index.js.map +1 -0
- package/lib/module/contexts/{chatConfigContext/ChatConfigContext.js → pollContext/pollContext.js} +17 -17
- package/lib/module/contexts/pollContext/pollContext.js.map +1 -0
- package/lib/module/contexts/suggestionsContext/SuggestionsContext.js +11 -1
- package/lib/module/contexts/suggestionsContext/SuggestionsContext.js.map +1 -1
- package/lib/module/contexts/themeContext/utils/theme.js +176 -68
- package/lib/module/contexts/themeContext/utils/theme.js.map +1 -1
- package/lib/module/contexts/threadContext/ThreadContext.js +11 -1
- package/lib/module/contexts/threadContext/ThreadContext.js.map +1 -1
- package/lib/module/contexts/translationContext/TranslationContext.js +11 -1
- package/lib/module/contexts/translationContext/TranslationContext.js.map +1 -1
- package/lib/module/contexts/typingContext/TypingContext.js +11 -1
- package/lib/module/contexts/typingContext/TypingContext.js.map +1 -1
- package/lib/module/hooks/useStateStore.js.map +1 -1
- package/lib/module/hooks/useTranslatedMessage.js +4 -1
- package/lib/module/hooks/useTranslatedMessage.js.map +1 -1
- package/lib/module/i18n/en.json +34 -0
- package/lib/module/i18n/es.json +38 -0
- package/lib/module/i18n/fr.json +38 -0
- package/lib/module/i18n/he.json +38 -0
- package/lib/module/i18n/hi.json +34 -0
- package/lib/module/i18n/it.json +38 -0
- package/lib/module/i18n/ja.json +34 -0
- package/lib/module/i18n/ko.json +34 -0
- package/lib/module/i18n/nl.json +34 -0
- package/lib/module/i18n/pt-br.json +38 -0
- package/lib/module/i18n/ru.json +42 -0
- package/lib/module/i18n/tr.json +34 -0
- package/lib/module/icons/Back.js +19 -0
- package/lib/module/icons/Back.js.map +1 -0
- package/lib/module/icons/DragHandle.js +21 -0
- package/lib/module/icons/DragHandle.js.map +1 -0
- package/lib/module/icons/PinHeader.js +6 -17
- package/lib/module/icons/PinHeader.js.map +1 -1
- package/lib/module/icons/PollThumbnail.js +19 -0
- package/lib/module/icons/PollThumbnail.js.map +1 -0
- package/lib/module/icons/SendPoll.js +19 -0
- package/lib/module/icons/SendPoll.js.map +1 -0
- package/lib/module/icons/index.js +44 -0
- package/lib/module/icons/index.js.map +1 -1
- package/lib/module/index.js +23 -4
- package/lib/module/index.js.map +1 -1
- package/lib/module/mock-builders/DB/mock.js +82 -79
- package/lib/module/mock-builders/DB/mock.js.map +1 -1
- package/lib/module/native.js +25 -36
- package/lib/module/native.js.map +1 -1
- package/lib/module/store/QuickSqliteClient.js +158 -0
- package/lib/module/store/QuickSqliteClient.js.map +1 -0
- package/lib/module/store/apis/addPendingTask.js +5 -5
- package/lib/module/store/apis/addPendingTask.js.map +1 -1
- package/lib/module/store/apis/deleteChannel.js +3 -3
- package/lib/module/store/apis/deleteChannel.js.map +1 -1
- package/lib/module/store/apis/deleteMember.js +3 -3
- package/lib/module/store/apis/deleteMember.js.map +1 -1
- package/lib/module/store/apis/deleteMessage.js +3 -3
- package/lib/module/store/apis/deleteMessage.js.map +1 -1
- package/lib/module/store/apis/deleteMessagesForChannel.js +3 -3
- package/lib/module/store/apis/deleteMessagesForChannel.js.map +1 -1
- package/lib/module/store/apis/deletePendingTask.js +3 -3
- package/lib/module/store/apis/deletePendingTask.js.map +1 -1
- package/lib/module/store/apis/deleteReaction.js +3 -3
- package/lib/module/store/apis/deleteReaction.js.map +1 -1
- package/lib/module/store/apis/deleteReactions.js +2 -2
- package/lib/module/store/apis/deleteReactions.js.map +1 -1
- package/lib/module/store/apis/getAllChannelIds.js +2 -2
- package/lib/module/store/apis/getAllChannelIds.js.map +1 -1
- package/lib/module/store/apis/getAppSettings.js +3 -3
- package/lib/module/store/apis/getAppSettings.js.map +1 -1
- package/lib/module/store/apis/getChannelMessages.js +2 -2
- package/lib/module/store/apis/getChannelMessages.js.map +1 -1
- package/lib/module/store/apis/getChannels.js +2 -2
- package/lib/module/store/apis/getChannels.js.map +1 -1
- package/lib/module/store/apis/getChannelsForFilterSort.js +2 -2
- package/lib/module/store/apis/getChannelsForFilterSort.js.map +1 -1
- package/lib/module/store/apis/getLastSyncedAt.js +3 -3
- package/lib/module/store/apis/getLastSyncedAt.js.map +1 -1
- package/lib/module/store/apis/getMembers.js +2 -2
- package/lib/module/store/apis/getMembers.js.map +1 -1
- package/lib/module/store/apis/getPendingTasks.js +3 -3
- package/lib/module/store/apis/getPendingTasks.js.map +1 -1
- package/lib/module/store/apis/getReactions.js +2 -2
- package/lib/module/store/apis/getReactions.js.map +1 -1
- package/lib/module/store/apis/getReactionsforFilterSort.js +3 -6
- package/lib/module/store/apis/getReactionsforFilterSort.js.map +1 -1
- package/lib/module/store/apis/getReads.js +2 -2
- package/lib/module/store/apis/getReads.js.map +1 -1
- package/lib/module/store/apis/index.js +11 -0
- package/lib/module/store/apis/index.js.map +1 -1
- package/lib/module/store/apis/insertReaction.js +3 -3
- package/lib/module/store/apis/insertReaction.js.map +1 -1
- package/lib/module/store/apis/queries/selectChannelIdsForFilterSort.js +3 -3
- package/lib/module/store/apis/queries/selectChannelIdsForFilterSort.js.map +1 -1
- package/lib/module/store/apis/queries/selectChannels.js +3 -3
- package/lib/module/store/apis/queries/selectChannels.js.map +1 -1
- package/lib/module/store/apis/queries/selectMembersForChannels.js +3 -3
- package/lib/module/store/apis/queries/selectMembersForChannels.js.map +1 -1
- package/lib/module/store/apis/queries/selectMessagesForChannels.js +3 -3
- package/lib/module/store/apis/queries/selectMessagesForChannels.js.map +1 -1
- package/lib/module/store/apis/queries/selectReactionsForMessages.js +3 -3
- package/lib/module/store/apis/queries/selectReactionsForMessages.js.map +1 -1
- package/lib/module/store/apis/queries/selectReadsForChannels.js +3 -3
- package/lib/module/store/apis/queries/selectReadsForChannels.js.map +1 -1
- package/lib/module/store/apis/updateMessage.js +4 -4
- package/lib/module/store/apis/updateMessage.js.map +1 -1
- package/lib/module/store/apis/updatePollMessage.js +50 -0
- package/lib/module/store/apis/updatePollMessage.js.map +1 -0
- package/lib/module/store/apis/updateReaction.js +3 -3
- package/lib/module/store/apis/updateReaction.js.map +1 -1
- package/lib/module/store/apis/upsertAppSettings.js +3 -3
- package/lib/module/store/apis/upsertAppSettings.js.map +1 -1
- package/lib/module/store/apis/upsertChannelData.js +3 -3
- package/lib/module/store/apis/upsertChannelData.js.map +1 -1
- package/lib/module/store/apis/upsertChannelDataFromChannel.js +2 -2
- package/lib/module/store/apis/upsertChannelDataFromChannel.js.map +1 -1
- package/lib/module/store/apis/upsertChannels.js +3 -3
- package/lib/module/store/apis/upsertChannels.js.map +1 -1
- package/lib/module/store/apis/upsertCidsForQuery.js +3 -3
- package/lib/module/store/apis/upsertCidsForQuery.js.map +1 -1
- package/lib/module/store/apis/upsertMembers.js +3 -3
- package/lib/module/store/apis/upsertMembers.js.map +1 -1
- package/lib/module/store/apis/upsertMessages.js +3 -3
- package/lib/module/store/apis/upsertMessages.js.map +1 -1
- package/lib/module/store/apis/upsertReads.js +3 -3
- package/lib/module/store/apis/upsertReads.js.map +1 -1
- package/lib/module/store/apis/upsertUserSyncStatus.js +3 -3
- package/lib/module/store/apis/upsertUserSyncStatus.js.map +1 -1
- package/lib/module/store/mappers/mapMessageToStorable.js +5 -1
- package/lib/module/store/mappers/mapMessageToStorable.js.map +1 -1
- package/lib/module/store/mappers/mapStorableToMessage.js +5 -1
- package/lib/module/store/mappers/mapStorableToMessage.js.map +1 -1
- package/lib/module/store/schema.js +2 -0
- package/lib/module/store/schema.js.map +1 -1
- package/lib/module/utils/DBSyncManager.js +4 -4
- package/lib/module/utils/DBSyncManager.js.map +1 -1
- package/lib/module/utils/StreamChatRN.js +25 -0
- package/lib/module/utils/StreamChatRN.js.map +1 -0
- package/lib/module/utils/getResizedImageUrl.js +3 -5
- package/lib/module/utils/getResizedImageUrl.js.map +1 -1
- package/lib/module/version.json +1 -1
- package/lib/typescript/components/Attachment/Card.d.ts +2 -2
- package/lib/typescript/components/Attachment/Card.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/FileAttachment.d.ts +1 -1
- package/lib/typescript/components/Attachment/FileAttachment.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/Gallery.d.ts +1 -1
- package/lib/typescript/components/Attachment/Gallery.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/Giphy.d.ts +1 -1
- package/lib/typescript/components/Attachment/utils/buildGallery/buildGallery.d.ts +1 -2
- package/lib/typescript/components/Attachment/utils/buildGallery/buildGallery.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.d.ts +1 -2
- package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.d.ts +1 -2
- package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.d.ts +1 -2
- package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/utils/buildGallery/buildThumbnail.d.ts +2 -4
- package/lib/typescript/components/Attachment/utils/buildGallery/buildThumbnail.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/utils/buildGallery/buildThumbnailGrid.d.ts +1 -2
- package/lib/typescript/components/Attachment/utils/buildGallery/buildThumbnailGrid.d.ts.map +1 -1
- package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerBottomSheetHandle.d.ts +2 -2
- package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerBottomSheetHandle.d.ts.map +1 -1
- package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerItem.d.ts.map +1 -1
- package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerSelectionBar.d.ts.map +1 -1
- package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionList.d.ts.map +1 -1
- package/lib/typescript/components/Avatar/Avatar.d.ts.map +1 -1
- package/lib/typescript/components/Avatar/GroupAvatar.d.ts.map +1 -1
- package/lib/typescript/components/Channel/Channel.d.ts +2 -2
- package/lib/typescript/components/Channel/Channel.d.ts.map +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateChannelContext.d.ts +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateChannelContext.d.ts.map +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateInputMessageInputContext.d.ts +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateInputMessageInputContext.d.ts.map +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateMessagesContext.d.ts +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateMessagesContext.d.ts.map +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateThreadContext.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/ChannelList.d.ts +12 -0
- package/lib/typescript/components/ChannelList/ChannelList.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/hooks/listeners/useNewMessageNotification.d.ts +2 -1
- package/lib/typescript/components/ChannelList/hooks/listeners/useNewMessageNotification.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/hooks/useLatestMessagePreview.d.ts +5 -1
- package/lib/typescript/components/ChannelPreview/hooks/useLatestMessagePreview.d.ts.map +1 -1
- package/lib/typescript/components/Chat/Chat.d.ts +1 -1
- package/lib/typescript/components/Chat/Chat.d.ts.map +1 -1
- package/lib/typescript/components/Chat/hooks/handleEventToSyncDB.d.ts.map +1 -1
- package/lib/typescript/components/Chat/hooks/useCreateChatContext.d.ts +1 -1
- package/lib/typescript/components/Chat/hooks/useCreateChatContext.d.ts.map +1 -1
- package/lib/typescript/components/Chat/hooks/useIsOnline.d.ts.map +1 -1
- package/lib/typescript/components/ImageBackground.d.ts.map +1 -0
- package/lib/typescript/components/ImageGallery/ImageGallery.d.ts +2 -2
- package/lib/typescript/components/ImageGallery/ImageGallery.d.ts.map +1 -1
- package/lib/typescript/components/ImageGallery/components/AnimatedGalleryImage.d.ts +5 -5
- package/lib/typescript/components/ImageGallery/components/AnimatedGalleryImage.d.ts.map +1 -1
- package/lib/typescript/components/ImageGallery/components/AnimatedGalleryVideo.d.ts +5 -5
- package/lib/typescript/components/ImageGallery/components/AnimatedGalleryVideo.d.ts.map +1 -1
- package/lib/typescript/components/ImageGallery/components/ImageGalleryFooter.d.ts +3 -3
- package/lib/typescript/components/ImageGallery/components/ImageGalleryFooter.d.ts.map +1 -1
- package/lib/typescript/components/ImageGallery/components/ImageGalleryHeader.d.ts +3 -3
- package/lib/typescript/components/ImageGallery/components/ImageGalleryHeader.d.ts.map +1 -1
- package/lib/typescript/components/ImageGallery/components/ImageGalleryOverlay.d.ts +2 -2
- package/lib/typescript/components/ImageGallery/components/ImageGalleryOverlay.d.ts.map +1 -1
- package/lib/typescript/components/ImageGallery/hooks/useImageGalleryGestures.d.ts +5 -4
- package/lib/typescript/components/ImageGallery/hooks/useImageGalleryGestures.d.ts.map +1 -1
- package/lib/typescript/components/Message/Message.d.ts +40 -4
- package/lib/typescript/components/Message/Message.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageSimple/MessageAvatar.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageSimple/MessageContent.d.ts +5 -11
- package/lib/typescript/components/Message/MessageSimple/MessageContent.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageSimple/MessagePinnedHeader.d.ts +6 -2
- package/lib/typescript/components/Message/MessageSimple/MessagePinnedHeader.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageSimple/MessageSimple.d.ts +1 -1
- package/lib/typescript/components/Message/MessageSimple/MessageSimple.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageSimple/MessageTextContainer.d.ts +2 -1
- package/lib/typescript/components/Message/MessageSimple/MessageTextContainer.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageSimple/ReactionList.d.ts +32 -0
- package/lib/typescript/components/Message/MessageSimple/ReactionList.d.ts.map +1 -0
- package/lib/typescript/components/Message/hooks/useCreateMessageContext.d.ts +1 -1
- package/lib/typescript/components/Message/hooks/useCreateMessageContext.d.ts.map +1 -1
- package/lib/typescript/components/Message/hooks/useMessageActions.d.ts +6 -5
- package/lib/typescript/components/Message/hooks/useMessageActions.d.ts.map +1 -1
- package/lib/typescript/components/Message/hooks/useProcessReactions.d.ts +3 -11
- package/lib/typescript/components/Message/hooks/useProcessReactions.d.ts.map +1 -1
- package/lib/typescript/components/Message/utils/messageActions.d.ts +14 -6
- package/lib/typescript/components/Message/utils/messageActions.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/MessageInput.d.ts +1 -1
- package/lib/typescript/components/MessageInput/MessageInput.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecordingButton.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/NativeAttachmentPicker.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/hooks/useAudioController.d.ts.map +1 -1
- package/lib/typescript/components/MessageOverlay/MessageActionList.d.ts +14 -0
- package/lib/typescript/components/MessageOverlay/MessageActionList.d.ts.map +1 -0
- package/lib/typescript/components/{MessageMenu → MessageOverlay}/MessageActionListItem.d.ts +8 -2
- package/lib/typescript/components/MessageOverlay/MessageActionListItem.d.ts.map +1 -0
- package/lib/typescript/components/MessageOverlay/MessageOverlay.d.ts +15 -0
- package/lib/typescript/components/MessageOverlay/MessageOverlay.d.ts.map +1 -0
- package/lib/typescript/components/MessageOverlay/OverlayBackdrop.d.ts +8 -0
- package/lib/typescript/components/MessageOverlay/OverlayBackdrop.d.ts.map +1 -0
- package/lib/typescript/components/MessageOverlay/OverlayReactionList.d.ts +36 -0
- package/lib/typescript/components/MessageOverlay/OverlayReactionList.d.ts.map +1 -0
- package/lib/typescript/components/MessageOverlay/OverlayReactions.d.ts +29 -0
- package/lib/typescript/components/MessageOverlay/OverlayReactions.d.ts.map +1 -0
- package/lib/typescript/components/MessageOverlay/OverlayReactionsAvatar.d.ts +11 -0
- package/lib/typescript/components/MessageOverlay/OverlayReactionsAvatar.d.ts.map +1 -0
- package/lib/typescript/components/MessageOverlay/OverlayReactionsItem.d.ts +11 -0
- package/lib/typescript/components/MessageOverlay/OverlayReactionsItem.d.ts.map +1 -0
- package/lib/typescript/components/MessageOverlay/hooks/useFetchReactions.d.ts.map +1 -0
- package/lib/typescript/components/MessageOverlay/hooks/useMessageActionAnimation.d.ts +11 -0
- package/lib/typescript/components/MessageOverlay/hooks/useMessageActionAnimation.d.ts.map +1 -0
- package/lib/typescript/components/Poll/CreatePollContent.d.ts +6 -0
- package/lib/typescript/components/Poll/CreatePollContent.d.ts.map +1 -0
- package/lib/typescript/components/Poll/Poll.d.ts +13 -0
- package/lib/typescript/components/Poll/Poll.d.ts.map +1 -0
- package/lib/typescript/components/Poll/components/Button.d.ts +35 -0
- package/lib/typescript/components/Poll/components/Button.d.ts.map +1 -0
- package/lib/typescript/components/Poll/components/CreatePollIcon.d.ts +3 -0
- package/lib/typescript/components/Poll/components/CreatePollIcon.d.ts.map +1 -0
- package/lib/typescript/components/Poll/components/CreatePollOptions.d.ts +34 -0
- package/lib/typescript/components/Poll/components/CreatePollOptions.d.ts.map +1 -0
- package/lib/typescript/components/Poll/components/PollAnswersList.d.ts +15 -0
- package/lib/typescript/components/Poll/components/PollAnswersList.d.ts.map +1 -0
- package/lib/typescript/components/Poll/components/PollInputDialog.d.ts +10 -0
- package/lib/typescript/components/Poll/components/PollInputDialog.d.ts.map +1 -0
- package/lib/typescript/components/Poll/components/PollModalHeader.d.ts +7 -0
- package/lib/typescript/components/Poll/components/PollModalHeader.d.ts.map +1 -0
- package/lib/typescript/components/Poll/components/PollOption.d.ts +16 -0
- package/lib/typescript/components/Poll/components/PollOption.d.ts.map +1 -0
- package/lib/typescript/components/Poll/components/PollResults/PollOptionFullResults.d.ts +18 -0
- package/lib/typescript/components/Poll/components/PollResults/PollOptionFullResults.d.ts.map +1 -0
- package/lib/typescript/components/Poll/components/PollResults/PollResultItem.d.ts +9 -0
- package/lib/typescript/components/Poll/components/PollResults/PollResultItem.d.ts.map +1 -0
- package/lib/typescript/components/Poll/components/PollResults/PollResults.d.ts +10 -0
- package/lib/typescript/components/Poll/components/PollResults/PollResults.d.ts.map +1 -0
- package/lib/typescript/components/Poll/components/PollResults/index.d.ts +4 -0
- package/lib/typescript/components/Poll/components/PollResults/index.d.ts.map +1 -0
- package/lib/typescript/components/Poll/components/index.d.ts +9 -0
- package/lib/typescript/components/Poll/components/index.d.ts.map +1 -0
- package/lib/typescript/components/Poll/hooks/usePollAnswersPagination.d.ts +29 -0
- package/lib/typescript/components/Poll/hooks/usePollAnswersPagination.d.ts.map +1 -0
- package/lib/typescript/components/Poll/hooks/usePollOptionVotesPagination.d.ts +32 -0
- package/lib/typescript/components/Poll/hooks/usePollOptionVotesPagination.d.ts.map +1 -0
- package/lib/typescript/components/Poll/hooks/usePollState.d.ts +26 -0
- package/lib/typescript/components/Poll/hooks/usePollState.d.ts.map +1 -0
- package/lib/typescript/components/Poll/hooks/usePollStateStore.d.ts +3 -0
- package/lib/typescript/components/Poll/hooks/usePollStateStore.d.ts.map +1 -0
- package/lib/typescript/components/Poll/index.d.ts +8 -0
- package/lib/typescript/components/Poll/index.d.ts.map +1 -0
- package/lib/typescript/components/ProgressControl/ProgressControl.d.ts.map +1 -1
- package/lib/typescript/components/ProgressControl/WaveProgressBar.d.ts.map +1 -1
- package/lib/typescript/components/Reply/Reply.d.ts.map +1 -1
- package/lib/typescript/components/Spinner/Spinner.d.ts.map +1 -0
- package/lib/typescript/components/ThreadList/ThreadList.d.ts.map +1 -1
- package/lib/typescript/components/ThreadList/ThreadListItem.d.ts.map +1 -1
- package/lib/typescript/components/ThreadList/ThreadListUnreadBanner.d.ts.map +1 -1
- package/lib/typescript/components/index.d.ts +11 -11
- package/lib/typescript/components/index.d.ts.map +1 -1
- package/lib/typescript/contexts/activeChannelsRefContext/ActiveChannelsRefContext.d.ts +11 -0
- package/lib/typescript/contexts/activeChannelsRefContext/ActiveChannelsRefContext.d.ts.map +1 -1
- package/lib/typescript/contexts/attachmentPickerContext/AttachmentPickerContext.d.ts +18 -2
- package/lib/typescript/contexts/attachmentPickerContext/AttachmentPickerContext.d.ts.map +1 -1
- package/lib/typescript/contexts/channelContext/ChannelContext.d.ts +25 -1
- package/lib/typescript/contexts/channelContext/ChannelContext.d.ts.map +1 -1
- package/lib/typescript/contexts/channelsContext/ChannelsContext.d.ts +11 -1
- package/lib/typescript/contexts/channelsContext/ChannelsContext.d.ts.map +1 -1
- package/lib/typescript/contexts/channelsStateContext/ChannelsStateContext.d.ts +11 -1
- package/lib/typescript/contexts/channelsStateContext/ChannelsStateContext.d.ts.map +1 -1
- package/lib/typescript/contexts/chatContext/ChatContext.d.ts +15 -1
- package/lib/typescript/contexts/chatContext/ChatContext.d.ts.map +1 -1
- package/lib/typescript/contexts/imageGalleryContext/ImageGalleryContext.d.ts +10 -0
- package/lib/typescript/contexts/imageGalleryContext/ImageGalleryContext.d.ts.map +1 -1
- package/lib/typescript/contexts/index.d.ts +2 -1
- package/lib/typescript/contexts/index.d.ts.map +1 -1
- package/lib/typescript/contexts/keyboardContext/KeyboardContext.d.ts +11 -0
- package/lib/typescript/contexts/keyboardContext/KeyboardContext.d.ts.map +1 -1
- package/lib/typescript/contexts/messageContext/MessageContext.d.ts +56 -21
- package/lib/typescript/contexts/messageContext/MessageContext.d.ts.map +1 -1
- package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts +22 -3
- package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts.map +1 -1
- package/lib/typescript/contexts/messageInputContext/hooks/useCreateMessageInputContext.d.ts +1 -1
- package/lib/typescript/contexts/messageInputContext/hooks/useCreateMessageInputContext.d.ts.map +1 -1
- package/lib/typescript/contexts/messageOverlayContext/MessageOverlayContext.d.ts +80 -0
- package/lib/typescript/contexts/messageOverlayContext/MessageOverlayContext.d.ts.map +1 -0
- package/lib/typescript/contexts/messageOverlayContext/hooks/useResettableState.d.ts +13 -0
- package/lib/typescript/contexts/messageOverlayContext/hooks/useResettableState.d.ts.map +1 -0
- package/lib/typescript/contexts/messageOverlayContext/hooks/useResettableState.test.d.ts +2 -0
- package/lib/typescript/contexts/messageOverlayContext/hooks/useResettableState.test.d.ts.map +1 -0
- package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts +45 -77
- package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts.map +1 -1
- package/lib/typescript/contexts/overlayContext/OverlayContext.d.ts +27 -2
- package/lib/typescript/contexts/overlayContext/OverlayContext.d.ts.map +1 -1
- package/lib/typescript/contexts/overlayContext/OverlayProvider.d.ts.map +1 -1
- package/lib/typescript/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.d.ts +3 -0
- package/lib/typescript/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.d.ts.map +1 -1
- package/lib/typescript/contexts/paginatedMessageListContext/PaginatedMessageListContext.d.ts +11 -1
- package/lib/typescript/contexts/paginatedMessageListContext/PaginatedMessageListContext.d.ts.map +1 -1
- package/lib/typescript/contexts/pollContext/createPollContentContext.d.ts +20 -0
- package/lib/typescript/contexts/pollContext/createPollContentContext.d.ts.map +1 -0
- package/lib/typescript/contexts/pollContext/index.d.ts +3 -0
- package/lib/typescript/contexts/pollContext/index.d.ts.map +1 -0
- package/lib/typescript/contexts/pollContext/pollContext.d.ts +14 -0
- package/lib/typescript/contexts/pollContext/pollContext.d.ts.map +1 -0
- package/lib/typescript/contexts/suggestionsContext/SuggestionsContext.d.ts +11 -1
- package/lib/typescript/contexts/suggestionsContext/SuggestionsContext.d.ts.map +1 -1
- package/lib/typescript/contexts/themeContext/utils/theme.d.ts +170 -61
- package/lib/typescript/contexts/themeContext/utils/theme.d.ts.map +1 -1
- package/lib/typescript/contexts/threadContext/ThreadContext.d.ts +11 -1
- package/lib/typescript/contexts/threadContext/ThreadContext.d.ts.map +1 -1
- package/lib/typescript/contexts/translationContext/TranslationContext.d.ts +11 -0
- package/lib/typescript/contexts/translationContext/TranslationContext.d.ts.map +1 -1
- package/lib/typescript/contexts/typingContext/TypingContext.d.ts +11 -1
- package/lib/typescript/contexts/typingContext/TypingContext.d.ts.map +1 -1
- package/lib/typescript/hooks/useStateStore.d.ts +2 -2
- package/lib/typescript/hooks/useStateStore.d.ts.map +1 -1
- package/lib/typescript/hooks/useTranslatedMessage.d.ts.map +1 -1
- package/lib/typescript/i18n/en.json +34 -0
- package/lib/typescript/i18n/es.json +38 -0
- package/lib/typescript/i18n/fr.json +38 -0
- package/lib/typescript/i18n/he.json +38 -0
- package/lib/typescript/i18n/hi.json +34 -0
- package/lib/typescript/i18n/it.json +38 -0
- package/lib/typescript/i18n/ja.json +34 -0
- package/lib/typescript/i18n/ko.json +34 -0
- package/lib/typescript/i18n/nl.json +34 -0
- package/lib/typescript/i18n/pt-br.json +38 -0
- package/lib/typescript/i18n/ru.json +42 -0
- package/lib/typescript/i18n/tr.json +34 -0
- package/lib/typescript/icons/Back.d.ts +4 -0
- package/lib/typescript/icons/Back.d.ts.map +1 -0
- package/lib/typescript/icons/DragHandle.d.ts +4 -0
- package/lib/typescript/icons/DragHandle.d.ts.map +1 -0
- package/lib/typescript/icons/PinHeader.d.ts +1 -5
- package/lib/typescript/icons/PinHeader.d.ts.map +1 -1
- package/lib/typescript/icons/PollThumbnail.d.ts +4 -0
- package/lib/typescript/icons/PollThumbnail.d.ts.map +1 -0
- package/lib/typescript/icons/SendPoll.d.ts +4 -0
- package/lib/typescript/icons/SendPoll.d.ts.map +1 -0
- package/lib/typescript/icons/index.d.ts +4 -0
- package/lib/typescript/icons/index.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +3 -2
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/native.d.ts +11 -9
- package/lib/typescript/native.d.ts.map +1 -1
- package/lib/typescript/store/{SqliteClient.d.ts → QuickSqliteClient.d.ts} +5 -6
- package/lib/typescript/store/QuickSqliteClient.d.ts.map +1 -0
- package/lib/typescript/store/apis/getReactionsforFilterSort.d.ts.map +1 -1
- package/lib/typescript/store/apis/index.d.ts +1 -0
- package/lib/typescript/store/apis/index.d.ts.map +1 -1
- package/lib/typescript/store/apis/updatePollMessage.d.ts +7 -0
- package/lib/typescript/store/apis/updatePollMessage.d.ts.map +1 -0
- package/lib/typescript/store/mappers/mapMessageToStorable.d.ts.map +1 -1
- package/lib/typescript/store/mappers/mapStorableToMessage.d.ts.map +1 -1
- package/lib/typescript/store/schema.d.ts +2 -0
- package/lib/typescript/store/schema.d.ts.map +1 -1
- package/lib/typescript/types/types.d.ts +0 -6
- package/lib/typescript/types/types.d.ts.map +1 -1
- package/lib/typescript/utils/StreamChatRN.d.ts +23 -0
- package/lib/typescript/utils/StreamChatRN.d.ts.map +1 -0
- package/lib/typescript/utils/getResizedImageUrl.d.ts +2 -3
- package/lib/typescript/utils/getResizedImageUrl.d.ts.map +1 -1
- package/lib/typescript/utils/i18n/Streami18n.d.ts +34 -0
- package/lib/typescript/utils/i18n/Streami18n.d.ts.map +1 -1
- package/package.json +12 -12
- package/src/__tests__/offline-support/offline-feature.js +5 -5
- package/src/__tests__/offline-support/optimistic-update.js +4 -4
- package/src/components/Attachment/Attachment.tsx +2 -2
- package/src/components/Attachment/Card.tsx +10 -10
- package/src/components/Attachment/FileAttachment.tsx +16 -8
- package/src/components/Attachment/FileAttachmentGroup.tsx +2 -2
- package/src/components/Attachment/Gallery.tsx +17 -20
- package/src/components/Attachment/Giphy.tsx +14 -14
- package/src/components/Attachment/__tests__/Attachment.test.js +2 -4
- package/src/components/Attachment/__tests__/Gallery.test.js +2 -0
- package/src/components/Attachment/utils/buildGallery/buildGallery.ts +1 -10
- package/src/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.ts +1 -4
- package/src/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.ts +1 -5
- package/src/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.ts +1 -6
- package/src/components/Attachment/utils/buildGallery/buildThumbnail.ts +6 -13
- package/src/components/Attachment/utils/buildGallery/buildThumbnailGrid.ts +1 -5
- package/src/components/AttachmentPicker/components/AttachmentPickerBottomSheetHandle.tsx +2 -2
- package/src/components/AttachmentPicker/components/AttachmentPickerItem.tsx +1 -1
- package/src/components/AttachmentPicker/components/AttachmentPickerSelectionBar.tsx +35 -2
- package/src/components/AutoCompleteInput/AutoCompleteSuggestionList.tsx +1 -1
- package/src/components/Avatar/Avatar.tsx +0 -3
- package/src/components/Avatar/GroupAvatar.tsx +0 -4
- package/src/components/Channel/Channel.tsx +159 -60
- package/src/components/Channel/__tests__/ownCapabilities.test.js +57 -57
- package/src/components/Channel/hooks/useCreateChannelContext.ts +2 -0
- package/src/components/Channel/hooks/useCreateInputMessageInputContext.ts +22 -3
- package/src/components/Channel/hooks/useCreateMessagesContext.ts +15 -26
- package/src/components/Channel/hooks/useCreateThreadContext.ts +7 -8
- package/src/components/ChannelList/ChannelList.tsx +17 -0
- package/src/components/ChannelList/ChannelListFooterLoadingIndicator.tsx +1 -1
- package/src/components/ChannelList/__tests__/ChannelList.test.js +5 -5
- package/src/components/ChannelList/hooks/listeners/useNewMessageNotification.ts +11 -2
- package/src/components/ChannelPreview/hooks/useLatestMessagePreview.ts +63 -4
- package/src/components/Chat/Chat.tsx +11 -3
- package/src/components/Chat/__tests__/Chat.test.js +179 -184
- package/src/components/Chat/hooks/handleEventToSyncDB.ts +22 -3
- package/src/components/Chat/hooks/useCreateChatContext.ts +2 -0
- package/src/components/Chat/hooks/useIsOnline.ts +10 -13
- package/src/components/ImageGallery/ImageGallery.tsx +121 -71
- package/src/components/ImageGallery/__tests__/AnimatedVideoGallery.test.tsx +11 -0
- package/src/components/ImageGallery/__tests__/ImageGallery.test.tsx +4 -3
- package/src/components/ImageGallery/__tests__/ImageGalleryFooter.test.tsx +5 -3
- package/src/components/ImageGallery/__tests__/ImageGalleryGrid.test.tsx +1 -1
- package/src/components/ImageGallery/__tests__/ImageGalleryGridHandle.test.tsx +1 -1
- package/src/components/ImageGallery/__tests__/ImageGalleryHeader.test.tsx +5 -3
- package/src/components/ImageGallery/__tests__/ImageGalleryOverlay.test.tsx +3 -0
- package/src/components/ImageGallery/components/AnimatedGalleryImage.tsx +5 -5
- package/src/components/ImageGallery/components/AnimatedGalleryVideo.tsx +9 -9
- package/src/components/ImageGallery/components/ImageGalleryFooter.tsx +86 -97
- package/src/components/ImageGallery/components/ImageGalleryHeader.tsx +44 -46
- package/src/components/ImageGallery/components/ImageGalleryOverlay.tsx +1 -2
- package/src/components/ImageGallery/components/__tests__/ImageGalleryHeader.test.tsx +4 -3
- package/src/components/ImageGallery/hooks/useImageGalleryGestures.tsx +466 -481
- package/src/components/Indicators/LoadingIndicator.tsx +1 -1
- package/src/components/Message/Message.tsx +217 -113
- package/src/components/Message/MessageSimple/MessageAvatar.tsx +0 -1
- package/src/components/Message/MessageSimple/MessageContent.tsx +171 -28
- package/src/components/Message/MessageSimple/MessageDeleted.tsx +1 -1
- package/src/components/Message/MessageSimple/MessageFooter.tsx +1 -1
- package/src/components/Message/MessageSimple/MessagePinnedHeader.tsx +66 -21
- package/src/components/Message/MessageSimple/MessageSimple.tsx +55 -247
- package/src/components/Message/MessageSimple/MessageTextContainer.tsx +4 -3
- package/src/components/Message/MessageSimple/ReactionList.tsx +398 -0
- package/src/components/Message/MessageSimple/__tests__/MessageContent.test.js +2 -1
- package/src/components/Message/MessageSimple/__tests__/MessageTextContainer.test.tsx +3 -3
- package/src/components/Message/MessageSimple/__tests__/__snapshots__/MessagePinnedHeader.test.js.snap +19 -23
- package/src/components/Message/hooks/useCreateMessageContext.ts +16 -4
- package/src/components/Message/hooks/useMessageActions.tsx +68 -48
- package/src/components/Message/hooks/useProcessReactions.ts +10 -17
- package/src/components/Message/utils/messageActions.ts +20 -10
- package/src/components/MessageInput/FileUploadPreview.tsx +2 -2
- package/src/components/MessageInput/MessageInput.tsx +59 -1
- package/src/components/MessageInput/__tests__/AudioAttachmentUploadPreviewExpo.test.tsx +4 -1
- package/src/components/MessageInput/__tests__/AudioAttachmentUploadPreviewNative.test.tsx +4 -1
- package/src/components/MessageInput/__tests__/FileUploadPreview.test.js +5 -3
- package/src/components/MessageInput/__tests__/MessageInput.test.js +2 -0
- package/src/components/MessageInput/components/AudioRecorder/AudioRecordingButton.tsx +1 -7
- package/src/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.tsx +1 -0
- package/src/components/MessageInput/components/NativeAttachmentPicker.tsx +29 -2
- package/src/components/MessageInput/hooks/useAudioController.tsx +3 -0
- package/src/components/MessageList/MessageList.tsx +1 -1
- package/src/components/MessageList/__tests__/MessageList.test.js +21 -0
- package/src/components/MessageOverlay/MessageActionList.tsx +171 -0
- package/src/components/MessageOverlay/MessageActionListItem.tsx +144 -0
- package/src/components/MessageOverlay/MessageOverlay.tsx +637 -0
- package/src/components/MessageOverlay/OverlayBackdrop.tsx +18 -0
- package/src/components/MessageOverlay/OverlayReactionList.tsx +447 -0
- package/src/components/MessageOverlay/OverlayReactions.tsx +250 -0
- package/src/components/{MessageMenu/MessageUserReactionsAvatar.tsx → MessageOverlay/OverlayReactionsAvatar.tsx} +6 -6
- package/src/components/MessageOverlay/OverlayReactionsItem.tsx +188 -0
- package/src/components/{MessageMenu → MessageOverlay}/hooks/useFetchReactions.ts +0 -2
- package/src/components/MessageOverlay/hooks/useMessageActionAnimation.tsx +44 -0
- package/src/components/Poll/CreatePollContent.tsx +299 -0
- package/src/components/Poll/Poll.tsx +126 -0
- package/src/components/Poll/components/Button.tsx +465 -0
- package/src/components/Poll/components/CreatePollIcon.tsx +14 -0
- package/src/components/Poll/components/CreatePollOptions.tsx +351 -0
- package/src/components/Poll/components/PollAnswersList.tsx +134 -0
- package/src/components/Poll/components/PollInputDialog.tsx +117 -0
- package/src/components/Poll/components/PollModalHeader.tsx +42 -0
- package/src/components/Poll/components/PollOption.tsx +172 -0
- package/src/components/Poll/components/PollResults/PollOptionFullResults.tsx +108 -0
- package/src/components/Poll/components/PollResults/PollResultItem.tsx +115 -0
- package/src/components/Poll/components/PollResults/PollResults.tsx +79 -0
- package/src/components/Poll/components/PollResults/index.ts +3 -0
- package/src/components/Poll/components/index.ts +8 -0
- package/src/components/Poll/hooks/usePollAnswersPagination.ts +109 -0
- package/src/components/Poll/hooks/usePollOptionVotesPagination.ts +119 -0
- package/src/components/Poll/hooks/usePollState.ts +122 -0
- package/src/components/Poll/hooks/usePollStateStore.ts +13 -0
- package/src/components/Poll/index.ts +10 -0
- package/src/components/ProgressControl/ProgressControl.tsx +38 -28
- package/src/components/ProgressControl/WaveProgressBar.tsx +37 -29
- package/src/components/Reply/Reply.tsx +4 -5
- package/src/components/Thread/__tests__/__snapshots__/Thread.test.js.snap +796 -903
- package/src/components/ThreadList/ThreadList.tsx +6 -2
- package/src/components/ThreadList/ThreadListItem.tsx +9 -8
- package/src/components/ThreadList/ThreadListUnreadBanner.tsx +3 -2
- package/src/components/docs/data.js +27 -13
- package/src/components/index.ts +11 -11
- package/src/contexts/__tests__/index.test.tsx +5 -0
- package/src/contexts/activeChannelsRefContext/ActiveChannelsRefContext.tsx +27 -0
- package/src/contexts/attachmentPickerContext/AttachmentPickerContext.tsx +41 -2
- package/src/contexts/channelContext/ChannelContext.tsx +46 -2
- package/src/contexts/channelsContext/ChannelsContext.tsx +28 -1
- package/src/contexts/channelsStateContext/ChannelsStateContext.tsx +30 -1
- package/src/contexts/chatContext/ChatContext.tsx +30 -1
- package/src/contexts/imageGalleryContext/ImageGalleryContext.tsx +29 -0
- package/src/contexts/index.ts +2 -1
- package/src/contexts/keyboardContext/KeyboardContext.tsx +30 -0
- package/src/contexts/messageContext/MessageContext.tsx +75 -22
- package/src/contexts/messageInputContext/MessageInputContext.tsx +75 -21
- package/src/contexts/messageInputContext/__tests__/isValidMessage.test.tsx +3 -2
- package/src/contexts/messageInputContext/__tests__/pickFile.test.tsx +4 -2
- package/src/contexts/messageInputContext/__tests__/uploadFile.test.tsx +2 -1
- package/src/contexts/messageInputContext/__tests__/uploadImage.test.tsx +2 -1
- package/src/contexts/messageInputContext/hooks/useCreateMessageInputContext.ts +14 -1
- package/src/contexts/messageOverlayContext/MessageOverlayContext.tsx +148 -0
- package/src/contexts/messageOverlayContext/hooks/useResettableState.test.tsx +48 -0
- package/src/contexts/messageOverlayContext/hooks/useResettableState.ts +22 -0
- package/src/contexts/messagesContext/MessagesContext.tsx +70 -84
- package/src/contexts/overlayContext/OverlayContext.tsx +56 -2
- package/src/contexts/overlayContext/OverlayProvider.tsx +67 -23
- package/src/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.tsx +3 -0
- package/src/contexts/paginatedMessageListContext/PaginatedMessageListContext.tsx +30 -1
- package/src/contexts/pollContext/createPollContentContext.tsx +49 -0
- package/src/contexts/pollContext/index.ts +2 -0
- package/src/contexts/pollContext/pollContext.tsx +43 -0
- package/src/contexts/suggestionsContext/SuggestionsContext.tsx +30 -1
- package/src/contexts/themeContext/utils/theme.ts +326 -126
- package/src/contexts/threadContext/ThreadContext.tsx +28 -1
- package/src/contexts/translationContext/TranslationContext.tsx +29 -0
- package/src/contexts/typingContext/TypingContext.tsx +28 -1
- package/src/hooks/__tests__/useTranslatedMessage.test.tsx +9 -3
- package/src/hooks/useStateStore.ts +12 -12
- package/src/hooks/useTranslatedMessage.ts +4 -1
- package/src/i18n/en.json +34 -0
- package/src/i18n/es.json +38 -0
- package/src/i18n/fr.json +38 -0
- package/src/i18n/he.json +38 -0
- package/src/i18n/hi.json +34 -0
- package/src/i18n/it.json +38 -0
- package/src/i18n/ja.json +34 -0
- package/src/i18n/ko.json +34 -0
- package/src/i18n/nl.json +34 -0
- package/src/i18n/pt-br.json +38 -0
- package/src/i18n/ru.json +42 -0
- package/src/i18n/tr.json +34 -0
- package/src/icons/Back.tsx +12 -0
- package/src/icons/DragHandle.tsx +9 -0
- package/src/icons/PinHeader.tsx +7 -13
- package/src/icons/PollThumbnail.tsx +12 -0
- package/src/icons/SendPoll.tsx +12 -0
- package/src/icons/index.ts +4 -0
- package/src/index.ts +3 -2
- package/src/mock-builders/DB/mock.ts +84 -82
- package/src/native.ts +26 -15
- package/src/store/{SqliteClient.ts → QuickSqliteClient.ts} +55 -75
- package/src/store/apis/addPendingTask.ts +5 -5
- package/src/store/apis/deleteChannel.ts +3 -3
- package/src/store/apis/deleteMember.ts +3 -3
- package/src/store/apis/deleteMessage.ts +3 -3
- package/src/store/apis/deleteMessagesForChannel.ts +3 -3
- package/src/store/apis/deletePendingTask.ts +3 -3
- package/src/store/apis/deleteReaction.ts +3 -3
- package/src/store/apis/deleteReactions.ts +2 -2
- package/src/store/apis/getAllChannelIds.ts +2 -2
- package/src/store/apis/getAppSettings.ts +3 -3
- package/src/store/apis/getChannelMessages.ts +2 -2
- package/src/store/apis/getChannels.ts +2 -2
- package/src/store/apis/getChannelsForFilterSort.ts +2 -2
- package/src/store/apis/getLastSyncedAt.ts +3 -3
- package/src/store/apis/getMembers.ts +2 -2
- package/src/store/apis/getPendingTasks.ts +3 -3
- package/src/store/apis/getReactions.ts +2 -2
- package/src/store/apis/getReactionsforFilterSort.ts +3 -5
- package/src/store/apis/getReads.ts +2 -2
- package/src/store/apis/index.ts +1 -0
- package/src/store/apis/insertReaction.ts +3 -3
- package/src/store/apis/queries/selectChannelIdsForFilterSort.ts +3 -3
- package/src/store/apis/queries/selectChannels.ts +3 -3
- package/src/store/apis/queries/selectMembersForChannels.ts +3 -3
- package/src/store/apis/queries/selectMessagesForChannels.ts +4 -4
- package/src/store/apis/queries/selectReactionsForMessages.ts +3 -3
- package/src/store/apis/queries/selectReadsForChannels.ts +4 -4
- package/src/store/apis/updateMessage.ts +4 -4
- package/src/store/apis/updatePollMessage.ts +48 -0
- package/src/store/apis/updateReaction.ts +3 -3
- package/src/store/apis/upsertAppSettings.ts +3 -3
- package/src/store/apis/upsertChannelData.ts +3 -3
- package/src/store/apis/upsertChannelDataFromChannel.ts +2 -2
- package/src/store/apis/upsertChannels.ts +3 -3
- package/src/store/apis/upsertCidsForQuery.ts +3 -3
- package/src/store/apis/upsertMembers.ts +3 -3
- package/src/store/apis/upsertMessages.ts +3 -3
- package/src/store/apis/upsertReads.ts +3 -3
- package/src/store/apis/upsertUserSyncStatus.ts +3 -3
- package/src/store/mappers/mapMessageToStorable.ts +4 -0
- package/src/store/mappers/mapStorableToMessage.ts +4 -0
- package/src/store/schema.ts +4 -0
- package/src/types/types.ts +0 -7
- package/src/utils/DBSyncManager.ts +4 -4
- package/src/utils/StreamChatRN.ts +27 -0
- package/src/utils/__tests__/getResizedImageUrl.test.ts +2 -1
- package/src/utils/getResizedImageUrl.ts +5 -7
- package/src/version.json +1 -1
- package/lib/commonjs/components/Message/MessageSimple/ReactionList/ReactionListBottom.js +0 -234
- package/lib/commonjs/components/Message/MessageSimple/ReactionList/ReactionListBottom.js.map +0 -1
- package/lib/commonjs/components/Message/MessageSimple/ReactionList/ReactionListTop.js +0 -195
- package/lib/commonjs/components/Message/MessageSimple/ReactionList/ReactionListTop.js.map +0 -1
- package/lib/commonjs/components/Message/hooks/useMessageData.js +0 -38
- package/lib/commonjs/components/Message/hooks/useMessageData.js.map +0 -1
- package/lib/commonjs/components/MessageMenu/MessageActionList.js +0 -35
- package/lib/commonjs/components/MessageMenu/MessageActionList.js.map +0 -1
- package/lib/commonjs/components/MessageMenu/MessageActionListItem.js +0 -60
- package/lib/commonjs/components/MessageMenu/MessageActionListItem.js.map +0 -1
- package/lib/commonjs/components/MessageMenu/MessageMenu.js +0 -70
- package/lib/commonjs/components/MessageMenu/MessageMenu.js.map +0 -1
- package/lib/commonjs/components/MessageMenu/MessageReactionPicker.js +0 -81
- package/lib/commonjs/components/MessageMenu/MessageReactionPicker.js.map +0 -1
- package/lib/commonjs/components/MessageMenu/MessageUserReactions.js +0 -171
- package/lib/commonjs/components/MessageMenu/MessageUserReactions.js.map +0 -1
- package/lib/commonjs/components/MessageMenu/MessageUserReactionsAvatar.js.map +0 -1
- package/lib/commonjs/components/MessageMenu/MessageUserReactionsItem.js +0 -110
- package/lib/commonjs/components/MessageMenu/MessageUserReactionsItem.js.map +0 -1
- package/lib/commonjs/components/MessageMenu/ReactionButton.js +0 -59
- package/lib/commonjs/components/MessageMenu/ReactionButton.js.map +0 -1
- package/lib/commonjs/components/MessageMenu/hooks/useFetchReactions.js.map +0 -1
- package/lib/commonjs/components/UIComponents/BottomSheetModal.js +0 -152
- package/lib/commonjs/components/UIComponents/BottomSheetModal.js.map +0 -1
- package/lib/commonjs/components/UIComponents/ImageBackground.js.map +0 -1
- package/lib/commonjs/components/UIComponents/Spinner.js.map +0 -1
- package/lib/commonjs/components/UIComponents/index.js +0 -37
- package/lib/commonjs/components/UIComponents/index.js.map +0 -1
- package/lib/commonjs/contexts/chatConfigContext/ChatConfigContext.js.map +0 -1
- package/lib/commonjs/store/SqliteClient.js +0 -179
- package/lib/commonjs/store/SqliteClient.js.map +0 -1
- package/lib/module/components/Message/MessageSimple/ReactionList/ReactionListBottom.js +0 -234
- package/lib/module/components/Message/MessageSimple/ReactionList/ReactionListBottom.js.map +0 -1
- package/lib/module/components/Message/MessageSimple/ReactionList/ReactionListTop.js +0 -195
- package/lib/module/components/Message/MessageSimple/ReactionList/ReactionListTop.js.map +0 -1
- package/lib/module/components/Message/hooks/useMessageData.js +0 -38
- package/lib/module/components/Message/hooks/useMessageData.js.map +0 -1
- package/lib/module/components/MessageMenu/MessageActionList.js +0 -35
- package/lib/module/components/MessageMenu/MessageActionList.js.map +0 -1
- package/lib/module/components/MessageMenu/MessageActionListItem.js +0 -60
- package/lib/module/components/MessageMenu/MessageActionListItem.js.map +0 -1
- package/lib/module/components/MessageMenu/MessageMenu.js +0 -70
- package/lib/module/components/MessageMenu/MessageMenu.js.map +0 -1
- package/lib/module/components/MessageMenu/MessageReactionPicker.js +0 -81
- package/lib/module/components/MessageMenu/MessageReactionPicker.js.map +0 -1
- package/lib/module/components/MessageMenu/MessageUserReactions.js +0 -171
- package/lib/module/components/MessageMenu/MessageUserReactions.js.map +0 -1
- package/lib/module/components/MessageMenu/MessageUserReactionsAvatar.js.map +0 -1
- package/lib/module/components/MessageMenu/MessageUserReactionsItem.js +0 -110
- package/lib/module/components/MessageMenu/MessageUserReactionsItem.js.map +0 -1
- package/lib/module/components/MessageMenu/ReactionButton.js +0 -59
- package/lib/module/components/MessageMenu/ReactionButton.js.map +0 -1
- package/lib/module/components/MessageMenu/hooks/useFetchReactions.js.map +0 -1
- package/lib/module/components/UIComponents/BottomSheetModal.js +0 -152
- package/lib/module/components/UIComponents/BottomSheetModal.js.map +0 -1
- package/lib/module/components/UIComponents/ImageBackground.js.map +0 -1
- package/lib/module/components/UIComponents/Spinner.js.map +0 -1
- package/lib/module/components/UIComponents/index.js +0 -37
- package/lib/module/components/UIComponents/index.js.map +0 -1
- package/lib/module/contexts/chatConfigContext/ChatConfigContext.js.map +0 -1
- package/lib/module/store/SqliteClient.js +0 -179
- package/lib/module/store/SqliteClient.js.map +0 -1
- package/lib/typescript/components/Message/MessageSimple/ReactionList/ReactionListBottom.d.ts +0 -12
- package/lib/typescript/components/Message/MessageSimple/ReactionList/ReactionListBottom.d.ts.map +0 -1
- package/lib/typescript/components/Message/MessageSimple/ReactionList/ReactionListTop.d.ts +0 -20
- package/lib/typescript/components/Message/MessageSimple/ReactionList/ReactionListTop.d.ts.map +0 -1
- package/lib/typescript/components/Message/hooks/useMessageData.d.ts +0 -12
- package/lib/typescript/components/Message/hooks/useMessageData.d.ts.map +0 -1
- package/lib/typescript/components/MessageMenu/MessageActionList.d.ts +0 -16
- package/lib/typescript/components/MessageMenu/MessageActionList.d.ts.map +0 -1
- package/lib/typescript/components/MessageMenu/MessageActionListItem.d.ts.map +0 -1
- package/lib/typescript/components/MessageMenu/MessageMenu.d.ts +0 -32
- package/lib/typescript/components/MessageMenu/MessageMenu.d.ts.map +0 -1
- package/lib/typescript/components/MessageMenu/MessageReactionPicker.d.ts +0 -30
- package/lib/typescript/components/MessageMenu/MessageReactionPicker.d.ts.map +0 -1
- package/lib/typescript/components/MessageMenu/MessageUserReactions.d.ts +0 -21
- package/lib/typescript/components/MessageMenu/MessageUserReactions.d.ts.map +0 -1
- package/lib/typescript/components/MessageMenu/MessageUserReactionsAvatar.d.ts +0 -11
- package/lib/typescript/components/MessageMenu/MessageUserReactionsAvatar.d.ts.map +0 -1
- package/lib/typescript/components/MessageMenu/MessageUserReactionsItem.d.ts +0 -16
- package/lib/typescript/components/MessageMenu/MessageUserReactionsItem.d.ts.map +0 -1
- package/lib/typescript/components/MessageMenu/ReactionButton.d.ts +0 -25
- package/lib/typescript/components/MessageMenu/ReactionButton.d.ts.map +0 -1
- package/lib/typescript/components/MessageMenu/hooks/useFetchReactions.d.ts.map +0 -1
- package/lib/typescript/components/UIComponents/BottomSheetModal.d.ts +0 -21
- package/lib/typescript/components/UIComponents/BottomSheetModal.d.ts.map +0 -1
- package/lib/typescript/components/UIComponents/ImageBackground.d.ts.map +0 -1
- package/lib/typescript/components/UIComponents/Spinner.d.ts.map +0 -1
- package/lib/typescript/components/UIComponents/index.d.ts +0 -4
- package/lib/typescript/components/UIComponents/index.d.ts.map +0 -1
- package/lib/typescript/contexts/chatConfigContext/ChatConfigContext.d.ts +0 -16
- package/lib/typescript/contexts/chatConfigContext/ChatConfigContext.d.ts.map +0 -1
- package/lib/typescript/store/SqliteClient.d.ts.map +0 -1
- package/src/components/Message/MessageSimple/ReactionList/ReactionListBottom.tsx +0 -295
- package/src/components/Message/MessageSimple/ReactionList/ReactionListTop.tsx +0 -271
- package/src/components/Message/MessageSimple/__tests__/MessageSimple.test.js +0 -208
- package/src/components/Message/MessageSimple/__tests__/ReactionListBottom.test.js +0 -166
- package/src/components/Message/MessageSimple/__tests__/ReactionListTop.test.js +0 -92
- package/src/components/Message/hooks/useMessageData.ts +0 -59
- package/src/components/MessageMenu/MessageActionList.tsx +0 -49
- package/src/components/MessageMenu/MessageActionListItem.tsx +0 -86
- package/src/components/MessageMenu/MessageMenu.tsx +0 -123
- package/src/components/MessageMenu/MessageReactionPicker.tsx +0 -122
- package/src/components/MessageMenu/MessageUserReactions.tsx +0 -209
- package/src/components/MessageMenu/MessageUserReactionsItem.tsx +0 -130
- package/src/components/MessageMenu/ReactionButton.tsx +0 -72
- package/src/components/MessageMenu/__tests__/MessageActionList.test.tsx +0 -48
- package/src/components/MessageMenu/__tests__/MessageActionListItem.test.tsx +0 -48
- package/src/components/MessageMenu/__tests__/MessageReactionPicker.test.tsx +0 -101
- package/src/components/MessageMenu/__tests__/MessageUserReactions.test.tsx +0 -186
- package/src/components/MessageMenu/__tests__/MessageUserReactionsAvatar.test.tsx +0 -35
- package/src/components/MessageMenu/__tests__/MessageUserReactionsItem.test.tsx +0 -81
- package/src/components/MessageMenu/__tests__/ReactionButton.test.tsx +0 -77
- package/src/components/UIComponents/BottomSheetModal.tsx +0 -170
- package/src/components/UIComponents/index.ts +0 -3
- package/src/contexts/chatConfigContext/ChatConfigContext.tsx +0 -33
- /package/lib/typescript/components/{UIComponents/ImageBackground.d.ts → ImageBackground.d.ts} +0 -0
- /package/lib/typescript/components/{MessageMenu → MessageOverlay}/hooks/useFetchReactions.d.ts +0 -0
- /package/lib/typescript/components/{UIComponents → Spinner}/Spinner.d.ts +0 -0
- /package/src/components/{UIComponents/ImageBackground.tsx → ImageBackground.tsx} +0 -0
- /package/src/components/{UIComponents → Spinner}/Spinner.tsx +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { PropsWithChildren } from 'react';
|
|
2
2
|
import { BottomSheetHandleProps } from '@gorhom/bottom-sheet';
|
|
3
|
-
import type { Asset, File } from '../../types/types';
|
|
3
|
+
import type { Asset, DefaultStreamChatGenerics, File } from '../../types/types';
|
|
4
4
|
export type AttachmentPickerIconProps = {
|
|
5
5
|
numberOfImageUploads: number;
|
|
6
6
|
selectedPicker?: 'images';
|
|
@@ -51,6 +51,12 @@ export type AttachmentPickerContextValue = {
|
|
|
51
51
|
*/
|
|
52
52
|
CameraSelectorIcon: React.ComponentType<AttachmentPickerIconProps>;
|
|
53
53
|
closePicker: () => void;
|
|
54
|
+
/**
|
|
55
|
+
* Custom UI component for the poll creation icon.
|
|
56
|
+
*
|
|
57
|
+
* **Default: ** [CreatePollIcon](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/AttachmentPicker/components/CreatePollIcon.tsx)
|
|
58
|
+
*/
|
|
59
|
+
CreatePollIcon: React.ComponentType;
|
|
54
60
|
/**
|
|
55
61
|
* Custom UI component for [file selector icon](https://github.com/GetStream/stream-chat-react-native/blob/main/screenshots/docs/1.png)
|
|
56
62
|
*
|
|
@@ -81,7 +87,17 @@ export type AttachmentPickerContextValue = {
|
|
|
81
87
|
};
|
|
82
88
|
export declare const AttachmentPickerContext: React.Context<AttachmentPickerContextValue>;
|
|
83
89
|
export declare const AttachmentPickerProvider: ({ children, value, }: React.PropsWithChildren<{
|
|
84
|
-
value?: (Pick<AttachmentPickerContextValue, "closePicker" | "CameraSelectorIcon" | "FileSelectorIcon" | "ImageSelectorIcon" | "openPicker"> & Partial<Pick<AttachmentPickerContextValue, "bottomInset" | "topInset">>) | undefined;
|
|
90
|
+
value?: (Pick<AttachmentPickerContextValue, "closePicker" | "CameraSelectorIcon" | "CreatePollIcon" | "FileSelectorIcon" | "ImageSelectorIcon" | "openPicker"> & Partial<Pick<AttachmentPickerContextValue, "bottomInset" | "topInset">>) | undefined;
|
|
85
91
|
}>) => React.JSX.Element;
|
|
86
92
|
export declare const useAttachmentPickerContext: () => AttachmentPickerContextValue;
|
|
93
|
+
/**
|
|
94
|
+
* @deprecated
|
|
95
|
+
*
|
|
96
|
+
* This will be removed in the next major version.
|
|
97
|
+
*
|
|
98
|
+
* Typescript currently does not support partial inference so if ChatContext
|
|
99
|
+
* typing is desired while using the HOC withAttachmentPickerContext the Props for the
|
|
100
|
+
* wrapped component must be provided as the first generic.
|
|
101
|
+
*/
|
|
102
|
+
export declare const withAttachmentPickerContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(Component: React.ComponentType<StreamChatGenerics>) => React.ComponentType<Omit<StreamChatGenerics, keyof AttachmentPickerContextValue>>;
|
|
87
103
|
//# sourceMappingURL=AttachmentPickerContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttachmentPickerContext.d.ts","sourceRoot":"","sources":["../../../../src/contexts/attachmentPickerContext/AttachmentPickerContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAmC,MAAM,OAAO,CAAC;AAElF,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAE9D,OAAO,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"AttachmentPickerContext.d.ts","sourceRoot":"","sources":["../../../../src/contexts/attachmentPickerContext/AttachmentPickerContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAmC,MAAM,OAAO,CAAC;AAElF,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAE9D,OAAO,KAAK,EAAE,KAAK,EAAE,yBAAyB,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAMhF,MAAM,MAAM,yBAAyB,GAAG;IACtC,oBAAoB,EAAE,MAAM,CAAC;IAC7B,cAAc,CAAC,EAAE,QAAQ,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG;IACzC;;;;OAIG;IACH,iCAAiC,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAAC,CAAC;IACpE;;;;OAIG;IACH,uCAAuC,EAAE,MAAM,CAAC;IAChD;;;;OAIG;IACH,iCAAiC,EAAE,MAAM,CAAC;IAC1C;;;;OAIG;IACH,4BAA4B,EAAE,KAAK,CAAC,aAAa,CAAC;IAClD;;;;OAIG;IACH,4BAA4B,EAAE,MAAM,CAAC;IACrC;;;;;;OAMG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,kBAAkB,EAAE,KAAK,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IACnE,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB;;;;OAIG;IACH,cAAc,EAAE,KAAK,CAAC,aAAa,CAAC;IACpC;;;;OAIG;IACH,gBAAgB,EAAE,KAAK,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IACjE;;;;OAIG;IACH,iBAAiB,EAAE,KAAK,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IAClE;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,aAAa,EAAE,IAAI,EAAE,CAAC;IACtB,cAAc,EAAE,KAAK,EAAE,CAAC;IACxB,cAAc,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IAC7D,mBAAmB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IAClE,gBAAgB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;IAC/D,iBAAiB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;IACjE,iBAAiB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,QAAQ,GAAG,SAAS,CAAC,CAAC,CAAC;IAC9E,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IAC1D,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,QAAQ,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,uBAAuB,6CAEnC,CAAC;AAEF,eAAO,MAAM,wBAAwB;;wBAwDpC,CAAC;AAEF,eAAO,MAAM,0BAA0B,oCAYtC,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,2BAA2B,6NAgBvC,CAAC"}
|
|
@@ -3,7 +3,7 @@ import type { Channel, ChannelState } from 'stream-chat';
|
|
|
3
3
|
import type { EmptyStateProps } from '../../components/Indicators/EmptyStateIndicator';
|
|
4
4
|
import type { LoadingProps } from '../../components/Indicators/LoadingIndicator';
|
|
5
5
|
import { StickyHeaderProps } from '../../components/MessageList/StickyHeader';
|
|
6
|
-
import type { DefaultStreamChatGenerics } from '../../types/types';
|
|
6
|
+
import type { DefaultStreamChatGenerics, UnknownType } from '../../types/types';
|
|
7
7
|
export type ChannelContextValue<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
8
8
|
/**
|
|
9
9
|
* Instance of channel object from stream-chat package.
|
|
@@ -71,6 +71,20 @@ export type ChannelContextValue<StreamChatGenerics extends DefaultStreamChatGene
|
|
|
71
71
|
loadChannelAroundMessage: ({ messageId }: {
|
|
72
72
|
messageId?: string;
|
|
73
73
|
}) => Promise<void>;
|
|
74
|
+
/**
|
|
75
|
+
* @deprecated use loadChannelAroundMessage instead
|
|
76
|
+
*
|
|
77
|
+
* Loads channel at specific message
|
|
78
|
+
*
|
|
79
|
+
* @param messageId If undefined, channel will be loaded at most recent message.
|
|
80
|
+
* @param before Number of message to query before messageId
|
|
81
|
+
* @param after Number of message to query after messageId
|
|
82
|
+
*/
|
|
83
|
+
loadChannelAtMessage: ({ after, before, messageId, }: {
|
|
84
|
+
after?: number;
|
|
85
|
+
before?: number;
|
|
86
|
+
messageId?: string;
|
|
87
|
+
}) => Promise<void>;
|
|
74
88
|
loading: boolean;
|
|
75
89
|
/**
|
|
76
90
|
* Custom loading indicator to override the Stream default
|
|
@@ -170,4 +184,14 @@ export declare const ChannelProvider: <StreamChatGenerics extends DefaultStreamC
|
|
|
170
184
|
value: ChannelContextValue<StreamChatGenerics>;
|
|
171
185
|
}>) => React.JSX.Element;
|
|
172
186
|
export declare const useChannelContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>() => ChannelContextValue<StreamChatGenerics>;
|
|
187
|
+
/**
|
|
188
|
+
* @deprecated
|
|
189
|
+
*
|
|
190
|
+
* This will be removed in the next major version.
|
|
191
|
+
*
|
|
192
|
+
* Typescript currently does not support partial inference so if ChatContext
|
|
193
|
+
* typing is desired while using the HOC withChannelContext the Props for the
|
|
194
|
+
* wrapped component must be provided as the first generic.
|
|
195
|
+
*/
|
|
196
|
+
export declare const withChannelContext: <P extends UnknownType, StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(Component: React.ComponentType<P>) => React.ComponentType<Omit<P, keyof ChannelContextValue<StreamChatGenerics>>>;
|
|
173
197
|
//# sourceMappingURL=ChannelContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChannelContext.d.ts","sourceRoot":"","sources":["../../../../src/contexts/channelContext/ChannelContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAE7D,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iDAAiD,CAAC;AACvF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8CAA8C,CAAC;AACjF,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"ChannelContext.d.ts","sourceRoot":"","sources":["../../../../src/contexts/channelContext/ChannelContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAE7D,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iDAAiD,CAAC;AACvF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8CAA8C,CAAC;AACjF,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,KAAK,EAAE,yBAAyB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAMhF,MAAM,MAAM,mBAAmB,CAC7B,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E;IACF;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,OAAO,EAAE,OAAO,CAAC,kBAAkB,CAAC,CAAC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nC;;OAEG;IACH,4BAA4B,EAAE,MAAM,CAAC;IACrC,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,IAAI,GAAG,SAAS,CAAC,CAAC,CAAC;IACpE,kBAAkB,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAChD;;;OAGG;IACH,wBAAwB,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC,CAAC;IAC/E;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,QAAQ,EAAE,YAAY,CAAC,kBAAkB,CAAC,CAAC,UAAU,CAAC,CAAC;IACvD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,EAAE,IAAI,CAAC;IAChB;;;OAGG;IACH,6BAA6B,CAAC,EAAE,MAAM,CAAC;IACvC;;;;OAIG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,iBAAiB,CAAC,CAAC;IACtD;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,YAAY,CAAC,kBAAkB,CAAC,CAAC,eAAe,CAAC,CAAC;CAClE,CAAC;AAEF,eAAO,MAAM,cAAc,+DAE1B,CAAC;AAEF,eAAO,MAAM,eAAe;;wBAW3B,CAAC;AAEF,eAAO,MAAM,iBAAiB,iIAc7B,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,kBAAkB,6NAe9B,CAAC"}
|
|
@@ -13,7 +13,7 @@ import type { ChannelPreviewUnreadCountProps } from '../../components/ChannelPre
|
|
|
13
13
|
import type { EmptyStateProps } from '../../components/Indicators/EmptyStateIndicator';
|
|
14
14
|
import type { LoadingErrorProps } from '../../components/Indicators/LoadingErrorIndicator';
|
|
15
15
|
import type { LoadingProps } from '../../components/Indicators/LoadingIndicator';
|
|
16
|
-
import type { DefaultStreamChatGenerics } from '../../types/types';
|
|
16
|
+
import type { DefaultStreamChatGenerics, UnknownType } from '../../types/types';
|
|
17
17
|
export type ChannelsContextValue<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
18
18
|
/**
|
|
19
19
|
* Besides the existing default behavior of the ChannelListMessenger component, you can attach
|
|
@@ -196,4 +196,14 @@ export declare const ChannelsProvider: <StreamChatGenerics extends DefaultStream
|
|
|
196
196
|
value: ChannelsContextValue<StreamChatGenerics>;
|
|
197
197
|
}>) => React.JSX.Element;
|
|
198
198
|
export declare const useChannelsContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>() => ChannelsContextValue<StreamChatGenerics>;
|
|
199
|
+
/**
|
|
200
|
+
* @deprecated
|
|
201
|
+
*
|
|
202
|
+
* This will be removed in the next major version.
|
|
203
|
+
*
|
|
204
|
+
* Typescript currently does not support partial inference so if ChatContext
|
|
205
|
+
* typing is desired while using the HOC withChannelsContext the Props for the
|
|
206
|
+
* wrapped component must be provided as the first generic.
|
|
207
|
+
*/
|
|
208
|
+
export declare const withChannelsContext: <P extends UnknownType, StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(Component: React.ComponentType<P>) => React.ComponentType<Omit<P, keyof ChannelsContextValue<StreamChatGenerics>>>;
|
|
199
209
|
//# sourceMappingURL=ChannelsContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChannelsContext.d.ts","sourceRoot":"","sources":["../../../../src/contexts/channelsContext/ChannelsContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAE7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAA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C,CAAC,CAAC;IAC5E;;;;OAIG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,0BAA0B,CAAC,kBAAkB,CAAC,CAAC,CAAC;IACrF;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACzC;;;;OAIG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,yBAAyB,CAAC,kBAAkB,CAAC,CAAC,CAAC;IACnF;;;;OAIG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,wBAAwB,CAAC,kBAAkB,CAAC,CAAC,CAAC;IACjF;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,8BAA8B,CAAC,kBAAkB,CAAC,CAAC,CAAC;CAC9F,CAAC;AAEF,eAAO,MAAM,eAAe,gEAE3B,CAAC;AAEF,eAAO,MAAM,gBAAgB;;wBAW5B,CAAC;AAEF,eAAO,MAAM,kBAAkB,kIAc9B,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB,8NAe/B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
|
-
import type { DefaultStreamChatGenerics } from '../../types/types';
|
|
2
|
+
import type { DefaultStreamChatGenerics, UnknownType } from '../../types/types';
|
|
3
3
|
import type { ChannelContextValue } from '../channelContext/ChannelContext';
|
|
4
4
|
import type { PaginatedMessageListContextValue } from '../paginatedMessageListContext/PaginatedMessageListContext';
|
|
5
5
|
import type { ThreadContextValue } from '../threadContext/ThreadContext';
|
|
@@ -37,5 +37,15 @@ export declare const ChannelsStateProvider: <StreamChatGenerics extends DefaultS
|
|
|
37
37
|
children: ReactNode;
|
|
38
38
|
}) => React.JSX.Element;
|
|
39
39
|
export declare const useChannelsStateContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>() => ChannelsStateContextValue<StreamChatGenerics>;
|
|
40
|
+
/**
|
|
41
|
+
* @deprecated
|
|
42
|
+
*
|
|
43
|
+
* This will be removed in the next major version.
|
|
44
|
+
*
|
|
45
|
+
* Typescript currently does not support partial inference so if ChatContext
|
|
46
|
+
* typing is desired while using the HOC withChannelsStateContext the Props for the
|
|
47
|
+
* wrapped component must be provided as the first generic.
|
|
48
|
+
*/
|
|
49
|
+
export declare const withChannelsStateContext: <P extends UnknownType, StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(Component: React.ComponentType<P>) => React.ComponentType<Omit<P, keyof ChannelsStateContextValue<StreamChatGenerics>>>;
|
|
40
50
|
export {};
|
|
41
51
|
//# sourceMappingURL=ChannelsStateContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChannelsStateContext.d.ts","sourceRoot":"","sources":["../../../../src/contexts/channelsStateContext/ChannelsStateContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACZ,SAAS,EAOV,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"ChannelsStateContext.d.ts","sourceRoot":"","sources":["../../../../src/contexts/channelsStateContext/ChannelsStateContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACZ,SAAS,EAOV,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAE,yBAAyB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGhF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,4DAA4D,CAAC;AACnH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAMzE,MAAM,MAAM,YAAY,CACtB,kBAAkB,SAAS,yBAAyB,GAAG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,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IAC1D,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,IAAI,EAAE,kBAAkB,CAAC,KAAK,IAAI,CAAC;IAC7D,KAAK,EAAE,aAAa,CAAC,kBAAkB,CAAC,CAAC;CAC1C,CAAC;AA4DF,eAAO,MAAM,qBAAqB;cAKtB,SAAS;uBAsCpB,CAAC;AAEF,eAAO,MAAM,uBAAuB,uIAcnC,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,wBAAwB,mOAiBpC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { PropsWithChildren } from 'react';
|
|
2
2
|
import type { ImageProps } from 'react-native';
|
|
3
3
|
import type { AppSettingsAPIResponse, Channel, Mute, StreamChat } from 'stream-chat';
|
|
4
|
-
import type { DefaultStreamChatGenerics } from '../../types/types';
|
|
4
|
+
import type { DefaultStreamChatGenerics, UnknownType } from '../../types/types';
|
|
5
5
|
export type ChatContextValue<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
6
6
|
/**
|
|
7
7
|
* Object of application settings returned from Stream.
|
|
@@ -56,10 +56,24 @@ export type ChatContextValue<StreamChatGenerics extends DefaultStreamChatGeneric
|
|
|
56
56
|
* @overrideType Channel
|
|
57
57
|
*/
|
|
58
58
|
channel?: Channel<StreamChatGenerics>;
|
|
59
|
+
/**
|
|
60
|
+
* This option allows you to specify a list of CDNs that offer image resizing.
|
|
61
|
+
*/
|
|
62
|
+
resizableCDNHosts?: string[];
|
|
59
63
|
};
|
|
60
64
|
export declare const ChatContext: React.Context<ChatContextValue<DefaultStreamChatGenerics>>;
|
|
61
65
|
export declare const ChatProvider: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ children, value, }: React.PropsWithChildren<{
|
|
62
66
|
value?: ChatContextValue<StreamChatGenerics> | undefined;
|
|
63
67
|
}>) => React.JSX.Element;
|
|
64
68
|
export declare const useChatContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>() => ChatContextValue<StreamChatGenerics>;
|
|
69
|
+
/**
|
|
70
|
+
* @deprecated
|
|
71
|
+
*
|
|
72
|
+
* This will be removed in the next major version.
|
|
73
|
+
*
|
|
74
|
+
* Typescript currently does not support partial inference so if ChatContext
|
|
75
|
+
* typing is desired while using the HOC withChatContext the Props for the
|
|
76
|
+
* wrapped component must be provided as the first generic.
|
|
77
|
+
*/
|
|
78
|
+
export declare const withChatContext: <P extends UnknownType, StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(Component: React.ComponentType<P>) => React.ComponentType<Omit<P, keyof ChatContextValue<StreamChatGenerics>>>;
|
|
65
79
|
//# sourceMappingURL=ChatContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatContext.d.ts","sourceRoot":"","sources":["../../../../src/contexts/chatContext/ChatContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAC7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,KAAK,EAAE,sBAAsB,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAErF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"ChatContext.d.ts","sourceRoot":"","sources":["../../../../src/contexts/chatContext/ChatContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAC7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,KAAK,EAAE,sBAAsB,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAErF,OAAO,KAAK,EAAE,yBAAyB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAMhF,MAAM,MAAM,gBAAgB,CAC1B,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E;IACF;;SAEK;IACL,WAAW,EAAE,sBAAsB,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAAC;IAC/D;;;;;;;;;;;;;;;SAeK;IACL,MAAM,EAAE,UAAU,CAAC,kBAAkB,CAAC,CAAC;IACvC,oBAAoB,EAAE,OAAO,CAAC;IAC9B,oBAAoB,EAAE,OAAO,CAAC;IAC9B;;OAEG;IACH,cAAc,EAAE,KAAK,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;IAChD,QAAQ,EAAE,OAAO,GAAG,IAAI,CAAC;IACzB,UAAU,EAAE,IAAI,CAAC,kBAAkB,CAAC,EAAE,CAAC;IACvC;;;;OAIG;IACH,gBAAgB,EAAE,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC,kBAAkB,CAAC,KAAK,IAAI,CAAC;IACrE;;;;;;;;;;;;;;;;OAgBG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC,kBAAkB,CAAC,CAAC;IACtC;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,WAAW,4DAAsE,CAAC;AAE/F,eAAO,MAAM,YAAY;;wBAWxB,CAAC;AAEF,eAAO,MAAM,cAAc,8HAY1B,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,eAAe,0NAa3B,CAAC"}
|
|
@@ -14,5 +14,15 @@ export type ImageGalleryContextValue<StreamChatGenerics extends DefaultStreamCha
|
|
|
14
14
|
export declare const ImageGalleryContext: React.Context<ImageGalleryContextValue<DefaultStreamChatGenerics>>;
|
|
15
15
|
export declare const ImageGalleryProvider: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ children, }: PropsWithChildren<UnknownType>) => React.JSX.Element;
|
|
16
16
|
export declare const useImageGalleryContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>() => ImageGalleryContextValue<StreamChatGenerics>;
|
|
17
|
+
/**
|
|
18
|
+
* @deprecated
|
|
19
|
+
*
|
|
20
|
+
* This will be removed in the next major version.
|
|
21
|
+
*
|
|
22
|
+
* Typescript currently does not support partial inference so if ChatContext
|
|
23
|
+
* typing is desired while using the HOC withImageGalleryContext the Props for the
|
|
24
|
+
* wrapped component must be provided as the first generic.
|
|
25
|
+
*/
|
|
26
|
+
export declare const withImageGalleryContext: <P extends UnknownType, StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(Component: React.ComponentType<P>) => React.ComponentType<Omit<P, keyof ImageGalleryContextValue<StreamChatGenerics>>>;
|
|
17
27
|
export {};
|
|
18
28
|
//# sourceMappingURL=ImageGalleryContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageGalleryContext.d.ts","sourceRoot":"","sources":["../../../../src/contexts/imageGalleryContext/ImageGalleryContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAwB,MAAM,OAAO,CAAC;AAEvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mDAAmD,CAAC;AACrF,OAAO,KAAK,EAAE,yBAAyB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"ImageGalleryContext.d.ts","sourceRoot":"","sources":["../../../../src/contexts/imageGalleryContext/ImageGalleryContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAwB,MAAM,OAAO,CAAC;AAEvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mDAAmD,CAAC;AACrF,OAAO,KAAK,EAAE,yBAAyB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAMhF,KAAK,eAAe,GAAG;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,wBAAwB,CAClC,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E;IACF,QAAQ,EAAE,WAAW,CAAC,kBAAkB,CAAC,EAAE,CAAC;IAC5C,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,kBAAkB,CAAC,EAAE,CAAC,CAAC,CAAC;IACrF,kBAAkB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,eAAe,GAAG,SAAS,CAAC,CAAC,CAAC;IACtF,eAAe,CAAC,EAAE,eAAe,CAAC;CACnC,CAAC;AAEF,eAAO,MAAM,mBAAmB,oEAE/B,CAAC;AAEF,eAAO,MAAM,oBAAoB,oGAI9B,kBAAkB,WAAW,CAAC,sBAkBhC,CAAC;AAEF,eAAO,MAAM,sBAAsB,sIAclC,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,uBAAuB,kOAiBnC,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export * from './attachmentPickerContext/AttachmentPickerContext';
|
|
2
2
|
export * from './channelContext/ChannelContext';
|
|
3
3
|
export * from './channelsContext/ChannelsContext';
|
|
4
|
-
export * from './chatConfigContext/ChatConfigContext';
|
|
5
4
|
export * from './chatContext/ChatContext';
|
|
6
5
|
export * from './debugContext/DebugContext';
|
|
7
6
|
export * from './imageGalleryContext/ImageGalleryContext';
|
|
@@ -10,6 +9,7 @@ export * from './messageContext/MessageContext';
|
|
|
10
9
|
export * from './messageInputContext/hooks/useCreateMessageInputContext';
|
|
11
10
|
export * from './messageInputContext/hooks/useMessageDetailsForState';
|
|
12
11
|
export * from './messageInputContext/MessageInputContext';
|
|
12
|
+
export * from './messageOverlayContext/MessageOverlayContext';
|
|
13
13
|
export * from './messagesContext/MessagesContext';
|
|
14
14
|
export * from './paginatedMessageListContext/PaginatedMessageListContext';
|
|
15
15
|
export * from './overlayContext/OverlayContext';
|
|
@@ -24,4 +24,5 @@ export * from './threadsContext/ThreadListItemContext';
|
|
|
24
24
|
export * from './translationContext/TranslationContext';
|
|
25
25
|
export * from './typingContext/TypingContext';
|
|
26
26
|
export * from './utils/getDisplayName';
|
|
27
|
+
export * from './pollContext';
|
|
27
28
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/contexts/index.ts"],"names":[],"mappings":"AAAA,cAAc,mDAAmD,CAAC;AAClE,cAAc,iCAAiC,CAAC;AAChD,cAAc,mCAAmC,CAAC;AAClD,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/contexts/index.ts"],"names":[],"mappings":"AAAA,cAAc,mDAAmD,CAAC;AAClE,cAAc,iCAAiC,CAAC;AAChD,cAAc,mCAAmC,CAAC;AAClD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2CAA2C,CAAC;AAC1D,cAAc,mCAAmC,CAAC;AAClD,cAAc,iCAAiC,CAAC;AAChD,cAAc,0DAA0D,CAAC;AACzE,cAAc,uDAAuD,CAAC;AACtE,cAAc,2CAA2C,CAAC;AAC1D,cAAc,+CAA+C,CAAC;AAC9D,cAAc,mCAAmC,CAAC;AAClD,cAAc,2DAA2D,CAAC;AAC1E,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC;AACjD,cAAc,iDAAiD,CAAC;AAChE,cAAc,yCAAyC,CAAC;AACxD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iCAAiC,CAAC;AAChD,cAAc,wCAAwC,CAAC;AACvD,cAAc,yCAAyC,CAAC;AACxD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import type { DefaultStreamChatGenerics } from '../../types/types';
|
|
2
3
|
export type KeyboardContextValue = {
|
|
3
4
|
dismissKeyboard: () => void;
|
|
4
5
|
};
|
|
@@ -12,5 +13,15 @@ export declare const KeyboardProvider: ({ children, value }: Props) => React.JSX
|
|
|
12
13
|
export declare const useKeyboardContext: () => {
|
|
13
14
|
dismissKeyboard: () => void;
|
|
14
15
|
};
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated
|
|
18
|
+
*
|
|
19
|
+
* This will be removed in the next major version.
|
|
20
|
+
*
|
|
21
|
+
* Typescript currently does not support partial inference so if ChatContext
|
|
22
|
+
* typing is desired while using the HOC withKeyboardContext the Props for the
|
|
23
|
+
* wrapped component must be provided as the first generic.
|
|
24
|
+
*/
|
|
25
|
+
export declare const withKeyboardContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(Component: React.ComponentType<StreamChatGenerics>) => React.ComponentType<Omit<StreamChatGenerics, "dismissKeyboard">>;
|
|
15
26
|
export {};
|
|
16
27
|
//# sourceMappingURL=KeyboardContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyboardContext.d.ts","sourceRoot":"","sources":["../../../../src/contexts/keyboardContext/KeyboardContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAI1C,MAAM,MAAM,oBAAoB,GAAG;IACjC,eAAe,EAAE,MAAM,IAAI,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,eAAe;;EAE1B,CAAC;AAEH,KAAK,KAAK,GAAG,KAAK,CAAC,iBAAiB,CAAC;IACnC,KAAK,EAAE,oBAAoB,CAAC;CAC7B,CAAC,CAAC;AAEH,eAAO,MAAM,gBAAgB,wBAAyB,KAAK,sBAE1D,CAAC;AAEF,eAAO,MAAM,kBAAkB;;CAAoC,CAAC"}
|
|
1
|
+
{"version":3,"file":"KeyboardContext.d.ts","sourceRoot":"","sources":["../../../../src/contexts/keyboardContext/KeyboardContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAI1C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAGnE,MAAM,MAAM,oBAAoB,GAAG;IACjC,eAAe,EAAE,MAAM,IAAI,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,eAAe;;EAE1B,CAAC;AAEH,KAAK,KAAK,GAAG,KAAK,CAAC,iBAAiB,CAAC;IACnC,KAAK,EAAE,oBAAoB,CAAC;CAC7B,CAAC,CAAC;AAEH,eAAO,MAAM,gBAAgB,wBAAyB,KAAK,sBAE1D,CAAC;AAEF,eAAO,MAAM,kBAAkB;;CAAoC,CAAC;AAEpE;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB,4MAgB/B,CAAC"}
|
|
@@ -2,23 +2,19 @@ import React, { PropsWithChildren } from 'react';
|
|
|
2
2
|
import type { Attachment } from 'stream-chat';
|
|
3
3
|
import type { ActionHandler } from '../../components/Attachment/Attachment';
|
|
4
4
|
import { ReactionSummary } from '../../components/Message/hooks/useProcessReactions';
|
|
5
|
-
import type {
|
|
5
|
+
import type { MessageTouchableHandlerPayload, TouchableHandlerPayload } from '../../components/Message/Message';
|
|
6
6
|
import type { GroupType, MessageType } from '../../components/MessageList/hooks/useMessageList';
|
|
7
7
|
import type { ChannelContextValue } from '../../contexts/channelContext/ChannelContext';
|
|
8
8
|
import type { MessageContentType } from '../../contexts/messagesContext/MessagesContext';
|
|
9
9
|
import type { DeepPartial } from '../../contexts/themeContext/ThemeContext';
|
|
10
10
|
import type { Theme } from '../../contexts/themeContext/utils/theme';
|
|
11
|
-
import type { DefaultStreamChatGenerics } from '../../types/types';
|
|
11
|
+
import type { DefaultStreamChatGenerics, UnknownType } from '../../types/types';
|
|
12
12
|
export type Alignment = 'right' | 'left';
|
|
13
13
|
export type MessageContextValue<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
14
14
|
/** Whether or not actions can be performed on message */
|
|
15
15
|
actionsEnabled: boolean;
|
|
16
16
|
/** Position of the message, either 'right' or 'left' */
|
|
17
17
|
alignment: Alignment;
|
|
18
|
-
/**
|
|
19
|
-
* Function to dismiss the overlay
|
|
20
|
-
*/
|
|
21
|
-
dismissOverlay: () => void;
|
|
22
18
|
/** The files attached to a message */
|
|
23
19
|
files: Attachment<StreamChatGenerics>[];
|
|
24
20
|
/**
|
|
@@ -30,6 +26,46 @@ export type MessageContextValue<StreamChatGenerics extends DefaultStreamChatGene
|
|
|
30
26
|
groupStyles: GroupType[];
|
|
31
27
|
/** Handler for actions. Actions in combination with attachments can be used to build [commands](https://getstream.io/chat/docs/#channel_commands). */
|
|
32
28
|
handleAction: ActionHandler;
|
|
29
|
+
/**
|
|
30
|
+
* @deprecated
|
|
31
|
+
* @returns Promise<void>
|
|
32
|
+
*/
|
|
33
|
+
handleCopyMessage: () => void;
|
|
34
|
+
/**
|
|
35
|
+
* @deprecated
|
|
36
|
+
* @returns Promise<void>
|
|
37
|
+
*/
|
|
38
|
+
handleDeleteMessage: () => void;
|
|
39
|
+
/**
|
|
40
|
+
* @deprecated
|
|
41
|
+
* @returns Promise<void>
|
|
42
|
+
*/
|
|
43
|
+
handleEditMessage: () => void;
|
|
44
|
+
/**
|
|
45
|
+
* @deprecated
|
|
46
|
+
* @returns Promise<void>
|
|
47
|
+
*/
|
|
48
|
+
handleFlagMessage: () => void;
|
|
49
|
+
/**
|
|
50
|
+
* @deprecated
|
|
51
|
+
* @returns Promise<void>
|
|
52
|
+
*/
|
|
53
|
+
handleQuotedReplyMessage: () => void;
|
|
54
|
+
/**
|
|
55
|
+
* @deprecated
|
|
56
|
+
* @returns Promise<void>
|
|
57
|
+
*/
|
|
58
|
+
handleResendMessage: () => Promise<void>;
|
|
59
|
+
/**
|
|
60
|
+
* @deprecated
|
|
61
|
+
* @returns Promise<void>
|
|
62
|
+
*/
|
|
63
|
+
handleToggleBanUser: () => Promise<void>;
|
|
64
|
+
/**
|
|
65
|
+
* @deprecated
|
|
66
|
+
* @returns Promise<void>
|
|
67
|
+
*/
|
|
68
|
+
handleToggleMuteUser: () => Promise<void>;
|
|
33
69
|
handleToggleReaction: (reactionType: string) => Promise<void>;
|
|
34
70
|
/** Whether or not message has reactions */
|
|
35
71
|
hasReactions: boolean;
|
|
@@ -55,7 +91,7 @@ export type MessageContextValue<StreamChatGenerics extends DefaultStreamChatGene
|
|
|
55
91
|
*
|
|
56
92
|
* @param payload Payload object for onLongPress event
|
|
57
93
|
*/
|
|
58
|
-
onLongPress: (payload:
|
|
94
|
+
onLongPress: (payload: TouchableHandlerPayload) => void;
|
|
59
95
|
/** Whether the message is only text and the text is only emojis */
|
|
60
96
|
onlyEmojis: boolean;
|
|
61
97
|
/** Handler to open a thread on a message */
|
|
@@ -70,31 +106,20 @@ export type MessageContextValue<StreamChatGenerics extends DefaultStreamChatGene
|
|
|
70
106
|
*
|
|
71
107
|
* @param payload Payload object for onPress event
|
|
72
108
|
*/
|
|
73
|
-
onPress: (payload:
|
|
74
|
-
onPressIn: ((payload:
|
|
109
|
+
onPress: (payload: MessageTouchableHandlerPayload) => void;
|
|
110
|
+
onPressIn: ((payload: TouchableHandlerPayload) => void) | null;
|
|
75
111
|
/** The images attached to a message */
|
|
76
112
|
otherAttachments: Attachment<StreamChatGenerics>[];
|
|
77
113
|
reactions: ReactionSummary[];
|
|
78
114
|
/** React set state function to set the state of `isEditedMessageOpen` */
|
|
79
115
|
setIsEditedMessageOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
80
|
-
|
|
81
|
-
* Function to show the menu with all the message actions.
|
|
82
|
-
* @param showMessageReactions
|
|
83
|
-
* @returns void
|
|
84
|
-
*/
|
|
85
|
-
showMessageOverlay: (showMessageReactions?: boolean) => void;
|
|
116
|
+
showMessageOverlay: (isMessageActionsVisible?: boolean, error?: boolean) => void;
|
|
86
117
|
showMessageStatus: boolean;
|
|
87
118
|
/** Whether or not the Message is part of a Thread */
|
|
88
119
|
threadList: boolean;
|
|
89
120
|
/** The videos attached to a message */
|
|
90
121
|
videos: Attachment<StreamChatGenerics>[];
|
|
91
122
|
goToMessage?: (messageId: string) => void;
|
|
92
|
-
/**
|
|
93
|
-
* Function to handle reaction on message
|
|
94
|
-
* @param reactionType
|
|
95
|
-
* @returns
|
|
96
|
-
*/
|
|
97
|
-
handleReaction?: (reactionType: string) => Promise<void>;
|
|
98
123
|
/** Latest message id on current channel */
|
|
99
124
|
lastReceivedId?: string;
|
|
100
125
|
/**
|
|
@@ -111,4 +136,14 @@ export declare const MessageProvider: <StreamChatGenerics extends DefaultStreamC
|
|
|
111
136
|
value?: MessageContextValue<StreamChatGenerics> | undefined;
|
|
112
137
|
}>) => React.JSX.Element;
|
|
113
138
|
export declare const useMessageContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>() => MessageContextValue<StreamChatGenerics>;
|
|
139
|
+
/**
|
|
140
|
+
* @deprecated
|
|
141
|
+
*
|
|
142
|
+
* This will be removed in the next major version.
|
|
143
|
+
*
|
|
144
|
+
* Typescript currently does not support partial inference so if ChatContext
|
|
145
|
+
* typing is desired while using the HOC withMessageContext the Props for the
|
|
146
|
+
* wrapped component must be provided as the first generic.
|
|
147
|
+
*/
|
|
148
|
+
export declare const withMessageContext: <P extends UnknownType, StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(Component: React.ComponentType<P>) => React.ComponentType<Omit<P, "onPress" | "onPressIn" | "onLongPress" | "channel" | "message" | "members" | "preventPress" | "actionsEnabled" | "alignment" | "files" | "groupStyles" | "handleAction" | "handleCopyMessage" | "handleDeleteMessage" | "handleEditMessage" | "handleFlagMessage" | "handleQuotedReplyMessage" | "handleResendMessage" | "handleToggleBanUser" | "handleToggleMuteUser" | "handleToggleReaction" | "hasReactions" | "images" | "isEditedMessageOpen" | "isMyMessage" | "lastGroupMessage" | "messageContentOrder" | "onlyEmojis" | "onOpenThread" | "otherAttachments" | "reactions" | "setIsEditedMessageOpen" | "showMessageOverlay" | "showMessageStatus" | "threadList" | "videos" | "goToMessage" | "lastReceivedId" | "myMessageTheme" | "showAvatar">>;
|
|
114
149
|
//# sourceMappingURL=MessageContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageContext.d.ts","sourceRoot":"","sources":["../../../../src/contexts/messageContext/MessageContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAE7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAE,eAAe,EAAE,MAAM,oDAAoD,CAAC;AACrF,OAAO,KAAK,EACV,8BAA8B,EAC9B,uBAAuB,EACxB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,mDAAmD,CAAC;AAChG,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAC;AACxF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AACzF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAC;AAC5E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,yCAAyC,CAAC;AACrE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"MessageContext.d.ts","sourceRoot":"","sources":["../../../../src/contexts/messageContext/MessageContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAE7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,OAAO,KAAK,EAAE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CAAC,EAAE,OAAO,EAAE,KAAK,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACjF,iBAAiB,EAAE,OAAO,CAAC;IAC3B,qDAAqD;IACrD,UAAU,EAAE,OAAO,CAAC;IACpB,uCAAuC;IACvC,MAAM,EAAE,UAAU,CAAC,kBAAkB,CAAC,EAAE,CAAC;IACzC,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,2CAA2C;IAC3C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,cAAc,CAAC,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;IACpC,0DAA0D;IAC1D,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,0DAA0D;IAC1D,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,GAAG,IAAI,CAAC,mBAAmB,CAAC,kBAAkB,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC,CAAC;AAEzE,eAAO,MAAM,cAAc,+DAE1B,CAAC;AAEF,eAAO,MAAM,eAAe;;wBAW3B,CAAC;AAEF,eAAO,MAAM,iBAAiB,iIAQ7B,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,kBAAkB,44BAe9B,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { LegacyRef, PropsWithChildren } from 'react';
|
|
2
2
|
import { TextInput, TextInputProps } from 'react-native';
|
|
3
3
|
import { Attachment, Message, SendFileAPIResponse, StreamChat, Message as StreamMessage, UserFilters, UserOptions, UserResponse, UserSort } from 'stream-chat';
|
|
4
|
+
import { PollContentProps } from '../../components';
|
|
4
5
|
import { AudioAttachmentProps } from '../../components/Attachment/AudioAttachment';
|
|
5
6
|
import type { AttachButtonProps } from '../../components/MessageInput/AttachButton';
|
|
6
7
|
import type { CommandsButtonProps } from '../../components/MessageInput/CommandsButton';
|
|
@@ -23,7 +24,7 @@ import type { SendButtonProps } from '../../components/MessageInput/SendButton';
|
|
|
23
24
|
import type { UploadProgressIndicatorProps } from '../../components/MessageInput/UploadProgressIndicator';
|
|
24
25
|
import type { MessageType } from '../../components/MessageList/hooks/useMessageList';
|
|
25
26
|
import type { Emoji } from '../../emoji-data';
|
|
26
|
-
import { Asset, DefaultStreamChatGenerics, File, FileUpload, ImageUpload } from '../../types/types';
|
|
27
|
+
import { Asset, DefaultStreamChatGenerics, File, FileUpload, ImageUpload, UnknownType } from '../../types/types';
|
|
27
28
|
import { ACITriggerSettingsParams, TriggerSettings } from '../../utils/ACITriggerSettings';
|
|
28
29
|
import { ChannelContextValue } from '../channelContext/ChannelContext';
|
|
29
30
|
export type EmojiSearchIndex = {
|
|
@@ -277,6 +278,7 @@ export type InputMessageInputContextValue<StreamChatGenerics extends DefaultStre
|
|
|
277
278
|
MoreOptionsButton: React.ComponentType<MoreOptionsButtonProps>;
|
|
278
279
|
/** Limit on the number of lines in the text input before scrolling */
|
|
279
280
|
numberOfLines: number;
|
|
281
|
+
quotedMessage: boolean | MessageType<StreamChatGenerics>;
|
|
280
282
|
/**
|
|
281
283
|
* Custom UI component for send button.
|
|
282
284
|
*
|
|
@@ -317,6 +319,7 @@ export type InputMessageInputContextValue<StreamChatGenerics extends DefaultStre
|
|
|
317
319
|
* Mapping of input triggers to the outputs to be displayed by the AutoCompleteInput
|
|
318
320
|
*/
|
|
319
321
|
autoCompleteTriggerSettings?: (settings: ACITriggerSettingsParams<StreamChatGenerics>) => TriggerSettings<StreamChatGenerics>;
|
|
322
|
+
closePollCreationDialog?: () => void;
|
|
320
323
|
/**
|
|
321
324
|
* Compress image with quality (from 0 to 1, where 1 is best quality).
|
|
322
325
|
* On iOS, values larger than 0.8 don't produce a noticeable quality increase in most images,
|
|
@@ -324,6 +327,11 @@ export type InputMessageInputContextValue<StreamChatGenerics extends DefaultStre
|
|
|
324
327
|
* Image picker defaults to 0.8 for iOS and 1 for Android
|
|
325
328
|
*/
|
|
326
329
|
compressImageQuality?: number;
|
|
330
|
+
/**
|
|
331
|
+
* Override the entire content of the CreatePoll component. The component has full access to the
|
|
332
|
+
* useCreatePollContext() hook.
|
|
333
|
+
* */
|
|
334
|
+
CreatePollContent?: React.ComponentType<PollContentProps>;
|
|
327
335
|
/**
|
|
328
336
|
* Override file upload request
|
|
329
337
|
*
|
|
@@ -384,14 +392,14 @@ export type InputMessageInputContextValue<StreamChatGenerics extends DefaultStre
|
|
|
384
392
|
*/
|
|
385
393
|
InputButtons?: React.ComponentType<InputButtonsProps<StreamChatGenerics>>;
|
|
386
394
|
maxMessageLength?: number;
|
|
387
|
-
mentionAllAppUsersEnabled?: boolean;
|
|
388
395
|
/** Object containing filters/sort/options overrides for an @mention user query */
|
|
396
|
+
mentionAllAppUsersEnabled?: boolean;
|
|
389
397
|
mentionAllAppUsersQuery?: MentionAllAppUsersQuery<StreamChatGenerics>;
|
|
390
398
|
/**
|
|
391
399
|
* Callback that is called when the text input's text changes. Changed text is passed as a single string argument to the callback handler.
|
|
392
400
|
*/
|
|
393
401
|
onChangeText?: (newText: string) => void;
|
|
394
|
-
|
|
402
|
+
openPollCreationDialog?: ({ sendMessage }: Pick<LocalMessageInputContext, 'sendMessage'>) => void;
|
|
395
403
|
SendMessageDisallowedIndicator?: React.ComponentType;
|
|
396
404
|
/**
|
|
397
405
|
* ref for input setter function
|
|
@@ -401,6 +409,7 @@ export type InputMessageInputContextValue<StreamChatGenerics extends DefaultStre
|
|
|
401
409
|
* @overrideType Function
|
|
402
410
|
*/
|
|
403
411
|
setInputRef?: (ref: TextInput | null) => void;
|
|
412
|
+
showPollCreationDialog?: boolean;
|
|
404
413
|
};
|
|
405
414
|
export type MessageInputContextValue<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = LocalMessageInputContext<StreamChatGenerics> & Omit<InputMessageInputContextValue<StreamChatGenerics>, 'sendMessage'>;
|
|
406
415
|
export declare const MessageInputContext: React.Context<MessageInputContextValue<DefaultStreamChatGenerics>>;
|
|
@@ -408,4 +417,14 @@ export declare const MessageInputProvider: <StreamChatGenerics extends DefaultSt
|
|
|
408
417
|
value: InputMessageInputContextValue<StreamChatGenerics>;
|
|
409
418
|
}>) => React.JSX.Element;
|
|
410
419
|
export declare const useMessageInputContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>() => MessageInputContextValue<StreamChatGenerics>;
|
|
420
|
+
/**
|
|
421
|
+
* @deprecated
|
|
422
|
+
*
|
|
423
|
+
* This will be removed in the next major version.
|
|
424
|
+
*
|
|
425
|
+
* Typescript currently does not support partial inference so if ChatContext
|
|
426
|
+
* typing is desired while using the HOC withMessageInputContext the Props for the
|
|
427
|
+
* wrapped component must be provided as the first generic.
|
|
428
|
+
*/
|
|
429
|
+
export declare const withMessageInputContext: <P extends UnknownType, StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(Component: React.ComponentType<P>) => React.ComponentType<Omit<P, "numberOfLines" | "compressImageQuality" | "maxNumberOfFiles" | "setQuotedMessageState" | "asyncMessagesLockDistance" | "asyncMessagesMinimumPressDuration" | "asyncMessagesMultiSendEnabled" | "asyncMessagesSlideToCancelDistance" | "AttachButton" | "AudioAttachmentUploadPreview" | "AudioRecorder" | "audioRecordingEnabled" | "AudioRecordingInProgress" | "AudioRecordingLockIndicator" | "AudioRecordingPreview" | "AudioRecordingWaveform" | "clearEditingState" | "clearQuotedMessageState" | "CommandsButton" | "CooldownTimer" | "editMessage" | "FileUploadPreview" | "hasCameraPicker" | "hasCommands" | "hasFilePicker" | "hasImagePicker" | "ImageUploadPreview" | "InputEditingStateHeader" | "InputGiphySearch" | "InputReplyStateHeader" | "MoreOptionsButton" | "quotedMessage" | "SendButton" | "sendImageAsync" | "ShowThreadMessageInChannelButton" | "StartAudioRecordingButton" | "UploadProgressIndicator" | "additionalTextInputProps" | "autoCompleteSuggestionsLimit" | "autoCompleteTriggerSettings" | "closePollCreationDialog" | "CreatePollContent" | "doDocUploadRequest" | "doImageUploadRequest" | "editing" | "emojiSearchIndex" | "handleAttachButtonPress" | "initialValue" | "Input" | "InputButtons" | "maxMessageLength" | "mentionAllAppUsersEnabled" | "mentionAllAppUsersQuery" | "onChangeText" | "openPollCreationDialog" | "SendMessageDisallowedIndicator" | "setInputRef" | "showPollCreationDialog" | keyof LocalMessageInputContext<StreamChatGenerics>>>;
|
|
411
430
|
//# sourceMappingURL=MessageInputContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageInputContext.d.ts","sourceRoot":"","sources":["../../../../src/contexts/messageInputContext/MessageInputContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACZ,SAAS,EACT,iBAAiB,EAMlB,MAAM,OAAO,CAAC;AACf,OAAO,EAA4B,SAAS,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAInF,OAAO,EACL,UAAU,EAEV,OAAO,EACP,mBAAmB,EACnB,UAAU,EACV,OAAO,IAAI,aAAa,EACxB,WAAW,EACX,WAAW,EACX,YAAY,EACZ,QAAQ,EACT,MAAM,aAAa,CAAC;AAOrB,OAAO,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;AAEnF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4CAA4C,CAAC;AACpF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAC;AACxF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sEAAsE,CAAC;AAC/G,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6EAA6E,CAAC;AAC7H,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,iFAAiF,CAAC;AACrI,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,oFAAoF,CAAC;AAC3I,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,8EAA8E,CAAC;AAC/H,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,+EAA+E,CAAC;AACjI,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,kEAAkE,CAAC;AACrH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2DAA2D,CAAC;AACvG,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,gEAAgE,CAAC;AACjH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iDAAiD,CAAC;AAE9F,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kDAAkD,CAAC;AAChG,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4CAA4C,CAAC;AACpF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4CAA4C,CAAC;AACpF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iDAAiD,CAAC;AAC9F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAChF,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,uDAAuD,CAAC;AAC1G,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mDAAmD,CAAC;AACrF,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"MessageInputContext.d.ts","sourceRoot":"","sources":["../../../../src/contexts/messageInputContext/MessageInputContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACZ,SAAS,EACT,iBAAiB,EAMlB,MAAM,OAAO,CAAC;AACf,OAAO,EAA4B,SAAS,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAInF,OAAO,EACL,UAAU,EAEV,OAAO,EACP,mBAAmB,EACnB,UAAU,EACV,OAAO,IAAI,aAAa,EACxB,WAAW,EACX,WAAW,EACX,YAAY,EACZ,QAAQ,EACT,MAAM,aAAa,CAAC;AAOrB,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;AAEnF,OAAO,KAAK,E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