stream-chat-react-native-core 5.11.3-beta.1 → 5.11.3-beta.3
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 +3 -21
- 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 +1 -7
- 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/VideoThumbnail.js.map +1 -1
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildGallery.js.map +1 -1
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.js.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/buildGallery/buildThumbnail.js.map +1 -1
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildThumbnailGrid.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/getGiphyMimeType.js.map +1 -1
- package/lib/commonjs/components/Attachment/utils/openUrlSafely.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/AttachmentPicker.js +1 -7
- 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.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 +1 -7
- 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 +20 -14
- package/lib/commonjs/components/Chat/Chat.js.map +1 -1
- package/lib/commonjs/components/Chat/hooks/handleEventToSyncDB.js.map +1 -1
- package/lib/commonjs/components/Chat/hooks/useAppSettings.js +20 -14
- 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 +2 -14
- 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 +1 -7
- 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/parseLinks.test.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 +1 -7
- 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/Message/utils/messageActions.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 +1 -7
- 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 +1 -7
- package/lib/commonjs/components/MessageInput/InputButtons.js.map +1 -1
- package/lib/commonjs/components/MessageInput/MessageInput.js +2 -14
- 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/MessageInput/hooks/useCountdown.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 +4 -28
- 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/filterTypingUsers.js.map +1 -1
- package/lib/commonjs/components/MessageList/utils/getDateSeparators.js.map +1 -1
- package/lib/commonjs/components/MessageList/utils/getGroupStyles.js.map +1 -1
- package/lib/commonjs/components/MessageList/utils/getLastReceivedMessage.js.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/components/index.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/index.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 +8 -8
- 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 +1 -7
- 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/themeContext/utils/theme.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/contexts/utils/defaultBaseContextValue.js.map +1 -1
- package/lib/commonjs/contexts/utils/getDisplayName.js.map +1 -1
- package/lib/commonjs/contexts/utils/isTestEnvironment.js.map +1 -1
- package/lib/commonjs/emoji-data/compile.js.map +1 -1
- package/lib/commonjs/emoji-data/compiled.js.map +1 -1
- package/lib/commonjs/emoji-data/index.js.map +1 -1
- package/lib/commonjs/hooks/index.js.map +1 -1
- package/lib/commonjs/hooks/useAppStateListener.js.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/index.js.map +1 -1
- package/lib/commonjs/icons/utils/base.js.map +1 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/init.js.map +1 -1
- package/lib/commonjs/mock-builders/DB/consts.js.map +1 -1
- package/lib/commonjs/mock-builders/DB/mock.js.map +1 -1
- package/lib/commonjs/mock-builders/api/channelMocks.js.map +1 -1
- package/lib/commonjs/mock-builders/api/deleteMessage.js.map +1 -1
- package/lib/commonjs/mock-builders/api/deleteReaction.js.map +1 -1
- package/lib/commonjs/mock-builders/api/error.js.map +1 -1
- package/lib/commonjs/mock-builders/api/getOrCreateChannel.js.map +1 -1
- package/lib/commonjs/mock-builders/api/queryChannels.js.map +1 -1
- package/lib/commonjs/mock-builders/api/queryMembers.js.map +1 -1
- package/lib/commonjs/mock-builders/api/sendMessage.js.map +1 -1
- package/lib/commonjs/mock-builders/api/sendReaction.js.map +1 -1
- package/lib/commonjs/mock-builders/api/threadReplies.js.map +1 -1
- package/lib/commonjs/mock-builders/api/useMockedApis.js.map +1 -1
- package/lib/commonjs/mock-builders/api/utils.js.map +1 -1
- package/lib/commonjs/mock-builders/event/channelDeleted.js.map +1 -1
- package/lib/commonjs/mock-builders/event/channelHidden.js.map +1 -1
- package/lib/commonjs/mock-builders/event/channelTruncated.js.map +1 -1
- package/lib/commonjs/mock-builders/event/channelUpdated.js.map +1 -1
- package/lib/commonjs/mock-builders/event/connectionChanged.js.map +1 -1
- package/lib/commonjs/mock-builders/event/connectionRecovered.js.map +1 -1
- package/lib/commonjs/mock-builders/event/memberAdded.js.map +1 -1
- package/lib/commonjs/mock-builders/event/memberRemoved.js.map +1 -1
- package/lib/commonjs/mock-builders/event/memberUpdated.js.map +1 -1
- package/lib/commonjs/mock-builders/event/messageDeleted.js.map +1 -1
- package/lib/commonjs/mock-builders/event/messageNew.js.map +1 -1
- package/lib/commonjs/mock-builders/event/messageRead.js.map +1 -1
- package/lib/commonjs/mock-builders/event/messageUpdated.js.map +1 -1
- package/lib/commonjs/mock-builders/event/notificationAddedToChannel.js.map +1 -1
- package/lib/commonjs/mock-builders/event/notificationMessageNew.js.map +1 -1
- package/lib/commonjs/mock-builders/event/notificationMutesUpdated.js.map +1 -1
- package/lib/commonjs/mock-builders/event/notificationRemovedFromChannel.js.map +1 -1
- package/lib/commonjs/mock-builders/event/reactionDeleted.js.map +1 -1
- package/lib/commonjs/mock-builders/event/reactionNew.js.map +1 -1
- package/lib/commonjs/mock-builders/event/reactionUpdated.js.map +1 -1
- package/lib/commonjs/mock-builders/event/typing.js.map +1 -1
- package/lib/commonjs/mock-builders/event/userPresence.js.map +1 -1
- package/lib/commonjs/mock-builders/event/userUpdated.js.map +1 -1
- package/lib/commonjs/mock-builders/generator/attachment.js.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/QuickSqliteClient_v4.js.map +1 -1
- package/lib/commonjs/store/apis/addPendingTask.js.map +1 -1
- package/lib/commonjs/store/apis/deleteChannel.js.map +1 -1
- package/lib/commonjs/store/apis/deleteMember.js.map +1 -1
- package/lib/commonjs/store/apis/deleteMessage.js.map +1 -1
- package/lib/commonjs/store/apis/deleteMessagesForChannel.js.map +1 -1
- package/lib/commonjs/store/apis/deletePendingTask.js.map +1 -1
- package/lib/commonjs/store/apis/deleteReaction.js.map +1 -1
- package/lib/commonjs/store/apis/deleteReactions.js.map +1 -1
- package/lib/commonjs/store/apis/getAllChannelIds.js.map +1 -1
- package/lib/commonjs/store/apis/getAppSettings.js.map +1 -1
- package/lib/commonjs/store/apis/getChannelMessages.js.map +1 -1
- package/lib/commonjs/store/apis/getChannels.js.map +1 -1
- package/lib/commonjs/store/apis/getChannelsForFilterSort.js.map +1 -1
- package/lib/commonjs/store/apis/getLastSyncedAt.js.map +1 -1
- package/lib/commonjs/store/apis/getMembers.js.map +1 -1
- package/lib/commonjs/store/apis/getPendingTasks.js.map +1 -1
- package/lib/commonjs/store/apis/getReads.js.map +1 -1
- package/lib/commonjs/store/apis/index.js.map +1 -1
- package/lib/commonjs/store/apis/insertReaction.js.map +1 -1
- package/lib/commonjs/store/apis/queries/selectChannelIdsForFilterSort.js.map +1 -1
- package/lib/commonjs/store/apis/queries/selectChannels.js.map +1 -1
- package/lib/commonjs/store/apis/queries/selectMembersForChannels.js.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/upsertAppSettings.js.map +1 -1
- package/lib/commonjs/store/apis/upsertChannelData.js.map +1 -1
- package/lib/commonjs/store/apis/upsertChannels.js.map +1 -1
- package/lib/commonjs/store/apis/upsertCidsForQuery.js.map +1 -1
- package/lib/commonjs/store/apis/upsertLastSyncedAt.js.map +1 -1
- package/lib/commonjs/store/apis/upsertMembers.js.map +1 -1
- package/lib/commonjs/store/apis/upsertMessages.js.map +1 -1
- package/lib/commonjs/store/apis/upsertReads.js.map +1 -1
- package/lib/commonjs/store/apis/utils/convertFilterSortToQuery.js.map +1 -1
- package/lib/commonjs/store/constants.js.map +1 -1
- package/lib/commonjs/store/mappers/mapChannelDataToStorable.js.map +1 -1
- package/lib/commonjs/store/mappers/mapDateTimeToStorable.js.map +1 -1
- package/lib/commonjs/store/mappers/mapMemberToStorable.js.map +1 -1
- package/lib/commonjs/store/mappers/mapMessageToStorable.js.map +1 -1
- package/lib/commonjs/store/mappers/mapReactionToStorable.js.map +1 -1
- package/lib/commonjs/store/mappers/mapReadToStorable.js.map +1 -1
- package/lib/commonjs/store/mappers/mapStorableToChannel.js.map +1 -1
- package/lib/commonjs/store/mappers/mapStorableToMember.js.map +1 -1
- package/lib/commonjs/store/mappers/mapStorableToMessage.js.map +1 -1
- package/lib/commonjs/store/mappers/mapStorableToReaction.js.map +1 -1
- package/lib/commonjs/store/mappers/mapStorableToRead.js.map +1 -1
- package/lib/commonjs/store/mappers/mapStorableToTask.js.map +1 -1
- package/lib/commonjs/store/mappers/mapStorableToUser.js.map +1 -1
- package/lib/commonjs/store/mappers/mapTaskToStorable.js.map +1 -1
- package/lib/commonjs/store/mappers/mapUserToStorable.js.map +1 -1
- package/lib/commonjs/store/schema.js.map +1 -1
- package/lib/commonjs/store/sqlite-utils/appendOrderByClause.js.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/store/sqlite-utils/createDeleteQuery.js.map +1 -1
- package/lib/commonjs/store/sqlite-utils/createSelectQuery.js.map +1 -1
- package/lib/commonjs/store/sqlite-utils/createUpdateQuery.js.map +1 -1
- package/lib/commonjs/store/sqlite-utils/createUpsertQuery.js.map +1 -1
- package/lib/commonjs/store/sqlite-utils/printRow.js.map +1 -1
- package/lib/commonjs/test-utils/BetterSqlite.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/getUrlOfImageAttachment.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/removeReservedFields.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 +3 -21
- 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 +1 -7
- 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/VideoThumbnail.js.map +1 -1
- package/lib/module/components/Attachment/utils/buildGallery/buildGallery.js.map +1 -1
- package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.js.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/buildGallery/buildThumbnail.js.map +1 -1
- package/lib/module/components/Attachment/utils/buildGallery/buildThumbnailGrid.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/getGiphyMimeType.js.map +1 -1
- package/lib/module/components/Attachment/utils/openUrlSafely.js.map +1 -1
- package/lib/module/components/AttachmentPicker/AttachmentPicker.js +1 -7
- 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.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 +1 -7
- 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 +20 -14
- package/lib/module/components/Chat/Chat.js.map +1 -1
- package/lib/module/components/Chat/hooks/handleEventToSyncDB.js.map +1 -1
- package/lib/module/components/Chat/hooks/useAppSettings.js +20 -14
- 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 +2 -14
- 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 +1 -7
- 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/parseLinks.test.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 +1 -7
- 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/Message/utils/messageActions.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 +1 -7
- 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 +1 -7
- package/lib/module/components/MessageInput/InputButtons.js.map +1 -1
- package/lib/module/components/MessageInput/MessageInput.js +2 -14
- 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/MessageInput/hooks/useCountdown.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 +4 -28
- 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/filterTypingUsers.js.map +1 -1
- package/lib/module/components/MessageList/utils/getDateSeparators.js.map +1 -1
- package/lib/module/components/MessageList/utils/getGroupStyles.js.map +1 -1
- package/lib/module/components/MessageList/utils/getLastReceivedMessage.js.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/components/index.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/index.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 +8 -8
- 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 +1 -7
- 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/themeContext/utils/theme.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/contexts/utils/defaultBaseContextValue.js.map +1 -1
- package/lib/module/contexts/utils/getDisplayName.js.map +1 -1
- package/lib/module/contexts/utils/isTestEnvironment.js.map +1 -1
- package/lib/module/emoji-data/compile.js.map +1 -1
- package/lib/module/emoji-data/compiled.js.map +1 -1
- package/lib/module/emoji-data/index.js.map +1 -1
- package/lib/module/hooks/index.js.map +1 -1
- package/lib/module/hooks/useAppStateListener.js.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/index.js.map +1 -1
- package/lib/module/icons/utils/base.js.map +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/init.js.map +1 -1
- package/lib/module/mock-builders/DB/consts.js.map +1 -1
- package/lib/module/mock-builders/DB/mock.js.map +1 -1
- package/lib/module/mock-builders/api/channelMocks.js.map +1 -1
- package/lib/module/mock-builders/api/deleteMessage.js.map +1 -1
- package/lib/module/mock-builders/api/deleteReaction.js.map +1 -1
- package/lib/module/mock-builders/api/error.js.map +1 -1
- package/lib/module/mock-builders/api/getOrCreateChannel.js.map +1 -1
- package/lib/module/mock-builders/api/queryChannels.js.map +1 -1
- package/lib/module/mock-builders/api/queryMembers.js.map +1 -1
- package/lib/module/mock-builders/api/sendMessage.js.map +1 -1
- package/lib/module/mock-builders/api/sendReaction.js.map +1 -1
- package/lib/module/mock-builders/api/threadReplies.js.map +1 -1
- package/lib/module/mock-builders/api/useMockedApis.js.map +1 -1
- package/lib/module/mock-builders/api/utils.js.map +1 -1
- package/lib/module/mock-builders/event/channelDeleted.js.map +1 -1
- package/lib/module/mock-builders/event/channelHidden.js.map +1 -1
- package/lib/module/mock-builders/event/channelTruncated.js.map +1 -1
- package/lib/module/mock-builders/event/channelUpdated.js.map +1 -1
- package/lib/module/mock-builders/event/connectionChanged.js.map +1 -1
- package/lib/module/mock-builders/event/connectionRecovered.js.map +1 -1
- package/lib/module/mock-builders/event/memberAdded.js.map +1 -1
- package/lib/module/mock-builders/event/memberRemoved.js.map +1 -1
- package/lib/module/mock-builders/event/memberUpdated.js.map +1 -1
- package/lib/module/mock-builders/event/messageDeleted.js.map +1 -1
- package/lib/module/mock-builders/event/messageNew.js.map +1 -1
- package/lib/module/mock-builders/event/messageRead.js.map +1 -1
- package/lib/module/mock-builders/event/messageUpdated.js.map +1 -1
- package/lib/module/mock-builders/event/notificationAddedToChannel.js.map +1 -1
- package/lib/module/mock-builders/event/notificationMessageNew.js.map +1 -1
- package/lib/module/mock-builders/event/notificationMutesUpdated.js.map +1 -1
- package/lib/module/mock-builders/event/notificationRemovedFromChannel.js.map +1 -1
- package/lib/module/mock-builders/event/reactionDeleted.js.map +1 -1
- package/lib/module/mock-builders/event/reactionNew.js.map +1 -1
- package/lib/module/mock-builders/event/reactionUpdated.js.map +1 -1
- package/lib/module/mock-builders/event/typing.js.map +1 -1
- package/lib/module/mock-builders/event/userPresence.js.map +1 -1
- package/lib/module/mock-builders/event/userUpdated.js.map +1 -1
- package/lib/module/mock-builders/generator/attachment.js.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/QuickSqliteClient_v4.js.map +1 -1
- package/lib/module/store/apis/addPendingTask.js.map +1 -1
- package/lib/module/store/apis/deleteChannel.js.map +1 -1
- package/lib/module/store/apis/deleteMember.js.map +1 -1
- package/lib/module/store/apis/deleteMessage.js.map +1 -1
- package/lib/module/store/apis/deleteMessagesForChannel.js.map +1 -1
- package/lib/module/store/apis/deletePendingTask.js.map +1 -1
- package/lib/module/store/apis/deleteReaction.js.map +1 -1
- package/lib/module/store/apis/deleteReactions.js.map +1 -1
- package/lib/module/store/apis/getAllChannelIds.js.map +1 -1
- package/lib/module/store/apis/getAppSettings.js.map +1 -1
- package/lib/module/store/apis/getChannelMessages.js.map +1 -1
- package/lib/module/store/apis/getChannels.js.map +1 -1
- package/lib/module/store/apis/getChannelsForFilterSort.js.map +1 -1
- package/lib/module/store/apis/getLastSyncedAt.js.map +1 -1
- package/lib/module/store/apis/getMembers.js.map +1 -1
- package/lib/module/store/apis/getPendingTasks.js.map +1 -1
- package/lib/module/store/apis/getReads.js.map +1 -1
- package/lib/module/store/apis/index.js.map +1 -1
- package/lib/module/store/apis/insertReaction.js.map +1 -1
- package/lib/module/store/apis/queries/selectChannelIdsForFilterSort.js.map +1 -1
- package/lib/module/store/apis/queries/selectChannels.js.map +1 -1
- package/lib/module/store/apis/queries/selectMembersForChannels.js.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/upsertAppSettings.js.map +1 -1
- package/lib/module/store/apis/upsertChannelData.js.map +1 -1
- package/lib/module/store/apis/upsertChannels.js.map +1 -1
- package/lib/module/store/apis/upsertCidsForQuery.js.map +1 -1
- package/lib/module/store/apis/upsertLastSyncedAt.js.map +1 -1
- package/lib/module/store/apis/upsertMembers.js.map +1 -1
- package/lib/module/store/apis/upsertMessages.js.map +1 -1
- package/lib/module/store/apis/upsertReads.js.map +1 -1
- package/lib/module/store/apis/utils/convertFilterSortToQuery.js.map +1 -1
- package/lib/module/store/constants.js.map +1 -1
- package/lib/module/store/mappers/mapChannelDataToStorable.js.map +1 -1
- package/lib/module/store/mappers/mapDateTimeToStorable.js.map +1 -1
- package/lib/module/store/mappers/mapMemberToStorable.js.map +1 -1
- package/lib/module/store/mappers/mapMessageToStorable.js.map +1 -1
- package/lib/module/store/mappers/mapReactionToStorable.js.map +1 -1
- package/lib/module/store/mappers/mapReadToStorable.js.map +1 -1
- package/lib/module/store/mappers/mapStorableToChannel.js.map +1 -1
- package/lib/module/store/mappers/mapStorableToMember.js.map +1 -1
- package/lib/module/store/mappers/mapStorableToMessage.js.map +1 -1
- package/lib/module/store/mappers/mapStorableToReaction.js.map +1 -1
- package/lib/module/store/mappers/mapStorableToRead.js.map +1 -1
- package/lib/module/store/mappers/mapStorableToTask.js.map +1 -1
- package/lib/module/store/mappers/mapStorableToUser.js.map +1 -1
- package/lib/module/store/mappers/mapTaskToStorable.js.map +1 -1
- package/lib/module/store/mappers/mapUserToStorable.js.map +1 -1
- package/lib/module/store/schema.js.map +1 -1
- package/lib/module/store/sqlite-utils/appendOrderByClause.js.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/store/sqlite-utils/createDeleteQuery.js.map +1 -1
- package/lib/module/store/sqlite-utils/createSelectQuery.js.map +1 -1
- package/lib/module/store/sqlite-utils/createUpdateQuery.js.map +1 -1
- package/lib/module/store/sqlite-utils/createUpsertQuery.js.map +1 -1
- package/lib/module/store/sqlite-utils/printRow.js.map +1 -1
- package/lib/module/test-utils/BetterSqlite.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/getUrlOfImageAttachment.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/removeReservedFields.js.map +1 -1
- package/lib/module/utils/utils.js.map +1 -1
- package/lib/module/version.json +1 -1
- package/lib/typescript/components/Chat/hooks/useAppSettings.d.ts +1 -1
- package/package.json +1 -1
- package/src/components/Chat/Chat.tsx +13 -9
- package/src/components/Chat/hooks/__tests__/useAppSettings.test.tsx +1 -0
- package/src/components/Chat/hooks/useAppSettings.ts +3 -1
- package/src/version.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["width","vw","styles","StyleSheet","create","channelContainer","alignItems","flex","justifyContent","channelDetails","fontSize","textAlign","channelTitle","paddingBottom","paddingTop","EmptyStateIndicator","listType","useTheme","theme","colors","black","grey","grey_gainsboro","emptyStateIndicator","color"],"sources":["EmptyStateIndicator.tsx"],"sourcesContent":["import React from 'react';\nimport { StyleSheet, Text, View } from 'react-native';\n\nimport { useTheme } from '../../contexts/themeContext/ThemeContext';\nimport { MessageIcon } from '../../icons/MessageIcon';\nimport { vw } from '../../utils/utils';\n\nconst width = vw(33);\n\nconst styles = StyleSheet.create({\n channelContainer: {\n alignItems: 'center',\n flex: 1,\n justifyContent: 'center',\n },\n channelDetails: {\n fontSize: 14,\n textAlign: 'center',\n width: vw(66),\n },\n channelTitle: {\n fontSize: 16,\n paddingBottom: 8,\n paddingTop: 16,\n },\n});\n\nexport type EmptyStateProps = {\n listType?: 'channel' | 'message' | 'default';\n};\n\nexport const EmptyStateIndicator: React.FC<EmptyStateProps> = ({ listType }) => {\n const {\n theme: {\n colors: { black, grey, grey_gainsboro },\n emptyStateIndicator: { channelContainer, channelDetails, channelTitle },\n },\n } = useTheme();\n\n switch (listType) {\n case 'channel':\n return (\n <View style={[styles.channelContainer, channelContainer]}>\n <MessageIcon height={width} pathFill={grey_gainsboro} width={width} />\n <Text\n style={[styles.channelTitle, { color: black }, channelTitle]}\n testID='empty-channel-state-title'\n >\n {\"Let's start chatting!\"}\n </Text>\n <Text\n style={[styles.channelDetails, { color: grey }, channelDetails]}\n testID='empty-channel-state-details'\n >\n {'How about sending your first message to a friend?'}\n </Text>\n </View>\n );\n case 'message':\n return null;\n default:\n return <Text style={{ color: black }}>No items exist</Text>;\n }\n};\n"],"mappings":";;;;;AAAA;AACA;AAEA;AACA;AACA;AAAuC;
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_ThemeContext","_MessageIcon","_utils","_this","_jsxFileName","width","vw","styles","StyleSheet","create","channelContainer","alignItems","flex","justifyContent","channelDetails","fontSize","textAlign","channelTitle","paddingBottom","paddingTop","EmptyStateIndicator","_ref","listType","_useTheme","useTheme","_useTheme$theme","theme","_useTheme$theme$color","colors","black","grey","grey_gainsboro","_useTheme$theme$empty","emptyStateIndicator","createElement","View","style","__self","__source","fileName","lineNumber","columnNumber","MessageIcon","height","pathFill","Text","color","testID","exports"],"sources":["EmptyStateIndicator.tsx"],"sourcesContent":["import React from 'react';\nimport { StyleSheet, Text, View } from 'react-native';\n\nimport { useTheme } from '../../contexts/themeContext/ThemeContext';\nimport { MessageIcon } from '../../icons/MessageIcon';\nimport { vw } from '../../utils/utils';\n\nconst width = vw(33);\n\nconst styles = StyleSheet.create({\n channelContainer: {\n alignItems: 'center',\n flex: 1,\n justifyContent: 'center',\n },\n channelDetails: {\n fontSize: 14,\n textAlign: 'center',\n width: vw(66),\n },\n channelTitle: {\n fontSize: 16,\n paddingBottom: 8,\n paddingTop: 16,\n },\n});\n\nexport type EmptyStateProps = {\n listType?: 'channel' | 'message' | 'default';\n};\n\nexport const EmptyStateIndicator: React.FC<EmptyStateProps> = ({ listType }) => {\n const {\n theme: {\n colors: { black, grey, grey_gainsboro },\n emptyStateIndicator: { channelContainer, channelDetails, channelTitle },\n },\n } = useTheme();\n\n switch (listType) {\n case 'channel':\n return (\n <View style={[styles.channelContainer, channelContainer]}>\n <MessageIcon height={width} pathFill={grey_gainsboro} width={width} />\n <Text\n style={[styles.channelTitle, { color: black }, channelTitle]}\n testID='empty-channel-state-title'\n >\n {\"Let's start chatting!\"}\n </Text>\n <Text\n style={[styles.channelDetails, { color: grey }, channelDetails]}\n testID='empty-channel-state-details'\n >\n {'How about sending your first message to a friend?'}\n </Text>\n </View>\n );\n case 'message':\n return null;\n default:\n return <Text style={{ color: black }}>No items exist</Text>;\n }\n};\n"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,aAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AAAuC,IAAAK,KAAA;EAAAC,YAAA;AAEvC,IAAMC,KAAK,GAAG,IAAAC,SAAE,EAAC,EAAE,CAAC;AAEpB,IAAMC,MAAM,GAAGC,uBAAU,CAACC,MAAM,CAAC;EAC/BC,gBAAgB,EAAE;IAChBC,UAAU,EAAE,QAAQ;IACpBC,IAAI,EAAE,CAAC;IACPC,cAAc,EAAE;EAClB,CAAC;EACDC,cAAc,EAAE;IACdC,QAAQ,EA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AoC,UAAA;UAAAC,YAAA;QAAA;MAAA,EAAG,EACtE7C,MAAA,YAAAsC,aAAA,CAACnC,YAAA,CAAA8C,IAAI;QACHT,KAAK,EAAE,CAAC7B,MAAM,CAACU,YAAY,EAAE;UAAE6B,KAAK,EAAEjB;QAAM,CAAC,EAAEZ,YAAY,CAAE;QAC7D8B,MAAM,EAAC,2BAA2B;QAAAV,MAAA,EAAAlC,KAAA;QAAAmC,QAAA;UAAAC,QAAA,EAAAnC,YAAA;UAAAoC,UAAA;UAAAC,YAAA;QAAA;MAAA,GAEjC,uBAAuB,CACnB,EACP7C,MAAA,YAAAsC,aAAA,CAACnC,YAAA,CAAA8C,IAAI;QACHT,KAAK,EAAE,CAAC7B,MAAM,CAACO,cAAc,EAAE;UAAEgC,KAAK,EAAEhB;QAAK,CAAC,EAAEhB,cAAc,CAAE;QAChEiC,MAAM,EAAC,6BAA6B;QAAAV,MAAA,EAAAlC,KAAA;QAAAmC,QAAA;UAAAC,QAAA,EAAAnC,YAAA;UAAAoC,UAAA;UAAAC,YAAA;QAAA;MAAA,GAEnC,mDAAmD,CAC/C,CACF;IAEX,KAAK,SAAS;MACZ,OAAO,IAAI;IACb;MACE,OAAO7C,MAAA,YAAAsC,aAAA,CAACnC,YAAA,CAAA8C,IAAI;QAACT,KAAK,EAAE;UAAEU,KAAK,EAAEjB;QAAM,CAAE;QAAAQ,MAAA,EAAAlC,KAAA;QAAAmC,QAAA;UAAAC,QAAA,EAAAnC,YAAA;UAAAoC,UAAA;UAAAC,YAAA;QAAA;MAAA,GAAC,gBAAc,CAAO;EAAC;AAElE,CAAC;AAACO,OAAA,CAAA5B,mBAAA,GAAAA,mBAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["LoadingDot","props","diameter","duration","offset","style","halfDuration","startingOffset","useTheme","theme","black","colors","loadingDot","loadingDots","opacity","useSharedValue","useEffect","value","withSequence","withTiming","easing","Easing","linear","withRepeat","dotStyle","useAnimatedStyle","backgroundColor","borderRadius","height","width"],"sources":["LoadingDot.tsx"],"sourcesContent":["import React, { useEffect } from 'react';\nimport type { StyleProp, ViewStyle } from 'react-native';\nimport Animated, {\n Easing,\n useAnimatedStyle,\n useSharedValue,\n withRepeat,\n withSequence,\n withTiming,\n} from 'react-native-reanimated';\n\nimport { useTheme } from '../../contexts/themeContext/ThemeContext';\n\ntype Props = {\n diameter?: number;\n duration?: number;\n offset?: number;\n style?: StyleProp<ViewStyle>;\n};\n\nexport const LoadingDot: React.FC<Props> = (props) => {\n const { diameter = 4, duration = 1500, offset = 0, style } = props;\n const halfDuration = duration / 2;\n const startingOffset = halfDuration - offset;\n\n const {\n theme: {\n colors: { black },\n loadingDots: { loadingDot },\n },\n } = useTheme();\n const opacity = useSharedValue(startingOffset / halfDuration);\n\n useEffect(() => {\n opacity.value = withSequence(\n withTiming(0, { duration: startingOffset, easing: Easing.linear }),\n withRepeat(\n withSequence(\n withTiming(1, { duration: halfDuration, easing: Easing.linear }),\n withTiming(0, { duration: halfDuration, easing: Easing.linear }),\n ),\n -1,\n ),\n );\n }, []);\n\n const dotStyle = useAnimatedStyle<ViewStyle>(\n () => ({\n opacity: opacity.value,\n }),\n [],\n );\n\n return (\n <Animated.View\n style={[\n {\n backgroundColor: black,\n borderRadius: diameter / 2,\n height: diameter,\n width: diameter,\n },\n style,\n loadingDot,\n dotStyle,\n ]}\n />\n );\n};\n"],"mappings":";;;;;AAAA;AAEA;AASA;AAAoE;
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNativeReanimated","_ThemeContext","_this","_jsxFileName","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","_typeof","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","LoadingDot","props","_props$diameter","diameter","_props$duration","duration","_props$offset","offset","style","halfDuration","startingOffset","_useTheme","useTheme","_useTheme$theme","theme","black","colors","loadingDot","loadingDots","opacity","useSharedValue","useEffect","value","withSequence","withTiming","easing","Easing","linear","withRepeat","dotStyle","useAnimatedStyle","createElement","View","backgroundColor","borderRadius","height","width","__self","__source","fileName","lineNumber","columnNumber","exports"],"sources":["LoadingDot.tsx"],"sourcesContent":["import React, { useEffect } from 'react';\nimport type { StyleProp, ViewStyle } from 'react-native';\nimport Animated, {\n Easing,\n useAnimatedStyle,\n useSharedValue,\n withRepeat,\n withSequence,\n withTiming,\n} from 'react-native-reanimated';\n\nimport { useTheme } from '../../contexts/themeContext/ThemeContext';\n\ntype Props = {\n diameter?: number;\n duration?: number;\n offset?: number;\n style?: StyleProp<ViewStyle>;\n};\n\nexport const LoadingDot: React.FC<Props> = (props) => {\n const { diameter = 4, duration = 1500, offset = 0, style } = props;\n const halfDuration = duration / 2;\n const startingOffset = halfDuration - offset;\n\n const {\n theme: {\n colors: { black },\n loadingDots: { loadingDot },\n },\n } = useTheme();\n const opacity = useSharedValue(startingOffset / halfDuration);\n\n useEffect(() => {\n opacity.value = withSequence(\n withTiming(0, { duration: startingOffset, easing: Easing.linear }),\n withRepeat(\n withSequence(\n withTiming(1, { duration: halfDuration, easing: Easing.linear }),\n withTiming(0, { duration: halfDuration, easing: Easing.linear }),\n ),\n -1,\n ),\n );\n }, []);\n\n const dotStyle = useAnimatedStyle<ViewStyle>(\n () => ({\n opacity: opacity.value,\n }),\n [],\n );\n\n return (\n <Animated.View\n style={[\n {\n backgroundColor: black,\n borderRadius: diameter / 2,\n height: diameter,\n width: diameter,\n },\n style,\n loadingDot,\n dotStyle,\n ]}\n />\n );\n};\n"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,sBAAA,GAAAF,uBAAA,CAAAC,OAAA;AASA,IAAAE,aAAA,GAAAF,OAAA;AAAoE,IAAAG,KAAA;EAAAC,YAAA;AAAA,SAAAC,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OA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zD,sBAAA,WAAQ,CAAC0D,IAAI;IACZxB,KAAK,EAAE,CACL;MACEyB,eAAe,EAAElB,KAAK;MACtBmB,YAAY,EAAE/B,QAAQ,GAAG,CAAC;MAC1BgC,MAAM,EAAEhC,QAAQ;MAChBiC,KAAK,EAAEjC;IACT,CAAC,EACDK,KAAK,EACLS,UAAU,EACVY,QAAQ,CACR;IAAAQ,MAAA,EAAA7D,KAAA;IAAA8D,QAAA;MAAAC,QAAA,EAAA9D,YAAA;MAAA+D,UAAA;MAAAC,YAAA;IAAA;EAAA,EACF;AAEN,CAAC;AAACC,OAAA,CAAA1C,UAAA,GAAAA,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["LoadingDots","props","diameter","duration","numberOfDots","spacingProp","spacing","style","useTheme","theme","loadingDots","container","halfSpacing","offsetLength","flexDirection","Array","from","map","_item","index","marginRight","marginLeft","marginHorizontal"],"sources":["LoadingDots.tsx"],"sourcesContent":["import React from 'react';\nimport { StyleProp, View, ViewStyle } from 'react-native';\n\nimport { LoadingDot } from './LoadingDot';\n\nimport { useTheme } from '../../contexts/themeContext/ThemeContext';\n\ntype Props = {\n diameter?: number;\n duration?: number;\n numberOfDots?: number;\n spacing?: number;\n style?: StyleProp<ViewStyle>;\n};\n\nexport const LoadingDots: React.FC<Props> = (props) => {\n const { diameter = 4, duration = 1500, numberOfDots = 3, spacing: spacingProp, style } = props;\n\n const {\n theme: {\n loadingDots: { container, spacing },\n },\n } = useTheme();\n\n const halfSpacing = spacingProp ? spacingProp / 2 : spacing / 2;\n const offsetLength = duration / numberOfDots;\n\n return (\n <View style={[{ flexDirection: 'row' }, container, style]}>\n {Array.from(Array(numberOfDots)).map((_item, index) => (\n <LoadingDot\n diameter={diameter}\n duration={duration}\n key={index}\n offset={duration - offsetLength * (index + 1)}\n style={\n index === 0\n ? { marginRight: halfSpacing }\n : index === numberOfDots - 1\n ? { marginLeft: halfSpacing }\n : { marginHorizontal: halfSpacing }\n }\n />\n ))}\n </View>\n );\n};\n"],"mappings":";;;;;AAAA;AACA;AAEA;AAEA;AAAoE;
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_LoadingDot","_ThemeContext","_this","_jsxFileName","LoadingDots","props","_props$diameter","diameter","_props$duration","duration","_props$numberOfDots","numberOfDots","spacingProp","spacing","style","_useTheme","useTheme","_useTheme$theme$loadi","theme","loadingDots","container","halfSpacing","offsetLength","createElement","View","flexDirection","__self","__source","fileName","lineNumber","columnNumber","Array","from","map","_item","index","LoadingDot","key","offset","marginRight","marginLeft","marginHorizontal","exports"],"sources":["LoadingDots.tsx"],"sourcesContent":["import React from 'react';\nimport { StyleProp, View, ViewStyle } from 'react-native';\n\nimport { LoadingDot } from './LoadingDot';\n\nimport { useTheme } from '../../contexts/themeContext/ThemeContext';\n\ntype Props = {\n diameter?: number;\n duration?: number;\n numberOfDots?: number;\n spacing?: number;\n style?: StyleProp<ViewStyle>;\n};\n\nexport const LoadingDots: React.FC<Props> = (props) => {\n const { diameter = 4, duration = 1500, numberOfDots = 3, spacing: spacingProp, style } = props;\n\n const {\n theme: {\n loadingDots: { container, spacing },\n },\n } = useTheme();\n\n const halfSpacing = spacingProp ? spacingProp / 2 : spacing / 2;\n const offsetLength = duration / numberOfDots;\n\n return (\n <View style={[{ flexDirection: 'row' }, container, style]}>\n {Array.from(Array(numberOfDots)).map((_item, index) => (\n <LoadingDot\n diameter={diameter}\n duration={duration}\n key={index}\n offset={duration - offsetLength * (index + 1)}\n style={\n index === 0\n ? { marginRight: halfSpacing }\n : index === numberOfDots - 1\n ? { marginLeft: halfSpacing }\n : { marginHorizontal: halfSpacing }\n }\n />\n ))}\n </View>\n );\n};\n"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,WAAA,GAAAF,OAAA;AAEA,IAAAG,aAAA,GAAAH,OAAA;AAAoE,IAAAI,KAAA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AAQ,EAAEA,QAAS;MACnB4B,GAAG,EAAEF,KAAM;MACXG,MAAM,EAAE7B,QAAQ,GAAGa,YAAY,IAAIa,KAAK,GAAG,CAAC,CAAE;MAC9CrB,KAAK,EACHqB,KAAK,KAAK,CAAC,GACP;QAAEI,WAAW,EAAElB;MAAY,CAAC,GAC5Bc,KAAK,KAAKxB,YAAY,GAAG,CAAC,GAC1B;QAAE6B,UAAU,EAAEnB;MAAY,CAAC,GAC3B;QAAEoB,gBAAgB,EAAEpB;MAAY,CACrC;MAAAK,MAAA,EAAAxB,KAAA;MAAAyB,QAAA;QAAAC,QAAA,EAAAzB,YAAA;QAAA0B,UAAA;QAAAC,YAAA;MAAA;IAAA,EACD;EAAA,CACH,CAAC,CACG;AAEX,CAAC;AAACY,OAAA,CAAAtC,WAAA,GAAAA,WAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["styles","StyleSheet","create","container","alignItems","height","justifyContent","width","errorText","fontSize","fontWeight","marginTop","retryText","LoadingErrorWrapper","props","children","onPress","text","useTheme","theme","accent_red","colors","loadingErrorIndicator","color","LoadingErrorIndicator","listType","retry","black","useTranslationContext","t","displayName"],"sources":["LoadingErrorIndicator.tsx"],"sourcesContent":["import React from 'react';\nimport { StyleSheet, Text, TouchableOpacity } from 'react-native';\n\nimport { useTheme } from '../../contexts/themeContext/ThemeContext';\nimport { useTranslationContext } from '../../contexts/translationContext/TranslationContext';\n\nconst styles = StyleSheet.create({\n container: {\n alignItems: 'center',\n height: '100%',\n justifyContent: 'center',\n width: '100%',\n },\n errorText: {\n fontSize: 14,\n fontWeight: '600',\n marginTop: 20,\n },\n retryText: {\n fontSize: 30,\n fontWeight: '600',\n },\n});\n\ntype LoadingErrorWrapperProps = {\n text: string;\n onPress?: () => void;\n};\n\nconst LoadingErrorWrapper: React.FC<LoadingErrorWrapperProps> = (props) => {\n const { children, onPress, text } = props;\n\n const {\n theme: {\n colors: { accent_red },\n loadingErrorIndicator: { container, errorText },\n },\n } = useTheme();\n\n return (\n <TouchableOpacity onPress={onPress} style={[styles.container, container]}>\n <Text style={[styles.errorText, { color: accent_red }, errorText]} testID='loading-error'>\n {text}\n </Text>\n {children}\n </TouchableOpacity>\n );\n};\n\nexport type LoadingErrorProps = {\n error?: boolean | Error;\n listType?: 'channel' | 'message' | 'default';\n loadNextPage?: () => Promise<void>;\n retry?: () => void;\n};\n\nexport const LoadingErrorIndicator: React.FC<LoadingErrorProps> = (props) => {\n const { listType, retry = () => null } = props;\n\n const {\n theme: {\n colors: { black },\n loadingErrorIndicator: { retryText },\n },\n } = useTheme();\n const { t } = useTranslationContext();\n\n switch (listType) {\n case 'channel':\n return (\n <LoadingErrorWrapper onPress={retry} text={t('Error loading channel list...')}>\n <Text style={[styles.retryText, { color: black }, retryText]}>⟳</Text>\n </LoadingErrorWrapper>\n );\n case 'message':\n return (\n <LoadingErrorWrapper\n onPress={retry}\n text={t('Error loading messages for this channel...')}\n />\n );\n default:\n return <LoadingErrorWrapper text={t('Error loading')} />;\n }\n};\n\nLoadingErrorIndicator.displayName = 'LoadingErrorIndicator{loadingErrorIndicator}';\n"],"mappings":";;;;;AAAA;AACA;AAEA;AACA;AAA6F;
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_ThemeContext","_TranslationContext","_this","_jsxFileName","styles","StyleSheet","create","container","alignItems","height","justifyContent","width","errorText","fontSize","fontWeight","marginTop","retryText","LoadingErrorWrapper","props","children","onPress","text","_useTheme","useTheme","_useTheme$theme","theme","accent_red","colors","_useTheme$theme$loadi","loadingErrorIndicator","createElement","TouchableOpacity","style","__self","__source","fileName","lineNumber","columnNumber","Text","color","testID","LoadingErrorIndicator","listType","_props$retry","retry","_useTheme2","_useTheme2$theme","black","_useTranslationContex","useTranslationContext","t","exports","displayName"],"sources":["LoadingErrorIndicator.tsx"],"sourcesContent":["import React from 'react';\nimport { StyleSheet, Text, TouchableOpacity } from 'react-native';\n\nimport { useTheme } from '../../contexts/themeContext/ThemeContext';\nimport { useTranslationContext } from '../../contexts/translationContext/TranslationContext';\n\nconst styles = StyleSheet.create({\n container: {\n alignItems: 'center',\n height: '100%',\n justifyContent: 'center',\n width: '100%',\n },\n errorText: {\n fontSize: 14,\n fontWeight: '600',\n marginTop: 20,\n },\n retryText: {\n fontSize: 30,\n fontWeight: '600',\n },\n});\n\ntype LoadingErrorWrapperProps = {\n text: string;\n onPress?: () => void;\n};\n\nconst LoadingErrorWrapper: React.FC<LoadingErrorWrapperProps> = (props) => {\n const { children, onPress, text } = props;\n\n const {\n theme: {\n colors: { accent_red },\n loadingErrorIndicator: { container, errorText },\n },\n } = useTheme();\n\n return (\n <TouchableOpacity onPress={onPress} style={[styles.container, container]}>\n <Text style={[styles.errorText, { color: accent_red }, errorText]} testID='loading-error'>\n {text}\n </Text>\n {children}\n </TouchableOpacity>\n );\n};\n\nexport type LoadingErrorProps = {\n error?: boolean | Error;\n listType?: 'channel' | 'message' | 'default';\n loadNextPage?: () => Promise<void>;\n retry?: () => void;\n};\n\nexport const LoadingErrorIndicator: React.FC<LoadingErrorProps> = (props) => {\n const { listType, retry = () => null } = props;\n\n const {\n theme: {\n colors: { black },\n loadingErrorIndicator: { retryText },\n },\n } = useTheme();\n const { t } = useTranslationContext();\n\n switch (listType) {\n case 'channel':\n return (\n <LoadingErrorWrapper onPress={retry} text={t('Error loading channel list...')}>\n <Text style={[styles.retryText, { color: black }, retryText]}>⟳</Text>\n </LoadingErrorWrapper>\n );\n case 'message':\n return (\n <LoadingErrorWrapper\n onPress={retry}\n text={t('Error loading messages for this channel...')}\n />\n );\n default:\n return <LoadingErrorWrapper text={t('Error loading')} />;\n }\n};\n\nLoadingErrorIndicator.displayName = 'LoadingErrorIndicator{loadingErrorIndicator}';\n"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,aAAA,GAAAF,OAAA;AACA,IAAAG,mBAAA,GA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AA,EAAA/B,KAAA;QAAAgC,QAAA;UAAAC,QAAA,EAAAhC,YAAA;UAAAiC,UAAA;UAAAC,YAAA;QAAA;MAAA,GAAC,QAAC,CAAO,CAClD;IAE1B,KAAK,SAAS;MACZ,OACEzC,MAAA,YAAAkC,aAAA,CAACb,mBAAmB;QAClBG,OAAO,EAAEwB,KAAM;QACfvB,IAAI,EAAE6B,CAAC,CAAC,4CAA4C,CAAE;QAAAjB,MAAA,EAAA/B,KAAA;QAAAgC,QAAA;UAAAC,QAAA,EAAAhC,YAAA;UAAAiC,UAAA;UAAAC,YAAA;QAAA;MAAA,EACtD;IAEN;MACE,OAAOzC,MAAA,YAAAkC,aAAA,CAACb,mBAAmB;QAACI,IAAI,EAAE6B,CAAC,CAAC,eAAe,CAAE;QAAAjB,MAAA,EAAA/B,KAAA;QAAAgC,QAAA;UAAAC,QAAA,EAAAhC,YAAA;UAAAiC,UAAA;UAAAC,YAAA;QAAA;MAAA,EAAG;EAAC;AAE/D,CAAC;AAACc,OAAA,CAAAV,qBAAA,GAAAA,qBAAA;AAEFA,qBAAqB,CAACW,WAAW,GAAG,8CAA8C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["styles","StyleSheet","create","container","alignItems","flex","justifyContent","loadingText","fontSize","fontWeight","marginTop","LoadingIndicatorWrapper","text","useTheme","theme","black","colors","loadingIndicator","color","LoadingIndicator","props","listType","useTranslationContext","t","displayName"],"sources":["LoadingIndicator.tsx"],"sourcesContent":["import React from 'react';\nimport { StyleSheet, Text, View } from 'react-native';\n\nimport { useTheme } from '../../contexts/themeContext/ThemeContext';\nimport { useTranslationContext } from '../../contexts/translationContext/TranslationContext';\nimport { Spinner } from '../Spinner/Spinner';\n\nconst styles = StyleSheet.create({\n container: {\n alignItems: 'center',\n flex: 1,\n justifyContent: 'center',\n },\n loadingText: {\n fontSize: 14,\n fontWeight: '600',\n marginTop: 20,\n },\n});\n\nconst LoadingIndicatorWrapper: React.FC<{ text: string }> = ({ text }) => {\n const {\n theme: {\n colors: { black },\n loadingIndicator: { container, loadingText },\n },\n } = useTheme();\n\n return (\n <View style={[styles.container, container]}>\n <Spinner />\n <Text style={[styles.loadingText, { color: black }, loadingText]} testID='loading'>\n {text}\n </Text>\n </View>\n );\n};\n\nexport type LoadingProps = {\n listType?: 'channel' | 'message' | 'default';\n loadingText?: string;\n};\n\n/**\n * UI Component for LoadingIndicator\n */\nexport const LoadingIndicator: React.FC<LoadingProps> = (props) => {\n const { listType, loadingText } = props;\n\n const { t } = useTranslationContext();\n\n if (loadingText) {\n return <LoadingIndicatorWrapper text={loadingText} />;\n }\n\n switch (listType) {\n case 'channel':\n return <LoadingIndicatorWrapper text={t('Loading channels...')} />;\n case 'message':\n return <LoadingIndicatorWrapper text={t('Loading messages...')} />;\n default:\n return <LoadingIndicatorWrapper text={t('Loading...')} />;\n }\n};\n\nLoadingIndicator.displayName = 'LoadingIndicator{loadingIndicator}';\n"],"mappings":";;;;;AAAA;AACA;AAEA;AACA;AACA;AAA6C;
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_ThemeContext","_TranslationContext","_Spinner","_this","_jsxFileName","styles","StyleSheet","create","container","alignItems","flex","justifyContent","loadingText","fontSize","fontWeight","marginTop","LoadingIndicatorWrapper","_ref","text","_useTheme","useTheme","_useTheme$theme","theme","black","colors","_useTheme$theme$loadi","loadingIndicator","createElement","View","style","__self","__source","fileName","lineNumber","columnNumber","Spinner","Text","color","testID","LoadingIndicator","props","listType","_useTranslationContex","useTranslationContext","t","exports","displayName"],"sources":["LoadingIndicator.tsx"],"sourcesContent":["import React from 'react';\nimport { StyleSheet, Text, View } from 'react-native';\n\nimport { useTheme } from '../../contexts/themeContext/ThemeContext';\nimport { useTranslationContext } from '../../contexts/translationContext/TranslationContext';\nimport { Spinner } from '../Spinner/Spinner';\n\nconst styles = StyleSheet.create({\n container: {\n alignItems: 'center',\n flex: 1,\n justifyContent: 'center',\n },\n loadingText: {\n fontSize: 14,\n fontWeight: '600',\n marginTop: 20,\n },\n});\n\nconst LoadingIndicatorWrapper: React.FC<{ text: string }> = ({ text }) => {\n const {\n theme: {\n colors: { black },\n loadingIndicator: { container, loadingText },\n },\n } = useTheme();\n\n return (\n <View style={[styles.container, container]}>\n <Spinner />\n <Text style={[styles.loadingText, { color: black }, loadingText]} testID='loading'>\n {text}\n </Text>\n </View>\n );\n};\n\nexport type LoadingProps = {\n listType?: 'channel' | 'message' | 'default';\n loadingText?: string;\n};\n\n/**\n * UI Component for LoadingIndicator\n */\nexport const LoadingIndicator: React.FC<LoadingProps> = (props) => {\n const { listType, loadingText } = props;\n\n const { t } = useTranslationContext();\n\n if (loadingText) {\n return <LoadingIndicatorWrapper text={loadingText} />;\n }\n\n switch (listType) {\n case 'channel':\n return <LoadingIndicatorWrapper text={t('Loading channels...')} />;\n case 'message':\n return <LoadingIndicatorWrapper text={t('Loading messages...')} />;\n default:\n return <LoadingIndicatorWrapper text={t('Loading...')} />;\n }\n};\n\nLoadingIndicator.displayName = 'LoadingIndicator{loadingIndicator}';\n"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,aAAA,GAAAF,OAAA;AACA,IAAAG,mBAAA,GAAAH,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AAA6C,IAAAK,KAAA;EAAAC,YAAA;AAE7C,IAAMC,MAAM,GAAGC,uBAAU,CAACC,MAAM,CAAC;EAC/BC,SAAS,EAAE;IACTC,UAAU,EAAE,QAAQ;IACpBC,IAAI,EAAE,CAAC;IACPC,cAAc,EAAE;EAClB,CAAC;EACDC,WAAW,EAAE;IACXC,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,KAAK;IACjBC,SAAS,EAAE;EACb;AACF,CAAC,CAAC;AAEF,IAAMC,uBAAmD,GAAG,SAAtDA,uBAAmDA,CAAAC,IAAA,EAAiB;EAAA,IAAXC,IAAI,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AqB,GAAE;IAA7BC,CAAC,GAAAF,qBAAA,CAADE,CAAC;EAET,IAAIhC,WAAW,EAAE;IACf,OAAOhB,MAAA,YAAA+B,aAAA,CAACX,uBAAuB;MAACE,IAAI,EAAEN,WAAY;MAAAkB,MAAA,EAAA3B,KAAA;MAAA4B,QAAA;QAAAC,QAAA,EAAA5B,YAAA;QAAA6B,UAAA;QAAAC,YAAA;MAAA;IAAA,EAAG;EACvD;EAEA,QAAQO,QAAQ;IACd,KAAK,SAAS;MACZ,OAAO7C,MAAA,YAAA+B,aAAA,CAACX,uBAAuB;QAACE,IAAI,EAAE0B,CAAC,CAAC,qBAAqB,CAAE;QAAAd,MAAA,EAAA3B,KAAA;QAAA4B,QAAA;UAAAC,QAAA,EAAA5B,YAAA;UAAA6B,UAAA;UAAAC,YAAA;QAAA;MAAA,EAAG;IACpE,KAAK,SAAS;MACZ,OAAOtC,MAAA,YAAA+B,aAAA,CAACX,uBAAuB;QAACE,IAAI,EAAE0B,CAAC,CAAC,qBAAqB,CAAE;QAAAd,MAAA,EAAA3B,KAAA;QAAA4B,QAAA;UAAAC,QAAA,EAAA5B,YAAA;UAAA6B,UAAA;UAAAC,YAAA;QAAA;MAAA,EAAG;IACpE;MACE,OAAOtC,MAAA,YAAA+B,aAAA,CAACX,uBAAuB;QAACE,IAAI,EAAE0B,CAAC,CAAC,YAAY,CAAE;QAAAd,MAAA,EAAA3B,KAAA;QAAA4B,QAAA;UAAAC,QAAA,EAAA5B,YAAA;UAAA6B,UAAA;UAAAC,YAAA;QAAA;MAAA,EAAG;EAAC;AAEhE,CAAC;AAACW,OAAA,CAAAN,gBAAA,GAAAA,gBAAA;AAEFA,gBAAgB,CAACO,WAAW,GAAG,oCAAoC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["KeyboardCompatibleView","props","_frame","_keyboardEvent","_subscriptions","_appStateSubscription","_initialFrameHeight","_onKeyboardChange","event","_updateBottomIfNecessary","_onLayout","nativeEvent","layout","height","setState","bottom","duration","easing","endCoordinates","_relativeKeyboardHeight","state","LayoutAnimation","configureNext","update","type","Types","_handleAppStateChange","nextAppState","appState","match","setKeyboardListeners","unsetKeyboardListeners","Platform","OS","Keyboard","addListener","push","isKeyboardOpen","filter","subscription","remove","dismissKeyboard","Promise","resolve","dismiss","AppState","currentState","viewRef","React","createRef","keyboardFrame","frame","keyboardY","screenY","keyboardVerticalOffset","relativeHeight","y","barHeights","Dimensions","get","Math","max","StatusBar","currentHeight","addEventListener","removeEventListener","behavior","children","contentContainerStyle","enabled","style","bottomHeight","heightStyle","flex","StyleSheet","compose","paddingBottom","Component","defaultProps"],"sources":["KeyboardCompatibleView.tsx"],"sourcesContent":["import React from 'react';\nimport {\n AppState,\n AppStateStatus,\n Dimensions,\n EmitterSubscription,\n Keyboard,\n KeyboardAvoidingViewProps,\n KeyboardEvent,\n KeyboardEventListener,\n LayoutAnimation,\n LayoutChangeEvent,\n LayoutRectangle,\n NativeEventSubscription,\n Platform,\n ScreenRect,\n StatusBar,\n StyleSheet,\n View,\n} from 'react-native';\n\nimport { KeyboardProvider } from '../../contexts/keyboardContext/KeyboardContext';\n\n/**\n * View that moves out of the way when the keyboard appears by automatically\n * adjusting its height, position, or bottom padding.\n *\n * Following piece of code has been mostly copied from KeyboardAvoidingView component, with few additional tweaks.\n */\nexport class KeyboardCompatibleView extends React.Component<\n KeyboardAvoidingViewProps,\n { appState: AppStateStatus; bottom: number; isKeyboardOpen: boolean }\n> {\n static defaultProps: Pick<\n KeyboardAvoidingViewProps,\n 'behavior' | 'enabled' | 'keyboardVerticalOffset'\n > = {\n behavior: Platform.OS === 'ios' ? 'padding' : 'position',\n enabled: true,\n keyboardVerticalOffset: Platform.OS === 'ios' ? 86.5 : -300, // default MessageInput height\n };\n\n _frame: LayoutRectangle | null = null;\n _keyboardEvent: KeyboardEvent | null = null;\n _subscriptions: EmitterSubscription[] = [];\n _appStateSubscription: NativeEventSubscription | null = null;\n viewRef: React.RefObject<View>;\n _initialFrameHeight = 0;\n constructor(props: KeyboardAvoidingViewProps) {\n super(props);\n this.state = {\n appState: AppState.currentState,\n bottom: 0,\n isKeyboardOpen: false,\n };\n this.viewRef = React.createRef();\n }\n\n _relativeKeyboardHeight(keyboardFrame: ScreenRect) {\n const frame = this._frame;\n if (!frame || !keyboardFrame) {\n return 0;\n }\n\n const keyboardY = keyboardFrame.screenY - (this.props.keyboardVerticalOffset ?? 0);\n const relativeHeight = frame.y + frame.height - keyboardY;\n\n /**\n * When the StatusBar is translucent there is an issue\n * where the relative keyboard height is returned incorrectly\n * instead of 0 when closed.\n */\n if (Platform.OS === 'android') {\n const barHeights = Dimensions.get('screen').height - Dimensions.get('window').height;\n if (relativeHeight <= Math.max(barHeights, StatusBar.currentHeight ?? 0)) {\n return 0;\n }\n }\n\n // Calculate the displacement needed for the view such that it\n // no longer overlaps with the keyboard\n return Math.max(relativeHeight, 0);\n }\n\n _onKeyboardChange: KeyboardEventListener = (event) => {\n this._keyboardEvent = event;\n this._updateBottomIfNecessary();\n };\n\n _onLayout: (event: LayoutChangeEvent) => void = (event) => {\n this._frame = event.nativeEvent.layout;\n if (!this._initialFrameHeight) {\n // save the initial frame height, before the keyboard is visible\n this._initialFrameHeight = this._frame.height;\n }\n\n this._updateBottomIfNecessary();\n };\n\n _updateBottomIfNecessary = () => {\n if (this._keyboardEvent === null) {\n this.setState({ bottom: 0 });\n return;\n }\n\n const { duration, easing, endCoordinates } = this._keyboardEvent;\n const height = this._relativeKeyboardHeight(endCoordinates);\n\n if (this.state.bottom === height) {\n return;\n }\n\n if (duration && easing) {\n LayoutAnimation.configureNext({\n // We have to pass the duration equal to minimal accepted duration defined here: RCTLayoutAnimation.m\n duration: duration > 10 ? duration : 10,\n update: {\n duration: duration > 10 ? duration : 10,\n type: LayoutAnimation.Types[easing] || 'keyboard',\n },\n });\n }\n this.setState({ bottom: height });\n };\n\n _handleAppStateChange = (nextAppState: AppStateStatus) => {\n if (this.state.appState.match(/inactive|background/) && nextAppState === 'active') {\n this.setKeyboardListeners();\n }\n\n if (nextAppState.match(/inactive|background/)) {\n this.unsetKeyboardListeners();\n }\n\n this.setState({ appState: nextAppState });\n };\n\n setKeyboardListeners = () => {\n if (Platform.OS === 'ios') {\n this._subscriptions = [\n Keyboard.addListener('keyboardWillChangeFrame', this._onKeyboardChange),\n ];\n } else {\n this._subscriptions = [\n Keyboard.addListener('keyboardDidHide', this._onKeyboardChange),\n Keyboard.addListener('keyboardDidShow', this._onKeyboardChange),\n ];\n }\n\n this._subscriptions.push(\n Keyboard.addListener('keyboardDidHide', () => {\n this.setState({ isKeyboardOpen: false });\n }),\n Keyboard.addListener('keyboardDidShow', () => {\n this.setState({ isKeyboardOpen: true });\n }),\n );\n };\n\n unsetKeyboardListeners = () => {\n this._subscriptions = this._subscriptions.filter((subscription) => {\n subscription.remove();\n return false;\n });\n };\n\n dismissKeyboard: () => Promise<void> | undefined = () => {\n if (!this.state.isKeyboardOpen) {\n return;\n }\n\n return new Promise((resolve) => {\n const subscription = Keyboard.addListener('keyboardDidHide', () => {\n resolve();\n subscription.remove();\n });\n\n Keyboard.dismiss();\n });\n };\n\n componentDidMount() {\n this._appStateSubscription = AppState.addEventListener('change', this._handleAppStateChange);\n this.setKeyboardListeners();\n }\n\n componentWillUnmount() {\n // Following if-else condition to avoid deprecated warning coming RN 0.65\n if (this._appStateSubscription?.remove) {\n this._appStateSubscription?.remove();\n } else {\n AppState.removeEventListener('change', this._handleAppStateChange);\n }\n this.unsetKeyboardListeners();\n }\n\n render() {\n const { behavior, children, contentContainerStyle, enabled, style, ...props } = this.props;\n const bottomHeight = enabled ? this.state.bottom : 0;\n switch (behavior) {\n case 'height':\n // eslint-disable-next-line no-case-declarations\n let heightStyle;\n if (this._frame !== null && this.state.bottom > 0) {\n // Note that we only apply a height change when there is keyboard present,\n // i.e. this.state.bottom is greater than 0. If we remove that condition,\n // this.frame.height will never go back to its original value.\n // When height changes, we need to disable flex.\n heightStyle = {\n flex: 0,\n height: this._initialFrameHeight - bottomHeight,\n };\n }\n return (\n <KeyboardProvider value={{ dismissKeyboard: this.dismissKeyboard }}>\n <View\n onLayout={this._onLayout}\n ref={this.viewRef}\n style={StyleSheet.compose(style, heightStyle)}\n {...props}\n >\n {children}\n </View>\n </KeyboardProvider>\n );\n\n case 'position':\n return (\n <KeyboardProvider value={{ dismissKeyboard: this.dismissKeyboard }}>\n <View onLayout={this._onLayout} ref={this.viewRef} style={style} {...props}>\n <View\n style={StyleSheet.compose(contentContainerStyle, {\n bottom: bottomHeight,\n })}\n >\n {children}\n </View>\n </View>\n </KeyboardProvider>\n );\n\n case 'padding':\n return (\n <KeyboardProvider value={{ dismissKeyboard: this.dismissKeyboard }}>\n <View\n onLayout={this._onLayout}\n ref={this.viewRef}\n style={StyleSheet.compose(style, { paddingBottom: bottomHeight })}\n {...props}\n >\n {children}\n </View>\n </KeyboardProvider>\n );\n\n default:\n return (\n <KeyboardProvider value={{ dismissKeyboard: this.dismissKeyboard }}>\n <View onLayout={this._onLayout} ref={this.viewRef} style={style} {...props}>\n {children}\n </View>\n </KeyboardProvider>\n );\n }\n }\n}\n"],"mappings":";;;;;;;;;;;;AAAA;AACA;AAoBA;AAAkF;AAAA;AAAA;AAAA;AAAA,IAQrEA,sBAAsB;EAAA;EAAA;EAmBjC,gCAAYC,KAAgC,EAAE;IAAA;IAAA;IAC5C,0BAAMA,KAAK;IAAE,MAPfC,MAAM,GAA2B,IAAI;IAAA,MACrCC,cAAc,GAAyB,IAAI;IAAA,MAC3CC,cAAc,GAA0B,EAAE;IAAA,MAC1CC,qBAAqB,GAAmC,IAAI;IAAA,MAE5DC,mBAAmB,GAAG,CAAC;IAAA,MAqCvBC,iBAAiB,GAA0B,UAACC,KAAK,EAAK;MACpD,MAAKL,cAAc,GAAGK,KAAK;MAC3B,MAAKC,wBAAwB,EAAE;IACjC,CAAC;IAAA,MAEDC,SAAS,GAAuC,UAACF,KAAK,EAAK;MACzD,MAAKN,MAAM,GAAGM,KAAK,CAACG,WAA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AQ;YAAC,KAAK,EAAEuB;UAAM,GAAKrE,KAAK;YAAA;YAAA;cAAA;cAAA;cAAA;YAAA;UAAA,IACvEkE,QAAQ,CACJ,CACU;MACnB;IAER;EAAC;EAAA;AAAA,EA3OyCnB,iBAAK,CAAC6B,SAAS;AAAA;AAA9C7E,sBAAsB,CAI1B8E,YAAY,GAGf;EACFZ,QAAQ,EAAElC,qBAAQ,CAACC,EAAE,KAAK,KAAK,GAAG,SAAS,GAAG,UAAU;EACxDoC,OAAO,EAAE,IAAI;EACbf,sBAAsB,EAAEtB,qBAAQ,CAACC,EAAE,KAAK,KAAK,GAAG,IAAI,GAAG,CAAC;AAC1D,CAAC"}
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_KeyboardContext","_jsxFileName","_excluded","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","arguments","apply","_possibleConstructorReturn2","sham","Proxy","Boolean","prototype","valueOf","call","e","KeyboardCompatibleView","_React$Component","_inherits2","_super","props","_this","_classCallCheck2","_frame","_keyboardEvent","_subscriptions","_appStateSubscription","_initialFrameHeight","_onKeyboardChange","event","_updateBottomIfNecessary","_onLayout","nativeEvent","layout","height","setState","bottom","_this$_keyboardEvent","duration","easing","endCoordinates","_relativeKeyboardHeight","state","LayoutAnimation","configureNext","update","type","Types","_handleAppStateChange","nextAppState","appState","match","setKeyboardListeners","unsetKeyboardListeners","Platform","OS","Keyboard","addListener","push","isKeyboardOpen","filter","subscription","remove","dismissKeyboard","Promise","resolve","dismiss","AppState","currentState","viewRef","React","createRef","_createClass2","key","value","keyboardFrame","_this$props$keyboardV","frame","keyboardY","screenY","keyboardVerticalOffset","relativeHeight","y","_StatusBar$currentHei","barHeights","Dimensions","get","Math","max","StatusBar","currentHeight","componentDidMount","addEventListener","componentWillUnmount","_this$_appStateSubscr","_this$_appStateSubscr2","removeEventListener","render","_this$props","behavior","children","contentContainerStyle","enabled","style","_objectWithoutProperties2","bottomHeight","heightStyle","flex","createElement","KeyboardProvider","__self","__source","fileName","lineNumber","columnNumber","View","_extends2","onLayout","ref","StyleSheet","compose","paddingBottom","Component","exports","defaultProps"],"sources":["KeyboardCompatibleView.tsx"],"sourcesContent":["import React from 'react';\nimport {\n AppState,\n AppStateStatus,\n Dimensions,\n EmitterSubscription,\n Keyboard,\n KeyboardAvoidingViewProps,\n KeyboardEvent,\n KeyboardEventListener,\n LayoutAnimation,\n LayoutChangeEvent,\n LayoutRectangle,\n NativeEventSubscription,\n Platform,\n ScreenRect,\n StatusBar,\n StyleSheet,\n View,\n} from 'react-native';\n\nimport { KeyboardProvider } from '../../contexts/keyboardContext/KeyboardContext';\n\n/**\n * View that moves out of the way when the keyboard appears by automatically\n * adjusting its height, position, or bottom padding.\n *\n * Following piece of code has been mostly copied from KeyboardAvoidingView component, with few additional tweaks.\n */\nexport class KeyboardCompatibleView extends React.Component<\n KeyboardAvoidingViewProps,\n { appState: AppStateStatus; bottom: number; isKeyboardOpen: boolean }\n> {\n static defaultProps: Pick<\n KeyboardAvoidingViewProps,\n 'behavior' | 'enabled' | 'keyboardVerticalOffset'\n > = {\n behavior: Platform.OS === 'ios' ? 'padding' : 'position',\n enabled: true,\n keyboardVerticalOffset: Platform.OS === 'ios' ? 86.5 : -300, // default MessageInput height\n };\n\n _frame: LayoutRectangle | null = null;\n _keyboardEvent: KeyboardEvent | null = null;\n _subscriptions: EmitterSubscription[] = [];\n _appStateSubscription: NativeEventSubscription | null = null;\n viewRef: React.RefObject<View>;\n _initialFrameHeight = 0;\n constructor(props: KeyboardAvoidingViewProps) {\n super(props);\n this.state = {\n appState: AppState.currentState,\n bottom: 0,\n isKeyboardOpen: false,\n };\n this.viewRef = React.createRef();\n }\n\n _relativeKeyboardHeight(keyboardFrame: ScreenRect) {\n const frame = this._frame;\n if (!frame || !keyboardFrame) {\n return 0;\n }\n\n const keyboardY = keyboardFrame.screenY - (this.props.keyboardVerticalOffset ?? 0);\n const relativeHeight = frame.y + frame.height - keyboardY;\n\n /**\n * When the StatusBar is translucent there is an issue\n * where the relative keyboard height is returned incorrectly\n * instead of 0 when closed.\n */\n if (Platform.OS === 'android') {\n const barHeights = Dimensions.get('screen').height - Dimensions.get('window').height;\n if (relativeHeight <= Math.max(barHeights, StatusBar.currentHeight ?? 0)) {\n return 0;\n }\n }\n\n // Calculate the displacement needed for the view such that it\n // no longer overlaps with the keyboard\n return Math.max(relativeHeight, 0);\n }\n\n _onKeyboardChange: KeyboardEventListener = (event) => {\n this._keyboardEvent = event;\n this._updateBottomIfNecessary();\n };\n\n _onLayout: (event: LayoutChangeEvent) => void = (event) => {\n this._frame = event.nativeEvent.layout;\n if (!this._initialFrameHeight) {\n // save the initial frame height, before the keyboard is visible\n this._initialFrameHeight = this._frame.height;\n }\n\n this._updateBottomIfNecessary();\n };\n\n _updateBottomIfNecessary = () => {\n if (this._keyboardEvent === null) {\n this.setState({ bottom: 0 });\n return;\n }\n\n const { duration, easing, endCoordinates } = this._keyboardEvent;\n const height = this._relativeKeyboardHeight(endCoordinates);\n\n if (this.state.bottom === height) {\n return;\n }\n\n if (duration && easing) {\n LayoutAnimation.configureNext({\n // We have to pass the duration equal to minimal accepted duration defined here: RCTLayoutAnimation.m\n duration: duration > 10 ? duration : 10,\n update: {\n duration: duration > 10 ? duration : 10,\n type: LayoutAnimation.Types[easing] || 'keyboard',\n },\n });\n }\n this.setState({ bottom: height });\n };\n\n _handleAppStateChange = (nextAppState: AppStateStatus) => {\n if (this.state.appState.match(/inactive|background/) && nextAppState === 'active') {\n this.setKeyboardListeners();\n }\n\n if (nextAppState.match(/inactive|background/)) {\n this.unsetKeyboardListeners();\n }\n\n this.setState({ appState: nextAppState });\n };\n\n setKeyboardListeners = () => {\n if (Platform.OS === 'ios') {\n this._subscriptions = [\n Keyboard.addListener('keyboardWillChangeFrame', this._onKeyboardChange),\n ];\n } else {\n this._subscriptions = [\n Keyboard.addListener('keyboardDidHide', this._onKeyboardChange),\n Keyboard.addListener('keyboardDidShow', this._onKeyboardChange),\n ];\n }\n\n this._subscriptions.push(\n Keyboard.addListener('keyboardDidHide', () => {\n this.setState({ isKeyboardOpen: false });\n }),\n Keyboard.addListener('keyboardDidShow', () => {\n this.setState({ isKeyboardOpen: true });\n }),\n );\n };\n\n unsetKeyboardListeners = () => {\n this._subscriptions = this._subscriptions.filter((subscription) => {\n subscription.remove();\n return false;\n });\n };\n\n dismissKeyboard: () => Promise<void> | undefined = () => {\n if (!this.state.isKeyboardOpen) {\n return;\n }\n\n return new Promise((resolve) => {\n const subscription = Keyboard.addListener('keyboardDidHide', () => {\n resolve();\n subscription.remove();\n });\n\n Keyboard.dismiss();\n });\n };\n\n componentDidMount() {\n this._appStateSubscription = AppState.addEventListener('change', this._handleAppStateChange);\n this.setKeyboardListeners();\n }\n\n componentWillUnmount() {\n // Following if-else condition to avoid deprecated warning coming RN 0.65\n if (this._appStateSubscription?.remove) {\n this._appStateSubscription?.remove();\n } else {\n AppState.removeEventListener('change', this._handleAppStateChange);\n }\n this.unsetKeyboardListeners();\n }\n\n render() {\n const { behavior, children, contentContainerStyle, enabled, style, ...props } = this.props;\n const bottomHeight = enabled ? this.state.bottom : 0;\n switch (behavior) {\n case 'height':\n // eslint-disable-next-line no-case-declarations\n let heightStyle;\n if (this._frame !== null && this.state.bottom > 0) {\n // Note that we only apply a height change when there is keyboard present,\n // i.e. this.state.bottom is greater than 0. If we remove that condition,\n // this.frame.height will never go back to its original value.\n // When height changes, we need to disable flex.\n heightStyle = {\n flex: 0,\n height: this._initialFrameHeight - bottomHeight,\n };\n }\n return (\n <KeyboardProvider value={{ dismissKeyboard: this.dismissKeyboard }}>\n <View\n onLayout={this._onLayout}\n ref={this.viewRef}\n style={StyleSheet.compose(style, heightStyle)}\n {...props}\n >\n {children}\n </View>\n </KeyboardProvider>\n );\n\n case 'position':\n return (\n <KeyboardProvider value={{ dismissKeyboard: this.dismissKeyboard }}>\n <View onLayout={this._onLayout} ref={this.viewRef} style={style} {...props}>\n <View\n style={StyleSheet.compose(contentContainerStyle, {\n bottom: bottomHeight,\n })}\n >\n {children}\n </View>\n </View>\n </KeyboardProvider>\n );\n\n case 'padding':\n return (\n <KeyboardProvider value={{ dismissKeyboard: this.dismissKeyboard }}>\n <View\n onLayout={this._onLayout}\n ref={this.viewRef}\n style={StyleSheet.compose(style, { paddingBottom: bottomHeight })}\n {...props}\n >\n {children}\n </View>\n </KeyboardProvider>\n );\n\n default:\n return (\n <KeyboardProvider value={{ dismissKeyboard: this.dismissKeyboard }}>\n <View onLayout={this._onLayout} ref={this.viewRef} style={style} {...props}>\n {children}\n </View>\n </KeyboardProvider>\n );\n }\n }\n}\n"],"mappings":";;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAoBA,IAAAE,gBAAA,GAAAF,OAAA;AAAkF,IAAAG,YAAA;AAAA,IAAAC,SAAA;AAAA,SAAAC,aAAAC,OAAA,QAAAC,yBAAA,GAAAC,yBAAA,oBAAAC,qBAAA,QAAAC,KAAA,OAAAC,gBAAA,aAAAL,OAAA,GAAAM,MAAA,MAAAL,yBAAA,QAAAM,SAAA,OAAAF,gBAAA,mBAAAG,WAAA,EAAAF,MAAA,GAAAG,OAAA,CAAAC,SAAA,CAAAN,KAAA,EAAAO,SAAA,EAAAJ,SAAA,YAAAD,MAAA,GAAAF,KAAA,CAAAQ,KAAA,OAAAD,SAAA,gBAAAE,2BAAA,mBAAAP,MAAA;AAAA,SAAAJ,0BAAA,eAAAO,OAAA,qBAAAA,OAAA,CAAAC,SAAA,oBAAAD,OAAA,CAAAC,SAAA,CAAAI,IAAA,2BAAAC,KAAA,oCAAAC,OAAA,CAAAC,SAAA,CAAAC,OAAA,CAAAC,IAAA,CAAAV,OAAA,CAAAC,SAAA,CAAAM,OAAA,8CAAAI,CAAA;AAAA,IAQrEC,sBAAsB,aAAAC,gBAAA;EAAA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;AAAA,EA3OyCsD,iBAAK,CAACoD,SAAS;AAAAC,OAAA,CAAA3G,sBAAA,GAAAA,sBAAA;AAA9CA,sBAAsB,CAI1B4G,YAAY,GAGf;EACFzB,QAAQ,EAAE7C,qBAAQ,CAACC,EAAE,KAAK,KAAK,GAAG,SAAS,GAAG,UAAU;EACxD+C,OAAO,EAAE,IAAI;EACbtB,sBAAsB,EAAE1B,qBAAQ,CAACC,EAAE,KAAK,KAAK,GAAG,IAAI,GAAG,CAAC;AAC1D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["KeyboardCompatibleView","behavior","Platform","OS","children","contentContainerStyle","enabled","keyboardVerticalOffset","style","props","frame","useRef","initialFrameHeight","keyboardEvent","subscriptions","viewRef","useState","AppState","currentState","appState","setAppState","bottom","setBottom","isKeyboardOpen","setIsKeyboardOpen","useEffect","handleAppStateChange","nextAppState","match","setKeyboardListeners","unsetKeyboardListeners","onKeyboardChange","event","current","Keyboard","addListener","filter","subscription","remove","addEventListener","removeEventListener","updateBottomIfNecessary","dismissKeyboard","Promise","resolve","dismiss","onLayout","nativeEvent","layout","height","relativeKeyboardHeight","keyboardFrame","keyboardY","screenY","Math","max","y","duration","easing","endCoordinates","LayoutAnimation","configureNext","update","type","Types","bottomHeight","heightStyle","flex","StyleSheet","compose","paddingBottom"],"sources":["KeyboardCompatibleViewFC.tsx"],"sourcesContent":["import React, { useEffect, useRef, useState } from 'react';\nimport {\n AppState,\n AppStateStatus,\n EmitterSubscription,\n Keyboard,\n KeyboardAvoidingViewProps,\n KeyboardEvent,\n KeyboardEventListener,\n LayoutAnimation,\n LayoutChangeEvent,\n LayoutRectangle,\n Platform,\n ScreenRect,\n StyleSheet,\n View,\n} from 'react-native';\n\nimport { KeyboardProvider } from '../../contexts/keyboardContext/KeyboardContext';\n\n/**\n * View that moves out of the way when the keyboard appears by automatically\n * adjusting its height, position, or bottom padding.\n *\n * Following piece of code has been mostly copied from KeyboardAvoidingView component, with few additional tweaks.\n */\nexport const KeyboardCompatibleView: React.FC<KeyboardAvoidingViewProps> = ({\n behavior = Platform.OS === 'ios' ? 'padding' : 'position',\n children,\n contentContainerStyle,\n enabled = true,\n keyboardVerticalOffset = Platform.OS === 'ios' ? 86.5 : -300,\n style,\n ...props\n}) => {\n const frame = useRef<LayoutRectangle>();\n const initialFrameHeight = useRef(0);\n const keyboardEvent = useRef<KeyboardEvent>();\n const subscriptions = useRef<EmitterSubscription[]>([]);\n const viewRef = useRef<View | null>(null);\n\n const [appState, setAppState] = useState<AppStateStatus>(AppState.currentState);\n const [bottom, setBottom] = useState(0);\n const [isKeyboardOpen, setIsKeyboardOpen] = useState(false);\n\n useEffect(() => {\n const handleAppStateChange = (nextAppState: AppStateStatus) => {\n if (appState.match(/inactive|background/) && nextAppState === 'active') {\n setKeyboardListeners();\n }\n\n if (nextAppState.match(/inactive|background/)) {\n unsetKeyboardListeners();\n }\n\n setAppState(nextAppState);\n };\n\n const onKeyboardChange: KeyboardEventListener = (event) => {\n keyboardEvent.current = event;\n };\n\n const setKeyboardListeners = () => {\n if (Platform.OS === 'ios') {\n subscriptions.current = [\n Keyboard.addListener('keyboardWillChangeFrame', onKeyboardChange),\n Keyboard.addListener('keyboardDidHide', () => {\n setIsKeyboardOpen(false);\n }),\n Keyboard.addListener('keyboardDidShow', () => {\n setIsKeyboardOpen(true);\n }),\n ];\n } else {\n subscriptions.current = [\n Keyboard.addListener('keyboardDidHide', (event) => {\n onKeyboardChange(event);\n setIsKeyboardOpen(false);\n }),\n Keyboard.addListener('keyboardDidShow', (event) => {\n onKeyboardChange(event);\n setIsKeyboardOpen(true);\n }),\n ];\n }\n };\n\n const unsetKeyboardListeners = () => {\n subscriptions.current = subscriptions.current.filter((subscription) => {\n subscription.remove();\n return false;\n });\n };\n\n AppState.addEventListener('change', handleAppStateChange);\n setKeyboardListeners();\n\n return () => {\n AppState.removeEventListener('change', handleAppStateChange);\n unsetKeyboardListeners();\n };\n }, []);\n\n useEffect(() => {\n updateBottomIfNecessary();\n }, [keyboardEvent.current]);\n\n const dismissKeyboard: () => Promise<void> | undefined = () => {\n if (!isKeyboardOpen) {\n return;\n }\n\n return new Promise((resolve) => {\n const subscription = Keyboard.addListener('keyboardDidHide', () => {\n resolve();\n subscription.remove();\n });\n\n Keyboard.dismiss();\n });\n };\n\n const onLayout: (event: LayoutChangeEvent) => void = (event) => {\n frame.current = event.nativeEvent.layout;\n if (!initialFrameHeight.current) {\n // save the initial frame height, before the keyboard is visible\n initialFrameHeight.current = frame.current.height;\n }\n\n updateBottomIfNecessary();\n };\n\n const relativeKeyboardHeight = (keyboardFrame: ScreenRect) => {\n if (!frame.current || !keyboardFrame) {\n return 0;\n }\n\n const keyboardY = keyboardFrame.screenY - keyboardVerticalOffset;\n\n // Calculate the displacement needed for the view such that it\n // no longer overlaps with the keyboard\n return Math.max(frame.current.y + frame.current.height - keyboardY, 0);\n };\n\n const updateBottomIfNecessary = () => {\n if (!keyboardEvent.current) {\n setBottom(0);\n return;\n }\n\n const { duration, easing, endCoordinates } = keyboardEvent.current;\n const height = relativeKeyboardHeight(endCoordinates);\n\n if (bottom === height) {\n return;\n }\n\n if (duration && easing) {\n LayoutAnimation.configureNext({\n // We have to pass the duration equal to minimal accepted duration defined here: RCTLayoutAnimation.m\n duration: duration > 10 ? duration : 10,\n update: {\n duration: duration > 10 ? duration : 10,\n type: LayoutAnimation.Types[easing] || 'keyboard',\n },\n });\n }\n setBottom(height);\n };\n\n const bottomHeight = enabled ? bottom : 0;\n switch (behavior) {\n case 'height':\n // eslint-disable-next-line no-case-declarations\n let heightStyle;\n if (frame.current && bottom > 0) {\n // Note that we only apply a height change when there is keyboard present,\n // i.e. this.state.bottom is greater than 0. If we remove that condition,\n // this.frame.height will never go back to its original value.\n // When height changes, we need to disable flex.\n heightStyle = {\n flex: 0,\n height: initialFrameHeight.current - bottomHeight,\n };\n }\n return (\n <KeyboardProvider value={{ dismissKeyboard }}>\n <View\n onLayout={onLayout}\n ref={viewRef}\n style={StyleSheet.compose(style, heightStyle)}\n {...props}\n >\n {children}\n </View>\n </KeyboardProvider>\n );\n\n case 'position':\n return (\n <KeyboardProvider value={{ dismissKeyboard }}>\n <View onLayout={onLayout} ref={viewRef} style={style} {...props}>\n <View\n style={StyleSheet.compose(contentContainerStyle, {\n bottom: bottomHeight,\n })}\n >\n {children}\n </View>\n </View>\n </KeyboardProvider>\n );\n\n case 'padding':\n return (\n <KeyboardProvider value={{ dismissKeyboard }}>\n <View\n onLayout={onLayout}\n ref={viewRef}\n style={StyleSheet.compose(style, { paddingBottom: bottomHeight })}\n {...props}\n >\n {children}\n </View>\n </KeyboardProvider>\n );\n\n default:\n return (\n <KeyboardProvider value={{ dismissKeyboard }}>\n <View onLayout={onLayout} ref={viewRef} style={style} {...props}>\n {children}\n </View>\n </KeyboardProvider>\n );\n }\n};\n"],"mappings":";;;;;;;;;AAAA;AACA;AAiBA;AAAkF;AAAA;EAAA;AAAA;AAAA;AAQ3E,IAAMA,sBAA2D,GAAG,SAA9DA,sBAA2D,OAQlE;EAAA,yBAPJC,QAAQ;IAARA,QAAQ,8BAAGC,qBAAQ,CAACC,EAAE,KAAK,KAAK,GAAG,SAAS,GAAG,UAAU;IACzDC,QAAQ,QAARA,QAAQ;IACRC,qBAAqB,QAArBA,qBAAqB;IAAA,oBACrBC,OAAO;IAAPA,OAAO,6BAAG,IAAI;IAAA,6BACdC,sBAAsB;IAAtBA,sBAAsB,sCAAGL,qBAAQ,CAACC,EAAE,KAAK,KAAK,GAAG,IAAI,GAAG,CAAC,GAAG;IAC5DK,KAAK,QAALA,KAAK;IACFC,KAAK;EAER,IAAMC,KAAK,GAAG,IAAAC,aAAM,GAAmB;EACvC,IAAMC,kBAAkB,GAAG,IAAAD,aAAM,EAAC,CAAC,CAAC;EACpC,IAAME,aAAa,GAAG,IAAAF,aAAM,GAAiB;EAC7C,IAAMG,aAAa,GAAG,IAAAH,aAAM,EAAwB,EAAE,CAAC;EACvD,IAAMI,OAAO,GAA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A;UAAA;UAAA;UAAA;QAAA;MAAA,GAEF7D,QAAQ,CACJ,CACF,CACU;IAGvB,KAAK,SAAS;MACZ,OACE,gCAAC,iCAAgB;QAAC,KAAK,EAAE;UAAEsC,eAAe,EAAfA;QAAgB,CAAE;QAAA;QAAA;UAAA;UAAA;UAAA;QAAA;MAAA,GAC3C,gCAAC,iBAAI;QACH,QAAQ,EAAEI,QAAS;QACnB,GAAG,EAAE/B,OAAQ;QACb,KAAK,EAAEqD,uBAAU,CAACC,OAAO,CAAC7D,KAAK,EAAE;UAAE8D,aAAa,EAAEL;QAAa,CAAC;MAAE,GAC9DxD,KAAK;QAAA;QAAA;UAAA;UAAA;UAAA;QAAA;MAAA,IAERL,QAAQ,CACJ,CACU;IAGvB;MACE,OACE,gCAAC,iCAAgB;QAAC,KAAK,EAAE;UAAEsC,eAAe,EAAfA;QAAgB,CAAE;QAAA;QAAA;UAAA;UAAA;UAAA;QAAA;MAAA,GAC3C,gCAAC,iBAAI;QAAC,QAAQ,EAAEI,QAAS;QAAC,GAAG,EAAE/B,OAAQ;QAAC,KAAK,EAAEP;MAAM,GAAKC,KAAK;QAAA;QAAA;UAAA;UAAA;UAAA;QAAA;MAAA,IAC5DL,QAAQ,CACJ,CACU;EACnB;AAER,CAAC;AAAC"}
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_KeyboardContext","_excluded","_this","_jsxFileName","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","_typeof","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","KeyboardCompatibleView","_ref","_ref$behavior","behavior","Platform","OS","children","contentContainerStyle","_ref$enabled","enabled","_ref$keyboardVertical","keyboardVerticalOffset","style","props","_objectWithoutProperties2","frame","useRef","initialFrameHeight","keyboardEvent","subscriptions","viewRef","_useState","useState","AppState","currentState","_useState2","_slicedToArray2","appState","setAppState","_useState3","_useState4","bottom","setBottom","_useState5","_useState6","isKeyboardOpen","setIsKeyboardOpen","useEffect","handleAppStateChange","nextAppState","match","setKeyboardListeners","unsetKeyboardListeners","onKeyboardChange","event","current","Keyboard","addListener","filter","subscription","remove","addEventListener","removeEventListener","updateBottomIfNecessary","dismissKeyboard","Promise","resolve","dismiss","onLayout","nativeEvent","layout","height","relativeKeyboardHeight","keyboardFrame","keyboardY","screenY","Math","max","y","_keyboardEvent$curren","duration","easing","endCoordinates","LayoutAnimation","configureNext","update","type","Types","bottomHeight","heightStyle","flex","createElement","KeyboardProvider","value","__self","__source","fileName","lineNumber","columnNumber","View","_extends2","ref","StyleSheet","compose","paddingBottom","exports"],"sources":["KeyboardCompatibleViewFC.tsx"],"sourcesContent":["import React, { useEffect, useRef, useState } from 'react';\nimport {\n AppState,\n AppStateStatus,\n EmitterSubscription,\n Keyboard,\n KeyboardAvoidingViewProps,\n KeyboardEvent,\n KeyboardEventListener,\n LayoutAnimation,\n LayoutChangeEvent,\n LayoutRectangle,\n Platform,\n ScreenRect,\n StyleSheet,\n View,\n} from 'react-native';\n\nimport { KeyboardProvider } from '../../contexts/keyboardContext/KeyboardContext';\n\n/**\n * View that moves out of the way when the keyboard appears by automatically\n * adjusting its height, position, or bottom padding.\n *\n * Following piece of code has been mostly copied from KeyboardAvoidingView component, with few additional tweaks.\n */\nexport const KeyboardCompatibleView: React.FC<KeyboardAvoidingViewProps> = ({\n behavior = Platform.OS === 'ios' ? 'padding' : 'position',\n children,\n contentContainerStyle,\n enabled = true,\n keyboardVerticalOffset = Platform.OS === 'ios' ? 86.5 : -300,\n style,\n ...props\n}) => {\n const frame = useRef<LayoutRectangle>();\n const initialFrameHeight = useRef(0);\n const keyboardEvent = useRef<KeyboardEvent>();\n const subscriptions = useRef<EmitterSubscription[]>([]);\n const viewRef = useRef<View | null>(null);\n\n const [appState, setAppState] = useState<AppStateStatus>(AppState.currentState);\n const [bottom, setBottom] = useState(0);\n const [isKeyboardOpen, setIsKeyboardOpen] = useState(false);\n\n useEffect(() => {\n const handleAppStateChange = (nextAppState: AppStateStatus) => {\n if (appState.match(/inactive|background/) && nextAppState === 'active') {\n setKeyboardListeners();\n }\n\n if (nextAppState.match(/inactive|background/)) {\n unsetKeyboardListeners();\n }\n\n setAppState(nextAppState);\n };\n\n const onKeyboardChange: KeyboardEventListener = (event) => {\n keyboardEvent.current = event;\n };\n\n const setKeyboardListeners = () => {\n if (Platform.OS === 'ios') {\n subscriptions.current = [\n Keyboard.addListener('keyboardWillChangeFrame', onKeyboardChange),\n Keyboard.addListener('keyboardDidHide', () => {\n setIsKeyboardOpen(false);\n }),\n Keyboard.addListener('keyboardDidShow', () => {\n setIsKeyboardOpen(true);\n }),\n ];\n } else {\n subscriptions.current = [\n Keyboard.addListener('keyboardDidHide', (event) => {\n onKeyboardChange(event);\n setIsKeyboardOpen(false);\n }),\n Keyboard.addListener('keyboardDidShow', (event) => {\n onKeyboardChange(event);\n setIsKeyboardOpen(true);\n }),\n ];\n }\n };\n\n const unsetKeyboardListeners = () => {\n subscriptions.current = subscriptions.current.filter((subscription) => {\n subscription.remove();\n return false;\n });\n };\n\n AppState.addEventListener('change', handleAppStateChange);\n setKeyboardListeners();\n\n return () => {\n AppState.removeEventListener('change', handleAppStateChange);\n unsetKeyboardListeners();\n };\n }, []);\n\n useEffect(() => {\n updateBottomIfNecessary();\n }, [keyboardEvent.current]);\n\n const dismissKeyboard: () => Promise<void> | undefined = () => {\n if (!isKeyboardOpen) {\n return;\n }\n\n return new Promise((resolve) => {\n const subscription = Keyboard.addListener('keyboardDidHide', () => {\n resolve();\n subscription.remove();\n });\n\n Keyboard.dismiss();\n });\n };\n\n const onLayout: (event: LayoutChangeEvent) => void = (event) => {\n frame.current = event.nativeEvent.layout;\n if (!initialFrameHeight.current) {\n // save the initial frame height, before the keyboard is visible\n initialFrameHeight.current = frame.current.height;\n }\n\n updateBottomIfNecessary();\n };\n\n const relativeKeyboardHeight = (keyboardFrame: ScreenRect) => {\n if (!frame.current || !keyboardFrame) {\n return 0;\n }\n\n const keyboardY = keyboardFrame.screenY - keyboardVerticalOffset;\n\n // Calculate the displacement needed for the view such that it\n // no longer overlaps with the keyboard\n return Math.max(frame.current.y + frame.current.height - keyboardY, 0);\n };\n\n const updateBottomIfNecessary = () => {\n if (!keyboardEvent.current) {\n setBottom(0);\n return;\n }\n\n const { duration, easing, endCoordinates } = keyboardEvent.current;\n const height = relativeKeyboardHeight(endCoordinates);\n\n if (bottom === height) {\n return;\n }\n\n if (duration && easing) {\n LayoutAnimation.configureNext({\n // We have to pass the duration equal to minimal accepted duration defined here: RCTLayoutAnimation.m\n duration: duration > 10 ? duration : 10,\n update: {\n duration: duration > 10 ? duration : 10,\n type: LayoutAnimation.Types[easing] || 'keyboard',\n },\n });\n }\n setBottom(height);\n };\n\n const bottomHeight = enabled ? bottom : 0;\n switch (behavior) {\n case 'height':\n // eslint-disable-next-line no-case-declarations\n let heightStyle;\n if (frame.current && bottom > 0) {\n // Note that we only apply a height change when there is keyboard present,\n // i.e. this.state.bottom is greater than 0. If we remove that condition,\n // this.frame.height will never go back to its original value.\n // When height changes, we need to disable flex.\n heightStyle = {\n flex: 0,\n height: initialFrameHeight.current - bottomHeight,\n };\n }\n return (\n <KeyboardProvider value={{ dismissKeyboard }}>\n <View\n onLayout={onLayout}\n ref={viewRef}\n style={StyleSheet.compose(style, heightStyle)}\n {...props}\n >\n {children}\n </View>\n </KeyboardProvider>\n );\n\n case 'position':\n return (\n <KeyboardProvider value={{ dismissKeyboard }}>\n <View onLayout={onLayout} ref={viewRef} style={style} {...props}>\n <View\n style={StyleSheet.compose(contentContainerStyle, {\n bottom: bottomHeight,\n })}\n >\n {children}\n </View>\n </View>\n </KeyboardProvider>\n );\n\n case 'padding':\n return (\n <KeyboardProvider value={{ dismissKeyboard }}>\n <View\n onLayout={onLayout}\n ref={viewRef}\n style={StyleSheet.compose(style, { paddingBottom: bottomHeight })}\n {...props}\n >\n {children}\n </View>\n </KeyboardProvider>\n );\n\n default:\n return (\n <KeyboardProvider value={{ dismissKeyboard }}>\n <View onLayout={onLayout} ref={viewRef} style={style} {...props}>\n {children}\n </View>\n </KeyboardProvider>\n );\n }\n};\n"],"mappings":";;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAiBA,IAAAE,gBAAA,GAAAF,OAAA;AAAkF,IAAAG,SAAA;AAAA,IAAAC,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,SAAAR,wBAAAY,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,GAAA,CAAAJ,GAAA,YAAAG,KAAA,CAAAE,GAAA,CAAAL,GAAA,SAAAM,MAAA,WAAAC,qBAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,GAAA,IAAAX,GAAA,QAAAW,GAAA,kBAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAd,GAAA,EAAAW,GAAA,SAAAI,IAAA,GAAAR,qBAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAV,GAAA,EAAAW,GAAA,cAAAI,IAAA,KAAAA,IAAA,CAAAV,GAAA,IAAAU,IAAA,CAAAC,GAAA,KAAAR,MAAA,CAAAC,cAAA,CAAAH,MAAA,EAAAK,GAAA,EAAAI,IAAA,YA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