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,6 +1,6 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import { FlatList as DefaultFlatList, StyleProp, ViewStyle } from 'react-native';
|
|
3
|
-
import type {
|
|
3
|
+
import type { File } from './types/types';
|
|
4
4
|
type CompressImage = ({ compressImageQuality, height, uri, width, }: {
|
|
5
5
|
compressImageQuality: number;
|
|
6
6
|
height: number;
|
|
@@ -19,9 +19,7 @@ type GetPhotos = ({ after, first }: {
|
|
|
19
19
|
first: number;
|
|
20
20
|
after?: string;
|
|
21
21
|
}) => Promise<{
|
|
22
|
-
assets:
|
|
23
|
-
source: 'picker';
|
|
24
|
-
}>;
|
|
22
|
+
assets: File[];
|
|
25
23
|
endCursor: string;
|
|
26
24
|
hasNextPage: boolean;
|
|
27
25
|
iOSLimited: boolean;
|
|
@@ -34,9 +32,7 @@ type PickDocument = ({ maxNumberOfFiles }: {
|
|
|
34
32
|
}> | never;
|
|
35
33
|
type PickImageAssetType = {
|
|
36
34
|
askToOpenSettings?: boolean;
|
|
37
|
-
assets?:
|
|
38
|
-
source: 'picker';
|
|
39
|
-
}>;
|
|
35
|
+
assets?: File[];
|
|
40
36
|
cancelled?: boolean;
|
|
41
37
|
};
|
|
42
38
|
type PickImage = () => Promise<PickImageAssetType> | never;
|
|
@@ -51,8 +47,7 @@ type ShareOptions = {
|
|
|
51
47
|
url?: string;
|
|
52
48
|
};
|
|
53
49
|
type ShareImage = (options: ShareOptions) => Promise<boolean> | never;
|
|
54
|
-
type
|
|
55
|
-
source: 'camera';
|
|
50
|
+
type TakePhotoFileType = File & {
|
|
56
51
|
askToOpenSettings?: boolean;
|
|
57
52
|
cancelled?: boolean;
|
|
58
53
|
};
|
|
@@ -60,7 +55,7 @@ export type MediaTypes = 'image' | 'video' | 'mixed';
|
|
|
60
55
|
type TakePhoto = (options: {
|
|
61
56
|
compressImageQuality?: number;
|
|
62
57
|
mediaType?: MediaTypes;
|
|
63
|
-
}) => Promise<
|
|
58
|
+
}) => Promise<TakePhotoFileType> | never;
|
|
64
59
|
type HapticFeedbackMethod = 'impactHeavy' | 'impactLight' | 'impactMedium' | 'notificationError' | 'notificationSuccess' | 'notificationWarning' | 'selection';
|
|
65
60
|
type TriggerHaptic = (method: HapticFeedbackMethod) => void | never;
|
|
66
61
|
export type PlaybackStatus = {
|
|
@@ -78,9 +73,11 @@ export type PlaybackStatus = {
|
|
|
78
73
|
positionMillis: number;
|
|
79
74
|
shouldPlay: boolean;
|
|
80
75
|
};
|
|
76
|
+
export type PitchCorrectionQuality = 'low' | 'medium' | 'high';
|
|
81
77
|
export type AVPlaybackStatusToSet = {
|
|
82
78
|
isLooping: boolean;
|
|
83
79
|
isMuted: boolean;
|
|
80
|
+
pitchCorrectionQuality: PitchCorrectionQuality;
|
|
84
81
|
positionMillis: number;
|
|
85
82
|
progressUpdateIntervalMillis: number;
|
|
86
83
|
rate: number;
|
|
@@ -125,7 +122,7 @@ export type SoundReturnType = {
|
|
|
125
122
|
seek?: (progress: number, tolerance?: number) => void;
|
|
126
123
|
setPositionAsync?: (millis: number) => void;
|
|
127
124
|
setProgressUpdateIntervalAsync?: (progressUpdateIntervalMillis: number) => void;
|
|
128
|
-
setRateAsync?: (rate: number) => void;
|
|
125
|
+
setRateAsync?: (rate: number, shouldCorrectPitch: boolean, pitchCorrectionQuality?: PitchCorrectionQuality) => void;
|
|
129
126
|
soundRef?: React.RefObject<SoundReturnType>;
|
|
130
127
|
stopAsync?: () => void;
|
|
131
128
|
style?: StyleProp<ViewStyle>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"native.d.ts","sourceRoot":"","sources":["../../src/native.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,QAAQ,IAAI,eAAe,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEjF,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"native.d.ts","sourceRoot":"","sources":["../../src/native.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,QAAQ,IAAI,eAAe,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEjF,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAO1C,KAAK,aAAa,GAAG,CAAC,EACpB,oBAAoB,EACpB,MAAM,EACN,GAAG,EACH,KAAK,GACN,EAAE;IACD,oBAAoB,EAAE,MAAM,CAAC;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf,KAAK,OAAO,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC;AAE9B,KAAK,UAAU,GAAG,CAAC,EAAE,GAAG,EAAE,EAAE;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,KAAK,OAAO,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC;AAEzE,KAAK,gBAAgB,GAAG,CAAC,YAAY,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,GAAG,KAAK,CAAC;AAEtF,KAAK,6BAA6B,GAAG,CAAC,QAAQ,EAAE,MAAM,IAAI,KAAK;IAAE,WAAW,EAAE,MAAM,IAAI,CAAA;CAAE,CAAC;AAE3F,KAAK,4BAA4B,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;AAEx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AAe,GACf,YAAY,GACZ,kBAAkB,GAClB,WAAW,GACX,8BAA8B,GAC9B,sCAAsC,GACtC,cAAc,GACd,WAAW,GACX,UAAU,GACV,oBAAoB,GACpB,YAAY,GACZ,WAAW,GACX,eAAe,CAClB,CAoBJ,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,UAAU,QAAQ,SA+ExD,CAAC;AAEF,eAAO,MAAM,sBAAsB,eAAmC,CAAC;AACvE,eAAO,MAAM,yBAAyB,eAAsC,CAAC;AAC7E,eAAO,MAAM,oBAAoB,eAA4C,CAAC;AAC9E,eAAO,MAAM,sBAAsB,eAA+B,CAAC;AACnE,eAAO,MAAM,yBAAyB,eAAuC,CAAC;AAC9E,eAAO,MAAM,qBAAqB,eAAoC,CAAC;AACvE,eAAO,MAAM,qBAAqB,eAAiE,CAAC;AACpG,eAAO,MAAM,wBAAwB,eAA+C,CAAC;AACrF,eAAO,MAAM,uBAAuB,eACuC,CAAC;AAC5E,eAAO,MAAM,4BAA4B,eAIN,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { LocalMessage, MessageResponse, ReactionResponse } from 'stream-chat';
|
|
2
2
|
import type { PreparedQueries } from '../types';
|
|
3
3
|
export declare const insertReaction: ({ flush, message, reaction, }: {
|
|
4
|
-
message: MessageResponse |
|
|
4
|
+
message: MessageResponse | LocalMessage;
|
|
5
5
|
reaction: ReactionResponse;
|
|
6
6
|
flush?: boolean;
|
|
7
7
|
}) => Promise<PreparedQueries[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"insertReaction.d.ts","sourceRoot":"","sources":["../../../../src/store/apis/insertReaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"insertReaction.d.ts","sourceRoot":"","sources":["../../../../src/store/apis/insertReaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAMnF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEhD,eAAO,MAAM,cAAc,GAAU,+BAIlC;IACD,OAAO,EAAE,eAAe,GAAG,YAAY,CAAC;IACxC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,+BA6BA,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { LocalMessage, MessageResponse } from 'stream-chat';
|
|
2
2
|
import type { PreparedQueries } from '../types';
|
|
3
3
|
export declare const updateMessage: ({ flush, message, }: {
|
|
4
|
-
message: MessageResponse |
|
|
4
|
+
message: MessageResponse | LocalMessage;
|
|
5
5
|
flush?: boolean;
|
|
6
6
|
}) => Promise<PreparedQueries[]>;
|
|
7
7
|
//# sourceMappingURL=updateMessage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateMessage.d.ts","sourceRoot":"","sources":["../../../../src/store/apis/updateMessage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"updateMessage.d.ts","sourceRoot":"","sources":["../../../../src/store/apis/updateMessage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAUjE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEhD,eAAO,MAAM,aAAa,GAAU,qBAGjC;IACD,OAAO,EAAE,eAAe,GAAG,YAAY,CAAC;IACxC,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,+BAkEA,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { LocalMessage, MessageResponse, ReactionResponse } from 'stream-chat';
|
|
2
2
|
import type { PreparedQueries } from '../types';
|
|
3
3
|
export declare const updateReaction: ({ flush, message, reaction, }: {
|
|
4
|
-
message: MessageResponse |
|
|
4
|
+
message: MessageResponse | LocalMessage;
|
|
5
5
|
reaction: ReactionResponse;
|
|
6
6
|
flush?: boolean;
|
|
7
7
|
}) => Promise<PreparedQueries[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateReaction.d.ts","sourceRoot":"","sources":["../../../../src/store/apis/updateReaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"updateReaction.d.ts","sourceRoot":"","sources":["../../../../src/store/apis/updateReaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAQnF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEhD,eAAO,MAAM,cAAc,GAAU,+BAIlC;IACD,OAAO,EAAE,eAAe,GAAG,YAAY,CAAC;IACxC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,+BAqCA,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { LocalMessage, MessageResponse } from 'stream-chat';
|
|
2
2
|
import type { TableRow } from '../types';
|
|
3
|
-
export declare const mapMessageToStorable: (message: MessageResponse |
|
|
3
|
+
export declare const mapMessageToStorable: (message: MessageResponse | LocalMessage) => TableRow<"messages">;
|
|
4
4
|
//# sourceMappingURL=mapMessageToStorable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mapMessageToStorable.d.ts","sourceRoot":"","sources":["../../../../src/store/mappers/mapMessageToStorable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"mapMessageToStorable.d.ts","sourceRoot":"","sources":["../../../../src/store/mappers/mapMessageToStorable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAIjE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEzC,eAAO,MAAM,oBAAoB,GAC/B,SAAS,eAAe,GAAG,YAAY,KACtC,QAAQ,CAAC,UAAU,CAsCrB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ChannelFilters, ChannelSort, ChannelState } from 'stream-chat';
|
|
1
|
+
import type { ChannelFilters, ChannelSort, ChannelState, FileReference } from 'stream-chat';
|
|
2
2
|
import type { FileStateValue } from '../utils/utils';
|
|
3
3
|
export declare enum FileTypes {
|
|
4
4
|
Audio = "audio",
|
|
@@ -9,83 +9,61 @@ export declare enum FileTypes {
|
|
|
9
9
|
Video = "video",
|
|
10
10
|
VoiceRecording = "voiceRecording"
|
|
11
11
|
}
|
|
12
|
-
export type
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
type: string;
|
|
18
|
-
uri: string;
|
|
19
|
-
width: number;
|
|
20
|
-
id?: string;
|
|
21
|
-
mimeType?: string;
|
|
22
|
-
originalUri?: string;
|
|
23
|
-
size?: number;
|
|
24
|
-
};
|
|
25
|
-
export type File = {
|
|
26
|
-
name: string;
|
|
27
|
-
duration?: number;
|
|
28
|
-
id?: string;
|
|
29
|
-
mimeType?: string;
|
|
30
|
-
originalUri?: string;
|
|
31
|
-
size?: number;
|
|
32
|
-
type?: FileTypes;
|
|
33
|
-
uri?: string;
|
|
34
|
-
waveform_data?: number[];
|
|
35
|
-
};
|
|
12
|
+
export type File = FileReference;
|
|
13
|
+
/**
|
|
14
|
+
* This is nothing but a substitute for the attachment type prior to sending the message.
|
|
15
|
+
* This will change if we unify the file uploads to attachments.
|
|
16
|
+
*/
|
|
36
17
|
export type FileUpload = {
|
|
37
18
|
file: File;
|
|
38
19
|
id: string;
|
|
39
20
|
state: FileStateValue;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
progress?: number;
|
|
43
|
-
thumb_url?: string;
|
|
44
|
-
type?: string;
|
|
21
|
+
mime_type?: string;
|
|
22
|
+
type?: FileTypes;
|
|
45
23
|
url?: string;
|
|
24
|
+
thumb_url?: string;
|
|
25
|
+
duration?: number;
|
|
46
26
|
waveform_data?: number[];
|
|
27
|
+
height?: number;
|
|
28
|
+
width?: number;
|
|
29
|
+
};
|
|
30
|
+
export type AudioUpload = FileUpload & {
|
|
31
|
+
progress?: number;
|
|
32
|
+
paused?: boolean;
|
|
47
33
|
};
|
|
48
|
-
export interface
|
|
34
|
+
export interface DefaultAttachmentData {
|
|
49
35
|
duration?: number;
|
|
50
36
|
file_size?: number;
|
|
51
37
|
mime_type?: string;
|
|
52
38
|
originalFile?: File;
|
|
53
|
-
originalImage?:
|
|
39
|
+
originalImage?: File;
|
|
54
40
|
waveform_data?: number[];
|
|
55
41
|
}
|
|
56
|
-
export interface
|
|
42
|
+
export interface DefaultUserData {
|
|
57
43
|
image?: string;
|
|
58
44
|
}
|
|
59
|
-
export interface
|
|
45
|
+
export interface DefaultChannelData {
|
|
60
46
|
image?: string;
|
|
61
47
|
name?: string;
|
|
62
48
|
}
|
|
63
|
-
export interface
|
|
49
|
+
export interface DefaultCommandData {
|
|
64
50
|
flag: unknown;
|
|
65
51
|
imgur: unknown;
|
|
66
52
|
}
|
|
67
|
-
export interface
|
|
53
|
+
export interface DefaultEventData {
|
|
68
54
|
}
|
|
69
|
-
export interface
|
|
55
|
+
export interface DefaultMemberData {
|
|
70
56
|
}
|
|
71
|
-
export interface
|
|
57
|
+
export interface DefaultMessageData {
|
|
72
58
|
}
|
|
73
|
-
export interface
|
|
59
|
+
export interface DefaultPollOptionData {
|
|
74
60
|
}
|
|
75
|
-
export interface
|
|
61
|
+
export interface DefaultPollData {
|
|
76
62
|
}
|
|
77
|
-
export interface
|
|
63
|
+
export interface DefaultReactionData {
|
|
78
64
|
}
|
|
79
|
-
export interface
|
|
65
|
+
export interface DefaultThreadData {
|
|
80
66
|
}
|
|
81
|
-
export type ImageUpload = {
|
|
82
|
-
file: Partial<Asset>;
|
|
83
|
-
id: string;
|
|
84
|
-
state: FileStateValue;
|
|
85
|
-
height?: number;
|
|
86
|
-
url?: string;
|
|
87
|
-
width?: number;
|
|
88
|
-
};
|
|
89
67
|
export type Reaction = {
|
|
90
68
|
id: string;
|
|
91
69
|
name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAErD,oBAAY,SAAS;IACnB,KAAK,UAAU;IACf,IAAI,SAAS;IACb,KAAK,UAAU;IACf,KAAK,UAAU;IACf,KAAK,UAAU;IACf,KAAK,UAAU;IACf,cAAc,mBAAmB;CAClC;AAED,MAAM,MAAM,IAAI,GAAG,aAAa,CAAC;AAEjC;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,EAAE,IAAI,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,cAAc,CAAC;IAEtB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IAEzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAA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OAAO,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,gCAAgC,GAAG;IAC7C,OAAO,CAAC,EAAE,qBAAqB,CAAC;CACjC,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { File } from '../types/types';
|
|
2
2
|
/**
|
|
3
3
|
* Function to compress and Image and return the compressed Image URI
|
|
4
4
|
* @param image
|
|
5
5
|
* @param compressImageQuality
|
|
6
6
|
* @returns string
|
|
7
7
|
*/
|
|
8
|
-
export declare const compressedImageURI: (image:
|
|
8
|
+
export declare const compressedImageURI: (image: File, compressImageQuality?: number) => Promise<string>;
|
|
9
9
|
//# sourceMappingURL=compressImage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compressImage.d.ts","sourceRoot":"","sources":["../../../src/utils/compressImage.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"compressImage.d.ts","sourceRoot":"","sources":["../../../src/utils/compressImage.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAE3C;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,GAAU,OAAO,IAAI,EAAE,uBAAuB,MAAM,oBAqBlF,CAAC"}
|
|
@@ -123,6 +123,9 @@ export declare class Streami18n {
|
|
|
123
123
|
getTranslations: () => {
|
|
124
124
|
[key: string]: {
|
|
125
125
|
[key: string]: Partial<{
|
|
126
|
+
"+{{count}}_many": string;
|
|
127
|
+
"+{{count}}_one": string;
|
|
128
|
+
"+{{count}}_other": string;
|
|
126
129
|
"1 Reply": string;
|
|
127
130
|
"1 Thread Reply": string;
|
|
128
131
|
"Add a comment": string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Streami18n.d.ts","sourceRoot":"","sources":["../../../../src/utils/i18n/Streami18n.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAA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AiB,CAAC,SAAS,EAAE,SAAS;CAQvC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { MessageResponse } from 'stream-chat';
|
|
2
|
-
|
|
3
|
-
export declare const removeReservedFields: (message: MessageType | MessageResponse) => MessageType | MessageResponse;
|
|
1
|
+
import type { LocalMessage, MessageResponse } from 'stream-chat';
|
|
2
|
+
export declare const removeReservedFields: (message: LocalMessage | MessageResponse) => LocalMessage | MessageResponse;
|
|
4
3
|
//# sourceMappingURL=removeReservedFields.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"removeReservedFields.d.ts","sourceRoot":"","sources":["../../../src/utils/removeReservedFields.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"removeReservedFields.d.ts","sourceRoot":"","sources":["../../../src/utils/removeReservedFields.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEjE,eAAO,MAAM,oBAAoB,GAC/B,SAAS,YAAY,GAAG,eAAe,KACtC,YAAY,GAAG,eA0BjB,CAAC"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
-
import type { ChannelState,
|
|
2
|
+
import type { ChannelState, LocalMessage, MessageResponse } from 'stream-chat';
|
|
3
3
|
import { IconProps } from '../../src/icons/utils/base';
|
|
4
|
-
import { MessageType } from '../components/MessageList/hooks/useMessageList';
|
|
5
4
|
import type { EmojiSearchIndex } from '../contexts/messageInputContext/MessageInputContext';
|
|
6
5
|
import type { TableRowJoinedUser } from '../store/types';
|
|
7
|
-
import
|
|
6
|
+
import { FileTypes, ValueOf } from '../types/types';
|
|
8
7
|
export type ReactionData = {
|
|
9
8
|
Icon: React.ComponentType<IconProps>;
|
|
10
9
|
type: string;
|
|
@@ -35,19 +34,19 @@ export declare const getIndicatorTypeForFileState: (fileState: FileStateValue, e
|
|
|
35
34
|
* @param message
|
|
36
35
|
* @returns boolean
|
|
37
36
|
*/
|
|
38
|
-
export declare const isBlockedMessage: (message:
|
|
37
|
+
export declare const isBlockedMessage: (message: LocalMessage | TableRowJoinedUser<"messages">) => boolean | "" | undefined;
|
|
39
38
|
/**
|
|
40
39
|
* Utility to check if the message is a Bounced message.
|
|
41
40
|
* @param message
|
|
42
41
|
* @returns boolean
|
|
43
42
|
*/
|
|
44
|
-
export declare const isBouncedMessage: (message:
|
|
43
|
+
export declare const isBouncedMessage: (message: LocalMessage) => boolean;
|
|
45
44
|
/**
|
|
46
45
|
* Utility to check if the message is a edited message.
|
|
47
46
|
* @param message
|
|
48
47
|
* @returns boolean
|
|
49
48
|
*/
|
|
50
|
-
export declare const isEditedMessage: (message:
|
|
49
|
+
export declare const isEditedMessage: (message: LocalMessage) => boolean;
|
|
51
50
|
/**
|
|
52
51
|
* Default emoji search index for auto complete text input
|
|
53
52
|
*/
|
|
@@ -59,16 +58,16 @@ export declare const generateRandomId: (a?: string) => string;
|
|
|
59
58
|
export declare const hasOnlyEmojis: (text: string) => boolean;
|
|
60
59
|
/**
|
|
61
60
|
* Stringifies a message object
|
|
62
|
-
* @param {
|
|
61
|
+
* @param {LocalMessage} message - the message object to be stringified
|
|
63
62
|
* @returns {string} The stringified message
|
|
64
63
|
*/
|
|
65
|
-
export declare const stringifyMessage: (message: MessageResponse |
|
|
64
|
+
export declare const stringifyMessage: (message: MessageResponse | LocalMessage) => string;
|
|
66
65
|
/**
|
|
67
66
|
* Reduces a list of messages to strings that are used in useEffect & useMemo
|
|
68
67
|
* @param {messages} messages - the array of messages to be compared
|
|
69
68
|
* @returns {string} The mapped message string
|
|
70
69
|
*/
|
|
71
|
-
export declare const reduceMessagesToString: (messages:
|
|
70
|
+
export declare const reduceMessagesToString: (messages: LocalMessage[]) => string;
|
|
72
71
|
/**
|
|
73
72
|
* Utility to get the file name from the path using regex.
|
|
74
73
|
* `[^/]+` matches one or more characters that are not a slash (/), ensuring we capture the filename part.
|
|
@@ -78,6 +77,7 @@ export declare const reduceMessagesToString: (messages: FormatMessageResponse[])
|
|
|
78
77
|
* @returns string
|
|
79
78
|
*/
|
|
80
79
|
export declare const getFileNameFromPath: (path: string) => string;
|
|
80
|
+
export declare const getFileTypeFromMimeType: (mimeType: string) => FileTypes.Audio | FileTypes.File | FileTypes.Image | FileTypes.Video;
|
|
81
81
|
/**
|
|
82
82
|
* Utility to get the duration label from the duration in seconds.
|
|
83
83
|
* @param duration number
|
|
@@ -105,7 +105,7 @@ export declare const findInMessagesById: (messages: ChannelState["messages"], ta
|
|
|
105
105
|
*/
|
|
106
106
|
export declare const findInMessagesByDate: (messages: MessageResponse[] | ChannelState["messages"], targetDate: Date) => {
|
|
107
107
|
index: number;
|
|
108
|
-
message:
|
|
108
|
+
message: LocalMessage | MessageResponse;
|
|
109
109
|
} | {
|
|
110
110
|
index: number;
|
|
111
111
|
message?: undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/utils/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/utils/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE/E,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qDAAqD,CAAC;AAE5F,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEpD,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAA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SAAS,eAAe,GAAG,YAAY,KAAG,MAwB1E,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,GAAI,UAAU,YAAY,EAAE,KAAG,MAC3B,CAAC;AAExC;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB,GAAI,MAAM,MAAM,WAI/C,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,UAAU,MAAM,yEAUvD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,4BAA4B,GAAI,UAAU,MAAM,WAgB5D,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,UAExC;AAED;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,GAAI,UAAU,YAAY,CAAC,UAAU,CAAC,EAAE,UAAU,MAAM,WAGtF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,GAC/B,UAAU,eAAe,EAAE,GAAG,YAAY,CAAC,UAAU,CAAC,EACtD,YAAY,IAAI;;;;;;CAgCjB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stream-chat-react-native-core",
|
|
3
3
|
"description": "The official React Native and Expo components for Stream Chat, a service for building chat applications",
|
|
4
|
-
"version": "7.0.0
|
|
4
|
+
"version": "7.0.0",
|
|
5
5
|
"author": {
|
|
6
6
|
"company": "Stream.io Inc",
|
|
7
7
|
"name": "Stream.io Inc"
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"README.md"
|
|
23
23
|
],
|
|
24
24
|
"scripts": {
|
|
25
|
-
"build": "
|
|
25
|
+
"build": "rimraf lib && yarn run --silent build-translations && bob build && yarn run --silent copy-translations",
|
|
26
26
|
"build-translations": "i18next",
|
|
27
27
|
"copy-translations": "echo '\u001b[34mℹ\u001b[0m Copying translation files to \u001b[34mlib/typescript/i18n\u001b[0m' && cp -R -f ./src/i18n ./lib/typescript/i18n && echo '\u001b[32m✓\u001b[0m Done Copying Translations'",
|
|
28
28
|
"eslint": "eslint 'src/**/*.{js,md,ts,jsx,tsx}' --max-warnings 0",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"path": "0.12.7",
|
|
78
78
|
"react-native-markdown-package": "1.8.2",
|
|
79
79
|
"react-native-url-polyfill": "^1.3.0",
|
|
80
|
-
"stream-chat": "9.0.0
|
|
80
|
+
"stream-chat": "^9.0.0",
|
|
81
81
|
"use-sync-external-store": "^1.4.0"
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
@@ -147,6 +147,7 @@
|
|
|
147
147
|
"react-native-reanimated": "~3.17.1",
|
|
148
148
|
"react-native-svg": "15.11.2",
|
|
149
149
|
"react-test-renderer": "19.0.0",
|
|
150
|
+
"rimraf": "^6.0.1",
|
|
150
151
|
"typescript": "5.8.2",
|
|
151
152
|
"typescript-eslint": "^8.25.0",
|
|
152
153
|
"uuid": "^11.1.0"
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
VideoProgressData,
|
|
16
16
|
VideoSeekResponse,
|
|
17
17
|
} from '../../native';
|
|
18
|
-
import {
|
|
18
|
+
import { AudioUpload, FileTypes } from '../../types/types';
|
|
19
19
|
import { getTrimmedAttachmentTitle } from '../../utils/getTrimmedAttachmentTitle';
|
|
20
20
|
import { ProgressControl } from '../ProgressControl/ProgressControl';
|
|
21
21
|
import { WaveProgressBar } from '../ProgressControl/WaveProgressBar';
|
|
@@ -23,7 +23,7 @@ import { WaveProgressBar } from '../ProgressControl/WaveProgressBar';
|
|
|
23
23
|
dayjs.extend(duration);
|
|
24
24
|
|
|
25
25
|
export type AudioAttachmentProps = {
|
|
26
|
-
item: Omit<
|
|
26
|
+
item: Omit<AudioUpload, 'state'>;
|
|
27
27
|
onLoad: (index: string, duration: number) => void;
|
|
28
28
|
onPlayPause: (index: string, pausedStatus?: boolean) => void;
|
|
29
29
|
onProgress: (index: string, progress: number) => void;
|
|
@@ -184,7 +184,9 @@ export const AudioAttachment = (props: AudioAttachmentProps) => {
|
|
|
184
184
|
soundRef.current = await NativeHandlers.Sound.initializeSound(
|
|
185
185
|
{ uri: item.file.uri },
|
|
186
186
|
{
|
|
187
|
+
pitchCorrectionQuality: 'high',
|
|
187
188
|
progressUpdateIntervalMillis: 100,
|
|
189
|
+
shouldCorrectPitch: true,
|
|
188
190
|
},
|
|
189
191
|
onPlaybackStatusUpdate,
|
|
190
192
|
);
|
|
@@ -208,10 +210,14 @@ export const AudioAttachment = (props: AudioAttachmentProps) => {
|
|
|
208
210
|
if (!isExpoCLI) {
|
|
209
211
|
return;
|
|
210
212
|
}
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
213
|
+
try {
|
|
214
|
+
if (item.paused) {
|
|
215
|
+
await pauseAudio();
|
|
216
|
+
} else {
|
|
217
|
+
await playAudio();
|
|
218
|
+
}
|
|
219
|
+
} catch (e) {
|
|
220
|
+
console.log('An error has occurred while trying to interact with the audio. ', e);
|
|
215
221
|
}
|
|
216
222
|
};
|
|
217
223
|
// For expo CLI
|