@waveform-playlist/browser 5.0.0-alpha.16 → 5.0.0-alpha.17

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
@@ -574,6 +574,9 @@ export declare interface MediaElementControlsContextValue {
574
574
  setContinuousPlay: (enabled: boolean) => void;
575
575
  setAnnotations: (annotations: AnnotationData[]) => void;
576
576
  setActiveAnnotationId: (id: string | null) => void;
577
+ setAutomaticScroll: (enabled: boolean) => void;
578
+ setScrollContainer: (element: HTMLDivElement | null) => void;
579
+ scrollContainerRef: default_2.RefObject<HTMLDivElement | null>;
577
580
  }
578
581
 
579
582
  export declare interface MediaElementDataContextValue {
@@ -622,6 +625,8 @@ declare interface MediaElementPlaylistProviderProps {
622
625
  timescale?: boolean;
623
626
  /** Initial playback rate (0.5 to 2.0) */
624
627
  playbackRate?: number;
628
+ /** Enable automatic scroll to keep playhead centered */
629
+ automaticScroll?: boolean;
625
630
  /** Theme configuration */
626
631
  theme?: Partial<WaveformPlaylistTheme>;
627
632
  /** Track controls configuration */
@@ -650,6 +655,7 @@ export declare interface MediaElementStateContextValue {
650
655
  annotations: AnnotationData[];
651
656
  activeAnnotationId: string | null;
652
657
  playbackRate: number;
658
+ isAutomaticScroll: boolean;
653
659
  }
654
660
 
655
661
  export declare interface MediaElementTrackConfig {
@@ -693,6 +699,8 @@ export declare interface MediaElementWaveformProps {
693
699
  * Called with the full updated annotations array.
694
700
  */
695
701
  onAnnotationUpdate?: OnAnnotationUpdateFn;
702
+ /** Where to position the active annotation when auto-scrolling: 'center', 'start', 'end', or 'nearest'. Defaults to 'center'. */
703
+ scrollActivePosition?: ScrollLogicalPosition;
696
704
  className?: string;
697
705
  }
698
706
 
@@ -1855,6 +1863,8 @@ export declare interface WaveformProps {
1855
1863
  * Default: annotation.id
1856
1864
  */
1857
1865
  getAnnotationBoxLabel?: GetAnnotationBoxLabelFn;
1866
+ /** Where to position the active annotation when auto-scrolling: 'center', 'start', 'end', or 'nearest'. Defaults to 'center'. */
1867
+ scrollActivePosition?: ScrollLogicalPosition;
1858
1868
  className?: string;
1859
1869
  showClipHeaders?: boolean;
1860
1870
  interactiveClips?: boolean;