@waveform-playlist/browser 5.0.0 → 5.2.0-next.1

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
@@ -572,7 +572,7 @@ export declare interface MediaElementControlsContextValue {
572
572
  seekTo: (time: number) => void;
573
573
  setPlaybackRate: (rate: number) => void;
574
574
  setContinuousPlay: (enabled: boolean) => void;
575
- setAnnotations: (annotations: AnnotationData[]) => void;
575
+ setAnnotations: default_2.Dispatch<default_2.SetStateAction<AnnotationData[]>>;
576
576
  setActiveAnnotationId: (id: string | null) => void;
577
577
  setAutomaticScroll: (enabled: boolean) => void;
578
578
  setScrollContainer: (element: HTMLDivElement | null) => void;
@@ -694,6 +694,8 @@ export declare interface MediaElementWaveformProps {
694
694
  renderAnnotationItem?: (props: RenderAnnotationItemProps) => default_2.ReactNode;
695
695
  /** Whether annotation boundaries can be edited by dragging. Defaults to false. */
696
696
  editable?: boolean;
697
+ /** Whether dragging one annotation boundary also moves the adjacent annotation's boundary. Defaults to false. */
698
+ linkEndpoints?: boolean;
697
699
  /**
698
700
  * Callback when annotations are updated (e.g., boundaries dragged).
699
701
  * Called with the full updated annotations array.
@@ -806,7 +808,7 @@ declare interface PlaylistControlsContextValue {
806
808
  setContinuousPlay: (enabled: boolean) => void;
807
809
  setLinkEndpoints: (enabled: boolean) => void;
808
810
  setAnnotationsEditable: (enabled: boolean) => void;
809
- setAnnotations: (annotations: AnnotationData[]) => void;
811
+ setAnnotations: default_2.Dispatch<default_2.SetStateAction<AnnotationData[]>>;
810
812
  setActiveAnnotationId: (id: string | null) => void;
811
813
  setLoopEnabled: (enabled: boolean) => void;
812
814
  setLoopRegion: (start: number, end: number) => void;
@@ -838,6 +840,8 @@ declare interface PlaylistDataContextValue {
838
840
  barGap: number;
839
841
  /** Width in pixels of progress bars. Defaults to barWidth + barGap (fills gaps). */
840
842
  progressBarWidth: number;
843
+ /** Whether the playlist has finished loading all tracks */
844
+ isReady: boolean;
841
845
  }
842
846
 
843
847
  declare interface PlaylistStateContextValue {
@@ -1747,7 +1751,7 @@ export declare interface WaveformPlaylistContextValue {
1747
1751
  setContinuousPlay: (enabled: boolean) => void;
1748
1752
  setLinkEndpoints: (enabled: boolean) => void;
1749
1753
  setAnnotationsEditable: (enabled: boolean) => void;
1750
- setAnnotations: (annotations: AnnotationData[]) => void;
1754
+ setAnnotations: default_2.Dispatch<default_2.SetStateAction<AnnotationData[]>>;
1751
1755
  setActiveAnnotationId: (id: string | null) => void;
1752
1756
  playoutRef: default_2.RefObject<TonePlayout | null>;
1753
1757
  currentTimeRef: default_2.RefObject<number>;