stream-chat-react-native-core 5.40.0-rc.2 → 5.41.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- 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 +125 -0
- package/lib/commonjs/components/Poll/components/PollResults/PollOptionFullResults.js.map +1 -0
- package/lib/commonjs/components/Poll/components/PollResults/PollResultItem.js +158 -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 +125 -0
- package/lib/module/components/Poll/components/PollResults/PollOptionFullResults.js.map +1 -0
- package/lib/module/components/Poll/components/PollResults/PollResultItem.js +158 -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 +11 -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 +56 -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 +167 -0
- package/src/components/Poll/components/PollResults/PollOptionFullResults.tsx +108 -0
- package/src/components/Poll/components/PollResults/PollResultItem.tsx +119 -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,5 +1,5 @@
|
|
|
1
1
|
import type { DefaultStreamChatGenerics } from '../../../types/types';
|
|
2
2
|
import type { ThreadContextValue } from '../../threadContext/ThreadContext';
|
|
3
3
|
import type { MessageInputContextValue } from '../MessageInputContext';
|
|
4
|
-
export declare const useCreateMessageInputContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ additionalTextInputProps, appendText, asyncIds, asyncMessagesLockDistance, asyncMessagesMinimumPressDuration, asyncMessagesMultiSendEnabled, asyncMessagesSlideToCancelDistance, asyncUploads, AttachButton, AudioAttachmentUploadPreview, AudioRecorder, audioRecordingEnabled, AudioRecordingInProgress, AudioRecordingLockIndicator, AudioRecordingPreview, AudioRecordingWaveform, autoCompleteSuggestionsLimit, clearEditingState, clearQuotedMessageState, closeAttachmentPicker, CommandsButton, compressImageQuality, cooldownEndsAt, CooldownTimer, doDocUploadRequest, doImageUploadRequest, editing, editMessage, emojiSearchIndex, FileUploadPreview, fileUploads, giphyActive, handleAttachButtonPress, hasCameraPicker, hasCommands, hasFilePicker, hasImagePicker, ImageUploadPreview, imageUploads, initialValue, Input, inputBoxRef, InputButtons, InputEditingStateHeader, InputGiphySearch, InputReplyStateHeader, isValidMessage, maxMessageLength, maxNumberOfFiles, mentionAllAppUsersEnabled, mentionAllAppUsersQuery, mentionedUsers, MoreOptionsButton, numberOfLines, numberOfUploads, onChange, onChangeText, onSelectItem, openAttachmentPicker, openCommandsPicker, openFilePicker, openMentionsPicker, pickAndUploadImageFromNativePicker, pickFile, quotedMessage, removeFile, removeImage, resetInput, selectedPicker, SendButton, sendImageAsync, sending, sendMessage, sendMessageAsync, SendMessageDisallowedIndicator, sendThreadMessageInChannel, setAsyncIds, setAsyncUploads, setFileUploads, setGiphyActive, setImageUploads, setInputBoxRef, setInputRef, setMentionedUsers, setNumberOfUploads, setQuotedMessageState, setSendThreadMessageInChannel, setShowMoreOptions, setText, showMoreOptions, ShowThreadMessageInChannelButton, StartAudioRecordingButton, takeAndUploadImage, text, thread, toggleAttachmentPicker, triggerSettings, updateMessage, uploadFile, uploadImage, uploadNewFile, uploadNewImage, UploadProgressIndicator, }: import("../MessageInputContext").LocalMessageInputContext<StreamChatGenerics> & Omit<import("../MessageInputContext").InputMessageInputContextValue<StreamChatGenerics>, "sendMessage"> & Pick<ThreadContextValue<StreamChatGenerics>, "thread">) => MessageInputContextValue<StreamChatGenerics>;
|
|
4
|
+
export declare const useCreateMessageInputContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ additionalTextInputProps, appendText, asyncIds, asyncMessagesLockDistance, asyncMessagesMinimumPressDuration, asyncMessagesMultiSendEnabled, asyncMessagesSlideToCancelDistance, asyncUploads, AttachButton, AudioAttachmentUploadPreview, AudioRecorder, audioRecordingEnabled, AudioRecordingInProgress, AudioRecordingLockIndicator, AudioRecordingPreview, AudioRecordingWaveform, autoCompleteSuggestionsLimit, clearEditingState, clearQuotedMessageState, closeAttachmentPicker, closePollCreationDialog, CommandsButton, compressImageQuality, cooldownEndsAt, CooldownTimer, CreatePollContent, doDocUploadRequest, doImageUploadRequest, editing, editMessage, emojiSearchIndex, FileUploadPreview, fileUploads, giphyActive, handleAttachButtonPress, hasCameraPicker, hasCommands, hasFilePicker, hasImagePicker, ImageUploadPreview, imageUploads, initialValue, Input, inputBoxRef, InputButtons, InputEditingStateHeader, InputGiphySearch, InputReplyStateHeader, isValidMessage, maxMessageLength, maxNumberOfFiles, mentionAllAppUsersEnabled, mentionAllAppUsersQuery, mentionedUsers, MoreOptionsButton, numberOfLines, numberOfUploads, onChange, onChangeText, onSelectItem, openAttachmentPicker, openCommandsPicker, openFilePicker, openMentionsPicker, openPollCreationDialog, pickAndUploadImageFromNativePicker, pickFile, quotedMessage, removeFile, removeImage, resetInput, selectedPicker, SendButton, sendImageAsync, sending, sendMessage, sendMessageAsync, SendMessageDisallowedIndicator, sendThreadMessageInChannel, setAsyncIds, setAsyncUploads, setFileUploads, setGiphyActive, setImageUploads, setInputBoxRef, setInputRef, setMentionedUsers, setNumberOfUploads, setQuotedMessageState, setSendThreadMessageInChannel, setShowMoreOptions, setText, showMoreOptions, showPollCreationDialog, ShowThreadMessageInChannelButton, StartAudioRecordingButton, takeAndUploadImage, text, thread, toggleAttachmentPicker, triggerSettings, updateMessage, uploadFile, uploadImage, uploadNewFile, uploadNewImage, UploadProgressIndicator, }: import("../MessageInputContext").LocalMessageInputContext<StreamChatGenerics> & Omit<import("../MessageInputContext").InputMessageInputContextValue<StreamChatGenerics>, "sendMessage"> & Pick<ThreadContextValue<StreamChatGenerics>, "thread">) => MessageInputContextValue<StreamChatGenerics>;
|
|
5
5
|
//# sourceMappingURL=useCreateMessageInputContext.d.ts.map
|
package/lib/typescript/contexts/messageInputContext/hooks/useCreateMessageInputContext.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCreateMessageInputContext.d.ts","sourceRoot":"","sources":["../../../../../src/contexts/messageInputContext/hooks/useCreateMessageInputContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AACtE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAEvE,eAAO,MAAM,4BAA4B,
|
|
1
|
+
{"version":3,"file":"useCreateMessageInputContext.d.ts","sourceRoot":"","sources":["../../../../../src/contexts/messageInputContext/hooks/useCreateMessageInputContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AACtE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAEvE,eAAO,MAAM,4BAA4B,60EAkQxC,CAAC"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import React, { PropsWithChildren } from 'react';
|
|
2
|
+
import type { ImageProps } from 'react-native';
|
|
3
|
+
import { Attachment, TranslationLanguages } from 'stream-chat';
|
|
4
|
+
import type { GroupType, MessageType } from '../../components/MessageList/hooks/useMessageList';
|
|
5
|
+
import type { MessageActionListProps } from '../../components/MessageOverlay/MessageActionList';
|
|
6
|
+
import type { MessageActionListItemProps, MessageActionType } from '../../components/MessageOverlay/MessageActionListItem';
|
|
7
|
+
import type { OverlayReactionListProps } from '../../components/MessageOverlay/OverlayReactionList';
|
|
8
|
+
import type { OverlayReactionsProps } from '../../components/MessageOverlay/OverlayReactions';
|
|
9
|
+
import type { OverlayReactionsAvatarProps } from '../../components/MessageOverlay/OverlayReactionsAvatar';
|
|
10
|
+
import type { DefaultStreamChatGenerics, UnknownType } from '../../types/types';
|
|
11
|
+
import type { ReactionData } from '../../utils/utils';
|
|
12
|
+
import type { ChatContextValue } from '../chatContext/ChatContext';
|
|
13
|
+
import type { Alignment, MessageContextValue } from '../messageContext/MessageContext';
|
|
14
|
+
import type { MessagesContextValue } from '../messagesContext/MessagesContext';
|
|
15
|
+
import type { OwnCapabilitiesContextValue } from '../ownCapabilitiesContext/OwnCapabilitiesContext';
|
|
16
|
+
export type MessageOverlayData<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
17
|
+
alignment?: Alignment;
|
|
18
|
+
chatContext?: ChatContextValue<StreamChatGenerics>;
|
|
19
|
+
clientId?: string;
|
|
20
|
+
files?: Attachment<StreamChatGenerics>[];
|
|
21
|
+
groupStyles?: GroupType[];
|
|
22
|
+
handleReaction?: (reactionType: string) => Promise<void>;
|
|
23
|
+
ImageComponent?: React.ComponentType<ImageProps>;
|
|
24
|
+
images?: Attachment<StreamChatGenerics>[];
|
|
25
|
+
message?: MessageType<StreamChatGenerics>;
|
|
26
|
+
messageActions?: MessageActionType[];
|
|
27
|
+
messageContext?: MessageContextValue<StreamChatGenerics>;
|
|
28
|
+
messageReactionTitle?: string;
|
|
29
|
+
messagesContext?: MessagesContextValue<StreamChatGenerics>;
|
|
30
|
+
onlyEmojis?: boolean;
|
|
31
|
+
otherAttachments?: Attachment<StreamChatGenerics>[];
|
|
32
|
+
OverlayReactionList?: React.ComponentType<OverlayReactionListProps<StreamChatGenerics>>;
|
|
33
|
+
ownCapabilities?: OwnCapabilitiesContextValue;
|
|
34
|
+
Poll?: React.ComponentType;
|
|
35
|
+
supportedReactions?: ReactionData[];
|
|
36
|
+
threadList?: boolean;
|
|
37
|
+
userLanguage?: TranslationLanguages;
|
|
38
|
+
videos?: Attachment<StreamChatGenerics>[];
|
|
39
|
+
};
|
|
40
|
+
export type MessageOverlayContextValue<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
41
|
+
/**
|
|
42
|
+
* Custom UI component for rendering [message actions](https://github.com/GetStream/stream-chat-react-native/blob/main/screenshots/docs/2.png) in overlay.
|
|
43
|
+
*
|
|
44
|
+
* **Default** [MessageActionList](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageOverlay/MessageActions.tsx)
|
|
45
|
+
*/
|
|
46
|
+
MessageActionList: React.ComponentType<MessageActionListProps<StreamChatGenerics>>;
|
|
47
|
+
MessageActionListItem: React.ComponentType<MessageActionListItemProps<StreamChatGenerics>>;
|
|
48
|
+
/**
|
|
49
|
+
* Custom UI component for rendering [reaction selector](https://github.com/GetStream/stream-chat-react-native/blob/main/screenshots/docs/2.png) in overlay (which shows up on long press on message).
|
|
50
|
+
*
|
|
51
|
+
* **Default** [OverlayReactionList](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageOverlay/OverlayReactionList.tsx)
|
|
52
|
+
*/
|
|
53
|
+
OverlayReactionList: React.ComponentType<OverlayReactionListProps<StreamChatGenerics>>;
|
|
54
|
+
/**
|
|
55
|
+
* Custom UI component for rendering [reactions list](https://github.com/GetStream/stream-chat-react-native/blob/main/screenshots/docs/2.png), in overlay (which shows up on long press on message).
|
|
56
|
+
*
|
|
57
|
+
* **Default** [OverlayReactions](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageOverlay/OverlayReactions.tsx)
|
|
58
|
+
*/
|
|
59
|
+
OverlayReactions: React.ComponentType<OverlayReactionsProps<StreamChatGenerics>>;
|
|
60
|
+
OverlayReactionsAvatar: React.ComponentType<OverlayReactionsAvatarProps>;
|
|
61
|
+
reset: () => void;
|
|
62
|
+
setData: React.Dispatch<React.SetStateAction<MessageOverlayData<StreamChatGenerics>>>;
|
|
63
|
+
data?: MessageOverlayData<StreamChatGenerics>;
|
|
64
|
+
};
|
|
65
|
+
export declare const MessageOverlayContext: React.Context<MessageOverlayContextValue<DefaultStreamChatGenerics>>;
|
|
66
|
+
export declare const MessageOverlayProvider: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ children, value, }: React.PropsWithChildren<{
|
|
67
|
+
value?: MessageOverlayContextValue<StreamChatGenerics> | undefined;
|
|
68
|
+
}>) => React.JSX.Element;
|
|
69
|
+
export declare const useMessageOverlayContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>() => MessageOverlayContextValue<StreamChatGenerics>;
|
|
70
|
+
/**
|
|
71
|
+
* @deprecated
|
|
72
|
+
*
|
|
73
|
+
* This will be removed in the next major version.
|
|
74
|
+
*
|
|
75
|
+
* Typescript currently does not support partial inference so if ChatContext
|
|
76
|
+
* typing is desired while using the HOC withMessageOverlayContext the Props for the
|
|
77
|
+
* wrapped component must be provided as the first generic.
|
|
78
|
+
*/
|
|
79
|
+
export declare const withMessageOverlayContext: <P extends UnknownType, StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(Component: React.ComponentType<P>) => React.ComponentType<Omit<P, keyof MessageOverlayContextValue<StreamChatGenerics>>>;
|
|
80
|
+
//# sourceMappingURL=MessageOverlayContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MessageOverlayContext.d.ts","sourceRoot":"","sources":["../../../../src/contexts/messageOverlayContext/MessageOverlayContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAE7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAI/D,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,mDAAmD,CAAC;AAChG,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mDAAmD,CAAC;AAChG,OAAO,KAAK,EACV,0BAA0B,EAC1B,iBAAiB,EAClB,MAAM,uDAAuD,CAAC;AAC/D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,qDAAqD,CAAC;AACpG,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kDAAkD,CAAC;AAC9F,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,wDAAwD,CAAC;AAC1G,OAAO,KAAK,EAAE,yBAAyB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,gBAAg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/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* Wrapper around useState that provides a `reset`
|
|
4
|
+
* function to reset the state to its initial value.
|
|
5
|
+
*
|
|
6
|
+
* Will not set state after being unmounted.
|
|
7
|
+
* */
|
|
8
|
+
export declare const useResettableState: <T>(values: T) => {
|
|
9
|
+
data: T;
|
|
10
|
+
reset: () => void;
|
|
11
|
+
setData: import("react").Dispatch<import("react").SetStateAction<T>>;
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=useResettableState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useResettableState.d.ts","sourceRoot":"","sources":["../../../../../src/contexts/messageOverlayContext/hooks/useResettableState.ts"],"names":[],"mappings":";AAIA;;;;;KAKK;AACL,eAAO,MAAM,kBAAkB;;;;CAW9B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useResettableState.test.d.ts","sourceRoot":"","sources":["../../../../../src/contexts/messageOverlayContext/hooks/useResettableState.test.tsx"],"names":[],"mappings":""}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { PropsWithChildren } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type { TouchableOpacityProps } from 'react-native';
|
|
3
3
|
import type { Attachment, ChannelState, MessageResponse } from 'stream-chat';
|
|
4
|
+
import { PollContentProps } from '../../components';
|
|
4
5
|
import type { AttachmentProps } from '../../components/Attachment/Attachment';
|
|
5
6
|
import type { AttachmentActionsProps } from '../../components/Attachment/AttachmentActions';
|
|
6
7
|
import type { AudioAttachmentProps } from '../../components/Attachment/AudioAttachment';
|
|
@@ -13,7 +14,7 @@ import type { GiphyProps } from '../../components/Attachment/Giphy';
|
|
|
13
14
|
import type { ImageLoadingFailedIndicatorProps } from '../../components/Attachment/ImageLoadingFailedIndicator';
|
|
14
15
|
import type { ImageLoadingIndicatorProps } from '../../components/Attachment/ImageLoadingIndicator';
|
|
15
16
|
import type { VideoThumbnailProps } from '../../components/Attachment/VideoThumbnail';
|
|
16
|
-
import type {
|
|
17
|
+
import type { MessageProps, MessageTouchableHandlerPayload } from '../../components/Message/Message';
|
|
17
18
|
import type { MessageAvatarProps } from '../../components/Message/MessageSimple/MessageAvatar';
|
|
18
19
|
import type { MessageBounceProps } from '../../components/Message/MessageSimple/MessageBounce';
|
|
19
20
|
import type { MessageContentProps } from '../../components/Message/MessageSimple/MessageContent';
|
|
@@ -28,8 +29,7 @@ import type { MessageSimpleProps } from '../../components/Message/MessageSimple/
|
|
|
28
29
|
import type { MessageStatusProps } from '../../components/Message/MessageSimple/MessageStatus';
|
|
29
30
|
import type { MessageTextProps } from '../../components/Message/MessageSimple/MessageTextContainer';
|
|
30
31
|
import { MessageTimestampProps } from '../../components/Message/MessageSimple/MessageTimestamp';
|
|
31
|
-
import {
|
|
32
|
-
import type { ReactionListTopProps } from '../../components/Message/MessageSimple/ReactionList/ReactionListTop';
|
|
32
|
+
import type { ReactionListProps } from '../../components/Message/MessageSimple/ReactionList';
|
|
33
33
|
import type { MarkdownRules } from '../../components/Message/MessageSimple/utils/renderText';
|
|
34
34
|
import type { MessageActionsParams } from '../../components/Message/utils/messageActions';
|
|
35
35
|
import type { DateHeaderProps } from '../../components/MessageList/DateHeader';
|
|
@@ -40,22 +40,17 @@ import type { MessageSystemProps } from '../../components/MessageList/MessageSys
|
|
|
40
40
|
import type { ScrollToBottomButtonProps } from '../../components/MessageList/ScrollToBottomButton';
|
|
41
41
|
import { TypingIndicatorContainerProps } from '../../components/MessageList/TypingIndicatorContainer';
|
|
42
42
|
import type { getGroupStyles } from '../../components/MessageList/utils/getGroupStyles';
|
|
43
|
-
import {
|
|
44
|
-
import type {
|
|
45
|
-
import { MessageMenuProps } from '../../components/MessageMenu/MessageMenu';
|
|
46
|
-
import type { MessageReactionPickerProps } from '../../components/MessageMenu/MessageReactionPicker';
|
|
47
|
-
import { MessageUserReactionsProps } from '../../components/MessageMenu/MessageUserReactions';
|
|
48
|
-
import { MessageUserReactionsAvatarProps } from '../../components/MessageMenu/MessageUserReactionsAvatar';
|
|
49
|
-
import { MessageUserReactionsItemProps } from '../../components/MessageMenu/MessageUserReactionsItem';
|
|
43
|
+
import type { MessageActionType } from '../../components/MessageOverlay/MessageActionListItem';
|
|
44
|
+
import type { OverlayReactionListProps } from '../../components/MessageOverlay/OverlayReactionList';
|
|
50
45
|
import type { ReplyProps } from '../../components/Reply/Reply';
|
|
51
|
-
import { FlatList } from '../../native';
|
|
52
|
-
import type { DefaultStreamChatGenerics } from '../../types/types';
|
|
46
|
+
import type { FlatList } from '../../native';
|
|
47
|
+
import type { DefaultStreamChatGenerics, UnknownType } from '../../types/types';
|
|
53
48
|
import type { ReactionData } from '../../utils/utils';
|
|
54
49
|
import type { Alignment } from '../messageContext/MessageContext';
|
|
55
50
|
import type { SuggestionCommand } from '../suggestionsContext/SuggestionsContext';
|
|
56
51
|
import type { DeepPartial } from '../themeContext/ThemeContext';
|
|
57
52
|
import type { Theme } from '../themeContext/utils/theme';
|
|
58
|
-
export type MessageContentType = 'attachments' | 'files' | 'gallery' | 'quoted_reply' | 'text';
|
|
53
|
+
export type MessageContentType = 'attachments' | 'files' | 'gallery' | 'quoted_reply' | 'poll' | 'text';
|
|
59
54
|
export type DeletedMessagesVisibilityType = 'always' | 'never' | 'receiver' | 'sender';
|
|
60
55
|
export type MessagesContextValue<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
61
56
|
/**
|
|
@@ -100,7 +95,7 @@ export type MessagesContextValue<StreamChatGenerics extends DefaultStreamChatGen
|
|
|
100
95
|
* Defaults to: https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Attachment/FileIcon.tsx
|
|
101
96
|
*/
|
|
102
97
|
FileAttachmentIcon: React.ComponentType<FileIconProps>;
|
|
103
|
-
FlatList: typeof FlatList
|
|
98
|
+
FlatList: typeof FlatList;
|
|
104
99
|
/**
|
|
105
100
|
* UI component to display image attachments
|
|
106
101
|
* Defaults to: [Gallery](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Attachment/Gallery.tsx)
|
|
@@ -138,18 +133,6 @@ export type MessagesContextValue<StreamChatGenerics extends DefaultStreamChatGen
|
|
|
138
133
|
**/
|
|
139
134
|
InlineUnreadIndicator: React.ComponentType;
|
|
140
135
|
Message: React.ComponentType<MessageProps<StreamChatGenerics>>;
|
|
141
|
-
/**
|
|
142
|
-
* Custom UI component for rendering Message actions in message menu.
|
|
143
|
-
*
|
|
144
|
-
* **Default** [MessageActionList](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageMenu/MessageActionList.tsx)
|
|
145
|
-
*/
|
|
146
|
-
MessageActionList: React.ComponentType<MessageActionListProps>;
|
|
147
|
-
/**
|
|
148
|
-
* Custom UI component for rendering Message action item in message menu.
|
|
149
|
-
*
|
|
150
|
-
* **Default** [MessageActionList](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageMenu/MessageActionList.tsx)
|
|
151
|
-
*/
|
|
152
|
-
MessageActionListItem: React.ComponentType<MessageActionListItemProps>;
|
|
153
136
|
/**
|
|
154
137
|
* UI component for MessageAvatar
|
|
155
138
|
* Defaults to: [MessageAvatar](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Message/MessageSimple/MessageAvatar.tsx)
|
|
@@ -185,18 +168,10 @@ export type MessagesContextValue<StreamChatGenerics extends DefaultStreamChatGen
|
|
|
185
168
|
*/
|
|
186
169
|
MessageFooter: React.ComponentType<MessageFooterProps<StreamChatGenerics>>;
|
|
187
170
|
MessageList: React.ComponentType<MessageListProps<StreamChatGenerics>>;
|
|
188
|
-
/**
|
|
189
|
-
* UI component for MessageMenu
|
|
190
|
-
*/
|
|
191
|
-
MessageMenu: React.ComponentType<MessageMenuProps<StreamChatGenerics>>;
|
|
192
171
|
/**
|
|
193
172
|
* Custom message pinned component
|
|
194
173
|
*/
|
|
195
174
|
MessagePinnedHeader: React.ComponentType<MessagePinnedHeaderProps<StreamChatGenerics>>;
|
|
196
|
-
/**
|
|
197
|
-
* UI component for MessageReactionPicker
|
|
198
|
-
*/
|
|
199
|
-
MessageReactionPicker: React.ComponentType<MessageReactionPickerProps<StreamChatGenerics>>;
|
|
200
175
|
/**
|
|
201
176
|
* UI component for MessageReplies
|
|
202
177
|
* Defaults to: [MessageReplies](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageSimple/MessageReplies.tsx)
|
|
@@ -228,23 +203,14 @@ export type MessagesContextValue<StreamChatGenerics extends DefaultStreamChatGen
|
|
|
228
203
|
*/
|
|
229
204
|
MessageTimestamp: React.ComponentType<MessageTimestampProps>;
|
|
230
205
|
/**
|
|
231
|
-
*
|
|
232
|
-
*
|
|
233
|
-
* **Default** [MessageUserReactions](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageMenu/MessageUserReactions.tsx)
|
|
234
|
-
*/
|
|
235
|
-
MessageUserReactions: React.ComponentType<MessageUserReactionsProps<StreamChatGenerics>>;
|
|
236
|
-
/**
|
|
237
|
-
* Custom UI component for rendering user reactions avatar under `MessageUserReactionsItem`, in message menu.
|
|
238
|
-
*
|
|
239
|
-
* **Default** [MessageUserReactionsAvatar](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageMenu/MessageUserReactionsAvatar.tsx)
|
|
206
|
+
* UI component for OverlayReactionList
|
|
240
207
|
*/
|
|
241
|
-
|
|
208
|
+
OverlayReactionList: React.ComponentType<OverlayReactionListProps<StreamChatGenerics>>;
|
|
242
209
|
/**
|
|
243
|
-
*
|
|
244
|
-
*
|
|
245
|
-
* **Default** [MessageUserReactionsItem](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageMenu/MessageUserReactionsItem.tsx)
|
|
210
|
+
* UI component for ReactionList
|
|
211
|
+
* Defaults to: [ReactionList](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Reaction/ReactionList.tsx)
|
|
246
212
|
*/
|
|
247
|
-
|
|
213
|
+
ReactionList: React.ComponentType<ReactionListProps<StreamChatGenerics>>;
|
|
248
214
|
removeMessage: (message: {
|
|
249
215
|
id: string;
|
|
250
216
|
parent_id?: string;
|
|
@@ -265,7 +231,8 @@ export type MessagesContextValue<StreamChatGenerics extends DefaultStreamChatGen
|
|
|
265
231
|
ScrollToBottomButton: React.ComponentType<ScrollToBottomButtonProps>;
|
|
266
232
|
sendReaction: (type: string, messageId: string) => Promise<void>;
|
|
267
233
|
setEditingState: (message?: MessageType<StreamChatGenerics>) => void;
|
|
268
|
-
setQuotedMessageState: (message
|
|
234
|
+
setQuotedMessageState: (message: MessageType<StreamChatGenerics> | boolean) => void;
|
|
235
|
+
supportedReactions: ReactionData[];
|
|
269
236
|
/**
|
|
270
237
|
* UI component for TypingIndicator
|
|
271
238
|
* Defaults to: [TypingIndicator](https://getstream.io/chat/docs/sdk/reactnative/ui-components/typing-indicator/)
|
|
@@ -288,12 +255,12 @@ export type MessagesContextValue<StreamChatGenerics extends DefaultStreamChatGen
|
|
|
288
255
|
UrlPreview: React.ComponentType<CardProps<StreamChatGenerics>>;
|
|
289
256
|
VideoThumbnail: React.ComponentType<VideoThumbnailProps>;
|
|
290
257
|
/**
|
|
291
|
-
* Provide any additional props for `
|
|
292
|
-
* Please check docs for
|
|
258
|
+
* Provide any additional props for `TouchableOpacity` which wraps inner MessageContent component here.
|
|
259
|
+
* Please check docs for TouchableOpacity for supported props - https://reactnative.dev/docs/touchableopacity#props
|
|
293
260
|
*
|
|
294
261
|
* @overrideType Object
|
|
295
262
|
*/
|
|
296
|
-
|
|
263
|
+
additionalTouchableProps?: Omit<TouchableOpacityProps, 'style'>;
|
|
297
264
|
/**
|
|
298
265
|
* Custom UI component to override default cover (between Header and Footer) of Card component.
|
|
299
266
|
* Accepts the same props as Card component.
|
|
@@ -329,6 +296,12 @@ export type MessagesContextValue<StreamChatGenerics extends DefaultStreamChatGen
|
|
|
329
296
|
* @param message
|
|
330
297
|
*/
|
|
331
298
|
handleBan?: (message: MessageType<StreamChatGenerics>) => Promise<void>;
|
|
299
|
+
/**
|
|
300
|
+
* @deprecated
|
|
301
|
+
* Handler to access when a block user action is invoked.
|
|
302
|
+
* @param message
|
|
303
|
+
*/
|
|
304
|
+
handleBlock?: (message: MessageType<StreamChatGenerics>) => Promise<void>;
|
|
332
305
|
/** Handler to access when a copy message action is invoked */
|
|
333
306
|
handleCopy?: (message: MessageType<StreamChatGenerics>) => Promise<void>;
|
|
334
307
|
/** Handler to access when a delete message action is invoked */
|
|
@@ -349,6 +322,8 @@ export type MessagesContextValue<StreamChatGenerics extends DefaultStreamChatGen
|
|
|
349
322
|
handleRetry?: (message: MessageType<StreamChatGenerics>) => Promise<void>;
|
|
350
323
|
/** Handler to access when a thread reply action is invoked */
|
|
351
324
|
handleThreadReply?: (message: MessageType<StreamChatGenerics>) => Promise<void>;
|
|
325
|
+
/** A flag specifying whether the poll creation button is available or not. */
|
|
326
|
+
hasCreatePoll?: boolean;
|
|
352
327
|
/** Handler to deal with custom memoization logic of Attachment */
|
|
353
328
|
isAttachmentEqual?: (prevAttachment: Attachment<StreamChatGenerics>, nextAttachment: Attachment<StreamChatGenerics>) => boolean;
|
|
354
329
|
legacyImageViewerSwipeBehaviour?: boolean;
|
|
@@ -412,10 +387,6 @@ export type MessagesContextValue<StreamChatGenerics extends DefaultStreamChatGen
|
|
|
412
387
|
MessageHeader?: React.ComponentType<MessageFooterProps<StreamChatGenerics>>;
|
|
413
388
|
/** Custom UI component for message text */
|
|
414
389
|
MessageText?: React.ComponentType<MessageTextProps<StreamChatGenerics>>;
|
|
415
|
-
/**
|
|
416
|
-
* The number of lines of the message text to be displayed
|
|
417
|
-
*/
|
|
418
|
-
messageTextNumberOfLines?: number;
|
|
419
390
|
/**
|
|
420
391
|
* Theme provided only to messages that are the current users
|
|
421
392
|
*/
|
|
@@ -446,7 +417,7 @@ export type MessagesContextValue<StreamChatGenerics extends DefaultStreamChatGen
|
|
|
446
417
|
* />
|
|
447
418
|
* ```
|
|
448
419
|
*/
|
|
449
|
-
onLongPressMessage?: (payload:
|
|
420
|
+
onLongPressMessage?: (payload: MessageTouchableHandlerPayload<StreamChatGenerics>) => void;
|
|
450
421
|
/**
|
|
451
422
|
* Add onPressIn handler for attachments. You have access to payload of that handler as param:
|
|
452
423
|
*
|
|
@@ -473,7 +444,7 @@ export type MessagesContextValue<StreamChatGenerics extends DefaultStreamChatGen
|
|
|
473
444
|
* />
|
|
474
445
|
* ```
|
|
475
446
|
*/
|
|
476
|
-
onPressInMessage?: (payload:
|
|
447
|
+
onPressInMessage?: (payload: MessageTouchableHandlerPayload<StreamChatGenerics>) => void;
|
|
477
448
|
/**
|
|
478
449
|
* Override onPress handler for message. You have access to payload of that handler as param:
|
|
479
450
|
*
|
|
@@ -500,21 +471,12 @@ export type MessagesContextValue<StreamChatGenerics extends DefaultStreamChatGen
|
|
|
500
471
|
* />
|
|
501
472
|
* ```
|
|
502
473
|
*/
|
|
503
|
-
onPressMessage?: (payload:
|
|
504
|
-
/**
|
|
505
|
-
* UI component for ReactionListTop
|
|
506
|
-
* Defaults to: [ReactionList](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Reaction/ReactionList.tsx)
|
|
507
|
-
*/
|
|
508
|
-
ReactionListBottom?: React.ComponentType<ReactionListBottomProps<StreamChatGenerics>>;
|
|
474
|
+
onPressMessage?: (payload: MessageTouchableHandlerPayload<StreamChatGenerics>) => void;
|
|
509
475
|
/**
|
|
510
|
-
*
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
* UI component for ReactionListTop
|
|
515
|
-
* Defaults to: [ReactionList](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Reaction/ReactionList.tsx)
|
|
516
|
-
*/
|
|
517
|
-
ReactionListTop?: React.ComponentType<ReactionListTopProps<StreamChatGenerics>>;
|
|
476
|
+
* Override the entire content of the Poll component. The component has full access to the
|
|
477
|
+
* usePollState() and usePollContext() hooks.
|
|
478
|
+
* */
|
|
479
|
+
PollContent?: React.ComponentType<PollContentProps>;
|
|
518
480
|
/**
|
|
519
481
|
* Full override of the reaction function on Message and Message Overlay
|
|
520
482
|
*
|
|
@@ -525,10 +487,6 @@ export type MessagesContextValue<StreamChatGenerics extends DefaultStreamChatGen
|
|
|
525
487
|
* Boolean to enable/disable the message underlay background when there are unread messages in the Message List.
|
|
526
488
|
*/
|
|
527
489
|
shouldShowUnreadUnderlay?: boolean;
|
|
528
|
-
/**
|
|
529
|
-
* The supported reactions that the user can use to react to messages.
|
|
530
|
-
*/
|
|
531
|
-
supportedReactions?: ReactionData[];
|
|
532
490
|
targetedMessage?: string;
|
|
533
491
|
};
|
|
534
492
|
export declare const MessagesContext: React.Context<MessagesContextValue<DefaultStreamChatGenerics>>;
|
|
@@ -536,4 +494,14 @@ export declare const MessagesProvider: <StreamChatGenerics extends DefaultStream
|
|
|
536
494
|
value?: MessagesContextValue<StreamChatGenerics> | undefined;
|
|
537
495
|
}>) => React.JSX.Element;
|
|
538
496
|
export declare const useMessagesContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>() => MessagesContextValue<StreamChatGenerics>;
|
|
497
|
+
/**
|
|
498
|
+
* @deprecated
|
|
499
|
+
*
|
|
500
|
+
* This will be removed in the next major version.
|
|
501
|
+
*
|
|
502
|
+
* Typescript currently does not support partial inference so if ChatContext
|
|
503
|
+
* typing is desired while using the HOC withMessagesContext the Props for the
|
|
504
|
+
* wrapped component must be provided as the first generic.
|
|
505
|
+
*/
|
|
506
|
+
export declare const withMessagesContext: <P extends UnknownType, StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(Component: React.ComponentType<P>) => React.ComponentType<Omit<P, keyof MessagesContextValue<StreamChatGenerics>>>;
|
|
539
507
|
//# sourceMappingURL=MessagesContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessagesContext.d.ts","sourceRoot":"","sources":["../../../../src/contexts/messagesContext/MessagesContext.tsx"],"names":[],"mappings":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AK,CAAC,CAAC;IACpC;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,kBAAkB,CAAC,EAAE,CAAC,OAAO,EAAE,8BAA8B,CAAC,kBAAkB,CAAC,KAAK,IAAI,CAAC;IAC3F;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,gBAAgB,CAAC,EAAE,CAAC,OAAO,EAAE,8BAA8B,CAAC,kBAAkB,CAAC,KAAK,IAAI,CAAC;IACzF;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,8BAA8B,CAAC,kBAAkB,CAAC,KAAK,IAAI,CAAC;IACvF;;;SAGK;IACL,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,gBAAgB,CAAC,CAAC;IACpD;;;;SAIK;IACL,cAAc,CAAC,EAAE,CACf,OAAO,EAAE,WAAW,CAAC,kBAAkB,CAAC,KACrC,CAAC,YAAY,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAE7C;;OAEG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;IAEnC,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,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"}
|
|
@@ -3,32 +3,57 @@ import type { BottomSheetMethods } from '@gorhom/bottom-sheet/lib/typescript/typ
|
|
|
3
3
|
import type { Attachment } from 'stream-chat';
|
|
4
4
|
import type { AttachmentPickerProps } from '../../components/AttachmentPicker/AttachmentPicker';
|
|
5
5
|
import type { ImageGalleryCustomComponents } from '../../components/ImageGallery/ImageGallery';
|
|
6
|
+
import type { MessageType } from '../../components/MessageList/hooks/useMessageList';
|
|
6
7
|
import type { DefaultStreamChatGenerics } from '../../types/types';
|
|
7
8
|
import type { Streami18n } from '../../utils/i18n/Streami18n';
|
|
8
9
|
import type { AttachmentPickerContextValue } from '../attachmentPickerContext/AttachmentPickerContext';
|
|
10
|
+
import type { MessageOverlayContextValue } from '../messageOverlayContext/MessageOverlayContext';
|
|
9
11
|
import type { DeepPartial } from '../themeContext/ThemeContext';
|
|
10
12
|
import type { Theme } from '../themeContext/utils/theme';
|
|
11
|
-
export type Overlay = 'alert' | 'gallery' | 'none';
|
|
13
|
+
export type Overlay = 'alert' | 'gallery' | 'message' | 'none';
|
|
12
14
|
export type OverlayContextValue = {
|
|
13
15
|
overlay: Overlay;
|
|
14
16
|
setOverlay: React.Dispatch<React.SetStateAction<Overlay>>;
|
|
15
17
|
style?: DeepPartial<Theme>;
|
|
16
18
|
};
|
|
17
19
|
export declare const OverlayContext: React.Context<OverlayContextValue>;
|
|
18
|
-
export type OverlayProviderProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Partial<AttachmentPickerProps> & Partial<Pick<AttachmentPickerContextValue, 'AttachmentPickerBottomSheetHandle' | 'attachmentPickerBottomSheetHandleHeight' | 'attachmentPickerBottomSheetHeight' | 'AttachmentPickerSelectionBar' | 'attachmentSelectionBarHeight' | 'bottomInset' | 'CameraSelectorIcon' | 'FileSelectorIcon' | 'ImageSelectorIcon' | 'topInset'>> & ImageGalleryCustomComponents<StreamChatGenerics> & {
|
|
20
|
+
export type OverlayProviderProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Partial<AttachmentPickerProps> & Partial<Pick<AttachmentPickerContextValue, 'AttachmentPickerBottomSheetHandle' | 'attachmentPickerBottomSheetHandleHeight' | 'attachmentPickerBottomSheetHeight' | 'AttachmentPickerSelectionBar' | 'attachmentSelectionBarHeight' | 'bottomInset' | 'CameraSelectorIcon' | 'CreatePollIcon' | 'FileSelectorIcon' | 'ImageSelectorIcon' | 'topInset'>> & ImageGalleryCustomComponents<StreamChatGenerics> & Partial<Pick<MessageOverlayContextValue<StreamChatGenerics>, 'MessageActionList' | 'MessageActionListItem' | 'OverlayReactionList' | 'OverlayReactions' | 'OverlayReactionsAvatar'>> & {
|
|
19
21
|
autoPlayVideo?: boolean;
|
|
20
22
|
/**
|
|
21
23
|
* The giphy version to render - check the keys of the [Image Object](https://developers.giphy.com/docs/api/schema#image-object) for possible values. Uses 'fixed_height' by default
|
|
22
24
|
* */
|
|
23
25
|
closePicker?: (ref: React.RefObject<BottomSheetMethods>) => void;
|
|
26
|
+
error?: boolean | Error;
|
|
24
27
|
giphyVersion?: keyof NonNullable<Attachment['giphy']>;
|
|
25
28
|
/** https://github.com/GetStream/stream-chat-react-native/wiki/Internationalization-(i18n) */
|
|
26
29
|
i18nInstance?: Streami18n;
|
|
27
30
|
imageGalleryGridHandleHeight?: number;
|
|
28
31
|
imageGalleryGridSnapPoints?: [string | number, string | number];
|
|
32
|
+
isMyMessage?: boolean;
|
|
33
|
+
isThreadMessage?: boolean;
|
|
34
|
+
message?: MessageType<StreamChatGenerics>;
|
|
35
|
+
/**
|
|
36
|
+
* @deprecated use the following instead:
|
|
37
|
+
* messageActions={(params) => {
|
|
38
|
+
* const actions = messageActions({ ...params, isMessageActionsVisible: false });
|
|
39
|
+
* return actions;
|
|
40
|
+
* }}
|
|
41
|
+
*/
|
|
42
|
+
messageReactions?: boolean;
|
|
43
|
+
messageTextNumberOfLines?: number;
|
|
29
44
|
numberOfImageGalleryGridColumns?: number;
|
|
30
45
|
openPicker?: (ref: React.RefObject<BottomSheetMethods>) => void;
|
|
31
46
|
value?: Partial<OverlayContextValue>;
|
|
32
47
|
};
|
|
33
48
|
export declare const useOverlayContext: () => OverlayContextValue;
|
|
49
|
+
/**
|
|
50
|
+
* @deprecated
|
|
51
|
+
*
|
|
52
|
+
* This will be removed in the next major version.
|
|
53
|
+
*
|
|
54
|
+
* Typescript currently does not support partial inference so if ChatContext
|
|
55
|
+
* typing is desired while using the HOC withOverlayContext the Props for the
|
|
56
|
+
* wrapped component must be provided as the first generic.
|
|
57
|
+
*/
|
|
58
|
+
export declare const withOverlayContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(Component: React.ComponentType<StreamChatGenerics>) => React.ComponentType<Omit<StreamChatGenerics, keyof OverlayContextValue>>;
|
|
34
59
|
//# sourceMappingURL=OverlayContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OverlayContext.d.ts","sourceRoot":"","sources":["../../../../src/contexts/overlayContext/OverlayContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AACpF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oDAAoD,CAAC;AAChG,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,4CAA4C,CAAC;AAE/F,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,oDAAoD,CAAC;AACvG,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"OverlayContext.d.ts","sourceRoot":"","sources":["../../../../src/contexts/overlayContext/OverlayContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AACpF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oDAAoD,CAAC;AACh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AC;
|
|
1
|
+
{"version":3,"file":"OverlayProvider.d.ts","sourceRoot":"","sources":["../../../../src/contexts/overlayContext/OverlayProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAA+B,MAAM,OAAO,CAAC;AAa9E,OAAO,EAAkB,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAqBxE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAUnE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,eAAe,mLA8M3B,CAAC"}
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import React, { PropsWithChildren } from 'react';
|
|
2
2
|
export declare const allOwnCapabilities: {
|
|
3
3
|
banChannelMembers: string;
|
|
4
|
+
castPollVote: string;
|
|
4
5
|
deleteAnyMessage: string;
|
|
5
6
|
deleteOwnMessage: string;
|
|
6
7
|
flagMessage: string;
|
|
7
8
|
pinMessage: string;
|
|
9
|
+
queryPollVotes: string;
|
|
8
10
|
quoteMessage: string;
|
|
9
11
|
readEvents: string;
|
|
10
12
|
sendLinks: string;
|
|
11
13
|
sendMessage: string;
|
|
14
|
+
sendPoll: string;
|
|
12
15
|
sendReaction: string;
|
|
13
16
|
sendReply: string;
|
|
14
17
|
sendTypingEvents: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OwnCapabilitiesContext.d.ts","sourceRoot":"","sources":["../../../../src/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAM7D,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"OwnCapabilitiesContext.d.ts","sourceRoot":"","sources":["../../../../src/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAM7D,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;CAmB9B,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,kBAAkB,CAAC;AAE5D,MAAM,MAAM,2BAA2B,GAAG,MAAM,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;AACzE,eAAO,MAAM,sBAAsB,4CAElC,CAAC;AAEF,eAAO,MAAM,uBAAuB;WAI3B,2BAA2B;wBAKnC,CAAC;AAEF,eAAO,MAAM,yBAAyB,mCAUrC,CAAC"}
|
package/lib/typescript/contexts/paginatedMessageListContext/PaginatedMessageListContext.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { PropsWithChildren } from 'react';
|
|
2
2
|
import type { ChannelState } from 'stream-chat';
|
|
3
|
-
import type { DefaultStreamChatGenerics } from '../../types/types';
|
|
3
|
+
import type { DefaultStreamChatGenerics, UnknownType } from '../../types/types';
|
|
4
4
|
export type PaginatedMessageListContextValue<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
5
5
|
/**
|
|
6
6
|
* Has more messages to load
|
|
@@ -44,4 +44,14 @@ export declare const PaginatedMessageListProvider: <StreamChatGenerics extends D
|
|
|
44
44
|
value?: PaginatedMessageListContextValue<StreamChatGenerics> | undefined;
|
|
45
45
|
}>) => React.JSX.Element;
|
|
46
46
|
export declare const usePaginatedMessageListContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>() => PaginatedMessageListContextValue<StreamChatGenerics>;
|
|
47
|
+
/**
|
|
48
|
+
* @deprecated
|
|
49
|
+
*
|
|
50
|
+
* This will be removed in the next major version.
|
|
51
|
+
*
|
|
52
|
+
* Typescript currently does not support partial inference so if ChatContext
|
|
53
|
+
* typing is desired while using the HOC withPaginatedMessageListContext the Props for the
|
|
54
|
+
* wrapped component must be provided as the first generic.
|
|
55
|
+
*/
|
|
56
|
+
export declare const withPaginatedMessageListContext: <P extends UnknownType, StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(Component: React.ComponentType<P>) => React.ComponentType<Omit<P, keyof PaginatedMessageListContextValue<StreamChatGenerics>>>;
|
|
47
57
|
//# sourceMappingURL=PaginatedMessageListContext.d.ts.map
|
package/lib/typescript/contexts/paginatedMessageListContext/PaginatedMessageListContext.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaginatedMessageListContext.d.ts","sourceRoot":"","sources":["../../../../src/contexts/paginatedMessageListContext/PaginatedMessageListContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAE7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"PaginatedMessageListContext.d.ts","sourceRoot":"","sources":["../../../../src/contexts/paginatedMessageListContext/PaginatedMessageListContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAE7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,OAAO,KAAK,EAAE,yBAAyB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAMhF,MAAM,MAAM,gCAAgC,CAC1C,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E;IACF;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,6BAA6B,EAAE,OAAO,CAAC;IACvC;;OAEG;IACH,WAAW,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,iBAAiB,EAAE,OAAO,CAAC;IAC3B;;OAEG;IACH,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5C;;OAEG;IACH,cAAc,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAClD;;OAEG;IACH,QAAQ,EAAE,YAAY,CAAC,kBAAkB,CAAC,CAAC,UAAU,CAAC,CAAC;IACvD;;OAEG;IACH,cAAc,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IAC9D;;OAEG;IACH,oBAAoB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;CACrE,CAAC;AAEF,eAAO,MAAM,2BAA2B,4EAEvC,CAAC;AAEF,eAAO,MAAM,4BAA4B;;wBAaxC,CAAC;AAEF,eAAO,MAAM,8BAA8B,8IAc1C,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,+BAA+B,0OAiB3C,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React, { PropsWithChildren } from 'react';
|
|
2
|
+
import { CreatePollData } from 'stream-chat';
|
|
3
|
+
import { MessageInputContextValue } from '../messageInputContext/MessageInputContext';
|
|
4
|
+
export type CreatePollContentContextValue = {
|
|
5
|
+
createAndSendPoll: (pollData: CreatePollData) => Promise<void>;
|
|
6
|
+
sendMessage: MessageInputContextValue['sendMessage'];
|
|
7
|
+
/**
|
|
8
|
+
* A property that defines the constant height of the options within the poll creation screen.
|
|
9
|
+
*
|
|
10
|
+
* **Default: ** 71
|
|
11
|
+
*/
|
|
12
|
+
closePollCreationDialog?: () => void;
|
|
13
|
+
createPollOptionHeight?: number;
|
|
14
|
+
};
|
|
15
|
+
export declare const CreatePollContentContext: React.Context<CreatePollContentContextValue>;
|
|
16
|
+
export declare const CreatePollContentProvider: ({ children, value, }: React.PropsWithChildren<{
|
|
17
|
+
value: CreatePollContentContextValue;
|
|
18
|
+
}>) => React.JSX.Element;
|
|
19
|
+
export declare const useCreatePollContentContext: () => CreatePollContentContextValue;
|
|
20
|
+
//# sourceMappingURL=createPollContentContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createPollContentContext.d.ts","sourceRoot":"","sources":["../../../../src/contexts/pollContext/createPollContentContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAE7D,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C,OAAO,EAAE,wBAAwB,EAAE,MAAM,4CAA4C,CAAC;AAKtF,MAAM,MAAM,6BAA6B,GAAG;IAC1C,iBAAiB,EAAE,CAAC,QAAQ,EAAE,cAAc,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/D,WAAW,EAAE,wBAAwB,CAAC,aAAa,CAAC,CAAC;IACrD;;;;OAIG;IACH,uBAAuB,CAAC,EAAE,MAAM,IAAI,CAAC;IACrC,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC,CAAC;AAEF,eAAO,MAAM,wBAAwB,8CAEpC,CAAC;AAEF,eAAO,MAAM,yBAAyB;WAI7B,6BAA6B;wBAKrC,CAAC;AAEF,eAAO,MAAM,2BAA2B,qCAYvC,CAAC"}
|