@waveform-playlist/ui-components 14.0.1 → 15.0.0-next.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/README.md +44 -0
- package/dist/index.d.mts +241 -163
- package/dist/index.d.ts +241 -163
- package/dist/index.js +947 -710
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +830 -593
- package/dist/index.mjs.map +1 -1
- package/package.json +10 -10
package/dist/index.d.mts
CHANGED
|
@@ -1,21 +1,12 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import react__default, { FunctionComponent, ReactNode
|
|
3
|
-
import { Peaks, Bits, Fade, FadeType, MidiNoteData, RenderMode } from '@waveform-playlist/core';
|
|
2
|
+
import react__default, { FunctionComponent, ReactNode } from 'react';
|
|
3
|
+
import { Peaks, Bits, Fade, FadeType, MidiNoteData, RenderMode, SpectrogramCanvasRegistration, MeterSource, MeterLevels, ValueSource } from '@waveform-playlist/core';
|
|
4
4
|
import * as styled_components_dist_utils_hoist from 'styled-components/dist/utils/hoist';
|
|
5
5
|
import * as styled_components from 'styled-components';
|
|
6
6
|
import { DefaultTheme } from 'styled-components';
|
|
7
7
|
import * as styled_components_dist_types from 'styled-components/dist/types';
|
|
8
8
|
import { IconProps } from '@phosphor-icons/react';
|
|
9
9
|
|
|
10
|
-
interface AudioPositionProps {
|
|
11
|
-
formattedTime: string;
|
|
12
|
-
className?: string;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Displays the current audio playback position
|
|
16
|
-
*/
|
|
17
|
-
declare const AudioPosition: react__default.FC<AudioPositionProps>;
|
|
18
|
-
|
|
19
10
|
interface AutomaticScrollCheckboxProps {
|
|
20
11
|
checked: boolean;
|
|
21
12
|
onChange: (checked: boolean) => void;
|
|
@@ -114,10 +105,29 @@ interface WaveformPlaylistTheme {
|
|
|
114
105
|
annotationResizeHandleColor: string;
|
|
115
106
|
annotationResizeHandleActiveColor: string;
|
|
116
107
|
annotationTextItemHoverBackground: string;
|
|
108
|
+
/**
|
|
109
|
+
* The active row of the annotation list (its edge, tint and glow) and the
|
|
110
|
+
* list's focus rings. Optional, so a complete theme object written before
|
|
111
|
+
* the key existed still type-checks; without it the colour is `#ff9800`.
|
|
112
|
+
*/
|
|
113
|
+
annotationTextItemActiveColor?: string;
|
|
117
114
|
playlistBackgroundColor?: string;
|
|
118
115
|
pianoRollNoteColor: string;
|
|
119
116
|
pianoRollSelectedNoteColor: string;
|
|
120
117
|
pianoRollBackgroundColor: string;
|
|
118
|
+
/**
|
|
119
|
+
* Background behind a spectrogram. Optional so that a complete theme
|
|
120
|
+
* object written before the key existed still type-checks; without it the
|
|
121
|
+
* colour is `#000`.
|
|
122
|
+
*/
|
|
123
|
+
spectrogramBackgroundColor?: string;
|
|
124
|
+
/**
|
|
125
|
+
* Opacity (0 to 1) of a clip whose audio is still loading (`Clip` with
|
|
126
|
+
* `isPlaceholder`), header included. Optional so that a complete theme
|
|
127
|
+
* object written before the key existed still type-checks; without it, or
|
|
128
|
+
* with a value that is not a number from 0 to 1, the opacity is 0.5.
|
|
129
|
+
*/
|
|
130
|
+
placeholderClipOpacity?: number;
|
|
121
131
|
borderRadius: string;
|
|
122
132
|
fontFamily: string;
|
|
123
133
|
fontSize: string;
|
|
@@ -150,6 +160,12 @@ interface ChannelProps {
|
|
|
150
160
|
* mode leaves them transparent). Default: false
|
|
151
161
|
*/
|
|
152
162
|
roundedBars?: boolean;
|
|
163
|
+
/**
|
|
164
|
+
* Linear gain applied to the DRAWN bars (clamped to the channel height) —
|
|
165
|
+
* pass a clip's gain so a levelled clip looks the way it sounds.
|
|
166
|
+
* Display-only: peak data is untouched. Default: 1 (source level)
|
|
167
|
+
*/
|
|
168
|
+
gain?: number;
|
|
153
169
|
/** If true, background is transparent (for use with external progress overlay) */
|
|
154
170
|
transparentBackground?: boolean;
|
|
155
171
|
/**
|
|
@@ -177,12 +193,23 @@ interface ErrorBoundaryState {
|
|
|
177
193
|
* processing errors) and displays a fallback UI instead of crashing
|
|
178
194
|
* the entire application.
|
|
179
195
|
*
|
|
196
|
+
* It catches errors of the components BELOW it only. An arrangement
|
|
197
|
+
* initializer that throws is a render error of the component that calls
|
|
198
|
+
* `useCreateArrangement`, so the boundary goes around that component:
|
|
199
|
+
*
|
|
180
200
|
* @example
|
|
181
201
|
* ```tsx
|
|
202
|
+
* function Editor() {
|
|
203
|
+
* const arrangement = useCreateArrangement(() => [audioTrack({ src: '/vocals.mp3' })]);
|
|
204
|
+
* return (
|
|
205
|
+
* <WaveformPlaylistProvider arrangement={arrangement}>
|
|
206
|
+
* <Waveform />
|
|
207
|
+
* </WaveformPlaylistProvider>
|
|
208
|
+
* );
|
|
209
|
+
* }
|
|
210
|
+
*
|
|
182
211
|
* <PlaylistErrorBoundary>
|
|
183
|
-
* <
|
|
184
|
-
* <Waveform />
|
|
185
|
-
* </WaveformPlaylistProvider>
|
|
212
|
+
* <Editor />
|
|
186
213
|
* </PlaylistErrorBoundary>
|
|
187
214
|
* ```
|
|
188
215
|
*/
|
|
@@ -208,12 +235,24 @@ interface ClipProps {
|
|
|
208
235
|
isOverlay?: boolean;
|
|
209
236
|
isSelected?: boolean;
|
|
210
237
|
onMouseDown?: (e: react__default.MouseEvent<HTMLDivElement>) => void;
|
|
238
|
+
/** The id of the clip's track. With it the clip's draggable ids are built
|
|
239
|
+
* from the track id and `clipId` (`clip/<trackId>/<clipId>`,
|
|
240
|
+
* `clip-boundary-left/…`, `clip-boundary-right/…`, each id URI-encoded)
|
|
241
|
+
* and stay with the clip when its row position changes; without it they
|
|
242
|
+
* are built from `trackIndex` and `clipIndex`. */
|
|
211
243
|
trackId?: string;
|
|
212
244
|
fadeIn?: Fade;
|
|
213
245
|
fadeOut?: Fade;
|
|
214
246
|
sampleRate?: number;
|
|
215
247
|
showFades?: boolean;
|
|
216
248
|
touchOptimized?: boolean;
|
|
249
|
+
/** The clip's audio is not loaded yet. The whole clip, header included, is
|
|
250
|
+
* drawn dimmed at `theme.placeholderClipOpacity` (0.5 when the theme does
|
|
251
|
+
* not set it); a loaded clip sets no opacity. The container carries
|
|
252
|
+
* `data-clip-placeholder="true"`, the header is the presentational one (no
|
|
253
|
+
* drag handle) and there are no trim handles, whatever `disableHeaderDrag`
|
|
254
|
+
* says. Default false. */
|
|
255
|
+
isPlaceholder?: boolean;
|
|
217
256
|
}
|
|
218
257
|
/**
|
|
219
258
|
* Clip component for rendering individual audio clips within a track
|
|
@@ -287,6 +326,20 @@ interface ClipHeaderProps {
|
|
|
287
326
|
*/
|
|
288
327
|
declare const ClipHeader: FunctionComponent<ClipHeaderProps>;
|
|
289
328
|
|
|
329
|
+
interface ClipPlaceholderBodyProps {
|
|
330
|
+
/** The clip's track is selected: the selected bar colour. Default false. */
|
|
331
|
+
isSelected?: boolean;
|
|
332
|
+
}
|
|
333
|
+
/**
|
|
334
|
+
* The body of a placeholder clip that has no peaks to draw (its audio is
|
|
335
|
+
* still loading and nothing gives its waveform): a box over the clip's whole
|
|
336
|
+
* channel area, the clip's width and the height below its header, in the
|
|
337
|
+
* colour of the waveform's bars, with nothing drawn in it. Rendered as a child
|
|
338
|
+
* of `Clip` (with `isPlaceholder`), which dims it with the rest of the clip;
|
|
339
|
+
* it sets no opacity itself. Carries `data-clip-placeholder-body="true"`.
|
|
340
|
+
*/
|
|
341
|
+
declare const ClipPlaceholderBody: FunctionComponent<ClipPlaceholderBodyProps>;
|
|
342
|
+
|
|
290
343
|
interface FadeOverlayProps {
|
|
291
344
|
/** Position in pixels from the start of the clip */
|
|
292
345
|
left: number;
|
|
@@ -338,6 +391,11 @@ declare const PianoRollChannel: FunctionComponent<PianoRollChannelProps>;
|
|
|
338
391
|
|
|
339
392
|
/**
|
|
340
393
|
* Props passed to the default playhead component or custom render function.
|
|
394
|
+
* The same seven under `WaveformPlaylistProvider` and
|
|
395
|
+
* `MediaElementPlaylistProvider`. Engine values (`getPlaybackTime`,
|
|
396
|
+
* `getAudioContextTime`, `playbackStartTimeRef`, `audioStartPositionRef`) are
|
|
397
|
+
* not props: a playhead for `WaveformPlaylistProvider` that needs them calls
|
|
398
|
+
* `useEngineRefs()` from `@waveform-playlist/browser`.
|
|
341
399
|
*/
|
|
342
400
|
interface PlayheadProps {
|
|
343
401
|
/** Position in pixels from left edge (only valid when not playing) */
|
|
@@ -346,35 +404,24 @@ interface PlayheadProps {
|
|
|
346
404
|
color?: string;
|
|
347
405
|
/** Whether audio is currently playing */
|
|
348
406
|
isPlaying: boolean;
|
|
349
|
-
/**
|
|
407
|
+
/**
|
|
408
|
+
* Ref to the raw playback position in seconds. Use `visualTimeRef` to place
|
|
409
|
+
* a playhead; this one is for logic that needs the scheduling position.
|
|
410
|
+
*/
|
|
350
411
|
currentTimeRef: react__default.RefObject<number>;
|
|
351
|
-
/**
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
412
|
+
/**
|
|
413
|
+
* Ref to the time a playhead should be drawn at, in seconds. Under
|
|
414
|
+
* `WaveformPlaylistProvider`, while playing, it is the audible time (raw
|
|
415
|
+
* minus output latency and look-ahead), and at rest the commanded position
|
|
416
|
+
* (seek, pause, stop). Under `MediaElementPlaylistProvider` it is the same
|
|
417
|
+
* ref as `currentTimeRef`. The provider keeps it current on every frame of
|
|
418
|
+
* playback, so a playhead that reads it stays in step with the progress fill.
|
|
419
|
+
*/
|
|
420
|
+
visualTimeRef: react__default.RefObject<number>;
|
|
355
421
|
/** Samples per pixel - for converting time to pixels */
|
|
356
422
|
samplesPerPixel: number;
|
|
357
423
|
/** Sample rate - for converting time to pixels */
|
|
358
424
|
sampleRate: number;
|
|
359
|
-
/** Controls offset in pixels (deprecated, always 0 — controls are now outside scroll area) */
|
|
360
|
-
controlsOffset?: number;
|
|
361
|
-
/** Function to get current audio context time - required for smooth animation */
|
|
362
|
-
getAudioContextTime?: () => number;
|
|
363
|
-
/**
|
|
364
|
-
* Returns raw playback time from the engine (auto-wraps at loop boundaries).
|
|
365
|
-
* This is the scheduling position — for playhead display use `visualTimeRef`,
|
|
366
|
-
* which is latency-compensated while playing.
|
|
367
|
-
*/
|
|
368
|
-
getPlaybackTime?: () => number;
|
|
369
|
-
/**
|
|
370
|
-
* Ref to the visually-aligned playback time: engine-compensated audible time
|
|
371
|
-
* (raw minus `outputLatency` and `engine.lookAhead`) while playing, the raw
|
|
372
|
-
* commanded position when resting (seek/pause/stop). Kept current by the
|
|
373
|
-
* provider's animation loop during playback and by pause/stop/seek paths
|
|
374
|
-
* when stopped. Use this for playhead positioning so it matches the
|
|
375
|
-
* progress fill in `ChannelWithProgress`.
|
|
376
|
-
*/
|
|
377
|
-
visualTimeRef?: react__default.RefObject<number>;
|
|
378
425
|
}
|
|
379
426
|
/**
|
|
380
427
|
* Type for custom playhead render functions.
|
|
@@ -416,6 +463,8 @@ interface PlaylistProps {
|
|
|
416
463
|
readonly trackControlsSlots?: react__default.ReactNode[];
|
|
417
464
|
/** Height of the timescale gap spacer in the controls column (matches timescale height) */
|
|
418
465
|
readonly timescaleGapHeight?: number;
|
|
466
|
+
/** Class name for the outermost element. */
|
|
467
|
+
readonly className?: string;
|
|
419
468
|
}
|
|
420
469
|
declare const Playlist: FunctionComponent<PlaylistProps>;
|
|
421
470
|
declare const StyledPlaylist: react__default.ForwardRefExoticComponent<Omit<PlaylistProps, keyof styled_components.ExecutionProps> & styled_components.ExecutionProps & react__default.RefAttributes<any>> & styled_components_dist_utils_hoist.NonReactStatics<react__default.FunctionComponent<PlaylistProps>>;
|
|
@@ -480,45 +529,29 @@ interface TimescaleLoopRegionProps {
|
|
|
480
529
|
*/
|
|
481
530
|
declare const TimescaleLoopRegion: react__default.FC<TimescaleLoopRegionProps>;
|
|
482
531
|
|
|
532
|
+
/**
|
|
533
|
+
* Time format utilities for displaying and parsing audio timestamps
|
|
534
|
+
*/
|
|
535
|
+
type TimeFormat = 'seconds' | 'thousandths' | 'hh:mm:ss' | 'hh:mm:ss.u' | 'hh:mm:ss.uu' | 'hh:mm:ss.uuu';
|
|
536
|
+
/**
|
|
537
|
+
* Format seconds according to the specified format
|
|
538
|
+
*/
|
|
539
|
+
declare function formatTime(seconds: number, format: TimeFormat): string;
|
|
540
|
+
/**
|
|
541
|
+
* Parse a formatted time string back to seconds
|
|
542
|
+
*/
|
|
543
|
+
declare function parseTime(timeStr: string, format: TimeFormat): number;
|
|
544
|
+
|
|
483
545
|
interface SelectionTimeInputsProps {
|
|
484
546
|
selectionStart: number;
|
|
485
547
|
selectionEnd: number;
|
|
486
548
|
onSelectionChange?: (start: number, end: number) => void;
|
|
549
|
+
/** How the two times are shown and parsed. Default: `hh:mm:ss.uuu`. */
|
|
550
|
+
format?: TimeFormat;
|
|
487
551
|
className?: string;
|
|
488
552
|
}
|
|
489
553
|
declare const SelectionTimeInputs: react__default.FC<SelectionTimeInputsProps>;
|
|
490
554
|
|
|
491
|
-
interface SpectrogramCanvasRegistration {
|
|
492
|
-
canvasId: string;
|
|
493
|
-
canvas: OffscreenCanvas;
|
|
494
|
-
clipId: string;
|
|
495
|
-
channelIndex: number;
|
|
496
|
-
chunkIndex: number;
|
|
497
|
-
widthPx: number;
|
|
498
|
-
heightPx: number;
|
|
499
|
-
}
|
|
500
|
-
interface SpectrogramChannelProps {
|
|
501
|
-
/** Visual position index — used for CSS positioning (top offset). */
|
|
502
|
-
index: number;
|
|
503
|
-
/** Audio channel index for canvas ID construction. Defaults to `index` when omitted. */
|
|
504
|
-
channelIndex?: number;
|
|
505
|
-
/** Width in CSS pixels */
|
|
506
|
-
length: number;
|
|
507
|
-
/** Height in CSS pixels */
|
|
508
|
-
waveHeight: number;
|
|
509
|
-
/** Device pixel ratio for sharp rendering */
|
|
510
|
-
devicePixelRatio?: number;
|
|
511
|
-
/** Samples per pixel at current zoom level */
|
|
512
|
-
samplesPerPixel: number;
|
|
513
|
-
/** Clip ID used to construct unique canvas IDs */
|
|
514
|
-
clipId: string;
|
|
515
|
-
/** Single-call canvas registration. Receives the transferred OffscreenCanvas + metadata. */
|
|
516
|
-
onCanvasRegister: (reg: SpectrogramCanvasRegistration) => void;
|
|
517
|
-
/** Counterpart for chunk unmount / component unmount. */
|
|
518
|
-
onCanvasUnregister: (canvasId: string) => void;
|
|
519
|
-
}
|
|
520
|
-
declare const SpectrogramChannel: FunctionComponent<SpectrogramChannelProps>;
|
|
521
|
-
|
|
522
555
|
interface SmartChannelProps {
|
|
523
556
|
className?: string;
|
|
524
557
|
index: number;
|
|
@@ -528,6 +561,9 @@ interface SmartChannelProps {
|
|
|
528
561
|
isSelected?: boolean;
|
|
529
562
|
/** If true, background is transparent (for use with external progress overlay) */
|
|
530
563
|
transparentBackground?: boolean;
|
|
564
|
+
/** Linear gain applied to the drawn waveform bars (see `ChannelProps.gain`).
|
|
565
|
+
* Waveform rendering only — spectrogram and piano roll ignore it. */
|
|
566
|
+
gain?: number;
|
|
531
567
|
/** Render mode: waveform, spectrogram, or both */
|
|
532
568
|
renderMode?: RenderMode;
|
|
533
569
|
/** Samples per pixel at current zoom level */
|
|
@@ -538,7 +574,18 @@ interface SmartChannelProps {
|
|
|
538
574
|
spectrogramOnCanvasRegister?: (reg: SpectrogramCanvasRegistration) => void;
|
|
539
575
|
/** Counterpart for chunk unmount / unmount. */
|
|
540
576
|
spectrogramOnCanvasUnregister?: (canvasId: string) => void;
|
|
541
|
-
/**
|
|
577
|
+
/**
|
|
578
|
+
* The range of the audio the spectrogram is drawn for, in samples: where
|
|
579
|
+
* the drawn clip starts in its audio and how much it covers. Its canvases
|
|
580
|
+
* register with it (see `SpectrogramChannel`). Omitted: the clip's own.
|
|
581
|
+
*/
|
|
582
|
+
spectrogramOffsetSamples?: number;
|
|
583
|
+
spectrogramDurationSamples?: number;
|
|
584
|
+
/**
|
|
585
|
+
* The notes of a MIDI clip. When given (an empty array included), the
|
|
586
|
+
* channel is drawn as a piano roll and `renderMode` is not used. Pass the
|
|
587
|
+
* same array while the notes are unchanged: a new array is redrawn.
|
|
588
|
+
*/
|
|
542
589
|
midiNotes?: MidiNoteData[];
|
|
543
590
|
/** Sample rate for MIDI note time → pixel conversion */
|
|
544
591
|
sampleRate?: number;
|
|
@@ -547,6 +594,37 @@ interface SmartChannelProps {
|
|
|
547
594
|
}
|
|
548
595
|
declare const SmartChannel: FunctionComponent<SmartChannelProps>;
|
|
549
596
|
|
|
597
|
+
interface SpectrogramChannelProps {
|
|
598
|
+
/** Visual position index — used for CSS positioning (top offset). */
|
|
599
|
+
index: number;
|
|
600
|
+
/** Audio channel index for canvas ID construction. Defaults to `index` when omitted. */
|
|
601
|
+
channelIndex?: number;
|
|
602
|
+
/** Width in CSS pixels */
|
|
603
|
+
length: number;
|
|
604
|
+
/** Height in CSS pixels */
|
|
605
|
+
waveHeight: number;
|
|
606
|
+
/** Device pixel ratio for sharp rendering */
|
|
607
|
+
devicePixelRatio?: number;
|
|
608
|
+
/** Samples per pixel at current zoom level */
|
|
609
|
+
samplesPerPixel: number;
|
|
610
|
+
/** Clip ID used to construct unique canvas IDs */
|
|
611
|
+
clipId: string;
|
|
612
|
+
/** Single-call canvas registration. Receives the transferred OffscreenCanvas + metadata. */
|
|
613
|
+
onCanvasRegister: (reg: SpectrogramCanvasRegistration) => void;
|
|
614
|
+
/** Counterpart for chunk unmount / component unmount. */
|
|
615
|
+
onCanvasUnregister: (canvasId: string) => void;
|
|
616
|
+
/**
|
|
617
|
+
* Where in the audio the drawn clip starts, in samples. Each canvas
|
|
618
|
+
* registers with it, and the provider draws this range instead of the
|
|
619
|
+
* clip's own (the view draws a trim being dragged before the tracks have
|
|
620
|
+
* it). A new value registers new canvases. Omitted: the clip's own.
|
|
621
|
+
*/
|
|
622
|
+
offsetSamples?: number;
|
|
623
|
+
/** How much of the audio the drawn clip covers, in samples. See `offsetSamples`. */
|
|
624
|
+
durationSamples?: number;
|
|
625
|
+
}
|
|
626
|
+
declare const SpectrogramChannel: FunctionComponent<SpectrogramChannelProps>;
|
|
627
|
+
|
|
550
628
|
interface SpectrogramLabelsProps {
|
|
551
629
|
/** Height per channel in CSS pixels */
|
|
552
630
|
waveHeight: number;
|
|
@@ -570,6 +648,13 @@ interface SpectrogramLabelsProps {
|
|
|
570
648
|
declare const SpectrogramLabels: react__default.FC<SpectrogramLabelsProps>;
|
|
571
649
|
|
|
572
650
|
interface SmartScaleProps {
|
|
651
|
+
/**
|
|
652
|
+
* Length of the timeline the scale covers, in milliseconds. A prop and not a
|
|
653
|
+
* field of `PlaylistInfoContext` (#768): the length changes on every pointer
|
|
654
|
+
* move of a trim at the end of the timeline, and every channel and track
|
|
655
|
+
* reads that context.
|
|
656
|
+
*/
|
|
657
|
+
readonly durationMs: number;
|
|
573
658
|
readonly renderTick?: (label: string, pixelPosition: number) => ReactNode;
|
|
574
659
|
}
|
|
575
660
|
declare function getScaleInfo(samplesPerPixel: number): {
|
|
@@ -579,19 +664,6 @@ declare function getScaleInfo(samplesPerPixel: number): {
|
|
|
579
664
|
};
|
|
580
665
|
declare const SmartScale: FunctionComponent<SmartScaleProps>;
|
|
581
666
|
|
|
582
|
-
/**
|
|
583
|
-
* Time format utilities for displaying and parsing audio timestamps
|
|
584
|
-
*/
|
|
585
|
-
type TimeFormat = 'seconds' | 'thousandths' | 'hh:mm:ss' | 'hh:mm:ss.u' | 'hh:mm:ss.uu' | 'hh:mm:ss.uuu';
|
|
586
|
-
/**
|
|
587
|
-
* Format seconds according to the specified format
|
|
588
|
-
*/
|
|
589
|
-
declare function formatTime(seconds: number, format: TimeFormat): string;
|
|
590
|
-
/**
|
|
591
|
-
* Parse a formatted time string back to seconds
|
|
592
|
-
*/
|
|
593
|
-
declare function parseTime(timeStr: string, format: TimeFormat): number;
|
|
594
|
-
|
|
595
667
|
interface TimeFormatSelectProps {
|
|
596
668
|
value: TimeFormat;
|
|
597
669
|
onChange: (format: TimeFormat) => void;
|
|
@@ -603,6 +675,24 @@ interface TimeFormatSelectProps {
|
|
|
603
675
|
*/
|
|
604
676
|
declare const TimeFormatSelect: react__default.FC<TimeFormatSelectProps>;
|
|
605
677
|
|
|
678
|
+
/** The speeds offered when `rates` is not given. */
|
|
679
|
+
declare const DEFAULT_PLAYBACK_RATES: readonly number[];
|
|
680
|
+
interface PlaybackRateSelectProps {
|
|
681
|
+
/** The current speed, where 1 is normal. */
|
|
682
|
+
value: number;
|
|
683
|
+
onChange: (rate: number) => void;
|
|
684
|
+
/** The speeds to offer, in the order to list them. */
|
|
685
|
+
rates?: readonly number[];
|
|
686
|
+
disabled?: boolean;
|
|
687
|
+
className?: string;
|
|
688
|
+
}
|
|
689
|
+
/**
|
|
690
|
+
* Dropdown select for the playback speed. A current speed that is not among
|
|
691
|
+
* `rates` (set from code) is listed as an extra option, so the select never
|
|
692
|
+
* shows a speed that is not the one playing.
|
|
693
|
+
*/
|
|
694
|
+
declare const PlaybackRateSelect: react__default.FC<PlaybackRateSelectProps>;
|
|
695
|
+
|
|
606
696
|
interface TimeInputProps {
|
|
607
697
|
id: string;
|
|
608
698
|
label: string;
|
|
@@ -616,7 +706,8 @@ interface TimeInputProps {
|
|
|
616
706
|
* TimeInput - A styled input for time values with format support
|
|
617
707
|
*
|
|
618
708
|
* Uses BaseInput for consistent theming. Displays time in the specified
|
|
619
|
-
* format and parses user input on blur.
|
|
709
|
+
* format and parses user input on blur. `onChange` fires only when the text
|
|
710
|
+
* was edited, so moving focus through the input never rounds the value.
|
|
620
711
|
*/
|
|
621
712
|
declare const TimeInput: react__default.FC<TimeInputProps>;
|
|
622
713
|
|
|
@@ -658,15 +749,11 @@ declare const Track: FunctionComponent<TrackProps>;
|
|
|
658
749
|
* Supports variants: outline (default), danger, info
|
|
659
750
|
* Uses theme values for consistent styling.
|
|
660
751
|
*/
|
|
661
|
-
declare const Button: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<styled_components.FastOmit<styled_components.FastOmit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>,
|
|
662
|
-
ref?: ((instance: HTMLButtonElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLButtonElement> | null | undefined;
|
|
663
|
-
}, "$variant"> & {
|
|
752
|
+
declare const Button: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<styled_components.FastOmit<styled_components.FastOmit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, keyof react.ClassAttributes<HTMLButtonElement> | keyof react.ButtonHTMLAttributes<HTMLButtonElement>> & react.ClassAttributes<HTMLButtonElement> & react.ButtonHTMLAttributes<HTMLButtonElement>, "$variant"> & {
|
|
664
753
|
$variant?: "outline" | "danger" | "info";
|
|
665
|
-
}, "form" | "slot" | "ref" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "
|
|
666
|
-
ref?: ((instance: HTMLButtonElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLButtonElement> | null | undefined;
|
|
667
|
-
}, "$variant"> & {
|
|
754
|
+
}, "form" | "slot" | "ref" | "key" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture"> & Partial<Pick<styled_components.FastOmit<styled_components.FastOmit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, keyof react.ClassAttributes<HTMLButtonElement> | keyof react.ButtonHTMLAttributes<HTMLButtonElement>> & react.ClassAttributes<HTMLButtonElement> & react.ButtonHTMLAttributes<HTMLButtonElement>, "$variant"> & {
|
|
668
755
|
$variant?: "outline" | "danger" | "info";
|
|
669
|
-
}, "form" | "slot" | "ref" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "
|
|
756
|
+
}, "form" | "slot" | "ref" | "key" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture">>> & string;
|
|
670
757
|
|
|
671
758
|
declare const ButtonGroup: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
|
|
672
759
|
|
|
@@ -676,7 +763,7 @@ interface CloseButtonProps {
|
|
|
676
763
|
}
|
|
677
764
|
declare const CloseButton: react__default.FC<CloseButtonProps>;
|
|
678
765
|
|
|
679
|
-
declare const Controls
|
|
766
|
+
declare const Controls: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
|
|
680
767
|
|
|
681
768
|
declare const Header: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, never> & Partial<Pick<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, never>>> & string;
|
|
682
769
|
|
|
@@ -718,18 +805,10 @@ declare const ReorderRail: react__default.FC<ReorderRailProps>;
|
|
|
718
805
|
* - Smaller thumb and track for compact layout
|
|
719
806
|
* - Uses theme's sliderThumbColor (goldenrod by default)
|
|
720
807
|
*/
|
|
721
|
-
declare const Slider: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<styled_components.FastOmit<styled_components.FastOmit<styled_components.FastOmit<react.DetailedHTMLProps<react.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>,
|
|
722
|
-
ref?: ((instance: HTMLInputElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLInputElement> | null | undefined;
|
|
723
|
-
}, "type"> & Partial<Pick<styled_components.FastOmit<react.DetailedHTMLProps<react.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref" | "key" | keyof react.InputHTMLAttributes<HTMLInputElement>> & Omit<react.DetailedHTMLProps<react.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & {
|
|
724
|
-
ref?: ((instance: HTMLInputElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLInputElement> | null | undefined;
|
|
725
|
-
}, "type">>, "as" | "forwardedAs"> & {
|
|
808
|
+
declare const Slider: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<styled_components.FastOmit<styled_components.FastOmit<styled_components.FastOmit<react.DetailedHTMLProps<react.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, keyof react.ClassAttributes<HTMLInputElement> | keyof react.InputHTMLAttributes<HTMLInputElement>> & react.ClassAttributes<HTMLInputElement> & react.InputHTMLAttributes<HTMLInputElement>, "type"> & Partial<Pick<styled_components.FastOmit<react.DetailedHTMLProps<react.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, keyof react.ClassAttributes<HTMLInputElement> | keyof react.InputHTMLAttributes<HTMLInputElement>> & react.ClassAttributes<HTMLInputElement> & react.InputHTMLAttributes<HTMLInputElement>, "type">>, "as" | "forwardedAs"> & {
|
|
726
809
|
as?: styled_components.WebTarget | undefined;
|
|
727
810
|
forwardedAs?: styled_components.WebTarget | undefined;
|
|
728
|
-
}, never> & Partial<Pick<styled_components.FastOmit<styled_components.FastOmit<styled_components.FastOmit<react.DetailedHTMLProps<react.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>,
|
|
729
|
-
ref?: ((instance: HTMLInputElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLInputElement> | null | undefined;
|
|
730
|
-
}, "type"> & Partial<Pick<styled_components.FastOmit<react.DetailedHTMLProps<react.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref" | "key" | keyof react.InputHTMLAttributes<HTMLInputElement>> & Omit<react.DetailedHTMLProps<react.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & {
|
|
731
|
-
ref?: ((instance: HTMLInputElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLInputElement> | null | undefined;
|
|
732
|
-
}, "type">>, "as" | "forwardedAs"> & {
|
|
811
|
+
}, never> & Partial<Pick<styled_components.FastOmit<styled_components.FastOmit<styled_components.FastOmit<react.DetailedHTMLProps<react.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, keyof react.ClassAttributes<HTMLInputElement> | keyof react.InputHTMLAttributes<HTMLInputElement>> & react.ClassAttributes<HTMLInputElement> & react.InputHTMLAttributes<HTMLInputElement>, "type"> & Partial<Pick<styled_components.FastOmit<react.DetailedHTMLProps<react.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, keyof react.ClassAttributes<HTMLInputElement> | keyof react.InputHTMLAttributes<HTMLInputElement>> & react.ClassAttributes<HTMLInputElement> & react.InputHTMLAttributes<HTMLInputElement>, "type">>, "as" | "forwardedAs"> & {
|
|
733
812
|
as?: styled_components.WebTarget | undefined;
|
|
734
813
|
forwardedAs?: styled_components.WebTarget | undefined;
|
|
735
814
|
}, never>>> & string;
|
|
@@ -751,7 +830,14 @@ interface ColorStop {
|
|
|
751
830
|
color: string;
|
|
752
831
|
}
|
|
753
832
|
interface SegmentedVUMeterProps {
|
|
754
|
-
|
|
833
|
+
/**
|
|
834
|
+
* A live meter (`useOutputMeter().meter`, `useMicrophoneLevel().meter`).
|
|
835
|
+
* The component draws each new value straight to the DOM and does not
|
|
836
|
+
* re-render for it. Takes precedence over `levels` / `peakLevels`.
|
|
837
|
+
*/
|
|
838
|
+
meter?: MeterSource;
|
|
839
|
+
/** Per-channel levels (0-1) for a meter driven by props. */
|
|
840
|
+
levels?: number[];
|
|
755
841
|
peakLevels?: number[];
|
|
756
842
|
channelLabels?: string[];
|
|
757
843
|
orientation?: 'vertical' | 'horizontal';
|
|
@@ -769,12 +855,14 @@ interface SegmentedVUMeterProps {
|
|
|
769
855
|
}
|
|
770
856
|
declare const SegmentedVUMeter: react__default.NamedExoticComponent<SegmentedVUMeterProps>;
|
|
771
857
|
|
|
772
|
-
|
|
858
|
+
/** The grid a drag snaps to under `BeatsAndBarsProvider`. (Core's `SnapTo` is
|
|
859
|
+
* the longer list of grid values the web components take.) */
|
|
860
|
+
type BeatsAndBarsSnapTo = 'bar' | 'beat' | 'off';
|
|
773
861
|
type ScaleMode = 'beats' | 'temporal';
|
|
774
862
|
interface BeatsAndBarsContextValue {
|
|
775
863
|
bpm: number;
|
|
776
864
|
timeSignature: [number, number];
|
|
777
|
-
snapTo:
|
|
865
|
+
snapTo: BeatsAndBarsSnapTo;
|
|
778
866
|
scaleMode: ScaleMode;
|
|
779
867
|
ticksPerBeat: number;
|
|
780
868
|
ticksPerBar: number;
|
|
@@ -782,7 +870,7 @@ interface BeatsAndBarsContextValue {
|
|
|
782
870
|
interface BeatsAndBarsProviderProps {
|
|
783
871
|
bpm: number;
|
|
784
872
|
timeSignature: [number, number];
|
|
785
|
-
snapTo:
|
|
873
|
+
snapTo: BeatsAndBarsSnapTo;
|
|
786
874
|
/** Which timescale to render. Defaults to `'beats'`. Set to `'temporal'` to
|
|
787
875
|
* show minutes:seconds while keeping snap-to-grid active. */
|
|
788
876
|
scaleMode?: ScaleMode;
|
|
@@ -791,58 +879,41 @@ interface BeatsAndBarsProviderProps {
|
|
|
791
879
|
declare function BeatsAndBarsProvider({ bpm, timeSignature, snapTo, scaleMode, children, }: BeatsAndBarsProviderProps): react__default.JSX.Element;
|
|
792
880
|
declare function useBeatsAndBars(): BeatsAndBarsContextValue | null;
|
|
793
881
|
|
|
794
|
-
type Props
|
|
882
|
+
type Props = {
|
|
795
883
|
children: ReactNode;
|
|
796
884
|
};
|
|
797
|
-
declare const DevicePixelRatioProvider: ({ children }: Props
|
|
885
|
+
declare const DevicePixelRatioProvider: ({ children }: Props) => react__default.JSX.Element;
|
|
798
886
|
declare const useDevicePixelRatio: () => number;
|
|
799
887
|
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
888
|
+
/**
|
|
889
|
+
* What the drawing primitives (`Track`, `SmartChannel`, `SmartScale`,
|
|
890
|
+
* `TimeScale`) need from the view they are drawn in. The browser package's
|
|
891
|
+
* roots publish it once per view; without one above, the defaults apply.
|
|
892
|
+
*/
|
|
804
893
|
type PlaylistInfo = {
|
|
805
894
|
sampleRate: number;
|
|
806
895
|
samplesPerPixel: number;
|
|
807
|
-
|
|
896
|
+
/** Height in pixels of one channel. Default: 80 */
|
|
808
897
|
waveHeight: number;
|
|
898
|
+
/** Height in pixels of the timescale strip; 0 when there is none. */
|
|
809
899
|
timeScaleHeight: number;
|
|
810
|
-
duration: number;
|
|
811
|
-
controls: Controls;
|
|
812
900
|
/** Width in pixels of waveform bars. Default: 1 */
|
|
813
901
|
barWidth: number;
|
|
814
902
|
/** Spacing in pixels between waveform bars. Default: 0 */
|
|
815
903
|
barGap: number;
|
|
816
904
|
/** Draw bars with pill-shaped rounded caps (radius barWidth/2). Default: false */
|
|
817
|
-
roundedBars
|
|
818
|
-
/** Width in pixels of
|
|
819
|
-
progressBarWidth
|
|
905
|
+
roundedBars: boolean;
|
|
906
|
+
/** Width in pixels of the playhead line. Default: barWidth + barGap. */
|
|
907
|
+
progressBarWidth: number;
|
|
820
908
|
};
|
|
909
|
+
declare const DEFAULT_WAVE_HEIGHT = 80;
|
|
910
|
+
declare const DEFAULT_BAR_WIDTH = 1;
|
|
911
|
+
declare const DEFAULT_BAR_GAP = 0;
|
|
821
912
|
declare const PlaylistInfoContext: react.Context<PlaylistInfo>;
|
|
822
913
|
declare const usePlaylistInfo: () => PlaylistInfo;
|
|
823
914
|
|
|
824
915
|
declare const useTheme: () => styled_components.DefaultTheme | undefined;
|
|
825
916
|
|
|
826
|
-
declare const TrackControlsContext: react__default.Context<react__default.ReactNode>;
|
|
827
|
-
declare const useTrackControls: () => react__default.ReactNode;
|
|
828
|
-
|
|
829
|
-
type PlayoutStatusUpdate = {
|
|
830
|
-
setIsPlaying: Dispatch<SetStateAction<boolean>>;
|
|
831
|
-
setProgress: Dispatch<SetStateAction<number>>;
|
|
832
|
-
setSelection: (start: number, end: number) => void;
|
|
833
|
-
};
|
|
834
|
-
type Props = {
|
|
835
|
-
children: ReactNode;
|
|
836
|
-
};
|
|
837
|
-
declare const PlayoutProvider: ({ children }: Props) => react__default.JSX.Element;
|
|
838
|
-
declare const usePlayoutStatus: () => {
|
|
839
|
-
progress: number;
|
|
840
|
-
isPlaying: boolean;
|
|
841
|
-
selectionStart: number;
|
|
842
|
-
selectionEnd: number;
|
|
843
|
-
};
|
|
844
|
-
declare const usePlayoutStatusUpdate: () => PlayoutStatusUpdate;
|
|
845
|
-
|
|
846
917
|
interface ScrollViewport {
|
|
847
918
|
scrollLeft: number;
|
|
848
919
|
containerWidth: number;
|
|
@@ -902,13 +973,6 @@ declare const ClipViewportOriginProvider: ({ originX, children, }: ClipViewportO
|
|
|
902
973
|
*/
|
|
903
974
|
declare const useClipViewportOrigin: () => number;
|
|
904
975
|
|
|
905
|
-
declare function samplesToSeconds(samples: number, sampleRate: number): number;
|
|
906
|
-
declare function secondsToSamples(seconds: number, sampleRate: number): number;
|
|
907
|
-
declare function samplesToPixels(samples: number, samplesPerPixel: number): number;
|
|
908
|
-
declare function pixelsToSamples(pixels: number, samplesPerPixel: number): number;
|
|
909
|
-
declare function pixelsToSeconds(pixels: number, samplesPerPixel: number, sampleRate: number): number;
|
|
910
|
-
declare function secondsToPixels(seconds: number, samplesPerPixel: number, sampleRate: number): number;
|
|
911
|
-
|
|
912
976
|
/**
|
|
913
977
|
* BaseButton - A styled button component that uses theme values
|
|
914
978
|
*
|
|
@@ -947,16 +1011,12 @@ declare const BaseInput: styled_components_dist_types.IStyledComponentBase<"web"
|
|
|
947
1011
|
/**
|
|
948
1012
|
* BaseInputSmall - A smaller variant for compact layouts
|
|
949
1013
|
*/
|
|
950
|
-
declare const BaseInputSmall: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<
|
|
1014
|
+
declare const BaseInputSmall: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<styled_components.FastOmit<styled_components.FastOmit<react.DetailedHTMLProps<react.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never> & Partial<Pick<react.DetailedHTMLProps<react.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never>>, "as" | "forwardedAs"> & {
|
|
951
1015
|
as?: styled_components.WebTarget | undefined;
|
|
952
1016
|
forwardedAs?: styled_components.WebTarget | undefined;
|
|
953
|
-
}, "
|
|
954
|
-
ref?: ((instance: HTMLInputElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLInputElement> | null | undefined;
|
|
955
|
-
}, never> & Partial<Pick<Omit<styled_components.FastOmit<styled_components.FastOmit<react.DetailedHTMLProps<react.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never> & Partial<Pick<react.DetailedHTMLProps<react.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never>>, "as" | "forwardedAs"> & {
|
|
1017
|
+
}, never> & Partial<Pick<styled_components.FastOmit<styled_components.FastOmit<react.DetailedHTMLProps<react.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never> & Partial<Pick<react.DetailedHTMLProps<react.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never>>, "as" | "forwardedAs"> & {
|
|
956
1018
|
as?: styled_components.WebTarget | undefined;
|
|
957
1019
|
forwardedAs?: styled_components.WebTarget | undefined;
|
|
958
|
-
}, "ref"> & {
|
|
959
|
-
ref?: ((instance: HTMLInputElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLInputElement> | null | undefined;
|
|
960
1020
|
}, never>>> & string;
|
|
961
1021
|
|
|
962
1022
|
/**
|
|
@@ -981,16 +1041,12 @@ declare const BaseSelect: styled_components_dist_types.IStyledComponentBase<"web
|
|
|
981
1041
|
/**
|
|
982
1042
|
* BaseSelectSmall - A smaller variant for compact layouts
|
|
983
1043
|
*/
|
|
984
|
-
declare const BaseSelectSmall: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<
|
|
1044
|
+
declare const BaseSelectSmall: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<styled_components.FastOmit<styled_components.FastOmit<react.DetailedHTMLProps<react.SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement>, never> & Partial<Pick<react.DetailedHTMLProps<react.SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement>, never>>, "as" | "forwardedAs"> & {
|
|
985
1045
|
as?: styled_components.WebTarget | undefined;
|
|
986
1046
|
forwardedAs?: styled_components.WebTarget | undefined;
|
|
987
|
-
}, "
|
|
988
|
-
ref?: ((instance: HTMLSelectElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLSelectElement> | null | undefined;
|
|
989
|
-
}, never> & Partial<Pick<Omit<styled_components.FastOmit<styled_components.FastOmit<react.DetailedHTMLProps<react.SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement>, never> & Partial<Pick<react.DetailedHTMLProps<react.SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement>, never>>, "as" | "forwardedAs"> & {
|
|
1047
|
+
}, never> & Partial<Pick<styled_components.FastOmit<styled_components.FastOmit<react.DetailedHTMLProps<react.SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement>, never> & Partial<Pick<react.DetailedHTMLProps<react.SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement>, never>>, "as" | "forwardedAs"> & {
|
|
990
1048
|
as?: styled_components.WebTarget | undefined;
|
|
991
1049
|
forwardedAs?: styled_components.WebTarget | undefined;
|
|
992
|
-
}, "ref"> & {
|
|
993
|
-
ref?: ((instance: HTMLSelectElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLSelectElement> | null | undefined;
|
|
994
1050
|
}, never>>> & string;
|
|
995
1051
|
|
|
996
1052
|
/**
|
|
@@ -999,10 +1055,32 @@ declare const BaseSelectSmall: styled_components_dist_types.IStyledComponentBase
|
|
|
999
1055
|
* Uses theme values for consistent styling across light/dark modes.
|
|
1000
1056
|
* Provides custom styling for the track and thumb.
|
|
1001
1057
|
*/
|
|
1002
|
-
declare const BaseSlider: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<styled_components.FastOmit<react.DetailedHTMLProps<react.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>,
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1058
|
+
declare const BaseSlider: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<styled_components.FastOmit<react.DetailedHTMLProps<react.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, keyof react.ClassAttributes<HTMLInputElement> | keyof react.InputHTMLAttributes<HTMLInputElement>> & react.ClassAttributes<HTMLInputElement> & react.InputHTMLAttributes<HTMLInputElement>, "type"> & Partial<Pick<styled_components.FastOmit<react.DetailedHTMLProps<react.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, keyof react.ClassAttributes<HTMLInputElement> | keyof react.InputHTMLAttributes<HTMLInputElement>> & react.ClassAttributes<HTMLInputElement> & react.InputHTMLAttributes<HTMLInputElement>, "type">>> & string;
|
|
1059
|
+
|
|
1060
|
+
interface UseThrottledValueOptions {
|
|
1061
|
+
/**
|
|
1062
|
+
* The most times per second the component may re-render with a new value.
|
|
1063
|
+
* `Infinity` passes every value through. Zero, a negative number or `NaN`
|
|
1064
|
+
* is treated as 1.
|
|
1065
|
+
* Default: 10
|
|
1066
|
+
*/
|
|
1067
|
+
updateRate?: number;
|
|
1068
|
+
}
|
|
1069
|
+
/**
|
|
1070
|
+
* Read a `ValueSource` as React state, at a limited rate.
|
|
1071
|
+
*
|
|
1072
|
+
* Sources such as meter levels and recording progress change about 60 times a
|
|
1073
|
+
* second. This hook re-renders the calling component at most `updateRate`
|
|
1074
|
+
* times a second and always ends on the latest value. Prefer
|
|
1075
|
+
* `source.subscribe()` with a direct DOM write for anything drawn every frame;
|
|
1076
|
+
* use this for text readouts and other slow displays.
|
|
1077
|
+
*/
|
|
1078
|
+
declare function useThrottledValue<T>(source: ValueSource<T>, options?: UseThrottledValueOptions): T;
|
|
1079
|
+
/**
|
|
1080
|
+
* Meter levels as React state, at most `updateRate` times a second (default
|
|
1081
|
+
* 10). For a meter drawn every frame, pass the source to
|
|
1082
|
+
* `<SegmentedVUMeter meter={…} />` instead.
|
|
1083
|
+
*/
|
|
1084
|
+
declare function useMeterLevels(meter: MeterSource, options?: UseThrottledValueOptions): MeterLevels;
|
|
1007
1085
|
|
|
1008
|
-
export {
|
|
1086
|
+
export { AutomaticScrollCheckbox, type AutomaticScrollCheckboxProps, BaseButton, BaseCheckbox, BaseCheckboxLabel, BaseCheckboxWrapper, BaseControlButton, BaseInput, BaseInputSmall, BaseLabel, BaseSelect, BaseSelectSmall, BaseSlider, type BeatsAndBarsContextValue, BeatsAndBarsProvider, type BeatsAndBarsProviderProps, type BeatsAndBarsSnapTo, Button, ButtonGroup, CLIP_BOUNDARY_WIDTH, CLIP_BOUNDARY_WIDTH_TOUCH, CLIP_HEADER_HEIGHT, Channel, type ChannelProps, Clip, ClipBoundary, type ClipBoundaryProps, ClipHeader, ClipHeaderPresentational, type ClipHeaderPresentationalProps, type ClipHeaderProps, ClipPlaceholderBody, type ClipPlaceholderBodyProps, type ClipProps, ClipViewportOriginProvider, CloseButton, type ColorStop, Controls, DEFAULT_BAR_GAP, DEFAULT_BAR_WIDTH, DEFAULT_PLAYBACK_RATES, DEFAULT_WAVE_HEIGHT, DevicePixelRatioProvider, DotsIcon, type DragHandleProps, FadeOverlay, type FadeOverlayProps, type GradientStop, GripIcon, Header, InlineLabel, LoopRegion, LoopRegionMarkers, type LoopRegionMarkersProps, type LoopRegionProps, MasterVolumeControl, type MasterVolumeControlProps, MoveDownIcon, MoveUpIcon, PianoRollChannel, type PianoRollChannelProps, PlaybackRateSelect, type PlaybackRateSelectProps, Playhead, type PlayheadProps, PlayheadWithMarker, Playlist, PlaylistErrorBoundary, type PlaylistErrorBoundaryProps, type PlaylistInfo, PlaylistInfoContext, type PlaylistProps, type PrecomputedTickData, type RenderPlayheadFunction, ReorderRail, type ReorderRailProps, type ScaleMode, ScreenReaderOnly, type ScrollViewport, ScrollViewportProvider, SegmentedVUMeter, type SegmentedVUMeterProps, Selection, type SelectionProps, SelectionTimeInputs, type SelectionTimeInputsProps, Slider, SliderWrapper, SmartChannel, type SmartChannelProps, SmartScale, type SmartScaleProps, SpectrogramChannel, type SpectrogramChannelProps, SpectrogramLabels, type SpectrogramLabelsProps, StyledPlaylist, StyledTimeScale, type TimeFormat, TimeFormatSelect, type TimeFormatSelectProps, TimeInput, type TimeInputProps, TimeScale, type TimeScaleProps, TimescaleLoopRegion, type TimescaleLoopRegionProps, Track, TrackMenu, type TrackMenuItem, type TrackMenuProps, type TrackProps, TrashIcon, type UseThrottledValueOptions, VolumeDownIcon, VolumeUpIcon, type WaveformColor, type WaveformDrawMode, type WaveformGradient, type WaveformPlaylistTheme, darkTheme, defaultTheme, formatTime, getScaleInfo, isWaveformGradient, parseTime, useBeatsAndBars, useClipViewportOrigin, useDevicePixelRatio, useMeterLevels, usePlaylistInfo, useScrollViewport, useScrollViewportSelector, useTheme, useThrottledValue, useVisibleChunkIndices, waveformColorToCss };
|