@waveform-playlist/browser 5.1.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 +5 -3
- package/dist/index.js +21 -21
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1282 -1281
- package/dist/index.mjs.map +1 -1
- package/package.json +9 -9
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:
|
|
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:
|
|
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;
|
|
@@ -1749,7 +1751,7 @@ export declare interface WaveformPlaylistContextValue {
|
|
|
1749
1751
|
setContinuousPlay: (enabled: boolean) => void;
|
|
1750
1752
|
setLinkEndpoints: (enabled: boolean) => void;
|
|
1751
1753
|
setAnnotationsEditable: (enabled: boolean) => void;
|
|
1752
|
-
setAnnotations:
|
|
1754
|
+
setAnnotations: default_2.Dispatch<default_2.SetStateAction<AnnotationData[]>>;
|
|
1753
1755
|
setActiveAnnotationId: (id: string | null) => void;
|
|
1754
1756
|
playoutRef: default_2.RefObject<TonePlayout | null>;
|
|
1755
1757
|
currentTimeRef: default_2.RefObject<number>;
|