@waveform-playlist/browser 17.0.0-next.5 → 17.0.0-next.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.d.mts +3 -13
- package/dist/index.d.ts +3 -13
- package/dist/index.js +85 -116
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +117 -148
- package/dist/index.mjs.map +1 -1
- package/dist/tone.js.map +1 -1
- package/dist/tone.mjs.map +1 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -109,7 +109,7 @@ Under either provider:
|
|
|
109
109
|
| `usePlaylistTimeline` | `tracks` (loaded clips only, read-only), `peaksDataArray` (with placeholder records for clips still loading), `duration` (loaded audio), `isReady` | every clip operation (a trim once, on release), a zoom (`peaksDataArray` is computed per zoom level), audio or peaks arriving, `isReady` changing |
|
|
110
110
|
| `usePlaylistMixer` | `trackStates` (one entry per track in the order of `tracks`, also while a track loads), `masterVolume` | every mute, solo, volume or pan change (each step of a slider drag); tracks added, removed, renamed or reordered |
|
|
111
111
|
| `useTrack` | Among the children of `<WaveformTrackControls>` only: the track whose panel is being drawn (id, name, mixer state, `isSelected`, `isRecordingArmed`) and actions bound to it (`setMuted`, `setVolume`, `moveUp`, …) | a change of that track's state, position or selection |
|
|
112
|
-
| `useTrackReorderPreview` | `trackDragPreview
|
|
112
|
+
| `useTrackReorderPreview` | `trackDragPreview` | every drag-over of a track reorder |
|
|
113
113
|
| `useLoop` | `isLoopEnabled`, `loopStart`, `loopEnd` | a loop change |
|
|
114
114
|
| `useSelectedTrackId` | `selectedTrackId` | another track being selected |
|
|
115
115
|
| `useUndoRedo` | `canUndo`, `canRedo` | after an edit |
|
package/dist/index.d.mts
CHANGED
|
@@ -292,12 +292,6 @@ interface EditorControlsContextValue {
|
|
|
292
292
|
* organizational — playback is not interrupted. An undo step of the
|
|
293
293
|
* arrangement (#812). */
|
|
294
294
|
reorderTrack: (trackId: string, toIndex: number) => void;
|
|
295
|
-
/** Internal: call after every track-reorder DRAG interaction ends
|
|
296
|
-
* (committed or canceled) to force the view's track-controls part to remount
|
|
297
|
-
* its slots, discarding any @dnd-kit sortable-plugin DOM
|
|
298
|
-
* corruption. Not needed for button-driven reorderTrack calls (they never
|
|
299
|
-
* touch dnd-kit's DOM). See bumpTrackReorderEpoch in the provider. */
|
|
300
|
-
bumpTrackReorderEpoch: () => void;
|
|
301
295
|
/** INTERNAL wiring for ClipInteractionProvider: publishes/clears the live
|
|
302
296
|
* track-reorder drag preview. Custom drag integrations may call it, but
|
|
303
297
|
* most consumers only ever READ trackDragPreview from useTrackReorderPreview(). */
|
|
@@ -407,11 +401,6 @@ interface TrackReorderPreviewContextValue {
|
|
|
407
401
|
* layout from it; a track's panel can read it to mirror the preview in
|
|
408
402
|
* its own UI. */
|
|
409
403
|
trackDragPreview: TrackDragPreview | null;
|
|
410
|
-
/** Internal: incremented after every track-reorder drag interaction ends.
|
|
411
|
-
* The view's track-controls part folds this into each slot's `key` to
|
|
412
|
-
* force a remount, working around @dnd-kit sortable-plugin DOM corruption
|
|
413
|
-
* (see bumpTrackReorderEpoch in EditorControlsContextValue). */
|
|
414
|
-
trackReorderEpoch: number;
|
|
415
404
|
}
|
|
416
405
|
/** The playback speed and its setter (#688). Changes when the speed does. */
|
|
417
406
|
interface PlaybackRateContextValue {
|
|
@@ -529,7 +518,7 @@ declare const usePlaylistTimeline: () => PlaylistTimelineContextValue;
|
|
|
529
518
|
*/
|
|
530
519
|
declare const usePlaylistMixer: () => PlaylistMixerContextValue;
|
|
531
520
|
/**
|
|
532
|
-
* `{ trackDragPreview
|
|
521
|
+
* `{ trackDragPreview }`. A component that calls this
|
|
533
522
|
* re-renders on every drag-over of a track reorder.
|
|
534
523
|
*/
|
|
535
524
|
declare const useTrackReorderPreview: () => TrackReorderPreviewContextValue;
|
|
@@ -1849,7 +1838,8 @@ interface TrackReorderHandle {
|
|
|
1849
1838
|
* calls for one track register the same sortable id twice.
|
|
1850
1839
|
*
|
|
1851
1840
|
* The item that moves is the slot `<WaveformTrackControls>` draws around the
|
|
1852
|
-
* panel
|
|
1841
|
+
* panel (the keyed element React reorders, #796), not an element of the
|
|
1842
|
+
* caller. The per-source modifiers REPLACE the
|
|
1853
1843
|
* provider's clip modifiers for this operation, so track drags are
|
|
1854
1844
|
* vertical-only and skip clip collision and snap. Data kind 'track-reorder'
|
|
1855
1845
|
* is the discriminator the shared drag handlers branch on.
|
package/dist/index.d.ts
CHANGED
|
@@ -292,12 +292,6 @@ interface EditorControlsContextValue {
|
|
|
292
292
|
* organizational — playback is not interrupted. An undo step of the
|
|
293
293
|
* arrangement (#812). */
|
|
294
294
|
reorderTrack: (trackId: string, toIndex: number) => void;
|
|
295
|
-
/** Internal: call after every track-reorder DRAG interaction ends
|
|
296
|
-
* (committed or canceled) to force the view's track-controls part to remount
|
|
297
|
-
* its slots, discarding any @dnd-kit sortable-plugin DOM
|
|
298
|
-
* corruption. Not needed for button-driven reorderTrack calls (they never
|
|
299
|
-
* touch dnd-kit's DOM). See bumpTrackReorderEpoch in the provider. */
|
|
300
|
-
bumpTrackReorderEpoch: () => void;
|
|
301
295
|
/** INTERNAL wiring for ClipInteractionProvider: publishes/clears the live
|
|
302
296
|
* track-reorder drag preview. Custom drag integrations may call it, but
|
|
303
297
|
* most consumers only ever READ trackDragPreview from useTrackReorderPreview(). */
|
|
@@ -407,11 +401,6 @@ interface TrackReorderPreviewContextValue {
|
|
|
407
401
|
* layout from it; a track's panel can read it to mirror the preview in
|
|
408
402
|
* its own UI. */
|
|
409
403
|
trackDragPreview: TrackDragPreview | null;
|
|
410
|
-
/** Internal: incremented after every track-reorder drag interaction ends.
|
|
411
|
-
* The view's track-controls part folds this into each slot's `key` to
|
|
412
|
-
* force a remount, working around @dnd-kit sortable-plugin DOM corruption
|
|
413
|
-
* (see bumpTrackReorderEpoch in EditorControlsContextValue). */
|
|
414
|
-
trackReorderEpoch: number;
|
|
415
404
|
}
|
|
416
405
|
/** The playback speed and its setter (#688). Changes when the speed does. */
|
|
417
406
|
interface PlaybackRateContextValue {
|
|
@@ -529,7 +518,7 @@ declare const usePlaylistTimeline: () => PlaylistTimelineContextValue;
|
|
|
529
518
|
*/
|
|
530
519
|
declare const usePlaylistMixer: () => PlaylistMixerContextValue;
|
|
531
520
|
/**
|
|
532
|
-
* `{ trackDragPreview
|
|
521
|
+
* `{ trackDragPreview }`. A component that calls this
|
|
533
522
|
* re-renders on every drag-over of a track reorder.
|
|
534
523
|
*/
|
|
535
524
|
declare const useTrackReorderPreview: () => TrackReorderPreviewContextValue;
|
|
@@ -1849,7 +1838,8 @@ interface TrackReorderHandle {
|
|
|
1849
1838
|
* calls for one track register the same sortable id twice.
|
|
1850
1839
|
*
|
|
1851
1840
|
* The item that moves is the slot `<WaveformTrackControls>` draws around the
|
|
1852
|
-
* panel
|
|
1841
|
+
* panel (the keyed element React reorders, #796), not an element of the
|
|
1842
|
+
* caller. The per-source modifiers REPLACE the
|
|
1853
1843
|
* provider's clip modifiers for this operation, so track drags are
|
|
1854
1844
|
* vertical-only and skip clip collision and snap. Data kind 'track-reorder'
|
|
1855
1845
|
* is the discriminator the shared drag handlers branch on.
|