@exode-team/react-recorder 1.0.3 → 1.1.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/dist/{AudioRecorder.d.ts → components/AudioRecorder.d.ts} +1 -1
- package/dist/components/AudioRecorder.d.ts.map +1 -0
- package/dist/components/IdleControl/IdleControl.d.ts +13 -0
- package/dist/components/IdleControl/IdleControl.d.ts.map +1 -0
- package/dist/{atoms/IdleControlAtom.styled.d.ts → components/IdleControl/IdleControl.styled.d.ts} +2 -2
- package/dist/components/IdleControl/IdleControl.styled.d.ts.map +1 -0
- package/dist/{atoms/RecordingShellAtom.d.ts → components/RecordingShell/RecordingShell.d.ts} +4 -4
- package/dist/components/RecordingShell/RecordingShell.d.ts.map +1 -0
- package/dist/{atoms/RecordingShellAtom.styled.d.ts → components/RecordingShell/RecordingShell.styled.d.ts} +2 -2
- package/dist/components/RecordingShell/RecordingShell.styled.d.ts.map +1 -0
- package/dist/components/VoiceMessagePlayer/VoiceMessagePlayer.d.ts +16 -0
- package/dist/components/VoiceMessagePlayer/VoiceMessagePlayer.d.ts.map +1 -0
- package/dist/components/VoiceMessagePlayer/VoiceMessagePlayer.styled.d.ts +13 -0
- package/dist/components/VoiceMessagePlayer/VoiceMessagePlayer.styled.d.ts.map +1 -0
- package/dist/components/VoiceRecorderInput/VoiceRecorderInput.d.ts +22 -0
- package/dist/components/VoiceRecorderInput/VoiceRecorderInput.d.ts.map +1 -0
- package/dist/components/VoiceRecorderInput/VoiceRecorderInput.styled.d.ts +18 -0
- package/dist/components/VoiceRecorderInput/VoiceRecorderInput.styled.d.ts.map +1 -0
- package/dist/{atoms/WaveformBarsAtom.d.ts → components/WaveformBars/WaveformBars.d.ts} +4 -4
- package/dist/components/WaveformBars/WaveformBars.d.ts.map +1 -0
- package/dist/hooks/index.d.ts +9 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/useAudioPlayback.d.ts +19 -0
- package/dist/hooks/useAudioPlayback.d.ts.map +1 -0
- package/dist/hooks/useMediaRecorder.d.ts +27 -0
- package/dist/hooks/useMediaRecorder.d.ts.map +1 -0
- package/dist/hooks/useRecorderVisualization.d.ts +2 -0
- package/dist/hooks/useRecorderVisualization.d.ts.map +1 -1
- package/dist/hooks/useRecordingTiming.d.ts.map +1 -1
- package/dist/hooks/useVoiceMessagePlayer.d.ts +26 -0
- package/dist/hooks/useVoiceMessagePlayer.d.ts.map +1 -0
- package/dist/hooks/useVoiceRecorder.d.ts +0 -1
- package/dist/hooks/useVoiceRecorder.d.ts.map +1 -1
- package/dist/index.cjs +1328 -17616
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +17 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1324 -17620
- package/dist/index.js.map +1 -1
- package/dist/platform/animation-frame-adapter.d.ts +8 -0
- package/dist/platform/animation-frame-adapter.d.ts.map +1 -0
- package/dist/platform/audio-analyzer-adapter.d.ts +13 -0
- package/dist/platform/audio-analyzer-adapter.d.ts.map +1 -0
- package/dist/platform/audio-playback-adapter.d.ts +19 -0
- package/dist/platform/audio-playback-adapter.d.ts.map +1 -0
- package/dist/platform/audio-playback-manager.d.ts +14 -0
- package/dist/platform/audio-playback-manager.d.ts.map +1 -0
- package/dist/platform/index.d.ts +15 -0
- package/dist/platform/index.d.ts.map +1 -0
- package/dist/platform/media-recorder-adapter.d.ts +20 -0
- package/dist/platform/media-recorder-adapter.d.ts.map +1 -0
- package/dist/platform/microphone.d.ts +9 -0
- package/dist/platform/microphone.d.ts.map +1 -0
- package/dist/types/index.d.ts +9 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/{types.d.ts → types/recorder.d.ts} +3 -20
- package/dist/types/recorder.d.ts.map +1 -0
- package/dist/types/upload.d.ts +24 -0
- package/dist/types/upload.d.ts.map +1 -0
- package/dist/utils/format.d.ts +7 -0
- package/dist/utils/format.d.ts.map +1 -0
- package/dist/utils/index.d.ts +8 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/math.d.ts +8 -0
- package/dist/utils/math.d.ts.map +1 -0
- package/package.json +5 -5
- package/dist/AudioRecorder.d.ts.map +0 -1
- package/dist/atoms/IdleControlAtom.d.ts +0 -13
- package/dist/atoms/IdleControlAtom.d.ts.map +0 -1
- package/dist/atoms/IdleControlAtom.styled.d.ts.map +0 -1
- package/dist/atoms/RecordingShellAtom.d.ts.map +0 -1
- package/dist/atoms/RecordingShellAtom.styled.d.ts.map +0 -1
- package/dist/atoms/WaveformBarsAtom.d.ts.map +0 -1
- package/dist/types.d.ts.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @exode-team/react-recorder — Public API
|
|
3
|
+
*
|
|
4
|
+
* @author: exode <hello@exode.ru>
|
|
5
|
+
*/
|
|
6
|
+
export { AudioRecorder } from './components/AudioRecorder';
|
|
7
|
+
export { VoiceRecorderInput } from './components/VoiceRecorderInput/VoiceRecorderInput';
|
|
8
|
+
export { VoiceMessagePlayer } from './components/VoiceMessagePlayer/VoiceMessagePlayer';
|
|
9
|
+
export { WaveformBars } from './components/WaveformBars/WaveformBars';
|
|
3
10
|
export { useVoiceRecorder } from './hooks/useVoiceRecorder';
|
|
11
|
+
export { useVoiceMessagePlayer } from './hooks/useVoiceMessagePlayer';
|
|
4
12
|
export { useRecorderVisualization } from './hooks/useRecorderVisualization';
|
|
5
13
|
export { useRecordingTiming } from './hooks/useRecordingTiming';
|
|
6
|
-
export type { StorageSpace, StorageFileEntity, UploadStrategy
|
|
14
|
+
export type { StorageSpace, StorageFileEntity, UploadStrategy } from './types/upload';
|
|
15
|
+
export type { UseVoiceRecorderOptions, UseVoiceRecorderResult } from './types/recorder';
|
|
16
|
+
export { StorageSpaceEnum } from './types/upload';
|
|
17
|
+
export { AUDIO_LEVEL_BARS } from './constants';
|
|
18
|
+
export { clampValue } from './utils/math';
|
|
19
|
+
export { formatTime } from './utils/format';
|
|
20
|
+
export { decodeAudioLevels } from './platform/audio-analyzer-adapter';
|
|
7
21
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,oDAAoD,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,oDAAoD,CAAC;AACxF,OAAO,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAC;AAGtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAGhE,YAAY,EAAE,YAAY,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACtF,YAAY,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAGxF,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAG/C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC"}
|