@waveform-playlist/browser 9.3.1 → 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 +27 -0
- package/dist/index.js +63 -63
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +926 -885
- package/dist/index.mjs.map +1 -1
- package/package.json +9 -9
package/dist/index.d.ts
CHANGED
|
@@ -627,6 +627,33 @@ declare interface KeyboardShortcut {
|
|
|
627
627
|
preventDefault?: boolean;
|
|
628
628
|
}
|
|
629
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
|
+
|
|
630
657
|
/**
|
|
631
658
|
* Link endpoints checkbox that uses the playlist context.
|
|
632
659
|
* Must be used within <AnnotationProvider>.
|