@waveform-playlist/browser 5.0.0-alpha.5 → 5.0.0-alpha.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/dist/index.d.ts CHANGED
@@ -476,6 +476,10 @@ export declare function loadPeaksFromWaveformData(src: string, channelIndex?: nu
476
476
  */
477
477
  export declare function loadWaveformData(src: string): Promise<default_3>;
478
478
 
479
+ export declare const LoopButton: default_2.FC<{
480
+ className?: string;
481
+ }>;
482
+
479
483
  /**
480
484
  * Master volume control that uses the playlist context
481
485
  */
@@ -584,6 +588,10 @@ declare interface PlaylistControlsContextValue {
584
588
  setAnnotationsEditable: (enabled: boolean) => void;
585
589
  setAnnotations: (annotations: AnnotationData[]) => void;
586
590
  setActiveAnnotationId: (id: string | null) => void;
591
+ setLoopEnabled: (enabled: boolean) => void;
592
+ setLoopRegion: (start: number, end: number) => void;
593
+ setLoopRegionFromSelection: () => void;
594
+ clearLoopRegion: () => void;
587
595
  }
588
596
 
589
597
  declare interface PlaylistDataContextValue {
@@ -617,11 +625,14 @@ declare interface PlaylistStateContextValue {
617
625
  linkEndpoints: boolean;
618
626
  annotationsEditable: boolean;
619
627
  isAutomaticScroll: boolean;
628
+ isLoopEnabled: boolean;
620
629
  annotations: AnnotationData[];
621
630
  activeAnnotationId: string | null;
622
631
  selectionStart: number;
623
632
  selectionEnd: number;
624
633
  selectedTrackId: string | null;
634
+ loopStart: number;
635
+ loopEnd: number;
625
636
  }
626
637
 
627
638
  /**
@@ -642,6 +653,10 @@ export declare const SelectionTimeInputs: default_2.FC<{
642
653
  className?: string;
643
654
  }>;
644
655
 
656
+ export declare const SetLoopRegionButton: default_2.FC<{
657
+ className?: string;
658
+ }>;
659
+
645
660
  export declare const SkipBackwardButton: default_2.FC<{
646
661
  skipAmount?: number;
647
662
  className?: string;
@@ -1490,6 +1505,8 @@ declare interface WaveformPlaylistTheme {
1490
1505
  timescaleBackgroundColor: string;
1491
1506
  playheadColor: string;
1492
1507
  selectionColor: string;
1508
+ loopRegionColor: string;
1509
+ loopMarkerColor: string;
1493
1510
  clipHeaderBackgroundColor: string;
1494
1511
  clipHeaderBorderColor: string;
1495
1512
  clipHeaderTextColor: string;