@waveform-playlist/browser 5.0.0-alpha.16 → 5.0.0-alpha.18
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 +14 -0
- package/dist/index.js +115 -115
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2338 -2312
- package/dist/index.mjs.map +1 -1
- package/package.json +9 -9
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,10 @@ 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;
|
|
704
|
+
/** Which scrollable containers to scroll: 'nearest' (only the annotation list) or 'all' (including viewport). Defaults to 'nearest'. */
|
|
705
|
+
scrollActiveContainer?: 'nearest' | 'all';
|
|
696
706
|
className?: string;
|
|
697
707
|
}
|
|
698
708
|
|
|
@@ -1855,6 +1865,10 @@ export declare interface WaveformProps {
|
|
|
1855
1865
|
* Default: annotation.id
|
|
1856
1866
|
*/
|
|
1857
1867
|
getAnnotationBoxLabel?: GetAnnotationBoxLabelFn;
|
|
1868
|
+
/** Where to position the active annotation when auto-scrolling: 'center', 'start', 'end', or 'nearest'. Defaults to 'center'. */
|
|
1869
|
+
scrollActivePosition?: ScrollLogicalPosition;
|
|
1870
|
+
/** Which scrollable containers to scroll: 'nearest' (only the annotation list) or 'all' (including viewport). Defaults to 'nearest'. */
|
|
1871
|
+
scrollActiveContainer?: 'nearest' | 'all';
|
|
1858
1872
|
className?: string;
|
|
1859
1873
|
showClipHeaders?: boolean;
|
|
1860
1874
|
interactiveClips?: boolean;
|