@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.
Files changed (74) hide show
  1. package/dist/{AudioRecorder.d.ts → components/AudioRecorder.d.ts} +1 -1
  2. package/dist/components/AudioRecorder.d.ts.map +1 -0
  3. package/dist/components/IdleControl/IdleControl.d.ts +13 -0
  4. package/dist/components/IdleControl/IdleControl.d.ts.map +1 -0
  5. package/dist/{atoms/IdleControlAtom.styled.d.ts → components/IdleControl/IdleControl.styled.d.ts} +2 -2
  6. package/dist/components/IdleControl/IdleControl.styled.d.ts.map +1 -0
  7. package/dist/{atoms/RecordingShellAtom.d.ts → components/RecordingShell/RecordingShell.d.ts} +4 -4
  8. package/dist/components/RecordingShell/RecordingShell.d.ts.map +1 -0
  9. package/dist/{atoms/RecordingShellAtom.styled.d.ts → components/RecordingShell/RecordingShell.styled.d.ts} +2 -2
  10. package/dist/components/RecordingShell/RecordingShell.styled.d.ts.map +1 -0
  11. package/dist/components/VoiceMessagePlayer/VoiceMessagePlayer.d.ts +16 -0
  12. package/dist/components/VoiceMessagePlayer/VoiceMessagePlayer.d.ts.map +1 -0
  13. package/dist/components/VoiceMessagePlayer/VoiceMessagePlayer.styled.d.ts +13 -0
  14. package/dist/components/VoiceMessagePlayer/VoiceMessagePlayer.styled.d.ts.map +1 -0
  15. package/dist/components/VoiceRecorderInput/VoiceRecorderInput.d.ts +22 -0
  16. package/dist/components/VoiceRecorderInput/VoiceRecorderInput.d.ts.map +1 -0
  17. package/dist/components/VoiceRecorderInput/VoiceRecorderInput.styled.d.ts +18 -0
  18. package/dist/components/VoiceRecorderInput/VoiceRecorderInput.styled.d.ts.map +1 -0
  19. package/dist/{atoms/WaveformBarsAtom.d.ts → components/WaveformBars/WaveformBars.d.ts} +4 -4
  20. package/dist/components/WaveformBars/WaveformBars.d.ts.map +1 -0
  21. package/dist/hooks/index.d.ts +9 -0
  22. package/dist/hooks/index.d.ts.map +1 -0
  23. package/dist/hooks/useAudioPlayback.d.ts +19 -0
  24. package/dist/hooks/useAudioPlayback.d.ts.map +1 -0
  25. package/dist/hooks/useMediaRecorder.d.ts +27 -0
  26. package/dist/hooks/useMediaRecorder.d.ts.map +1 -0
  27. package/dist/hooks/useRecorderVisualization.d.ts +2 -0
  28. package/dist/hooks/useRecorderVisualization.d.ts.map +1 -1
  29. package/dist/hooks/useRecordingTiming.d.ts.map +1 -1
  30. package/dist/hooks/useVoiceMessagePlayer.d.ts +26 -0
  31. package/dist/hooks/useVoiceMessagePlayer.d.ts.map +1 -0
  32. package/dist/hooks/useVoiceRecorder.d.ts +0 -1
  33. package/dist/hooks/useVoiceRecorder.d.ts.map +1 -1
  34. package/dist/index.cjs +1328 -17616
  35. package/dist/index.cjs.map +1 -1
  36. package/dist/index.d.ts +17 -3
  37. package/dist/index.d.ts.map +1 -1
  38. package/dist/index.js +1324 -17620
  39. package/dist/index.js.map +1 -1
  40. package/dist/platform/animation-frame-adapter.d.ts +8 -0
  41. package/dist/platform/animation-frame-adapter.d.ts.map +1 -0
  42. package/dist/platform/audio-analyzer-adapter.d.ts +13 -0
  43. package/dist/platform/audio-analyzer-adapter.d.ts.map +1 -0
  44. package/dist/platform/audio-playback-adapter.d.ts +19 -0
  45. package/dist/platform/audio-playback-adapter.d.ts.map +1 -0
  46. package/dist/platform/audio-playback-manager.d.ts +14 -0
  47. package/dist/platform/audio-playback-manager.d.ts.map +1 -0
  48. package/dist/platform/index.d.ts +15 -0
  49. package/dist/platform/index.d.ts.map +1 -0
  50. package/dist/platform/media-recorder-adapter.d.ts +20 -0
  51. package/dist/platform/media-recorder-adapter.d.ts.map +1 -0
  52. package/dist/platform/microphone.d.ts +9 -0
  53. package/dist/platform/microphone.d.ts.map +1 -0
  54. package/dist/types/index.d.ts +9 -0
  55. package/dist/types/index.d.ts.map +1 -0
  56. package/dist/{types.d.ts → types/recorder.d.ts} +3 -20
  57. package/dist/types/recorder.d.ts.map +1 -0
  58. package/dist/types/upload.d.ts +24 -0
  59. package/dist/types/upload.d.ts.map +1 -0
  60. package/dist/utils/format.d.ts +7 -0
  61. package/dist/utils/format.d.ts.map +1 -0
  62. package/dist/utils/index.d.ts +8 -0
  63. package/dist/utils/index.d.ts.map +1 -0
  64. package/dist/utils/math.d.ts +8 -0
  65. package/dist/utils/math.d.ts.map +1 -0
  66. package/package.json +5 -5
  67. package/dist/AudioRecorder.d.ts.map +0 -1
  68. package/dist/atoms/IdleControlAtom.d.ts +0 -13
  69. package/dist/atoms/IdleControlAtom.d.ts.map +0 -1
  70. package/dist/atoms/IdleControlAtom.styled.d.ts.map +0 -1
  71. package/dist/atoms/RecordingShellAtom.d.ts.map +0 -1
  72. package/dist/atoms/RecordingShellAtom.styled.d.ts.map +0 -1
  73. package/dist/atoms/WaveformBarsAtom.d.ts.map +0 -1
  74. package/dist/types.d.ts.map +0 -1
package/dist/index.d.ts CHANGED
@@ -1,7 +1,21 @@
1
- export { AudioRecorder } from './AudioRecorder';
2
- export { StorageSpaceEnum } from './types';
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, UseVoiceRecorderOptions, UseVoiceRecorderResult, } from './types';
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
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAEhE,YAAY,EACR,YAAY,EACZ,iBAAiB,EACjB,cAAc,EACd,uBAAuB,EACvB,sBAAsB,GACzB,MAAM,SAAS,CAAC"}
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"}