stream-chat-react-native-core 7.0.0-rc.8 → 7.0.0
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/README.md +1 -1
- package/lib/commonjs/components/Attachment/AudioAttachment.js +19 -9
- package/lib/commonjs/components/Attachment/AudioAttachment.js.map +1 -1
- package/lib/commonjs/components/Attachment/FileAttachmentGroup.js +3 -1
- package/lib/commonjs/components/Attachment/FileAttachmentGroup.js.map +1 -1
- package/lib/commonjs/components/Attachment/Gallery.js +16 -3
- package/lib/commonjs/components/Attachment/Gallery.js.map +1 -1
- package/lib/commonjs/components/Attachment/ImageReloadIndicator.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/AttachmentPicker.js +2 -2
- package/lib/commonjs/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerItem.js +7 -24
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerItem.js.map +1 -1
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteInput.js +2 -4
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteInput.js.map +1 -1
- package/lib/commonjs/components/Channel/Channel.js +320 -310
- package/lib/commonjs/components/Channel/Channel.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useChannelDataState.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js +2 -0
- package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useMessageListPagination.js +133 -147
- package/lib/commonjs/components/Channel/hooks/useMessageListPagination.js.map +1 -1
- package/lib/commonjs/components/Chat/Chat.js.map +1 -1
- package/lib/commonjs/components/KeyboardCompatibleView/KeyboardCompatibleView.js +8 -13
- package/lib/commonjs/components/KeyboardCompatibleView/KeyboardCompatibleView.js.map +1 -1
- package/lib/commonjs/components/Message/Message.js +14 -7
- package/lib/commonjs/components/Message/Message.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageFooter.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageSimple.js +70 -54
- package/lib/commonjs/components/Message/MessageSimple/MessageSimple.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageStatus.js +14 -6
- 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/utils/renderText.js.map +1 -1
- package/lib/commonjs/components/Message/hooks/useCreateMessageContext.js +3 -1
- package/lib/commonjs/components/Message/hooks/useCreateMessageContext.js.map +1 -1
- package/lib/commonjs/components/Message/hooks/useMessageActionHandlers.js.map +1 -1
- package/lib/commonjs/components/Message/hooks/useMessageActions.js.map +1 -1
- package/lib/commonjs/components/MessageInput/FileUploadPreview.js +25 -39
- package/lib/commonjs/components/MessageInput/FileUploadPreview.js.map +1 -1
- package/lib/commonjs/components/MessageInput/InputButtons.js +18 -15
- package/lib/commonjs/components/MessageInput/InputButtons.js.map +1 -1
- package/lib/commonjs/components/MessageInput/MessageInput.js +96 -74
- package/lib/commonjs/components/MessageInput/MessageInput.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js +2 -1
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js.map +1 -1
- package/lib/commonjs/components/MessageInput/hooks/useAudioController.js +4 -4
- package/lib/commonjs/components/MessageInput/hooks/useAudioController.js.map +1 -1
- package/lib/commonjs/components/MessageList/MessageList.js +281 -223
- package/lib/commonjs/components/MessageList/MessageList.js.map +1 -1
- package/lib/commonjs/components/MessageList/hooks/useMessageList.js +65 -48
- package/lib/commonjs/components/MessageList/hooks/useMessageList.js.map +1 -1
- package/lib/commonjs/components/MessageList/hooks/useShouldScrollToRecentOnNewOwnMessage.js.map +1 -1
- package/lib/commonjs/components/MessageList/utils/getGroupStyles.js +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/getReadState.js +20 -0
- package/lib/commonjs/components/MessageList/utils/getReadState.js.map +1 -0
- package/lib/commonjs/components/MessageMenu/hooks/useFetchReactions.js.map +1 -1
- package/lib/commonjs/components/Poll/components/Button.js.map +1 -1
- package/lib/commonjs/components/Poll/components/PollResults/PollResultItem.js.map +1 -1
- package/lib/commonjs/components/Reply/Reply.js +2 -2
- package/lib/commonjs/components/Reply/Reply.js.map +1 -1
- package/lib/commonjs/components/Thread/components/ThreadFooterComponent.js +24 -6
- package/lib/commonjs/components/Thread/components/ThreadFooterComponent.js.map +1 -1
- package/lib/commonjs/components/ThreadList/ThreadListItem.js.map +1 -1
- package/lib/commonjs/components/UIComponents/BottomSheetModal.js +10 -6
- package/lib/commonjs/components/UIComponents/BottomSheetModal.js.map +1 -1
- package/lib/commonjs/components/index.js +15 -4
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/contexts/attachmentPickerContext/AttachmentPickerContext.js.map +1 -1
- package/lib/commonjs/contexts/channelsStateContext/useChannelState.js +5 -1
- package/lib/commonjs/contexts/channelsStateContext/useChannelState.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/messageContext/MessageContext.js.map +1 -1
- package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js +535 -523
- package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js.map +1 -1
- package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +7 -6
- package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
- package/lib/commonjs/contexts/messageInputContext/hooks/useMessageDetailsForState.js +37 -41
- package/lib/commonjs/contexts/messageInputContext/hooks/useMessageDetailsForState.js.map +1 -1
- package/lib/commonjs/contexts/messageInputContext/utils/utils.js +4 -4
- package/lib/commonjs/contexts/messageInputContext/utils/utils.js.map +1 -1
- package/lib/commonjs/contexts/messagesContext/MessagesContext.js.map +1 -1
- package/lib/commonjs/contexts/pollContext/pollContext.js.map +1 -1
- package/lib/commonjs/contexts/suggestionsContext/SuggestionsContext.js +23 -14
- package/lib/commonjs/contexts/suggestionsContext/SuggestionsContext.js.map +1 -1
- package/lib/commonjs/contexts/themeContext/utils/theme.js +2 -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/threadsContext/ThreadListItemContext.js.map +1 -1
- package/lib/commonjs/hooks/index.js +22 -0
- package/lib/commonjs/hooks/index.js.map +1 -1
- package/lib/commonjs/hooks/useAudioPlayer.js +60 -69
- package/lib/commonjs/hooks/useAudioPlayer.js.map +1 -1
- package/lib/commonjs/hooks/useStableCallback.js +13 -0
- package/lib/commonjs/hooks/useStableCallback.js.map +1 -0
- package/lib/commonjs/hooks/useTranslatedMessage.js.map +1 -1
- package/lib/commonjs/i18n/en.json +3 -0
- package/lib/commonjs/i18n/es.json +3 -0
- package/lib/commonjs/i18n/fr.json +3 -0
- package/lib/commonjs/i18n/he.json +3 -0
- package/lib/commonjs/i18n/hi.json +2 -0
- package/lib/commonjs/i18n/it.json +3 -0
- package/lib/commonjs/i18n/ja.json +1 -0
- package/lib/commonjs/i18n/ko.json +1 -0
- package/lib/commonjs/i18n/nl.json +2 -0
- package/lib/commonjs/i18n/pt-br.json +3 -0
- package/lib/commonjs/i18n/ru.json +4 -0
- package/lib/commonjs/i18n/tr.json +2 -0
- package/lib/commonjs/mock-builders/api/channelMocks.js.map +1 -1
- package/lib/commonjs/native.js.map +1 -1
- package/lib/commonjs/store/mappers/mapMessageToStorable.js.map +1 -1
- package/lib/commonjs/types/types.js.map +1 -1
- package/lib/commonjs/utils/compressImage.js +1 -1
- package/lib/commonjs/utils/compressImage.js.map +1 -1
- package/lib/commonjs/utils/removeReservedFields.js.map +1 -1
- package/lib/commonjs/utils/utils.js +17 -4
- package/lib/commonjs/utils/utils.js.map +1 -1
- package/lib/commonjs/version.json +1 -1
- package/lib/module/components/Attachment/AudioAttachment.js +19 -9
- package/lib/module/components/Attachment/AudioAttachment.js.map +1 -1
- package/lib/module/components/Attachment/FileAttachmentGroup.js +3 -1
- package/lib/module/components/Attachment/FileAttachmentGroup.js.map +1 -1
- package/lib/module/components/Attachment/Gallery.js +16 -3
- package/lib/module/components/Attachment/Gallery.js.map +1 -1
- package/lib/module/components/Attachment/ImageReloadIndicator.js.map +1 -1
- package/lib/module/components/AttachmentPicker/AttachmentPicker.js +2 -2
- package/lib/module/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerItem.js +7 -24
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerItem.js.map +1 -1
- package/lib/module/components/AutoCompleteInput/AutoCompleteInput.js +2 -4
- package/lib/module/components/AutoCompleteInput/AutoCompleteInput.js.map +1 -1
- package/lib/module/components/Channel/Channel.js +320 -310
- package/lib/module/components/Channel/Channel.js.map +1 -1
- package/lib/module/components/Channel/hooks/useChannelDataState.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateMessagesContext.js +2 -0
- package/lib/module/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
- package/lib/module/components/Channel/hooks/useMessageListPagination.js +133 -147
- package/lib/module/components/Channel/hooks/useMessageListPagination.js.map +1 -1
- package/lib/module/components/Chat/Chat.js.map +1 -1
- package/lib/module/components/KeyboardCompatibleView/KeyboardCompatibleView.js +8 -13
- package/lib/module/components/KeyboardCompatibleView/KeyboardCompatibleView.js.map +1 -1
- package/lib/module/components/Message/Message.js +14 -7
- package/lib/module/components/Message/Message.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageFooter.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageSimple.js +70 -54
- package/lib/module/components/Message/MessageSimple/MessageSimple.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageStatus.js +14 -6
- 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/utils/renderText.js.map +1 -1
- package/lib/module/components/Message/hooks/useCreateMessageContext.js +3 -1
- package/lib/module/components/Message/hooks/useCreateMessageContext.js.map +1 -1
- package/lib/module/components/Message/hooks/useMessageActionHandlers.js.map +1 -1
- package/lib/module/components/Message/hooks/useMessageActions.js.map +1 -1
- package/lib/module/components/MessageInput/FileUploadPreview.js +25 -39
- package/lib/module/components/MessageInput/FileUploadPreview.js.map +1 -1
- package/lib/module/components/MessageInput/InputButtons.js +18 -15
- package/lib/module/components/MessageInput/InputButtons.js.map +1 -1
- package/lib/module/components/MessageInput/MessageInput.js +96 -74
- package/lib/module/components/MessageInput/MessageInput.js.map +1 -1
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js +2 -1
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js.map +1 -1
- package/lib/module/components/MessageInput/hooks/useAudioController.js +4 -4
- package/lib/module/components/MessageInput/hooks/useAudioController.js.map +1 -1
- package/lib/module/components/MessageList/MessageList.js +281 -223
- package/lib/module/components/MessageList/MessageList.js.map +1 -1
- package/lib/module/components/MessageList/hooks/useMessageList.js +65 -48
- package/lib/module/components/MessageList/hooks/useMessageList.js.map +1 -1
- package/lib/module/components/MessageList/hooks/useShouldScrollToRecentOnNewOwnMessage.js.map +1 -1
- package/lib/module/components/MessageList/utils/getGroupStyles.js +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/getReadState.js +20 -0
- package/lib/module/components/MessageList/utils/getReadState.js.map +1 -0
- package/lib/module/components/MessageMenu/hooks/useFetchReactions.js.map +1 -1
- package/lib/module/components/Poll/components/Button.js.map +1 -1
- package/lib/module/components/Poll/components/PollResults/PollResultItem.js.map +1 -1
- package/lib/module/components/Reply/Reply.js +2 -2
- package/lib/module/components/Reply/Reply.js.map +1 -1
- package/lib/module/components/Thread/components/ThreadFooterComponent.js +24 -6
- package/lib/module/components/Thread/components/ThreadFooterComponent.js.map +1 -1
- package/lib/module/components/ThreadList/ThreadListItem.js.map +1 -1
- package/lib/module/components/UIComponents/BottomSheetModal.js +10 -6
- package/lib/module/components/UIComponents/BottomSheetModal.js.map +1 -1
- package/lib/module/components/index.js +15 -4
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/contexts/attachmentPickerContext/AttachmentPickerContext.js.map +1 -1
- package/lib/module/contexts/channelsStateContext/useChannelState.js +5 -1
- package/lib/module/contexts/channelsStateContext/useChannelState.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/messageContext/MessageContext.js.map +1 -1
- package/lib/module/contexts/messageInputContext/MessageInputContext.js +535 -523
- package/lib/module/contexts/messageInputContext/MessageInputContext.js.map +1 -1
- package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +7 -6
- package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
- package/lib/module/contexts/messageInputContext/hooks/useMessageDetailsForState.js +37 -41
- package/lib/module/contexts/messageInputContext/hooks/useMessageDetailsForState.js.map +1 -1
- package/lib/module/contexts/messageInputContext/utils/utils.js +4 -4
- package/lib/module/contexts/messageInputContext/utils/utils.js.map +1 -1
- package/lib/module/contexts/messagesContext/MessagesContext.js.map +1 -1
- package/lib/module/contexts/pollContext/pollContext.js.map +1 -1
- package/lib/module/contexts/suggestionsContext/SuggestionsContext.js +23 -14
- package/lib/module/contexts/suggestionsContext/SuggestionsContext.js.map +1 -1
- package/lib/module/contexts/themeContext/utils/theme.js +2 -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/threadsContext/ThreadListItemContext.js.map +1 -1
- package/lib/module/hooks/index.js +22 -0
- package/lib/module/hooks/index.js.map +1 -1
- package/lib/module/hooks/useAudioPlayer.js +60 -69
- package/lib/module/hooks/useAudioPlayer.js.map +1 -1
- package/lib/module/hooks/useStableCallback.js +13 -0
- package/lib/module/hooks/useStableCallback.js.map +1 -0
- package/lib/module/hooks/useTranslatedMessage.js.map +1 -1
- package/lib/module/i18n/en.json +3 -0
- package/lib/module/i18n/es.json +3 -0
- package/lib/module/i18n/fr.json +3 -0
- package/lib/module/i18n/he.json +3 -0
- package/lib/module/i18n/hi.json +2 -0
- package/lib/module/i18n/it.json +3 -0
- package/lib/module/i18n/ja.json +1 -0
- package/lib/module/i18n/ko.json +1 -0
- package/lib/module/i18n/nl.json +2 -0
- package/lib/module/i18n/pt-br.json +3 -0
- package/lib/module/i18n/ru.json +4 -0
- package/lib/module/i18n/tr.json +2 -0
- package/lib/module/mock-builders/api/channelMocks.js.map +1 -1
- package/lib/module/native.js.map +1 -1
- package/lib/module/store/mappers/mapMessageToStorable.js.map +1 -1
- package/lib/module/types/types.js.map +1 -1
- package/lib/module/utils/compressImage.js +1 -1
- package/lib/module/utils/compressImage.js.map +1 -1
- package/lib/module/utils/removeReservedFields.js.map +1 -1
- package/lib/module/utils/utils.js +17 -4
- package/lib/module/utils/utils.js.map +1 -1
- package/lib/module/version.json +1 -1
- package/lib/typescript/components/Attachment/AudioAttachment.d.ts +2 -2
- package/lib/typescript/components/Attachment/AudioAttachment.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/FileAttachmentGroup.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/Gallery.d.ts +3 -3
- package/lib/typescript/components/Attachment/Gallery.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/ImageReloadIndicator.d.ts +4 -3
- package/lib/typescript/components/Attachment/ImageReloadIndicator.d.ts.map +1 -1
- package/lib/typescript/components/AttachmentPicker/AttachmentPicker.d.ts.map +1 -1
- package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerItem.d.ts +2 -2
- package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerItem.d.ts.map +1 -1
- package/lib/typescript/components/AutoCompleteInput/AutoCompleteInput.d.ts +2 -3
- package/lib/typescript/components/AutoCompleteInput/AutoCompleteInput.d.ts.map +1 -1
- package/lib/typescript/components/Channel/Channel.d.ts +3 -4
- package/lib/typescript/components/Channel/Channel.d.ts.map +1 -1
- package/lib/typescript/components/Channel/hooks/useChannelDataState.d.ts +2 -3
- package/lib/typescript/components/Channel/hooks/useChannelDataState.d.ts.map +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateMessagesContext.d.ts +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateMessagesContext.d.ts.map +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateThreadContext.d.ts +6 -6
- package/lib/typescript/components/Channel/hooks/useCreateThreadContext.d.ts.map +1 -1
- package/lib/typescript/components/Channel/hooks/useMessageListPagination.d.ts +3 -3
- package/lib/typescript/components/Channel/hooks/useMessageListPagination.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/hooks/useChannelPreviewData.d.ts +1 -1
- package/lib/typescript/components/ChannelPreview/hooks/useLatestMessagePreview.d.ts +1 -1
- package/lib/typescript/components/Chat/Chat.d.ts +0 -9
- package/lib/typescript/components/Chat/Chat.d.ts.map +1 -1
- package/lib/typescript/components/KeyboardCompatibleView/KeyboardCompatibleView.d.ts +3 -0
- package/lib/typescript/components/KeyboardCompatibleView/KeyboardCompatibleView.d.ts.map +1 -1
- package/lib/typescript/components/Message/Message.d.ts +4 -5
- package/lib/typescript/components/Message/Message.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageSimple/MessageFooter.d.ts +2 -3
- package/lib/typescript/components/Message/MessageSimple/MessageFooter.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageSimple/MessageSimple.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageSimple/MessageStatus.d.ts +1 -1
- package/lib/typescript/components/Message/MessageSimple/MessageStatus.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageSimple/MessageTextContainer.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageSimple/utils/renderText.d.ts +2 -2
- package/lib/typescript/components/Message/MessageSimple/utils/renderText.d.ts.map +1 -1
- package/lib/typescript/components/Message/hooks/useCreateMessageContext.d.ts +1 -1
- package/lib/typescript/components/Message/hooks/useCreateMessageContext.d.ts.map +1 -1
- package/lib/typescript/components/Message/hooks/useMessageActionHandlers.d.ts.map +1 -1
- package/lib/typescript/components/Message/hooks/useMessageActions.d.ts +2 -2
- package/lib/typescript/components/Message/hooks/useMessageActions.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/FileUploadPreview.d.ts +2 -4
- package/lib/typescript/components/MessageInput/FileUploadPreview.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/InputButtons.d.ts +1 -1
- package/lib/typescript/components/MessageInput/InputButtons.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/MessageInput.d.ts +1 -1
- package/lib/typescript/components/MessageInput/MessageInput.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/hooks/useAudioController.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/MessageList.d.ts +4 -4
- package/lib/typescript/components/MessageList/MessageList.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/MessageSystem.d.ts +2 -2
- package/lib/typescript/components/MessageList/MessageSystem.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/hooks/useMessageList.d.ts +14 -9
- package/lib/typescript/components/MessageList/hooks/useMessageList.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/hooks/useShouldScrollToRecentOnNewOwnMessage.d.ts +2 -2
- package/lib/typescript/components/MessageList/hooks/useShouldScrollToRecentOnNewOwnMessage.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/utils/getGroupStyles.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/utils/getLastReceivedMessage.d.ts +2 -2
- package/lib/typescript/components/MessageList/utils/getLastReceivedMessage.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/utils/getReadState.d.ts +9 -0
- package/lib/typescript/components/MessageList/utils/getReadState.d.ts.map +1 -0
- package/lib/typescript/components/MessageMenu/hooks/useFetchReactions.d.ts +2 -3
- package/lib/typescript/components/MessageMenu/hooks/useFetchReactions.d.ts.map +1 -1
- package/lib/typescript/components/Poll/components/Button.d.ts +2 -3
- package/lib/typescript/components/Poll/components/Button.d.ts.map +1 -1
- package/lib/typescript/components/Poll/components/PollResults/PollResultItem.d.ts +2 -3
- package/lib/typescript/components/Poll/components/PollResults/PollResultItem.d.ts.map +1 -1
- package/lib/typescript/components/Reply/Reply.d.ts.map +1 -1
- package/lib/typescript/components/Thread/components/ThreadFooterComponent.d.ts.map +1 -1
- package/lib/typescript/components/ThreadList/ThreadListItem.d.ts.map +1 -1
- package/lib/typescript/components/UIComponents/BottomSheetModal.d.ts.map +1 -1
- package/lib/typescript/components/index.d.ts +2 -1
- package/lib/typescript/components/index.d.ts.map +1 -1
- package/lib/typescript/contexts/attachmentPickerContext/AttachmentPickerContext.d.ts +3 -3
- package/lib/typescript/contexts/attachmentPickerContext/AttachmentPickerContext.d.ts.map +1 -1
- package/lib/typescript/contexts/channelsStateContext/useChannelState.d.ts.map +1 -1
- package/lib/typescript/contexts/debugContext/DebugContext.d.ts +2 -3
- package/lib/typescript/contexts/debugContext/DebugContext.d.ts.map +1 -1
- package/lib/typescript/contexts/imageGalleryContext/ImageGalleryContext.d.ts +3 -3
- package/lib/typescript/contexts/imageGalleryContext/ImageGalleryContext.d.ts.map +1 -1
- package/lib/typescript/contexts/messageContext/MessageContext.d.ts +6 -4
- package/lib/typescript/contexts/messageContext/MessageContext.d.ts.map +1 -1
- package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts +13 -15
- package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts.map +1 -1
- package/lib/typescript/contexts/messageInputContext/hooks/useCreateMessageInputContext.d.ts +1 -1
- package/lib/typescript/contexts/messageInputContext/hooks/useCreateMessageInputContext.d.ts.map +1 -1
- package/lib/typescript/contexts/messageInputContext/hooks/useMessageDetailsForState.d.ts +3 -3
- package/lib/typescript/contexts/messageInputContext/hooks/useMessageDetailsForState.d.ts.map +1 -1
- package/lib/typescript/contexts/messageInputContext/utils/utils.d.ts +2 -2
- package/lib/typescript/contexts/messageInputContext/utils/utils.d.ts.map +1 -1
- package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts +25 -21
- package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts.map +1 -1
- package/lib/typescript/contexts/pollContext/pollContext.d.ts +2 -3
- package/lib/typescript/contexts/pollContext/pollContext.d.ts.map +1 -1
- package/lib/typescript/contexts/suggestionsContext/SuggestionsContext.d.ts.map +1 -1
- package/lib/typescript/contexts/themeContext/utils/theme.d.ts +1 -0
- package/lib/typescript/contexts/themeContext/utils/theme.d.ts.map +1 -1
- package/lib/typescript/contexts/threadContext/ThreadContext.d.ts +4 -5
- package/lib/typescript/contexts/threadContext/ThreadContext.d.ts.map +1 -1
- package/lib/typescript/contexts/threadsContext/ThreadListItemContext.d.ts +3 -4
- package/lib/typescript/contexts/threadsContext/ThreadListItemContext.d.ts.map +1 -1
- package/lib/typescript/hooks/index.d.ts +2 -0
- package/lib/typescript/hooks/index.d.ts.map +1 -1
- package/lib/typescript/hooks/useAudioPlayer.d.ts.map +1 -1
- package/lib/typescript/hooks/useStableCallback.d.ts +26 -0
- package/lib/typescript/hooks/useStableCallback.d.ts.map +1 -0
- package/lib/typescript/hooks/useTranslatedMessage.d.ts +59 -58
- package/lib/typescript/hooks/useTranslatedMessage.d.ts.map +1 -1
- package/lib/typescript/i18n/en.json +3 -0
- package/lib/typescript/i18n/es.json +3 -0
- package/lib/typescript/i18n/fr.json +3 -0
- package/lib/typescript/i18n/he.json +3 -0
- package/lib/typescript/i18n/hi.json +2 -0
- package/lib/typescript/i18n/it.json +3 -0
- package/lib/typescript/i18n/ja.json +1 -0
- package/lib/typescript/i18n/ko.json +1 -0
- package/lib/typescript/i18n/nl.json +2 -0
- package/lib/typescript/i18n/pt-br.json +3 -0
- package/lib/typescript/i18n/ru.json +4 -0
- package/lib/typescript/i18n/tr.json +2 -0
- package/lib/typescript/native.d.ts +8 -11
- package/lib/typescript/native.d.ts.map +1 -1
- package/lib/typescript/store/apis/insertReaction.d.ts +2 -2
- package/lib/typescript/store/apis/insertReaction.d.ts.map +1 -1
- package/lib/typescript/store/apis/updateMessage.d.ts +2 -2
- package/lib/typescript/store/apis/updateMessage.d.ts.map +1 -1
- package/lib/typescript/store/apis/updateReaction.d.ts +2 -2
- package/lib/typescript/store/apis/updateReaction.d.ts.map +1 -1
- package/lib/typescript/store/mappers/mapMessageToStorable.d.ts +2 -2
- package/lib/typescript/store/mappers/mapMessageToStorable.d.ts.map +1 -1
- package/lib/typescript/types/types.d.ts +28 -50
- package/lib/typescript/types/types.d.ts.map +1 -1
- package/lib/typescript/utils/compressImage.d.ts +2 -2
- package/lib/typescript/utils/compressImage.d.ts.map +1 -1
- package/lib/typescript/utils/i18n/Streami18n.d.ts +3 -0
- package/lib/typescript/utils/i18n/Streami18n.d.ts.map +1 -1
- package/lib/typescript/utils/removeReservedFields.d.ts +2 -3
- package/lib/typescript/utils/removeReservedFields.d.ts.map +1 -1
- package/lib/typescript/utils/utils.d.ts +10 -10
- package/lib/typescript/utils/utils.d.ts.map +1 -1
- package/package.json +4 -3
- package/src/components/Attachment/AudioAttachment.tsx +12 -6
- package/src/components/Attachment/FileAttachmentGroup.tsx +3 -1
- package/src/components/Attachment/Gallery.tsx +22 -7
- package/src/components/Attachment/ImageReloadIndicator.tsx +4 -5
- package/src/components/AttachmentPicker/AttachmentPicker.tsx +4 -10
- package/src/components/AttachmentPicker/components/AttachmentPickerItem.tsx +9 -37
- package/src/components/AutoCompleteInput/AutoCompleteInput.tsx +27 -23
- package/src/components/AutoCompleteInput/__tests__/AutoCompleteInput.test.js +12 -12
- package/src/components/Channel/Channel.tsx +423 -361
- package/src/components/Channel/__tests__/Channel.test.js +10 -3
- package/src/components/Channel/hooks/useChannelDataState.ts +2 -4
- package/src/components/Channel/hooks/useCreateMessagesContext.ts +2 -0
- package/src/components/Channel/hooks/useMessageListPagination.tsx +150 -150
- package/src/components/Chat/Chat.tsx +0 -9
- package/src/components/ImageGallery/__tests__/ImageGallery.test.tsx +8 -7
- package/src/components/ImageGallery/__tests__/ImageGalleryFooter.test.tsx +5 -4
- package/src/components/ImageGallery/__tests__/ImageGalleryHeader.test.tsx +5 -4
- package/src/components/ImageGallery/__tests__/ImageGalleryOverlay.test.tsx +3 -2
- package/src/components/KeyboardCompatibleView/KeyboardCompatibleView.tsx +12 -5
- package/src/components/Message/Message.tsx +16 -15
- package/src/components/Message/MessageSimple/MessageFooter.tsx +2 -3
- package/src/components/Message/MessageSimple/MessageSimple.tsx +112 -70
- package/src/components/Message/MessageSimple/MessageStatus.tsx +19 -17
- package/src/components/Message/MessageSimple/MessageTextContainer.tsx +3 -3
- package/src/components/Message/MessageSimple/__tests__/MessageStatus.test.js +11 -5
- package/src/components/Message/MessageSimple/__tests__/MessageTextContainer.test.tsx +5 -4
- package/src/components/Message/MessageSimple/utils/renderText.tsx +2 -3
- package/src/components/Message/hooks/useCreateMessageContext.ts +3 -0
- package/src/components/Message/hooks/useMessageActionHandlers.ts +1 -3
- package/src/components/Message/hooks/useMessageActions.tsx +4 -3
- package/src/components/MessageInput/FileUploadPreview.tsx +41 -70
- package/src/components/MessageInput/ImageUploadPreview.tsx +2 -2
- package/src/components/MessageInput/InputButtons.tsx +14 -10
- package/src/components/MessageInput/MessageInput.tsx +28 -30
- package/src/components/MessageInput/__tests__/FileUploadPreview.test.js +1 -1
- package/src/components/MessageInput/__tests__/MessageInput.test.js +3 -1
- package/src/components/MessageInput/components/AudioRecorder/AudioRecordingButton.tsx +1 -0
- package/src/components/MessageInput/hooks/useAudioController.tsx +6 -5
- package/src/components/MessageList/MessageList.tsx +253 -137
- package/src/components/MessageList/MessageSystem.tsx +2 -2
- package/src/components/MessageList/hooks/useMessageList.ts +82 -64
- package/src/components/MessageList/hooks/useShouldScrollToRecentOnNewOwnMessage.ts +2 -2
- package/src/components/MessageList/utils/getGroupStyles.ts +7 -5
- package/src/components/MessageList/utils/getLastReceivedMessage.ts +3 -3
- package/src/components/MessageList/utils/getReadState.ts +27 -0
- package/src/components/MessageMenu/__tests__/MessageUserReactions.test.tsx +2 -3
- package/src/components/MessageMenu/hooks/useFetchReactions.ts +2 -3
- package/src/components/Poll/components/Button.tsx +2 -4
- package/src/components/Poll/components/PollResults/PollResultItem.tsx +2 -3
- package/src/components/Reply/Reply.tsx +1 -2
- package/src/components/Thread/__tests__/__snapshots__/Thread.test.js.snap +318 -847
- package/src/components/Thread/components/ThreadFooterComponent.tsx +31 -9
- package/src/components/ThreadList/ThreadListItem.tsx +6 -4
- package/src/components/UIComponents/BottomSheetModal.tsx +11 -7
- package/src/components/index.ts +2 -1
- package/src/contexts/attachmentPickerContext/AttachmentPickerContext.tsx +5 -4
- package/src/contexts/channelsStateContext/useChannelState.ts +5 -1
- package/src/contexts/debugContext/DebugContext.tsx +2 -4
- package/src/contexts/imageGalleryContext/ImageGalleryContext.tsx +5 -4
- package/src/contexts/messageContext/MessageContext.tsx +6 -4
- package/src/contexts/messageInputContext/MessageInputContext.tsx +295 -262
- package/src/contexts/messageInputContext/__tests__/__snapshots__/sendMessage.test.tsx.snap +10 -6
- package/src/contexts/messageInputContext/__tests__/sendMessage.test.tsx +6 -5
- package/src/contexts/messageInputContext/__tests__/updateMessage.test.tsx +3 -5
- package/src/contexts/messageInputContext/__tests__/useMessageDetailsForState.test.tsx +14 -9
- package/src/contexts/messageInputContext/hooks/useCreateMessageInputContext.ts +7 -3
- package/src/contexts/messageInputContext/hooks/useMessageDetailsForState.ts +37 -40
- package/src/contexts/messageInputContext/utils/utils.ts +6 -8
- package/src/contexts/messagesContext/MessagesContext.tsx +26 -20
- package/src/contexts/pollContext/pollContext.tsx +2 -4
- package/src/contexts/suggestionsContext/SuggestionsContext.tsx +33 -14
- package/src/contexts/themeContext/utils/theme.ts +2 -0
- package/src/contexts/threadContext/ThreadContext.tsx +4 -6
- package/src/contexts/threadsContext/ThreadListItemContext.tsx +3 -5
- package/src/hooks/index.ts +2 -0
- package/src/hooks/useAudioPlayer.ts +37 -31
- package/src/hooks/useStableCallback.ts +37 -0
- package/src/hooks/useTranslatedMessage.ts +2 -2
- package/src/i18n/en.json +3 -0
- package/src/i18n/es.json +3 -0
- package/src/i18n/fr.json +3 -0
- package/src/i18n/he.json +3 -0
- package/src/i18n/hi.json +2 -0
- package/src/i18n/it.json +3 -0
- package/src/i18n/ja.json +1 -0
- package/src/i18n/ko.json +1 -0
- package/src/i18n/nl.json +2 -0
- package/src/i18n/pt-br.json +3 -0
- package/src/i18n/ru.json +4 -0
- package/src/i18n/tr.json +2 -0
- package/src/mock-builders/api/channelMocks.tsx +2 -8
- package/src/native.ts +13 -8
- package/src/store/apis/insertReaction.ts +2 -2
- package/src/store/apis/updateMessage.ts +2 -2
- package/src/store/apis/updateReaction.ts +2 -2
- package/src/store/mappers/mapMessageToStorable.ts +2 -2
- package/src/types/stream-chat-common-custom-data.d.ts +22 -22
- package/src/types/types.ts +35 -54
- package/src/utils/compressImage.ts +3 -4
- package/src/utils/removeReservedFields.ts +3 -5
- package/src/utils/utils.ts +25 -16
- package/src/version.json +1 -1
- package/lib/commonjs/components/MessageList/hooks/useLastReadData.js +0 -20
- package/lib/commonjs/components/MessageList/hooks/useLastReadData.js.map +0 -1
- package/lib/commonjs/components/MessageList/utils/getReadStates.js +0 -34
- package/lib/commonjs/components/MessageList/utils/getReadStates.js.map +0 -1
- package/lib/module/components/MessageList/hooks/useLastReadData.js +0 -20
- package/lib/module/components/MessageList/hooks/useLastReadData.js.map +0 -1
- package/lib/module/components/MessageList/utils/getReadStates.js +0 -34
- package/lib/module/components/MessageList/utils/getReadStates.js.map +0 -1
- package/lib/typescript/components/MessageList/hooks/useLastReadData.d.ts +0 -12
- package/lib/typescript/components/MessageList/hooks/useLastReadData.d.ts.map +0 -1
- package/lib/typescript/components/MessageList/utils/getReadStates.d.ts +0 -5
- package/lib/typescript/components/MessageList/utils/getReadStates.d.ts.map +0 -1
- package/src/components/MessageList/hooks/useLastReadData.ts +0 -29
- package/src/components/MessageList/utils/getReadStates.ts +0 -55
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { MessagesContextValue } from '../../../contexts/messagesContext/MessagesContext';
|
|
2
|
-
export declare const useCreateMessagesContext: ({ additionalPressableProps, Attachment, AttachmentActions, AudioAttachment, Card, CardCover, CardFooter, CardHeader, channelId, clearQuotedMessageState, DateHeader, deletedMessagesVisibilityType, deleteMessage, deleteReaction, disableTypingIndicator, dismissKeyboardOnMessageTouch, enableMessageGroupingByUser, enableSwipeToReply, FileAttachment, FileAttachmentGroup, FileAttachmentIcon, FlatList, forceAlignMessages, Gallery, getMessagesGroupStyles, Giphy, giphyVersion, handleBan, handleCopy, handleDelete, handleEdit, handleFlag, handleMarkUnread, handleMute, handlePinMessage, handleQuotedReply, handleReaction, handleRetry, handleThreadReply, hasCreatePoll, ImageLoadingFailedIndicator, ImageLoadingIndicator, initialScrollToFirstUnreadMessage, InlineDateSeparator, InlineUnreadIndicator, isAttachmentEqual, isMessageAIGenerated, legacyImageViewerSwipeBehaviour, markdownRules, Message, MessageActionList, MessageActionListItem, messageActions, MessageAvatar, MessageBounce, MessageContent, messageContentOrder, MessageDeleted, MessageEditedTimestamp, MessageError, MessageFooter, MessageHeader, MessageList, MessageMenu, MessagePinnedHeader, MessageReactionPicker, MessageReplies, MessageRepliesAvatars, MessageSimple, MessageStatus, MessageSwipeContent, messageSwipeToReplyHitSlop, MessageSystem, MessageText, messageTextNumberOfLines, MessageTimestamp, MessageUserReactions, MessageUserReactionsAvatar, MessageUserReactionsItem, myMessageTheme, onLongPressMessage, onPressInMessage, onPressMessage, PollContent, ReactionListBottom, reactionListPosition, ReactionListTop, removeMessage, Reply, retrySendMessage, ScrollToBottomButton, selectReaction, sendReaction, setEditingState, setQuotedMessageState, shouldShowUnreadUnderlay, StreamingMessageView, supportedReactions, targetedMessage, TypingIndicator, TypingIndicatorContainer, UnreadMessagesNotification, updateMessage, UrlPreview, VideoThumbnail, }: MessagesContextValue & {
|
|
2
|
+
export declare const useCreateMessagesContext: ({ additionalPressableProps, Attachment, AttachmentActions, AudioAttachment, Card, CardCover, CardFooter, CardHeader, channelId, clearQuotedMessageState, DateHeader, deletedMessagesVisibilityType, deleteMessage, deleteReaction, disableTypingIndicator, dismissKeyboardOnMessageTouch, enableMessageGroupingByUser, enableSwipeToReply, FileAttachment, FileAttachmentGroup, FileAttachmentIcon, FlatList, forceAlignMessages, Gallery, getMessagesGroupStyles, Giphy, giphyVersion, handleBan, handleCopy, handleDelete, handleEdit, handleFlag, handleMarkUnread, handleMute, handlePinMessage, handleQuotedReply, handleReaction, handleRetry, handleThreadReply, hasCreatePoll, ImageLoadingFailedIndicator, ImageLoadingIndicator, ImageReloadIndicator, initialScrollToFirstUnreadMessage, InlineDateSeparator, InlineUnreadIndicator, isAttachmentEqual, isMessageAIGenerated, legacyImageViewerSwipeBehaviour, markdownRules, Message, MessageActionList, MessageActionListItem, messageActions, MessageAvatar, MessageBounce, MessageContent, messageContentOrder, MessageDeleted, MessageEditedTimestamp, MessageError, MessageFooter, MessageHeader, MessageList, MessageMenu, MessagePinnedHeader, MessageReactionPicker, MessageReplies, MessageRepliesAvatars, MessageSimple, MessageStatus, MessageSwipeContent, messageSwipeToReplyHitSlop, MessageSystem, MessageText, messageTextNumberOfLines, MessageTimestamp, MessageUserReactions, MessageUserReactionsAvatar, MessageUserReactionsItem, myMessageTheme, onLongPressMessage, onPressInMessage, onPressMessage, PollContent, ReactionListBottom, reactionListPosition, ReactionListTop, removeMessage, Reply, retrySendMessage, ScrollToBottomButton, selectReaction, sendReaction, setEditingState, setQuotedMessageState, shouldShowUnreadUnderlay, StreamingMessageView, supportedReactions, targetedMessage, TypingIndicator, TypingIndicatorContainer, UnreadMessagesNotification, updateMessage, UrlPreview, VideoThumbnail, }: MessagesContextValue & {
|
|
3
3
|
/**
|
|
4
4
|
* To ensure we allow re-render, when channel is changed
|
|
5
5
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCreateMessagesContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/Channel/hooks/useCreateMessagesContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mDAAmD,CAAC;AAE9F,eAAO,MAAM,wBAAwB,GAAI,
|
|
1
|
+
{"version":3,"file":"useCreateMessagesContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/Channel/hooks/useCreateMessagesContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mDAAmD,CAAC;AAE9F,eAAO,MAAM,wBAAwB,GAAI,+4DA2GtC,oBAAoB,GAAG;IACxB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,yBAmIA,CAAC"}
|
|
@@ -9,13 +9,13 @@ export declare const useCreateThreadContext: ({ allowThreadMessagesInChannel, cl
|
|
|
9
9
|
threadInstance: import("stream-chat").Thread;
|
|
10
10
|
threadLoadingMore: boolean | undefined;
|
|
11
11
|
threadLoadingMoreRecent: boolean | undefined;
|
|
12
|
-
threadMessages: import("stream-chat").
|
|
12
|
+
threadMessages: import("stream-chat").LocalMessage[];
|
|
13
13
|
allowThreadMessagesInChannel: boolean;
|
|
14
14
|
closeThread: () => void;
|
|
15
|
-
openThread: (message: import("
|
|
15
|
+
openThread: (message: import("stream-chat").LocalMessage) => void;
|
|
16
16
|
reloadThread: () => void;
|
|
17
17
|
setThreadLoadingMore: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
18
|
-
thread: import("
|
|
18
|
+
thread: import("stream-chat").LocalMessage | null;
|
|
19
19
|
threadHasMore: boolean;
|
|
20
20
|
} | {
|
|
21
21
|
loadMoreRecentThread?: undefined;
|
|
@@ -23,13 +23,13 @@ export declare const useCreateThreadContext: ({ allowThreadMessagesInChannel, cl
|
|
|
23
23
|
threadInstance?: undefined;
|
|
24
24
|
threadLoadingMore: boolean | undefined;
|
|
25
25
|
threadLoadingMoreRecent?: undefined;
|
|
26
|
-
threadMessages: import("stream-chat").
|
|
26
|
+
threadMessages: import("stream-chat").LocalMessage[];
|
|
27
27
|
allowThreadMessagesInChannel: boolean;
|
|
28
28
|
closeThread: () => void;
|
|
29
|
-
openThread: (message: import("
|
|
29
|
+
openThread: (message: import("stream-chat").LocalMessage) => void;
|
|
30
30
|
reloadThread: () => void;
|
|
31
31
|
setThreadLoadingMore: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
32
|
-
thread: import("
|
|
32
|
+
thread: import("stream-chat").LocalMessage | null;
|
|
33
33
|
threadHasMore: boolean;
|
|
34
34
|
};
|
|
35
35
|
//# sourceMappingURL=useCreateThreadContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCreateThreadContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/Channel/hooks/useCreateThreadContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+CAA+C,CAAC;AAUxF,eAAO,MAAM,sBAAsB,GAAI,0LAYpC,kBAAkB;;
|
|
1
|
+
{"version":3,"file":"useCreateThreadContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/Channel/hooks/useCreateThreadContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+CAA+C,CAAC;AAUxF,eAAO,MAAM,sBAAsB,GAAI,0LAYpC,kBAAkB;;aA6BijE,CAAC;;;aAAiF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;CADxpE,CAAC"}
|
|
@@ -21,9 +21,9 @@ export declare const useMessageListPagination: ({ channel }: {
|
|
|
21
21
|
setTargetedMessage?: (messageId: string) => void;
|
|
22
22
|
}) => Promise<void>;
|
|
23
23
|
loadInitialMessagesStateFromChannel: (channel: Channel, hasMore: boolean) => void;
|
|
24
|
-
loadLatestMessages: ()
|
|
25
|
-
loadMore: (limit?: number
|
|
26
|
-
loadMoreRecent: (limit?: number
|
|
24
|
+
loadLatestMessages: import("../../../hooks").StableCallback<[], Promise<void>>;
|
|
25
|
+
loadMore: import("../../../hooks").StableCallback<[limit?: number | undefined], Promise<void>>;
|
|
26
|
+
loadMoreRecent: import("../../../hooks").StableCallback<[limit?: number | undefined], Promise<void>>;
|
|
27
27
|
state: import("./useChannelDataState").ChannelMessagesState;
|
|
28
28
|
};
|
|
29
29
|
//# sourceMappingURL=useMessageListPagination.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMessageListPagination.d.ts","sourceRoot":"","sources":["../../../../../src/components/Channel/hooks/useMessageListPagination.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAiC,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"useMessageListPagination.d.ts","sourceRoot":"","sources":["../../../../../src/components/Channel/hooks/useMessageListPagination.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAiC,MAAM,aAAa,CAAC;AAcrE;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,GAAI,aAAa;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE;;;aA0DlD,CAAC;iBAAuB,CAAC;0BAI7C,CAAC;;;0BAa4D,CAAC;aAC9D,CAAD;6BAIgB,CAAC,EAAC,MAAO,QAAQ,CAAC,MAAM,cAAc;0BAE5C,CAAC;;;;;;;CAgNb,CAAC"}
|
|
@@ -2,7 +2,7 @@ import type { Channel, MessageResponse, StreamChat } from 'stream-chat';
|
|
|
2
2
|
export declare const useChannelPreviewData: (channel: Channel, client: StreamChat, forceUpdateOverride?: number) => {
|
|
3
3
|
latestMessagePreview: {
|
|
4
4
|
created_at: string | Date | undefined;
|
|
5
|
-
messageObject:
|
|
5
|
+
messageObject: import("stream-chat").LocalMessage | MessageResponse | undefined;
|
|
6
6
|
previews: {
|
|
7
7
|
bold: boolean;
|
|
8
8
|
text: string;
|
|
@@ -28,7 +28,7 @@ export declare enum MessageReadStatus {
|
|
|
28
28
|
*/
|
|
29
29
|
export declare const useLatestMessagePreview: (channel: Channel, forceUpdate: number, lastMessage?: ReturnType<ChannelState["formatMessage"]> | MessageResponse) => {
|
|
30
30
|
created_at: string | Date | undefined;
|
|
31
|
-
messageObject:
|
|
31
|
+
messageObject: import("stream-chat").LocalMessage | MessageResponse | undefined;
|
|
32
32
|
previews: {
|
|
33
33
|
bold: boolean;
|
|
34
34
|
text: string;
|
|
@@ -114,15 +114,6 @@ export type ChatProps = Pick<ChatContextValue, 'client'> & Partial<Pick<ChatCont
|
|
|
114
114
|
* - connectionRecovering - whether or not websocket is reconnecting
|
|
115
115
|
* - isOnline - whether or not set user is active
|
|
116
116
|
* - setActiveChannel - function to set the currently active channel
|
|
117
|
-
*
|
|
118
|
-
* The Chat Component takes the following generics in order:
|
|
119
|
-
* - At (AttachmentType) - custom Attachment object extension
|
|
120
|
-
* - Ct (ChannelType) - custom Channel object extension
|
|
121
|
-
* - Co (CommandType) - custom Command string union extension
|
|
122
|
-
* - Ev (EventType) - custom Event object extension
|
|
123
|
-
* - Me (MessageType) - custom Message object extension
|
|
124
|
-
* - Re (ReactionType) - custom Reaction object extension
|
|
125
|
-
* - Us (UserType) - custom User object extension
|
|
126
117
|
*/
|
|
127
118
|
export declare const Chat: (props: PropsWithChildren<ChatProps>) => React.JSX.Element;
|
|
128
119
|
//# sourceMappingURL=Chat.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Chat.d.ts","sourceRoot":"","sources":["../../../../src/components/Chat/Chat.ts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BAA6B,CAAC;AAK9D,MAAM,MAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,EAAE,QAAQ,CAAC,GACtD,OAAO,CAAC,IAAI,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,sBAAsB,CAAC,CAAC,GAAG;IAC3E;;;;;OAKG;IACH,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC;;OAEG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAkDG;IACH,YAAY,CAAC,EAAE,UAAU,CAAC;IAC1B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,KAAK,CAAC,aAAa,GAAG,IAAI,CAAC;IAC9C;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,KAAK,CAAC,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;CAC5B,CAAC;AAqKJ;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,IAAI,GAAI,OAAO,iBAAiB,CAAC,SAAS,CAAC,sBAIvD,CAAC"}
|
|
@@ -29,6 +29,9 @@ export declare class KeyboardCompatibleView extends React.Component<KeyboardAvoi
|
|
|
29
29
|
dismissKeyboard: () => Promise<void> | undefined;
|
|
30
30
|
componentDidMount(): void;
|
|
31
31
|
componentWillUnmount(): void;
|
|
32
|
+
keyboardContextValue: {
|
|
33
|
+
dismissKeyboard: () => Promise<void> | undefined;
|
|
34
|
+
};
|
|
32
35
|
render(): React.JSX.Element;
|
|
33
36
|
}
|
|
34
37
|
//# sourceMappingURL=KeyboardCompatibleView.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyboardCompatibleView.d.ts","sourceRoot":"","sources":["../../../../src/components/KeyboardCompatibleView/KeyboardCompatibleView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAEL,cAAc,EAEd,mBAAmB,EAEnB,yBAAyB,EACzB,aAAa,EACb,qBAAqB,EACrB,eAAe,EAEf,iBAAiB,EACjB,eAAe,EACf,uBAAuB,EAIvB,IAAI,EACL,MAAM,cAAc,CAAC;AAItB;;;;;GAKG;AACH,qBAAa,sBAAuB,SAAQ,KAAK,CAAC,SAAS,CACzD,yBAAyB,EACzB;IAAE,QAAQ,EAAE,cAAc,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,cAAc,EAAE,OAAO,CAAA;CAAE,CACtE;IACC,MAAM,CAAC,YAAY,EAAE,IAAI,CACvB,yBAAyB,EACzB,UAAU,GAAG,SAAS,GAAG,wBAAwB,CAClD,CAIC;IAEF,MAAM,EAAE,eAAe,GAAG,IAAI,CAAQ;IACtC,cAAc,EAAE,aAAa,GAAG,IAAI,CAAQ;IAC5C,cAAc,EAAE,mBAAmB,EAAE,CAAM;IAC3C,qBAAqB,EAAE,uBAAuB,GAAG,IAAI,CAAQ;IAC7D,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC;IACtC,mBAAmB,SAAK;gBACZ,KAAK,EAAE,yBAAyB;IAU5C,uBAAuB,CAAC,aAAa,EAAE,eAAe;
|
|
1
|
+
{"version":3,"file":"KeyboardCompatibleView.d.ts","sourceRoot":"","sources":["../../../../src/components/KeyboardCompatibleView/KeyboardCompatibleView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAEL,cAAc,EAEd,mBAAmB,EAEnB,yBAAyB,EACzB,aAAa,EACb,qBAAqB,EACrB,eAAe,EAEf,iBAAiB,EACjB,eAAe,EACf,uBAAuB,EAIvB,IAAI,EACL,MAAM,cAAc,CAAC;AAItB;;;;;GAKG;AACH,qBAAa,sBAAuB,SAAQ,KAAK,CAAC,SAAS,CACzD,yBAAyB,EACzB;IAAE,QAAQ,EAAE,cAAc,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,cAAc,EAAE,OAAO,CAAA;CAAE,CACtE;IACC,MAAM,CAAC,YAAY,EAAE,IAAI,CACvB,yBAAyB,EACzB,UAAU,GAAG,SAAS,GAAG,wBAAwB,CAClD,CAIC;IAEF,MAAM,EAAE,eAAe,GAAG,IAAI,CAAQ;IACtC,cAAc,EAAE,aAAa,GAAG,IAAI,CAAQ;IAC5C,cAAc,EAAE,mBAAmB,EAAE,CAAM;IAC3C,qBAAqB,EAAE,uBAAuB,GAAG,IAAI,CAAQ;IAC7D,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC;IACtC,mBAAmB,SAAK;gBACZ,KAAK,EAAE,yBAAyB;IAU5C,uBAAuB,CAAC,aAAa,EAAE,eAAe;IA+BtD,iBAAiB,EAAE,qBAAqB,CAGtC;IAEF,SAAS,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAQ3C;IAEF,wBAAwB,aAwBtB;IAEF,qBAAqB,GAAI,cAAc,cAAc,UAUnD;IAEF,oBAAoB,aAoBlB;IAEF,sBAAsB,aAKpB;IAEF,eAAe,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,SAAS,CAa9C;IAEF,iBAAiB;IAKjB,oBAAoB;IAapB,oBAAoB;+BAjCG,OAAO,CAAC,IAAI,CAAC,GAAG,SAAS;MAiCiB;IAEjE,MAAM;CAqEP"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { GestureResponderEvent, StyleProp, ViewStyle } from 'react-native';
|
|
3
|
-
import type { Attachment, UserResponse } from 'stream-chat';
|
|
3
|
+
import type { Attachment, LocalMessage, UserResponse } from 'stream-chat';
|
|
4
4
|
import { ChannelContextValue } from '../../contexts/channelContext/ChannelContext';
|
|
5
5
|
import { ChatContextValue } from '../../contexts/chatContext/ChatContext';
|
|
6
6
|
import { KeyboardContextValue } from '../../contexts/keyboardContext/KeyboardContext';
|
|
@@ -9,7 +9,6 @@ import { MessagesContextValue } from '../../contexts/messagesContext/MessagesCon
|
|
|
9
9
|
import { ThreadContextValue } from '../../contexts/threadContext/ThreadContext';
|
|
10
10
|
import { TranslationContextValue } from '../../contexts/translationContext/TranslationContext';
|
|
11
11
|
import type { Thumbnail } from '../Attachment/utils/buildGallery/types';
|
|
12
|
-
import { MessageType } from '../MessageList/hooks/useMessageList';
|
|
13
12
|
export type TouchableEmitter = 'fileAttachment' | 'gallery' | 'giphy' | 'message' | 'messageContent' | 'messageReplies' | 'reactionList';
|
|
14
13
|
export type TextMentionTouchableHandlerAdditionalInfo = {
|
|
15
14
|
user?: UserResponse;
|
|
@@ -57,7 +56,7 @@ export type MessagePressableHandlerPayload = PressableHandlerPayload & {
|
|
|
57
56
|
/**
|
|
58
57
|
* Message object, on which interaction occurred.
|
|
59
58
|
*/
|
|
60
|
-
message?:
|
|
59
|
+
message?: LocalMessage;
|
|
61
60
|
};
|
|
62
61
|
export type MessageActionHandlers = {
|
|
63
62
|
copyMessage: () => void;
|
|
@@ -72,7 +71,7 @@ export type MessageActionHandlers = {
|
|
|
72
71
|
toggleMuteUser: () => Promise<void>;
|
|
73
72
|
toggleReaction: (reactionType: string) => Promise<void>;
|
|
74
73
|
unpinMessage: () => Promise<void>;
|
|
75
|
-
threadReply?: (message:
|
|
74
|
+
threadReply?: (message: LocalMessage) => Promise<void>;
|
|
76
75
|
};
|
|
77
76
|
export type MessagePropsWithContext = Pick<ChannelContextValue, 'channel' | 'enforceUniqueReaction' | 'members'> & Pick<KeyboardContextValue, 'dismissKeyboard'> & Partial<Omit<MessageContextValue, 'groupStyles' | 'handleReaction' | 'message' | 'isMessageAIGenerated'>> & Pick<MessageContextValue, 'groupStyles' | 'message' | 'isMessageAIGenerated'> & Pick<MessagesContextValue, 'sendReaction' | 'deleteMessage' | 'dismissKeyboardOnMessageTouch' | 'forceAlignMessages' | 'handleBan' | 'handleCopy' | 'handleDelete' | 'handleEdit' | 'handleFlag' | 'handleMarkUnread' | 'handleMute' | 'handlePinMessage' | 'handleQuotedReply' | 'handleReaction' | 'handleRetry' | 'handleThreadReply' | 'isAttachmentEqual' | 'MessageMenu' | 'messageActions' | 'messageContentOrder' | 'MessageBounce' | 'MessageSimple' | 'onLongPressMessage' | 'onPressInMessage' | 'onPressMessage' | 'removeMessage' | 'deleteReaction' | 'retrySendMessage' | 'selectReaction' | 'setEditingState' | 'setQuotedMessageState' | 'supportedReactions' | 'updateMessage' | 'PollContent'> & Pick<ThreadContextValue, 'openThread'> & Pick<TranslationContextValue, 't'> & {
|
|
78
77
|
chatContext: ChatContextValue;
|
|
@@ -88,7 +87,7 @@ export type MessagePropsWithContext = Pick<ChannelContextValue, 'channel' | 'enf
|
|
|
88
87
|
*
|
|
89
88
|
* @param message A message object to open the thread upon.
|
|
90
89
|
*/
|
|
91
|
-
onThreadSelect?: (message:
|
|
90
|
+
onThreadSelect?: (message: LocalMessage) => void;
|
|
92
91
|
showUnreadUnderlay?: boolean;
|
|
93
92
|
style?: StyleProp<ViewStyle>;
|
|
94
93
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Message.d.ts","sourceRoot":"","sources":["../../../../src/components/Message/Message.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,qBAAqB,EAAY,SAAS,EAAQ,SAAS,EAAE,MAAM,cAAc,CAAC;AAE3F,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"Message.d.ts","sourceRoot":"","sources":["../../../../src/components/Message/Message.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,qBAAqB,EAAY,SAAS,EAAQ,SAAS,EAAE,MAAM,cAAc,CAAC;AAE3F,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAQ1E,OAAO,EACL,mBAAmB,EAE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AO,CAAC;IAC5B;;;;OAIG;IACH,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,YAAY,KAAK,IAAI,CAAC;IACjD,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,CAAC;AAgtBJ,MAAM,MAAM,YAAY,GAAG,OAAO,CAChC,IAAI,CAAC,uBAAuB,EAAE,aAAa,GAAG,gBAAgB,GAAG,SAAS,CAAC,CAC5E,GACC,IAAI,CAAC,uBAAuB,EAAE,aAAa,GAAG,SAAS,CAAC,CAAC;AAE3D;;;;;GAKG;AACH,eAAO,MAAM,OAAO,GAAI,OAAO,YAAY,sBAwB1C,CAAC"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { Attachment } from 'stream-chat';
|
|
2
|
+
import type { Attachment, LocalMessage } from 'stream-chat';
|
|
3
3
|
import type { MessageStatusProps } from './MessageStatus';
|
|
4
4
|
import type { ChannelContextValue } from '../../../contexts/channelContext/ChannelContext';
|
|
5
5
|
import { Alignment } from '../../../contexts/messageContext/MessageContext';
|
|
6
|
-
import type { MessageType } from '../../MessageList/hooks/useMessageList';
|
|
7
6
|
type MessageFooterComponentProps = {
|
|
8
7
|
date?: string | Date;
|
|
9
8
|
formattedDate?: string | Date;
|
|
@@ -12,7 +11,7 @@ type MessageFooterComponentProps = {
|
|
|
12
11
|
export type MessageFooterProps = Partial<Pick<ChannelContextValue, 'members'>> & MessageFooterComponentProps & {
|
|
13
12
|
alignment?: Alignment;
|
|
14
13
|
lastGroupMessage?: boolean;
|
|
15
|
-
message?:
|
|
14
|
+
message?: LocalMessage;
|
|
16
15
|
MessageStatus?: React.ComponentType<MessageStatusProps>;
|
|
17
16
|
otherAttachments?: Attachment[];
|
|
18
17
|
showMessageStatus?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageFooter.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/MessageSimple/MessageFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAGvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"MessageFooter.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/MessageSimple/MessageFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAGvC,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE5D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAE1D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AAC3F,OAAO,EACL,SAAS,EAGV,MAAM,iDAAiD,CAAC;AAYzD,KAAK,2BAA2B,GAAG;IACjC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAgPF,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,CAAC,GAC5E,2BAA2B,GAAG;IAC5B,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,aAAa,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,kBAAkB,CAAC,CAAC;IACxD,gBAAgB,CAAC,EAAE,UAAU,EAAE,CAAC;IAChC,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B,CAAC;AAEJ,eAAO,MAAM,aAAa,GAAI,OAAO,kBAAkB,sBAkCtD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageSimple.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/MessageSimple/MessageSimple.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"MessageSimple.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/MessageSimple/MessageSimple.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAgB9D,OAAO,EACL,mBAAmB,EAEpB,MAAM,iDAAiD,CAAC;AACzD,OAAO,EACL,oBAAoB,EAErB,MAAM,mDAAmD,CAAC;AAmC3D,MAAM,MAAM,6BAA6B,GAAG,IAAI,CAC9C,mBAAmB,EACjB,WAAW,GACX,SAAS,GACT,aAAa,GACb,cAAc,GACd,aAAa,GACb,kBAAkB,GAClB,SAAS,GACT,SAAS,GACT,YAAY,GACZ,kBAAkB,GAClB,mBAAmB,CACtB,GACC,IAAI,CACF,oBAAoB,EAClB,yBAAyB,GACzB,6BAA6B,GAC7B,oBAAoB,GACpB,gBAAgB,GAChB,eAAe,GACf,gBAAgB,GAChB,gBAAgB,GAChB,eAAe,GACf,eAAe,GACf,qBAAqB,GACrB,gBAAgB,GAChB,eAAe,GACf,qBAAqB,GACrB,4BAA4B,GAC5B,oBAAoB,GACpB,sBAAsB,GACtB,iBAAiB,GACjB,uBAAuB,CAC1B,CAAC;AAmeJ,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,6BAA6B,CAAC,CAAC;AAExE;;;GAGG;AACH,eAAO,MAAM,aAAa;YAAW,kBAAkB;;CAuEtD,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { MessageContextValue } from '../../../contexts/messageContext/MessageContext';
|
|
3
|
-
export type MessageStatusPropsWithContext = Pick<MessageContextValue, 'message' | 'threadList'>;
|
|
3
|
+
export type MessageStatusPropsWithContext = Pick<MessageContextValue, 'message' | 'readBy' | 'threadList'>;
|
|
4
4
|
export type MessageStatusProps = Partial<MessageStatusPropsWithContext>;
|
|
5
5
|
export declare const MessageStatus: {
|
|
6
6
|
(props: MessageStatusProps): React.JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageStatus.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/MessageSimple/MessageStatus.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EACL,mBAAmB,EAEpB,MAAM,iDAAiD,CAAC;
|
|
1
|
+
{"version":3,"file":"MessageStatus.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/MessageSimple/MessageStatus.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EACL,mBAAmB,EAEpB,MAAM,iDAAiD,CAAC;AAOzD,MAAM,MAAM,6BAA6B,GAAG,IAAI,CAC9C,mBAAmB,EACnB,SAAS,GAAG,QAAQ,GAAG,YAAY,CACpC,CAAC;AAsGF,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,6BAA6B,CAAC,CAAC;AAExE,eAAO,MAAM,aAAa;YAAW,kBAAkB;;CAItD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageTextContainer.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/MessageSimple/MessageTextContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAoB,SAAS,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"MessageTextContainer.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/MessageSimple/MessageTextContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAoB,SAAS,EAAE,MAAM,cAAc,CAAC;AAItE,OAAO,EAAc,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAElE,OAAO,EACL,mBAAmB,EAEpB,MAAM,iDAAiD,CAAC;AACzD,OAAO,EACL,oBAAoB,EAErB,MAAM,mDAAmD,CAAC;AAG3D,OAAO,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,4CAA4C,CAAC;AAOvF,MAAM,MAAM,gBAAgB,GAAG,yBAAyB,GAAG;IACzD,UAAU,EAAE,CAAC,MAAM,EAAE,gBAAgB,KAAK,KAAK,CAAC,SAAS,GAAG,IAAI,CAAC;IACjE,KAAK,EAAE;QAAE,KAAK,EAAE,KAAK,CAAA;KAAE,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,oCAAoC,GAAG,IAAI,CACrD,mBAAmB,EACnB,SAAS,GAAG,aAAa,GAAG,YAAY,GAAG,SAAS,GAAG,cAAc,CACtE,GACC,IAAI,CACF,oBAAoB,EACpB,eAAe,GAAG,aAAa,GAAG,gBAAgB,GAAG,0BAA0B,CAChF,GAAG;IACF,cAAc,CAAC,EAAE,aAAa,CAAC;IAC/B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,MAAM,CAAC,EAAE,OAAO,CAAC;QACf,aAAa,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;KACrC,CAAC,CAAC;CACJ,CAAC;AA0IJ,MAAM,MAAM,yBAAyB,GAAG,OAAO,CAAC,oCAAoC,CAAC,CAAC;AAEtF,eAAO,MAAM,oBAAoB;YAAW,yBAAyB;;CAqBpE,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import { DefaultRules, Output, SingleASTNode, State } from 'simple-markdown';
|
|
3
|
+
import type { LocalMessage } from 'stream-chat';
|
|
3
4
|
import type { MessageContextValue } from '../../../../contexts/messageContext/MessageContext';
|
|
4
5
|
import type { Colors, MarkdownStyle } from '../../../../contexts/themeContext/utils/theme';
|
|
5
|
-
import type { MessageType } from '../../../MessageList/hooks/useMessageList';
|
|
6
6
|
type ReactOutput = Output<React.ReactNode>;
|
|
7
7
|
export declare const MarkdownReactiveScrollView: ({ children }: {
|
|
8
8
|
children: ReactNode;
|
|
@@ -10,7 +10,7 @@ export declare const MarkdownReactiveScrollView: ({ children }: {
|
|
|
10
10
|
export type MarkdownRules = Partial<DefaultRules>;
|
|
11
11
|
export type RenderTextParams = Partial<Pick<MessageContextValue, 'onLongPress' | 'onPress' | 'preventPress'>> & {
|
|
12
12
|
colors: typeof Colors;
|
|
13
|
-
message:
|
|
13
|
+
message: LocalMessage;
|
|
14
14
|
markdownRules?: MarkdownRules;
|
|
15
15
|
markdownStyles?: MarkdownStyle;
|
|
16
16
|
messageOverlay?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderText.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Message/MessageSimple/utils/renderText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAqB,SAAS,EAAwB,MAAM,OAAO,CAAC;AAgBlF,OAAO,EACL,YAAY,EAIZ,MAAM,EAGN,aAAa,EACb,KAAK,EACN,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"renderText.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Message/MessageSimple/utils/renderText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAqB,SAAS,EAAwB,MAAM,OAAO,CAAC;AAgBlF,OAAO,EACL,YAAY,EAIZ,MAAM,EAGN,aAAa,EACb,KAAK,EACN,MAAM,iBAAiB,CAAC;AAEzB,OAAO,KAAK,EAAE,YAAY,EAAgB,MAAM,aAAa,CAAC;AAI9D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oDAAoD,CAAC;AAC9F,OAAO,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,+CAA+C,CAAC;AAK3F,KAAK,WAAW,GAAG,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AAE3C,eAAO,MAAM,0BAA0B,GAAI,cAAc;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,sBAkD/E,CAAC;AAmEF,MAAM,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1
1
|
import type { MessageContextValue } from '../../../contexts/messageContext/MessageContext';
|
|
2
|
-
export declare const useCreateMessageContext: ({ actionsEnabled, alignment, channel, dismissOverlay, files, goToMessage, groupStyles, handleAction, handleReaction, handleToggleReaction, hasReactions, images, isEditedMessageOpen, isMessageAIGenerated, isMyMessage, lastGroupMessage, lastReceivedId, members, message, messageContentOrder, myMessageTheme, onLongPress, onlyEmojis, onOpenThread, onPress, onPressIn, otherAttachments, preventPress, reactions, setIsEditedMessageOpen, showAvatar, showMessageOverlay, showMessageStatus, threadList, videos, }: MessageContextValue) => MessageContextValue;
|
|
2
|
+
export declare const useCreateMessageContext: ({ actionsEnabled, alignment, channel, dismissOverlay, files, goToMessage, groupStyles, handleAction, handleReaction, handleToggleReaction, hasReactions, images, isEditedMessageOpen, isMessageAIGenerated, isMyMessage, lastGroupMessage, lastReceivedId, members, message, messageContentOrder, myMessageTheme, onLongPress, onlyEmojis, onOpenThread, onPress, onPressIn, otherAttachments, preventPress, reactions, readBy, setIsEditedMessageOpen, showAvatar, showMessageOverlay, showMessageStatus, threadList, videos, }: MessageContextValue) => MessageContextValue;
|
|
3
3
|
//# sourceMappingURL=useCreateMessageContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCreateMessageContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/hooks/useCreateMessageContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AAI3F,eAAO,MAAM,uBAAuB,GAAI,
|
|
1
|
+
{"version":3,"file":"useCreateMessageContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/hooks/useCreateMessageContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AAI3F,eAAO,MAAM,uBAAuB,GAAI,kgBAqCrC,mBAAmB,wBAwErB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMessageActionHandlers.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/hooks/useMessageActionHandlers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useMessageActionHandlers.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/hooks/useMessageActionHandlers.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AAC3F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAClF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AAC3F,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mDAAmD,CAAC;AAK9F,eAAO,MAAM,wBAAwB,GAAI,sIAUtC,IAAI,CACL,oBAAoB,EAClB,cAAc,GACd,eAAe,GACf,gBAAgB,GAChB,kBAAkB,GAClB,iBAAiB,GACjB,uBAAuB,GACvB,oBAAoB,CACvB,GACC,IAAI,CAAC,mBAAmB,EAAE,SAAS,GAAG,uBAAuB,CAAC,GAC9D,IAAI,CAAC,gBAAgB,EAAE,QAAQ,CAAC,GAChC,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC;;;;;;;;;;;yCA6Hc,MAAM;CA0CzD,CAAC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
import { LocalMessage } from 'stream-chat';
|
|
1
2
|
import type { ChannelContextValue } from '../../../contexts/channelContext/ChannelContext';
|
|
2
3
|
import type { ChatContextValue } from '../../../contexts/chatContext/ChatContext';
|
|
3
4
|
import type { MessageContextValue } from '../../../contexts/messageContext/MessageContext';
|
|
4
5
|
import type { MessagesContextValue } from '../../../contexts/messagesContext/MessagesContext';
|
|
5
6
|
import type { ThreadContextValue } from '../../../contexts/threadContext/ThreadContext';
|
|
6
7
|
import type { TranslationContextValue } from '../../../contexts/translationContext/TranslationContext';
|
|
7
|
-
import type { MessageType } from '../../MessageList/hooks/useMessageList';
|
|
8
8
|
import type { MessageActionType } from '../../MessageMenu/MessageActionListItem';
|
|
9
9
|
export type MessageActionsHookProps = Pick<MessagesContextValue, 'deleteMessage' | 'sendReaction' | 'handleBan' | 'handleCopy' | 'handleDelete' | 'handleEdit' | 'handleFlag' | 'handleQuotedReply' | 'handleMarkUnread' | 'handleMute' | 'handlePinMessage' | 'handleRetry' | 'handleReaction' | 'handleThreadReply' | 'removeMessage' | 'deleteReaction' | 'retrySendMessage' | 'setEditingState' | 'setQuotedMessageState' | 'selectReaction' | 'supportedReactions' | 'updateMessage'> & Pick<ChannelContextValue, 'channel' | 'enforceUniqueReaction'> & Pick<ChatContextValue, 'client'> & Pick<ThreadContextValue, 'openThread'> & Pick<MessageContextValue, 'dismissOverlay' | 'message'> & Pick<TranslationContextValue, 't'> & {
|
|
10
|
-
onThreadSelect?: (message:
|
|
10
|
+
onThreadSelect?: (message: LocalMessage) => void;
|
|
11
11
|
};
|
|
12
12
|
export declare const useMessageActions: ({ channel, client, deleteMessage: deleteMessageFromContext, deleteReaction, dismissOverlay, enforceUniqueReaction, handleBan, handleCopy, handleDelete, handleEdit, handleFlag, handleMarkUnread, handleMute, handlePinMessage, handleQuotedReply, handleReaction: handleReactionProp, handleRetry, handleThreadReply, message, onThreadSelect, openThread, retrySendMessage, selectReaction, sendReaction, setEditingState, setQuotedMessageState, supportedReactions, t, }: MessageActionsHookProps) => {
|
|
13
13
|
banUser: MessageActionType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMessageActions.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/hooks/useMessageActions.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useMessageActions.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/hooks/useMessageActions.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAI3C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AAC3F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAClF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AAC3F,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mDAAmD,CAAC;AAE9F,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yDAAyD,CAAC;AAmBvG,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAEjF,MAAM,MAAM,uBAAuB,GAAG,IAAI,CACxC,oBAAoB,EAClB,eAAe,GACf,cAAc,GACd,WAAW,GACX,YAAY,GACZ,cAAc,GACd,YAAY,GACZ,YAAY,GACZ,mBAAmB,GACnB,kBAAkB,GAClB,YAAY,GACZ,kBAAkB,GAClB,aAAa,GACb,gBAAgB,GAChB,mBAAmB,GACnB,eAAe,GACf,gBAAgB,GAChB,kBAAkB,GAClB,iBAAiB,GACjB,uBAAuB,GACvB,gBAAgB,GAChB,oBAAoB,GACpB,eAAe,CAClB,GACC,IAAI,CAAC,mBAAmB,EAAE,SAAS,GAAG,uBAAuB,CAAC,GAC9D,IAAI,CAAC,gBAAgB,EAAE,QAAQ,CAAC,GAChC,IAAI,CAAC,kBAAkB,EAAE,YAAY,CAAC,GACtC,IAAI,CAAC,mBAAmB,EAAE,gBAAgB,GAAG,SAAS,CAAC,GACvD,IAAI,CAAC,uBAAuB,EAAE,GAAG,CAAC,GAAG;IACnC,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,YAAY,KAAK,IAAI,CAAC;CAClD,CAAC;AAEJ,eAAO,MAAM,iBAAiB,GAAI,8cA6B/B,uBAAuB;;;;;;;;;;;;;;CA+OzB,CAAC"}
|
|
@@ -2,15 +2,13 @@ import React from 'react';
|
|
|
2
2
|
import { ChatContextValue } from '../../contexts';
|
|
3
3
|
import { MessageInputContextValue } from '../../contexts/messageInputContext/MessageInputContext';
|
|
4
4
|
import { MessagesContextValue } from '../../contexts/messagesContext/MessagesContext';
|
|
5
|
-
type
|
|
6
|
-
export type FileUploadPreviewProps = Partial<FileUploadPreviewPropsWithContext>;
|
|
5
|
+
export type FileUploadPreviewProps = Partial<Pick<MessageInputContextValue, 'fileUploads' | 'removeFile' | 'uploadFile' | 'setFileUploads' | 'AudioAttachmentUploadPreview'>> & Partial<Pick<MessagesContextValue, 'FileAttachmentIcon'>> & Partial<Pick<ChatContextValue, 'enableOfflineSupport'>>;
|
|
7
6
|
/**
|
|
8
7
|
* FileUploadPreview
|
|
9
8
|
* UI Component to preview the files set for upload
|
|
10
9
|
*/
|
|
11
10
|
export declare const FileUploadPreview: {
|
|
12
|
-
(props: FileUploadPreviewProps): React.JSX.Element;
|
|
11
|
+
(props: FileUploadPreviewProps): React.JSX.Element | null;
|
|
13
12
|
displayName: string;
|
|
14
13
|
};
|
|
15
|
-
export {};
|
|
16
14
|
//# sourceMappingURL=FileUploadPreview.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileUploadPreview.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageInput/FileUploadPreview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAK3D,OAAO,EAAE,gBAAgB,EAAkB,MAAM,gBAAgB,CAAC;AAClE,OAAO,EACL,wBAAwB,EAEzB,MAAM,wDAAwD,CAAC;AAChE,OAAO,EACL,oBAAoB,EAErB,MAAM,gDAAgD,CAAC;AAgHxD,
|
|
1
|
+
{"version":3,"file":"FileUploadPreview.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageInput/FileUploadPreview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAK3D,OAAO,EAAE,gBAAgB,EAAkB,MAAM,gBAAgB,CAAC;AAClE,OAAO,EACL,wBAAwB,EAEzB,MAAM,wDAAwD,CAAC;AAChE,OAAO,EACL,oBAAoB,EAErB,MAAM,gDAAgD,CAAC;AAgHxD,MAAM,MAAM,sBAAsB,GAAG,OAAO,CAC1C,IAAI,CACF,wBAAwB,EACxB,aAAa,GAAG,YAAY,GAAG,YAAY,GAAG,gBAAgB,GAAG,8BAA8B,CAChG,CACF,GACC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,oBAAoB,CAAC,CAAC,GACzD,OAAO,CAAC,IAAI,CAAC,gBAAgB,EAAE,sBAAsB,CAAC,CAAC,CAAC;AAE1D;;;GAGG;AACH,eAAO,MAAM,iBAAiB;YAAW,sBAAsB;;CA0M9D,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { MessageInputContextValue } from '../../contexts/messageInputContext/MessageInputContext';
|
|
3
3
|
export type InputButtonsProps = Partial<InputButtonsWithContextProps>;
|
|
4
|
-
export type InputButtonsWithContextProps = Pick<MessageInputContextValue, 'AttachButton' | 'CommandsButton' | 'giphyActive' | 'hasCameraPicker' | 'hasCommands' | 'hasFilePicker' | 'hasImagePicker' | 'MoreOptionsButton' | 'openCommandsPicker' | 'selectedPicker' | 'setShowMoreOptions' | 'showMoreOptions' | '
|
|
4
|
+
export type InputButtonsWithContextProps = Pick<MessageInputContextValue, 'AttachButton' | 'CommandsButton' | 'giphyActive' | 'hasCameraPicker' | 'hasCommands' | 'hasFilePicker' | 'hasImagePicker' | 'hasText' | 'MoreOptionsButton' | 'openCommandsPicker' | 'selectedPicker' | 'setShowMoreOptions' | 'showMoreOptions' | 'toggleAttachmentPicker'>;
|
|
5
5
|
export declare const InputButtonsWithContext: (props: InputButtonsWithContextProps) => React.JSX.Element | null;
|
|
6
6
|
export declare const InputButtons: (props: InputButtonsProps) => React.JSX.Element;
|
|
7
7
|
//# sourceMappingURL=InputButtons.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputButtons.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageInput/InputButtons.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"InputButtons.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageInput/InputButtons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAG3C,OAAO,EACL,wBAAwB,EAEzB,MAAM,wDAAwD,CAAC;AAQhE,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAAC;AAEtE,MAAM,MAAM,4BAA4B,GAAG,IAAI,CAC7C,wBAAwB,EACtB,cAAc,GACd,gBAAgB,GAChB,aAAa,GACb,iBAAiB,GACjB,aAAa,GACb,eAAe,GACf,gBAAgB,GAChB,SAAS,GACT,mBAAmB,GACnB,oBAAoB,GACpB,gBAAgB,GAChB,oBAAoB,GACpB,iBAAiB,GACjB,wBAAwB,CAC3B,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,OAAO,4BAA4B,6BAkD1E,CAAC;AAoEF,eAAO,MAAM,YAAY,GAAI,OAAO,iBAAiB,sBAuCpD,CAAC"}
|
|
@@ -7,7 +7,7 @@ import { MessagesContextValue } from '../../contexts/messagesContext/MessagesCon
|
|
|
7
7
|
import { SuggestionsContextValue } from '../../contexts/suggestionsContext/SuggestionsContext';
|
|
8
8
|
import { ThreadContextValue } from '../../contexts/threadContext/ThreadContext';
|
|
9
9
|
import { TranslationContextValue } from '../../contexts/translationContext/TranslationContext';
|
|
10
|
-
type MessageInputPropsWithContext = Pick<AttachmentPickerContextValue, 'AttachmentPickerSelectionBar'> & Pick<ChatContextValue, 'isOnline'> & Pick<ChannelContextValue, 'members' | 'threadList' | 'watchers'> & Pick<MessageInputContextValue, 'additionalTextInputProps' | 'asyncIds' | 'audioRecordingEnabled' | 'asyncMessagesLockDistance' | 'asyncMessagesMinimumPressDuration' | 'asyncMessagesSlideToCancelDistance' | 'asyncMessagesMultiSendEnabled' | 'asyncUploads' | 'AudioRecorder' | 'AudioRecordingInProgress' | 'AudioRecordingLockIndicator' | 'AudioRecordingPreview' | 'cooldownEndsAt' | 'CooldownTimer' | 'clearEditingState' | 'clearQuotedMessageState' | 'closeAttachmentPicker' | 'editing' | 'FileUploadPreview' | 'fileUploads' | 'giphyActive' | 'ImageUploadPreview' | 'imageUploads' | 'Input' | 'inputBoxRef' | 'InputButtons' | 'InputEditingStateHeader' | 'InputGiphySearch' | 'InputReplyStateHeader' | 'isValidMessage' | 'maxNumberOfFiles' | 'mentionedUsers' | 'numberOfUploads' | 'quotedMessage' | 'resetInput' | 'SendButton' | 'sending' | 'sendMessageAsync' | 'setShowMoreOptions' | 'setGiphyActive' | 'showMoreOptions' | 'ShowThreadMessageInChannelButton' | 'StartAudioRecordingButton' | 'removeFile' | 'removeImage' | 'text' | 'uploadNewFile' | 'uploadNewImage' | 'openPollCreationDialog' | 'closePollCreationDialog' | 'showPollCreationDialog' | 'sendMessage' | 'CreatePollContent' | 'StopMessageStreamingButton'> & Pick<MessagesContextValue, 'Reply'> & Pick<SuggestionsContextValue, 'AutoCompleteSuggestionHeader' | 'AutoCompleteSuggestionItem' | 'AutoCompleteSuggestionList' | 'suggestions' | 'triggerType'> & Pick<ThreadContextValue, 'thread'> & Pick<TranslationContextValue, 't'>;
|
|
10
|
+
type MessageInputPropsWithContext = Pick<AttachmentPickerContextValue, 'AttachmentPickerSelectionBar'> & Pick<ChatContextValue, 'isOnline'> & Pick<ChannelContextValue, 'channel' | 'members' | 'threadList' | 'watchers'> & Pick<MessageInputContextValue, 'additionalTextInputProps' | 'asyncIds' | 'audioRecordingEnabled' | 'asyncMessagesLockDistance' | 'asyncMessagesMinimumPressDuration' | 'asyncMessagesSlideToCancelDistance' | 'asyncMessagesMultiSendEnabled' | 'asyncUploads' | 'AudioRecorder' | 'AudioRecordingInProgress' | 'AudioRecordingLockIndicator' | 'AudioRecordingPreview' | 'cooldownEndsAt' | 'CooldownTimer' | 'clearEditingState' | 'clearQuotedMessageState' | 'closeAttachmentPicker' | 'compressImageQuality' | 'editing' | 'FileUploadPreview' | 'fileUploads' | 'giphyActive' | 'ImageUploadPreview' | 'imageUploads' | 'Input' | 'inputBoxRef' | 'InputButtons' | 'InputEditingStateHeader' | 'InputGiphySearch' | 'InputReplyStateHeader' | 'isValidMessage' | 'maxNumberOfFiles' | 'mentionedUsers' | 'numberOfUploads' | 'quotedMessage' | 'resetInput' | 'SendButton' | 'sending' | 'sendMessageAsync' | 'setShowMoreOptions' | 'setGiphyActive' | 'showMoreOptions' | 'ShowThreadMessageInChannelButton' | 'StartAudioRecordingButton' | 'removeFile' | 'removeImage' | 'text' | 'uploadNewFile' | 'uploadNewImage' | 'openPollCreationDialog' | 'closePollCreationDialog' | 'showPollCreationDialog' | 'sendMessage' | 'CreatePollContent' | 'StopMessageStreamingButton'> & Pick<MessagesContextValue, 'Reply'> & Pick<SuggestionsContextValue, 'AutoCompleteSuggestionHeader' | 'AutoCompleteSuggestionItem' | 'AutoCompleteSuggestionList' | 'suggestions' | 'triggerType'> & Pick<ThreadContextValue, 'thread'> & Pick<TranslationContextValue, 't'>;
|
|
11
11
|
export type MessageInputProps = Partial<MessageInputPropsWithContext>;
|
|
12
12
|
/**
|
|
13
13
|
* UI Component for message input
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageInput.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageInput/MessageInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoD,MAAM,OAAO,CAAC;AA8BzE,OAAO,EAAE,gBAAgB,EAA6C,MAAM,gBAAgB,CAAC;AAC7F,OAAO,EACL,4BAA4B,EAE7B,MAAM,gEAAgE,CAAC;AACxE,OAAO,EACL,mBAAmB,EAEpB,MAAM,8CAA8C,CAAC;AACtD,OAAO,EACL,wBAAwB,EAEzB,MAAM,wDAAwD,CAAC;AAChE,OAAO,EACL,oBAAoB,EAErB,MAAM,gDAAgD,CAAC;AACxD,OAAO,EACL,uBAAuB,EAExB,MAAM,sDAAsD,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAoB,MAAM,4CAA4C,CAAC;AAClG,OAAO,EACL,uBAAuB,EAExB,MAAM,sDAAsD,CAAC;AAkD9D,KAAK,4BAA4B,GAAG,IAAI,CACtC,4BAA4B,EAC5B,8BAA8B,CAC/B,GACC,IAAI,CAAC,gBAAgB,EAAE,UAAU,CAAC,GAClC,IAAI,CAAC,mBAAmB,EAAE,SAAS,GAAG,YAAY,GAAG,UAAU,CAAC,
|
|
1
|
+
{"version":3,"file":"MessageInput.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageInput/MessageInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoD,MAAM,OAAO,CAAC;AA8BzE,OAAO,EAAE,gBAAgB,EAA6C,MAAM,gBAAgB,CAAC;AAC7F,OAAO,EACL,4BAA4B,EAE7B,MAAM,gEAAgE,CAAC;AACxE,OAAO,EACL,mBAAmB,EAEpB,MAAM,8CAA8C,CAAC;AACtD,OAAO,EACL,wBAAwB,EAEzB,MAAM,wDAAwD,CAAC;AAChE,OAAO,EACL,oBAAoB,EAErB,MAAM,gDAAgD,CAAC;AACxD,OAAO,EACL,uBAAuB,EAExB,MAAM,sDAAsD,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAoB,MAAM,4CAA4C,CAAC;AAClG,OAAO,EACL,uBAAuB,EAExB,MAAM,sDAAsD,CAAC;AAkD9D,KAAK,4BAA4B,GAAG,IAAI,CACtC,4BAA4B,EAC5B,8BAA8B,CAC/B,GACC,IAAI,CAAC,gBAAgB,EAAE,UAAU,CAAC,GAClC,IAAI,CAAC,mBAAmB,EAAE,SAAS,GAAG,SAAS,GAAG,YAAY,GAAG,UAAU,CAAC,GAC5E,IAAI,CACF,wBAAwB,EACtB,0BAA0B,GAC1B,UAAU,GACV,uBAAuB,GACvB,2BAA2B,GAC3B,mCAAmC,GACnC,oCAAoC,GACpC,+BAA+B,GAC/B,cAAc,GACd,eAAe,GACf,0BAA0B,GAC1B,6BAA6B,GAC7B,uBAAuB,GACvB,gBAAgB,GAChB,eAAe,GACf,mBAAmB,GACnB,yBAAyB,GACzB,uBAAuB,GACvB,sBAAsB,GACtB,SAAS,GACT,mBAAmB,GACnB,aAAa,GACb,aAAa,GACb,oBAAoB,GACpB,cAAc,GACd,OAAO,GACP,aAAa,GACb,cAAc,GACd,yBAAyB,GACzB,kBAAkB,GAClB,uBAAuB,GACvB,gBAAgB,GAChB,kBAAkB,GAClB,gBAAgB,GAChB,iBAAiB,GACjB,eAAe,GACf,YAAY,GACZ,YAAY,GACZ,SAAS,GACT,kBAAkB,GAClB,oBAAoB,GACpB,gBAAgB,GAChB,iBAAiB,GACjB,kCAAkC,GAClC,2BAA2B,GAC3B,YAAY,GACZ,aAAa,GACb,MAAM,GACN,eAAe,GACf,gBAAgB,GAChB,wBAAwB,GACxB,yBAAyB,GACzB,wBAAwB,GACxB,aAAa,GACb,mBAAmB,GACnB,4BAA4B,CAC/B,GACD,IAAI,CAAC,oBAAoB,EAAE,OAAO,CAAC,GACnC,IAAI,CACF,uBAAuB,EACrB,8BAA8B,GAC9B,4BAA4B,GAC5B,4BAA4B,GAC5B,aAAa,GACb,aAAa,CAChB,GACD,IAAI,CAAC,kBAAkB,EAAE,QAAQ,CAAC,GAClC,IAAI,CAAC,uBAAuB,EAAE,GAAG,CAAC,CAAC;AAw7BrC,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAAC;AAEtE;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY;YAAW,iBAAiB;;CAuKpD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAudioController.d.ts","sourceRoot":"","sources":["../../../../../src/components/MessageInput/hooks/useAudioController.tsx"],"names":[],"mappings":"AAKA,OAAO,EACL,wBAAwB,EAKzB,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"useAudioController.d.ts","sourceRoot":"","sources":["../../../../../src/components/MessageInput/hooks/useAudioController.tsx"],"names":[],"mappings":"AAKA,OAAO,EACL,wBAAwB,EAKzB,MAAM,iBAAiB,CAAC;AAMzB,MAAM,MAAM,qBAAqB,GAAG,MAAM,GAAG,WAAW,GAAG,SAAS,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;6CAuOyB,OAAO;;CAuD9D,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlatListProps, FlatList as FlatListType, ScrollViewProps } from 'react-native';
|
|
3
|
-
import {
|
|
3
|
+
import type { LocalMessage } from 'stream-chat';
|
|
4
4
|
import { AttachmentPickerContextValue } from '../../contexts/attachmentPickerContext/AttachmentPickerContext';
|
|
5
5
|
import { ChannelContextValue } from '../../contexts/channelContext/ChannelContext';
|
|
6
6
|
import { ChatContextValue } from '../../contexts/chatContext/ChatContext';
|
|
@@ -9,7 +9,7 @@ import { MessagesContextValue } from '../../contexts/messagesContext/MessagesCon
|
|
|
9
9
|
import { OverlayContextValue } from '../../contexts/overlayContext/OverlayContext';
|
|
10
10
|
import { PaginatedMessageListContextValue } from '../../contexts/paginatedMessageListContext/PaginatedMessageListContext';
|
|
11
11
|
import { ThreadContextValue } from '../../contexts/threadContext/ThreadContext';
|
|
12
|
-
type MessageListPropsWithContext = Pick<AttachmentPickerContextValue, 'closePicker' | 'selectedPicker' | 'setSelectedPicker'> & Pick<ChannelContextValue, 'channel' | 'channelUnreadState' | 'disabled' | 'EmptyStateIndicator' | 'hideStickyDateHeader' | 'highlightedMessageId' | 'loadChannelAroundMessage' | 'loading' | 'LoadingIndicator' | 'markRead' | 'NetworkDownIndicator' | 'reloadChannel' | 'scrollToFirstUnreadThreshold' | 'setTargetedMessage' | 'StickyHeader' | 'targetedMessage' | 'threadList'> & Pick<ChatContextValue, 'client'> & Pick<ImageGalleryContextValue, 'setMessages'> & Pick<PaginatedMessageListContextValue, 'loadMore' | 'loadMoreRecent'> & Pick<OverlayContextValue, 'overlay'> & Pick<MessagesContextValue, 'DateHeader' | 'disableTypingIndicator' | 'FlatList' | 'InlineDateSeparator' | 'InlineUnreadIndicator' | 'legacyImageViewerSwipeBehaviour' | 'Message' | 'ScrollToBottomButton' | 'MessageSystem' | 'myMessageTheme' | 'shouldShowUnreadUnderlay' | 'TypingIndicator' | 'TypingIndicatorContainer' | 'UnreadMessagesNotification'> & Pick<ThreadContextValue, 'loadMoreRecentThread' | 'loadMoreThread' | 'thread' | 'threadInstance'> & {
|
|
12
|
+
type MessageListPropsWithContext = Pick<AttachmentPickerContextValue, 'closePicker' | 'selectedPicker' | 'setSelectedPicker'> & Pick<ChannelContextValue, 'channel' | 'channelUnreadState' | 'disabled' | 'EmptyStateIndicator' | 'hideStickyDateHeader' | 'highlightedMessageId' | 'loadChannelAroundMessage' | 'loading' | 'LoadingIndicator' | 'markRead' | 'NetworkDownIndicator' | 'reloadChannel' | 'scrollToFirstUnreadThreshold' | 'setChannelUnreadState' | 'setTargetedMessage' | 'StickyHeader' | 'targetedMessage' | 'threadList'> & Pick<ChatContextValue, 'client'> & Pick<ImageGalleryContextValue, 'setMessages'> & Pick<PaginatedMessageListContextValue, 'loadMore' | 'loadMoreRecent'> & Pick<OverlayContextValue, 'overlay'> & Pick<MessagesContextValue, 'DateHeader' | 'disableTypingIndicator' | 'FlatList' | 'InlineDateSeparator' | 'InlineUnreadIndicator' | 'legacyImageViewerSwipeBehaviour' | 'Message' | 'ScrollToBottomButton' | 'MessageSystem' | 'myMessageTheme' | 'shouldShowUnreadUnderlay' | 'TypingIndicator' | 'TypingIndicatorContainer' | 'UnreadMessagesNotification'> & Pick<ThreadContextValue, 'loadMoreRecentThread' | 'loadMoreThread' | 'thread' | 'threadInstance'> & {
|
|
13
13
|
/**
|
|
14
14
|
* Besides existing (default) UX behavior of underlying FlatList of MessageList component, if you want
|
|
15
15
|
* to attach some additional props to underlying FlatList, you can add it to following prop.
|
|
@@ -24,7 +24,7 @@ type MessageListPropsWithContext = Pick<AttachmentPickerContextValue, 'closePick
|
|
|
24
24
|
* additionalFlatListProps={{ bounces: true, keyboardDismissMode: true }} />
|
|
25
25
|
* ```
|
|
26
26
|
*/
|
|
27
|
-
additionalFlatListProps?: Partial<FlatListProps<
|
|
27
|
+
additionalFlatListProps?: Partial<FlatListProps<LocalMessage>>;
|
|
28
28
|
/**
|
|
29
29
|
* UI component for footer of message list. By default message list will use `InlineLoadingMoreIndicator`
|
|
30
30
|
* as FooterComponent. If you want to implement your own inline loading indicator, you can access `loadingMore`
|
|
@@ -66,7 +66,7 @@ type MessageListPropsWithContext = Pick<AttachmentPickerContextValue, 'closePick
|
|
|
66
66
|
* }}
|
|
67
67
|
* ```
|
|
68
68
|
*/
|
|
69
|
-
setFlatListRef?: (ref: FlatListType<
|
|
69
|
+
setFlatListRef?: (ref: FlatListType<LocalMessage> | null) => void;
|
|
70
70
|
};
|
|
71
71
|
export type MessageListProps = Partial<MessageListPropsWithContext>;
|
|
72
72
|
export declare const MessageList: (props: MessageListProps) => React.JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageList.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageList/MessageList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AACjF,OAAO,EACL,aAAa,EACb,QAAQ,IAAI,YAAY,EAExB,eAAe,EAKhB,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"MessageList.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageList/MessageList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AACjF,OAAO,EACL,aAAa,EACb,QAAQ,IAAI,YAAY,EAExB,eAAe,EAKhB,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAkB,YAAY,EAAmB,MAAM,aAAa,CAAC;AAUjF,OAAO,EACL,4BAA4B,EAE7B,MAAM,gEAAgE,CAAC;AACxE,OAAO,EACL,mBAAmB,EAEpB,MAAM,8CAA8C,CAAC;AACtD,OAAO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AE,OAAO,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC,CAAC;IAC/D;;;;;;;OAOG;IACH,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACtC;;;;;;;OAOG;IACH,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACtC,gEAAgE;IAChE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,4CAA4C;IAC5C,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE,eAAe,CAAC,UAAU,CAAC,CAAC;IAC3C;;;;OAIG;IACH,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,kBAAkB,CAAC,QAAQ,CAAC,KAAK,IAAI,CAAC;IACjE;;;;;;;;;;OAUG;IACH,cAAc,CAAC,EAAE,CAAC,GAAG,EAAE,YAAY,CAAC,YAAY,CAAC,GAAG,IAAI,KAAK,IAAI,CAAC;CACnE,CAAC;AAgiCJ,MAAM,MAAM,gBAAgB,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAC;AAEpE,eAAO,MAAM,WAAW,GAAI,OAAO,gBAAgB,sBAsGlD,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
-
import
|
|
3
|
+
import { LocalMessage } from 'stream-chat';
|
|
4
4
|
export type MessageSystemProps = {
|
|
5
5
|
/** Current [message object](https://getstream.io/chat/docs/#message_format) */
|
|
6
|
-
message:
|
|
6
|
+
message: LocalMessage;
|
|
7
7
|
/**
|
|
8
8
|
* Additional styles for the system message container.
|
|
9
9
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageSystem.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageList/MessageSystem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,SAAS,EAA0B,SAAS,EAAE,MAAM,cAAc,CAAC;AAE5E,OAAO,
|
|
1
|
+
{"version":3,"file":"MessageSystem.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageList/MessageSystem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,SAAS,EAA0B,SAAS,EAAE,MAAM,cAAc,CAAC;AAE5E,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAO3C,MAAM,MAAM,kBAAkB,GAAG;IAC/B,+EAA+E;IAC/E,OAAO,EAAE,YAAY,CAAC;IACtB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAI9B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,aAAa;YAAW,kBAAkB;;CA0CtD,CAAC"}
|
|
@@ -1,22 +1,27 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { LocalMessage } from 'stream-chat';
|
|
2
2
|
import { DeletedMessagesVisibilityType } from '../../../contexts/messagesContext/MessagesContext';
|
|
3
|
+
import { DateSeparators } from '../utils/getDateSeparators';
|
|
3
4
|
export type UseMessageListParams = {
|
|
4
5
|
deletedMessagesVisibilityType?: DeletedMessagesVisibilityType;
|
|
5
6
|
noGroupByUser?: boolean;
|
|
6
7
|
threadList?: boolean;
|
|
7
8
|
};
|
|
8
9
|
export type GroupType = string;
|
|
9
|
-
export type
|
|
10
|
-
|
|
11
|
-
readBy: boolean | number;
|
|
12
|
-
dateSeparator?: Date;
|
|
10
|
+
export type MessageGroupStyles = {
|
|
11
|
+
[key: string]: string[];
|
|
13
12
|
};
|
|
14
|
-
export
|
|
15
|
-
|
|
13
|
+
export declare const shouldIncludeMessageInList: (message: LocalMessage, options: {
|
|
14
|
+
deletedMessagesVisibilityType?: DeletedMessagesVisibilityType;
|
|
15
|
+
userId?: string;
|
|
16
|
+
}) => boolean;
|
|
16
17
|
export declare const useMessageList: (params: UseMessageListParams) => {
|
|
18
|
+
/** Date separators */
|
|
19
|
+
dateSeparatorsRef: import("react").RefObject<DateSeparators>;
|
|
20
|
+
/** Message group styles */
|
|
21
|
+
messageGroupStylesRef: import("react").RefObject<MessageGroupStyles>;
|
|
17
22
|
/** Messages enriched with dates/readby/groups and also reversed in order */
|
|
18
|
-
processedMessageList:
|
|
23
|
+
processedMessageList: LocalMessage[];
|
|
19
24
|
/** Raw messages from the channel state */
|
|
20
|
-
rawMessageList:
|
|
25
|
+
rawMessageList: LocalMessage[];
|
|
21
26
|
};
|
|
22
27
|
//# sourceMappingURL=useMessageList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMessageList.d.ts","sourceRoot":"","sources":["../../../../../src/components/MessageList/hooks/useMessageList.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useMessageList.d.ts","sourceRoot":"","sources":["../../../../../src/components/MessageList/hooks/useMessageList.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAIhD,OAAO,EACL,6BAA6B,EAE9B,MAAM,mDAAmD,CAAC;AAI3D,OAAO,EAAE,cAAc,EAAqB,MAAM,4BAA4B,CAAC;AAG/E,MAAM,MAAM,oBAAoB,GAAG;IACjC,6BAA6B,CAAC,EAAE,6BAA6B,CAAC;IAC9D,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC;AAE/B,MAAM,MAAM,kBAAkB,GAAG;IAC/B,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,0BAA0B,GACrC,SAAS,YAAY,EACrB,SAAS;IAAE,6BAA6B,CAAC,EAAE,6BAA6B,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,YAiB5F,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,QAAQ,oBAAoB;IAgEvD,sBAAsB;;IAEtB,2BAA2B;;IAE3B,4EAA4E;;IAE5E,0CAA0C;;CAG7C,CAAC"}
|
package/lib/typescript/components/MessageList/hooks/useShouldScrollToRecentOnNewOwnMessage.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare function useShouldScrollToRecentOnNewOwnMessage(rawMessageList:
|
|
1
|
+
import type { LocalMessage } from 'stream-chat';
|
|
2
|
+
export declare function useShouldScrollToRecentOnNewOwnMessage(rawMessageList: LocalMessage[], currentUserId?: string): import("react").RefObject<() => boolean>;
|
|
3
3
|
//# sourceMappingURL=useShouldScrollToRecentOnNewOwnMessage.d.ts.map
|
package/lib/typescript/components/MessageList/hooks/useShouldScrollToRecentOnNewOwnMessage.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useShouldScrollToRecentOnNewOwnMessage.d.ts","sourceRoot":"","sources":["../../../../../src/components/MessageList/hooks/useShouldScrollToRecentOnNewOwnMessage.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"useShouldScrollToRecentOnNewOwnMessage.d.ts","sourceRoot":"","sources":["../../../../../src/components/MessageList/hooks/useShouldScrollToRecentOnNewOwnMessage.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,wBAAgB,sCAAsC,CACpD,cAAc,EAAE,YAAY,EAAE,EAC9B,aAAa,CAAC,EAAE,MAAM,4CAoCvB"}
|