stream-chat-react-native-core 5.40.0-rc.2 → 5.40.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/lib/commonjs/components/Attachment/Attachment.js +1 -1
- package/lib/commonjs/components/Attachment/Attachment.js.map +1 -1
- package/lib/commonjs/components/Attachment/Card.js +6 -6
- package/lib/commonjs/components/Attachment/Card.js.map +1 -1
- package/lib/commonjs/components/Attachment/FileAttachment.js +5 -5
- package/lib/commonjs/components/Attachment/FileAttachment.js.map +1 -1
- package/lib/commonjs/components/Attachment/FileAttachmentGroup.js +1 -1
- package/lib/commonjs/components/Attachment/FileAttachmentGroup.js.map +1 -1
- package/lib/commonjs/components/Attachment/Gallery.js +22 -29
- package/lib/commonjs/components/Attachment/Gallery.js.map +1 -1
- package/lib/commonjs/components/Attachment/Giphy.js +8 -8
- package/lib/commonjs/components/Attachment/Giphy.js.map +1 -1
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildGallery.js +0 -7
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildGallery.js.map +1 -1
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.js +1 -3
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.js.map +1 -1
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.js +0 -3
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.js.map +1 -1
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.js +0 -4
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.js.map +1 -1
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildThumbnail.js +0 -2
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildThumbnail.js.map +1 -1
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildThumbnailGrid.js +0 -2
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildThumbnailGrid.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerItem.js +3 -3
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerItem.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerSelectionBar.js +27 -0
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerSelectionBar.js.map +1 -1
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionList.js +2 -1
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionList.js.map +1 -1
- package/lib/commonjs/components/Avatar/Avatar.js +0 -4
- package/lib/commonjs/components/Avatar/Avatar.js.map +1 -1
- package/lib/commonjs/components/Avatar/GroupAvatar.js +0 -4
- package/lib/commonjs/components/Avatar/GroupAvatar.js.map +1 -1
- package/lib/commonjs/components/Channel/Channel.js +445 -301
- package/lib/commonjs/components/Channel/Channel.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateChannelContext.js +2 -0
- package/lib/commonjs/components/Channel/hooks/useCreateChannelContext.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateInputMessageInputContext.js +9 -3
- package/lib/commonjs/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js +15 -27
- package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateThreadContext.js +9 -8
- package/lib/commonjs/components/Channel/hooks/useCreateThreadContext.js.map +1 -1
- package/lib/commonjs/components/ChannelList/ChannelList.js +2 -0
- package/lib/commonjs/components/ChannelList/ChannelList.js.map +1 -1
- package/lib/commonjs/components/ChannelList/ChannelListFooterLoadingIndicator.js +1 -1
- package/lib/commonjs/components/ChannelList/ChannelListFooterLoadingIndicator.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/listeners/useNewMessageNotification.js +18 -8
- package/lib/commonjs/components/ChannelList/hooks/listeners/useNewMessageNotification.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/hooks/useLatestMessagePreview.js +46 -3
- package/lib/commonjs/components/ChannelPreview/hooks/useLatestMessagePreview.js.map +1 -1
- package/lib/commonjs/components/Chat/Chat.js +11 -2
- package/lib/commonjs/components/Chat/Chat.js.map +1 -1
- package/lib/commonjs/components/Chat/hooks/handleEventToSyncDB.js +13 -3
- package/lib/commonjs/components/Chat/hooks/handleEventToSyncDB.js.map +1 -1
- package/lib/commonjs/components/Chat/hooks/useCreateChatContext.js +2 -0
- package/lib/commonjs/components/Chat/hooks/useCreateChatContext.js.map +1 -1
- package/lib/commonjs/components/Chat/hooks/useIsOnline.js +13 -16
- package/lib/commonjs/components/Chat/hooks/useIsOnline.js.map +1 -1
- package/lib/commonjs/components/{UIComponents/ImageBackground.js → ImageBackground.js} +1 -1
- package/lib/commonjs/components/ImageBackground.js.map +1 -0
- package/lib/commonjs/components/ImageGallery/ImageGallery.js +96 -58
- package/lib/commonjs/components/ImageGallery/ImageGallery.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/AnimatedGalleryVideo.js +3 -3
- package/lib/commonjs/components/ImageGallery/components/AnimatedGalleryVideo.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryFooter.js +90 -92
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js +39 -39
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryOverlay.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/hooks/useImageGalleryGestures.js +221 -221
- package/lib/commonjs/components/ImageGallery/hooks/useImageGalleryGestures.js.map +1 -1
- package/lib/commonjs/components/Indicators/LoadingIndicator.js +1 -1
- package/lib/commonjs/components/Indicators/LoadingIndicator.js.map +1 -1
- package/lib/commonjs/components/Message/Message.js +186 -123
- package/lib/commonjs/components/Message/Message.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageAvatar.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageContent.js +168 -48
- package/lib/commonjs/components/Message/MessageSimple/MessageContent.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageDeleted.js +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageDeleted.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageFooter.js +1 -0
- package/lib/commonjs/components/Message/MessageSimple/MessageFooter.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessagePinnedHeader.js +34 -20
- package/lib/commonjs/components/Message/MessageSimple/MessagePinnedHeader.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageSimple.js +44 -180
- package/lib/commonjs/components/Message/MessageSimple/MessageSimple.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageTextContainer.js +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageTextContainer.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/ReactionList.js +305 -0
- package/lib/commonjs/components/Message/MessageSimple/ReactionList.js.map +1 -0
- package/lib/commonjs/components/Message/hooks/useCreateMessageContext.js +16 -4
- package/lib/commonjs/components/Message/hooks/useCreateMessageContext.js.map +1 -1
- package/lib/commonjs/components/Message/hooks/useMessageActions.js +72 -36
- package/lib/commonjs/components/Message/hooks/useMessageActions.js.map +1 -1
- package/lib/commonjs/components/Message/hooks/useProcessReactions.js +3 -3
- package/lib/commonjs/components/Message/hooks/useProcessReactions.js.map +1 -1
- package/lib/commonjs/components/Message/utils/messageActions.js +6 -4
- package/lib/commonjs/components/Message/utils/messageActions.js.map +1 -1
- package/lib/commonjs/components/MessageInput/FileUploadPreview.js +1 -1
- package/lib/commonjs/components/MessageInput/FileUploadPreview.js.map +1 -1
- package/lib/commonjs/components/MessageInput/MessageInput.js +46 -2
- package/lib/commonjs/components/MessageInput/MessageInput.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js +0 -1
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.js +2 -1
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/NativeAttachmentPicker.js +18 -1
- package/lib/commonjs/components/MessageInput/components/NativeAttachmentPicker.js.map +1 -1
- package/lib/commonjs/components/MessageInput/hooks/useAudioController.js +60 -42
- package/lib/commonjs/components/MessageInput/hooks/useAudioController.js.map +1 -1
- package/lib/commonjs/components/MessageList/MessageList.js +3 -1
- package/lib/commonjs/components/MessageList/MessageList.js.map +1 -1
- package/lib/commonjs/components/MessageOverlay/MessageActionList.js +112 -0
- package/lib/commonjs/components/MessageOverlay/MessageActionList.js.map +1 -0
- package/lib/commonjs/components/MessageOverlay/MessageActionListItem.js +87 -0
- package/lib/commonjs/components/MessageOverlay/MessageActionListItem.js.map +1 -0
- package/lib/commonjs/components/MessageOverlay/MessageOverlay.js +452 -0
- package/lib/commonjs/components/MessageOverlay/MessageOverlay.js.map +1 -0
- package/lib/commonjs/components/MessageOverlay/OverlayBackdrop.js +24 -0
- package/lib/commonjs/components/MessageOverlay/OverlayBackdrop.js.map +1 -0
- package/lib/commonjs/components/MessageOverlay/OverlayReactionList.js +305 -0
- package/lib/commonjs/components/MessageOverlay/OverlayReactionList.js.map +1 -0
- package/lib/commonjs/components/MessageOverlay/OverlayReactions.js +188 -0
- package/lib/commonjs/components/MessageOverlay/OverlayReactions.js.map +1 -0
- package/lib/{module/components/MessageMenu/MessageUserReactionsAvatar.js → commonjs/components/MessageOverlay/OverlayReactionsAvatar.js} +6 -5
- package/lib/commonjs/components/MessageOverlay/OverlayReactionsAvatar.js.map +1 -0
- package/lib/commonjs/components/MessageOverlay/OverlayReactionsItem.js +166 -0
- package/lib/commonjs/components/MessageOverlay/OverlayReactionsItem.js.map +1 -0
- package/lib/{module/components/MessageMenu → commonjs/components/MessageOverlay}/hooks/useFetchReactions.js +0 -2
- package/lib/commonjs/components/MessageOverlay/hooks/useFetchReactions.js.map +1 -0
- package/lib/commonjs/components/MessageOverlay/hooks/useMessageActionAnimation.js +34 -0
- package/lib/commonjs/components/MessageOverlay/hooks/useMessageActionAnimation.js.map +1 -0
- package/lib/commonjs/components/Poll/CreatePollContent.js +386 -0
- package/lib/commonjs/components/Poll/CreatePollContent.js.map +1 -0
- package/lib/commonjs/components/Poll/Poll.js +112 -0
- package/lib/commonjs/components/Poll/Poll.js.map +1 -0
- package/lib/commonjs/components/Poll/components/Button.js +513 -0
- package/lib/commonjs/components/Poll/components/Button.js.map +1 -0
- package/lib/commonjs/components/Poll/components/CreatePollIcon.js +23 -0
- package/lib/commonjs/components/Poll/components/CreatePollIcon.js.map +1 -0
- package/lib/commonjs/components/Poll/components/CreatePollOptions.js +281 -0
- package/lib/commonjs/components/Poll/components/CreatePollOptions.js.map +1 -0
- package/lib/commonjs/components/Poll/components/PollAnswersList.js +154 -0
- package/lib/commonjs/components/Poll/components/PollAnswersList.js.map +1 -0
- package/lib/commonjs/components/Poll/components/PollInputDialog.js +139 -0
- package/lib/commonjs/components/Poll/components/PollInputDialog.js.map +1 -0
- package/lib/commonjs/components/Poll/components/PollModalHeader.js +60 -0
- package/lib/commonjs/components/Poll/components/PollModalHeader.js.map +1 -0
- package/lib/commonjs/components/Poll/components/PollOption.js +209 -0
- package/lib/commonjs/components/Poll/components/PollOption.js.map +1 -0
- package/lib/commonjs/components/Poll/components/PollResults/PollOptionFullResults.js +123 -0
- package/lib/commonjs/components/Poll/components/PollResults/PollOptionFullResults.js.map +1 -0
- package/lib/commonjs/components/Poll/components/PollResults/PollResultItem.js +152 -0
- package/lib/commonjs/components/Poll/components/PollResults/PollResultItem.js.map +1 -0
- package/lib/commonjs/components/Poll/components/PollResults/PollResults.js +101 -0
- package/lib/commonjs/components/Poll/components/PollResults/PollResults.js.map +1 -0
- package/lib/commonjs/components/Poll/components/PollResults/index.js +37 -0
- package/lib/commonjs/components/Poll/components/PollResults/index.js.map +1 -0
- package/lib/commonjs/components/Poll/components/index.js +92 -0
- package/lib/commonjs/components/Poll/components/index.js.map +1 -0
- package/lib/commonjs/components/Poll/hooks/usePollAnswersPagination.js +129 -0
- package/lib/commonjs/components/Poll/hooks/usePollAnswersPagination.js.map +1 -0
- package/lib/commonjs/components/Poll/hooks/usePollOptionVotesPagination.js +140 -0
- package/lib/commonjs/components/Poll/hooks/usePollOptionVotesPagination.js.map +1 -0
- package/lib/commonjs/components/Poll/hooks/usePollState.js +103 -0
- package/lib/commonjs/components/Poll/hooks/usePollState.js.map +1 -0
- package/lib/commonjs/components/Poll/hooks/usePollStateStore.js +13 -0
- package/lib/commonjs/components/Poll/hooks/usePollStateStore.js.map +1 -0
- package/lib/commonjs/components/Poll/index.js +81 -0
- package/lib/commonjs/components/Poll/index.js.map +1 -0
- package/lib/commonjs/components/ProgressControl/ProgressControl.js +28 -21
- package/lib/commonjs/components/ProgressControl/ProgressControl.js.map +1 -1
- package/lib/commonjs/components/ProgressControl/WaveProgressBar.js +27 -22
- package/lib/commonjs/components/ProgressControl/WaveProgressBar.js.map +1 -1
- package/lib/commonjs/components/Reply/Reply.js +3 -7
- package/lib/commonjs/components/Reply/Reply.js.map +1 -1
- package/lib/commonjs/components/{UIComponents → Spinner}/Spinner.js +1 -1
- package/lib/commonjs/components/Spinner/Spinner.js.map +1 -0
- package/lib/commonjs/components/ThreadList/ThreadList.js +8 -7
- package/lib/commonjs/components/ThreadList/ThreadList.js.map +1 -1
- package/lib/commonjs/components/ThreadList/ThreadListItem.js +12 -9
- package/lib/commonjs/components/ThreadList/ThreadListItem.js.map +1 -1
- package/lib/commonjs/components/ThreadList/ThreadListUnreadBanner.js +4 -4
- package/lib/commonjs/components/ThreadList/ThreadListUnreadBanner.js.map +1 -1
- package/lib/commonjs/components/docs/data.js.map +1 -1
- package/lib/commonjs/components/index.js +50 -50
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/contexts/activeChannelsRefContext/ActiveChannelsRefContext.js +13 -1
- package/lib/commonjs/contexts/activeChannelsRefContext/ActiveChannelsRefContext.js.map +1 -1
- package/lib/commonjs/contexts/attachmentPickerContext/AttachmentPickerContext.js +11 -1
- package/lib/commonjs/contexts/attachmentPickerContext/AttachmentPickerContext.js.map +1 -1
- package/lib/commonjs/contexts/channelContext/ChannelContext.js +11 -1
- package/lib/commonjs/contexts/channelContext/ChannelContext.js.map +1 -1
- package/lib/commonjs/contexts/channelsContext/ChannelsContext.js +11 -1
- package/lib/commonjs/contexts/channelsContext/ChannelsContext.js.map +1 -1
- package/lib/commonjs/contexts/channelsStateContext/ChannelsStateContext.js +11 -1
- package/lib/commonjs/contexts/channelsStateContext/ChannelsStateContext.js.map +1 -1
- package/lib/commonjs/contexts/chatContext/ChatContext.js +11 -1
- package/lib/commonjs/contexts/chatContext/ChatContext.js.map +1 -1
- package/lib/commonjs/contexts/imageGalleryContext/ImageGalleryContext.js +11 -1
- package/lib/commonjs/contexts/imageGalleryContext/ImageGalleryContext.js.map +1 -1
- package/lib/commonjs/contexts/index.js +22 -11
- package/lib/commonjs/contexts/index.js.map +1 -1
- package/lib/commonjs/contexts/keyboardContext/KeyboardContext.js +11 -1
- package/lib/commonjs/contexts/keyboardContext/KeyboardContext.js.map +1 -1
- package/lib/commonjs/contexts/messageContext/MessageContext.js +11 -1
- package/lib/commonjs/contexts/messageContext/MessageContext.js.map +1 -1
- package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js +40 -7
- package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js.map +1 -1
- package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +10 -2
- package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
- package/lib/commonjs/contexts/messageOverlayContext/MessageOverlayContext.js +45 -0
- package/lib/commonjs/contexts/messageOverlayContext/MessageOverlayContext.js.map +1 -0
- package/lib/commonjs/contexts/messageOverlayContext/hooks/useResettableState.js +27 -0
- package/lib/commonjs/contexts/messageOverlayContext/hooks/useResettableState.js.map +1 -0
- package/lib/commonjs/contexts/messageOverlayContext/hooks/useResettableState.test.js +67 -0
- package/lib/commonjs/contexts/messageOverlayContext/hooks/useResettableState.test.js.map +1 -0
- package/lib/commonjs/contexts/messagesContext/MessagesContext.js +11 -1
- package/lib/commonjs/contexts/messagesContext/MessagesContext.js.map +1 -1
- package/lib/commonjs/contexts/overlayContext/OverlayContext.js +14 -1
- package/lib/commonjs/contexts/overlayContext/OverlayContext.js.map +1 -1
- package/lib/commonjs/contexts/overlayContext/OverlayProvider.js +58 -18
- package/lib/commonjs/contexts/overlayContext/OverlayProvider.js.map +1 -1
- package/lib/commonjs/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.js +3 -0
- package/lib/commonjs/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.js.map +1 -1
- package/lib/commonjs/contexts/paginatedMessageListContext/PaginatedMessageListContext.js +11 -1
- package/lib/commonjs/contexts/paginatedMessageListContext/PaginatedMessageListContext.js.map +1 -1
- package/lib/commonjs/contexts/pollContext/createPollContentContext.js +33 -0
- package/lib/commonjs/contexts/pollContext/createPollContentContext.js.map +1 -0
- package/lib/commonjs/contexts/pollContext/index.js +26 -0
- package/lib/commonjs/contexts/pollContext/index.js.map +1 -0
- package/lib/commonjs/contexts/{chatConfigContext/ChatConfigContext.js → pollContext/pollContext.js} +17 -17
- package/lib/commonjs/contexts/pollContext/pollContext.js.map +1 -0
- package/lib/commonjs/contexts/suggestionsContext/SuggestionsContext.js +11 -1
- package/lib/commonjs/contexts/suggestionsContext/SuggestionsContext.js.map +1 -1
- package/lib/commonjs/contexts/themeContext/utils/theme.js +176 -68
- package/lib/commonjs/contexts/themeContext/utils/theme.js.map +1 -1
- package/lib/commonjs/contexts/threadContext/ThreadContext.js +11 -1
- package/lib/commonjs/contexts/threadContext/ThreadContext.js.map +1 -1
- package/lib/commonjs/contexts/translationContext/TranslationContext.js +11 -1
- package/lib/commonjs/contexts/translationContext/TranslationContext.js.map +1 -1
- package/lib/commonjs/contexts/typingContext/TypingContext.js +11 -1
- package/lib/commonjs/contexts/typingContext/TypingContext.js.map +1 -1
- package/lib/commonjs/hooks/useStateStore.js.map +1 -1
- package/lib/commonjs/hooks/useTranslatedMessage.js +4 -1
- package/lib/commonjs/hooks/useTranslatedMessage.js.map +1 -1
- package/lib/commonjs/i18n/en.json +34 -0
- package/lib/commonjs/i18n/es.json +38 -0
- package/lib/commonjs/i18n/fr.json +38 -0
- package/lib/commonjs/i18n/he.json +38 -0
- package/lib/commonjs/i18n/hi.json +34 -0
- package/lib/commonjs/i18n/it.json +38 -0
- package/lib/commonjs/i18n/ja.json +34 -0
- package/lib/commonjs/i18n/ko.json +34 -0
- package/lib/commonjs/i18n/nl.json +34 -0
- package/lib/commonjs/i18n/pt-br.json +38 -0
- package/lib/commonjs/i18n/ru.json +42 -0
- package/lib/commonjs/i18n/tr.json +34 -0
- package/lib/commonjs/icons/Back.js +19 -0
- package/lib/commonjs/icons/Back.js.map +1 -0
- package/lib/commonjs/icons/DragHandle.js +21 -0
- package/lib/commonjs/icons/DragHandle.js.map +1 -0
- package/lib/commonjs/icons/PinHeader.js +6 -17
- package/lib/commonjs/icons/PinHeader.js.map +1 -1
- package/lib/commonjs/icons/PollThumbnail.js +19 -0
- package/lib/commonjs/icons/PollThumbnail.js.map +1 -0
- package/lib/commonjs/icons/SendPoll.js +19 -0
- package/lib/commonjs/icons/SendPoll.js.map +1 -0
- package/lib/commonjs/icons/index.js +44 -0
- package/lib/commonjs/icons/index.js.map +1 -1
- package/lib/commonjs/index.js +23 -4
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/mock-builders/DB/mock.js +82 -79
- package/lib/commonjs/mock-builders/DB/mock.js.map +1 -1
- package/lib/commonjs/native.js +25 -36
- package/lib/commonjs/native.js.map +1 -1
- package/lib/commonjs/store/QuickSqliteClient.js +158 -0
- package/lib/commonjs/store/QuickSqliteClient.js.map +1 -0
- package/lib/commonjs/store/apis/addPendingTask.js +5 -5
- package/lib/commonjs/store/apis/addPendingTask.js.map +1 -1
- package/lib/commonjs/store/apis/deleteChannel.js +3 -3
- package/lib/commonjs/store/apis/deleteChannel.js.map +1 -1
- package/lib/commonjs/store/apis/deleteMember.js +3 -3
- package/lib/commonjs/store/apis/deleteMember.js.map +1 -1
- package/lib/commonjs/store/apis/deleteMessage.js +3 -3
- package/lib/commonjs/store/apis/deleteMessage.js.map +1 -1
- package/lib/commonjs/store/apis/deleteMessagesForChannel.js +3 -3
- package/lib/commonjs/store/apis/deleteMessagesForChannel.js.map +1 -1
- package/lib/commonjs/store/apis/deletePendingTask.js +3 -3
- package/lib/commonjs/store/apis/deletePendingTask.js.map +1 -1
- package/lib/commonjs/store/apis/deleteReaction.js +3 -3
- package/lib/commonjs/store/apis/deleteReaction.js.map +1 -1
- package/lib/commonjs/store/apis/deleteReactions.js +2 -2
- package/lib/commonjs/store/apis/deleteReactions.js.map +1 -1
- package/lib/commonjs/store/apis/getAllChannelIds.js +2 -2
- package/lib/commonjs/store/apis/getAllChannelIds.js.map +1 -1
- package/lib/commonjs/store/apis/getAppSettings.js +3 -3
- package/lib/commonjs/store/apis/getAppSettings.js.map +1 -1
- package/lib/commonjs/store/apis/getChannelMessages.js +2 -2
- package/lib/commonjs/store/apis/getChannelMessages.js.map +1 -1
- package/lib/commonjs/store/apis/getChannels.js +2 -2
- package/lib/commonjs/store/apis/getChannels.js.map +1 -1
- package/lib/commonjs/store/apis/getChannelsForFilterSort.js +2 -2
- package/lib/commonjs/store/apis/getChannelsForFilterSort.js.map +1 -1
- package/lib/commonjs/store/apis/getLastSyncedAt.js +3 -3
- package/lib/commonjs/store/apis/getLastSyncedAt.js.map +1 -1
- package/lib/commonjs/store/apis/getMembers.js +2 -2
- package/lib/commonjs/store/apis/getMembers.js.map +1 -1
- package/lib/commonjs/store/apis/getPendingTasks.js +3 -3
- package/lib/commonjs/store/apis/getPendingTasks.js.map +1 -1
- package/lib/commonjs/store/apis/getReactions.js +2 -2
- package/lib/commonjs/store/apis/getReactions.js.map +1 -1
- package/lib/commonjs/store/apis/getReactionsforFilterSort.js +3 -6
- package/lib/commonjs/store/apis/getReactionsforFilterSort.js.map +1 -1
- package/lib/commonjs/store/apis/getReads.js +2 -2
- package/lib/commonjs/store/apis/getReads.js.map +1 -1
- package/lib/commonjs/store/apis/index.js +11 -0
- package/lib/commonjs/store/apis/index.js.map +1 -1
- package/lib/commonjs/store/apis/insertReaction.js +3 -3
- package/lib/commonjs/store/apis/insertReaction.js.map +1 -1
- package/lib/commonjs/store/apis/queries/selectChannelIdsForFilterSort.js +3 -3
- package/lib/commonjs/store/apis/queries/selectChannelIdsForFilterSort.js.map +1 -1
- package/lib/commonjs/store/apis/queries/selectChannels.js +3 -3
- package/lib/commonjs/store/apis/queries/selectChannels.js.map +1 -1
- package/lib/commonjs/store/apis/queries/selectMembersForChannels.js +3 -3
- package/lib/commonjs/store/apis/queries/selectMembersForChannels.js.map +1 -1
- package/lib/commonjs/store/apis/queries/selectMessagesForChannels.js +3 -3
- package/lib/commonjs/store/apis/queries/selectMessagesForChannels.js.map +1 -1
- package/lib/commonjs/store/apis/queries/selectReactionsForMessages.js +3 -3
- package/lib/commonjs/store/apis/queries/selectReactionsForMessages.js.map +1 -1
- package/lib/commonjs/store/apis/queries/selectReadsForChannels.js +3 -3
- package/lib/commonjs/store/apis/queries/selectReadsForChannels.js.map +1 -1
- package/lib/commonjs/store/apis/updateMessage.js +4 -4
- package/lib/commonjs/store/apis/updateMessage.js.map +1 -1
- package/lib/commonjs/store/apis/updatePollMessage.js +50 -0
- package/lib/commonjs/store/apis/updatePollMessage.js.map +1 -0
- package/lib/commonjs/store/apis/updateReaction.js +3 -3
- package/lib/commonjs/store/apis/updateReaction.js.map +1 -1
- package/lib/commonjs/store/apis/upsertAppSettings.js +3 -3
- package/lib/commonjs/store/apis/upsertAppSettings.js.map +1 -1
- package/lib/commonjs/store/apis/upsertChannelData.js +3 -3
- package/lib/commonjs/store/apis/upsertChannelData.js.map +1 -1
- package/lib/commonjs/store/apis/upsertChannelDataFromChannel.js +2 -2
- package/lib/commonjs/store/apis/upsertChannelDataFromChannel.js.map +1 -1
- package/lib/commonjs/store/apis/upsertChannels.js +3 -3
- package/lib/commonjs/store/apis/upsertChannels.js.map +1 -1
- package/lib/commonjs/store/apis/upsertCidsForQuery.js +3 -3
- package/lib/commonjs/store/apis/upsertCidsForQuery.js.map +1 -1
- package/lib/commonjs/store/apis/upsertMembers.js +3 -3
- package/lib/commonjs/store/apis/upsertMembers.js.map +1 -1
- package/lib/commonjs/store/apis/upsertMessages.js +3 -3
- package/lib/commonjs/store/apis/upsertMessages.js.map +1 -1
- package/lib/commonjs/store/apis/upsertReads.js +3 -3
- package/lib/commonjs/store/apis/upsertReads.js.map +1 -1
- package/lib/commonjs/store/apis/upsertUserSyncStatus.js +3 -3
- package/lib/commonjs/store/apis/upsertUserSyncStatus.js.map +1 -1
- package/lib/commonjs/store/mappers/mapMessageToStorable.js +5 -1
- package/lib/commonjs/store/mappers/mapMessageToStorable.js.map +1 -1
- package/lib/commonjs/store/mappers/mapStorableToMessage.js +5 -1
- package/lib/commonjs/store/mappers/mapStorableToMessage.js.map +1 -1
- package/lib/commonjs/store/schema.js +2 -0
- package/lib/commonjs/store/schema.js.map +1 -1
- package/lib/commonjs/utils/DBSyncManager.js +4 -4
- package/lib/commonjs/utils/DBSyncManager.js.map +1 -1
- package/lib/commonjs/utils/StreamChatRN.js +25 -0
- package/lib/commonjs/utils/StreamChatRN.js.map +1 -0
- package/lib/commonjs/utils/getResizedImageUrl.js +3 -5
- package/lib/commonjs/utils/getResizedImageUrl.js.map +1 -1
- package/lib/commonjs/version.json +1 -1
- package/lib/module/components/Attachment/Attachment.js +1 -1
- package/lib/module/components/Attachment/Attachment.js.map +1 -1
- package/lib/module/components/Attachment/Card.js +6 -6
- package/lib/module/components/Attachment/Card.js.map +1 -1
- package/lib/module/components/Attachment/FileAttachment.js +5 -5
- package/lib/module/components/Attachment/FileAttachment.js.map +1 -1
- package/lib/module/components/Attachment/FileAttachmentGroup.js +1 -1
- package/lib/module/components/Attachment/FileAttachmentGroup.js.map +1 -1
- package/lib/module/components/Attachment/Gallery.js +22 -29
- package/lib/module/components/Attachment/Gallery.js.map +1 -1
- package/lib/module/components/Attachment/Giphy.js +8 -8
- package/lib/module/components/Attachment/Giphy.js.map +1 -1
- package/lib/module/components/Attachment/utils/buildGallery/buildGallery.js +0 -7
- package/lib/module/components/Attachment/utils/buildGallery/buildGallery.js.map +1 -1
- package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.js +1 -3
- package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.js.map +1 -1
- package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.js +0 -3
- package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.js.map +1 -1
- package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.js +0 -4
- package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.js.map +1 -1
- package/lib/module/components/Attachment/utils/buildGallery/buildThumbnail.js +0 -2
- package/lib/module/components/Attachment/utils/buildGallery/buildThumbnail.js.map +1 -1
- package/lib/module/components/Attachment/utils/buildGallery/buildThumbnailGrid.js +0 -2
- package/lib/module/components/Attachment/utils/buildGallery/buildThumbnailGrid.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerItem.js +3 -3
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerItem.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerSelectionBar.js +27 -0
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerSelectionBar.js.map +1 -1
- package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionList.js +2 -1
- package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionList.js.map +1 -1
- package/lib/module/components/Avatar/Avatar.js +0 -4
- package/lib/module/components/Avatar/Avatar.js.map +1 -1
- package/lib/module/components/Avatar/GroupAvatar.js +0 -4
- package/lib/module/components/Avatar/GroupAvatar.js.map +1 -1
- package/lib/module/components/Channel/Channel.js +445 -301
- package/lib/module/components/Channel/Channel.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateChannelContext.js +2 -0
- package/lib/module/components/Channel/hooks/useCreateChannelContext.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateInputMessageInputContext.js +9 -3
- package/lib/module/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateMessagesContext.js +15 -27
- package/lib/module/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateThreadContext.js +9 -8
- package/lib/module/components/Channel/hooks/useCreateThreadContext.js.map +1 -1
- package/lib/module/components/ChannelList/ChannelList.js +2 -0
- package/lib/module/components/ChannelList/ChannelList.js.map +1 -1
- package/lib/module/components/ChannelList/ChannelListFooterLoadingIndicator.js +1 -1
- package/lib/module/components/ChannelList/ChannelListFooterLoadingIndicator.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/listeners/useNewMessageNotification.js +18 -8
- package/lib/module/components/ChannelList/hooks/listeners/useNewMessageNotification.js.map +1 -1
- package/lib/module/components/ChannelPreview/hooks/useLatestMessagePreview.js +46 -3
- package/lib/module/components/ChannelPreview/hooks/useLatestMessagePreview.js.map +1 -1
- package/lib/module/components/Chat/Chat.js +11 -2
- package/lib/module/components/Chat/Chat.js.map +1 -1
- package/lib/module/components/Chat/hooks/handleEventToSyncDB.js +13 -3
- package/lib/module/components/Chat/hooks/handleEventToSyncDB.js.map +1 -1
- package/lib/module/components/Chat/hooks/useCreateChatContext.js +2 -0
- package/lib/module/components/Chat/hooks/useCreateChatContext.js.map +1 -1
- package/lib/module/components/Chat/hooks/useIsOnline.js +13 -16
- package/lib/module/components/Chat/hooks/useIsOnline.js.map +1 -1
- package/lib/module/components/{UIComponents/ImageBackground.js → ImageBackground.js} +1 -1
- package/lib/module/components/ImageBackground.js.map +1 -0
- package/lib/module/components/ImageGallery/ImageGallery.js +96 -58
- package/lib/module/components/ImageGallery/ImageGallery.js.map +1 -1
- package/lib/module/components/ImageGallery/components/AnimatedGalleryVideo.js +3 -3
- package/lib/module/components/ImageGallery/components/AnimatedGalleryVideo.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js +90 -92
- package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js +39 -39
- package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryOverlay.js.map +1 -1
- package/lib/module/components/ImageGallery/hooks/useImageGalleryGestures.js +221 -221
- package/lib/module/components/ImageGallery/hooks/useImageGalleryGestures.js.map +1 -1
- package/lib/module/components/Indicators/LoadingIndicator.js +1 -1
- package/lib/module/components/Indicators/LoadingIndicator.js.map +1 -1
- package/lib/module/components/Message/Message.js +186 -123
- package/lib/module/components/Message/Message.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageAvatar.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageContent.js +168 -48
- package/lib/module/components/Message/MessageSimple/MessageContent.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageDeleted.js +1 -1
- package/lib/module/components/Message/MessageSimple/MessageDeleted.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageFooter.js +1 -0
- package/lib/module/components/Message/MessageSimple/MessageFooter.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessagePinnedHeader.js +34 -20
- package/lib/module/components/Message/MessageSimple/MessagePinnedHeader.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageSimple.js +44 -180
- package/lib/module/components/Message/MessageSimple/MessageSimple.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageTextContainer.js +1 -1
- package/lib/module/components/Message/MessageSimple/MessageTextContainer.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/ReactionList.js +305 -0
- package/lib/module/components/Message/MessageSimple/ReactionList.js.map +1 -0
- package/lib/module/components/Message/hooks/useCreateMessageContext.js +16 -4
- package/lib/module/components/Message/hooks/useCreateMessageContext.js.map +1 -1
- package/lib/module/components/Message/hooks/useMessageActions.js +72 -36
- package/lib/module/components/Message/hooks/useMessageActions.js.map +1 -1
- package/lib/module/components/Message/hooks/useProcessReactions.js +3 -3
- package/lib/module/components/Message/hooks/useProcessReactions.js.map +1 -1
- package/lib/module/components/Message/utils/messageActions.js +6 -4
- package/lib/module/components/Message/utils/messageActions.js.map +1 -1
- package/lib/module/components/MessageInput/FileUploadPreview.js +1 -1
- package/lib/module/components/MessageInput/FileUploadPreview.js.map +1 -1
- package/lib/module/components/MessageInput/MessageInput.js +46 -2
- package/lib/module/components/MessageInput/MessageInput.js.map +1 -1
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js +0 -1
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js.map +1 -1
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.js +2 -1
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.js.map +1 -1
- package/lib/module/components/MessageInput/components/NativeAttachmentPicker.js +18 -1
- package/lib/module/components/MessageInput/components/NativeAttachmentPicker.js.map +1 -1
- package/lib/module/components/MessageInput/hooks/useAudioController.js +60 -42
- package/lib/module/components/MessageInput/hooks/useAudioController.js.map +1 -1
- package/lib/module/components/MessageList/MessageList.js +3 -1
- package/lib/module/components/MessageList/MessageList.js.map +1 -1
- package/lib/module/components/MessageOverlay/MessageActionList.js +112 -0
- package/lib/module/components/MessageOverlay/MessageActionList.js.map +1 -0
- package/lib/module/components/MessageOverlay/MessageActionListItem.js +87 -0
- package/lib/module/components/MessageOverlay/MessageActionListItem.js.map +1 -0
- package/lib/module/components/MessageOverlay/MessageOverlay.js +452 -0
- package/lib/module/components/MessageOverlay/MessageOverlay.js.map +1 -0
- package/lib/module/components/MessageOverlay/OverlayBackdrop.js +24 -0
- package/lib/module/components/MessageOverlay/OverlayBackdrop.js.map +1 -0
- package/lib/module/components/MessageOverlay/OverlayReactionList.js +305 -0
- package/lib/module/components/MessageOverlay/OverlayReactionList.js.map +1 -0
- package/lib/module/components/MessageOverlay/OverlayReactions.js +188 -0
- package/lib/module/components/MessageOverlay/OverlayReactions.js.map +1 -0
- package/lib/{commonjs/components/MessageMenu/MessageUserReactionsAvatar.js → module/components/MessageOverlay/OverlayReactionsAvatar.js} +6 -5
- package/lib/module/components/MessageOverlay/OverlayReactionsAvatar.js.map +1 -0
- package/lib/module/components/MessageOverlay/OverlayReactionsItem.js +166 -0
- package/lib/module/components/MessageOverlay/OverlayReactionsItem.js.map +1 -0
- package/lib/{commonjs/components/MessageMenu → module/components/MessageOverlay}/hooks/useFetchReactions.js +0 -2
- package/lib/module/components/MessageOverlay/hooks/useFetchReactions.js.map +1 -0
- package/lib/module/components/MessageOverlay/hooks/useMessageActionAnimation.js +34 -0
- package/lib/module/components/MessageOverlay/hooks/useMessageActionAnimation.js.map +1 -0
- package/lib/module/components/Poll/CreatePollContent.js +386 -0
- package/lib/module/components/Poll/CreatePollContent.js.map +1 -0
- package/lib/module/components/Poll/Poll.js +112 -0
- package/lib/module/components/Poll/Poll.js.map +1 -0
- package/lib/module/components/Poll/components/Button.js +513 -0
- package/lib/module/components/Poll/components/Button.js.map +1 -0
- package/lib/module/components/Poll/components/CreatePollIcon.js +23 -0
- package/lib/module/components/Poll/components/CreatePollIcon.js.map +1 -0
- package/lib/module/components/Poll/components/CreatePollOptions.js +281 -0
- package/lib/module/components/Poll/components/CreatePollOptions.js.map +1 -0
- package/lib/module/components/Poll/components/PollAnswersList.js +154 -0
- package/lib/module/components/Poll/components/PollAnswersList.js.map +1 -0
- package/lib/module/components/Poll/components/PollInputDialog.js +139 -0
- package/lib/module/components/Poll/components/PollInputDialog.js.map +1 -0
- package/lib/module/components/Poll/components/PollModalHeader.js +60 -0
- package/lib/module/components/Poll/components/PollModalHeader.js.map +1 -0
- package/lib/module/components/Poll/components/PollOption.js +209 -0
- package/lib/module/components/Poll/components/PollOption.js.map +1 -0
- package/lib/module/components/Poll/components/PollResults/PollOptionFullResults.js +123 -0
- package/lib/module/components/Poll/components/PollResults/PollOptionFullResults.js.map +1 -0
- package/lib/module/components/Poll/components/PollResults/PollResultItem.js +152 -0
- package/lib/module/components/Poll/components/PollResults/PollResultItem.js.map +1 -0
- package/lib/module/components/Poll/components/PollResults/PollResults.js +101 -0
- package/lib/module/components/Poll/components/PollResults/PollResults.js.map +1 -0
- package/lib/module/components/Poll/components/PollResults/index.js +37 -0
- package/lib/module/components/Poll/components/PollResults/index.js.map +1 -0
- package/lib/module/components/Poll/components/index.js +92 -0
- package/lib/module/components/Poll/components/index.js.map +1 -0
- package/lib/module/components/Poll/hooks/usePollAnswersPagination.js +129 -0
- package/lib/module/components/Poll/hooks/usePollAnswersPagination.js.map +1 -0
- package/lib/module/components/Poll/hooks/usePollOptionVotesPagination.js +140 -0
- package/lib/module/components/Poll/hooks/usePollOptionVotesPagination.js.map +1 -0
- package/lib/module/components/Poll/hooks/usePollState.js +103 -0
- package/lib/module/components/Poll/hooks/usePollState.js.map +1 -0
- package/lib/module/components/Poll/hooks/usePollStateStore.js +13 -0
- package/lib/module/components/Poll/hooks/usePollStateStore.js.map +1 -0
- package/lib/module/components/Poll/index.js +81 -0
- package/lib/module/components/Poll/index.js.map +1 -0
- package/lib/module/components/ProgressControl/ProgressControl.js +28 -21
- package/lib/module/components/ProgressControl/ProgressControl.js.map +1 -1
- package/lib/module/components/ProgressControl/WaveProgressBar.js +27 -22
- package/lib/module/components/ProgressControl/WaveProgressBar.js.map +1 -1
- package/lib/module/components/Reply/Reply.js +3 -7
- package/lib/module/components/Reply/Reply.js.map +1 -1
- package/lib/module/components/{UIComponents → Spinner}/Spinner.js +1 -1
- package/lib/module/components/Spinner/Spinner.js.map +1 -0
- package/lib/module/components/ThreadList/ThreadList.js +8 -7
- package/lib/module/components/ThreadList/ThreadList.js.map +1 -1
- package/lib/module/components/ThreadList/ThreadListItem.js +12 -9
- package/lib/module/components/ThreadList/ThreadListItem.js.map +1 -1
- package/lib/module/components/ThreadList/ThreadListUnreadBanner.js +4 -4
- package/lib/module/components/ThreadList/ThreadListUnreadBanner.js.map +1 -1
- package/lib/module/components/docs/data.js.map +1 -1
- package/lib/module/components/index.js +50 -50
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/contexts/activeChannelsRefContext/ActiveChannelsRefContext.js +13 -1
- package/lib/module/contexts/activeChannelsRefContext/ActiveChannelsRefContext.js.map +1 -1
- package/lib/module/contexts/attachmentPickerContext/AttachmentPickerContext.js +11 -1
- package/lib/module/contexts/attachmentPickerContext/AttachmentPickerContext.js.map +1 -1
- package/lib/module/contexts/channelContext/ChannelContext.js +11 -1
- package/lib/module/contexts/channelContext/ChannelContext.js.map +1 -1
- package/lib/module/contexts/channelsContext/ChannelsContext.js +11 -1
- package/lib/module/contexts/channelsContext/ChannelsContext.js.map +1 -1
- package/lib/module/contexts/channelsStateContext/ChannelsStateContext.js +11 -1
- package/lib/module/contexts/channelsStateContext/ChannelsStateContext.js.map +1 -1
- package/lib/module/contexts/chatContext/ChatContext.js +11 -1
- package/lib/module/contexts/chatContext/ChatContext.js.map +1 -1
- package/lib/module/contexts/imageGalleryContext/ImageGalleryContext.js +11 -1
- package/lib/module/contexts/imageGalleryContext/ImageGalleryContext.js.map +1 -1
- package/lib/module/contexts/index.js +22 -11
- package/lib/module/contexts/index.js.map +1 -1
- package/lib/module/contexts/keyboardContext/KeyboardContext.js +11 -1
- package/lib/module/contexts/keyboardContext/KeyboardContext.js.map +1 -1
- package/lib/module/contexts/messageContext/MessageContext.js +11 -1
- package/lib/module/contexts/messageContext/MessageContext.js.map +1 -1
- package/lib/module/contexts/messageInputContext/MessageInputContext.js +40 -7
- package/lib/module/contexts/messageInputContext/MessageInputContext.js.map +1 -1
- package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +10 -2
- package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
- package/lib/module/contexts/messageOverlayContext/MessageOverlayContext.js +45 -0
- package/lib/module/contexts/messageOverlayContext/MessageOverlayContext.js.map +1 -0
- package/lib/module/contexts/messageOverlayContext/hooks/useResettableState.js +27 -0
- package/lib/module/contexts/messageOverlayContext/hooks/useResettableState.js.map +1 -0
- package/lib/module/contexts/messageOverlayContext/hooks/useResettableState.test.js +67 -0
- package/lib/module/contexts/messageOverlayContext/hooks/useResettableState.test.js.map +1 -0
- package/lib/module/contexts/messagesContext/MessagesContext.js +11 -1
- package/lib/module/contexts/messagesContext/MessagesContext.js.map +1 -1
- package/lib/module/contexts/overlayContext/OverlayContext.js +14 -1
- package/lib/module/contexts/overlayContext/OverlayContext.js.map +1 -1
- package/lib/module/contexts/overlayContext/OverlayProvider.js +58 -18
- package/lib/module/contexts/overlayContext/OverlayProvider.js.map +1 -1
- package/lib/module/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.js +3 -0
- package/lib/module/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.js.map +1 -1
- package/lib/module/contexts/paginatedMessageListContext/PaginatedMessageListContext.js +11 -1
- package/lib/module/contexts/paginatedMessageListContext/PaginatedMessageListContext.js.map +1 -1
- package/lib/module/contexts/pollContext/createPollContentContext.js +33 -0
- package/lib/module/contexts/pollContext/createPollContentContext.js.map +1 -0
- package/lib/module/contexts/pollContext/index.js +26 -0
- package/lib/module/contexts/pollContext/index.js.map +1 -0
- package/lib/module/contexts/{chatConfigContext/ChatConfigContext.js → pollContext/pollContext.js} +17 -17
- package/lib/module/contexts/pollContext/pollContext.js.map +1 -0
- package/lib/module/contexts/suggestionsContext/SuggestionsContext.js +11 -1
- package/lib/module/contexts/suggestionsContext/SuggestionsContext.js.map +1 -1
- package/lib/module/contexts/themeContext/utils/theme.js +176 -68
- package/lib/module/contexts/themeContext/utils/theme.js.map +1 -1
- package/lib/module/contexts/threadContext/ThreadContext.js +11 -1
- package/lib/module/contexts/threadContext/ThreadContext.js.map +1 -1
- package/lib/module/contexts/translationContext/TranslationContext.js +11 -1
- package/lib/module/contexts/translationContext/TranslationContext.js.map +1 -1
- package/lib/module/contexts/typingContext/TypingContext.js +11 -1
- package/lib/module/contexts/typingContext/TypingContext.js.map +1 -1
- package/lib/module/hooks/useStateStore.js.map +1 -1
- package/lib/module/hooks/useTranslatedMessage.js +4 -1
- package/lib/module/hooks/useTranslatedMessage.js.map +1 -1
- package/lib/module/i18n/en.json +34 -0
- package/lib/module/i18n/es.json +38 -0
- package/lib/module/i18n/fr.json +38 -0
- package/lib/module/i18n/he.json +38 -0
- package/lib/module/i18n/hi.json +34 -0
- package/lib/module/i18n/it.json +38 -0
- package/lib/module/i18n/ja.json +34 -0
- package/lib/module/i18n/ko.json +34 -0
- package/lib/module/i18n/nl.json +34 -0
- package/lib/module/i18n/pt-br.json +38 -0
- package/lib/module/i18n/ru.json +42 -0
- package/lib/module/i18n/tr.json +34 -0
- package/lib/module/icons/Back.js +19 -0
- package/lib/module/icons/Back.js.map +1 -0
- package/lib/module/icons/DragHandle.js +21 -0
- package/lib/module/icons/DragHandle.js.map +1 -0
- package/lib/module/icons/PinHeader.js +6 -17
- package/lib/module/icons/PinHeader.js.map +1 -1
- package/lib/module/icons/PollThumbnail.js +19 -0
- package/lib/module/icons/PollThumbnail.js.map +1 -0
- package/lib/module/icons/SendPoll.js +19 -0
- package/lib/module/icons/SendPoll.js.map +1 -0
- package/lib/module/icons/index.js +44 -0
- package/lib/module/icons/index.js.map +1 -1
- package/lib/module/index.js +23 -4
- package/lib/module/index.js.map +1 -1
- package/lib/module/mock-builders/DB/mock.js +82 -79
- package/lib/module/mock-builders/DB/mock.js.map +1 -1
- package/lib/module/native.js +25 -36
- package/lib/module/native.js.map +1 -1
- package/lib/module/store/QuickSqliteClient.js +158 -0
- package/lib/module/store/QuickSqliteClient.js.map +1 -0
- package/lib/module/store/apis/addPendingTask.js +5 -5
- package/lib/module/store/apis/addPendingTask.js.map +1 -1
- package/lib/module/store/apis/deleteChannel.js +3 -3
- package/lib/module/store/apis/deleteChannel.js.map +1 -1
- package/lib/module/store/apis/deleteMember.js +3 -3
- package/lib/module/store/apis/deleteMember.js.map +1 -1
- package/lib/module/store/apis/deleteMessage.js +3 -3
- package/lib/module/store/apis/deleteMessage.js.map +1 -1
- package/lib/module/store/apis/deleteMessagesForChannel.js +3 -3
- package/lib/module/store/apis/deleteMessagesForChannel.js.map +1 -1
- package/lib/module/store/apis/deletePendingTask.js +3 -3
- package/lib/module/store/apis/deletePendingTask.js.map +1 -1
- package/lib/module/store/apis/deleteReaction.js +3 -3
- package/lib/module/store/apis/deleteReaction.js.map +1 -1
- package/lib/module/store/apis/deleteReactions.js +2 -2
- package/lib/module/store/apis/deleteReactions.js.map +1 -1
- package/lib/module/store/apis/getAllChannelIds.js +2 -2
- package/lib/module/store/apis/getAllChannelIds.js.map +1 -1
- package/lib/module/store/apis/getAppSettings.js +3 -3
- package/lib/module/store/apis/getAppSettings.js.map +1 -1
- package/lib/module/store/apis/getChannelMessages.js +2 -2
- package/lib/module/store/apis/getChannelMessages.js.map +1 -1
- package/lib/module/store/apis/getChannels.js +2 -2
- package/lib/module/store/apis/getChannels.js.map +1 -1
- package/lib/module/store/apis/getChannelsForFilterSort.js +2 -2
- package/lib/module/store/apis/getChannelsForFilterSort.js.map +1 -1
- package/lib/module/store/apis/getLastSyncedAt.js +3 -3
- package/lib/module/store/apis/getLastSyncedAt.js.map +1 -1
- package/lib/module/store/apis/getMembers.js +2 -2
- package/lib/module/store/apis/getMembers.js.map +1 -1
- package/lib/module/store/apis/getPendingTasks.js +3 -3
- package/lib/module/store/apis/getPendingTasks.js.map +1 -1
- package/lib/module/store/apis/getReactions.js +2 -2
- package/lib/module/store/apis/getReactions.js.map +1 -1
- package/lib/module/store/apis/getReactionsforFilterSort.js +3 -6
- package/lib/module/store/apis/getReactionsforFilterSort.js.map +1 -1
- package/lib/module/store/apis/getReads.js +2 -2
- package/lib/module/store/apis/getReads.js.map +1 -1
- package/lib/module/store/apis/index.js +11 -0
- package/lib/module/store/apis/index.js.map +1 -1
- package/lib/module/store/apis/insertReaction.js +3 -3
- package/lib/module/store/apis/insertReaction.js.map +1 -1
- package/lib/module/store/apis/queries/selectChannelIdsForFilterSort.js +3 -3
- package/lib/module/store/apis/queries/selectChannelIdsForFilterSort.js.map +1 -1
- package/lib/module/store/apis/queries/selectChannels.js +3 -3
- package/lib/module/store/apis/queries/selectChannels.js.map +1 -1
- package/lib/module/store/apis/queries/selectMembersForChannels.js +3 -3
- package/lib/module/store/apis/queries/selectMembersForChannels.js.map +1 -1
- package/lib/module/store/apis/queries/selectMessagesForChannels.js +3 -3
- package/lib/module/store/apis/queries/selectMessagesForChannels.js.map +1 -1
- package/lib/module/store/apis/queries/selectReactionsForMessages.js +3 -3
- package/lib/module/store/apis/queries/selectReactionsForMessages.js.map +1 -1
- package/lib/module/store/apis/queries/selectReadsForChannels.js +3 -3
- package/lib/module/store/apis/queries/selectReadsForChannels.js.map +1 -1
- package/lib/module/store/apis/updateMessage.js +4 -4
- package/lib/module/store/apis/updateMessage.js.map +1 -1
- package/lib/module/store/apis/updatePollMessage.js +50 -0
- package/lib/module/store/apis/updatePollMessage.js.map +1 -0
- package/lib/module/store/apis/updateReaction.js +3 -3
- package/lib/module/store/apis/updateReaction.js.map +1 -1
- package/lib/module/store/apis/upsertAppSettings.js +3 -3
- package/lib/module/store/apis/upsertAppSettings.js.map +1 -1
- package/lib/module/store/apis/upsertChannelData.js +3 -3
- package/lib/module/store/apis/upsertChannelData.js.map +1 -1
- package/lib/module/store/apis/upsertChannelDataFromChannel.js +2 -2
- package/lib/module/store/apis/upsertChannelDataFromChannel.js.map +1 -1
- package/lib/module/store/apis/upsertChannels.js +3 -3
- package/lib/module/store/apis/upsertChannels.js.map +1 -1
- package/lib/module/store/apis/upsertCidsForQuery.js +3 -3
- package/lib/module/store/apis/upsertCidsForQuery.js.map +1 -1
- package/lib/module/store/apis/upsertMembers.js +3 -3
- package/lib/module/store/apis/upsertMembers.js.map +1 -1
- package/lib/module/store/apis/upsertMessages.js +3 -3
- package/lib/module/store/apis/upsertMessages.js.map +1 -1
- package/lib/module/store/apis/upsertReads.js +3 -3
- package/lib/module/store/apis/upsertReads.js.map +1 -1
- package/lib/module/store/apis/upsertUserSyncStatus.js +3 -3
- package/lib/module/store/apis/upsertUserSyncStatus.js.map +1 -1
- package/lib/module/store/mappers/mapMessageToStorable.js +5 -1
- package/lib/module/store/mappers/mapMessageToStorable.js.map +1 -1
- package/lib/module/store/mappers/mapStorableToMessage.js +5 -1
- package/lib/module/store/mappers/mapStorableToMessage.js.map +1 -1
- package/lib/module/store/schema.js +2 -0
- package/lib/module/store/schema.js.map +1 -1
- package/lib/module/utils/DBSyncManager.js +4 -4
- package/lib/module/utils/DBSyncManager.js.map +1 -1
- package/lib/module/utils/StreamChatRN.js +25 -0
- package/lib/module/utils/StreamChatRN.js.map +1 -0
- package/lib/module/utils/getResizedImageUrl.js +3 -5
- package/lib/module/utils/getResizedImageUrl.js.map +1 -1
- package/lib/module/version.json +1 -1
- package/lib/typescript/components/Attachment/Card.d.ts +2 -2
- package/lib/typescript/components/Attachment/Card.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/FileAttachment.d.ts +1 -1
- package/lib/typescript/components/Attachment/FileAttachment.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/Gallery.d.ts +1 -1
- package/lib/typescript/components/Attachment/Gallery.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/Giphy.d.ts +1 -1
- package/lib/typescript/components/Attachment/utils/buildGallery/buildGallery.d.ts +1 -2
- package/lib/typescript/components/Attachment/utils/buildGallery/buildGallery.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.d.ts +1 -2
- package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.d.ts +1 -2
- package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.d.ts +1 -2
- package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/utils/buildGallery/buildThumbnail.d.ts +2 -4
- package/lib/typescript/components/Attachment/utils/buildGallery/buildThumbnail.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/utils/buildGallery/buildThumbnailGrid.d.ts +1 -2
- package/lib/typescript/components/Attachment/utils/buildGallery/buildThumbnailGrid.d.ts.map +1 -1
- package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerBottomSheetHandle.d.ts +2 -2
- package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerBottomSheetHandle.d.ts.map +1 -1
- package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerItem.d.ts.map +1 -1
- package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerSelectionBar.d.ts.map +1 -1
- package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionList.d.ts.map +1 -1
- package/lib/typescript/components/Avatar/Avatar.d.ts.map +1 -1
- package/lib/typescript/components/Avatar/GroupAvatar.d.ts.map +1 -1
- package/lib/typescript/components/Channel/Channel.d.ts +2 -2
- package/lib/typescript/components/Channel/Channel.d.ts.map +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateChannelContext.d.ts +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateChannelContext.d.ts.map +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateInputMessageInputContext.d.ts +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateInputMessageInputContext.d.ts.map +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateMessagesContext.d.ts +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateMessagesContext.d.ts.map +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateThreadContext.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/ChannelList.d.ts +12 -0
- package/lib/typescript/components/ChannelList/ChannelList.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/hooks/listeners/useNewMessageNotification.d.ts +2 -1
- package/lib/typescript/components/ChannelList/hooks/listeners/useNewMessageNotification.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/hooks/useLatestMessagePreview.d.ts +5 -1
- package/lib/typescript/components/ChannelPreview/hooks/useLatestMessagePreview.d.ts.map +1 -1
- package/lib/typescript/components/Chat/Chat.d.ts +1 -1
- package/lib/typescript/components/Chat/Chat.d.ts.map +1 -1
- package/lib/typescript/components/Chat/hooks/handleEventToSyncDB.d.ts.map +1 -1
- package/lib/typescript/components/Chat/hooks/useCreateChatContext.d.ts +1 -1
- package/lib/typescript/components/Chat/hooks/useCreateChatContext.d.ts.map +1 -1
- package/lib/typescript/components/Chat/hooks/useIsOnline.d.ts.map +1 -1
- package/lib/typescript/components/ImageBackground.d.ts.map +1 -0
- package/lib/typescript/components/ImageGallery/ImageGallery.d.ts +2 -2
- package/lib/typescript/components/ImageGallery/ImageGallery.d.ts.map +1 -1
- package/lib/typescript/components/ImageGallery/components/AnimatedGalleryImage.d.ts +5 -5
- package/lib/typescript/components/ImageGallery/components/AnimatedGalleryImage.d.ts.map +1 -1
- package/lib/typescript/components/ImageGallery/components/AnimatedGalleryVideo.d.ts +5 -5
- package/lib/typescript/components/ImageGallery/components/AnimatedGalleryVideo.d.ts.map +1 -1
- package/lib/typescript/components/ImageGallery/components/ImageGalleryFooter.d.ts +3 -3
- package/lib/typescript/components/ImageGallery/components/ImageGalleryFooter.d.ts.map +1 -1
- package/lib/typescript/components/ImageGallery/components/ImageGalleryHeader.d.ts +3 -3
- package/lib/typescript/components/ImageGallery/components/ImageGalleryHeader.d.ts.map +1 -1
- package/lib/typescript/components/ImageGallery/components/ImageGalleryOverlay.d.ts +2 -2
- package/lib/typescript/components/ImageGallery/components/ImageGalleryOverlay.d.ts.map +1 -1
- package/lib/typescript/components/ImageGallery/hooks/useImageGalleryGestures.d.ts +5 -4
- package/lib/typescript/components/ImageGallery/hooks/useImageGalleryGestures.d.ts.map +1 -1
- package/lib/typescript/components/Message/Message.d.ts +40 -4
- package/lib/typescript/components/Message/Message.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageSimple/MessageAvatar.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageSimple/MessageContent.d.ts +5 -11
- package/lib/typescript/components/Message/MessageSimple/MessageContent.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageSimple/MessagePinnedHeader.d.ts +6 -2
- package/lib/typescript/components/Message/MessageSimple/MessagePinnedHeader.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageSimple/MessageSimple.d.ts +1 -1
- package/lib/typescript/components/Message/MessageSimple/MessageSimple.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageSimple/MessageTextContainer.d.ts +2 -1
- package/lib/typescript/components/Message/MessageSimple/MessageTextContainer.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageSimple/ReactionList.d.ts +32 -0
- package/lib/typescript/components/Message/MessageSimple/ReactionList.d.ts.map +1 -0
- package/lib/typescript/components/Message/hooks/useCreateMessageContext.d.ts +1 -1
- package/lib/typescript/components/Message/hooks/useCreateMessageContext.d.ts.map +1 -1
- package/lib/typescript/components/Message/hooks/useMessageActions.d.ts +6 -5
- package/lib/typescript/components/Message/hooks/useMessageActions.d.ts.map +1 -1
- package/lib/typescript/components/Message/hooks/useProcessReactions.d.ts +3 -11
- package/lib/typescript/components/Message/hooks/useProcessReactions.d.ts.map +1 -1
- package/lib/typescript/components/Message/utils/messageActions.d.ts +14 -6
- package/lib/typescript/components/Message/utils/messageActions.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/MessageInput.d.ts +1 -1
- package/lib/typescript/components/MessageInput/MessageInput.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecordingButton.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/NativeAttachmentPicker.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/hooks/useAudioController.d.ts.map +1 -1
- package/lib/typescript/components/MessageOverlay/MessageActionList.d.ts +14 -0
- package/lib/typescript/components/MessageOverlay/MessageActionList.d.ts.map +1 -0
- package/lib/typescript/components/{MessageMenu → MessageOverlay}/MessageActionListItem.d.ts +8 -2
- package/lib/typescript/components/MessageOverlay/MessageActionListItem.d.ts.map +1 -0
- package/lib/typescript/components/MessageOverlay/MessageOverlay.d.ts +15 -0
- package/lib/typescript/components/MessageOverlay/MessageOverlay.d.ts.map +1 -0
- package/lib/typescript/components/MessageOverlay/OverlayBackdrop.d.ts +8 -0
- package/lib/typescript/components/MessageOverlay/OverlayBackdrop.d.ts.map +1 -0
- package/lib/typescript/components/MessageOverlay/OverlayReactionList.d.ts +36 -0
- package/lib/typescript/components/MessageOverlay/OverlayReactionList.d.ts.map +1 -0
- package/lib/typescript/components/MessageOverlay/OverlayReactions.d.ts +29 -0
- package/lib/typescript/components/MessageOverlay/OverlayReactions.d.ts.map +1 -0
- package/lib/typescript/components/MessageOverlay/OverlayReactionsAvatar.d.ts +11 -0
- package/lib/typescript/components/MessageOverlay/OverlayReactionsAvatar.d.ts.map +1 -0
- package/lib/typescript/components/MessageOverlay/OverlayReactionsItem.d.ts +11 -0
- package/lib/typescript/components/MessageOverlay/OverlayReactionsItem.d.ts.map +1 -0
- package/lib/typescript/components/MessageOverlay/hooks/useFetchReactions.d.ts.map +1 -0
- package/lib/typescript/components/MessageOverlay/hooks/useMessageActionAnimation.d.ts +11 -0
- package/lib/typescript/components/MessageOverlay/hooks/useMessageActionAnimation.d.ts.map +1 -0
- package/lib/typescript/components/Poll/CreatePollContent.d.ts +6 -0
- package/lib/typescript/components/Poll/CreatePollContent.d.ts.map +1 -0
- package/lib/typescript/components/Poll/Poll.d.ts +13 -0
- package/lib/typescript/components/Poll/Poll.d.ts.map +1 -0
- package/lib/typescript/components/Poll/components/Button.d.ts +35 -0
- package/lib/typescript/components/Poll/components/Button.d.ts.map +1 -0
- package/lib/typescript/components/Poll/components/CreatePollIcon.d.ts +3 -0
- package/lib/typescript/components/Poll/components/CreatePollIcon.d.ts.map +1 -0
- package/lib/typescript/components/Poll/components/CreatePollOptions.d.ts +34 -0
- package/lib/typescript/components/Poll/components/CreatePollOptions.d.ts.map +1 -0
- package/lib/typescript/components/Poll/components/PollAnswersList.d.ts +15 -0
- package/lib/typescript/components/Poll/components/PollAnswersList.d.ts.map +1 -0
- package/lib/typescript/components/Poll/components/PollInputDialog.d.ts +10 -0
- package/lib/typescript/components/Poll/components/PollInputDialog.d.ts.map +1 -0
- package/lib/typescript/components/Poll/components/PollModalHeader.d.ts +7 -0
- package/lib/typescript/components/Poll/components/PollModalHeader.d.ts.map +1 -0
- package/lib/typescript/components/Poll/components/PollOption.d.ts +16 -0
- package/lib/typescript/components/Poll/components/PollOption.d.ts.map +1 -0
- package/lib/typescript/components/Poll/components/PollResults/PollOptionFullResults.d.ts +18 -0
- package/lib/typescript/components/Poll/components/PollResults/PollOptionFullResults.d.ts.map +1 -0
- package/lib/typescript/components/Poll/components/PollResults/PollResultItem.d.ts +9 -0
- package/lib/typescript/components/Poll/components/PollResults/PollResultItem.d.ts.map +1 -0
- package/lib/typescript/components/Poll/components/PollResults/PollResults.d.ts +10 -0
- package/lib/typescript/components/Poll/components/PollResults/PollResults.d.ts.map +1 -0
- package/lib/typescript/components/Poll/components/PollResults/index.d.ts +4 -0
- package/lib/typescript/components/Poll/components/PollResults/index.d.ts.map +1 -0
- package/lib/typescript/components/Poll/components/index.d.ts +9 -0
- package/lib/typescript/components/Poll/components/index.d.ts.map +1 -0
- package/lib/typescript/components/Poll/hooks/usePollAnswersPagination.d.ts +29 -0
- package/lib/typescript/components/Poll/hooks/usePollAnswersPagination.d.ts.map +1 -0
- package/lib/typescript/components/Poll/hooks/usePollOptionVotesPagination.d.ts +32 -0
- package/lib/typescript/components/Poll/hooks/usePollOptionVotesPagination.d.ts.map +1 -0
- package/lib/typescript/components/Poll/hooks/usePollState.d.ts +26 -0
- package/lib/typescript/components/Poll/hooks/usePollState.d.ts.map +1 -0
- package/lib/typescript/components/Poll/hooks/usePollStateStore.d.ts +3 -0
- package/lib/typescript/components/Poll/hooks/usePollStateStore.d.ts.map +1 -0
- package/lib/typescript/components/Poll/index.d.ts +8 -0
- package/lib/typescript/components/Poll/index.d.ts.map +1 -0
- package/lib/typescript/components/ProgressControl/ProgressControl.d.ts.map +1 -1
- package/lib/typescript/components/ProgressControl/WaveProgressBar.d.ts.map +1 -1
- package/lib/typescript/components/Reply/Reply.d.ts.map +1 -1
- package/lib/typescript/components/Spinner/Spinner.d.ts.map +1 -0
- package/lib/typescript/components/ThreadList/ThreadList.d.ts.map +1 -1
- package/lib/typescript/components/ThreadList/ThreadListItem.d.ts.map +1 -1
- package/lib/typescript/components/ThreadList/ThreadListUnreadBanner.d.ts.map +1 -1
- package/lib/typescript/components/index.d.ts +11 -11
- package/lib/typescript/components/index.d.ts.map +1 -1
- package/lib/typescript/contexts/activeChannelsRefContext/ActiveChannelsRefContext.d.ts +11 -0
- package/lib/typescript/contexts/activeChannelsRefContext/ActiveChannelsRefContext.d.ts.map +1 -1
- package/lib/typescript/contexts/attachmentPickerContext/AttachmentPickerContext.d.ts +18 -2
- package/lib/typescript/contexts/attachmentPickerContext/AttachmentPickerContext.d.ts.map +1 -1
- package/lib/typescript/contexts/channelContext/ChannelContext.d.ts +25 -1
- package/lib/typescript/contexts/channelContext/ChannelContext.d.ts.map +1 -1
- package/lib/typescript/contexts/channelsContext/ChannelsContext.d.ts +11 -1
- package/lib/typescript/contexts/channelsContext/ChannelsContext.d.ts.map +1 -1
- package/lib/typescript/contexts/channelsStateContext/ChannelsStateContext.d.ts +11 -1
- package/lib/typescript/contexts/channelsStateContext/ChannelsStateContext.d.ts.map +1 -1
- package/lib/typescript/contexts/chatContext/ChatContext.d.ts +15 -1
- package/lib/typescript/contexts/chatContext/ChatContext.d.ts.map +1 -1
- package/lib/typescript/contexts/imageGalleryContext/ImageGalleryContext.d.ts +10 -0
- package/lib/typescript/contexts/imageGalleryContext/ImageGalleryContext.d.ts.map +1 -1
- package/lib/typescript/contexts/index.d.ts +2 -1
- package/lib/typescript/contexts/index.d.ts.map +1 -1
- package/lib/typescript/contexts/keyboardContext/KeyboardContext.d.ts +11 -0
- package/lib/typescript/contexts/keyboardContext/KeyboardContext.d.ts.map +1 -1
- package/lib/typescript/contexts/messageContext/MessageContext.d.ts +56 -21
- package/lib/typescript/contexts/messageContext/MessageContext.d.ts.map +1 -1
- package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts +22 -3
- package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts.map +1 -1
- package/lib/typescript/contexts/messageInputContext/hooks/useCreateMessageInputContext.d.ts +1 -1
- package/lib/typescript/contexts/messageInputContext/hooks/useCreateMessageInputContext.d.ts.map +1 -1
- package/lib/typescript/contexts/messageOverlayContext/MessageOverlayContext.d.ts +80 -0
- package/lib/typescript/contexts/messageOverlayContext/MessageOverlayContext.d.ts.map +1 -0
- package/lib/typescript/contexts/messageOverlayContext/hooks/useResettableState.d.ts +13 -0
- package/lib/typescript/contexts/messageOverlayContext/hooks/useResettableState.d.ts.map +1 -0
- package/lib/typescript/contexts/messageOverlayContext/hooks/useResettableState.test.d.ts +2 -0
- package/lib/typescript/contexts/messageOverlayContext/hooks/useResettableState.test.d.ts.map +1 -0
- package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts +45 -77
- package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts.map +1 -1
- package/lib/typescript/contexts/overlayContext/OverlayContext.d.ts +27 -2
- package/lib/typescript/contexts/overlayContext/OverlayContext.d.ts.map +1 -1
- package/lib/typescript/contexts/overlayContext/OverlayProvider.d.ts.map +1 -1
- package/lib/typescript/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.d.ts +3 -0
- package/lib/typescript/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.d.ts.map +1 -1
- package/lib/typescript/contexts/paginatedMessageListContext/PaginatedMessageListContext.d.ts +11 -1
- package/lib/typescript/contexts/paginatedMessageListContext/PaginatedMessageListContext.d.ts.map +1 -1
- package/lib/typescript/contexts/pollContext/createPollContentContext.d.ts +20 -0
- package/lib/typescript/contexts/pollContext/createPollContentContext.d.ts.map +1 -0
- package/lib/typescript/contexts/pollContext/index.d.ts +3 -0
- package/lib/typescript/contexts/pollContext/index.d.ts.map +1 -0
- package/lib/typescript/contexts/pollContext/pollContext.d.ts +14 -0
- package/lib/typescript/contexts/pollContext/pollContext.d.ts.map +1 -0
- package/lib/typescript/contexts/suggestionsContext/SuggestionsContext.d.ts +11 -1
- package/lib/typescript/contexts/suggestionsContext/SuggestionsContext.d.ts.map +1 -1
- package/lib/typescript/contexts/themeContext/utils/theme.d.ts +170 -61
- package/lib/typescript/contexts/themeContext/utils/theme.d.ts.map +1 -1
- package/lib/typescript/contexts/threadContext/ThreadContext.d.ts +11 -1
- package/lib/typescript/contexts/threadContext/ThreadContext.d.ts.map +1 -1
- package/lib/typescript/contexts/translationContext/TranslationContext.d.ts +11 -0
- package/lib/typescript/contexts/translationContext/TranslationContext.d.ts.map +1 -1
- package/lib/typescript/contexts/typingContext/TypingContext.d.ts +11 -1
- package/lib/typescript/contexts/typingContext/TypingContext.d.ts.map +1 -1
- package/lib/typescript/hooks/useStateStore.d.ts +2 -2
- package/lib/typescript/hooks/useStateStore.d.ts.map +1 -1
- package/lib/typescript/hooks/useTranslatedMessage.d.ts.map +1 -1
- package/lib/typescript/i18n/en.json +34 -0
- package/lib/typescript/i18n/es.json +38 -0
- package/lib/typescript/i18n/fr.json +38 -0
- package/lib/typescript/i18n/he.json +38 -0
- package/lib/typescript/i18n/hi.json +34 -0
- package/lib/typescript/i18n/it.json +38 -0
- package/lib/typescript/i18n/ja.json +34 -0
- package/lib/typescript/i18n/ko.json +34 -0
- package/lib/typescript/i18n/nl.json +34 -0
- package/lib/typescript/i18n/pt-br.json +38 -0
- package/lib/typescript/i18n/ru.json +42 -0
- package/lib/typescript/i18n/tr.json +34 -0
- package/lib/typescript/icons/Back.d.ts +4 -0
- package/lib/typescript/icons/Back.d.ts.map +1 -0
- package/lib/typescript/icons/DragHandle.d.ts +4 -0
- package/lib/typescript/icons/DragHandle.d.ts.map +1 -0
- package/lib/typescript/icons/PinHeader.d.ts +1 -5
- package/lib/typescript/icons/PinHeader.d.ts.map +1 -1
- package/lib/typescript/icons/PollThumbnail.d.ts +4 -0
- package/lib/typescript/icons/PollThumbnail.d.ts.map +1 -0
- package/lib/typescript/icons/SendPoll.d.ts +4 -0
- package/lib/typescript/icons/SendPoll.d.ts.map +1 -0
- package/lib/typescript/icons/index.d.ts +4 -0
- package/lib/typescript/icons/index.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +3 -2
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/native.d.ts +11 -9
- package/lib/typescript/native.d.ts.map +1 -1
- package/lib/typescript/store/{SqliteClient.d.ts → QuickSqliteClient.d.ts} +5 -6
- package/lib/typescript/store/QuickSqliteClient.d.ts.map +1 -0
- package/lib/typescript/store/apis/getReactionsforFilterSort.d.ts.map +1 -1
- package/lib/typescript/store/apis/index.d.ts +1 -0
- package/lib/typescript/store/apis/index.d.ts.map +1 -1
- package/lib/typescript/store/apis/updatePollMessage.d.ts +7 -0
- package/lib/typescript/store/apis/updatePollMessage.d.ts.map +1 -0
- package/lib/typescript/store/mappers/mapMessageToStorable.d.ts.map +1 -1
- package/lib/typescript/store/mappers/mapStorableToMessage.d.ts.map +1 -1
- package/lib/typescript/store/schema.d.ts +2 -0
- package/lib/typescript/store/schema.d.ts.map +1 -1
- package/lib/typescript/types/types.d.ts +0 -6
- package/lib/typescript/types/types.d.ts.map +1 -1
- package/lib/typescript/utils/StreamChatRN.d.ts +23 -0
- package/lib/typescript/utils/StreamChatRN.d.ts.map +1 -0
- package/lib/typescript/utils/getResizedImageUrl.d.ts +2 -3
- package/lib/typescript/utils/getResizedImageUrl.d.ts.map +1 -1
- package/lib/typescript/utils/i18n/Streami18n.d.ts +34 -0
- package/lib/typescript/utils/i18n/Streami18n.d.ts.map +1 -1
- package/package.json +12 -12
- package/src/__tests__/offline-support/offline-feature.js +5 -5
- package/src/__tests__/offline-support/optimistic-update.js +4 -4
- package/src/components/Attachment/Attachment.tsx +2 -2
- package/src/components/Attachment/Card.tsx +10 -10
- package/src/components/Attachment/FileAttachment.tsx +16 -8
- package/src/components/Attachment/FileAttachmentGroup.tsx +2 -2
- package/src/components/Attachment/Gallery.tsx +17 -20
- package/src/components/Attachment/Giphy.tsx +14 -14
- package/src/components/Attachment/__tests__/Attachment.test.js +2 -4
- package/src/components/Attachment/__tests__/Gallery.test.js +2 -0
- package/src/components/Attachment/utils/buildGallery/buildGallery.ts +1 -10
- package/src/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.ts +1 -4
- package/src/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.ts +1 -5
- package/src/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.ts +1 -6
- package/src/components/Attachment/utils/buildGallery/buildThumbnail.ts +6 -13
- package/src/components/Attachment/utils/buildGallery/buildThumbnailGrid.ts +1 -5
- package/src/components/AttachmentPicker/components/AttachmentPickerBottomSheetHandle.tsx +2 -2
- package/src/components/AttachmentPicker/components/AttachmentPickerItem.tsx +1 -1
- package/src/components/AttachmentPicker/components/AttachmentPickerSelectionBar.tsx +35 -2
- package/src/components/AutoCompleteInput/AutoCompleteSuggestionList.tsx +1 -1
- package/src/components/Avatar/Avatar.tsx +0 -3
- package/src/components/Avatar/GroupAvatar.tsx +0 -4
- package/src/components/Channel/Channel.tsx +159 -60
- package/src/components/Channel/__tests__/ownCapabilities.test.js +57 -57
- package/src/components/Channel/hooks/useCreateChannelContext.ts +2 -0
- package/src/components/Channel/hooks/useCreateInputMessageInputContext.ts +22 -3
- package/src/components/Channel/hooks/useCreateMessagesContext.ts +15 -26
- package/src/components/Channel/hooks/useCreateThreadContext.ts +7 -8
- package/src/components/ChannelList/ChannelList.tsx +17 -0
- package/src/components/ChannelList/ChannelListFooterLoadingIndicator.tsx +1 -1
- package/src/components/ChannelList/__tests__/ChannelList.test.js +5 -5
- package/src/components/ChannelList/hooks/listeners/useNewMessageNotification.ts +11 -2
- package/src/components/ChannelPreview/hooks/useLatestMessagePreview.ts +63 -4
- package/src/components/Chat/Chat.tsx +11 -3
- package/src/components/Chat/__tests__/Chat.test.js +179 -184
- package/src/components/Chat/hooks/handleEventToSyncDB.ts +22 -3
- package/src/components/Chat/hooks/useCreateChatContext.ts +2 -0
- package/src/components/Chat/hooks/useIsOnline.ts +10 -13
- package/src/components/ImageGallery/ImageGallery.tsx +121 -71
- package/src/components/ImageGallery/__tests__/AnimatedVideoGallery.test.tsx +11 -0
- package/src/components/ImageGallery/__tests__/ImageGallery.test.tsx +4 -3
- package/src/components/ImageGallery/__tests__/ImageGalleryFooter.test.tsx +5 -3
- package/src/components/ImageGallery/__tests__/ImageGalleryGrid.test.tsx +1 -1
- package/src/components/ImageGallery/__tests__/ImageGalleryGridHandle.test.tsx +1 -1
- package/src/components/ImageGallery/__tests__/ImageGalleryHeader.test.tsx +5 -3
- package/src/components/ImageGallery/__tests__/ImageGalleryOverlay.test.tsx +3 -0
- package/src/components/ImageGallery/components/AnimatedGalleryImage.tsx +5 -5
- package/src/components/ImageGallery/components/AnimatedGalleryVideo.tsx +9 -9
- package/src/components/ImageGallery/components/ImageGalleryFooter.tsx +86 -97
- package/src/components/ImageGallery/components/ImageGalleryHeader.tsx +44 -46
- package/src/components/ImageGallery/components/ImageGalleryOverlay.tsx +1 -2
- package/src/components/ImageGallery/components/__tests__/ImageGalleryHeader.test.tsx +4 -3
- package/src/components/ImageGallery/hooks/useImageGalleryGestures.tsx +466 -481
- package/src/components/Indicators/LoadingIndicator.tsx +1 -1
- package/src/components/Message/Message.tsx +217 -113
- package/src/components/Message/MessageSimple/MessageAvatar.tsx +0 -1
- package/src/components/Message/MessageSimple/MessageContent.tsx +171 -28
- package/src/components/Message/MessageSimple/MessageDeleted.tsx +1 -1
- package/src/components/Message/MessageSimple/MessageFooter.tsx +1 -1
- package/src/components/Message/MessageSimple/MessagePinnedHeader.tsx +66 -21
- package/src/components/Message/MessageSimple/MessageSimple.tsx +55 -247
- package/src/components/Message/MessageSimple/MessageTextContainer.tsx +4 -3
- package/src/components/Message/MessageSimple/ReactionList.tsx +398 -0
- package/src/components/Message/MessageSimple/__tests__/MessageContent.test.js +2 -1
- package/src/components/Message/MessageSimple/__tests__/MessageTextContainer.test.tsx +3 -3
- package/src/components/Message/MessageSimple/__tests__/__snapshots__/MessagePinnedHeader.test.js.snap +19 -23
- package/src/components/Message/hooks/useCreateMessageContext.ts +16 -4
- package/src/components/Message/hooks/useMessageActions.tsx +68 -48
- package/src/components/Message/hooks/useProcessReactions.ts +10 -17
- package/src/components/Message/utils/messageActions.ts +20 -10
- package/src/components/MessageInput/FileUploadPreview.tsx +2 -2
- package/src/components/MessageInput/MessageInput.tsx +59 -1
- package/src/components/MessageInput/__tests__/AudioAttachmentUploadPreviewExpo.test.tsx +4 -1
- package/src/components/MessageInput/__tests__/AudioAttachmentUploadPreviewNative.test.tsx +4 -1
- package/src/components/MessageInput/__tests__/FileUploadPreview.test.js +5 -3
- package/src/components/MessageInput/__tests__/MessageInput.test.js +2 -0
- package/src/components/MessageInput/components/AudioRecorder/AudioRecordingButton.tsx +1 -7
- package/src/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.tsx +1 -0
- package/src/components/MessageInput/components/NativeAttachmentPicker.tsx +29 -2
- package/src/components/MessageInput/hooks/useAudioController.tsx +3 -0
- package/src/components/MessageList/MessageList.tsx +1 -1
- package/src/components/MessageList/__tests__/MessageList.test.js +21 -0
- package/src/components/MessageOverlay/MessageActionList.tsx +171 -0
- package/src/components/MessageOverlay/MessageActionListItem.tsx +144 -0
- package/src/components/MessageOverlay/MessageOverlay.tsx +637 -0
- package/src/components/MessageOverlay/OverlayBackdrop.tsx +18 -0
- package/src/components/MessageOverlay/OverlayReactionList.tsx +447 -0
- package/src/components/MessageOverlay/OverlayReactions.tsx +250 -0
- package/src/components/{MessageMenu/MessageUserReactionsAvatar.tsx → MessageOverlay/OverlayReactionsAvatar.tsx} +6 -6
- package/src/components/MessageOverlay/OverlayReactionsItem.tsx +188 -0
- package/src/components/{MessageMenu → MessageOverlay}/hooks/useFetchReactions.ts +0 -2
- package/src/components/MessageOverlay/hooks/useMessageActionAnimation.tsx +44 -0
- package/src/components/Poll/CreatePollContent.tsx +299 -0
- package/src/components/Poll/Poll.tsx +126 -0
- package/src/components/Poll/components/Button.tsx +465 -0
- package/src/components/Poll/components/CreatePollIcon.tsx +14 -0
- package/src/components/Poll/components/CreatePollOptions.tsx +351 -0
- package/src/components/Poll/components/PollAnswersList.tsx +134 -0
- package/src/components/Poll/components/PollInputDialog.tsx +117 -0
- package/src/components/Poll/components/PollModalHeader.tsx +42 -0
- package/src/components/Poll/components/PollOption.tsx +172 -0
- package/src/components/Poll/components/PollResults/PollOptionFullResults.tsx +108 -0
- package/src/components/Poll/components/PollResults/PollResultItem.tsx +115 -0
- package/src/components/Poll/components/PollResults/PollResults.tsx +79 -0
- package/src/components/Poll/components/PollResults/index.ts +3 -0
- package/src/components/Poll/components/index.ts +8 -0
- package/src/components/Poll/hooks/usePollAnswersPagination.ts +109 -0
- package/src/components/Poll/hooks/usePollOptionVotesPagination.ts +119 -0
- package/src/components/Poll/hooks/usePollState.ts +122 -0
- package/src/components/Poll/hooks/usePollStateStore.ts +13 -0
- package/src/components/Poll/index.ts +10 -0
- package/src/components/ProgressControl/ProgressControl.tsx +38 -28
- package/src/components/ProgressControl/WaveProgressBar.tsx +37 -29
- package/src/components/Reply/Reply.tsx +4 -5
- package/src/components/Thread/__tests__/__snapshots__/Thread.test.js.snap +796 -903
- package/src/components/ThreadList/ThreadList.tsx +6 -2
- package/src/components/ThreadList/ThreadListItem.tsx +9 -8
- package/src/components/ThreadList/ThreadListUnreadBanner.tsx +3 -2
- package/src/components/docs/data.js +27 -13
- package/src/components/index.ts +11 -11
- package/src/contexts/__tests__/index.test.tsx +5 -0
- package/src/contexts/activeChannelsRefContext/ActiveChannelsRefContext.tsx +27 -0
- package/src/contexts/attachmentPickerContext/AttachmentPickerContext.tsx +41 -2
- package/src/contexts/channelContext/ChannelContext.tsx +46 -2
- package/src/contexts/channelsContext/ChannelsContext.tsx +28 -1
- package/src/contexts/channelsStateContext/ChannelsStateContext.tsx +30 -1
- package/src/contexts/chatContext/ChatContext.tsx +30 -1
- package/src/contexts/imageGalleryContext/ImageGalleryContext.tsx +29 -0
- package/src/contexts/index.ts +2 -1
- package/src/contexts/keyboardContext/KeyboardContext.tsx +30 -0
- package/src/contexts/messageContext/MessageContext.tsx +75 -22
- package/src/contexts/messageInputContext/MessageInputContext.tsx +75 -21
- package/src/contexts/messageInputContext/__tests__/isValidMessage.test.tsx +3 -2
- package/src/contexts/messageInputContext/__tests__/pickFile.test.tsx +4 -2
- package/src/contexts/messageInputContext/__tests__/uploadFile.test.tsx +2 -1
- package/src/contexts/messageInputContext/__tests__/uploadImage.test.tsx +2 -1
- package/src/contexts/messageInputContext/hooks/useCreateMessageInputContext.ts +14 -1
- package/src/contexts/messageOverlayContext/MessageOverlayContext.tsx +148 -0
- package/src/contexts/messageOverlayContext/hooks/useResettableState.test.tsx +48 -0
- package/src/contexts/messageOverlayContext/hooks/useResettableState.ts +22 -0
- package/src/contexts/messagesContext/MessagesContext.tsx +70 -84
- package/src/contexts/overlayContext/OverlayContext.tsx +56 -2
- package/src/contexts/overlayContext/OverlayProvider.tsx +67 -23
- package/src/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.tsx +3 -0
- package/src/contexts/paginatedMessageListContext/PaginatedMessageListContext.tsx +30 -1
- package/src/contexts/pollContext/createPollContentContext.tsx +49 -0
- package/src/contexts/pollContext/index.ts +2 -0
- package/src/contexts/pollContext/pollContext.tsx +43 -0
- package/src/contexts/suggestionsContext/SuggestionsContext.tsx +30 -1
- package/src/contexts/themeContext/utils/theme.ts +326 -126
- package/src/contexts/threadContext/ThreadContext.tsx +28 -1
- package/src/contexts/translationContext/TranslationContext.tsx +29 -0
- package/src/contexts/typingContext/TypingContext.tsx +28 -1
- package/src/hooks/__tests__/useTranslatedMessage.test.tsx +9 -3
- package/src/hooks/useStateStore.ts +12 -12
- package/src/hooks/useTranslatedMessage.ts +4 -1
- package/src/i18n/en.json +34 -0
- package/src/i18n/es.json +38 -0
- package/src/i18n/fr.json +38 -0
- package/src/i18n/he.json +38 -0
- package/src/i18n/hi.json +34 -0
- package/src/i18n/it.json +38 -0
- package/src/i18n/ja.json +34 -0
- package/src/i18n/ko.json +34 -0
- package/src/i18n/nl.json +34 -0
- package/src/i18n/pt-br.json +38 -0
- package/src/i18n/ru.json +42 -0
- package/src/i18n/tr.json +34 -0
- package/src/icons/Back.tsx +12 -0
- package/src/icons/DragHandle.tsx +9 -0
- package/src/icons/PinHeader.tsx +7 -13
- package/src/icons/PollThumbnail.tsx +12 -0
- package/src/icons/SendPoll.tsx +12 -0
- package/src/icons/index.ts +4 -0
- package/src/index.ts +3 -2
- package/src/mock-builders/DB/mock.ts +84 -82
- package/src/native.ts +26 -15
- package/src/store/{SqliteClient.ts → QuickSqliteClient.ts} +55 -75
- package/src/store/apis/addPendingTask.ts +5 -5
- package/src/store/apis/deleteChannel.ts +3 -3
- package/src/store/apis/deleteMember.ts +3 -3
- package/src/store/apis/deleteMessage.ts +3 -3
- package/src/store/apis/deleteMessagesForChannel.ts +3 -3
- package/src/store/apis/deletePendingTask.ts +3 -3
- package/src/store/apis/deleteReaction.ts +3 -3
- package/src/store/apis/deleteReactions.ts +2 -2
- package/src/store/apis/getAllChannelIds.ts +2 -2
- package/src/store/apis/getAppSettings.ts +3 -3
- package/src/store/apis/getChannelMessages.ts +2 -2
- package/src/store/apis/getChannels.ts +2 -2
- package/src/store/apis/getChannelsForFilterSort.ts +2 -2
- package/src/store/apis/getLastSyncedAt.ts +3 -3
- package/src/store/apis/getMembers.ts +2 -2
- package/src/store/apis/getPendingTasks.ts +3 -3
- package/src/store/apis/getReactions.ts +2 -2
- package/src/store/apis/getReactionsforFilterSort.ts +3 -5
- package/src/store/apis/getReads.ts +2 -2
- package/src/store/apis/index.ts +1 -0
- package/src/store/apis/insertReaction.ts +3 -3
- package/src/store/apis/queries/selectChannelIdsForFilterSort.ts +3 -3
- package/src/store/apis/queries/selectChannels.ts +3 -3
- package/src/store/apis/queries/selectMembersForChannels.ts +3 -3
- package/src/store/apis/queries/selectMessagesForChannels.ts +4 -4
- package/src/store/apis/queries/selectReactionsForMessages.ts +3 -3
- package/src/store/apis/queries/selectReadsForChannels.ts +4 -4
- package/src/store/apis/updateMessage.ts +4 -4
- package/src/store/apis/updatePollMessage.ts +48 -0
- package/src/store/apis/updateReaction.ts +3 -3
- package/src/store/apis/upsertAppSettings.ts +3 -3
- package/src/store/apis/upsertChannelData.ts +3 -3
- package/src/store/apis/upsertChannelDataFromChannel.ts +2 -2
- package/src/store/apis/upsertChannels.ts +3 -3
- package/src/store/apis/upsertCidsForQuery.ts +3 -3
- package/src/store/apis/upsertMembers.ts +3 -3
- package/src/store/apis/upsertMessages.ts +3 -3
- package/src/store/apis/upsertReads.ts +3 -3
- package/src/store/apis/upsertUserSyncStatus.ts +3 -3
- package/src/store/mappers/mapMessageToStorable.ts +4 -0
- package/src/store/mappers/mapStorableToMessage.ts +4 -0
- package/src/store/schema.ts +4 -0
- package/src/types/types.ts +0 -7
- package/src/utils/DBSyncManager.ts +4 -4
- package/src/utils/StreamChatRN.ts +27 -0
- package/src/utils/__tests__/getResizedImageUrl.test.ts +2 -1
- package/src/utils/getResizedImageUrl.ts +5 -7
- package/src/version.json +1 -1
- package/lib/commonjs/components/Message/MessageSimple/ReactionList/ReactionListBottom.js +0 -234
- package/lib/commonjs/components/Message/MessageSimple/ReactionList/ReactionListBottom.js.map +0 -1
- package/lib/commonjs/components/Message/MessageSimple/ReactionList/ReactionListTop.js +0 -195
- package/lib/commonjs/components/Message/MessageSimple/ReactionList/ReactionListTop.js.map +0 -1
- package/lib/commonjs/components/Message/hooks/useMessageData.js +0 -38
- package/lib/commonjs/components/Message/hooks/useMessageData.js.map +0 -1
- package/lib/commonjs/components/MessageMenu/MessageActionList.js +0 -35
- package/lib/commonjs/components/MessageMenu/MessageActionList.js.map +0 -1
- package/lib/commonjs/components/MessageMenu/MessageActionListItem.js +0 -60
- package/lib/commonjs/components/MessageMenu/MessageActionListItem.js.map +0 -1
- package/lib/commonjs/components/MessageMenu/MessageMenu.js +0 -70
- package/lib/commonjs/components/MessageMenu/MessageMenu.js.map +0 -1
- package/lib/commonjs/components/MessageMenu/MessageReactionPicker.js +0 -81
- package/lib/commonjs/components/MessageMenu/MessageReactionPicker.js.map +0 -1
- package/lib/commonjs/components/MessageMenu/MessageUserReactions.js +0 -171
- package/lib/commonjs/components/MessageMenu/MessageUserReactions.js.map +0 -1
- package/lib/commonjs/components/MessageMenu/MessageUserReactionsAvatar.js.map +0 -1
- package/lib/commonjs/components/MessageMenu/MessageUserReactionsItem.js +0 -110
- package/lib/commonjs/components/MessageMenu/MessageUserReactionsItem.js.map +0 -1
- package/lib/commonjs/components/MessageMenu/ReactionButton.js +0 -59
- package/lib/commonjs/components/MessageMenu/ReactionButton.js.map +0 -1
- package/lib/commonjs/components/MessageMenu/hooks/useFetchReactions.js.map +0 -1
- package/lib/commonjs/components/UIComponents/BottomSheetModal.js +0 -152
- package/lib/commonjs/components/UIComponents/BottomSheetModal.js.map +0 -1
- package/lib/commonjs/components/UIComponents/ImageBackground.js.map +0 -1
- package/lib/commonjs/components/UIComponents/Spinner.js.map +0 -1
- package/lib/commonjs/components/UIComponents/index.js +0 -37
- package/lib/commonjs/components/UIComponents/index.js.map +0 -1
- package/lib/commonjs/contexts/chatConfigContext/ChatConfigContext.js.map +0 -1
- package/lib/commonjs/store/SqliteClient.js +0 -179
- package/lib/commonjs/store/SqliteClient.js.map +0 -1
- package/lib/module/components/Message/MessageSimple/ReactionList/ReactionListBottom.js +0 -234
- package/lib/module/components/Message/MessageSimple/ReactionList/ReactionListBottom.js.map +0 -1
- package/lib/module/components/Message/MessageSimple/ReactionList/ReactionListTop.js +0 -195
- package/lib/module/components/Message/MessageSimple/ReactionList/ReactionListTop.js.map +0 -1
- package/lib/module/components/Message/hooks/useMessageData.js +0 -38
- package/lib/module/components/Message/hooks/useMessageData.js.map +0 -1
- package/lib/module/components/MessageMenu/MessageActionList.js +0 -35
- package/lib/module/components/MessageMenu/MessageActionList.js.map +0 -1
- package/lib/module/components/MessageMenu/MessageActionListItem.js +0 -60
- package/lib/module/components/MessageMenu/MessageActionListItem.js.map +0 -1
- package/lib/module/components/MessageMenu/MessageMenu.js +0 -70
- package/lib/module/components/MessageMenu/MessageMenu.js.map +0 -1
- package/lib/module/components/MessageMenu/MessageReactionPicker.js +0 -81
- package/lib/module/components/MessageMenu/MessageReactionPicker.js.map +0 -1
- package/lib/module/components/MessageMenu/MessageUserReactions.js +0 -171
- package/lib/module/components/MessageMenu/MessageUserReactions.js.map +0 -1
- package/lib/module/components/MessageMenu/MessageUserReactionsAvatar.js.map +0 -1
- package/lib/module/components/MessageMenu/MessageUserReactionsItem.js +0 -110
- package/lib/module/components/MessageMenu/MessageUserReactionsItem.js.map +0 -1
- package/lib/module/components/MessageMenu/ReactionButton.js +0 -59
- package/lib/module/components/MessageMenu/ReactionButton.js.map +0 -1
- package/lib/module/components/MessageMenu/hooks/useFetchReactions.js.map +0 -1
- package/lib/module/components/UIComponents/BottomSheetModal.js +0 -152
- package/lib/module/components/UIComponents/BottomSheetModal.js.map +0 -1
- package/lib/module/components/UIComponents/ImageBackground.js.map +0 -1
- package/lib/module/components/UIComponents/Spinner.js.map +0 -1
- package/lib/module/components/UIComponents/index.js +0 -37
- package/lib/module/components/UIComponents/index.js.map +0 -1
- package/lib/module/contexts/chatConfigContext/ChatConfigContext.js.map +0 -1
- package/lib/module/store/SqliteClient.js +0 -179
- package/lib/module/store/SqliteClient.js.map +0 -1
- package/lib/typescript/components/Message/MessageSimple/ReactionList/ReactionListBottom.d.ts +0 -12
- package/lib/typescript/components/Message/MessageSimple/ReactionList/ReactionListBottom.d.ts.map +0 -1
- package/lib/typescript/components/Message/MessageSimple/ReactionList/ReactionListTop.d.ts +0 -20
- package/lib/typescript/components/Message/MessageSimple/ReactionList/ReactionListTop.d.ts.map +0 -1
- package/lib/typescript/components/Message/hooks/useMessageData.d.ts +0 -12
- package/lib/typescript/components/Message/hooks/useMessageData.d.ts.map +0 -1
- package/lib/typescript/components/MessageMenu/MessageActionList.d.ts +0 -16
- package/lib/typescript/components/MessageMenu/MessageActionList.d.ts.map +0 -1
- package/lib/typescript/components/MessageMenu/MessageActionListItem.d.ts.map +0 -1
- package/lib/typescript/components/MessageMenu/MessageMenu.d.ts +0 -32
- package/lib/typescript/components/MessageMenu/MessageMenu.d.ts.map +0 -1
- package/lib/typescript/components/MessageMenu/MessageReactionPicker.d.ts +0 -30
- package/lib/typescript/components/MessageMenu/MessageReactionPicker.d.ts.map +0 -1
- package/lib/typescript/components/MessageMenu/MessageUserReactions.d.ts +0 -21
- package/lib/typescript/components/MessageMenu/MessageUserReactions.d.ts.map +0 -1
- package/lib/typescript/components/MessageMenu/MessageUserReactionsAvatar.d.ts +0 -11
- package/lib/typescript/components/MessageMenu/MessageUserReactionsAvatar.d.ts.map +0 -1
- package/lib/typescript/components/MessageMenu/MessageUserReactionsItem.d.ts +0 -16
- package/lib/typescript/components/MessageMenu/MessageUserReactionsItem.d.ts.map +0 -1
- package/lib/typescript/components/MessageMenu/ReactionButton.d.ts +0 -25
- package/lib/typescript/components/MessageMenu/ReactionButton.d.ts.map +0 -1
- package/lib/typescript/components/MessageMenu/hooks/useFetchReactions.d.ts.map +0 -1
- package/lib/typescript/components/UIComponents/BottomSheetModal.d.ts +0 -21
- package/lib/typescript/components/UIComponents/BottomSheetModal.d.ts.map +0 -1
- package/lib/typescript/components/UIComponents/ImageBackground.d.ts.map +0 -1
- package/lib/typescript/components/UIComponents/Spinner.d.ts.map +0 -1
- package/lib/typescript/components/UIComponents/index.d.ts +0 -4
- package/lib/typescript/components/UIComponents/index.d.ts.map +0 -1
- package/lib/typescript/contexts/chatConfigContext/ChatConfigContext.d.ts +0 -16
- package/lib/typescript/contexts/chatConfigContext/ChatConfigContext.d.ts.map +0 -1
- package/lib/typescript/store/SqliteClient.d.ts.map +0 -1
- package/src/components/Message/MessageSimple/ReactionList/ReactionListBottom.tsx +0 -295
- package/src/components/Message/MessageSimple/ReactionList/ReactionListTop.tsx +0 -271
- package/src/components/Message/MessageSimple/__tests__/MessageSimple.test.js +0 -208
- package/src/components/Message/MessageSimple/__tests__/ReactionListBottom.test.js +0 -166
- package/src/components/Message/MessageSimple/__tests__/ReactionListTop.test.js +0 -92
- package/src/components/Message/hooks/useMessageData.ts +0 -59
- package/src/components/MessageMenu/MessageActionList.tsx +0 -49
- package/src/components/MessageMenu/MessageActionListItem.tsx +0 -86
- package/src/components/MessageMenu/MessageMenu.tsx +0 -123
- package/src/components/MessageMenu/MessageReactionPicker.tsx +0 -122
- package/src/components/MessageMenu/MessageUserReactions.tsx +0 -209
- package/src/components/MessageMenu/MessageUserReactionsItem.tsx +0 -130
- package/src/components/MessageMenu/ReactionButton.tsx +0 -72
- package/src/components/MessageMenu/__tests__/MessageActionList.test.tsx +0 -48
- package/src/components/MessageMenu/__tests__/MessageActionListItem.test.tsx +0 -48
- package/src/components/MessageMenu/__tests__/MessageReactionPicker.test.tsx +0 -101
- package/src/components/MessageMenu/__tests__/MessageUserReactions.test.tsx +0 -186
- package/src/components/MessageMenu/__tests__/MessageUserReactionsAvatar.test.tsx +0 -35
- package/src/components/MessageMenu/__tests__/MessageUserReactionsItem.test.tsx +0 -81
- package/src/components/MessageMenu/__tests__/ReactionButton.test.tsx +0 -77
- package/src/components/UIComponents/BottomSheetModal.tsx +0 -170
- package/src/components/UIComponents/index.ts +0 -3
- package/src/contexts/chatConfigContext/ChatConfigContext.tsx +0 -33
- /package/lib/typescript/components/{UIComponents/ImageBackground.d.ts → ImageBackground.d.ts} +0 -0
- /package/lib/typescript/components/{MessageMenu → MessageOverlay}/hooks/useFetchReactions.d.ts +0 -0
- /package/lib/typescript/components/{UIComponents → Spinner}/Spinner.d.ts +0 -0
- /package/src/components/{UIComponents/ImageBackground.tsx → ImageBackground.tsx} +0 -0
- /package/src/components/{UIComponents → Spinner}/Spinner.tsx +0 -0
|
@@ -2,11 +2,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2
2
|
value: true
|
|
3
3
|
});
|
|
4
4
|
exports.useImageGalleryGestures = exports.clamp = exports.IsSwiping = exports.HasPinched = void 0;
|
|
5
|
-
var _react = require("react");
|
|
6
5
|
var _reactNative = require("react-native");
|
|
7
|
-
var _reactNativeGestureHandler = require("react-native-gesture-handler");
|
|
8
6
|
var _reactNativeReanimated = require("react-native-reanimated");
|
|
9
|
-
var _ImageGalleryContext = require("../../../contexts/imageGalleryContext/ImageGalleryContext");
|
|
10
7
|
var _OverlayContext = require("../../../contexts/overlayContext/OverlayContext");
|
|
11
8
|
var _native = require("../../../native");
|
|
12
9
|
var HasPinched = function (HasPinched) {
|
|
@@ -39,15 +36,7 @@ var useImageGalleryGestures = function useImageGalleryGestures(_ref) {
|
|
|
39
36
|
translateX = _ref.translateX,
|
|
40
37
|
translateY = _ref.translateY,
|
|
41
38
|
translationX = _ref.translationX;
|
|
42
|
-
var _useImageGalleryConte = (0, _ImageGalleryContext.useImageGalleryContext)(),
|
|
43
|
-
setMessages = _useImageGalleryConte.setMessages,
|
|
44
|
-
setSelectedMessage = _useImageGalleryConte.setSelectedMessage;
|
|
45
|
-
var doubleTapRef = (0, _react.useRef)(undefined);
|
|
46
|
-
var panRef = (0, _react.useRef)(undefined);
|
|
47
|
-
var pinchRef = (0, _react.useRef)(undefined);
|
|
48
|
-
var singleTapRef = (0, _react.useRef)(undefined);
|
|
49
39
|
var _useOverlayContext = (0, _OverlayContext.useOverlayContext)(),
|
|
50
|
-
overlay = _useOverlayContext.overlay,
|
|
51
40
|
setOverlay = _useOverlayContext.setOverlay;
|
|
52
41
|
var isAndroid = _reactNative.Platform.OS === 'android';
|
|
53
42
|
var hasHitBottomScale = (0, _reactNativeReanimated.useSharedValue)(1);
|
|
@@ -97,239 +86,250 @@ var useImageGalleryGestures = function useImageGalleryGestures(_ref) {
|
|
|
97
86
|
scale.value = 1;
|
|
98
87
|
offsetScale.value = 1;
|
|
99
88
|
};
|
|
100
|
-
var
|
|
101
|
-
|
|
102
|
-
(
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
offsetX.value = translateX.value;
|
|
106
|
-
offsetY.value = translateY.value;
|
|
107
|
-
}
|
|
108
|
-
hasPinched.value = HasPinched.FALSE;
|
|
109
|
-
}).onChange(function (event) {
|
|
110
|
-
if (event.numberOfPointers === 1 && !isPinch.value) {
|
|
111
|
-
if (isAndroid && hasPinched.value === HasPinched.TRUE) {
|
|
112
|
-
hasPinched.value = HasPinched.FALSE;
|
|
113
|
-
isSwiping.value = IsSwiping.FALSE;
|
|
114
|
-
offsetX.value = translateX.value + event.translationX;
|
|
115
|
-
offsetY.value = translateY.value - event.translationY;
|
|
116
|
-
}
|
|
117
|
-
if (isSwiping.value === IsSwiping.UNDETERMINED) {
|
|
118
|
-
var maxXYRatio = isAndroid ? 1 : 0.25;
|
|
119
|
-
if (Math.abs(event.translationX / event.translationY) > maxXYRatio && (Math.abs(-halfScreenWidth * (scale.value - 1) - offsetX.value) < 3 || Math.abs(halfScreenWidth * (scale.value - 1) - offsetX.value) < 3)) {
|
|
120
|
-
isSwiping.value = IsSwiping.TRUE;
|
|
121
|
-
}
|
|
122
|
-
if (Math.abs(event.translationY) > 25) {
|
|
89
|
+
var onPan = (0, _reactNativeReanimated.useAnimatedGestureHandler)({
|
|
90
|
+
onActive: function onActive(evt) {
|
|
91
|
+
if (evt.numberOfPointers === 1 && !isPinch.value) {
|
|
92
|
+
if (isAndroid && hasPinched.value === HasPinched.TRUE) {
|
|
93
|
+
hasPinched.value = HasPinched.FALSE;
|
|
123
94
|
isSwiping.value = IsSwiping.FALSE;
|
|
95
|
+
offsetX.value = translateX.value + evt.translationX;
|
|
96
|
+
offsetY.value = translateY.value - evt.translationY;
|
|
97
|
+
}
|
|
98
|
+
if (isSwiping.value === IsSwiping.UNDETERMINED) {
|
|
99
|
+
var maxXYRatio = isAndroid ? 1 : 0.25;
|
|
100
|
+
if (Math.abs(evt.translationX / evt.translationY) > maxXYRatio && (Math.abs(-halfScreenWidth * (scale.value - 1) - offsetX.value) < 3 || Math.abs(halfScreenWidth * (scale.value - 1) - offsetX.value) < 3)) {
|
|
101
|
+
isSwiping.value = IsSwiping.TRUE;
|
|
102
|
+
}
|
|
103
|
+
if (Math.abs(evt.translationY) > 25) {
|
|
104
|
+
isSwiping.value = IsSwiping.FALSE;
|
|
105
|
+
}
|
|
124
106
|
}
|
|
107
|
+
var localEvtScale = scale.value / offsetScale.value;
|
|
108
|
+
translateX.value = scale.value !== offsetScale.value ? offsetX.value * localEvtScale - evt.translationX : offsetX.value - evt.translationX;
|
|
109
|
+
translateY.value = isSwiping.value !== IsSwiping.TRUE ? scale.value !== offsetScale.value ? offsetY.value * localEvtScale + evt.translationY : offsetY.value + evt.translationY : translateY.value;
|
|
110
|
+
scale.value = currentImageHeight * offsetScale.value < screenHeight && translateY.value > 0 ? offsetScale.value * (1 - 1 / 3 * (translateY.value / screenHeight)) : currentImageHeight * offsetScale.value > screenHeight && translateY.value > currentImageHeight / 2 * offsetScale.value - halfScreenHeight ? offsetScale.value * (1 - 1 / 3 * ((translateY.value - (currentImageHeight / 2 * offsetScale.value - halfScreenHeight)) / screenHeight)) : scale.value;
|
|
111
|
+
overlayOpacity.value = localEvtScale;
|
|
125
112
|
}
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
113
|
+
},
|
|
114
|
+
onFinish: function onFinish(evt) {
|
|
115
|
+
if (!isPinch.value && evt.numberOfPointers < 2) {
|
|
116
|
+
var finalXPosition = evt.translationX - evt.velocityX * 0.3;
|
|
117
|
+
var finalYPosition = evt.translationY + evt.velocityY * 0.1;
|
|
118
|
+
if (index.value < photoLength - 1 && Math.abs(halfScreenWidth * (scale.value - 1) + offsetX.value) < 3 && translateX.value < 0 && finalXPosition < -halfScreenWidth && isSwiping.value === IsSwiping.TRUE) {
|
|
119
|
+
(0, _reactNativeReanimated.cancelAnimation)(translationX);
|
|
120
|
+
translationX.value = (0, _reactNativeReanimated.withTiming)(-(screenWidth + MARGIN) * (index.value + 1), {
|
|
121
|
+
duration: 200,
|
|
122
|
+
easing: _reactNativeReanimated.Easing.out(_reactNativeReanimated.Easing.ease)
|
|
123
|
+
}, function () {
|
|
124
|
+
resetMovementValues();
|
|
125
|
+
index.value = index.value + 1;
|
|
126
|
+
(0, _reactNativeReanimated.runOnJS)(setSelectedIndex)(index.value);
|
|
127
|
+
});
|
|
128
|
+
} else if (index.value > 0 && Math.abs(-halfScreenWidth * (scale.value - 1) + offsetX.value) < 3 && translateX.value > 0 && finalXPosition > halfScreenWidth && isSwiping.value === IsSwiping.TRUE) {
|
|
129
|
+
(0, _reactNativeReanimated.cancelAnimation)(translationX);
|
|
130
|
+
translationX.value = (0, _reactNativeReanimated.withTiming)(-(screenWidth + MARGIN) * (index.value - 1), {
|
|
131
|
+
duration: 200,
|
|
132
|
+
easing: _reactNativeReanimated.Easing.out(_reactNativeReanimated.Easing.ease)
|
|
133
|
+
}, function () {
|
|
134
|
+
resetMovementValues();
|
|
135
|
+
index.value = index.value - 1;
|
|
136
|
+
(0, _reactNativeReanimated.runOnJS)(setSelectedIndex)(index.value);
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
translateX.value = scale.value < 1 ? (0, _reactNativeReanimated.withTiming)(0) : translateX.value > halfScreenWidth * (scale.value - 1) ? (0, _reactNativeReanimated.withTiming)(halfScreenWidth * (scale.value - 1), {
|
|
140
|
+
duration: 200
|
|
141
|
+
}) : translateX.value < -halfScreenWidth * (scale.value - 1) ? (0, _reactNativeReanimated.withTiming)(-halfScreenWidth * (scale.value - 1), {
|
|
142
|
+
duration: 200
|
|
143
|
+
}) : (0, _reactNativeReanimated.withDecay)({
|
|
144
|
+
clamp: [-halfScreenWidth * (scale.value - 1), halfScreenWidth * (scale.value - 1)],
|
|
145
|
+
deceleration: 0.99,
|
|
146
|
+
velocity: -evt.velocityX
|
|
145
147
|
});
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
easing: _reactNativeReanimated.Easing.out(_reactNativeReanimated.Easing.ease)
|
|
151
|
-
}, function () {
|
|
152
|
-
resetMovementValues();
|
|
153
|
-
index.value = index.value - 1;
|
|
154
|
-
(0, _reactNativeReanimated.runOnJS)(setSelectedIndex)(index.value);
|
|
148
|
+
translateY.value = currentImageHeight * scale.value < screenHeight ? (0, _reactNativeReanimated.withTiming)(0) : translateY.value > currentImageHeight / 2 * scale.value - halfScreenHeight ? (0, _reactNativeReanimated.withTiming)(currentImageHeight / 2 * scale.value - halfScreenHeight) : translateY.value < -currentImageHeight / 2 * scale.value + halfScreenHeight ? (0, _reactNativeReanimated.withTiming)(-currentImageHeight / 2 * scale.value + halfScreenHeight) : (0, _reactNativeReanimated.withDecay)({
|
|
149
|
+
clamp: [-currentImageHeight / 2 * scale.value + halfScreenHeight, currentImageHeight / 2 * scale.value - halfScreenHeight],
|
|
150
|
+
deceleration: 0.99,
|
|
151
|
+
velocity: evt.velocityY
|
|
155
152
|
});
|
|
153
|
+
resetTouchValues();
|
|
154
|
+
scale.value = scale.value !== offsetScale.value ? (0, _reactNativeReanimated.withTiming)(offsetScale.value) : offsetScale.value;
|
|
155
|
+
if (finalYPosition > halfScreenHeight && offsetY.value + 8 >= currentImageHeight / 2 * scale.value - halfScreenHeight && isSwiping.value !== IsSwiping.TRUE && translateY.value !== 0 && !(Math.abs(halfScreenWidth * (scale.value - 1) + offsetX.value) < 3 && translateX.value < 0 && finalXPosition < -halfScreenWidth) && !(Math.abs(-halfScreenWidth * (scale.value - 1) + offsetX.value) < 3 && translateX.value > 0 && finalXPosition > halfScreenWidth)) {
|
|
156
|
+
(0, _reactNativeReanimated.cancelAnimation)(translateX);
|
|
157
|
+
(0, _reactNativeReanimated.cancelAnimation)(translateY);
|
|
158
|
+
(0, _reactNativeReanimated.cancelAnimation)(scale);
|
|
159
|
+
overlayOpacity.value = (0, _reactNativeReanimated.withTiming)(0, {
|
|
160
|
+
duration: 200,
|
|
161
|
+
easing: _reactNativeReanimated.Easing.out(_reactNativeReanimated.Easing.ease)
|
|
162
|
+
}, function () {
|
|
163
|
+
(0, _reactNativeReanimated.runOnJS)(setOverlay)('none');
|
|
164
|
+
});
|
|
165
|
+
scale.value = (0, _reactNativeReanimated.withTiming)(0.6, {
|
|
166
|
+
duration: 200,
|
|
167
|
+
easing: _reactNativeReanimated.Easing.out(_reactNativeReanimated.Easing.ease)
|
|
168
|
+
});
|
|
169
|
+
translateY.value = evt.velocityY > 1000 ? (0, _reactNativeReanimated.withDecay)({
|
|
170
|
+
velocity: evt.velocityY
|
|
171
|
+
}) : (0, _reactNativeReanimated.withTiming)(halfScreenHeight + currentImageHeight / 2 * scale.value, {
|
|
172
|
+
duration: 200,
|
|
173
|
+
easing: _reactNativeReanimated.Easing.out(_reactNativeReanimated.Easing.ease)
|
|
174
|
+
});
|
|
175
|
+
translateX.value = (0, _reactNativeReanimated.withDecay)({
|
|
176
|
+
velocity: -evt.velocityX
|
|
177
|
+
});
|
|
178
|
+
}
|
|
156
179
|
}
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
duration: 200
|
|
161
|
-
}) : (0, _reactNativeReanimated.withDecay)({
|
|
162
|
-
clamp: [-halfScreenWidth * (scale.value - 1), halfScreenWidth * (scale.value - 1)],
|
|
163
|
-
deceleration: 0.99,
|
|
164
|
-
velocity: -event.velocityX
|
|
165
|
-
});
|
|
166
|
-
translateY.value = currentImageHeight * scale.value < screenHeight ? (0, _reactNativeReanimated.withTiming)(0) : translateY.value > currentImageHeight / 2 * scale.value - halfScreenHeight ? (0, _reactNativeReanimated.withTiming)(currentImageHeight / 2 * scale.value - halfScreenHeight) : translateY.value < -currentImageHeight / 2 * scale.value + halfScreenHeight ? (0, _reactNativeReanimated.withTiming)(-currentImageHeight / 2 * scale.value + halfScreenHeight) : (0, _reactNativeReanimated.withDecay)({
|
|
167
|
-
clamp: [-currentImageHeight / 2 * scale.value + halfScreenHeight, currentImageHeight / 2 * scale.value - halfScreenHeight],
|
|
168
|
-
deceleration: 0.99,
|
|
169
|
-
velocity: event.velocityY
|
|
170
|
-
});
|
|
171
|
-
resetTouchValues();
|
|
172
|
-
scale.value = scale.value !== offsetScale.value ? (0, _reactNativeReanimated.withTiming)(offsetScale.value) : offsetScale.value;
|
|
173
|
-
if (finalYPosition > halfScreenHeight && offsetY.value + 8 >= currentImageHeight / 2 * scale.value - halfScreenHeight && isSwiping.value !== IsSwiping.TRUE && translateY.value !== 0 && !(Math.abs(halfScreenWidth * (scale.value - 1) + offsetX.value) < 3 && translateX.value < 0 && finalXPosition < -halfScreenWidth) && !(Math.abs(-halfScreenWidth * (scale.value - 1) + offsetX.value) < 3 && translateX.value > 0 && finalXPosition > halfScreenWidth)) {
|
|
180
|
+
},
|
|
181
|
+
onStart: function onStart() {
|
|
182
|
+
if (!isPinch.value) {
|
|
174
183
|
(0, _reactNativeReanimated.cancelAnimation)(translateX);
|
|
175
184
|
(0, _reactNativeReanimated.cancelAnimation)(translateY);
|
|
176
185
|
(0, _reactNativeReanimated.cancelAnimation)(scale);
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
easing: _reactNativeReanimated.Easing.out(_reactNativeReanimated.Easing.ease)
|
|
180
|
-
}, function () {
|
|
181
|
-
(0, _reactNativeReanimated.runOnJS)(setSelectedMessage)(undefined);
|
|
182
|
-
(0, _reactNativeReanimated.runOnJS)(setMessages)([]);
|
|
183
|
-
(0, _reactNativeReanimated.runOnJS)(setOverlay)('none');
|
|
184
|
-
});
|
|
185
|
-
scale.value = (0, _reactNativeReanimated.withTiming)(0.6, {
|
|
186
|
-
duration: 200,
|
|
187
|
-
easing: _reactNativeReanimated.Easing.out(_reactNativeReanimated.Easing.ease)
|
|
188
|
-
});
|
|
189
|
-
translateY.value = event.velocityY > 1000 ? (0, _reactNativeReanimated.withDecay)({
|
|
190
|
-
velocity: event.velocityY
|
|
191
|
-
}) : (0, _reactNativeReanimated.withTiming)(halfScreenHeight + currentImageHeight / 2 * scale.value, {
|
|
192
|
-
duration: 200,
|
|
193
|
-
easing: _reactNativeReanimated.Easing.out(_reactNativeReanimated.Easing.ease)
|
|
194
|
-
});
|
|
195
|
-
translateX.value = (0, _reactNativeReanimated.withDecay)({
|
|
196
|
-
velocity: -event.velocityX
|
|
197
|
-
});
|
|
186
|
+
offsetX.value = translateX.value;
|
|
187
|
+
offsetY.value = translateY.value;
|
|
198
188
|
}
|
|
189
|
+
hasPinched.value = HasPinched.FALSE;
|
|
199
190
|
}
|
|
200
|
-
})
|
|
201
|
-
var
|
|
202
|
-
|
|
203
|
-
(
|
|
204
|
-
|
|
205
|
-
|
|
191
|
+
}, [currentImageHeight, photoLength]);
|
|
192
|
+
var onPinch = (0, _reactNativeReanimated.useAnimatedGestureHandler)({
|
|
193
|
+
onActive: function onActive(evt) {
|
|
194
|
+
if (!isPinch.value && isAndroid) {
|
|
195
|
+
hasPinched.value = HasPinched.TRUE;
|
|
196
|
+
(0, _reactNativeReanimated.cancelAnimation)(translateX);
|
|
197
|
+
(0, _reactNativeReanimated.cancelAnimation)(translateY);
|
|
198
|
+
(0, _reactNativeReanimated.cancelAnimation)(scale);
|
|
199
|
+
isSwiping.value = IsSwiping.UNDETERMINED;
|
|
200
|
+
numberOfPinchFingers.value = evt.numberOfPointers;
|
|
201
|
+
offsetX.value = translateX.value;
|
|
202
|
+
offsetY.value = translateY.value;
|
|
203
|
+
adjustedFocalX.value = evt.focalX - (halfScreenWidth - offsetX.value);
|
|
204
|
+
adjustedFocalY.value = evt.focalY - (halfScreenHeight + offsetY.value);
|
|
205
|
+
originX.value = adjustedFocalX.value;
|
|
206
|
+
originY.value = adjustedFocalY.value;
|
|
207
|
+
offsetScale.value = scale.value;
|
|
208
|
+
}
|
|
206
209
|
isPinch.value = true;
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
(
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
var localEvtScale = scale.value / offsetScale.value;
|
|
237
|
-
if (scale.value !== 8 && scale.value !== 1) {
|
|
238
|
-
hasHitTopScale.value = 0;
|
|
239
|
-
hasHitBottomScale.value = 0;
|
|
240
|
-
} else if (scale.value === 8 && hasHitTopScale.value === 0) {
|
|
241
|
-
hasHitTopScale.value = 1;
|
|
242
|
-
(0, _reactNativeReanimated.runOnJS)(_native.triggerHaptic)('impactLight');
|
|
243
|
-
} else if (scale.value === 1 && hasHitBottomScale.value === 0) {
|
|
244
|
-
hasHitBottomScale.value = 1;
|
|
245
|
-
(0, _reactNativeReanimated.runOnJS)(_native.triggerHaptic)('impactLight');
|
|
246
|
-
}
|
|
247
|
-
adjustedFocalX.value = event.focalX - (halfScreenWidth - offsetX.value);
|
|
248
|
-
adjustedFocalY.value = event.focalY - (halfScreenHeight + offsetY.value);
|
|
249
|
-
if (numberOfPinchFingers.value !== event.numberOfPointers) {
|
|
250
|
-
numberOfPinchFingers.value = event.numberOfPointers;
|
|
251
|
-
if (event.numberOfPointers === 1) {
|
|
252
|
-
focalOffsetX.value = oldFocalX.value - adjustedFocalX.value;
|
|
253
|
-
focalOffsetY.value = oldFocalY.value - adjustedFocalY.value;
|
|
210
|
+
scale.value = clamp(offsetScale.value * evt.scale, 1, 8);
|
|
211
|
+
var localEvtScale = scale.value / offsetScale.value;
|
|
212
|
+
if (scale.value !== 8 && scale.value !== 1) {
|
|
213
|
+
hasHitTopScale.value = 0;
|
|
214
|
+
hasHitBottomScale.value = 0;
|
|
215
|
+
} else if (scale.value === 8 && hasHitTopScale.value === 0) {
|
|
216
|
+
hasHitTopScale.value = 1;
|
|
217
|
+
(0, _reactNativeReanimated.runOnJS)(_native.triggerHaptic)('impactLight');
|
|
218
|
+
} else if (scale.value === 1 && hasHitBottomScale.value === 0) {
|
|
219
|
+
hasHitBottomScale.value = 1;
|
|
220
|
+
(0, _reactNativeReanimated.runOnJS)(_native.triggerHaptic)('impactLight');
|
|
221
|
+
}
|
|
222
|
+
adjustedFocalX.value = evt.focalX - (halfScreenWidth - offsetX.value);
|
|
223
|
+
adjustedFocalY.value = evt.focalY - (halfScreenHeight + offsetY.value);
|
|
224
|
+
if (numberOfPinchFingers.value !== evt.numberOfPointers) {
|
|
225
|
+
numberOfPinchFingers.value = evt.numberOfPointers;
|
|
226
|
+
if (evt.numberOfPointers === 1) {
|
|
227
|
+
focalOffsetX.value = oldFocalX.value - adjustedFocalX.value;
|
|
228
|
+
focalOffsetY.value = oldFocalY.value - adjustedFocalY.value;
|
|
229
|
+
} else if (numberOfPinchFingers.value > 1) {
|
|
230
|
+
originX.value = originX.value - (oldFocalX.value / localEvtScale - adjustedFocalX.value / localEvtScale);
|
|
231
|
+
originY.value = originY.value - (oldFocalY.value / localEvtScale - adjustedFocalY.value / localEvtScale);
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
if (numberOfPinchFingers.value === 1) {
|
|
235
|
+
oldFocalX.value = adjustedFocalX.value + focalOffsetX.value;
|
|
236
|
+
oldFocalY.value = adjustedFocalY.value + focalOffsetY.value;
|
|
237
|
+
translateX.value = offsetX.value - oldFocalX.value + localEvtScale * originX.value;
|
|
238
|
+
translateY.value = offsetY.value + oldFocalY.value - localEvtScale * originY.value;
|
|
254
239
|
} else if (numberOfPinchFingers.value > 1) {
|
|
255
|
-
|
|
256
|
-
|
|
240
|
+
oldFocalX.value = adjustedFocalX.value;
|
|
241
|
+
oldFocalY.value = adjustedFocalY.value;
|
|
242
|
+
translateX.value = offsetX.value - adjustedFocalX.value + localEvtScale * originX.value;
|
|
243
|
+
translateY.value = offsetY.value + adjustedFocalY.value - localEvtScale * originY.value;
|
|
257
244
|
}
|
|
245
|
+
},
|
|
246
|
+
onFinish: function onFinish() {
|
|
247
|
+
if (isPinch.value) {
|
|
248
|
+
translateX.value = scale.value < 1 ? (0, _reactNativeReanimated.withTiming)(0) : translateX.value > halfScreenWidth * (scale.value - 1) ? (0, _reactNativeReanimated.withTiming)(halfScreenWidth * (scale.value - 1)) : translateX.value < -halfScreenWidth * (scale.value - 1) ? (0, _reactNativeReanimated.withTiming)(-halfScreenWidth * (scale.value - 1)) : translateX.value;
|
|
249
|
+
translateY.value = currentImageHeight * scale.value < screenHeight ? (0, _reactNativeReanimated.withTiming)(0) : translateY.value > currentImageHeight / 2 * scale.value - screenHeight / 2 ? (0, _reactNativeReanimated.withTiming)(currentImageHeight / 2 * scale.value - screenHeight / 2) : translateY.value < -currentImageHeight / 2 * scale.value + screenHeight / 2 ? (0, _reactNativeReanimated.withTiming)(-currentImageHeight / 2 * scale.value + screenHeight / 2) : translateY.value;
|
|
250
|
+
offsetScale.value = scale.value < 1 ? 1 : scale.value;
|
|
251
|
+
scale.value = scale.value < 1 ? (0, _reactNativeReanimated.withTiming)(1) : scale.value;
|
|
252
|
+
resetTouchValues();
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
onStart: function onStart(evt) {
|
|
256
|
+
if (!isAndroid) {
|
|
257
|
+
(0, _reactNativeReanimated.cancelAnimation)(translateX);
|
|
258
|
+
(0, _reactNativeReanimated.cancelAnimation)(translateY);
|
|
259
|
+
(0, _reactNativeReanimated.cancelAnimation)(scale);
|
|
260
|
+
isPinch.value = true;
|
|
261
|
+
isSwiping.value = IsSwiping.UNDETERMINED;
|
|
262
|
+
numberOfPinchFingers.value = evt.numberOfPointers;
|
|
263
|
+
offsetX.value = translateX.value;
|
|
264
|
+
offsetY.value = translateY.value;
|
|
265
|
+
adjustedFocalX.value = evt.focalX - (halfScreenWidth - offsetX.value);
|
|
266
|
+
adjustedFocalY.value = evt.focalY - (halfScreenHeight + offsetY.value);
|
|
267
|
+
originX.value = adjustedFocalX.value;
|
|
268
|
+
originY.value = adjustedFocalY.value;
|
|
269
|
+
offsetScale.value = scale.value;
|
|
270
|
+
}
|
|
271
|
+
hasPinched.value = HasPinched.FALSE;
|
|
258
272
|
}
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
} else if (numberOfPinchFingers.value > 1) {
|
|
265
|
-
oldFocalX.value = adjustedFocalX.value;
|
|
266
|
-
oldFocalY.value = adjustedFocalY.value;
|
|
267
|
-
translateX.value = offsetX.value - adjustedFocalX.value + localEvtScale * originX.value;
|
|
268
|
-
translateY.value = offsetY.value + adjustedFocalY.value - localEvtScale * originY.value;
|
|
269
|
-
}
|
|
270
|
-
}).onEnd(function () {
|
|
271
|
-
if (isPinch.value) {
|
|
272
|
-
translateX.value = scale.value < 1 ? (0, _reactNativeReanimated.withTiming)(0) : translateX.value > halfScreenWidth * (scale.value - 1) ? (0, _reactNativeReanimated.withTiming)(halfScreenWidth * (scale.value - 1)) : translateX.value < -halfScreenWidth * (scale.value - 1) ? (0, _reactNativeReanimated.withTiming)(-halfScreenWidth * (scale.value - 1)) : translateX.value;
|
|
273
|
-
translateY.value = currentImageHeight * scale.value < screenHeight ? (0, _reactNativeReanimated.withTiming)(0) : translateY.value > currentImageHeight / 2 * scale.value - screenHeight / 2 ? (0, _reactNativeReanimated.withTiming)(currentImageHeight / 2 * scale.value - screenHeight / 2) : translateY.value < -currentImageHeight / 2 * scale.value + screenHeight / 2 ? (0, _reactNativeReanimated.withTiming)(-currentImageHeight / 2 * scale.value + screenHeight / 2) : translateY.value;
|
|
274
|
-
offsetScale.value = scale.value < 1 ? 1 : scale.value;
|
|
275
|
-
scale.value = scale.value < 1 ? (0, _reactNativeReanimated.withTiming)(1) : scale.value;
|
|
276
|
-
resetTouchValues();
|
|
273
|
+
}, [currentImageHeight]);
|
|
274
|
+
var onSingleTap = (0, _reactNativeReanimated.useAnimatedGestureHandler)({
|
|
275
|
+
onActive: function onActive() {
|
|
276
|
+
(0, _reactNativeReanimated.cancelAnimation)(headerFooterVisible);
|
|
277
|
+
headerFooterVisible.value = headerFooterVisible.value > 0 ? (0, _reactNativeReanimated.withTiming)(0) : (0, _reactNativeReanimated.withTiming)(1);
|
|
277
278
|
}
|
|
278
|
-
})
|
|
279
|
-
var
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
tapY.value = event.absoluteY;
|
|
286
|
-
}).onEnd(function (event) {
|
|
287
|
-
if (Math.abs(tapX.value - event.absoluteX) < 64 && Math.abs(tapY.value - event.absoluteY) < 64) {
|
|
288
|
-
if (offsetScale.value === 1 && offsetX.value === 0 && offsetY.value === 0) {
|
|
289
|
-
offsetScale.value = 2;
|
|
290
|
-
scale.value = (0, _reactNativeReanimated.withTiming)(2, {
|
|
291
|
-
duration: 200,
|
|
292
|
-
easing: _reactNativeReanimated.Easing.out(_reactNativeReanimated.Easing.ease)
|
|
293
|
-
});
|
|
294
|
-
translateX.value = (0, _reactNativeReanimated.withTiming)(event.absoluteX - halfScreenWidth, {
|
|
295
|
-
duration: 200,
|
|
296
|
-
easing: _reactNativeReanimated.Easing.out(_reactNativeReanimated.Easing.ease)
|
|
297
|
-
});
|
|
298
|
-
if (currentImageHeight * 2 > screenHeight) {
|
|
299
|
-
var translateYTopBottom = event.absoluteY > halfScreenHeight ? -(currentImageHeight * 2 - screenHeight) / 2 : (currentImageHeight * 2 - screenHeight) / 2;
|
|
300
|
-
translateY.value = (0, _reactNativeReanimated.withTiming)(translateYTopBottom, {
|
|
279
|
+
});
|
|
280
|
+
var onDoubleTap = (0, _reactNativeReanimated.useAnimatedGestureHandler)({
|
|
281
|
+
onActive: function onActive(evt) {
|
|
282
|
+
if (Math.abs(tapX.value - evt.absoluteX) < 64 && Math.abs(tapY.value - evt.absoluteY) < 64) {
|
|
283
|
+
if (offsetScale.value === 1 && offsetX.value === 0 && offsetY.value === 0) {
|
|
284
|
+
offsetScale.value = 2;
|
|
285
|
+
scale.value = (0, _reactNativeReanimated.withTiming)(2, {
|
|
301
286
|
duration: 200,
|
|
302
287
|
easing: _reactNativeReanimated.Easing.out(_reactNativeReanimated.Easing.ease)
|
|
303
288
|
});
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
289
|
+
translateX.value = (0, _reactNativeReanimated.withTiming)(evt.absoluteX - halfScreenWidth, {
|
|
290
|
+
duration: 200,
|
|
291
|
+
easing: _reactNativeReanimated.Easing.out(_reactNativeReanimated.Easing.ease)
|
|
292
|
+
});
|
|
293
|
+
if (currentImageHeight * 2 > screenHeight) {
|
|
294
|
+
var translateYTopBottom = evt.absoluteY > halfScreenHeight ? -(currentImageHeight * 2 - screenHeight) / 2 : (currentImageHeight * 2 - screenHeight) / 2;
|
|
295
|
+
translateY.value = (0, _reactNativeReanimated.withTiming)(translateYTopBottom, {
|
|
296
|
+
duration: 200,
|
|
297
|
+
easing: _reactNativeReanimated.Easing.out(_reactNativeReanimated.Easing.ease)
|
|
298
|
+
});
|
|
299
|
+
}
|
|
300
|
+
} else {
|
|
301
|
+
offsetScale.value = 1;
|
|
302
|
+
scale.value = (0, _reactNativeReanimated.withTiming)(1, {
|
|
303
|
+
duration: 200,
|
|
304
|
+
easing: _reactNativeReanimated.Easing.out(_reactNativeReanimated.Easing.ease)
|
|
305
|
+
});
|
|
306
|
+
offsetX.value = 0;
|
|
307
|
+
offsetY.value = 0;
|
|
308
|
+
translateX.value = (0, _reactNativeReanimated.withTiming)(0, {
|
|
309
|
+
duration: 200,
|
|
310
|
+
easing: _reactNativeReanimated.Easing.out(_reactNativeReanimated.Easing.ease)
|
|
311
|
+
});
|
|
312
|
+
translateY.value = (0, _reactNativeReanimated.withTiming)(0, {
|
|
313
|
+
duration: 200,
|
|
314
|
+
easing: _reactNativeReanimated.Easing.out(_reactNativeReanimated.Easing.ease)
|
|
315
|
+
});
|
|
316
|
+
if (headerFooterVisible.value !== 0) {
|
|
317
|
+
(0, _reactNativeReanimated.cancelAnimation)(headerFooterVisible);
|
|
318
|
+
headerFooterVisible.value = (0, _reactNativeReanimated.withTiming)(0);
|
|
319
|
+
}
|
|
324
320
|
}
|
|
325
321
|
}
|
|
322
|
+
},
|
|
323
|
+
onStart: function onStart(evt) {
|
|
324
|
+
tapX.value = evt.absoluteX;
|
|
325
|
+
tapY.value = evt.absoluteY;
|
|
326
326
|
}
|
|
327
|
-
})
|
|
327
|
+
});
|
|
328
328
|
return {
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
329
|
+
onDoubleTap: onDoubleTap,
|
|
330
|
+
onPan: onPan,
|
|
331
|
+
onPinch: onPinch,
|
|
332
|
+
onSingleTap: onSingleTap
|
|
333
333
|
};
|
|
334
334
|
};
|
|
335
335
|
exports.useImageGalleryGestures = useImageGalleryGestures;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_reactNativeGestureHandler","_reactNativeReanimated","_ImageGalleryContext","_OverlayContext","_native","HasPinched","exports","IsSwiping","MARGIN","useImageGalleryGestures","_ref","currentImageHeight","halfScreenHeight","halfScreenWidth","headerFooterVisible","offsetScale","overlayOpacity","photoLength","scale","screenHeight","screenWidth","selectedIndex","setSelectedIndex","translateX","translateY","translationX","_useImageGalleryConte","useImageGalleryContext","setMessages","setSelectedMessage","doubleTapRef","useRef","undefined","panRef","pinchRef","singleTapRef","_useOverlayContext","useOverlayContext","overlay","setOverlay","isAndroid","Platform","OS","hasHitBottomScale","useSharedValue","hasHitTopScale","originX","originY","oldFocalX","oldFocalY","focalX","focalY","index","value","offsetX","offsetY","focalOffsetX","focalOffsetY","adjustedFocalX","adjustedFocalY","tapX","tapY","numberOfPinchFingers","isSwiping","isPinch","hasPinched","resetTouchValues","UNDETERMINED","resetMovementValues","pan","Gesture","Pan","enabled","maxPointers","minDistance","onStart","cancelAnimation","FALSE","onChange","event","numberOfPointers","TRUE","translationY","maxXYRatio","Math","abs","localEvtScale","onEnd","finalXPosition","velocityX","finalYPosition","velocityY","withTiming","duration","easing","Easing","out","ease","runOnJS","withDecay","clamp","deceleration","velocity","simultaneousWithExternalGesture","withRef","pinch","Pinch","triggerHaptic","singleTap","Tap","minPointers","numberOfTaps","requireExternalGestureToFail","doubleTap","maxDeltaX","maxDeltaY","maxDistance","absoluteX","absoluteY","translateYTopBottom","lowerBound","upperBound","min","max"],"sourceRoot":"../../../../../src","sources":["components/ImageGallery/hooks/useImageGalleryGestures.tsx"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,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Q,EAAE,GAAG;UACbC,MAAM,EAAEC,6BAAM,CAACC,GAAG,CAACD,6BAAM,CAACE,IAAI;QAChC,CAAC,CAAC;QACFzE,UAAU,CAAC6B,KAAK,GAAG,IAAAuC,iCAAU,EAAC,CAAC,EAAE;UAC/BC,QAAQ,EAAE,GAAG;UACbC,MAAM,EAAEC,6BAAM,CAACC,GAAG,CAACD,6BAAM,CAACE,IAAI;QAChC,CAAC,CAAC;QACF,IAAInF,mBAAmB,CAACuC,KAAK,KAAK,CAAC,EAAE;UACnC,IAAAuB,sCAAe,EAAC9D,mBAAmB,CAAC;UACpCA,mBAAmB,CAACuC,KAAK,GAAG,IAAAuC,iCAAU,EAAC,CAAC,CAAC;QAC3C;MACF;IACF;EACF,CAAC,CAAC,CACDY,OAAO,CAAC1E,YAAY,CAAC;EAExB,OAAO;IACLmF,SAAS,EAATA,SAAS;IACT5C,GAAG,EAAHA,GAAG;IACHoC,KAAK,EAALA,KAAK;IACLG,SAAS,EAATA;EACF,CAAC;AACH,CAAC;AAACtG,OAAA,CAAAG,uBAAA,GAAAA,uBAAA;AAKK,IAAM2F,KAAK,GAAG,SAARA,KAAKA,CAAI/C,KAAa,EAAEmE,UAAkB,EAAEC,UAAkB,EAAK;EAC9E,SAAS;;EACT,OAAOrC,IAAI,CAACsC,GAAG,CAACtC,IAAI,CAACuC,GAAG,CAACH,UAAU,EAAEnE,KAAK,CAAC,EAAEoE,UAAU,CAAC;AAC1D,CAAC;AAACnH,OAAA,CAAA8F,KAAA,GAAAA,KAAA","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_reactNativeReanimated","_OverlayContext","_native","HasPinched","exports","IsSwiping","MARGIN","useImageGalleryGestures","_ref","currentImageHeight","halfScreenHeight","halfScreenWidth","headerFooterVisible","offsetScale","overlayOpacity","photoLength","scale","screenHeight","screenWidth","selectedIndex","setSelectedIndex","translateX","translateY","translationX","_useOverlayContext","useOverlayContext","setOverlay","isAndroid","Platform","OS","hasHitBottomScale","useSharedValue","hasHitTopScale","originX","originY","oldFocalX","oldFocalY","focalX","focalY","index","value","offsetX","offsetY","focalOffsetX","focalOffsetY","adjustedFocalX","adjustedFocalY","tapX","tapY","numberOfPinchFingers","isSwiping","isPinch","hasPinched","resetTouchValues","UNDETERMINED","resetMovementValues","onPan","useAnimatedGestureHandler","onActive","evt","numberOfPointers","TRUE","FALSE","translationY","maxXYRatio","Math","abs","localEvtScale","onFinish","finalXPosition","velocityX","finalYPosition","velocityY","cancelAnimation","withTiming","duration","easing","Easing","out","ease","runOnJS","withDecay","clamp","deceleration","velocity","onStart","onPinch","triggerHaptic","onSingleTap","onDoubleTap","absoluteX","absoluteY","translateYTopBottom","lowerBound","upperBound","min","max"],"sourceRoot":"../../../../../src","sources":["components/ImageGallery/hooks/useImageGalleryGestures.tsx"],"mappings":";;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAMA,IAAAC,sBAAA,GAAAD,OAAA;AAWA,IAAAE,eAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AAAgD,IAEpCI,UAAU,aAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAA,OAAVA,UAAU;AAAA;AAAAC,OAAA,CAAAD,UAAA,GAAAA,UAAA;AAAA,IAKVE,SAAS,aAATA,SAAS;EAATA,SAAS,CAATA,SAAS;EAATA,SAAS,CAATA,SAAS;EAATA,SAAS,CAATA,SAAS;EAAA,OAATA,SAAS;AAAA;AAAAD,OAAA,CAAAC,SAAA,GAAAA,SAAA;AAMrB,IAAMC,MAAM,GAAG,EAAE;AAEV,IAAMC,uBAAuB,GAAG,SAA1BA,uBAAuBA,CAAAC,IAAA,EAgC9B;EAAA,IA/BJC,kBAAkB,GAAAD,IAAA,CAAlBC,kBAAkB;IAClBC,gBAAgB,GAAAF,IAAA,CAAhBE,gBAAgB;IAChBC,eAAe,GAAAH,IAAA,CAAfG,eAAe;IACfC,mBAAmB,GAAAJ,IA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,CAAAG,uBAAA,GAAAA,uBAAA;AAKK,IAAM2E,KAAK,GAAG,SAARA,KAAKA,CAAI1C,KAAa,EAAEqD,UAAkB,EAAEC,UAAkB,EAAK;EAC9E,SAAS;;EACT,OAAO7B,IAAI,CAAC8B,GAAG,CAAC9B,IAAI,CAAC+B,GAAG,CAACH,UAAU,EAAErD,KAAK,CAAC,EAAEsD,UAAU,CAAC;AAC1D,CAAC;AAAC1F,OAAA,CAAA8E,KAAA,GAAAA,KAAA","ignoreList":[]}
|
|
@@ -7,7 +7,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
7
7
|
var _reactNative = require("react-native");
|
|
8
8
|
var _ThemeContext = require("../../contexts/themeContext/ThemeContext");
|
|
9
9
|
var _TranslationContext = require("../../contexts/translationContext/TranslationContext");
|
|
10
|
-
var _Spinner = require("../
|
|
10
|
+
var _Spinner = require("../Spinner/Spinner");
|
|
11
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
12
|
var _this = this,
|
|
13
13
|
_jsxFileName = "/home/runner/work/stream-chat-react-native/stream-chat-react-native/package/src/components/Indicators/LoadingIndicator.tsx";
|