stream-chat-react-native-core 5.15.1-beta.1 → 5.15.1-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/components/Attachment/Attachment.js.map +1 -1
- package/lib/commonjs/components/Attachment/AttachmentActions.js.map +1 -1
- package/lib/commonjs/components/Attachment/AudioAttachment.js.map +1 -1
- package/lib/commonjs/components/Attachment/Card.js.map +1 -1
- package/lib/commonjs/components/Attachment/FileAttachment.js.map +1 -1
- package/lib/commonjs/components/Attachment/FileAttachmentGroup.js.map +1 -1
- package/lib/commonjs/components/Attachment/FileIcon.js.map +1 -1
- package/lib/commonjs/components/Attachment/Gallery.js.map +1 -1
- package/lib/commonjs/components/Attachment/GalleryImage.js.map +1 -1
- package/lib/commonjs/components/Attachment/Giphy.js.map +1 -1
- package/lib/commonjs/components/Attachment/ImageLoadingFailedIndicator.js.map +1 -1
- package/lib/commonjs/components/Attachment/ImageLoadingIndicator.js.map +1 -1
- package/lib/commonjs/components/Attachment/ImageReloadIndicator.js.map +1 -1
- package/lib/commonjs/components/Attachment/VideoThumbnail.js.map +1 -1
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.js.map +1 -1
- 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/getAspectRatio.js.map +1 -1
- package/lib/commonjs/components/Attachment/utils/getGalleryImageBorderRadius.js.map +1 -1
- package/lib/commonjs/components/Attachment/utils/openUrlSafely.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerBottomSheetHandle.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerError.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerErrorImage.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerItem.js +14 -16
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerItem.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentSelectionBar.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/CameraSelectorIcon.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/FileSelectorIcon.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/ImageOverlaySelectedComponent.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/ImageSelectorIcon.js.map +1 -1
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteInput.js.map +1 -1
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.js.map +1 -1
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionHeader.js.map +1 -1
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionItem.js.map +1 -1
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionList.js.map +1 -1
- package/lib/commonjs/components/Avatar/Avatar.js.map +1 -1
- package/lib/commonjs/components/Avatar/GroupAvatar.js.map +1 -1
- 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.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.map +1 -1
- package/lib/commonjs/components/ChannelList/ChannelListFooterLoadingIndicator.js.map +1 -1
- package/lib/commonjs/components/ChannelList/ChannelListHeaderErrorIndicator.js.map +1 -1
- package/lib/commonjs/components/ChannelList/ChannelListHeaderNetworkDownIndicator.js.map +1 -1
- package/lib/commonjs/components/ChannelList/ChannelListLoadingIndicator.js.map +1 -1
- package/lib/commonjs/components/ChannelList/ChannelListMessenger.js.map +1 -1
- 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.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.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/usePaginatedChannels.js.map +1 -1
- package/lib/commonjs/components/ChannelList/utils.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelAvatar.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreview.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessage.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessenger.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewMutedStatus.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewStatus.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewTitle.js.map +1 -1
- 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.map +1 -1
- package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/hooks/useLatestMessagePreview.js.map +1 -1
- package/lib/commonjs/components/Chat/Chat.js.map +1 -1
- package/lib/commonjs/components/Chat/hooks/useAppSettings.js.map +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.map +1 -1
- package/lib/commonjs/components/ImageBackground.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/ImageGallery.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/AnimatedGalleryImage.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/AnimatedGalleryVideo.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryOverlay.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryVideoControl.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGrid.js.map +1 -1
- 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.map +1 -1
- package/lib/commonjs/components/Indicators/LoadingDot.js.map +1 -1
- package/lib/commonjs/components/Indicators/LoadingDots.js.map +1 -1
- package/lib/commonjs/components/Indicators/LoadingErrorIndicator.js.map +1 -1
- package/lib/commonjs/components/Indicators/LoadingIndicator.js.map +1 -1
- package/lib/commonjs/components/KeyboardCompatibleView/KeyboardCompatibleView.js.map +1 -1
- package/lib/commonjs/components/KeyboardCompatibleView/KeyboardCompatibleViewFC.js.map +1 -1
- package/lib/commonjs/components/Message/Message.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageAvatar.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageContent.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageDeleted.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageFooter.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessagePinnedHeader.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageReplies.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageRepliesAvatars.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageSimple.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageStatus.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageTextContainer.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/ReactionList.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/utils/parseLinks.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/utils/renderText.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/utils/renderText.test.js.map +1 -1
- 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.map +1 -1
- package/lib/commonjs/components/MessageInput/AttachButton.js.map +1 -1
- package/lib/commonjs/components/MessageInput/CommandsButton.js.map +1 -1
- package/lib/commonjs/components/MessageInput/CooldownTimer.js.map +1 -1
- package/lib/commonjs/components/MessageInput/FileUploadPreview.js.map +1 -1
- package/lib/commonjs/components/MessageInput/ImageUploadPreview.js.map +1 -1
- package/lib/commonjs/components/MessageInput/InputButtons.js.map +1 -1
- package/lib/commonjs/components/MessageInput/MessageInput.js.map +1 -1
- package/lib/commonjs/components/MessageInput/MoreOptionsButton.js.map +1 -1
- package/lib/commonjs/components/MessageInput/SendButton.js.map +1 -1
- package/lib/commonjs/components/MessageInput/SendMessageDisallowedIndicator.js.map +1 -1
- package/lib/commonjs/components/MessageInput/ShowThreadMessageInChannelButton.js.map +1 -1
- package/lib/commonjs/components/MessageInput/UploadProgressIndicator.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/InputEditingStateHeader.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/InputGiphySearch.js.map +1 -1
- 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/MessageList/DateHeader.js.map +1 -1
- package/lib/commonjs/components/MessageList/InlineDateSeparator.js.map +1 -1
- package/lib/commonjs/components/MessageList/InlineLoadingMoreIndicator.js.map +1 -1
- package/lib/commonjs/components/MessageList/InlineLoadingMoreRecentIndicator.js.map +1 -1
- package/lib/commonjs/components/MessageList/InlineLoadingMoreThreadIndicator.js.map +1 -1
- package/lib/commonjs/components/MessageList/InlineUnreadIndicator.js.map +1 -1
- package/lib/commonjs/components/MessageList/MessageList.js.map +1 -1
- package/lib/commonjs/components/MessageList/MessageSystem.js.map +1 -1
- package/lib/commonjs/components/MessageList/NetworkDownIndicator.js.map +1 -1
- package/lib/commonjs/components/MessageList/ScrollToBottomButton.js.map +1 -1
- package/lib/commonjs/components/MessageList/TypingIndicator.js.map +1 -1
- package/lib/commonjs/components/MessageList/TypingIndicatorContainer.js.map +1 -1
- package/lib/commonjs/components/MessageList/hooks/useMessageList.js.map +1 -1
- package/lib/commonjs/components/MessageList/hooks/useTypingString.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/getReadStates.js.map +1 -1
- package/lib/commonjs/components/MessageOverlay/MessageActionList.js.map +1 -1
- package/lib/commonjs/components/MessageOverlay/MessageActionListItem.js.map +1 -1
- package/lib/commonjs/components/MessageOverlay/MessageOverlay.js.map +1 -1
- package/lib/commonjs/components/MessageOverlay/OverlayBackdrop.js.map +1 -1
- package/lib/commonjs/components/MessageOverlay/OverlayReactionList.js.map +1 -1
- package/lib/commonjs/components/MessageOverlay/OverlayReactions.js.map +1 -1
- 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.map +1 -1
- package/lib/commonjs/components/RTLComponents/WritingDirectionAwareText.js.map +1 -1
- package/lib/commonjs/components/Reply/Reply.js.map +1 -1
- package/lib/commonjs/components/Spinner/Spinner.js.map +1 -1
- package/lib/commonjs/components/Thread/Thread.js.map +1 -1
- package/lib/commonjs/components/Thread/components/ThreadFooterComponent.js.map +1 -1
- package/lib/commonjs/components/docs/data.js.map +1 -1
- package/lib/commonjs/contexts/activeChannelsRefContext/ActiveChannelsRefContext.js.map +1 -1
- package/lib/commonjs/contexts/attachmentPickerContext/AttachmentPickerContext.js.map +1 -1
- package/lib/commonjs/contexts/channelContext/ChannelContext.js.map +1 -1
- package/lib/commonjs/contexts/channelsContext/ChannelsContext.js.map +1 -1
- 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.map +1 -1
- package/lib/commonjs/contexts/debugContext/DebugContext.js.map +1 -1
- package/lib/commonjs/contexts/imageGalleryContext/ImageGalleryContext.js.map +1 -1
- package/lib/commonjs/contexts/keyboardContext/KeyboardContext.js.map +1 -1
- package/lib/commonjs/contexts/messageContext/MessageContext.js.map +1 -1
- package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js.map +1 -1
- package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
- package/lib/commonjs/contexts/messageInputContext/hooks/useMessageDetailsForState.js.map +1 -1
- 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.map +1 -1
- package/lib/commonjs/contexts/messagesContext/MessagesContext.js.map +1 -1
- package/lib/commonjs/contexts/overlayContext/OverlayContext.js.map +1 -1
- package/lib/commonjs/contexts/overlayContext/OverlayProvider.js.map +1 -1
- package/lib/commonjs/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.js.map +1 -1
- package/lib/commonjs/contexts/paginatedMessageListContext/PaginatedMessageListContext.js.map +1 -1
- package/lib/commonjs/contexts/suggestionsContext/SuggestionsContext.js.map +1 -1
- package/lib/commonjs/contexts/themeContext/ThemeContext.js.map +1 -1
- package/lib/commonjs/contexts/threadContext/ThreadContext.js.map +1 -1
- package/lib/commonjs/contexts/translationContext/TranslationContext.js.map +1 -1
- package/lib/commonjs/contexts/typingContext/TypingContext.js.map +1 -1
- package/lib/commonjs/emoji-data/compile.js.map +1 -1
- package/lib/commonjs/emoji-data/index.js.map +1 -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.map +1 -1
- package/lib/commonjs/hooks/useStreami18n.js.map +1 -1
- package/lib/commonjs/hooks/useTranslatedMessage.js.map +1 -1
- package/lib/commonjs/icons/ArrowRight.js.map +1 -1
- package/lib/commonjs/icons/AtMentions.js.map +1 -1
- package/lib/commonjs/icons/Attach.js.map +1 -1
- package/lib/commonjs/icons/Audio.js.map +1 -1
- package/lib/commonjs/icons/CSV.js.map +1 -1
- package/lib/commonjs/icons/Camera.js.map +1 -1
- package/lib/commonjs/icons/Check.js.map +1 -1
- package/lib/commonjs/icons/CheckAll.js.map +1 -1
- package/lib/commonjs/icons/CheckSend.js.map +1 -1
- package/lib/commonjs/icons/CircleClose.js.map +1 -1
- package/lib/commonjs/icons/CirclePlus.js.map +1 -1
- package/lib/commonjs/icons/CircleRight.js.map +1 -1
- package/lib/commonjs/icons/Close.js.map +1 -1
- package/lib/commonjs/icons/Copy.js.map +1 -1
- package/lib/commonjs/icons/CurveLineLeftUp.js.map +1 -1
- package/lib/commonjs/icons/DOC.js.map +1 -1
- package/lib/commonjs/icons/DOCX.js.map +1 -1
- package/lib/commonjs/icons/Delete.js.map +1 -1
- package/lib/commonjs/icons/Down.js.map +1 -1
- package/lib/commonjs/icons/DownloadArrow.js.map +1 -1
- package/lib/commonjs/icons/DownloadCloud.js.map +1 -1
- package/lib/commonjs/icons/Edit.js.map +1 -1
- package/lib/commonjs/icons/Error.js.map +1 -1
- package/lib/commonjs/icons/Eye.js.map +1 -1
- package/lib/commonjs/icons/Flag.js.map +1 -1
- package/lib/commonjs/icons/Folder.js.map +1 -1
- package/lib/commonjs/icons/GenericFile.js.map +1 -1
- package/lib/commonjs/icons/GiphyIcon.js.map +1 -1
- package/lib/commonjs/icons/Grid.js.map +1 -1
- package/lib/commonjs/icons/Group.js.map +1 -1
- package/lib/commonjs/icons/HTML.js.map +1 -1
- package/lib/commonjs/icons/Imgur.js.map +1 -1
- package/lib/commonjs/icons/LOLReaction.js.map +1 -1
- package/lib/commonjs/icons/Lightning.js.map +1 -1
- package/lib/commonjs/icons/Link.js.map +1 -1
- package/lib/commonjs/icons/Loading.js.map +1 -1
- package/lib/commonjs/icons/Logo.js.map +1 -1
- package/lib/commonjs/icons/LoveReaction.js.map +1 -1
- package/lib/commonjs/icons/MD.js.map +1 -1
- package/lib/commonjs/icons/MailOpen.js.map +1 -1
- package/lib/commonjs/icons/MenuPointHorizontal.js.map +1 -1
- package/lib/commonjs/icons/MenuPointVertical.js.map +1 -1
- package/lib/commonjs/icons/MessageFlag.js.map +1 -1
- package/lib/commonjs/icons/MessageIcon.js.map +1 -1
- package/lib/commonjs/icons/Mute.js.map +1 -1
- package/lib/commonjs/icons/Notification.js.map +1 -1
- package/lib/commonjs/icons/ODT.js.map +1 -1
- package/lib/commonjs/icons/PDF.js.map +1 -1
- package/lib/commonjs/icons/PPT.js.map +1 -1
- package/lib/commonjs/icons/PPTX.js.map +1 -1
- package/lib/commonjs/icons/Pause.js.map +1 -1
- package/lib/commonjs/icons/Picture.js.map +1 -1
- package/lib/commonjs/icons/Pin.js.map +1 -1
- package/lib/commonjs/icons/PinHeader.js.map +1 -1
- package/lib/commonjs/icons/Play.js.map +1 -1
- package/lib/commonjs/icons/RAR.js.map +1 -1
- package/lib/commonjs/icons/RTF.js.map +1 -1
- package/lib/commonjs/icons/Recorder.js.map +1 -1
- package/lib/commonjs/icons/Refresh.js.map +1 -1
- package/lib/commonjs/icons/SEVEN_Z.js.map +1 -1
- package/lib/commonjs/icons/Search.js.map +1 -1
- package/lib/commonjs/icons/SendRight.js.map +1 -1
- package/lib/commonjs/icons/SendUp.js.map +1 -1
- package/lib/commonjs/icons/Share.js.map +1 -1
- package/lib/commonjs/icons/ShareRightArrow.js.map +1 -1
- package/lib/commonjs/icons/Smile.js.map +1 -1
- package/lib/commonjs/icons/Sound.js.map +1 -1
- package/lib/commonjs/icons/TAR.js.map +1 -1
- package/lib/commonjs/icons/TXT.js.map +1 -1
- package/lib/commonjs/icons/ThreadReply.js.map +1 -1
- package/lib/commonjs/icons/ThumbsDownReaction.js.map +1 -1
- package/lib/commonjs/icons/ThumbsUpReaction.js.map +1 -1
- package/lib/commonjs/icons/Time.js.map +1 -1
- package/lib/commonjs/icons/Unknown.js.map +1 -1
- package/lib/commonjs/icons/Unpin.js.map +1 -1
- package/lib/commonjs/icons/User.js.map +1 -1
- package/lib/commonjs/icons/UserAdd.js.map +1 -1
- package/lib/commonjs/icons/UserAdmin.js.map +1 -1
- package/lib/commonjs/icons/UserDelete.js.map +1 -1
- package/lib/commonjs/icons/UserMinus.js.map +1 -1
- package/lib/commonjs/icons/Video.js.map +1 -1
- package/lib/commonjs/icons/Warning.js.map +1 -1
- package/lib/commonjs/icons/WutReaction.js.map +1 -1
- package/lib/commonjs/icons/XLS.js.map +1 -1
- package/lib/commonjs/icons/XLSX.js.map +1 -1
- package/lib/commonjs/icons/ZIP.js.map +1 -1
- package/lib/commonjs/icons/utils/base.js.map +1 -1
- package/lib/commonjs/init.js.map +1 -1
- package/lib/commonjs/mock-builders/DB/mock.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/sendMessage.js.map +1 -1
- package/lib/commonjs/mock-builders/api/sendReaction.js.map +1 -1
- package/lib/commonjs/mock-builders/api/useMockedApis.js.map +1 -1
- package/lib/commonjs/mock-builders/event/messageRead.js.map +1 -1
- package/lib/commonjs/mock-builders/generator/attachment.js.map +1 -1
- package/lib/commonjs/mock-builders/generator/channel.js.map +1 -1
- package/lib/commonjs/mock-builders/generator/member.js.map +1 -1
- package/lib/commonjs/mock-builders/generator/message.js.map +1 -1
- package/lib/commonjs/mock-builders/generator/reaction.js.map +1 -1
- package/lib/commonjs/mock-builders/generator/user.js.map +1 -1
- package/lib/commonjs/mock-builders/mock.js.map +1 -1
- package/lib/commonjs/native.js.map +1 -1
- package/lib/commonjs/store/QuickSqliteClient.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/getLastSyncedAt.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.map +1 -1
- package/lib/commonjs/store/apis/queries/selectMessagesForChannels.js.map +1 -1
- package/lib/commonjs/store/apis/queries/selectReactionsForMessages.js.map +1 -1
- 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/upsertChannels.js.map +1 -1
- package/lib/commonjs/store/apis/upsertMembers.js.map +1 -1
- package/lib/commonjs/store/apis/upsertReads.js.map +1 -1
- package/lib/commonjs/store/apis/utils/convertFilterSortToQuery.js.map +1 -1
- package/lib/commonjs/store/mappers/mapDateTimeToStorable.js.map +1 -1
- package/lib/commonjs/store/mappers/mapTaskToStorable.js.map +1 -1
- package/lib/commonjs/store/sqlite-utils/appendOrderByClause.js.map +1 -1
- package/lib/commonjs/store/sqlite-utils/appendWhereCluase.js.map +1 -1
- package/lib/commonjs/store/sqlite-utils/createCreateTableQuery.js.map +1 -1
- 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.map +1 -1
- package/lib/commonjs/utils/Streami18n.js.map +1 -1
- package/lib/commonjs/utils/addReactionToLocalState.js.map +1 -1
- package/lib/commonjs/utils/date.js.map +1 -1
- package/lib/commonjs/utils/getResizedImageUrl.js.map +1 -1
- package/lib/commonjs/utils/patchMessageTextCommand.js.map +1 -1
- package/lib/commonjs/utils/removeReactionFromLocalState.js.map +1 -1
- package/lib/commonjs/utils/utils.js.map +1 -1
- package/lib/commonjs/version.json +1 -1
- package/lib/module/components/Attachment/Attachment.js.map +1 -1
- package/lib/module/components/Attachment/AttachmentActions.js.map +1 -1
- package/lib/module/components/Attachment/AudioAttachment.js.map +1 -1
- package/lib/module/components/Attachment/Card.js.map +1 -1
- package/lib/module/components/Attachment/FileAttachment.js.map +1 -1
- package/lib/module/components/Attachment/FileAttachmentGroup.js.map +1 -1
- package/lib/module/components/Attachment/FileIcon.js.map +1 -1
- package/lib/module/components/Attachment/Gallery.js.map +1 -1
- package/lib/module/components/Attachment/GalleryImage.js.map +1 -1
- package/lib/module/components/Attachment/Giphy.js.map +1 -1
- package/lib/module/components/Attachment/ImageLoadingFailedIndicator.js.map +1 -1
- package/lib/module/components/Attachment/ImageLoadingIndicator.js.map +1 -1
- package/lib/module/components/Attachment/ImageReloadIndicator.js.map +1 -1
- package/lib/module/components/Attachment/VideoThumbnail.js.map +1 -1
- package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.js.map +1 -1
- 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/getAspectRatio.js.map +1 -1
- package/lib/module/components/Attachment/utils/getGalleryImageBorderRadius.js.map +1 -1
- package/lib/module/components/Attachment/utils/openUrlSafely.js.map +1 -1
- package/lib/module/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerBottomSheetHandle.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerError.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerErrorImage.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerItem.js +14 -16
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerItem.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/AttachmentSelectionBar.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/CameraSelectorIcon.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/FileSelectorIcon.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/ImageOverlaySelectedComponent.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/ImageSelectorIcon.js.map +1 -1
- package/lib/module/components/AutoCompleteInput/AutoCompleteInput.js.map +1 -1
- package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.js.map +1 -1
- package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionHeader.js.map +1 -1
- package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionItem.js.map +1 -1
- package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionList.js.map +1 -1
- package/lib/module/components/Avatar/Avatar.js.map +1 -1
- package/lib/module/components/Avatar/GroupAvatar.js.map +1 -1
- 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.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.map +1 -1
- package/lib/module/components/ChannelList/ChannelListFooterLoadingIndicator.js.map +1 -1
- package/lib/module/components/ChannelList/ChannelListHeaderErrorIndicator.js.map +1 -1
- package/lib/module/components/ChannelList/ChannelListHeaderNetworkDownIndicator.js.map +1 -1
- package/lib/module/components/ChannelList/ChannelListLoadingIndicator.js.map +1 -1
- package/lib/module/components/ChannelList/ChannelListMessenger.js.map +1 -1
- 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.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.map +1 -1
- package/lib/module/components/ChannelList/hooks/usePaginatedChannels.js.map +1 -1
- package/lib/module/components/ChannelList/utils.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelAvatar.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreview.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewMessage.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewMessenger.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewMutedStatus.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewStatus.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewTitle.js.map +1 -1
- 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.map +1 -1
- package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.js.map +1 -1
- package/lib/module/components/ChannelPreview/hooks/useLatestMessagePreview.js.map +1 -1
- package/lib/module/components/Chat/Chat.js.map +1 -1
- package/lib/module/components/Chat/hooks/useAppSettings.js.map +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.map +1 -1
- package/lib/module/components/ImageBackground.js.map +1 -1
- package/lib/module/components/ImageGallery/ImageGallery.js.map +1 -1
- package/lib/module/components/ImageGallery/components/AnimatedGalleryImage.js.map +1 -1
- package/lib/module/components/ImageGallery/components/AnimatedGalleryVideo.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryOverlay.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryVideoControl.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGrid.js.map +1 -1
- 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.map +1 -1
- package/lib/module/components/Indicators/LoadingDot.js.map +1 -1
- package/lib/module/components/Indicators/LoadingDots.js.map +1 -1
- package/lib/module/components/Indicators/LoadingErrorIndicator.js.map +1 -1
- package/lib/module/components/Indicators/LoadingIndicator.js.map +1 -1
- package/lib/module/components/KeyboardCompatibleView/KeyboardCompatibleView.js.map +1 -1
- package/lib/module/components/KeyboardCompatibleView/KeyboardCompatibleViewFC.js.map +1 -1
- package/lib/module/components/Message/Message.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageAvatar.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageContent.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageDeleted.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageFooter.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessagePinnedHeader.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageReplies.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageRepliesAvatars.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageSimple.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageStatus.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageTextContainer.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/ReactionList.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/utils/parseLinks.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/utils/renderText.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/utils/renderText.test.js.map +1 -1
- 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.map +1 -1
- package/lib/module/components/MessageInput/AttachButton.js.map +1 -1
- package/lib/module/components/MessageInput/CommandsButton.js.map +1 -1
- package/lib/module/components/MessageInput/CooldownTimer.js.map +1 -1
- package/lib/module/components/MessageInput/FileUploadPreview.js.map +1 -1
- package/lib/module/components/MessageInput/ImageUploadPreview.js.map +1 -1
- package/lib/module/components/MessageInput/InputButtons.js.map +1 -1
- package/lib/module/components/MessageInput/MessageInput.js.map +1 -1
- package/lib/module/components/MessageInput/MoreOptionsButton.js.map +1 -1
- package/lib/module/components/MessageInput/SendButton.js.map +1 -1
- package/lib/module/components/MessageInput/SendMessageDisallowedIndicator.js.map +1 -1
- package/lib/module/components/MessageInput/ShowThreadMessageInChannelButton.js.map +1 -1
- package/lib/module/components/MessageInput/UploadProgressIndicator.js.map +1 -1
- package/lib/module/components/MessageInput/components/InputEditingStateHeader.js.map +1 -1
- package/lib/module/components/MessageInput/components/InputGiphySearch.js.map +1 -1
- 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/MessageList/DateHeader.js.map +1 -1
- package/lib/module/components/MessageList/InlineDateSeparator.js.map +1 -1
- package/lib/module/components/MessageList/InlineLoadingMoreIndicator.js.map +1 -1
- package/lib/module/components/MessageList/InlineLoadingMoreRecentIndicator.js.map +1 -1
- package/lib/module/components/MessageList/InlineLoadingMoreThreadIndicator.js.map +1 -1
- package/lib/module/components/MessageList/InlineUnreadIndicator.js.map +1 -1
- package/lib/module/components/MessageList/MessageList.js.map +1 -1
- package/lib/module/components/MessageList/MessageSystem.js.map +1 -1
- package/lib/module/components/MessageList/NetworkDownIndicator.js.map +1 -1
- package/lib/module/components/MessageList/ScrollToBottomButton.js.map +1 -1
- package/lib/module/components/MessageList/TypingIndicator.js.map +1 -1
- package/lib/module/components/MessageList/TypingIndicatorContainer.js.map +1 -1
- package/lib/module/components/MessageList/hooks/useMessageList.js.map +1 -1
- package/lib/module/components/MessageList/hooks/useTypingString.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/getReadStates.js.map +1 -1
- package/lib/module/components/MessageOverlay/MessageActionList.js.map +1 -1
- package/lib/module/components/MessageOverlay/MessageActionListItem.js.map +1 -1
- package/lib/module/components/MessageOverlay/MessageOverlay.js.map +1 -1
- package/lib/module/components/MessageOverlay/OverlayBackdrop.js.map +1 -1
- package/lib/module/components/MessageOverlay/OverlayReactionList.js.map +1 -1
- package/lib/module/components/MessageOverlay/OverlayReactions.js.map +1 -1
- 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.map +1 -1
- package/lib/module/components/RTLComponents/WritingDirectionAwareText.js.map +1 -1
- package/lib/module/components/Reply/Reply.js.map +1 -1
- package/lib/module/components/Spinner/Spinner.js.map +1 -1
- package/lib/module/components/Thread/Thread.js.map +1 -1
- package/lib/module/components/Thread/components/ThreadFooterComponent.js.map +1 -1
- package/lib/module/components/docs/data.js.map +1 -1
- package/lib/module/contexts/activeChannelsRefContext/ActiveChannelsRefContext.js.map +1 -1
- package/lib/module/contexts/attachmentPickerContext/AttachmentPickerContext.js.map +1 -1
- package/lib/module/contexts/channelContext/ChannelContext.js.map +1 -1
- package/lib/module/contexts/channelsContext/ChannelsContext.js.map +1 -1
- 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.map +1 -1
- package/lib/module/contexts/debugContext/DebugContext.js.map +1 -1
- package/lib/module/contexts/imageGalleryContext/ImageGalleryContext.js.map +1 -1
- package/lib/module/contexts/keyboardContext/KeyboardContext.js.map +1 -1
- package/lib/module/contexts/messageContext/MessageContext.js.map +1 -1
- package/lib/module/contexts/messageInputContext/MessageInputContext.js.map +1 -1
- package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
- package/lib/module/contexts/messageInputContext/hooks/useMessageDetailsForState.js.map +1 -1
- 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.map +1 -1
- package/lib/module/contexts/messagesContext/MessagesContext.js.map +1 -1
- package/lib/module/contexts/overlayContext/OverlayContext.js.map +1 -1
- package/lib/module/contexts/overlayContext/OverlayProvider.js.map +1 -1
- package/lib/module/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.js.map +1 -1
- package/lib/module/contexts/paginatedMessageListContext/PaginatedMessageListContext.js.map +1 -1
- package/lib/module/contexts/suggestionsContext/SuggestionsContext.js.map +1 -1
- package/lib/module/contexts/themeContext/ThemeContext.js.map +1 -1
- package/lib/module/contexts/threadContext/ThreadContext.js.map +1 -1
- package/lib/module/contexts/translationContext/TranslationContext.js.map +1 -1
- package/lib/module/contexts/typingContext/TypingContext.js.map +1 -1
- package/lib/module/emoji-data/compile.js.map +1 -1
- package/lib/module/emoji-data/index.js.map +1 -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.map +1 -1
- package/lib/module/hooks/useStreami18n.js.map +1 -1
- package/lib/module/hooks/useTranslatedMessage.js.map +1 -1
- package/lib/module/icons/ArrowRight.js.map +1 -1
- package/lib/module/icons/AtMentions.js.map +1 -1
- package/lib/module/icons/Attach.js.map +1 -1
- package/lib/module/icons/Audio.js.map +1 -1
- package/lib/module/icons/CSV.js.map +1 -1
- package/lib/module/icons/Camera.js.map +1 -1
- package/lib/module/icons/Check.js.map +1 -1
- package/lib/module/icons/CheckAll.js.map +1 -1
- package/lib/module/icons/CheckSend.js.map +1 -1
- package/lib/module/icons/CircleClose.js.map +1 -1
- package/lib/module/icons/CirclePlus.js.map +1 -1
- package/lib/module/icons/CircleRight.js.map +1 -1
- package/lib/module/icons/Close.js.map +1 -1
- package/lib/module/icons/Copy.js.map +1 -1
- package/lib/module/icons/CurveLineLeftUp.js.map +1 -1
- package/lib/module/icons/DOC.js.map +1 -1
- package/lib/module/icons/DOCX.js.map +1 -1
- package/lib/module/icons/Delete.js.map +1 -1
- package/lib/module/icons/Down.js.map +1 -1
- package/lib/module/icons/DownloadArrow.js.map +1 -1
- package/lib/module/icons/DownloadCloud.js.map +1 -1
- package/lib/module/icons/Edit.js.map +1 -1
- package/lib/module/icons/Error.js.map +1 -1
- package/lib/module/icons/Eye.js.map +1 -1
- package/lib/module/icons/Flag.js.map +1 -1
- package/lib/module/icons/Folder.js.map +1 -1
- package/lib/module/icons/GenericFile.js.map +1 -1
- package/lib/module/icons/GiphyIcon.js.map +1 -1
- package/lib/module/icons/Grid.js.map +1 -1
- package/lib/module/icons/Group.js.map +1 -1
- package/lib/module/icons/HTML.js.map +1 -1
- package/lib/module/icons/Imgur.js.map +1 -1
- package/lib/module/icons/LOLReaction.js.map +1 -1
- package/lib/module/icons/Lightning.js.map +1 -1
- package/lib/module/icons/Link.js.map +1 -1
- package/lib/module/icons/Loading.js.map +1 -1
- package/lib/module/icons/Logo.js.map +1 -1
- package/lib/module/icons/LoveReaction.js.map +1 -1
- package/lib/module/icons/MD.js.map +1 -1
- package/lib/module/icons/MailOpen.js.map +1 -1
- package/lib/module/icons/MenuPointHorizontal.js.map +1 -1
- package/lib/module/icons/MenuPointVertical.js.map +1 -1
- package/lib/module/icons/MessageFlag.js.map +1 -1
- package/lib/module/icons/MessageIcon.js.map +1 -1
- package/lib/module/icons/Mute.js.map +1 -1
- package/lib/module/icons/Notification.js.map +1 -1
- package/lib/module/icons/ODT.js.map +1 -1
- package/lib/module/icons/PDF.js.map +1 -1
- package/lib/module/icons/PPT.js.map +1 -1
- package/lib/module/icons/PPTX.js.map +1 -1
- package/lib/module/icons/Pause.js.map +1 -1
- package/lib/module/icons/Picture.js.map +1 -1
- package/lib/module/icons/Pin.js.map +1 -1
- package/lib/module/icons/PinHeader.js.map +1 -1
- package/lib/module/icons/Play.js.map +1 -1
- package/lib/module/icons/RAR.js.map +1 -1
- package/lib/module/icons/RTF.js.map +1 -1
- package/lib/module/icons/Recorder.js.map +1 -1
- package/lib/module/icons/Refresh.js.map +1 -1
- package/lib/module/icons/SEVEN_Z.js.map +1 -1
- package/lib/module/icons/Search.js.map +1 -1
- package/lib/module/icons/SendRight.js.map +1 -1
- package/lib/module/icons/SendUp.js.map +1 -1
- package/lib/module/icons/Share.js.map +1 -1
- package/lib/module/icons/ShareRightArrow.js.map +1 -1
- package/lib/module/icons/Smile.js.map +1 -1
- package/lib/module/icons/Sound.js.map +1 -1
- package/lib/module/icons/TAR.js.map +1 -1
- package/lib/module/icons/TXT.js.map +1 -1
- package/lib/module/icons/ThreadReply.js.map +1 -1
- package/lib/module/icons/ThumbsDownReaction.js.map +1 -1
- package/lib/module/icons/ThumbsUpReaction.js.map +1 -1
- package/lib/module/icons/Time.js.map +1 -1
- package/lib/module/icons/Unknown.js.map +1 -1
- package/lib/module/icons/Unpin.js.map +1 -1
- package/lib/module/icons/User.js.map +1 -1
- package/lib/module/icons/UserAdd.js.map +1 -1
- package/lib/module/icons/UserAdmin.js.map +1 -1
- package/lib/module/icons/UserDelete.js.map +1 -1
- package/lib/module/icons/UserMinus.js.map +1 -1
- package/lib/module/icons/Video.js.map +1 -1
- package/lib/module/icons/Warning.js.map +1 -1
- package/lib/module/icons/WutReaction.js.map +1 -1
- package/lib/module/icons/XLS.js.map +1 -1
- package/lib/module/icons/XLSX.js.map +1 -1
- package/lib/module/icons/ZIP.js.map +1 -1
- package/lib/module/icons/utils/base.js.map +1 -1
- package/lib/module/init.js.map +1 -1
- package/lib/module/mock-builders/DB/mock.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/sendMessage.js.map +1 -1
- package/lib/module/mock-builders/api/sendReaction.js.map +1 -1
- package/lib/module/mock-builders/api/useMockedApis.js.map +1 -1
- package/lib/module/mock-builders/event/messageRead.js.map +1 -1
- package/lib/module/mock-builders/generator/attachment.js.map +1 -1
- package/lib/module/mock-builders/generator/channel.js.map +1 -1
- package/lib/module/mock-builders/generator/member.js.map +1 -1
- package/lib/module/mock-builders/generator/message.js.map +1 -1
- package/lib/module/mock-builders/generator/reaction.js.map +1 -1
- package/lib/module/mock-builders/generator/user.js.map +1 -1
- package/lib/module/mock-builders/mock.js.map +1 -1
- package/lib/module/native.js.map +1 -1
- package/lib/module/store/QuickSqliteClient.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/getLastSyncedAt.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.map +1 -1
- package/lib/module/store/apis/queries/selectMessagesForChannels.js.map +1 -1
- package/lib/module/store/apis/queries/selectReactionsForMessages.js.map +1 -1
- 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/upsertChannels.js.map +1 -1
- package/lib/module/store/apis/upsertMembers.js.map +1 -1
- package/lib/module/store/apis/upsertReads.js.map +1 -1
- package/lib/module/store/apis/utils/convertFilterSortToQuery.js.map +1 -1
- package/lib/module/store/mappers/mapDateTimeToStorable.js.map +1 -1
- package/lib/module/store/mappers/mapTaskToStorable.js.map +1 -1
- package/lib/module/store/sqlite-utils/appendOrderByClause.js.map +1 -1
- package/lib/module/store/sqlite-utils/appendWhereCluase.js.map +1 -1
- package/lib/module/store/sqlite-utils/createCreateTableQuery.js.map +1 -1
- 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.map +1 -1
- package/lib/module/utils/Streami18n.js.map +1 -1
- package/lib/module/utils/addReactionToLocalState.js.map +1 -1
- package/lib/module/utils/date.js.map +1 -1
- package/lib/module/utils/getResizedImageUrl.js.map +1 -1
- package/lib/module/utils/patchMessageTextCommand.js.map +1 -1
- package/lib/module/utils/removeReactionFromLocalState.js.map +1 -1
- package/lib/module/utils/utils.js.map +1 -1
- package/lib/module/version.json +1 -1
- package/lib/typescript/types/types.d.ts +1 -2
- package/package.json +1 -1
- package/src/components/AttachmentPicker/components/AttachmentPickerItem.tsx +1 -3
- package/src/types/types.ts +1 -2
- package/src/version.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_MessageInputContext","_ThemeContext","_TranslationContext","_icons","_this","_jsxFileName","styles","StyleSheet","create","editingBoxHeader","alignItems","flexDirection","justifyContent","paddingBottom","editingBoxHeaderTitle","fontSize","fontWeight","InputEditingStateHeaderWithContext","_ref","clearEditingState","disabled","resetInput","_useTranslationContex","useTranslationContext","t","_useTheme","useTheme","_useTheme$theme","theme","_useTheme$theme$color","colors","black","grey","grey_gainsboro","_useTheme$theme$messa","messageInput","editingStateHeader","createElement","View","style","__self","__source","fileName","lineNumber","columnNumber","Edit","pathFill","Text","color","TouchableOpacity","onPress","testID","CircleClose","exports","areEqual","prevProps","nextProps","prevDisabled","nextDisabled","disabledEqual","MemoizedInputEditingStateHeader","React","memo","InputEditingStateHeader","props","_useMessageInputConte","useMessageInputContext","_extends2","displayName"],"sources":["InputEditingStateHeader.tsx"],"sourcesContent":["import React from 'react';\nimport { StyleSheet, Text, TouchableOpacity, View } from 'react-native';\n\nimport type { ChannelContextValue } from '../../../contexts/channelContext/ChannelContext';\nimport {\n MessageInputContextValue,\n useMessageInputContext,\n} from '../../../contexts/messageInputContext/MessageInputContext';\nimport { useTheme } from '../../../contexts/themeContext/ThemeContext';\nimport { useTranslationContext } from '../../../contexts/translationContext/TranslationContext';\n\nimport { CircleClose, Edit } from '../../../icons';\nimport type { DefaultStreamChatGenerics } from '../../../types/types';\n\nconst styles = StyleSheet.create({\n editingBoxHeader: {\n alignItems: 'center',\n flexDirection: 'row',\n justifyContent: 'space-between',\n paddingBottom: 10,\n },\n editingBoxHeaderTitle: {\n fontSize: 14,\n fontWeight: 'bold',\n },\n});\n\nexport type InputEditingStateHeaderPropsWithContext<\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n> = Pick<MessageInputContextValue<StreamChatGenerics>, 'clearEditingState' | 'resetInput'> &\n Pick<ChannelContextValue<StreamChatGenerics>, 'disabled'>;\n\nexport const InputEditingStateHeaderWithContext = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>({\n clearEditingState,\n disabled,\n resetInput,\n}: InputEditingStateHeaderPropsWithContext<StreamChatGenerics>) => {\n const { t } = useTranslationContext();\n const {\n theme: {\n colors: { black, grey, grey_gainsboro },\n messageInput: {\n editingStateHeader: { editingBoxHeader, editingBoxHeaderTitle },\n },\n },\n } = useTheme();\n\n return (\n <View style={[styles.editingBoxHeader, editingBoxHeader]}>\n <Edit pathFill={grey_gainsboro} />\n <Text style={[styles.editingBoxHeaderTitle, { color: black }, editingBoxHeaderTitle]}>\n {t('Editing Message')}\n </Text>\n <TouchableOpacity\n disabled={disabled}\n onPress={() => {\n resetInput();\n clearEditingState();\n }}\n testID='close-button'\n >\n <CircleClose pathFill={grey} />\n </TouchableOpacity>\n </View>\n );\n};\n\nconst areEqual = <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(\n prevProps: InputEditingStateHeaderPropsWithContext<StreamChatGenerics>,\n nextProps: InputEditingStateHeaderPropsWithContext<StreamChatGenerics>,\n) => {\n const { disabled: prevDisabled } = prevProps;\n const { disabled: nextDisabled } = nextProps;\n\n const disabledEqual = prevDisabled === nextDisabled;\n if (!disabledEqual) return false;\n\n return true;\n};\n\nconst MemoizedInputEditingStateHeader = React.memo(\n InputEditingStateHeaderWithContext,\n areEqual,\n) as typeof InputEditingStateHeaderWithContext;\n\nexport type InputEditingStateHeaderProps<\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n> = Partial<InputEditingStateHeaderPropsWithContext<StreamChatGenerics>>;\n\nexport const InputEditingStateHeader = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>(\n props: InputEditingStateHeaderProps<StreamChatGenerics>,\n) => {\n const { clearEditingState, resetInput } = useMessageInputContext<StreamChatGenerics>();\n\n return <MemoizedInputEditingStateHeader {...{ clearEditingState, resetInput }} {...props} />;\n};\n\nInputEditingStateHeader.displayName = 'EditingStateHeader{messageInput}';\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGA,IAAAE,oBAAA,GAAAF,OAAA;AAIA,IAAAG,aAAA,GAAAH,OAAA;AACA,IAAAI,mBAAA,GAAAJ,OAAA;AAEA,IAAAK,MAAA,GAAAL,OAAA;AAAmD,IAAAM,KAAA;EAAAC,YAAA;AAGnD,IAAMC,MAAM,GAAGC,uBAAU,CAACC,MAAM,CAAC;EAC/BC,gBAAgB,EAAE;IAChBC,UAAU,EAAE,QAAQ;IACpBC,aAAa,EAAE,KAAK;IACpBC,cAAc,EAAE,eAAe;IAC/BC,aAAa,EAAE;EACjB,CAAC;EACDC,qBAAqB,EAAE;IACrBC,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE;EACd;AACF,CAAC,CAAC;AAOK,IAAMC,kCAAkC,GAAG,SAArCA,kCAAkCA,CAAAC,IAAA,EAMoB;EAAA,IAHjEC,iBAAiB,GAAAD,IAAA,CAAjBC,iBAAiB;IACjBC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;IACRC,UAAU,GAAAH,IAAA,CAAVG,UAAU;EAEV,IAAAC,qBAAA,GAAc,IAAAC,yCAAqB,
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_MessageInputContext","_ThemeContext","_TranslationContext","_icons","_this","_jsxFileName","styles","StyleSheet","create","editingBoxHeader","alignItems","flexDirection","justifyContent","paddingBottom","editingBoxHeaderTitle","fontSize","fontWeight","InputEditingStateHeaderWithContext","_ref","clearEditingState","disabled","resetInput","_useTranslationContex","useTranslationContext","t","_useTheme","useTheme","_useTheme$theme","theme","_useTheme$theme$color","colors","black","grey","grey_gainsboro","_useTheme$theme$messa","messageInput","editingStateHeader","createElement","View","style","__self","__source","fileName","lineNumber","columnNumber","Edit","pathFill","Text","color","TouchableOpacity","onPress","testID","CircleClose","exports","areEqual","prevProps","nextProps","prevDisabled","nextDisabled","disabledEqual","MemoizedInputEditingStateHeader","React","memo","InputEditingStateHeader","props","_useMessageInputConte","useMessageInputContext","_extends2","displayName"],"sources":["InputEditingStateHeader.tsx"],"sourcesContent":["import React from 'react';\nimport { StyleSheet, Text, TouchableOpacity, View } from 'react-native';\n\nimport type { ChannelContextValue } from '../../../contexts/channelContext/ChannelContext';\nimport {\n MessageInputContextValue,\n useMessageInputContext,\n} from '../../../contexts/messageInputContext/MessageInputContext';\nimport { useTheme } from '../../../contexts/themeContext/ThemeContext';\nimport { useTranslationContext } from '../../../contexts/translationContext/TranslationContext';\n\nimport { CircleClose, Edit } from '../../../icons';\nimport type { DefaultStreamChatGenerics } from '../../../types/types';\n\nconst styles = StyleSheet.create({\n editingBoxHeader: {\n alignItems: 'center',\n flexDirection: 'row',\n justifyContent: 'space-between',\n paddingBottom: 10,\n },\n editingBoxHeaderTitle: {\n fontSize: 14,\n fontWeight: 'bold',\n },\n});\n\nexport type InputEditingStateHeaderPropsWithContext<\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n> = Pick<MessageInputContextValue<StreamChatGenerics>, 'clearEditingState' | 'resetInput'> &\n Pick<ChannelContextValue<StreamChatGenerics>, 'disabled'>;\n\nexport const InputEditingStateHeaderWithContext = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>({\n clearEditingState,\n disabled,\n resetInput,\n}: InputEditingStateHeaderPropsWithContext<StreamChatGenerics>) => {\n const { t } = useTranslationContext();\n const {\n theme: {\n colors: { black, grey, grey_gainsboro },\n messageInput: {\n editingStateHeader: { editingBoxHeader, editingBoxHeaderTitle },\n },\n },\n } = useTheme();\n\n return (\n <View style={[styles.editingBoxHeader, editingBoxHeader]}>\n <Edit pathFill={grey_gainsboro} />\n <Text style={[styles.editingBoxHeaderTitle, { color: black }, editingBoxHeaderTitle]}>\n {t('Editing Message')}\n </Text>\n <TouchableOpacity\n disabled={disabled}\n onPress={() => {\n resetInput();\n clearEditingState();\n }}\n testID='close-button'\n >\n <CircleClose pathFill={grey} />\n </TouchableOpacity>\n </View>\n );\n};\n\nconst areEqual = <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(\n prevProps: InputEditingStateHeaderPropsWithContext<StreamChatGenerics>,\n nextProps: InputEditingStateHeaderPropsWithContext<StreamChatGenerics>,\n) => {\n const { disabled: prevDisabled } = prevProps;\n const { disabled: nextDisabled } = nextProps;\n\n const disabledEqual = prevDisabled === nextDisabled;\n if (!disabledEqual) return false;\n\n return true;\n};\n\nconst MemoizedInputEditingStateHeader = React.memo(\n InputEditingStateHeaderWithContext,\n areEqual,\n) as typeof InputEditingStateHeaderWithContext;\n\nexport type InputEditingStateHeaderProps<\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n> = Partial<InputEditingStateHeaderPropsWithContext<StreamChatGenerics>>;\n\nexport const InputEditingStateHeader = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>(\n props: InputEditingStateHeaderProps<StreamChatGenerics>,\n) => {\n const { clearEditingState, resetInput } = useMessageInputContext<StreamChatGenerics>();\n\n return <MemoizedInputEditingStateHeader {...{ clearEditingState, resetInput }} {...props} />;\n};\n\nInputEditingStateHeader.displayName = 'EditingStateHeader{messageInput}';\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGA,IAAAE,oBAAA,GAAAF,OAAA;AAIA,IAAAG,aAAA,GAAAH,OAAA;AACA,IAAAI,mBAAA,GAAAJ,OAAA;AAEA,IAAAK,MAAA,GAAAL,OAAA;AAAmD,IAAAM,KAAA;EAAAC,YAAA;AAGnD,IAAMC,MAAM,GAAGC,uBAAU,CAACC,MAAM,CAAC;EAC/BC,gBAAgB,EAAE;IAChBC,UAAU,EAAE,QAAQ;IACpBC,aAAa,EAAE,KAAK;IACpBC,cAAc,EAAE,eAAe;IAC/BC,aAAa,EAAE;EACjB,C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AACC,IAAI,CAChD7C,kCAAkC,EAClCqC,QACF,CAA8C;AAMvC,IAAMS,uBAAuB,GAAG,SAA1BA,uBAAuBA,CAGlCC,KAAuD,EACpD;EACH,IAAAC,qBAAA,GAA0C,IAAAC,2CAAsB,EAAqB,CAAC;IAA9E/C,iBAAiB,GAAA8C,qBAAA,CAAjB9C,iBAAiB;IAAEE,UAAU,GAAA4C,qBAAA,CAAV5C,UAAU;EAErC,OAAOzB,MAAA,YAAAyC,aAAA,CAACuB,+BAA+B,MAAAO,SAAA;IAAOhD,iBAAiB,EAAjBA,iBAAiB;IAAEE,UAAU,EAAVA;EAAU,GAAQ2C,KAAK;IAAAxB,MAAA,EAAApC,KAAA;IAAAqC,QAAA;MAAAC,QAAA,EAAArC,YAAA;MAAAsC,UAAA;MAAAC,YAAA;IAAA;EAAA,EAAG,CAAC;AAC9F,CAAC;AAACS,OAAA,CAAAU,uBAAA,GAAAA,uBAAA;AAEFA,uBAAuB,CAACK,WAAW,GAAG,kCAAkC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_MessageInputContext","_ThemeContext","_icons","_AutoCompleteInput","_useCountdown2","_this","_jsxFileName","styles","StyleSheet","create","autoCompleteInputContainer","alignItems","flexDirection","paddingLeft","paddingRight","giphyContainer","borderRadius","height","marginRight","paddingHorizontal","giphyText","fontSize","fontWeight","InputGiphySearchWithContext","_ref","additionalTextInputProps","cooldownEndsAt","disabled","setGiphyActive","setShowMoreOptions","_useCountdown","useCountdown","cooldownRemainingSeconds","seconds","_useTheme","useTheme","_useTheme$theme","theme","_useTheme$theme$color","colors","accent_blue","grey","white","_useTheme$theme$messa","messageInput","_useTheme$theme$messa2","giphyCommandInput","createElement","View","style","__self","__source","fileName","lineNumber","columnNumber","backgroundColor","Lightning","pathFill","width","Text","color","AutoCompleteInput","cooldownActive","TouchableOpacity","onPress","testID","CircleClose","exports","areEqual","prevProps","nextProps","prevDisabled","nextDisabled","disabledEqual","MemoizedInputGiphySearch","React","memo","InputGiphySearch","props","_useMessageInputConte","useMessageInputContext","_extends2","displayName"],"sources":["InputGiphySearch.tsx"],"sourcesContent":["import React from 'react';\nimport { StyleSheet, Text, TouchableOpacity, View } from 'react-native';\n\nimport type { ChannelContextValue } from '../../../contexts/channelContext/ChannelContext';\nimport {\n MessageInputContextValue,\n useMessageInputContext,\n} from '../../../contexts/messageInputContext/MessageInputContext';\nimport { useTheme } from '../../../contexts/themeContext/ThemeContext';\n\nimport { CircleClose, Lightning } from '../../../icons';\nimport type { DefaultStreamChatGenerics } from '../../../types/types';\nimport { AutoCompleteInput } from '../../AutoCompleteInput/AutoCompleteInput';\nimport { useCountdown } from '../hooks/useCountdown';\n\nconst styles = StyleSheet.create({\n autoCompleteInputContainer: {\n alignItems: 'center',\n flexDirection: 'row',\n paddingLeft: 8,\n paddingRight: 10,\n },\n giphyContainer: {\n alignItems: 'center',\n borderRadius: 12,\n flexDirection: 'row',\n height: 24,\n marginRight: 8,\n paddingHorizontal: 8,\n },\n giphyText: {\n fontSize: 12,\n fontWeight: 'bold',\n },\n});\n\nexport type InputGiphySearchPropsWithContext<\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n> = Pick<\n MessageInputContextValue<StreamChatGenerics>,\n 'additionalTextInputProps' | 'cooldownEndsAt' | 'setGiphyActive' | 'setShowMoreOptions'\n> &\n Pick<ChannelContextValue<StreamChatGenerics>, 'disabled'>;\n\nexport const InputGiphySearchWithContext = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>({\n additionalTextInputProps,\n cooldownEndsAt,\n disabled,\n setGiphyActive,\n setShowMoreOptions,\n}: InputGiphySearchPropsWithContext<StreamChatGenerics>) => {\n const { seconds: cooldownRemainingSeconds } = useCountdown(cooldownEndsAt);\n\n const {\n theme: {\n colors: { accent_blue, grey, white },\n messageInput: {\n autoCompleteInputContainer,\n giphyCommandInput: { giphyContainer, giphyText },\n },\n },\n } = useTheme();\n\n return (\n <View style={[styles.autoCompleteInputContainer, autoCompleteInputContainer]}>\n <View style={[styles.giphyContainer, { backgroundColor: accent_blue }, giphyContainer]}>\n <Lightning height={16} pathFill={white} width={16} />\n <Text style={[styles.giphyText, { color: white }, giphyText]}>GIPHY</Text>\n </View>\n\n <AutoCompleteInput<StreamChatGenerics>\n additionalTextInputProps={additionalTextInputProps}\n cooldownActive={!!cooldownRemainingSeconds}\n />\n <TouchableOpacity\n disabled={disabled}\n onPress={() => {\n setGiphyActive(false);\n setShowMoreOptions(true);\n }}\n testID='close-button'\n >\n <CircleClose height={20} pathFill={grey} width={20} />\n </TouchableOpacity>\n </View>\n );\n};\n\nconst areEqual = <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(\n prevProps: InputGiphySearchPropsWithContext<StreamChatGenerics>,\n nextProps: InputGiphySearchPropsWithContext<StreamChatGenerics>,\n) => {\n const { disabled: prevDisabled } = prevProps;\n const { disabled: nextDisabled } = nextProps;\n\n const disabledEqual = prevDisabled === nextDisabled;\n if (!disabledEqual) return false;\n\n return true;\n};\n\nconst MemoizedInputGiphySearch = React.memo(\n InputGiphySearchWithContext,\n areEqual,\n) as typeof InputGiphySearchWithContext;\n\nexport type InputGiphySearchProps<\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n> = Partial<InputGiphySearchPropsWithContext<StreamChatGenerics>>;\n\nexport const InputGiphySearch = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>(\n props: InputGiphySearchProps<StreamChatGenerics>,\n) => {\n const { additionalTextInputProps, cooldownEndsAt, setGiphyActive, setShowMoreOptions } =\n useMessageInputContext<StreamChatGenerics>();\n\n return (\n <MemoizedInputGiphySearch\n {...{ additionalTextInputProps, cooldownEndsAt, setGiphyActive, setShowMoreOptions }}\n {...props}\n />\n );\n};\n\nInputGiphySearch.displayName = 'InputGiphySearch{messageInput}';\n"],"mappings":";;;;;;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teInput","_useCountdown2","_this","_jsxFileName","styles","StyleSheet","create","autoCompleteInputContainer","alignItems","flexDirection","paddingLeft","paddingRight","giphyContainer","borderRadius","height","marginRight","paddingHorizontal","giphyText","fontSize","fontWeight","InputGiphySearchWithContext","_ref","additionalTextInputProps","cooldownEndsAt","disabled","setGiphyActive","setShowMoreOptions","_useCountdown","useCountdown","cooldownRemainingSeconds","seconds","_useTheme","useTheme","_useTheme$theme","theme","_useTheme$theme$color","colors","accent_blue","grey","white","_useTheme$theme$messa","messageInput","_useTheme$theme$messa2","giphyCommandInput","createElement","View","style","__self","__source","fileName","lineNumber","columnNumber","backgroundColor","Lightning","pathFill","width","Text","color","AutoCompleteInput","cooldownActive","TouchableOpacity","onPress","testID","CircleClose","exports","areEqual","prevProps","nextProps","prevDisabled","nextDisabled","disabledEqual","MemoizedInputGiphySearch","React","memo","InputGiphySearch","props","_useMessageInputConte","useMessageInputContext","_extends2","displayName"],"sources":["InputGiphySearch.tsx"],"sourcesContent":["import React from 'react';\nimport { StyleSheet, Text, TouchableOpacity, View } from 'react-native';\n\nimport type { ChannelContextValue } from '../../../contexts/channelContext/ChannelContext';\nimport {\n MessageInputContextValue,\n useMessageInputContext,\n} from '../../../contexts/messageInputContext/MessageInputContext';\nimport { useTheme } from '../../../contexts/themeContext/ThemeContext';\n\nimport { CircleClose, Lightning } from '../../../icons';\nimport type { DefaultStreamChatGenerics } from '../../../types/types';\nimport { AutoCompleteInput } from '../../AutoCompleteInput/AutoCompleteInput';\nimport { useCountdown } from '../hooks/useCountdown';\n\nconst styles = StyleSheet.create({\n autoCompleteInputContainer: {\n alignItems: 'center',\n flexDirection: 'row',\n paddingLeft: 8,\n paddingRight: 10,\n },\n giphyContainer: {\n alignItems: 'center',\n borderRadius: 12,\n flexDirection: 'row',\n height: 24,\n marginRight: 8,\n paddingHorizontal: 8,\n },\n giphyText: {\n fontSize: 12,\n fontWeight: 'bold',\n },\n});\n\nexport type InputGiphySearchPropsWithContext<\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n> = Pick<\n MessageInputContextValue<StreamChatGenerics>,\n 'additionalTextInputProps' | 'cooldownEndsAt' | 'setGiphyActive' | 'setShowMoreOptions'\n> &\n Pick<ChannelContextValue<StreamChatGenerics>, 'disabled'>;\n\nexport const InputGiphySearchWithContext = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>({\n additionalTextInputProps,\n cooldownEndsAt,\n disabled,\n setGiphyActive,\n setShowMoreOptions,\n}: InputGiphySearchPropsWithContext<StreamChatGenerics>) => {\n const { seconds: cooldownRemainingSeconds } = useCountdown(cooldownEndsAt);\n\n const {\n theme: {\n colors: { accent_blue, grey, white },\n messageInput: {\n autoCompleteInputContainer,\n giphyCommandInput: { giphyContainer, giphyText },\n },\n },\n } = useTheme();\n\n return (\n <View style={[styles.autoCompleteInputContainer, autoCompleteInputContainer]}>\n <View style={[styles.giphyContainer, { backgroundColor: accent_blue }, giphyContainer]}>\n <Lightning height={16} pathFill={white} width={16} />\n <Text style={[styles.giphyText, { color: white }, giphyText]}>GIPHY</Text>\n </View>\n\n <AutoCompleteInput<StreamChatGenerics>\n additionalTextInputProps={additionalTextInputProps}\n cooldownActive={!!cooldownRemainingSeconds}\n />\n <TouchableOpacity\n disabled={disabled}\n onPress={() => {\n setGiphyActive(false);\n setShowMoreOptions(true);\n }}\n testID='close-button'\n >\n <CircleClose height={20} pathFill={grey} width={20} />\n </TouchableOpacity>\n </View>\n );\n};\n\nconst areEqual = <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(\n prevProps: InputGiphySearchPropsWithContext<StreamChatGenerics>,\n nextProps: InputGiphySearchPropsWithContext<StreamChatGenerics>,\n) => {\n const { disabled: prevDisabled } = prevProps;\n const { disabled: nextDisabled } = nextProps;\n\n const disabledEqual = prevDisabled === nextDisabled;\n if (!disabledEqual) return false;\n\n return true;\n};\n\nconst MemoizedInputGiphySearch = React.memo(\n InputGiphySearchWithContext,\n areEqual,\n) as typeof InputGiphySearchWithContext;\n\nexport type InputGiphySearchProps<\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n> = Partial<InputGiphySearchPropsWithContext<StreamChatGenerics>>;\n\nexport const InputGiphySearch = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>(\n props: InputGiphySearchProps<StreamChatGenerics>,\n) => {\n const { additionalTextInputProps, cooldownEndsAt, setGiphyActive, setShowMoreOptions } =\n useMessageInputContext<StreamChatGenerics>();\n\n return (\n <MemoizedInputGiphySearch\n {...{ additionalTextInputProps, cooldownEndsAt, setGiphyActive, setShowMoreOptions }}\n {...props}\n />\n );\n};\n\nInputGiphySearch.displayName = 'InputGiphySearch{messageInput}';\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGA,IAAAE,oBAAA,GAAAF,OAAA;AAIA,IAAAG,aAAA,GAAAH,OAAA;AAEA,IAAAI,MAAA,GAAAJ,OAAA;AAEA,IAAAK,kBAAA,GAAAL,OAAA;AACA,IAAAM,cAAA,GAAAN,OAAA;AAAqD,IAAAO,KAAA;EAAAC,YAAA;AAErD,IAAMC,MAAM,GAAGC,uBAAU,CAACC,MAAM,CAAC;EAC/BC,0BAA0B,EAAE;IAC1BC,UAAU,EAAE,QAAQ;IACpBC,aAAa,EAAE,KAAK;IACpBC,WAAW,EAAE,CAAC;IACdC,YAAY,EAAE;EAChB,CAAC;EACDC,cAAc,EAAE;IACdJ,UAAU,EAAE,QAAQ;IACpBK,YAAY,EAAE,EAAE;IAChBJ,aAAa,EAAE,KAAK;IACpBK,MAAM,EAAE,EAAE;IACVC,WAAW,EAAE,CAAC;IACdC,iBAAiB,EAAE;EACrB,CAAC;EACDC,SAAS,EAAE;IACTC,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE;EACd;AACF,CAAC,CAAC;AAUK,IAA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C,kBAAkB,EAAlBA;EAAkB,GAC9EiD,KAAK;IAAA5B,MAAA,EAAA7C,KAAA;IAAA8C,QAAA;MAAAC,QAAA,EAAA9C,YAAA;MAAA+C,UAAA;MAAAC,YAAA;IAAA;EAAA,EACV,CAAC;AAEN,CAAC;AAACa,OAAA,CAAAU,gBAAA,GAAAA,gBAAA;AAEFA,gBAAgB,CAACK,WAAW,GAAG,gCAAgC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_MessageInputContext","_ThemeContext","_TranslationContext","_icons","_this","_jsxFileName","styles","StyleSheet","create","replyBoxHeader","alignItems","flexDirection","justifyContent","paddingBottom","replyBoxHeaderTitle","fontSize","fontWeight","InputReplyStateHeaderWithContext","_ref","clearQuotedMessageState","disabled","resetInput","_useTranslationContex","useTranslationContext","t","_useTheme","useTheme","_useTheme$theme","theme","_useTheme$theme$color","colors","black","grey","grey_gainsboro","_useTheme$theme$messa","messageInput","editingStateHeader","editingBoxHeader","editingBoxHeaderTitle","createElement","View","style","__self","__source","fileName","lineNumber","columnNumber","CurveLineLeftUp","pathFill","Text","color","TouchableOpacity","onPress","testID","CircleClose","exports","areEqual","prevProps","nextProps","prevDisabled","nextDisabled","disabledEqual","MemoizedInputReplyStateHeader","React","memo","InputReplyStateHeader","props","_useMessageInputConte","useMessageInputContext","_extends2","displayName"],"sources":["InputReplyStateHeader.tsx"],"sourcesContent":["import React from 'react';\nimport { StyleSheet, Text, TouchableOpacity, View } from 'react-native';\n\nimport type { ChannelContextValue } from '../../../contexts/channelContext/ChannelContext';\nimport {\n MessageInputContextValue,\n useMessageInputContext,\n} from '../../../contexts/messageInputContext/MessageInputContext';\nimport { useTheme } from '../../../contexts/themeContext/ThemeContext';\nimport { useTranslationContext } from '../../../contexts/translationContext/TranslationContext';\n\nimport { CircleClose, CurveLineLeftUp } from '../../../icons';\nimport type { DefaultStreamChatGenerics } from '../../../types/types';\n\nconst styles = StyleSheet.create({\n replyBoxHeader: {\n alignItems: 'center',\n flexDirection: 'row',\n justifyContent: 'space-between',\n paddingBottom: 10,\n },\n replyBoxHeaderTitle: {\n fontSize: 14,\n fontWeight: 'bold',\n },\n});\n\nexport type InputReplyStateHeaderPropsWithContext<\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n> = Pick<MessageInputContextValue<StreamChatGenerics>, 'clearQuotedMessageState' | 'resetInput'> &\n Pick<ChannelContextValue<StreamChatGenerics>, 'disabled'>;\n\nexport const InputReplyStateHeaderWithContext = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>({\n clearQuotedMessageState,\n disabled,\n resetInput,\n}: InputReplyStateHeaderPropsWithContext<StreamChatGenerics>) => {\n const { t } = useTranslationContext();\n const {\n theme: {\n colors: { black, grey, grey_gainsboro },\n messageInput: {\n editingStateHeader: { editingBoxHeader, editingBoxHeaderTitle },\n },\n },\n } = useTheme();\n\n return (\n <View style={[styles.replyBoxHeader, editingBoxHeader]}>\n <CurveLineLeftUp pathFill={grey_gainsboro} />\n <Text style={[styles.replyBoxHeaderTitle, { color: black }, editingBoxHeaderTitle]}>\n {t('Reply to Message')}\n </Text>\n <TouchableOpacity\n disabled={disabled}\n onPress={() => {\n resetInput();\n clearQuotedMessageState();\n }}\n testID='close-button'\n >\n <CircleClose pathFill={grey} />\n </TouchableOpacity>\n </View>\n );\n};\n\nconst areEqual = <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(\n prevProps: InputReplyStateHeaderPropsWithContext<StreamChatGenerics>,\n nextProps: InputReplyStateHeaderPropsWithContext<StreamChatGenerics>,\n) => {\n const { disabled: prevDisabled } = prevProps;\n const { disabled: nextDisabled } = nextProps;\n\n const disabledEqual = prevDisabled === nextDisabled;\n if (!disabledEqual) return false;\n\n return true;\n};\n\nconst MemoizedInputReplyStateHeader = React.memo(\n InputReplyStateHeaderWithContext,\n areEqual,\n) as typeof InputReplyStateHeaderWithContext;\n\nexport type InputReplyStateHeaderProps<\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n> = Partial<InputReplyStateHeaderPropsWithContext<StreamChatGenerics>>;\n\nexport const InputReplyStateHeader = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>(\n props: InputReplyStateHeaderProps<StreamChatGenerics>,\n) => {\n const { clearQuotedMessageState, resetInput } = useMessageInputContext<StreamChatGenerics>();\n\n return <MemoizedInputReplyStateHeader {...{ clearQuotedMessageState, resetInput }} {...props} />;\n};\n\nInputReplyStateHeader.displayName = 'ReplyStateHeader{messageInput}';\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGA,IAAAE,oBAAA,GAAAF,OAAA;AAIA,IAAAG,aAAA,GAAAH,OAAA;AACA,IAAAI,mBAAA,GAAAJ,OAAA;AAEA,IAAAK,MAAA,GAAAL,OAAA;AAA8D,IAAAM,KAAA;EAAAC,YAAA;AAG9D,IAAMC,MAAM,GAAGC,uBAAU,CAACC,MAAM,CAAC;EAC/BC,cAAc,EAAE;IACdC,UAAU,EAAE,QAAQ;IACpBC,aAAa,EAAE,KAAK;IACpBC,cAAc,EAAE,eAAe;IAC/BC,aAAa,EAAE;EACjB,CAAC;EACDC,mBAAmB,EAAE;IACnBC,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE;EACd;AACF,CAAC,CAAC;AAOK,IAAMC,gCAAgC,GAAG,SAAnCA,gCAAgCA,CAAAC,IAAA,EAMoB;EAAA,IAH/DC,uBAAuB,GAAAD,IAAA,CAAvBC,uBAAuB;IACvBC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;IACRC,UAAU,GAAAH,IAAA,CAAVG,UAAU;EAEV,IAAAC,qBAAA,GAAc,IAAAC,yCAAqB,
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_MessageInputContext","_ThemeContext","_TranslationContext","_icons","_this","_jsxFileName","styles","StyleSheet","create","replyBoxHeader","alignItems","flexDirection","justifyContent","paddingBottom","replyBoxHeaderTitle","fontSize","fontWeight","InputReplyStateHeaderWithContext","_ref","clearQuotedMessageState","disabled","resetInput","_useTranslationContex","useTranslationContext","t","_useTheme","useTheme","_useTheme$theme","theme","_useTheme$theme$color","colors","black","grey","grey_gainsboro","_useTheme$theme$messa","messageInput","editingStateHeader","editingBoxHeader","editingBoxHeaderTitle","createElement","View","style","__self","__source","fileName","lineNumber","columnNumber","CurveLineLeftUp","pathFill","Text","color","TouchableOpacity","onPress","testID","CircleClose","exports","areEqual","prevProps","nextProps","prevDisabled","nextDisabled","disabledEqual","MemoizedInputReplyStateHeader","React","memo","InputReplyStateHeader","props","_useMessageInputConte","useMessageInputContext","_extends2","displayName"],"sources":["InputReplyStateHeader.tsx"],"sourcesContent":["import React from 'react';\nimport { StyleSheet, Text, TouchableOpacity, View } from 'react-native';\n\nimport type { ChannelContextValue } from '../../../contexts/channelContext/ChannelContext';\nimport {\n MessageInputContextValue,\n useMessageInputContext,\n} from '../../../contexts/messageInputContext/MessageInputContext';\nimport { useTheme } from '../../../contexts/themeContext/ThemeContext';\nimport { useTranslationContext } from '../../../contexts/translationContext/TranslationContext';\n\nimport { CircleClose, CurveLineLeftUp } from '../../../icons';\nimport type { DefaultStreamChatGenerics } from '../../../types/types';\n\nconst styles = StyleSheet.create({\n replyBoxHeader: {\n alignItems: 'center',\n flexDirection: 'row',\n justifyContent: 'space-between',\n paddingBottom: 10,\n },\n replyBoxHeaderTitle: {\n fontSize: 14,\n fontWeight: 'bold',\n },\n});\n\nexport type InputReplyStateHeaderPropsWithContext<\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n> = Pick<MessageInputContextValue<StreamChatGenerics>, 'clearQuotedMessageState' | 'resetInput'> &\n Pick<ChannelContextValue<StreamChatGenerics>, 'disabled'>;\n\nexport const InputReplyStateHeaderWithContext = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>({\n clearQuotedMessageState,\n disabled,\n resetInput,\n}: InputReplyStateHeaderPropsWithContext<StreamChatGenerics>) => {\n const { t } = useTranslationContext();\n const {\n theme: {\n colors: { black, grey, grey_gainsboro },\n messageInput: {\n editingStateHeader: { editingBoxHeader, editingBoxHeaderTitle },\n },\n },\n } = useTheme();\n\n return (\n <View style={[styles.replyBoxHeader, editingBoxHeader]}>\n <CurveLineLeftUp pathFill={grey_gainsboro} />\n <Text style={[styles.replyBoxHeaderTitle, { color: black }, editingBoxHeaderTitle]}>\n {t('Reply to Message')}\n </Text>\n <TouchableOpacity\n disabled={disabled}\n onPress={() => {\n resetInput();\n clearQuotedMessageState();\n }}\n testID='close-button'\n >\n <CircleClose pathFill={grey} />\n </TouchableOpacity>\n </View>\n );\n};\n\nconst areEqual = <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(\n prevProps: InputReplyStateHeaderPropsWithContext<StreamChatGenerics>,\n nextProps: InputReplyStateHeaderPropsWithContext<StreamChatGenerics>,\n) => {\n const { disabled: prevDisabled } = prevProps;\n const { disabled: nextDisabled } = nextProps;\n\n const disabledEqual = prevDisabled === nextDisabled;\n if (!disabledEqual) return false;\n\n return true;\n};\n\nconst MemoizedInputReplyStateHeader = React.memo(\n InputReplyStateHeaderWithContext,\n areEqual,\n) as typeof InputReplyStateHeaderWithContext;\n\nexport type InputReplyStateHeaderProps<\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n> = Partial<InputReplyStateHeaderPropsWithContext<StreamChatGenerics>>;\n\nexport const InputReplyStateHeader = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>(\n props: InputReplyStateHeaderProps<StreamChatGenerics>,\n) => {\n const { clearQuotedMessageState, resetInput } = useMessageInputContext<StreamChatGenerics>();\n\n return <MemoizedInputReplyStateHeader {...{ clearQuotedMessageState, resetInput }} {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EAAAtC,KAAA;IAAAuC,QAAA;MAAAC,QAAA,EAAAvC,YAAA;MAAAwC,UAAA;MAAAC,YAAA;IAAA;EAAA,CAAE,CACd,CACd,CAAC;AAEX,CAAC;AAACS,OAAA,CAAAtC,gCAAA,GAAAA,gCAAA;AAEF,IAAMuC,QAAQ,GAAG,SAAXA,QAAQA,CACZC,SAAoE,EACpEC,SAAoE,EACjE;EACH,IAAkBC,YAAY,GAAKF,SAAS,CAApCrC,QAAQ;EAChB,IAAkBwC,YAAY,GAAKF,SAAS,CAApCtC,QAAQ;EAEhB,IAAMyC,aAAa,GAAGF,YAAY,KAAKC,YAAY;EACnD,IAAI,CAACC,aAAa,EAAE,OAAO,KAAK;EAEhC,OAAO,IAAI;AACb,CAAC;AAED,IAAMC,6BAA6B,GAAGC,iBAAK,CAACC,IAAI,CAC9C/C,gCAAgC,EAChCuC,QACF,CAA4C;AAMrC,IAAMS,qBAAqB,GAAG,SAAxBA,qBAAqBA,CAGhCC,KAAqD,EAClD;EACH,IAAAC,qBAAA,GAAgD,IAAAC,2CAAsB,EAAqB,CAAC;IAApFjD,uBAAuB,GAAAgD,qBAAA,CAAvBhD,uBAAuB;IAAEE,UAAU,GAAA8C,qBAAA,CAAV9C,UAAU;EAE3C,OAAOzB,MAAA,YAAA2C,aAAA,CAACuB,6BAA6B,MAAAO,SAAA;IAAOlD,uBAAuB,EAAvBA,uBAAuB;IAAEE,UAAU,EAAVA;EAAU,GAAQ6C,KAAK;IAAAxB,MAAA,EAAAtC,KAAA;IAAAuC,QAAA;MAAAC,QAAA,EAAAvC,YAAA;MAAAwC,UAAA;MAAAC,YAAA;IAAA;EAAA,EAAG,CAAC;AAClG,CAAC;AAACS,OAAA,CAAAU,qBAAA,GAAAA,qBAAA;AAEFA,qBAAqB,CAACK,WAAW,GAAG,gCAAgC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_streamChat","_ChannelContext","_ChatContext","_date","useCooldown","_client$user","_channel$state$member","_useState","useState","Date","_useState2","_slicedToArray2","endsAt","setEndsAt","_useChatContext","useChatContext","client","_useChannelContext","useChannelContext","channel","_ref","data","cooldown","interval","disabledRoles","BuiltinRoles","Admin","ChannelModerator","userClientRole","user","role","userChannelRole","state","members","userID","disabledFor","roles","some","roleToSkip","includes","enabled","start","now","ONE_SECOND_IN_MS","exports"],"sources":["useCooldown.ts"],"sourcesContent":["import { useState } from 'react';\n\nimport { BuiltinRoles, ChannelResponse, Role } from 'stream-chat';\n\nimport { useChannelContext } from '../../../contexts/channelContext/ChannelContext';\nimport { useChatContext } from '../../../contexts/chatContext/ChatContext';\nimport type { DefaultStreamChatGenerics } from '../../../types/types';\nimport { ONE_SECOND_IN_MS } from '../../../utils/date';\n\ntype Roles = Array<Role>;\n\n/**\n * useCooldown can be used to start a cooldown defined\n * for a Channel by setting an end time for\n **/\nexport const useCooldown = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>() => {\n const [endsAt, setEndsAt] = useState(new Date());\n\n const { client } = useChatContext<StreamChatGenerics>();\n const { channel } = useChannelContext<StreamChatGenerics>();\n const { cooldown } = (channel?.data || {}) as ChannelResponse<StreamChatGenerics>;\n const interval: number = cooldown ?? 0;\n\n /**\n * We get the roles a user has globally set on the Client, and the role\n * they have locally within the chat. If any of the predefined\n * `disabledRoles` are matched to either of the users roles, the user\n * will not have a cooldown at all.\n **/\n const disabledRoles = [BuiltinRoles.Admin, BuiltinRoles.ChannelModerator];\n const userClientRole = client?.user?.role || '';\n const userChannelRole = channel?.state.members[client.userID || '']?.role || '';\n\n const disabledFor = (roles: Roles) =>\n disabledRoles.some((roleToSkip) => roles.includes(roleToSkip));\n\n const enabled = interval > 0 && !disabledFor([userClientRole, userChannelRole]);\n\n const start = () => {\n if (enabled) {\n setEndsAt(new Date(Date.now() + interval * ONE_SECOND_IN_MS));\n }\n };\n\n return { endsAt, start };\n};\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,WAAA,GAAAD,OAAA;AAEA,IAAAE,eAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AAEA,IAAAI,KAAA,GAAAJ,OAAA;AAQO,IAAMK,WAAW,GAAG,SAAdA,WAAWA,CAAA,EAEjB;EAAA,IAAAC,YAAA,EAAAC,qBAAA;EACL,IAAAC,SAAA,GAA4B,IAAAC,eAAQ,EAAC,IAAIC,IAAI,
|
|
1
|
+
{"version":3,"names":["_react","require","_streamChat","_ChannelContext","_ChatContext","_date","useCooldown","_client$user","_channel$state$member","_useState","useState","Date","_useState2","_slicedToArray2","endsAt","setEndsAt","_useChatContext","useChatContext","client","_useChannelContext","useChannelContext","channel","_ref","data","cooldown","interval","disabledRoles","BuiltinRoles","Admin","ChannelModerator","userClientRole","user","role","userChannelRole","state","members","userID","disabledFor","roles","some","roleToSkip","includes","enabled","start","now","ONE_SECOND_IN_MS","exports"],"sources":["useCooldown.ts"],"sourcesContent":["import { useState } from 'react';\n\nimport { BuiltinRoles, ChannelResponse, Role } from 'stream-chat';\n\nimport { useChannelContext } from '../../../contexts/channelContext/ChannelContext';\nimport { useChatContext } from '../../../contexts/chatContext/ChatContext';\nimport type { DefaultStreamChatGenerics } from '../../../types/types';\nimport { ONE_SECOND_IN_MS } from '../../../utils/date';\n\ntype Roles = Array<Role>;\n\n/**\n * useCooldown can be used to start a cooldown defined\n * for a Channel by setting an end time for\n **/\nexport const useCooldown = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>() => {\n const [endsAt, setEndsAt] = useState(new Date());\n\n const { client } = useChatContext<StreamChatGenerics>();\n const { channel } = useChannelContext<StreamChatGenerics>();\n const { cooldown } = (channel?.data || {}) as ChannelResponse<StreamChatGenerics>;\n const interval: number = cooldown ?? 0;\n\n /**\n * We get the roles a user has globally set on the Client, and the role\n * they have locally within the chat. If any of the predefined\n * `disabledRoles` are matched to either of the users roles, the user\n * will not have a cooldown at all.\n **/\n const disabledRoles = [BuiltinRoles.Admin, BuiltinRoles.ChannelModerator];\n const userClientRole = client?.user?.role || '';\n const userChannelRole = channel?.state.members[client.userID || '']?.role || '';\n\n const disabledFor = (roles: Roles) =>\n disabledRoles.some((roleToSkip) => roles.includes(roleToSkip));\n\n const enabled = interval > 0 && !disabledFor([userClientRole, userChannelRole]);\n\n const start = () => {\n if (enabled) {\n setEndsAt(new Date(Date.now() + interval * ONE_SECOND_IN_MS));\n }\n };\n\n return { endsAt, start };\n};\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,WAAA,GAAAD,OAAA;AAEA,IAAAE,eAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AAEA,IAAAI,KAAA,GAAAJ,OAAA;AAQO,IAAMK,WAAW,GAAG,SAAdA,WAAWA,CAAA,EAEjB;EAAA,IAAAC,YAAA,EAAAC,qBAAA;EACL,IAAAC,SAAA,GAA4B,IAAAC,eAAQ,EAAC,IAAIC,IAAI,CAAC,CAAC,CAAC;IAAAC,UAAA,OAAAC,eAAA,aAAAJ,SAAA;IAAzCK,MAAM,GAAAF,UAAA;IAAEG,SAAS,GAAAH,UAAA;EAExB,IAAAI,eAAA,GAAmB,IAAAC,2BAAc,EAAqB,CAAC;IAA/CC,MAAM,GAAAF,eAAA,CAANE,MAAM;EACd,IAAAC,kBAAA,GAAoB,IAAAC,iCAAiB,EAAqB,CAAC;IAAnDC,OAAO,GAAAF,kBAAA,CAAPE,OAAO;EACf,IAAAC,IAAA,GAAsB,CAAAD,OAAO,oBAAPA,OAAO,CAAEE,IAAI,KAAI,CAAC,CAAC;IAAjCC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;EAChB,IAAMC,QAAgB,GAAGD,QAAQ,WAARA,QAAQ,GAAI,CAAC;EAQtC,IAAME,aAAa,GAAG,CAACC,wBAAY,CAACC,KAAK,EAAED,wBAAY,CAACE,gBAAgB,CAAC;EACzE,IAAMC,cAAc,GAAG,CAAAZ,MAAM,qBAAAX,YAAA,GAANW,MAAM,CAAEa,IAAI,qBAAZxB,YAAA,CAAcyB,IAAI,KAAI,EAAE;EAC/C,IAAMC,eAAe,GAAG,CAAAZ,OAAO,qBAAAb,qBAAA,GAAPa,OAAO,CAAEa,KAAK,CAACC,OAAO,CAACjB,MAAM,CAACkB,MAAM,IAAI,EAAE,CAAC,qBAA3C5B,qBAAA,CAA6CwB,IAAI,KAAI,EAAE;EAE/E,IAAMK,WAAW,GAAG,SAAdA,WAAWA,CAAIC,KAAY;IAAA,OAC/BZ,aAAa,CAACa,IAAI,CAAC,UAACC,UAAU;MAAA,OAAKF,KAAK,CAACG,QAAQ,CAACD,UAAU,CAAC;IAAA,EAAC;EAAA;EAEhE,IAAME,OAAO,GAAGjB,QAAQ,GAAG,CAAC,IAAI,CAACY,WAAW,CAAC,CAACP,cAAc,EAAEG,eAAe,CAAC,CAAC;EAE/E,IAAMU,KAAK,GAAG,SAARA,KAAKA,CAAA,EAAS;IAClB,IAAID,OAAO,EAAE;MACX3B,SAAS,CAAC,IAAIJ,IAAI,CAACA,IAAI,CAACiC,GAAG,CAAC,CAAC,GAAGnB,QAAQ,GAAGoB,sBAAgB,CAAC,CAAC;IAC/D;EACF,CAAC;EAED,OAAO;IAAE/B,MAAM,EAANA,MAAM;IAAE6B,KAAK,EAALA;EAAM,CAAC;AAC1B,CAAC;AAACG,OAAA,CAAAxC,WAAA,GAAAA,WAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_ThemeContext","_this","_jsxFileName","styles","StyleSheet","create","container","alignItems","alignSelf","borderRadius","height","justifyContent","marginTop","paddingHorizontal","text","fontSize","textAlign","textAlignVertical","DateHeader","_ref","dateString","_useTheme","useTheme","_useTheme$theme","theme","_useTheme$theme$color","colors","overlay","white","_useTheme$theme$dateH","dateHeader","createElement","View","style","backgroundColor","__self","__source","fileName","lineNumber","columnNumber","Text","color","exports"],"sources":["DateHeader.tsx"],"sourcesContent":["import React from 'react';\nimport { StyleSheet, Text, View } from 'react-native';\n\nimport { useTheme } from '../../contexts/themeContext/ThemeContext';\n\nconst styles = StyleSheet.create({\n container: {\n alignItems: 'center',\n alignSelf: 'center',\n borderRadius: 8,\n height: 16,\n justifyContent: 'center',\n marginTop: 8,\n paddingHorizontal: 8,\n },\n text: {\n fontSize: 12,\n textAlign: 'center',\n textAlignVertical: 'center',\n },\n});\n\nexport type DateHeaderProps = {\n dateString: string;\n};\n\nexport const DateHeader: React.FC<DateHeaderProps> = ({ dateString }) => {\n const {\n theme: {\n colors: { overlay, white },\n dateHeader: { container, text },\n },\n } = useTheme();\n\n return (\n <View style={[styles.container, { backgroundColor: overlay }, container]}>\n <Text style={[styles.text, { color: white }, text]}>{dateString}</Text>\n </View>\n );\n};\n"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,aAAA,GAAAF,OAAA;AAAoE,IAAAG,KAAA;EAAAC,YAAA;AAEpE,IAAMC,MAAM,GAAGC,uBAAU,CAACC,MAAM,CAAC;EAC/BC,SAAS,EAAE;IACTC,UAAU,EAAE,QAAQ;IACpBC,SAAS,EAAE,QAAQ;IACnBC,YAAY,EAAE,CAAC;IACfC,MAAM,EAAE,EAAE;IACVC,cAAc,EAAE,QAAQ;IACxBC,SAAS,EAAE,CAAC;IACZC,iBAAiB,EAAE;EACrB,CAAC;EACDC,IAAI,EAAE;IACJC,QAAQ,EAAE,EAAE;IACZC,SAAS,EAAE,QAAQ;IACnBC,iBAAiB,EAAE;EACrB;AACF,CAAC,CAAC;AAMK,IAAMC,UAAqC,GAAG,SAAxCA,UAAqCA,CAAAC,IAAA,EAAuB;EAAA,IAAjBC,UAAU,GAAAD,IAAA,CAAVC,UAAU;EAChE,IAAAC,SAAA,GAKI,IAAAC,sBAAQ,
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_ThemeContext","_this","_jsxFileName","styles","StyleSheet","create","container","alignItems","alignSelf","borderRadius","height","justifyContent","marginTop","paddingHorizontal","text","fontSize","textAlign","textAlignVertical","DateHeader","_ref","dateString","_useTheme","useTheme","_useTheme$theme","theme","_useTheme$theme$color","colors","overlay","white","_useTheme$theme$dateH","dateHeader","createElement","View","style","backgroundColor","__self","__source","fileName","lineNumber","columnNumber","Text","color","exports"],"sources":["DateHeader.tsx"],"sourcesContent":["import React from 'react';\nimport { StyleSheet, Text, View } from 'react-native';\n\nimport { useTheme } from '../../contexts/themeContext/ThemeContext';\n\nconst styles = StyleSheet.create({\n container: {\n alignItems: 'center',\n alignSelf: 'center',\n borderRadius: 8,\n height: 16,\n justifyContent: 'center',\n marginTop: 8,\n paddingHorizontal: 8,\n },\n text: {\n fontSize: 12,\n textAlign: 'center',\n textAlignVertical: 'center',\n },\n});\n\nexport type DateHeaderProps = {\n dateString: string;\n};\n\nexport const DateHeader: React.FC<DateHeaderProps> = ({ dateString }) => {\n const {\n theme: {\n colors: { overlay, white },\n dateHeader: { container, text },\n },\n } = useTheme();\n\n return (\n <View style={[styles.container, { backgroundColor: overlay }, container]}>\n <Text style={[styles.text, { color: white }, text]}>{dateString}</Text>\n </View>\n );\n};\n"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,aAAA,GAAAF,OAAA;AAAoE,IAAAG,KAAA;EAAAC,YAAA;AAEpE,IAAMC,MAAM,GAAGC,uBAAU,CAACC,MAAM,CAAC;EAC/BC,SAAS,EAAE;IACTC,UAAU,EAAE,QAAQ;IACpBC,SAAS,EAAE,QAAQ;IACnBC,YAAY,EAAE,CAAC;IACfC,MAAM,EAAE,EAAE;IACVC,cAAc,EAAE,QAAQ;IACxBC,SAAS,EAAE,CAAC;IACZC,iBAAiB,EAAE;EACrB,CAAC;EACDC,IAAI,EAAE;IACJC,QA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reactNative","_ThemeContext","_TranslationContext","_this","_jsxFileName","styles","StyleSheet","create","container","alignItems","alignSelf","borderRadius","height","justifyContent","marginVertical","paddingHorizontal","text","fontSize","textAlign","textAlignVertical","InlineDateSeparator","_ref","date","_useTheme","useTheme","_useTheme$theme","theme","_useTheme$theme$color","colors","overlay","white","_useTheme$theme$inlin","inlineDateSeparator","_useTranslationContex","useTranslationContext","tDateTimeParser","dateFormat","getFullYear","Date","tDate","dateString","isDayOrMoment","format","toDateString","createElement","View","style","backgroundColor","testID","__self","__source","fileName","lineNumber","columnNumber","Text","color","exports"],"sources":["InlineDateSeparator.tsx"],"sourcesContent":["import React from 'react';\nimport { StyleSheet, Text, View } from 'react-native';\n\nimport { useTheme } from '../../contexts/themeContext/ThemeContext';\nimport {\n isDayOrMoment,\n useTranslationContext,\n} from '../../contexts/translationContext/TranslationContext';\n\nconst styles = StyleSheet.create({\n container: {\n alignItems: 'center',\n alignSelf: 'center',\n borderRadius: 8,\n height: 16,\n justifyContent: 'center',\n marginVertical: 4,\n paddingHorizontal: 8,\n },\n text: {\n fontSize: 12,\n textAlign: 'center',\n textAlignVertical: 'center',\n },\n});\n\nexport type InlineDateSeparatorProps = {\n date?: Date;\n};\n\nexport const InlineDateSeparator: React.FC<InlineDateSeparatorProps> = ({ date }) => {\n const {\n theme: {\n colors: { overlay, white },\n inlineDateSeparator: { container, text },\n },\n } = useTheme();\n const { tDateTimeParser } = useTranslationContext();\n\n if (!date) {\n return null;\n }\n\n const dateFormat = date.getFullYear() === new Date().getFullYear() ? 'MMM D' : 'MMM D, YYYY';\n const tDate = tDateTimeParser(date);\n const dateString = isDayOrMoment(tDate)\n ? tDate.format(dateFormat)\n : new Date(tDate).toDateString();\n\n return (\n <View\n style={[styles.container, { backgroundColor: overlay }, container]}\n testID='date-separator'\n >\n <Text style={[styles.text, { color: white }, text]}>{dateString}</Text>\n </View>\n );\n};\n"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,aAAA,GAAAF,OAAA;AACA,IAAAG,mBAAA,GAAAH,OAAA;AAG8D,IAAAI,KAAA;EAAAC,YAAA;AAE9D,IAAMC,MAAM,GAAGC,uBAAU,CAACC,MAAM,CAAC;EAC/BC,SAAS,EAAE;IACTC,UAAU,EAAE,QAAQ;IACpBC,SAAS,EAAE,QAAQ;IACnBC,YAAY,EAAE,CAAC;IACfC,MAAM,EAAE,EAAE;IACVC,cAAc,EAAE,QAAQ;IACxBC,cAAc,EAAE,CAAC;IACjBC,iBAAiB,EAAE;EACrB,CAAC;EACDC,IAAI,EAAE;IACJC,QAAQ,EAAE,EAAE;IACZC,SAAS,EAAE,QAAQ;IACnBC,iBAAiB,EAAE;EACrB;AACF,CAAC,CAAC;AAMK,IAAMC,mBAAuD,GAAG,SAA1DA,mBAAuDA,CAAAC,IAAA,EAAiB;EAAA,IAAXC,IAAI,GAAAD,IAAA,CAAJC,IAAI;EAC5E,IAAAC,SAAA,GAKI,IAAAC,sBAAQ,
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_ThemeContext","_TranslationContext","_this","_jsxFileName","styles","StyleSheet","create","container","alignItems","alignSelf","borderRadius","height","justifyContent","marginVertical","paddingHorizontal","text","fontSize","textAlign","textAlignVertical","InlineDateSeparator","_ref","date","_useTheme","useTheme","_useTheme$theme","theme","_useTheme$theme$color","colors","overlay","white","_useTheme$theme$inlin","inlineDateSeparator","_useTranslationContex","useTranslationContext","tDateTimeParser","dateFormat","getFullYear","Date","tDate","dateString","isDayOrMoment","format","toDateString","createElement","View","style","backgroundColor","testID","__self","__source","fileName","lineNumber","columnNumber","Text","color","exports"],"sources":["InlineDateSeparator.tsx"],"sourcesContent":["import React from 'react';\nimport { StyleSheet, Text, View } from 'react-native';\n\nimport { useTheme } from '../../contexts/themeContext/ThemeContext';\nimport {\n isDayOrMoment,\n useTranslationContext,\n} from '../../contexts/translationContext/TranslationContext';\n\nconst styles = StyleSheet.create({\n container: {\n alignItems: 'center',\n alignSelf: 'center',\n borderRadius: 8,\n height: 16,\n justifyContent: 'center',\n marginVertical: 4,\n paddingHorizontal: 8,\n },\n text: {\n fontSize: 12,\n textAlign: 'center',\n textAlignVertical: 'center',\n },\n});\n\nexport type InlineDateSeparatorProps = {\n date?: Date;\n};\n\nexport const InlineDateSeparator: React.FC<InlineDateSeparatorProps> = ({ date }) => {\n const {\n theme: {\n colors: { overlay, white },\n inlineDateSeparator: { container, text },\n },\n } = useTheme();\n const { tDateTimeParser } = useTranslationContext();\n\n if (!date) {\n return null;\n }\n\n const dateFormat = date.getFullYear() === new Date().getFullYear() ? 'MMM D' : 'MMM D, YYYY';\n const tDate = tDateTimeParser(date);\n const dateString = isDayOrMoment(tDate)\n ? tDate.format(dateFormat)\n : new Date(tDate).toDateString();\n\n return (\n <View\n style={[styles.container, { backgroundColor: overlay }, container]}\n testID='date-separator'\n >\n <Text style={[styles.text, { color: white }, text]}>{dateString}</Text>\n </View>\n );\n};\n"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,aAAA,GAAAF,OAAA;AACA,IAAAG,mBAAA,GAAAH,OAAA;AAG8D,IAAAI,KAAA;EAAAC,YAAA;AAE9D,IAAMC,MAAM,GAAGC,uBAAU,CAACC,MAAM,CAAC;EAC/BC,SAAS,EAAE;IACTC,UAAU,EAAE,QAAQ;IACpBC,SAAS,EAAE,QAAQ;IACnBC,YAAY,EAAE,CAAC;IACfC,MAAM,EAAE,EAAE;IACVC,cAAc,EAAE,QAAQ;IACxBC,cAAc,EAAE,CAAC;IACjBC,iBAAiB,EAAE;EACrB,CAAC;EACDC,IAAI,EAAE;IACJC,QAAQ,EAAE,EAAE;IACZC,SAAS,EAAE,QAAQ;IACnBC,iBAAiB,EAAE;EACrB;AACF,CAAC,CAAC;AAMK,IAAMC,mBAAuD,G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A;EAAA,GAEvBxD,MAAA,YAAA+C,aAAA,CAAC5C,YAAA,CAAAsD,IAAI;IAACR,KAAK,EAAE,CAACzC,MAAM,CAACW,IAAI,EAAE;MAAEuC,KAAK,EAAEzB;IAAM,CAAC,EAAEd,IAAI,CAAE;IAAAiC,MAAA,EAAA9C,KAAA;IAAA+C,QAAA;MAAAC,QAAA,EAAA/C,YAAA;MAAAgD,UAAA;MAAAC,YAAA;IAAA;EAAA,GAAEb,UAAiB,CAClE,CAAC;AAEX,CAAC;AAACgB,OAAA,CAAApC,mBAAA,GAAAA,mBAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_PaginatedMessageListContext","_ThemeContext","_this","_jsxFileName","styles","StyleSheet","create","activityIndicatorContainer","padding","width","InlineLoadingMoreIndicatorWithContext","_ref","loadingMore","_useTheme","useTheme","theme","accent_blue","colors","createElement","View","style","__self","__source","fileName","lineNumber","columnNumber","ActivityIndicator","color","size","exports","areEqual","prevProps","nextProps","prevLoadingMore","nextLoadingMore","loadingMoreEqual","MemoizedInlineLoadingMoreIndicator","React","memo","InlineLoadingMoreIndicator","_usePaginatedMessageL","usePaginatedMessageListContext"],"sources":["InlineLoadingMoreIndicator.tsx"],"sourcesContent":["import React from 'react';\nimport { ActivityIndicator, StyleSheet, View } from 'react-native';\n\nimport { usePaginatedMessageListContext } from '../../contexts/paginatedMessageListContext/PaginatedMessageListContext';\nimport { useTheme } from '../../contexts/themeContext/ThemeContext';\n\nimport type { DefaultStreamChatGenerics } from '../../types/types';\n\nconst styles = StyleSheet.create({\n activityIndicatorContainer: {\n padding: 10,\n width: '100%',\n },\n});\n\nexport type InlineLoadingMoreIndicatorPropsWithContext = {\n loadingMore?: boolean;\n};\n\nexport const InlineLoadingMoreIndicatorWithContext: React.FC<InlineLoadingMoreIndicatorPropsWithContext> =\n ({ loadingMore }) => {\n const { theme } = useTheme();\n\n const {\n colors: { accent_blue },\n } = theme;\n\n if (!loadingMore) {\n return null;\n }\n\n return (\n <View style={styles.activityIndicatorContainer}>\n <ActivityIndicator color={accent_blue} size='small' />\n </View>\n );\n };\n\nconst areEqual = (\n prevProps: InlineLoadingMoreIndicatorPropsWithContext,\n nextProps: InlineLoadingMoreIndicatorPropsWithContext,\n) => {\n const { loadingMore: prevLoadingMore } = prevProps;\n const { loadingMore: nextLoadingMore } = nextProps;\n\n const loadingMoreEqual = prevLoadingMore === nextLoadingMore;\n if (!loadingMoreEqual) return false;\n\n return true;\n};\n\nconst MemoizedInlineLoadingMoreIndicator = React.memo(\n InlineLoadingMoreIndicatorWithContext,\n areEqual,\n) as typeof InlineLoadingMoreIndicatorWithContext;\n\nexport const InlineLoadingMoreIndicator = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>() => {\n const { loadingMore } = usePaginatedMessageListContext<StreamChatGenerics>();\n\n return <MemoizedInlineLoadingMoreIndicator loadingMore={loadingMore} />;\n};\n"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,4BAAA,GAAAF,OAAA;AACA,IAAAG,aAAA,GAAAH,OAAA;AAAoE,IAAAI,KAAA;EAAAC,YAAA;AAIpE,IAAMC,MAAM,GAAGC,uBAAU,CAACC,MAAM,CAAC;EAC/BC,0BAA0B,EAAE;IAC1BC,OAAO,EAAE,EAAE;IACXC,KAAK,EAAE;EACT;AACF,CAAC,CAAC;AAMK,IAAMC,qCAA2F,GACtG,SADWA,qCAA2FA,CAAAC,IAAA,EACjF;EAAA,IAAlBC,WAAW,GAAAD,IAAA,CAAXC,WAAW;EACZ,IAAAC,SAAA,GAAkB,IAAAC,sBAAQ,
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_PaginatedMessageListContext","_ThemeContext","_this","_jsxFileName","styles","StyleSheet","create","activityIndicatorContainer","padding","width","InlineLoadingMoreIndicatorWithContext","_ref","loadingMore","_useTheme","useTheme","theme","accent_blue","colors","createElement","View","style","__self","__source","fileName","lineNumber","columnNumber","ActivityIndicator","color","size","exports","areEqual","prevProps","nextProps","prevLoadingMore","nextLoadingMore","loadingMoreEqual","MemoizedInlineLoadingMoreIndicator","React","memo","InlineLoadingMoreIndicator","_usePaginatedMessageL","usePaginatedMessageListContext"],"sources":["InlineLoadingMoreIndicator.tsx"],"sourcesContent":["import React from 'react';\nimport { ActivityIndicator, StyleSheet, View } from 'react-native';\n\nimport { usePaginatedMessageListContext } from '../../contexts/paginatedMessageListContext/PaginatedMessageListContext';\nimport { useTheme } from '../../contexts/themeContext/ThemeContext';\n\nimport type { DefaultStreamChatGenerics } from '../../types/types';\n\nconst styles = StyleSheet.create({\n activityIndicatorContainer: {\n padding: 10,\n width: '100%',\n },\n});\n\nexport type InlineLoadingMoreIndicatorPropsWithContext = {\n loadingMore?: boolean;\n};\n\nexport const InlineLoadingMoreIndicatorWithContext: React.FC<InlineLoadingMoreIndicatorPropsWithContext> =\n ({ loadingMore }) => {\n const { theme } = useTheme();\n\n const {\n colors: { accent_blue },\n } = theme;\n\n if (!loadingMore) {\n return null;\n }\n\n return (\n <View style={styles.activityIndicatorContainer}>\n <ActivityIndicator color={accent_blue} size='small' />\n </View>\n );\n };\n\nconst areEqual = (\n prevProps: InlineLoadingMoreIndicatorPropsWithContext,\n nextProps: InlineLoadingMoreIndicatorPropsWithContext,\n) => {\n const { loadingMore: prevLoadingMore } = prevProps;\n const { loadingMore: nextLoadingMore } = nextProps;\n\n const loadingMoreEqual = prevLoadingMore === nextLoadingMore;\n if (!loadingMoreEqual) return false;\n\n return true;\n};\n\nconst MemoizedInlineLoadingMoreIndicator = React.memo(\n InlineLoadingMoreIndicatorWithContext,\n areEqual,\n) as typeof InlineLoadingMoreIndicatorWithContext;\n\nexport const InlineLoadingMoreIndicator = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>() => {\n const { loadingMore } = usePaginatedMessageListContext<StreamChatGenerics>();\n\n return <MemoizedInlineLoadingMoreIndicator loadingMore={loadingMore} />;\n};\n"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,4BAAA,GAAAF,OAAA;AACA,IAAAG,aAAA,GAAAH,OAAA;AAAoE,IAAAI,KAAA;EAAAC,YAAA;AAIpE,IAAMC,MAAM,GAAGC,uBAAU,CAACC,MAAM,CAAC;EAC/BC,0BAA0B,EAAE;IAC1BC,OAAO,EAAE,EAAE;IACXC,KAAK,EAAE;EACT;AACF,CAAC,CAAC;AAMK,IAAMC,qCAA2F,GACtG,SADWA,qCAA2FA,CAAAC,IAAA,EACjF;EAAA,IAAlBC,WAAW,GAAAD,IAAA,CAAXC,WAAW;EACZ,IAAAC,SAAA,GAAkB,IAAAC,sBAAQ,EAAC,CAAC;IAApBC,KAAK,GAAAF,SAAA,CAALE,KAAK;EAEb,IACYC,WAAW,GACnBD,KAAK,CADPE,MAAM,CAAID,WAAW;EAGvB,IAAI,CAACJ,WAAW,EAAE;IAChB,OAAO,IAAI;EACb;EAEA,OACEhB,MAAA,YAAAsB,aAAA,CAACnB,YAAA,CAAAoB,IAAI;IAACC,KAAK,EAAEhB,MAAM,CAACG,0BAA2B;IAAAc,MAAA,EAAAnB,KAAA;IAAAoB,QAAA;MAAAC,QAAA,EAAApB,YAAA;MAAAqB,UAAA;MAAAC,YAAA;IAAA;EAAA,GAC7C7B,MAAA,YAAAsB,aAAA,CAACnB,YAAA,CAAA2B,iBAAiB;IAACC,KAAK,EAAEX,WAAY;IAACY,IAAI,EAAC,OAAO;IAAAP,MAAA,EAAAnB,KAAA;IAAAoB,QAAA;MAAAC,QAAA,EAAApB,YAAA;MAAAqB,UAAA;MAAAC,YAAA;IAAA;EAAA,CAAE,CACjD,CAAC;AAEX,CAAC;AAACI,OAAA,CAAAnB,qCAAA,GAAAA,qCAAA;AAEJ,IAAMoB,QAAQ,GAAG,SAAXA,QAAQA,CACZC,SAAqD,EACrDC,SAAqD,EAClD;EACH,IAAqBC,eAAe,GAAKF,SAAS,CAA1CnB,WAAW;EACnB,IAAqBsB,eAAe,GAAKF,SAAS,CAA1CpB,WAAW;EAEnB,IAAMuB,gBAAgB,GAAGF,eAAe,KAAKC,eAAe;EAC5D,IAAI,CAACC,gBAAgB,EAAE,OAAO,KAAK;EAEnC,OAAO,IAAI;AACb,CAAC;AAED,IAAMC,kCAAkC,GAAGC,iBAAK,CAACC,IAAI,CACnD5B,qCAAqC,EACrCoB,QACF,CAAiD;AAE1C,IAAMS,0BAA0B,GAAG,SAA7BA,0BAA0BA,CAAA,EAEhC;EACL,IAAAC,qBAAA,GAAwB,IAAAC,2DAA8B,EAAqB,CAAC;IAApE7B,WAAW,GAAA4B,qBAAA,CAAX5B,WAAW;EAEnB,OAAOhB,MAAA,YAAAsB,aAAA,CAACkB,kCAAkC;IAACxB,WAAW,EAAEA,WAAY;IAAAS,MAAA,EAAAnB,KAAA;IAAAoB,QAAA;MAAAC,QAAA,EAAApB,YAAA;MAAAqB,UAAA;MAAAC,YAAA;IAAA;EAAA,CAAE,CAAC;AACzE,CAAC;AAACI,OAAA,CAAAU,0BAAA,GAAAA,0BAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_PaginatedMessageListContext","_ThemeContext","_this","_jsxFileName","styles","StyleSheet","create","activityIndicatorContainer","padding","width","InlineLoadingMoreRecentIndicatorWithContext","_ref","loadingMoreRecent","_useTheme","useTheme","theme","accent_blue","colors","createElement","View","style","__self","__source","fileName","lineNumber","columnNumber","ActivityIndicator","color","size","exports","areEqual","prevProps","nextProps","prevLoadingMoreRecent","nextLoadingMoreRecent","loadingMoreRecentEqual","MemoizedInlineLoadingMoreRecentIndicator","React","memo","InlineLoadingMoreRecentIndicator","_usePaginatedMessageL","usePaginatedMessageListContext"],"sources":["InlineLoadingMoreRecentIndicator.tsx"],"sourcesContent":["import React from 'react';\nimport { ActivityIndicator, StyleSheet, View } from 'react-native';\n\nimport { usePaginatedMessageListContext } from '../../contexts/paginatedMessageListContext/PaginatedMessageListContext';\nimport { useTheme } from '../../contexts/themeContext/ThemeContext';\n\nimport type { DefaultStreamChatGenerics } from '../../types/types';\n\nconst styles = StyleSheet.create({\n activityIndicatorContainer: {\n padding: 10,\n width: '100%',\n },\n});\n\nexport type InlineLoadingMoreRecentIndicatorPropsWithContext = {\n loadingMoreRecent?: boolean;\n};\n\nexport const InlineLoadingMoreRecentIndicatorWithContext: React.FC<InlineLoadingMoreRecentIndicatorPropsWithContext> =\n ({ loadingMoreRecent }) => {\n const { theme } = useTheme();\n\n const {\n colors: { accent_blue },\n } = theme;\n\n if (!loadingMoreRecent) {\n return null;\n }\n\n return (\n <View style={styles.activityIndicatorContainer}>\n <ActivityIndicator color={accent_blue} size='small' />\n </View>\n );\n };\n\nconst areEqual = (\n prevProps: InlineLoadingMoreRecentIndicatorPropsWithContext,\n nextProps: InlineLoadingMoreRecentIndicatorPropsWithContext,\n) => {\n const { loadingMoreRecent: prevLoadingMoreRecent } = prevProps;\n const { loadingMoreRecent: nextLoadingMoreRecent } = nextProps;\n\n const loadingMoreRecentEqual = prevLoadingMoreRecent === nextLoadingMoreRecent;\n if (!loadingMoreRecentEqual) return false;\n\n return true;\n};\n\nconst MemoizedInlineLoadingMoreRecentIndicator = React.memo(\n InlineLoadingMoreRecentIndicatorWithContext,\n areEqual,\n) as typeof InlineLoadingMoreRecentIndicatorWithContext;\n\nexport const InlineLoadingMoreRecentIndicator = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>() => {\n const { loadingMoreRecent } = usePaginatedMessageListContext<StreamChatGenerics>();\n\n return <MemoizedInlineLoadingMoreRecentIndicator loadingMoreRecent={loadingMoreRecent} />;\n};\n"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,4BAAA,GAAAF,OAAA;AACA,IAAAG,aAAA,GAAAH,OAAA;AAAoE,IAAAI,KAAA;EAAAC,YAAA;AAIpE,IAAMC,MAAM,GAAGC,uBAAU,CAACC,MAAM,CAAC;EAC/BC,0BAA0B,EAAE;IAC1BC,OAAO,EAAE,EAAE;IACXC,KAAK,EAAE;EACT;AACF,CAAC,CAAC;AAMK,IAAMC,2CAAuG,GAClH,SADWA,2CAAuGA,CAAAC,IAAA,EACvF;EAAA,IAAxBC,iBAAiB,GAAAD,IAAA,CAAjBC,iBAAiB;EAClB,IAAAC,SAAA,GAAkB,IAAAC,sBAAQ,
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_PaginatedMessageListContext","_ThemeContext","_this","_jsxFileName","styles","StyleSheet","create","activityIndicatorContainer","padding","width","InlineLoadingMoreRecentIndicatorWithContext","_ref","loadingMoreRecent","_useTheme","useTheme","theme","accent_blue","colors","createElement","View","style","__self","__source","fileName","lineNumber","columnNumber","ActivityIndicator","color","size","exports","areEqual","prevProps","nextProps","prevLoadingMoreRecent","nextLoadingMoreRecent","loadingMoreRecentEqual","MemoizedInlineLoadingMoreRecentIndicator","React","memo","InlineLoadingMoreRecentIndicator","_usePaginatedMessageL","usePaginatedMessageListContext"],"sources":["InlineLoadingMoreRecentIndicator.tsx"],"sourcesContent":["import React from 'react';\nimport { ActivityIndicator, StyleSheet, View } from 'react-native';\n\nimport { usePaginatedMessageListContext } from '../../contexts/paginatedMessageListContext/PaginatedMessageListContext';\nimport { useTheme } from '../../contexts/themeContext/ThemeContext';\n\nimport type { DefaultStreamChatGenerics } from '../../types/types';\n\nconst styles = StyleSheet.create({\n activityIndicatorContainer: {\n padding: 10,\n width: '100%',\n },\n});\n\nexport type InlineLoadingMoreRecentIndicatorPropsWithContext = {\n loadingMoreRecent?: boolean;\n};\n\nexport const InlineLoadingMoreRecentIndicatorWithContext: React.FC<InlineLoadingMoreRecentIndicatorPropsWithContext> =\n ({ loadingMoreRecent }) => {\n const { theme } = useTheme();\n\n const {\n colors: { accent_blue },\n } = theme;\n\n if (!loadingMoreRecent) {\n return null;\n }\n\n return (\n <View style={styles.activityIndicatorContainer}>\n <ActivityIndicator color={accent_blue} size='small' />\n </View>\n );\n };\n\nconst areEqual = (\n prevProps: InlineLoadingMoreRecentIndicatorPropsWithContext,\n nextProps: InlineLoadingMoreRecentIndicatorPropsWithContext,\n) => {\n const { loadingMoreRecent: prevLoadingMoreRecent } = prevProps;\n const { loadingMoreRecent: nextLoadingMoreRecent } = nextProps;\n\n const loadingMoreRecentEqual = prevLoadingMoreRecent === nextLoadingMoreRecent;\n if (!loadingMoreRecentEqual) return false;\n\n return true;\n};\n\nconst MemoizedInlineLoadingMoreRecentIndicator = React.memo(\n InlineLoadingMoreRecentIndicatorWithContext,\n areEqual,\n) as typeof InlineLoadingMoreRecentIndicatorWithContext;\n\nexport const InlineLoadingMoreRecentIndicator = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>() => {\n const { loadingMoreRecent } = usePaginatedMessageListContext<StreamChatGenerics>();\n\n return <MemoizedInlineLoadingMoreRecentIndicator loadingMoreRecent={loadingMoreRecent} />;\n};\n"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,4BAAA,GAAAF,OAAA;AACA,IAAAG,aAAA,GAAAH,OAAA;AAAoE,IAAAI,KAAA;EAAAC,YAAA;AAIpE,IAAMC,MAAM,GAAGC,uBAAU,CAACC,MAAM,CAAC;EAC/BC,0BAA0B,EAAE;IAC1BC,OAAO,EAAE,EAAE;IACXC,KAAK,EAAE;EACT;AACF,CAAC,CAAC;AAMK,IAAMC,2CAAuG,GAClH,SADWA,2CAAuGA,CAAAC,IAAA,EACvF;EAAA,IAAxBC,iBAAiB,GAAAD,IAAA,CAAjBC,iB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AA1E7B,iBAAiB,GAAA4B,qBAAA,CAAjB5B,iBAAiB;EAEzB,OAAOhB,MAAA,YAAAsB,aAAA,CAACkB,wCAAwC;IAACxB,iBAAiB,EAAEA,iBAAkB;IAAAS,MAAA,EAAAnB,KAAA;IAAAoB,QAAA;MAAAC,QAAA,EAAApB,YAAA;MAAAqB,UAAA;MAAAC,YAAA;IAAA;EAAA,CAAE,CAAC;AAC3F,CAAC;AAACI,OAAA,CAAAU,gCAAA,GAAAA,gCAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_ThemeContext","_ThreadContext","_this","_jsxFileName","styles","StyleSheet","create","activityIndicatorContainer","padding","width","InlineLoadingMoreThreadIndicatorWithContext","_ref","threadLoadingMore","_useTheme","useTheme","theme","accent_blue","colors","createElement","View","style","__self","__source","fileName","lineNumber","columnNumber","ActivityIndicator","color","size","exports","areEqual","prevProps","nextProps","prevThreadLoadingMore","nextThreadLoadingMore","threadLoadingMoreEqual","MemoizedInlineLoadingMoreThreadIndicator","React","memo","InlineLoadingMoreThreadIndicator","_useThreadContext","useThreadContext"],"sources":["InlineLoadingMoreThreadIndicator.tsx"],"sourcesContent":["import React from 'react';\nimport { ActivityIndicator, StyleSheet, View } from 'react-native';\n\nimport { useTheme } from '../../contexts/themeContext/ThemeContext';\nimport { useThreadContext } from '../../contexts/threadContext/ThreadContext';\n\nimport type { DefaultStreamChatGenerics } from '../../types/types';\n\nconst styles = StyleSheet.create({\n activityIndicatorContainer: {\n padding: 10,\n width: '100%',\n },\n});\n\nexport type InlineLoadingMoreThreadIndicatorPropsWithContext = {\n threadLoadingMore?: boolean;\n};\n\nexport const InlineLoadingMoreThreadIndicatorWithContext: React.FC<InlineLoadingMoreThreadIndicatorPropsWithContext> =\n ({ threadLoadingMore }) => {\n const { theme } = useTheme();\n\n const {\n colors: { accent_blue },\n } = theme;\n\n if (!threadLoadingMore) {\n return null;\n }\n\n return (\n <View style={styles.activityIndicatorContainer}>\n <ActivityIndicator color={accent_blue} size='small' />\n </View>\n );\n };\n\nconst areEqual = (\n prevProps: InlineLoadingMoreThreadIndicatorPropsWithContext,\n nextProps: InlineLoadingMoreThreadIndicatorPropsWithContext,\n) => {\n const { threadLoadingMore: prevThreadLoadingMore } = prevProps;\n const { threadLoadingMore: nextThreadLoadingMore } = nextProps;\n\n const threadLoadingMoreEqual = prevThreadLoadingMore === nextThreadLoadingMore;\n if (!threadLoadingMoreEqual) return false;\n\n return true;\n};\n\nconst MemoizedInlineLoadingMoreThreadIndicator = React.memo(\n InlineLoadingMoreThreadIndicatorWithContext,\n areEqual,\n) as typeof InlineLoadingMoreThreadIndicatorWithContext;\n\nexport const InlineLoadingMoreThreadIndicator = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>() => {\n const { threadLoadingMore } = useThreadContext<StreamChatGenerics>();\n\n return <MemoizedInlineLoadingMoreThreadIndicator threadLoadingMore={threadLoadingMore} />;\n};\n"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,aAAA,GAAAF,OAAA;AACA,IAAAG,cAAA,GAAAH,OAAA;AAA8E,IAAAI,KAAA;EAAAC,YAAA;AAI9E,IAAMC,MAAM,GAAGC,uBAAU,CAACC,MAAM,CAAC;EAC/BC,0BAA0B,EAAE;IAC1BC,OAAO,EAAE,EAAE;IACXC,KAAK,EAAE;EACT;AACF,CAAC,CAAC;AAMK,IAAMC,2CAAuG,GAClH,SADWA,2CAAuGA,CAAAC,IAAA,EACvF;EAAA,IAAxBC,iBAAiB,GAAAD,IAAA,CAAjBC,iBAAiB;EAClB,IAAAC,SAAA,GAAkB,IAAAC,sBAAQ,
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_ThemeContext","_ThreadContext","_this","_jsxFileName","styles","StyleSheet","create","activityIndicatorContainer","padding","width","InlineLoadingMoreThreadIndicatorWithContext","_ref","threadLoadingMore","_useTheme","useTheme","theme","accent_blue","colors","createElement","View","style","__self","__source","fileName","lineNumber","columnNumber","ActivityIndicator","color","size","exports","areEqual","prevProps","nextProps","prevThreadLoadingMore","nextThreadLoadingMore","threadLoadingMoreEqual","MemoizedInlineLoadingMoreThreadIndicator","React","memo","InlineLoadingMoreThreadIndicator","_useThreadContext","useThreadContext"],"sources":["InlineLoadingMoreThreadIndicator.tsx"],"sourcesContent":["import React from 'react';\nimport { ActivityIndicator, StyleSheet, View } from 'react-native';\n\nimport { useTheme } from '../../contexts/themeContext/ThemeContext';\nimport { useThreadContext } from '../../contexts/threadContext/ThreadContext';\n\nimport type { DefaultStreamChatGenerics } from '../../types/types';\n\nconst styles = StyleSheet.create({\n activityIndicatorContainer: {\n padding: 10,\n width: '100%',\n },\n});\n\nexport type InlineLoadingMoreThreadIndicatorPropsWithContext = {\n threadLoadingMore?: boolean;\n};\n\nexport const InlineLoadingMoreThreadIndicatorWithContext: React.FC<InlineLoadingMoreThreadIndicatorPropsWithContext> =\n ({ threadLoadingMore }) => {\n const { theme } = useTheme();\n\n const {\n colors: { accent_blue },\n } = theme;\n\n if (!threadLoadingMore) {\n return null;\n }\n\n return (\n <View style={styles.activityIndicatorContainer}>\n <ActivityIndicator color={accent_blue} size='small' />\n </View>\n );\n };\n\nconst areEqual = (\n prevProps: InlineLoadingMoreThreadIndicatorPropsWithContext,\n nextProps: InlineLoadingMoreThreadIndicatorPropsWithContext,\n) => {\n const { threadLoadingMore: prevThreadLoadingMore } = prevProps;\n const { threadLoadingMore: nextThreadLoadingMore } = nextProps;\n\n const threadLoadingMoreEqual = prevThreadLoadingMore === nextThreadLoadingMore;\n if (!threadLoadingMoreEqual) return false;\n\n return true;\n};\n\nconst MemoizedInlineLoadingMoreThreadIndicator = React.memo(\n InlineLoadingMoreThreadIndicatorWithContext,\n areEqual,\n) as typeof InlineLoadingMoreThreadIndicatorWithContext;\n\nexport const InlineLoadingMoreThreadIndicator = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>() => {\n const { threadLoadingMore } = useThreadContext<StreamChatGenerics>();\n\n return <MemoizedInlineLoadingMoreThreadIndicator threadLoadingMore={threadLoadingMore} />;\n};\n"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,aAAA,GAAAF,OAAA;AACA,IAAAG,cAAA,GAAAH,OAAA;AAA8E,IAAAI,KAAA;EAAAC,YAAA;AAI9E,IAAMC,MAAM,GAAGC,uBAAU,CAACC,MAAM,CAAC;EAC/BC,0BAA0B,EAAE;IAC1BC,OAAO,EAAE,EAAE;IACXC,KAAK,EAAE;EACT;AACF,CAAC,CAAC;AAMK,IAAMC,2CAAuG,GAClH,SADWA,2CAAuGA,CAAAC,IAAA,EACvF;EAAA,IAAxBC,iBAAiB,GAAAD,IAAA,CAAjBC,iBAAiB;EAClB,IAAAC,SAAA,GAAkB,IAAAC,sBAAQ,EAAC,CAAC;IAApBC,KAAK,GAAAF,SAAA,CAALE,KAAK;EAEb,IACYC,WAAW,GACnBD,KAAK,CADPE,MAAM,CAAID,WAAW;EAGvB,IAAI,CAACJ,iBAAiB,EAAE;IACtB,OAAO,IAAI;EACb;EAEA,OACEhB,MAAA,YAAAsB,aAAA,CAACnB,YAAA,CAAAoB,IAAI;IAACC,KAAK,EAAEhB,MAAM,CAACG,0BAA2B;IAAAc,MAAA,EAAAnB,KAAA;IAAAoB,QAAA;MAAAC,QAAA,EAAApB,YAAA;MAAAqB,UAAA;MAAAC,YAAA;IAAA;EAAA,GAC7C7B,MAAA,YAAAsB,aAAA,CAACnB,YAAA,CAAA2B,iBAAiB;IAACC,KAAK,EAAEX,WAAY;IAACY,IAAI,EAAC,OAAO;IAAAP,MAAA,EAAAnB,KAAA;IAAAoB,QAAA;MAAAC,QAAA,EAAApB,YAAA;MAAAqB,UAAA;MAAAC,YAAA;IAAA;EAAA,CAAE,CACjD,CAAC;AAEX,CAAC;AAACI,OAAA,CAAAnB,2CAAA,GAAAA,2CAAA;AAEJ,IAAMoB,QAAQ,GAAG,SAAXA,QAAQA,CACZC,SAA2D,EAC3DC,SAA2D,EACxD;EACH,IAA2BC,qBAAqB,GAAKF,SAAS,CAAtDnB,iBAAiB;EACzB,IAA2BsB,qBAAqB,GAAKF,SAAS,CAAtDpB,iBAAiB;EAEzB,IAAMuB,sBAAsB,GAAGF,qBAAqB,KAAKC,qBAAqB;EAC9E,IAAI,CAACC,sBAAsB,EAAE,OAAO,KAAK;EAEzC,OAAO,IAAI;AACb,CAAC;AAED,IAAMC,wCAAwC,GAAGC,iBAAK,CAACC,IAAI,CACzD5B,2CAA2C,EAC3CoB,QACF,CAAuD;AAEhD,IAAMS,gCAAgC,GAAG,SAAnCA,gCAAgCA,CAAA,EAEtC;EACL,IAAAC,iBAAA,GAA8B,IAAAC,+BAAgB,EAAqB,CAAC;IAA5D7B,iBAAiB,GAAA4B,iBAAA,CAAjB5B,iBAAiB;EAEzB,OAAOhB,MAAA,YAAAsB,aAAA,CAACkB,wCAAwC;IAACxB,iBAAiB,EAAEA,iBAAkB;IAAAS,MAAA,EAAAnB,KAAA;IAAAoB,QAAA;MAAAC,QAAA,EAAApB,YAAA;MAAAqB,UAAA;MAAAC,YAAA;IAAA;EAAA,CAAE,CAAC;AAC3F,CAAC;AAACI,OAAA,CAAAU,gCAAA,GAAAA,gCAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeSvg","_interopRequireWildcard","_ThemeContext","_TranslationContext","_utils","_this","_jsxFileName","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","_typeof","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","styles","StyleSheet","create","container","alignItems","justifyContent","padding","width","text","fontSize","InlineUnreadIndicator","_useTheme","useTheme","_useTheme$theme","theme","_useTheme$theme$color","colors","bg_gradient_end","bg_gradient_start","grey","_useTheme$theme$messa","messageList","inlineUnreadIndicator","_useTranslationContex","useTranslationContext","t","createElement","View","style","__self","__source","fileName","lineNumber","columnNumber","height","position","vw","Rect","fill","x","y","Defs","LinearGradient","gradientUnits","id","x1","x2","y1","y2","Stop","offset","stopColor","stopOpacity","Text","color","exports"],"sources":["InlineUnreadIndicator.tsx"],"sourcesContent":["import React from 'react';\nimport { StyleSheet, Text, View } from 'react-native';\nimport Svg, { Defs, LinearGradient, Rect, Stop } from 'react-native-svg';\n\nimport { useTheme } from '../../contexts/themeContext/ThemeContext';\nimport { useTranslationContext } from '../../contexts/translationContext/TranslationContext';\nimport { vw } from '../../utils/utils';\n\nconst styles = StyleSheet.create({\n container: {\n alignItems: 'center',\n justifyContent: 'center',\n padding: 10,\n width: '100%',\n },\n text: {\n fontSize: 12,\n },\n});\n\nexport const InlineUnreadIndicator: React.FC = () => {\n const {\n theme: {\n colors: { bg_gradient_end, bg_gradient_start, grey },\n messageList: {\n inlineUnreadIndicator: { container, text },\n },\n },\n } = useTheme();\n const { t } = useTranslationContext();\n\n return (\n <View style={[styles.container, container]}>\n <Svg height={24} style={{ position: 'absolute' }} width={vw(100)}>\n <Rect fill='url(#gradient)' height={24} width={vw(100)} x={0} y={0} />\n <Defs>\n <LinearGradient gradientUnits='userSpaceOnUse' id='gradient' x1={0} x2={0} y1={24} y2={0}>\n <Stop offset={1} stopColor={bg_gradient_end} stopOpacity={1} />\n <Stop offset={0} stopColor={bg_gradient_start} stopOpacity={1} />\n </LinearGradient>\n </Defs>\n </Svg>\n <Text style={[styles.text, { color: grey }, text]}>{t('Unread Messages')}</Text>\n </View>\n );\n};\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,eAAA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AAA;AAEvC,IAAMW,MAAM,GAAGC,uBAAU,CAACC,MAAM,CAAC;EAC/BC,SAAS,EAAE;IACTC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,QAAQ;IACxBC,OAAO,EAAE,EAAE;IACXC,KAAK,EAAE;EACT,CAAC;EACDC,IAAI,EAAE;IACJC,QAAQ,EAAE;EACZ;AACF,CAAC,CAAC;AAEK,IAAMC,qBAA+B,GAAG,SAAlCA,qBAA+BA,CAAA,EAAS;EACnD,IAAAC,SAAA,GAOI,IAAAC,sBAAQ,
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeSvg","_interopRequireWildcard","_ThemeContext","_TranslationContext","_utils","_this","_jsxFileName","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","_typeof","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","styles","StyleSheet","create","container","alignItems","justifyContent","padding","width","text","fontSize","InlineUnreadIndicator","_useTheme","useTheme","_useTheme$theme","theme","_useTheme$theme$color","colors","bg_gradient_end","bg_gradient_start","grey","_useTheme$theme$messa","messageList","inlineUnreadIndicator","_useTranslationContex","useTranslationContext","t","createElement","View","style","__self","__source","fileName","lineNumber","columnNumber","height","position","vw","Rect","fill","x","y","Defs","LinearGradient","gradientUnits","id","x1","x2","y1","y2","Stop","offset","stopColor","stopOpacity","Text","color","exports"],"sources":["InlineUnreadIndicator.tsx"],"sourcesContent":["import React from 'react';\nimport { StyleSheet, Text, View } from 'react-native';\nimport Svg, { Defs, LinearGradient, Rect, Stop } from 'react-native-svg';\n\nimport { useTheme } from '../../contexts/themeContext/ThemeContext';\nimport { useTranslationContext } from '../../contexts/translationContext/TranslationContext';\nimport { vw } from '../../utils/utils';\n\nconst styles = StyleSheet.create({\n container: {\n alignItems: 'center',\n justifyContent: 'center',\n padding: 10,\n width: '100%',\n },\n text: {\n fontSize: 12,\n },\n});\n\nexport const InlineUnreadIndicator: React.FC = () => {\n const {\n theme: {\n colors: { bg_gradient_end, bg_gradient_start, grey },\n messageList: {\n inlineUnreadIndicator: { container, text },\n },\n },\n } = useTheme();\n const { t } = useTranslationContext();\n\n return (\n <View style={[styles.container, container]}>\n <Svg height={24} style={{ position: 'absolute' }} width={vw(100)}>\n <Rect fill='url(#gradient)' height={24} width={vw(100)} x={0} y={0} />\n <Defs>\n <LinearGradient gradientUnits='userSpaceOnUse' id='gradient' x1={0} x2={0} y1={24} y2={0}>\n <Stop offset={1} stopColor={bg_gradient_end} stopOpacity={1} />\n <Stop offset={0} stopColor={bg_gradient_start} stopOpacity={1} />\n </LinearGradient>\n </Defs>\n </Svg>\n <Text style={[styles.text, { color: grey }, text]}>{t('Unread Messages')}</Text>\n </View>\n );\n};\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,eAAA,GAAAC,uBAAA,CAAAH,OAAA;AAEA,IAAAI,aAAA,GAAAJ,OAAA;AACA,IAAAK,mBAAA,GAAAL,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;AAAuC,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,SAAAP,wBAAAW,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,aAAAE,OAAA,CAAAF,GAAA,yBAAAA,GAAA,uCAAAA,GAAA,UAAAG,KAAA,GAAAR,wBAAA,CAAAC,WAAA,OAAAO,KAAA,IAAAA,KAAA,CAAAC,GA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