stream-chat-react-native-core 5.39.5 → 5.40.0-rc.2
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 +0 -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 +29 -22
- 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 +7 -0
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildGallery.js.map +1 -1
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.js +3 -1
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.js.map +1 -1
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.js +3 -0
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.js.map +1 -1
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.js +4 -0
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.js.map +1 -1
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildThumbnail.js +2 -0
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildThumbnail.js.map +1 -1
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildThumbnailGrid.js +2 -0
- 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/AutoCompleteInput/AutoCompleteSuggestionList.js +1 -2
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionList.js.map +1 -1
- package/lib/commonjs/components/Avatar/Avatar.js +4 -0
- package/lib/commonjs/components/Avatar/Avatar.js.map +1 -1
- package/lib/commonjs/components/Avatar/GroupAvatar.js +4 -0
- package/lib/commonjs/components/Avatar/GroupAvatar.js.map +1 -1
- package/lib/commonjs/components/Channel/Channel.js +298 -429
- package/lib/commonjs/components/Channel/Channel.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateChannelContext.js +0 -2
- package/lib/commonjs/components/Channel/hooks/useCreateChannelContext.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateInputMessageInputContext.js +2 -2
- package/lib/commonjs/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js +26 -10
- package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
- package/lib/commonjs/components/ChannelList/ChannelList.js +0 -2
- 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 +8 -18
- package/lib/commonjs/components/ChannelList/hooks/listeners/useNewMessageNotification.js.map +1 -1
- package/lib/commonjs/components/Chat/Chat.js +2 -9
- package/lib/commonjs/components/Chat/Chat.js.map +1 -1
- package/lib/commonjs/components/Chat/hooks/handleEventToSyncDB.js +3 -3
- package/lib/commonjs/components/Chat/hooks/handleEventToSyncDB.js.map +1 -1
- package/lib/commonjs/components/Chat/hooks/useCreateChatContext.js +0 -2
- package/lib/commonjs/components/Chat/hooks/useCreateChatContext.js.map +1 -1
- package/lib/commonjs/components/Chat/hooks/useIsOnline.js +16 -13
- package/lib/commonjs/components/Chat/hooks/useIsOnline.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/ImageGallery.js +58 -96
- 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 +92 -90
- 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 +123 -173
- 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 +40 -144
- 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 +0 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageFooter.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessagePinnedHeader.js +20 -34
- package/lib/commonjs/components/Message/MessageSimple/MessagePinnedHeader.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageSimple.js +180 -44
- 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/ReactionListBottom.js +234 -0
- package/lib/commonjs/components/Message/MessageSimple/ReactionList/ReactionListBottom.js.map +1 -0
- package/lib/commonjs/components/Message/MessageSimple/ReactionList/ReactionListTop.js +195 -0
- package/lib/commonjs/components/Message/MessageSimple/ReactionList/ReactionListTop.js.map +1 -0
- package/lib/commonjs/components/Message/hooks/useCreateMessageContext.js +4 -16
- package/lib/commonjs/components/Message/hooks/useCreateMessageContext.js.map +1 -1
- package/lib/commonjs/components/Message/hooks/useMessageActions.js +36 -72
- package/lib/commonjs/components/Message/hooks/useMessageActions.js.map +1 -1
- package/lib/commonjs/components/Message/hooks/useMessageData.js +38 -0
- package/lib/commonjs/components/Message/hooks/useMessageData.js.map +1 -0
- 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 +4 -6
- 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 +1 -2
- package/lib/commonjs/components/MessageInput/MessageInput.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js +1 -0
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.js +1 -2
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.js.map +1 -1
- package/lib/commonjs/components/MessageInput/hooks/useAudioController.js +42 -60
- package/lib/commonjs/components/MessageInput/hooks/useAudioController.js.map +1 -1
- package/lib/commonjs/components/MessageList/MessageList.js +1 -3
- package/lib/commonjs/components/MessageList/MessageList.js.map +1 -1
- package/lib/commonjs/components/MessageMenu/MessageActionList.js +35 -0
- package/lib/commonjs/components/MessageMenu/MessageActionList.js.map +1 -0
- package/lib/commonjs/components/MessageMenu/MessageActionListItem.js +60 -0
- package/lib/commonjs/components/MessageMenu/MessageActionListItem.js.map +1 -0
- package/lib/commonjs/components/MessageMenu/MessageMenu.js +70 -0
- package/lib/commonjs/components/MessageMenu/MessageMenu.js.map +1 -0
- package/lib/commonjs/components/MessageMenu/MessageReactionPicker.js +81 -0
- package/lib/commonjs/components/MessageMenu/MessageReactionPicker.js.map +1 -0
- package/lib/commonjs/components/MessageMenu/MessageUserReactions.js +171 -0
- package/lib/commonjs/components/MessageMenu/MessageUserReactions.js.map +1 -0
- package/lib/commonjs/components/{MessageOverlay/OverlayReactionsAvatar.js → MessageMenu/MessageUserReactionsAvatar.js} +5 -6
- package/lib/commonjs/components/MessageMenu/MessageUserReactionsAvatar.js.map +1 -0
- package/lib/commonjs/components/MessageMenu/MessageUserReactionsItem.js +110 -0
- package/lib/commonjs/components/MessageMenu/MessageUserReactionsItem.js.map +1 -0
- package/lib/commonjs/components/MessageMenu/ReactionButton.js +59 -0
- package/lib/commonjs/components/MessageMenu/ReactionButton.js.map +1 -0
- package/lib/commonjs/components/{MessageOverlay → MessageMenu}/hooks/useFetchReactions.js +2 -0
- package/lib/commonjs/components/MessageMenu/hooks/useFetchReactions.js.map +1 -0
- package/lib/commonjs/components/ProgressControl/ProgressControl.js +21 -28
- package/lib/commonjs/components/ProgressControl/ProgressControl.js.map +1 -1
- package/lib/commonjs/components/ProgressControl/WaveProgressBar.js +22 -27
- package/lib/commonjs/components/ProgressControl/WaveProgressBar.js.map +1 -1
- package/lib/commonjs/components/Reply/Reply.js +6 -2
- package/lib/commonjs/components/Reply/Reply.js.map +1 -1
- package/lib/commonjs/components/UIComponents/BottomSheetModal.js +152 -0
- package/lib/commonjs/components/UIComponents/BottomSheetModal.js.map +1 -0
- package/lib/commonjs/components/{ImageBackground.js → UIComponents/ImageBackground.js} +1 -1
- package/lib/commonjs/components/UIComponents/ImageBackground.js.map +1 -0
- package/lib/{module/components/Spinner → commonjs/components/UIComponents}/Spinner.js +1 -1
- package/lib/commonjs/components/UIComponents/Spinner.js.map +1 -0
- package/lib/commonjs/components/UIComponents/index.js +37 -0
- package/lib/commonjs/components/UIComponents/index.js.map +1 -0
- package/lib/commonjs/components/docs/data.js.map +1 -1
- package/lib/commonjs/components/index.js +56 -45
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/contexts/activeChannelsRefContext/ActiveChannelsRefContext.js +1 -13
- package/lib/commonjs/contexts/activeChannelsRefContext/ActiveChannelsRefContext.js.map +1 -1
- package/lib/commonjs/contexts/attachmentPickerContext/AttachmentPickerContext.js +1 -11
- package/lib/commonjs/contexts/attachmentPickerContext/AttachmentPickerContext.js.map +1 -1
- package/lib/commonjs/contexts/channelContext/ChannelContext.js +1 -11
- package/lib/commonjs/contexts/channelContext/ChannelContext.js.map +1 -1
- package/lib/commonjs/contexts/channelsContext/ChannelsContext.js +1 -11
- package/lib/commonjs/contexts/channelsContext/ChannelsContext.js.map +1 -1
- package/lib/commonjs/contexts/channelsStateContext/ChannelsStateContext.js +1 -11
- package/lib/commonjs/contexts/channelsStateContext/ChannelsStateContext.js.map +1 -1
- package/lib/commonjs/contexts/chatConfigContext/ChatConfigContext.js +33 -0
- package/lib/commonjs/contexts/chatConfigContext/ChatConfigContext.js.map +1 -0
- package/lib/commonjs/contexts/chatContext/ChatContext.js +1 -11
- package/lib/commonjs/contexts/chatContext/ChatContext.js.map +1 -1
- package/lib/commonjs/contexts/imageGalleryContext/ImageGalleryContext.js +1 -11
- package/lib/commonjs/contexts/imageGalleryContext/ImageGalleryContext.js.map +1 -1
- package/lib/commonjs/contexts/index.js +11 -11
- package/lib/commonjs/contexts/index.js.map +1 -1
- package/lib/commonjs/contexts/keyboardContext/KeyboardContext.js +1 -11
- package/lib/commonjs/contexts/keyboardContext/KeyboardContext.js.map +1 -1
- package/lib/commonjs/contexts/messageContext/MessageContext.js +1 -11
- package/lib/commonjs/contexts/messageContext/MessageContext.js.map +1 -1
- package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js +4 -14
- package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js.map +1 -1
- package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +1 -1
- package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
- package/lib/commonjs/contexts/messagesContext/MessagesContext.js +1 -11
- package/lib/commonjs/contexts/messagesContext/MessagesContext.js.map +1 -1
- package/lib/commonjs/contexts/overlayContext/OverlayContext.js +1 -14
- package/lib/commonjs/contexts/overlayContext/OverlayContext.js.map +1 -1
- package/lib/commonjs/contexts/overlayContext/OverlayProvider.js +18 -54
- package/lib/commonjs/contexts/overlayContext/OverlayProvider.js.map +1 -1
- package/lib/commonjs/contexts/paginatedMessageListContext/PaginatedMessageListContext.js +1 -11
- package/lib/commonjs/contexts/paginatedMessageListContext/PaginatedMessageListContext.js.map +1 -1
- package/lib/commonjs/contexts/suggestionsContext/SuggestionsContext.js +1 -11
- package/lib/commonjs/contexts/suggestionsContext/SuggestionsContext.js.map +1 -1
- package/lib/commonjs/contexts/themeContext/utils/theme.js +68 -50
- package/lib/commonjs/contexts/themeContext/utils/theme.js.map +1 -1
- package/lib/commonjs/contexts/threadContext/ThreadContext.js +1 -11
- package/lib/commonjs/contexts/threadContext/ThreadContext.js.map +1 -1
- package/lib/commonjs/contexts/translationContext/TranslationContext.js +1 -11
- package/lib/commonjs/contexts/translationContext/TranslationContext.js.map +1 -1
- package/lib/commonjs/contexts/typingContext/TypingContext.js +1 -11
- package/lib/commonjs/contexts/typingContext/TypingContext.js.map +1 -1
- package/lib/commonjs/hooks/useTranslatedMessage.js +1 -4
- package/lib/commonjs/hooks/useTranslatedMessage.js.map +1 -1
- package/lib/commonjs/icons/PinHeader.js +17 -6
- package/lib/commonjs/icons/PinHeader.js.map +1 -1
- package/lib/commonjs/index.js +4 -23
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/mock-builders/DB/mock.js +79 -82
- package/lib/commonjs/mock-builders/DB/mock.js.map +1 -1
- package/lib/commonjs/native.js +36 -25
- package/lib/commonjs/native.js.map +1 -1
- package/lib/commonjs/store/SqliteClient.js +179 -0
- package/lib/commonjs/store/SqliteClient.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 +6 -3
- 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/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/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/utils/DBSyncManager.js +4 -4
- package/lib/commonjs/utils/DBSyncManager.js.map +1 -1
- package/lib/commonjs/utils/getResizedImageUrl.js +5 -3
- 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 +29 -22
- 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 +7 -0
- package/lib/module/components/Attachment/utils/buildGallery/buildGallery.js.map +1 -1
- package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.js +3 -1
- package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.js.map +1 -1
- package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.js +3 -0
- package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.js.map +1 -1
- package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.js +4 -0
- package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.js.map +1 -1
- package/lib/module/components/Attachment/utils/buildGallery/buildThumbnail.js +2 -0
- package/lib/module/components/Attachment/utils/buildGallery/buildThumbnail.js.map +1 -1
- package/lib/module/components/Attachment/utils/buildGallery/buildThumbnailGrid.js +2 -0
- 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/AutoCompleteInput/AutoCompleteSuggestionList.js +1 -2
- package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionList.js.map +1 -1
- package/lib/module/components/Avatar/Avatar.js +4 -0
- package/lib/module/components/Avatar/Avatar.js.map +1 -1
- package/lib/module/components/Avatar/GroupAvatar.js +4 -0
- package/lib/module/components/Avatar/GroupAvatar.js.map +1 -1
- package/lib/module/components/Channel/Channel.js +298 -429
- package/lib/module/components/Channel/Channel.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateChannelContext.js +0 -2
- package/lib/module/components/Channel/hooks/useCreateChannelContext.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateInputMessageInputContext.js +2 -2
- package/lib/module/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateMessagesContext.js +26 -10
- package/lib/module/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
- package/lib/module/components/ChannelList/ChannelList.js +0 -2
- 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 +8 -18
- package/lib/module/components/ChannelList/hooks/listeners/useNewMessageNotification.js.map +1 -1
- package/lib/module/components/Chat/Chat.js +2 -9
- package/lib/module/components/Chat/Chat.js.map +1 -1
- package/lib/module/components/Chat/hooks/handleEventToSyncDB.js +3 -3
- package/lib/module/components/Chat/hooks/handleEventToSyncDB.js.map +1 -1
- package/lib/module/components/Chat/hooks/useCreateChatContext.js +0 -2
- package/lib/module/components/Chat/hooks/useCreateChatContext.js.map +1 -1
- package/lib/module/components/Chat/hooks/useIsOnline.js +16 -13
- package/lib/module/components/Chat/hooks/useIsOnline.js.map +1 -1
- package/lib/module/components/ImageGallery/ImageGallery.js +58 -96
- 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 +92 -90
- 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 +123 -173
- 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 +40 -144
- 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 +0 -1
- package/lib/module/components/Message/MessageSimple/MessageFooter.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessagePinnedHeader.js +20 -34
- package/lib/module/components/Message/MessageSimple/MessagePinnedHeader.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageSimple.js +180 -44
- 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/ReactionListBottom.js +234 -0
- package/lib/module/components/Message/MessageSimple/ReactionList/ReactionListBottom.js.map +1 -0
- package/lib/module/components/Message/MessageSimple/ReactionList/ReactionListTop.js +195 -0
- package/lib/module/components/Message/MessageSimple/ReactionList/ReactionListTop.js.map +1 -0
- package/lib/module/components/Message/hooks/useCreateMessageContext.js +4 -16
- package/lib/module/components/Message/hooks/useCreateMessageContext.js.map +1 -1
- package/lib/module/components/Message/hooks/useMessageActions.js +36 -72
- package/lib/module/components/Message/hooks/useMessageActions.js.map +1 -1
- package/lib/module/components/Message/hooks/useMessageData.js +38 -0
- package/lib/module/components/Message/hooks/useMessageData.js.map +1 -0
- 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 +4 -6
- 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 +1 -2
- package/lib/module/components/MessageInput/MessageInput.js.map +1 -1
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js +1 -0
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js.map +1 -1
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.js +1 -2
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.js.map +1 -1
- package/lib/module/components/MessageInput/hooks/useAudioController.js +42 -60
- package/lib/module/components/MessageInput/hooks/useAudioController.js.map +1 -1
- package/lib/module/components/MessageList/MessageList.js +1 -3
- package/lib/module/components/MessageList/MessageList.js.map +1 -1
- package/lib/module/components/MessageMenu/MessageActionList.js +35 -0
- package/lib/module/components/MessageMenu/MessageActionList.js.map +1 -0
- package/lib/module/components/MessageMenu/MessageActionListItem.js +60 -0
- package/lib/module/components/MessageMenu/MessageActionListItem.js.map +1 -0
- package/lib/module/components/MessageMenu/MessageMenu.js +70 -0
- package/lib/module/components/MessageMenu/MessageMenu.js.map +1 -0
- package/lib/module/components/MessageMenu/MessageReactionPicker.js +81 -0
- package/lib/module/components/MessageMenu/MessageReactionPicker.js.map +1 -0
- package/lib/module/components/MessageMenu/MessageUserReactions.js +171 -0
- package/lib/module/components/MessageMenu/MessageUserReactions.js.map +1 -0
- package/lib/module/components/{MessageOverlay/OverlayReactionsAvatar.js → MessageMenu/MessageUserReactionsAvatar.js} +5 -6
- package/lib/module/components/MessageMenu/MessageUserReactionsAvatar.js.map +1 -0
- package/lib/module/components/MessageMenu/MessageUserReactionsItem.js +110 -0
- package/lib/module/components/MessageMenu/MessageUserReactionsItem.js.map +1 -0
- package/lib/module/components/MessageMenu/ReactionButton.js +59 -0
- package/lib/module/components/MessageMenu/ReactionButton.js.map +1 -0
- package/lib/module/components/{MessageOverlay → MessageMenu}/hooks/useFetchReactions.js +2 -0
- package/lib/module/components/MessageMenu/hooks/useFetchReactions.js.map +1 -0
- package/lib/module/components/ProgressControl/ProgressControl.js +21 -28
- package/lib/module/components/ProgressControl/ProgressControl.js.map +1 -1
- package/lib/module/components/ProgressControl/WaveProgressBar.js +22 -27
- package/lib/module/components/ProgressControl/WaveProgressBar.js.map +1 -1
- package/lib/module/components/Reply/Reply.js +6 -2
- package/lib/module/components/Reply/Reply.js.map +1 -1
- package/lib/module/components/UIComponents/BottomSheetModal.js +152 -0
- package/lib/module/components/UIComponents/BottomSheetModal.js.map +1 -0
- package/lib/module/components/{ImageBackground.js → UIComponents/ImageBackground.js} +1 -1
- package/lib/module/components/UIComponents/ImageBackground.js.map +1 -0
- package/lib/{commonjs/components/Spinner → module/components/UIComponents}/Spinner.js +1 -1
- package/lib/module/components/UIComponents/Spinner.js.map +1 -0
- package/lib/module/components/UIComponents/index.js +37 -0
- package/lib/module/components/UIComponents/index.js.map +1 -0
- package/lib/module/components/docs/data.js.map +1 -1
- package/lib/module/components/index.js +56 -45
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/contexts/activeChannelsRefContext/ActiveChannelsRefContext.js +1 -13
- package/lib/module/contexts/activeChannelsRefContext/ActiveChannelsRefContext.js.map +1 -1
- package/lib/module/contexts/attachmentPickerContext/AttachmentPickerContext.js +1 -11
- package/lib/module/contexts/attachmentPickerContext/AttachmentPickerContext.js.map +1 -1
- package/lib/module/contexts/channelContext/ChannelContext.js +1 -11
- package/lib/module/contexts/channelContext/ChannelContext.js.map +1 -1
- package/lib/module/contexts/channelsContext/ChannelsContext.js +1 -11
- package/lib/module/contexts/channelsContext/ChannelsContext.js.map +1 -1
- package/lib/module/contexts/channelsStateContext/ChannelsStateContext.js +1 -11
- package/lib/module/contexts/channelsStateContext/ChannelsStateContext.js.map +1 -1
- package/lib/module/contexts/chatConfigContext/ChatConfigContext.js +33 -0
- package/lib/module/contexts/chatConfigContext/ChatConfigContext.js.map +1 -0
- package/lib/module/contexts/chatContext/ChatContext.js +1 -11
- package/lib/module/contexts/chatContext/ChatContext.js.map +1 -1
- package/lib/module/contexts/imageGalleryContext/ImageGalleryContext.js +1 -11
- package/lib/module/contexts/imageGalleryContext/ImageGalleryContext.js.map +1 -1
- package/lib/module/contexts/index.js +11 -11
- package/lib/module/contexts/index.js.map +1 -1
- package/lib/module/contexts/keyboardContext/KeyboardContext.js +1 -11
- package/lib/module/contexts/keyboardContext/KeyboardContext.js.map +1 -1
- package/lib/module/contexts/messageContext/MessageContext.js +1 -11
- package/lib/module/contexts/messageContext/MessageContext.js.map +1 -1
- package/lib/module/contexts/messageInputContext/MessageInputContext.js +4 -14
- package/lib/module/contexts/messageInputContext/MessageInputContext.js.map +1 -1
- package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +1 -1
- package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
- package/lib/module/contexts/messagesContext/MessagesContext.js +1 -11
- package/lib/module/contexts/messagesContext/MessagesContext.js.map +1 -1
- package/lib/module/contexts/overlayContext/OverlayContext.js +1 -14
- package/lib/module/contexts/overlayContext/OverlayContext.js.map +1 -1
- package/lib/module/contexts/overlayContext/OverlayProvider.js +18 -54
- package/lib/module/contexts/overlayContext/OverlayProvider.js.map +1 -1
- package/lib/module/contexts/paginatedMessageListContext/PaginatedMessageListContext.js +1 -11
- package/lib/module/contexts/paginatedMessageListContext/PaginatedMessageListContext.js.map +1 -1
- package/lib/module/contexts/suggestionsContext/SuggestionsContext.js +1 -11
- package/lib/module/contexts/suggestionsContext/SuggestionsContext.js.map +1 -1
- package/lib/module/contexts/themeContext/utils/theme.js +68 -50
- package/lib/module/contexts/themeContext/utils/theme.js.map +1 -1
- package/lib/module/contexts/threadContext/ThreadContext.js +1 -11
- package/lib/module/contexts/threadContext/ThreadContext.js.map +1 -1
- package/lib/module/contexts/translationContext/TranslationContext.js +1 -11
- package/lib/module/contexts/translationContext/TranslationContext.js.map +1 -1
- package/lib/module/contexts/typingContext/TypingContext.js +1 -11
- package/lib/module/contexts/typingContext/TypingContext.js.map +1 -1
- package/lib/module/hooks/useTranslatedMessage.js +1 -4
- package/lib/module/hooks/useTranslatedMessage.js.map +1 -1
- package/lib/module/icons/PinHeader.js +17 -6
- package/lib/module/icons/PinHeader.js.map +1 -1
- package/lib/module/index.js +4 -23
- package/lib/module/index.js.map +1 -1
- package/lib/module/mock-builders/DB/mock.js +79 -82
- package/lib/module/mock-builders/DB/mock.js.map +1 -1
- package/lib/module/native.js +36 -25
- package/lib/module/native.js.map +1 -1
- package/lib/module/store/SqliteClient.js +179 -0
- package/lib/module/store/SqliteClient.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 +6 -3
- 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/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/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/utils/DBSyncManager.js +4 -4
- package/lib/module/utils/DBSyncManager.js.map +1 -1
- package/lib/module/utils/getResizedImageUrl.js +5 -3
- 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 +2 -1
- package/lib/typescript/components/Attachment/utils/buildGallery/buildGallery.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.d.ts +2 -1
- package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.d.ts +2 -1
- package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.d.ts +2 -1
- package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/utils/buildGallery/buildThumbnail.d.ts +4 -2
- package/lib/typescript/components/Attachment/utils/buildGallery/buildThumbnail.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/utils/buildGallery/buildThumbnailGrid.d.ts +2 -1
- 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/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 +1 -1
- 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.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/ChannelList/ChannelList.d.ts +0 -12
- package/lib/typescript/components/ChannelList/ChannelList.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/hooks/listeners/useNewMessageNotification.d.ts +1 -2
- package/lib/typescript/components/ChannelList/hooks/listeners/useNewMessageNotification.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/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/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 +4 -5
- package/lib/typescript/components/ImageGallery/hooks/useImageGalleryGestures.d.ts.map +1 -1
- package/lib/typescript/components/Message/Message.d.ts +4 -40
- 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 +11 -5
- package/lib/typescript/components/Message/MessageSimple/MessageContent.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageSimple/MessagePinnedHeader.d.ts +2 -6
- 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 +1 -2
- package/lib/typescript/components/Message/MessageSimple/MessageTextContainer.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageSimple/ReactionList/ReactionListBottom.d.ts +12 -0
- package/lib/typescript/components/Message/MessageSimple/ReactionList/ReactionListBottom.d.ts.map +1 -0
- package/lib/typescript/components/Message/MessageSimple/ReactionList/ReactionListTop.d.ts +20 -0
- package/lib/typescript/components/Message/MessageSimple/ReactionList/ReactionListTop.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 +5 -6
- package/lib/typescript/components/Message/hooks/useMessageActions.d.ts.map +1 -1
- package/lib/typescript/components/Message/hooks/useMessageData.d.ts +12 -0
- package/lib/typescript/components/Message/hooks/useMessageData.d.ts.map +1 -0
- package/lib/typescript/components/Message/hooks/useProcessReactions.d.ts +11 -3
- package/lib/typescript/components/Message/hooks/useProcessReactions.d.ts.map +1 -1
- package/lib/typescript/components/Message/utils/messageActions.d.ts +6 -14
- package/lib/typescript/components/Message/utils/messageActions.d.ts.map +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/hooks/useAudioController.d.ts.map +1 -1
- package/lib/typescript/components/MessageMenu/MessageActionList.d.ts +16 -0
- package/lib/typescript/components/MessageMenu/MessageActionList.d.ts.map +1 -0
- package/lib/typescript/components/{MessageOverlay → MessageMenu}/MessageActionListItem.d.ts +2 -8
- package/lib/typescript/components/MessageMenu/MessageActionListItem.d.ts.map +1 -0
- package/lib/typescript/components/MessageMenu/MessageMenu.d.ts +32 -0
- package/lib/typescript/components/MessageMenu/MessageMenu.d.ts.map +1 -0
- package/lib/typescript/components/MessageMenu/MessageReactionPicker.d.ts +30 -0
- package/lib/typescript/components/MessageMenu/MessageReactionPicker.d.ts.map +1 -0
- package/lib/typescript/components/MessageMenu/MessageUserReactions.d.ts +21 -0
- package/lib/typescript/components/MessageMenu/MessageUserReactions.d.ts.map +1 -0
- package/lib/typescript/components/MessageMenu/MessageUserReactionsAvatar.d.ts +11 -0
- package/lib/typescript/components/MessageMenu/MessageUserReactionsAvatar.d.ts.map +1 -0
- package/lib/typescript/components/MessageMenu/MessageUserReactionsItem.d.ts +16 -0
- package/lib/typescript/components/MessageMenu/MessageUserReactionsItem.d.ts.map +1 -0
- package/lib/typescript/components/MessageMenu/ReactionButton.d.ts +25 -0
- package/lib/typescript/components/MessageMenu/ReactionButton.d.ts.map +1 -0
- package/lib/typescript/components/MessageMenu/hooks/useFetchReactions.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/UIComponents/BottomSheetModal.d.ts +21 -0
- package/lib/typescript/components/UIComponents/BottomSheetModal.d.ts.map +1 -0
- package/lib/typescript/components/UIComponents/ImageBackground.d.ts.map +1 -0
- package/lib/typescript/components/UIComponents/Spinner.d.ts.map +1 -0
- package/lib/typescript/components/UIComponents/index.d.ts +4 -0
- package/lib/typescript/components/UIComponents/index.d.ts.map +1 -0
- package/lib/typescript/components/index.d.ts +11 -10
- package/lib/typescript/components/index.d.ts.map +1 -1
- package/lib/typescript/contexts/activeChannelsRefContext/ActiveChannelsRefContext.d.ts +0 -11
- package/lib/typescript/contexts/activeChannelsRefContext/ActiveChannelsRefContext.d.ts.map +1 -1
- package/lib/typescript/contexts/attachmentPickerContext/AttachmentPickerContext.d.ts +1 -11
- package/lib/typescript/contexts/attachmentPickerContext/AttachmentPickerContext.d.ts.map +1 -1
- package/lib/typescript/contexts/channelContext/ChannelContext.d.ts +1 -25
- package/lib/typescript/contexts/channelContext/ChannelContext.d.ts.map +1 -1
- package/lib/typescript/contexts/channelsContext/ChannelsContext.d.ts +1 -11
- package/lib/typescript/contexts/channelsContext/ChannelsContext.d.ts.map +1 -1
- package/lib/typescript/contexts/channelsStateContext/ChannelsStateContext.d.ts +1 -11
- package/lib/typescript/contexts/channelsStateContext/ChannelsStateContext.d.ts.map +1 -1
- package/lib/typescript/contexts/chatConfigContext/ChatConfigContext.d.ts +16 -0
- package/lib/typescript/contexts/chatConfigContext/ChatConfigContext.d.ts.map +1 -0
- package/lib/typescript/contexts/chatContext/ChatContext.d.ts +1 -15
- package/lib/typescript/contexts/chatContext/ChatContext.d.ts.map +1 -1
- package/lib/typescript/contexts/imageGalleryContext/ImageGalleryContext.d.ts +0 -10
- package/lib/typescript/contexts/imageGalleryContext/ImageGalleryContext.d.ts.map +1 -1
- package/lib/typescript/contexts/index.d.ts +1 -1
- package/lib/typescript/contexts/index.d.ts.map +1 -1
- package/lib/typescript/contexts/keyboardContext/KeyboardContext.d.ts +0 -11
- package/lib/typescript/contexts/keyboardContext/KeyboardContext.d.ts.map +1 -1
- package/lib/typescript/contexts/messageContext/MessageContext.d.ts +21 -56
- package/lib/typescript/contexts/messageContext/MessageContext.d.ts.map +1 -1
- package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts +2 -12
- package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts.map +1 -1
- package/lib/typescript/contexts/messageInputContext/hooks/useCreateMessageInputContext.d.ts.map +1 -1
- package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts +77 -37
- package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts.map +1 -1
- package/lib/typescript/contexts/overlayContext/OverlayContext.d.ts +2 -27
- 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/paginatedMessageListContext/PaginatedMessageListContext.d.ts +1 -11
- package/lib/typescript/contexts/paginatedMessageListContext/PaginatedMessageListContext.d.ts.map +1 -1
- package/lib/typescript/contexts/suggestionsContext/SuggestionsContext.d.ts +1 -11
- package/lib/typescript/contexts/suggestionsContext/SuggestionsContext.d.ts.map +1 -1
- package/lib/typescript/contexts/themeContext/utils/theme.d.ts +61 -44
- package/lib/typescript/contexts/themeContext/utils/theme.d.ts.map +1 -1
- package/lib/typescript/contexts/threadContext/ThreadContext.d.ts +1 -11
- package/lib/typescript/contexts/threadContext/ThreadContext.d.ts.map +1 -1
- package/lib/typescript/contexts/translationContext/TranslationContext.d.ts +0 -11
- package/lib/typescript/contexts/translationContext/TranslationContext.d.ts.map +1 -1
- package/lib/typescript/contexts/typingContext/TypingContext.d.ts +1 -11
- package/lib/typescript/contexts/typingContext/TypingContext.d.ts.map +1 -1
- package/lib/typescript/hooks/useTranslatedMessage.d.ts.map +1 -1
- package/lib/typescript/icons/PinHeader.d.ts +5 -1
- package/lib/typescript/icons/PinHeader.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +2 -3
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/native.d.ts +9 -11
- package/lib/typescript/native.d.ts.map +1 -1
- package/lib/typescript/store/{QuickSqliteClient.d.ts → SqliteClient.d.ts} +6 -5
- package/lib/typescript/store/SqliteClient.d.ts.map +1 -0
- package/lib/typescript/store/apis/getReactionsforFilterSort.d.ts.map +1 -1
- package/lib/typescript/types/types.d.ts +6 -0
- package/lib/typescript/types/types.d.ts.map +1 -1
- package/lib/typescript/utils/getResizedImageUrl.d.ts +3 -2
- package/lib/typescript/utils/getResizedImageUrl.d.ts.map +1 -1
- package/package.json +11 -11
- 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 +8 -16
- package/src/components/Attachment/FileAttachmentGroup.tsx +2 -2
- package/src/components/Attachment/Gallery.tsx +20 -17
- package/src/components/Attachment/Giphy.tsx +14 -14
- package/src/components/Attachment/__tests__/Attachment.test.js +4 -2
- package/src/components/Attachment/__tests__/Gallery.test.js +0 -2
- package/src/components/Attachment/utils/buildGallery/buildGallery.ts +10 -1
- package/src/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.ts +4 -1
- package/src/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.ts +5 -1
- package/src/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.ts +6 -1
- package/src/components/Attachment/utils/buildGallery/buildThumbnail.ts +13 -6
- package/src/components/Attachment/utils/buildGallery/buildThumbnailGrid.ts +5 -1
- package/src/components/AttachmentPicker/components/AttachmentPickerBottomSheetHandle.tsx +2 -2
- package/src/components/AttachmentPicker/components/AttachmentPickerItem.tsx +1 -1
- package/src/components/AutoCompleteInput/AutoCompleteSuggestionList.tsx +1 -1
- package/src/components/Avatar/Avatar.tsx +3 -0
- package/src/components/Avatar/GroupAvatar.tsx +4 -0
- package/src/components/Channel/Channel.tsx +56 -132
- package/src/components/Channel/__tests__/ownCapabilities.test.js +57 -57
- package/src/components/Channel/hooks/useCreateChannelContext.ts +0 -2
- package/src/components/Channel/hooks/useCreateInputMessageInputContext.ts +2 -6
- package/src/components/Channel/hooks/useCreateMessagesContext.ts +26 -10
- package/src/components/ChannelList/ChannelList.tsx +0 -17
- 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 +2 -11
- package/src/components/Chat/Chat.tsx +3 -9
- package/src/components/Chat/__tests__/Chat.test.js +184 -179
- package/src/components/Chat/hooks/handleEventToSyncDB.ts +3 -3
- package/src/components/Chat/hooks/useCreateChatContext.ts +0 -2
- package/src/components/Chat/hooks/useIsOnline.ts +13 -10
- package/src/components/ImageGallery/ImageGallery.tsx +71 -121
- package/src/components/ImageGallery/__tests__/AnimatedVideoGallery.test.tsx +0 -11
- package/src/components/ImageGallery/__tests__/ImageGallery.test.tsx +3 -4
- package/src/components/ImageGallery/__tests__/ImageGalleryFooter.test.tsx +3 -5
- 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 +3 -5
- package/src/components/ImageGallery/__tests__/ImageGalleryOverlay.test.tsx +0 -3
- 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 +97 -86
- package/src/components/ImageGallery/components/ImageGalleryHeader.tsx +46 -44
- package/src/components/ImageGallery/components/ImageGalleryOverlay.tsx +2 -1
- package/src/components/ImageGallery/components/__tests__/ImageGalleryHeader.test.tsx +3 -4
- package/src/components/ImageGallery/hooks/useImageGalleryGestures.tsx +481 -466
- package/src/components/Indicators/LoadingIndicator.tsx +1 -1
- package/src/components/Message/Message.tsx +112 -202
- package/src/components/Message/MessageSimple/MessageAvatar.tsx +1 -0
- package/src/components/Message/MessageSimple/MessageContent.tsx +28 -155
- 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 +21 -66
- package/src/components/Message/MessageSimple/MessageSimple.tsx +247 -55
- package/src/components/Message/MessageSimple/MessageTextContainer.tsx +3 -4
- package/src/components/Message/MessageSimple/ReactionList/ReactionListBottom.tsx +295 -0
- package/src/components/Message/MessageSimple/ReactionList/ReactionListTop.tsx +271 -0
- package/src/components/Message/MessageSimple/__tests__/MessageContent.test.js +1 -2
- package/src/components/Message/MessageSimple/__tests__/MessageSimple.test.js +208 -0
- package/src/components/Message/MessageSimple/__tests__/MessageTextContainer.test.tsx +3 -3
- package/src/components/Message/MessageSimple/__tests__/ReactionListBottom.test.js +166 -0
- package/src/components/Message/MessageSimple/__tests__/ReactionListTop.test.js +92 -0
- package/src/components/Message/MessageSimple/__tests__/__snapshots__/MessagePinnedHeader.test.js.snap +23 -19
- package/src/components/Message/hooks/useCreateMessageContext.ts +4 -16
- package/src/components/Message/hooks/useMessageActions.tsx +48 -68
- package/src/components/Message/hooks/useMessageData.ts +59 -0
- package/src/components/Message/hooks/useProcessReactions.ts +17 -10
- package/src/components/Message/utils/messageActions.ts +10 -20
- package/src/components/MessageInput/FileUploadPreview.tsx +2 -2
- package/src/components/MessageInput/MessageInput.tsx +0 -1
- package/src/components/MessageInput/__tests__/AudioAttachmentUploadPreviewExpo.test.tsx +1 -4
- package/src/components/MessageInput/__tests__/AudioAttachmentUploadPreviewNative.test.tsx +1 -4
- package/src/components/MessageInput/__tests__/FileUploadPreview.test.js +3 -5
- package/src/components/MessageInput/components/AudioRecorder/AudioRecordingButton.tsx +7 -1
- package/src/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.tsx +0 -1
- package/src/components/MessageInput/hooks/useAudioController.tsx +0 -3
- package/src/components/MessageList/MessageList.tsx +1 -1
- package/src/components/MessageList/__tests__/MessageList.test.js +0 -21
- package/src/components/MessageMenu/MessageActionList.tsx +49 -0
- package/src/components/MessageMenu/MessageActionListItem.tsx +86 -0
- package/src/components/MessageMenu/MessageMenu.tsx +123 -0
- package/src/components/MessageMenu/MessageReactionPicker.tsx +122 -0
- package/src/components/MessageMenu/MessageUserReactions.tsx +209 -0
- package/src/components/{MessageOverlay/OverlayReactionsAvatar.tsx → MessageMenu/MessageUserReactionsAvatar.tsx} +6 -6
- package/src/components/MessageMenu/MessageUserReactionsItem.tsx +130 -0
- package/src/components/MessageMenu/ReactionButton.tsx +72 -0
- package/src/components/MessageMenu/__tests__/MessageActionList.test.tsx +48 -0
- package/src/components/MessageMenu/__tests__/MessageActionListItem.test.tsx +48 -0
- package/src/components/MessageMenu/__tests__/MessageReactionPicker.test.tsx +101 -0
- package/src/components/MessageMenu/__tests__/MessageUserReactions.test.tsx +186 -0
- package/src/components/MessageMenu/__tests__/MessageUserReactionsAvatar.test.tsx +35 -0
- package/src/components/MessageMenu/__tests__/MessageUserReactionsItem.test.tsx +81 -0
- package/src/components/MessageMenu/__tests__/ReactionButton.test.tsx +77 -0
- package/src/components/{MessageOverlay → MessageMenu}/hooks/useFetchReactions.ts +2 -0
- package/src/components/ProgressControl/ProgressControl.tsx +28 -38
- package/src/components/ProgressControl/WaveProgressBar.tsx +29 -37
- package/src/components/Reply/Reply.tsx +5 -2
- package/src/components/Thread/__tests__/__snapshots__/Thread.test.js.snap +908 -801
- package/src/components/UIComponents/BottomSheetModal.tsx +170 -0
- package/src/components/UIComponents/index.ts +3 -0
- package/src/components/docs/data.js +13 -27
- package/src/components/index.ts +11 -10
- package/src/contexts/__tests__/index.test.tsx +0 -5
- package/src/contexts/activeChannelsRefContext/ActiveChannelsRefContext.tsx +0 -27
- package/src/contexts/attachmentPickerContext/AttachmentPickerContext.tsx +1 -29
- package/src/contexts/channelContext/ChannelContext.tsx +2 -46
- package/src/contexts/channelsContext/ChannelsContext.tsx +1 -28
- package/src/contexts/channelsStateContext/ChannelsStateContext.tsx +1 -30
- package/src/contexts/chatConfigContext/ChatConfigContext.tsx +33 -0
- package/src/contexts/chatContext/ChatContext.tsx +1 -30
- package/src/contexts/imageGalleryContext/ImageGalleryContext.tsx +0 -29
- package/src/contexts/index.ts +1 -1
- package/src/contexts/keyboardContext/KeyboardContext.tsx +0 -30
- package/src/contexts/messageContext/MessageContext.tsx +22 -75
- package/src/contexts/messageInputContext/MessageInputContext.tsx +11 -37
- package/src/contexts/messageInputContext/__tests__/isValidMessage.test.tsx +2 -3
- package/src/contexts/messageInputContext/__tests__/uploadFile.test.tsx +1 -2
- package/src/contexts/messageInputContext/__tests__/uploadImage.test.tsx +1 -2
- package/src/contexts/messageInputContext/hooks/useCreateMessageInputContext.ts +1 -5
- package/src/contexts/messagesContext/MessagesContext.tsx +83 -56
- package/src/contexts/overlayContext/OverlayContext.tsx +2 -55
- package/src/contexts/overlayContext/OverlayProvider.tsx +23 -64
- package/src/contexts/paginatedMessageListContext/PaginatedMessageListContext.tsx +1 -30
- package/src/contexts/suggestionsContext/SuggestionsContext.tsx +1 -30
- package/src/contexts/themeContext/utils/theme.ts +126 -93
- package/src/contexts/threadContext/ThreadContext.tsx +1 -28
- package/src/contexts/translationContext/TranslationContext.tsx +0 -29
- package/src/contexts/typingContext/TypingContext.tsx +1 -28
- package/src/hooks/__tests__/useTranslatedMessage.test.tsx +3 -9
- package/src/hooks/useTranslatedMessage.ts +1 -4
- package/src/icons/PinHeader.tsx +13 -7
- package/src/index.ts +2 -3
- package/src/mock-builders/DB/mock.ts +82 -84
- package/src/native.ts +15 -26
- package/src/store/{QuickSqliteClient.ts → SqliteClient.ts} +74 -54
- 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 +5 -3
- package/src/store/apis/getReads.ts +2 -2
- 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/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/types/types.ts +7 -0
- package/src/utils/DBSyncManager.ts +4 -4
- package/src/utils/__tests__/getResizedImageUrl.test.ts +1 -2
- package/src/utils/getResizedImageUrl.ts +7 -5
- package/src/version.json +1 -1
- package/lib/commonjs/components/ImageBackground.js.map +0 -1
- package/lib/commonjs/components/Message/MessageSimple/ReactionList.js +0 -305
- package/lib/commonjs/components/Message/MessageSimple/ReactionList.js.map +0 -1
- package/lib/commonjs/components/MessageOverlay/MessageActionList.js +0 -112
- package/lib/commonjs/components/MessageOverlay/MessageActionList.js.map +0 -1
- package/lib/commonjs/components/MessageOverlay/MessageActionListItem.js +0 -87
- package/lib/commonjs/components/MessageOverlay/MessageActionListItem.js.map +0 -1
- package/lib/commonjs/components/MessageOverlay/MessageOverlay.js +0 -442
- package/lib/commonjs/components/MessageOverlay/MessageOverlay.js.map +0 -1
- package/lib/commonjs/components/MessageOverlay/OverlayBackdrop.js +0 -24
- package/lib/commonjs/components/MessageOverlay/OverlayBackdrop.js.map +0 -1
- package/lib/commonjs/components/MessageOverlay/OverlayReactionList.js +0 -305
- package/lib/commonjs/components/MessageOverlay/OverlayReactionList.js.map +0 -1
- package/lib/commonjs/components/MessageOverlay/OverlayReactions.js +0 -188
- package/lib/commonjs/components/MessageOverlay/OverlayReactions.js.map +0 -1
- package/lib/commonjs/components/MessageOverlay/OverlayReactionsAvatar.js.map +0 -1
- package/lib/commonjs/components/MessageOverlay/OverlayReactionsItem.js +0 -166
- package/lib/commonjs/components/MessageOverlay/OverlayReactionsItem.js.map +0 -1
- package/lib/commonjs/components/MessageOverlay/hooks/useFetchReactions.js.map +0 -1
- package/lib/commonjs/components/MessageOverlay/hooks/useMessageActionAnimation.js +0 -34
- package/lib/commonjs/components/MessageOverlay/hooks/useMessageActionAnimation.js.map +0 -1
- package/lib/commonjs/components/Spinner/Spinner.js.map +0 -1
- package/lib/commonjs/contexts/messageOverlayContext/MessageOverlayContext.js +0 -45
- package/lib/commonjs/contexts/messageOverlayContext/MessageOverlayContext.js.map +0 -1
- package/lib/commonjs/contexts/messageOverlayContext/hooks/useResettableState.js +0 -27
- package/lib/commonjs/contexts/messageOverlayContext/hooks/useResettableState.js.map +0 -1
- package/lib/commonjs/contexts/messageOverlayContext/hooks/useResettableState.test.js +0 -67
- package/lib/commonjs/contexts/messageOverlayContext/hooks/useResettableState.test.js.map +0 -1
- package/lib/commonjs/store/QuickSqliteClient.js +0 -158
- package/lib/commonjs/store/QuickSqliteClient.js.map +0 -1
- package/lib/commonjs/utils/StreamChatRN.js +0 -25
- package/lib/commonjs/utils/StreamChatRN.js.map +0 -1
- package/lib/module/components/ImageBackground.js.map +0 -1
- package/lib/module/components/Message/MessageSimple/ReactionList.js +0 -305
- package/lib/module/components/Message/MessageSimple/ReactionList.js.map +0 -1
- package/lib/module/components/MessageOverlay/MessageActionList.js +0 -112
- package/lib/module/components/MessageOverlay/MessageActionList.js.map +0 -1
- package/lib/module/components/MessageOverlay/MessageActionListItem.js +0 -87
- package/lib/module/components/MessageOverlay/MessageActionListItem.js.map +0 -1
- package/lib/module/components/MessageOverlay/MessageOverlay.js +0 -442
- package/lib/module/components/MessageOverlay/MessageOverlay.js.map +0 -1
- package/lib/module/components/MessageOverlay/OverlayBackdrop.js +0 -24
- package/lib/module/components/MessageOverlay/OverlayBackdrop.js.map +0 -1
- package/lib/module/components/MessageOverlay/OverlayReactionList.js +0 -305
- package/lib/module/components/MessageOverlay/OverlayReactionList.js.map +0 -1
- package/lib/module/components/MessageOverlay/OverlayReactions.js +0 -188
- package/lib/module/components/MessageOverlay/OverlayReactions.js.map +0 -1
- package/lib/module/components/MessageOverlay/OverlayReactionsAvatar.js.map +0 -1
- package/lib/module/components/MessageOverlay/OverlayReactionsItem.js +0 -166
- package/lib/module/components/MessageOverlay/OverlayReactionsItem.js.map +0 -1
- package/lib/module/components/MessageOverlay/hooks/useFetchReactions.js.map +0 -1
- package/lib/module/components/MessageOverlay/hooks/useMessageActionAnimation.js +0 -34
- package/lib/module/components/MessageOverlay/hooks/useMessageActionAnimation.js.map +0 -1
- package/lib/module/components/Spinner/Spinner.js.map +0 -1
- package/lib/module/contexts/messageOverlayContext/MessageOverlayContext.js +0 -45
- package/lib/module/contexts/messageOverlayContext/MessageOverlayContext.js.map +0 -1
- package/lib/module/contexts/messageOverlayContext/hooks/useResettableState.js +0 -27
- package/lib/module/contexts/messageOverlayContext/hooks/useResettableState.js.map +0 -1
- package/lib/module/contexts/messageOverlayContext/hooks/useResettableState.test.js +0 -67
- package/lib/module/contexts/messageOverlayContext/hooks/useResettableState.test.js.map +0 -1
- package/lib/module/store/QuickSqliteClient.js +0 -158
- package/lib/module/store/QuickSqliteClient.js.map +0 -1
- package/lib/module/utils/StreamChatRN.js +0 -25
- package/lib/module/utils/StreamChatRN.js.map +0 -1
- package/lib/typescript/components/ImageBackground.d.ts.map +0 -1
- package/lib/typescript/components/Message/MessageSimple/ReactionList.d.ts +0 -32
- package/lib/typescript/components/Message/MessageSimple/ReactionList.d.ts.map +0 -1
- package/lib/typescript/components/MessageOverlay/MessageActionList.d.ts +0 -14
- package/lib/typescript/components/MessageOverlay/MessageActionList.d.ts.map +0 -1
- package/lib/typescript/components/MessageOverlay/MessageActionListItem.d.ts.map +0 -1
- package/lib/typescript/components/MessageOverlay/MessageOverlay.d.ts +0 -15
- package/lib/typescript/components/MessageOverlay/MessageOverlay.d.ts.map +0 -1
- package/lib/typescript/components/MessageOverlay/OverlayBackdrop.d.ts +0 -8
- package/lib/typescript/components/MessageOverlay/OverlayBackdrop.d.ts.map +0 -1
- package/lib/typescript/components/MessageOverlay/OverlayReactionList.d.ts +0 -36
- package/lib/typescript/components/MessageOverlay/OverlayReactionList.d.ts.map +0 -1
- package/lib/typescript/components/MessageOverlay/OverlayReactions.d.ts +0 -29
- package/lib/typescript/components/MessageOverlay/OverlayReactions.d.ts.map +0 -1
- package/lib/typescript/components/MessageOverlay/OverlayReactionsAvatar.d.ts +0 -11
- package/lib/typescript/components/MessageOverlay/OverlayReactionsAvatar.d.ts.map +0 -1
- package/lib/typescript/components/MessageOverlay/OverlayReactionsItem.d.ts +0 -11
- package/lib/typescript/components/MessageOverlay/OverlayReactionsItem.d.ts.map +0 -1
- package/lib/typescript/components/MessageOverlay/hooks/useFetchReactions.d.ts.map +0 -1
- package/lib/typescript/components/MessageOverlay/hooks/useMessageActionAnimation.d.ts +0 -11
- package/lib/typescript/components/MessageOverlay/hooks/useMessageActionAnimation.d.ts.map +0 -1
- package/lib/typescript/components/Spinner/Spinner.d.ts.map +0 -1
- package/lib/typescript/contexts/messageOverlayContext/MessageOverlayContext.d.ts +0 -79
- package/lib/typescript/contexts/messageOverlayContext/MessageOverlayContext.d.ts.map +0 -1
- package/lib/typescript/contexts/messageOverlayContext/hooks/useResettableState.d.ts +0 -13
- package/lib/typescript/contexts/messageOverlayContext/hooks/useResettableState.d.ts.map +0 -1
- package/lib/typescript/contexts/messageOverlayContext/hooks/useResettableState.test.d.ts +0 -2
- package/lib/typescript/contexts/messageOverlayContext/hooks/useResettableState.test.d.ts.map +0 -1
- package/lib/typescript/store/QuickSqliteClient.d.ts.map +0 -1
- package/lib/typescript/utils/StreamChatRN.d.ts +0 -23
- package/lib/typescript/utils/StreamChatRN.d.ts.map +0 -1
- package/src/components/Message/MessageSimple/ReactionList.tsx +0 -398
- package/src/components/MessageOverlay/MessageActionList.tsx +0 -171
- package/src/components/MessageOverlay/MessageActionListItem.tsx +0 -144
- package/src/components/MessageOverlay/MessageOverlay.tsx +0 -627
- package/src/components/MessageOverlay/OverlayBackdrop.tsx +0 -18
- package/src/components/MessageOverlay/OverlayReactionList.tsx +0 -447
- package/src/components/MessageOverlay/OverlayReactions.tsx +0 -250
- package/src/components/MessageOverlay/OverlayReactionsItem.tsx +0 -188
- package/src/components/MessageOverlay/hooks/useMessageActionAnimation.tsx +0 -44
- package/src/contexts/messageOverlayContext/MessageOverlayContext.tsx +0 -147
- package/src/contexts/messageOverlayContext/hooks/useResettableState.test.tsx +0 -48
- package/src/contexts/messageOverlayContext/hooks/useResettableState.ts +0 -22
- package/src/utils/StreamChatRN.ts +0 -27
- /package/lib/typescript/components/{MessageOverlay → MessageMenu}/hooks/useFetchReactions.d.ts +0 -0
- /package/lib/typescript/components/{ImageBackground.d.ts → UIComponents/ImageBackground.d.ts} +0 -0
- /package/lib/typescript/components/{Spinner → UIComponents}/Spinner.d.ts +0 -0
- /package/src/components/{ImageBackground.tsx → UIComponents/ImageBackground.tsx} +0 -0
- /package/src/components/{Spinner → UIComponents}/Spinner.tsx +0 -0
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import React, { PropsWithChildren, useEffect } from 'react';
|
|
2
|
+
import {
|
|
3
|
+
Animated,
|
|
4
|
+
Keyboard,
|
|
5
|
+
KeyboardEvent,
|
|
6
|
+
Modal,
|
|
7
|
+
StyleSheet,
|
|
8
|
+
TouchableWithoutFeedback,
|
|
9
|
+
useWindowDimensions,
|
|
10
|
+
View,
|
|
11
|
+
} from 'react-native';
|
|
12
|
+
import {
|
|
13
|
+
Gesture,
|
|
14
|
+
GestureDetector,
|
|
15
|
+
GestureHandlerRootView,
|
|
16
|
+
GestureUpdateEvent,
|
|
17
|
+
PanGestureHandlerEventPayload,
|
|
18
|
+
} from 'react-native-gesture-handler';
|
|
19
|
+
|
|
20
|
+
import { runOnJS } from 'react-native-reanimated';
|
|
21
|
+
|
|
22
|
+
import { useTheme } from '../../contexts/themeContext/ThemeContext';
|
|
23
|
+
|
|
24
|
+
export type BottomSheetModalProps = {
|
|
25
|
+
/**
|
|
26
|
+
* Function to call when the modal is closed.
|
|
27
|
+
* @returns void
|
|
28
|
+
*/
|
|
29
|
+
onClose: () => void;
|
|
30
|
+
/**
|
|
31
|
+
* Whether the modal is visible.
|
|
32
|
+
*/
|
|
33
|
+
visible: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* The height of the modal.
|
|
36
|
+
*/
|
|
37
|
+
height?: number;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* A modal that slides up from the bottom of the screen.
|
|
42
|
+
*/
|
|
43
|
+
export const BottomSheetModal = (props: PropsWithChildren<BottomSheetModalProps>) => {
|
|
44
|
+
const { height: windowHeight, width: windowWidth } = useWindowDimensions();
|
|
45
|
+
const { children, height = windowHeight / 2, onClose, visible } = props;
|
|
46
|
+
const {
|
|
47
|
+
theme: {
|
|
48
|
+
colors: { grey, overlay, white_snow },
|
|
49
|
+
},
|
|
50
|
+
} = useTheme();
|
|
51
|
+
|
|
52
|
+
const translateY = new Animated.Value(height);
|
|
53
|
+
|
|
54
|
+
const openAnimation = Animated.timing(translateY, {
|
|
55
|
+
duration: 200,
|
|
56
|
+
toValue: 0,
|
|
57
|
+
useNativeDriver: true,
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
const closeAnimation = Animated.timing(translateY, {
|
|
61
|
+
duration: 50,
|
|
62
|
+
toValue: height,
|
|
63
|
+
useNativeDriver: true,
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
const handleDismiss = () => {
|
|
67
|
+
closeAnimation.start(() => onClose());
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
useEffect(() => {
|
|
71
|
+
if (visible) {
|
|
72
|
+
openAnimation.start();
|
|
73
|
+
}
|
|
74
|
+
}, [visible, openAnimation]);
|
|
75
|
+
|
|
76
|
+
useEffect(() => {
|
|
77
|
+
const keyboardDidShowListener = Keyboard.addListener('keyboardDidShow', keyboardDidShow);
|
|
78
|
+
const keyboardDidHideListener = Keyboard.addListener('keyboardDidHide', keyboardDidHide);
|
|
79
|
+
|
|
80
|
+
return () => {
|
|
81
|
+
keyboardDidShowListener.remove();
|
|
82
|
+
keyboardDidHideListener.remove();
|
|
83
|
+
};
|
|
84
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
85
|
+
}, []);
|
|
86
|
+
|
|
87
|
+
const keyboardDidShow = (event: KeyboardEvent) => {
|
|
88
|
+
Animated.timing(translateY, {
|
|
89
|
+
duration: 250,
|
|
90
|
+
toValue: -event.endCoordinates.height,
|
|
91
|
+
useNativeDriver: true,
|
|
92
|
+
}).start();
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
const keyboardDidHide = () => {
|
|
96
|
+
Animated.timing(translateY, {
|
|
97
|
+
duration: 250,
|
|
98
|
+
toValue: 0,
|
|
99
|
+
useNativeDriver: true,
|
|
100
|
+
}).start();
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
const handleUpdate = (event: GestureUpdateEvent<PanGestureHandlerEventPayload>) => {
|
|
104
|
+
const translationY = Math.max(event.translationY, 0);
|
|
105
|
+
translateY.setValue(translationY);
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
const gesture = Gesture.Pan()
|
|
109
|
+
.onUpdate((event) => {
|
|
110
|
+
runOnJS(handleUpdate)(event);
|
|
111
|
+
})
|
|
112
|
+
.onEnd((event) => {
|
|
113
|
+
if (event.velocityY > 500 || event.translationY > height / 2) {
|
|
114
|
+
runOnJS(handleDismiss)();
|
|
115
|
+
} else {
|
|
116
|
+
runOnJS(openAnimation.start)();
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
|
|
120
|
+
return (
|
|
121
|
+
<Modal animationType='fade' onRequestClose={handleDismiss} transparent visible={visible}>
|
|
122
|
+
<GestureHandlerRootView style={{ flex: 1 }}>
|
|
123
|
+
<TouchableWithoutFeedback onPress={handleDismiss}>
|
|
124
|
+
<View style={[styles.overlay, { backgroundColor: overlay }]}>
|
|
125
|
+
<GestureDetector gesture={gesture}>
|
|
126
|
+
<Animated.View
|
|
127
|
+
style={[
|
|
128
|
+
styles.container,
|
|
129
|
+
{
|
|
130
|
+
backgroundColor: white_snow,
|
|
131
|
+
height,
|
|
132
|
+
transform: [{ translateY }],
|
|
133
|
+
},
|
|
134
|
+
]}
|
|
135
|
+
>
|
|
136
|
+
<View style={[styles.handle, { backgroundColor: grey, width: windowWidth / 4 }]} />
|
|
137
|
+
<View style={styles.contentContainer}>{children}</View>
|
|
138
|
+
</Animated.View>
|
|
139
|
+
</GestureDetector>
|
|
140
|
+
</View>
|
|
141
|
+
</TouchableWithoutFeedback>
|
|
142
|
+
</GestureHandlerRootView>
|
|
143
|
+
</Modal>
|
|
144
|
+
);
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
const styles = StyleSheet.create({
|
|
148
|
+
container: {
|
|
149
|
+
borderTopLeftRadius: 16,
|
|
150
|
+
borderTopRightRadius: 16,
|
|
151
|
+
},
|
|
152
|
+
content: {
|
|
153
|
+
flex: 1,
|
|
154
|
+
padding: 16,
|
|
155
|
+
},
|
|
156
|
+
contentContainer: {
|
|
157
|
+
flex: 1,
|
|
158
|
+
marginTop: 8,
|
|
159
|
+
},
|
|
160
|
+
handle: {
|
|
161
|
+
alignSelf: 'center',
|
|
162
|
+
borderRadius: 4,
|
|
163
|
+
height: 4,
|
|
164
|
+
marginVertical: 8,
|
|
165
|
+
},
|
|
166
|
+
overlay: {
|
|
167
|
+
flex: 1,
|
|
168
|
+
justifyContent: 'flex-end',
|
|
169
|
+
},
|
|
170
|
+
});
|
|
@@ -11,8 +11,7 @@ client.connectUser(
|
|
|
11
11
|
);
|
|
12
12
|
|
|
13
13
|
export const channel = client.channel('messaging', 'general', {
|
|
14
|
-
image:
|
|
15
|
-
'https://s3-us-west-2.amazonaws.com/s.cdpn.io/195612/chat_avatar_01_green.jpg',
|
|
14
|
+
image: 'https://s3-us-west-2.amazonaws.com/s.cdpn.io/195612/chat_avatar_01_green.jpg',
|
|
16
15
|
name: 'Talk about the documentation',
|
|
17
16
|
});
|
|
18
17
|
|
|
@@ -45,8 +44,7 @@ export const message = {
|
|
|
45
44
|
attachments: [],
|
|
46
45
|
command: '',
|
|
47
46
|
created_at: '2019-01-25T00:18:59.675Z',
|
|
48
|
-
html:
|
|
49
|
-
'<p><a href="https://unsplash.com/photos/lxuB4abGzXc" rel="nofollow">https://unsplash.com/photos/lxuB4abGzXc</a></p>\n',
|
|
47
|
+
html: '<p><a href="https://unsplash.com/photos/lxuB4abGzXc" rel="nofollow">https://unsplash.com/photos/lxuB4abGzXc</a></p>\n',
|
|
50
48
|
id: 'thierry-e298f569-8745-407f-a02b-f75c0206612f',
|
|
51
49
|
own_reactions: [
|
|
52
50
|
{
|
|
@@ -120,8 +118,7 @@ export const message = {
|
|
|
120
118
|
user: {
|
|
121
119
|
created_at: '2019-01-22T16:35:18.417456Z',
|
|
122
120
|
id: 'thierry',
|
|
123
|
-
image:
|
|
124
|
-
'https://cdn.pixabay.com/photo/2014/03/25/16/54/user-297566__340.png',
|
|
121
|
+
image: 'https://cdn.pixabay.com/photo/2014/03/25/16/54/user-297566__340.png',
|
|
125
122
|
last_active: '2019-01-25T09:23:47.108127-07:00',
|
|
126
123
|
online: true,
|
|
127
124
|
role: 'user',
|
|
@@ -148,17 +145,13 @@ export const messageWithImages = {
|
|
|
148
145
|
type: 'image',
|
|
149
146
|
},
|
|
150
147
|
{
|
|
151
|
-
image_url:
|
|
152
|
-
|
|
153
|
-
thumb_url:
|
|
154
|
-
'https://www.fujixpassion.com/wp-content/uploads/2016/01/Image-1-Title.jpg',
|
|
148
|
+
image_url: 'https://www.fujixpassion.com/wp-content/uploads/2016/01/Image-1-Title.jpg',
|
|
149
|
+
thumb_url: 'https://www.fujixpassion.com/wp-content/uploads/2016/01/Image-1-Title.jpg',
|
|
155
150
|
type: 'image',
|
|
156
151
|
},
|
|
157
152
|
{
|
|
158
|
-
image_url:
|
|
159
|
-
|
|
160
|
-
thumb_url:
|
|
161
|
-
'https://i-cdn.phonearena.com/images/articles/47012-image/photo2.jpg',
|
|
153
|
+
image_url: 'https://i-cdn.phonearena.com/images/articles/47012-image/photo2.jpg',
|
|
154
|
+
thumb_url: 'https://i-cdn.phonearena.com/images/articles/47012-image/photo2.jpg',
|
|
162
155
|
type: 'image',
|
|
163
156
|
},
|
|
164
157
|
],
|
|
@@ -238,14 +231,12 @@ export const messageWithImages = {
|
|
|
238
231
|
user: {
|
|
239
232
|
created_at: '2019-01-22T16:35:18.417456Z',
|
|
240
233
|
id: 'thierry',
|
|
241
|
-
image:
|
|
242
|
-
'https://cdn.pixabay.com/photo/2014/03/25/16/54/user-297566__340.png',
|
|
234
|
+
image: 'https://cdn.pixabay.com/photo/2014/03/25/16/54/user-297566__340.png',
|
|
243
235
|
last_active: '2019-01-25T09:23:47.108127-07:00',
|
|
244
236
|
online: true,
|
|
245
237
|
role: 'user',
|
|
246
238
|
updated_at: '2019-01-25T16:23:47.052538Z',
|
|
247
239
|
},
|
|
248
|
-
|
|
249
240
|
};
|
|
250
241
|
|
|
251
242
|
export const messageWithUrlPreview = {
|
|
@@ -256,8 +247,7 @@ export const messageWithUrlPreview = {
|
|
|
256
247
|
image_url:
|
|
257
248
|
'https://images.unsplash.com/photo-1548256434-c7d2374b1077?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjEyMDd9',
|
|
258
249
|
og_scrape_url: 'https://unsplash.com/photos/lxuB4abGzXc',
|
|
259
|
-
text:
|
|
260
|
-
'Download this photo in Addu City, Maldives by Ibrahim Shabil (@shabilphotos)',
|
|
250
|
+
text: 'Download this photo in Addu City, Maldives by Ibrahim Shabil (@shabilphotos)',
|
|
261
251
|
thumb_url:
|
|
262
252
|
'https://images.unsplash.com/photo-1548256434-c7d2374b1077?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjEyMDd9',
|
|
263
253
|
title: 'Cosmic Home photo by Ibrahim Shabil (@shabilphotos) on Unsplash',
|
|
@@ -267,8 +257,7 @@ export const messageWithUrlPreview = {
|
|
|
267
257
|
],
|
|
268
258
|
command: '',
|
|
269
259
|
created_at: '2019-01-25T00:18:59.675Z',
|
|
270
|
-
html:
|
|
271
|
-
'<p><a href="https://unsplash.com/photos/lxuB4abGzXc" rel="nofollow">https://unsplash.com/photos/lxuB4abGzXc</a></p>\n',
|
|
260
|
+
html: '<p><a href="https://unsplash.com/photos/lxuB4abGzXc" rel="nofollow">https://unsplash.com/photos/lxuB4abGzXc</a></p>\n',
|
|
272
261
|
id: 'thierry-e298f569-8745-407f-a02b-f75c0206612f',
|
|
273
262
|
own_reactions: [
|
|
274
263
|
{
|
|
@@ -342,8 +331,7 @@ export const messageWithUrlPreview = {
|
|
|
342
331
|
user: {
|
|
343
332
|
created_at: '2019-01-22T16:35:18.417456Z',
|
|
344
333
|
id: 'thierry',
|
|
345
|
-
image:
|
|
346
|
-
'https://cdn.pixabay.com/photo/2014/03/25/16/54/user-297566__340.png',
|
|
334
|
+
image: 'https://cdn.pixabay.com/photo/2014/03/25/16/54/user-297566__340.png',
|
|
347
335
|
last_active: '2019-01-25T09:23:47.108127-07:00',
|
|
348
336
|
online: true,
|
|
349
337
|
role: 'user',
|
|
@@ -370,8 +358,7 @@ export const thread = {
|
|
|
370
358
|
],
|
|
371
359
|
command: '',
|
|
372
360
|
created_at: '2019-01-25T21:25:45.306Z',
|
|
373
|
-
html:
|
|
374
|
-
'<p>this place looks amazing: <a href="https://unsplash.com/photos/f3hDGOHptrM" rel="nofollow">https://unsplash.com/photos/f3hDGOHptrM</a></p>\n',
|
|
361
|
+
html: '<p>this place looks amazing: <a href="https://unsplash.com/photos/f3hDGOHptrM" rel="nofollow">https://unsplash.com/photos/f3hDGOHptrM</a></p>\n',
|
|
375
362
|
id: 'thierry-ec4eac2b-1278-4f49-8b20-2ebcd76dace5',
|
|
376
363
|
own_reactions: [],
|
|
377
364
|
reaction_counts: null,
|
|
@@ -388,7 +375,6 @@ export const thread = {
|
|
|
388
375
|
role: 'user',
|
|
389
376
|
updated_at: '2019-01-25T21:27:39.606466Z',
|
|
390
377
|
},
|
|
391
|
-
|
|
392
378
|
};
|
|
393
379
|
|
|
394
380
|
export const threadMessages = [
|
|
@@ -527,7 +513,7 @@ export const MessageMock = {
|
|
|
527
513
|
|
|
528
514
|
// Based on: https://javascript.info/promise-basics#example-loadscript
|
|
529
515
|
function dynamicallyLoadScript(url) {
|
|
530
|
-
return new Promise(function(resolve, reject) {
|
|
516
|
+
return new Promise(function (resolve, reject) {
|
|
531
517
|
const script = document.createElement('script');
|
|
532
518
|
script.src = url;
|
|
533
519
|
script.onload = resolve;
|
package/src/components/index.ts
CHANGED
|
@@ -110,7 +110,8 @@ export * from './Message/MessageSimple/MessageSimple';
|
|
|
110
110
|
export * from './Message/MessageSimple/MessageStatus';
|
|
111
111
|
export * from './Message/MessageSimple/MessageTextContainer';
|
|
112
112
|
export * from './Message/MessageSimple/MessageTimestamp';
|
|
113
|
-
export * from './Message/MessageSimple/ReactionList';
|
|
113
|
+
export * from './Message/MessageSimple/ReactionList/ReactionListBottom';
|
|
114
|
+
export * from './Message/MessageSimple/ReactionList/ReactionListTop';
|
|
114
115
|
export * from './Message/MessageSimple/utils/renderText';
|
|
115
116
|
export * from './Message/utils/messageActions';
|
|
116
117
|
export * from '../utils/removeReservedFields';
|
|
@@ -151,20 +152,20 @@ export * from './MessageList/utils/getGroupStyles';
|
|
|
151
152
|
export * from './MessageList/utils/getLastReceivedMessage';
|
|
152
153
|
export * from './MessageList/utils/getReadStates';
|
|
153
154
|
|
|
154
|
-
export * from './
|
|
155
|
-
export * from './
|
|
156
|
-
export * from './
|
|
157
|
-
export * from './
|
|
158
|
-
export * from './
|
|
159
|
-
export * from './
|
|
160
|
-
export * from './MessageOverlay/OverlayReactionsAvatar';
|
|
161
|
-
export * from './MessageOverlay/OverlayReactionList';
|
|
155
|
+
export * from './MessageMenu/MessageActionList';
|
|
156
|
+
export * from './MessageMenu/MessageActionListItem';
|
|
157
|
+
export * from './MessageMenu/MessageMenu';
|
|
158
|
+
export * from './MessageMenu/MessageUserReactions';
|
|
159
|
+
export * from './MessageMenu/MessageUserReactionsAvatar';
|
|
160
|
+
export * from './MessageMenu/MessageReactionPicker';
|
|
162
161
|
|
|
163
162
|
export * from './ProgressControl/ProgressControl';
|
|
164
163
|
|
|
165
164
|
export * from './Reply/Reply';
|
|
166
165
|
|
|
167
|
-
export * from './
|
|
166
|
+
export * from './UIComponents/BottomSheetModal';
|
|
167
|
+
export * from './UIComponents/ImageBackground';
|
|
168
|
+
export * from './UIComponents/Spinner';
|
|
168
169
|
|
|
169
170
|
export * from './Thread/Thread';
|
|
170
171
|
export * from './Thread/components/ThreadFooterComponent';
|
|
@@ -9,7 +9,6 @@ import {
|
|
|
9
9
|
useChannelsContext,
|
|
10
10
|
useChatContext,
|
|
11
11
|
useImageGalleryContext,
|
|
12
|
-
useMessageOverlayContext,
|
|
13
12
|
useMessagesContext,
|
|
14
13
|
useOverlayContext,
|
|
15
14
|
useOwnCapabilitiesContext,
|
|
@@ -74,10 +73,6 @@ describe('contexts hooks in a component throws an error with message when not wr
|
|
|
74
73
|
useImageGalleryContext,
|
|
75
74
|
`The useImageGalleryContext hook was called outside the ImageGalleryContext Provider. Make sure you have configured OverlayProvider component correctly - https://getstream.io/chat/docs/sdk/reactnative/basics/hello_stream_chat/#overlay-provider`,
|
|
76
75
|
],
|
|
77
|
-
[
|
|
78
|
-
useMessageOverlayContext,
|
|
79
|
-
`The useMessageOverlayContext hook was called outside the MessageOverlayContext Provider. Make sure you have configured OverlayProvider component correctly - https://getstream.io/chat/docs/sdk/reactnative/basics/hello_stream_chat/#overlay-provider`,
|
|
80
|
-
],
|
|
81
76
|
[
|
|
82
77
|
useMessagesContext,
|
|
83
78
|
`The useMessagesContext hook was called outside of the MessagesContext provider. Make sure you have configured MessageList component correctly - https://getstream.io/chat/docs/sdk/reactnative/basics/hello_stream_chat/#message-list`,
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import React, { PropsWithChildren, useContext } from 'react';
|
|
2
2
|
|
|
3
|
-
import type { UnknownType } from '../../types/types';
|
|
4
|
-
|
|
5
|
-
import { getDisplayName } from '../utils/getDisplayName';
|
|
6
|
-
|
|
7
3
|
type ActiveChannels = React.MutableRefObject<string[]>;
|
|
8
4
|
|
|
9
5
|
const ActiveChannelsContext = React.createContext({ current: [] } as ActiveChannels);
|
|
@@ -17,26 +13,3 @@ export const ActiveChannelsProvider = ({
|
|
|
17
13
|
|
|
18
14
|
export const useActiveChannelsRefContext = () =>
|
|
19
15
|
useContext(ActiveChannelsContext) as unknown as ActiveChannels;
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* @deprecated
|
|
23
|
-
*
|
|
24
|
-
* This will be removed in the next major version.
|
|
25
|
-
*
|
|
26
|
-
* Typescript currently does not support partial inference so if ChatContext
|
|
27
|
-
* typing is desired while using the HOC withActiveChannelsRefContext the Props for the
|
|
28
|
-
* wrapped component must be provided as the first generic.
|
|
29
|
-
*/
|
|
30
|
-
export const withActiveChannelsRefContext = <P extends UnknownType>(
|
|
31
|
-
Component: React.ComponentType<P>,
|
|
32
|
-
): React.ComponentType<Omit<P, 'activeChannels'>> => {
|
|
33
|
-
const WithActiveChannelsContextComponent = (props: Omit<P, 'activeChannels'>) => {
|
|
34
|
-
const ActiveChannelsContext = useActiveChannelsRefContext();
|
|
35
|
-
|
|
36
|
-
return <Component {...(props as P)} activeChannels={ActiveChannelsContext} />;
|
|
37
|
-
};
|
|
38
|
-
WithActiveChannelsContextComponent.displayName = `WithActiveChannelsContext${getDisplayName(
|
|
39
|
-
Component,
|
|
40
|
-
)}`;
|
|
41
|
-
return WithActiveChannelsContextComponent;
|
|
42
|
-
};
|
|
@@ -2,10 +2,9 @@ import React, { PropsWithChildren, useContext, useEffect, useState } from 'react
|
|
|
2
2
|
|
|
3
3
|
import { BottomSheetHandleProps } from '@gorhom/bottom-sheet';
|
|
4
4
|
|
|
5
|
-
import type { Asset,
|
|
5
|
+
import type { Asset, File } from '../../types/types';
|
|
6
6
|
import { DEFAULT_BASE_CONTEXT_VALUE } from '../utils/defaultBaseContextValue';
|
|
7
7
|
|
|
8
|
-
import { getDisplayName } from '../utils/getDisplayName';
|
|
9
8
|
import { isTestEnvironment } from '../utils/isTestEnvironment';
|
|
10
9
|
|
|
11
10
|
export type AttachmentPickerIconProps = {
|
|
@@ -158,30 +157,3 @@ export const useAttachmentPickerContext = () => {
|
|
|
158
157
|
|
|
159
158
|
return contextValue;
|
|
160
159
|
};
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
* @deprecated
|
|
164
|
-
*
|
|
165
|
-
* This will be removed in the next major version.
|
|
166
|
-
*
|
|
167
|
-
* Typescript currently does not support partial inference so if ChatContext
|
|
168
|
-
* typing is desired while using the HOC withAttachmentPickerContext the Props for the
|
|
169
|
-
* wrapped component must be provided as the first generic.
|
|
170
|
-
*/
|
|
171
|
-
export const withAttachmentPickerContext = <
|
|
172
|
-
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
173
|
-
>(
|
|
174
|
-
Component: React.ComponentType<StreamChatGenerics>,
|
|
175
|
-
): React.ComponentType<Omit<StreamChatGenerics, keyof AttachmentPickerContextValue>> => {
|
|
176
|
-
const WithAttachmentPickerContextComponent = (
|
|
177
|
-
props: Omit<StreamChatGenerics, keyof AttachmentPickerContextValue>,
|
|
178
|
-
) => {
|
|
179
|
-
const attachmentPickerContext = useAttachmentPickerContext();
|
|
180
|
-
|
|
181
|
-
return <Component {...(props as StreamChatGenerics)} {...attachmentPickerContext} />;
|
|
182
|
-
};
|
|
183
|
-
WithAttachmentPickerContextComponent.displayName = `WithAttachmentPickerContext${getDisplayName(
|
|
184
|
-
Component as React.ComponentType,
|
|
185
|
-
)}`;
|
|
186
|
-
return WithAttachmentPickerContextComponent;
|
|
187
|
-
};
|
|
@@ -5,10 +5,9 @@ import type { Channel, ChannelState } from 'stream-chat';
|
|
|
5
5
|
import type { EmptyStateProps } from '../../components/Indicators/EmptyStateIndicator';
|
|
6
6
|
import type { LoadingProps } from '../../components/Indicators/LoadingIndicator';
|
|
7
7
|
import { StickyHeaderProps } from '../../components/MessageList/StickyHeader';
|
|
8
|
-
import type { DefaultStreamChatGenerics
|
|
8
|
+
import type { DefaultStreamChatGenerics } from '../../types/types';
|
|
9
9
|
import { DEFAULT_BASE_CONTEXT_VALUE } from '../utils/defaultBaseContextValue';
|
|
10
10
|
|
|
11
|
-
import { getDisplayName } from '../utils/getDisplayName';
|
|
12
11
|
import { isTestEnvironment } from '../utils/isTestEnvironment';
|
|
13
12
|
|
|
14
13
|
export type ChannelContextValue<
|
|
@@ -78,24 +77,7 @@ export type ChannelContextValue<
|
|
|
78
77
|
* @param messageId If undefined, channel will be loaded at most recent message.
|
|
79
78
|
*/
|
|
80
79
|
loadChannelAroundMessage: ({ messageId }: { messageId?: string }) => Promise<void>;
|
|
81
|
-
|
|
82
|
-
* @deprecated use loadChannelAroundMessage instead
|
|
83
|
-
*
|
|
84
|
-
* Loads channel at specific message
|
|
85
|
-
*
|
|
86
|
-
* @param messageId If undefined, channel will be loaded at most recent message.
|
|
87
|
-
* @param before Number of message to query before messageId
|
|
88
|
-
* @param after Number of message to query after messageId
|
|
89
|
-
*/
|
|
90
|
-
loadChannelAtMessage: ({
|
|
91
|
-
after,
|
|
92
|
-
before,
|
|
93
|
-
messageId,
|
|
94
|
-
}: {
|
|
95
|
-
after?: number;
|
|
96
|
-
before?: number;
|
|
97
|
-
messageId?: string;
|
|
98
|
-
}) => Promise<void>;
|
|
80
|
+
|
|
99
81
|
loading: boolean;
|
|
100
82
|
/**
|
|
101
83
|
* Custom loading indicator to override the Stream default
|
|
@@ -223,29 +205,3 @@ export const useChannelContext = <
|
|
|
223
205
|
|
|
224
206
|
return contextValue;
|
|
225
207
|
};
|
|
226
|
-
|
|
227
|
-
/**
|
|
228
|
-
* @deprecated
|
|
229
|
-
*
|
|
230
|
-
* This will be removed in the next major version.
|
|
231
|
-
*
|
|
232
|
-
* Typescript currently does not support partial inference so if ChatContext
|
|
233
|
-
* typing is desired while using the HOC withChannelContext the Props for the
|
|
234
|
-
* wrapped component must be provided as the first generic.
|
|
235
|
-
*/
|
|
236
|
-
export const withChannelContext = <
|
|
237
|
-
P extends UnknownType,
|
|
238
|
-
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
239
|
-
>(
|
|
240
|
-
Component: React.ComponentType<P>,
|
|
241
|
-
): React.ComponentType<Omit<P, keyof ChannelContextValue<StreamChatGenerics>>> => {
|
|
242
|
-
const WithChannelContextComponent = (
|
|
243
|
-
props: Omit<P, keyof ChannelContextValue<StreamChatGenerics>>,
|
|
244
|
-
) => {
|
|
245
|
-
const channelContext = useChannelContext<StreamChatGenerics>();
|
|
246
|
-
|
|
247
|
-
return <Component {...(props as P)} {...channelContext} />;
|
|
248
|
-
};
|
|
249
|
-
WithChannelContextComponent.displayName = `WithChannelContext${getDisplayName(Component)}`;
|
|
250
|
-
return WithChannelContextComponent;
|
|
251
|
-
};
|
|
@@ -16,10 +16,9 @@ import type { ChannelPreviewUnreadCountProps } from '../../components/ChannelPre
|
|
|
16
16
|
import type { EmptyStateProps } from '../../components/Indicators/EmptyStateIndicator';
|
|
17
17
|
import type { LoadingErrorProps } from '../../components/Indicators/LoadingErrorIndicator';
|
|
18
18
|
import type { LoadingProps } from '../../components/Indicators/LoadingIndicator';
|
|
19
|
-
import type { DefaultStreamChatGenerics
|
|
19
|
+
import type { DefaultStreamChatGenerics } from '../../types/types';
|
|
20
20
|
import { DEFAULT_BASE_CONTEXT_VALUE } from '../utils/defaultBaseContextValue';
|
|
21
21
|
|
|
22
|
-
import { getDisplayName } from '../utils/getDisplayName';
|
|
23
22
|
import { isTestEnvironment } from '../utils/isTestEnvironment';
|
|
24
23
|
|
|
25
24
|
export type ChannelsContextValue<
|
|
@@ -240,29 +239,3 @@ export const useChannelsContext = <
|
|
|
240
239
|
|
|
241
240
|
return contextValue;
|
|
242
241
|
};
|
|
243
|
-
|
|
244
|
-
/**
|
|
245
|
-
* @deprecated
|
|
246
|
-
*
|
|
247
|
-
* This will be removed in the next major version.
|
|
248
|
-
*
|
|
249
|
-
* Typescript currently does not support partial inference so if ChatContext
|
|
250
|
-
* typing is desired while using the HOC withChannelsContext the Props for the
|
|
251
|
-
* wrapped component must be provided as the first generic.
|
|
252
|
-
*/
|
|
253
|
-
export const withChannelsContext = <
|
|
254
|
-
P extends UnknownType,
|
|
255
|
-
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
256
|
-
>(
|
|
257
|
-
Component: React.ComponentType<P>,
|
|
258
|
-
): React.ComponentType<Omit<P, keyof ChannelsContextValue<StreamChatGenerics>>> => {
|
|
259
|
-
const WithChannelsContextComponent = (
|
|
260
|
-
props: Omit<P, keyof ChannelsContextValue<StreamChatGenerics>>,
|
|
261
|
-
) => {
|
|
262
|
-
const channelsContext = useChannelsContext<StreamChatGenerics>();
|
|
263
|
-
|
|
264
|
-
return <Component {...(props as P)} {...channelsContext} />;
|
|
265
|
-
};
|
|
266
|
-
WithChannelsContextComponent.displayName = `WithChannelsContext${getDisplayName(Component)}`;
|
|
267
|
-
return WithChannelsContextComponent;
|
|
268
|
-
};
|
|
@@ -8,7 +8,7 @@ import React, {
|
|
|
8
8
|
useRef,
|
|
9
9
|
} from 'react';
|
|
10
10
|
|
|
11
|
-
import type { DefaultStreamChatGenerics
|
|
11
|
+
import type { DefaultStreamChatGenerics } from '../../types/types';
|
|
12
12
|
import { ActiveChannelsProvider } from '../activeChannelsRefContext/ActiveChannelsRefContext';
|
|
13
13
|
|
|
14
14
|
import type { ChannelContextValue } from '../channelContext/ChannelContext';
|
|
@@ -17,7 +17,6 @@ import type { ThreadContextValue } from '../threadContext/ThreadContext';
|
|
|
17
17
|
import type { TypingContextValue } from '../typingContext/TypingContext';
|
|
18
18
|
import { DEFAULT_BASE_CONTEXT_VALUE } from '../utils/defaultBaseContextValue';
|
|
19
19
|
|
|
20
|
-
import { getDisplayName } from '../utils/getDisplayName';
|
|
21
20
|
import { isTestEnvironment } from '../utils/isTestEnvironment';
|
|
22
21
|
|
|
23
22
|
export type ChannelState<
|
|
@@ -198,31 +197,3 @@ export const useChannelsStateContext = <
|
|
|
198
197
|
|
|
199
198
|
return contextValue;
|
|
200
199
|
};
|
|
201
|
-
|
|
202
|
-
/**
|
|
203
|
-
* @deprecated
|
|
204
|
-
*
|
|
205
|
-
* This will be removed in the next major version.
|
|
206
|
-
*
|
|
207
|
-
* Typescript currently does not support partial inference so if ChatContext
|
|
208
|
-
* typing is desired while using the HOC withChannelsStateContext the Props for the
|
|
209
|
-
* wrapped component must be provided as the first generic.
|
|
210
|
-
*/
|
|
211
|
-
export const withChannelsStateContext = <
|
|
212
|
-
P extends UnknownType,
|
|
213
|
-
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
214
|
-
>(
|
|
215
|
-
Component: React.ComponentType<P>,
|
|
216
|
-
): React.ComponentType<Omit<P, keyof ChannelsStateContextValue<StreamChatGenerics>>> => {
|
|
217
|
-
const WithChannelsStateContextComponent = (
|
|
218
|
-
props: Omit<P, keyof ChannelsStateContextValue<StreamChatGenerics>>,
|
|
219
|
-
) => {
|
|
220
|
-
const channelsStateContext = useChannelsStateContext<StreamChatGenerics>();
|
|
221
|
-
|
|
222
|
-
return <Component {...(props as P)} {...channelsStateContext} />;
|
|
223
|
-
};
|
|
224
|
-
WithChannelsStateContextComponent.displayName = `WithChannelsStateContext${getDisplayName(
|
|
225
|
-
Component,
|
|
226
|
-
)}`;
|
|
227
|
-
return WithChannelsStateContextComponent;
|
|
228
|
-
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React, { PropsWithChildren, useContext } from 'react';
|
|
2
|
+
|
|
3
|
+
export type ChatConfigContextValue = {
|
|
4
|
+
/**
|
|
5
|
+
* This option allows you to specify a list of CDNs that offer image resizing.
|
|
6
|
+
*/
|
|
7
|
+
resizableCDNHosts?: string[];
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export const chatConfigContextDefaultvalue = {
|
|
11
|
+
resizableCDNHosts: ['.stream-io-cdn.com'],
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export const ChatConfigContext = React.createContext<ChatConfigContextValue>(
|
|
15
|
+
chatConfigContextDefaultvalue,
|
|
16
|
+
);
|
|
17
|
+
|
|
18
|
+
export const ChatConfigProvider = ({
|
|
19
|
+
children,
|
|
20
|
+
value = chatConfigContextDefaultvalue,
|
|
21
|
+
}: PropsWithChildren<{
|
|
22
|
+
value?: ChatConfigContextValue;
|
|
23
|
+
}>) => (
|
|
24
|
+
<ChatConfigContext.Provider value={value as unknown as ChatConfigContextValue}>
|
|
25
|
+
{children}
|
|
26
|
+
</ChatConfigContext.Provider>
|
|
27
|
+
);
|
|
28
|
+
|
|
29
|
+
export const useChatConfigContext = () => {
|
|
30
|
+
const contextValue = useContext(ChatConfigContext) as unknown as ChatConfigContextValue;
|
|
31
|
+
|
|
32
|
+
return contextValue;
|
|
33
|
+
};
|