@waveform-playlist/ui-components 15.0.0-next.11 → 15.0.0-next.12
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 +0 -1
- package/dist/index.d.mts +2 -27
- package/dist/index.d.ts +2 -27
- package/dist/index.js +13 -135
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16 -136
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import react__default, { FunctionComponent, ReactNode } from 'react';
|
|
3
3
|
import { Peaks, Bits, Fade, FadeType, MidiNoteData, RenderMode, SpectrogramCanvasRegistration, MeterSource, MeterLevels, ValueSource } from '@waveform-playlist/core';
|
|
4
|
-
import * as styled_components_dist_utils_hoist from 'styled-components/dist/utils/hoist';
|
|
5
4
|
import * as styled_components from 'styled-components';
|
|
6
5
|
import { DefaultTheme } from 'styled-components';
|
|
7
6
|
import * as styled_components_dist_types from 'styled-components/dist/types';
|
|
@@ -232,7 +231,6 @@ interface ClipProps {
|
|
|
232
231
|
samplesPerPixel: number;
|
|
233
232
|
showHeader?: boolean;
|
|
234
233
|
disableHeaderDrag?: boolean;
|
|
235
|
-
isOverlay?: boolean;
|
|
236
234
|
isSelected?: boolean;
|
|
237
235
|
onMouseDown?: (e: react__default.MouseEvent<HTMLDivElement>) => void;
|
|
238
236
|
/** The id of the clip's track. With it the clip's draggable ids are built
|
|
@@ -273,8 +271,6 @@ interface BoundaryDragHandleProps {
|
|
|
273
271
|
}
|
|
274
272
|
interface ClipBoundaryProps {
|
|
275
273
|
clipId: string;
|
|
276
|
-
trackIndex: number;
|
|
277
|
-
clipIndex: number;
|
|
278
274
|
edge: BoundaryEdge;
|
|
279
275
|
dragHandleProps?: BoundaryDragHandleProps;
|
|
280
276
|
/**
|
|
@@ -305,8 +301,6 @@ interface DragHandleProps {
|
|
|
305
301
|
}
|
|
306
302
|
interface ClipHeaderProps {
|
|
307
303
|
clipId: string;
|
|
308
|
-
trackIndex: number;
|
|
309
|
-
clipIndex: number;
|
|
310
304
|
trackName: string;
|
|
311
305
|
isSelected?: boolean;
|
|
312
306
|
disableDrag?: boolean;
|
|
@@ -442,7 +436,6 @@ declare const Playhead: react__default.FC<PlayheadProps>;
|
|
|
442
436
|
declare const PlayheadWithMarker: react__default.FC<PlayheadProps>;
|
|
443
437
|
|
|
444
438
|
interface PlaylistProps {
|
|
445
|
-
readonly theme: DefaultTheme;
|
|
446
439
|
readonly children?: react__default.ReactNode;
|
|
447
440
|
readonly backgroundColor?: string;
|
|
448
441
|
readonly timescaleBackgroundColor?: string;
|
|
@@ -467,7 +460,6 @@ interface PlaylistProps {
|
|
|
467
460
|
readonly className?: string;
|
|
468
461
|
}
|
|
469
462
|
declare const Playlist: FunctionComponent<PlaylistProps>;
|
|
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>>;
|
|
471
463
|
|
|
472
464
|
interface SelectionProps {
|
|
473
465
|
startPosition: number;
|
|
@@ -476,17 +468,6 @@ interface SelectionProps {
|
|
|
476
468
|
}
|
|
477
469
|
declare const Selection: react__default.FC<SelectionProps>;
|
|
478
470
|
|
|
479
|
-
interface LoopRegionProps {
|
|
480
|
-
startPosition: number;
|
|
481
|
-
endPosition: number;
|
|
482
|
-
regionColor?: string;
|
|
483
|
-
markerColor?: string;
|
|
484
|
-
}
|
|
485
|
-
/**
|
|
486
|
-
* Loop region overlay with non-interactive markers.
|
|
487
|
-
* This renders over the tracks area - markers are visual only here.
|
|
488
|
-
*/
|
|
489
|
-
declare const LoopRegion: react__default.FC<LoopRegionProps>;
|
|
490
471
|
interface LoopRegionMarkersProps {
|
|
491
472
|
startPosition: number;
|
|
492
473
|
endPosition: number;
|
|
@@ -566,8 +547,6 @@ interface SmartChannelProps {
|
|
|
566
547
|
gain?: number;
|
|
567
548
|
/** Render mode: waveform, spectrogram, or both */
|
|
568
549
|
renderMode?: RenderMode;
|
|
569
|
-
/** Samples per pixel at current zoom level */
|
|
570
|
-
samplesPerPixel?: number;
|
|
571
550
|
/** Clip ID for spectrogram canvas registration */
|
|
572
551
|
spectrogramClipId?: string;
|
|
573
552
|
/** Single-call registration for spectrogram canvases (from SpectrogramIntegration). */
|
|
@@ -605,8 +584,6 @@ interface SpectrogramChannelProps {
|
|
|
605
584
|
waveHeight: number;
|
|
606
585
|
/** Device pixel ratio for sharp rendering */
|
|
607
586
|
devicePixelRatio?: number;
|
|
608
|
-
/** Samples per pixel at current zoom level */
|
|
609
|
-
samplesPerPixel: number;
|
|
610
587
|
/** Clip ID used to construct unique canvas IDs */
|
|
611
588
|
clipId: string;
|
|
612
589
|
/** Single-call canvas registration. Receives the transferred OffscreenCanvas + metadata. */
|
|
@@ -734,7 +711,6 @@ interface TrackProps {
|
|
|
734
711
|
children?: ReactNode;
|
|
735
712
|
numChannels: number;
|
|
736
713
|
backgroundColor?: string;
|
|
737
|
-
offset?: number;
|
|
738
714
|
width?: number;
|
|
739
715
|
hasClipHeaders?: boolean;
|
|
740
716
|
onClick?: () => void;
|
|
@@ -817,7 +793,6 @@ declare const SliderWrapper: styled_components_dist_types.IStyledComponentBase<"
|
|
|
817
793
|
|
|
818
794
|
interface TrackMenuItem {
|
|
819
795
|
id: string;
|
|
820
|
-
label?: string;
|
|
821
796
|
content: ReactNode;
|
|
822
797
|
}
|
|
823
798
|
interface TrackMenuProps {
|
|
@@ -843,7 +818,7 @@ interface SegmentedVUMeterProps {
|
|
|
843
818
|
orientation?: 'vertical' | 'horizontal';
|
|
844
819
|
segmentCount?: number;
|
|
845
820
|
dBRange?: [number, number];
|
|
846
|
-
|
|
821
|
+
hideScale?: boolean;
|
|
847
822
|
colorStops?: ColorStop[];
|
|
848
823
|
segmentWidth?: number;
|
|
849
824
|
segmentHeight?: number;
|
|
@@ -1083,4 +1058,4 @@ declare function useThrottledValue<T>(source: ValueSource<T>, options?: UseThrot
|
|
|
1083
1058
|
*/
|
|
1084
1059
|
declare function useMeterLevels(meter: MeterSource, options?: UseThrottledValueOptions): MeterLevels;
|
|
1085
1060
|
|
|
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,
|
|
1061
|
+
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 CloseButtonProps, 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, LoopRegionMarkers, type LoopRegionMarkersProps, 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, 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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import react__default, { FunctionComponent, ReactNode } from 'react';
|
|
3
3
|
import { Peaks, Bits, Fade, FadeType, MidiNoteData, RenderMode, SpectrogramCanvasRegistration, MeterSource, MeterLevels, ValueSource } from '@waveform-playlist/core';
|
|
4
|
-
import * as styled_components_dist_utils_hoist from 'styled-components/dist/utils/hoist';
|
|
5
4
|
import * as styled_components from 'styled-components';
|
|
6
5
|
import { DefaultTheme } from 'styled-components';
|
|
7
6
|
import * as styled_components_dist_types from 'styled-components/dist/types';
|
|
@@ -232,7 +231,6 @@ interface ClipProps {
|
|
|
232
231
|
samplesPerPixel: number;
|
|
233
232
|
showHeader?: boolean;
|
|
234
233
|
disableHeaderDrag?: boolean;
|
|
235
|
-
isOverlay?: boolean;
|
|
236
234
|
isSelected?: boolean;
|
|
237
235
|
onMouseDown?: (e: react__default.MouseEvent<HTMLDivElement>) => void;
|
|
238
236
|
/** The id of the clip's track. With it the clip's draggable ids are built
|
|
@@ -273,8 +271,6 @@ interface BoundaryDragHandleProps {
|
|
|
273
271
|
}
|
|
274
272
|
interface ClipBoundaryProps {
|
|
275
273
|
clipId: string;
|
|
276
|
-
trackIndex: number;
|
|
277
|
-
clipIndex: number;
|
|
278
274
|
edge: BoundaryEdge;
|
|
279
275
|
dragHandleProps?: BoundaryDragHandleProps;
|
|
280
276
|
/**
|
|
@@ -305,8 +301,6 @@ interface DragHandleProps {
|
|
|
305
301
|
}
|
|
306
302
|
interface ClipHeaderProps {
|
|
307
303
|
clipId: string;
|
|
308
|
-
trackIndex: number;
|
|
309
|
-
clipIndex: number;
|
|
310
304
|
trackName: string;
|
|
311
305
|
isSelected?: boolean;
|
|
312
306
|
disableDrag?: boolean;
|
|
@@ -442,7 +436,6 @@ declare const Playhead: react__default.FC<PlayheadProps>;
|
|
|
442
436
|
declare const PlayheadWithMarker: react__default.FC<PlayheadProps>;
|
|
443
437
|
|
|
444
438
|
interface PlaylistProps {
|
|
445
|
-
readonly theme: DefaultTheme;
|
|
446
439
|
readonly children?: react__default.ReactNode;
|
|
447
440
|
readonly backgroundColor?: string;
|
|
448
441
|
readonly timescaleBackgroundColor?: string;
|
|
@@ -467,7 +460,6 @@ interface PlaylistProps {
|
|
|
467
460
|
readonly className?: string;
|
|
468
461
|
}
|
|
469
462
|
declare const Playlist: FunctionComponent<PlaylistProps>;
|
|
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>>;
|
|
471
463
|
|
|
472
464
|
interface SelectionProps {
|
|
473
465
|
startPosition: number;
|
|
@@ -476,17 +468,6 @@ interface SelectionProps {
|
|
|
476
468
|
}
|
|
477
469
|
declare const Selection: react__default.FC<SelectionProps>;
|
|
478
470
|
|
|
479
|
-
interface LoopRegionProps {
|
|
480
|
-
startPosition: number;
|
|
481
|
-
endPosition: number;
|
|
482
|
-
regionColor?: string;
|
|
483
|
-
markerColor?: string;
|
|
484
|
-
}
|
|
485
|
-
/**
|
|
486
|
-
* Loop region overlay with non-interactive markers.
|
|
487
|
-
* This renders over the tracks area - markers are visual only here.
|
|
488
|
-
*/
|
|
489
|
-
declare const LoopRegion: react__default.FC<LoopRegionProps>;
|
|
490
471
|
interface LoopRegionMarkersProps {
|
|
491
472
|
startPosition: number;
|
|
492
473
|
endPosition: number;
|
|
@@ -566,8 +547,6 @@ interface SmartChannelProps {
|
|
|
566
547
|
gain?: number;
|
|
567
548
|
/** Render mode: waveform, spectrogram, or both */
|
|
568
549
|
renderMode?: RenderMode;
|
|
569
|
-
/** Samples per pixel at current zoom level */
|
|
570
|
-
samplesPerPixel?: number;
|
|
571
550
|
/** Clip ID for spectrogram canvas registration */
|
|
572
551
|
spectrogramClipId?: string;
|
|
573
552
|
/** Single-call registration for spectrogram canvases (from SpectrogramIntegration). */
|
|
@@ -605,8 +584,6 @@ interface SpectrogramChannelProps {
|
|
|
605
584
|
waveHeight: number;
|
|
606
585
|
/** Device pixel ratio for sharp rendering */
|
|
607
586
|
devicePixelRatio?: number;
|
|
608
|
-
/** Samples per pixel at current zoom level */
|
|
609
|
-
samplesPerPixel: number;
|
|
610
587
|
/** Clip ID used to construct unique canvas IDs */
|
|
611
588
|
clipId: string;
|
|
612
589
|
/** Single-call canvas registration. Receives the transferred OffscreenCanvas + metadata. */
|
|
@@ -734,7 +711,6 @@ interface TrackProps {
|
|
|
734
711
|
children?: ReactNode;
|
|
735
712
|
numChannels: number;
|
|
736
713
|
backgroundColor?: string;
|
|
737
|
-
offset?: number;
|
|
738
714
|
width?: number;
|
|
739
715
|
hasClipHeaders?: boolean;
|
|
740
716
|
onClick?: () => void;
|
|
@@ -817,7 +793,6 @@ declare const SliderWrapper: styled_components_dist_types.IStyledComponentBase<"
|
|
|
817
793
|
|
|
818
794
|
interface TrackMenuItem {
|
|
819
795
|
id: string;
|
|
820
|
-
label?: string;
|
|
821
796
|
content: ReactNode;
|
|
822
797
|
}
|
|
823
798
|
interface TrackMenuProps {
|
|
@@ -843,7 +818,7 @@ interface SegmentedVUMeterProps {
|
|
|
843
818
|
orientation?: 'vertical' | 'horizontal';
|
|
844
819
|
segmentCount?: number;
|
|
845
820
|
dBRange?: [number, number];
|
|
846
|
-
|
|
821
|
+
hideScale?: boolean;
|
|
847
822
|
colorStops?: ColorStop[];
|
|
848
823
|
segmentWidth?: number;
|
|
849
824
|
segmentHeight?: number;
|
|
@@ -1083,4 +1058,4 @@ declare function useThrottledValue<T>(source: ValueSource<T>, options?: UseThrot
|
|
|
1083
1058
|
*/
|
|
1084
1059
|
declare function useMeterLevels(meter: MeterSource, options?: UseThrottledValueOptions): MeterLevels;
|
|
1085
1060
|
|
|
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,
|
|
1061
|
+
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 CloseButtonProps, 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, LoopRegionMarkers, type LoopRegionMarkersProps, 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, 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 };
|
package/dist/index.js
CHANGED
|
@@ -67,7 +67,6 @@ __export(index_exports, {
|
|
|
67
67
|
GripIcon: () => GripIcon,
|
|
68
68
|
Header: () => Header,
|
|
69
69
|
InlineLabel: () => InlineLabel,
|
|
70
|
-
LoopRegion: () => LoopRegion,
|
|
71
70
|
LoopRegionMarkers: () => LoopRegionMarkers,
|
|
72
71
|
MasterVolumeControl: () => MasterVolumeControl,
|
|
73
72
|
MoveDownIcon: () => MoveDownIcon,
|
|
@@ -91,7 +90,6 @@ __export(index_exports, {
|
|
|
91
90
|
SmartScale: () => SmartScale,
|
|
92
91
|
SpectrogramChannel: () => SpectrogramChannel,
|
|
93
92
|
SpectrogramLabels: () => SpectrogramLabels,
|
|
94
|
-
StyledPlaylist: () => StyledPlaylist,
|
|
95
93
|
StyledTimeScale: () => StyledTimeScale,
|
|
96
94
|
TimeFormatSelect: () => TimeFormatSelect,
|
|
97
95
|
TimeInput: () => TimeInput,
|
|
@@ -159,21 +157,6 @@ var BaseButton = import_styled_components.default.button`
|
|
|
159
157
|
cursor: not-allowed;
|
|
160
158
|
}
|
|
161
159
|
`;
|
|
162
|
-
var BaseButtonSmall = (0, import_styled_components.default)(BaseButton)`
|
|
163
|
-
padding: 0.25rem 0.5rem;
|
|
164
|
-
font-size: ${(props) => props.theme.fontSizeSmall};
|
|
165
|
-
`;
|
|
166
|
-
var IconButton = (0, import_styled_components.default)(BaseButton)`
|
|
167
|
-
padding: 0.5rem;
|
|
168
|
-
min-width: 2.25rem;
|
|
169
|
-
min-height: 2.25rem;
|
|
170
|
-
`;
|
|
171
|
-
var IconButtonSmall = (0, import_styled_components.default)(BaseButton)`
|
|
172
|
-
padding: 0.25rem;
|
|
173
|
-
min-width: 1.75rem;
|
|
174
|
-
min-height: 1.75rem;
|
|
175
|
-
font-size: ${(props) => props.theme.fontSizeSmall};
|
|
176
|
-
`;
|
|
177
160
|
|
|
178
161
|
// src/styled/BaseCheckbox.tsx
|
|
179
162
|
var import_styled_components2 = __toESM(require("styled-components"));
|
|
@@ -1129,8 +1112,6 @@ var ClipHeaderPresentational = ({
|
|
|
1129
1112
|
};
|
|
1130
1113
|
var ClipHeader = ({
|
|
1131
1114
|
clipId,
|
|
1132
|
-
trackIndex: _trackIndex,
|
|
1133
|
-
clipIndex: _clipIndex,
|
|
1134
1115
|
trackName,
|
|
1135
1116
|
isSelected = false,
|
|
1136
1117
|
disableDrag = false,
|
|
@@ -1188,8 +1169,6 @@ var BoundaryContainer = import_styled_components10.default.div`
|
|
|
1188
1169
|
`;
|
|
1189
1170
|
var ClipBoundary = ({
|
|
1190
1171
|
clipId,
|
|
1191
|
-
trackIndex: _trackIndex,
|
|
1192
|
-
clipIndex: _clipIndex,
|
|
1193
1172
|
edge,
|
|
1194
1173
|
dragHandleProps,
|
|
1195
1174
|
touchOptimized = false
|
|
@@ -1309,15 +1288,14 @@ function clipDraggableIds(trackId, clipId, trackIndex, clipIndex) {
|
|
|
1309
1288
|
};
|
|
1310
1289
|
}
|
|
1311
1290
|
var ClipContainer = import_styled_components12.default.div.attrs((props) => ({
|
|
1312
|
-
style:
|
|
1291
|
+
style: {
|
|
1313
1292
|
left: `${props.$left}px`,
|
|
1314
1293
|
width: `${props.$width}px`
|
|
1315
1294
|
}
|
|
1316
1295
|
}))`
|
|
1317
|
-
position:
|
|
1296
|
+
position: absolute;
|
|
1318
1297
|
top: 0;
|
|
1319
|
-
height:
|
|
1320
|
-
width: ${(props) => props.$isOverlay ? `${props.$width}px` : "auto"};
|
|
1298
|
+
height: 100%;
|
|
1321
1299
|
display: flex;
|
|
1322
1300
|
flex-direction: column;
|
|
1323
1301
|
z-index: 10; /* Above progress overlay (z-index: 2) but below controls/playhead */
|
|
@@ -1329,7 +1307,7 @@ var ClipContainer = import_styled_components12.default.div.attrs((props) => ({
|
|
|
1329
1307
|
var ChannelsWrapper = import_styled_components12.default.div`
|
|
1330
1308
|
flex: 1;
|
|
1331
1309
|
position: relative;
|
|
1332
|
-
overflow:
|
|
1310
|
+
overflow: hidden;
|
|
1333
1311
|
`;
|
|
1334
1312
|
var Clip = ({
|
|
1335
1313
|
children,
|
|
@@ -1343,7 +1321,6 @@ var Clip = ({
|
|
|
1343
1321
|
samplesPerPixel,
|
|
1344
1322
|
showHeader = false,
|
|
1345
1323
|
disableHeaderDrag = false,
|
|
1346
|
-
isOverlay = false,
|
|
1347
1324
|
isSelected = false,
|
|
1348
1325
|
onMouseDown,
|
|
1349
1326
|
trackId,
|
|
@@ -1357,7 +1334,7 @@ var Clip = ({
|
|
|
1357
1334
|
const left = Math.floor(startSample / samplesPerPixel);
|
|
1358
1335
|
const width = (0, import_core2.clipPixelWidth)(startSample, durationSamples, samplesPerPixel);
|
|
1359
1336
|
const headerDragDisabled = disableHeaderDrag || isPlaceholder;
|
|
1360
|
-
const enableDrag = showHeader && !headerDragDisabled
|
|
1337
|
+
const enableDrag = showHeader && !headerDragDisabled;
|
|
1361
1338
|
const ids = clipDraggableIds(trackId, clipId, trackIndex, clipIndex);
|
|
1362
1339
|
const {
|
|
1363
1340
|
ref: clipRef,
|
|
@@ -1390,7 +1367,6 @@ var Clip = ({
|
|
|
1390
1367
|
className,
|
|
1391
1368
|
$left: left,
|
|
1392
1369
|
$width: width,
|
|
1393
|
-
$isOverlay: isOverlay,
|
|
1394
1370
|
$isPlaceholder: isPlaceholder,
|
|
1395
1371
|
"data-clip-container": "true",
|
|
1396
1372
|
"data-clip-placeholder": isPlaceholder ? "true" : void 0,
|
|
@@ -1402,15 +1378,13 @@ var Clip = ({
|
|
|
1402
1378
|
ClipHeader,
|
|
1403
1379
|
{
|
|
1404
1380
|
clipId,
|
|
1405
|
-
trackIndex,
|
|
1406
|
-
clipIndex,
|
|
1407
1381
|
trackName,
|
|
1408
1382
|
isSelected,
|
|
1409
1383
|
disableDrag: headerDragDisabled,
|
|
1410
1384
|
dragHandleProps: enableDrag ? { handleRef } : void 0
|
|
1411
1385
|
}
|
|
1412
1386
|
),
|
|
1413
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(ClipViewportOriginProvider, { originX: left, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(ChannelsWrapper, {
|
|
1387
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(ClipViewportOriginProvider, { originX: left, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(ChannelsWrapper, { children: [
|
|
1414
1388
|
children,
|
|
1415
1389
|
showFades && fadeIn && fadeIn.duration > 0 && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
1416
1390
|
FadeOverlay,
|
|
@@ -1431,13 +1405,11 @@ var Clip = ({
|
|
|
1431
1405
|
}
|
|
1432
1406
|
)
|
|
1433
1407
|
] }) }),
|
|
1434
|
-
showHeader && !headerDragDisabled &&
|
|
1408
|
+
showHeader && !headerDragDisabled && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_jsx_runtime9.Fragment, { children: [
|
|
1435
1409
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
1436
1410
|
ClipBoundary,
|
|
1437
1411
|
{
|
|
1438
1412
|
clipId,
|
|
1439
|
-
trackIndex,
|
|
1440
|
-
clipIndex,
|
|
1441
1413
|
edge: "left",
|
|
1442
1414
|
touchOptimized,
|
|
1443
1415
|
dragHandleProps: {
|
|
@@ -1450,8 +1422,6 @@ var Clip = ({
|
|
|
1450
1422
|
ClipBoundary,
|
|
1451
1423
|
{
|
|
1452
1424
|
clipId,
|
|
1453
|
-
trackIndex,
|
|
1454
|
-
clipIndex,
|
|
1455
1425
|
edge: "right",
|
|
1456
1426
|
touchOptimized,
|
|
1457
1427
|
dragHandleProps: {
|
|
@@ -1963,7 +1933,6 @@ var Playlist = ({
|
|
|
1963
1933
|
] }) }) })
|
|
1964
1934
|
] });
|
|
1965
1935
|
};
|
|
1966
|
-
var StyledPlaylist = (0, import_styled_components18.withTheme)(Playlist);
|
|
1967
1936
|
|
|
1968
1937
|
// src/components/Selection.tsx
|
|
1969
1938
|
var import_styled_components19 = __toESM(require("styled-components"));
|
|
@@ -1998,84 +1967,6 @@ var Selection = ({
|
|
|
1998
1967
|
var import_react18 = require("react");
|
|
1999
1968
|
var import_styled_components20 = __toESM(require("styled-components"));
|
|
2000
1969
|
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
2001
|
-
var LoopRegionOverlayDiv = import_styled_components20.default.div.attrs((props) => ({
|
|
2002
|
-
style: {
|
|
2003
|
-
left: `${props.$left}px`,
|
|
2004
|
-
width: `${props.$width}px`
|
|
2005
|
-
}
|
|
2006
|
-
}))`
|
|
2007
|
-
position: absolute;
|
|
2008
|
-
top: 0;
|
|
2009
|
-
background: ${(props) => props.$color};
|
|
2010
|
-
height: 100%;
|
|
2011
|
-
z-index: 55; /* Between clips (z-index: 50) and selection (z-index: 60) */
|
|
2012
|
-
pointer-events: none;
|
|
2013
|
-
`;
|
|
2014
|
-
var LoopMarker = import_styled_components20.default.div.attrs((props) => ({
|
|
2015
|
-
style: {
|
|
2016
|
-
left: `${props.$left}px`
|
|
2017
|
-
}
|
|
2018
|
-
}))`
|
|
2019
|
-
position: absolute;
|
|
2020
|
-
top: 0;
|
|
2021
|
-
width: 2px;
|
|
2022
|
-
height: 100%;
|
|
2023
|
-
background: ${(props) => props.$color};
|
|
2024
|
-
z-index: 90; /* Below playhead (z-index: 100) */
|
|
2025
|
-
pointer-events: none;
|
|
2026
|
-
|
|
2027
|
-
/* Triangle marker at top */
|
|
2028
|
-
&::before {
|
|
2029
|
-
content: '';
|
|
2030
|
-
position: absolute;
|
|
2031
|
-
top: 0;
|
|
2032
|
-
${(props) => props.$isStart ? "left: 0" : "right: 0"};
|
|
2033
|
-
width: 0;
|
|
2034
|
-
height: 0;
|
|
2035
|
-
border-top: 8px solid ${(props) => props.$color};
|
|
2036
|
-
${(props) => props.$isStart ? "border-right: 8px solid transparent;" : "border-left: 8px solid transparent;"}
|
|
2037
|
-
}
|
|
2038
|
-
`;
|
|
2039
|
-
var LoopRegion = ({
|
|
2040
|
-
startPosition,
|
|
2041
|
-
endPosition,
|
|
2042
|
-
regionColor = "rgba(59, 130, 246, 0.3)",
|
|
2043
|
-
markerColor = "#3b82f6"
|
|
2044
|
-
}) => {
|
|
2045
|
-
const width = Math.max(0, endPosition - startPosition);
|
|
2046
|
-
if (width <= 0) {
|
|
2047
|
-
return null;
|
|
2048
|
-
}
|
|
2049
|
-
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_jsx_runtime18.Fragment, { children: [
|
|
2050
|
-
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
2051
|
-
LoopRegionOverlayDiv,
|
|
2052
|
-
{
|
|
2053
|
-
$left: startPosition,
|
|
2054
|
-
$width: width,
|
|
2055
|
-
$color: regionColor,
|
|
2056
|
-
"data-loop-region": true
|
|
2057
|
-
}
|
|
2058
|
-
),
|
|
2059
|
-
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
2060
|
-
LoopMarker,
|
|
2061
|
-
{
|
|
2062
|
-
$left: startPosition,
|
|
2063
|
-
$color: markerColor,
|
|
2064
|
-
$isStart: true,
|
|
2065
|
-
"data-loop-marker": "start"
|
|
2066
|
-
}
|
|
2067
|
-
),
|
|
2068
|
-
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
2069
|
-
LoopMarker,
|
|
2070
|
-
{
|
|
2071
|
-
$left: endPosition - 2,
|
|
2072
|
-
$color: markerColor,
|
|
2073
|
-
$isStart: false,
|
|
2074
|
-
"data-loop-marker": "end"
|
|
2075
|
-
}
|
|
2076
|
-
)
|
|
2077
|
-
] });
|
|
2078
|
-
};
|
|
2079
1970
|
var DraggableMarkerHandle = import_styled_components20.default.div.attrs((props) => ({
|
|
2080
1971
|
style: {
|
|
2081
1972
|
left: `${props.$left}px`
|
|
@@ -2526,7 +2417,6 @@ var SpectrogramChannel = ({
|
|
|
2526
2417
|
length,
|
|
2527
2418
|
waveHeight,
|
|
2528
2419
|
devicePixelRatio = 1,
|
|
2529
|
-
samplesPerPixel: _samplesPerPixel,
|
|
2530
2420
|
clipId,
|
|
2531
2421
|
onCanvasRegister,
|
|
2532
2422
|
onCanvasUnregister,
|
|
@@ -2640,7 +2530,6 @@ var SmartChannel = ({
|
|
|
2640
2530
|
isSelected,
|
|
2641
2531
|
transparentBackground,
|
|
2642
2532
|
renderMode = "waveform",
|
|
2643
|
-
samplesPerPixel: sppProp,
|
|
2644
2533
|
spectrogramClipId,
|
|
2645
2534
|
spectrogramOnCanvasRegister,
|
|
2646
2535
|
spectrogramOnCanvasUnregister,
|
|
@@ -2657,11 +2546,10 @@ var SmartChannel = ({
|
|
|
2657
2546
|
barWidth,
|
|
2658
2547
|
barGap,
|
|
2659
2548
|
roundedBars,
|
|
2660
|
-
samplesPerPixel
|
|
2549
|
+
samplesPerPixel,
|
|
2661
2550
|
sampleRate: contextSampleRate
|
|
2662
2551
|
} = usePlaylistInfo();
|
|
2663
2552
|
const devicePixelRatio = useDevicePixelRatio();
|
|
2664
|
-
const samplesPerPixel = sppProp ?? contextSpp;
|
|
2665
2553
|
const waveOutlineColor = isSelected && theme ? theme.selectedWaveOutlineColor : theme?.waveOutlineColor;
|
|
2666
2554
|
const waveFillColor = isSelected && theme ? theme.selectedWaveFillColor : theme?.waveFillColor;
|
|
2667
2555
|
const drawMode = theme?.waveformDrawMode || "inverted";
|
|
@@ -2694,7 +2582,6 @@ var SmartChannel = ({
|
|
|
2694
2582
|
length: props.length,
|
|
2695
2583
|
waveHeight,
|
|
2696
2584
|
devicePixelRatio,
|
|
2697
|
-
samplesPerPixel,
|
|
2698
2585
|
clipId: spectrogramClipId,
|
|
2699
2586
|
onCanvasRegister: spectrogramOnCanvasRegister,
|
|
2700
2587
|
onCanvasUnregister: spectrogramOnCanvasUnregister,
|
|
@@ -2714,7 +2601,6 @@ var SmartChannel = ({
|
|
|
2714
2601
|
length: props.length,
|
|
2715
2602
|
waveHeight: halfHeight,
|
|
2716
2603
|
devicePixelRatio,
|
|
2717
|
-
samplesPerPixel,
|
|
2718
2604
|
clipId: spectrogramClipId,
|
|
2719
2605
|
onCanvasRegister: spectrogramOnCanvasRegister,
|
|
2720
2606
|
onCanvasUnregister: spectrogramOnCanvasUnregister,
|
|
@@ -3228,11 +3114,7 @@ var Container = import_styled_components27.default.div.attrs((props) => ({
|
|
|
3228
3114
|
}))`
|
|
3229
3115
|
position: relative;
|
|
3230
3116
|
`;
|
|
3231
|
-
var ChannelContainer = import_styled_components27.default.div
|
|
3232
|
-
style: {
|
|
3233
|
-
paddingLeft: `${props.$offset || 0}px`
|
|
3234
|
-
}
|
|
3235
|
-
}))`
|
|
3117
|
+
var ChannelContainer = import_styled_components27.default.div`
|
|
3236
3118
|
position: relative;
|
|
3237
3119
|
background: ${(props) => {
|
|
3238
3120
|
if (props.$isSelected) {
|
|
@@ -3247,7 +3129,6 @@ var Track = ({
|
|
|
3247
3129
|
children,
|
|
3248
3130
|
className,
|
|
3249
3131
|
backgroundColor,
|
|
3250
|
-
offset = 0,
|
|
3251
3132
|
width,
|
|
3252
3133
|
hasClipHeaders = false,
|
|
3253
3134
|
onClick,
|
|
@@ -3267,7 +3148,6 @@ var Track = ({
|
|
|
3267
3148
|
ChannelContainer,
|
|
3268
3149
|
{
|
|
3269
3150
|
$backgroundColor: backgroundColor,
|
|
3270
|
-
$offset: offset,
|
|
3271
3151
|
$isSelected: isSelected,
|
|
3272
3152
|
onClick,
|
|
3273
3153
|
"data-track-id": trackId,
|
|
@@ -3921,7 +3801,7 @@ var SegmentedVUMeterInner = ({
|
|
|
3921
3801
|
orientation = "vertical",
|
|
3922
3802
|
segmentCount = 24,
|
|
3923
3803
|
dBRange = [-50, 5],
|
|
3924
|
-
|
|
3804
|
+
hideScale = false,
|
|
3925
3805
|
colorStops = DEFAULT_COLOR_STOPS,
|
|
3926
3806
|
segmentWidth = 20,
|
|
3927
3807
|
segmentHeight = 8,
|
|
@@ -4086,7 +3966,7 @@ var SegmentedVUMeterInner = ({
|
|
|
4086
3966
|
"data-meter-orientation": orientation,
|
|
4087
3967
|
children: [
|
|
4088
3968
|
Array.from({ length: channelCount }, (_, i) => renderChannel(i)),
|
|
4089
|
-
|
|
3969
|
+
!hideScale && renderScale()
|
|
4090
3970
|
]
|
|
4091
3971
|
},
|
|
4092
3972
|
sourceKey
|
|
@@ -4104,7 +3984,7 @@ var SegmentedVUMeterInner = ({
|
|
|
4104
3984
|
"data-meter-orientation": orientation,
|
|
4105
3985
|
children: [
|
|
4106
3986
|
leftChannels.map(renderChannel),
|
|
4107
|
-
|
|
3987
|
+
!hideScale && renderScale(),
|
|
4108
3988
|
rightChannels.map(renderChannel)
|
|
4109
3989
|
]
|
|
4110
3990
|
},
|
|
@@ -4120,7 +4000,7 @@ var SegmentedVUMeterInner = ({
|
|
|
4120
4000
|
"data-meter-orientation": orientation,
|
|
4121
4001
|
children: [
|
|
4122
4002
|
renderChannel(0),
|
|
4123
|
-
|
|
4003
|
+
!hideScale && renderScale()
|
|
4124
4004
|
]
|
|
4125
4005
|
},
|
|
4126
4006
|
sourceKey
|
|
@@ -4209,7 +4089,6 @@ function useMeterLevels(meter, options = {}) {
|
|
|
4209
4089
|
GripIcon,
|
|
4210
4090
|
Header,
|
|
4211
4091
|
InlineLabel,
|
|
4212
|
-
LoopRegion,
|
|
4213
4092
|
LoopRegionMarkers,
|
|
4214
4093
|
MasterVolumeControl,
|
|
4215
4094
|
MoveDownIcon,
|
|
@@ -4233,7 +4112,6 @@ function useMeterLevels(meter, options = {}) {
|
|
|
4233
4112
|
SmartScale,
|
|
4234
4113
|
SpectrogramChannel,
|
|
4235
4114
|
SpectrogramLabels,
|
|
4236
|
-
StyledPlaylist,
|
|
4237
4115
|
StyledTimeScale,
|
|
4238
4116
|
TimeFormatSelect,
|
|
4239
4117
|
TimeInput,
|