stream-chat-react-native-core 5.28.1 → 5.29.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/components/Attachment/Attachment.js +2 -2
- package/lib/commonjs/components/Attachment/Attachment.js.map +1 -1
- package/lib/commonjs/components/Attachment/AudioAttachment.js +247 -115
- package/lib/commonjs/components/Attachment/AudioAttachment.js.map +1 -1
- package/lib/commonjs/components/Attachment/FileAttachmentGroup.js +30 -50
- package/lib/commonjs/components/Attachment/FileAttachmentGroup.js.map +1 -1
- package/lib/commonjs/components/Attachment/VideoThumbnail.js +3 -3
- package/lib/commonjs/components/Attachment/VideoThumbnail.js.map +1 -1
- package/lib/commonjs/components/Channel/Channel.js +43 -1
- package/lib/commonjs/components/Channel/Channel.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateInputMessageInputContext.js +24 -0
- package/lib/commonjs/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryVideoControl.js +6 -6
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryVideoControl.js.map +1 -1
- package/lib/commonjs/components/Message/Message.js +1 -1
- package/lib/commonjs/components/Message/Message.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageContent.js +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageContent.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageSimple.js +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageSimple.js.map +1 -1
- package/lib/commonjs/components/Message/hooks/useMessageActions.js +4 -2
- package/lib/commonjs/components/Message/hooks/useMessageActions.js.map +1 -1
- package/lib/commonjs/components/MessageInput/FileUploadPreview.js +55 -74
- package/lib/commonjs/components/MessageInput/FileUploadPreview.js.map +1 -1
- package/lib/commonjs/components/MessageInput/InputButtons.js +1 -1
- package/lib/commonjs/components/MessageInput/InputButtons.js.map +1 -1
- package/lib/commonjs/components/MessageInput/MessageInput.js +250 -43
- package/lib/commonjs/components/MessageInput/MessageInput.js.map +1 -1
- package/lib/commonjs/components/MessageInput/SendButton.js +9 -7
- package/lib/commonjs/components/MessageInput/SendButton.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecorder.js +221 -0
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecorder.js.map +1 -0
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js +121 -0
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js.map +1 -0
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.js +68 -0
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.js.map +1 -0
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.js +75 -0
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.js.map +1 -0
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingPreview.js +87 -0
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingPreview.js.map +1 -0
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingWaveform.js +47 -0
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingWaveform.js.map +1 -0
- package/lib/commonjs/components/MessageInput/hooks/useAudioController.js +452 -0
- package/lib/commonjs/components/MessageInput/hooks/useAudioController.js.map +1 -0
- package/lib/commonjs/components/MessageInput/utils/audioSampling.js +91 -0
- package/lib/commonjs/components/MessageInput/utils/audioSampling.js.map +1 -0
- package/lib/commonjs/components/MessageInput/utils/normalizeAudioLevel.js +18 -0
- package/lib/commonjs/components/MessageInput/utils/normalizeAudioLevel.js.map +1 -0
- package/lib/commonjs/components/ProgressControl/ProgressControl.js +57 -40
- package/lib/commonjs/components/ProgressControl/ProgressControl.js.map +1 -1
- package/lib/commonjs/components/ProgressControl/WaveProgressBar.js +162 -0
- package/lib/commonjs/components/ProgressControl/WaveProgressBar.js.map +1 -0
- package/lib/commonjs/components/Reply/Reply.js +45 -20
- package/lib/commonjs/components/Reply/Reply.js.map +1 -1
- package/lib/commonjs/components/index.js +66 -0
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js +23 -12
- package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js.map +1 -1
- package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +24 -0
- package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
- package/lib/commonjs/contexts/messageInputContext/hooks/useMessageDetailsForState.js +76 -28
- package/lib/commonjs/contexts/messageInputContext/hooks/useMessageDetailsForState.js.map +1 -1
- package/lib/commonjs/contexts/themeContext/utils/theme.js +62 -7
- package/lib/commonjs/contexts/themeContext/utils/theme.js.map +1 -1
- package/lib/commonjs/i18n/en.json +3 -1
- package/lib/commonjs/i18n/es.json +64 -62
- package/lib/commonjs/i18n/fr.json +64 -62
- package/lib/commonjs/i18n/he.json +64 -62
- package/lib/commonjs/i18n/hi.json +64 -62
- package/lib/commonjs/i18n/it.json +64 -62
- package/lib/commonjs/i18n/ja.json +64 -62
- package/lib/commonjs/i18n/ko.json +64 -62
- package/lib/commonjs/i18n/nl.json +64 -62
- package/lib/commonjs/i18n/pt-BR.json +64 -62
- package/lib/commonjs/i18n/ru.json +64 -62
- package/lib/commonjs/i18n/tr.json +64 -62
- package/lib/commonjs/icons/ArrowLeft.js +27 -0
- package/lib/commonjs/icons/ArrowLeft.js.map +1 -0
- package/lib/commonjs/icons/ArrowUp.js +26 -0
- package/lib/commonjs/icons/ArrowUp.js.map +1 -0
- package/lib/commonjs/icons/Audio.js +24 -24
- package/lib/commonjs/icons/Audio.js.map +1 -1
- package/lib/commonjs/icons/CircleStop.js +27 -0
- package/lib/commonjs/icons/CircleStop.js.map +1 -0
- package/lib/commonjs/icons/Delete.js +17 -6
- package/lib/commonjs/icons/Delete.js.map +1 -1
- package/lib/commonjs/icons/Lock.js +30 -0
- package/lib/commonjs/icons/Lock.js.map +1 -0
- package/lib/commonjs/icons/Mic.js +30 -0
- package/lib/commonjs/icons/Mic.js.map +1 -0
- package/lib/commonjs/icons/Pause.js +15 -20
- package/lib/commonjs/icons/Pause.js.map +1 -1
- package/lib/commonjs/icons/Play.js +18 -10
- package/lib/commonjs/icons/Play.js.map +1 -1
- package/lib/commonjs/icons/SendCheck.js +30 -0
- package/lib/commonjs/icons/SendCheck.js.map +1 -0
- package/lib/commonjs/icons/SendRight.js +24 -6
- package/lib/commonjs/icons/SendRight.js.map +1 -1
- package/lib/commonjs/icons/SendUp.js +24 -6
- package/lib/commonjs/icons/SendUp.js.map +1 -1
- package/lib/commonjs/icons/Stop.js +19 -0
- package/lib/commonjs/icons/Stop.js.map +1 -0
- package/lib/commonjs/icons/index.js +77 -0
- package/lib/commonjs/icons/index.js.map +1 -1
- package/lib/commonjs/native.js +10 -1
- package/lib/commonjs/native.js.map +1 -1
- package/lib/commonjs/utils/getTrimmedAttachmentTitle.js +11 -0
- package/lib/commonjs/utils/getTrimmedAttachmentTitle.js.map +1 -0
- package/lib/commonjs/version.json +1 -1
- package/lib/module/components/Attachment/Attachment.js +2 -2
- package/lib/module/components/Attachment/Attachment.js.map +1 -1
- package/lib/module/components/Attachment/AudioAttachment.js +247 -115
- package/lib/module/components/Attachment/AudioAttachment.js.map +1 -1
- package/lib/module/components/Attachment/FileAttachmentGroup.js +30 -50
- package/lib/module/components/Attachment/FileAttachmentGroup.js.map +1 -1
- package/lib/module/components/Attachment/VideoThumbnail.js +3 -3
- package/lib/module/components/Attachment/VideoThumbnail.js.map +1 -1
- package/lib/module/components/Channel/Channel.js +43 -1
- package/lib/module/components/Channel/Channel.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateInputMessageInputContext.js +24 -0
- package/lib/module/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryVideoControl.js +6 -6
- package/lib/module/components/ImageGallery/components/ImageGalleryVideoControl.js.map +1 -1
- package/lib/module/components/Message/Message.js +1 -1
- package/lib/module/components/Message/Message.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageContent.js +1 -1
- package/lib/module/components/Message/MessageSimple/MessageContent.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageSimple.js +1 -1
- package/lib/module/components/Message/MessageSimple/MessageSimple.js.map +1 -1
- package/lib/module/components/Message/hooks/useMessageActions.js +4 -2
- package/lib/module/components/Message/hooks/useMessageActions.js.map +1 -1
- package/lib/module/components/MessageInput/FileUploadPreview.js +55 -74
- package/lib/module/components/MessageInput/FileUploadPreview.js.map +1 -1
- package/lib/module/components/MessageInput/InputButtons.js +1 -1
- package/lib/module/components/MessageInput/InputButtons.js.map +1 -1
- package/lib/module/components/MessageInput/MessageInput.js +250 -43
- package/lib/module/components/MessageInput/MessageInput.js.map +1 -1
- package/lib/module/components/MessageInput/SendButton.js +9 -7
- package/lib/module/components/MessageInput/SendButton.js.map +1 -1
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecorder.js +221 -0
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecorder.js.map +1 -0
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js +121 -0
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js.map +1 -0
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.js +68 -0
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.js.map +1 -0
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.js +75 -0
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.js.map +1 -0
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingPreview.js +87 -0
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingPreview.js.map +1 -0
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingWaveform.js +47 -0
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingWaveform.js.map +1 -0
- package/lib/module/components/MessageInput/hooks/useAudioController.js +452 -0
- package/lib/module/components/MessageInput/hooks/useAudioController.js.map +1 -0
- package/lib/module/components/MessageInput/utils/audioSampling.js +91 -0
- package/lib/module/components/MessageInput/utils/audioSampling.js.map +1 -0
- package/lib/module/components/MessageInput/utils/normalizeAudioLevel.js +18 -0
- package/lib/module/components/MessageInput/utils/normalizeAudioLevel.js.map +1 -0
- package/lib/module/components/ProgressControl/ProgressControl.js +57 -40
- package/lib/module/components/ProgressControl/ProgressControl.js.map +1 -1
- package/lib/module/components/ProgressControl/WaveProgressBar.js +162 -0
- package/lib/module/components/ProgressControl/WaveProgressBar.js.map +1 -0
- package/lib/module/components/Reply/Reply.js +45 -20
- package/lib/module/components/Reply/Reply.js.map +1 -1
- package/lib/module/components/index.js +66 -0
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/contexts/messageInputContext/MessageInputContext.js +23 -12
- package/lib/module/contexts/messageInputContext/MessageInputContext.js.map +1 -1
- package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +24 -0
- package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
- package/lib/module/contexts/messageInputContext/hooks/useMessageDetailsForState.js +76 -28
- package/lib/module/contexts/messageInputContext/hooks/useMessageDetailsForState.js.map +1 -1
- package/lib/module/contexts/themeContext/utils/theme.js +62 -7
- package/lib/module/contexts/themeContext/utils/theme.js.map +1 -1
- package/lib/module/i18n/en.json +3 -1
- package/lib/module/i18n/es.json +64 -62
- package/lib/module/i18n/fr.json +64 -62
- package/lib/module/i18n/he.json +64 -62
- package/lib/module/i18n/hi.json +64 -62
- package/lib/module/i18n/it.json +64 -62
- package/lib/module/i18n/ja.json +64 -62
- package/lib/module/i18n/ko.json +64 -62
- package/lib/module/i18n/nl.json +64 -62
- package/lib/module/i18n/pt-BR.json +64 -62
- package/lib/module/i18n/ru.json +64 -62
- package/lib/module/i18n/tr.json +64 -62
- package/lib/module/icons/ArrowLeft.js +27 -0
- package/lib/module/icons/ArrowLeft.js.map +1 -0
- package/lib/module/icons/ArrowUp.js +26 -0
- package/lib/module/icons/ArrowUp.js.map +1 -0
- package/lib/module/icons/Audio.js +24 -24
- package/lib/module/icons/Audio.js.map +1 -1
- package/lib/module/icons/CircleStop.js +27 -0
- package/lib/module/icons/CircleStop.js.map +1 -0
- package/lib/module/icons/Delete.js +17 -6
- package/lib/module/icons/Delete.js.map +1 -1
- package/lib/module/icons/Lock.js +30 -0
- package/lib/module/icons/Lock.js.map +1 -0
- package/lib/module/icons/Mic.js +30 -0
- package/lib/module/icons/Mic.js.map +1 -0
- package/lib/module/icons/Pause.js +15 -20
- package/lib/module/icons/Pause.js.map +1 -1
- package/lib/module/icons/Play.js +18 -10
- package/lib/module/icons/Play.js.map +1 -1
- package/lib/module/icons/SendCheck.js +30 -0
- package/lib/module/icons/SendCheck.js.map +1 -0
- package/lib/module/icons/SendRight.js +24 -6
- package/lib/module/icons/SendRight.js.map +1 -1
- package/lib/module/icons/SendUp.js +24 -6
- package/lib/module/icons/SendUp.js.map +1 -1
- package/lib/module/icons/Stop.js +19 -0
- package/lib/module/icons/Stop.js.map +1 -0
- package/lib/module/icons/index.js +77 -0
- package/lib/module/icons/index.js.map +1 -1
- package/lib/module/native.js +10 -1
- package/lib/module/native.js.map +1 -1
- package/lib/module/utils/getTrimmedAttachmentTitle.js +11 -0
- package/lib/module/utils/getTrimmedAttachmentTitle.js.map +1 -0
- package/lib/module/version.json +1 -1
- package/lib/typescript/components/Attachment/Attachment.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/AudioAttachment.d.ts +3 -8
- 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/Channel/Channel.d.ts.map +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateInputMessageInputContext.d.ts +15 -3
- package/lib/typescript/components/Channel/hooks/useCreateInputMessageInputContext.d.ts.map +1 -1
- package/lib/typescript/components/ImageGallery/components/ImageGalleryVideoControl.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageSimple/MessageContent.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageSimple/MessageSimple.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/FileUploadPreview.d.ts +1 -1
- package/lib/typescript/components/MessageInput/FileUploadPreview.d.ts.map +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/SendButton.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecorder.d.ts +51 -0
- package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecorder.d.ts.map +1 -0
- package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecordingButton.d.ts +43 -0
- package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecordingButton.d.ts.map +1 -0
- package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.d.ts +29 -0
- package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.d.ts.map +1 -0
- package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.d.ts +22 -0
- package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.d.ts.map +1 -0
- package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecordingPreview.d.ts +31 -0
- package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecordingPreview.d.ts.map +1 -0
- package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecordingWaveform.d.ts +19 -0
- package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecordingWaveform.d.ts.map +1 -0
- package/lib/typescript/components/MessageInput/hooks/useAudioController.d.ts +28 -0
- package/lib/typescript/components/MessageInput/hooks/useAudioController.d.ts.map +1 -0
- package/lib/typescript/components/MessageInput/utils/audioSampling.d.ts +11 -0
- package/lib/typescript/components/MessageInput/utils/audioSampling.d.ts.map +1 -0
- package/lib/typescript/components/MessageInput/utils/normalizeAudioLevel.d.ts +5 -0
- package/lib/typescript/components/MessageInput/utils/normalizeAudioLevel.d.ts.map +1 -0
- package/lib/typescript/components/ProgressControl/ProgressControl.d.ts +2 -2
- package/lib/typescript/components/ProgressControl/ProgressControl.d.ts.map +1 -1
- package/lib/typescript/components/ProgressControl/WaveProgressBar.d.ts +11 -0
- package/lib/typescript/components/ProgressControl/WaveProgressBar.d.ts.map +1 -0
- package/lib/typescript/components/Reply/Reply.d.ts.map +1 -1
- package/lib/typescript/components/index.d.ts +6 -0
- package/lib/typescript/components/index.d.ts.map +1 -1
- package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts +70 -4
- 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.map +1 -1
- package/lib/typescript/contexts/themeContext/utils/theme.d.ts +62 -7
- package/lib/typescript/contexts/themeContext/utils/theme.d.ts.map +1 -1
- package/lib/typescript/i18n/en.json +3 -1
- package/lib/typescript/i18n/es.json +64 -62
- package/lib/typescript/i18n/fr.json +64 -62
- package/lib/typescript/i18n/he.json +64 -62
- package/lib/typescript/i18n/hi.json +64 -62
- package/lib/typescript/i18n/it.json +64 -62
- package/lib/typescript/i18n/ja.json +64 -62
- package/lib/typescript/i18n/ko.json +64 -62
- package/lib/typescript/i18n/nl.json +64 -62
- package/lib/typescript/i18n/pt-BR.json +64 -62
- package/lib/typescript/i18n/ru.json +64 -62
- package/lib/typescript/i18n/tr.json +64 -62
- package/lib/typescript/icons/ArrowLeft.d.ts +8 -0
- package/lib/typescript/icons/ArrowLeft.d.ts.map +1 -0
- package/lib/typescript/icons/ArrowUp.d.ts +9 -0
- package/lib/typescript/icons/ArrowUp.d.ts.map +1 -0
- package/lib/typescript/icons/Audio.d.ts.map +1 -1
- package/lib/typescript/icons/CircleStop.d.ts +8 -0
- package/lib/typescript/icons/CircleStop.d.ts.map +1 -0
- package/lib/typescript/icons/Delete.d.ts +5 -1
- package/lib/typescript/icons/Delete.d.ts.map +1 -1
- package/lib/typescript/icons/Lock.d.ts +9 -0
- package/lib/typescript/icons/Lock.d.ts.map +1 -0
- package/lib/typescript/icons/Mic.d.ts +8 -0
- package/lib/typescript/icons/Mic.d.ts.map +1 -0
- package/lib/typescript/icons/Pause.d.ts +3 -1
- package/lib/typescript/icons/Pause.d.ts.map +1 -1
- package/lib/typescript/icons/Play.d.ts +3 -1
- package/lib/typescript/icons/Play.d.ts.map +1 -1
- package/lib/typescript/icons/SendCheck.d.ts +8 -0
- package/lib/typescript/icons/SendCheck.d.ts.map +1 -0
- package/lib/typescript/icons/SendRight.d.ts +5 -1
- package/lib/typescript/icons/SendRight.d.ts.map +1 -1
- package/lib/typescript/icons/SendUp.d.ts +5 -1
- package/lib/typescript/icons/SendUp.d.ts.map +1 -1
- package/lib/typescript/icons/Stop.d.ts +4 -0
- package/lib/typescript/icons/Stop.d.ts.map +1 -0
- package/lib/typescript/icons/index.d.ts +7 -0
- package/lib/typescript/icons/index.d.ts.map +1 -1
- package/lib/typescript/native.d.ts +49 -0
- package/lib/typescript/native.d.ts.map +1 -1
- package/lib/typescript/types/types.d.ts +6 -0
- package/lib/typescript/types/types.d.ts.map +1 -1
- package/lib/typescript/utils/Streami18n.d.ts +2 -0
- package/lib/typescript/utils/Streami18n.d.ts.map +1 -1
- package/lib/typescript/utils/getTrimmedAttachmentTitle.d.ts +2 -0
- package/lib/typescript/utils/getTrimmedAttachmentTitle.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/components/Attachment/Attachment.tsx +7 -2
- package/src/components/Attachment/AudioAttachment.tsx +223 -119
- package/src/components/Attachment/FileAttachmentGroup.tsx +35 -55
- package/src/components/Attachment/VideoThumbnail.tsx +1 -1
- package/src/components/Channel/Channel.tsx +32 -0
- package/src/components/Channel/hooks/useCreateInputMessageInputContext.ts +24 -0
- package/src/components/ImageGallery/__tests__/ImageGallery.test.tsx +1 -1
- package/src/components/ImageGallery/__tests__/ImageGalleryVideoControl.test.tsx +2 -2
- package/src/components/ImageGallery/components/ImageGalleryVideoControl.tsx +2 -7
- package/src/components/Message/Message.tsx +1 -1
- package/src/components/Message/MessageSimple/MessageContent.tsx +2 -1
- package/src/components/Message/MessageSimple/MessageSimple.tsx +2 -1
- package/src/components/Message/hooks/useMessageActions.tsx +2 -2
- package/src/components/MessageInput/FileUploadPreview.tsx +67 -98
- package/src/components/MessageInput/InputButtons.tsx +2 -1
- package/src/components/MessageInput/MessageInput.tsx +320 -49
- package/src/components/MessageInput/SendButton.tsx +7 -3
- package/src/components/MessageInput/__tests__/MessageInput.test.js +0 -1
- package/src/components/MessageInput/__tests__/__snapshots__/SendButton.test.js.snap +132 -48
- package/src/components/MessageInput/components/AudioRecorder/AudioRecorder.tsx +313 -0
- package/src/components/MessageInput/components/AudioRecorder/AudioRecordingButton.tsx +192 -0
- package/src/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.tsx +114 -0
- package/src/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.tsx +85 -0
- package/src/components/MessageInput/components/AudioRecorder/AudioRecordingPreview.tsx +102 -0
- package/src/components/MessageInput/components/AudioRecorder/AudioRecordingWaveform.tsx +62 -0
- package/src/components/MessageInput/hooks/useAudioController.tsx +288 -0
- package/src/components/MessageInput/utils/audioSampling.ts +108 -0
- package/src/components/MessageInput/utils/normalizeAudioLevel.ts +20 -0
- package/src/components/ProgressControl/ProgressControl.tsx +69 -40
- package/src/components/ProgressControl/WaveProgressBar.tsx +180 -0
- package/src/components/Reply/Reply.tsx +89 -56
- package/src/components/Thread/__tests__/__snapshots__/Thread.test.js.snap +38 -20
- package/src/components/index.ts +6 -0
- package/src/contexts/messageInputContext/MessageInputContext.tsx +95 -10
- package/src/contexts/messageInputContext/hooks/useCreateMessageInputContext.ts +25 -0
- package/src/contexts/messageInputContext/hooks/useMessageDetailsForState.ts +80 -27
- package/src/contexts/themeContext/utils/theme.ts +111 -14
- package/src/i18n/en.json +3 -1
- package/src/i18n/es.json +64 -62
- package/src/i18n/fr.json +64 -62
- package/src/i18n/he.json +64 -62
- package/src/i18n/hi.json +64 -62
- package/src/i18n/it.json +64 -62
- package/src/i18n/ja.json +64 -62
- package/src/i18n/ko.json +64 -62
- package/src/i18n/nl.json +64 -62
- package/src/i18n/pt-BR.json +64 -62
- package/src/i18n/ru.json +64 -62
- package/src/i18n/tr.json +64 -62
- package/src/icons/ArrowLeft.tsx +18 -0
- package/src/icons/ArrowUp.tsx +19 -0
- package/src/icons/Audio.tsx +24 -24
- package/src/icons/CircleStop.tsx +18 -0
- package/src/icons/Delete.tsx +14 -8
- package/src/icons/Lock.tsx +22 -0
- package/src/icons/Mic.tsx +20 -0
- package/src/icons/Pause.tsx +12 -11
- package/src/icons/Play.tsx +9 -13
- package/src/icons/SendCheck.tsx +18 -0
- package/src/icons/SendRight.tsx +16 -7
- package/src/icons/SendUp.tsx +16 -7
- package/src/icons/Stop.tsx +12 -0
- package/src/icons/index.ts +7 -0
- package/src/native.ts +69 -0
- package/src/types/types.ts +6 -0
- package/src/utils/getTrimmedAttachmentTitle.ts +5 -0
- package/src/version.json +1 -1
|
@@ -1,11 +1,22 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { InputMessageInputContextValue } from '../../../contexts/messageInputContext/MessageInputContext';
|
|
3
3
|
import type { DefaultStreamChatGenerics } from '../../../types/types';
|
|
4
|
-
export declare const useCreateInputMessageInputContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ additionalTextInputProps, AttachButton, autoCompleteSuggestionsLimit, autoCompleteTriggerSettings, channelId, clearEditingState, clearQuotedMessageState, CommandsButton, compressImageQuality, CooldownTimer, disabled, doDocUploadRequest, doImageUploadRequest, editing, editMessage, emojiSearchIndex, FileUploadPreview, hasCommands, hasFilePicker, hasImagePicker, ImageUploadPreview, initialValue, Input, InputButtons, InputEditingStateHeader, InputGiphySearch, InputReplyStateHeader, maxMessageLength, maxNumberOfFiles, mentionAllAppUsersEnabled, mentionAllAppUsersQuery, MoreOptionsButton, numberOfLines, onChangeText, quotedMessage, SendButton, sendImageAsync, sendMessage, SendMessageDisallowedIndicator, setInputRef, setQuotedMessageState, ShowThreadMessageInChannelButton, UploadProgressIndicator, }: Pick<import("../../..").ChannelContextValue<StreamChatGenerics>, "disabled"> & {
|
|
4
|
+
export declare const useCreateInputMessageInputContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ additionalTextInputProps, asyncMessagesLockDistance, asyncMessagesMinimumPressDuration, asyncMessagesMultiSendEnabled, asyncMessagesSlideToCancelDistance, AttachButton, AudioAttachmentUploadPreview, AudioRecorder, audioRecordingEnabled, AudioRecordingInProgress, AudioRecordingLockIndicator, AudioRecordingPreview, AudioRecordingWaveform, autoCompleteSuggestionsLimit, autoCompleteTriggerSettings, channelId, clearEditingState, clearQuotedMessageState, CommandsButton, compressImageQuality, CooldownTimer, disabled, doDocUploadRequest, doImageUploadRequest, editing, editMessage, emojiSearchIndex, FileUploadPreview, hasCommands, hasFilePicker, hasImagePicker, ImageUploadPreview, initialValue, Input, InputButtons, InputEditingStateHeader, InputGiphySearch, InputReplyStateHeader, maxMessageLength, maxNumberOfFiles, mentionAllAppUsersEnabled, mentionAllAppUsersQuery, MoreOptionsButton, numberOfLines, onChangeText, quotedMessage, SendButton, sendImageAsync, sendMessage, SendMessageDisallowedIndicator, setInputRef, setQuotedMessageState, ShowThreadMessageInChannelButton, StartAudioRecordingButton, UploadProgressIndicator, }: Pick<import("../../..").ChannelContextValue<StreamChatGenerics>, "disabled"> & {
|
|
5
|
+
asyncMessagesLockDistance: number;
|
|
6
|
+
asyncMessagesMinimumPressDuration: number;
|
|
7
|
+
asyncMessagesMultiSendEnabled: boolean;
|
|
8
|
+
asyncMessagesSlideToCancelDistance: number;
|
|
5
9
|
AttachButton: import("react").ComponentType<Partial<Pick<import("../../..").ChannelContextValue<StreamChatGenerics>, "disabled"> & {
|
|
6
10
|
handleOnPress?: (((event: import("react-native/types").GestureResponderEvent) => void) & (() => void)) | undefined;
|
|
7
11
|
selectedPicker?: "images" | undefined;
|
|
8
12
|
}>>;
|
|
13
|
+
AudioAttachmentUploadPreview: import("react").ComponentType<import("../..").AudioAttachmentProps>;
|
|
14
|
+
AudioRecorder: import("react").ComponentType<import("../..").AudioRecorderProps<StreamChatGenerics>>;
|
|
15
|
+
audioRecordingEnabled: boolean;
|
|
16
|
+
AudioRecordingInProgress: import("react").ComponentType<import("../..").AudioRecordingInProgressProps>;
|
|
17
|
+
AudioRecordingLockIndicator: import("react").ComponentType<import("../..").AudioRecordingLockIndicatorProps>;
|
|
18
|
+
AudioRecordingPreview: import("react").ComponentType<import("../..").AudioRecordingPreviewProps>;
|
|
19
|
+
AudioRecordingWaveform: import("react").ComponentType<import("../..").AudioRecordingWaveformProps>;
|
|
9
20
|
clearEditingState: () => void;
|
|
10
21
|
clearQuotedMessageState: () => void;
|
|
11
22
|
CommandsButton: import("react").ComponentType<Partial<Pick<import("../../..").ChannelContextValue<StreamChatGenerics>, "disabled"> & Pick<import("../../..").SuggestionsContextValue<StreamChatGenerics>, "suggestions"> & {
|
|
@@ -15,7 +26,7 @@ export declare const useCreateInputMessageInputContext: <StreamChatGenerics exte
|
|
|
15
26
|
editMessage: (message: import("stream-chat").UpdatedMessage<StreamChatGenerics>, userId?: string | {
|
|
16
27
|
id: string;
|
|
17
28
|
} | undefined, options?: import("stream-chat").UpdateMessageOptions | undefined) => Promise<import("stream-chat").UpdateMessageAPIResponse<StreamChatGenerics>>;
|
|
18
|
-
FileUploadPreview: import("react").ComponentType<Partial<Pick<import("../../../contexts/messageInputContext/MessageInputContext").MessageInputContextValue<StreamChatGenerics>, "uploadFile" | "fileUploads" | "removeFile" | "setFileUploads"> & Pick<import("../../..").MessagesContextValue<StreamChatGenerics>, "
|
|
29
|
+
FileUploadPreview: import("react").ComponentType<Partial<Pick<import("../../../contexts/messageInputContext/MessageInputContext").MessageInputContextValue<StreamChatGenerics>, "uploadFile" | "AudioAttachmentUploadPreview" | "fileUploads" | "removeFile" | "setFileUploads"> & Pick<import("../../..").MessagesContextValue<StreamChatGenerics>, "FileAttachmentIcon"> & Pick<import("../../..").ChatContextValue<StreamChatGenerics>, "enableOfflineSupport">>>;
|
|
19
30
|
hasCommands: boolean;
|
|
20
31
|
hasFilePicker: boolean;
|
|
21
32
|
hasImagePicker: boolean;
|
|
@@ -38,6 +49,7 @@ export declare const useCreateInputMessageInputContext: <StreamChatGenerics exte
|
|
|
38
49
|
ShowThreadMessageInChannelButton: import("react").ComponentType<{
|
|
39
50
|
threadList?: boolean | undefined;
|
|
40
51
|
}>;
|
|
52
|
+
StartAudioRecordingButton: import("react").ComponentType<import("../..").AudioRecordingButtonProps<StreamChatGenerics>>;
|
|
41
53
|
UploadProgressIndicator: import("react").ComponentType<import("../..").UploadProgressIndicatorProps>;
|
|
42
54
|
additionalTextInputProps?: import("react-native/types").TextInputProps | undefined;
|
|
43
55
|
autoCompleteSuggestionsLimit?: number | undefined;
|
|
@@ -51,7 +63,7 @@ export declare const useCreateInputMessageInputContext: <StreamChatGenerics exte
|
|
|
51
63
|
editing?: import("../..").MessageType<StreamChatGenerics> | undefined;
|
|
52
64
|
emojiSearchIndex?: import("../../../contexts/messageInputContext/MessageInputContext").EmojiSearchIndex | undefined;
|
|
53
65
|
initialValue?: string | undefined;
|
|
54
|
-
Input?: import("react").ComponentType<Omit<Partial<Pick<import("../../..").AttachmentPickerContextValue, "AttachmentPickerSelectionBar"> & Pick<import("../../..").ChatContextValue<StreamChatGenerics>, "isOnline"> & Pick<import("../../..").ChannelContextValue<StreamChatGenerics>, "disabled" | "members" | "watchers" | "threadList"> & Pick<import("../../../contexts/messageInputContext/MessageInputContext").MessageInputContextValue<StreamChatGenerics>, "maxNumberOfFiles" | "numberOfUploads" | "clearEditingState" | "clearQuotedMessageState" | "CooldownTimer" | "FileUploadPreview" | "ImageUploadPreview" | "InputEditingStateHeader" | "InputGiphySearch" | "InputReplyStateHeader" | "quotedMessage" | "SendButton" | "ShowThreadMessageInChannelButton" | "additionalTextInputProps" | "editing" | "Input" | "InputButtons" | "asyncIds" | "asyncUploads" | "closeAttachmentPicker" | "cooldownEndsAt" | "fileUploads" | "removeFile" | "giphyActive" | "imageUploads" | "removeImage" | "inputBoxRef" | "isValidMessage" | "mentionedUsers" | "resetInput" | "sending" | "sendMessageAsync" | "setShowMoreOptions" | "setGiphyActive" | "showMoreOptions" | "uploadNewFile" | "uploadNewImage"> & Pick<import("../../..").MessagesContextValue<StreamChatGenerics>, "Reply"> & Pick<import("../../..").SuggestionsContextValue<StreamChatGenerics>, "suggestions" | "AutoCompleteSuggestionHeader" | "AutoCompleteSuggestionItem" | "AutoCompleteSuggestionList" | "triggerType"> & Pick<import("../../..").ThreadContextValue<StreamChatGenerics>, "thread"> & Pick<import("../../..").TranslationContextValue, "t">>, "Input"> & Partial<import("../..").InputButtonsWithContextProps<StreamChatGenerics>> & {
|
|
66
|
+
Input?: import("react").ComponentType<Omit<Partial<Pick<import("../../..").AttachmentPickerContextValue, "AttachmentPickerSelectionBar"> & Pick<import("../../..").ChatContextValue<StreamChatGenerics>, "isOnline"> & Pick<import("../../..").ChannelContextValue<StreamChatGenerics>, "disabled" | "members" | "watchers" | "threadList"> & Pick<import("../../../contexts/messageInputContext/MessageInputContext").MessageInputContextValue<StreamChatGenerics>, "text" | "maxNumberOfFiles" | "numberOfUploads" | "asyncMessagesLockDistance" | "asyncMessagesMinimumPressDuration" | "asyncMessagesSlideToCancelDistance" | "AudioRecorder" | "audioRecordingEnabled" | "AudioRecordingInProgress" | "AudioRecordingLockIndicator" | "AudioRecordingPreview" | "clearEditingState" | "clearQuotedMessageState" | "CooldownTimer" | "FileUploadPreview" | "ImageUploadPreview" | "InputEditingStateHeader" | "InputGiphySearch" | "InputReplyStateHeader" | "quotedMessage" | "SendButton" | "ShowThreadMessageInChannelButton" | "StartAudioRecordingButton" | "additionalTextInputProps" | "editing" | "Input" | "InputButtons" | "asyncIds" | "asyncUploads" | "closeAttachmentPicker" | "cooldownEndsAt" | "fileUploads" | "removeFile" | "giphyActive" | "imageUploads" | "removeImage" | "inputBoxRef" | "isValidMessage" | "mentionedUsers" | "resetInput" | "sending" | "sendMessageAsync" | "setShowMoreOptions" | "setGiphyActive" | "showMoreOptions" | "uploadNewFile" | "uploadNewImage"> & Pick<import("../../..").MessagesContextValue<StreamChatGenerics>, "Reply"> & Pick<import("../../..").SuggestionsContextValue<StreamChatGenerics>, "suggestions" | "AutoCompleteSuggestionHeader" | "AutoCompleteSuggestionItem" | "AutoCompleteSuggestionList" | "triggerType"> & Pick<import("../../..").ThreadContextValue<StreamChatGenerics>, "thread"> & Pick<import("../../..").TranslationContextValue, "t">>, "Input"> & Partial<import("../..").InputButtonsWithContextProps<StreamChatGenerics>> & {
|
|
55
67
|
getUsers: () => import("stream-chat").UserResponse<StreamChatGenerics>[];
|
|
56
68
|
}> | undefined;
|
|
57
69
|
InputButtons?: import("react").ComponentType<Partial<import("../..").InputButtonsWithContextProps<StreamChatGenerics>>> | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCreateInputMessageInputContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/Channel/hooks/useCreateInputMessageInputContext.ts"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,2DAA2D,CAAC;AAC/G,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAEtE,eAAO,MAAM,iCAAiC
|
|
1
|
+
{"version":3,"file":"useCreateInputMessageInputContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/Channel/hooks/useCreateInputMessageInputContext.ts"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,2DAA2D,CAAC;AAC/G,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAEtE,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA2D5C;;OAEG;;uDA+EJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageGalleryVideoControl.d.ts","sourceRoot":"","sources":["../../../../../src/components/ImageGallery/components/ImageGalleryVideoControl.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,sBAAsB,CAAC;AA8BhF,eAAO,MAAM,wBAAwB,oCAC3B,mCAAmC,
|
|
1
|
+
{"version":3,"file":"ImageGalleryVideoControl.d.ts","sourceRoot":"","sources":["../../../../../src/components/ImageGallery/components/ImageGalleryVideoControl.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,sBAAsB,CAAC;AA8BhF,eAAO,MAAM,wBAAwB,oCAC3B,mCAAmC,uBAiF5C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageContent.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/MessageSimple/MessageContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,OAAO,EACL,mBAAmB,EAEpB,MAAM,iDAAiD,CAAC;AACzD,OAAO,EACL,oBAAoB,EAErB,MAAM,mDAAmD,CAAC;AAE3D,OAAO,EAGL,uBAAuB,EAExB,MAAM,yDAAyD,CAAC;AAGjE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAkCtE,MAAM,MAAM,8BAA8B,CACxC,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E,IAAI,CACN,mBAAmB,CAAC,kBAAkB,CAAC,EACrC,WAAW,GACX,UAAU,GACV,aAAa,GACb,aAAa,GACb,cAAc,GACd,aAAa,GACb,kBAAkB,GAClB,SAAS,GACT,SAAS,GACT,qBAAqB,GACrB,aAAa,GACb,YAAY,GACZ,SAAS,GACT,WAAW,GACX,kBAAkB,GAClB,cAAc,GACd,mBAAmB,GACnB,YAAY,CACf,GACC,IAAI,CACF,oBAAoB,CAAC,kBAAkB,CAAC,EACtC,0BAA0B,GAC1B,YAAY,GACZ,qBAAqB,GACrB,YAAY,GACZ,SAAS,GACT,mBAAmB,GACnB,eAAe,GACf,eAAe,GACf,gBAAgB,GAChB,cAAc,GACd,qBAAqB,GACrB,gBAAgB,GAChB,eAAe,GACf,gBAAgB,GAChB,kBAAkB,GAClB,OAAO,CACV,GACD,IAAI,CAAC,uBAAuB,EAAE,GAAG,GAAG,iBAAiB,CAAC,GAAG;IACvD,sBAAsB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;CACtE,CAAC;
|
|
1
|
+
{"version":3,"file":"MessageContent.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/MessageSimple/MessageContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,OAAO,EACL,mBAAmB,EAEpB,MAAM,iDAAiD,CAAC;AACzD,OAAO,EACL,oBAAoB,EAErB,MAAM,mDAAmD,CAAC;AAE3D,OAAO,EAGL,uBAAuB,EAExB,MAAM,yDAAyD,CAAC;AAGjE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAkCtE,MAAM,MAAM,8BAA8B,CACxC,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E,IAAI,CACN,mBAAmB,CAAC,kBAAkB,CAAC,EACrC,WAAW,GACX,UAAU,GACV,aAAa,GACb,aAAa,GACb,cAAc,GACd,aAAa,GACb,kBAAkB,GAClB,SAAS,GACT,SAAS,GACT,qBAAqB,GACrB,aAAa,GACb,YAAY,GACZ,SAAS,GACT,WAAW,GACX,kBAAkB,GAClB,cAAc,GACd,mBAAmB,GACnB,YAAY,CACf,GACC,IAAI,CACF,oBAAoB,CAAC,kBAAkB,CAAC,EACtC,0BAA0B,GAC1B,YAAY,GACZ,qBAAqB,GACrB,YAAY,GACZ,SAAS,GACT,mBAAmB,GACnB,eAAe,GACf,eAAe,GACf,gBAAgB,GAChB,cAAc,GACd,qBAAqB,GACrB,gBAAgB,GAChB,eAAe,GACf,gBAAgB,GAChB,kBAAkB,GAClB,OAAO,CACV,GACD,IAAI,CAAC,uBAAuB,EAAE,GAAG,GAAG,iBAAiB,CAAC,GAAG;IACvD,sBAAsB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;CACtE,CAAC;AAqcJ,MAAM,MAAM,mBAAmB,CAC7B,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E,OAAO,CAAC,IAAI,CAAC,8BAA8B,CAAC,kBAAkB,CAAC,EAAE,wBAAwB,CAAC,CAAC,GAC7F,IAAI,CAAC,8BAA8B,CAAC,kBAAkB,CAAC,EAAE,wBAAwB,CAAC,CAAC;AAErF;;GAEG;AACH,eAAO,MAAM,cAAc;;;CAwF1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageSimple.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/MessageSimple/MessageSimple.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,OAAO,EACL,mBAAmB,EAEpB,MAAM,iDAAiD,CAAC;AACzD,OAAO,EACL,oBAAoB,EAErB,MAAM,mDAAmD,CAAC;AAG3D,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAgBtE,MAAM,MAAM,6BAA6B,CACvC,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E,IAAI,CACN,mBAAmB,CAAC,kBAAkB,CAAC,EACvC,WAAW,GAAG,SAAS,GAAG,UAAU,GAAG,aAAa,GAAG,cAAc,GAAG,SAAS,CAClF,GACC,IAAI,CACF,oBAAoB,CAAC,kBAAkB,CAAC,EACtC,6BAA6B,GAC7B,gBAAgB,GAChB,eAAe,GACf,gBAAgB,GAChB,cAAc,CACjB,CAAC;
|
|
1
|
+
{"version":3,"file":"MessageSimple.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/MessageSimple/MessageSimple.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,OAAO,EACL,mBAAmB,EAEpB,MAAM,iDAAiD,CAAC;AACzD,OAAO,EACL,oBAAoB,EAErB,MAAM,mDAAmD,CAAC;AAG3D,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAgBtE,MAAM,MAAM,6BAA6B,CACvC,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E,IAAI,CACN,mBAAmB,CAAC,kBAAkB,CAAC,EACvC,WAAW,GAAG,SAAS,GAAG,UAAU,GAAG,aAAa,GAAG,cAAc,GAAG,SAAS,CAClF,GACC,IAAI,CACF,oBAAoB,CAAC,kBAAkB,CAAC,EACtC,6BAA6B,GAC7B,gBAAgB,GAChB,eAAe,GACf,gBAAgB,GAChB,cAAc,CACjB,CAAC;AAsKJ,MAAM,MAAM,kBAAkB,CAC5B,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E,OAAO,CAAC,6BAA6B,CAAC,kBAAkB,CAAC,CAAC,CAAC;AAE/D;;;GAGG;AACH,eAAO,MAAM,aAAa;;;CAiCzB,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { ChatContextValue } from '../../contexts';
|
|
|
3
3
|
import { MessageInputContextValue } from '../../contexts/messageInputContext/MessageInputContext';
|
|
4
4
|
import { MessagesContextValue } from '../../contexts/messagesContext/MessagesContext';
|
|
5
5
|
import type { DefaultStreamChatGenerics } from '../../types/types';
|
|
6
|
-
type FileUploadPreviewPropsWithContext<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<MessageInputContextValue<StreamChatGenerics>, 'fileUploads' | 'removeFile' | 'uploadFile' | 'setFileUploads'> & Pick<MessagesContextValue<StreamChatGenerics>, '
|
|
6
|
+
type FileUploadPreviewPropsWithContext<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<MessageInputContextValue<StreamChatGenerics>, 'fileUploads' | 'removeFile' | 'uploadFile' | 'setFileUploads' | 'AudioAttachmentUploadPreview'> & Pick<MessagesContextValue<StreamChatGenerics>, 'FileAttachmentIcon'> & Pick<ChatContextValue<StreamChatGenerics>, 'enableOfflineSupport'>;
|
|
7
7
|
export type FileUploadPreviewProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Partial<FileUploadPreviewPropsWithContext<StreamChatGenerics>>;
|
|
8
8
|
/**
|
|
9
9
|
* FileUploadPreview
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileUploadPreview.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageInput/FileUploadPreview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAO3D,OAAO,EAAE,gBAAgB,EAAkB,MAAM,gBAAgB,CAAC;AAClE,OAAO,EACL,wBAAwB,EAEzB,MAAM,wDAAwD,CAAC;AAChE,OAAO,EACL,oBAAoB,EAErB,MAAM,gDAAgD,CAAC;AAMxD,OAAO,KAAK,EAAE,yBAAyB,EAAc,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"FileUploadPreview.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageInput/FileUploadPreview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAO3D,OAAO,EAAE,gBAAgB,EAAkB,MAAM,gBAAgB,CAAC;AAClE,OAAO,EACL,wBAAwB,EAEzB,MAAM,wDAAwD,CAAC;AAChE,OAAO,EACL,oBAAoB,EAErB,MAAM,gDAAgD,CAAC;AAMxD,OAAO,KAAK,EAAE,yBAAyB,EAAc,MAAM,mBAAmB,CAAC;AAiH/E,KAAK,iCAAiC,CACpC,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E,IAAI,CACN,wBAAwB,CAAC,kBAAkB,CAAC,EAC5C,aAAa,GAAG,YAAY,GAAG,YAAY,GAAG,gBAAgB,GAAG,8BAA8B,CAChG,GACC,IAAI,CAAC,oBAAoB,CAAC,kBAAkB,CAAC,EAAE,oBAAoB,CAAC,GACpE,IAAI,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,EAAE,sBAAsB,CAAC,CAAC;AAgOrE,MAAM,MAAM,sBAAsB,CAChC,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E,OAAO,CAAC,iCAAiC,CAAC,kBAAkB,CAAC,CAAC,CAAC;AAEnE;;;GAGG;AACH,eAAO,MAAM,iBAAiB;;;CAwB7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputButtons.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageInput/InputButtons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EACL,wBAAwB,EAEzB,MAAM,wDAAwD,CAAC;AAIhE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAMnE,MAAM,MAAM,iBAAiB,CAC3B,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E,OAAO,CAAC,4BAA4B,CAAC,kBAAkB,CAAC,CAAC,CAAC;AAE9D,MAAM,MAAM,4BAA4B,CACtC,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E,IAAI,CACN,wBAAwB,CAAC,kBAAkB,CAAC,EAC1C,cAAc,GACd,gBAAgB,GAChB,aAAa,GACb,aAAa,GACb,eAAe,GACf,gBAAgB,GAChB,mBAAmB,GACnB,oBAAoB,GACpB,gBAAgB,GAChB,oBAAoB,GACpB,iBAAiB,GACjB,MAAM,GACN,wBAAwB,CAC3B,CAAC;AAEF,eAAO,MAAM,uBAAuB,yKAkDnC,CAAC;
|
|
1
|
+
{"version":3,"file":"InputButtons.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageInput/InputButtons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EACL,wBAAwB,EAEzB,MAAM,wDAAwD,CAAC;AAIhE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAMnE,MAAM,MAAM,iBAAiB,CAC3B,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E,OAAO,CAAC,4BAA4B,CAAC,kBAAkB,CAAC,CAAC,CAAC;AAE9D,MAAM,MAAM,4BAA4B,CACtC,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E,IAAI,CACN,wBAAwB,CAAC,kBAAkB,CAAC,EAC1C,cAAc,GACd,gBAAgB,GAChB,aAAa,GACb,aAAa,GACb,eAAe,GACf,gBAAgB,GAChB,mBAAmB,GACnB,oBAAoB,GACpB,gBAAgB,GAChB,oBAAoB,GACpB,iBAAiB,GACjB,MAAM,GACN,wBAAwB,CAC3B,CAAC;AAEF,eAAO,MAAM,uBAAuB,yKAkDnC,CAAC;AA8DF,eAAO,MAAM,YAAY,2KAyCxB,CAAC"}
|
|
@@ -8,7 +8,7 @@ import { SuggestionsContextValue } from '../../contexts/suggestionsContext/Sugge
|
|
|
8
8
|
import { ThreadContextValue } from '../../contexts/threadContext/ThreadContext';
|
|
9
9
|
import { TranslationContextValue } from '../../contexts/translationContext/TranslationContext';
|
|
10
10
|
import type { DefaultStreamChatGenerics } from '../../types/types';
|
|
11
|
-
type MessageInputPropsWithContext<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<AttachmentPickerContextValue, 'AttachmentPickerSelectionBar'> & Pick<ChatContextValue<StreamChatGenerics>, 'isOnline'> & Pick<ChannelContextValue<StreamChatGenerics>, 'disabled' | 'members' | 'threadList' | 'watchers'> & Pick<MessageInputContextValue<StreamChatGenerics>, 'additionalTextInputProps' | 'asyncIds' | 'asyncUploads' | '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' | 'removeFile' | 'removeImage' | 'uploadNewFile' | 'uploadNewImage'> & Pick<MessagesContextValue<StreamChatGenerics>, 'Reply'> & Pick<SuggestionsContextValue<StreamChatGenerics>, 'AutoCompleteSuggestionHeader' | 'AutoCompleteSuggestionItem' | 'AutoCompleteSuggestionList' | 'suggestions' | 'triggerType'> & Pick<ThreadContextValue<StreamChatGenerics>, 'thread'> & Pick<TranslationContextValue, 't'>;
|
|
11
|
+
type MessageInputPropsWithContext<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<AttachmentPickerContextValue, 'AttachmentPickerSelectionBar'> & Pick<ChatContextValue<StreamChatGenerics>, 'isOnline'> & Pick<ChannelContextValue<StreamChatGenerics>, 'disabled' | 'members' | 'threadList' | 'watchers'> & Pick<MessageInputContextValue<StreamChatGenerics>, 'additionalTextInputProps' | 'asyncIds' | 'audioRecordingEnabled' | 'asyncMessagesLockDistance' | 'asyncMessagesMinimumPressDuration' | 'asyncMessagesSlideToCancelDistance' | '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'> & Pick<MessagesContextValue<StreamChatGenerics>, 'Reply'> & Pick<SuggestionsContextValue<StreamChatGenerics>, 'AutoCompleteSuggestionHeader' | 'AutoCompleteSuggestionItem' | 'AutoCompleteSuggestionList' | 'suggestions' | 'triggerType'> & Pick<ThreadContextValue<StreamChatGenerics>, 'thread'> & Pick<TranslationContextValue, 't'>;
|
|
12
12
|
export type MessageInputProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Partial<MessageInputPropsWithContext<StreamChatGenerics>>;
|
|
13
13
|
/**
|
|
14
14
|
* 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,KAAuC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"MessageInput.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageInput/MessageInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AA6B5D,OAAO,EAAE,gBAAgB,EAAkB,MAAM,gBAAgB,CAAC;AAClE,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;AAExD,OAAO,EACL,uBAAuB,EAExB,MAAM,sDAAsD,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAoB,MAAM,4CAA4C,CAAC;AAClG,OAAO,EACL,uBAAuB,EAExB,MAAM,sDAAsD,CAAC;AAG9D,OAAO,KAAK,EAAS,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAyC1E,KAAK,4BAA4B,CAC/B,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E,IAAI,CAAC,4BAA4B,EAAE,8BAA8B,CAAC,GACpE,IAAI,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,EAAE,UAAU,CAAC,GACtD,IAAI,CACF,mBAAmB,CAAC,kBAAkB,CAAC,EACvC,UAAU,GAAG,SAAS,GAAG,YAAY,GAAG,UAAU,CACnD,GACD,IAAI,CACF,wBAAwB,CAAC,kBAAkB,CAAC,EAC1C,0BAA0B,GAC1B,UAAU,GACV,uBAAuB,GACvB,2BAA2B,GAC3B,mCAAmC,GACnC,oCAAoC,GACpC,cAAc,GACd,eAAe,GACf,0BAA0B,GAC1B,6BAA6B,GAC7B,uBAAuB,GACvB,gBAAgB,GAChB,eAAe,GACf,mBAAmB,GACnB,yBAAyB,GACzB,uBAAuB,GACvB,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,CACnB,GACD,IAAI,CAAC,oBAAoB,CAAC,kBAAkB,CAAC,EAAE,OAAO,CAAC,GACvD,IAAI,CACF,uBAAuB,CAAC,kBAAkB,CAAC,EACzC,8BAA8B,GAC9B,4BAA4B,GAC5B,4BAA4B,GAC5B,aAAa,GACb,aAAa,CAChB,GACD,IAAI,CAAC,kBAAkB,CAAC,kBAAkB,CAAC,EAAE,QAAQ,CAAC,GACtD,IAAI,CAAC,uBAAuB,EAAE,GAAG,CAAC,CAAC;AAw1BrC,MAAM,MAAM,iBAAiB,CAC3B,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E,OAAO,CAAC,4BAA4B,CAAC,kBAAkB,CAAC,CAAC,CAAC;AAE9D;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY;;;CAuJxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SendButton.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageInput/SendButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EACL,wBAAwB,EAEzB,MAAM,wDAAwD,CAAC;AAMhE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAEnE,KAAK,0BAA0B,CAC7B,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E,IAAI,CAAC,wBAAwB,CAAC,kBAAkB,CAAC,EAAE,aAAa,GAAG,aAAa,CAAC,GAAG;IACtF,0BAA0B,CAAC,QAAQ,EAAE,OAAO,CAAC;CAC9C,CAAC;
|
|
1
|
+
{"version":3,"file":"SendButton.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageInput/SendButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EACL,wBAAwB,EAEzB,MAAM,wDAAwD,CAAC;AAMhE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAEnE,KAAK,0BAA0B,CAC7B,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E,IAAI,CAAC,wBAAwB,CAAC,kBAAkB,CAAC,EAAE,aAAa,GAAG,aAAa,CAAC,GAAG;IACtF,0BAA0B,CAAC,QAAQ,EAAE,OAAO,CAAC;CAC9C,CAAC;AAiEF,MAAM,MAAM,eAAe,CACzB,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E,OAAO,CAAC,0BAA0B,CAAC,kBAAkB,CAAC,CAAC,CAAC;AAE5D;;GAEG;AACH,eAAO,MAAM,UAAU;;;CActB,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
import { ChannelContextValue } from '../../../../contexts/channelContext/ChannelContext';
|
|
4
|
+
import { MessageInputContextValue } from '../../../../contexts/messageInputContext/MessageInputContext';
|
|
5
|
+
import { AudioRecordingReturnType } from '../../../../native';
|
|
6
|
+
import type { DefaultStreamChatGenerics } from '../../../../types/types';
|
|
7
|
+
type AudioRecorderPropsWithContext<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<ChannelContextValue<StreamChatGenerics>, 'disabled'> & Pick<MessageInputContextValue<StreamChatGenerics>, 'asyncMessagesMultiSendEnabled'> & {
|
|
8
|
+
/**
|
|
9
|
+
* Function to stop and delete the voice recording.
|
|
10
|
+
*/
|
|
11
|
+
deleteVoiceRecording: () => Promise<void>;
|
|
12
|
+
/**
|
|
13
|
+
* Boolean used to show if the voice recording state is locked. This makes sure the mic button shouldn't be pressed any longer.
|
|
14
|
+
* When the mic is locked the `AudioRecordingInProgress` component shows up.
|
|
15
|
+
*/
|
|
16
|
+
micLocked: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* The current voice recording that is in progress.
|
|
19
|
+
*/
|
|
20
|
+
recording: AudioRecordingReturnType;
|
|
21
|
+
/**
|
|
22
|
+
* Boolean to determine if the recording has been stopped.
|
|
23
|
+
*/
|
|
24
|
+
recordingStopped: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Function to stop the ongoing voice recording.
|
|
27
|
+
*/
|
|
28
|
+
stopVoiceRecording: () => Promise<void>;
|
|
29
|
+
/**
|
|
30
|
+
* Function to upload the voice recording.
|
|
31
|
+
*/
|
|
32
|
+
uploadVoiceRecording: (multiSendEnabled: boolean) => Promise<void>;
|
|
33
|
+
/**
|
|
34
|
+
* The duration of the voice recording.
|
|
35
|
+
*/
|
|
36
|
+
recordingDuration?: number;
|
|
37
|
+
/**
|
|
38
|
+
* Style used in slide to cancel container.
|
|
39
|
+
*/
|
|
40
|
+
slideToCancelStyle?: StyleProp<ViewStyle>;
|
|
41
|
+
};
|
|
42
|
+
export type AudioRecorderProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Partial<AudioRecorderPropsWithContext<StreamChatGenerics>> & Pick<AudioRecorderPropsWithContext<StreamChatGenerics>, 'deleteVoiceRecording' | 'micLocked' | 'recording' | 'recordingStopped' | 'stopVoiceRecording' | 'uploadVoiceRecording'>;
|
|
43
|
+
/**
|
|
44
|
+
* Component to display the Recording UI in the Message Input.
|
|
45
|
+
*/
|
|
46
|
+
export declare const AudioRecorder: {
|
|
47
|
+
<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: AudioRecorderProps<StreamChatGenerics>): React.JSX.Element;
|
|
48
|
+
displayName: string;
|
|
49
|
+
};
|
|
50
|
+
export {};
|
|
51
|
+
//# sourceMappingURL=AudioRecorder.d.ts.map
|
package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecorder.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AudioRecorder.d.ts","sourceRoot":"","sources":["../../../../../../src/components/MessageInput/components/AudioRecorder/AudioRecorder.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAa,SAAS,EAA0B,SAAS,EAAE,MAAM,cAAc,CAAC;AAMvF,OAAO,EACL,mBAAmB,EAEpB,MAAM,oDAAoD,CAAC;AAC5D,OAAO,EACL,wBAAwB,EAEzB,MAAM,8DAA8D,CAAC;AAItE,OAAO,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAEzE,KAAK,6BAA6B,CAChC,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E,IAAI,CAAC,mBAAmB,CAAC,kBAAkB,CAAC,EAAE,UAAU,CAAC,GAC3D,IAAI,CAAC,wBAAwB,CAAC,kBAAkB,CAAC,EAAE,+BAA+B,CAAC,GAAG;IACpF;;OAEG;IACH,oBAAoB,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1C;;;OAGG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,SAAS,EAAE,wBAAwB,CAAC;IACpC;;OAEG;IACH,gBAAgB,EAAE,OAAO,CAAC;IAC1B;;OAEG;IACH,kBAAkB,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACxC;;OAEG;IACH,oBAAoB,EAAE,CAAC,gBAAgB,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACnE;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,kBAAkB,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC3C,CAAC;AAsMJ,MAAM,MAAM,kBAAkB,CAC5B,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E,OAAO,CAAC,6BAA6B,CAAC,kBAAkB,CAAC,CAAC,GAC5D,IAAI,CACF,6BAA6B,CAAC,kBAAkB,CAAC,EAC/C,sBAAsB,GACtB,WAAW,GACX,WAAW,GACX,kBAAkB,GAClB,oBAAoB,GACpB,sBAAsB,CACzB,CAAC;AAEJ;;GAEG;AACH,eAAO,MAAM,aAAa;;;CAiBzB,CAAC"}
|
package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecordingButton.d.ts
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ChannelContextValue } from '../../../../contexts/channelContext/ChannelContext';
|
|
3
|
+
import { MessageInputContextValue } from '../../../../contexts/messageInputContext/MessageInputContext';
|
|
4
|
+
import { AudioRecordingReturnType } from '../../../../native';
|
|
5
|
+
import type { DefaultStreamChatGenerics } from '../../../../types/types';
|
|
6
|
+
type AudioRecordingButtonPropsWithContext<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<ChannelContextValue<StreamChatGenerics>, 'disabled'> & Pick<MessageInputContextValue<StreamChatGenerics>, 'asyncMessagesMinimumPressDuration'> & {
|
|
7
|
+
/**
|
|
8
|
+
* The current voice recording that is in progress.
|
|
9
|
+
*/
|
|
10
|
+
recording: AudioRecordingReturnType;
|
|
11
|
+
/**
|
|
12
|
+
* Size of the mic button.
|
|
13
|
+
*/
|
|
14
|
+
buttonSize?: number;
|
|
15
|
+
/**
|
|
16
|
+
* Handler to determine what should happen on long press of the mic button.
|
|
17
|
+
*/
|
|
18
|
+
handleLongPress?: () => void;
|
|
19
|
+
/**
|
|
20
|
+
* Handler to determine what should happen on press of the mic button.
|
|
21
|
+
*/
|
|
22
|
+
handlePress?: () => void;
|
|
23
|
+
/**
|
|
24
|
+
* Boolean to determine if the audio recording permissions are granted.
|
|
25
|
+
*/
|
|
26
|
+
permissionsGranted?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Function to start the voice recording.
|
|
29
|
+
*/
|
|
30
|
+
startVoiceRecording?: () => Promise<void>;
|
|
31
|
+
};
|
|
32
|
+
export type AudioRecordingButtonProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Partial<AudioRecordingButtonPropsWithContext<StreamChatGenerics>> & {
|
|
33
|
+
recording: AudioRecordingReturnType;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Component to display the mic button on the Message Input.
|
|
37
|
+
*/
|
|
38
|
+
export declare const AudioRecordingButton: {
|
|
39
|
+
<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: AudioRecordingButtonProps<StreamChatGenerics>): React.JSX.Element;
|
|
40
|
+
displayName: string;
|
|
41
|
+
};
|
|
42
|
+
export {};
|
|
43
|
+
//# sourceMappingURL=AudioRecordingButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AudioRecordingButton.d.ts","sourceRoot":"","sources":["../../../../../../src/components/MessageInput/components/AudioRecorder/AudioRecordingButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EACL,mBAAmB,EAEpB,MAAM,oDAAoD,CAAC;AAC5D,OAAO,EACL,wBAAwB,EAEzB,MAAM,8DAA8D,CAAC;AAItE,OAAO,EAAE,wBAAwB,EAAiB,MAAM,oBAAoB,CAAC;AAE7E,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAEzE,KAAK,oCAAoC,CACvC,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E,IAAI,CAAC,mBAAmB,CAAC,kBAAkB,CAAC,EAAE,UAAU,CAAC,GAC3D,IAAI,CAAC,wBAAwB,CAAC,kBAAkB,CAAC,EAAE,mCAAmC,CAAC,GAAG;IACxF;;OAEG;IACH,SAAS,EAAE,wBAAwB,CAAC;IACpC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB;;OAEG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC3C,CAAC;AAmHJ,MAAM,MAAM,yBAAyB,CACnC,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E,OAAO,CAAC,oCAAoC,CAAC,kBAAkB,CAAC,CAAC,GAAG;IACtE,SAAS,EAAE,wBAAwB,CAAC;CACrC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;CAWhC,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { MessageInputContextValue } from '../../../../contexts/messageInputContext/MessageInputContext';
|
|
3
|
+
import type { DefaultStreamChatGenerics } from '../../../../types/types';
|
|
4
|
+
type AudioRecordingInProgressPropsWithContext<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<MessageInputContextValue<StreamChatGenerics>, 'AudioRecordingWaveform'> & {
|
|
5
|
+
/**
|
|
6
|
+
* The waveform data to be presented to show the audio levels.
|
|
7
|
+
*/
|
|
8
|
+
waveformData: number[];
|
|
9
|
+
/**
|
|
10
|
+
* Maximum number of waveform lines that should be rendered in the UI.
|
|
11
|
+
*/
|
|
12
|
+
maxDataPointsDrawn?: number;
|
|
13
|
+
/**
|
|
14
|
+
* The duration of the voice recording.
|
|
15
|
+
*/
|
|
16
|
+
recordingDuration?: number;
|
|
17
|
+
};
|
|
18
|
+
export type AudioRecordingInProgressProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Partial<AudioRecordingInProgressPropsWithContext<StreamChatGenerics>> & {
|
|
19
|
+
waveformData: number[];
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Component displayed when the audio is in the recording state.
|
|
23
|
+
*/
|
|
24
|
+
export declare const AudioRecordingInProgress: {
|
|
25
|
+
<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: AudioRecordingInProgressProps<StreamChatGenerics>): React.JSX.Element;
|
|
26
|
+
displayName: string;
|
|
27
|
+
};
|
|
28
|
+
export {};
|
|
29
|
+
//# sourceMappingURL=AudioRecordingInProgress.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AudioRecordingInProgress.d.ts","sourceRoot":"","sources":["../../../../../../src/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EACL,wBAAwB,EAEzB,MAAM,8DAA8D,CAAC;AAGtE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAEzE,KAAK,wCAAwC,CAC3C,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E,IAAI,CAAC,wBAAwB,CAAC,kBAAkB,CAAC,EAAE,wBAAwB,CAAC,GAAG;IACjF;;OAEG;IACH,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAqDF,MAAM,MAAM,6BAA6B,CACvC,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E,OAAO,CAAC,wCAAwC,CAAC,kBAAkB,CAAC,CAAC,GAAG;IAC1E,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;CAQpC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
export type AudioRecordingLockIndicatorProps = {
|
|
4
|
+
/**
|
|
5
|
+
* Boolean used to show if the voice recording state is locked. This makes sure the mic button shouldn't be pressed any longer.
|
|
6
|
+
* When the mic is locked the `AudioRecordingInProgress` component shows up.
|
|
7
|
+
*/
|
|
8
|
+
micLocked: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Height of the message input, to apply necessary position adjustments to this component.
|
|
11
|
+
*/
|
|
12
|
+
messageInputHeight?: number;
|
|
13
|
+
/**
|
|
14
|
+
* Styles of the lock indicator.
|
|
15
|
+
*/
|
|
16
|
+
style?: StyleProp<ViewStyle>;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Component displayed to show the lock state of the recording when the button is slided up.
|
|
20
|
+
*/
|
|
21
|
+
export declare const AudioRecordingLockIndicator: ({ messageInputHeight, micLocked, style, }: AudioRecordingLockIndicatorProps) => React.JSX.Element | null;
|
|
22
|
+
//# sourceMappingURL=AudioRecordingLockIndicator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AudioRecordingLockIndicator.d.ts","sourceRoot":"","sources":["../../../../../../src/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAc,SAAS,EAAE,MAAM,cAAc,CAAC;AAOhE,MAAM,MAAM,gCAAgC,GAAG;IAC7C;;;OAGG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,2BAA2B,8CAIrC,gCAAgC,6BA0ClC,CAAC"}
|
package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecordingPreview.d.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type AudioRecordingPreviewProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Boolean used to show the paused state of the player.
|
|
5
|
+
*/
|
|
6
|
+
paused: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Number used to show the current position of the audio being played.
|
|
9
|
+
*/
|
|
10
|
+
position: number;
|
|
11
|
+
/**
|
|
12
|
+
* Number used to show the percentage of progress of the audio being played. It should be in 0-1 range.
|
|
13
|
+
*/
|
|
14
|
+
progress: number;
|
|
15
|
+
/**
|
|
16
|
+
* The waveform data to be presented to show the audio levels.
|
|
17
|
+
*/
|
|
18
|
+
waveformData: number[];
|
|
19
|
+
/**
|
|
20
|
+
* Function to play or pause the audio player.
|
|
21
|
+
*/
|
|
22
|
+
onVoicePlayerPlayPause?: () => Promise<void>;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Component displayed when the audio is recorded and can be previewed.
|
|
26
|
+
*/
|
|
27
|
+
export declare const AudioRecordingPreview: {
|
|
28
|
+
(props: AudioRecordingPreviewProps): React.JSX.Element;
|
|
29
|
+
displayName: string;
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=AudioRecordingPreview.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AudioRecordingPreview.d.ts","sourceRoot":"","sources":["../../../../../../src/components/MessageInput/components/AudioRecorder/AudioRecordingPreview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B,MAAM,MAAM,0BAA0B,GAAG;IACvC;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB;;OAEG;IACH,sBAAsB,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC9C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB;YAAW,0BAA0B;;CAwCtE,CAAC"}
|
package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecordingWaveform.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type AudioRecordingWaveformProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Maximum number of waveform lines that should be rendered in the UI.
|
|
5
|
+
*/
|
|
6
|
+
maxDataPointsDrawn: number;
|
|
7
|
+
/**
|
|
8
|
+
* The waveform data to be presented to show the audio levels.
|
|
9
|
+
*/
|
|
10
|
+
waveformData: number[];
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Waveform Component displayed when the audio is in the recording state.
|
|
14
|
+
*/
|
|
15
|
+
export declare const AudioRecordingWaveform: {
|
|
16
|
+
(props: AudioRecordingWaveformProps): React.JSX.Element;
|
|
17
|
+
displayName: string;
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=AudioRecordingWaveform.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AudioRecordingWaveform.d.ts","sourceRoot":"","sources":["../../../../../../src/components/MessageInput/components/AudioRecorder/AudioRecordingWaveform.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,MAAM,MAAM,2BAA2B,GAAG;IACxC;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,sBAAsB;YAAW,2BAA2B;;CA2BxE,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AudioRecordingReturnType } from '../../../native';
|
|
3
|
+
export type RecordingStatusStates = 'idle' | 'recording' | 'stopped';
|
|
4
|
+
/**
|
|
5
|
+
* The hook that controls all the async audio core features including start/stop or recording, player, upload/delete of the recorded audio.
|
|
6
|
+
*/
|
|
7
|
+
export declare const useAudioController: () => {
|
|
8
|
+
deleteVoiceRecording: () => Promise<void>;
|
|
9
|
+
micLocked: boolean;
|
|
10
|
+
onVoicePlayerPlayPause: () => Promise<void>;
|
|
11
|
+
paused: boolean;
|
|
12
|
+
permissionsGranted: boolean;
|
|
13
|
+
position: number;
|
|
14
|
+
progress: number;
|
|
15
|
+
recording: AudioRecordingReturnType;
|
|
16
|
+
recordingDuration: number;
|
|
17
|
+
recordingStatus: RecordingStatusStates;
|
|
18
|
+
setMicLocked: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
19
|
+
setRecording: import("react").Dispatch<import("react").SetStateAction<AudioRecordingReturnType>>;
|
|
20
|
+
setRecordingDuration: import("react").Dispatch<import("react").SetStateAction<number>>;
|
|
21
|
+
setRecordingStatus: import("react").Dispatch<import("react").SetStateAction<RecordingStatusStates>>;
|
|
22
|
+
setWaveformData: import("react").Dispatch<import("react").SetStateAction<number[]>>;
|
|
23
|
+
startVoiceRecording: () => Promise<void>;
|
|
24
|
+
stopVoiceRecording: () => Promise<void>;
|
|
25
|
+
uploadVoiceRecording: (multiSendEnabled: boolean) => Promise<void>;
|
|
26
|
+
waveformData: number[];
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=useAudioController.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAudioController.d.ts","sourceRoot":"","sources":["../../../../../src/components/MessageInput/hooks/useAudioController.tsx"],"names":[],"mappings":";AAKA,OAAO,EAEL,wBAAwB,EAMzB,MAAM,iBAAiB,CAAC;AAKzB,MAAM,MAAM,qBAAqB,GAAG,MAAM,GAAG,WAAW,GAAG,SAAS,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;6CAoNyB,OAAO;;CAoD9D,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const resampleWaveformData: (waveformData: number[], amplitudesCount: number) => number[];
|
|
2
|
+
/**
|
|
3
|
+
* The downSample function uses the Largest-Triangle-Three-Buckets (LTTB) algorithm.
|
|
4
|
+
* See the thesis Downsampling Time Series for Visual Representation by Sveinn Steinarsson for more (https://skemman.is/bitstream/1946/15343/3/SS_MSthesis.pdf)
|
|
5
|
+
* @param data
|
|
6
|
+
* @param targetOutputSize
|
|
7
|
+
*/
|
|
8
|
+
export declare function downSample(data: number[], targetOutputSize: number): number[];
|
|
9
|
+
export declare const divMod: (num: number, divisor: number) => number[];
|
|
10
|
+
export declare const upSample: (values: number[], targetSize: number) => number[];
|
|
11
|
+
//# sourceMappingURL=audioSampling.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audioSampling.d.ts","sourceRoot":"","sources":["../../../../../src/components/MessageInput/utils/audioSampling.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,iBAAkB,MAAM,EAAE,mBAAmB,MAAM,aAKvC,CAAC;AAE9C;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,gBAAgB,EAAE,MAAM,GAAG,MAAM,EAAE,CAoD7E;AASD,eAAO,MAAM,MAAM,QAAS,MAAM,WAAW,MAAM,aAA+C,CAAC;AAWnG,eAAO,MAAM,QAAQ,WAAY,MAAM,EAAE,cAAc,MAAM,aAsB5D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normalizeAudioLevel.d.ts","sourceRoot":"","sources":["../../../../../src/components/MessageInput/utils/normalizeAudioLevel.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,mBAAmB,UAAW,MAAM,cAAc,MAAM,WAgBpE,CAAC"}
|
|
@@ -2,10 +2,10 @@ import React from 'react';
|
|
|
2
2
|
export type ProgressControlProps = {
|
|
3
3
|
duration: number;
|
|
4
4
|
filledColor: string;
|
|
5
|
-
onPlayPause: (status?: boolean) => void;
|
|
6
5
|
progress: number;
|
|
7
6
|
testID: string;
|
|
8
|
-
width: number;
|
|
7
|
+
width: number | string;
|
|
8
|
+
onPlayPause?: (status?: boolean) => void;
|
|
9
9
|
onProgressDrag?: (progress: number) => void;
|
|
10
10
|
};
|
|
11
11
|
export declare const ProgressControl: React.MemoExoticComponent<(props: ProgressControlProps) => React.JSX.Element>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProgressControl.d.ts","sourceRoot":"","sources":["../../../../src/components/ProgressControl/ProgressControl.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAazC,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,
|
|
1
|
+
{"version":3,"file":"ProgressControl.d.ts","sourceRoot":"","sources":["../../../../src/components/ProgressControl/ProgressControl.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAazC,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACzC,cAAc,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CAC7C,CAAC;AAoBF,eAAO,MAAM,eAAe,oCAClB,oBAAoB,uBA4F7B,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type WaveProgressBarProps = {
|
|
3
|
+
progress: number;
|
|
4
|
+
waveformData: number[];
|
|
5
|
+
amplitudesCount?: number;
|
|
6
|
+
filledColor?: string;
|
|
7
|
+
onPlayPause?: (status?: boolean) => void;
|
|
8
|
+
onProgressDrag?: (progress: number) => void;
|
|
9
|
+
};
|
|
10
|
+
export declare const WaveProgressBar: React.MemoExoticComponent<(props: WaveProgressBarProps) => React.JSX.Element>;
|
|
11
|
+
//# sourceMappingURL=WaveProgressBar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WaveProgressBar.d.ts","sourceRoot":"","sources":["../../../../src/components/ProgressControl/WaveProgressBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAc5D,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACzC,cAAc,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CAC7C,CAAC;AA2BF,eAAO,MAAM,eAAe,oCAClB,oBAAoB,uBAqG7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Reply.d.ts","sourceRoot":"","sources":["../../../../src/components/Reply/Reply.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Reply.d.ts","sourceRoot":"","sources":["../../../../src/components/Reply/Reply.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAE7D,OAAO,EAAS,UAAU,EAA0B,SAAS,EAAE,MAAM,cAAc,CAAC;AASpF,OAAO,EAEL,wBAAwB,EACzB,MAAM,wDAAwD,CAAC;AAChE,OAAO,EACL,oBAAoB,EAErB,MAAM,gDAAgD,CAAC;AAExD,OAAO,EACL,uBAAuB,EAExB,MAAM,sDAAsD,CAAC;AAC9D,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAkDnE,KAAK,qBAAqB,CACxB,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E,IAAI,CAAC,wBAAwB,CAAC,kBAAkB,CAAC,EAAE,eAAe,CAAC,GACrE,IAAI,CAAC,oBAAoB,CAAC,kBAAkB,CAAC,EAAE,oBAAoB,GAAG,eAAe,CAAC,GACtF,IAAI,CAAC,uBAAuB,EAAE,GAAG,CAAC,GAAG;IACnC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,OAAO,CAAC;QACf,SAAS,EAAE,SAAS,CAAC;QACrB,uBAAuB,EAAE,SAAS,CAAC;QACnC,eAAe,EAAE,UAAU,CAAC;QAC5B,gBAAgB,EAAE,SAAS,CAAC;QAC5B,aAAa,EAAE,SAAS,CAAC;KAC1B,CAAC,CAAC;CACJ,CAAC;AAmRJ,MAAM,MAAM,UAAU,CACpB,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E,OAAO,CAAC,qBAAqB,CAAC,kBAAkB,CAAC,CAAC,CAAC;AAEvD;;GAEG;AACH,eAAO,MAAM,KAAK;;;CA+BjB,CAAC"}
|
|
@@ -102,6 +102,12 @@ export * from './Message/utils/messageActions';
|
|
|
102
102
|
export * from '../utils/removeReservedFields';
|
|
103
103
|
export * from './MessageInput/AttachButton';
|
|
104
104
|
export * from './MessageInput/CommandsButton';
|
|
105
|
+
export * from './MessageInput/components/AudioRecorder/AudioRecorder';
|
|
106
|
+
export * from './MessageInput/components/AudioRecorder/AudioRecordingButton';
|
|
107
|
+
export * from './MessageInput/components/AudioRecorder/AudioRecordingInProgress';
|
|
108
|
+
export * from './MessageInput/components/AudioRecorder/AudioRecordingLockIndicator';
|
|
109
|
+
export * from './MessageInput/components/AudioRecorder/AudioRecordingPreview';
|
|
110
|
+
export * from './MessageInput/components/AudioRecorder/AudioRecordingWaveform';
|
|
105
111
|
export * from './MessageInput/CooldownTimer';
|
|
106
112
|
export * from './MessageInput/FileUploadPreview';
|
|
107
113
|
export * from './MessageInput/ImageUploadPreview';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mBAAmB,CAAC;AAClC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kCAAkC,CAAC;AACjD,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8CAA8C,CAAC;AAE7D,cAAc,qCAAqC,CAAC;AACpD,cAAc,iEAAiE,CAAC;AAChF,cAAc,qDAAqD,CAAC;AACpE,cAAc,0DAA0D,CAAC;AACzE,cAAc,4DAA4D,CAAC;AAC3E,cAAc,kDAAkD,CAAC;AACjE,cAAc,gDAAgD,CAAC;AAC/D,cAAc,6DAA6D,CAAC;AAC5E,cAAc,iDAAiD,CAAC;AAEhE,cAAc,uCAAuC,CAAC;AACtD,cAAc,kDAAkD,CAAC;AACjE,cAAc,gDAAgD,CAAC;AAC/D,cAAc,gDAAgD,CAAC;AAE/D,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AAErC,cAAc,mBAAmB,CAAC;AAClC,cAAc,yCAAyC,CAAC;AACxD,c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