stream-chat-react-native-core 5.27.0-beta.9 → 5.27.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/components/Attachment/Attachment.js +23 -101
- package/lib/commonjs/components/Attachment/Attachment.js.map +1 -1
- package/lib/commonjs/components/Attachment/AttachmentActions.js +26 -49
- package/lib/commonjs/components/Attachment/AttachmentActions.js.map +1 -1
- package/lib/commonjs/components/Attachment/AudioAttachment.js +73 -139
- package/lib/commonjs/components/Attachment/AudioAttachment.js.map +1 -1
- package/lib/commonjs/components/Attachment/Card.js +67 -162
- package/lib/commonjs/components/Attachment/Card.js.map +1 -1
- package/lib/commonjs/components/Attachment/FileAttachment.js +33 -78
- package/lib/commonjs/components/Attachment/FileAttachment.js.map +1 -1
- package/lib/commonjs/components/Attachment/FileAttachmentGroup.js +47 -81
- package/lib/commonjs/components/Attachment/FileAttachmentGroup.js.map +1 -1
- package/lib/commonjs/components/Attachment/FileIcon.js +3 -10
- package/lib/commonjs/components/Attachment/FileIcon.js.map +1 -1
- package/lib/commonjs/components/Attachment/Gallery.js +131 -218
- package/lib/commonjs/components/Attachment/Gallery.js.map +1 -1
- package/lib/commonjs/components/Attachment/GalleryImage.js +5 -24
- package/lib/commonjs/components/Attachment/GalleryImage.js.map +1 -1
- package/lib/commonjs/components/Attachment/Giphy.js +151 -295
- package/lib/commonjs/components/Attachment/Giphy.js.map +1 -1
- package/lib/commonjs/components/Attachment/ImageLoadingFailedIndicator.js +19 -40
- package/lib/commonjs/components/Attachment/ImageLoadingFailedIndicator.js.map +1 -1
- package/lib/commonjs/components/Attachment/ImageLoadingIndicator.js +3 -15
- package/lib/commonjs/components/Attachment/ImageLoadingIndicator.js.map +1 -1
- package/lib/commonjs/components/Attachment/ImageReloadIndicator.js +8 -18
- package/lib/commonjs/components/Attachment/ImageReloadIndicator.js.map +1 -1
- package/lib/commonjs/components/Attachment/VideoThumbnail.js +13 -28
- package/lib/commonjs/components/Attachment/VideoThumbnail.js.map +1 -1
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildGallery.js.map +1 -1
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.js +2 -4
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.js.map +1 -1
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.js +1 -2
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.js.map +1 -1
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.js.map +1 -1
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildThumbnail.js.map +1 -1
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildThumbnailGrid.js.map +1 -1
- package/lib/commonjs/components/Attachment/utils/buildGallery/types.js.map +1 -1
- package/lib/commonjs/components/Attachment/utils/getAspectRatio.js.map +1 -1
- package/lib/commonjs/components/Attachment/utils/getGalleryImageBorderRadius.js +1 -1
- package/lib/commonjs/components/Attachment/utils/getGalleryImageBorderRadius.js.map +1 -1
- package/lib/commonjs/components/Attachment/utils/getGiphyMimeType.js.map +1 -1
- package/lib/commonjs/components/Attachment/utils/openUrlSafely.js +1 -1
- package/lib/commonjs/components/Attachment/utils/openUrlSafely.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/AttachmentPicker.js +37 -57
- package/lib/commonjs/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerBottomSheetHandle.js +10 -20
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerBottomSheetHandle.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerError.js +16 -37
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerError.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerErrorImage.js +3 -8
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerErrorImage.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerIOSSelectMorePhotos.js +9 -18
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerIOSSelectMorePhotos.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerItem.js +54 -126
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerItem.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentSelectionBar.js +48 -100
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentSelectionBar.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/CameraSelectorIcon.js +3 -8
- package/lib/commonjs/components/AttachmentPicker/components/CameraSelectorIcon.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/FileSelectorIcon.js +3 -8
- package/lib/commonjs/components/AttachmentPicker/components/FileSelectorIcon.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/ImageOverlaySelectedComponent.js +4 -15
- package/lib/commonjs/components/AttachmentPicker/components/ImageOverlaySelectedComponent.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/ImageSelectorIcon.js +3 -8
- package/lib/commonjs/components/AttachmentPicker/components/ImageSelectorIcon.js.map +1 -1
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteInput.js +226 -145
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteInput.js.map +1 -1
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.js +45 -134
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.js.map +1 -1
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionHeader.js +24 -63
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionHeader.js.map +1 -1
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionItem.js +55 -125
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionItem.js.map +1 -1
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionList.js +31 -71
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionList.js.map +1 -1
- package/lib/commonjs/components/Avatar/Avatar.js +45 -84
- package/lib/commonjs/components/Avatar/Avatar.js.map +1 -1
- package/lib/commonjs/components/Avatar/GroupAvatar.js +42 -65
- package/lib/commonjs/components/Avatar/GroupAvatar.js.map +1 -1
- package/lib/commonjs/components/Channel/Channel.js +90 -170
- package/lib/commonjs/components/Channel/Channel.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateChannelContext.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateOwnCapabilitiesContext.js +1 -2
- package/lib/commonjs/components/Channel/hooks/useCreateOwnCapabilitiesContext.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreatePaginatedMessageListContext.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateThreadContext.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateTypingContext.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useTargetedMessage.js.map +1 -1
- package/lib/commonjs/components/ChannelList/ChannelList.js +12 -23
- package/lib/commonjs/components/ChannelList/ChannelList.js.map +1 -1
- package/lib/commonjs/components/ChannelList/ChannelListFooterLoadingIndicator.js +7 -17
- package/lib/commonjs/components/ChannelList/ChannelListFooterLoadingIndicator.js.map +1 -1
- package/lib/commonjs/components/ChannelList/ChannelListHeaderErrorIndicator.js +11 -20
- package/lib/commonjs/components/ChannelList/ChannelListHeaderErrorIndicator.js.map +1 -1
- package/lib/commonjs/components/ChannelList/ChannelListHeaderNetworkDownIndicator.js +10 -19
- package/lib/commonjs/components/ChannelList/ChannelListHeaderNetworkDownIndicator.js.map +1 -1
- package/lib/commonjs/components/ChannelList/ChannelListLoadingIndicator.js +6 -18
- package/lib/commonjs/components/ChannelList/ChannelListLoadingIndicator.js.map +1 -1
- package/lib/commonjs/components/ChannelList/ChannelListMessenger.js +51 -136
- package/lib/commonjs/components/ChannelList/ChannelListMessenger.js.map +1 -1
- package/lib/commonjs/components/ChannelList/Skeleton.js +50 -120
- package/lib/commonjs/components/ChannelList/Skeleton.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/listeners/useAddedToChannelNotification.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelDeleted.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelHidden.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelTruncated.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelUpdated.js +1 -2
- package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelUpdated.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelVisible.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/listeners/useNewMessage.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/listeners/useNewMessageNotification.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/listeners/useRemovedFromChannelNotification.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/listeners/useUserPresence.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/useCreateChannelsContext.js +2 -2
- package/lib/commonjs/components/ChannelList/hooks/useCreateChannelsContext.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/usePaginatedChannels.js +2 -3
- package/lib/commonjs/components/ChannelList/hooks/usePaginatedChannels.js.map +1 -1
- package/lib/commonjs/components/ChannelList/utils.js +3 -3
- package/lib/commonjs/components/ChannelList/utils.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelAvatar.js +7 -25
- package/lib/commonjs/components/ChannelPreview/ChannelAvatar.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreview.js +8 -21
- package/lib/commonjs/components/ChannelPreview/ChannelPreview.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessage.js +11 -21
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessage.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessenger.js +38 -107
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessenger.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewMutedStatus.js +3 -8
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewMutedStatus.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewStatus.js +13 -37
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewStatus.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewTitle.js +4 -8
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewTitle.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewUnreadCount.js +8 -17
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewUnreadCount.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayName.js +5 -5
- package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayName.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/hooks/useLatestMessagePreview.js +5 -5
- package/lib/commonjs/components/ChannelPreview/hooks/useLatestMessagePreview.js.map +1 -1
- package/lib/commonjs/components/Chat/Chat.js +19 -46
- package/lib/commonjs/components/Chat/Chat.js.map +1 -1
- package/lib/commonjs/components/Chat/hooks/handleEventToSyncDB.js +100 -37
- package/lib/commonjs/components/Chat/hooks/handleEventToSyncDB.js.map +1 -1
- package/lib/commonjs/components/Chat/hooks/useAppSettings.js +3 -3
- package/lib/commonjs/components/Chat/hooks/useAppSettings.js.map +1 -1
- package/lib/commonjs/components/Chat/hooks/useCreateChatContext.js +1 -1
- package/lib/commonjs/components/Chat/hooks/useCreateChatContext.js.map +1 -1
- package/lib/commonjs/components/Chat/hooks/useIsOnline.js.map +1 -1
- package/lib/commonjs/components/Chat/hooks/useMutedUsers.js.map +1 -1
- package/lib/commonjs/components/Chat/hooks/useSyncDatabase.js +3 -1
- package/lib/commonjs/components/Chat/hooks/useSyncDatabase.js.map +1 -1
- package/lib/commonjs/components/ImageBackground.js +12 -23
- package/lib/commonjs/components/ImageBackground.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/ImageGallery.js +162 -258
- package/lib/commonjs/components/ImageGallery/ImageGallery.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/AnimatedGalleryImage.js +7 -18
- package/lib/commonjs/components/ImageGallery/components/AnimatedGalleryImage.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/AnimatedGalleryVideo.js +39 -66
- package/lib/commonjs/components/ImageGallery/components/AnimatedGalleryVideo.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryFooter.js +74 -151
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js +45 -97
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryOverlay.js +10 -20
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryOverlay.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryVideoControl.js +42 -84
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryVideoControl.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGrid.js +26 -60
- package/lib/commonjs/components/ImageGallery/components/ImageGrid.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGridHandle.js +22 -48
- package/lib/commonjs/components/ImageGallery/components/ImageGridHandle.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/hooks/useImageGalleryGestures.js.map +1 -1
- package/lib/commonjs/components/Indicators/EmptyStateIndicator.js +24 -49
- package/lib/commonjs/components/Indicators/EmptyStateIndicator.js.map +1 -1
- package/lib/commonjs/components/Indicators/LoadingDot.js +5 -10
- package/lib/commonjs/components/Indicators/LoadingDot.js.map +1 -1
- package/lib/commonjs/components/Indicators/LoadingDots.js +17 -28
- package/lib/commonjs/components/Indicators/LoadingDots.js.map +1 -1
- package/lib/commonjs/components/Indicators/LoadingErrorIndicator.js +22 -53
- package/lib/commonjs/components/Indicators/LoadingErrorIndicator.js.map +1 -1
- package/lib/commonjs/components/Indicators/LoadingIndicator.js +21 -60
- package/lib/commonjs/components/Indicators/LoadingIndicator.js.map +1 -1
- package/lib/commonjs/components/KeyboardCompatibleView/KeyboardCompatibleView.js +46 -91
- package/lib/commonjs/components/KeyboardCompatibleView/KeyboardCompatibleView.js.map +1 -1
- package/lib/commonjs/components/KeyboardCompatibleView/KeyboardCompatibleViewFC.js +52 -93
- package/lib/commonjs/components/KeyboardCompatibleView/KeyboardCompatibleViewFC.js.map +1 -1
- package/lib/commonjs/components/Message/Message.js +34 -74
- package/lib/commonjs/components/Message/Message.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageAvatar.js +14 -38
- package/lib/commonjs/components/Message/MessageSimple/MessageAvatar.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageBounce.js +17 -22
- package/lib/commonjs/components/Message/MessageSimple/MessageBounce.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageContent.js +72 -173
- package/lib/commonjs/components/Message/MessageSimple/MessageContent.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageDeleted.js +29 -58
- package/lib/commonjs/components/Message/MessageSimple/MessageDeleted.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageError.js +9 -26
- package/lib/commonjs/components/Message/MessageSimple/MessageError.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageFooter.js +47 -106
- package/lib/commonjs/components/Message/MessageSimple/MessageFooter.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessagePinnedHeader.js +13 -36
- package/lib/commonjs/components/Message/MessageSimple/MessagePinnedHeader.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageReplies.js +66 -122
- package/lib/commonjs/components/Message/MessageSimple/MessageReplies.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageRepliesAvatars.js +22 -45
- package/lib/commonjs/components/Message/MessageSimple/MessageRepliesAvatars.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageSimple.js +20 -56
- package/lib/commonjs/components/Message/MessageSimple/MessageSimple.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageStatus.js +24 -79
- package/lib/commonjs/components/Message/MessageSimple/MessageStatus.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageTextContainer.js +21 -39
- package/lib/commonjs/components/Message/MessageSimple/MessageTextContainer.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/ReactionList.js +123 -226
- package/lib/commonjs/components/Message/MessageSimple/ReactionList.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/utils/generateMarkdownText.js +20 -12
- package/lib/commonjs/components/Message/MessageSimple/utils/generateMarkdownText.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/utils/generateMarkdownText.test.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/utils/parseLinks.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/utils/parseLinks.test.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/utils/renderText.js +75 -164
- package/lib/commonjs/components/Message/MessageSimple/utils/renderText.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/utils/renderText.test.js +32 -65
- package/lib/commonjs/components/Message/MessageSimple/utils/renderText.test.js.map +1 -1
- package/lib/commonjs/components/Message/hooks/useCreateMessageContext.js +4 -4
- package/lib/commonjs/components/Message/hooks/useCreateMessageContext.js.map +1 -1
- package/lib/commonjs/components/Message/hooks/useMessageActionHandlers.js.map +1 -1
- package/lib/commonjs/components/Message/hooks/useMessageActions.js +25 -90
- package/lib/commonjs/components/Message/hooks/useMessageActions.js.map +1 -1
- package/lib/commonjs/components/Message/utils/messageActions.js.map +1 -1
- package/lib/commonjs/components/MessageInput/AttachButton.js +8 -26
- package/lib/commonjs/components/MessageInput/AttachButton.js.map +1 -1
- package/lib/commonjs/components/MessageInput/CommandsButton.js +10 -28
- package/lib/commonjs/components/MessageInput/CommandsButton.js.map +1 -1
- package/lib/commonjs/components/MessageInput/CooldownTimer.js +11 -20
- package/lib/commonjs/components/MessageInput/CooldownTimer.js.map +1 -1
- package/lib/commonjs/components/MessageInput/FileUploadPreview.js +104 -205
- package/lib/commonjs/components/MessageInput/FileUploadPreview.js.map +1 -1
- package/lib/commonjs/components/MessageInput/ImageUploadPreview.js +50 -123
- package/lib/commonjs/components/MessageInput/ImageUploadPreview.js.map +1 -1
- package/lib/commonjs/components/MessageInput/InputButtons.js +17 -50
- package/lib/commonjs/components/MessageInput/InputButtons.js.map +1 -1
- package/lib/commonjs/components/MessageInput/MessageInput.js +94 -238
- package/lib/commonjs/components/MessageInput/MessageInput.js.map +1 -1
- package/lib/commonjs/components/MessageInput/MoreOptionsButton.js +8 -26
- package/lib/commonjs/components/MessageInput/MoreOptionsButton.js.map +1 -1
- package/lib/commonjs/components/MessageInput/SendButton.js +12 -44
- package/lib/commonjs/components/MessageInput/SendButton.js.map +1 -1
- package/lib/commonjs/components/MessageInput/SendMessageDisallowedIndicator.js +9 -18
- package/lib/commonjs/components/MessageInput/SendMessageDisallowedIndicator.js.map +1 -1
- package/lib/commonjs/components/MessageInput/ShowThreadMessageInChannelButton.js +33 -72
- package/lib/commonjs/components/MessageInput/ShowThreadMessageInChannelButton.js.map +1 -1
- package/lib/commonjs/components/MessageInput/UploadProgressIndicator.js +28 -77
- package/lib/commonjs/components/MessageInput/UploadProgressIndicator.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/InputEditingStateHeader.js +23 -57
- package/lib/commonjs/components/MessageInput/components/InputEditingStateHeader.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/InputGiphySearch.js +35 -80
- package/lib/commonjs/components/MessageInput/components/InputGiphySearch.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/InputReplyStateHeader.js +23 -57
- package/lib/commonjs/components/MessageInput/components/InputReplyStateHeader.js.map +1 -1
- package/lib/commonjs/components/MessageInput/hooks/useCooldown.js.map +1 -1
- package/lib/commonjs/components/MessageInput/hooks/useCountdown.js.map +1 -1
- package/lib/commonjs/components/MessageList/DateHeader.js +9 -18
- package/lib/commonjs/components/MessageList/DateHeader.js.map +1 -1
- package/lib/commonjs/components/MessageList/InlineDateSeparator.js +9 -18
- package/lib/commonjs/components/MessageList/InlineDateSeparator.js.map +1 -1
- package/lib/commonjs/components/MessageList/InlineLoadingMoreIndicator.js +9 -25
- package/lib/commonjs/components/MessageList/InlineLoadingMoreIndicator.js.map +1 -1
- package/lib/commonjs/components/MessageList/InlineLoadingMoreRecentIndicator.js +9 -25
- package/lib/commonjs/components/MessageList/InlineLoadingMoreRecentIndicator.js.map +1 -1
- package/lib/commonjs/components/MessageList/InlineLoadingMoreThreadIndicator.js +9 -25
- package/lib/commonjs/components/MessageList/InlineLoadingMoreThreadIndicator.js.map +1 -1
- package/lib/commonjs/components/MessageList/InlineUnreadIndicator.js +42 -84
- package/lib/commonjs/components/MessageList/InlineUnreadIndicator.js.map +1 -1
- package/lib/commonjs/components/MessageList/MessageList.js +100 -270
- package/lib/commonjs/components/MessageList/MessageList.js.map +1 -1
- package/lib/commonjs/components/MessageList/MessageSystem.js +25 -56
- package/lib/commonjs/components/MessageList/MessageSystem.js.map +1 -1
- package/lib/commonjs/components/MessageList/NetworkDownIndicator.js +8 -17
- package/lib/commonjs/components/MessageList/NetworkDownIndicator.js.map +1 -1
- package/lib/commonjs/components/MessageList/ScrollToBottomButton.js +26 -56
- package/lib/commonjs/components/MessageList/ScrollToBottomButton.js.map +1 -1
- package/lib/commonjs/components/MessageList/TypingIndicator.js +12 -27
- package/lib/commonjs/components/MessageList/TypingIndicator.js.map +1 -1
- package/lib/commonjs/components/MessageList/TypingIndicatorContainer.js +6 -18
- package/lib/commonjs/components/MessageList/TypingIndicatorContainer.js.map +1 -1
- package/lib/commonjs/components/MessageList/hooks/useMessageList.js +1 -2
- package/lib/commonjs/components/MessageList/hooks/useMessageList.js.map +1 -1
- package/lib/commonjs/components/MessageList/hooks/useShouldScrollToRecentOnNewOwnMessage.js.map +1 -1
- package/lib/commonjs/components/MessageList/hooks/useTypingString.js.map +1 -1
- package/lib/commonjs/components/MessageList/utils/filterTypingUsers.js.map +1 -1
- package/lib/commonjs/components/MessageList/utils/getDateSeparators.js.map +1 -1
- package/lib/commonjs/components/MessageList/utils/getGroupStyles.js.map +1 -1
- package/lib/commonjs/components/MessageList/utils/getLastReceivedMessage.js +13 -5
- package/lib/commonjs/components/MessageList/utils/getLastReceivedMessage.js.map +1 -1
- package/lib/commonjs/components/MessageList/utils/getReadStates.js +52 -36
- package/lib/commonjs/components/MessageList/utils/getReadStates.js.map +1 -1
- package/lib/commonjs/components/MessageOverlay/MessageActionList.js +19 -40
- package/lib/commonjs/components/MessageOverlay/MessageActionList.js.map +1 -1
- package/lib/commonjs/components/MessageOverlay/MessageActionListItem.js +21 -48
- package/lib/commonjs/components/MessageOverlay/MessageActionListItem.js.map +1 -1
- package/lib/commonjs/components/MessageOverlay/MessageOverlay.js +163 -304
- package/lib/commonjs/components/MessageOverlay/MessageOverlay.js.map +1 -1
- package/lib/commonjs/components/MessageOverlay/OverlayBackdrop.js +3 -8
- package/lib/commonjs/components/MessageOverlay/OverlayBackdrop.js.map +1 -1
- package/lib/commonjs/components/MessageOverlay/OverlayReactionList.js +73 -145
- package/lib/commonjs/components/MessageOverlay/OverlayReactionList.js.map +1 -1
- package/lib/commonjs/components/MessageOverlay/OverlayReactions.js +119 -224
- package/lib/commonjs/components/MessageOverlay/OverlayReactions.js.map +1 -1
- package/lib/commonjs/components/MessageOverlay/OverlayReactionsAvatar.js +3 -8
- package/lib/commonjs/components/MessageOverlay/OverlayReactionsAvatar.js.map +1 -1
- package/lib/commonjs/components/MessageOverlay/hooks/useMessageActionAnimation.js.map +1 -1
- package/lib/commonjs/components/ProgressControl/ProgressControl.js +19 -51
- package/lib/commonjs/components/ProgressControl/ProgressControl.js.map +1 -1
- package/lib/commonjs/components/RTLComponents/WritingDirectionAwareText.js +4 -9
- package/lib/commonjs/components/RTLComponents/WritingDirectionAwareText.js.map +1 -1
- package/lib/commonjs/components/Reply/Reply.js +61 -113
- package/lib/commonjs/components/Reply/Reply.js.map +1 -1
- package/lib/commonjs/components/Spinner/Spinner.js +11 -21
- package/lib/commonjs/components/Spinner/Spinner.js.map +1 -1
- package/lib/commonjs/components/Thread/Thread.js +17 -44
- package/lib/commonjs/components/Thread/Thread.js.map +1 -1
- package/lib/commonjs/components/Thread/components/ThreadFooterComponent.js +57 -121
- package/lib/commonjs/components/Thread/components/ThreadFooterComponent.js.map +1 -1
- package/lib/commonjs/components/docs/data.js +1 -1
- package/lib/commonjs/components/docs/data.js.map +1 -1
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/contexts/activeChannelsRefContext/ActiveChannelsRefContext.js +9 -21
- package/lib/commonjs/contexts/activeChannelsRefContext/ActiveChannelsRefContext.js.map +1 -1
- package/lib/commonjs/contexts/attachmentPickerContext/AttachmentPickerContext.js +9 -21
- package/lib/commonjs/contexts/attachmentPickerContext/AttachmentPickerContext.js.map +1 -1
- package/lib/commonjs/contexts/channelContext/ChannelContext.js +8 -21
- package/lib/commonjs/contexts/channelContext/ChannelContext.js.map +1 -1
- package/lib/commonjs/contexts/channelsContext/ChannelsContext.js +8 -21
- package/lib/commonjs/contexts/channelsContext/ChannelsContext.js.map +1 -1
- package/lib/commonjs/contexts/channelsStateContext/ChannelsStateContext.js +15 -32
- package/lib/commonjs/contexts/channelsStateContext/ChannelsStateContext.js.map +1 -1
- package/lib/commonjs/contexts/channelsStateContext/useChannelState.js.map +1 -1
- package/lib/commonjs/contexts/chatContext/ChatContext.js +8 -21
- package/lib/commonjs/contexts/chatContext/ChatContext.js.map +1 -1
- package/lib/commonjs/contexts/debugContext/DebugContext.js +6 -10
- package/lib/commonjs/contexts/debugContext/DebugContext.js.map +1 -1
- package/lib/commonjs/contexts/imageGalleryContext/ImageGalleryContext.js +8 -20
- package/lib/commonjs/contexts/imageGalleryContext/ImageGalleryContext.js.map +1 -1
- package/lib/commonjs/contexts/index.js.map +1 -1
- package/lib/commonjs/contexts/keyboardContext/KeyboardContext.js +8 -21
- package/lib/commonjs/contexts/keyboardContext/KeyboardContext.js.map +1 -1
- package/lib/commonjs/contexts/messageContext/MessageContext.js +8 -21
- package/lib/commonjs/contexts/messageContext/MessageContext.js.map +1 -1
- package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js +126 -96
- package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js.map +1 -1
- package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +5 -3
- package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
- package/lib/commonjs/contexts/messageInputContext/hooks/useMessageDetailsForState.js +49 -41
- package/lib/commonjs/contexts/messageInputContext/hooks/useMessageDetailsForState.js.map +1 -1
- package/lib/commonjs/contexts/messageOverlayContext/MessageOverlayContext.js +8 -21
- package/lib/commonjs/contexts/messageOverlayContext/MessageOverlayContext.js.map +1 -1
- package/lib/commonjs/contexts/messageOverlayContext/hooks/useResettableState.js.map +1 -1
- package/lib/commonjs/contexts/messageOverlayContext/hooks/useResettableState.test.js +33 -53
- package/lib/commonjs/contexts/messageOverlayContext/hooks/useResettableState.test.js.map +1 -1
- package/lib/commonjs/contexts/messagesContext/MessagesContext.js +8 -21
- package/lib/commonjs/contexts/messagesContext/MessagesContext.js.map +1 -1
- package/lib/commonjs/contexts/overlayContext/OverlayContext.js +5 -13
- package/lib/commonjs/contexts/overlayContext/OverlayContext.js.map +1 -1
- package/lib/commonjs/contexts/overlayContext/OverlayProvider.js +52 -112
- package/lib/commonjs/contexts/overlayContext/OverlayProvider.js.map +1 -1
- package/lib/commonjs/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.js +6 -10
- package/lib/commonjs/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.js.map +1 -1
- package/lib/commonjs/contexts/paginatedMessageListContext/PaginatedMessageListContext.js +8 -21
- package/lib/commonjs/contexts/paginatedMessageListContext/PaginatedMessageListContext.js.map +1 -1
- package/lib/commonjs/contexts/suggestionsContext/SuggestionsContext.js +9 -21
- package/lib/commonjs/contexts/suggestionsContext/SuggestionsContext.js.map +1 -1
- package/lib/commonjs/contexts/themeContext/ThemeContext.js +6 -10
- package/lib/commonjs/contexts/themeContext/ThemeContext.js.map +1 -1
- package/lib/commonjs/contexts/themeContext/utils/theme.js +3 -3
- package/lib/commonjs/contexts/themeContext/utils/theme.js.map +1 -1
- package/lib/commonjs/contexts/threadContext/ThreadContext.js +8 -21
- package/lib/commonjs/contexts/threadContext/ThreadContext.js.map +1 -1
- package/lib/commonjs/contexts/translationContext/TranslationContext.js +8 -20
- package/lib/commonjs/contexts/translationContext/TranslationContext.js.map +1 -1
- package/lib/commonjs/contexts/typingContext/TypingContext.js +8 -21
- package/lib/commonjs/contexts/typingContext/TypingContext.js.map +1 -1
- package/lib/commonjs/contexts/utils/defaultBaseContextValue.js.map +1 -1
- package/lib/commonjs/contexts/utils/getDisplayName.js.map +1 -1
- package/lib/commonjs/contexts/utils/isTestEnvironment.js.map +1 -1
- package/lib/commonjs/emoji-data/compile.js +4 -5
- package/lib/commonjs/emoji-data/compile.js.map +1 -1
- package/lib/commonjs/emoji-data/index.js.map +1 -1
- package/lib/commonjs/hooks/index.js.map +1 -1
- package/lib/commonjs/hooks/useAppStateListener.js +3 -1
- package/lib/commonjs/hooks/useAppStateListener.js.map +1 -1
- package/lib/commonjs/hooks/useIsMountedRef.js.map +1 -1
- package/lib/commonjs/hooks/useLoadingImage.js +3 -4
- package/lib/commonjs/hooks/useLoadingImage.js.map +1 -1
- package/lib/commonjs/hooks/useStreami18n.js +1 -2
- package/lib/commonjs/hooks/useStreami18n.js.map +1 -1
- package/lib/commonjs/hooks/useTranslatedMessage.js +3 -5
- package/lib/commonjs/hooks/useTranslatedMessage.js.map +1 -1
- package/lib/commonjs/hooks/useViewport.js.map +1 -1
- package/lib/commonjs/i18n/es.json +10 -10
- package/lib/commonjs/i18n/fr.json +10 -10
- package/lib/commonjs/i18n/he.json +10 -10
- package/lib/commonjs/i18n/hi.json +10 -10
- package/lib/commonjs/i18n/it.json +10 -10
- package/lib/commonjs/i18n/ja.json +10 -10
- package/lib/commonjs/i18n/ko.json +10 -10
- package/lib/commonjs/i18n/nl.json +10 -10
- package/lib/commonjs/i18n/pt-BR.json +10 -10
- package/lib/commonjs/i18n/ru.json +10 -10
- package/lib/commonjs/i18n/tr.json +10 -10
- package/lib/commonjs/icons/ArrowRight.js +10 -36
- package/lib/commonjs/icons/ArrowRight.js.map +1 -1
- package/lib/commonjs/icons/AtMentions.js +6 -18
- package/lib/commonjs/icons/AtMentions.js.map +1 -1
- package/lib/commonjs/icons/Attach.js +6 -18
- package/lib/commonjs/icons/Attach.js.map +1 -1
- package/lib/commonjs/icons/Audio.js +28 -73
- package/lib/commonjs/icons/Audio.js.map +1 -1
- package/lib/commonjs/icons/CSV.js +18 -53
- package/lib/commonjs/icons/CSV.js.map +1 -1
- package/lib/commonjs/icons/Camera.js +6 -18
- package/lib/commonjs/icons/Camera.js.map +1 -1
- package/lib/commonjs/icons/Check.js +8 -27
- package/lib/commonjs/icons/Check.js.map +1 -1
- package/lib/commonjs/icons/CheckAll.js +8 -27
- package/lib/commonjs/icons/CheckAll.js.map +1 -1
- package/lib/commonjs/icons/CheckSend.js +6 -18
- package/lib/commonjs/icons/CheckSend.js.map +1 -1
- package/lib/commonjs/icons/CircleClose.js +8 -27
- package/lib/commonjs/icons/CircleClose.js.map +1 -1
- package/lib/commonjs/icons/CirclePlus.js +8 -27
- package/lib/commonjs/icons/CirclePlus.js.map +1 -1
- package/lib/commonjs/icons/CircleRight.js +8 -27
- package/lib/commonjs/icons/CircleRight.js.map +1 -1
- package/lib/commonjs/icons/Close.js +6 -18
- package/lib/commonjs/icons/Close.js.map +1 -1
- package/lib/commonjs/icons/Copy.js +6 -18
- package/lib/commonjs/icons/Copy.js.map +1 -1
- package/lib/commonjs/icons/CurveLineLeftUp.js +10 -36
- package/lib/commonjs/icons/CurveLineLeftUp.js.map +1 -1
- package/lib/commonjs/icons/DOC.js +32 -83
- package/lib/commonjs/icons/DOC.js.map +1 -1
- package/lib/commonjs/icons/DOCX.js +32 -83
- package/lib/commonjs/icons/DOCX.js.map +1 -1
- package/lib/commonjs/icons/Delete.js +8 -27
- package/lib/commonjs/icons/Delete.js.map +1 -1
- package/lib/commonjs/icons/Down.js +6 -18
- package/lib/commonjs/icons/Down.js.map +1 -1
- package/lib/commonjs/icons/DownloadArrow.js +6 -18
- package/lib/commonjs/icons/DownloadArrow.js.map +1 -1
- package/lib/commonjs/icons/DownloadCloud.js +12 -45
- package/lib/commonjs/icons/DownloadCloud.js.map +1 -1
- package/lib/commonjs/icons/Edit.js +6 -18
- package/lib/commonjs/icons/Edit.js.map +1 -1
- package/lib/commonjs/icons/Error.js +6 -18
- package/lib/commonjs/icons/Error.js.map +1 -1
- package/lib/commonjs/icons/Eye.js +6 -18
- package/lib/commonjs/icons/Eye.js.map +1 -1
- package/lib/commonjs/icons/Flag.js +6 -18
- package/lib/commonjs/icons/Flag.js.map +1 -1
- package/lib/commonjs/icons/Folder.js +6 -18
- package/lib/commonjs/icons/Folder.js.map +1 -1
- package/lib/commonjs/icons/GenericFile.js +28 -73
- package/lib/commonjs/icons/GenericFile.js.map +1 -1
- package/lib/commonjs/icons/GiphyIcon.js +22 -69
- package/lib/commonjs/icons/GiphyIcon.js.map +1 -1
- package/lib/commonjs/icons/Grid.js +6 -18
- package/lib/commonjs/icons/Grid.js.map +1 -1
- package/lib/commonjs/icons/Group.js +6 -18
- package/lib/commonjs/icons/Group.js.map +1 -1
- package/lib/commonjs/icons/HTML.js +18 -53
- package/lib/commonjs/icons/HTML.js.map +1 -1
- package/lib/commonjs/icons/Imgur.js +15 -41
- package/lib/commonjs/icons/Imgur.js.map +1 -1
- package/lib/commonjs/icons/LOLReaction.js +6 -18
- package/lib/commonjs/icons/LOLReaction.js.map +1 -1
- package/lib/commonjs/icons/Lightning.js +6 -18
- package/lib/commonjs/icons/Lightning.js.map +1 -1
- package/lib/commonjs/icons/Link.js +8 -27
- package/lib/commonjs/icons/Link.js.map +1 -1
- package/lib/commonjs/icons/Loading.js +23 -56
- package/lib/commonjs/icons/Loading.js.map +1 -1
- package/lib/commonjs/icons/Logo.js +7 -19
- package/lib/commonjs/icons/Logo.js.map +1 -1
- package/lib/commonjs/icons/LoveReaction.js +6 -18
- package/lib/commonjs/icons/LoveReaction.js.map +1 -1
- package/lib/commonjs/icons/MD.js +18 -53
- package/lib/commonjs/icons/MD.js.map +1 -1
- package/lib/commonjs/icons/MailOpen.js +6 -18
- package/lib/commonjs/icons/MailOpen.js.map +1 -1
- package/lib/commonjs/icons/MenuPointHorizontal.js +6 -18
- package/lib/commonjs/icons/MenuPointHorizontal.js.map +1 -1
- package/lib/commonjs/icons/MenuPointVertical.js +6 -18
- package/lib/commonjs/icons/MenuPointVertical.js.map +1 -1
- package/lib/commonjs/icons/MessageFlag.js +6 -18
- package/lib/commonjs/icons/MessageFlag.js.map +1 -1
- package/lib/commonjs/icons/MessageIcon.js +6 -18
- package/lib/commonjs/icons/MessageIcon.js.map +1 -1
- package/lib/commonjs/icons/Mute.js +6 -18
- package/lib/commonjs/icons/Mute.js.map +1 -1
- package/lib/commonjs/icons/Notification.js +10 -36
- package/lib/commonjs/icons/Notification.js.map +1 -1
- package/lib/commonjs/icons/ODT.js +18 -53
- package/lib/commonjs/icons/ODT.js.map +1 -1
- package/lib/commonjs/icons/PDF.js +18 -53
- package/lib/commonjs/icons/PDF.js.map +1 -1
- package/lib/commonjs/icons/PPT.js +32 -83
- package/lib/commonjs/icons/PPT.js.map +1 -1
- package/lib/commonjs/icons/PPTX.js +32 -83
- package/lib/commonjs/icons/PPTX.js.map +1 -1
- package/lib/commonjs/icons/Pause.js +16 -33
- package/lib/commonjs/icons/Pause.js.map +1 -1
- package/lib/commonjs/icons/Picture.js +8 -27
- package/lib/commonjs/icons/Picture.js.map +1 -1
- package/lib/commonjs/icons/Pin.js +7 -19
- package/lib/commonjs/icons/Pin.js.map +1 -1
- package/lib/commonjs/icons/PinHeader.js +6 -18
- package/lib/commonjs/icons/PinHeader.js.map +1 -1
- package/lib/commonjs/icons/Play.js +7 -19
- package/lib/commonjs/icons/Play.js.map +1 -1
- package/lib/commonjs/icons/RAR.js +18 -53
- package/lib/commonjs/icons/RAR.js.map +1 -1
- package/lib/commonjs/icons/RTF.js +18 -53
- package/lib/commonjs/icons/RTF.js.map +1 -1
- package/lib/commonjs/icons/Recorder.js +8 -27
- package/lib/commonjs/icons/Recorder.js.map +1 -1
- package/lib/commonjs/icons/Refresh.js +6 -18
- package/lib/commonjs/icons/Refresh.js.map +1 -1
- package/lib/commonjs/icons/SEVEN_Z.js +18 -53
- package/lib/commonjs/icons/SEVEN_Z.js.map +1 -1
- package/lib/commonjs/icons/Search.js +6 -18
- package/lib/commonjs/icons/Search.js.map +1 -1
- package/lib/commonjs/icons/SendRight.js +6 -18
- package/lib/commonjs/icons/SendRight.js.map +1 -1
- package/lib/commonjs/icons/SendUp.js +6 -18
- package/lib/commonjs/icons/SendUp.js.map +1 -1
- package/lib/commonjs/icons/Share.js +15 -40
- package/lib/commonjs/icons/Share.js.map +1 -1
- package/lib/commonjs/icons/ShareRightArrow.js +6 -18
- package/lib/commonjs/icons/ShareRightArrow.js.map +1 -1
- package/lib/commonjs/icons/Smile.js +8 -27
- package/lib/commonjs/icons/Smile.js.map +1 -1
- package/lib/commonjs/icons/Sound.js +6 -18
- package/lib/commonjs/icons/Sound.js.map +1 -1
- package/lib/commonjs/icons/TAR.js +18 -53
- package/lib/commonjs/icons/TAR.js.map +1 -1
- package/lib/commonjs/icons/TXT.js +18 -53
- package/lib/commonjs/icons/TXT.js.map +1 -1
- package/lib/commonjs/icons/ThreadReply.js +6 -18
- package/lib/commonjs/icons/ThreadReply.js.map +1 -1
- package/lib/commonjs/icons/ThumbsDownReaction.js +6 -18
- package/lib/commonjs/icons/ThumbsDownReaction.js.map +1 -1
- package/lib/commonjs/icons/ThumbsUpReaction.js +6 -18
- package/lib/commonjs/icons/ThumbsUpReaction.js.map +1 -1
- package/lib/commonjs/icons/Time.js +8 -27
- package/lib/commonjs/icons/Time.js.map +1 -1
- package/lib/commonjs/icons/Unknown.js +6 -18
- package/lib/commonjs/icons/Unknown.js.map +1 -1
- package/lib/commonjs/icons/Unpin.js +6 -18
- package/lib/commonjs/icons/Unpin.js.map +1 -1
- package/lib/commonjs/icons/User.js +6 -18
- package/lib/commonjs/icons/User.js.map +1 -1
- package/lib/commonjs/icons/UserAdd.js +8 -27
- package/lib/commonjs/icons/UserAdd.js.map +1 -1
- package/lib/commonjs/icons/UserAdmin.js +13 -32
- package/lib/commonjs/icons/UserAdmin.js.map +1 -1
- package/lib/commonjs/icons/UserDelete.js +8 -27
- package/lib/commonjs/icons/UserDelete.js.map +1 -1
- package/lib/commonjs/icons/UserMinus.js +8 -27
- package/lib/commonjs/icons/UserMinus.js.map +1 -1
- package/lib/commonjs/icons/Video.js +18 -58
- package/lib/commonjs/icons/Video.js.map +1 -1
- package/lib/commonjs/icons/Warning.js +6 -18
- package/lib/commonjs/icons/Warning.js.map +1 -1
- package/lib/commonjs/icons/WutReaction.js +6 -18
- package/lib/commonjs/icons/WutReaction.js.map +1 -1
- package/lib/commonjs/icons/XLS.js +32 -83
- package/lib/commonjs/icons/XLS.js.map +1 -1
- package/lib/commonjs/icons/XLSX.js +32 -83
- package/lib/commonjs/icons/XLSX.js.map +1 -1
- package/lib/commonjs/icons/ZIP.js +18 -53
- package/lib/commonjs/icons/ZIP.js.map +1 -1
- package/lib/commonjs/icons/index.js.map +1 -1
- package/lib/commonjs/icons/utils/base.js +8 -19
- package/lib/commonjs/icons/utils/base.js.map +1 -1
- package/lib/commonjs/index.js +2 -2
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/init.js.map +1 -1
- package/lib/commonjs/mock-builders/DB/consts.js.map +1 -1
- package/lib/commonjs/mock-builders/DB/mock.js +2 -2
- package/lib/commonjs/mock-builders/DB/mock.js.map +1 -1
- package/lib/commonjs/mock-builders/api/channelMocks.js.map +1 -1
- package/lib/commonjs/mock-builders/api/deleteMessage.js.map +1 -1
- package/lib/commonjs/mock-builders/api/deleteReaction.js.map +1 -1
- package/lib/commonjs/mock-builders/api/error.js +4 -6
- package/lib/commonjs/mock-builders/api/error.js.map +1 -1
- package/lib/commonjs/mock-builders/api/getOrCreateChannel.js.map +1 -1
- package/lib/commonjs/mock-builders/api/queryChannels.js.map +1 -1
- package/lib/commonjs/mock-builders/api/queryMembers.js.map +1 -1
- package/lib/commonjs/mock-builders/api/sendMessage.js.map +1 -1
- package/lib/commonjs/mock-builders/api/sendReaction.js.map +1 -1
- package/lib/commonjs/mock-builders/api/threadReplies.js.map +1 -1
- package/lib/commonjs/mock-builders/api/useMockedApis.js.map +1 -1
- package/lib/commonjs/mock-builders/api/utils.js.map +1 -1
- package/lib/commonjs/mock-builders/event/channelDeleted.js.map +1 -1
- package/lib/commonjs/mock-builders/event/channelHidden.js.map +1 -1
- package/lib/commonjs/mock-builders/event/channelTruncated.js.map +1 -1
- package/lib/commonjs/mock-builders/event/channelUpdated.js.map +1 -1
- package/lib/commonjs/mock-builders/event/connectionChanged.js.map +1 -1
- package/lib/commonjs/mock-builders/event/connectionRecovered.js.map +1 -1
- package/lib/commonjs/mock-builders/event/memberAdded.js.map +1 -1
- package/lib/commonjs/mock-builders/event/memberRemoved.js.map +1 -1
- package/lib/commonjs/mock-builders/event/memberUpdated.js.map +1 -1
- package/lib/commonjs/mock-builders/event/messageDeleted.js.map +1 -1
- package/lib/commonjs/mock-builders/event/messageNew.js.map +1 -1
- package/lib/commonjs/mock-builders/event/messageRead.js.map +1 -1
- package/lib/commonjs/mock-builders/event/messageUpdated.js.map +1 -1
- package/lib/commonjs/mock-builders/event/notificationAddedToChannel.js.map +1 -1
- package/lib/commonjs/mock-builders/event/notificationMessageNew.js.map +1 -1
- package/lib/commonjs/mock-builders/event/notificationMutesUpdated.js +1 -3
- package/lib/commonjs/mock-builders/event/notificationMutesUpdated.js.map +1 -1
- package/lib/commonjs/mock-builders/event/notificationRemovedFromChannel.js.map +1 -1
- package/lib/commonjs/mock-builders/event/reactionDeleted.js.map +1 -1
- package/lib/commonjs/mock-builders/event/reactionNew.js.map +1 -1
- package/lib/commonjs/mock-builders/event/reactionUpdated.js.map +1 -1
- package/lib/commonjs/mock-builders/event/typing.js.map +1 -1
- package/lib/commonjs/mock-builders/event/userPresence.js.map +1 -1
- package/lib/commonjs/mock-builders/event/userUpdated.js.map +1 -1
- package/lib/commonjs/mock-builders/generator/attachment.js +9 -11
- package/lib/commonjs/mock-builders/generator/attachment.js.map +1 -1
- package/lib/commonjs/mock-builders/generator/channel.js +11 -12
- package/lib/commonjs/mock-builders/generator/channel.js.map +1 -1
- package/lib/commonjs/mock-builders/generator/member.js +1 -3
- package/lib/commonjs/mock-builders/generator/member.js.map +1 -1
- package/lib/commonjs/mock-builders/generator/message.js +2 -4
- package/lib/commonjs/mock-builders/generator/message.js.map +1 -1
- package/lib/commonjs/mock-builders/generator/reaction.js +1 -3
- package/lib/commonjs/mock-builders/generator/reaction.js.map +1 -1
- package/lib/commonjs/mock-builders/generator/user.js +2 -4
- package/lib/commonjs/mock-builders/generator/user.js.map +1 -1
- package/lib/commonjs/mock-builders/mock.js +1 -2
- package/lib/commonjs/mock-builders/mock.js.map +1 -1
- package/lib/commonjs/mock-builders/native/react-native-mock.js.map +1 -1
- package/lib/commonjs/native.js.map +1 -1
- package/lib/commonjs/store/QuickSqliteClient.js +11 -11
- package/lib/commonjs/store/QuickSqliteClient.js.map +1 -1
- package/lib/commonjs/store/apis/addPendingTask.js.map +1 -1
- package/lib/commonjs/store/apis/deleteChannel.js.map +1 -1
- package/lib/commonjs/store/apis/deleteMember.js.map +1 -1
- package/lib/commonjs/store/apis/deleteMessage.js.map +1 -1
- package/lib/commonjs/store/apis/deleteMessagesForChannel.js.map +1 -1
- package/lib/commonjs/store/apis/deletePendingTask.js.map +1 -1
- package/lib/commonjs/store/apis/deleteReaction.js.map +1 -1
- package/lib/commonjs/store/apis/deleteReactions.js.map +1 -1
- package/lib/commonjs/store/apis/getAllChannelIds.js.map +1 -1
- package/lib/commonjs/store/apis/getAppSettings.js.map +1 -1
- package/lib/commonjs/store/apis/getChannelMessages.js.map +1 -1
- package/lib/commonjs/store/apis/getChannels.js +1 -3
- package/lib/commonjs/store/apis/getChannels.js.map +1 -1
- package/lib/commonjs/store/apis/getChannelsForFilterSort.js.map +1 -1
- package/lib/commonjs/store/apis/getLastSyncedAt.js.map +1 -1
- package/lib/commonjs/store/apis/getMembers.js.map +1 -1
- package/lib/commonjs/store/apis/getPendingTasks.js.map +1 -1
- package/lib/commonjs/store/apis/getReads.js.map +1 -1
- package/lib/commonjs/store/apis/index.js.map +1 -1
- package/lib/commonjs/store/apis/insertReaction.js.map +1 -1
- package/lib/commonjs/store/apis/queries/selectChannelIdsForFilterSort.js.map +1 -1
- 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.map +1 -1
- package/lib/commonjs/store/apis/updateReaction.js.map +1 -1
- package/lib/commonjs/store/apis/upsertAppSettings.js.map +1 -1
- package/lib/commonjs/store/apis/upsertChannelData.js.map +1 -1
- package/lib/commonjs/store/apis/upsertChannelDataFromChannel.js +21 -0
- package/lib/commonjs/store/apis/upsertChannelDataFromChannel.js.map +1 -0
- package/lib/commonjs/store/apis/upsertChannels.js +29 -21
- package/lib/commonjs/store/apis/upsertChannels.js.map +1 -1
- package/lib/commonjs/store/apis/upsertCidsForQuery.js.map +1 -1
- package/lib/commonjs/store/apis/upsertMembers.js.map +1 -1
- package/lib/commonjs/store/apis/upsertMessages.js.map +1 -1
- package/lib/commonjs/store/apis/upsertReads.js.map +1 -1
- package/lib/commonjs/store/apis/upsertUserSyncStatus.js.map +1 -1
- package/lib/commonjs/store/apis/utils/convertFilterSortToQuery.js +1 -1
- package/lib/commonjs/store/apis/utils/convertFilterSortToQuery.js.map +1 -1
- package/lib/commonjs/store/constants.js.map +1 -1
- package/lib/commonjs/store/mappers/mapChannelDataToStorable.js.map +1 -1
- package/lib/commonjs/store/mappers/mapChannelToStorable.js +63 -0
- package/lib/commonjs/store/mappers/mapChannelToStorable.js.map +1 -0
- package/lib/commonjs/store/mappers/mapDateTimeToStorable.js.map +1 -1
- package/lib/commonjs/store/mappers/mapMemberToStorable.js.map +1 -1
- package/lib/commonjs/store/mappers/mapMessageToStorable.js.map +1 -1
- package/lib/commonjs/store/mappers/mapReactionToStorable.js.map +1 -1
- package/lib/commonjs/store/mappers/mapReadToStorable.js.map +1 -1
- package/lib/commonjs/store/mappers/mapStorableToChannel.js +1 -3
- package/lib/commonjs/store/mappers/mapStorableToChannel.js.map +1 -1
- package/lib/commonjs/store/mappers/mapStorableToMember.js.map +1 -1
- package/lib/commonjs/store/mappers/mapStorableToMessage.js +1 -2
- package/lib/commonjs/store/mappers/mapStorableToMessage.js.map +1 -1
- package/lib/commonjs/store/mappers/mapStorableToReaction.js +1 -3
- package/lib/commonjs/store/mappers/mapStorableToReaction.js.map +1 -1
- package/lib/commonjs/store/mappers/mapStorableToRead.js.map +1 -1
- package/lib/commonjs/store/mappers/mapStorableToTask.js.map +1 -1
- package/lib/commonjs/store/mappers/mapStorableToUser.js +1 -3
- package/lib/commonjs/store/mappers/mapStorableToUser.js.map +1 -1
- package/lib/commonjs/store/mappers/mapTaskToStorable.js +1 -3
- package/lib/commonjs/store/mappers/mapTaskToStorable.js.map +1 -1
- package/lib/commonjs/store/mappers/mapUserToStorable.js.map +1 -1
- package/lib/commonjs/store/schema.js.map +1 -1
- package/lib/commonjs/store/sqlite-utils/appendOrderByClause.js +2 -2
- package/lib/commonjs/store/sqlite-utils/appendOrderByClause.js.map +1 -1
- package/lib/commonjs/store/sqlite-utils/appendWhereCluase.js +3 -3
- package/lib/commonjs/store/sqlite-utils/appendWhereCluase.js.map +1 -1
- package/lib/commonjs/store/sqlite-utils/createCreateTableQuery.js +5 -5
- package/lib/commonjs/store/sqlite-utils/createCreateTableQuery.js.map +1 -1
- package/lib/commonjs/store/sqlite-utils/createDeleteQuery.js +1 -1
- package/lib/commonjs/store/sqlite-utils/createDeleteQuery.js.map +1 -1
- package/lib/commonjs/store/sqlite-utils/createSelectQuery.js +2 -2
- package/lib/commonjs/store/sqlite-utils/createSelectQuery.js.map +1 -1
- package/lib/commonjs/store/sqlite-utils/createUpdateQuery.js +3 -3
- package/lib/commonjs/store/sqlite-utils/createUpdateQuery.js.map +1 -1
- package/lib/commonjs/store/sqlite-utils/createUpsertQuery.js +3 -3
- package/lib/commonjs/store/sqlite-utils/createUpsertQuery.js.map +1 -1
- package/lib/commonjs/store/sqlite-utils/printRow.js.map +1 -1
- package/lib/commonjs/store/types.js.map +1 -1
- package/lib/commonjs/test-utils/BetterSqlite.js +2 -2
- package/lib/commonjs/test-utils/BetterSqlite.js.map +1 -1
- package/lib/commonjs/types/types.js.map +1 -1
- package/lib/commonjs/utils/DBSyncManager.js +124 -98
- package/lib/commonjs/utils/DBSyncManager.js.map +1 -1
- package/lib/commonjs/utils/StreamChatRN.js +1 -2
- package/lib/commonjs/utils/StreamChatRN.js.map +1 -1
- package/lib/commonjs/utils/Streami18n.js +24 -22
- package/lib/commonjs/utils/Streami18n.js.map +1 -1
- package/lib/commonjs/utils/addReactionToLocalState.js.map +1 -1
- package/lib/commonjs/utils/compressImage.js.map +1 -1
- package/lib/commonjs/utils/date.js.map +1 -1
- package/lib/commonjs/utils/getResizedImageUrl.js +3 -3
- package/lib/commonjs/utils/getResizedImageUrl.js.map +1 -1
- package/lib/commonjs/utils/getUrlOfImageAttachment.js.map +1 -1
- package/lib/commonjs/utils/patchMessageTextCommand.js +2 -2
- package/lib/commonjs/utils/patchMessageTextCommand.js.map +1 -1
- package/lib/commonjs/utils/removeReactionFromLocalState.js.map +1 -1
- package/lib/commonjs/utils/removeReservedFields.js +1 -3
- package/lib/commonjs/utils/removeReservedFields.js.map +1 -1
- package/lib/commonjs/utils/utils.js +29 -22
- package/lib/commonjs/utils/utils.js.map +1 -1
- package/lib/commonjs/version.json +1 -1
- package/lib/module/components/Attachment/Attachment.js +23 -101
- package/lib/module/components/Attachment/Attachment.js.map +1 -1
- package/lib/module/components/Attachment/AttachmentActions.js +26 -49
- package/lib/module/components/Attachment/AttachmentActions.js.map +1 -1
- package/lib/module/components/Attachment/AudioAttachment.js +73 -139
- package/lib/module/components/Attachment/AudioAttachment.js.map +1 -1
- package/lib/module/components/Attachment/Card.js +67 -162
- package/lib/module/components/Attachment/Card.js.map +1 -1
- package/lib/module/components/Attachment/FileAttachment.js +33 -78
- package/lib/module/components/Attachment/FileAttachment.js.map +1 -1
- package/lib/module/components/Attachment/FileAttachmentGroup.js +47 -81
- package/lib/module/components/Attachment/FileAttachmentGroup.js.map +1 -1
- package/lib/module/components/Attachment/FileIcon.js +3 -10
- package/lib/module/components/Attachment/FileIcon.js.map +1 -1
- package/lib/module/components/Attachment/Gallery.js +131 -218
- package/lib/module/components/Attachment/Gallery.js.map +1 -1
- package/lib/module/components/Attachment/GalleryImage.js +5 -24
- package/lib/module/components/Attachment/GalleryImage.js.map +1 -1
- package/lib/module/components/Attachment/Giphy.js +151 -295
- package/lib/module/components/Attachment/Giphy.js.map +1 -1
- package/lib/module/components/Attachment/ImageLoadingFailedIndicator.js +19 -40
- package/lib/module/components/Attachment/ImageLoadingFailedIndicator.js.map +1 -1
- package/lib/module/components/Attachment/ImageLoadingIndicator.js +3 -15
- package/lib/module/components/Attachment/ImageLoadingIndicator.js.map +1 -1
- package/lib/module/components/Attachment/ImageReloadIndicator.js +8 -18
- package/lib/module/components/Attachment/ImageReloadIndicator.js.map +1 -1
- package/lib/module/components/Attachment/VideoThumbnail.js +13 -28
- package/lib/module/components/Attachment/VideoThumbnail.js.map +1 -1
- package/lib/module/components/Attachment/utils/buildGallery/buildGallery.js.map +1 -1
- package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.js +2 -4
- package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.js.map +1 -1
- package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.js +1 -2
- package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.js.map +1 -1
- package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.js.map +1 -1
- package/lib/module/components/Attachment/utils/buildGallery/buildThumbnail.js.map +1 -1
- package/lib/module/components/Attachment/utils/buildGallery/buildThumbnailGrid.js.map +1 -1
- package/lib/module/components/Attachment/utils/buildGallery/types.js.map +1 -1
- package/lib/module/components/Attachment/utils/getAspectRatio.js.map +1 -1
- package/lib/module/components/Attachment/utils/getGalleryImageBorderRadius.js +1 -1
- package/lib/module/components/Attachment/utils/getGalleryImageBorderRadius.js.map +1 -1
- package/lib/module/components/Attachment/utils/getGiphyMimeType.js.map +1 -1
- package/lib/module/components/Attachment/utils/openUrlSafely.js +1 -1
- package/lib/module/components/Attachment/utils/openUrlSafely.js.map +1 -1
- package/lib/module/components/AttachmentPicker/AttachmentPicker.js +37 -57
- package/lib/module/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerBottomSheetHandle.js +10 -20
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerBottomSheetHandle.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerError.js +16 -37
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerError.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerErrorImage.js +3 -8
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerErrorImage.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerIOSSelectMorePhotos.js +9 -18
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerIOSSelectMorePhotos.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerItem.js +54 -126
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerItem.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/AttachmentSelectionBar.js +48 -100
- package/lib/module/components/AttachmentPicker/components/AttachmentSelectionBar.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/CameraSelectorIcon.js +3 -8
- package/lib/module/components/AttachmentPicker/components/CameraSelectorIcon.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/FileSelectorIcon.js +3 -8
- package/lib/module/components/AttachmentPicker/components/FileSelectorIcon.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/ImageOverlaySelectedComponent.js +4 -15
- package/lib/module/components/AttachmentPicker/components/ImageOverlaySelectedComponent.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/ImageSelectorIcon.js +3 -8
- package/lib/module/components/AttachmentPicker/components/ImageSelectorIcon.js.map +1 -1
- package/lib/module/components/AutoCompleteInput/AutoCompleteInput.js +226 -145
- package/lib/module/components/AutoCompleteInput/AutoCompleteInput.js.map +1 -1
- package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.js +45 -134
- package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.js.map +1 -1
- package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionHeader.js +24 -63
- package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionHeader.js.map +1 -1
- package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionItem.js +55 -125
- package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionItem.js.map +1 -1
- package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionList.js +31 -71
- package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionList.js.map +1 -1
- package/lib/module/components/Avatar/Avatar.js +45 -84
- package/lib/module/components/Avatar/Avatar.js.map +1 -1
- package/lib/module/components/Avatar/GroupAvatar.js +42 -65
- package/lib/module/components/Avatar/GroupAvatar.js.map +1 -1
- package/lib/module/components/Channel/Channel.js +90 -170
- package/lib/module/components/Channel/Channel.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateChannelContext.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateOwnCapabilitiesContext.js +1 -2
- package/lib/module/components/Channel/hooks/useCreateOwnCapabilitiesContext.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreatePaginatedMessageListContext.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateThreadContext.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateTypingContext.js.map +1 -1
- package/lib/module/components/Channel/hooks/useTargetedMessage.js.map +1 -1
- package/lib/module/components/ChannelList/ChannelList.js +12 -23
- package/lib/module/components/ChannelList/ChannelList.js.map +1 -1
- package/lib/module/components/ChannelList/ChannelListFooterLoadingIndicator.js +7 -17
- package/lib/module/components/ChannelList/ChannelListFooterLoadingIndicator.js.map +1 -1
- package/lib/module/components/ChannelList/ChannelListHeaderErrorIndicator.js +11 -20
- package/lib/module/components/ChannelList/ChannelListHeaderErrorIndicator.js.map +1 -1
- package/lib/module/components/ChannelList/ChannelListHeaderNetworkDownIndicator.js +10 -19
- package/lib/module/components/ChannelList/ChannelListHeaderNetworkDownIndicator.js.map +1 -1
- package/lib/module/components/ChannelList/ChannelListLoadingIndicator.js +6 -18
- package/lib/module/components/ChannelList/ChannelListLoadingIndicator.js.map +1 -1
- package/lib/module/components/ChannelList/ChannelListMessenger.js +51 -136
- package/lib/module/components/ChannelList/ChannelListMessenger.js.map +1 -1
- package/lib/module/components/ChannelList/Skeleton.js +50 -120
- package/lib/module/components/ChannelList/Skeleton.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/listeners/useAddedToChannelNotification.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/listeners/useChannelDeleted.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/listeners/useChannelHidden.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/listeners/useChannelTruncated.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/listeners/useChannelUpdated.js +1 -2
- package/lib/module/components/ChannelList/hooks/listeners/useChannelUpdated.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/listeners/useChannelVisible.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/listeners/useNewMessage.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/listeners/useNewMessageNotification.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/listeners/useRemovedFromChannelNotification.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/listeners/useUserPresence.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/useCreateChannelsContext.js +2 -2
- package/lib/module/components/ChannelList/hooks/useCreateChannelsContext.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/usePaginatedChannels.js +2 -3
- package/lib/module/components/ChannelList/hooks/usePaginatedChannels.js.map +1 -1
- package/lib/module/components/ChannelList/utils.js +3 -3
- package/lib/module/components/ChannelList/utils.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelAvatar.js +7 -25
- package/lib/module/components/ChannelPreview/ChannelAvatar.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreview.js +8 -21
- package/lib/module/components/ChannelPreview/ChannelPreview.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewMessage.js +11 -21
- package/lib/module/components/ChannelPreview/ChannelPreviewMessage.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewMessenger.js +38 -107
- package/lib/module/components/ChannelPreview/ChannelPreviewMessenger.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewMutedStatus.js +3 -8
- package/lib/module/components/ChannelPreview/ChannelPreviewMutedStatus.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewStatus.js +13 -37
- package/lib/module/components/ChannelPreview/ChannelPreviewStatus.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewTitle.js +4 -8
- package/lib/module/components/ChannelPreview/ChannelPreviewTitle.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewUnreadCount.js +8 -17
- package/lib/module/components/ChannelPreview/ChannelPreviewUnreadCount.js.map +1 -1
- package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.js.map +1 -1
- package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayName.js +5 -5
- package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayName.js.map +1 -1
- package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.js.map +1 -1
- package/lib/module/components/ChannelPreview/hooks/useLatestMessagePreview.js +5 -5
- package/lib/module/components/ChannelPreview/hooks/useLatestMessagePreview.js.map +1 -1
- package/lib/module/components/Chat/Chat.js +19 -46
- package/lib/module/components/Chat/Chat.js.map +1 -1
- package/lib/module/components/Chat/hooks/handleEventToSyncDB.js +100 -37
- package/lib/module/components/Chat/hooks/handleEventToSyncDB.js.map +1 -1
- package/lib/module/components/Chat/hooks/useAppSettings.js +3 -3
- package/lib/module/components/Chat/hooks/useAppSettings.js.map +1 -1
- package/lib/module/components/Chat/hooks/useCreateChatContext.js +1 -1
- package/lib/module/components/Chat/hooks/useCreateChatContext.js.map +1 -1
- package/lib/module/components/Chat/hooks/useIsOnline.js.map +1 -1
- package/lib/module/components/Chat/hooks/useMutedUsers.js.map +1 -1
- package/lib/module/components/Chat/hooks/useSyncDatabase.js +3 -1
- package/lib/module/components/Chat/hooks/useSyncDatabase.js.map +1 -1
- package/lib/module/components/ImageBackground.js +12 -23
- package/lib/module/components/ImageBackground.js.map +1 -1
- package/lib/module/components/ImageGallery/ImageGallery.js +162 -258
- package/lib/module/components/ImageGallery/ImageGallery.js.map +1 -1
- package/lib/module/components/ImageGallery/components/AnimatedGalleryImage.js +7 -18
- package/lib/module/components/ImageGallery/components/AnimatedGalleryImage.js.map +1 -1
- package/lib/module/components/ImageGallery/components/AnimatedGalleryVideo.js +39 -66
- package/lib/module/components/ImageGallery/components/AnimatedGalleryVideo.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js +74 -151
- package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js +45 -97
- package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryOverlay.js +10 -20
- package/lib/module/components/ImageGallery/components/ImageGalleryOverlay.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryVideoControl.js +42 -84
- package/lib/module/components/ImageGallery/components/ImageGalleryVideoControl.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGrid.js +26 -60
- package/lib/module/components/ImageGallery/components/ImageGrid.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGridHandle.js +22 -48
- package/lib/module/components/ImageGallery/components/ImageGridHandle.js.map +1 -1
- package/lib/module/components/ImageGallery/hooks/useImageGalleryGestures.js.map +1 -1
- package/lib/module/components/Indicators/EmptyStateIndicator.js +24 -49
- package/lib/module/components/Indicators/EmptyStateIndicator.js.map +1 -1
- package/lib/module/components/Indicators/LoadingDot.js +5 -10
- package/lib/module/components/Indicators/LoadingDot.js.map +1 -1
- package/lib/module/components/Indicators/LoadingDots.js +17 -28
- package/lib/module/components/Indicators/LoadingDots.js.map +1 -1
- package/lib/module/components/Indicators/LoadingErrorIndicator.js +22 -53
- package/lib/module/components/Indicators/LoadingErrorIndicator.js.map +1 -1
- package/lib/module/components/Indicators/LoadingIndicator.js +21 -60
- package/lib/module/components/Indicators/LoadingIndicator.js.map +1 -1
- package/lib/module/components/KeyboardCompatibleView/KeyboardCompatibleView.js +46 -91
- package/lib/module/components/KeyboardCompatibleView/KeyboardCompatibleView.js.map +1 -1
- package/lib/module/components/KeyboardCompatibleView/KeyboardCompatibleViewFC.js +52 -93
- package/lib/module/components/KeyboardCompatibleView/KeyboardCompatibleViewFC.js.map +1 -1
- package/lib/module/components/Message/Message.js +34 -74
- package/lib/module/components/Message/Message.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageAvatar.js +14 -38
- package/lib/module/components/Message/MessageSimple/MessageAvatar.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageBounce.js +17 -22
- package/lib/module/components/Message/MessageSimple/MessageBounce.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageContent.js +72 -173
- package/lib/module/components/Message/MessageSimple/MessageContent.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageDeleted.js +29 -58
- package/lib/module/components/Message/MessageSimple/MessageDeleted.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageError.js +9 -26
- package/lib/module/components/Message/MessageSimple/MessageError.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageFooter.js +47 -106
- package/lib/module/components/Message/MessageSimple/MessageFooter.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessagePinnedHeader.js +13 -36
- package/lib/module/components/Message/MessageSimple/MessagePinnedHeader.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageReplies.js +66 -122
- package/lib/module/components/Message/MessageSimple/MessageReplies.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageRepliesAvatars.js +22 -45
- package/lib/module/components/Message/MessageSimple/MessageRepliesAvatars.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageSimple.js +20 -56
- package/lib/module/components/Message/MessageSimple/MessageSimple.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageStatus.js +24 -79
- package/lib/module/components/Message/MessageSimple/MessageStatus.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageTextContainer.js +21 -39
- package/lib/module/components/Message/MessageSimple/MessageTextContainer.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/ReactionList.js +123 -226
- package/lib/module/components/Message/MessageSimple/ReactionList.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/utils/generateMarkdownText.js +20 -12
- package/lib/module/components/Message/MessageSimple/utils/generateMarkdownText.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/utils/generateMarkdownText.test.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/utils/parseLinks.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/utils/parseLinks.test.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/utils/renderText.js +75 -164
- package/lib/module/components/Message/MessageSimple/utils/renderText.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/utils/renderText.test.js +32 -65
- package/lib/module/components/Message/MessageSimple/utils/renderText.test.js.map +1 -1
- package/lib/module/components/Message/hooks/useCreateMessageContext.js +4 -4
- package/lib/module/components/Message/hooks/useCreateMessageContext.js.map +1 -1
- package/lib/module/components/Message/hooks/useMessageActionHandlers.js.map +1 -1
- package/lib/module/components/Message/hooks/useMessageActions.js +25 -90
- package/lib/module/components/Message/hooks/useMessageActions.js.map +1 -1
- package/lib/module/components/Message/utils/messageActions.js.map +1 -1
- package/lib/module/components/MessageInput/AttachButton.js +8 -26
- package/lib/module/components/MessageInput/AttachButton.js.map +1 -1
- package/lib/module/components/MessageInput/CommandsButton.js +10 -28
- package/lib/module/components/MessageInput/CommandsButton.js.map +1 -1
- package/lib/module/components/MessageInput/CooldownTimer.js +11 -20
- package/lib/module/components/MessageInput/CooldownTimer.js.map +1 -1
- package/lib/module/components/MessageInput/FileUploadPreview.js +104 -205
- package/lib/module/components/MessageInput/FileUploadPreview.js.map +1 -1
- package/lib/module/components/MessageInput/ImageUploadPreview.js +50 -123
- package/lib/module/components/MessageInput/ImageUploadPreview.js.map +1 -1
- package/lib/module/components/MessageInput/InputButtons.js +17 -50
- package/lib/module/components/MessageInput/InputButtons.js.map +1 -1
- package/lib/module/components/MessageInput/MessageInput.js +94 -238
- package/lib/module/components/MessageInput/MessageInput.js.map +1 -1
- package/lib/module/components/MessageInput/MoreOptionsButton.js +8 -26
- package/lib/module/components/MessageInput/MoreOptionsButton.js.map +1 -1
- package/lib/module/components/MessageInput/SendButton.js +12 -44
- package/lib/module/components/MessageInput/SendButton.js.map +1 -1
- package/lib/module/components/MessageInput/SendMessageDisallowedIndicator.js +9 -18
- package/lib/module/components/MessageInput/SendMessageDisallowedIndicator.js.map +1 -1
- package/lib/module/components/MessageInput/ShowThreadMessageInChannelButton.js +33 -72
- package/lib/module/components/MessageInput/ShowThreadMessageInChannelButton.js.map +1 -1
- package/lib/module/components/MessageInput/UploadProgressIndicator.js +28 -77
- package/lib/module/components/MessageInput/UploadProgressIndicator.js.map +1 -1
- package/lib/module/components/MessageInput/components/InputEditingStateHeader.js +23 -57
- package/lib/module/components/MessageInput/components/InputEditingStateHeader.js.map +1 -1
- package/lib/module/components/MessageInput/components/InputGiphySearch.js +35 -80
- package/lib/module/components/MessageInput/components/InputGiphySearch.js.map +1 -1
- package/lib/module/components/MessageInput/components/InputReplyStateHeader.js +23 -57
- package/lib/module/components/MessageInput/components/InputReplyStateHeader.js.map +1 -1
- package/lib/module/components/MessageInput/hooks/useCooldown.js.map +1 -1
- package/lib/module/components/MessageInput/hooks/useCountdown.js.map +1 -1
- package/lib/module/components/MessageList/DateHeader.js +9 -18
- package/lib/module/components/MessageList/DateHeader.js.map +1 -1
- package/lib/module/components/MessageList/InlineDateSeparator.js +9 -18
- package/lib/module/components/MessageList/InlineDateSeparator.js.map +1 -1
- package/lib/module/components/MessageList/InlineLoadingMoreIndicator.js +9 -25
- package/lib/module/components/MessageList/InlineLoadingMoreIndicator.js.map +1 -1
- package/lib/module/components/MessageList/InlineLoadingMoreRecentIndicator.js +9 -25
- package/lib/module/components/MessageList/InlineLoadingMoreRecentIndicator.js.map +1 -1
- package/lib/module/components/MessageList/InlineLoadingMoreThreadIndicator.js +9 -25
- package/lib/module/components/MessageList/InlineLoadingMoreThreadIndicator.js.map +1 -1
- package/lib/module/components/MessageList/InlineUnreadIndicator.js +42 -84
- package/lib/module/components/MessageList/InlineUnreadIndicator.js.map +1 -1
- package/lib/module/components/MessageList/MessageList.js +100 -270
- package/lib/module/components/MessageList/MessageList.js.map +1 -1
- package/lib/module/components/MessageList/MessageSystem.js +25 -56
- package/lib/module/components/MessageList/MessageSystem.js.map +1 -1
- package/lib/module/components/MessageList/NetworkDownIndicator.js +8 -17
- package/lib/module/components/MessageList/NetworkDownIndicator.js.map +1 -1
- package/lib/module/components/MessageList/ScrollToBottomButton.js +26 -56
- package/lib/module/components/MessageList/ScrollToBottomButton.js.map +1 -1
- package/lib/module/components/MessageList/TypingIndicator.js +12 -27
- package/lib/module/components/MessageList/TypingIndicator.js.map +1 -1
- package/lib/module/components/MessageList/TypingIndicatorContainer.js +6 -18
- package/lib/module/components/MessageList/TypingIndicatorContainer.js.map +1 -1
- package/lib/module/components/MessageList/hooks/useMessageList.js +1 -2
- package/lib/module/components/MessageList/hooks/useMessageList.js.map +1 -1
- package/lib/module/components/MessageList/hooks/useShouldScrollToRecentOnNewOwnMessage.js.map +1 -1
- package/lib/module/components/MessageList/hooks/useTypingString.js.map +1 -1
- package/lib/module/components/MessageList/utils/filterTypingUsers.js.map +1 -1
- package/lib/module/components/MessageList/utils/getDateSeparators.js.map +1 -1
- package/lib/module/components/MessageList/utils/getGroupStyles.js.map +1 -1
- package/lib/module/components/MessageList/utils/getLastReceivedMessage.js +13 -5
- package/lib/module/components/MessageList/utils/getLastReceivedMessage.js.map +1 -1
- package/lib/module/components/MessageList/utils/getReadStates.js +52 -36
- package/lib/module/components/MessageList/utils/getReadStates.js.map +1 -1
- package/lib/module/components/MessageOverlay/MessageActionList.js +19 -40
- package/lib/module/components/MessageOverlay/MessageActionList.js.map +1 -1
- package/lib/module/components/MessageOverlay/MessageActionListItem.js +21 -48
- package/lib/module/components/MessageOverlay/MessageActionListItem.js.map +1 -1
- package/lib/module/components/MessageOverlay/MessageOverlay.js +163 -304
- package/lib/module/components/MessageOverlay/MessageOverlay.js.map +1 -1
- package/lib/module/components/MessageOverlay/OverlayBackdrop.js +3 -8
- package/lib/module/components/MessageOverlay/OverlayBackdrop.js.map +1 -1
- package/lib/module/components/MessageOverlay/OverlayReactionList.js +73 -145
- package/lib/module/components/MessageOverlay/OverlayReactionList.js.map +1 -1
- package/lib/module/components/MessageOverlay/OverlayReactions.js +119 -224
- package/lib/module/components/MessageOverlay/OverlayReactions.js.map +1 -1
- package/lib/module/components/MessageOverlay/OverlayReactionsAvatar.js +3 -8
- package/lib/module/components/MessageOverlay/OverlayReactionsAvatar.js.map +1 -1
- package/lib/module/components/MessageOverlay/hooks/useMessageActionAnimation.js.map +1 -1
- package/lib/module/components/ProgressControl/ProgressControl.js +19 -51
- package/lib/module/components/ProgressControl/ProgressControl.js.map +1 -1
- package/lib/module/components/RTLComponents/WritingDirectionAwareText.js +4 -9
- package/lib/module/components/RTLComponents/WritingDirectionAwareText.js.map +1 -1
- package/lib/module/components/Reply/Reply.js +61 -113
- package/lib/module/components/Reply/Reply.js.map +1 -1
- package/lib/module/components/Spinner/Spinner.js +11 -21
- package/lib/module/components/Spinner/Spinner.js.map +1 -1
- package/lib/module/components/Thread/Thread.js +17 -44
- package/lib/module/components/Thread/Thread.js.map +1 -1
- package/lib/module/components/Thread/components/ThreadFooterComponent.js +57 -121
- package/lib/module/components/Thread/components/ThreadFooterComponent.js.map +1 -1
- package/lib/module/components/docs/data.js +1 -1
- package/lib/module/components/docs/data.js.map +1 -1
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/contexts/activeChannelsRefContext/ActiveChannelsRefContext.js +9 -21
- package/lib/module/contexts/activeChannelsRefContext/ActiveChannelsRefContext.js.map +1 -1
- package/lib/module/contexts/attachmentPickerContext/AttachmentPickerContext.js +9 -21
- package/lib/module/contexts/attachmentPickerContext/AttachmentPickerContext.js.map +1 -1
- package/lib/module/contexts/channelContext/ChannelContext.js +8 -21
- package/lib/module/contexts/channelContext/ChannelContext.js.map +1 -1
- package/lib/module/contexts/channelsContext/ChannelsContext.js +8 -21
- package/lib/module/contexts/channelsContext/ChannelsContext.js.map +1 -1
- package/lib/module/contexts/channelsStateContext/ChannelsStateContext.js +15 -32
- package/lib/module/contexts/channelsStateContext/ChannelsStateContext.js.map +1 -1
- package/lib/module/contexts/channelsStateContext/useChannelState.js.map +1 -1
- package/lib/module/contexts/chatContext/ChatContext.js +8 -21
- package/lib/module/contexts/chatContext/ChatContext.js.map +1 -1
- package/lib/module/contexts/debugContext/DebugContext.js +6 -10
- package/lib/module/contexts/debugContext/DebugContext.js.map +1 -1
- package/lib/module/contexts/imageGalleryContext/ImageGalleryContext.js +8 -20
- package/lib/module/contexts/imageGalleryContext/ImageGalleryContext.js.map +1 -1
- package/lib/module/contexts/index.js.map +1 -1
- package/lib/module/contexts/keyboardContext/KeyboardContext.js +8 -21
- package/lib/module/contexts/keyboardContext/KeyboardContext.js.map +1 -1
- package/lib/module/contexts/messageContext/MessageContext.js +8 -21
- package/lib/module/contexts/messageContext/MessageContext.js.map +1 -1
- package/lib/module/contexts/messageInputContext/MessageInputContext.js +126 -96
- package/lib/module/contexts/messageInputContext/MessageInputContext.js.map +1 -1
- package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +5 -3
- package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
- package/lib/module/contexts/messageInputContext/hooks/useMessageDetailsForState.js +49 -41
- package/lib/module/contexts/messageInputContext/hooks/useMessageDetailsForState.js.map +1 -1
- package/lib/module/contexts/messageOverlayContext/MessageOverlayContext.js +8 -21
- package/lib/module/contexts/messageOverlayContext/MessageOverlayContext.js.map +1 -1
- package/lib/module/contexts/messageOverlayContext/hooks/useResettableState.js.map +1 -1
- package/lib/module/contexts/messageOverlayContext/hooks/useResettableState.test.js +33 -53
- package/lib/module/contexts/messageOverlayContext/hooks/useResettableState.test.js.map +1 -1
- package/lib/module/contexts/messagesContext/MessagesContext.js +8 -21
- package/lib/module/contexts/messagesContext/MessagesContext.js.map +1 -1
- package/lib/module/contexts/overlayContext/OverlayContext.js +5 -13
- package/lib/module/contexts/overlayContext/OverlayContext.js.map +1 -1
- package/lib/module/contexts/overlayContext/OverlayProvider.js +52 -112
- package/lib/module/contexts/overlayContext/OverlayProvider.js.map +1 -1
- package/lib/module/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.js +6 -10
- package/lib/module/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.js.map +1 -1
- package/lib/module/contexts/paginatedMessageListContext/PaginatedMessageListContext.js +8 -21
- package/lib/module/contexts/paginatedMessageListContext/PaginatedMessageListContext.js.map +1 -1
- package/lib/module/contexts/suggestionsContext/SuggestionsContext.js +9 -21
- package/lib/module/contexts/suggestionsContext/SuggestionsContext.js.map +1 -1
- package/lib/module/contexts/themeContext/ThemeContext.js +6 -10
- package/lib/module/contexts/themeContext/ThemeContext.js.map +1 -1
- package/lib/module/contexts/themeContext/utils/theme.js +3 -3
- package/lib/module/contexts/themeContext/utils/theme.js.map +1 -1
- package/lib/module/contexts/threadContext/ThreadContext.js +8 -21
- package/lib/module/contexts/threadContext/ThreadContext.js.map +1 -1
- package/lib/module/contexts/translationContext/TranslationContext.js +8 -20
- package/lib/module/contexts/translationContext/TranslationContext.js.map +1 -1
- package/lib/module/contexts/typingContext/TypingContext.js +8 -21
- package/lib/module/contexts/typingContext/TypingContext.js.map +1 -1
- package/lib/module/contexts/utils/defaultBaseContextValue.js.map +1 -1
- package/lib/module/contexts/utils/getDisplayName.js.map +1 -1
- package/lib/module/contexts/utils/isTestEnvironment.js.map +1 -1
- package/lib/module/emoji-data/compile.js +4 -5
- package/lib/module/emoji-data/compile.js.map +1 -1
- package/lib/module/emoji-data/index.js.map +1 -1
- package/lib/module/hooks/index.js.map +1 -1
- package/lib/module/hooks/useAppStateListener.js +3 -1
- package/lib/module/hooks/useAppStateListener.js.map +1 -1
- package/lib/module/hooks/useIsMountedRef.js.map +1 -1
- package/lib/module/hooks/useLoadingImage.js +3 -4
- package/lib/module/hooks/useLoadingImage.js.map +1 -1
- package/lib/module/hooks/useStreami18n.js +1 -2
- package/lib/module/hooks/useStreami18n.js.map +1 -1
- package/lib/module/hooks/useTranslatedMessage.js +3 -5
- package/lib/module/hooks/useTranslatedMessage.js.map +1 -1
- package/lib/module/hooks/useViewport.js.map +1 -1
- package/lib/module/i18n/es.json +10 -10
- package/lib/module/i18n/fr.json +10 -10
- package/lib/module/i18n/he.json +10 -10
- package/lib/module/i18n/hi.json +10 -10
- package/lib/module/i18n/it.json +10 -10
- package/lib/module/i18n/ja.json +10 -10
- package/lib/module/i18n/ko.json +10 -10
- package/lib/module/i18n/nl.json +10 -10
- package/lib/module/i18n/pt-BR.json +10 -10
- package/lib/module/i18n/ru.json +10 -10
- package/lib/module/i18n/tr.json +10 -10
- package/lib/module/icons/ArrowRight.js +10 -36
- package/lib/module/icons/ArrowRight.js.map +1 -1
- package/lib/module/icons/AtMentions.js +6 -18
- package/lib/module/icons/AtMentions.js.map +1 -1
- package/lib/module/icons/Attach.js +6 -18
- package/lib/module/icons/Attach.js.map +1 -1
- package/lib/module/icons/Audio.js +28 -73
- package/lib/module/icons/Audio.js.map +1 -1
- package/lib/module/icons/CSV.js +18 -53
- package/lib/module/icons/CSV.js.map +1 -1
- package/lib/module/icons/Camera.js +6 -18
- package/lib/module/icons/Camera.js.map +1 -1
- package/lib/module/icons/Check.js +8 -27
- package/lib/module/icons/Check.js.map +1 -1
- package/lib/module/icons/CheckAll.js +8 -27
- package/lib/module/icons/CheckAll.js.map +1 -1
- package/lib/module/icons/CheckSend.js +6 -18
- package/lib/module/icons/CheckSend.js.map +1 -1
- package/lib/module/icons/CircleClose.js +8 -27
- package/lib/module/icons/CircleClose.js.map +1 -1
- package/lib/module/icons/CirclePlus.js +8 -27
- package/lib/module/icons/CirclePlus.js.map +1 -1
- package/lib/module/icons/CircleRight.js +8 -27
- package/lib/module/icons/CircleRight.js.map +1 -1
- package/lib/module/icons/Close.js +6 -18
- package/lib/module/icons/Close.js.map +1 -1
- package/lib/module/icons/Copy.js +6 -18
- package/lib/module/icons/Copy.js.map +1 -1
- package/lib/module/icons/CurveLineLeftUp.js +10 -36
- package/lib/module/icons/CurveLineLeftUp.js.map +1 -1
- package/lib/module/icons/DOC.js +32 -83
- package/lib/module/icons/DOC.js.map +1 -1
- package/lib/module/icons/DOCX.js +32 -83
- package/lib/module/icons/DOCX.js.map +1 -1
- package/lib/module/icons/Delete.js +8 -27
- package/lib/module/icons/Delete.js.map +1 -1
- package/lib/module/icons/Down.js +6 -18
- package/lib/module/icons/Down.js.map +1 -1
- package/lib/module/icons/DownloadArrow.js +6 -18
- package/lib/module/icons/DownloadArrow.js.map +1 -1
- package/lib/module/icons/DownloadCloud.js +12 -45
- package/lib/module/icons/DownloadCloud.js.map +1 -1
- package/lib/module/icons/Edit.js +6 -18
- package/lib/module/icons/Edit.js.map +1 -1
- package/lib/module/icons/Error.js +6 -18
- package/lib/module/icons/Error.js.map +1 -1
- package/lib/module/icons/Eye.js +6 -18
- package/lib/module/icons/Eye.js.map +1 -1
- package/lib/module/icons/Flag.js +6 -18
- package/lib/module/icons/Flag.js.map +1 -1
- package/lib/module/icons/Folder.js +6 -18
- package/lib/module/icons/Folder.js.map +1 -1
- package/lib/module/icons/GenericFile.js +28 -73
- package/lib/module/icons/GenericFile.js.map +1 -1
- package/lib/module/icons/GiphyIcon.js +22 -69
- package/lib/module/icons/GiphyIcon.js.map +1 -1
- package/lib/module/icons/Grid.js +6 -18
- package/lib/module/icons/Grid.js.map +1 -1
- package/lib/module/icons/Group.js +6 -18
- package/lib/module/icons/Group.js.map +1 -1
- package/lib/module/icons/HTML.js +18 -53
- package/lib/module/icons/HTML.js.map +1 -1
- package/lib/module/icons/Imgur.js +15 -41
- package/lib/module/icons/Imgur.js.map +1 -1
- package/lib/module/icons/LOLReaction.js +6 -18
- package/lib/module/icons/LOLReaction.js.map +1 -1
- package/lib/module/icons/Lightning.js +6 -18
- package/lib/module/icons/Lightning.js.map +1 -1
- package/lib/module/icons/Link.js +8 -27
- package/lib/module/icons/Link.js.map +1 -1
- package/lib/module/icons/Loading.js +23 -56
- package/lib/module/icons/Loading.js.map +1 -1
- package/lib/module/icons/Logo.js +7 -19
- package/lib/module/icons/Logo.js.map +1 -1
- package/lib/module/icons/LoveReaction.js +6 -18
- package/lib/module/icons/LoveReaction.js.map +1 -1
- package/lib/module/icons/MD.js +18 -53
- package/lib/module/icons/MD.js.map +1 -1
- package/lib/module/icons/MailOpen.js +6 -18
- package/lib/module/icons/MailOpen.js.map +1 -1
- package/lib/module/icons/MenuPointHorizontal.js +6 -18
- package/lib/module/icons/MenuPointHorizontal.js.map +1 -1
- package/lib/module/icons/MenuPointVertical.js +6 -18
- package/lib/module/icons/MenuPointVertical.js.map +1 -1
- package/lib/module/icons/MessageFlag.js +6 -18
- package/lib/module/icons/MessageFlag.js.map +1 -1
- package/lib/module/icons/MessageIcon.js +6 -18
- package/lib/module/icons/MessageIcon.js.map +1 -1
- package/lib/module/icons/Mute.js +6 -18
- package/lib/module/icons/Mute.js.map +1 -1
- package/lib/module/icons/Notification.js +10 -36
- package/lib/module/icons/Notification.js.map +1 -1
- package/lib/module/icons/ODT.js +18 -53
- package/lib/module/icons/ODT.js.map +1 -1
- package/lib/module/icons/PDF.js +18 -53
- package/lib/module/icons/PDF.js.map +1 -1
- package/lib/module/icons/PPT.js +32 -83
- package/lib/module/icons/PPT.js.map +1 -1
- package/lib/module/icons/PPTX.js +32 -83
- package/lib/module/icons/PPTX.js.map +1 -1
- package/lib/module/icons/Pause.js +16 -33
- package/lib/module/icons/Pause.js.map +1 -1
- package/lib/module/icons/Picture.js +8 -27
- package/lib/module/icons/Picture.js.map +1 -1
- package/lib/module/icons/Pin.js +7 -19
- package/lib/module/icons/Pin.js.map +1 -1
- package/lib/module/icons/PinHeader.js +6 -18
- package/lib/module/icons/PinHeader.js.map +1 -1
- package/lib/module/icons/Play.js +7 -19
- package/lib/module/icons/Play.js.map +1 -1
- package/lib/module/icons/RAR.js +18 -53
- package/lib/module/icons/RAR.js.map +1 -1
- package/lib/module/icons/RTF.js +18 -53
- package/lib/module/icons/RTF.js.map +1 -1
- package/lib/module/icons/Recorder.js +8 -27
- package/lib/module/icons/Recorder.js.map +1 -1
- package/lib/module/icons/Refresh.js +6 -18
- package/lib/module/icons/Refresh.js.map +1 -1
- package/lib/module/icons/SEVEN_Z.js +18 -53
- package/lib/module/icons/SEVEN_Z.js.map +1 -1
- package/lib/module/icons/Search.js +6 -18
- package/lib/module/icons/Search.js.map +1 -1
- package/lib/module/icons/SendRight.js +6 -18
- package/lib/module/icons/SendRight.js.map +1 -1
- package/lib/module/icons/SendUp.js +6 -18
- package/lib/module/icons/SendUp.js.map +1 -1
- package/lib/module/icons/Share.js +15 -40
- package/lib/module/icons/Share.js.map +1 -1
- package/lib/module/icons/ShareRightArrow.js +6 -18
- package/lib/module/icons/ShareRightArrow.js.map +1 -1
- package/lib/module/icons/Smile.js +8 -27
- package/lib/module/icons/Smile.js.map +1 -1
- package/lib/module/icons/Sound.js +6 -18
- package/lib/module/icons/Sound.js.map +1 -1
- package/lib/module/icons/TAR.js +18 -53
- package/lib/module/icons/TAR.js.map +1 -1
- package/lib/module/icons/TXT.js +18 -53
- package/lib/module/icons/TXT.js.map +1 -1
- package/lib/module/icons/ThreadReply.js +6 -18
- package/lib/module/icons/ThreadReply.js.map +1 -1
- package/lib/module/icons/ThumbsDownReaction.js +6 -18
- package/lib/module/icons/ThumbsDownReaction.js.map +1 -1
- package/lib/module/icons/ThumbsUpReaction.js +6 -18
- package/lib/module/icons/ThumbsUpReaction.js.map +1 -1
- package/lib/module/icons/Time.js +8 -27
- package/lib/module/icons/Time.js.map +1 -1
- package/lib/module/icons/Unknown.js +6 -18
- package/lib/module/icons/Unknown.js.map +1 -1
- package/lib/module/icons/Unpin.js +6 -18
- package/lib/module/icons/Unpin.js.map +1 -1
- package/lib/module/icons/User.js +6 -18
- package/lib/module/icons/User.js.map +1 -1
- package/lib/module/icons/UserAdd.js +8 -27
- package/lib/module/icons/UserAdd.js.map +1 -1
- package/lib/module/icons/UserAdmin.js +13 -32
- package/lib/module/icons/UserAdmin.js.map +1 -1
- package/lib/module/icons/UserDelete.js +8 -27
- package/lib/module/icons/UserDelete.js.map +1 -1
- package/lib/module/icons/UserMinus.js +8 -27
- package/lib/module/icons/UserMinus.js.map +1 -1
- package/lib/module/icons/Video.js +18 -58
- package/lib/module/icons/Video.js.map +1 -1
- package/lib/module/icons/Warning.js +6 -18
- package/lib/module/icons/Warning.js.map +1 -1
- package/lib/module/icons/WutReaction.js +6 -18
- package/lib/module/icons/WutReaction.js.map +1 -1
- package/lib/module/icons/XLS.js +32 -83
- package/lib/module/icons/XLS.js.map +1 -1
- package/lib/module/icons/XLSX.js +32 -83
- package/lib/module/icons/XLSX.js.map +1 -1
- package/lib/module/icons/ZIP.js +18 -53
- package/lib/module/icons/ZIP.js.map +1 -1
- package/lib/module/icons/index.js.map +1 -1
- package/lib/module/icons/utils/base.js +8 -19
- package/lib/module/icons/utils/base.js.map +1 -1
- package/lib/module/index.js +2 -2
- package/lib/module/index.js.map +1 -1
- package/lib/module/init.js.map +1 -1
- package/lib/module/mock-builders/DB/consts.js.map +1 -1
- package/lib/module/mock-builders/DB/mock.js +2 -2
- package/lib/module/mock-builders/DB/mock.js.map +1 -1
- package/lib/module/mock-builders/api/channelMocks.js.map +1 -1
- package/lib/module/mock-builders/api/deleteMessage.js.map +1 -1
- package/lib/module/mock-builders/api/deleteReaction.js.map +1 -1
- package/lib/module/mock-builders/api/error.js +4 -6
- package/lib/module/mock-builders/api/error.js.map +1 -1
- package/lib/module/mock-builders/api/getOrCreateChannel.js.map +1 -1
- package/lib/module/mock-builders/api/queryChannels.js.map +1 -1
- package/lib/module/mock-builders/api/queryMembers.js.map +1 -1
- package/lib/module/mock-builders/api/sendMessage.js.map +1 -1
- package/lib/module/mock-builders/api/sendReaction.js.map +1 -1
- package/lib/module/mock-builders/api/threadReplies.js.map +1 -1
- package/lib/module/mock-builders/api/useMockedApis.js.map +1 -1
- package/lib/module/mock-builders/api/utils.js.map +1 -1
- package/lib/module/mock-builders/event/channelDeleted.js.map +1 -1
- package/lib/module/mock-builders/event/channelHidden.js.map +1 -1
- package/lib/module/mock-builders/event/channelTruncated.js.map +1 -1
- package/lib/module/mock-builders/event/channelUpdated.js.map +1 -1
- package/lib/module/mock-builders/event/connectionChanged.js.map +1 -1
- package/lib/module/mock-builders/event/connectionRecovered.js.map +1 -1
- package/lib/module/mock-builders/event/memberAdded.js.map +1 -1
- package/lib/module/mock-builders/event/memberRemoved.js.map +1 -1
- package/lib/module/mock-builders/event/memberUpdated.js.map +1 -1
- package/lib/module/mock-builders/event/messageDeleted.js.map +1 -1
- package/lib/module/mock-builders/event/messageNew.js.map +1 -1
- package/lib/module/mock-builders/event/messageRead.js.map +1 -1
- package/lib/module/mock-builders/event/messageUpdated.js.map +1 -1
- package/lib/module/mock-builders/event/notificationAddedToChannel.js.map +1 -1
- package/lib/module/mock-builders/event/notificationMessageNew.js.map +1 -1
- package/lib/module/mock-builders/event/notificationMutesUpdated.js +1 -3
- package/lib/module/mock-builders/event/notificationMutesUpdated.js.map +1 -1
- package/lib/module/mock-builders/event/notificationRemovedFromChannel.js.map +1 -1
- package/lib/module/mock-builders/event/reactionDeleted.js.map +1 -1
- package/lib/module/mock-builders/event/reactionNew.js.map +1 -1
- package/lib/module/mock-builders/event/reactionUpdated.js.map +1 -1
- package/lib/module/mock-builders/event/typing.js.map +1 -1
- package/lib/module/mock-builders/event/userPresence.js.map +1 -1
- package/lib/module/mock-builders/event/userUpdated.js.map +1 -1
- package/lib/module/mock-builders/generator/attachment.js +9 -11
- package/lib/module/mock-builders/generator/attachment.js.map +1 -1
- package/lib/module/mock-builders/generator/channel.js +11 -12
- package/lib/module/mock-builders/generator/channel.js.map +1 -1
- package/lib/module/mock-builders/generator/member.js +1 -3
- package/lib/module/mock-builders/generator/member.js.map +1 -1
- package/lib/module/mock-builders/generator/message.js +2 -4
- package/lib/module/mock-builders/generator/message.js.map +1 -1
- package/lib/module/mock-builders/generator/reaction.js +1 -3
- package/lib/module/mock-builders/generator/reaction.js.map +1 -1
- package/lib/module/mock-builders/generator/user.js +2 -4
- package/lib/module/mock-builders/generator/user.js.map +1 -1
- package/lib/module/mock-builders/mock.js +1 -2
- package/lib/module/mock-builders/mock.js.map +1 -1
- package/lib/module/mock-builders/native/react-native-mock.js.map +1 -1
- package/lib/module/native.js.map +1 -1
- package/lib/module/store/QuickSqliteClient.js +11 -11
- package/lib/module/store/QuickSqliteClient.js.map +1 -1
- package/lib/module/store/apis/addPendingTask.js.map +1 -1
- package/lib/module/store/apis/deleteChannel.js.map +1 -1
- package/lib/module/store/apis/deleteMember.js.map +1 -1
- package/lib/module/store/apis/deleteMessage.js.map +1 -1
- package/lib/module/store/apis/deleteMessagesForChannel.js.map +1 -1
- package/lib/module/store/apis/deletePendingTask.js.map +1 -1
- package/lib/module/store/apis/deleteReaction.js.map +1 -1
- package/lib/module/store/apis/deleteReactions.js.map +1 -1
- package/lib/module/store/apis/getAllChannelIds.js.map +1 -1
- package/lib/module/store/apis/getAppSettings.js.map +1 -1
- package/lib/module/store/apis/getChannelMessages.js.map +1 -1
- package/lib/module/store/apis/getChannels.js +1 -3
- package/lib/module/store/apis/getChannels.js.map +1 -1
- package/lib/module/store/apis/getChannelsForFilterSort.js.map +1 -1
- package/lib/module/store/apis/getLastSyncedAt.js.map +1 -1
- package/lib/module/store/apis/getMembers.js.map +1 -1
- package/lib/module/store/apis/getPendingTasks.js.map +1 -1
- package/lib/module/store/apis/getReads.js.map +1 -1
- package/lib/module/store/apis/index.js.map +1 -1
- package/lib/module/store/apis/insertReaction.js.map +1 -1
- package/lib/module/store/apis/queries/selectChannelIdsForFilterSort.js.map +1 -1
- 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.map +1 -1
- package/lib/module/store/apis/updateReaction.js.map +1 -1
- package/lib/module/store/apis/upsertAppSettings.js.map +1 -1
- package/lib/module/store/apis/upsertChannelData.js.map +1 -1
- package/lib/module/store/apis/upsertChannelDataFromChannel.js +21 -0
- package/lib/module/store/apis/upsertChannelDataFromChannel.js.map +1 -0
- package/lib/module/store/apis/upsertChannels.js +29 -21
- package/lib/module/store/apis/upsertChannels.js.map +1 -1
- package/lib/module/store/apis/upsertCidsForQuery.js.map +1 -1
- package/lib/module/store/apis/upsertMembers.js.map +1 -1
- package/lib/module/store/apis/upsertMessages.js.map +1 -1
- package/lib/module/store/apis/upsertReads.js.map +1 -1
- package/lib/module/store/apis/upsertUserSyncStatus.js.map +1 -1
- package/lib/module/store/apis/utils/convertFilterSortToQuery.js +1 -1
- package/lib/module/store/apis/utils/convertFilterSortToQuery.js.map +1 -1
- package/lib/module/store/constants.js.map +1 -1
- package/lib/module/store/mappers/mapChannelDataToStorable.js.map +1 -1
- package/lib/module/store/mappers/mapChannelToStorable.js +63 -0
- package/lib/module/store/mappers/mapChannelToStorable.js.map +1 -0
- package/lib/module/store/mappers/mapDateTimeToStorable.js.map +1 -1
- package/lib/module/store/mappers/mapMemberToStorable.js.map +1 -1
- package/lib/module/store/mappers/mapMessageToStorable.js.map +1 -1
- package/lib/module/store/mappers/mapReactionToStorable.js.map +1 -1
- package/lib/module/store/mappers/mapReadToStorable.js.map +1 -1
- package/lib/module/store/mappers/mapStorableToChannel.js +1 -3
- package/lib/module/store/mappers/mapStorableToChannel.js.map +1 -1
- package/lib/module/store/mappers/mapStorableToMember.js.map +1 -1
- package/lib/module/store/mappers/mapStorableToMessage.js +1 -2
- package/lib/module/store/mappers/mapStorableToMessage.js.map +1 -1
- package/lib/module/store/mappers/mapStorableToReaction.js +1 -3
- package/lib/module/store/mappers/mapStorableToReaction.js.map +1 -1
- package/lib/module/store/mappers/mapStorableToRead.js.map +1 -1
- package/lib/module/store/mappers/mapStorableToTask.js.map +1 -1
- package/lib/module/store/mappers/mapStorableToUser.js +1 -3
- package/lib/module/store/mappers/mapStorableToUser.js.map +1 -1
- package/lib/module/store/mappers/mapTaskToStorable.js +1 -3
- package/lib/module/store/mappers/mapTaskToStorable.js.map +1 -1
- package/lib/module/store/mappers/mapUserToStorable.js.map +1 -1
- package/lib/module/store/schema.js.map +1 -1
- package/lib/module/store/sqlite-utils/appendOrderByClause.js +2 -2
- package/lib/module/store/sqlite-utils/appendOrderByClause.js.map +1 -1
- package/lib/module/store/sqlite-utils/appendWhereCluase.js +3 -3
- package/lib/module/store/sqlite-utils/appendWhereCluase.js.map +1 -1
- package/lib/module/store/sqlite-utils/createCreateTableQuery.js +5 -5
- package/lib/module/store/sqlite-utils/createCreateTableQuery.js.map +1 -1
- package/lib/module/store/sqlite-utils/createDeleteQuery.js +1 -1
- package/lib/module/store/sqlite-utils/createDeleteQuery.js.map +1 -1
- package/lib/module/store/sqlite-utils/createSelectQuery.js +2 -2
- package/lib/module/store/sqlite-utils/createSelectQuery.js.map +1 -1
- package/lib/module/store/sqlite-utils/createUpdateQuery.js +3 -3
- package/lib/module/store/sqlite-utils/createUpdateQuery.js.map +1 -1
- package/lib/module/store/sqlite-utils/createUpsertQuery.js +3 -3
- package/lib/module/store/sqlite-utils/createUpsertQuery.js.map +1 -1
- package/lib/module/store/sqlite-utils/printRow.js.map +1 -1
- package/lib/module/store/types.js.map +1 -1
- package/lib/module/test-utils/BetterSqlite.js +2 -2
- package/lib/module/test-utils/BetterSqlite.js.map +1 -1
- package/lib/module/types/types.js.map +1 -1
- package/lib/module/utils/DBSyncManager.js +124 -98
- package/lib/module/utils/DBSyncManager.js.map +1 -1
- package/lib/module/utils/StreamChatRN.js +1 -2
- package/lib/module/utils/StreamChatRN.js.map +1 -1
- package/lib/module/utils/Streami18n.js +24 -22
- package/lib/module/utils/Streami18n.js.map +1 -1
- package/lib/module/utils/addReactionToLocalState.js.map +1 -1
- package/lib/module/utils/compressImage.js.map +1 -1
- package/lib/module/utils/date.js.map +1 -1
- package/lib/module/utils/getResizedImageUrl.js +3 -3
- package/lib/module/utils/getResizedImageUrl.js.map +1 -1
- package/lib/module/utils/getUrlOfImageAttachment.js.map +1 -1
- package/lib/module/utils/patchMessageTextCommand.js +2 -2
- package/lib/module/utils/patchMessageTextCommand.js.map +1 -1
- package/lib/module/utils/removeReactionFromLocalState.js.map +1 -1
- package/lib/module/utils/removeReservedFields.js +1 -3
- package/lib/module/utils/removeReservedFields.js.map +1 -1
- package/lib/module/utils/utils.js +29 -22
- package/lib/module/utils/utils.js.map +1 -1
- package/lib/module/version.json +1 -1
- package/lib/typescript/components/Attachment/Attachment.d.ts +3 -2
- package/lib/typescript/components/Attachment/Attachment.d.ts.map +1 -0
- package/lib/typescript/components/Attachment/AttachmentActions.d.ts +3 -2
- package/lib/typescript/components/Attachment/AttachmentActions.d.ts.map +1 -0
- package/lib/typescript/components/Attachment/AudioAttachment.d.ts +3 -2
- package/lib/typescript/components/Attachment/AudioAttachment.d.ts.map +1 -0
- package/lib/typescript/components/Attachment/Card.d.ts +3 -2
- package/lib/typescript/components/Attachment/Card.d.ts.map +1 -0
- package/lib/typescript/components/Attachment/FileAttachment.d.ts +3 -2
- package/lib/typescript/components/Attachment/FileAttachment.d.ts.map +1 -0
- package/lib/typescript/components/Attachment/FileAttachmentGroup.d.ts +3 -2
- package/lib/typescript/components/Attachment/FileAttachmentGroup.d.ts.map +1 -0
- package/lib/typescript/components/Attachment/FileIcon.d.ts +5 -1
- package/lib/typescript/components/Attachment/FileIcon.d.ts.map +1 -0
- package/lib/typescript/components/Attachment/Gallery.d.ts +3 -2
- package/lib/typescript/components/Attachment/Gallery.d.ts.map +1 -0
- package/lib/typescript/components/Attachment/GalleryImage.d.ts +4 -3
- package/lib/typescript/components/Attachment/GalleryImage.d.ts.map +1 -0
- package/lib/typescript/components/Attachment/Giphy.d.ts +3 -2
- package/lib/typescript/components/Attachment/Giphy.d.ts.map +1 -0
- package/lib/typescript/components/Attachment/ImageLoadingFailedIndicator.d.ts +3 -2
- package/lib/typescript/components/Attachment/ImageLoadingFailedIndicator.d.ts.map +1 -0
- package/lib/typescript/components/Attachment/ImageLoadingIndicator.d.ts +3 -2
- package/lib/typescript/components/Attachment/ImageLoadingIndicator.d.ts.map +1 -0
- package/lib/typescript/components/Attachment/ImageReloadIndicator.d.ts +2 -1
- package/lib/typescript/components/Attachment/ImageReloadIndicator.d.ts.map +1 -0
- package/lib/typescript/components/Attachment/VideoThumbnail.d.ts +2 -1
- package/lib/typescript/components/Attachment/VideoThumbnail.d.ts.map +1 -0
- package/lib/typescript/components/Attachment/utils/buildGallery/buildGallery.d.ts +1 -0
- package/lib/typescript/components/Attachment/utils/buildGallery/buildGallery.d.ts.map +1 -0
- package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.d.ts +1 -0
- package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.d.ts.map +1 -0
- package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.d.ts +1 -0
- package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.d.ts.map +1 -0
- package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.d.ts +1 -0
- package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.d.ts.map +1 -0
- package/lib/typescript/components/Attachment/utils/buildGallery/buildThumbnail.d.ts +1 -0
- package/lib/typescript/components/Attachment/utils/buildGallery/buildThumbnail.d.ts.map +1 -0
- package/lib/typescript/components/Attachment/utils/buildGallery/buildThumbnailGrid.d.ts +1 -0
- package/lib/typescript/components/Attachment/utils/buildGallery/buildThumbnailGrid.d.ts.map +1 -0
- package/lib/typescript/components/Attachment/utils/buildGallery/types.d.ts +1 -0
- package/lib/typescript/components/Attachment/utils/buildGallery/types.d.ts.map +1 -0
- package/lib/typescript/components/Attachment/utils/getAspectRatio.d.ts +1 -0
- package/lib/typescript/components/Attachment/utils/getAspectRatio.d.ts.map +1 -0
- package/lib/typescript/components/Attachment/utils/getGalleryImageBorderRadius.d.ts +1 -0
- package/lib/typescript/components/Attachment/utils/getGalleryImageBorderRadius.d.ts.map +1 -0
- package/lib/typescript/components/Attachment/utils/getGiphyMimeType.d.ts +1 -0
- package/lib/typescript/components/Attachment/utils/getGiphyMimeType.d.ts.map +1 -0
- package/lib/typescript/components/Attachment/utils/openUrlSafely.d.ts +1 -0
- package/lib/typescript/components/Attachment/utils/openUrlSafely.d.ts.map +1 -0
- package/lib/typescript/components/AttachmentPicker/AttachmentPicker.d.ts +1 -0
- package/lib/typescript/components/AttachmentPicker/AttachmentPicker.d.ts.map +1 -0
- package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerBottomSheetHandle.d.ts +5 -2
- package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerBottomSheetHandle.d.ts.map +1 -0
- package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerError.d.ts +2 -1
- package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerError.d.ts.map +1 -0
- package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerErrorImage.d.ts +2 -1
- package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerErrorImage.d.ts.map +1 -0
- package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerIOSSelectMorePhotos.d.ts +3 -2
- package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerIOSSelectMorePhotos.d.ts.map +1 -0
- package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerItem.d.ts +2 -1
- package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerItem.d.ts.map +1 -0
- package/lib/typescript/components/AttachmentPicker/components/AttachmentSelectionBar.d.ts +2 -1
- package/lib/typescript/components/AttachmentPicker/components/AttachmentSelectionBar.d.ts.map +1 -0
- package/lib/typescript/components/AttachmentPicker/components/CameraSelectorIcon.d.ts +2 -1
- package/lib/typescript/components/AttachmentPicker/components/CameraSelectorIcon.d.ts.map +1 -0
- package/lib/typescript/components/AttachmentPicker/components/FileSelectorIcon.d.ts +2 -1
- package/lib/typescript/components/AttachmentPicker/components/FileSelectorIcon.d.ts.map +1 -0
- package/lib/typescript/components/AttachmentPicker/components/ImageOverlaySelectedComponent.d.ts +5 -1
- package/lib/typescript/components/AttachmentPicker/components/ImageOverlaySelectedComponent.d.ts.map +1 -0
- package/lib/typescript/components/AttachmentPicker/components/ImageSelectorIcon.d.ts +2 -1
- package/lib/typescript/components/AttachmentPicker/components/ImageSelectorIcon.d.ts.map +1 -0
- package/lib/typescript/components/AutoCompleteInput/AutoCompleteInput.d.ts +3 -2
- package/lib/typescript/components/AutoCompleteInput/AutoCompleteInput.d.ts.map +1 -0
- package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.d.ts +3 -2
- package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.d.ts.map +1 -0
- package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionHeader.d.ts +3 -2
- package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionHeader.d.ts.map +1 -0
- package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionItem.d.ts +3 -2
- package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionItem.d.ts.map +1 -0
- package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionList.d.ts +3 -2
- package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionList.d.ts.map +1 -0
- package/lib/typescript/components/Avatar/Avatar.d.ts +5 -1
- package/lib/typescript/components/Avatar/Avatar.d.ts.map +1 -0
- package/lib/typescript/components/Avatar/GroupAvatar.d.ts +5 -1
- package/lib/typescript/components/Avatar/GroupAvatar.d.ts.map +1 -0
- package/lib/typescript/components/Channel/Channel.d.ts +2 -1
- package/lib/typescript/components/Channel/Channel.d.ts.map +1 -0
- package/lib/typescript/components/Channel/hooks/useCreateChannelContext.d.ts +1 -0
- package/lib/typescript/components/Channel/hooks/useCreateChannelContext.d.ts.map +1 -0
- package/lib/typescript/components/Channel/hooks/useCreateInputMessageInputContext.d.ts +6 -5
- package/lib/typescript/components/Channel/hooks/useCreateInputMessageInputContext.d.ts.map +1 -0
- package/lib/typescript/components/Channel/hooks/useCreateMessagesContext.d.ts +1 -0
- package/lib/typescript/components/Channel/hooks/useCreateMessagesContext.d.ts.map +1 -0
- package/lib/typescript/components/Channel/hooks/useCreateOwnCapabilitiesContext.d.ts +1 -0
- package/lib/typescript/components/Channel/hooks/useCreateOwnCapabilitiesContext.d.ts.map +1 -0
- package/lib/typescript/components/Channel/hooks/useCreatePaginatedMessageListContext.d.ts +1 -0
- package/lib/typescript/components/Channel/hooks/useCreatePaginatedMessageListContext.d.ts.map +1 -0
- package/lib/typescript/components/Channel/hooks/useCreateThreadContext.d.ts +1 -0
- package/lib/typescript/components/Channel/hooks/useCreateThreadContext.d.ts.map +1 -0
- package/lib/typescript/components/Channel/hooks/useCreateTypingContext.d.ts +1 -0
- package/lib/typescript/components/Channel/hooks/useCreateTypingContext.d.ts.map +1 -0
- package/lib/typescript/components/Channel/hooks/useTargetedMessage.d.ts +1 -0
- package/lib/typescript/components/Channel/hooks/useTargetedMessage.d.ts.map +1 -0
- package/lib/typescript/components/ChannelList/ChannelList.d.ts +2 -1
- package/lib/typescript/components/ChannelList/ChannelList.d.ts.map +1 -0
- package/lib/typescript/components/ChannelList/ChannelListFooterLoadingIndicator.d.ts +5 -1
- package/lib/typescript/components/ChannelList/ChannelListFooterLoadingIndicator.d.ts.map +1 -0
- package/lib/typescript/components/ChannelList/ChannelListHeaderErrorIndicator.d.ts +5 -1
- package/lib/typescript/components/ChannelList/ChannelListHeaderErrorIndicator.d.ts.map +1 -0
- package/lib/typescript/components/ChannelList/ChannelListHeaderNetworkDownIndicator.d.ts +5 -1
- package/lib/typescript/components/ChannelList/ChannelListHeaderNetworkDownIndicator.d.ts.map +1 -0
- package/lib/typescript/components/ChannelList/ChannelListLoadingIndicator.d.ts +2 -1
- package/lib/typescript/components/ChannelList/ChannelListLoadingIndicator.d.ts.map +1 -0
- package/lib/typescript/components/ChannelList/ChannelListMessenger.d.ts +3 -2
- package/lib/typescript/components/ChannelList/ChannelListMessenger.d.ts.map +1 -0
- package/lib/typescript/components/ChannelList/Skeleton.d.ts +5 -1
- package/lib/typescript/components/ChannelList/Skeleton.d.ts.map +1 -0
- package/lib/typescript/components/ChannelList/hooks/listeners/useAddedToChannelNotification.d.ts +1 -0
- package/lib/typescript/components/ChannelList/hooks/listeners/useAddedToChannelNotification.d.ts.map +1 -0
- package/lib/typescript/components/ChannelList/hooks/listeners/useChannelDeleted.d.ts +1 -0
- package/lib/typescript/components/ChannelList/hooks/listeners/useChannelDeleted.d.ts.map +1 -0
- package/lib/typescript/components/ChannelList/hooks/listeners/useChannelHidden.d.ts +1 -0
- package/lib/typescript/components/ChannelList/hooks/listeners/useChannelHidden.d.ts.map +1 -0
- package/lib/typescript/components/ChannelList/hooks/listeners/useChannelTruncated.d.ts +1 -0
- package/lib/typescript/components/ChannelList/hooks/listeners/useChannelTruncated.d.ts.map +1 -0
- package/lib/typescript/components/ChannelList/hooks/listeners/useChannelUpdated.d.ts +1 -0
- package/lib/typescript/components/ChannelList/hooks/listeners/useChannelUpdated.d.ts.map +1 -0
- package/lib/typescript/components/ChannelList/hooks/listeners/useChannelVisible.d.ts +1 -0
- package/lib/typescript/components/ChannelList/hooks/listeners/useChannelVisible.d.ts.map +1 -0
- package/lib/typescript/components/ChannelList/hooks/listeners/useNewMessage.d.ts +1 -0
- package/lib/typescript/components/ChannelList/hooks/listeners/useNewMessage.d.ts.map +1 -0
- package/lib/typescript/components/ChannelList/hooks/listeners/useNewMessageNotification.d.ts +1 -0
- package/lib/typescript/components/ChannelList/hooks/listeners/useNewMessageNotification.d.ts.map +1 -0
- package/lib/typescript/components/ChannelList/hooks/listeners/useRemovedFromChannelNotification.d.ts +1 -0
- package/lib/typescript/components/ChannelList/hooks/listeners/useRemovedFromChannelNotification.d.ts.map +1 -0
- package/lib/typescript/components/ChannelList/hooks/listeners/useUserPresence.d.ts +1 -0
- package/lib/typescript/components/ChannelList/hooks/listeners/useUserPresence.d.ts.map +1 -0
- package/lib/typescript/components/ChannelList/hooks/useCreateChannelsContext.d.ts +1 -0
- package/lib/typescript/components/ChannelList/hooks/useCreateChannelsContext.d.ts.map +1 -0
- package/lib/typescript/components/ChannelList/hooks/usePaginatedChannels.d.ts +1 -0
- package/lib/typescript/components/ChannelList/hooks/usePaginatedChannels.d.ts.map +1 -0
- package/lib/typescript/components/ChannelList/utils.d.ts +2 -1
- package/lib/typescript/components/ChannelList/utils.d.ts.map +1 -0
- package/lib/typescript/components/ChannelPreview/ChannelAvatar.d.ts +4 -3
- package/lib/typescript/components/ChannelPreview/ChannelAvatar.d.ts.map +1 -0
- package/lib/typescript/components/ChannelPreview/ChannelPreview.d.ts +3 -2
- package/lib/typescript/components/ChannelPreview/ChannelPreview.d.ts.map +1 -0
- package/lib/typescript/components/ChannelPreview/ChannelPreviewMessage.d.ts +3 -2
- package/lib/typescript/components/ChannelPreview/ChannelPreviewMessage.d.ts.map +1 -0
- package/lib/typescript/components/ChannelPreview/ChannelPreviewMessenger.d.ts +3 -2
- package/lib/typescript/components/ChannelPreview/ChannelPreviewMessenger.d.ts.map +1 -0
- package/lib/typescript/components/ChannelPreview/ChannelPreviewMutedStatus.d.ts +3 -2
- package/lib/typescript/components/ChannelPreview/ChannelPreviewMutedStatus.d.ts.map +1 -0
- package/lib/typescript/components/ChannelPreview/ChannelPreviewStatus.d.ts +3 -2
- package/lib/typescript/components/ChannelPreview/ChannelPreviewStatus.d.ts.map +1 -0
- package/lib/typescript/components/ChannelPreview/ChannelPreviewTitle.d.ts +3 -2
- package/lib/typescript/components/ChannelPreview/ChannelPreviewTitle.d.ts.map +1 -0
- package/lib/typescript/components/ChannelPreview/ChannelPreviewUnreadCount.d.ts +3 -2
- package/lib/typescript/components/ChannelPreview/ChannelPreviewUnreadCount.d.ts.map +1 -0
- package/lib/typescript/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.d.ts +1 -0
- package/lib/typescript/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.d.ts.map +1 -0
- package/lib/typescript/components/ChannelPreview/hooks/useChannelPreviewDisplayName.d.ts +1 -0
- package/lib/typescript/components/ChannelPreview/hooks/useChannelPreviewDisplayName.d.ts.map +1 -0
- package/lib/typescript/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.d.ts +1 -0
- package/lib/typescript/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.d.ts.map +1 -0
- package/lib/typescript/components/ChannelPreview/hooks/useLatestMessagePreview.d.ts +1 -0
- package/lib/typescript/components/ChannelPreview/hooks/useLatestMessagePreview.d.ts.map +1 -0
- package/lib/typescript/components/Chat/Chat.d.ts +2 -1
- package/lib/typescript/components/Chat/Chat.d.ts.map +1 -0
- package/lib/typescript/components/Chat/hooks/handleEventToSyncDB.d.ts +5 -2
- package/lib/typescript/components/Chat/hooks/handleEventToSyncDB.d.ts.map +1 -0
- package/lib/typescript/components/Chat/hooks/useAppSettings.d.ts +1 -0
- package/lib/typescript/components/Chat/hooks/useAppSettings.d.ts.map +1 -0
- package/lib/typescript/components/Chat/hooks/useCreateChatContext.d.ts +1 -0
- package/lib/typescript/components/Chat/hooks/useCreateChatContext.d.ts.map +1 -0
- package/lib/typescript/components/Chat/hooks/useIsOnline.d.ts +1 -0
- package/lib/typescript/components/Chat/hooks/useIsOnline.d.ts.map +1 -0
- package/lib/typescript/components/Chat/hooks/useMutedUsers.d.ts +1 -0
- package/lib/typescript/components/Chat/hooks/useMutedUsers.d.ts.map +1 -0
- package/lib/typescript/components/Chat/hooks/useSyncDatabase.d.ts +1 -0
- package/lib/typescript/components/Chat/hooks/useSyncDatabase.d.ts.map +1 -0
- package/lib/typescript/components/ImageBackground.d.ts +1 -0
- package/lib/typescript/components/ImageBackground.d.ts.map +1 -0
- package/lib/typescript/components/ImageGallery/ImageGallery.d.ts +3 -2
- package/lib/typescript/components/ImageGallery/ImageGallery.d.ts.map +1 -0
- package/lib/typescript/components/ImageGallery/components/AnimatedGalleryImage.d.ts +2 -1
- package/lib/typescript/components/ImageGallery/components/AnimatedGalleryImage.d.ts.map +1 -0
- package/lib/typescript/components/ImageGallery/components/AnimatedGalleryVideo.d.ts +2 -1
- package/lib/typescript/components/ImageGallery/components/AnimatedGalleryVideo.d.ts.map +1 -0
- package/lib/typescript/components/ImageGallery/components/ImageGalleryFooter.d.ts +3 -2
- package/lib/typescript/components/ImageGallery/components/ImageGalleryFooter.d.ts.map +1 -0
- package/lib/typescript/components/ImageGallery/components/ImageGalleryHeader.d.ts +2 -1
- package/lib/typescript/components/ImageGallery/components/ImageGalleryHeader.d.ts.map +1 -0
- package/lib/typescript/components/ImageGallery/components/ImageGalleryOverlay.d.ts +5 -1
- package/lib/typescript/components/ImageGallery/components/ImageGalleryOverlay.d.ts.map +1 -0
- package/lib/typescript/components/ImageGallery/components/ImageGalleryVideoControl.d.ts +2 -1
- package/lib/typescript/components/ImageGallery/components/ImageGalleryVideoControl.d.ts.map +1 -0
- package/lib/typescript/components/ImageGallery/components/ImageGrid.d.ts +2 -1
- package/lib/typescript/components/ImageGallery/components/ImageGrid.d.ts.map +1 -0
- package/lib/typescript/components/ImageGallery/components/ImageGridHandle.d.ts +5 -1
- package/lib/typescript/components/ImageGallery/components/ImageGridHandle.d.ts.map +1 -0
- package/lib/typescript/components/ImageGallery/hooks/useImageGalleryGestures.d.ts +5 -4
- package/lib/typescript/components/ImageGallery/hooks/useImageGalleryGestures.d.ts.map +1 -0
- package/lib/typescript/components/Indicators/EmptyStateIndicator.d.ts +2 -1
- package/lib/typescript/components/Indicators/EmptyStateIndicator.d.ts.map +1 -0
- package/lib/typescript/components/Indicators/LoadingDot.d.ts +2 -1
- package/lib/typescript/components/Indicators/LoadingDot.d.ts.map +1 -0
- package/lib/typescript/components/Indicators/LoadingDots.d.ts +2 -1
- package/lib/typescript/components/Indicators/LoadingDots.d.ts.map +1 -0
- package/lib/typescript/components/Indicators/LoadingErrorIndicator.d.ts +5 -1
- package/lib/typescript/components/Indicators/LoadingErrorIndicator.d.ts.map +1 -0
- package/lib/typescript/components/Indicators/LoadingIndicator.d.ts +5 -1
- package/lib/typescript/components/Indicators/LoadingIndicator.d.ts.map +1 -0
- package/lib/typescript/components/KeyboardCompatibleView/KeyboardCompatibleView.d.ts +4 -3
- package/lib/typescript/components/KeyboardCompatibleView/KeyboardCompatibleView.d.ts.map +1 -0
- package/lib/typescript/components/KeyboardCompatibleView/KeyboardCompatibleViewFC.d.ts +2 -1
- package/lib/typescript/components/KeyboardCompatibleView/KeyboardCompatibleViewFC.d.ts.map +1 -0
- package/lib/typescript/components/Message/Message.d.ts +3 -2
- package/lib/typescript/components/Message/Message.d.ts.map +1 -0
- package/lib/typescript/components/Message/MessageSimple/MessageAvatar.d.ts +3 -2
- package/lib/typescript/components/Message/MessageSimple/MessageAvatar.d.ts.map +1 -0
- package/lib/typescript/components/Message/MessageSimple/MessageBounce.d.ts +3 -2
- package/lib/typescript/components/Message/MessageSimple/MessageBounce.d.ts.map +1 -0
- package/lib/typescript/components/Message/MessageSimple/MessageContent.d.ts +2 -1
- package/lib/typescript/components/Message/MessageSimple/MessageContent.d.ts.map +1 -0
- package/lib/typescript/components/Message/MessageSimple/MessageDeleted.d.ts +2 -1
- package/lib/typescript/components/Message/MessageSimple/MessageDeleted.d.ts.map +1 -0
- package/lib/typescript/components/Message/MessageSimple/MessageError.d.ts +2 -1
- package/lib/typescript/components/Message/MessageSimple/MessageError.d.ts.map +1 -0
- package/lib/typescript/components/Message/MessageSimple/MessageFooter.d.ts +2 -1
- package/lib/typescript/components/Message/MessageSimple/MessageFooter.d.ts.map +1 -0
- package/lib/typescript/components/Message/MessageSimple/MessagePinnedHeader.d.ts +3 -2
- package/lib/typescript/components/Message/MessageSimple/MessagePinnedHeader.d.ts.map +1 -0
- package/lib/typescript/components/Message/MessageSimple/MessageReplies.d.ts +3 -2
- package/lib/typescript/components/Message/MessageSimple/MessageReplies.d.ts.map +1 -0
- package/lib/typescript/components/Message/MessageSimple/MessageRepliesAvatars.d.ts +4 -3
- package/lib/typescript/components/Message/MessageSimple/MessageRepliesAvatars.d.ts.map +1 -0
- package/lib/typescript/components/Message/MessageSimple/MessageSimple.d.ts +3 -2
- package/lib/typescript/components/Message/MessageSimple/MessageSimple.d.ts.map +1 -0
- package/lib/typescript/components/Message/MessageSimple/MessageStatus.d.ts +3 -2
- package/lib/typescript/components/Message/MessageSimple/MessageStatus.d.ts.map +1 -0
- package/lib/typescript/components/Message/MessageSimple/MessageTextContainer.d.ts +3 -2
- package/lib/typescript/components/Message/MessageSimple/MessageTextContainer.d.ts.map +1 -0
- package/lib/typescript/components/Message/MessageSimple/ReactionList.d.ts +3 -2
- package/lib/typescript/components/Message/MessageSimple/ReactionList.d.ts.map +1 -0
- package/lib/typescript/components/Message/MessageSimple/utils/generateMarkdownText.d.ts +1 -0
- package/lib/typescript/components/Message/MessageSimple/utils/generateMarkdownText.d.ts.map +1 -0
- package/lib/typescript/components/Message/MessageSimple/utils/generateMarkdownText.test.d.ts +1 -0
- package/lib/typescript/components/Message/MessageSimple/utils/generateMarkdownText.test.d.ts.map +1 -0
- package/lib/typescript/components/Message/MessageSimple/utils/parseLinks.d.ts +1 -0
- package/lib/typescript/components/Message/MessageSimple/utils/parseLinks.d.ts.map +1 -0
- package/lib/typescript/components/Message/MessageSimple/utils/parseLinks.test.d.ts +1 -0
- package/lib/typescript/components/Message/MessageSimple/utils/parseLinks.test.d.ts.map +1 -0
- package/lib/typescript/components/Message/MessageSimple/utils/renderText.d.ts +4 -3
- package/lib/typescript/components/Message/MessageSimple/utils/renderText.d.ts.map +1 -0
- package/lib/typescript/components/Message/MessageSimple/utils/renderText.test.d.ts +1 -0
- package/lib/typescript/components/Message/MessageSimple/utils/renderText.test.d.ts.map +1 -0
- package/lib/typescript/components/Message/hooks/useCreateMessageContext.d.ts +1 -0
- package/lib/typescript/components/Message/hooks/useCreateMessageContext.d.ts.map +1 -0
- package/lib/typescript/components/Message/hooks/useMessageActionHandlers.d.ts +1 -0
- package/lib/typescript/components/Message/hooks/useMessageActionHandlers.d.ts.map +1 -0
- package/lib/typescript/components/Message/hooks/useMessageActions.d.ts +1 -0
- package/lib/typescript/components/Message/hooks/useMessageActions.d.ts.map +1 -0
- package/lib/typescript/components/Message/utils/messageActions.d.ts +1 -0
- package/lib/typescript/components/Message/utils/messageActions.d.ts.map +1 -0
- package/lib/typescript/components/MessageInput/AttachButton.d.ts +3 -2
- package/lib/typescript/components/MessageInput/AttachButton.d.ts.map +1 -0
- package/lib/typescript/components/MessageInput/CommandsButton.d.ts +3 -2
- package/lib/typescript/components/MessageInput/CommandsButton.d.ts.map +1 -0
- package/lib/typescript/components/MessageInput/CooldownTimer.d.ts +3 -2
- package/lib/typescript/components/MessageInput/CooldownTimer.d.ts.map +1 -0
- package/lib/typescript/components/MessageInput/FileUploadPreview.d.ts +3 -2
- package/lib/typescript/components/MessageInput/FileUploadPreview.d.ts.map +1 -0
- package/lib/typescript/components/MessageInput/ImageUploadPreview.d.ts +3 -2
- package/lib/typescript/components/MessageInput/ImageUploadPreview.d.ts.map +1 -0
- package/lib/typescript/components/MessageInput/InputButtons.d.ts +4 -3
- package/lib/typescript/components/MessageInput/InputButtons.d.ts.map +1 -0
- package/lib/typescript/components/MessageInput/MessageInput.d.ts +3 -2
- package/lib/typescript/components/MessageInput/MessageInput.d.ts.map +1 -0
- package/lib/typescript/components/MessageInput/MoreOptionsButton.d.ts +3 -2
- package/lib/typescript/components/MessageInput/MoreOptionsButton.d.ts.map +1 -0
- package/lib/typescript/components/MessageInput/SendButton.d.ts +3 -2
- package/lib/typescript/components/MessageInput/SendButton.d.ts.map +1 -0
- package/lib/typescript/components/MessageInput/SendMessageDisallowedIndicator.d.ts +3 -2
- package/lib/typescript/components/MessageInput/SendMessageDisallowedIndicator.d.ts.map +1 -0
- package/lib/typescript/components/MessageInput/ShowThreadMessageInChannelButton.d.ts +3 -2
- package/lib/typescript/components/MessageInput/ShowThreadMessageInChannelButton.d.ts.map +1 -0
- package/lib/typescript/components/MessageInput/UploadProgressIndicator.d.ts +3 -2
- package/lib/typescript/components/MessageInput/UploadProgressIndicator.d.ts.map +1 -0
- package/lib/typescript/components/MessageInput/components/InputEditingStateHeader.d.ts +4 -3
- package/lib/typescript/components/MessageInput/components/InputEditingStateHeader.d.ts.map +1 -0
- package/lib/typescript/components/MessageInput/components/InputGiphySearch.d.ts +4 -3
- package/lib/typescript/components/MessageInput/components/InputGiphySearch.d.ts.map +1 -0
- package/lib/typescript/components/MessageInput/components/InputReplyStateHeader.d.ts +4 -3
- package/lib/typescript/components/MessageInput/components/InputReplyStateHeader.d.ts.map +1 -0
- package/lib/typescript/components/MessageInput/hooks/useCooldown.d.ts +1 -0
- package/lib/typescript/components/MessageInput/hooks/useCooldown.d.ts.map +1 -0
- package/lib/typescript/components/MessageInput/hooks/useCountdown.d.ts +1 -0
- package/lib/typescript/components/MessageInput/hooks/useCountdown.d.ts.map +1 -0
- package/lib/typescript/components/MessageList/DateHeader.d.ts +2 -1
- package/lib/typescript/components/MessageList/DateHeader.d.ts.map +1 -0
- package/lib/typescript/components/MessageList/InlineDateSeparator.d.ts +2 -1
- package/lib/typescript/components/MessageList/InlineDateSeparator.d.ts.map +1 -0
- package/lib/typescript/components/MessageList/InlineLoadingMoreIndicator.d.ts +3 -2
- package/lib/typescript/components/MessageList/InlineLoadingMoreIndicator.d.ts.map +1 -0
- package/lib/typescript/components/MessageList/InlineLoadingMoreRecentIndicator.d.ts +3 -2
- package/lib/typescript/components/MessageList/InlineLoadingMoreRecentIndicator.d.ts.map +1 -0
- package/lib/typescript/components/MessageList/InlineLoadingMoreThreadIndicator.d.ts +3 -2
- package/lib/typescript/components/MessageList/InlineLoadingMoreThreadIndicator.d.ts.map +1 -0
- package/lib/typescript/components/MessageList/InlineUnreadIndicator.d.ts +2 -1
- package/lib/typescript/components/MessageList/InlineUnreadIndicator.d.ts.map +1 -0
- package/lib/typescript/components/MessageList/MessageList.d.ts +2 -1
- package/lib/typescript/components/MessageList/MessageList.d.ts.map +1 -0
- package/lib/typescript/components/MessageList/MessageSystem.d.ts +3 -2
- package/lib/typescript/components/MessageList/MessageSystem.d.ts.map +1 -0
- package/lib/typescript/components/MessageList/NetworkDownIndicator.d.ts +3 -2
- package/lib/typescript/components/MessageList/NetworkDownIndicator.d.ts.map +1 -0
- package/lib/typescript/components/MessageList/ScrollToBottomButton.d.ts +5 -1
- package/lib/typescript/components/MessageList/ScrollToBottomButton.d.ts.map +1 -0
- package/lib/typescript/components/MessageList/TypingIndicator.d.ts +3 -2
- package/lib/typescript/components/MessageList/TypingIndicator.d.ts.map +1 -0
- package/lib/typescript/components/MessageList/TypingIndicatorContainer.d.ts +3 -2
- package/lib/typescript/components/MessageList/TypingIndicatorContainer.d.ts.map +1 -0
- package/lib/typescript/components/MessageList/hooks/useMessageList.d.ts +1 -0
- package/lib/typescript/components/MessageList/hooks/useMessageList.d.ts.map +1 -0
- package/lib/typescript/components/MessageList/hooks/useShouldScrollToRecentOnNewOwnMessage.d.ts +1 -0
- package/lib/typescript/components/MessageList/hooks/useShouldScrollToRecentOnNewOwnMessage.d.ts.map +1 -0
- package/lib/typescript/components/MessageList/hooks/useTypingString.d.ts +1 -0
- package/lib/typescript/components/MessageList/hooks/useTypingString.d.ts.map +1 -0
- package/lib/typescript/components/MessageList/utils/filterTypingUsers.d.ts +1 -0
- package/lib/typescript/components/MessageList/utils/filterTypingUsers.d.ts.map +1 -0
- package/lib/typescript/components/MessageList/utils/getDateSeparators.d.ts +1 -0
- package/lib/typescript/components/MessageList/utils/getDateSeparators.d.ts.map +1 -0
- package/lib/typescript/components/MessageList/utils/getGroupStyles.d.ts +1 -0
- package/lib/typescript/components/MessageList/utils/getGroupStyles.d.ts.map +1 -0
- package/lib/typescript/components/MessageList/utils/getLastReceivedMessage.d.ts +1 -0
- package/lib/typescript/components/MessageList/utils/getLastReceivedMessage.d.ts.map +1 -0
- package/lib/typescript/components/MessageList/utils/getReadStates.d.ts +1 -0
- package/lib/typescript/components/MessageList/utils/getReadStates.d.ts.map +1 -0
- package/lib/typescript/components/MessageOverlay/MessageActionList.d.ts +3 -2
- package/lib/typescript/components/MessageOverlay/MessageActionList.d.ts.map +1 -0
- package/lib/typescript/components/MessageOverlay/MessageActionListItem.d.ts +3 -2
- package/lib/typescript/components/MessageOverlay/MessageActionListItem.d.ts.map +1 -0
- package/lib/typescript/components/MessageOverlay/MessageOverlay.d.ts +3 -2
- package/lib/typescript/components/MessageOverlay/MessageOverlay.d.ts.map +1 -0
- package/lib/typescript/components/MessageOverlay/OverlayBackdrop.d.ts +1 -0
- package/lib/typescript/components/MessageOverlay/OverlayBackdrop.d.ts.map +1 -0
- package/lib/typescript/components/MessageOverlay/OverlayReactionList.d.ts +4 -3
- package/lib/typescript/components/MessageOverlay/OverlayReactionList.d.ts.map +1 -0
- package/lib/typescript/components/MessageOverlay/OverlayReactions.d.ts +5 -1
- package/lib/typescript/components/MessageOverlay/OverlayReactions.d.ts.map +1 -0
- package/lib/typescript/components/MessageOverlay/OverlayReactionsAvatar.d.ts +5 -1
- package/lib/typescript/components/MessageOverlay/OverlayReactionsAvatar.d.ts.map +1 -0
- package/lib/typescript/components/MessageOverlay/hooks/useMessageActionAnimation.d.ts +2 -2
- package/lib/typescript/components/MessageOverlay/hooks/useMessageActionAnimation.d.ts.map +1 -0
- package/lib/typescript/components/ProgressControl/ProgressControl.d.ts +2 -1
- package/lib/typescript/components/ProgressControl/ProgressControl.d.ts.map +1 -0
- package/lib/typescript/components/RTLComponents/WritingDirectionAwareText.d.ts +2 -1
- package/lib/typescript/components/RTLComponents/WritingDirectionAwareText.d.ts.map +1 -0
- package/lib/typescript/components/Reply/Reply.d.ts +3 -2
- package/lib/typescript/components/Reply/Reply.d.ts.map +1 -0
- package/lib/typescript/components/Spinner/Spinner.d.ts +5 -1
- package/lib/typescript/components/Spinner/Spinner.d.ts.map +1 -0
- package/lib/typescript/components/Thread/Thread.d.ts +2 -1
- package/lib/typescript/components/Thread/Thread.d.ts.map +1 -0
- package/lib/typescript/components/Thread/components/ThreadFooterComponent.d.ts +3 -2
- package/lib/typescript/components/Thread/components/ThreadFooterComponent.d.ts.map +1 -0
- package/lib/typescript/components/index.d.ts +1 -0
- package/lib/typescript/components/index.d.ts.map +1 -0
- package/lib/typescript/contexts/activeChannelsRefContext/ActiveChannelsRefContext.d.ts +12 -2
- package/lib/typescript/contexts/activeChannelsRefContext/ActiveChannelsRefContext.d.ts.map +1 -0
- package/lib/typescript/contexts/attachmentPickerContext/AttachmentPickerContext.d.ts +12 -2
- package/lib/typescript/contexts/attachmentPickerContext/AttachmentPickerContext.d.ts.map +1 -0
- package/lib/typescript/contexts/channelContext/ChannelContext.d.ts +7 -2
- package/lib/typescript/contexts/channelContext/ChannelContext.d.ts.map +1 -0
- package/lib/typescript/contexts/channelsContext/ChannelsContext.d.ts +8 -3
- package/lib/typescript/contexts/channelsContext/ChannelsContext.d.ts.map +1 -0
- package/lib/typescript/contexts/channelsStateContext/ChannelsStateContext.d.ts +12 -2
- package/lib/typescript/contexts/channelsStateContext/ChannelsStateContext.d.ts.map +1 -0
- package/lib/typescript/contexts/channelsStateContext/useChannelState.d.ts +1 -0
- package/lib/typescript/contexts/channelsStateContext/useChannelState.d.ts.map +1 -0
- package/lib/typescript/contexts/chatContext/ChatContext.d.ts +7 -2
- package/lib/typescript/contexts/chatContext/ChatContext.d.ts.map +1 -0
- package/lib/typescript/contexts/debugContext/DebugContext.d.ts +2 -1
- package/lib/typescript/contexts/debugContext/DebugContext.d.ts.map +1 -0
- package/lib/typescript/contexts/imageGalleryContext/ImageGalleryContext.d.ts +12 -2
- package/lib/typescript/contexts/imageGalleryContext/ImageGalleryContext.d.ts.map +1 -0
- package/lib/typescript/contexts/index.d.ts +1 -0
- package/lib/typescript/contexts/index.d.ts.map +1 -0
- package/lib/typescript/contexts/keyboardContext/KeyboardContext.d.ts +14 -2
- package/lib/typescript/contexts/keyboardContext/KeyboardContext.d.ts.map +1 -0
- package/lib/typescript/contexts/messageContext/MessageContext.d.ts +9 -4
- package/lib/typescript/contexts/messageContext/MessageContext.d.ts.map +1 -0
- package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts +8 -3
- package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts.map +1 -0
- package/lib/typescript/contexts/messageInputContext/hooks/useCreateMessageInputContext.d.ts +1 -0
- package/lib/typescript/contexts/messageInputContext/hooks/useCreateMessageInputContext.d.ts.map +1 -0
- package/lib/typescript/contexts/messageInputContext/hooks/useMessageDetailsForState.d.ts +1 -0
- package/lib/typescript/contexts/messageInputContext/hooks/useMessageDetailsForState.d.ts.map +1 -0
- package/lib/typescript/contexts/messageOverlayContext/MessageOverlayContext.d.ts +9 -4
- package/lib/typescript/contexts/messageOverlayContext/MessageOverlayContext.d.ts.map +1 -0
- package/lib/typescript/contexts/messageOverlayContext/hooks/useResettableState.d.ts +1 -0
- package/lib/typescript/contexts/messageOverlayContext/hooks/useResettableState.d.ts.map +1 -0
- package/lib/typescript/contexts/messageOverlayContext/hooks/useResettableState.test.d.ts +1 -0
- package/lib/typescript/contexts/messageOverlayContext/hooks/useResettableState.test.d.ts.map +1 -0
- package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts +10 -4
- package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts.map +1 -0
- package/lib/typescript/contexts/overlayContext/OverlayContext.d.ts +11 -1
- package/lib/typescript/contexts/overlayContext/OverlayContext.d.ts.map +1 -0
- package/lib/typescript/contexts/overlayContext/OverlayProvider.d.ts +2 -1
- package/lib/typescript/contexts/overlayContext/OverlayProvider.d.ts.map +1 -0
- package/lib/typescript/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.d.ts +2 -1
- package/lib/typescript/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.d.ts.map +1 -0
- package/lib/typescript/contexts/paginatedMessageListContext/PaginatedMessageListContext.d.ts +9 -4
- package/lib/typescript/contexts/paginatedMessageListContext/PaginatedMessageListContext.d.ts.map +1 -0
- package/lib/typescript/contexts/suggestionsContext/SuggestionsContext.d.ts +12 -2
- package/lib/typescript/contexts/suggestionsContext/SuggestionsContext.d.ts.map +1 -0
- package/lib/typescript/contexts/themeContext/ThemeContext.d.ts +2 -1
- package/lib/typescript/contexts/themeContext/ThemeContext.d.ts.map +1 -0
- package/lib/typescript/contexts/themeContext/utils/theme.d.ts +10 -6
- package/lib/typescript/contexts/themeContext/utils/theme.d.ts.map +1 -0
- package/lib/typescript/contexts/threadContext/ThreadContext.d.ts +9 -4
- package/lib/typescript/contexts/threadContext/ThreadContext.d.ts.map +1 -0
- package/lib/typescript/contexts/translationContext/TranslationContext.d.ts +14 -2
- package/lib/typescript/contexts/translationContext/TranslationContext.d.ts.map +1 -0
- package/lib/typescript/contexts/typingContext/TypingContext.d.ts +8 -3
- package/lib/typescript/contexts/typingContext/TypingContext.d.ts.map +1 -0
- package/lib/typescript/contexts/utils/defaultBaseContextValue.d.ts +1 -0
- package/lib/typescript/contexts/utils/defaultBaseContextValue.d.ts.map +1 -0
- package/lib/typescript/contexts/utils/getDisplayName.d.ts +1 -0
- package/lib/typescript/contexts/utils/getDisplayName.d.ts.map +1 -0
- package/lib/typescript/contexts/utils/isTestEnvironment.d.ts +1 -0
- package/lib/typescript/contexts/utils/isTestEnvironment.d.ts.map +1 -0
- package/lib/typescript/emoji-data/index.d.ts +1 -0
- package/lib/typescript/emoji-data/index.d.ts.map +1 -0
- package/lib/typescript/hooks/index.d.ts +1 -0
- package/lib/typescript/hooks/index.d.ts.map +1 -0
- package/lib/typescript/hooks/useAppStateListener.d.ts +1 -0
- package/lib/typescript/hooks/useAppStateListener.d.ts.map +1 -0
- package/lib/typescript/hooks/useIsMountedRef.d.ts +1 -0
- package/lib/typescript/hooks/useIsMountedRef.d.ts.map +1 -0
- package/lib/typescript/hooks/useLoadingImage.d.ts +1 -0
- package/lib/typescript/hooks/useLoadingImage.d.ts.map +1 -0
- package/lib/typescript/hooks/useStreami18n.d.ts +1 -0
- package/lib/typescript/hooks/useStreami18n.d.ts.map +1 -0
- package/lib/typescript/hooks/useTranslatedMessage.d.ts +1 -0
- package/lib/typescript/hooks/useTranslatedMessage.d.ts.map +1 -0
- package/lib/typescript/hooks/useViewport.d.ts +1 -0
- package/lib/typescript/hooks/useViewport.d.ts.map +1 -0
- package/lib/typescript/i18n/es.json +10 -10
- package/lib/typescript/i18n/fr.json +10 -10
- package/lib/typescript/i18n/he.json +10 -10
- package/lib/typescript/i18n/hi.json +10 -10
- package/lib/typescript/i18n/it.json +10 -10
- package/lib/typescript/i18n/ja.json +10 -10
- package/lib/typescript/i18n/ko.json +10 -10
- package/lib/typescript/i18n/nl.json +10 -10
- package/lib/typescript/i18n/pt-BR.json +10 -10
- package/lib/typescript/i18n/ru.json +10 -10
- package/lib/typescript/i18n/tr.json +10 -10
- package/lib/typescript/icons/ArrowRight.d.ts +3 -2
- package/lib/typescript/icons/ArrowRight.d.ts.map +1 -0
- package/lib/typescript/icons/AtMentions.d.ts +3 -2
- package/lib/typescript/icons/AtMentions.d.ts.map +1 -0
- package/lib/typescript/icons/Attach.d.ts +3 -2
- package/lib/typescript/icons/Attach.d.ts.map +1 -0
- package/lib/typescript/icons/Audio.d.ts +3 -2
- package/lib/typescript/icons/Audio.d.ts.map +1 -0
- package/lib/typescript/icons/CSV.d.ts +3 -2
- package/lib/typescript/icons/CSV.d.ts.map +1 -0
- package/lib/typescript/icons/Camera.d.ts +3 -2
- package/lib/typescript/icons/Camera.d.ts.map +1 -0
- package/lib/typescript/icons/Check.d.ts +3 -2
- package/lib/typescript/icons/Check.d.ts.map +1 -0
- package/lib/typescript/icons/CheckAll.d.ts +3 -2
- package/lib/typescript/icons/CheckAll.d.ts.map +1 -0
- package/lib/typescript/icons/CheckSend.d.ts +3 -2
- package/lib/typescript/icons/CheckSend.d.ts.map +1 -0
- package/lib/typescript/icons/CircleClose.d.ts +3 -2
- package/lib/typescript/icons/CircleClose.d.ts.map +1 -0
- package/lib/typescript/icons/CirclePlus.d.ts +3 -2
- package/lib/typescript/icons/CirclePlus.d.ts.map +1 -0
- package/lib/typescript/icons/CircleRight.d.ts +3 -2
- package/lib/typescript/icons/CircleRight.d.ts.map +1 -0
- package/lib/typescript/icons/Close.d.ts +3 -2
- package/lib/typescript/icons/Close.d.ts.map +1 -0
- package/lib/typescript/icons/Copy.d.ts +2 -1
- package/lib/typescript/icons/Copy.d.ts.map +1 -0
- package/lib/typescript/icons/CurveLineLeftUp.d.ts +3 -2
- package/lib/typescript/icons/CurveLineLeftUp.d.ts.map +1 -0
- package/lib/typescript/icons/DOC.d.ts +3 -2
- package/lib/typescript/icons/DOC.d.ts.map +1 -0
- package/lib/typescript/icons/DOCX.d.ts +3 -2
- package/lib/typescript/icons/DOCX.d.ts.map +1 -0
- package/lib/typescript/icons/Delete.d.ts +3 -2
- package/lib/typescript/icons/Delete.d.ts.map +1 -0
- package/lib/typescript/icons/Down.d.ts +3 -2
- package/lib/typescript/icons/Down.d.ts.map +1 -0
- package/lib/typescript/icons/DownloadArrow.d.ts +3 -2
- package/lib/typescript/icons/DownloadArrow.d.ts.map +1 -0
- package/lib/typescript/icons/DownloadCloud.d.ts +3 -2
- package/lib/typescript/icons/DownloadCloud.d.ts.map +1 -0
- package/lib/typescript/icons/Edit.d.ts +3 -2
- package/lib/typescript/icons/Edit.d.ts.map +1 -0
- package/lib/typescript/icons/Error.d.ts +3 -2
- package/lib/typescript/icons/Error.d.ts.map +1 -0
- package/lib/typescript/icons/Eye.d.ts +3 -2
- package/lib/typescript/icons/Eye.d.ts.map +1 -0
- package/lib/typescript/icons/Flag.d.ts +3 -2
- package/lib/typescript/icons/Flag.d.ts.map +1 -0
- package/lib/typescript/icons/Folder.d.ts +3 -2
- package/lib/typescript/icons/Folder.d.ts.map +1 -0
- package/lib/typescript/icons/GenericFile.d.ts +3 -2
- package/lib/typescript/icons/GenericFile.d.ts.map +1 -0
- package/lib/typescript/icons/GiphyIcon.d.ts +3 -2
- package/lib/typescript/icons/GiphyIcon.d.ts.map +1 -0
- package/lib/typescript/icons/Grid.d.ts +3 -2
- package/lib/typescript/icons/Grid.d.ts.map +1 -0
- package/lib/typescript/icons/Group.d.ts +3 -2
- package/lib/typescript/icons/Group.d.ts.map +1 -0
- package/lib/typescript/icons/HTML.d.ts +3 -2
- package/lib/typescript/icons/HTML.d.ts.map +1 -0
- package/lib/typescript/icons/Imgur.d.ts +3 -2
- package/lib/typescript/icons/Imgur.d.ts.map +1 -0
- package/lib/typescript/icons/LOLReaction.d.ts +3 -2
- package/lib/typescript/icons/LOLReaction.d.ts.map +1 -0
- package/lib/typescript/icons/Lightning.d.ts +3 -2
- package/lib/typescript/icons/Lightning.d.ts.map +1 -0
- package/lib/typescript/icons/Link.d.ts +3 -2
- package/lib/typescript/icons/Link.d.ts.map +1 -0
- package/lib/typescript/icons/Loading.d.ts +2 -1
- package/lib/typescript/icons/Loading.d.ts.map +1 -0
- package/lib/typescript/icons/Logo.d.ts +3 -2
- package/lib/typescript/icons/Logo.d.ts.map +1 -0
- package/lib/typescript/icons/LoveReaction.d.ts +3 -2
- package/lib/typescript/icons/LoveReaction.d.ts.map +1 -0
- package/lib/typescript/icons/MD.d.ts +3 -2
- package/lib/typescript/icons/MD.d.ts.map +1 -0
- package/lib/typescript/icons/MailOpen.d.ts +3 -2
- package/lib/typescript/icons/MailOpen.d.ts.map +1 -0
- package/lib/typescript/icons/MenuPointHorizontal.d.ts +3 -2
- package/lib/typescript/icons/MenuPointHorizontal.d.ts.map +1 -0
- package/lib/typescript/icons/MenuPointVertical.d.ts +3 -2
- package/lib/typescript/icons/MenuPointVertical.d.ts.map +1 -0
- package/lib/typescript/icons/MessageFlag.d.ts +3 -2
- package/lib/typescript/icons/MessageFlag.d.ts.map +1 -0
- package/lib/typescript/icons/MessageIcon.d.ts +3 -2
- package/lib/typescript/icons/MessageIcon.d.ts.map +1 -0
- package/lib/typescript/icons/Mute.d.ts +3 -2
- package/lib/typescript/icons/Mute.d.ts.map +1 -0
- package/lib/typescript/icons/Notification.d.ts +3 -2
- package/lib/typescript/icons/Notification.d.ts.map +1 -0
- package/lib/typescript/icons/ODT.d.ts +3 -2
- package/lib/typescript/icons/ODT.d.ts.map +1 -0
- package/lib/typescript/icons/PDF.d.ts +3 -2
- package/lib/typescript/icons/PDF.d.ts.map +1 -0
- package/lib/typescript/icons/PPT.d.ts +3 -2
- package/lib/typescript/icons/PPT.d.ts.map +1 -0
- package/lib/typescript/icons/PPTX.d.ts +3 -2
- package/lib/typescript/icons/PPTX.d.ts.map +1 -0
- package/lib/typescript/icons/Pause.d.ts +3 -2
- package/lib/typescript/icons/Pause.d.ts.map +1 -0
- package/lib/typescript/icons/Picture.d.ts +3 -2
- package/lib/typescript/icons/Picture.d.ts.map +1 -0
- package/lib/typescript/icons/Pin.d.ts +3 -2
- package/lib/typescript/icons/Pin.d.ts.map +1 -0
- package/lib/typescript/icons/PinHeader.d.ts +3 -2
- package/lib/typescript/icons/PinHeader.d.ts.map +1 -0
- package/lib/typescript/icons/Play.d.ts +3 -2
- package/lib/typescript/icons/Play.d.ts.map +1 -0
- package/lib/typescript/icons/RAR.d.ts +3 -2
- package/lib/typescript/icons/RAR.d.ts.map +1 -0
- package/lib/typescript/icons/RTF.d.ts +3 -2
- package/lib/typescript/icons/RTF.d.ts.map +1 -0
- package/lib/typescript/icons/Recorder.d.ts +3 -2
- package/lib/typescript/icons/Recorder.d.ts.map +1 -0
- package/lib/typescript/icons/Refresh.d.ts +3 -2
- package/lib/typescript/icons/Refresh.d.ts.map +1 -0
- package/lib/typescript/icons/SEVEN_Z.d.ts +3 -2
- package/lib/typescript/icons/SEVEN_Z.d.ts.map +1 -0
- package/lib/typescript/icons/Search.d.ts +3 -2
- package/lib/typescript/icons/Search.d.ts.map +1 -0
- package/lib/typescript/icons/SendRight.d.ts +3 -2
- package/lib/typescript/icons/SendRight.d.ts.map +1 -0
- package/lib/typescript/icons/SendUp.d.ts +3 -2
- package/lib/typescript/icons/SendUp.d.ts.map +1 -0
- package/lib/typescript/icons/Share.d.ts +3 -2
- package/lib/typescript/icons/Share.d.ts.map +1 -0
- package/lib/typescript/icons/ShareRightArrow.d.ts +3 -2
- package/lib/typescript/icons/ShareRightArrow.d.ts.map +1 -0
- package/lib/typescript/icons/Smile.d.ts +3 -2
- package/lib/typescript/icons/Smile.d.ts.map +1 -0
- package/lib/typescript/icons/Sound.d.ts +3 -2
- package/lib/typescript/icons/Sound.d.ts.map +1 -0
- package/lib/typescript/icons/TAR.d.ts +3 -2
- package/lib/typescript/icons/TAR.d.ts.map +1 -0
- package/lib/typescript/icons/TXT.d.ts +3 -2
- package/lib/typescript/icons/TXT.d.ts.map +1 -0
- package/lib/typescript/icons/ThreadReply.d.ts +3 -2
- package/lib/typescript/icons/ThreadReply.d.ts.map +1 -0
- package/lib/typescript/icons/ThumbsDownReaction.d.ts +3 -2
- package/lib/typescript/icons/ThumbsDownReaction.d.ts.map +1 -0
- package/lib/typescript/icons/ThumbsUpReaction.d.ts +3 -2
- package/lib/typescript/icons/ThumbsUpReaction.d.ts.map +1 -0
- package/lib/typescript/icons/Time.d.ts +3 -2
- package/lib/typescript/icons/Time.d.ts.map +1 -0
- package/lib/typescript/icons/Unknown.d.ts +3 -2
- package/lib/typescript/icons/Unknown.d.ts.map +1 -0
- package/lib/typescript/icons/Unpin.d.ts +3 -2
- package/lib/typescript/icons/Unpin.d.ts.map +1 -0
- package/lib/typescript/icons/User.d.ts +3 -2
- package/lib/typescript/icons/User.d.ts.map +1 -0
- package/lib/typescript/icons/UserAdd.d.ts +3 -2
- package/lib/typescript/icons/UserAdd.d.ts.map +1 -0
- package/lib/typescript/icons/UserAdmin.d.ts +3 -2
- package/lib/typescript/icons/UserAdmin.d.ts.map +1 -0
- package/lib/typescript/icons/UserDelete.d.ts +3 -2
- package/lib/typescript/icons/UserDelete.d.ts.map +1 -0
- package/lib/typescript/icons/UserMinus.d.ts +3 -2
- package/lib/typescript/icons/UserMinus.d.ts.map +1 -0
- package/lib/typescript/icons/Video.d.ts +3 -2
- package/lib/typescript/icons/Video.d.ts.map +1 -0
- package/lib/typescript/icons/Warning.d.ts +3 -2
- package/lib/typescript/icons/Warning.d.ts.map +1 -0
- package/lib/typescript/icons/WutReaction.d.ts +3 -2
- package/lib/typescript/icons/WutReaction.d.ts.map +1 -0
- package/lib/typescript/icons/XLS.d.ts +3 -2
- package/lib/typescript/icons/XLS.d.ts.map +1 -0
- package/lib/typescript/icons/XLSX.d.ts +3 -2
- package/lib/typescript/icons/XLSX.d.ts.map +1 -0
- package/lib/typescript/icons/ZIP.d.ts +3 -2
- package/lib/typescript/icons/ZIP.d.ts.map +1 -0
- package/lib/typescript/icons/index.d.ts +1 -0
- package/lib/typescript/icons/index.d.ts.map +1 -0
- package/lib/typescript/icons/utils/base.d.ts +4 -3
- package/lib/typescript/icons/utils/base.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +1 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/lib/typescript/init.d.ts +1 -0
- package/lib/typescript/init.d.ts.map +1 -0
- package/lib/typescript/native.d.ts +1 -0
- package/lib/typescript/native.d.ts.map +1 -0
- package/lib/typescript/store/QuickSqliteClient.d.ts +1 -0
- package/lib/typescript/store/QuickSqliteClient.d.ts.map +1 -0
- package/lib/typescript/store/apis/addPendingTask.d.ts +1 -0
- package/lib/typescript/store/apis/addPendingTask.d.ts.map +1 -0
- package/lib/typescript/store/apis/deleteChannel.d.ts +1 -0
- package/lib/typescript/store/apis/deleteChannel.d.ts.map +1 -0
- package/lib/typescript/store/apis/deleteMember.d.ts +1 -0
- package/lib/typescript/store/apis/deleteMember.d.ts.map +1 -0
- package/lib/typescript/store/apis/deleteMessage.d.ts +1 -0
- package/lib/typescript/store/apis/deleteMessage.d.ts.map +1 -0
- package/lib/typescript/store/apis/deleteMessagesForChannel.d.ts +1 -0
- package/lib/typescript/store/apis/deleteMessagesForChannel.d.ts.map +1 -0
- package/lib/typescript/store/apis/deletePendingTask.d.ts +1 -0
- package/lib/typescript/store/apis/deletePendingTask.d.ts.map +1 -0
- package/lib/typescript/store/apis/deleteReaction.d.ts +1 -0
- package/lib/typescript/store/apis/deleteReaction.d.ts.map +1 -0
- package/lib/typescript/store/apis/deleteReactions.d.ts +1 -0
- package/lib/typescript/store/apis/deleteReactions.d.ts.map +1 -0
- package/lib/typescript/store/apis/getAllChannelIds.d.ts +1 -0
- package/lib/typescript/store/apis/getAllChannelIds.d.ts.map +1 -0
- package/lib/typescript/store/apis/getAppSettings.d.ts +1 -0
- package/lib/typescript/store/apis/getAppSettings.d.ts.map +1 -0
- package/lib/typescript/store/apis/getChannelMessages.d.ts +1 -0
- package/lib/typescript/store/apis/getChannelMessages.d.ts.map +1 -0
- package/lib/typescript/store/apis/getChannels.d.ts +1 -0
- package/lib/typescript/store/apis/getChannels.d.ts.map +1 -0
- package/lib/typescript/store/apis/getChannelsForFilterSort.d.ts +1 -0
- package/lib/typescript/store/apis/getChannelsForFilterSort.d.ts.map +1 -0
- package/lib/typescript/store/apis/getLastSyncedAt.d.ts +1 -0
- package/lib/typescript/store/apis/getLastSyncedAt.d.ts.map +1 -0
- package/lib/typescript/store/apis/getMembers.d.ts +1 -0
- package/lib/typescript/store/apis/getMembers.d.ts.map +1 -0
- package/lib/typescript/store/apis/getPendingTasks.d.ts +1 -0
- package/lib/typescript/store/apis/getPendingTasks.d.ts.map +1 -0
- package/lib/typescript/store/apis/getReads.d.ts +1 -0
- package/lib/typescript/store/apis/getReads.d.ts.map +1 -0
- package/lib/typescript/store/apis/index.d.ts +1 -0
- package/lib/typescript/store/apis/index.d.ts.map +1 -0
- package/lib/typescript/store/apis/insertReaction.d.ts +1 -0
- package/lib/typescript/store/apis/insertReaction.d.ts.map +1 -0
- package/lib/typescript/store/apis/queries/selectChannelIdsForFilterSort.d.ts +1 -0
- package/lib/typescript/store/apis/queries/selectChannelIdsForFilterSort.d.ts.map +1 -0
- package/lib/typescript/store/apis/queries/selectChannels.d.ts +1 -0
- package/lib/typescript/store/apis/queries/selectChannels.d.ts.map +1 -0
- package/lib/typescript/store/apis/queries/selectMembersForChannels.d.ts +1 -0
- package/lib/typescript/store/apis/queries/selectMembersForChannels.d.ts.map +1 -0
- package/lib/typescript/store/apis/queries/selectMessagesForChannels.d.ts +1 -0
- package/lib/typescript/store/apis/queries/selectMessagesForChannels.d.ts.map +1 -0
- package/lib/typescript/store/apis/queries/selectReactionsForMessages.d.ts +1 -0
- package/lib/typescript/store/apis/queries/selectReactionsForMessages.d.ts.map +1 -0
- package/lib/typescript/store/apis/queries/selectReadsForChannels.d.ts +1 -0
- package/lib/typescript/store/apis/queries/selectReadsForChannels.d.ts.map +1 -0
- package/lib/typescript/store/apis/updateMessage.d.ts +1 -0
- package/lib/typescript/store/apis/updateMessage.d.ts.map +1 -0
- package/lib/typescript/store/apis/updateReaction.d.ts +1 -0
- package/lib/typescript/store/apis/updateReaction.d.ts.map +1 -0
- package/lib/typescript/store/apis/upsertAppSettings.d.ts +1 -0
- package/lib/typescript/store/apis/upsertAppSettings.d.ts.map +1 -0
- package/lib/typescript/store/apis/upsertChannelData.d.ts +1 -0
- package/lib/typescript/store/apis/upsertChannelData.d.ts.map +1 -0
- package/lib/typescript/store/apis/upsertChannelDataFromChannel.d.ts +7 -0
- package/lib/typescript/store/apis/upsertChannelDataFromChannel.d.ts.map +1 -0
- package/lib/typescript/store/apis/upsertChannels.d.ts +1 -0
- package/lib/typescript/store/apis/upsertChannels.d.ts.map +1 -0
- package/lib/typescript/store/apis/upsertCidsForQuery.d.ts +1 -0
- package/lib/typescript/store/apis/upsertCidsForQuery.d.ts.map +1 -0
- package/lib/typescript/store/apis/upsertMembers.d.ts +1 -0
- package/lib/typescript/store/apis/upsertMembers.d.ts.map +1 -0
- package/lib/typescript/store/apis/upsertMessages.d.ts +1 -0
- package/lib/typescript/store/apis/upsertMessages.d.ts.map +1 -0
- package/lib/typescript/store/apis/upsertReads.d.ts +1 -0
- package/lib/typescript/store/apis/upsertReads.d.ts.map +1 -0
- package/lib/typescript/store/apis/upsertUserSyncStatus.d.ts +1 -0
- package/lib/typescript/store/apis/upsertUserSyncStatus.d.ts.map +1 -0
- package/lib/typescript/store/apis/utils/convertFilterSortToQuery.d.ts +1 -0
- package/lib/typescript/store/apis/utils/convertFilterSortToQuery.d.ts.map +1 -0
- package/lib/typescript/store/constants.d.ts +1 -0
- package/lib/typescript/store/constants.d.ts.map +1 -0
- package/lib/typescript/store/mappers/mapChannelDataToStorable.d.ts +1 -0
- package/lib/typescript/store/mappers/mapChannelDataToStorable.d.ts.map +1 -0
- package/lib/typescript/store/mappers/mapChannelToStorable.d.ts +5 -0
- package/lib/typescript/store/mappers/mapChannelToStorable.d.ts.map +1 -0
- package/lib/typescript/store/mappers/mapDateTimeToStorable.d.ts +1 -0
- package/lib/typescript/store/mappers/mapDateTimeToStorable.d.ts.map +1 -0
- package/lib/typescript/store/mappers/mapMemberToStorable.d.ts +1 -0
- package/lib/typescript/store/mappers/mapMemberToStorable.d.ts.map +1 -0
- package/lib/typescript/store/mappers/mapMessageToStorable.d.ts +1 -0
- package/lib/typescript/store/mappers/mapMessageToStorable.d.ts.map +1 -0
- package/lib/typescript/store/mappers/mapReactionToStorable.d.ts +1 -0
- package/lib/typescript/store/mappers/mapReactionToStorable.d.ts.map +1 -0
- package/lib/typescript/store/mappers/mapReadToStorable.d.ts +1 -0
- package/lib/typescript/store/mappers/mapReadToStorable.d.ts.map +1 -0
- package/lib/typescript/store/mappers/mapStorableToChannel.d.ts +1 -0
- package/lib/typescript/store/mappers/mapStorableToChannel.d.ts.map +1 -0
- package/lib/typescript/store/mappers/mapStorableToMember.d.ts +1 -0
- package/lib/typescript/store/mappers/mapStorableToMember.d.ts.map +1 -0
- package/lib/typescript/store/mappers/mapStorableToMessage.d.ts +1 -0
- package/lib/typescript/store/mappers/mapStorableToMessage.d.ts.map +1 -0
- package/lib/typescript/store/mappers/mapStorableToReaction.d.ts +1 -0
- package/lib/typescript/store/mappers/mapStorableToReaction.d.ts.map +1 -0
- package/lib/typescript/store/mappers/mapStorableToRead.d.ts +1 -0
- package/lib/typescript/store/mappers/mapStorableToRead.d.ts.map +1 -0
- package/lib/typescript/store/mappers/mapStorableToTask.d.ts +1 -0
- package/lib/typescript/store/mappers/mapStorableToTask.d.ts.map +1 -0
- package/lib/typescript/store/mappers/mapStorableToUser.d.ts +1 -0
- package/lib/typescript/store/mappers/mapStorableToUser.d.ts.map +1 -0
- package/lib/typescript/store/mappers/mapTaskToStorable.d.ts +1 -0
- package/lib/typescript/store/mappers/mapTaskToStorable.d.ts.map +1 -0
- package/lib/typescript/store/mappers/mapUserToStorable.d.ts +1 -0
- package/lib/typescript/store/mappers/mapUserToStorable.d.ts.map +1 -0
- package/lib/typescript/store/schema.d.ts +1 -0
- package/lib/typescript/store/schema.d.ts.map +1 -0
- package/lib/typescript/store/sqlite-utils/appendOrderByClause.d.ts +1 -0
- package/lib/typescript/store/sqlite-utils/appendOrderByClause.d.ts.map +1 -0
- package/lib/typescript/store/sqlite-utils/appendWhereCluase.d.ts +1 -0
- package/lib/typescript/store/sqlite-utils/appendWhereCluase.d.ts.map +1 -0
- package/lib/typescript/store/sqlite-utils/createCreateTableQuery.d.ts +1 -0
- package/lib/typescript/store/sqlite-utils/createCreateTableQuery.d.ts.map +1 -0
- package/lib/typescript/store/sqlite-utils/createDeleteQuery.d.ts +1 -0
- package/lib/typescript/store/sqlite-utils/createDeleteQuery.d.ts.map +1 -0
- package/lib/typescript/store/sqlite-utils/createSelectQuery.d.ts +1 -0
- package/lib/typescript/store/sqlite-utils/createSelectQuery.d.ts.map +1 -0
- package/lib/typescript/store/sqlite-utils/createUpdateQuery.d.ts +1 -0
- package/lib/typescript/store/sqlite-utils/createUpdateQuery.d.ts.map +1 -0
- package/lib/typescript/store/sqlite-utils/createUpsertQuery.d.ts +1 -0
- package/lib/typescript/store/sqlite-utils/createUpsertQuery.d.ts.map +1 -0
- package/lib/typescript/store/sqlite-utils/printRow.d.ts +1 -0
- package/lib/typescript/store/sqlite-utils/printRow.d.ts.map +1 -0
- package/lib/typescript/store/types.d.ts +1 -0
- package/lib/typescript/store/types.d.ts.map +1 -0
- package/lib/typescript/test-utils/BetterSqlite.d.ts +1 -0
- package/lib/typescript/test-utils/BetterSqlite.d.ts.map +1 -0
- package/lib/typescript/types/types.d.ts +1 -0
- package/lib/typescript/types/types.d.ts.map +1 -0
- package/lib/typescript/utils/DBSyncManager.d.ts +2 -1
- package/lib/typescript/utils/DBSyncManager.d.ts.map +1 -0
- package/lib/typescript/utils/StreamChatRN.d.ts +1 -0
- package/lib/typescript/utils/StreamChatRN.d.ts.map +1 -0
- package/lib/typescript/utils/Streami18n.d.ts +2 -0
- package/lib/typescript/utils/Streami18n.d.ts.map +1 -0
- package/lib/typescript/utils/addReactionToLocalState.d.ts +1 -0
- package/lib/typescript/utils/addReactionToLocalState.d.ts.map +1 -0
- package/lib/typescript/utils/compressImage.d.ts +1 -0
- package/lib/typescript/utils/compressImage.d.ts.map +1 -0
- package/lib/typescript/utils/date.d.ts +1 -0
- package/lib/typescript/utils/date.d.ts.map +1 -0
- package/lib/typescript/utils/getResizedImageUrl.d.ts +1 -0
- package/lib/typescript/utils/getResizedImageUrl.d.ts.map +1 -0
- package/lib/typescript/utils/getUrlOfImageAttachment.d.ts +1 -0
- package/lib/typescript/utils/getUrlOfImageAttachment.d.ts.map +1 -0
- package/lib/typescript/utils/patchMessageTextCommand.d.ts +1 -0
- package/lib/typescript/utils/patchMessageTextCommand.d.ts.map +1 -0
- package/lib/typescript/utils/removeReactionFromLocalState.d.ts +1 -0
- package/lib/typescript/utils/removeReactionFromLocalState.d.ts.map +1 -0
- package/lib/typescript/utils/removeReservedFields.d.ts +1 -0
- package/lib/typescript/utils/removeReservedFields.d.ts.map +1 -0
- package/lib/typescript/utils/utils.d.ts +3 -2
- package/lib/typescript/utils/utils.d.ts.map +1 -0
- package/package.json +33 -33
- package/src/__tests__/offline-support/offline-feature.js +60 -61
- package/src/__tests__/offline-support/optimistic-update.js +15 -15
- package/src/components/Attachment/AudioAttachment.tsx +1 -1
- package/src/components/Attachment/Card.tsx +1 -1
- package/src/components/Attachment/FileAttachment.tsx +1 -1
- package/src/components/Attachment/FileIcon.tsx +3 -3
- package/src/components/Attachment/Gallery.tsx +5 -5
- package/src/components/Attachment/GalleryImage.tsx +1 -1
- package/src/components/Attachment/ImageLoadingFailedIndicator.tsx +1 -1
- package/src/components/Attachment/VideoThumbnail.tsx +1 -1
- package/src/components/Attachment/__tests__/Gallery.test.js +48 -47
- package/src/components/Attachment/__tests__/Giphy.test.js +62 -52
- package/src/components/AttachmentPicker/AttachmentPicker.tsx +7 -4
- package/src/components/AttachmentPicker/components/AttachmentPickerBottomSheetHandle.tsx +4 -2
- package/src/components/AttachmentPicker/components/AttachmentPickerError.tsx +3 -3
- package/src/components/AttachmentPicker/components/AttachmentPickerErrorImage.tsx +1 -1
- package/src/components/AttachmentPicker/components/AttachmentPickerIOSSelectMorePhotos.tsx +1 -1
- package/src/components/AttachmentPicker/components/AttachmentPickerItem.tsx +2 -2
- package/src/components/AttachmentPicker/components/AttachmentSelectionBar.tsx +1 -1
- package/src/components/AttachmentPicker/components/CameraSelectorIcon.tsx +1 -1
- package/src/components/AttachmentPicker/components/FileSelectorIcon.tsx +1 -1
- package/src/components/AttachmentPicker/components/ImageOverlaySelectedComponent.tsx +1 -1
- package/src/components/AttachmentPicker/components/ImageSelectorIcon.tsx +1 -1
- package/src/components/AutoCompleteInput/AutoCompleteInput.tsx +13 -12
- package/src/components/AutoCompleteInput/AutoCompleteSuggestionHeader.tsx +2 -2
- package/src/components/AutoCompleteInput/AutoCompleteSuggestionList.tsx +1 -1
- package/src/components/Avatar/Avatar.tsx +2 -2
- package/src/components/Avatar/GroupAvatar.tsx +1 -1
- package/src/components/Channel/Channel.tsx +11 -14
- package/src/components/ChannelList/ChannelList.tsx +4 -4
- package/src/components/ChannelList/ChannelListFooterLoadingIndicator.tsx +1 -1
- package/src/components/ChannelList/ChannelListHeaderErrorIndicator.tsx +2 -4
- package/src/components/ChannelList/ChannelListHeaderNetworkDownIndicator.tsx +4 -2
- package/src/components/ChannelList/ChannelListLoadingIndicator.tsx +1 -1
- package/src/components/ChannelList/Skeleton.tsx +1 -1
- package/src/components/ChannelList/__tests__/ChannelList.test.js +83 -75
- package/src/components/ChannelList/utils.ts +1 -1
- package/src/components/ChannelPreview/ChannelPreviewMessenger.tsx +1 -1
- package/src/components/ChannelPreview/ChannelPreviewStatus.tsx +2 -2
- package/src/components/ChannelPreview/__tests__/ChannelPreviewMessenger.test.js +11 -10
- package/src/components/ChannelPreview/hooks/__tests__/useChannelPreviewDisplayName.test.tsx +3 -3
- package/src/components/ChannelPreview/hooks/__tests__/useLatestMessagePreview.test.tsx +2 -4
- package/src/components/Chat/hooks/handleEventToSyncDB.ts +132 -46
- package/src/components/Chat/hooks/useSyncDatabase.ts +1 -1
- package/src/components/ImageGallery/ImageGallery.tsx +25 -2
- package/src/components/ImageGallery/__tests__/AnimatedVideoGallery.test.tsx +19 -19
- package/src/components/ImageGallery/__tests__/ImageGallery.test.tsx +20 -22
- package/src/components/ImageGallery/__tests__/ImageGalleryFooter.test.tsx +15 -13
- package/src/components/ImageGallery/__tests__/ImageGalleryGrid.test.tsx +9 -20
- package/src/components/ImageGallery/__tests__/ImageGalleryGridHandle.test.tsx +7 -14
- package/src/components/ImageGallery/__tests__/ImageGalleryHeader.test.tsx +12 -10
- package/src/components/ImageGallery/__tests__/ImageGalleryVideoControl.test.tsx +17 -12
- package/src/components/ImageGallery/components/AnimatedGalleryImage.tsx +2 -2
- package/src/components/ImageGallery/components/AnimatedGalleryVideo.tsx +2 -2
- package/src/components/ImageGallery/components/ImageGalleryFooter.tsx +1 -1
- package/src/components/ImageGallery/components/ImageGalleryHeader.tsx +4 -4
- package/src/components/ImageGallery/components/ImageGalleryOverlay.tsx +1 -1
- package/src/components/ImageGallery/components/ImageGalleryVideoControl.tsx +2 -2
- package/src/components/ImageGallery/components/ImageGridHandle.tsx +4 -2
- package/src/components/ImageGallery/components/__tests__/ImageGalleryHeader.test.tsx +1 -3
- package/src/components/Indicators/EmptyStateIndicator.tsx +3 -3
- package/src/components/Indicators/LoadingDot.tsx +1 -1
- package/src/components/Indicators/LoadingDots.tsx +1 -1
- package/src/components/Indicators/LoadingErrorIndicator.tsx +2 -2
- package/src/components/Indicators/LoadingIndicator.tsx +4 -2
- package/src/components/KeyboardCompatibleView/KeyboardCompatibleView.tsx +6 -3
- package/src/components/KeyboardCompatibleView/KeyboardCompatibleViewFC.tsx +15 -6
- package/src/components/Message/Message.tsx +6 -6
- package/src/components/Message/MessageSimple/MessageContent.tsx +8 -2
- package/src/components/Message/MessageSimple/MessageError.tsx +1 -1
- package/src/components/Message/MessageSimple/MessageFooter.tsx +6 -4
- package/src/components/Message/MessageSimple/MessagePinnedHeader.tsx +2 -2
- package/src/components/Message/MessageSimple/MessageReplies.tsx +2 -2
- package/src/components/Message/MessageSimple/ReactionList.tsx +7 -7
- package/src/components/Message/MessageSimple/__tests__/MessageAvatar.test.js +10 -10
- package/src/components/Message/MessageSimple/__tests__/MessageContent.test.js +32 -32
- package/src/components/Message/MessageSimple/__tests__/MessagePinnedHeader.test.js +7 -7
- package/src/components/Message/MessageSimple/__tests__/MessageReplies.test.js +21 -21
- package/src/components/Message/MessageSimple/__tests__/__snapshots__/MessageAvatar.test.js.snap +11 -11
- package/src/components/Message/MessageSimple/__tests__/__snapshots__/MessagePinnedHeader.test.js.snap +26 -14
- package/src/components/Message/MessageSimple/__tests__/__snapshots__/MessageStatus.test.js.snap +32 -15
- package/src/components/Message/MessageSimple/__tests__/__snapshots__/MessageTextContainer.test.tsx.snap +7 -7
- package/src/components/Message/MessageSimple/utils/renderText.test.tsx +9 -8
- package/src/components/MessageInput/FileUploadPreview.tsx +2 -2
- package/src/components/MessageInput/ImageUploadPreview.tsx +2 -2
- package/src/components/MessageInput/SendMessageDisallowedIndicator.tsx +1 -1
- package/src/components/MessageInput/ShowThreadMessageInChannelButton.tsx +58 -55
- package/src/components/MessageInput/__tests__/AttachButton.test.js +11 -11
- package/src/components/MessageInput/__tests__/AudioAttachmentUploadPreviewExpo.test.tsx +13 -12
- package/src/components/MessageInput/__tests__/AudioAttachmentUploadPreviewNative.test.tsx +20 -21
- package/src/components/MessageInput/__tests__/FileUploadPreview.test.js +51 -38
- package/src/components/MessageInput/__tests__/UploadProgressIndicator.test.js +22 -51
- package/src/components/MessageInput/__tests__/__snapshots__/AttachButton.test.js.snap +66 -18
- package/src/components/MessageInput/__tests__/__snapshots__/SendButton.test.js.snap +132 -36
- package/src/components/MessageInput/components/InputEditingStateHeader.tsx +1 -1
- package/src/components/MessageInput/components/InputReplyStateHeader.tsx +1 -1
- package/src/components/MessageList/DateHeader.tsx +1 -1
- package/src/components/MessageList/InlineDateSeparator.tsx +1 -1
- package/src/components/MessageList/InlineLoadingMoreIndicator.tsx +19 -18
- package/src/components/MessageList/InlineLoadingMoreRecentIndicator.tsx +19 -18
- package/src/components/MessageList/InlineLoadingMoreThreadIndicator.tsx +19 -18
- package/src/components/MessageList/InlineUnreadIndicator.tsx +2 -2
- package/src/components/MessageList/MessageList.tsx +1 -0
- package/src/components/MessageList/MessageSystem.tsx +1 -1
- package/src/components/MessageList/ScrollToBottomButton.tsx +1 -1
- package/src/components/MessageList/TypingIndicatorContainer.tsx +2 -2
- package/src/components/MessageList/__tests__/MessageSystem.test.js +3 -3
- package/src/components/MessageList/__tests__/__snapshots__/MessageSystem.test.js.snap +22 -22
- package/src/components/MessageList/__tests__/__snapshots__/ScrollToBottomButton.test.js.snap +44 -15
- package/src/components/MessageList/__tests__/__snapshots__/TypingIndicator.test.js.snap +27 -27
- package/src/components/MessageList/__tests__/useMessageList.test.tsx +1 -1
- package/src/components/MessageList/utils/getGroupStyles.ts +2 -2
- package/src/components/MessageOverlay/MessageActionList.tsx +5 -5
- package/src/components/MessageOverlay/MessageOverlay.tsx +8 -8
- package/src/components/MessageOverlay/OverlayReactionList.tsx +4 -4
- package/src/components/MessageOverlay/OverlayReactions.tsx +14 -15
- package/src/components/MessageOverlay/OverlayReactionsAvatar.tsx +1 -1
- package/src/components/ProgressControl/ProgressControl.tsx +4 -2
- package/src/components/RTLComponents/WritingDirectionAwareText.tsx +1 -1
- package/src/components/Reply/Reply.tsx +5 -5
- package/src/components/Spinner/Spinner.tsx +1 -1
- package/src/components/Thread/__tests__/__snapshots__/Thread.test.js.snap +482 -318
- package/src/components/Thread/components/ThreadFooterComponent.tsx +12 -6
- package/src/contexts/__tests__/index.test.tsx +1 -1
- package/src/contexts/activeChannelsRefContext/ActiveChannelsRefContext.tsx +10 -1
- package/src/contexts/attachmentPickerContext/AttachmentPickerContext.tsx +10 -1
- package/src/contexts/channelContext/ChannelContext.tsx +6 -1
- package/src/contexts/channelsContext/ChannelsContext.tsx +7 -2
- package/src/contexts/channelsStateContext/ChannelsStateContext.tsx +10 -1
- package/src/contexts/chatContext/ChatContext.tsx +5 -1
- package/src/contexts/imageGalleryContext/ImageGalleryContext.tsx +10 -1
- package/src/contexts/keyboardContext/KeyboardContext.tsx +14 -3
- package/src/contexts/messageContext/MessageContext.tsx +7 -3
- package/src/contexts/messageInputContext/MessageInputContext.tsx +6 -2
- package/src/contexts/messageInputContext/__tests__/MessageInputContext.test.tsx +92 -43
- package/src/contexts/messageInputContext/__tests__/__snapshots__/sendMessage.test.tsx.snap +24 -24
- package/src/contexts/messageInputContext/__tests__/__snapshots__/sendMessageAsync.test.tsx.snap +8 -8
- package/src/contexts/messageInputContext/__tests__/isValidMessage.test.tsx +15 -4
- package/src/contexts/messageInputContext/__tests__/pickFile.test.tsx +28 -13
- package/src/contexts/messageInputContext/__tests__/removeFile.test.tsx +9 -6
- package/src/contexts/messageInputContext/__tests__/removeImage.test.tsx +10 -7
- package/src/contexts/messageInputContext/__tests__/sendMessage.test.tsx +125 -53
- package/src/contexts/messageInputContext/__tests__/sendMessageAsync.test.tsx +46 -25
- package/src/contexts/messageInputContext/__tests__/updateMessage.test.tsx +22 -11
- package/src/contexts/messageInputContext/__tests__/uploadFile.test.tsx +30 -13
- package/src/contexts/messageInputContext/__tests__/uploadImage.test.tsx +15 -6
- package/src/contexts/messageInputContext/__tests__/useMessageDetailsForState.test.tsx +4 -3
- package/src/contexts/messageInputContext/hooks/useCreateMessageInputContext.ts +5 -1
- package/src/contexts/messageOverlayContext/MessageOverlayContext.tsx +7 -3
- package/src/contexts/messageOverlayContext/hooks/useResettableState.test.tsx +8 -7
- package/src/contexts/messagesContext/MessagesContext.tsx +8 -3
- package/src/contexts/overlayContext/OverlayContext.tsx +10 -1
- package/src/contexts/overlayContext/OverlayProvider.tsx +4 -4
- package/src/contexts/paginatedMessageListContext/PaginatedMessageListContext.tsx +7 -3
- package/src/contexts/suggestionsContext/SuggestionsContext.tsx +10 -1
- package/src/contexts/themeContext/utils/theme.ts +11 -6
- package/src/contexts/threadContext/ThreadContext.tsx +8 -3
- package/src/contexts/translationContext/TranslationContext.tsx +14 -3
- package/src/contexts/typingContext/TypingContext.tsx +6 -2
- package/src/hooks/__tests__/useAppStateListener.test.tsx +41 -15
- package/src/hooks/__tests__/useTranslatedMessage.test.tsx +9 -9
- package/src/hooks/useAppStateListener.ts +5 -1
- package/src/i18n/es.json +10 -10
- package/src/i18n/fr.json +10 -10
- package/src/i18n/he.json +10 -10
- package/src/i18n/hi.json +10 -10
- package/src/i18n/it.json +10 -10
- package/src/i18n/ja.json +10 -10
- package/src/i18n/ko.json +10 -10
- package/src/i18n/nl.json +10 -10
- package/src/i18n/pt-BR.json +10 -10
- package/src/i18n/ru.json +10 -10
- package/src/i18n/tr.json +10 -10
- package/src/icons/Copy.tsx +1 -1
- package/src/icons/Loading.tsx +1 -1
- package/src/mock-builders/generator/channel.ts +1 -1
- package/src/store/apis/upsertChannelDataFromChannel.ts +25 -0
- package/src/store/mappers/mapChannelToStorable.ts +68 -0
- package/src/utils/DBSyncManager.ts +7 -3
- package/src/utils/Streami18n.ts +3 -0
- package/src/utils/utils.ts +2 -2
- package/src/version.json +1 -1
- package/src/components/Message/MessageSimple/__tests__/__snapshots__/MessageReplies.test.js.snap +0 -93
- package/src/components/MessageInput/__tests__/__snapshots__/UploadProgressIndicator.test.js.snap +0 -250
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_openUrlSafely","_ChatContext","_MessageContext","_MessagesContext","_ThemeContext","_Play","_utils","_ImageBackground","_excluded","_this","_jsxFileName","styles","StyleSheet","create","authorName","fontSize","fontWeight","authorNameContainer","borderTopRightRadius","paddingHorizontal","paddingTop","authorNameFooter","padding","authorNameMask","bottom","left","position","cardCover","alignItems","borderRadius","height","justifyContent","marginHorizontal","cardFooter","flexDirection","container","overflow","width","description","playButtonStyle","elevation","title","CardWithContext","props","additionalTouchableProps","author_name","CardCover","CardFooter","CardHeader","_props$ImageComponent","ImageComponent","Image","image_url","og_scrape_url","onLongPress","onPress","onPressIn","preventPress","_props$styles","stylesProp","text","thumb_url","type","_useTheme","useTheme","_useTheme$theme","theme","_useTheme$theme$color","colors","accent_blue","black","blue_alice","transparent","white","_useTheme$theme$messa","messageSimple","card","authorNameFooterContainer","cover","_useTheme$theme$messa2","footer","titleStyle","footerStyle","_objectWithoutProperties2","noURI","roundedView","_useTheme$theme$messa3","playIcon","uri","defaultOnPress","openUrlSafely","isVideoCard","createElement","TouchableOpacity","_extends2","disabled","event","additionalInfo","url","emitter","defaultHandler","style","testID","__self","__source","fileName","lineNumber","columnNumber","View","ImageBackground","imageStyle","resizeMode","source","makeImageCompatibleUrl","backgroundColor","Play","pathFill","Text","color","borderLeftColor","numberOfLines","areEqual","prevProps","nextProps","prevMyMessageTheme","myMessageTheme","nextMyMessageTheme","messageThemeEqual","JSON","stringify","MemoizedCard","React","memo","Card","_useChatContext","useChatContext","_useMessageContext","useMessageContext","message","_useMessagesContext","useMessagesContext","key","id","updated_at","channelId","cid","messageId","exports","displayName"],"sources":["Card.tsx"],"sourcesContent":["import React from 'react';\nimport {\n Image,\n ImageStyle,\n StyleProp,\n StyleSheet,\n Text,\n TextStyle,\n TouchableOpacity,\n View,\n ViewStyle,\n} from 'react-native';\n\nimport type { Attachment } from 'stream-chat';\n\nimport { openUrlSafely } from './utils/openUrlSafely';\n\nimport { ChatContextValue, useChatContext } from '../../contexts/chatContext/ChatContext';\n\nimport {\n MessageContextValue,\n useMessageContext,\n} from '../../contexts/messageContext/MessageContext';\nimport {\n MessagesContextValue,\n useMessagesContext,\n} from '../../contexts/messagesContext/MessagesContext';\nimport { useTheme } from '../../contexts/themeContext/ThemeContext';\nimport { Play } from '../../icons/Play';\nimport type { DefaultStreamChatGenerics } from '../../types/types';\nimport { makeImageCompatibleUrl } from '../../utils/utils';\nimport { ImageBackground } from '../ImageBackground';\n\nconst styles = StyleSheet.create({\n authorName: { fontSize: 14.5, fontWeight: '600' },\n authorNameContainer: {\n borderTopRightRadius: 15,\n paddingHorizontal: 8,\n paddingTop: 8,\n },\n authorNameFooter: {\n fontSize: 14.5,\n fontWeight: '600',\n padding: 8,\n },\n authorNameMask: {\n bottom: 0,\n left: 2,\n position: 'absolute',\n },\n cardCover: {\n alignItems: 'center',\n borderRadius: 8,\n height: 140,\n justifyContent: 'center',\n marginHorizontal: 2,\n },\n cardFooter: {\n flexDirection: 'row',\n justifyContent: 'space-between',\n padding: 10,\n },\n container: {\n overflow: 'hidden',\n width: 256,\n },\n description: {\n fontSize: 12,\n marginHorizontal: 8,\n },\n playButtonStyle: {\n alignItems: 'center',\n borderRadius: 50,\n elevation: 2,\n height: 36,\n justifyContent: 'center',\n width: 36,\n },\n title: {\n fontSize: 12,\n marginHorizontal: 8,\n },\n});\n\nexport type CardPropsWithContext<\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n> = Attachment<StreamChatGenerics> &\n Pick<ChatContextValue, 'ImageComponent'> &\n Pick<\n MessageContextValue<StreamChatGenerics>,\n 'onLongPress' | 'onPress' | 'onPressIn' | 'preventPress'\n > &\n Pick<\n MessagesContextValue<StreamChatGenerics>,\n 'additionalTouchableProps' | 'CardCover' | 'CardFooter' | 'CardHeader' | 'myMessageTheme'\n > & {\n channelId: string | undefined;\n messageId: string | undefined;\n styles?: Partial<{\n authorName: StyleProp<TextStyle>;\n authorNameContainer: StyleProp<ViewStyle>;\n authorNameFooter: StyleProp<TextStyle>;\n authorNameFooterContainer: StyleProp<ViewStyle>;\n authorNameMask: StyleProp<ViewStyle>;\n cardCover: StyleProp<ImageStyle>;\n cardFooter: StyleProp<ViewStyle>;\n container: StyleProp<ViewStyle>;\n description: StyleProp<TextStyle>;\n title: StyleProp<TextStyle>;\n }>;\n };\n\nconst CardWithContext = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>(\n props: CardPropsWithContext<StreamChatGenerics>,\n) => {\n const {\n additionalTouchableProps,\n author_name,\n CardCover,\n CardFooter,\n CardHeader,\n ImageComponent = Image,\n image_url,\n og_scrape_url,\n onLongPress,\n onPress,\n onPressIn,\n preventPress,\n styles: stylesProp = {},\n text,\n thumb_url,\n title,\n type,\n } = props;\n\n const {\n theme: {\n colors: { accent_blue, black, blue_alice, transparent, white },\n messageSimple: {\n card: {\n authorName,\n authorNameContainer,\n authorNameFooter,\n authorNameFooterContainer,\n authorNameMask,\n container,\n cover,\n footer: { description, title: titleStyle, ...footerStyle },\n noURI,\n playButtonStyle: { roundedView },\n playIcon: { height, width },\n },\n },\n },\n } = useTheme();\n\n const uri = image_url || thumb_url;\n\n const defaultOnPress = () => openUrlSafely(og_scrape_url || uri);\n\n const isVideoCard = type === 'video' && og_scrape_url;\n\n return (\n <TouchableOpacity\n disabled={preventPress}\n onLongPress={(event) => {\n if (onLongPress) {\n onLongPress({\n additionalInfo: { url: og_scrape_url },\n emitter: 'card',\n event,\n });\n }\n }}\n onPress={(event) => {\n if (onPress) {\n onPress({\n additionalInfo: { url: og_scrape_url },\n defaultHandler: defaultOnPress,\n emitter: 'card',\n event,\n });\n }\n }}\n onPressIn={(event) => {\n if (onPressIn) {\n onPressIn({\n additionalInfo: { url: og_scrape_url },\n defaultHandler: defaultOnPress,\n emitter: 'card',\n event,\n });\n }\n }}\n style={[styles.container, container, stylesProp.container]}\n testID='card-attachment'\n {...additionalTouchableProps}\n >\n {CardHeader && <CardHeader {...props} />}\n {CardCover && <CardCover {...props} />}\n {uri && !CardCover && (\n <View>\n <ImageBackground\n ImageComponent={ImageComponent}\n imageStyle={styles.cardCover}\n resizeMode='cover'\n source={{ uri: makeImageCompatibleUrl(uri) }}\n style={[styles.cardCover, cover, stylesProp.cardCover]}\n >\n {isVideoCard ? (\n <View style={[styles.playButtonStyle, roundedView, { backgroundColor: white }]}>\n <Play height={height} pathFill={black} width={width} />\n </View>\n ) : null}\n </ImageBackground>\n {author_name && (\n <View style={[styles.authorNameMask, authorNameMask, stylesProp.authorNameMask]}>\n <View\n style={[\n styles.authorNameContainer,\n { backgroundColor: blue_alice },\n authorNameContainer,\n stylesProp.authorNameContainer,\n ]}\n >\n <Text\n style={[\n styles.authorName,\n { color: accent_blue },\n authorName,\n stylesProp.authorName,\n ]}\n >\n {author_name}\n </Text>\n </View>\n </View>\n )}\n </View>\n )}\n {CardFooter ? (\n <CardFooter {...props} />\n ) : (\n <View style={[styles.cardFooter, footerStyle, stylesProp.cardFooter]}>\n <View\n style={[\n { backgroundColor: transparent },\n !uri ? { borderLeftColor: accent_blue, ...noURI } : {},\n authorNameFooterContainer,\n stylesProp.authorNameFooterContainer,\n ]}\n >\n {!uri && author_name && (\n <Text\n style={[\n styles.authorNameFooter,\n { color: accent_blue },\n authorNameFooter,\n stylesProp.authorNameFooter,\n ]}\n >\n {author_name}\n </Text>\n )}\n {title && (\n <Text\n numberOfLines={1}\n style={[styles.title, { color: black }, titleStyle, stylesProp.title]}\n >\n {title}\n </Text>\n )}\n {text && (\n <Text\n numberOfLines={3}\n style={[styles.description, { color: black }, description, stylesProp.description]}\n >\n {text}\n </Text>\n )}\n </View>\n </View>\n )}\n </TouchableOpacity>\n );\n};\n\nconst areEqual = <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(\n prevProps: CardPropsWithContext<StreamChatGenerics>,\n nextProps: CardPropsWithContext<StreamChatGenerics>,\n) => {\n const { myMessageTheme: prevMyMessageTheme } = prevProps;\n const { myMessageTheme: nextMyMessageTheme } = nextProps;\n\n const messageThemeEqual =\n JSON.stringify(prevMyMessageTheme) === JSON.stringify(nextMyMessageTheme);\n if (!messageThemeEqual) return false;\n\n return true;\n};\n\nconst MemoizedCard = React.memo(CardWithContext, areEqual) as typeof CardWithContext;\n\nexport type CardProps<\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n> = Attachment<StreamChatGenerics> &\n Partial<\n Pick<ChatContextValue<StreamChatGenerics>, 'ImageComponent'> &\n Pick<\n MessageContextValue<StreamChatGenerics>,\n 'onLongPress' | 'onPress' | 'onPressIn' | 'myMessageTheme'\n > &\n Pick<\n MessagesContextValue<StreamChatGenerics>,\n 'additionalTouchableProps' | 'CardCover' | 'CardFooter' | 'CardHeader'\n >\n >;\n\n/**\n * UI component for card in attachments.\n */\nexport const Card = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>(\n props: CardProps<StreamChatGenerics>,\n) => {\n const { ImageComponent } = useChatContext<StreamChatGenerics>();\n const { message, onLongPress, onPress, onPressIn, preventPress } =\n useMessageContext<StreamChatGenerics>();\n const { additionalTouchableProps, CardCover, CardFooter, CardHeader, myMessageTheme } =\n useMessagesContext<StreamChatGenerics>();\n\n return (\n <MemoizedCard\n key={`${message?.id}${message?.updated_at}`} // press listeners must change on message update, updating key ensures this\n {...{\n additionalTouchableProps,\n CardCover,\n CardFooter,\n CardHeader,\n channelId: message.cid,\n ImageComponent,\n messageId: message.id,\n myMessageTheme,\n onLongPress,\n onPress,\n onPressIn,\n preventPress,\n }}\n {...props}\n />\n );\n};\n\nCard.displayName = 'Card{messageSimple{card}}';\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAcA,IAAAE,cAAA,GAAAF,OAAA;AAEA,IAAAG,YAAA,GAAAH,OAAA;AAEA,IAAAI,eAAA,GAAAJ,OAAA;AAIA,IAAAK,gBAAA,GAAAL,OAAA;AAIA,IAAAM,aAAA,GAAAN,OAAA;AACA,IAAAO,KAAA,GAAAP,OAAA;AAEA,IAAAQ,MAAA,GAAAR,OAAA;AACA,IAAAS,gBAAA,GAAAT,OAAA;AAAqD,IAAAU,SAAA;AAAA,IAAAC,KAAA;EAAAC,YAAA;AAErD,IAAMC,MAAM,GAAGC,uB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AwB;IAAEE,SAAS,GAAA6F,mBAAA,CAAT7F,SAAS;IAAEC,UAAU,GAAA4F,mBAAA,CAAV5F,UAAU;IAAEC,UAAU,GAAA2F,mBAAA,CAAV3F,UAAU;IAAE6E,cAAc,GAAAc,mBAAA,CAAdd,cAAc;EAGnF,OACEjI,MAAA,YAAAgG,aAAA,CAACsC,YAAY,MAAApC,SAAA;IACX+C,GAAG,QAAKH,OAAO,oBAAPA,OAAO,CAAEI,EAAE,KAAGJ,OAAO,oBAAPA,OAAO,CAAEK,UAAU,CAAG;IAE1CnG,wBAAwB,EAAxBA,wBAAwB;IACxBE,SAAS,EAATA,SAAS;IACTC,UAAU,EAAVA,UAAU;IACVC,UAAU,EAAVA,UAAU;IACVgG,SAAS,EAAEN,OAAO,CAACO,GAAG;IACtB/F,cAAc,EAAdA,cAAc;IACdgG,SAAS,EAAER,OAAO,CAACI,EAAE;IACrBjB,cAAc,EAAdA,cAAc;IACdvE,WAAW,EAAXA,WAAW;IACXC,OAAO,EAAPA,OAAO;IACPC,SAAS,EAATA,SAAS;IACTC,YAAY,EAAZA;EAAY,GAEVd,KAAK;IAAA4D,MAAA,EAAA9F,KAAA;IAAA+F,QAAA;MAAAC,QAAA,EAAA/F,YAAA;MAAAgG,UAAA;MAAAC,YAAA;IAAA;EAAA,EACV,CAAC;AAEN,CAAC;AAACwC,OAAA,CAAAd,IAAA,GAAAA,IAAA;AAEFA,IAAI,CAACe,WAAW,GAAG,2BAA2B"}
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_openUrlSafely","_ChatContext","_MessageContext","_MessagesContext","_ThemeContext","_Play","_utils","_ImageBackground","_jsxRuntime","_excluded","_this","_jsxFileName","styles","StyleSheet","create","authorName","fontSize","fontWeight","authorNameContainer","borderTopRightRadius","paddingHorizontal","paddingTop","authorNameFooter","padding","authorNameMask","bottom","left","position","cardCover","alignItems","borderRadius","height","justifyContent","marginHorizontal","cardFooter","flexDirection","container","overflow","width","description","playButtonStyle","elevation","title","CardWithContext","props","additionalTouchableProps","author_name","CardCover","CardFooter","CardHeader","image_url","_props$ImageComponent","ImageComponent","Image","og_scrape_url","onLongPress","onPress","onPressIn","preventPress","_props$styles","stylesProp","text","thumb_url","type","_useTheme","useTheme","_useTheme$theme","theme","_useTheme$theme$color","colors","accent_blue","black","blue_alice","transparent","white","_useTheme$theme$messa","messageSimple","card","authorNameFooterContainer","cover","_useTheme$theme$messa2","footer","titleStyle","footerStyle","_objectWithoutProperties2","noURI","roundedView","_useTheme$theme$messa3","playIcon","uri","defaultOnPress","openUrlSafely","isVideoCard","jsxs","TouchableOpacity","Object","assign","disabled","event","additionalInfo","url","emitter","defaultHandler","style","testID","children","jsx","View","ImageBackground","imageStyle","resizeMode","source","makeImageCompatibleUrl","backgroundColor","Play","pathFill","Text","color","borderLeftColor","numberOfLines","areEqual","prevProps","nextProps","prevMyMessageTheme","myMessageTheme","nextMyMessageTheme","messageThemeEqual","JSON","stringify","MemoizedCard","React","memo","Card","_useChatContext","useChatContext","_useMessageContext","useMessageContext","message","_useMessagesContext","useMessagesContext","channelId","cid","messageId","id","concat","updated_at","exports","displayName"],"sourceRoot":"../../../../src","sources":["components/Attachment/Card.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAcA,IAAAE,cAAA,GAAAF,OAAA;AAEA,IAAAG,YAAA,GAAAH,OAAA;AAEA,IAAAI,eAAA,GAAAJ,OAAA;AAIA,IAAAK,gBAAA,GAAAL,OAAA;AAIA,IAAAM,aAAA,GAAAN,OAAA;AACA,IAAAO,KAAA,GAAAP,OAAA;AAEA,IAAAQ,MAAA,GAAAR,OAAA;AACA,IAAAS,gBAAA,GAAAT,OAAA;AAAqD,IAAAU,WAAA,GAAAV,OAAA;AAAA,IAAAW,SAAA;AAAA,IAAAC,KAAA;EAAAC,YAAA;AAErD,IAAMC,MAAM,GAAGC,uBAAU,CAACC,MA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AE2E,cAAc,GAAAc,mBAAA,CAAdd,cAAc;EAGnF,OACE,IAAApH,WAAA,CAAAkG,GAAA,EAACuB,YAAY,EAAAlC,MAAA,CAAAC,MAAA;IAGTnD,wBAAwB,EAAxBA,wBAAwB;IACxBE,SAAS,EAATA,SAAS;IACTC,UAAU,EAAVA,UAAU;IACVC,UAAU,EAAVA,UAAU;IACV2F,SAAS,EAAEH,OAAO,CAACI,GAAG;IACtBzF,cAAc,EAAdA,cAAc;IACd0F,SAAS,EAAEL,OAAO,CAACM,EAAE;IACrBnB,cAAc,EAAdA,cAAc;IACdrE,WAAW,EAAXA,WAAW;IACXC,OAAO,EAAPA,OAAO;IACPC,SAAS,EAATA,SAAS;IACTC,YAAY,EAAZA;EAAY,GAEVd,KAAK,MAAAoG,MAAA,CAfDP,OAAO,oBAAPA,OAAO,CAAEM,EAAE,EAAAC,MAAA,CAAGP,OAAO,oBAAPA,OAAO,CAAEQ,UAAU,CAgB1C,CAAC;AAEN,CAAC;AAACC,OAAA,CAAAd,IAAA,GAAAA,IAAA;AAEFA,IAAI,CAACe,WAAW,GAAG,2BAA2B","ignoreList":[]}
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3
3
|
value: true
|
|
4
4
|
});
|
|
5
5
|
exports.getFileSizeDisplayText = exports.FileAttachment = void 0;
|
|
6
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
7
6
|
var _react = _interopRequireDefault(require("react"));
|
|
8
7
|
var _reactNative = require("react-native");
|
|
9
8
|
var _openUrlSafely = require("./utils/openUrlSafely");
|
|
@@ -13,6 +12,7 @@ var _MessageContext = require("../../contexts/messageContext/MessageContext");
|
|
|
13
12
|
var _MessagesContext = require("../../contexts/messagesContext/MessagesContext");
|
|
14
13
|
var _ThemeContext = require("../../contexts/themeContext/ThemeContext");
|
|
15
14
|
var _useViewport2 = require("../../hooks/useViewport");
|
|
15
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
16
|
var _this = this,
|
|
17
17
|
_jsxFileName = "/home/runner/work/stream-chat-react-native/stream-chat-react-native/package/src/components/Attachment/FileAttachment.tsx";
|
|
18
18
|
var styles = _reactNative.StyleSheet.create({
|
|
@@ -37,8 +37,8 @@ var FileAttachmentWithContext = function FileAttachmentWithContext(props) {
|
|
|
37
37
|
var _attachment$actions;
|
|
38
38
|
var additionalTouchableProps = props.additionalTouchableProps,
|
|
39
39
|
attachment = props.attachment,
|
|
40
|
-
attachmentSize = props.attachmentSize,
|
|
41
40
|
AttachmentActions = props.AttachmentActions,
|
|
41
|
+
attachmentSize = props.attachmentSize,
|
|
42
42
|
FileAttachmentIcon = props.FileAttachmentIcon,
|
|
43
43
|
_onLongPress = props.onLongPress,
|
|
44
44
|
_onPress = props.onPress,
|
|
@@ -62,7 +62,7 @@ var FileAttachmentWithContext = function FileAttachmentWithContext(props) {
|
|
|
62
62
|
var defaultOnPress = function defaultOnPress() {
|
|
63
63
|
return (0, _openUrlSafely.openUrlSafely)(attachment.asset_url);
|
|
64
64
|
};
|
|
65
|
-
return
|
|
65
|
+
return (0, _jsxRuntime.jsxs)(_reactNative.TouchableOpacity, Object.assign({
|
|
66
66
|
disabled: preventPress,
|
|
67
67
|
onLongPress: function onLongPress(event) {
|
|
68
68
|
if (_onLongPress) {
|
|
@@ -101,70 +101,32 @@ var FileAttachmentWithContext = function FileAttachmentWithContext(props) {
|
|
|
101
101
|
},
|
|
102
102
|
testID: "file-attachment"
|
|
103
103
|
}, additionalTouchableProps, {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
}
|
|
129
|
-
})
|
|
130
|
-
style: [styles.details, {
|
|
131
|
-
maxWidth: vw(60)
|
|
132
|
-
}, details, stylesProp.details],
|
|
133
|
-
__self: _this,
|
|
134
|
-
__source: {
|
|
135
|
-
fileName: _jsxFileName,
|
|
136
|
-
lineNumber: 137,
|
|
137
|
-
columnNumber: 9
|
|
138
|
-
}
|
|
139
|
-
}, _react["default"].createElement(_reactNative.Text, {
|
|
140
|
-
numberOfLines: 2,
|
|
141
|
-
style: [styles.title, {
|
|
142
|
-
color: black
|
|
143
|
-
}, title, stylesProp.title],
|
|
144
|
-
__self: _this,
|
|
145
|
-
__source: {
|
|
146
|
-
fileName: _jsxFileName,
|
|
147
|
-
lineNumber: 147,
|
|
148
|
-
columnNumber: 11
|
|
149
|
-
}
|
|
150
|
-
}, attachment.title), _react["default"].createElement(_reactNative.Text, {
|
|
151
|
-
style: [styles.size, {
|
|
152
|
-
color: grey
|
|
153
|
-
}, fileSize, stylesProp.size],
|
|
154
|
-
__self: _this,
|
|
155
|
-
__source: {
|
|
156
|
-
fileName: _jsxFileName,
|
|
157
|
-
lineNumber: 150,
|
|
158
|
-
columnNumber: 11
|
|
159
|
-
}
|
|
160
|
-
}, getFileSizeDisplayText(attachment.file_size)))), (_attachment$actions = attachment.actions) != null && _attachment$actions.length ? _react["default"].createElement(AttachmentActions, (0, _extends2["default"])({}, attachment, {
|
|
161
|
-
__self: _this,
|
|
162
|
-
__source: {
|
|
163
|
-
fileName: _jsxFileName,
|
|
164
|
-
lineNumber: 155,
|
|
165
|
-
columnNumber: 37
|
|
166
|
-
}
|
|
167
|
-
})) : null);
|
|
104
|
+
children: [(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
105
|
+
style: [styles.container, {
|
|
106
|
+
backgroundColor: white
|
|
107
|
+
}, container, stylesProp.container],
|
|
108
|
+
children: [(0, _jsxRuntime.jsx)(FileAttachmentIcon, {
|
|
109
|
+
mimeType: attachment.mime_type,
|
|
110
|
+
size: attachmentSize
|
|
111
|
+
}), (0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
112
|
+
style: [styles.details, {
|
|
113
|
+
maxWidth: vw(60)
|
|
114
|
+
}, details, stylesProp.details],
|
|
115
|
+
children: [(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
116
|
+
numberOfLines: 2,
|
|
117
|
+
style: [styles.title, {
|
|
118
|
+
color: black
|
|
119
|
+
}, title, stylesProp.title],
|
|
120
|
+
children: attachment.title
|
|
121
|
+
}), (0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
122
|
+
style: [styles.size, {
|
|
123
|
+
color: grey
|
|
124
|
+
}, fileSize, stylesProp.size],
|
|
125
|
+
children: getFileSizeDisplayText(attachment.file_size)
|
|
126
|
+
})]
|
|
127
|
+
})]
|
|
128
|
+
}), (_attachment$actions = attachment.actions) != null && _attachment$actions.length ? (0, _jsxRuntime.jsx)(AttachmentActions, Object.assign({}, attachment)) : null]
|
|
129
|
+
}));
|
|
168
130
|
};
|
|
169
131
|
var FileAttachment = function FileAttachment(props) {
|
|
170
132
|
var _useMessageContext = (0, _MessageContext.useMessageContext)(),
|
|
@@ -178,7 +140,7 @@ var FileAttachment = function FileAttachment(props) {
|
|
|
178
140
|
AttachmentActions = _useMessagesContext$A === void 0 ? _AttachmentActions.AttachmentActions : _useMessagesContext$A,
|
|
179
141
|
_useMessagesContext$F = _useMessagesContext.FileAttachmentIcon,
|
|
180
142
|
FileAttachmentIcon = _useMessagesContext$F === void 0 ? _FileIcon.FileIcon : _useMessagesContext$F;
|
|
181
|
-
return
|
|
143
|
+
return (0, _jsxRuntime.jsx)(FileAttachmentWithContext, Object.assign({
|
|
182
144
|
additionalTouchableProps: additionalTouchableProps,
|
|
183
145
|
AttachmentActions: AttachmentActions,
|
|
184
146
|
FileAttachmentIcon: FileAttachmentIcon,
|
|
@@ -186,14 +148,7 @@ var FileAttachment = function FileAttachment(props) {
|
|
|
186
148
|
onPress: onPress,
|
|
187
149
|
onPressIn: onPressIn,
|
|
188
150
|
preventPress: preventPress
|
|
189
|
-
}, props
|
|
190
|
-
__self: _this,
|
|
191
|
-
__source: {
|
|
192
|
-
fileName: _jsxFileName,
|
|
193
|
-
lineNumber: 178,
|
|
194
|
-
columnNumber: 5
|
|
195
|
-
}
|
|
196
|
-
}));
|
|
151
|
+
}, props));
|
|
197
152
|
};
|
|
198
153
|
exports.FileAttachment = FileAttachment;
|
|
199
154
|
var getFileSizeDisplayText = function getFileSizeDisplayText(size) {
|
|
@@ -202,9 +157,9 @@ var getFileSizeDisplayText = function getFileSizeDisplayText(size) {
|
|
|
202
157
|
size = parseFloat(size);
|
|
203
158
|
}
|
|
204
159
|
if (size < 1000 * 1000) {
|
|
205
|
-
return Math.floor(Math.floor(size / 10) / 100)
|
|
160
|
+
return "".concat(Math.floor(Math.floor(size / 10) / 100), " KB");
|
|
206
161
|
}
|
|
207
|
-
return Math.floor(Math.floor(size / 10000) / 100)
|
|
162
|
+
return "".concat(Math.floor(Math.floor(size / 10000) / 100), " MB");
|
|
208
163
|
};
|
|
209
164
|
exports.getFileSizeDisplayText = getFileSizeDisplayText;
|
|
210
165
|
FileAttachment.displayName = 'FileAttachment{messageSimple{file}}';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_openUrlSafely","_AttachmentActions","_FileIcon","_MessageContext","_MessagesContext","_ThemeContext","_useViewport2","_this","_jsxFileName","styles","StyleSheet","create","container","alignItems","borderRadius","flexDirection","padding","details","paddingLeft","size","fontSize","title","fontWeight","FileAttachmentWithContext","props","_attachment$actions","additionalTouchableProps","attachment","attachmentSize","AttachmentActions","FileAttachmentIcon","onLongPress","onPress","onPressIn","preventPress","_props$styles","stylesProp","_useTheme","useTheme","_useTheme$theme","theme","_useTheme$theme$color","colors","black","grey","white","_useTheme$theme$messa","messageSimple","file","fileSize","_useViewport","useViewport","vw","defaultOnPress","openUrlSafely","asset_url","createElement","TouchableOpacity","_extends2","disabled","event","additionalInfo","emitter","defaultHandler","testID","__self","__source","fileName","lineNumber","columnNumber","View","style","backgroundColor","mimeType","mime_type","maxWidth","Text","numberOfLines","color","getFileSizeDisplayText","file_size","actions","length","FileAttachment","_useMessageContext","useMessageContext","_useMessagesContext","useMessagesContext","_useMessagesContext$A","AttachmentActionsDefault","_useMessagesContext$F","FileIconDefault","exports","parseFloat","Math","floor","displayName"],"sources":["FileAttachment.tsx"],"sourcesContent":["import React from 'react';\nimport {\n StyleProp,\n StyleSheet,\n Text,\n TextStyle,\n TouchableOpacity,\n View,\n ViewStyle,\n} from 'react-native';\n\nimport type { Attachment } from 'stream-chat';\n\nimport { openUrlSafely } from './utils/openUrlSafely';\n\nimport { AttachmentActions as AttachmentActionsDefault } from '../../components/Attachment/AttachmentActions';\nimport { FileIcon as FileIconDefault } from '../../components/Attachment/FileIcon';\nimport {\n MessageContextValue,\n useMessageContext,\n} from '../../contexts/messageContext/MessageContext';\nimport {\n MessagesContextValue,\n useMessagesContext,\n} from '../../contexts/messagesContext/MessagesContext';\nimport { useTheme } from '../../contexts/themeContext/ThemeContext';\nimport { useViewport } from '../../hooks/useViewport';\nimport type { DefaultStreamChatGenerics } from '../../types/types';\n\nconst styles = StyleSheet.create({\n container: {\n alignItems: 'center',\n borderRadius: 12,\n flexDirection: 'row',\n padding: 8,\n },\n details: {\n paddingLeft: 16,\n },\n size: {\n fontSize: 12,\n },\n title: {\n fontSize: 14,\n fontWeight: '700',\n },\n});\n\nexport type FileAttachmentPropsWithContext<\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n> = Pick<\n MessageContextValue<StreamChatGenerics>,\n 'onLongPress' | 'onPress' | 'onPressIn' | 'preventPress'\n> &\n Pick<\n MessagesContextValue<StreamChatGenerics>,\n 'additionalTouchableProps' | 'AttachmentActions' | 'FileAttachmentIcon'\n > & {\n /** The attachment to render */\n attachment: Attachment<StreamChatGenerics>;\n attachmentSize?: number;\n styles?: Partial<{\n container: StyleProp<ViewStyle>;\n details: StyleProp<ViewStyle>;\n size: StyleProp<TextStyle>;\n title: StyleProp<TextStyle>;\n }>;\n };\n\nconst FileAttachmentWithContext = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>(\n props: FileAttachmentPropsWithContext<StreamChatGenerics>,\n) => {\n const {\n additionalTouchableProps,\n attachment,\n attachmentSize,\n AttachmentActions,\n FileAttachmentIcon,\n onLongPress,\n onPress,\n onPressIn,\n preventPress,\n styles: stylesProp = {},\n } = props;\n\n const {\n theme: {\n colors: { black, grey, white },\n messageSimple: {\n file: { container, details, fileSize, title },\n },\n },\n } = useTheme();\n const { vw } = useViewport();\n\n const defaultOnPress = () => openUrlSafely(attachment.asset_url);\n\n return (\n <TouchableOpacity\n disabled={preventPress}\n onLongPress={(event) => {\n if (onLongPress) {\n onLongPress({\n additionalInfo: { attachment },\n emitter: 'fileAttachment',\n event,\n });\n }\n }}\n onPress={(event) => {\n if (onPress) {\n onPress({\n additionalInfo: { attachment },\n defaultHandler: defaultOnPress,\n emitter: 'fileAttachment',\n event,\n });\n }\n }}\n onPressIn={(event) => {\n if (onPressIn) {\n onPressIn({\n additionalInfo: { attachment },\n defaultHandler: defaultOnPress,\n emitter: 'fileAttachment',\n event,\n });\n }\n }}\n testID='file-attachment'\n {...additionalTouchableProps}\n >\n <View style={[styles.container, { backgroundColor: white }, container, stylesProp.container]}>\n <FileAttachmentIcon mimeType={attachment.mime_type} size={attachmentSize} />\n <View\n style={[\n styles.details,\n {\n maxWidth: vw(60),\n },\n details,\n stylesProp.details,\n ]}\n >\n <Text numberOfLines={2} style={[styles.title, { color: black }, title, stylesProp.title]}>\n {attachment.title}\n </Text>\n <Text style={[styles.size, { color: grey }, fileSize, stylesProp.size]}>\n {getFileSizeDisplayText(attachment.file_size)}\n </Text>\n </View>\n </View>\n {attachment.actions?.length ? <AttachmentActions {...attachment} /> : null}\n </TouchableOpacity>\n );\n};\n\nexport type FileAttachmentProps<\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n> = Partial<Omit<FileAttachmentPropsWithContext<StreamChatGenerics>, 'attachment'>> &\n Pick<FileAttachmentPropsWithContext<StreamChatGenerics>, 'attachment'>;\n\nexport const FileAttachment = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>(\n props: FileAttachmentProps<StreamChatGenerics>,\n) => {\n const { onLongPress, onPress, onPressIn, preventPress } = useMessageContext<StreamChatGenerics>();\n const {\n additionalTouchableProps,\n AttachmentActions = AttachmentActionsDefault,\n FileAttachmentIcon = FileIconDefault,\n } = useMessagesContext<StreamChatGenerics>();\n\n return (\n <FileAttachmentWithContext\n {...{\n additionalTouchableProps,\n AttachmentActions,\n FileAttachmentIcon,\n onLongPress,\n onPress,\n onPressIn,\n preventPress,\n }}\n {...props}\n />\n );\n};\n\nexport const getFileSizeDisplayText = (size?: number | string) => {\n if (!size) return;\n if (typeof size === 'string') {\n size = parseFloat(size);\n }\n\n if (size < 1000 * 1000) {\n return `${Math.floor(Math.floor(size / 10) / 100)} KB`;\n }\n\n return `${Math.floor(Math.floor(size / 10000) / 100)} MB`;\n};\n\nFileAttachment.displayName = 'FileAttachment{messageSimple{file}}';\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAYA,IAAAE,cAAA,GAAAF,OAAA;AAEA,IAAAG,kBAAA,GAAAH,OAAA;AACA,IAAAI,SAAA,GAAAJ,OAAA;AACA,IAAAK,eAAA,GAAAL,OAAA;AAIA,IAAAM,gBAAA,GAAAN,OAAA;AAIA,IAAAO,aAAA,GAAAP,OAAA;AACA,IAAAQ,aAAA,GAAAR,OAAA;AAAsD,IAAAS,KAAA;EAAAC,YAAA;AAGtD,IAAMC,MAAM,GAAGC,uBAAU,CAACC,MAAM,CAAC;EAC/BC,SAAS,EAAE;IACTC,UAAU,EAAE,QAAQ;IACpBC,Y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;IAAlBA,kBAAkB,GAAA4D,qBAAA,cAAGC,kBAAe,GAAAD,qBAAA;EAGtC,OACE9F,MAAA,YAAA4D,aAAA,CAACjC,yBAAyB,MAAAmC,SAAA;IAEtBhC,wBAAwB,EAAxBA,wBAAwB;IACxBG,iBAAiB,EAAjBA,iBAAiB;IACjBC,kBAAkB,EAAlBA,kBAAkB;IAClBC,WAAW,EAAXA,WAAW;IACXC,OAAO,EAAPA,OAAO;IACPC,SAAS,EAATA,SAAS;IACTC,YAAY,EAAZA;EAAY,GAEVV,KAAK;IAAAyC,MAAA,EAAA1D,KAAA;IAAA2D,QAAA;MAAAC,QAAA,EAAA3D,YAAA;MAAA4D,UAAA;MAAAC,YAAA;IAAA;EAAA,EACV,CAAC;AAEN,CAAC;AAACuB,OAAA,CAAAT,cAAA,GAAAA,cAAA;AAEK,IAAMJ,sBAAsB,GAAG,SAAzBA,sBAAsBA,CAAI5D,IAAsB,EAAK;EAChE,IAAI,CAACA,IAAI,EAAE;EACX,IAAI,OAAOA,IAAI,KAAK,QAAQ,EAAE;IAC5BA,IAAI,GAAG0E,UAAU,CAAC1E,IAAI,CAAC;EACzB;EAEA,IAAIA,IAAI,GAAG,IAAI,GAAG,IAAI,EAAE;IACtB,OAAU2E,IAAI,CAACC,KAAK,CAACD,IAAI,CAACC,KAAK,CAAC5E,IAAI,GAAG,EAAE,CAAC,GAAG,GAAG,CAAC;EACnD;EAEA,OAAU2E,IAAI,CAACC,KAAK,CAACD,IAAI,CAACC,KAAK,CAAC5E,IAAI,GAAG,KAAK,CAAC,GAAG,GAAG,CAAC;AACtD,CAAC;AAACyE,OAAA,CAAAb,sBAAA,GAAAA,sBAAA;AAEFI,cAAc,CAACa,WAAW,GAAG,qCAAqC"}
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_openUrlSafely","_AttachmentActions","_FileIcon","_MessageContext","_MessagesContext","_ThemeContext","_useViewport2","_jsxRuntime","_this","_jsxFileName","styles","StyleSheet","create","container","alignItems","borderRadius","flexDirection","padding","details","paddingLeft","size","fontSize","title","fontWeight","FileAttachmentWithContext","props","_attachment$actions","additionalTouchableProps","attachment","AttachmentActions","attachmentSize","FileAttachmentIcon","onLongPress","onPress","onPressIn","preventPress","_props$styles","stylesProp","_useTheme","useTheme","_useTheme$theme","theme","_useTheme$theme$color","colors","black","grey","white","_useTheme$theme$messa","messageSimple","file","fileSize","_useViewport","useViewport","vw","defaultOnPress","openUrlSafely","asset_url","jsxs","TouchableOpacity","Object","assign","disabled","event","additionalInfo","emitter","defaultHandler","testID","children","View","style","backgroundColor","jsx","mimeType","mime_type","maxWidth","Text","numberOfLines","color","getFileSizeDisplayText","file_size","actions","length","FileAttachment","_useMessageContext","useMessageContext","_useMessagesContext","useMessagesContext","_useMessagesContext$A","AttachmentActionsDefault","_useMessagesContext$F","FileIconDefault","exports","parseFloat","concat","Math","floor","displayName"],"sourceRoot":"../../../../src","sources":["components/Attachment/FileAttachment.tsx"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAYA,IAAAE,cAAA,GAAAF,OAAA;AAEA,IAAAG,kBAAA,GAAAH,OAAA;AACA,IAAAI,SAAA,GAAAJ,OAAA;AACA,IAAAK,eAAA,GAAAL,OAAA;AAIA,IAAAM,gBAAA,GAAAN,OAAA;AAIA,IAAAO,aAAA,GAAAP,OAAA;AACA,IAAAQ,aAAA,GAAAR,OAAA;AAAsD,IAAAS,WAAA,GAAAT,OAAA;AAAA,IAAAU,KAAA;EAAAC,YAAA;AAGtD,IAAMC,MAAM,GAAGC,uBAAU,CAACC,MAAM,CAAC;EAC/BC,SAAS,EAAE;IACTC,UAAU,EAAE,QAAQ;IACpBC,YAAY,EAAE,EAAE;IAChBC,aAAa,EAAE,KAAK;IACpBC,OAAO,EAAE;EACX,CAAC;EACDC,OAAO,EAAE;IACPC,WAAW,EAAE;EACf,CAAC;EACDC,IAAI,EAAE;I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D,IAAI,CAACC,KAAK,CAAC3E,IAAI,GAAG,EAAE,CAAC,GAAG,GAAG,CAAC;EACnD;EAEA,UAAAyE,MAAA,CAAUC,IAAI,CAACC,KAAK,CAACD,IAAI,CAACC,KAAK,CAAC3E,IAAI,GAAG,KAAK,CAAC,GAAG,GAAG,CAAC;AACtD,CAAC;AAACuE,OAAA,CAAAb,sBAAA,GAAAA,sBAAA;AAEFI,cAAc,CAACc,WAAW,GAAG,qCAAqC","ignoreList":[]}
|
|
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.FileAttachmentGroup = void 0;
|
|
7
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
8
7
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
9
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
9
|
var _reactNative = require("react-native");
|
|
@@ -13,10 +12,11 @@ var _MessageContext = require("../../contexts/messageContext/MessageContext");
|
|
|
13
12
|
var _MessagesContext = require("../../contexts/messagesContext/MessagesContext");
|
|
14
13
|
var _ThemeContext = require("../../contexts/themeContext/ThemeContext");
|
|
15
14
|
var _native = require("../../native");
|
|
15
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
16
|
var _this = this,
|
|
17
17
|
_jsxFileName = "/home/runner/work/stream-chat-react-native/stream-chat-react-native/package/src/components/Attachment/FileAttachmentGroup.tsx";
|
|
18
|
-
function _getRequireWildcardCache(
|
|
19
|
-
function _interopRequireWildcard(
|
|
18
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
19
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
20
20
|
var FILE_PREVIEW_HEIGHT = 60;
|
|
21
21
|
var styles = _reactNative.StyleSheet.create({
|
|
22
22
|
container: {
|
|
@@ -45,7 +45,7 @@ var FileAttachmentGroupWithContext = function FileAttachmentGroupWithContext(pro
|
|
|
45
45
|
setFilesToDisplay = _useState2[1];
|
|
46
46
|
(0, _react.useEffect)(function () {
|
|
47
47
|
setFilesToDisplay(files.map(function (file) {
|
|
48
|
-
return (
|
|
48
|
+
return Object.assign({}, file, {
|
|
49
49
|
duration: 0,
|
|
50
50
|
paused: true,
|
|
51
51
|
progress: 0
|
|
@@ -55,7 +55,7 @@ var FileAttachmentGroupWithContext = function FileAttachmentGroupWithContext(pro
|
|
|
55
55
|
var onLoad = function onLoad(index, duration) {
|
|
56
56
|
setFilesToDisplay(function (prevFilesToDisplay) {
|
|
57
57
|
return prevFilesToDisplay.map(function (fileToDisplay, id) {
|
|
58
|
-
return (
|
|
58
|
+
return Object.assign({}, fileToDisplay, {
|
|
59
59
|
duration: id.toString() === index ? duration : fileToDisplay.duration
|
|
60
60
|
});
|
|
61
61
|
});
|
|
@@ -64,7 +64,7 @@ var FileAttachmentGroupWithContext = function FileAttachmentGroupWithContext(pro
|
|
|
64
64
|
var onProgress = function onProgress(index, currentTime, hasEnd) {
|
|
65
65
|
setFilesToDisplay(function (prevFileUploads) {
|
|
66
66
|
return prevFileUploads.map(function (fileUpload, id) {
|
|
67
|
-
return (
|
|
67
|
+
return Object.assign({}, fileUpload, {
|
|
68
68
|
progress: id.toString() === index ? hasEnd ? 1 : currentTime ? currentTime / fileUpload.duration : 0 : fileUpload.progress
|
|
69
69
|
});
|
|
70
70
|
});
|
|
@@ -74,7 +74,7 @@ var FileAttachmentGroupWithContext = function FileAttachmentGroupWithContext(pro
|
|
|
74
74
|
if (pausedStatus === false) {
|
|
75
75
|
setFilesToDisplay(function (prevFileUploads) {
|
|
76
76
|
return prevFileUploads.map(function (fileUpload, id) {
|
|
77
|
-
return (
|
|
77
|
+
return Object.assign({}, fileUpload, {
|
|
78
78
|
paused: id.toString() !== index
|
|
79
79
|
});
|
|
80
80
|
});
|
|
@@ -82,7 +82,7 @@ var FileAttachmentGroupWithContext = function FileAttachmentGroupWithContext(pro
|
|
|
82
82
|
} else {
|
|
83
83
|
setFilesToDisplay(function (prevFileUploads) {
|
|
84
84
|
return prevFileUploads.map(function (fileUpload) {
|
|
85
|
-
return (
|
|
85
|
+
return Object.assign({}, fileUpload, {
|
|
86
86
|
paused: true
|
|
87
87
|
});
|
|
88
88
|
});
|
|
@@ -95,72 +95,44 @@ var FileAttachmentGroupWithContext = function FileAttachmentGroupWithContext(pro
|
|
|
95
95
|
grey_whisper = _useTheme$theme$color.grey_whisper,
|
|
96
96
|
white = _useTheme$theme$color.white,
|
|
97
97
|
container = _useTheme$theme.messageSimple.fileAttachmentGroup.container;
|
|
98
|
-
return
|
|
98
|
+
return (0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
99
99
|
style: [styles.container, container, stylesProp.container],
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
file: {
|
|
137
|
-
name: file.title,
|
|
138
|
-
uri: file.asset_url
|
|
139
|
-
},
|
|
140
|
-
id: index.toString(),
|
|
141
|
-
paused: file.paused,
|
|
142
|
-
progress: file.progress
|
|
143
|
-
},
|
|
144
|
-
onLoad: onLoad,
|
|
145
|
-
onPlayPause: onPlayPause,
|
|
146
|
-
onProgress: onProgress,
|
|
147
|
-
testID: "audio-attachment-preview",
|
|
148
|
-
__self: _this,
|
|
149
|
-
__source: {
|
|
150
|
-
fileName: _jsxFileName,
|
|
151
|
-
lineNumber: 157,
|
|
152
|
-
columnNumber: 15
|
|
153
|
-
}
|
|
154
|
-
})) : _react["default"].createElement(Attachment, {
|
|
155
|
-
attachment: file,
|
|
156
|
-
__self: _this,
|
|
157
|
-
__source: {
|
|
158
|
-
fileName: _jsxFileName,
|
|
159
|
-
lineNumber: 172,
|
|
160
|
-
columnNumber: 13
|
|
161
|
-
}
|
|
162
|
-
}));
|
|
163
|
-
}));
|
|
100
|
+
children: filesToDisplay.map(function (file, index) {
|
|
101
|
+
return (0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
102
|
+
style: [{
|
|
103
|
+
paddingBottom: index !== files.length - 1 ? 4 : 0
|
|
104
|
+
}, stylesProp.attachmentContainer],
|
|
105
|
+
children: file.type === 'audio' && (0, _native.isAudioPackageAvailable)() ? (0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
106
|
+
accessibilityLabel: "audio-attachment-preview",
|
|
107
|
+
style: [styles.fileContainer, index === filesToDisplay.length - 1 ? {
|
|
108
|
+
marginBottom: 0
|
|
109
|
+
} : {}, {
|
|
110
|
+
backgroundColor: white,
|
|
111
|
+
borderColor: grey_whisper,
|
|
112
|
+
width: -16
|
|
113
|
+
}],
|
|
114
|
+
children: (0, _jsxRuntime.jsx)(AudioAttachment, {
|
|
115
|
+
item: {
|
|
116
|
+
duration: file.duration,
|
|
117
|
+
file: {
|
|
118
|
+
name: file.title,
|
|
119
|
+
uri: file.asset_url
|
|
120
|
+
},
|
|
121
|
+
id: index.toString(),
|
|
122
|
+
paused: file.paused,
|
|
123
|
+
progress: file.progress
|
|
124
|
+
},
|
|
125
|
+
onLoad: onLoad,
|
|
126
|
+
onPlayPause: onPlayPause,
|
|
127
|
+
onProgress: onProgress,
|
|
128
|
+
testID: "audio-attachment-preview"
|
|
129
|
+
})
|
|
130
|
+
}) : (0, _jsxRuntime.jsx)(Attachment, {
|
|
131
|
+
attachment: file
|
|
132
|
+
})
|
|
133
|
+
}, "".concat(messageId, "-").concat(index));
|
|
134
|
+
})
|
|
135
|
+
});
|
|
164
136
|
};
|
|
165
137
|
var areEqual = function areEqual(prevProps, nextProps) {
|
|
166
138
|
var prevFiles = prevProps.files;
|
|
@@ -179,17 +151,11 @@ var FileAttachmentGroup = function FileAttachmentGroup(props) {
|
|
|
179
151
|
AudioAttachment = _useMessagesContext.AudioAttachment;
|
|
180
152
|
var files = propFiles || contextFiles;
|
|
181
153
|
if (!files.length) return null;
|
|
182
|
-
return
|
|
154
|
+
return (0, _jsxRuntime.jsx)(MemoizedFileAttachmentGroup, {
|
|
183
155
|
Attachment: Attachment,
|
|
184
156
|
AudioAttachment: AudioAttachment,
|
|
185
157
|
files: files,
|
|
186
|
-
messageId: messageId
|
|
187
|
-
__self: _this,
|
|
188
|
-
__source: {
|
|
189
|
-
fileName: _jsxFileName,
|
|
190
|
-
lineNumber: 217,
|
|
191
|
-
columnNumber: 5
|
|
192
|
-
}
|
|
158
|
+
messageId: messageId
|
|
193
159
|
});
|
|
194
160
|
};
|
|
195
161
|
exports.FileAttachmentGroup = FileAttachmentGroup;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_Attachment","_MessageContext","_MessagesContext","_ThemeContext","_native","_this","_jsxFileName","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","_typeof","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","FILE_PREVIEW_HEIGHT","styles","StyleSheet","create","container","padding","fileContainer","borderRadius","borderWidth","flexDirection","height","justifyContent","paddingLeft","paddingRight","FileAttachmentGroupWithContext","props","Attachment","AudioAttachment","files","messageId","_props$styles","stylesProp","_useState","useState","_useState2","_slicedToArray2","filesToDisplay","setFilesToDisplay","useEffect","map","file","_extends2","duration","paused","progress","onLoad","index","prevFilesToDisplay","fileToDisplay","id","toString","onProgress","currentTime","hasEnd","prevFileUploads","fileUpload","onPlayPause","pausedStatus","_useTheme","useTheme","_useTheme$theme","theme","_useTheme$theme$color","colors","grey_whisper","white","messageSimple","fileAttachmentGroup","createElement","View","style","__self","__source","fileName","lineNumber","columnNumber","paddingBottom","length","attachmentContainer","type","isAudioPackageAvailable","accessibilityLabel","marginBottom","backgroundColor","borderColor","width","item","name","title","uri","asset_url","testID","attachment","areEqual","prevProps","nextProps","prevFiles","nextFiles","MemoizedFileAttachmentGroup","React","memo","FileAttachmentGroup","propFiles","_useMessageContext","useMessageContext","contextFiles","_useMessagesContext","useMessagesContext","_useMessagesContext$A","AttachmentDefault","exports","displayName"],"sources":["FileAttachmentGroup.tsx"],"sourcesContent":["import React, { useEffect, useState } from 'react';\nimport { StyleProp, StyleSheet, View, ViewStyle } from 'react-native';\n\nimport type { Attachment } from 'stream-chat';\n\nimport { Attachment as AttachmentDefault } from './Attachment';\n\nimport {\n MessageContextValue,\n useMessageContext,\n} from '../../contexts/messageContext/MessageContext';\n\nimport {\n MessagesContextValue,\n useMessagesContext,\n} from '../../contexts/messagesContext/MessagesContext';\nimport { useTheme } from '../../contexts/themeContext/ThemeContext';\nimport { isAudioPackageAvailable } from '../../native';\n\nimport type { DefaultStreamChatGenerics } from '../../types/types';\n\nconst FILE_PREVIEW_HEIGHT = 60;\n\nconst styles = StyleSheet.create({\n container: {\n padding: 4,\n },\n fileContainer: {\n borderRadius: 12,\n borderWidth: 1,\n flexDirection: 'row',\n height: FILE_PREVIEW_HEIGHT,\n justifyContent: 'space-between',\n paddingLeft: 8,\n paddingRight: 8,\n },\n});\n\nexport type FileAttachmentGroupPropsWithContext<\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n> = Pick<MessageContextValue<StreamChatGenerics>, 'files'> &\n Pick<MessagesContextValue<StreamChatGenerics>, 'Attachment' | 'AudioAttachment'> & {\n /**\n * The unique id for the message with file attachments\n */\n messageId: string;\n styles?: Partial<{\n attachmentContainer: StyleProp<ViewStyle>;\n container: StyleProp<ViewStyle>;\n }>;\n };\n\ntype FilesToDisplayType<\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n> = Attachment<StreamChatGenerics> & {\n duration: number;\n paused: boolean;\n progress: number;\n};\n\nconst FileAttachmentGroupWithContext = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>(\n props: FileAttachmentGroupPropsWithContext<StreamChatGenerics>,\n) => {\n const { Attachment, AudioAttachment, files, messageId, styles: stylesProp = {} } = props;\n const [filesToDisplay, setFilesToDisplay] = useState<FilesToDisplayType[]>([]);\n\n useEffect(() => {\n setFilesToDisplay(files.map((file) => ({ ...file, duration: 0, paused: true, progress: 0 })));\n }, [files]);\n\n // Handler triggered when an audio is loaded in the message input. The initial state is defined for the audio here and the duration is set.\n const onLoad = (index: string, duration: number) => {\n setFilesToDisplay((prevFilesToDisplay) =>\n prevFilesToDisplay.map((fileToDisplay, id) => ({\n ...fileToDisplay,\n duration: id.toString() === index ? duration : fileToDisplay.duration,\n })),\n );\n };\n\n // The handler which is triggered when the audio progresses/ the thumb is dragged in the progress control. The progressed duration is set here.\n const onProgress = (index: string, currentTime?: number, hasEnd?: boolean) => {\n setFilesToDisplay((prevFileUploads) =>\n prevFileUploads.map((fileUpload, id) => ({\n ...fileUpload,\n progress:\n id.toString() === index\n ? hasEnd\n ? 1\n : currentTime\n ? currentTime / (fileUpload.duration as number)\n : 0\n : fileUpload.progress,\n })),\n );\n };\n\n // The handler which controls or sets the paused/played state of the audio.\n const onPlayPause = (index: string, pausedStatus?: boolean) => {\n if (pausedStatus === false) {\n // If the status is false we set the audio with the index as playing and the others as paused.\n setFilesToDisplay((prevFileUploads) =>\n prevFileUploads.map((fileUpload, id) => ({\n ...fileUpload,\n paused: id.toString() !== index,\n })),\n );\n } else {\n // If the status is true we simply set all the audio's paused state as true.\n setFilesToDisplay((prevFileUploads) =>\n prevFileUploads.map((fileUpload) => ({\n ...fileUpload,\n paused: true,\n })),\n );\n }\n };\n\n const {\n theme: {\n colors: { grey_whisper, white },\n messageSimple: {\n fileAttachmentGroup: { container },\n },\n },\n } = useTheme();\n\n return (\n <View style={[styles.container, container, stylesProp.container]}>\n {filesToDisplay.map((file, index) => (\n <View\n key={`${messageId}-${index}`}\n style={[\n { paddingBottom: index !== files.length - 1 ? 4 : 0 },\n stylesProp.attachmentContainer,\n ]}\n >\n {file.type === 'audio' && isAudioPackageAvailable() ? (\n <View\n accessibilityLabel='audio-attachment-preview'\n style={[\n styles.fileContainer,\n index === filesToDisplay.length - 1\n ? {\n marginBottom: 0,\n }\n : {},\n {\n backgroundColor: white,\n borderColor: grey_whisper,\n width: -16,\n },\n ]}\n >\n <AudioAttachment\n item={{\n duration: file.duration,\n file: { name: file.title as string, uri: file.asset_url },\n id: index.toString(),\n paused: file.paused,\n progress: file.progress,\n }}\n onLoad={onLoad}\n onPlayPause={onPlayPause}\n onProgress={onProgress}\n testID='audio-attachment-preview'\n />\n </View>\n ) : (\n <Attachment attachment={file} />\n )}\n </View>\n ))}\n </View>\n );\n};\n\nconst areEqual = <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(\n prevProps: FileAttachmentGroupPropsWithContext<StreamChatGenerics>,\n nextProps: FileAttachmentGroupPropsWithContext<StreamChatGenerics>,\n) => {\n const { files: prevFiles } = prevProps;\n const { files: nextFiles } = nextProps;\n\n return prevFiles.length === nextFiles.length;\n};\n\nconst MemoizedFileAttachmentGroup = React.memo(\n FileAttachmentGroupWithContext,\n areEqual,\n) as typeof FileAttachmentGroupWithContext;\n\nexport type FileAttachmentGroupProps<\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n> = Partial<Omit<FileAttachmentGroupPropsWithContext<StreamChatGenerics>, 'messageId'>> &\n Pick<FileAttachmentGroupPropsWithContext<StreamChatGenerics>, 'messageId'>;\n\nexport const FileAttachmentGroup = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>(\n props: FileAttachmentGroupProps<StreamChatGenerics>,\n) => {\n const { files: propFiles, messageId } = props;\n\n const { files: contextFiles } = useMessageContext<StreamChatGenerics>();\n\n const { Attachment = AttachmentDefault, AudioAttachment } =\n useMessagesContext<StreamChatGenerics>();\n\n const files = propFiles || contextFiles;\n\n if (!files.length) return null;\n\n return (\n <MemoizedFileAttachmentGroup\n {...{\n Attachment,\n AudioAttachment,\n files,\n messageId,\n }}\n />\n );\n};\n\nFileAttachmentGroup.displayName = 'FileAttachmentGroup{messageSimple{fileAttachmentGroup}}';\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAIA,IAAAE,WAAA,GAAAF,OAAA;AAEA,IAAAG,eAAA,GAAAH,OAAA;AAKA,IAAAI,gBAAA,GAAAJ,OAAA;AAIA,IAAAK,aAAA,GAAAL,OAAA;AACA,IAAAM,OAAA,GAAAN,OAAA;AAAuD,IAAAO,KAAA;EAAAC,YAAA;AAAA,SAAAC,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAX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AKJ,KAAK,CAAnBI,SAAS;EAEnC,IAAA0E,kBAAA,GAAgC,IAAAC,iCAAiB,EAAqB,CAAC;IAAxDC,YAAY,GAAAF,kBAAA,CAAnB3E,KAAK;EAEb,IAAA8E,mBAAA,GACE,IAAAC,mCAAkB,EAAqB,CAAC;IAAAC,qBAAA,GAAAF,mBAAA,CADlChF,UAAU;IAAVA,UAAU,GAAAkF,qBAAA,cAAGC,sBAAiB,GAAAD,qBAAA;IAAEjF,eAAe,GAAA+E,mBAAA,CAAf/E,eAAe;EAGvD,IAAMC,KAAK,GAAG0E,SAAS,IAAIG,YAAY;EAEvC,IAAI,CAAC7E,KAAK,CAACiD,MAAM,EAAE,OAAO,IAAI;EAE9B,OACEpG,MAAA,YAAA2F,aAAA,CAAC8B,2BAA2B;IAExBxE,UAAU,EAAVA,UAAU;IACVC,eAAe,EAAfA,eAAe;IACfC,KAAK,EAALA,KAAK;IACLC,SAAS,EAATA,SAAS;IAAA0C,MAAA,EAAArF,KAAA;IAAAsF,QAAA;MAAAC,QAAA,EAAAtF,YAAA;MAAAuF,UAAA;MAAAC,YAAA;IAAA;EAAA,CAEZ,CAAC;AAEN,CAAC;AAACmC,OAAA,CAAAT,mBAAA,GAAAA,mBAAA;AAEFA,mBAAmB,CAACU,WAAW,GAAG,yDAAyD"}
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_Attachment","_MessageContext","_MessagesContext","_ThemeContext","_native","_jsxRuntime","_this","_jsxFileName","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","_typeof","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","FILE_PREVIEW_HEIGHT","styles","StyleSheet","create","container","padding","fileContainer","borderRadius","borderWidth","flexDirection","height","justifyContent","paddingLeft","paddingRight","FileAttachmentGroupWithContext","props","Attachment","AudioAttachment","files","messageId","_props$styles","stylesProp","_useState","useState","_useState2","_slicedToArray2","filesToDisplay","setFilesToDisplay","useEffect","map","file","assign","duration","paused","progress","onLoad","index","prevFilesToDisplay","fileToDisplay","id","toString","onProgress","currentTime","hasEnd","prevFileUploads","fileUpload","onPlayPause","pausedStatus","_useTheme","useTheme","_useTheme$theme","theme","_useTheme$theme$color","colors","grey_whisper","white","messageSimple","fileAttachmentGroup","jsx","View","style","children","paddingBottom","length","attachmentContainer","type","isAudioPackageAvailable","accessibilityLabel","marginBottom","backgroundColor","borderColor","width","item","name","title","uri","asset_url","testID","attachment","concat","areEqual","prevProps","nextProps","prevFiles","nextFiles","MemoizedFileAttachmentGroup","React","memo","FileAttachmentGroup","propFiles","_useMessageContext","useMessageContext","contextFiles","_useMessagesContext","useMessagesContext","_useMessagesContext$A","AttachmentDefault","exports","displayName"],"sourceRoot":"../../../../src","sources":["components/Attachment/FileAttachmentGroup.tsx"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAIA,IAAAE,WAAA,GAAAF,OAAA;AAEA,IAAAG,eAAA,GAAAH,OAAA;AAKA,IAAAI,gBAAA,GAAAJ,OAAA;AAIA,IAAAK,aAAA,GAAAL,OAAA;AACA,IAAAM,OAAA,GAAAN,OAAA;AAAuD,IAAAO,WAAA,GAAAP,OAAA;AAAA,IAAAQ,KAAA;EAAAC,YAAA;AAAA,SAAAC,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAZ,wBAAAY,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,gBAAAK,OAAA,CAAAL,CAAA,0BAAAA,CAAA,sBAAAA,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAA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C,SAAS,EAATA;EAAS,CAEZ,CAAC;AAEN,CAAC;AAAC8E,OAAA,CAAAT,mBAAA,GAAAA,mBAAA;AAEFA,mBAAmB,CAACU,WAAW,GAAG,yDAAyD","ignoreList":[]}
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3
3
|
value: true
|
|
4
4
|
});
|
|
5
5
|
exports.FileIcon = void 0;
|
|
6
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
7
6
|
var _react = _interopRequireDefault(require("react"));
|
|
8
7
|
var _ThemeContext = require("../../contexts/themeContext/ThemeContext");
|
|
9
8
|
var _Audio = require("../../icons/Audio");
|
|
@@ -26,6 +25,7 @@ var _Video = require("../../icons/Video");
|
|
|
26
25
|
var _XLS = require("../../icons/XLS");
|
|
27
26
|
var _XLSX = require("../../icons/XLSX");
|
|
28
27
|
var _ZIP = require("../../icons/ZIP");
|
|
28
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
29
29
|
var _this = this,
|
|
30
30
|
_jsxFileName = "/home/runner/work/stream-chat-react-native/stream-chat-react-native/package/src/components/Attachment/FileIcon.tsx";
|
|
31
31
|
var audioFileTypes = ['audio/1d-interleaved-parityfec', 'audio/32kadpcm', 'audio/3gpp', 'audio/3gpp2', 'audio/aac', 'audio/ac3', 'audio/AMR', 'audio/AMR-WB', 'audio/amr-wb+', 'audio/aptx', 'audio/asc', 'audio/ATRAC-ADVANCED-LOSSLESS', 'audio/ATRAC-X', 'audio/ATRAC3', 'audio/basic', 'audio/BV16', 'audio/BV32', 'audio/clearmode', 'audio/CN', 'audio/DAT12', 'audio/dls', 'audio/dsr-es201108', 'audio/dsr-es202050', 'audio/dsr-es202211', 'audio/dsr-es202212', 'audio/DV', 'audio/DVI4', 'audio/eac3', 'audio/encaprtp', 'audio/EVRC', 'audio/EVRC-QCP', 'audio/EVRC0', 'audio/EVRC1', 'audio/EVRCB', 'audio/EVRCB0', 'audio/EVRCB1', 'audio/EVRCNW', 'audio/EVRCNW0', 'audio/EVRCNW1', 'audio/EVRCWB', 'audio/EVRCWB0', 'audio/EVRCWB1', 'audio/EVS', 'audio/example', 'audio/flexfec', 'audio/fwdred', 'audio/G711-0', 'audio/G719', 'audio/G7221', 'audio/G722', 'audio/G723', 'audio/G726-16', 'audio/G726-24', 'audio/G726-32', 'audio/G726-40', 'audio/G728', 'audio/G729', 'audio/G7291', 'audio/G729D', 'audio/G729E', 'audio/GSM', 'audio/GSM-EFR', 'audio/GSM-HR-08', 'audio/iLBC', 'audio/ip-mr_v2.5', 'audio/L8', 'audio/L16', 'audio/L20', 'audio/L24', 'audio/LPC', 'audio/MELP', 'audio/MELP600', 'audio/MELP1200', 'audio/MELP2400', 'audio/mhas', 'audio/mobile-xmf', 'audio/MPA', 'audio/mp4', 'audio/MP4A-LATM', 'audio/mpa-robust', 'audio/mpeg', 'audio/mpeg4-generic', 'audio/ogg', 'audio/opus', 'audio/parityfec', 'audio/PCMA', 'audio/PCMA-WB', 'audio/PCMU', 'audio/PCMU-WB', 'audio/prs.sid', 'audio/raptorfec', 'audio/RED', 'audio/rtp-enc-aescm128', 'audio/rtploopback', 'audio/rtp-midi', 'audio/rtx', 'audio/SMV', 'audio/SMV0', 'audio/SMV-QCP', 'audio/sofa', 'audio/sp-midi', 'audio/speex', 'audio/t140c', 'audio/t38', 'audio/telephone-event', 'audio/TETRA_ACELP', 'audio/TETRA_ACELP_BB', 'audio/tone', 'audio/TSVCIS', 'audio/UEMCLIP', 'audio/ulpfec', 'audio/usac', 'audio/VDVI', 'audio/VMR-WB', 'audio/vnd.3gpp.iufp', 'audio/vnd.4SB', 'audio/vnd.audiokoz', 'audio/vnd.CELP', 'audio/vnd.cisco.nse', 'audio/vnd.cmles.radio-events', 'audio/vnd.cns.anp1', 'audio/vnd.cns.inf1', 'audio/vnd.dece.audio', 'audio/vnd.digital-winds', 'audio/vnd.dlna.adts', 'audio/vnd.dolby.heaac.1', 'audio/vnd.dolby.heaac.2', 'audio/vnd.dolby.mlp', 'audio/vnd.dolby.mps', 'audio/vnd.dolby.pl2', 'audio/vnd.dolby.pl2x', 'audio/vnd.dolby.pl2z', 'audio/vnd.dolby.pulse.1', 'audio/vnd.dra', 'audio/vnd.dts', 'audio/vnd.dts.hd', 'audio/vnd.dts.uhd', 'audio/vnd.dvb.file', 'audio/vnd.everad.plj', 'audio/vnd.hns.audio', 'audio/vnd.lucent.voice', 'audio/vnd.ms-playready.media.pya', 'audio/vnd.nokia.mobile-xmf', 'audio/vnd.nortel.vbk', 'audio/vnd.nuera.ecelp4800', 'audio/vnd.nuera.ecelp7470', 'audio/vnd.nuera.ecelp9600', 'audio/vnd.octel.sbc', 'audio/vnd.presonus.multitrack', 'audio/vnd.qcelp', 'audio/vnd.rhetorex.32kadpcm', 'audio/vnd.rip', 'audio/vnd.sealedmedia.softseal.mpeg', 'audio/vnd.vmx.cvsd', 'audio/vorbis', 'audio/vorbis-config'];
|
|
@@ -105,17 +105,10 @@ var FileIcon = function FileIcon(_ref) {
|
|
|
105
105
|
var _useTheme = (0, _ThemeContext.useTheme)(),
|
|
106
106
|
icon = _useTheme.theme.messageSimple.file.icon;
|
|
107
107
|
var Icon = mimeTypeToIcon(mimeType);
|
|
108
|
-
return
|
|
108
|
+
return (0, _jsxRuntime.jsx)(Icon, Object.assign({}, size ? {
|
|
109
109
|
height: size,
|
|
110
110
|
width: size
|
|
111
|
-
} : {}, icon
|
|
112
|
-
__self: _this,
|
|
113
|
-
__source: {
|
|
114
|
-
fileName: _jsxFileName,
|
|
115
|
-
lineNumber: 444,
|
|
116
|
-
columnNumber: 10
|
|
117
|
-
}
|
|
118
|
-
}));
|
|
111
|
+
} : {}, icon));
|
|
119
112
|
};
|
|
120
113
|
exports.FileIcon = FileIcon;
|
|
121
114
|
FileIcon.displayName = 'FileIcon{messageSimple{file{icon}}}';
|