@waveform-playlist/browser 9.3.0 → 9.3.2

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
@@ -274,6 +274,14 @@ export declare const AutomaticScrollCheckbox: default_2.FC<{
274
274
  */
275
275
  declare type Bits = 8 | 16;
276
276
 
277
+ export declare const ClearAllButton: default_2.FC<ClearAllButtonProps>;
278
+
279
+ export declare interface ClearAllButtonProps {
280
+ onClearAll: () => void;
281
+ label?: string;
282
+ className?: string;
283
+ }
284
+
277
285
  /**
278
286
  * Modifier that constrains clip drag movement to prevent overlaps.
279
287
  *
@@ -619,6 +627,33 @@ declare interface KeyboardShortcut {
619
627
  preventDefault?: boolean;
620
628
  }
621
629
 
630
+ /**
631
+ * Self-closing component that sets up keyboard shortcuts for the playlist.
632
+ * Must be rendered inside a WaveformPlaylistProvider.
633
+ *
634
+ * @example
635
+ * ```tsx
636
+ * <WaveformPlaylistProvider tracks={tracks} {...}>
637
+ * <KeyboardShortcuts playback clipSplitting />
638
+ * <Waveform />
639
+ * </WaveformPlaylistProvider>
640
+ * ```
641
+ */
642
+ export declare const KeyboardShortcuts: default_2.FC<KeyboardShortcutsProps>;
643
+
644
+ export declare interface KeyboardShortcutsProps {
645
+ /** Enable default playback shortcuts (Space, Escape, 0). Defaults to false. */
646
+ playback?: boolean;
647
+ /** Enable clip splitting shortcut ('s' key). Defaults to false. */
648
+ clipSplitting?: boolean;
649
+ /** Enable annotation keyboard controls (arrow nav, boundary editing). Defaults to false. */
650
+ annotations?: boolean;
651
+ /** Additional shortcuts appended to the defaults. */
652
+ additionalShortcuts?: KeyboardShortcut[];
653
+ /** Disable all shortcuts. Defaults to true. */
654
+ enabled?: boolean;
655
+ }
656
+
622
657
  /**
623
658
  * Link endpoints checkbox that uses the playlist context.
624
659
  * Must be used within <AnnotationProvider>.