@waveform-playlist/browser 5.2.0-next.3 → 5.2.0

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
@@ -588,10 +588,16 @@ export declare interface MediaElementAnnotationListProps {
588
588
  onAnnotationUpdate?: OnAnnotationUpdateFn;
589
589
  /** Whether annotation text can be edited. Defaults to false. */
590
590
  editable?: boolean;
591
- /** Whether dragging one annotation boundary also moves the adjacent annotation's boundary. Defaults to false. */
592
- linkEndpoints?: boolean;
593
- /** Override continuousPlay from context. Falls back to context value if not provided. */
594
- continuousPlay?: boolean;
591
+ /**
592
+ * Action controls to show on each annotation item (e.g., delete, split).
593
+ * Only rendered when `editable` is true.
594
+ */
595
+ controls?: AnnotationAction[];
596
+ /**
597
+ * Override annotation list config. Falls back to context values
598
+ * `{ linkEndpoints: false, continuousPlay }` if not provided.
599
+ */
600
+ annotationListConfig?: AnnotationActionOptions;
595
601
  /** Where to position the active annotation when auto-scrolling. Defaults to 'center'. */
596
602
  scrollActivePosition?: ScrollLogicalPosition;
597
603
  /** Which scrollable containers to scroll: 'nearest' or 'all'. Defaults to 'nearest'. */
@@ -707,6 +713,8 @@ declare interface MediaElementPlaylistProviderProps {
707
713
  barGap?: number;
708
714
  /** Width of progress bars */
709
715
  progressBarWidth?: number;
716
+ /** Callback when annotations are changed (drag, edit, etc.) */
717
+ onAnnotationsChange?: (annotations: AnnotationData[]) => void;
710
718
  /** Callback when audio is ready */
711
719
  onReady?: () => void;
712
720
  children: ReactNode;
@@ -1934,7 +1942,10 @@ declare interface WaveformPlaylistProviderProps {
1934
1942
  };
1935
1943
  effects?: EffectsFunction;
1936
1944
  onReady?: () => void;
1945
+ /** @deprecated Use onAnnotationsChange instead */
1937
1946
  onAnnotationUpdate?: (annotations: AnnotationData[]) => void;
1947
+ /** Callback when annotations are changed (drag, edit, etc.) */
1948
+ onAnnotationsChange?: (annotations: AnnotationData[]) => void;
1938
1949
  /** Width in pixels of waveform bars. Default: 1 */
1939
1950
  barWidth?: number;
1940
1951
  /** Spacing in pixels between waveform bars. Default: 0 */