@waveform-playlist/recording 14.0.0-next.0 → 14.0.0-next.10

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 (2) hide show
  1. package/README.md +2 -1
  2. package/package.json +9 -8
package/README.md CHANGED
@@ -24,6 +24,7 @@ npm install @waveform-playlist/recording
24
24
  | Package | Purpose |
25
25
  |---------|---------|
26
26
  | `react` | ^19.0.0 |
27
+ | `react-dom` | ^19.0.0 — required transitively by `@waveform-playlist/ui-components` |
27
28
  | `styled-components` | ^6.0.0 — required transitively by `@waveform-playlist/ui-components` |
28
29
  | `tone` | ^15.0.0 — recording shares the global AudioContext with `@waveform-playlist/playout` |
29
30
 
@@ -227,7 +228,7 @@ Batteries-included hook: wires `useMicrophoneAccess` + `useMicrophoneLevel` + `u
227
228
 
228
229
  **Returns (`UseIntegratedRecordingReturn`):** recording state (`isRecording`, `isPaused`, `recordingTrackId`: the track the running take was started on, `null` when none is running), the two live sources (`meter`: microphone levels; `progress`: the take's elapsed time and per-channel preview peaks), microphone state (`stream`, `devices`, `hasPermission`, `selectedDevice`), controls (`startRecording` — resolves `true` when capture actually started, `false` with `error` set when the take is refused, `stopRecording`, `pauseRecording`, `resumeRecording`, `requestMicAccess`, `changeDevice`), and a combined `error`.
229
230
 
230
- **Recording into a `@waveform-playlist/browser` playlist:** call `useRecordingSession({ isRecording, trackId: recordingTrackId })` (from `@waveform-playlist/browser`) in the component that calls `useIntegratedRecording`; the view's `<WaveformRecordingPreview>` only draws the take. For an overdub, also call `useEditorControls().setRecordingActive(true, trackId)` *before* `play()` — while the session is active the end-of-timeline auto-stop is suppressed (the take can run past existing audio) and the recorded-over track is muted in the arrangement's mix (punch-in replaces what it holds): the mixer and the track's Mute button show it, the built-in `<TrackMuteButton />` is disabled, and `useTrack().isRecordingArmed` is true for it. The mute from before the take is written back when the session ends, whatever was set in between. Both reset automatically when the recording ends; check `startRecording()`'s boolean and release the session on `false`. `play()` does nothing before the playlist's first ready, so a take started during the first load records without playback.
231
+ **Recording into a `@waveform-playlist/browser` playlist:** call `useRecordingSession({ isRecording, trackId: recordingTrackId })` (from `@waveform-playlist/browser`) in the component that calls `useIntegratedRecording`; the view's `<WaveformRecordingPreview>` only draws the take. For an overdub, also call `useEditorControls().setRecordingActive(true, trackId)` *before* `play()` — while the session is active the end-of-timeline auto-stop is suppressed (the take can run past existing audio) and the recorded-over track plays muted for the take (punch-in replaces what it holds; `arrangement.setTrackRecording`, which leaves the track's own mute in the arrangement's mix alone): the mixer and the track's Mute button show it, the built-in `<TrackMuteButton />` is disabled, and `useTrack().isRecording` is true for it. A mute set on the track during the take stays after it. Both reset automatically when the recording ends; check `startRecording()`'s boolean and release the session on `false`. `play()` does nothing before the playlist's first ready, so a take started during the first load records without playback.
231
232
 
232
233
  ### Types
233
234
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@waveform-playlist/recording",
3
- "version": "14.0.0-next.0",
3
+ "version": "14.0.0-next.10",
4
4
  "description": "Audio recording support for waveform-playlist using AudioWorklet",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -39,24 +39,25 @@
39
39
  "@testing-library/react": "^16.3.2",
40
40
  "@types/react": "^19.2.0",
41
41
  "@types/react-dom": "^19.2.0",
42
- "@types/styled-components": "^5.1.36",
43
42
  "jsdom": "^28.1.0",
44
43
  "react": "^19.2.7",
45
44
  "react-dom": "^19.2.7",
45
+ "styled-components": "^6.4.2",
46
46
  "tsup": "^8.5.1",
47
47
  "typescript": "^5.9.3",
48
48
  "vitest": "^5.0.3",
49
- "@waveform-playlist/engine": "14.0.0-next.0"
49
+ "@waveform-playlist/engine": "14.0.0-next.4"
50
50
  },
51
51
  "dependencies": {
52
- "@waveform-playlist/core": "13.0.0-next.0",
53
- "@waveform-playlist/engine": "14.0.0-next.0",
54
- "@waveform-playlist/ui-components": "15.0.0-next.0",
55
- "@waveform-playlist/playout": "13.0.0-next.0",
56
- "@waveform-playlist/worklets": "13.0.0"
52
+ "@waveform-playlist/core": "13.0.0-next.4",
53
+ "@waveform-playlist/engine": "14.0.0-next.4",
54
+ "@waveform-playlist/playout": "13.0.0-next.4",
55
+ "@waveform-playlist/ui-components": "15.0.0-next.8",
56
+ "@waveform-playlist/worklets": "13.0.1-next.0"
57
57
  },
58
58
  "peerDependencies": {
59
59
  "react": "^19.0.0",
60
+ "react-dom": "^19.0.0",
60
61
  "styled-components": "^6.0.0",
61
62
  "tone": "^15.0.0"
62
63
  },