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
|
@@ -34,6 +34,10 @@ const styles = StyleSheet.create({
|
|
|
34
34
|
dismiss: {
|
|
35
35
|
borderRadius: 24,
|
|
36
36
|
height: 24,
|
|
37
|
+
position: 'absolute',
|
|
38
|
+
right: 14,
|
|
39
|
+
top: 4,
|
|
40
|
+
width: 24,
|
|
37
41
|
},
|
|
38
42
|
fileContainer: {
|
|
39
43
|
borderRadius: 12,
|
|
@@ -112,62 +116,68 @@ const FileUploadPreviewWithContext = <
|
|
|
112
116
|
},
|
|
113
117
|
},
|
|
114
118
|
} = useTheme();
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
119
|
+
|
|
120
|
+
const renderItem = ({ index, item }: { index: number; item: FileUpload }) => {
|
|
121
|
+
const indicatorType =
|
|
122
|
+
item.state === FileState.UPLOADING
|
|
123
|
+
? ProgressIndicatorTypes.IN_PROGRESS
|
|
124
|
+
: item.state === FileState.UPLOAD_FAILED
|
|
125
|
+
? ProgressIndicatorTypes.RETRY
|
|
126
|
+
: undefined;
|
|
127
|
+
|
|
128
|
+
return (
|
|
129
|
+
<>
|
|
130
|
+
<UploadProgressIndicator
|
|
131
|
+
action={() => {
|
|
132
|
+
uploadFile({ newFile: item });
|
|
133
|
+
}}
|
|
134
|
+
active={item.state !== FileState.UPLOADED && item.state !== FileState.FINISHED}
|
|
135
|
+
style={styles.overlay}
|
|
136
|
+
type={indicatorType}
|
|
137
|
+
>
|
|
138
|
+
<View
|
|
139
|
+
style={[
|
|
140
|
+
styles.fileContainer,
|
|
141
|
+
index === fileUploads.length - 1
|
|
142
|
+
? {
|
|
143
|
+
marginBottom: 0,
|
|
144
|
+
}
|
|
145
|
+
: {},
|
|
146
|
+
{
|
|
147
|
+
borderColor: grey_whisper,
|
|
148
|
+
width: flatListWidth - 16,
|
|
149
|
+
},
|
|
150
|
+
fileContainer,
|
|
151
|
+
]}
|
|
152
|
+
>
|
|
153
|
+
<View style={[styles.fileContentContainer, fileContentContainer]}>
|
|
154
|
+
<FileAttachmentIcon mimeType={item.file.type} />
|
|
155
|
+
<View style={[styles.fileTextContainer, fileTextContainer]}>
|
|
156
|
+
<Text
|
|
157
|
+
numberOfLines={1}
|
|
158
|
+
style={[
|
|
159
|
+
styles.filenameText,
|
|
160
|
+
{
|
|
161
|
+
color: black,
|
|
162
|
+
width:
|
|
163
|
+
flatListWidth -
|
|
164
|
+
16 - // 16 = horizontal padding
|
|
165
|
+
40 - // 40 = file icon size
|
|
166
|
+
24 - // 24 = close icon size
|
|
167
|
+
24, // 24 = internal padding
|
|
168
|
+
},
|
|
169
|
+
filenameText,
|
|
170
|
+
]}
|
|
171
|
+
>
|
|
172
|
+
{item.file.name || ''}
|
|
173
|
+
</Text>
|
|
174
|
+
<Text style={[styles.fileSizeText, { color: grey }, fileSizeText]}>
|
|
175
|
+
{getFileSizeDisplayText(item.file.size)}
|
|
176
|
+
</Text>
|
|
177
|
+
</View>
|
|
178
|
+
</View>
|
|
169
179
|
</View>
|
|
170
|
-
</
|
|
180
|
+
</UploadProgressIndicator>
|
|
171
181
|
<TouchableOpacity
|
|
172
182
|
onPress={() => {
|
|
173
183
|
removeFile(item.id);
|
|
@@ -177,9 +187,9 @@ const FileUploadPreviewWithContext = <
|
|
|
177
187
|
>
|
|
178
188
|
<Close />
|
|
179
189
|
</TouchableOpacity>
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
190
|
+
</>
|
|
191
|
+
);
|
|
192
|
+
};
|
|
183
193
|
|
|
184
194
|
const fileUploadsLength = fileUploads.length;
|
|
185
195
|
|