@waveform-playlist/browser 17.0.0-next.3 → 17.0.0-next.5

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/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import * as react from 'react';
2
2
  import react__default, { ReactNode, RefObject } from 'react';
3
3
  import { EffectsFunction, TrackEffectsFunction, SoundFontCache } from '@waveform-playlist/playout';
4
4
  import { PlaylistEngine, Arrangement, PlayoutAdapter, EngineState, LoadSource, ArrangementSourcesValue } from '@waveform-playlist/engine';
5
- import { ValueSourceHandle, AnnotationData, ClipTrack, PeakData, Fade, MidiNoteData, WaveformDataObject, KeyboardShortcut, ArrangementTrack, RecordingProgressSource, AnnotationAction, RenderAnnotationItemProps, TrackKind, RenderMode, AnnotationActionOptions, TrackSpectrogramOverrides, SpectrogramConfig, ColorMapValue, SpectrogramCanvasRegistration } from '@waveform-playlist/core';
5
+ import { ValueSourceHandle, AnnotationData, AnnotationStore, ClipTrack, PeakData, Fade, MidiNoteData, WaveformDataObject, KeyboardShortcut, ArrangementTrack, AnnotationStoreOptions, RecordingProgressSource, AnnotationAction, RenderAnnotationItemProps, TrackKind, RenderMode, AnnotationActionOptions, TrackSpectrogramOverrides, SpectrogramConfig, ColorMapValue, SpectrogramCanvasRegistration } from '@waveform-playlist/core';
6
6
  import { TimeFormat, WaveformPlaylistTheme, RenderPlayheadFunction, TrackMenuItem, BeatsAndBarsSnapTo } from '@waveform-playlist/ui-components';
7
7
  import { FadeConfig, MediaElementPlayout } from '@waveform-playlist/media-element-playout';
8
8
  import * as _dnd_kit_abstract from '@dnd-kit/abstract';
@@ -23,13 +23,18 @@ interface TrackDragPreview {
23
23
 
24
24
  /**
25
25
  * Where an annotation edge drag shows its moves while it is in progress:
26
- * the annotations as the drag would leave them, or `null` when no drag is
27
- * running. Both providers have one (`annotationPreview` in their controls).
26
+ * the store's current annotations with the drag's moves on top, or `null`
27
+ * when no drag is running. Both providers have one (`annotationPreview` in their controls).
28
28
  */
29
29
  type AnnotationPreviewHandle = ValueSourceHandle<AnnotationData[] | null>;
30
30
  interface UseAnnotationDragHandlersOptions {
31
- annotations: AnnotationData[];
32
- onAnnotationsChange: (annotations: AnnotationData[]) => void;
31
+ /**
32
+ * The owner of the annotations (`usePlaybackControls().annotationStore`).
33
+ * The drag writes only the bounds it moved, by id, onto the store's list
34
+ * as it is at the time of the write (#867). Without a store the handlers
35
+ * do nothing.
36
+ */
37
+ store: AnnotationStore | undefined;
33
38
  samplesPerPixel: number;
34
39
  /** Sample rate for pixel-to-time conversion. Providers pass the real rate from
35
40
  * context; defaults to 48000 (the engine default) for out-of-provider usage. */
@@ -39,9 +44,9 @@ interface UseAnnotationDragHandlersOptions {
39
44
  /**
40
45
  * Pass the provider's `annotationPreview` to keep the drag out of your own
41
46
  * state: each move is published there (the built-in annotation boxes and
42
- * list follow it), and `onAnnotationsChange` is called once, on release.
43
- * Without it `onAnnotationsChange` is called on every move, which
44
- * re-renders whatever holds the annotations for each one.
47
+ * list follow it), and the annotations are written once, on release.
48
+ * Without it they are written on every move, which re-renders whatever
49
+ * reads them for each one.
45
50
  */
46
51
  preview?: AnnotationPreviewHandle;
47
52
  }
@@ -54,10 +59,10 @@ interface UseAnnotationDragHandlersOptions {
54
59
  *
55
60
  * @example
56
61
  * ```tsx
62
+ * const { annotationStore, annotationPreview } = usePlaybackControls();
57
63
  * const { onDragStart, onDragMove, onDragEnd } = useAnnotationDragHandlers({
58
- * annotations,
59
- * onAnnotationsChange: setAnnotations,
60
- * preview: annotationPreview, // from usePlaybackControls()
64
+ * store: annotationStore,
65
+ * preview: annotationPreview,
61
66
  * samplesPerPixel,
62
67
  * sampleRate,
63
68
  * duration,
@@ -76,7 +81,7 @@ interface UseAnnotationDragHandlersOptions {
76
81
  * );
77
82
  * ```
78
83
  */
79
- declare function useAnnotationDragHandlers({ annotations, onAnnotationsChange, samplesPerPixel, sampleRate, duration, linkEndpoints, preview, }: UseAnnotationDragHandlersOptions): {
84
+ declare function useAnnotationDragHandlers({ store, samplesPerPixel, sampleRate, duration, linkEndpoints, preview, }: UseAnnotationDragHandlersOptions): {
80
85
  onDragStart: (event: DragStartEvent) => void;
81
86
  onDragMove: (event: DragMoveEvent) => void;
82
87
  onDragEnd: (event: DragEndEvent) => void;
@@ -155,7 +160,8 @@ interface ActiveAnnotationContextValue {
155
160
  * once, on release (its moves go through the preview source).
156
161
  */
157
162
  interface AnnotationsContextValue {
158
- annotations: AnnotationData[];
163
+ /** The annotation store's list: never write to it (frozen in development). */
164
+ annotations: readonly AnnotationData[];
159
165
  }
160
166
  /**
161
167
  * The three annotation options, under both providers (#686): whether
@@ -171,8 +177,9 @@ interface AnnotationOptionsContextValue {
171
177
  continuousPlay: boolean;
172
178
  }
173
179
  /**
174
- * The actions both providers have (#688). The value never changes, so reading
175
- * it never re-renders.
180
+ * The actions both providers have (#688). The value changes only when the
181
+ * provider's `annotationStore` prop does, so reading it does not re-render
182
+ * on playback, edits or option changes.
176
183
  */
177
184
  interface PlaybackControlsContextValue {
178
185
  /**
@@ -196,13 +203,18 @@ interface PlaybackControlsContextValue {
196
203
  setContinuousPlay: (enabled: boolean) => void;
197
204
  setAnnotationsEditable: (enabled: boolean) => void;
198
205
  setLinkEndpoints: (enabled: boolean) => void;
199
- setAnnotations: React.Dispatch<React.SetStateAction<AnnotationData[]>>;
200
206
  /**
201
207
  * Where an annotation edge drag shows its moves while it is in progress.
202
208
  * Pass it to `useAnnotationDragHandlers({ preview })`; read it in a custom
203
209
  * annotation renderer with `useAnnotationsWithPreview`. Stable identity.
204
210
  */
205
211
  annotationPreview: AnnotationPreviewHandle;
212
+ /**
213
+ * The provider's `annotationStore` prop, or `undefined` without one: the
214
+ * owner of the annotations. Change them with its `set` and `update`. Its
215
+ * identity changes only when the prop does.
216
+ */
217
+ annotationStore: AnnotationStore | undefined;
206
218
  setActiveAnnotationId: (id: string | null) => void;
207
219
  /**
208
220
  * What a click on an annotation does (its box, or its row in the list): the
@@ -466,8 +478,9 @@ declare const useAnnotations: () => AnnotationsContextValue;
466
478
  declare const useAnnotationOptions: () => AnnotationOptionsContextValue;
467
479
  /**
468
480
  * The actions both providers have: `play`, `pause`, `stop`, `seekTo`,
469
- * `setSelection`, and the annotation, scroll and time-format setters. The
470
- * value never changes, so calling this never re-renders.
481
+ * `setSelection`, the annotation store, and the annotation, scroll and
482
+ * time-format setters. The value changes only when the provider's
483
+ * `annotationStore` prop does.
471
484
  */
472
485
  declare const usePlaybackControls: () => PlaybackControlsContextValue;
473
486
  /**
@@ -529,14 +542,14 @@ declare const usePlaybackRate: () => PlaybackRateContextValue;
529
542
  declare const useMediaElementTrack: () => MediaElementTrackContextValue;
530
543
 
531
544
  /**
532
- * The `annotationList` prop of both providers. The provider holds the three
533
- * options as state (`useAnnotationOptions()`, and the three setters of
545
+ * The `annotationList` prop of both providers: the three annotation options.
546
+ * The annotations themselves are the `annotationStore` prop's (#867). The
547
+ * provider holds the three options as state (`useAnnotationOptions()`, and the three setters of
534
548
  * `usePlaybackControls()`), and that state follows the prop: when the value
535
549
  * of a field changes, the option takes it. Between two changes of the prop a
536
550
  * setter (or one of the checkboxes) changes the option; the prop is not told.
537
551
  */
538
552
  interface AnnotationListProp {
539
- annotations?: AnnotationData[];
540
553
  /** Whether annotations can be edited (text, ids, edges). Default: false. */
541
554
  editable?: boolean;
542
555
  /** Whether a dragged edge takes the edge it touches along. Default: false. */
@@ -597,10 +610,17 @@ interface WaveformPlaylistProviderProps {
597
610
  automaticScroll?: boolean;
598
611
  theme?: Partial<WaveformPlaylistTheme>;
599
612
  /**
600
- * The annotations and the three annotation options (`editable`,
601
- * `linkEndpoints`, `isContinuousPlay`). The provider follows all four: an
602
- * option takes a new value of its field, and a setter or checkbox changes
603
- * it in between.
613
+ * The owner of the annotations (#867): make it with
614
+ * `useCreateAnnotationStore` and change the annotations with its methods.
615
+ * The provider publishes what it holds and writes nothing back. Without it
616
+ * there are no annotations.
617
+ */
618
+ annotationStore?: AnnotationStore;
619
+ /**
620
+ * The three annotation options (`editable`, `linkEndpoints`,
621
+ * `isContinuousPlay`); the annotations are `annotationStore`'s. The provider
622
+ * follows the three: an option takes a new value of its field, and a setter
623
+ * or checkbox changes it in between.
604
624
  */
605
625
  annotationList?: AnnotationListProp;
606
626
  /** Master effects chain (default Tone.js adapter only). A new function builds a new engine. */
@@ -629,8 +649,6 @@ interface WaveformPlaylistProviderProps {
629
649
  * fails to load is not reported here: see `useArrangementSources`. The
630
650
  * provider already logs the error; use this to surface it in your UI. */
631
651
  onError?: (err: Error) => void;
632
- /** Callback when annotations are changed (drag, edit, etc.) */
633
- onAnnotationsChange?: (annotations: AnnotationData[]) => void;
634
652
  /** SoundFont cache for sample-based MIDI playback. When provided, MIDI clips
635
653
  * use SoundFont samples instead of PolySynth synthesis. */
636
654
  soundFontCache?: SoundFontCache;
@@ -686,14 +704,19 @@ interface MediaElementPlaylistProviderProps {
686
704
  /** Theme configuration */
687
705
  theme?: Partial<WaveformPlaylistTheme>;
688
706
  /**
689
- * The annotations and the three annotation options (`editable`,
690
- * `linkEndpoints`, `isContinuousPlay`). The provider follows all four: an
691
- * option takes a new value of its field, and a setter or checkbox changes
692
- * it in between.
707
+ * The owner of the annotations (#867): make it with
708
+ * `useCreateAnnotationStore` and change the annotations with its methods.
709
+ * The provider publishes what it holds and writes nothing back. Without it
710
+ * there are no annotations.
711
+ */
712
+ annotationStore?: AnnotationStore;
713
+ /**
714
+ * The three annotation options (`editable`, `linkEndpoints`,
715
+ * `isContinuousPlay`); the annotations are `annotationStore`'s. The provider
716
+ * follows the three: an option takes a new value of its field, and a setter
717
+ * or checkbox changes it in between.
693
718
  */
694
719
  annotationList?: AnnotationListProp;
695
- /** Callback when annotations are changed (drag, edit, etc.) */
696
- onAnnotationsChange?: (annotations: AnnotationData[]) => void;
697
720
  /**
698
721
  * AudioContext for Web Audio routing (fades, effects).
699
722
  * When provided, audio routes through Web Audio nodes:
@@ -874,7 +897,7 @@ declare function useClipDragHandlers({ samplesPerPixel, snapSamplePosition, }: U
874
897
  * boxes), with `annotationPreview` from the provider's controls. Only that
875
898
  * component then re-renders per pointer move of the drag.
876
899
  */
877
- declare function useAnnotationsWithPreview(annotations: AnnotationData[], preview: AnnotationPreviewHandle): AnnotationData[];
900
+ declare function useAnnotationsWithPreview(annotations: readonly AnnotationData[], preview: AnnotationPreviewHandle): readonly AnnotationData[];
878
901
 
879
902
  /**
880
903
  * Hook for configuring @dnd-kit sensors for clip dragging
@@ -1044,9 +1067,14 @@ interface UsePlaybackShortcutsReturn {
1044
1067
  declare const usePlaybackShortcuts: (options?: UsePlaybackShortcutsOptions) => UsePlaybackShortcutsReturn;
1045
1068
 
1046
1069
  interface UseAnnotationKeyboardControlsOptions {
1047
- annotations: AnnotationData[];
1070
+ /**
1071
+ * The owner of the annotations (`usePlaybackControls().annotationStore`).
1072
+ * The keys read the store, and each boundary key changes the active
1073
+ * annotation, found by id, in the store's list as it is when the key is
1074
+ * pressed (#867). Without a store there is nothing to move or select.
1075
+ */
1076
+ store: AnnotationStore | undefined;
1048
1077
  activeAnnotationId: string | null;
1049
- onAnnotationsChange: (annotations: AnnotationData[]) => void;
1050
1078
  /** Callback to set the active annotation ID for selection */
1051
1079
  onActiveAnnotationChange?: (id: string | null) => void;
1052
1080
  duration: number;
@@ -1067,38 +1095,7 @@ interface UseAnnotationKeyboardControlsOptions {
1067
1095
  /** Sample rate for auto-scroll positioning. Falls back to context. */
1068
1096
  sampleRate?: number;
1069
1097
  }
1070
- /**
1071
- * Hook for keyboard-based annotation navigation and boundary editing
1072
- *
1073
- * Navigation Shortcuts:
1074
- * - ArrowUp / ArrowLeft = Select previous annotation
1075
- * - ArrowDown / ArrowRight = Select next annotation
1076
- * - Home = Select first annotation
1077
- * - End = Select last annotation
1078
- * - Escape = Deselect annotation
1079
- * - Enter = Play selected annotation
1080
- *
1081
- * Boundary Editing Shortcuts (requires active annotation):
1082
- * - [ = Move start boundary earlier (left)
1083
- * - ] = Move start boundary later (right)
1084
- * - Shift+[ = Move end boundary earlier (left)
1085
- * - Shift+] = Move end boundary later (right)
1086
- *
1087
- * Respects linkEndpoints and continuousPlay settings.
1088
- *
1089
- * @example
1090
- * ```tsx
1091
- * useAnnotationKeyboardControls({
1092
- * annotations,
1093
- * activeAnnotationId,
1094
- * onAnnotationsChange: setAnnotations,
1095
- * onActiveAnnotationChange: setActiveAnnotationId,
1096
- * duration,
1097
- * linkEndpoints,
1098
- * });
1099
- * ```
1100
- */
1101
- declare function useAnnotationKeyboardControls({ annotations, activeAnnotationId, onAnnotationsChange, onActiveAnnotationChange, duration, linkEndpoints, continuousPlay, enabled, scrollContainerRef, onPlay, samplesPerPixel: samplesPerPixelProp, sampleRate: sampleRateProp, }: UseAnnotationKeyboardControlsOptions): {
1098
+ declare function useAnnotationKeyboardControls({ store, activeAnnotationId, onActiveAnnotationChange, duration, linkEndpoints, continuousPlay, enabled, scrollContainerRef, onPlay, samplesPerPixel: samplesPerPixelProp, sampleRate: sampleRateProp, }: UseAnnotationKeyboardControlsOptions): {
1102
1099
  moveStartBoundary: (delta: number) => void;
1103
1100
  moveEndBoundary: (delta: number) => void;
1104
1101
  selectPrevious: () => void;
@@ -1144,6 +1141,28 @@ declare function useArrangementTracks(arrangement: Arrangement): readonly Arrang
1144
1141
  */
1145
1142
  declare function useArrangementSources(arrangement: Arrangement): ArrangementSourcesValue;
1146
1143
 
1144
+ /**
1145
+ * Create the `AnnotationStore` that owns an editor's annotations, one per
1146
+ * component instance. Give it to a provider's `annotationStore` prop and
1147
+ * read it with `useStoredAnnotations`. Returns the same store on every render.
1148
+ *
1149
+ * `init` is read once, on the first render; it may throw (an annotation
1150
+ * without numeric `start`/`end`, two with one id), and the throw goes to the
1151
+ * nearest error boundary. Unlike `init`, `options.beforeChange` is followed:
1152
+ * the store calls the function passed on the most recent committed render,
1153
+ * so a rule that reads the app's state sees its current value.
1154
+ *
1155
+ * Under StrictMode React calls the initializer twice and keeps one result.
1156
+ */
1157
+ declare function useCreateAnnotationStore(init?: () => readonly AnnotationData[], options?: AnnotationStoreOptions): AnnotationStore;
1158
+
1159
+ /**
1160
+ * The annotations of `store`, for the app's own components (inside or outside
1161
+ * a provider). The same array until the annotations change. Never write to
1162
+ * what it returns: change them with `store.set` or `store.update`.
1163
+ */
1164
+ declare function useStoredAnnotations(store: AnnotationStore): readonly AnnotationData[];
1165
+
1147
1166
  declare const PlayButton: react__default.FC<{
1148
1167
  className?: string;
1149
1168
  }>;
@@ -1562,7 +1581,7 @@ interface WaveformAnnotationBoxesProps {
1562
1581
  *
1563
1582
  * It wires the drag of a box's edges itself (#686): its own
1564
1583
  * `DragDropProvider` around the row, the moves shown through the provider's
1565
- * preview, one `onAnnotationsChange` on release. The edges can be dragged
1584
+ * preview, one write to the annotation store on release. The edges can be dragged
1566
1585
  * while the provider's `editable` option is on; `linkEndpoints` and
1567
1586
  * `continuousPlay` come from the same place (`useAnnotationOptions()`). The
1568
1587
  * touch setting of the drag is `ClipInteractionOptions`' `touchOptimized`.
@@ -1652,8 +1671,8 @@ interface AnnotationListProps {
1652
1671
  * The annotation text list, for both providers (#686). Render it anywhere
1653
1672
  * under the provider: below the view, in a sidebar, more than once. It reads
1654
1673
  * everything from the provider (the annotations, the active one, the
1655
- * `editable` / `linkEndpoints` / `continuousPlay` options) and reports edits
1656
- * through the provider's `onAnnotationsChange`. A click on a row plays the
1674
+ * `editable` / `linkEndpoints` / `continuousPlay` options) and writes edits
1675
+ * to the provider's annotation store. A click on a row plays the
1657
1676
  * annotation, as a click on its box does.
1658
1677
  *
1659
1678
  * Needs the annotation integration (`<AnnotationProvider>` from
@@ -1875,7 +1894,7 @@ declare function useRecordingSession({ isRecording, trackId }: RecordingSessionO
1875
1894
  * Mirrors what `AnnotationList` actually uses.
1876
1895
  */
1877
1896
  interface AnnotationTextIntegrationProps {
1878
- annotations: AnnotationData[];
1897
+ annotations: readonly AnnotationData[];
1879
1898
  activeAnnotationId?: string;
1880
1899
  shouldScrollToActive?: boolean;
1881
1900
  scrollActivePosition?: ScrollLogicalPosition;
@@ -1886,7 +1905,8 @@ interface AnnotationTextIntegrationProps {
1886
1905
  height?: number;
1887
1906
  /** A click on a row (not in a field being edited, not on an action button). */
1888
1907
  onAnnotationClick?: (annotation: AnnotationData) => void;
1889
- onAnnotationUpdate?: (updatedAnnotations: AnnotationData[]) => void;
1908
+ /** Where the list's edits are written: the provider's annotation store. */
1909
+ store?: AnnotationStore;
1890
1910
  renderAnnotationItem?: (props: RenderAnnotationItemProps) => React.ReactNode;
1891
1911
  }
1892
1912
  /**
@@ -2129,4 +2149,4 @@ declare function getWaveformDataMetadata(src: string): Promise<{
2129
2149
  bits: 8 | 16;
2130
2150
  }>;
2131
2151
 
2132
- export { type ActiveAnnotationContextValue, type AnnotationIntegration, AnnotationIntegrationProvider, AnnotationList, type AnnotationListProp, type AnnotationListProps, type AnnotationOptionsContextValue, type AnnotationPreviewHandle, type AnnotationsContextValue, AudioPosition, AutomaticScrollCheckbox, ClearAllButton, type ClearAllButtonProps, ClipCollisionModifier, ClipInteractionOptions, type ClipInteractionOptionsProps, ClipInteractionProvider, type ClipInteractionProviderProps, type ClipPeaks, type CurrentTimeContextValue, DefaultTrackControls, type DefaultTrackControlsProps, type EditorControlsContextValue, type EngineRefsContextValue, FastForwardButton, type FrameData, type GetAnnotationBoxLabelFn, type IsPlayingContextValue, KeyboardShortcuts, type KeyboardShortcutsProps, LoopButton, type LoopContextValue, MasterVolumeControl, type MasterVolumeControls, MediaElementPlaylistProvider, type MediaElementTrackConfig, type MediaElementTrackContextValue, MediaElementWaveform, type MediaElementWaveformProps, MediaElementWaveformRoot, type MediaElementWaveformRootProps, PauseButton, PlayButton, type PlaybackControlsContextValue, type PlaybackRateContextValue, PlaybackRateSelect, type PlaybackRefsContextValue, type PlaylistMixerContextValue, type PlaylistSettingsContextValue, type PlaylistTimelineContextValue, type PlaylistViewContextValue, type PlaylistZoomContextValue, type RecordingSessionOptions, RewindButton, type SelectedTrackIdContextValue, type SelectionContextValue, SelectionTimeInputs, SetLoopRegionButton, SkipBackwardButton, SkipForwardButton, SnapToGridModifier, type SpectrogramIntegration, SpectrogramIntegrationProvider, StopButton, type TimeFormatControls, TimeFormatSelect, type TrackClipPeaks, type TrackContextValue, type TrackDragPreview, TrackMenuButton, TrackMuteButton, TrackName, TrackPanSlider, TrackRemoveButton, type TrackRemoveButtonProps, TrackReorderGrip, type TrackReorderHandle, type TrackReorderPreviewContextValue, TrackSoloButton, type TrackState, TrackVolumeSlider, type UndoRedoContextValue, type UseCreateArrangementOptions, type UsePlaybackShortcutsOptions, type UsePlaybackShortcutsReturn, Waveform, WaveformAnnotationBoxes, type WaveformAnnotationBoxesProps, WaveformClipHeaders, WaveformEditor, type WaveformEditorProps, WaveformFades, WaveformLoopRegion, WaveformPlayhead, type WaveformPlayheadProps, WaveformPlaylistProvider, type WaveformProps, WaveformRecordingPreview, type WaveformRecordingPreviewProps, type WaveformRecordingState, WaveformRoot, type WaveformRootProps, WaveformSelection, WaveformTimescale, type WaveformTimescaleProps, WaveformTrackControls, type WaveformTrackControlsProps, WaveformTracks, type WaveformTracksProps, WaveformViewOptions, type WaveformViewOptionsProps, type ZoomControls, ZoomInButton, ZoomOutButton, getWaveformDataMetadata, loadPeaksFromWaveformData, loadWaveformData, useActiveAnnotation, useAnnotationDragHandlers, useAnnotationIntegration, useAnnotationKeyboardControls, useAnnotationOptions, useAnnotations, useAnnotationsWithPreview, useArrangement, useArrangementSources, useArrangementTracks, useClipDragHandlers, useClipInteractionEnabled, useClipSplitting, useCreateArrangement, useCurrentTime, useDragSensors, useEditorControls, useEngineRefs, useIsPlaying, useKeyboardShortcuts, useLoop, useMasterVolume, useMediaElementTrack, usePlaybackControls, usePlaybackRate, usePlaybackRefs, usePlaybackShortcuts, usePlaylistMixer, usePlaylistSettings, usePlaylistTimeline, usePlaylistView, usePlaylistZoom, useRecordingSession, useSelectedTrackId, useSelection, useSpectrogramIntegration, useTimeFormat, useTrack, useTrackReorderHandle, useTrackReorderPreview, useUndoRedo, useZoomControls, waveformDataToPeaks };
2152
+ export { type ActiveAnnotationContextValue, type AnnotationIntegration, AnnotationIntegrationProvider, AnnotationList, type AnnotationListProp, type AnnotationListProps, type AnnotationOptionsContextValue, type AnnotationPreviewHandle, type AnnotationsContextValue, AudioPosition, AutomaticScrollCheckbox, ClearAllButton, type ClearAllButtonProps, ClipCollisionModifier, ClipInteractionOptions, type ClipInteractionOptionsProps, ClipInteractionProvider, type ClipInteractionProviderProps, type ClipPeaks, type CurrentTimeContextValue, DefaultTrackControls, type DefaultTrackControlsProps, type EditorControlsContextValue, type EngineRefsContextValue, FastForwardButton, type FrameData, type GetAnnotationBoxLabelFn, type IsPlayingContextValue, KeyboardShortcuts, type KeyboardShortcutsProps, LoopButton, type LoopContextValue, MasterVolumeControl, type MasterVolumeControls, MediaElementPlaylistProvider, type MediaElementTrackConfig, type MediaElementTrackContextValue, MediaElementWaveform, type MediaElementWaveformProps, MediaElementWaveformRoot, type MediaElementWaveformRootProps, PauseButton, PlayButton, type PlaybackControlsContextValue, type PlaybackRateContextValue, PlaybackRateSelect, type PlaybackRefsContextValue, type PlaylistMixerContextValue, type PlaylistSettingsContextValue, type PlaylistTimelineContextValue, type PlaylistViewContextValue, type PlaylistZoomContextValue, type RecordingSessionOptions, RewindButton, type SelectedTrackIdContextValue, type SelectionContextValue, SelectionTimeInputs, SetLoopRegionButton, SkipBackwardButton, SkipForwardButton, SnapToGridModifier, type SpectrogramIntegration, SpectrogramIntegrationProvider, StopButton, type TimeFormatControls, TimeFormatSelect, type TrackClipPeaks, type TrackContextValue, type TrackDragPreview, TrackMenuButton, TrackMuteButton, TrackName, TrackPanSlider, TrackRemoveButton, type TrackRemoveButtonProps, TrackReorderGrip, type TrackReorderHandle, type TrackReorderPreviewContextValue, TrackSoloButton, type TrackState, TrackVolumeSlider, type UndoRedoContextValue, type UseCreateArrangementOptions, type UsePlaybackShortcutsOptions, type UsePlaybackShortcutsReturn, Waveform, WaveformAnnotationBoxes, type WaveformAnnotationBoxesProps, WaveformClipHeaders, WaveformEditor, type WaveformEditorProps, WaveformFades, WaveformLoopRegion, WaveformPlayhead, type WaveformPlayheadProps, WaveformPlaylistProvider, type WaveformProps, WaveformRecordingPreview, type WaveformRecordingPreviewProps, type WaveformRecordingState, WaveformRoot, type WaveformRootProps, WaveformSelection, WaveformTimescale, type WaveformTimescaleProps, WaveformTrackControls, type WaveformTrackControlsProps, WaveformTracks, type WaveformTracksProps, WaveformViewOptions, type WaveformViewOptionsProps, type ZoomControls, ZoomInButton, ZoomOutButton, getWaveformDataMetadata, loadPeaksFromWaveformData, loadWaveformData, useActiveAnnotation, useAnnotationDragHandlers, useAnnotationIntegration, useAnnotationKeyboardControls, useAnnotationOptions, useAnnotations, useAnnotationsWithPreview, useArrangement, useArrangementSources, useArrangementTracks, useClipDragHandlers, useClipInteractionEnabled, useClipSplitting, useCreateAnnotationStore, useCreateArrangement, useCurrentTime, useDragSensors, useEditorControls, useEngineRefs, useIsPlaying, useKeyboardShortcuts, useLoop, useMasterVolume, useMediaElementTrack, usePlaybackControls, usePlaybackRate, usePlaybackRefs, usePlaybackShortcuts, usePlaylistMixer, usePlaylistSettings, usePlaylistTimeline, usePlaylistView, usePlaylistZoom, useRecordingSession, useSelectedTrackId, useSelection, useSpectrogramIntegration, useStoredAnnotations, useTimeFormat, useTrack, useTrackReorderHandle, useTrackReorderPreview, useUndoRedo, useZoomControls, waveformDataToPeaks };