stream-chat-react-native-core 5.40.0-rc.2 → 5.41.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/lib/commonjs/components/Attachment/Attachment.js +1 -1
- package/lib/commonjs/components/Attachment/Attachment.js.map +1 -1
- package/lib/commonjs/components/Attachment/Card.js +6 -6
- package/lib/commonjs/components/Attachment/Card.js.map +1 -1
- package/lib/commonjs/components/Attachment/FileAttachment.js +5 -5
- package/lib/commonjs/components/Attachment/FileAttachment.js.map +1 -1
- package/lib/commonjs/components/Attachment/FileAttachmentGroup.js +1 -1
- package/lib/commonjs/components/Attachment/FileAttachmentGroup.js.map +1 -1
- package/lib/commonjs/components/Attachment/Gallery.js +22 -29
- package/lib/commonjs/components/Attachment/Gallery.js.map +1 -1
- package/lib/commonjs/components/Attachment/Giphy.js +8 -8
- package/lib/commonjs/components/Attachment/Giphy.js.map +1 -1
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildGallery.js +0 -7
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildGallery.js.map +1 -1
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.js +1 -3
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.js.map +1 -1
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.js +0 -3
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.js.map +1 -1
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.js +0 -4
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.js.map +1 -1
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildThumbnail.js +0 -2
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildThumbnail.js.map +1 -1
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildThumbnailGrid.js +0 -2
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildThumbnailGrid.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerItem.js +3 -3
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerItem.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerSelectionBar.js +27 -0
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerSelectionBar.js.map +1 -1
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionList.js +2 -1
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionList.js.map +1 -1
- package/lib/commonjs/components/Avatar/Avatar.js +0 -4
- package/lib/commonjs/components/Avatar/Avatar.js.map +1 -1
- package/lib/commonjs/components/Avatar/GroupAvatar.js +0 -4
- package/lib/commonjs/components/Avatar/GroupAvatar.js.map +1 -1
- package/lib/commonjs/components/Channel/Channel.js +445 -301
- package/lib/commonjs/components/Channel/Channel.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateChannelContext.js +2 -0
- package/lib/commonjs/components/Channel/hooks/useCreateChannelContext.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateInputMessageInputContext.js +9 -3
- package/lib/commonjs/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js +15 -27
- package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateThreadContext.js +9 -8
- package/lib/commonjs/components/Channel/hooks/useCreateThreadContext.js.map +1 -1
- package/lib/commonjs/components/ChannelList/ChannelList.js +2 -0
- package/lib/commonjs/components/ChannelList/ChannelList.js.map +1 -1
- package/lib/commonjs/components/ChannelList/ChannelListFooterLoadingIndicator.js +1 -1
- package/lib/commonjs/components/ChannelList/ChannelListFooterLoadingIndicator.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/listeners/useNewMessageNotification.js +18 -8
- package/lib/commonjs/components/ChannelList/hooks/listeners/useNewMessageNotification.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/hooks/useLatestMessagePreview.js +46 -3
- package/lib/commonjs/components/ChannelPreview/hooks/useLatestMessagePreview.js.map +1 -1
- package/lib/commonjs/components/Chat/Chat.js +11 -2
- package/lib/commonjs/components/Chat/Chat.js.map +1 -1
- package/lib/commonjs/components/Chat/hooks/handleEventToSyncDB.js +13 -3
- package/lib/commonjs/components/Chat/hooks/handleEventToSyncDB.js.map +1 -1
- package/lib/commonjs/components/Chat/hooks/useCreateChatContext.js +2 -0
- package/lib/commonjs/components/Chat/hooks/useCreateChatContext.js.map +1 -1
- package/lib/commonjs/components/Chat/hooks/useIsOnline.js +13 -16
- package/lib/commonjs/components/Chat/hooks/useIsOnline.js.map +1 -1
- package/lib/commonjs/components/{UIComponents/ImageBackground.js → ImageBackground.js} +1 -1
- package/lib/commonjs/components/ImageBackground.js.map +1 -0
- package/lib/commonjs/components/ImageGallery/ImageGallery.js +96 -58
- package/lib/commonjs/components/ImageGallery/ImageGallery.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/AnimatedGalleryVideo.js +3 -3
- package/lib/commonjs/components/ImageGallery/components/AnimatedGalleryVideo.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryFooter.js +90 -92
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js +39 -39
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryOverlay.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/hooks/useImageGalleryGestures.js +221 -221
- package/lib/commonjs/components/ImageGallery/hooks/useImageGalleryGestures.js.map +1 -1
- package/lib/commonjs/components/Indicators/LoadingIndicator.js +1 -1
- package/lib/commonjs/components/Indicators/LoadingIndicator.js.map +1 -1
- package/lib/commonjs/components/Message/Message.js +186 -123
- package/lib/commonjs/components/Message/Message.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageAvatar.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageContent.js +168 -48
- package/lib/commonjs/components/Message/MessageSimple/MessageContent.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageDeleted.js +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageDeleted.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageFooter.js +1 -0
- package/lib/commonjs/components/Message/MessageSimple/MessageFooter.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessagePinnedHeader.js +34 -20
- package/lib/commonjs/components/Message/MessageSimple/MessagePinnedHeader.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageSimple.js +44 -180
- package/lib/commonjs/components/Message/MessageSimple/MessageSimple.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageTextContainer.js +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageTextContainer.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/ReactionList.js +305 -0
- package/lib/commonjs/components/Message/MessageSimple/ReactionList.js.map +1 -0
- package/lib/commonjs/components/Message/hooks/useCreateMessageContext.js +16 -4
- package/lib/commonjs/components/Message/hooks/useCreateMessageContext.js.map +1 -1
- package/lib/commonjs/components/Message/hooks/useMessageActions.js +72 -36
- package/lib/commonjs/components/Message/hooks/useMessageActions.js.map +1 -1
- package/lib/commonjs/components/Message/hooks/useProcessReactions.js +3 -3
- package/lib/commonjs/components/Message/hooks/useProcessReactions.js.map +1 -1
- package/lib/commonjs/components/Message/utils/messageActions.js +6 -4
- package/lib/commonjs/components/Message/utils/messageActions.js.map +1 -1
- package/lib/commonjs/components/MessageInput/FileUploadPreview.js +1 -1
- package/lib/commonjs/components/MessageInput/FileUploadPreview.js.map +1 -1
- package/lib/commonjs/components/MessageInput/MessageInput.js +46 -2
- package/lib/commonjs/components/MessageInput/MessageInput.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js +0 -1
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.js +2 -1
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/NativeAttachmentPicker.js +18 -1
- package/lib/commonjs/components/MessageInput/components/NativeAttachmentPicker.js.map +1 -1
- package/lib/commonjs/components/MessageInput/hooks/useAudioController.js +60 -42
- package/lib/commonjs/components/MessageInput/hooks/useAudioController.js.map +1 -1
- package/lib/commonjs/components/MessageList/MessageList.js +3 -1
- package/lib/commonjs/components/MessageList/MessageList.js.map +1 -1
- package/lib/commonjs/components/MessageOverlay/MessageActionList.js +112 -0
- package/lib/commonjs/components/MessageOverlay/MessageActionList.js.map +1 -0
- package/lib/commonjs/components/MessageOverlay/MessageActionListItem.js +87 -0
- package/lib/commonjs/components/MessageOverlay/MessageActionListItem.js.map +1 -0
- package/lib/commonjs/components/MessageOverlay/MessageOverlay.js +452 -0
- package/lib/commonjs/components/MessageOverlay/MessageOverlay.js.map +1 -0
- package/lib/commonjs/components/MessageOverlay/OverlayBackdrop.js +24 -0
- package/lib/commonjs/components/MessageOverlay/OverlayBackdrop.js.map +1 -0
- package/lib/commonjs/components/MessageOverlay/OverlayReactionList.js +305 -0
- package/lib/commonjs/components/MessageOverlay/OverlayReactionList.js.map +1 -0
- package/lib/commonjs/components/MessageOverlay/OverlayReactions.js +188 -0
- package/lib/commonjs/components/MessageOverlay/OverlayReactions.js.map +1 -0
- package/lib/{module/components/MessageMenu/MessageUserReactionsAvatar.js → commonjs/components/MessageOverlay/OverlayReactionsAvatar.js} +6 -5
- package/lib/commonjs/components/MessageOverlay/OverlayReactionsAvatar.js.map +1 -0
- package/lib/commonjs/components/MessageOverlay/OverlayReactionsItem.js +166 -0
- package/lib/commonjs/components/MessageOverlay/OverlayReactionsItem.js.map +1 -0
- package/lib/{module/components/MessageMenu → commonjs/components/MessageOverlay}/hooks/useFetchReactions.js +0 -2
- package/lib/commonjs/components/MessageOverlay/hooks/useFetchReactions.js.map +1 -0
- package/lib/commonjs/components/MessageOverlay/hooks/useMessageActionAnimation.js +34 -0
- package/lib/commonjs/components/MessageOverlay/hooks/useMessageActionAnimation.js.map +1 -0
- package/lib/commonjs/components/Poll/CreatePollContent.js +386 -0
- package/lib/commonjs/components/Poll/CreatePollContent.js.map +1 -0
- package/lib/commonjs/components/Poll/Poll.js +112 -0
- package/lib/commonjs/components/Poll/Poll.js.map +1 -0
- package/lib/commonjs/components/Poll/components/Button.js +513 -0
- package/lib/commonjs/components/Poll/components/Button.js.map +1 -0
- package/lib/commonjs/components/Poll/components/CreatePollIcon.js +23 -0
- package/lib/commonjs/components/Poll/components/CreatePollIcon.js.map +1 -0
- package/lib/commonjs/components/Poll/components/CreatePollOptions.js +281 -0
- package/lib/commonjs/components/Poll/components/CreatePollOptions.js.map +1 -0
- package/lib/commonjs/components/Poll/components/PollAnswersList.js +154 -0
- package/lib/commonjs/components/Poll/components/PollAnswersList.js.map +1 -0
- package/lib/commonjs/components/Poll/components/PollInputDialog.js +139 -0
- package/lib/commonjs/components/Poll/components/PollInputDialog.js.map +1 -0
- package/lib/commonjs/components/Poll/components/PollModalHeader.js +60 -0
- package/lib/commonjs/components/Poll/components/PollModalHeader.js.map +1 -0
- package/lib/commonjs/components/Poll/components/PollOption.js +209 -0
- package/lib/commonjs/components/Poll/components/PollOption.js.map +1 -0
- package/lib/commonjs/components/Poll/components/PollResults/PollOptionFullResults.js +125 -0
- package/lib/commonjs/components/Poll/components/PollResults/PollOptionFullResults.js.map +1 -0
- package/lib/commonjs/components/Poll/components/PollResults/PollResultItem.js +158 -0
- package/lib/commonjs/components/Poll/components/PollResults/PollResultItem.js.map +1 -0
- package/lib/commonjs/components/Poll/components/PollResults/PollResults.js +101 -0
- package/lib/commonjs/components/Poll/components/PollResults/PollResults.js.map +1 -0
- package/lib/commonjs/components/Poll/components/PollResults/index.js +37 -0
- package/lib/commonjs/components/Poll/components/PollResults/index.js.map +1 -0
- package/lib/commonjs/components/Poll/components/index.js +92 -0
- package/lib/commonjs/components/Poll/components/index.js.map +1 -0
- package/lib/commonjs/components/Poll/hooks/usePollAnswersPagination.js +129 -0
- package/lib/commonjs/components/Poll/hooks/usePollAnswersPagination.js.map +1 -0
- package/lib/commonjs/components/Poll/hooks/usePollOptionVotesPagination.js +140 -0
- package/lib/commonjs/components/Poll/hooks/usePollOptionVotesPagination.js.map +1 -0
- package/lib/commonjs/components/Poll/hooks/usePollState.js +103 -0
- package/lib/commonjs/components/Poll/hooks/usePollState.js.map +1 -0
- package/lib/commonjs/components/Poll/hooks/usePollStateStore.js +13 -0
- package/lib/commonjs/components/Poll/hooks/usePollStateStore.js.map +1 -0
- package/lib/commonjs/components/Poll/index.js +81 -0
- package/lib/commonjs/components/Poll/index.js.map +1 -0
- package/lib/commonjs/components/ProgressControl/ProgressControl.js +28 -21
- package/lib/commonjs/components/ProgressControl/ProgressControl.js.map +1 -1
- package/lib/commonjs/components/ProgressControl/WaveProgressBar.js +27 -22
- package/lib/commonjs/components/ProgressControl/WaveProgressBar.js.map +1 -1
- package/lib/commonjs/components/Reply/Reply.js +3 -7
- package/lib/commonjs/components/Reply/Reply.js.map +1 -1
- package/lib/commonjs/components/{UIComponents → Spinner}/Spinner.js +1 -1
- package/lib/commonjs/components/Spinner/Spinner.js.map +1 -0
- package/lib/commonjs/components/ThreadList/ThreadList.js +8 -7
- package/lib/commonjs/components/ThreadList/ThreadList.js.map +1 -1
- package/lib/commonjs/components/ThreadList/ThreadListItem.js +12 -9
- package/lib/commonjs/components/ThreadList/ThreadListItem.js.map +1 -1
- package/lib/commonjs/components/ThreadList/ThreadListUnreadBanner.js +4 -4
- package/lib/commonjs/components/ThreadList/ThreadListUnreadBanner.js.map +1 -1
- package/lib/commonjs/components/docs/data.js.map +1 -1
- package/lib/commonjs/components/index.js +50 -50
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/contexts/activeChannelsRefContext/ActiveChannelsRefContext.js +13 -1
- package/lib/commonjs/contexts/activeChannelsRefContext/ActiveChannelsRefContext.js.map +1 -1
- package/lib/commonjs/contexts/attachmentPickerContext/AttachmentPickerContext.js +11 -1
- package/lib/commonjs/contexts/attachmentPickerContext/AttachmentPickerContext.js.map +1 -1
- package/lib/commonjs/contexts/channelContext/ChannelContext.js +11 -1
- package/lib/commonjs/contexts/channelContext/ChannelContext.js.map +1 -1
- package/lib/commonjs/contexts/channelsContext/ChannelsContext.js +11 -1
- package/lib/commonjs/contexts/channelsContext/ChannelsContext.js.map +1 -1
- package/lib/commonjs/contexts/channelsStateContext/ChannelsStateContext.js +11 -1
- package/lib/commonjs/contexts/channelsStateContext/ChannelsStateContext.js.map +1 -1
- package/lib/commonjs/contexts/chatContext/ChatContext.js +11 -1
- package/lib/commonjs/contexts/chatContext/ChatContext.js.map +1 -1
- package/lib/commonjs/contexts/imageGalleryContext/ImageGalleryContext.js +11 -1
- package/lib/commonjs/contexts/imageGalleryContext/ImageGalleryContext.js.map +1 -1
- package/lib/commonjs/contexts/index.js +22 -11
- package/lib/commonjs/contexts/index.js.map +1 -1
- package/lib/commonjs/contexts/keyboardContext/KeyboardContext.js +11 -1
- package/lib/commonjs/contexts/keyboardContext/KeyboardContext.js.map +1 -1
- package/lib/commonjs/contexts/messageContext/MessageContext.js +11 -1
- package/lib/commonjs/contexts/messageContext/MessageContext.js.map +1 -1
- package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js +40 -7
- package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js.map +1 -1
- package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +10 -2
- package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
- package/lib/commonjs/contexts/messageOverlayContext/MessageOverlayContext.js +45 -0
- package/lib/commonjs/contexts/messageOverlayContext/MessageOverlayContext.js.map +1 -0
- package/lib/commonjs/contexts/messageOverlayContext/hooks/useResettableState.js +27 -0
- package/lib/commonjs/contexts/messageOverlayContext/hooks/useResettableState.js.map +1 -0
- package/lib/commonjs/contexts/messageOverlayContext/hooks/useResettableState.test.js +67 -0
- package/lib/commonjs/contexts/messageOverlayContext/hooks/useResettableState.test.js.map +1 -0
- package/lib/commonjs/contexts/messagesContext/MessagesContext.js +11 -1
- package/lib/commonjs/contexts/messagesContext/MessagesContext.js.map +1 -1
- package/lib/commonjs/contexts/overlayContext/OverlayContext.js +14 -1
- package/lib/commonjs/contexts/overlayContext/OverlayContext.js.map +1 -1
- package/lib/commonjs/contexts/overlayContext/OverlayProvider.js +58 -18
- package/lib/commonjs/contexts/overlayContext/OverlayProvider.js.map +1 -1
- package/lib/commonjs/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.js +3 -0
- package/lib/commonjs/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.js.map +1 -1
- package/lib/commonjs/contexts/paginatedMessageListContext/PaginatedMessageListContext.js +11 -1
- package/lib/commonjs/contexts/paginatedMessageListContext/PaginatedMessageListContext.js.map +1 -1
- package/lib/commonjs/contexts/pollContext/createPollContentContext.js +33 -0
- package/lib/commonjs/contexts/pollContext/createPollContentContext.js.map +1 -0
- package/lib/commonjs/contexts/pollContext/index.js +26 -0
- package/lib/commonjs/contexts/pollContext/index.js.map +1 -0
- package/lib/commonjs/contexts/{chatConfigContext/ChatConfigContext.js → pollContext/pollContext.js} +17 -17
- package/lib/commonjs/contexts/pollContext/pollContext.js.map +1 -0
- package/lib/commonjs/contexts/suggestionsContext/SuggestionsContext.js +11 -1
- package/lib/commonjs/contexts/suggestionsContext/SuggestionsContext.js.map +1 -1
- package/lib/commonjs/contexts/themeContext/utils/theme.js +176 -68
- package/lib/commonjs/contexts/themeContext/utils/theme.js.map +1 -1
- package/lib/commonjs/contexts/threadContext/ThreadContext.js +11 -1
- package/lib/commonjs/contexts/threadContext/ThreadContext.js.map +1 -1
- package/lib/commonjs/contexts/translationContext/TranslationContext.js +11 -1
- package/lib/commonjs/contexts/translationContext/TranslationContext.js.map +1 -1
- package/lib/commonjs/contexts/typingContext/TypingContext.js +11 -1
- package/lib/commonjs/contexts/typingContext/TypingContext.js.map +1 -1
- package/lib/commonjs/hooks/useStateStore.js.map +1 -1
- package/lib/commonjs/hooks/useTranslatedMessage.js +4 -1
- package/lib/commonjs/hooks/useTranslatedMessage.js.map +1 -1
- package/lib/commonjs/i18n/en.json +34 -0
- package/lib/commonjs/i18n/es.json +38 -0
- package/lib/commonjs/i18n/fr.json +38 -0
- package/lib/commonjs/i18n/he.json +38 -0
- package/lib/commonjs/i18n/hi.json +34 -0
- package/lib/commonjs/i18n/it.json +38 -0
- package/lib/commonjs/i18n/ja.json +34 -0
- package/lib/commonjs/i18n/ko.json +34 -0
- package/lib/commonjs/i18n/nl.json +34 -0
- package/lib/commonjs/i18n/pt-br.json +38 -0
- package/lib/commonjs/i18n/ru.json +42 -0
- package/lib/commonjs/i18n/tr.json +34 -0
- package/lib/commonjs/icons/Back.js +19 -0
- package/lib/commonjs/icons/Back.js.map +1 -0
- package/lib/commonjs/icons/DragHandle.js +21 -0
- package/lib/commonjs/icons/DragHandle.js.map +1 -0
- package/lib/commonjs/icons/PinHeader.js +6 -17
- package/lib/commonjs/icons/PinHeader.js.map +1 -1
- package/lib/commonjs/icons/PollThumbnail.js +19 -0
- package/lib/commonjs/icons/PollThumbnail.js.map +1 -0
- package/lib/commonjs/icons/SendPoll.js +19 -0
- package/lib/commonjs/icons/SendPoll.js.map +1 -0
- package/lib/commonjs/icons/index.js +44 -0
- package/lib/commonjs/icons/index.js.map +1 -1
- package/lib/commonjs/index.js +23 -4
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/mock-builders/DB/mock.js +82 -79
- package/lib/commonjs/mock-builders/DB/mock.js.map +1 -1
- package/lib/commonjs/native.js +25 -36
- package/lib/commonjs/native.js.map +1 -1
- package/lib/commonjs/store/QuickSqliteClient.js +158 -0
- package/lib/commonjs/store/QuickSqliteClient.js.map +1 -0
- package/lib/commonjs/store/apis/addPendingTask.js +5 -5
- package/lib/commonjs/store/apis/addPendingTask.js.map +1 -1
- package/lib/commonjs/store/apis/deleteChannel.js +3 -3
- package/lib/commonjs/store/apis/deleteChannel.js.map +1 -1
- package/lib/commonjs/store/apis/deleteMember.js +3 -3
- package/lib/commonjs/store/apis/deleteMember.js.map +1 -1
- package/lib/commonjs/store/apis/deleteMessage.js +3 -3
- package/lib/commonjs/store/apis/deleteMessage.js.map +1 -1
- package/lib/commonjs/store/apis/deleteMessagesForChannel.js +3 -3
- package/lib/commonjs/store/apis/deleteMessagesForChannel.js.map +1 -1
- package/lib/commonjs/store/apis/deletePendingTask.js +3 -3
- package/lib/commonjs/store/apis/deletePendingTask.js.map +1 -1
- package/lib/commonjs/store/apis/deleteReaction.js +3 -3
- package/lib/commonjs/store/apis/deleteReaction.js.map +1 -1
- package/lib/commonjs/store/apis/deleteReactions.js +2 -2
- package/lib/commonjs/store/apis/deleteReactions.js.map +1 -1
- package/lib/commonjs/store/apis/getAllChannelIds.js +2 -2
- package/lib/commonjs/store/apis/getAllChannelIds.js.map +1 -1
- package/lib/commonjs/store/apis/getAppSettings.js +3 -3
- package/lib/commonjs/store/apis/getAppSettings.js.map +1 -1
- package/lib/commonjs/store/apis/getChannelMessages.js +2 -2
- package/lib/commonjs/store/apis/getChannelMessages.js.map +1 -1
- package/lib/commonjs/store/apis/getChannels.js +2 -2
- package/lib/commonjs/store/apis/getChannels.js.map +1 -1
- package/lib/commonjs/store/apis/getChannelsForFilterSort.js +2 -2
- package/lib/commonjs/store/apis/getChannelsForFilterSort.js.map +1 -1
- package/lib/commonjs/store/apis/getLastSyncedAt.js +3 -3
- package/lib/commonjs/store/apis/getLastSyncedAt.js.map +1 -1
- package/lib/commonjs/store/apis/getMembers.js +2 -2
- package/lib/commonjs/store/apis/getMembers.js.map +1 -1
- package/lib/commonjs/store/apis/getPendingTasks.js +3 -3
- package/lib/commonjs/store/apis/getPendingTasks.js.map +1 -1
- package/lib/commonjs/store/apis/getReactions.js +2 -2
- package/lib/commonjs/store/apis/getReactions.js.map +1 -1
- package/lib/commonjs/store/apis/getReactionsforFilterSort.js +3 -6
- package/lib/commonjs/store/apis/getReactionsforFilterSort.js.map +1 -1
- package/lib/commonjs/store/apis/getReads.js +2 -2
- package/lib/commonjs/store/apis/getReads.js.map +1 -1
- package/lib/commonjs/store/apis/index.js +11 -0
- package/lib/commonjs/store/apis/index.js.map +1 -1
- package/lib/commonjs/store/apis/insertReaction.js +3 -3
- package/lib/commonjs/store/apis/insertReaction.js.map +1 -1
- package/lib/commonjs/store/apis/queries/selectChannelIdsForFilterSort.js +3 -3
- package/lib/commonjs/store/apis/queries/selectChannelIdsForFilterSort.js.map +1 -1
- package/lib/commonjs/store/apis/queries/selectChannels.js +3 -3
- package/lib/commonjs/store/apis/queries/selectChannels.js.map +1 -1
- package/lib/commonjs/store/apis/queries/selectMembersForChannels.js +3 -3
- package/lib/commonjs/store/apis/queries/selectMembersForChannels.js.map +1 -1
- package/lib/commonjs/store/apis/queries/selectMessagesForChannels.js +3 -3
- package/lib/commonjs/store/apis/queries/selectMessagesForChannels.js.map +1 -1
- package/lib/commonjs/store/apis/queries/selectReactionsForMessages.js +3 -3
- package/lib/commonjs/store/apis/queries/selectReactionsForMessages.js.map +1 -1
- package/lib/commonjs/store/apis/queries/selectReadsForChannels.js +3 -3
- package/lib/commonjs/store/apis/queries/selectReadsForChannels.js.map +1 -1
- package/lib/commonjs/store/apis/updateMessage.js +4 -4
- package/lib/commonjs/store/apis/updateMessage.js.map +1 -1
- package/lib/commonjs/store/apis/updatePollMessage.js +50 -0
- package/lib/commonjs/store/apis/updatePollMessage.js.map +1 -0
- package/lib/commonjs/store/apis/updateReaction.js +3 -3
- package/lib/commonjs/store/apis/updateReaction.js.map +1 -1
- package/lib/commonjs/store/apis/upsertAppSettings.js +3 -3
- package/lib/commonjs/store/apis/upsertAppSettings.js.map +1 -1
- package/lib/commonjs/store/apis/upsertChannelData.js +3 -3
- package/lib/commonjs/store/apis/upsertChannelData.js.map +1 -1
- package/lib/commonjs/store/apis/upsertChannelDataFromChannel.js +2 -2
- package/lib/commonjs/store/apis/upsertChannelDataFromChannel.js.map +1 -1
- package/lib/commonjs/store/apis/upsertChannels.js +3 -3
- package/lib/commonjs/store/apis/upsertChannels.js.map +1 -1
- package/lib/commonjs/store/apis/upsertCidsForQuery.js +3 -3
- package/lib/commonjs/store/apis/upsertCidsForQuery.js.map +1 -1
- package/lib/commonjs/store/apis/upsertMembers.js +3 -3
- package/lib/commonjs/store/apis/upsertMembers.js.map +1 -1
- package/lib/commonjs/store/apis/upsertMessages.js +3 -3
- package/lib/commonjs/store/apis/upsertMessages.js.map +1 -1
- package/lib/commonjs/store/apis/upsertReads.js +3 -3
- package/lib/commonjs/store/apis/upsertReads.js.map +1 -1
- package/lib/commonjs/store/apis/upsertUserSyncStatus.js +3 -3
- package/lib/commonjs/store/apis/upsertUserSyncStatus.js.map +1 -1
- package/lib/commonjs/store/mappers/mapMessageToStorable.js +5 -1
- package/lib/commonjs/store/mappers/mapMessageToStorable.js.map +1 -1
- package/lib/commonjs/store/mappers/mapStorableToMessage.js +5 -1
- package/lib/commonjs/store/mappers/mapStorableToMessage.js.map +1 -1
- package/lib/commonjs/store/schema.js +2 -0
- package/lib/commonjs/store/schema.js.map +1 -1
- package/lib/commonjs/utils/DBSyncManager.js +4 -4
- package/lib/commonjs/utils/DBSyncManager.js.map +1 -1
- package/lib/commonjs/utils/StreamChatRN.js +25 -0
- package/lib/commonjs/utils/StreamChatRN.js.map +1 -0
- package/lib/commonjs/utils/getResizedImageUrl.js +3 -5
- package/lib/commonjs/utils/getResizedImageUrl.js.map +1 -1
- package/lib/commonjs/version.json +1 -1
- package/lib/module/components/Attachment/Attachment.js +1 -1
- package/lib/module/components/Attachment/Attachment.js.map +1 -1
- package/lib/module/components/Attachment/Card.js +6 -6
- package/lib/module/components/Attachment/Card.js.map +1 -1
- package/lib/module/components/Attachment/FileAttachment.js +5 -5
- package/lib/module/components/Attachment/FileAttachment.js.map +1 -1
- package/lib/module/components/Attachment/FileAttachmentGroup.js +1 -1
- package/lib/module/components/Attachment/FileAttachmentGroup.js.map +1 -1
- package/lib/module/components/Attachment/Gallery.js +22 -29
- package/lib/module/components/Attachment/Gallery.js.map +1 -1
- package/lib/module/components/Attachment/Giphy.js +8 -8
- package/lib/module/components/Attachment/Giphy.js.map +1 -1
- package/lib/module/components/Attachment/utils/buildGallery/buildGallery.js +0 -7
- package/lib/module/components/Attachment/utils/buildGallery/buildGallery.js.map +1 -1
- package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.js +1 -3
- package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.js.map +1 -1
- package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.js +0 -3
- package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.js.map +1 -1
- package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.js +0 -4
- package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.js.map +1 -1
- package/lib/module/components/Attachment/utils/buildGallery/buildThumbnail.js +0 -2
- package/lib/module/components/Attachment/utils/buildGallery/buildThumbnail.js.map +1 -1
- package/lib/module/components/Attachment/utils/buildGallery/buildThumbnailGrid.js +0 -2
- package/lib/module/components/Attachment/utils/buildGallery/buildThumbnailGrid.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerItem.js +3 -3
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerItem.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerSelectionBar.js +27 -0
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerSelectionBar.js.map +1 -1
- package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionList.js +2 -1
- package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionList.js.map +1 -1
- package/lib/module/components/Avatar/Avatar.js +0 -4
- package/lib/module/components/Avatar/Avatar.js.map +1 -1
- package/lib/module/components/Avatar/GroupAvatar.js +0 -4
- package/lib/module/components/Avatar/GroupAvatar.js.map +1 -1
- package/lib/module/components/Channel/Channel.js +445 -301
- package/lib/module/components/Channel/Channel.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateChannelContext.js +2 -0
- package/lib/module/components/Channel/hooks/useCreateChannelContext.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateInputMessageInputContext.js +9 -3
- package/lib/module/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateMessagesContext.js +15 -27
- package/lib/module/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateThreadContext.js +9 -8
- package/lib/module/components/Channel/hooks/useCreateThreadContext.js.map +1 -1
- package/lib/module/components/ChannelList/ChannelList.js +2 -0
- package/lib/module/components/ChannelList/ChannelList.js.map +1 -1
- package/lib/module/components/ChannelList/ChannelListFooterLoadingIndicator.js +1 -1
- package/lib/module/components/ChannelList/ChannelListFooterLoadingIndicator.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/listeners/useNewMessageNotification.js +18 -8
- package/lib/module/components/ChannelList/hooks/listeners/useNewMessageNotification.js.map +1 -1
- package/lib/module/components/ChannelPreview/hooks/useLatestMessagePreview.js +46 -3
- package/lib/module/components/ChannelPreview/hooks/useLatestMessagePreview.js.map +1 -1
- package/lib/module/components/Chat/Chat.js +11 -2
- package/lib/module/components/Chat/Chat.js.map +1 -1
- package/lib/module/components/Chat/hooks/handleEventToSyncDB.js +13 -3
- package/lib/module/components/Chat/hooks/handleEventToSyncDB.js.map +1 -1
- package/lib/module/components/Chat/hooks/useCreateChatContext.js +2 -0
- package/lib/module/components/Chat/hooks/useCreateChatContext.js.map +1 -1
- package/lib/module/components/Chat/hooks/useIsOnline.js +13 -16
- package/lib/module/components/Chat/hooks/useIsOnline.js.map +1 -1
- package/lib/module/components/{UIComponents/ImageBackground.js → ImageBackground.js} +1 -1
- package/lib/module/components/ImageBackground.js.map +1 -0
- package/lib/module/components/ImageGallery/ImageGallery.js +96 -58
- package/lib/module/components/ImageGallery/ImageGallery.js.map +1 -1
- package/lib/module/components/ImageGallery/components/AnimatedGalleryVideo.js +3 -3
- package/lib/module/components/ImageGallery/components/AnimatedGalleryVideo.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js +90 -92
- package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js +39 -39
- package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryOverlay.js.map +1 -1
- package/lib/module/components/ImageGallery/hooks/useImageGalleryGestures.js +221 -221
- package/lib/module/components/ImageGallery/hooks/useImageGalleryGestures.js.map +1 -1
- package/lib/module/components/Indicators/LoadingIndicator.js +1 -1
- package/lib/module/components/Indicators/LoadingIndicator.js.map +1 -1
- package/lib/module/components/Message/Message.js +186 -123
- package/lib/module/components/Message/Message.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageAvatar.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageContent.js +168 -48
- package/lib/module/components/Message/MessageSimple/MessageContent.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageDeleted.js +1 -1
- package/lib/module/components/Message/MessageSimple/MessageDeleted.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageFooter.js +1 -0
- package/lib/module/components/Message/MessageSimple/MessageFooter.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessagePinnedHeader.js +34 -20
- package/lib/module/components/Message/MessageSimple/MessagePinnedHeader.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageSimple.js +44 -180
- package/lib/module/components/Message/MessageSimple/MessageSimple.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageTextContainer.js +1 -1
- package/lib/module/components/Message/MessageSimple/MessageTextContainer.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/ReactionList.js +305 -0
- package/lib/module/components/Message/MessageSimple/ReactionList.js.map +1 -0
- package/lib/module/components/Message/hooks/useCreateMessageContext.js +16 -4
- package/lib/module/components/Message/hooks/useCreateMessageContext.js.map +1 -1
- package/lib/module/components/Message/hooks/useMessageActions.js +72 -36
- package/lib/module/components/Message/hooks/useMessageActions.js.map +1 -1
- package/lib/module/components/Message/hooks/useProcessReactions.js +3 -3
- package/lib/module/components/Message/hooks/useProcessReactions.js.map +1 -1
- package/lib/module/components/Message/utils/messageActions.js +6 -4
- package/lib/module/components/Message/utils/messageActions.js.map +1 -1
- package/lib/module/components/MessageInput/FileUploadPreview.js +1 -1
- package/lib/module/components/MessageInput/FileUploadPreview.js.map +1 -1
- package/lib/module/components/MessageInput/MessageInput.js +46 -2
- package/lib/module/components/MessageInput/MessageInput.js.map +1 -1
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js +0 -1
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js.map +1 -1
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.js +2 -1
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.js.map +1 -1
- package/lib/module/components/MessageInput/components/NativeAttachmentPicker.js +18 -1
- package/lib/module/components/MessageInput/components/NativeAttachmentPicker.js.map +1 -1
- package/lib/module/components/MessageInput/hooks/useAudioController.js +60 -42
- package/lib/module/components/MessageInput/hooks/useAudioController.js.map +1 -1
- package/lib/module/components/MessageList/MessageList.js +3 -1
- package/lib/module/components/MessageList/MessageList.js.map +1 -1
- package/lib/module/components/MessageOverlay/MessageActionList.js +112 -0
- package/lib/module/components/MessageOverlay/MessageActionList.js.map +1 -0
- package/lib/module/components/MessageOverlay/MessageActionListItem.js +87 -0
- package/lib/module/components/MessageOverlay/MessageActionListItem.js.map +1 -0
- package/lib/module/components/MessageOverlay/MessageOverlay.js +452 -0
- package/lib/module/components/MessageOverlay/MessageOverlay.js.map +1 -0
- package/lib/module/components/MessageOverlay/OverlayBackdrop.js +24 -0
- package/lib/module/components/MessageOverlay/OverlayBackdrop.js.map +1 -0
- package/lib/module/components/MessageOverlay/OverlayReactionList.js +305 -0
- package/lib/module/components/MessageOverlay/OverlayReactionList.js.map +1 -0
- package/lib/module/components/MessageOverlay/OverlayReactions.js +188 -0
- package/lib/module/components/MessageOverlay/OverlayReactions.js.map +1 -0
- package/lib/{commonjs/components/MessageMenu/MessageUserReactionsAvatar.js → module/components/MessageOverlay/OverlayReactionsAvatar.js} +6 -5
- package/lib/module/components/MessageOverlay/OverlayReactionsAvatar.js.map +1 -0
- package/lib/module/components/MessageOverlay/OverlayReactionsItem.js +166 -0
- package/lib/module/components/MessageOverlay/OverlayReactionsItem.js.map +1 -0
- package/lib/{commonjs/components/MessageMenu → module/components/MessageOverlay}/hooks/useFetchReactions.js +0 -2
- package/lib/module/components/MessageOverlay/hooks/useFetchReactions.js.map +1 -0
- package/lib/module/components/MessageOverlay/hooks/useMessageActionAnimation.js +34 -0
- package/lib/module/components/MessageOverlay/hooks/useMessageActionAnimation.js.map +1 -0
- package/lib/module/components/Poll/CreatePollContent.js +386 -0
- package/lib/module/components/Poll/CreatePollContent.js.map +1 -0
- package/lib/module/components/Poll/Poll.js +112 -0
- package/lib/module/components/Poll/Poll.js.map +1 -0
- package/lib/module/components/Poll/components/Button.js +513 -0
- package/lib/module/components/Poll/components/Button.js.map +1 -0
- package/lib/module/components/Poll/components/CreatePollIcon.js +23 -0
- package/lib/module/components/Poll/components/CreatePollIcon.js.map +1 -0
- package/lib/module/components/Poll/components/CreatePollOptions.js +281 -0
- package/lib/module/components/Poll/components/CreatePollOptions.js.map +1 -0
- package/lib/module/components/Poll/components/PollAnswersList.js +154 -0
- package/lib/module/components/Poll/components/PollAnswersList.js.map +1 -0
- package/lib/module/components/Poll/components/PollInputDialog.js +139 -0
- package/lib/module/components/Poll/components/PollInputDialog.js.map +1 -0
- package/lib/module/components/Poll/components/PollModalHeader.js +60 -0
- package/lib/module/components/Poll/components/PollModalHeader.js.map +1 -0
- package/lib/module/components/Poll/components/PollOption.js +209 -0
- package/lib/module/components/Poll/components/PollOption.js.map +1 -0
- package/lib/module/components/Poll/components/PollResults/PollOptionFullResults.js +125 -0
- package/lib/module/components/Poll/components/PollResults/PollOptionFullResults.js.map +1 -0
- package/lib/module/components/Poll/components/PollResults/PollResultItem.js +158 -0
- package/lib/module/components/Poll/components/PollResults/PollResultItem.js.map +1 -0
- package/lib/module/components/Poll/components/PollResults/PollResults.js +101 -0
- package/lib/module/components/Poll/components/PollResults/PollResults.js.map +1 -0
- package/lib/module/components/Poll/components/PollResults/index.js +37 -0
- package/lib/module/components/Poll/components/PollResults/index.js.map +1 -0
- package/lib/module/components/Poll/components/index.js +92 -0
- package/lib/module/components/Poll/components/index.js.map +1 -0
- package/lib/module/components/Poll/hooks/usePollAnswersPagination.js +129 -0
- package/lib/module/components/Poll/hooks/usePollAnswersPagination.js.map +1 -0
- package/lib/module/components/Poll/hooks/usePollOptionVotesPagination.js +140 -0
- package/lib/module/components/Poll/hooks/usePollOptionVotesPagination.js.map +1 -0
- package/lib/module/components/Poll/hooks/usePollState.js +103 -0
- package/lib/module/components/Poll/hooks/usePollState.js.map +1 -0
- package/lib/module/components/Poll/hooks/usePollStateStore.js +13 -0
- package/lib/module/components/Poll/hooks/usePollStateStore.js.map +1 -0
- package/lib/module/components/Poll/index.js +81 -0
- package/lib/module/components/Poll/index.js.map +1 -0
- package/lib/module/components/ProgressControl/ProgressControl.js +28 -21
- package/lib/module/components/ProgressControl/ProgressControl.js.map +1 -1
- package/lib/module/components/ProgressControl/WaveProgressBar.js +27 -22
- package/lib/module/components/ProgressControl/WaveProgressBar.js.map +1 -1
- package/lib/module/components/Reply/Reply.js +3 -7
- package/lib/module/components/Reply/Reply.js.map +1 -1
- package/lib/module/components/{UIComponents → Spinner}/Spinner.js +1 -1
- package/lib/module/components/Spinner/Spinner.js.map +1 -0
- package/lib/module/components/ThreadList/ThreadList.js +8 -7
- package/lib/module/components/ThreadList/ThreadList.js.map +1 -1
- package/lib/module/components/ThreadList/ThreadListItem.js +12 -9
- package/lib/module/components/ThreadList/ThreadListItem.js.map +1 -1
- package/lib/module/components/ThreadList/ThreadListUnreadBanner.js +4 -4
- package/lib/module/components/ThreadList/ThreadListUnreadBanner.js.map +1 -1
- package/lib/module/components/docs/data.js.map +1 -1
- package/lib/module/components/index.js +50 -50
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/contexts/activeChannelsRefContext/ActiveChannelsRefContext.js +13 -1
- package/lib/module/contexts/activeChannelsRefContext/ActiveChannelsRefContext.js.map +1 -1
- package/lib/module/contexts/attachmentPickerContext/AttachmentPickerContext.js +11 -1
- package/lib/module/contexts/attachmentPickerContext/AttachmentPickerContext.js.map +1 -1
- package/lib/module/contexts/channelContext/ChannelContext.js +11 -1
- package/lib/module/contexts/channelContext/ChannelContext.js.map +1 -1
- package/lib/module/contexts/channelsContext/ChannelsContext.js +11 -1
- package/lib/module/contexts/channelsContext/ChannelsContext.js.map +1 -1
- package/lib/module/contexts/channelsStateContext/ChannelsStateContext.js +11 -1
- package/lib/module/contexts/channelsStateContext/ChannelsStateContext.js.map +1 -1
- package/lib/module/contexts/chatContext/ChatContext.js +11 -1
- package/lib/module/contexts/chatContext/ChatContext.js.map +1 -1
- package/lib/module/contexts/imageGalleryContext/ImageGalleryContext.js +11 -1
- package/lib/module/contexts/imageGalleryContext/ImageGalleryContext.js.map +1 -1
- package/lib/module/contexts/index.js +22 -11
- package/lib/module/contexts/index.js.map +1 -1
- package/lib/module/contexts/keyboardContext/KeyboardContext.js +11 -1
- package/lib/module/contexts/keyboardContext/KeyboardContext.js.map +1 -1
- package/lib/module/contexts/messageContext/MessageContext.js +11 -1
- package/lib/module/contexts/messageContext/MessageContext.js.map +1 -1
- package/lib/module/contexts/messageInputContext/MessageInputContext.js +40 -7
- package/lib/module/contexts/messageInputContext/MessageInputContext.js.map +1 -1
- package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +10 -2
- package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
- package/lib/module/contexts/messageOverlayContext/MessageOverlayContext.js +45 -0
- package/lib/module/contexts/messageOverlayContext/MessageOverlayContext.js.map +1 -0
- package/lib/module/contexts/messageOverlayContext/hooks/useResettableState.js +27 -0
- package/lib/module/contexts/messageOverlayContext/hooks/useResettableState.js.map +1 -0
- package/lib/module/contexts/messageOverlayContext/hooks/useResettableState.test.js +67 -0
- package/lib/module/contexts/messageOverlayContext/hooks/useResettableState.test.js.map +1 -0
- package/lib/module/contexts/messagesContext/MessagesContext.js +11 -1
- package/lib/module/contexts/messagesContext/MessagesContext.js.map +1 -1
- package/lib/module/contexts/overlayContext/OverlayContext.js +14 -1
- package/lib/module/contexts/overlayContext/OverlayContext.js.map +1 -1
- package/lib/module/contexts/overlayContext/OverlayProvider.js +58 -18
- package/lib/module/contexts/overlayContext/OverlayProvider.js.map +1 -1
- package/lib/module/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.js +3 -0
- package/lib/module/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.js.map +1 -1
- package/lib/module/contexts/paginatedMessageListContext/PaginatedMessageListContext.js +11 -1
- package/lib/module/contexts/paginatedMessageListContext/PaginatedMessageListContext.js.map +1 -1
- package/lib/module/contexts/pollContext/createPollContentContext.js +33 -0
- package/lib/module/contexts/pollContext/createPollContentContext.js.map +1 -0
- package/lib/module/contexts/pollContext/index.js +26 -0
- package/lib/module/contexts/pollContext/index.js.map +1 -0
- package/lib/module/contexts/{chatConfigContext/ChatConfigContext.js → pollContext/pollContext.js} +17 -17
- package/lib/module/contexts/pollContext/pollContext.js.map +1 -0
- package/lib/module/contexts/suggestionsContext/SuggestionsContext.js +11 -1
- package/lib/module/contexts/suggestionsContext/SuggestionsContext.js.map +1 -1
- package/lib/module/contexts/themeContext/utils/theme.js +176 -68
- package/lib/module/contexts/themeContext/utils/theme.js.map +1 -1
- package/lib/module/contexts/threadContext/ThreadContext.js +11 -1
- package/lib/module/contexts/threadContext/ThreadContext.js.map +1 -1
- package/lib/module/contexts/translationContext/TranslationContext.js +11 -1
- package/lib/module/contexts/translationContext/TranslationContext.js.map +1 -1
- package/lib/module/contexts/typingContext/TypingContext.js +11 -1
- package/lib/module/contexts/typingContext/TypingContext.js.map +1 -1
- package/lib/module/hooks/useStateStore.js.map +1 -1
- package/lib/module/hooks/useTranslatedMessage.js +4 -1
- package/lib/module/hooks/useTranslatedMessage.js.map +1 -1
- package/lib/module/i18n/en.json +34 -0
- package/lib/module/i18n/es.json +38 -0
- package/lib/module/i18n/fr.json +38 -0
- package/lib/module/i18n/he.json +38 -0
- package/lib/module/i18n/hi.json +34 -0
- package/lib/module/i18n/it.json +38 -0
- package/lib/module/i18n/ja.json +34 -0
- package/lib/module/i18n/ko.json +34 -0
- package/lib/module/i18n/nl.json +34 -0
- package/lib/module/i18n/pt-br.json +38 -0
- package/lib/module/i18n/ru.json +42 -0
- package/lib/module/i18n/tr.json +34 -0
- package/lib/module/icons/Back.js +19 -0
- package/lib/module/icons/Back.js.map +1 -0
- package/lib/module/icons/DragHandle.js +21 -0
- package/lib/module/icons/DragHandle.js.map +1 -0
- package/lib/module/icons/PinHeader.js +6 -17
- package/lib/module/icons/PinHeader.js.map +1 -1
- package/lib/module/icons/PollThumbnail.js +19 -0
- package/lib/module/icons/PollThumbnail.js.map +1 -0
- package/lib/module/icons/SendPoll.js +19 -0
- package/lib/module/icons/SendPoll.js.map +1 -0
- package/lib/module/icons/index.js +44 -0
- package/lib/module/icons/index.js.map +1 -1
- package/lib/module/index.js +23 -4
- package/lib/module/index.js.map +1 -1
- package/lib/module/mock-builders/DB/mock.js +82 -79
- package/lib/module/mock-builders/DB/mock.js.map +1 -1
- package/lib/module/native.js +25 -36
- package/lib/module/native.js.map +1 -1
- package/lib/module/store/QuickSqliteClient.js +158 -0
- package/lib/module/store/QuickSqliteClient.js.map +1 -0
- package/lib/module/store/apis/addPendingTask.js +5 -5
- package/lib/module/store/apis/addPendingTask.js.map +1 -1
- package/lib/module/store/apis/deleteChannel.js +3 -3
- package/lib/module/store/apis/deleteChannel.js.map +1 -1
- package/lib/module/store/apis/deleteMember.js +3 -3
- package/lib/module/store/apis/deleteMember.js.map +1 -1
- package/lib/module/store/apis/deleteMessage.js +3 -3
- package/lib/module/store/apis/deleteMessage.js.map +1 -1
- package/lib/module/store/apis/deleteMessagesForChannel.js +3 -3
- package/lib/module/store/apis/deleteMessagesForChannel.js.map +1 -1
- package/lib/module/store/apis/deletePendingTask.js +3 -3
- package/lib/module/store/apis/deletePendingTask.js.map +1 -1
- package/lib/module/store/apis/deleteReaction.js +3 -3
- package/lib/module/store/apis/deleteReaction.js.map +1 -1
- package/lib/module/store/apis/deleteReactions.js +2 -2
- package/lib/module/store/apis/deleteReactions.js.map +1 -1
- package/lib/module/store/apis/getAllChannelIds.js +2 -2
- package/lib/module/store/apis/getAllChannelIds.js.map +1 -1
- package/lib/module/store/apis/getAppSettings.js +3 -3
- package/lib/module/store/apis/getAppSettings.js.map +1 -1
- package/lib/module/store/apis/getChannelMessages.js +2 -2
- package/lib/module/store/apis/getChannelMessages.js.map +1 -1
- package/lib/module/store/apis/getChannels.js +2 -2
- package/lib/module/store/apis/getChannels.js.map +1 -1
- package/lib/module/store/apis/getChannelsForFilterSort.js +2 -2
- package/lib/module/store/apis/getChannelsForFilterSort.js.map +1 -1
- package/lib/module/store/apis/getLastSyncedAt.js +3 -3
- package/lib/module/store/apis/getLastSyncedAt.js.map +1 -1
- package/lib/module/store/apis/getMembers.js +2 -2
- package/lib/module/store/apis/getMembers.js.map +1 -1
- package/lib/module/store/apis/getPendingTasks.js +3 -3
- package/lib/module/store/apis/getPendingTasks.js.map +1 -1
- package/lib/module/store/apis/getReactions.js +2 -2
- package/lib/module/store/apis/getReactions.js.map +1 -1
- package/lib/module/store/apis/getReactionsforFilterSort.js +3 -6
- package/lib/module/store/apis/getReactionsforFilterSort.js.map +1 -1
- package/lib/module/store/apis/getReads.js +2 -2
- package/lib/module/store/apis/getReads.js.map +1 -1
- package/lib/module/store/apis/index.js +11 -0
- package/lib/module/store/apis/index.js.map +1 -1
- package/lib/module/store/apis/insertReaction.js +3 -3
- package/lib/module/store/apis/insertReaction.js.map +1 -1
- package/lib/module/store/apis/queries/selectChannelIdsForFilterSort.js +3 -3
- package/lib/module/store/apis/queries/selectChannelIdsForFilterSort.js.map +1 -1
- package/lib/module/store/apis/queries/selectChannels.js +3 -3
- package/lib/module/store/apis/queries/selectChannels.js.map +1 -1
- package/lib/module/store/apis/queries/selectMembersForChannels.js +3 -3
- package/lib/module/store/apis/queries/selectMembersForChannels.js.map +1 -1
- package/lib/module/store/apis/queries/selectMessagesForChannels.js +3 -3
- package/lib/module/store/apis/queries/selectMessagesForChannels.js.map +1 -1
- package/lib/module/store/apis/queries/selectReactionsForMessages.js +3 -3
- package/lib/module/store/apis/queries/selectReactionsForMessages.js.map +1 -1
- package/lib/module/store/apis/queries/selectReadsForChannels.js +3 -3
- package/lib/module/store/apis/queries/selectReadsForChannels.js.map +1 -1
- package/lib/module/store/apis/updateMessage.js +4 -4
- package/lib/module/store/apis/updateMessage.js.map +1 -1
- package/lib/module/store/apis/updatePollMessage.js +50 -0
- package/lib/module/store/apis/updatePollMessage.js.map +1 -0
- package/lib/module/store/apis/updateReaction.js +3 -3
- package/lib/module/store/apis/updateReaction.js.map +1 -1
- package/lib/module/store/apis/upsertAppSettings.js +3 -3
- package/lib/module/store/apis/upsertAppSettings.js.map +1 -1
- package/lib/module/store/apis/upsertChannelData.js +3 -3
- package/lib/module/store/apis/upsertChannelData.js.map +1 -1
- package/lib/module/store/apis/upsertChannelDataFromChannel.js +2 -2
- package/lib/module/store/apis/upsertChannelDataFromChannel.js.map +1 -1
- package/lib/module/store/apis/upsertChannels.js +3 -3
- package/lib/module/store/apis/upsertChannels.js.map +1 -1
- package/lib/module/store/apis/upsertCidsForQuery.js +3 -3
- package/lib/module/store/apis/upsertCidsForQuery.js.map +1 -1
- package/lib/module/store/apis/upsertMembers.js +3 -3
- package/lib/module/store/apis/upsertMembers.js.map +1 -1
- package/lib/module/store/apis/upsertMessages.js +3 -3
- package/lib/module/store/apis/upsertMessages.js.map +1 -1
- package/lib/module/store/apis/upsertReads.js +3 -3
- package/lib/module/store/apis/upsertReads.js.map +1 -1
- package/lib/module/store/apis/upsertUserSyncStatus.js +3 -3
- package/lib/module/store/apis/upsertUserSyncStatus.js.map +1 -1
- package/lib/module/store/mappers/mapMessageToStorable.js +5 -1
- package/lib/module/store/mappers/mapMessageToStorable.js.map +1 -1
- package/lib/module/store/mappers/mapStorableToMessage.js +5 -1
- package/lib/module/store/mappers/mapStorableToMessage.js.map +1 -1
- package/lib/module/store/schema.js +2 -0
- package/lib/module/store/schema.js.map +1 -1
- package/lib/module/utils/DBSyncManager.js +4 -4
- package/lib/module/utils/DBSyncManager.js.map +1 -1
- package/lib/module/utils/StreamChatRN.js +25 -0
- package/lib/module/utils/StreamChatRN.js.map +1 -0
- package/lib/module/utils/getResizedImageUrl.js +3 -5
- package/lib/module/utils/getResizedImageUrl.js.map +1 -1
- package/lib/module/version.json +1 -1
- package/lib/typescript/components/Attachment/Card.d.ts +2 -2
- package/lib/typescript/components/Attachment/Card.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/FileAttachment.d.ts +1 -1
- package/lib/typescript/components/Attachment/FileAttachment.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/Gallery.d.ts +1 -1
- package/lib/typescript/components/Attachment/Gallery.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/Giphy.d.ts +1 -1
- package/lib/typescript/components/Attachment/utils/buildGallery/buildGallery.d.ts +1 -2
- package/lib/typescript/components/Attachment/utils/buildGallery/buildGallery.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.d.ts +1 -2
- package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.d.ts +1 -2
- package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.d.ts +1 -2
- package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/utils/buildGallery/buildThumbnail.d.ts +2 -4
- package/lib/typescript/components/Attachment/utils/buildGallery/buildThumbnail.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/utils/buildGallery/buildThumbnailGrid.d.ts +1 -2
- package/lib/typescript/components/Attachment/utils/buildGallery/buildThumbnailGrid.d.ts.map +1 -1
- package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerBottomSheetHandle.d.ts +2 -2
- package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerBottomSheetHandle.d.ts.map +1 -1
- package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerItem.d.ts.map +1 -1
- package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerSelectionBar.d.ts.map +1 -1
- package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionList.d.ts.map +1 -1
- package/lib/typescript/components/Avatar/Avatar.d.ts.map +1 -1
- package/lib/typescript/components/Avatar/GroupAvatar.d.ts.map +1 -1
- package/lib/typescript/components/Channel/Channel.d.ts +2 -2
- package/lib/typescript/components/Channel/Channel.d.ts.map +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateChannelContext.d.ts +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateChannelContext.d.ts.map +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateInputMessageInputContext.d.ts +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateInputMessageInputContext.d.ts.map +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateMessagesContext.d.ts +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateMessagesContext.d.ts.map +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateThreadContext.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/ChannelList.d.ts +12 -0
- package/lib/typescript/components/ChannelList/ChannelList.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/hooks/listeners/useNewMessageNotification.d.ts +2 -1
- package/lib/typescript/components/ChannelList/hooks/listeners/useNewMessageNotification.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/hooks/useLatestMessagePreview.d.ts +5 -1
- package/lib/typescript/components/ChannelPreview/hooks/useLatestMessagePreview.d.ts.map +1 -1
- package/lib/typescript/components/Chat/Chat.d.ts +1 -1
- package/lib/typescript/components/Chat/Chat.d.ts.map +1 -1
- package/lib/typescript/components/Chat/hooks/handleEventToSyncDB.d.ts.map +1 -1
- package/lib/typescript/components/Chat/hooks/useCreateChatContext.d.ts +1 -1
- package/lib/typescript/components/Chat/hooks/useCreateChatContext.d.ts.map +1 -1
- package/lib/typescript/components/Chat/hooks/useIsOnline.d.ts.map +1 -1
- package/lib/typescript/components/ImageBackground.d.ts.map +1 -0
- package/lib/typescript/components/ImageGallery/ImageGallery.d.ts +2 -2
- package/lib/typescript/components/ImageGallery/ImageGallery.d.ts.map +1 -1
- package/lib/typescript/components/ImageGallery/components/AnimatedGalleryImage.d.ts +5 -5
- package/lib/typescript/components/ImageGallery/components/AnimatedGalleryImage.d.ts.map +1 -1
- package/lib/typescript/components/ImageGallery/components/AnimatedGalleryVideo.d.ts +5 -5
- package/lib/typescript/components/ImageGallery/components/AnimatedGalleryVideo.d.ts.map +1 -1
- package/lib/typescript/components/ImageGallery/components/ImageGalleryFooter.d.ts +3 -3
- package/lib/typescript/components/ImageGallery/components/ImageGalleryFooter.d.ts.map +1 -1
- package/lib/typescript/components/ImageGallery/components/ImageGalleryHeader.d.ts +3 -3
- package/lib/typescript/components/ImageGallery/components/ImageGalleryHeader.d.ts.map +1 -1
- package/lib/typescript/components/ImageGallery/components/ImageGalleryOverlay.d.ts +2 -2
- package/lib/typescript/components/ImageGallery/components/ImageGalleryOverlay.d.ts.map +1 -1
- package/lib/typescript/components/ImageGallery/hooks/useImageGalleryGestures.d.ts +5 -4
- package/lib/typescript/components/ImageGallery/hooks/useImageGalleryGestures.d.ts.map +1 -1
- package/lib/typescript/components/Message/Message.d.ts +40 -4
- package/lib/typescript/components/Message/Message.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageSimple/MessageAvatar.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageSimple/MessageContent.d.ts +5 -11
- package/lib/typescript/components/Message/MessageSimple/MessageContent.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageSimple/MessagePinnedHeader.d.ts +6 -2
- package/lib/typescript/components/Message/MessageSimple/MessagePinnedHeader.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageSimple/MessageSimple.d.ts +1 -1
- package/lib/typescript/components/Message/MessageSimple/MessageSimple.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageSimple/MessageTextContainer.d.ts +2 -1
- package/lib/typescript/components/Message/MessageSimple/MessageTextContainer.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageSimple/ReactionList.d.ts +32 -0
- package/lib/typescript/components/Message/MessageSimple/ReactionList.d.ts.map +1 -0
- package/lib/typescript/components/Message/hooks/useCreateMessageContext.d.ts +1 -1
- package/lib/typescript/components/Message/hooks/useCreateMessageContext.d.ts.map +1 -1
- package/lib/typescript/components/Message/hooks/useMessageActions.d.ts +6 -5
- package/lib/typescript/components/Message/hooks/useMessageActions.d.ts.map +1 -1
- package/lib/typescript/components/Message/hooks/useProcessReactions.d.ts +3 -11
- package/lib/typescript/components/Message/hooks/useProcessReactions.d.ts.map +1 -1
- package/lib/typescript/components/Message/utils/messageActions.d.ts +14 -6
- package/lib/typescript/components/Message/utils/messageActions.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/MessageInput.d.ts +1 -1
- package/lib/typescript/components/MessageInput/MessageInput.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecordingButton.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/NativeAttachmentPicker.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/hooks/useAudioController.d.ts.map +1 -1
- package/lib/typescript/components/MessageOverlay/MessageActionList.d.ts +14 -0
- package/lib/typescript/components/MessageOverlay/MessageActionList.d.ts.map +1 -0
- package/lib/typescript/components/{MessageMenu → MessageOverlay}/MessageActionListItem.d.ts +8 -2
- package/lib/typescript/components/MessageOverlay/MessageActionListItem.d.ts.map +1 -0
- package/lib/typescript/components/MessageOverlay/MessageOverlay.d.ts +15 -0
- package/lib/typescript/components/MessageOverlay/MessageOverlay.d.ts.map +1 -0
- package/lib/typescript/components/MessageOverlay/OverlayBackdrop.d.ts +8 -0
- package/lib/typescript/components/MessageOverlay/OverlayBackdrop.d.ts.map +1 -0
- package/lib/typescript/components/MessageOverlay/OverlayReactionList.d.ts +36 -0
- package/lib/typescript/components/MessageOverlay/OverlayReactionList.d.ts.map +1 -0
- package/lib/typescript/components/MessageOverlay/OverlayReactions.d.ts +29 -0
- package/lib/typescript/components/MessageOverlay/OverlayReactions.d.ts.map +1 -0
- package/lib/typescript/components/MessageOverlay/OverlayReactionsAvatar.d.ts +11 -0
- package/lib/typescript/components/MessageOverlay/OverlayReactionsAvatar.d.ts.map +1 -0
- package/lib/typescript/components/MessageOverlay/OverlayReactionsItem.d.ts +11 -0
- package/lib/typescript/components/MessageOverlay/OverlayReactionsItem.d.ts.map +1 -0
- package/lib/typescript/components/MessageOverlay/hooks/useFetchReactions.d.ts.map +1 -0
- package/lib/typescript/components/MessageOverlay/hooks/useMessageActionAnimation.d.ts +11 -0
- package/lib/typescript/components/MessageOverlay/hooks/useMessageActionAnimation.d.ts.map +1 -0
- package/lib/typescript/components/Poll/CreatePollContent.d.ts +6 -0
- package/lib/typescript/components/Poll/CreatePollContent.d.ts.map +1 -0
- package/lib/typescript/components/Poll/Poll.d.ts +13 -0
- package/lib/typescript/components/Poll/Poll.d.ts.map +1 -0
- package/lib/typescript/components/Poll/components/Button.d.ts +35 -0
- package/lib/typescript/components/Poll/components/Button.d.ts.map +1 -0
- package/lib/typescript/components/Poll/components/CreatePollIcon.d.ts +3 -0
- package/lib/typescript/components/Poll/components/CreatePollIcon.d.ts.map +1 -0
- package/lib/typescript/components/Poll/components/CreatePollOptions.d.ts +34 -0
- package/lib/typescript/components/Poll/components/CreatePollOptions.d.ts.map +1 -0
- package/lib/typescript/components/Poll/components/PollAnswersList.d.ts +15 -0
- package/lib/typescript/components/Poll/components/PollAnswersList.d.ts.map +1 -0
- package/lib/typescript/components/Poll/components/PollInputDialog.d.ts +10 -0
- package/lib/typescript/components/Poll/components/PollInputDialog.d.ts.map +1 -0
- package/lib/typescript/components/Poll/components/PollModalHeader.d.ts +7 -0
- package/lib/typescript/components/Poll/components/PollModalHeader.d.ts.map +1 -0
- package/lib/typescript/components/Poll/components/PollOption.d.ts +16 -0
- package/lib/typescript/components/Poll/components/PollOption.d.ts.map +1 -0
- package/lib/typescript/components/Poll/components/PollResults/PollOptionFullResults.d.ts +18 -0
- package/lib/typescript/components/Poll/components/PollResults/PollOptionFullResults.d.ts.map +1 -0
- package/lib/typescript/components/Poll/components/PollResults/PollResultItem.d.ts +11 -0
- package/lib/typescript/components/Poll/components/PollResults/PollResultItem.d.ts.map +1 -0
- package/lib/typescript/components/Poll/components/PollResults/PollResults.d.ts +10 -0
- package/lib/typescript/components/Poll/components/PollResults/PollResults.d.ts.map +1 -0
- package/lib/typescript/components/Poll/components/PollResults/index.d.ts +4 -0
- package/lib/typescript/components/Poll/components/PollResults/index.d.ts.map +1 -0
- package/lib/typescript/components/Poll/components/index.d.ts +9 -0
- package/lib/typescript/components/Poll/components/index.d.ts.map +1 -0
- package/lib/typescript/components/Poll/hooks/usePollAnswersPagination.d.ts +29 -0
- package/lib/typescript/components/Poll/hooks/usePollAnswersPagination.d.ts.map +1 -0
- package/lib/typescript/components/Poll/hooks/usePollOptionVotesPagination.d.ts +32 -0
- package/lib/typescript/components/Poll/hooks/usePollOptionVotesPagination.d.ts.map +1 -0
- package/lib/typescript/components/Poll/hooks/usePollState.d.ts +26 -0
- package/lib/typescript/components/Poll/hooks/usePollState.d.ts.map +1 -0
- package/lib/typescript/components/Poll/hooks/usePollStateStore.d.ts +3 -0
- package/lib/typescript/components/Poll/hooks/usePollStateStore.d.ts.map +1 -0
- package/lib/typescript/components/Poll/index.d.ts +8 -0
- package/lib/typescript/components/Poll/index.d.ts.map +1 -0
- package/lib/typescript/components/ProgressControl/ProgressControl.d.ts.map +1 -1
- package/lib/typescript/components/ProgressControl/WaveProgressBar.d.ts.map +1 -1
- package/lib/typescript/components/Reply/Reply.d.ts.map +1 -1
- package/lib/typescript/components/Spinner/Spinner.d.ts.map +1 -0
- package/lib/typescript/components/ThreadList/ThreadList.d.ts.map +1 -1
- package/lib/typescript/components/ThreadList/ThreadListItem.d.ts.map +1 -1
- package/lib/typescript/components/ThreadList/ThreadListUnreadBanner.d.ts.map +1 -1
- package/lib/typescript/components/index.d.ts +11 -11
- package/lib/typescript/components/index.d.ts.map +1 -1
- package/lib/typescript/contexts/activeChannelsRefContext/ActiveChannelsRefContext.d.ts +11 -0
- package/lib/typescript/contexts/activeChannelsRefContext/ActiveChannelsRefContext.d.ts.map +1 -1
- package/lib/typescript/contexts/attachmentPickerContext/AttachmentPickerContext.d.ts +18 -2
- package/lib/typescript/contexts/attachmentPickerContext/AttachmentPickerContext.d.ts.map +1 -1
- package/lib/typescript/contexts/channelContext/ChannelContext.d.ts +25 -1
- package/lib/typescript/contexts/channelContext/ChannelContext.d.ts.map +1 -1
- package/lib/typescript/contexts/channelsContext/ChannelsContext.d.ts +11 -1
- package/lib/typescript/contexts/channelsContext/ChannelsContext.d.ts.map +1 -1
- package/lib/typescript/contexts/channelsStateContext/ChannelsStateContext.d.ts +11 -1
- package/lib/typescript/contexts/channelsStateContext/ChannelsStateContext.d.ts.map +1 -1
- package/lib/typescript/contexts/chatContext/ChatContext.d.ts +15 -1
- package/lib/typescript/contexts/chatContext/ChatContext.d.ts.map +1 -1
- package/lib/typescript/contexts/imageGalleryContext/ImageGalleryContext.d.ts +10 -0
- package/lib/typescript/contexts/imageGalleryContext/ImageGalleryContext.d.ts.map +1 -1
- package/lib/typescript/contexts/index.d.ts +2 -1
- package/lib/typescript/contexts/index.d.ts.map +1 -1
- package/lib/typescript/contexts/keyboardContext/KeyboardContext.d.ts +11 -0
- package/lib/typescript/contexts/keyboardContext/KeyboardContext.d.ts.map +1 -1
- package/lib/typescript/contexts/messageContext/MessageContext.d.ts +56 -21
- package/lib/typescript/contexts/messageContext/MessageContext.d.ts.map +1 -1
- package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts +22 -3
- package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts.map +1 -1
- package/lib/typescript/contexts/messageInputContext/hooks/useCreateMessageInputContext.d.ts +1 -1
- package/lib/typescript/contexts/messageInputContext/hooks/useCreateMessageInputContext.d.ts.map +1 -1
- package/lib/typescript/contexts/messageOverlayContext/MessageOverlayContext.d.ts +80 -0
- package/lib/typescript/contexts/messageOverlayContext/MessageOverlayContext.d.ts.map +1 -0
- package/lib/typescript/contexts/messageOverlayContext/hooks/useResettableState.d.ts +13 -0
- package/lib/typescript/contexts/messageOverlayContext/hooks/useResettableState.d.ts.map +1 -0
- package/lib/typescript/contexts/messageOverlayContext/hooks/useResettableState.test.d.ts +2 -0
- package/lib/typescript/contexts/messageOverlayContext/hooks/useResettableState.test.d.ts.map +1 -0
- package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts +45 -77
- package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts.map +1 -1
- package/lib/typescript/contexts/overlayContext/OverlayContext.d.ts +27 -2
- package/lib/typescript/contexts/overlayContext/OverlayContext.d.ts.map +1 -1
- package/lib/typescript/contexts/overlayContext/OverlayProvider.d.ts.map +1 -1
- package/lib/typescript/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.d.ts +3 -0
- package/lib/typescript/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.d.ts.map +1 -1
- package/lib/typescript/contexts/paginatedMessageListContext/PaginatedMessageListContext.d.ts +11 -1
- package/lib/typescript/contexts/paginatedMessageListContext/PaginatedMessageListContext.d.ts.map +1 -1
- package/lib/typescript/contexts/pollContext/createPollContentContext.d.ts +20 -0
- package/lib/typescript/contexts/pollContext/createPollContentContext.d.ts.map +1 -0
- package/lib/typescript/contexts/pollContext/index.d.ts +3 -0
- package/lib/typescript/contexts/pollContext/index.d.ts.map +1 -0
- package/lib/typescript/contexts/pollContext/pollContext.d.ts +14 -0
- package/lib/typescript/contexts/pollContext/pollContext.d.ts.map +1 -0
- package/lib/typescript/contexts/suggestionsContext/SuggestionsContext.d.ts +11 -1
- package/lib/typescript/contexts/suggestionsContext/SuggestionsContext.d.ts.map +1 -1
- package/lib/typescript/contexts/themeContext/utils/theme.d.ts +170 -61
- package/lib/typescript/contexts/themeContext/utils/theme.d.ts.map +1 -1
- package/lib/typescript/contexts/threadContext/ThreadContext.d.ts +11 -1
- package/lib/typescript/contexts/threadContext/ThreadContext.d.ts.map +1 -1
- package/lib/typescript/contexts/translationContext/TranslationContext.d.ts +11 -0
- package/lib/typescript/contexts/translationContext/TranslationContext.d.ts.map +1 -1
- package/lib/typescript/contexts/typingContext/TypingContext.d.ts +11 -1
- package/lib/typescript/contexts/typingContext/TypingContext.d.ts.map +1 -1
- package/lib/typescript/hooks/useStateStore.d.ts +2 -2
- package/lib/typescript/hooks/useStateStore.d.ts.map +1 -1
- package/lib/typescript/hooks/useTranslatedMessage.d.ts.map +1 -1
- package/lib/typescript/i18n/en.json +34 -0
- package/lib/typescript/i18n/es.json +38 -0
- package/lib/typescript/i18n/fr.json +38 -0
- package/lib/typescript/i18n/he.json +38 -0
- package/lib/typescript/i18n/hi.json +34 -0
- package/lib/typescript/i18n/it.json +38 -0
- package/lib/typescript/i18n/ja.json +34 -0
- package/lib/typescript/i18n/ko.json +34 -0
- package/lib/typescript/i18n/nl.json +34 -0
- package/lib/typescript/i18n/pt-br.json +38 -0
- package/lib/typescript/i18n/ru.json +42 -0
- package/lib/typescript/i18n/tr.json +34 -0
- package/lib/typescript/icons/Back.d.ts +4 -0
- package/lib/typescript/icons/Back.d.ts.map +1 -0
- package/lib/typescript/icons/DragHandle.d.ts +4 -0
- package/lib/typescript/icons/DragHandle.d.ts.map +1 -0
- package/lib/typescript/icons/PinHeader.d.ts +1 -5
- package/lib/typescript/icons/PinHeader.d.ts.map +1 -1
- package/lib/typescript/icons/PollThumbnail.d.ts +4 -0
- package/lib/typescript/icons/PollThumbnail.d.ts.map +1 -0
- package/lib/typescript/icons/SendPoll.d.ts +4 -0
- package/lib/typescript/icons/SendPoll.d.ts.map +1 -0
- package/lib/typescript/icons/index.d.ts +4 -0
- package/lib/typescript/icons/index.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +3 -2
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/native.d.ts +11 -9
- package/lib/typescript/native.d.ts.map +1 -1
- package/lib/typescript/store/{SqliteClient.d.ts → QuickSqliteClient.d.ts} +5 -6
- package/lib/typescript/store/QuickSqliteClient.d.ts.map +1 -0
- package/lib/typescript/store/apis/getReactionsforFilterSort.d.ts.map +1 -1
- package/lib/typescript/store/apis/index.d.ts +1 -0
- package/lib/typescript/store/apis/index.d.ts.map +1 -1
- package/lib/typescript/store/apis/updatePollMessage.d.ts +7 -0
- package/lib/typescript/store/apis/updatePollMessage.d.ts.map +1 -0
- package/lib/typescript/store/mappers/mapMessageToStorable.d.ts.map +1 -1
- package/lib/typescript/store/mappers/mapStorableToMessage.d.ts.map +1 -1
- package/lib/typescript/store/schema.d.ts +2 -0
- package/lib/typescript/store/schema.d.ts.map +1 -1
- package/lib/typescript/types/types.d.ts +0 -6
- package/lib/typescript/types/types.d.ts.map +1 -1
- package/lib/typescript/utils/StreamChatRN.d.ts +23 -0
- package/lib/typescript/utils/StreamChatRN.d.ts.map +1 -0
- package/lib/typescript/utils/getResizedImageUrl.d.ts +2 -3
- package/lib/typescript/utils/getResizedImageUrl.d.ts.map +1 -1
- package/lib/typescript/utils/i18n/Streami18n.d.ts +34 -0
- package/lib/typescript/utils/i18n/Streami18n.d.ts.map +1 -1
- package/package.json +12 -12
- package/src/__tests__/offline-support/offline-feature.js +5 -5
- package/src/__tests__/offline-support/optimistic-update.js +4 -4
- package/src/components/Attachment/Attachment.tsx +2 -2
- package/src/components/Attachment/Card.tsx +10 -10
- package/src/components/Attachment/FileAttachment.tsx +16 -8
- package/src/components/Attachment/FileAttachmentGroup.tsx +2 -2
- package/src/components/Attachment/Gallery.tsx +17 -20
- package/src/components/Attachment/Giphy.tsx +14 -14
- package/src/components/Attachment/__tests__/Attachment.test.js +2 -4
- package/src/components/Attachment/__tests__/Gallery.test.js +2 -0
- package/src/components/Attachment/utils/buildGallery/buildGallery.ts +1 -10
- package/src/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.ts +1 -4
- package/src/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.ts +1 -5
- package/src/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.ts +1 -6
- package/src/components/Attachment/utils/buildGallery/buildThumbnail.ts +6 -13
- package/src/components/Attachment/utils/buildGallery/buildThumbnailGrid.ts +1 -5
- package/src/components/AttachmentPicker/components/AttachmentPickerBottomSheetHandle.tsx +2 -2
- package/src/components/AttachmentPicker/components/AttachmentPickerItem.tsx +1 -1
- package/src/components/AttachmentPicker/components/AttachmentPickerSelectionBar.tsx +35 -2
- package/src/components/AutoCompleteInput/AutoCompleteSuggestionList.tsx +1 -1
- package/src/components/Avatar/Avatar.tsx +0 -3
- package/src/components/Avatar/GroupAvatar.tsx +0 -4
- package/src/components/Channel/Channel.tsx +159 -60
- package/src/components/Channel/__tests__/ownCapabilities.test.js +57 -57
- package/src/components/Channel/hooks/useCreateChannelContext.ts +2 -0
- package/src/components/Channel/hooks/useCreateInputMessageInputContext.ts +22 -3
- package/src/components/Channel/hooks/useCreateMessagesContext.ts +15 -26
- package/src/components/Channel/hooks/useCreateThreadContext.ts +7 -8
- package/src/components/ChannelList/ChannelList.tsx +17 -0
- package/src/components/ChannelList/ChannelListFooterLoadingIndicator.tsx +1 -1
- package/src/components/ChannelList/__tests__/ChannelList.test.js +5 -5
- package/src/components/ChannelList/hooks/listeners/useNewMessageNotification.ts +11 -2
- package/src/components/ChannelPreview/hooks/useLatestMessagePreview.ts +56 -4
- package/src/components/Chat/Chat.tsx +11 -3
- package/src/components/Chat/__tests__/Chat.test.js +179 -184
- package/src/components/Chat/hooks/handleEventToSyncDB.ts +22 -3
- package/src/components/Chat/hooks/useCreateChatContext.ts +2 -0
- package/src/components/Chat/hooks/useIsOnline.ts +10 -13
- package/src/components/ImageGallery/ImageGallery.tsx +121 -71
- package/src/components/ImageGallery/__tests__/AnimatedVideoGallery.test.tsx +11 -0
- package/src/components/ImageGallery/__tests__/ImageGallery.test.tsx +4 -3
- package/src/components/ImageGallery/__tests__/ImageGalleryFooter.test.tsx +5 -3
- package/src/components/ImageGallery/__tests__/ImageGalleryGrid.test.tsx +1 -1
- package/src/components/ImageGallery/__tests__/ImageGalleryGridHandle.test.tsx +1 -1
- package/src/components/ImageGallery/__tests__/ImageGalleryHeader.test.tsx +5 -3
- package/src/components/ImageGallery/__tests__/ImageGalleryOverlay.test.tsx +3 -0
- package/src/components/ImageGallery/components/AnimatedGalleryImage.tsx +5 -5
- package/src/components/ImageGallery/components/AnimatedGalleryVideo.tsx +9 -9
- package/src/components/ImageGallery/components/ImageGalleryFooter.tsx +86 -97
- package/src/components/ImageGallery/components/ImageGalleryHeader.tsx +44 -46
- package/src/components/ImageGallery/components/ImageGalleryOverlay.tsx +1 -2
- package/src/components/ImageGallery/components/__tests__/ImageGalleryHeader.test.tsx +4 -3
- package/src/components/ImageGallery/hooks/useImageGalleryGestures.tsx +466 -481
- package/src/components/Indicators/LoadingIndicator.tsx +1 -1
- package/src/components/Message/Message.tsx +217 -113
- package/src/components/Message/MessageSimple/MessageAvatar.tsx +0 -1
- package/src/components/Message/MessageSimple/MessageContent.tsx +171 -28
- package/src/components/Message/MessageSimple/MessageDeleted.tsx +1 -1
- package/src/components/Message/MessageSimple/MessageFooter.tsx +1 -1
- package/src/components/Message/MessageSimple/MessagePinnedHeader.tsx +66 -21
- package/src/components/Message/MessageSimple/MessageSimple.tsx +55 -247
- package/src/components/Message/MessageSimple/MessageTextContainer.tsx +4 -3
- package/src/components/Message/MessageSimple/ReactionList.tsx +398 -0
- package/src/components/Message/MessageSimple/__tests__/MessageContent.test.js +2 -1
- package/src/components/Message/MessageSimple/__tests__/MessageTextContainer.test.tsx +3 -3
- package/src/components/Message/MessageSimple/__tests__/__snapshots__/MessagePinnedHeader.test.js.snap +19 -23
- package/src/components/Message/hooks/useCreateMessageContext.ts +16 -4
- package/src/components/Message/hooks/useMessageActions.tsx +68 -48
- package/src/components/Message/hooks/useProcessReactions.ts +10 -17
- package/src/components/Message/utils/messageActions.ts +20 -10
- package/src/components/MessageInput/FileUploadPreview.tsx +2 -2
- package/src/components/MessageInput/MessageInput.tsx +59 -1
- package/src/components/MessageInput/__tests__/AudioAttachmentUploadPreviewExpo.test.tsx +4 -1
- package/src/components/MessageInput/__tests__/AudioAttachmentUploadPreviewNative.test.tsx +4 -1
- package/src/components/MessageInput/__tests__/FileUploadPreview.test.js +5 -3
- package/src/components/MessageInput/__tests__/MessageInput.test.js +2 -0
- package/src/components/MessageInput/components/AudioRecorder/AudioRecordingButton.tsx +1 -7
- package/src/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.tsx +1 -0
- package/src/components/MessageInput/components/NativeAttachmentPicker.tsx +29 -2
- package/src/components/MessageInput/hooks/useAudioController.tsx +3 -0
- package/src/components/MessageList/MessageList.tsx +1 -1
- package/src/components/MessageList/__tests__/MessageList.test.js +21 -0
- package/src/components/MessageOverlay/MessageActionList.tsx +171 -0
- package/src/components/MessageOverlay/MessageActionListItem.tsx +144 -0
- package/src/components/MessageOverlay/MessageOverlay.tsx +637 -0
- package/src/components/MessageOverlay/OverlayBackdrop.tsx +18 -0
- package/src/components/MessageOverlay/OverlayReactionList.tsx +447 -0
- package/src/components/MessageOverlay/OverlayReactions.tsx +250 -0
- package/src/components/{MessageMenu/MessageUserReactionsAvatar.tsx → MessageOverlay/OverlayReactionsAvatar.tsx} +6 -6
- package/src/components/MessageOverlay/OverlayReactionsItem.tsx +188 -0
- package/src/components/{MessageMenu → MessageOverlay}/hooks/useFetchReactions.ts +0 -2
- package/src/components/MessageOverlay/hooks/useMessageActionAnimation.tsx +44 -0
- package/src/components/Poll/CreatePollContent.tsx +299 -0
- package/src/components/Poll/Poll.tsx +126 -0
- package/src/components/Poll/components/Button.tsx +465 -0
- package/src/components/Poll/components/CreatePollIcon.tsx +14 -0
- package/src/components/Poll/components/CreatePollOptions.tsx +351 -0
- package/src/components/Poll/components/PollAnswersList.tsx +134 -0
- package/src/components/Poll/components/PollInputDialog.tsx +117 -0
- package/src/components/Poll/components/PollModalHeader.tsx +42 -0
- package/src/components/Poll/components/PollOption.tsx +167 -0
- package/src/components/Poll/components/PollResults/PollOptionFullResults.tsx +108 -0
- package/src/components/Poll/components/PollResults/PollResultItem.tsx +119 -0
- package/src/components/Poll/components/PollResults/PollResults.tsx +79 -0
- package/src/components/Poll/components/PollResults/index.ts +3 -0
- package/src/components/Poll/components/index.ts +8 -0
- package/src/components/Poll/hooks/usePollAnswersPagination.ts +109 -0
- package/src/components/Poll/hooks/usePollOptionVotesPagination.ts +119 -0
- package/src/components/Poll/hooks/usePollState.ts +122 -0
- package/src/components/Poll/hooks/usePollStateStore.ts +13 -0
- package/src/components/Poll/index.ts +10 -0
- package/src/components/ProgressControl/ProgressControl.tsx +38 -28
- package/src/components/ProgressControl/WaveProgressBar.tsx +37 -29
- package/src/components/Reply/Reply.tsx +4 -5
- package/src/components/Thread/__tests__/__snapshots__/Thread.test.js.snap +796 -903
- package/src/components/ThreadList/ThreadList.tsx +6 -2
- package/src/components/ThreadList/ThreadListItem.tsx +9 -8
- package/src/components/ThreadList/ThreadListUnreadBanner.tsx +3 -2
- package/src/components/docs/data.js +27 -13
- package/src/components/index.ts +11 -11
- package/src/contexts/__tests__/index.test.tsx +5 -0
- package/src/contexts/activeChannelsRefContext/ActiveChannelsRefContext.tsx +27 -0
- package/src/contexts/attachmentPickerContext/AttachmentPickerContext.tsx +41 -2
- package/src/contexts/channelContext/ChannelContext.tsx +46 -2
- package/src/contexts/channelsContext/ChannelsContext.tsx +28 -1
- package/src/contexts/channelsStateContext/ChannelsStateContext.tsx +30 -1
- package/src/contexts/chatContext/ChatContext.tsx +30 -1
- package/src/contexts/imageGalleryContext/ImageGalleryContext.tsx +29 -0
- package/src/contexts/index.ts +2 -1
- package/src/contexts/keyboardContext/KeyboardContext.tsx +30 -0
- package/src/contexts/messageContext/MessageContext.tsx +75 -22
- package/src/contexts/messageInputContext/MessageInputContext.tsx +75 -21
- package/src/contexts/messageInputContext/__tests__/isValidMessage.test.tsx +3 -2
- package/src/contexts/messageInputContext/__tests__/pickFile.test.tsx +4 -2
- package/src/contexts/messageInputContext/__tests__/uploadFile.test.tsx +2 -1
- package/src/contexts/messageInputContext/__tests__/uploadImage.test.tsx +2 -1
- package/src/contexts/messageInputContext/hooks/useCreateMessageInputContext.ts +14 -1
- package/src/contexts/messageOverlayContext/MessageOverlayContext.tsx +148 -0
- package/src/contexts/messageOverlayContext/hooks/useResettableState.test.tsx +48 -0
- package/src/contexts/messageOverlayContext/hooks/useResettableState.ts +22 -0
- package/src/contexts/messagesContext/MessagesContext.tsx +70 -84
- package/src/contexts/overlayContext/OverlayContext.tsx +56 -2
- package/src/contexts/overlayContext/OverlayProvider.tsx +67 -23
- package/src/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.tsx +3 -0
- package/src/contexts/paginatedMessageListContext/PaginatedMessageListContext.tsx +30 -1
- package/src/contexts/pollContext/createPollContentContext.tsx +49 -0
- package/src/contexts/pollContext/index.ts +2 -0
- package/src/contexts/pollContext/pollContext.tsx +43 -0
- package/src/contexts/suggestionsContext/SuggestionsContext.tsx +30 -1
- package/src/contexts/themeContext/utils/theme.ts +326 -126
- package/src/contexts/threadContext/ThreadContext.tsx +28 -1
- package/src/contexts/translationContext/TranslationContext.tsx +29 -0
- package/src/contexts/typingContext/TypingContext.tsx +28 -1
- package/src/hooks/__tests__/useTranslatedMessage.test.tsx +9 -3
- package/src/hooks/useStateStore.ts +12 -12
- package/src/hooks/useTranslatedMessage.ts +4 -1
- package/src/i18n/en.json +34 -0
- package/src/i18n/es.json +38 -0
- package/src/i18n/fr.json +38 -0
- package/src/i18n/he.json +38 -0
- package/src/i18n/hi.json +34 -0
- package/src/i18n/it.json +38 -0
- package/src/i18n/ja.json +34 -0
- package/src/i18n/ko.json +34 -0
- package/src/i18n/nl.json +34 -0
- package/src/i18n/pt-br.json +38 -0
- package/src/i18n/ru.json +42 -0
- package/src/i18n/tr.json +34 -0
- package/src/icons/Back.tsx +12 -0
- package/src/icons/DragHandle.tsx +9 -0
- package/src/icons/PinHeader.tsx +7 -13
- package/src/icons/PollThumbnail.tsx +12 -0
- package/src/icons/SendPoll.tsx +12 -0
- package/src/icons/index.ts +4 -0
- package/src/index.ts +3 -2
- package/src/mock-builders/DB/mock.ts +84 -82
- package/src/native.ts +26 -15
- package/src/store/{SqliteClient.ts → QuickSqliteClient.ts} +55 -75
- package/src/store/apis/addPendingTask.ts +5 -5
- package/src/store/apis/deleteChannel.ts +3 -3
- package/src/store/apis/deleteMember.ts +3 -3
- package/src/store/apis/deleteMessage.ts +3 -3
- package/src/store/apis/deleteMessagesForChannel.ts +3 -3
- package/src/store/apis/deletePendingTask.ts +3 -3
- package/src/store/apis/deleteReaction.ts +3 -3
- package/src/store/apis/deleteReactions.ts +2 -2
- package/src/store/apis/getAllChannelIds.ts +2 -2
- package/src/store/apis/getAppSettings.ts +3 -3
- package/src/store/apis/getChannelMessages.ts +2 -2
- package/src/store/apis/getChannels.ts +2 -2
- package/src/store/apis/getChannelsForFilterSort.ts +2 -2
- package/src/store/apis/getLastSyncedAt.ts +3 -3
- package/src/store/apis/getMembers.ts +2 -2
- package/src/store/apis/getPendingTasks.ts +3 -3
- package/src/store/apis/getReactions.ts +2 -2
- package/src/store/apis/getReactionsforFilterSort.ts +3 -5
- package/src/store/apis/getReads.ts +2 -2
- package/src/store/apis/index.ts +1 -0
- package/src/store/apis/insertReaction.ts +3 -3
- package/src/store/apis/queries/selectChannelIdsForFilterSort.ts +3 -3
- package/src/store/apis/queries/selectChannels.ts +3 -3
- package/src/store/apis/queries/selectMembersForChannels.ts +3 -3
- package/src/store/apis/queries/selectMessagesForChannels.ts +4 -4
- package/src/store/apis/queries/selectReactionsForMessages.ts +3 -3
- package/src/store/apis/queries/selectReadsForChannels.ts +4 -4
- package/src/store/apis/updateMessage.ts +4 -4
- package/src/store/apis/updatePollMessage.ts +48 -0
- package/src/store/apis/updateReaction.ts +3 -3
- package/src/store/apis/upsertAppSettings.ts +3 -3
- package/src/store/apis/upsertChannelData.ts +3 -3
- package/src/store/apis/upsertChannelDataFromChannel.ts +2 -2
- package/src/store/apis/upsertChannels.ts +3 -3
- package/src/store/apis/upsertCidsForQuery.ts +3 -3
- package/src/store/apis/upsertMembers.ts +3 -3
- package/src/store/apis/upsertMessages.ts +3 -3
- package/src/store/apis/upsertReads.ts +3 -3
- package/src/store/apis/upsertUserSyncStatus.ts +3 -3
- package/src/store/mappers/mapMessageToStorable.ts +4 -0
- package/src/store/mappers/mapStorableToMessage.ts +4 -0
- package/src/store/schema.ts +4 -0
- package/src/types/types.ts +0 -7
- package/src/utils/DBSyncManager.ts +4 -4
- package/src/utils/StreamChatRN.ts +27 -0
- package/src/utils/__tests__/getResizedImageUrl.test.ts +2 -1
- package/src/utils/getResizedImageUrl.ts +5 -7
- package/src/version.json +1 -1
- package/lib/commonjs/components/Message/MessageSimple/ReactionList/ReactionListBottom.js +0 -234
- package/lib/commonjs/components/Message/MessageSimple/ReactionList/ReactionListBottom.js.map +0 -1
- package/lib/commonjs/components/Message/MessageSimple/ReactionList/ReactionListTop.js +0 -195
- package/lib/commonjs/components/Message/MessageSimple/ReactionList/ReactionListTop.js.map +0 -1
- package/lib/commonjs/components/Message/hooks/useMessageData.js +0 -38
- package/lib/commonjs/components/Message/hooks/useMessageData.js.map +0 -1
- package/lib/commonjs/components/MessageMenu/MessageActionList.js +0 -35
- package/lib/commonjs/components/MessageMenu/MessageActionList.js.map +0 -1
- package/lib/commonjs/components/MessageMenu/MessageActionListItem.js +0 -60
- package/lib/commonjs/components/MessageMenu/MessageActionListItem.js.map +0 -1
- package/lib/commonjs/components/MessageMenu/MessageMenu.js +0 -70
- package/lib/commonjs/components/MessageMenu/MessageMenu.js.map +0 -1
- package/lib/commonjs/components/MessageMenu/MessageReactionPicker.js +0 -81
- package/lib/commonjs/components/MessageMenu/MessageReactionPicker.js.map +0 -1
- package/lib/commonjs/components/MessageMenu/MessageUserReactions.js +0 -171
- package/lib/commonjs/components/MessageMenu/MessageUserReactions.js.map +0 -1
- package/lib/commonjs/components/MessageMenu/MessageUserReactionsAvatar.js.map +0 -1
- package/lib/commonjs/components/MessageMenu/MessageUserReactionsItem.js +0 -110
- package/lib/commonjs/components/MessageMenu/MessageUserReactionsItem.js.map +0 -1
- package/lib/commonjs/components/MessageMenu/ReactionButton.js +0 -59
- package/lib/commonjs/components/MessageMenu/ReactionButton.js.map +0 -1
- package/lib/commonjs/components/MessageMenu/hooks/useFetchReactions.js.map +0 -1
- package/lib/commonjs/components/UIComponents/BottomSheetModal.js +0 -152
- package/lib/commonjs/components/UIComponents/BottomSheetModal.js.map +0 -1
- package/lib/commonjs/components/UIComponents/ImageBackground.js.map +0 -1
- package/lib/commonjs/components/UIComponents/Spinner.js.map +0 -1
- package/lib/commonjs/components/UIComponents/index.js +0 -37
- package/lib/commonjs/components/UIComponents/index.js.map +0 -1
- package/lib/commonjs/contexts/chatConfigContext/ChatConfigContext.js.map +0 -1
- package/lib/commonjs/store/SqliteClient.js +0 -179
- package/lib/commonjs/store/SqliteClient.js.map +0 -1
- package/lib/module/components/Message/MessageSimple/ReactionList/ReactionListBottom.js +0 -234
- package/lib/module/components/Message/MessageSimple/ReactionList/ReactionListBottom.js.map +0 -1
- package/lib/module/components/Message/MessageSimple/ReactionList/ReactionListTop.js +0 -195
- package/lib/module/components/Message/MessageSimple/ReactionList/ReactionListTop.js.map +0 -1
- package/lib/module/components/Message/hooks/useMessageData.js +0 -38
- package/lib/module/components/Message/hooks/useMessageData.js.map +0 -1
- package/lib/module/components/MessageMenu/MessageActionList.js +0 -35
- package/lib/module/components/MessageMenu/MessageActionList.js.map +0 -1
- package/lib/module/components/MessageMenu/MessageActionListItem.js +0 -60
- package/lib/module/components/MessageMenu/MessageActionListItem.js.map +0 -1
- package/lib/module/components/MessageMenu/MessageMenu.js +0 -70
- package/lib/module/components/MessageMenu/MessageMenu.js.map +0 -1
- package/lib/module/components/MessageMenu/MessageReactionPicker.js +0 -81
- package/lib/module/components/MessageMenu/MessageReactionPicker.js.map +0 -1
- package/lib/module/components/MessageMenu/MessageUserReactions.js +0 -171
- package/lib/module/components/MessageMenu/MessageUserReactions.js.map +0 -1
- package/lib/module/components/MessageMenu/MessageUserReactionsAvatar.js.map +0 -1
- package/lib/module/components/MessageMenu/MessageUserReactionsItem.js +0 -110
- package/lib/module/components/MessageMenu/MessageUserReactionsItem.js.map +0 -1
- package/lib/module/components/MessageMenu/ReactionButton.js +0 -59
- package/lib/module/components/MessageMenu/ReactionButton.js.map +0 -1
- package/lib/module/components/MessageMenu/hooks/useFetchReactions.js.map +0 -1
- package/lib/module/components/UIComponents/BottomSheetModal.js +0 -152
- package/lib/module/components/UIComponents/BottomSheetModal.js.map +0 -1
- package/lib/module/components/UIComponents/ImageBackground.js.map +0 -1
- package/lib/module/components/UIComponents/Spinner.js.map +0 -1
- package/lib/module/components/UIComponents/index.js +0 -37
- package/lib/module/components/UIComponents/index.js.map +0 -1
- package/lib/module/contexts/chatConfigContext/ChatConfigContext.js.map +0 -1
- package/lib/module/store/SqliteClient.js +0 -179
- package/lib/module/store/SqliteClient.js.map +0 -1
- package/lib/typescript/components/Message/MessageSimple/ReactionList/ReactionListBottom.d.ts +0 -12
- package/lib/typescript/components/Message/MessageSimple/ReactionList/ReactionListBottom.d.ts.map +0 -1
- package/lib/typescript/components/Message/MessageSimple/ReactionList/ReactionListTop.d.ts +0 -20
- package/lib/typescript/components/Message/MessageSimple/ReactionList/ReactionListTop.d.ts.map +0 -1
- package/lib/typescript/components/Message/hooks/useMessageData.d.ts +0 -12
- package/lib/typescript/components/Message/hooks/useMessageData.d.ts.map +0 -1
- package/lib/typescript/components/MessageMenu/MessageActionList.d.ts +0 -16
- package/lib/typescript/components/MessageMenu/MessageActionList.d.ts.map +0 -1
- package/lib/typescript/components/MessageMenu/MessageActionListItem.d.ts.map +0 -1
- package/lib/typescript/components/MessageMenu/MessageMenu.d.ts +0 -32
- package/lib/typescript/components/MessageMenu/MessageMenu.d.ts.map +0 -1
- package/lib/typescript/components/MessageMenu/MessageReactionPicker.d.ts +0 -30
- package/lib/typescript/components/MessageMenu/MessageReactionPicker.d.ts.map +0 -1
- package/lib/typescript/components/MessageMenu/MessageUserReactions.d.ts +0 -21
- package/lib/typescript/components/MessageMenu/MessageUserReactions.d.ts.map +0 -1
- package/lib/typescript/components/MessageMenu/MessageUserReactionsAvatar.d.ts +0 -11
- package/lib/typescript/components/MessageMenu/MessageUserReactionsAvatar.d.ts.map +0 -1
- package/lib/typescript/components/MessageMenu/MessageUserReactionsItem.d.ts +0 -16
- package/lib/typescript/components/MessageMenu/MessageUserReactionsItem.d.ts.map +0 -1
- package/lib/typescript/components/MessageMenu/ReactionButton.d.ts +0 -25
- package/lib/typescript/components/MessageMenu/ReactionButton.d.ts.map +0 -1
- package/lib/typescript/components/MessageMenu/hooks/useFetchReactions.d.ts.map +0 -1
- package/lib/typescript/components/UIComponents/BottomSheetModal.d.ts +0 -21
- package/lib/typescript/components/UIComponents/BottomSheetModal.d.ts.map +0 -1
- package/lib/typescript/components/UIComponents/ImageBackground.d.ts.map +0 -1
- package/lib/typescript/components/UIComponents/Spinner.d.ts.map +0 -1
- package/lib/typescript/components/UIComponents/index.d.ts +0 -4
- package/lib/typescript/components/UIComponents/index.d.ts.map +0 -1
- package/lib/typescript/contexts/chatConfigContext/ChatConfigContext.d.ts +0 -16
- package/lib/typescript/contexts/chatConfigContext/ChatConfigContext.d.ts.map +0 -1
- package/lib/typescript/store/SqliteClient.d.ts.map +0 -1
- package/src/components/Message/MessageSimple/ReactionList/ReactionListBottom.tsx +0 -295
- package/src/components/Message/MessageSimple/ReactionList/ReactionListTop.tsx +0 -271
- package/src/components/Message/MessageSimple/__tests__/MessageSimple.test.js +0 -208
- package/src/components/Message/MessageSimple/__tests__/ReactionListBottom.test.js +0 -166
- package/src/components/Message/MessageSimple/__tests__/ReactionListTop.test.js +0 -92
- package/src/components/Message/hooks/useMessageData.ts +0 -59
- package/src/components/MessageMenu/MessageActionList.tsx +0 -49
- package/src/components/MessageMenu/MessageActionListItem.tsx +0 -86
- package/src/components/MessageMenu/MessageMenu.tsx +0 -123
- package/src/components/MessageMenu/MessageReactionPicker.tsx +0 -122
- package/src/components/MessageMenu/MessageUserReactions.tsx +0 -209
- package/src/components/MessageMenu/MessageUserReactionsItem.tsx +0 -130
- package/src/components/MessageMenu/ReactionButton.tsx +0 -72
- package/src/components/MessageMenu/__tests__/MessageActionList.test.tsx +0 -48
- package/src/components/MessageMenu/__tests__/MessageActionListItem.test.tsx +0 -48
- package/src/components/MessageMenu/__tests__/MessageReactionPicker.test.tsx +0 -101
- package/src/components/MessageMenu/__tests__/MessageUserReactions.test.tsx +0 -186
- package/src/components/MessageMenu/__tests__/MessageUserReactionsAvatar.test.tsx +0 -35
- package/src/components/MessageMenu/__tests__/MessageUserReactionsItem.test.tsx +0 -81
- package/src/components/MessageMenu/__tests__/ReactionButton.test.tsx +0 -77
- package/src/components/UIComponents/BottomSheetModal.tsx +0 -170
- package/src/components/UIComponents/index.ts +0 -3
- package/src/contexts/chatConfigContext/ChatConfigContext.tsx +0 -33
- /package/lib/typescript/components/{UIComponents/ImageBackground.d.ts → ImageBackground.d.ts} +0 -0
- /package/lib/typescript/components/{MessageMenu → MessageOverlay}/hooks/useFetchReactions.d.ts +0 -0
- /package/lib/typescript/components/{UIComponents → Spinner}/Spinner.d.ts +0 -0
- /package/src/components/{UIComponents/ImageBackground.tsx → ImageBackground.tsx} +0 -0
- /package/src/components/{UIComponents → Spinner}/Spinner.tsx +0 -0
|
@@ -15,7 +15,7 @@ import { DefaultStreamChatGenerics } from '../../types/types';
|
|
|
15
15
|
import { ReactionData } from '../../utils/utils';
|
|
16
16
|
import { LoadingErrorProps } from '../Indicators/LoadingErrorIndicator';
|
|
17
17
|
export declare const reactionData: ReactionData[];
|
|
18
|
-
export type ChannelPropsWithContext<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<ChannelContextValue<StreamChatGenerics>, 'channel'> & Partial<Pick<ChannelContextValue<StreamChatGenerics>, 'EmptyStateIndicator' | 'enableMessageGroupingByUser' | 'enforceUniqueReaction' | 'giphyEnabled' | 'hideStickyDateHeader' | 'hideDateSeparators' | 'LoadingIndicator' | 'maxTimeBetweenGroupedMessages' | 'NetworkDownIndicator' | 'StickyHeader'>> & Pick<ChatContextValue<StreamChatGenerics>, 'client' | 'enableOfflineSupport'> & Partial<Omit<InputMessageInputContextValue<StreamChatGenerics>, 'quotedMessage' | 'editing' | 'clearEditingState' | 'clearQuotedMessageState' | 'sendMessage'>> & Partial<Pick<SuggestionsContextValue<StreamChatGenerics>, 'AutoCompleteSuggestionHeader' | 'AutoCompleteSuggestionItem' | 'AutoCompleteSuggestionList'>> & Pick<TranslationContextValue, 't'> & Partial<Pick<PaginatedMessageListContextValue<StreamChatGenerics>, 'messages' | 'loadingMore' | 'loadingMoreRecent'>> & UseChannelStateValue<StreamChatGenerics> & Partial<Pick<MessagesContextValue<StreamChatGenerics>, '
|
|
18
|
+
export type ChannelPropsWithContext<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<ChannelContextValue<StreamChatGenerics>, 'channel'> & Partial<Pick<ChannelContextValue<StreamChatGenerics>, 'EmptyStateIndicator' | 'enableMessageGroupingByUser' | 'enforceUniqueReaction' | 'giphyEnabled' | 'hideStickyDateHeader' | 'hideDateSeparators' | 'LoadingIndicator' | 'maxTimeBetweenGroupedMessages' | 'NetworkDownIndicator' | 'StickyHeader'>> & Pick<ChatContextValue<StreamChatGenerics>, 'client' | 'enableOfflineSupport'> & Partial<Omit<InputMessageInputContextValue<StreamChatGenerics>, 'quotedMessage' | 'editing' | 'clearEditingState' | 'clearQuotedMessageState' | 'sendMessage'>> & Partial<Pick<SuggestionsContextValue<StreamChatGenerics>, 'AutoCompleteSuggestionHeader' | 'AutoCompleteSuggestionItem' | 'AutoCompleteSuggestionList'>> & Pick<TranslationContextValue, 't'> & Partial<Pick<PaginatedMessageListContextValue<StreamChatGenerics>, 'messages' | 'loadingMore' | 'loadingMoreRecent'>> & UseChannelStateValue<StreamChatGenerics> & Partial<Pick<MessagesContextValue<StreamChatGenerics>, 'additionalTouchableProps' | 'Attachment' | 'AttachmentActions' | 'AudioAttachment' | 'Card' | 'CardCover' | 'CardFooter' | 'CardHeader' | 'DateHeader' | 'deletedMessagesVisibilityType' | 'disableTypingIndicator' | 'dismissKeyboardOnMessageTouch' | 'FileAttachment' | 'FileAttachmentIcon' | 'FileAttachmentGroup' | 'FlatList' | 'forceAlignMessages' | 'Gallery' | 'getMessagesGroupStyles' | 'Giphy' | 'giphyVersion' | 'handleBan' | 'handleBlock' | 'handleCopy' | 'handleDelete' | 'handleEdit' | 'handleFlag' | 'handleMute' | 'handlePinMessage' | 'handleReaction' | 'handleQuotedReply' | 'handleRetry' | 'handleThreadReply' | 'InlineDateSeparator' | 'InlineUnreadIndicator' | 'isAttachmentEqual' | 'legacyImageViewerSwipeBehaviour' | 'ImageLoadingFailedIndicator' | 'ImageLoadingIndicator' | 'markdownRules' | 'Message' | 'messageActions' | 'MessageAvatar' | 'MessageBounce' | 'MessageContent' | 'messageContentOrder' | 'MessageDeleted' | 'MessageEditedTimestamp' | 'MessageError' | 'MessageFooter' | 'MessageHeader' | 'MessageList' | 'MessagePinnedHeader' | 'MessageReplies' | 'MessageRepliesAvatars' | 'MessageSimple' | 'MessageStatus' | 'MessageSystem' | 'MessageText' | 'MessageTimestamp' | 'myMessageTheme' | 'onLongPressMessage' | 'onPressInMessage' | 'onPressMessage' | 'OverlayReactionList' | 'ReactionList' | 'Reply' | 'shouldShowUnreadUnderlay' | 'ScrollToBottomButton' | 'selectReaction' | 'supportedReactions' | 'TypingIndicator' | 'TypingIndicatorContainer' | 'UrlPreview' | 'VideoThumbnail' | 'PollContent' | 'hasCreatePoll'>> & Partial<Pick<ThreadContextValue<StreamChatGenerics>, 'allowThreadMessagesInChannel'>> & {
|
|
19
19
|
shouldSyncChannel: boolean;
|
|
20
20
|
thread: ThreadType<StreamChatGenerics>;
|
|
21
21
|
/**
|
|
@@ -94,7 +94,7 @@ export type ChannelPropsWithContext<StreamChatGenerics extends DefaultStreamChat
|
|
|
94
94
|
* Tells if channel is rendering a thread list
|
|
95
95
|
*/
|
|
96
96
|
threadList?: boolean;
|
|
97
|
-
}
|
|
97
|
+
} & Partial<Pick<InputMessageInputContextValue, 'openPollCreationDialog' | 'CreatePollContent'>>;
|
|
98
98
|
export type ChannelProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Partial<Omit<ChannelPropsWithContext<StreamChatGenerics>, 'channel'>> & Pick<ChannelPropsWithContext<StreamChatGenerics>, 'channel'>;
|
|
99
99
|
/**
|
|
100
100
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Channel.d.ts","sourceRoot":"","sources":["../../../../src/components/Channel/Channel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAqD,MAAM,OAAO,CAAC;AACpG,OAAO,EAAE,yBAAyB,EAA0B,MAAM,cAAc,CAAC;AAOjF,OAAO,EAGL,OAAO,IAAI,WAAW,EAKtB,sBAAsB,EACtB,UAAU,EAEV,OAAO,IAAI,aAAa,EAEzB,MAAM,aAAa,CAAC;AAiBrB,OAAO,EAAE,mBAAmB,EAAmB,MAAM,8CAA8C,CAAC;AACpG,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qDAAqD,CAAC;AAEhG,OAAO,EAAE,gBAAgB,EAAkB,MAAM,wCAAwC,CAAC;AAC1F,OAAO,EACL,6BAA6B,EAE9B,MAAM,wDAAwD,CAAC;AAChE,OAAO,EACL,oBAAoB,EAErB,MAAM,gDAAgD,CAAC;AACxD,OAAO,EACL,2BAA2B,EAE5B,MAAM,8DAA8D,CAAC;AACtE,OAAO,EACL,gCAAgC,EAEjC,MAAM,wEAAwE,CAAC;AAChF,OAAO,EACL,uBAAuB,EAExB,MAAM,sDAAsD,CAAC;AAE9D,OAAO,EACL,kBAAkB,EAElB,UAAU,EACX,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACL,uBAAuB,EAExB,MAAM,sDAAsD,CAAC;
|
|
1
|
+
{"version":3,"file":"Channel.d.ts","sourceRoot":"","sources":["../../../../src/components/Channel/Channel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAqD,MAAM,OAAO,CAAC;AACpG,OAAO,EAAE,yBAAyB,EAA0B,MAAM,cAAc,CAAC;AAOjF,OAAO,EAGL,OAAO,IAAI,WAAW,EAKtB,sBAAsB,EACtB,UAAU,EAEV,OAAO,IAAI,aAAa,EAEzB,MAAM,aAAa,CAAC;AAiBrB,OAAO,EAAE,mBAAmB,EAAmB,MAAM,8CAA8C,CAAC;AACpG,OAAO,KAAK,EAAE,o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AsB,CAAC,EAAE,MAAM,CAAC;IAChC;;OAEG;IACH,qBAAqB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,iBAAiB,CAAC,CAAC;IAC/D,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qCAAqC,CAAC,EAAE,MAAM,CAAC;IAC/C,uBAAuB,CAAC,EAAE,OAAO,CAAC,2BAA2B,CAAC,CAAC;IAC/D,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,GAAG,OAAO,CAAC,IAAI,CAAC,6BAA6B,EAAE,wBAAwB,GAAG,mBAAmB,CAAC,CAAC,CAAC;AA8iEnG,MAAM,MAAM,YAAY,CACtB,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E,OAAO,CAAC,IAAI,CAAC,uBAAuB,CAAC,kBAAkB,CAAC,EAAE,SAAS,CAAC,CAAC,GACvE,IAAI,CAAC,uBAAuB,CAAC,kBAAkB,CAAC,EAAE,SAAS,CAAC,CAAC;AAE/D;;;;;;;GAOG;AACH,eAAO,MAAM,OAAO,2KAqEnB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ChannelContextValue } from '../../../contexts/channelContext/ChannelContext';
|
|
2
2
|
import type { DefaultStreamChatGenerics } from '../../../types/types';
|
|
3
|
-
export declare const useCreateChannelContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ channel, disabled, EmptyStateIndicator, enableMessageGroupingByUser, enforceUniqueReaction, error, giphyEnabled, hideDateSeparators, hideStickyDateHeader, isAdmin, isChannelActive, isModerator, isOwner, lastRead, loadChannelAroundMessage, loading, LoadingIndicator, markRead, maxTimeBetweenGroupedMessages, members, NetworkDownIndicator, read, reloadChannel, scrollToFirstUnreadThreshold, setLastRead, setTargetedMessage, StickyHeader, targetedMessage, threadList, uploadAbortControllerRef, watcherCount, watchers, }: ChannelContextValue<StreamChatGenerics>) => ChannelContextValue<StreamChatGenerics>;
|
|
3
|
+
export declare const useCreateChannelContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ channel, disabled, EmptyStateIndicator, enableMessageGroupingByUser, enforceUniqueReaction, error, giphyEnabled, hideDateSeparators, hideStickyDateHeader, isAdmin, isChannelActive, isModerator, isOwner, lastRead, loadChannelAroundMessage, loadChannelAtMessage, loading, LoadingIndicator, markRead, maxTimeBetweenGroupedMessages, members, NetworkDownIndicator, read, reloadChannel, scrollToFirstUnreadThreshold, setLastRead, setTargetedMessage, StickyHeader, targetedMessage, threadList, uploadAbortControllerRef, watcherCount, watchers, }: ChannelContextValue<StreamChatGenerics>) => ChannelContextValue<StreamChatGenerics>;
|
|
4
4
|
//# sourceMappingURL=useCreateChannelContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCreateChannelContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/Channel/hooks/useCreateChannelContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AAC3F,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAEtE,eAAO,MAAM,uBAAuB,
|
|
1
|
+
{"version":3,"file":"useCreateChannelContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/Channel/hooks/useCreateChannelContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AAC3F,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAEtE,eAAO,MAAM,uBAAuB,ssBAmGnC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { InputMessageInputContextValue } from '../../../contexts/messageInputContext/MessageInputContext';
|
|
2
2
|
import type { DefaultStreamChatGenerics } from '../../../types/types';
|
|
3
|
-
export declare const useCreateInputMessageInputContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ additionalTextInputProps, asyncMessagesLockDistance, asyncMessagesMinimumPressDuration, asyncMessagesMultiSendEnabled, asyncMessagesSlideToCancelDistance, AttachButton, AudioAttachmentUploadPreview, AudioRecorder, audioRecordingEnabled, AudioRecordingInProgress, AudioRecordingLockIndicator, AudioRecordingPreview, AudioRecordingWaveform, autoCompleteSuggestionsLimit, autoCompleteTriggerSettings, channelId, clearEditingState, clearQuotedMessageState, CommandsButton, compressImageQuality, CooldownTimer, doDocUploadRequest, doImageUploadRequest, editing, editMessage, emojiSearchIndex, FileUploadPreview, handleAttachButtonPress, hasCameraPicker, hasCommands, hasFilePicker, hasImagePicker, ImageUploadPreview, initialValue, Input, InputButtons, InputEditingStateHeader, InputGiphySearch, InputReplyStateHeader, maxMessageLength, maxNumberOfFiles, mentionAllAppUsersEnabled, mentionAllAppUsersQuery, MoreOptionsButton, numberOfLines, onChangeText, quotedMessage, SendButton, sendImageAsync, sendMessage, SendMessageDisallowedIndicator, setInputRef, setQuotedMessageState, ShowThreadMessageInChannelButton, StartAudioRecordingButton, UploadProgressIndicator, }: InputMessageInputContextValue<StreamChatGenerics> & {
|
|
3
|
+
export declare const useCreateInputMessageInputContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ additionalTextInputProps, asyncMessagesLockDistance, asyncMessagesMinimumPressDuration, asyncMessagesMultiSendEnabled, asyncMessagesSlideToCancelDistance, AttachButton, AudioAttachmentUploadPreview, AudioRecorder, audioRecordingEnabled, AudioRecordingInProgress, AudioRecordingLockIndicator, AudioRecordingPreview, AudioRecordingWaveform, autoCompleteSuggestionsLimit, autoCompleteTriggerSettings, channelId, clearEditingState, clearQuotedMessageState, CommandsButton, compressImageQuality, CooldownTimer, CreatePollContent, doDocUploadRequest, doImageUploadRequest, editing, editMessage, emojiSearchIndex, FileUploadPreview, handleAttachButtonPress, hasCameraPicker, hasCommands, hasFilePicker, hasImagePicker, ImageUploadPreview, initialValue, Input, InputButtons, InputEditingStateHeader, InputGiphySearch, InputReplyStateHeader, maxMessageLength, maxNumberOfFiles, mentionAllAppUsersEnabled, mentionAllAppUsersQuery, MoreOptionsButton, numberOfLines, onChangeText, openPollCreationDialog, quotedMessage, SendButton, sendImageAsync, sendMessage, SendMessageDisallowedIndicator, setInputRef, setQuotedMessageState, showPollCreationDialog, ShowThreadMessageInChannelButton, StartAudioRecordingButton, UploadProgressIndicator, }: InputMessageInputContextValue<StreamChatGenerics> & {
|
|
4
4
|
/**
|
|
5
5
|
* To ensure we allow re-render, when channel is changed
|
|
6
6
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCreateInputMessageInputContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/Channel/hooks/useCreateInputMessageInputContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,2DAA2D,CAAC;AAC/G,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAEtE,eAAO,MAAM,iCAAiC;
|
|
1
|
+
{"version":3,"file":"useCreateInputMessageInputContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/Channel/hooks/useCreateInputMessageInputContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,2DAA2D,CAAC;AAC/G,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAEtE,eAAO,MAAM,iCAAiC;IA+D5C;;OAEG;;uDAqFJ,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { MessagesContextValue } from '../../../contexts/messagesContext/MessagesContext';
|
|
2
2
|
import type { DefaultStreamChatGenerics } from '../../../types/types';
|
|
3
|
-
export declare const useCreateMessagesContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({
|
|
3
|
+
export declare const useCreateMessagesContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ additionalTouchableProps, Attachment, AttachmentActions, AudioAttachment, Card, CardCover, CardFooter, CardHeader, channelId, DateHeader, deletedMessagesVisibilityType, deleteMessage, deleteReaction, disableTypingIndicator, dismissKeyboardOnMessageTouch, enableMessageGroupingByUser, FileAttachment, FileAttachmentGroup, FileAttachmentIcon, FlatList, forceAlignMessages, Gallery, getMessagesGroupStyles, Giphy, giphyVersion, handleBan, handleBlock, handleCopy, handleDelete, handleEdit, handleFlag, handleMute, handlePinMessage, handleQuotedReply, handleReaction, handleRetry, handleThreadReply, hasCreatePoll, ImageLoadingFailedIndicator, ImageLoadingIndicator, initialScrollToFirstUnreadMessage, InlineDateSeparator, InlineUnreadIndicator, isAttachmentEqual, legacyImageViewerSwipeBehaviour, markdownRules, Message, messageActions, MessageAvatar, MessageBounce, MessageContent, messageContentOrder, MessageDeleted, MessageEditedTimestamp, MessageError, MessageFooter, MessageHeader, MessageList, MessagePinnedHeader, MessageReplies, MessageRepliesAvatars, MessageSimple, MessageStatus, MessageSystem, MessageText, MessageTimestamp, myMessageTheme, onLongPressMessage, onPressInMessage, onPressMessage, OverlayReactionList, PollContent, ReactionList, removeMessage, Reply, retrySendMessage, ScrollToBottomButton, selectReaction, sendReaction, setEditingState, setQuotedMessageState, shouldShowUnreadUnderlay, supportedReactions, targetedMessage, TypingIndicator, TypingIndicatorContainer, updateMessage, UrlPreview, VideoThumbnail, }: MessagesContextValue<StreamChatGenerics> & {
|
|
4
4
|
/**
|
|
5
5
|
* To ensure we allow re-render, when channel is changed
|
|
6
6
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCreateMessagesContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/Channel/hooks/useCreateMessagesContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mDAAmD,CAAC;AAC9F,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAEtE,eAAO,MAAM,wBAAwB;
|
|
1
|
+
{"version":3,"file":"useCreateMessagesContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/Channel/hooks/useCreateMessagesContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mDAAmD,CAAC;AAC9F,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAEtE,eAAO,MAAM,wBAAwB;IA6FnC;;OAEG;;8CAoHJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCreateThreadContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/Channel/hooks/useCreateThreadContext.ts"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+CAA+C,CAAC;AAExF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"useCreateThreadContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/Channel/hooks/useCreateThreadContext.ts"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+CAA+C,CAAC;AAExF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAStE,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0ClC,CAAC"}
|
|
@@ -78,6 +78,18 @@ export type ChannelListProps<StreamChatGenerics extends DefaultStreamChatGeneric
|
|
|
78
78
|
* @overrideType Function
|
|
79
79
|
* */
|
|
80
80
|
onChannelVisible?: (setChannels: React.Dispatch<React.SetStateAction<Channel<StreamChatGenerics>[] | null>>, event: Event<StreamChatGenerics>) => void;
|
|
81
|
+
/**
|
|
82
|
+
* @deprecated use onNewMessageNotification instead
|
|
83
|
+
*
|
|
84
|
+
* Override the default listener/handler for event `notification.message_new`
|
|
85
|
+
* This event is received on channel, which is not being watched.
|
|
86
|
+
*
|
|
87
|
+
* @param setChannels Setter for internal state property - `channels`. It's created from useState() hook.
|
|
88
|
+
* @param event An [Event object](https://getstream.io/chat/docs/event_object) corresponding to `notification.message_new` event
|
|
89
|
+
*
|
|
90
|
+
* @overrideType Function
|
|
91
|
+
* */
|
|
92
|
+
onMessageNew?: (setChannels: React.Dispatch<React.SetStateAction<Channel<StreamChatGenerics>[] | null>>, event: Event<StreamChatGenerics>) => void;
|
|
81
93
|
/**
|
|
82
94
|
* Override the default listener/handler for event `message.new`
|
|
83
95
|
* This event is received on channel, when a new message is added on a channel.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChannelList.d.ts","sourceRoot":"","sources":["../../../../src/components/ChannelList/ChannelList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAInD,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAM/F,OAAO,EAAwB,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AAezF,OAAO,EACL,oBAAoB,EAErB,MAAM,gDAAgD,CAAC;AAGxD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAKnE,MAAM,MAAM,gBAAgB,CAC1B,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E,OAAO,CACT,IAAI,CACF,oBAAoB,CAAC,kBAAkB,CAAC,EACtC,yBAAyB,GACzB,qBAAqB,GACrB,wBAAwB,GACxB,sBAAsB,GACtB,4BAA4B,GAC5B,uBAAuB,GACvB,kBAAkB,GAClB,SAAS,GACT,gBAAgB,GAChB,qBAAqB,GACrB,UAAU,GACV,eAAe,GACf,gBAAgB,GAChB,oBAAoB,GACpB,eAAe,GACf,cAAc,GACd,oBAAoB,GACpB,mBAAmB,GACnB,UAAU,GACV,gBAAgB,GAChB,mBAA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AAE,KAAK,CAAC,kBAAkB,CAAC,KAC7B,IAAI,CAAC;IACV;;;SAGK;IACL,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB;;;SAGK;IACL,IAAI,CAAC,EAAE,WAAW,CAAC,kBAAkB,CAAC,CAAC;CACxC,CAAC;AAMF;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"ChannelList.d.ts","sourceRoot":"","sources":["../../../../src/components/ChannelList/ChannelList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAInD,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAM/F,OAAO,EAAwB,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AAezF,OAAO,EACL,oBAAoB,EAErB,MAAM,gDAAgD,CAAC;AAGxD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAKnE,MAAM,MAAM,gBAAgB,CAC1B,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E,OAAO,CACT,IAAI,CACF,oBAAoB,CAAC,kBAAkB,CAAC,EACtC,yBAAyB,GACzB,qBAAqB,GACrB,wBAAwB,GACxB,sBAAsB,GACtB,4BAA4B,GAC5B,uBAAuB,GACvB,kBAAkB,GAClB,SAAS,GACT,gBAAgB,GAChB,qBAAqB,GACrB,UAAU,GACV,eAAe,GACf,gBAAgB,GAChB,oBAAoB,GACpB,eAAe,GACf,cAAc,GACd,oBAAoB,GACpB,mBAAmB,GACnB,UAAU,GACV,gBAAgB,GAChB,mBAAmB,CACtB,CACF,GAAG;IACF,qOAAqO;IACrO,qBAAqB,CAAC,EAAE,CACtB,QAAQ,EAAE,KAAK,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC,KACzC,KAAK,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC,CAAC;IACxC;;;;;;SAMK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G,IAAI,CAAC,CAAC,EACvF,KAAK,EAAE,KAAK,CAAC,kBAAkB,CAAC,KAC7B,IAAI,CAAC;IACV;;;SAGK;IACL,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB;;;SAGK;IACL,IAAI,CAAC,EAAE,WAAW,CAAC,kBAAkB,CAAC,CAAC;CACxC,CAAC;AAMF;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,sJAqLvB,CAAC"}
|
package/lib/typescript/components/ChannelList/hooks/listeners/useNewMessageNotification.d.ts
CHANGED
|
@@ -3,8 +3,9 @@ import type { Channel, Event } from 'stream-chat';
|
|
|
3
3
|
import type { DefaultStreamChatGenerics } from '../../../../types/types';
|
|
4
4
|
type Parameters<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
5
5
|
setChannels: React.Dispatch<React.SetStateAction<Channel<StreamChatGenerics>[] | null>>;
|
|
6
|
+
onMessageNew?: (setChannels: React.Dispatch<React.SetStateAction<Channel<StreamChatGenerics>[] | null>>, event: Event<StreamChatGenerics>) => void;
|
|
6
7
|
onNewMessageNotification?: (setChannels: React.Dispatch<React.SetStateAction<Channel<StreamChatGenerics>[] | null>>, event: Event<StreamChatGenerics>) => void;
|
|
7
8
|
};
|
|
8
|
-
export declare const useNewMessageNotification: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ onNewMessageNotification, setChannels, }: Parameters<StreamChatGenerics>) => void;
|
|
9
|
+
export declare const useNewMessageNotification: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ onMessageNew, onNewMessageNotification, setChannels, }: Parameters<StreamChatGenerics>) => void;
|
|
9
10
|
export {};
|
|
10
11
|
//# sourceMappingURL=useNewMessageNotification.d.ts.map
|
package/lib/typescript/components/ChannelList/hooks/listeners/useNewMessageNotification.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useNewMessageNotification.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ChannelList/hooks/listeners/useNewMessageNotification.ts"],"names":[],"mappings":";AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAIlD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAGzE,KAAK,UAAU,CAAC,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9F;IACE,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,kBAAkB,CAAC,EAAE,GAAG,IAAI,CAAC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"useNewMessageNotification.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ChannelList/hooks/listeners/useNewMessageNotification.ts"],"names":[],"mappings":";AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAIlD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAGzE,KAAK,UAAU,CAAC,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9F;IACE,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,kBAAkB,CAAC,EAAE,GAAG,IAAI,CAAC,CAAC,CAAC;IACxF,YAAY,CAAC,EAAE,CACb,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,kBAAkB,CAAC,EAAE,GAAG,IAAI,CAAC,CAAC,EACvF,KAAK,EAAE,KAAK,CAAC,kBAAkB,CAAC,KAC7B,IAAI,CAAC;IACV,wBAAwB,CAAC,EAAE,CACzB,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,kBAAkB,CAAC,EAAE,GAAG,IAAI,CAAC,CAAC,EACvF,KAAK,EAAE,KAAK,CAAC,kBAAkB,CAAC,KAC7B,IAAI,CAAC;CACX,CAAC;AAEJ,eAAO,MAAM,yBAAyB,sLAkCrC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Channel, ChannelState, MessageResponse } from 'stream-chat';
|
|
1
|
+
import type { Channel, ChannelState, MessageResponse, PollVote, UserResponse } from 'stream-chat';
|
|
2
2
|
import type { DefaultStreamChatGenerics } from '../../../types/types';
|
|
3
3
|
type LatestMessage<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = ReturnType<ChannelState<StreamChatGenerics>['formatMessage']> | MessageResponse<StreamChatGenerics>;
|
|
4
4
|
export type LatestMessagePreview<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
@@ -10,6 +10,10 @@ export type LatestMessagePreview<StreamChatGenerics extends DefaultStreamChatGen
|
|
|
10
10
|
status: number;
|
|
11
11
|
created_at?: string | Date;
|
|
12
12
|
};
|
|
13
|
+
export type LatestMessagePreviewSelectorReturnType = {
|
|
14
|
+
createdBy?: UserResponse | null;
|
|
15
|
+
latestVotesByOption?: Record<string, PollVote[]>;
|
|
16
|
+
};
|
|
13
17
|
export declare enum MessageReadStatus {
|
|
14
18
|
NOT_SENT_BY_CURRENT_USER = 0,
|
|
15
19
|
UNREAD = 1,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLatestMessagePreview.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChannelPreview/hooks/useLatestMessagePreview.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"useLatestMessagePreview.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChannelPreview/hooks/useLatestMessagePreview.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,OAAO,EACP,YAAY,EACZ,eAAe,EAEf,QAAQ,EAER,YAAY,EACb,MAAM,aAAa,CAAC;AAOrB,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAGtE,KAAK,aAAa,CAChB,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAE9E,UAAU,CAAC,YAAY,CAAC,kBAAkB,CAAC,CAAC,eAAe,CAAC,CAAC,GAC7D,eAAe,CAAC,kBAAkB,CAAC,CAAC;AAExC,MAAM,MAAM,oBAAoB,CAC9B,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E;IACF,aAAa,EAAE,aAAa,CAAC,kBAAkB,CAAC,GAAG,SAAS,CAAC;IAC7D,QAAQ,EAAE;QACR,IAAI,EAAE,OAAO,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;KACd,EAAE,CAAC;IACJ,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,sCAAsC,GAAG;IACnD,SAAS,CAAC,EAAE,YAAY,GAAG,IAAI,CAAC;IAChC,mBAAmB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAC;CAClD,CAAC;AAqIF,oBAAY,iBAAiB;IAC3B,wBAAwB,IAAI;IAC5B,MAAM,IAAI;IACV,IAAI,IAAI;CACT;AA2ED;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,wIAIrB,MAAM,8KAkEpB,CAAC"}
|
|
@@ -4,7 +4,7 @@ import { DeepPartial } from '../../contexts/themeContext/ThemeContext';
|
|
|
4
4
|
import type { Theme } from '../../contexts/themeContext/utils/theme';
|
|
5
5
|
import type { DefaultStreamChatGenerics } from '../../types/types';
|
|
6
6
|
import type { Streami18n } from '../../utils/i18n/Streami18n';
|
|
7
|
-
export type ChatProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<ChatContextValue<StreamChatGenerics>, 'client'> & Partial<Pick<ChatContextValue<StreamChatGenerics>, 'ImageComponent'>> & {
|
|
7
|
+
export type ChatProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<ChatContextValue<StreamChatGenerics>, 'client'> & Partial<Pick<ChatContextValue<StreamChatGenerics>, 'ImageComponent' | 'resizableCDNHosts'>> & {
|
|
8
8
|
/**
|
|
9
9
|
* When false, ws connection won't be disconnection upon backgrounding the app.
|
|
10
10
|
* To receive push notifications, its necessary that user doesn't have active
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Chat.d.ts","sourceRoot":"","sources":["../../../../src/components/Chat/Chat.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAuB,MAAM,OAAO,CAAC;AAatE,OAAO,EAAE,gBAAgB,EAAgB,MAAM,wCAAwC,CAAC;AAGxF,OAAO,EAAE,WAAW,EAAiB,MAAM,0CAA0C,CAAC;AACtF,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,yCAAyC,CAAC;AAUrE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAEnE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"Chat.d.ts","sourceRoot":"","sources":["../../../../src/components/Chat/Chat.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAuB,MAAM,OAAO,CAAC;AAatE,OAAO,EAAE,gBAAgB,EAAgB,MAAM,wCAAwC,CAAC;AAGxF,OAAO,EAAE,WAAW,EAAiB,MAAM,0CAA0C,CAAC;AACtF,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,yCAAyC,CAAC;AAUrE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAEnE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAM9D,MAAM,MAAM,SAAS,CACnB,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E,IAAI,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,EAAE,QAAQ,CAAC,GACtD,OAAO,CAAC,IAAI,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,EAAE,gBAAgB,GAAG,mBAAmB,CAAC,CAAC,GAAG;IAC5F;;;;;OAKG;IACH,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC;;OAEG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAkDG;IACH,YAAY,CAAC,EAAE,UAAU,CAAC;IAC1B;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,KAAK,CAAC,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;CAC5B,CAAC;AAgJJ;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,IAAI,wKAQhB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handleEventToSyncDB.d.ts","sourceRoot":"","sources":["../../../../../src/components/Chat/hooks/handleEventToSyncDB.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"handleEventToSyncDB.d.ts","sourceRoot":"","sources":["../../../../../src/components/Chat/hooks/handleEventToSyncDB.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAerD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAEjE,eAAO,MAAM,mBAAmB,4FAGvB,KAAK,kDAEJ,OAAO,sBA8NhB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ChatContextValue } from '../../../contexts/chatContext/ChatContext';
|
|
2
2
|
import type { DefaultStreamChatGenerics } from '../../../types/types';
|
|
3
|
-
export declare const useCreateChatContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ appSettings, channel, client, connectionRecovering, enableOfflineSupport, ImageComponent, isOnline, mutedUsers, setActiveChannel, }: ChatContextValue<StreamChatGenerics>) => ChatContextValue<StreamChatGenerics>;
|
|
3
|
+
export declare const useCreateChatContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ appSettings, channel, client, connectionRecovering, enableOfflineSupport, ImageComponent, isOnline, mutedUsers, resizableCDNHosts, setActiveChannel, }: ChatContextValue<StreamChatGenerics>) => ChatContextValue<StreamChatGenerics>;
|
|
4
4
|
//# sourceMappingURL=useCreateChatContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCreateChatContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/Chat/hooks/useCreateChatContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAClF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAEtE,eAAO,MAAM,oBAAoB,
|
|
1
|
+
{"version":3,"file":"useCreateChatContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/Chat/hooks/useCreateChatContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAClF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAEtE,eAAO,MAAM,oBAAoB,4TAwChC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useIsOnline.d.ts","sourceRoot":"","sources":["../../../../../src/components/Chat/hooks/useIsOnline.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAwB,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"useIsOnline.d.ts","sourceRoot":"","sources":["../../../../../src/components/Chat/hooks/useIsOnline.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAwB,MAAM,aAAa,CAAC;AAMpE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAEtE;;;;;GAKG;AACH,eAAO,MAAM,WAAW;;;CA0FvB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ImageBackground.d.ts","sourceRoot":"","sources":["../../../src/components/ImageBackground.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAS,oBAAoB,EAAE,UAAU,EAAoB,MAAM,cAAc,CAAC;AAEzF;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,aAAa,CAC/C,oBAAoB,GAAG;IACrB,cAAc,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;CAClD,CAwCF,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import Animated from 'react-native-reanimated';
|
|
3
3
|
import type { UserResponse } from 'stream-chat';
|
|
4
4
|
import { ImageGalleryFooterCustomComponentProps } from './components/ImageGalleryFooter';
|
|
5
5
|
import { ImageGalleryHeaderCustomComponentProps } from './components/ImageGalleryHeader';
|
|
@@ -56,7 +56,7 @@ export type ImageGalleryCustomComponents<StreamChatGenerics extends DefaultStrea
|
|
|
56
56
|
};
|
|
57
57
|
};
|
|
58
58
|
type Props<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = ImageGalleryCustomComponents<StreamChatGenerics> & {
|
|
59
|
-
overlayOpacity: SharedValue<number>;
|
|
59
|
+
overlayOpacity: Animated.SharedValue<number>;
|
|
60
60
|
} & Pick<OverlayProviderProps<StreamChatGenerics>, 'giphyVersion' | 'imageGalleryGridSnapPoints' | 'imageGalleryGridHandleHeight' | 'numberOfImageGalleryGridColumns' | 'autoPlayVideo'>;
|
|
61
61
|
export declare const ImageGallery: {
|
|
62
62
|
<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: Props<StreamChatGenerics>): React.JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageGallery.d.ts","sourceRoot":"","sources":["../../../../src/components/ImageGallery/ImageGallery.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ImageGallery.d.ts","sourceRoot":"","sources":["../../../../src/components/ImageGallery/ImageGallery.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAS3D,OAAO,QAQN,MAAM,yBAAyB,CAAC;AAIjC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAIhD,OAAO,EAEL,sCAAsC,EACvC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAEL,sCAAsC,EACvC,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EAAE,+BAA+B,EAAa,MAAM,wBAAwB,CAAC;AACpF,OAAO,EACL,0CAA0C,EAE3C,MAAM,8BAA8B,CAAC;AAKtC,OAAO,EACL,oBAAoB,EAErB,MAAM,8CAA8C,CAAC;AAItD,OAAO,EAAE,yBAAyB,EAAa,MAAM,mBAAmB,CAAC;AASzE,oBAAY,UAAU;IACpB,KAAK,IAAI;IACT,IAAI,IAAA;CACL;AAED,oBAAY,SAAS;IACnB,YAAY,IAAI;IAChB,IAAI,IAAA;IACJ,KAAK,IAAA;CACN;AAED,MAAM,MAAM,4BAA4B,CACtC,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E;IACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACH,4BAA4B,CAAC,EAAE;QAC7B,MAAM,CAAC,EAAE,sCAAsC,CAAC,kBAAkB,CAAC,CAAC;QACpE,IAAI,CAAC,EAAE,+BAA+B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C"}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ImageStyle, StyleProp } from 'react-native';
|
|
3
|
-
import
|
|
3
|
+
import Animated from 'react-native-reanimated';
|
|
4
4
|
type Props = {
|
|
5
5
|
accessibilityLabel: string;
|
|
6
6
|
index: number;
|
|
7
|
-
offsetScale: SharedValue<number>;
|
|
7
|
+
offsetScale: Animated.SharedValue<number>;
|
|
8
8
|
photo: {
|
|
9
9
|
uri: string;
|
|
10
10
|
};
|
|
11
11
|
previous: boolean;
|
|
12
|
-
scale: SharedValue<number>;
|
|
12
|
+
scale: Animated.SharedValue<number>;
|
|
13
13
|
screenHeight: number;
|
|
14
14
|
selected: boolean;
|
|
15
15
|
shouldRender: boolean;
|
|
16
|
-
translateX: SharedValue<number>;
|
|
17
|
-
translateY: SharedValue<number>;
|
|
16
|
+
translateX: Animated.SharedValue<number>;
|
|
17
|
+
translateY: Animated.SharedValue<number>;
|
|
18
18
|
style?: StyleProp<ImageStyle>;
|
|
19
19
|
};
|
|
20
20
|
export declare const AnimatedGalleryImage: React.MemoExoticComponent<(props: Props) => React.JSX.Element>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnimatedGalleryImage.d.ts","sourceRoot":"","sources":["../../../../../src/components/ImageGallery/components/AnimatedGalleryImage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC1D,
|
|
1
|
+
{"version":3,"file":"AnimatedGalleryImage.d.ts","sourceRoot":"","sources":["../../../../../src/components/ImageGallery/components/AnimatedGalleryImage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,QAA8B,MAAM,yBAAyB,CAAC;AAMrE,KAAK,KAAK,GAAG;IACX,kBAAkB,EAAE,MAAM,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,QAAQ,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IAC1C,KAAK,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;IACvB,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,QAAQ,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IACpC,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,YAAY,EAAE,OAAO,CAAC;IACtB,UAAU,EAAE,QAAQ,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IACzC,UAAU,EAAE,QAAQ,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IACzC,KAAK,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;CAC/B,CAAC;AAEF,eAAO,MAAM,oBAAoB,oCACvB,KAAK,uBAiGd,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ViewStyle } from 'react-native';
|
|
3
3
|
import type { StyleProp } from 'react-native';
|
|
4
|
-
import
|
|
4
|
+
import Animated from 'react-native-reanimated';
|
|
5
5
|
import { VideoType } from '../../../native';
|
|
6
6
|
export type AnimatedGalleryVideoType = {
|
|
7
7
|
attachmentId: string;
|
|
@@ -9,18 +9,18 @@ export type AnimatedGalleryVideoType = {
|
|
|
9
9
|
handleLoad: (index: string, duration: number) => void;
|
|
10
10
|
handleProgress: (index: string, progress: number, hasEnd?: boolean) => void;
|
|
11
11
|
index: number;
|
|
12
|
-
offsetScale: SharedValue<number>;
|
|
12
|
+
offsetScale: Animated.SharedValue<number>;
|
|
13
13
|
paused: boolean;
|
|
14
14
|
previous: boolean;
|
|
15
|
-
scale: SharedValue<number>;
|
|
15
|
+
scale: Animated.SharedValue<number>;
|
|
16
16
|
screenHeight: number;
|
|
17
17
|
selected: boolean;
|
|
18
18
|
shouldRender: boolean;
|
|
19
19
|
source: {
|
|
20
20
|
uri: string;
|
|
21
21
|
};
|
|
22
|
-
translateX: SharedValue<number>;
|
|
23
|
-
translateY: SharedValue<number>;
|
|
22
|
+
translateX: Animated.SharedValue<number>;
|
|
23
|
+
translateY: Animated.SharedValue<number>;
|
|
24
24
|
videoRef: React.RefObject<VideoType>;
|
|
25
25
|
repeat?: boolean;
|
|
26
26
|
style?: StyleProp<ViewStyle>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnimatedGalleryVideo.d.ts","sourceRoot":"","sources":["../../../../../src/components/ImageGallery/components/AnimatedGalleryVideo.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EAAoB,SAAS,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,
|
|
1
|
+
{"version":3,"file":"AnimatedGalleryVideo.d.ts","sourceRoot":"","sources":["../../../../../src/components/ImageGallery/components/AnimatedGalleryVideo.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EAAoB,SAAS,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,QAA8B,MAAM,yBAAyB,CAAC;AAGrE,OAAO,EAML,SAAS,EACV,MAAM,iBAAiB,CAAC;AAMzB,MAAM,MAAM,wBAAwB,GAAG;IACrC,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACtD,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAC5E,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,QAAQ,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IAC1C,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,QAAQ,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IACpC,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,YAAY,EAAE,OAAO,CAAC;IACtB,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;IACxB,UAAU,EAAE,QAAQ,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IACzC,UAAU,EAAE,QAAQ,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IACzC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;IACrC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,CAAC;AAYF,eAAO,MAAM,oBAAoB,oCACvB,wBAAwB,uBA+LjC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import Animated from 'react-native-reanimated';
|
|
3
3
|
import { VideoType } from '../../../native';
|
|
4
4
|
import { DefaultStreamChatGenerics } from '../../../types/types';
|
|
5
5
|
import type { Photo } from '../ImageGallery';
|
|
@@ -29,7 +29,7 @@ type ImageGalleryFooterPropsWithContext<StreamChatGenerics extends DefaultStream
|
|
|
29
29
|
accessibilityLabel: string;
|
|
30
30
|
duration: number;
|
|
31
31
|
onPlayPause: () => void;
|
|
32
|
-
opacity: SharedValue<number>;
|
|
32
|
+
opacity: Animated.SharedValue<number>;
|
|
33
33
|
openGridView: () => void;
|
|
34
34
|
paused: boolean;
|
|
35
35
|
photo: Photo<StreamChatGenerics>;
|
|
@@ -37,7 +37,7 @@ type ImageGalleryFooterPropsWithContext<StreamChatGenerics extends DefaultStream
|
|
|
37
37
|
progress: number;
|
|
38
38
|
selectedIndex: number;
|
|
39
39
|
videoRef: React.RefObject<VideoType>;
|
|
40
|
-
visible: SharedValue<number>;
|
|
40
|
+
visible: Animated.SharedValue<number>;
|
|
41
41
|
};
|
|
42
42
|
export declare const ImageGalleryFooterWithContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: ImageGalleryFooterPropsWithContext<StreamChatGenerics>) => React.JSX.Element;
|
|
43
43
|
export type ImageGalleryFooterProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = ImageGalleryFooterPropsWithContext<StreamChatGenerics>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageGalleryFooter.d.ts","sourceRoot":"","sources":["../../../../../src/components/ImageGallery/components/ImageGalleryFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,
|
|
1
|
+
{"version":3,"file":"ImageGalleryFooter.d.ts","sourceRoot":"","sources":["../../../../../src/components/ImageGallery/components/ImageGalleryFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAO,QAAwD,MAAM,yBAAyB,CAAC;AAO/F,OAAO,EAAoC,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE9E,OAAO,EAAE,yBAAyB,EAAa,MAAM,sBAAsB,CAAC;AAC5E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAsC7C,MAAM,MAAM,iCAAiC,CAC3C,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E,CAAC,EACH,YAAY,EACZ,KAAK,EACL,KAAK,EACL,aAAa,GACd,EAAE;IACD,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3B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AAE,MAAM,IAAI,CAAC;IACzB,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,KAAK,CAAC,kBAAkB,CAAC,CAAC;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;IACrC,OAAO,EAAE,QAAQ,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;CACvC,CAAC;AAEF,eAAO,MAAM,6BAA6B,wKAyHzC,CAAC;AAoEF,MAAM,MAAM,uBAAuB,CACjC,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E,kCAAkC,CAAC,kBAAkB,CAAC,CAAC;AAE3D,eAAO,MAAM,kBAAkB;;;CAIe,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import Animated from 'react-native-reanimated';
|
|
3
3
|
import type { DefaultStreamChatGenerics } from '../../../types/types';
|
|
4
4
|
import type { Photo } from '../ImageGallery';
|
|
5
5
|
export type ImageGalleryHeaderCustomComponent<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = ({ hideOverlay, photo, }: {
|
|
@@ -13,8 +13,8 @@ export type ImageGalleryHeaderCustomComponentProps<StreamChatGenerics extends De
|
|
|
13
13
|
rightElement?: ImageGalleryHeaderCustomComponent<StreamChatGenerics>;
|
|
14
14
|
};
|
|
15
15
|
type Props<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = ImageGalleryHeaderCustomComponentProps<StreamChatGenerics> & {
|
|
16
|
-
opacity: SharedValue<number>;
|
|
17
|
-
visible: SharedValue<number>;
|
|
16
|
+
opacity: Animated.SharedValue<number>;
|
|
17
|
+
visible: Animated.SharedValue<number>;
|
|
18
18
|
photo?: Photo<StreamChatGenerics>;
|
|
19
19
|
};
|
|
20
20
|
export declare const ImageGalleryHeader: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageGalleryHeader.d.ts","sourceRoot":"","sources":["../../../../../src/components/ImageGallery/components/ImageGalleryHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAEjD,
|
|
1
|
+
{"version":3,"file":"ImageGalleryHeader.d.ts","sourceRoot":"","sources":["../../../../../src/components/ImageGallery/components/ImageGalleryHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAEjD,OAAO,QAAwD,MAAM,yBAAyB,CAAC;AAO/F,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAEtE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAqC7C,MAAM,MAAM,iCAAiC,CAC3C,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E,CAAC,EACH,WAAW,EACX,KAAK,GACN,EAAE;IACD,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,KAAK,CAAC,EAAE,KAAK,CAAC,kBAAkB,CAAC,CAAC;CACnC,KAAK,KAAK,CAAC,YAAY,GAAG,IAAI,CAAC;AAEhC,MAAM,MAAM,sCAAsC,CAChD,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E;IACF,aAAa,CAAC,EAAE,iCAAiC,CAAC,kBAAkB,CAAC,CAAC;IACtE,SAAS,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IAC/B,WAAW,CAAC,EAAE,iCAAiC,CAAC,kBAAkB,CAAC,CAAC;IACpE,YAAY,CAAC,EAAE,iCAAiC,CAAC,kBAAkB,CAAC,CAAC;CACtE,CAAC;AAEF,KAAK,KAAK,CAAC,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IACzF,sCAAsC,CAAC,kBAAkB,CAAC,GAAG;IAC3D,OAAO,EAAE,QAAQ,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IACtC,OAAO,EAAE,QAAQ,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IACtC,KAAK,CAAC,EAAE,KAAK,CAAC,kBAAkB,CAAC,CAAC;CAEnC,CAAC;AAEJ,eAAO,MAAM,kBAAkB;;;CAqF9B,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import Animated from 'react-native-reanimated';
|
|
3
3
|
type Props = {
|
|
4
|
-
animatedBottomSheetIndex: SharedValue<number>;
|
|
4
|
+
animatedBottomSheetIndex: Animated.SharedValue<number>;
|
|
5
5
|
closeGridView: () => void;
|
|
6
6
|
currentBottomSheetIndex: number;
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageGalleryOverlay.d.ts","sourceRoot":"","sources":["../../../../../src/components/ImageGallery/components/ImageGalleryOverlay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAOnD,
|
|
1
|
+
{"version":3,"file":"ImageGalleryOverlay.d.ts","sourceRoot":"","sources":["../../../../../src/components/ImageGallery/components/ImageGalleryOverlay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAOnD,OAAO,QAMN,MAAM,yBAAyB,CAAC;AAIjC,KAAK,KAAK,GAAG;IACX,wBAAwB,EAAE,QAAQ,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IACvD,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,uBAAuB,EAAE,MAAM,CAAC;CACjC,CAAC;AAEF,eAAO,MAAM,mBAAmB;YAAW,KAAK;;CAsE/C,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { PanGestureHandlerGestureEvent, PinchGestureHandlerGestureEvent, TapGestureHandlerGestureEvent } from 'react-native-gesture-handler';
|
|
1
2
|
import { SharedValue } from 'react-native-reanimated';
|
|
2
3
|
export declare enum HasPinched {
|
|
3
4
|
FALSE = 0,
|
|
@@ -25,10 +26,10 @@ export declare const useImageGalleryGestures: ({ currentImageHeight, halfScreenH
|
|
|
25
26
|
translateY: SharedValue<number>;
|
|
26
27
|
translationX: SharedValue<number>;
|
|
27
28
|
}) => {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
onDoubleTap: (e: TapGestureHandlerGestureEvent) => void;
|
|
30
|
+
onPan: (e: PanGestureHandlerGestureEvent) => void;
|
|
31
|
+
onPinch: (e: PinchGestureHandlerGestureEvent) => void;
|
|
32
|
+
onSingleTap: (e: TapGestureHandlerGestureEvent) => void;
|
|
32
33
|
};
|
|
33
34
|
/**
|
|
34
35
|
* Clamping worklet to clamp the scaling
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useImageGalleryGestures.d.ts","sourceRoot":"","sources":["../../../../../src/components/ImageGallery/hooks/useImageGalleryGestures.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useImageGalleryGestures.d.ts","sourceRoot":"","sources":["../../../../../src/components/ImageGallery/hooks/useImageGalleryGestures.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,6BAA6B,EAC7B,+BAA+B,EAC/B,6BAA6B,EAC9B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAIL,WAAW,EAKZ,MAAM,yBAAyB,CAAC;AAKjC,oBAAY,UAAU;IACpB,KAAK,IAAI;IACT,IAAI,IAAA;CACL;AAED,oBAAY,SAAS;IACnB,YAAY,IAAI;IAChB,IAAI,IAAA;IACJ,KAAK,IAAA;CACN;AAID,eAAO,MAAM,uBAAuB;wBAiBd,MAAM;sBACR,MAAM;qBACP,MAAM;yBACF,YAAY,MAAM,CAAC;iBAC3B,YAAY,MAAM,CAAC;oBAChB,YAAY,MAAM,CAAC;iBACtB,MAAM;WACZ,YAAY,MAAM,CAAC;kBACZ,MAAM;iBACP,MAAM;mBACJ,MAAM;sBACH,MAAM,QAAQ,CAAC,MAAM,cAAc,CAAC,MAAM,CAAC,CAAC;gBAClD,YAAY,MAAM,CAAC;gBACnB,YAAY,MAAM,CAAC;kBACjB,YAAY,MAAM,CAAC;;;;;;CAypBlC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,KAAK,UAAW,MAAM,cAAc,MAAM,cAAc,MAAM,WAG1E,CAAC"}
|
|
@@ -5,7 +5,9 @@ import { ChannelContextValue } from '../../contexts/channelContext/ChannelContex
|
|
|
5
5
|
import { ChatContextValue } from '../../contexts/chatContext/ChatContext';
|
|
6
6
|
import { KeyboardContextValue } from '../../contexts/keyboardContext/KeyboardContext';
|
|
7
7
|
import { MessageContextValue } from '../../contexts/messageContext/MessageContext';
|
|
8
|
+
import { MessageOverlayContextValue } from '../../contexts/messageOverlayContext/MessageOverlayContext';
|
|
8
9
|
import { MessagesContextValue } from '../../contexts/messagesContext/MessagesContext';
|
|
10
|
+
import { OverlayContextValue } from '../../contexts/overlayContext/OverlayContext';
|
|
9
11
|
import { ThreadContextValue } from '../../contexts/threadContext/ThreadContext';
|
|
10
12
|
import { TranslationContextValue } from '../../contexts/translationContext/TranslationContext';
|
|
11
13
|
import { DefaultStreamChatGenerics } from '../../types/types';
|
|
@@ -29,13 +31,13 @@ export type FileAttachmentTouchableHandlerPayload<StreamChatGenerics extends Def
|
|
|
29
31
|
attachment?: Attachment<StreamChatGenerics>;
|
|
30
32
|
};
|
|
31
33
|
};
|
|
32
|
-
export type
|
|
34
|
+
export type TouchableHandlerPayload = {
|
|
33
35
|
defaultHandler?: () => void;
|
|
34
36
|
event?: GestureResponderEvent;
|
|
35
37
|
} & ({
|
|
36
38
|
emitter?: Exclude<TouchableEmitter, 'textMention' | 'textLink' | 'card' | 'fileAttachment'>;
|
|
37
39
|
} | TextMentionTouchableHandlerPayload | UrlTouchableHandlerPayload | FileAttachmentTouchableHandlerPayload);
|
|
38
|
-
export type
|
|
40
|
+
export type MessageTouchableHandlerPayload<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = TouchableHandlerPayload & {
|
|
39
41
|
/**
|
|
40
42
|
* Set of action handler functions for various message actions. You can use these functions to perform any action when give interaction occurs.
|
|
41
43
|
*/
|
|
@@ -57,13 +59,18 @@ export type MessageActionHandlers<StreamChatGenerics extends DefaultStreamChatGe
|
|
|
57
59
|
pinMessage: () => Promise<void>;
|
|
58
60
|
quotedReply: () => void;
|
|
59
61
|
resendMessage: () => Promise<void>;
|
|
62
|
+
/**
|
|
63
|
+
* @deprecated
|
|
64
|
+
* TODO: This seems useless for the action handlers here so can be removed.
|
|
65
|
+
*/
|
|
66
|
+
showMessageOverlay: () => void;
|
|
60
67
|
toggleBanUser: () => Promise<void>;
|
|
61
68
|
toggleMuteUser: () => Promise<void>;
|
|
62
69
|
toggleReaction: (reactionType: string) => Promise<void>;
|
|
63
70
|
unpinMessage: () => Promise<void>;
|
|
64
71
|
threadReply?: (message: MessageType<StreamChatGenerics>) => Promise<void>;
|
|
65
72
|
};
|
|
66
|
-
export type MessagePropsWithContext<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<ChannelContextValue<StreamChatGenerics>, 'channel' | 'enforceUniqueReaction' | 'members'> & Pick<KeyboardContextValue, 'dismissKeyboard'> & Partial<Omit<MessageContextValue<StreamChatGenerics>, 'groupStyles' | '
|
|
73
|
+
export type MessagePropsWithContext<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<ChannelContextValue<StreamChatGenerics>, 'channel' | 'enforceUniqueReaction' | 'members'> & Pick<KeyboardContextValue, 'dismissKeyboard'> & Partial<Omit<MessageContextValue<StreamChatGenerics>, 'groupStyles' | 'message'>> & Pick<MessageContextValue<StreamChatGenerics>, 'groupStyles' | 'message'> & Pick<MessagesContextValue<StreamChatGenerics>, 'sendReaction' | 'deleteMessage' | 'dismissKeyboardOnMessageTouch' | 'forceAlignMessages' | 'handleBan' | 'handleBlock' | 'handleCopy' | 'handleDelete' | 'handleEdit' | 'handleFlag' | 'handleMute' | 'handlePinMessage' | 'handleQuotedReply' | 'handleReaction' | 'handleRetry' | 'handleThreadReply' | 'isAttachmentEqual' | 'messageActions' | 'messageContentOrder' | 'MessageBounce' | 'MessageSimple' | 'onLongPressMessage' | 'onPressInMessage' | 'onPressMessage' | 'OverlayReactionList' | 'removeMessage' | 'deleteReaction' | 'retrySendMessage' | 'selectReaction' | 'setEditingState' | 'setQuotedMessageState' | 'supportedReactions' | 'updateMessage' | 'PollContent'> & Pick<MessageOverlayContextValue<StreamChatGenerics>, 'setData'> & Pick<OverlayContextValue, 'setOverlay'> & Pick<ThreadContextValue<StreamChatGenerics>, 'openThread'> & Pick<TranslationContextValue, 't'> & {
|
|
67
74
|
chatContext: ChatContextValue<StreamChatGenerics>;
|
|
68
75
|
messagesContext: MessagesContextValue<StreamChatGenerics>;
|
|
69
76
|
/**
|
|
@@ -72,6 +79,35 @@ export type MessagePropsWithContext<StreamChatGenerics extends DefaultStreamChat
|
|
|
72
79
|
enableLongPress?: boolean;
|
|
73
80
|
goToMessage?: (messageId: string) => void;
|
|
74
81
|
isTargetedMessage?: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Array of allowed actions or null on message, this can also be a function returning the array.
|
|
84
|
+
* If all the actions need to be disabled an empty array should be provided as value of prop
|
|
85
|
+
*/
|
|
86
|
+
/**
|
|
87
|
+
* You can call methods available on the Message
|
|
88
|
+
* component such as handleEdit, handleDelete, handleAction etc.
|
|
89
|
+
*
|
|
90
|
+
* Source - [Message](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Message/Message.tsx)
|
|
91
|
+
*
|
|
92
|
+
* By default, we show the overlay with all the message actions on long press.
|
|
93
|
+
*
|
|
94
|
+
* @param message Message object which was long pressed
|
|
95
|
+
* @param event Event object for onLongPress event
|
|
96
|
+
**/
|
|
97
|
+
onLongPress?: (payload: Partial<MessageTouchableHandlerPayload<StreamChatGenerics>>) => void;
|
|
98
|
+
/**
|
|
99
|
+
* You can call methods available on the Message
|
|
100
|
+
* component such as handleEdit, handleDelete, handleAction etc.
|
|
101
|
+
*
|
|
102
|
+
* Source - [Message](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Message/Message.tsx)
|
|
103
|
+
*
|
|
104
|
+
* By default, we will dismiss the keyboard on press.
|
|
105
|
+
*
|
|
106
|
+
* @param message Message object which was long pressed
|
|
107
|
+
* @param event Event object for onLongPress event
|
|
108
|
+
* */
|
|
109
|
+
onPress?: (payload: Partial<MessageTouchableHandlerPayload<StreamChatGenerics>>) => void;
|
|
110
|
+
onPressIn?: (payload: Partial<MessageTouchableHandlerPayload<StreamChatGenerics>>) => void;
|
|
75
111
|
/**
|
|
76
112
|
* Handler to open the thread on message. This is callback for touch event for replies button.
|
|
77
113
|
*
|
|
@@ -81,7 +117,7 @@ export type MessagePropsWithContext<StreamChatGenerics extends DefaultStreamChat
|
|
|
81
117
|
showUnreadUnderlay?: boolean;
|
|
82
118
|
style?: StyleProp<ViewStyle>;
|
|
83
119
|
};
|
|
84
|
-
export type MessageProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Partial<Omit<MessagePropsWithContext<StreamChatGenerics>, 'groupStyles' | '
|
|
120
|
+
export type MessageProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Partial<Omit<MessagePropsWithContext<StreamChatGenerics>, 'groupStyles' | 'message'>> & Pick<MessagePropsWithContext<StreamChatGenerics>, 'groupStyles' | 'message'>;
|
|
85
121
|
/**
|
|
86
122
|
* Message - A high level component which implements all the logic required for a message.
|
|
87
123
|
* The actual rendering of the message is delegated via the "Message" property
|