stream-chat-react-native-core 3.8.2 → 3.9.0-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/components/Channel/Channel.js +42 -30
- package/lib/commonjs/components/Channel/Channel.js.map +1 -1
- package/lib/commonjs/components/MessageInput/FileUploadPreview.js +28 -23
- package/lib/commonjs/components/MessageInput/FileUploadPreview.js.map +1 -1
- package/lib/commonjs/version.json +1 -1
- package/lib/module/components/Channel/Channel.js +42 -30
- package/lib/module/components/Channel/Channel.js.map +1 -1
- package/lib/module/components/MessageInput/FileUploadPreview.js +28 -23
- package/lib/module/components/MessageInput/FileUploadPreview.js.map +1 -1
- package/lib/module/version.json +1 -1
- package/lib/typescript/{src/components → components}/Attachment/Attachment.d.ts +0 -0
- package/lib/typescript/{src/components → components}/Attachment/AttachmentActions.d.ts +0 -0
- package/lib/typescript/{src/components → components}/Attachment/Card.d.ts +0 -0
- package/lib/typescript/{src/components → components}/Attachment/FileAttachment.d.ts +0 -0
- package/lib/typescript/{src/components → components}/Attachment/FileAttachmentGroup.d.ts +0 -0
- package/lib/typescript/{src/components → components}/Attachment/FileIcon.d.ts +0 -0
- package/lib/typescript/{src/components → components}/Attachment/Gallery.d.ts +0 -0
- package/lib/typescript/{src/components → components}/Attachment/Giphy.d.ts +0 -0
- package/lib/typescript/{src/components → components}/AttachmentPicker/AttachmentPicker.d.ts +0 -0
- package/lib/typescript/{src/components → components}/AttachmentPicker/components/AttachmentPickerBottomSheetHandle.d.ts +0 -0
- package/lib/typescript/{src/components → components}/AttachmentPicker/components/AttachmentPickerError.d.ts +0 -0
- package/lib/typescript/{src/components → components}/AttachmentPicker/components/AttachmentPickerErrorImage.d.ts +0 -0
- package/lib/typescript/{src/components → components}/AttachmentPicker/components/AttachmentSelectionBar.d.ts +0 -0
- package/lib/typescript/{src/components → components}/AttachmentPicker/components/CameraSelectorIcon.d.ts +0 -0
- package/lib/typescript/{src/components → components}/AttachmentPicker/components/FileSelectorIcon.d.ts +0 -0
- package/lib/typescript/{src/components → components}/AttachmentPicker/components/ImageOverlaySelectedComponent.d.ts +0 -0
- package/lib/typescript/{src/components → components}/AttachmentPicker/components/ImageSelectorIcon.d.ts +0 -0
- package/lib/typescript/{src/components → components}/AutoCompleteInput/AutoCompleteInput.d.ts +0 -0
- package/lib/typescript/{src/components → components}/AutoCompleteInput/CommandsHeader.d.ts +0 -0
- package/lib/typescript/{src/components → components}/AutoCompleteInput/CommandsItem.d.ts +0 -0
- package/lib/typescript/{src/components → components}/AutoCompleteInput/EmojisHeader.d.ts +0 -0
- package/lib/typescript/{src/components → components}/AutoCompleteInput/EmojisItem.d.ts +0 -0
- package/lib/typescript/{src/components → components}/AutoCompleteInput/MentionsItem.d.ts +0 -0
- package/lib/typescript/{src/components → components}/AutoCompleteInput/SuggestionsList.d.ts +0 -0
- package/lib/typescript/{src/components → components}/Avatar/Avatar.d.ts +0 -0
- package/lib/typescript/{src/components → components}/Avatar/GroupAvatar.d.ts +0 -0
- package/lib/typescript/{src/components → components}/Channel/Channel.d.ts +1 -0
- package/lib/typescript/{src/components → components}/Channel/hooks/useCreateChannelContext.d.ts +0 -0
- package/lib/typescript/{src/components → components}/Channel/hooks/useCreateInputMessageInputContext.d.ts +0 -0
- package/lib/typescript/{src/components → components}/Channel/hooks/useCreateMessagesContext.d.ts +0 -0
- package/lib/typescript/{src/components → components}/Channel/hooks/useCreatePaginatedMessageListContext.d.ts +0 -0
- package/lib/typescript/{src/components → components}/Channel/hooks/useCreateThreadContext.d.ts +0 -0
- package/lib/typescript/{src/components → components}/Channel/hooks/useCreateTypingContext.d.ts +0 -0
- package/lib/typescript/{src/components → components}/Channel/hooks/useTargetedMessage.d.ts +0 -0
- package/lib/typescript/{src/components → components}/ChannelList/ChannelList.d.ts +0 -0
- package/lib/typescript/{src/components → components}/ChannelList/ChannelListFooterLoadingIndicator.d.ts +0 -0
- package/lib/typescript/{src/components → components}/ChannelList/ChannelListHeaderErrorIndicator.d.ts +0 -0
- package/lib/typescript/{src/components → components}/ChannelList/ChannelListHeaderNetworkDownIndicator.d.ts +0 -0
- package/lib/typescript/{src/components → components}/ChannelList/ChannelListLoadingIndicator.d.ts +0 -0
- package/lib/typescript/{src/components → components}/ChannelList/ChannelListMessenger.d.ts +0 -0
- package/lib/typescript/{src/components → components}/ChannelList/Skeleton.d.ts +0 -0
- package/lib/typescript/{src/components → components}/ChannelList/hooks/listeners/useAddedToChannelNotification.d.ts +0 -0
- package/lib/typescript/{src/components → components}/ChannelList/hooks/listeners/useChannelDeleted.d.ts +0 -0
- package/lib/typescript/{src/components → components}/ChannelList/hooks/listeners/useChannelHidden.d.ts +0 -0
- package/lib/typescript/{src/components → components}/ChannelList/hooks/listeners/useChannelTruncated.d.ts +0 -0
- package/lib/typescript/{src/components → components}/ChannelList/hooks/listeners/useChannelUpdated.d.ts +0 -0
- package/lib/typescript/{src/components → components}/ChannelList/hooks/listeners/useChannelVisible.d.ts +0 -0
- package/lib/typescript/{src/components → components}/ChannelList/hooks/listeners/useConnectionRecovered.d.ts +0 -0
- package/lib/typescript/{src/components → components}/ChannelList/hooks/listeners/useNewMessage.d.ts +0 -0
- package/lib/typescript/{src/components → components}/ChannelList/hooks/listeners/useNewMessageNotification.d.ts +0 -0
- package/lib/typescript/{src/components → components}/ChannelList/hooks/listeners/useRemovedFromChannelNotification.d.ts +0 -0
- package/lib/typescript/{src/components → components}/ChannelList/hooks/listeners/useUserPresence.d.ts +0 -0
- package/lib/typescript/{src/components → components}/ChannelList/hooks/useCreateChannelsContext.d.ts +0 -0
- package/lib/typescript/{src/components → components}/ChannelList/hooks/usePaginatedChannels.d.ts +0 -0
- package/lib/typescript/{src/components → components}/ChannelList/utils.d.ts +0 -0
- package/lib/typescript/{src/components → components}/ChannelPreview/ChannelAvatar.d.ts +0 -0
- package/lib/typescript/{src/components → components}/ChannelPreview/ChannelPreview.d.ts +0 -0
- package/lib/typescript/{src/components → components}/ChannelPreview/ChannelPreviewMessage.d.ts +0 -0
- package/lib/typescript/{src/components → components}/ChannelPreview/ChannelPreviewMessenger.d.ts +0 -0
- package/lib/typescript/{src/components → components}/ChannelPreview/ChannelPreviewStatus.d.ts +0 -0
- package/lib/typescript/{src/components → components}/ChannelPreview/ChannelPreviewTitle.d.ts +0 -0
- package/lib/typescript/{src/components → components}/ChannelPreview/ChannelPreviewUnreadCount.d.ts +0 -0
- package/lib/typescript/{src/components → components}/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.d.ts +0 -0
- package/lib/typescript/{src/components → components}/ChannelPreview/hooks/useChannelPreviewDisplayName.d.ts +0 -0
- package/lib/typescript/{src/components → components}/ChannelPreview/hooks/useChannelPreviewDisplayPresence.d.ts +0 -0
- package/lib/typescript/{src/components → components}/ChannelPreview/hooks/useLatestMessagePreview.d.ts +0 -0
- package/lib/typescript/{src/components → components}/Chat/Chat.d.ts +0 -0
- package/lib/typescript/{src/components → components}/Chat/hooks/useCreateChatContext.d.ts +0 -0
- package/lib/typescript/{src/components → components}/Chat/hooks/useIsOnline.d.ts +0 -0
- package/lib/typescript/{src/components → components}/Chat/hooks/useMutedUsers.d.ts +0 -0
- package/lib/typescript/{src/components → components}/ImageGallery/ImageGallery.d.ts +0 -0
- package/lib/typescript/{src/components → components}/ImageGallery/components/AnimatedGalleryImage.d.ts +0 -0
- package/lib/typescript/{src/components → components}/ImageGallery/components/ImageGalleryFooter.d.ts +0 -0
- package/lib/typescript/{src/components → components}/ImageGallery/components/ImageGalleryHeader.d.ts +0 -0
- package/lib/typescript/{src/components → components}/ImageGallery/components/ImageGalleryOverlay.d.ts +0 -0
- package/lib/typescript/{src/components → components}/ImageGallery/components/ImageGrid.d.ts +0 -0
- package/lib/typescript/{src/components → components}/ImageGallery/components/ImageGridHandle.d.ts +0 -0
- package/lib/typescript/{src/components → components}/Indicators/EmptyStateIndicator.d.ts +0 -0
- package/lib/typescript/{src/components → components}/Indicators/LoadingDot.d.ts +0 -0
- package/lib/typescript/{src/components → components}/Indicators/LoadingDots.d.ts +0 -0
- package/lib/typescript/{src/components → components}/Indicators/LoadingErrorIndicator.d.ts +0 -0
- package/lib/typescript/{src/components → components}/Indicators/LoadingIndicator.d.ts +0 -0
- package/lib/typescript/{src/components → components}/KeyboardCompatibleView/KeyboardCompatibleView.d.ts +0 -0
- package/lib/typescript/{src/components → components}/KeyboardCompatibleView/KeyboardCompatibleViewFC.d.ts +0 -0
- package/lib/typescript/{src/components → components}/Message/Message.d.ts +0 -0
- package/lib/typescript/{src/components → components}/Message/MessageSimple/MessageAvatar.d.ts +0 -0
- package/lib/typescript/{src/components → components}/Message/MessageSimple/MessageContent.d.ts +0 -0
- package/lib/typescript/{src/components → components}/Message/MessageSimple/MessageDeleted.d.ts +0 -0
- package/lib/typescript/{src/components → components}/Message/MessageSimple/MessageFooter.d.ts +0 -0
- package/lib/typescript/{src/components → components}/Message/MessageSimple/MessageReplies.d.ts +0 -0
- package/lib/typescript/{src/components → components}/Message/MessageSimple/MessageRepliesAvatars.d.ts +0 -0
- package/lib/typescript/{src/components → components}/Message/MessageSimple/MessageSimple.d.ts +0 -0
- package/lib/typescript/{src/components → components}/Message/MessageSimple/MessageStatus.d.ts +0 -0
- package/lib/typescript/{src/components → components}/Message/MessageSimple/MessageTextContainer.d.ts +0 -0
- package/lib/typescript/{src/components → components}/Message/MessageSimple/ReactionList.d.ts +0 -0
- package/lib/typescript/{src/components → components}/Message/MessageSimple/utils/renderText.d.ts +0 -0
- package/lib/typescript/{src/components → components}/Message/hooks/useCreateMessageContext.d.ts +0 -0
- package/lib/typescript/{src/components → components}/Message/utils/messageActions.d.ts +0 -0
- package/lib/typescript/{src/components → components}/Message/utils/removeReservedFields.d.ts +0 -0
- package/lib/typescript/{src/components → components}/MessageInput/AttachButton.d.ts +0 -0
- package/lib/typescript/{src/components → components}/MessageInput/CommandsButton.d.ts +0 -0
- package/lib/typescript/{src/components → components}/MessageInput/FileUploadPreview.d.ts +0 -0
- package/lib/typescript/{src/components → components}/MessageInput/ImageUploadPreview.d.ts +0 -0
- package/lib/typescript/{src/components → components}/MessageInput/InputButtons.d.ts +0 -0
- package/lib/typescript/{src/components → components}/MessageInput/MessageInput.d.ts +0 -0
- package/lib/typescript/{src/components → components}/MessageInput/MoreOptionsButton.d.ts +0 -0
- package/lib/typescript/{src/components → components}/MessageInput/SendButton.d.ts +0 -0
- package/lib/typescript/{src/components → components}/MessageInput/ShowThreadMessageInChannelButton.d.ts +0 -0
- package/lib/typescript/{src/components → components}/MessageInput/UploadProgressIndicator.d.ts +0 -0
- package/lib/typescript/{src/components → components}/MessageList/DateHeader.d.ts +0 -0
- package/lib/typescript/{src/components → components}/MessageList/InlineDateSeparator.d.ts +0 -0
- package/lib/typescript/{src/components → components}/MessageList/InlineLoadingMoreIndicator.d.ts +0 -0
- package/lib/typescript/{src/components → components}/MessageList/InlineLoadingMoreRecentIndicator.d.ts +0 -0
- package/lib/typescript/{src/components → components}/MessageList/InlineLoadingMoreThreadIndicator.d.ts +0 -0
- package/lib/typescript/{src/components → components}/MessageList/InlineUnreadIndicator.d.ts +0 -0
- package/lib/typescript/{src/components → components}/MessageList/MessageList.d.ts +0 -0
- package/lib/typescript/{src/components → components}/MessageList/MessageSystem.d.ts +0 -0
- package/lib/typescript/{src/components → components}/MessageList/NetworkDownIndicator.d.ts +0 -0
- package/lib/typescript/{src/components → components}/MessageList/ScrollToBottomButton.d.ts +0 -0
- package/lib/typescript/{src/components → components}/MessageList/TypingIndicator.d.ts +0 -0
- package/lib/typescript/{src/components → components}/MessageList/TypingIndicatorContainer.d.ts +0 -0
- package/lib/typescript/{src/components → components}/MessageList/hooks/useMessageList.d.ts +0 -0
- package/lib/typescript/{src/components → components}/MessageList/hooks/useTypingString.d.ts +0 -0
- package/lib/typescript/{src/components → components}/MessageList/utils/filterTypingUsers.d.ts +0 -0
- package/lib/typescript/{src/components → components}/MessageList/utils/getDateSeparators.d.ts +0 -0
- package/lib/typescript/{src/components → components}/MessageList/utils/getGroupStyles.d.ts +0 -0
- package/lib/typescript/{src/components → components}/MessageList/utils/getLastReceivedMessage.d.ts +0 -0
- package/lib/typescript/{src/components → components}/MessageList/utils/getReadStates.d.ts +0 -0
- package/lib/typescript/{src/components → components}/MessageOverlay/MessageActions.d.ts +0 -0
- package/lib/typescript/{src/components → components}/MessageOverlay/MessageOverlay.d.ts +0 -0
- package/lib/typescript/{src/components → components}/MessageOverlay/OverlayReactionList.d.ts +0 -0
- package/lib/typescript/{src/components → components}/MessageOverlay/OverlayReactions.d.ts +0 -0
- package/lib/typescript/{src/components → components}/Reply/Reply.d.ts +0 -0
- package/lib/typescript/{src/components → components}/Spinner/Spinner.d.ts +0 -0
- package/lib/typescript/{src/components → components}/Thread/Thread.d.ts +0 -0
- package/lib/typescript/{src/components → components}/Thread/components/ThreadFooterComponent.d.ts +0 -0
- package/lib/typescript/{src/components → components}/index.d.ts +0 -0
- package/lib/typescript/{src/contexts → contexts}/attachmentPickerContext/AttachmentPickerContext.d.ts +0 -0
- package/lib/typescript/{src/contexts → contexts}/channelContext/ChannelContext.d.ts +0 -0
- package/lib/typescript/{src/contexts → contexts}/channelsContext/ChannelsContext.d.ts +0 -0
- package/lib/typescript/{src/contexts → contexts}/chatContext/ChatContext.d.ts +0 -0
- package/lib/typescript/{src/contexts → contexts}/imageGalleryContext/ImageGalleryContext.d.ts +0 -0
- package/lib/typescript/{src/contexts → contexts}/index.d.ts +0 -0
- package/lib/typescript/{src/contexts → contexts}/keyboardContext/KeyboardContext.d.ts +0 -0
- package/lib/typescript/{src/contexts → contexts}/messageContext/MessageContext.d.ts +0 -0
- package/lib/typescript/{src/contexts → contexts}/messageInputContext/MessageInputContext.d.ts +0 -0
- package/lib/typescript/{src/contexts → contexts}/messageInputContext/hooks/useCreateMessageInputContext.d.ts +0 -0
- package/lib/typescript/{src/contexts → contexts}/messageInputContext/hooks/useMessageDetailsForState.d.ts +0 -0
- package/lib/typescript/{src/contexts → contexts}/messageOverlayContext/MessageOverlayContext.d.ts +0 -0
- package/lib/typescript/{src/contexts → contexts}/messagesContext/MessagesContext.d.ts +0 -0
- package/lib/typescript/{src/contexts → contexts}/overlayContext/OverlayContext.d.ts +0 -0
- package/lib/typescript/{src/contexts → contexts}/overlayContext/OverlayProvider.d.ts +0 -0
- package/lib/typescript/{src/contexts → contexts}/paginatedMessageListContext/PaginatedMessageListContext.d.ts +0 -0
- package/lib/typescript/{src/contexts → contexts}/suggestionsContext/SuggestionsContext.d.ts +0 -0
- package/lib/typescript/{src/contexts → contexts}/themeContext/ThemeContext.d.ts +0 -0
- package/lib/typescript/{src/contexts → contexts}/themeContext/utils/theme.d.ts +0 -0
- package/lib/typescript/{src/contexts → contexts}/threadContext/ThreadContext.d.ts +0 -0
- package/lib/typescript/{src/contexts → contexts}/translationContext/TranslationContext.d.ts +0 -0
- package/lib/typescript/{src/contexts → contexts}/typingContext/TypingContext.d.ts +0 -0
- package/lib/typescript/{src/contexts → contexts}/utils/getDisplayName.d.ts +0 -0
- package/lib/typescript/{src/emoji-data → emoji-data}/compiled.d.ts +0 -0
- package/lib/typescript/{src/emoji-data → emoji-data}/emojiNames.d.ts +0 -0
- package/lib/typescript/{src/emoji-data → emoji-data}/emojis.d.ts +0 -0
- package/lib/typescript/{src/hooks → hooks}/index.d.ts +0 -0
- package/lib/typescript/{src/hooks → hooks}/useAppStateListener.d.ts +0 -0
- package/lib/typescript/{src/hooks → hooks}/useStreami18n.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/ArrowRight.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/AtMentions.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/Attach.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/Audio.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/CSV.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/Camera.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/Check.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/CheckAll.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/CheckSend.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/CircleClose.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/CirclePlus.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/CircleRight.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/Close.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/Copy.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/CurveLineLeftUp.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/DOC.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/DOCX.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/Delete.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/Down.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/DownloadArrow.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/DownloadCloud.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/Edit.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/Error.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/Eye.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/Flag.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/Folder.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/GenericFile.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/GiphyIcon.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/Grid.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/Group.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/HTML.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/Imgur.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/LOLReaction.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/Left.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/Lightning.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/Link.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/Loading.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/Logo.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/LoveReaction.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/MD.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/MailOpen.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/MenuPointHorizontal.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/MenuPointVertical.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/MessageFlag.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/MessageIcon.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/Mute.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/Notification.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/ODT.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/PDF.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/PPT.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/PPTX.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/Picture.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/RAR.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/RTF.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/Refresh.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/Right.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/SEVEN_Z.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/Search.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/SendRight.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/SendUp.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/Share.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/ShareRightArrow.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/Smile.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/Sound.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/TAR.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/TXT.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/ThreadReply.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/ThumbsDownReaction.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/ThumbsUpReaction.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/Time.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/Unknown.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/User.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/UserAdd.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/UserDelete.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/UserMinus.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/WutReaction.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/XLS.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/XLSX.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/ZIP.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/index.d.ts +0 -0
- package/lib/typescript/{src/icons → icons}/utils/base.d.ts +0 -0
- package/lib/typescript/{src/index.d.ts → index.d.ts} +0 -0
- package/lib/typescript/{src/native.d.ts → native.d.ts} +0 -0
- package/lib/typescript/{src/types → types}/types.d.ts +0 -0
- package/lib/typescript/{src/utils → utils}/Streami18n.d.ts +0 -0
- package/lib/typescript/{src/utils → utils}/utils.d.ts +0 -0
- package/package.json +1 -1
- package/src/components/Channel/Channel.tsx +114 -67
- package/src/components/MessageInput/FileUploadPreview.tsx +68 -58
- package/src/components/MessageInput/__tests__/__snapshots__/FileUploadPreview.test.js.snap +778 -730
- package/src/version.json +1 -1
- package/lib/commonjs/components/Channel/utils/debounce.js +0 -20
- package/lib/commonjs/components/Channel/utils/debounce.js.map +0 -1
- package/lib/commonjs/components/Channel/utils/throttle.js +0 -20
- package/lib/commonjs/components/Channel/utils/throttle.js.map +0 -1
- package/lib/module/components/Channel/utils/debounce.js +0 -20
- package/lib/module/components/Channel/utils/debounce.js.map +0 -1
- package/lib/module/components/Channel/utils/throttle.js +0 -20
- package/lib/module/components/Channel/utils/throttle.js.map +0 -1
- package/lib/typescript/__mocks__/react-native.d.ts +0 -6
- package/lib/typescript/src/components/Channel/utils/debounce.d.ts +0 -2
- package/lib/typescript/src/components/Channel/utils/throttle.d.ts +0 -2
- package/src/components/Channel/utils/debounce.ts +0 -12
- package/src/components/Channel/utils/throttle.ts +0 -12
|
@@ -23,6 +23,10 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
23
23
|
|
|
24
24
|
var _reactNative = require("react-native");
|
|
25
25
|
|
|
26
|
+
var _debounce = _interopRequireDefault(require("lodash/debounce"));
|
|
27
|
+
|
|
28
|
+
var _throttle = _interopRequireDefault(require("lodash/throttle"));
|
|
29
|
+
|
|
26
30
|
var _streamChat = require("stream-chat");
|
|
27
31
|
|
|
28
32
|
var _useAppStateListener = require("../../hooks/useAppStateListener");
|
|
@@ -41,10 +45,6 @@ var _useCreateTypingContext = require("./hooks/useCreateTypingContext");
|
|
|
41
45
|
|
|
42
46
|
var _useTargetedMessage2 = require("./hooks/useTargetedMessage");
|
|
43
47
|
|
|
44
|
-
var _debounce = require("./utils/debounce");
|
|
45
|
-
|
|
46
|
-
var _throttle = require("./utils/throttle");
|
|
47
|
-
|
|
48
48
|
var _Attachment = require("../Attachment/Attachment");
|
|
49
49
|
|
|
50
50
|
var _AttachmentActions = require("../Attachment/AttachmentActions");
|
|
@@ -190,6 +190,16 @@ var reactionData = [{
|
|
|
190
190
|
}];
|
|
191
191
|
exports.reactionData = reactionData;
|
|
192
192
|
var scrollToFirstUnreadThreshold = 4;
|
|
193
|
+
var defaultThrottleInterval = 500;
|
|
194
|
+
var defaultDebounceInterval = 500;
|
|
195
|
+
var throttleOptions = {
|
|
196
|
+
leading: false,
|
|
197
|
+
trailing: true
|
|
198
|
+
};
|
|
199
|
+
var debounceOptions = {
|
|
200
|
+
leading: true,
|
|
201
|
+
trailing: true
|
|
202
|
+
};
|
|
193
203
|
var unreadMessagesOnInitialLoadLimit = 2;
|
|
194
204
|
|
|
195
205
|
var ChannelWithContext = function ChannelWithContext(props) {
|
|
@@ -376,6 +386,8 @@ var ChannelWithContext = function ChannelWithContext(props) {
|
|
|
376
386
|
setInputRef = props.setInputRef,
|
|
377
387
|
_props$ShowThreadMess = props.ShowThreadMessageInChannelButton,
|
|
378
388
|
ShowThreadMessageInChannelButton = _props$ShowThreadMess === void 0 ? _ShowThreadMessageInChannelButton.ShowThreadMessageInChannelButton : _props$ShowThreadMess,
|
|
389
|
+
_props$stateUpdateThr = props.stateUpdateThrottleInterval,
|
|
390
|
+
stateUpdateThrottleInterval = _props$stateUpdateThr === void 0 ? defaultThrottleInterval : _props$stateUpdateThr,
|
|
379
391
|
StickyHeader = props.StickyHeader,
|
|
380
392
|
_props$supportedReact = props.supportedReactions,
|
|
381
393
|
supportedReactions = _props$supportedReact === void 0 ? reactionData : _props$supportedReact,
|
|
@@ -553,7 +565,7 @@ var ChannelWithContext = function ChannelWithContext(props) {
|
|
|
553
565
|
var isAdmin = (client == null ? void 0 : (_client$user = client.user) == null ? void 0 : _client$user.role) === 'admin' || (channel == null ? void 0 : channel.state.membership.role) === 'admin';
|
|
554
566
|
var isModerator = (channel == null ? void 0 : channel.state.membership.role) === 'channel_moderator' || (channel == null ? void 0 : channel.state.membership.role) === 'moderator';
|
|
555
567
|
var isOwner = (channel == null ? void 0 : channel.state.membership.role) === 'owner';
|
|
556
|
-
var markRead = (0,
|
|
568
|
+
var markRead = (0, _react.useRef)((0, _throttle["default"])(function () {
|
|
557
569
|
var _channel$getConfig;
|
|
558
570
|
|
|
559
571
|
if (channel != null && channel.disconnected || !(channel != null && channel.getConfig != null && (_channel$getConfig = channel.getConfig()) != null && _channel$getConfig.read_events)) {
|
|
@@ -565,18 +577,18 @@ var ChannelWithContext = function ChannelWithContext(props) {
|
|
|
565
577
|
} else {
|
|
566
578
|
(0, _streamChat.logChatPromiseExecution)(channel.markRead(), 'mark read');
|
|
567
579
|
}
|
|
568
|
-
});
|
|
569
|
-
var copyTypingState = (0,
|
|
580
|
+
}, defaultThrottleInterval, throttleOptions)).current;
|
|
581
|
+
var copyTypingState = (0, _react.useRef)((0, _throttle["default"])(function () {
|
|
570
582
|
if (channel) {
|
|
571
583
|
setTyping((0, _extends2["default"])({}, channel.state.typing));
|
|
572
584
|
}
|
|
573
|
-
});
|
|
574
|
-
var copyReadState = (0,
|
|
585
|
+
}, stateUpdateThrottleInterval, throttleOptions)).current;
|
|
586
|
+
var copyReadState = (0, _react.useRef)((0, _throttle["default"])(function () {
|
|
575
587
|
if (channel) {
|
|
576
588
|
setRead((0, _extends2["default"])({}, channel.state.read));
|
|
577
589
|
}
|
|
578
|
-
});
|
|
579
|
-
var copyChannelState = (0,
|
|
590
|
+
}, stateUpdateThrottleInterval, throttleOptions)).current;
|
|
591
|
+
var copyChannelState = (0, _react.useRef)((0, _throttle["default"])(function () {
|
|
580
592
|
setLoading(false);
|
|
581
593
|
|
|
582
594
|
if (channel) {
|
|
@@ -587,7 +599,7 @@ var ChannelWithContext = function ChannelWithContext(props) {
|
|
|
587
599
|
setWatcherCount(channel.state.watcher_count);
|
|
588
600
|
setWatchers((0, _extends2["default"])({}, channel.state.watchers));
|
|
589
601
|
}
|
|
590
|
-
});
|
|
602
|
+
}, stateUpdateThrottleInterval, throttleOptions)).current;
|
|
591
603
|
|
|
592
604
|
var connectionRecoveredHandler = function connectionRecoveredHandler() {
|
|
593
605
|
if (channel) {
|
|
@@ -1454,12 +1466,12 @@ var ChannelWithContext = function ChannelWithContext(props) {
|
|
|
1454
1466
|
};
|
|
1455
1467
|
}();
|
|
1456
1468
|
|
|
1457
|
-
var loadMoreFinished = (0,
|
|
1469
|
+
var loadMoreFinished = (0, _react.useRef)((0, _debounce["default"])(function (updatedHasMore, newMessages) {
|
|
1458
1470
|
setLoadingMore(false);
|
|
1459
1471
|
setError(false);
|
|
1460
1472
|
setHasMore(updatedHasMore);
|
|
1461
1473
|
setMessages(newMessages);
|
|
1462
|
-
});
|
|
1474
|
+
}, defaultDebounceInterval, debounceOptions)).current;
|
|
1463
1475
|
|
|
1464
1476
|
var loadMore = function () {
|
|
1465
1477
|
var _ref25 = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee15() {
|
|
@@ -1618,11 +1630,11 @@ var ChannelWithContext = function ChannelWithContext(props) {
|
|
|
1618
1630
|
};
|
|
1619
1631
|
}();
|
|
1620
1632
|
|
|
1621
|
-
var loadMoreRecentFinished = (0,
|
|
1633
|
+
var loadMoreRecentFinished = (0, _react.useRef)((0, _debounce["default"])(function (newMessages) {
|
|
1622
1634
|
setLoadingMoreRecent(false);
|
|
1623
1635
|
setMessages(newMessages);
|
|
1624
1636
|
setError(false);
|
|
1625
|
-
});
|
|
1637
|
+
}, defaultDebounceInterval, debounceOptions)).current;
|
|
1626
1638
|
|
|
1627
1639
|
var editMessage = function editMessage(updatedMessage) {
|
|
1628
1640
|
return doUpdateMessageRequest ? doUpdateMessageRequest((channel == null ? void 0 : channel.cid) || '', updatedMessage) : client.updateMessage(updatedMessage);
|
|
@@ -1667,11 +1679,11 @@ var ChannelWithContext = function ChannelWithContext(props) {
|
|
|
1667
1679
|
setThread(null);
|
|
1668
1680
|
setThreadMessages([]);
|
|
1669
1681
|
}, [setThread, setThreadMessages]);
|
|
1670
|
-
var loadMoreThreadFinished = (0,
|
|
1682
|
+
var loadMoreThreadFinished = (0, _react.useRef)((0, _debounce["default"])(function (newThreadHasMore, updatedThreadMessages) {
|
|
1671
1683
|
setThreadHasMore(newThreadHasMore);
|
|
1672
1684
|
setThreadLoadingMore(false);
|
|
1673
1685
|
setThreadMessages(updatedThreadMessages);
|
|
1674
|
-
});
|
|
1686
|
+
}, defaultDebounceInterval, debounceOptions)).current;
|
|
1675
1687
|
|
|
1676
1688
|
var loadMoreThread = function () {
|
|
1677
1689
|
var _ref27 = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee17() {
|
|
@@ -1925,7 +1937,7 @@ var ChannelWithContext = function ChannelWithContext(props) {
|
|
|
1925
1937
|
__self: _this,
|
|
1926
1938
|
__source: {
|
|
1927
1939
|
fileName: _jsxFileName,
|
|
1928
|
-
lineNumber:
|
|
1940
|
+
lineNumber: 1757,
|
|
1929
1941
|
columnNumber: 12
|
|
1930
1942
|
}
|
|
1931
1943
|
});
|
|
@@ -1940,7 +1952,7 @@ var ChannelWithContext = function ChannelWithContext(props) {
|
|
|
1940
1952
|
__self: _this,
|
|
1941
1953
|
__source: {
|
|
1942
1954
|
fileName: _jsxFileName,
|
|
1943
|
-
lineNumber:
|
|
1955
|
+
lineNumber: 1762,
|
|
1944
1956
|
columnNumber: 7
|
|
1945
1957
|
}
|
|
1946
1958
|
}, t('Please select a channel first'));
|
|
@@ -1954,7 +1966,7 @@ var ChannelWithContext = function ChannelWithContext(props) {
|
|
|
1954
1966
|
__self: _this,
|
|
1955
1967
|
__source: {
|
|
1956
1968
|
fileName: _jsxFileName,
|
|
1957
|
-
lineNumber:
|
|
1969
|
+
lineNumber: 1769,
|
|
1958
1970
|
columnNumber: 5
|
|
1959
1971
|
}
|
|
1960
1972
|
}), _react["default"].createElement(_ChannelContext.ChannelProvider, {
|
|
@@ -1962,7 +1974,7 @@ var ChannelWithContext = function ChannelWithContext(props) {
|
|
|
1962
1974
|
__self: _this,
|
|
1963
1975
|
__source: {
|
|
1964
1976
|
fileName: _jsxFileName,
|
|
1965
|
-
lineNumber:
|
|
1977
|
+
lineNumber: 1775,
|
|
1966
1978
|
columnNumber: 7
|
|
1967
1979
|
}
|
|
1968
1980
|
}, _react["default"].createElement(_TypingContext.TypingProvider, {
|
|
@@ -1970,7 +1982,7 @@ var ChannelWithContext = function ChannelWithContext(props) {
|
|
|
1970
1982
|
__self: _this,
|
|
1971
1983
|
__source: {
|
|
1972
1984
|
fileName: _jsxFileName,
|
|
1973
|
-
lineNumber:
|
|
1985
|
+
lineNumber: 1776,
|
|
1974
1986
|
columnNumber: 9
|
|
1975
1987
|
}
|
|
1976
1988
|
}, _react["default"].createElement(_PaginatedMessageListContext.PaginatedMessageListProvider, {
|
|
@@ -1978,7 +1990,7 @@ var ChannelWithContext = function ChannelWithContext(props) {
|
|
|
1978
1990
|
__self: _this,
|
|
1979
1991
|
__source: {
|
|
1980
1992
|
fileName: _jsxFileName,
|
|
1981
|
-
lineNumber:
|
|
1993
|
+
lineNumber: 1777,
|
|
1982
1994
|
columnNumber: 11
|
|
1983
1995
|
}
|
|
1984
1996
|
}, _react["default"].createElement(_MessagesContext.MessagesProvider, {
|
|
@@ -1986,7 +1998,7 @@ var ChannelWithContext = function ChannelWithContext(props) {
|
|
|
1986
1998
|
__self: _this,
|
|
1987
1999
|
__source: {
|
|
1988
2000
|
fileName: _jsxFileName,
|
|
1989
|
-
lineNumber:
|
|
2001
|
+
lineNumber: 1778,
|
|
1990
2002
|
columnNumber: 13
|
|
1991
2003
|
}
|
|
1992
2004
|
}, _react["default"].createElement(_ThreadContext.ThreadProvider, {
|
|
@@ -1994,7 +2006,7 @@ var ChannelWithContext = function ChannelWithContext(props) {
|
|
|
1994
2006
|
__self: _this,
|
|
1995
2007
|
__source: {
|
|
1996
2008
|
fileName: _jsxFileName,
|
|
1997
|
-
lineNumber:
|
|
2009
|
+
lineNumber: 1779,
|
|
1998
2010
|
columnNumber: 15
|
|
1999
2011
|
}
|
|
2000
2012
|
}, _react["default"].createElement(_SuggestionsContext.SuggestionsProvider, {
|
|
@@ -2002,7 +2014,7 @@ var ChannelWithContext = function ChannelWithContext(props) {
|
|
|
2002
2014
|
__self: _this,
|
|
2003
2015
|
__source: {
|
|
2004
2016
|
fileName: _jsxFileName,
|
|
2005
|
-
lineNumber:
|
|
2017
|
+
lineNumber: 1780,
|
|
2006
2018
|
columnNumber: 17
|
|
2007
2019
|
}
|
|
2008
2020
|
}, _react["default"].createElement(_MessageInputContext.MessageInputProvider, {
|
|
@@ -2010,7 +2022,7 @@ var ChannelWithContext = function ChannelWithContext(props) {
|
|
|
2010
2022
|
__self: _this,
|
|
2011
2023
|
__source: {
|
|
2012
2024
|
fileName: _jsxFileName,
|
|
2013
|
-
lineNumber:
|
|
2025
|
+
lineNumber: 1781,
|
|
2014
2026
|
columnNumber: 19
|
|
2015
2027
|
}
|
|
2016
2028
|
}, _react["default"].createElement(_reactNative.View, {
|
|
@@ -2020,7 +2032,7 @@ var ChannelWithContext = function ChannelWithContext(props) {
|
|
|
2020
2032
|
__self: _this,
|
|
2021
2033
|
__source: {
|
|
2022
2034
|
fileName: _jsxFileName,
|
|
2023
|
-
lineNumber:
|
|
2035
|
+
lineNumber: 1782,
|
|
2024
2036
|
columnNumber: 21
|
|
2025
2037
|
}
|
|
2026
2038
|
}, children)))))))));
|
|
@@ -2040,7 +2052,7 @@ var Channel = function Channel(props) {
|
|
|
2040
2052
|
__self: _this,
|
|
2041
2053
|
__source: {
|
|
2042
2054
|
fileName: _jsxFileName,
|
|
2043
|
-
lineNumber:
|
|
2055
|
+
lineNumber: 1827,
|
|
2044
2056
|
columnNumber: 5
|
|
2045
2057
|
}
|
|
2046
2058
|
}));
|