@waveform-playlist/ui-components 13.1.4 → 13.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -688,6 +688,29 @@ declare const TrashIcon: react__default.FC<IconProps>;
688
688
 
689
689
  declare const DotsIcon: react__default.FC<IconProps>;
690
690
 
691
+ declare const GripIcon: react__default.FC<IconProps>;
692
+
693
+ declare const MoveUpIcon: react__default.FC<IconProps>;
694
+
695
+ declare const MoveDownIcon: react__default.FC<IconProps>;
696
+
697
+ interface ReorderRailProps {
698
+ onMoveUp: (e: react__default.MouseEvent) => void;
699
+ onMoveDown: (e: react__default.MouseEvent) => void;
700
+ upDisabled?: boolean;
701
+ downDisabled?: boolean;
702
+ /** Attach to the grip element (drag activation surface). */
703
+ gripRef?: react__default.Ref<HTMLButtonElement>;
704
+ onGripClick?: (e: react__default.MouseEvent) => void;
705
+ /** Positioning within the parent panel is the consumer's responsibility. */
706
+ style?: react__default.CSSProperties;
707
+ }
708
+ /**
709
+ * Channel-strip reorder rail: chevron-up / drag-grip / chevron-down stacked
710
+ * vertically. Fades to 55% opacity at rest, full opacity on hover/focus.
711
+ */
712
+ declare const ReorderRail: react__default.FC<ReorderRailProps>;
713
+
691
714
  /**
692
715
  * TrackControls Slider - Compact slider for volume/pan controls
693
716
  *
@@ -982,4 +1005,4 @@ declare const BaseSlider: styled_components_dist_types.IStyledComponentBase<"web
982
1005
  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;
983
1006
  }, "type">>> & string;
984
1007
 
985
- export { AudioPosition, type AudioPositionProps, AutomaticScrollCheckbox, type AutomaticScrollCheckboxProps, BaseButton, BaseCheckbox, BaseCheckboxLabel, BaseCheckboxWrapper, BaseControlButton, BaseInput, BaseInputSmall, BaseLabel, BaseSelect, BaseSelectSmall, BaseSlider, type BeatsAndBarsContextValue, BeatsAndBarsProvider, type BeatsAndBarsProviderProps, 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, type ClipProps, ClipViewportOriginProvider, CloseButton, type ColorStop, Controls$1 as Controls, DevicePixelRatioProvider, DotsIcon, type DragHandleProps, FadeOverlay, type FadeOverlayProps, type GradientStop, Header, InlineLabel, LoopRegion, LoopRegionMarkers, type LoopRegionMarkersProps, type LoopRegionProps, MasterVolumeControl, type MasterVolumeControlProps, PianoRollChannel, type PianoRollChannelProps, Playhead, type PlayheadProps, PlayheadWithMarker, Playlist, PlaylistErrorBoundary, type PlaylistErrorBoundaryProps, PlaylistInfoContext, type PlaylistProps, PlayoutProvider, type PrecomputedTickData, type RenderPlayheadFunction, type ScaleMode, ScreenReaderOnly, type ScrollViewport, ScrollViewportProvider, SegmentedVUMeter, type SegmentedVUMeterProps, Selection, type SelectionProps, SelectionTimeInputs, type SelectionTimeInputsProps, Slider, SliderWrapper, SmartChannel, type SmartChannelProps, SmartScale, type SmartScaleProps, type SnapTo, type SpectrogramCanvasRegistration, SpectrogramChannel, type SpectrogramChannelProps, SpectrogramLabels, type SpectrogramLabelsProps, StyledPlaylist, StyledTimeScale, type TimeFormat, TimeFormatSelect, type TimeFormatSelectProps, TimeInput, type TimeInputProps, TimeScale, type TimeScaleProps, TimescaleLoopRegion, type TimescaleLoopRegionProps, Track, TrackControlsContext, TrackMenu, type TrackMenuItem, type TrackMenuProps, type TrackProps, TrashIcon, VolumeDownIcon, VolumeUpIcon, type WaveformColor, type WaveformDrawMode, type WaveformGradient, type WaveformPlaylistTheme, darkTheme, defaultTheme, formatTime, getScaleInfo, isWaveformGradient, parseTime, pixelsToSamples, pixelsToSeconds, samplesToPixels, samplesToSeconds, secondsToPixels, secondsToSamples, useBeatsAndBars, useClipViewportOrigin, useDevicePixelRatio, usePlaylistInfo, usePlayoutStatus, usePlayoutStatusUpdate, useScrollViewport, useScrollViewportSelector, useTheme, useTrackControls, useVisibleChunkIndices, waveformColorToCss };
1008
+ export { AudioPosition, type AudioPositionProps, AutomaticScrollCheckbox, type AutomaticScrollCheckboxProps, BaseButton, BaseCheckbox, BaseCheckboxLabel, BaseCheckboxWrapper, BaseControlButton, BaseInput, BaseInputSmall, BaseLabel, BaseSelect, BaseSelectSmall, BaseSlider, type BeatsAndBarsContextValue, BeatsAndBarsProvider, type BeatsAndBarsProviderProps, 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, type ClipProps, ClipViewportOriginProvider, CloseButton, type ColorStop, Controls$1 as Controls, 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, Playhead, type PlayheadProps, PlayheadWithMarker, Playlist, PlaylistErrorBoundary, type PlaylistErrorBoundaryProps, PlaylistInfoContext, type PlaylistProps, PlayoutProvider, 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, type SnapTo, type SpectrogramCanvasRegistration, SpectrogramChannel, type SpectrogramChannelProps, SpectrogramLabels, type SpectrogramLabelsProps, StyledPlaylist, StyledTimeScale, type TimeFormat, TimeFormatSelect, type TimeFormatSelectProps, TimeInput, type TimeInputProps, TimeScale, type TimeScaleProps, TimescaleLoopRegion, type TimescaleLoopRegionProps, Track, TrackControlsContext, TrackMenu, type TrackMenuItem, type TrackMenuProps, type TrackProps, TrashIcon, VolumeDownIcon, VolumeUpIcon, type WaveformColor, type WaveformDrawMode, type WaveformGradient, type WaveformPlaylistTheme, darkTheme, defaultTheme, formatTime, getScaleInfo, isWaveformGradient, parseTime, pixelsToSamples, pixelsToSeconds, samplesToPixels, samplesToSeconds, secondsToPixels, secondsToSamples, useBeatsAndBars, useClipViewportOrigin, useDevicePixelRatio, usePlaylistInfo, usePlayoutStatus, usePlayoutStatusUpdate, useScrollViewport, useScrollViewportSelector, useTheme, useTrackControls, useVisibleChunkIndices, waveformColorToCss };
package/dist/index.d.ts CHANGED
@@ -688,6 +688,29 @@ declare const TrashIcon: react__default.FC<IconProps>;
688
688
 
689
689
  declare const DotsIcon: react__default.FC<IconProps>;
690
690
 
691
+ declare const GripIcon: react__default.FC<IconProps>;
692
+
693
+ declare const MoveUpIcon: react__default.FC<IconProps>;
694
+
695
+ declare const MoveDownIcon: react__default.FC<IconProps>;
696
+
697
+ interface ReorderRailProps {
698
+ onMoveUp: (e: react__default.MouseEvent) => void;
699
+ onMoveDown: (e: react__default.MouseEvent) => void;
700
+ upDisabled?: boolean;
701
+ downDisabled?: boolean;
702
+ /** Attach to the grip element (drag activation surface). */
703
+ gripRef?: react__default.Ref<HTMLButtonElement>;
704
+ onGripClick?: (e: react__default.MouseEvent) => void;
705
+ /** Positioning within the parent panel is the consumer's responsibility. */
706
+ style?: react__default.CSSProperties;
707
+ }
708
+ /**
709
+ * Channel-strip reorder rail: chevron-up / drag-grip / chevron-down stacked
710
+ * vertically. Fades to 55% opacity at rest, full opacity on hover/focus.
711
+ */
712
+ declare const ReorderRail: react__default.FC<ReorderRailProps>;
713
+
691
714
  /**
692
715
  * TrackControls Slider - Compact slider for volume/pan controls
693
716
  *
@@ -982,4 +1005,4 @@ declare const BaseSlider: styled_components_dist_types.IStyledComponentBase<"web
982
1005
  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;
983
1006
  }, "type">>> & string;
984
1007
 
985
- export { AudioPosition, type AudioPositionProps, AutomaticScrollCheckbox, type AutomaticScrollCheckboxProps, BaseButton, BaseCheckbox, BaseCheckboxLabel, BaseCheckboxWrapper, BaseControlButton, BaseInput, BaseInputSmall, BaseLabel, BaseSelect, BaseSelectSmall, BaseSlider, type BeatsAndBarsContextValue, BeatsAndBarsProvider, type BeatsAndBarsProviderProps, 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, type ClipProps, ClipViewportOriginProvider, CloseButton, type ColorStop, Controls$1 as Controls, DevicePixelRatioProvider, DotsIcon, type DragHandleProps, FadeOverlay, type FadeOverlayProps, type GradientStop, Header, InlineLabel, LoopRegion, LoopRegionMarkers, type LoopRegionMarkersProps, type LoopRegionProps, MasterVolumeControl, type MasterVolumeControlProps, PianoRollChannel, type PianoRollChannelProps, Playhead, type PlayheadProps, PlayheadWithMarker, Playlist, PlaylistErrorBoundary, type PlaylistErrorBoundaryProps, PlaylistInfoContext, type PlaylistProps, PlayoutProvider, type PrecomputedTickData, type RenderPlayheadFunction, type ScaleMode, ScreenReaderOnly, type ScrollViewport, ScrollViewportProvider, SegmentedVUMeter, type SegmentedVUMeterProps, Selection, type SelectionProps, SelectionTimeInputs, type SelectionTimeInputsProps, Slider, SliderWrapper, SmartChannel, type SmartChannelProps, SmartScale, type SmartScaleProps, type SnapTo, type SpectrogramCanvasRegistration, SpectrogramChannel, type SpectrogramChannelProps, SpectrogramLabels, type SpectrogramLabelsProps, StyledPlaylist, StyledTimeScale, type TimeFormat, TimeFormatSelect, type TimeFormatSelectProps, TimeInput, type TimeInputProps, TimeScale, type TimeScaleProps, TimescaleLoopRegion, type TimescaleLoopRegionProps, Track, TrackControlsContext, TrackMenu, type TrackMenuItem, type TrackMenuProps, type TrackProps, TrashIcon, VolumeDownIcon, VolumeUpIcon, type WaveformColor, type WaveformDrawMode, type WaveformGradient, type WaveformPlaylistTheme, darkTheme, defaultTheme, formatTime, getScaleInfo, isWaveformGradient, parseTime, pixelsToSamples, pixelsToSeconds, samplesToPixels, samplesToSeconds, secondsToPixels, secondsToSamples, useBeatsAndBars, useClipViewportOrigin, useDevicePixelRatio, usePlaylistInfo, usePlayoutStatus, usePlayoutStatusUpdate, useScrollViewport, useScrollViewportSelector, useTheme, useTrackControls, useVisibleChunkIndices, waveformColorToCss };
1008
+ export { AudioPosition, type AudioPositionProps, AutomaticScrollCheckbox, type AutomaticScrollCheckboxProps, BaseButton, BaseCheckbox, BaseCheckboxLabel, BaseCheckboxWrapper, BaseControlButton, BaseInput, BaseInputSmall, BaseLabel, BaseSelect, BaseSelectSmall, BaseSlider, type BeatsAndBarsContextValue, BeatsAndBarsProvider, type BeatsAndBarsProviderProps, 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, type ClipProps, ClipViewportOriginProvider, CloseButton, type ColorStop, Controls$1 as Controls, 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, Playhead, type PlayheadProps, PlayheadWithMarker, Playlist, PlaylistErrorBoundary, type PlaylistErrorBoundaryProps, PlaylistInfoContext, type PlaylistProps, PlayoutProvider, 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, type SnapTo, type SpectrogramCanvasRegistration, SpectrogramChannel, type SpectrogramChannelProps, SpectrogramLabels, type SpectrogramLabelsProps, StyledPlaylist, StyledTimeScale, type TimeFormat, TimeFormatSelect, type TimeFormatSelectProps, TimeInput, type TimeInputProps, TimeScale, type TimeScaleProps, TimescaleLoopRegion, type TimescaleLoopRegionProps, Track, TrackControlsContext, TrackMenu, type TrackMenuItem, type TrackMenuProps, type TrackProps, TrashIcon, VolumeDownIcon, VolumeUpIcon, type WaveformColor, type WaveformDrawMode, type WaveformGradient, type WaveformPlaylistTheme, darkTheme, defaultTheme, formatTime, getScaleInfo, isWaveformGradient, parseTime, pixelsToSamples, pixelsToSeconds, samplesToPixels, samplesToSeconds, secondsToPixels, secondsToSamples, useBeatsAndBars, useClipViewportOrigin, useDevicePixelRatio, usePlaylistInfo, usePlayoutStatus, usePlayoutStatusUpdate, useScrollViewport, useScrollViewportSelector, useTheme, useTrackControls, useVisibleChunkIndices, waveformColorToCss };
package/dist/index.js CHANGED
@@ -60,11 +60,14 @@ __export(index_exports, {
60
60
  DevicePixelRatioProvider: () => DevicePixelRatioProvider,
61
61
  DotsIcon: () => DotsIcon,
62
62
  FadeOverlay: () => FadeOverlay,
63
+ GripIcon: () => GripIcon,
63
64
  Header: () => Header,
64
65
  InlineLabel: () => InlineLabel,
65
66
  LoopRegion: () => LoopRegion,
66
67
  LoopRegionMarkers: () => LoopRegionMarkers,
67
68
  MasterVolumeControl: () => MasterVolumeControl,
69
+ MoveDownIcon: () => MoveDownIcon,
70
+ MoveUpIcon: () => MoveUpIcon,
68
71
  PianoRollChannel: () => PianoRollChannel,
69
72
  Playhead: () => Playhead,
70
73
  PlayheadWithMarker: () => PlayheadWithMarker,
@@ -72,6 +75,7 @@ __export(index_exports, {
72
75
  PlaylistErrorBoundary: () => PlaylistErrorBoundary,
73
76
  PlaylistInfoContext: () => PlaylistInfoContext,
74
77
  PlayoutProvider: () => PlayoutProvider,
78
+ ReorderRail: () => ReorderRail,
75
79
  ScreenReaderOnly: () => ScreenReaderOnly,
76
80
  ScrollViewportProvider: () => ScrollViewportProvider,
77
81
  SegmentedVUMeter: () => SegmentedVUMeter,
@@ -3326,9 +3330,103 @@ var import_react28 = require("@phosphor-icons/react");
3326
3330
  var import_jsx_runtime34 = require("react/jsx-runtime");
3327
3331
  var DotsIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_react28.DotsThreeIcon, { weight: "bold", ...props });
3328
3332
 
3329
- // src/components/TrackControls/Slider.tsx
3333
+ // src/components/TrackControls/GripIcon.tsx
3334
+ var import_react29 = require("@phosphor-icons/react");
3335
+ var import_jsx_runtime35 = require("react/jsx-runtime");
3336
+ var GripIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react29.DotsSixVerticalIcon, { weight: "bold", ...props });
3337
+
3338
+ // src/components/TrackControls/MoveUpIcon.tsx
3339
+ var import_react30 = require("@phosphor-icons/react");
3340
+ var import_jsx_runtime36 = require("react/jsx-runtime");
3341
+ var MoveUpIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react30.CaretUpIcon, { weight: "bold", ...props });
3342
+
3343
+ // src/components/TrackControls/MoveDownIcon.tsx
3344
+ var import_react31 = require("@phosphor-icons/react");
3345
+ var import_jsx_runtime37 = require("react/jsx-runtime");
3346
+ var MoveDownIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_react31.CaretDownIcon, { weight: "bold", ...props });
3347
+
3348
+ // src/components/TrackControls/ReorderRail.tsx
3330
3349
  var import_styled_components32 = __toESM(require("styled-components"));
3331
- var Slider = (0, import_styled_components32.default)(BaseSlider)`
3350
+ var import_jsx_runtime38 = require("react/jsx-runtime");
3351
+ var Rail = import_styled_components32.default.div`
3352
+ display: flex;
3353
+ flex-direction: column;
3354
+ align-items: center;
3355
+ gap: 2px;
3356
+ color: ${(props) => props.theme.textColor};
3357
+ opacity: 0.55;
3358
+ transition: opacity 0.15s ease-in-out;
3359
+
3360
+ &:hover,
3361
+ &:focus-within {
3362
+ opacity: 1;
3363
+ }
3364
+ `;
3365
+ var RailButton = import_styled_components32.default.button.attrs({ type: "button" })`
3366
+ border: none;
3367
+ background: transparent;
3368
+ color: inherit;
3369
+ padding: 0;
3370
+ display: flex;
3371
+ align-items: center;
3372
+ justify-content: center;
3373
+ border-radius: ${(props) => props.theme.borderRadius};
3374
+
3375
+ &:focus-visible {
3376
+ outline: none;
3377
+ box-shadow: 0 0 0 0.2rem ${(props) => props.theme.inputFocusBorder}33;
3378
+ }
3379
+ `;
3380
+ var ChevronButton = (0, import_styled_components32.default)(RailButton)`
3381
+ width: 16px;
3382
+ height: 14px;
3383
+ cursor: pointer;
3384
+
3385
+ &:hover:not(:disabled) {
3386
+ background: ${(props) => props.theme.borderColor};
3387
+ }
3388
+
3389
+ &:disabled {
3390
+ opacity: 0.15;
3391
+ cursor: default;
3392
+ }
3393
+ `;
3394
+ var GripButton = (0, import_styled_components32.default)(RailButton)`
3395
+ width: 16px;
3396
+ height: 20px;
3397
+ cursor: grab;
3398
+ touch-action: none;
3399
+
3400
+ &:active {
3401
+ cursor: grabbing;
3402
+ }
3403
+ `;
3404
+ var ReorderRail = ({
3405
+ onMoveUp,
3406
+ onMoveDown,
3407
+ upDisabled = false,
3408
+ downDisabled = false,
3409
+ gripRef,
3410
+ onGripClick,
3411
+ style
3412
+ }) => /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(Rail, { style, children: [
3413
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(ChevronButton, { "aria-label": "Move track up", disabled: upDisabled, onClick: onMoveUp, children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(MoveUpIcon, { size: 12 }) }),
3414
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3415
+ GripButton,
3416
+ {
3417
+ ref: gripRef,
3418
+ "aria-label": "Drag to reorder track",
3419
+ title: "Drag to reorder track",
3420
+ onClick: onGripClick,
3421
+ children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(GripIcon, { size: 14 })
3422
+ }
3423
+ ),
3424
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(ChevronButton, { "aria-label": "Move track down", disabled: downDisabled, onClick: onMoveDown, children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(MoveDownIcon, { size: 12 }) })
3425
+ ] });
3426
+
3427
+ // src/components/TrackControls/Slider.tsx
3428
+ var import_styled_components33 = __toESM(require("styled-components"));
3429
+ var Slider = (0, import_styled_components33.default)(BaseSlider)`
3332
3430
  width: 75%;
3333
3431
  height: 5px;
3334
3432
  background: ${(props) => props.theme.sliderTrackColor};
@@ -3380,8 +3478,8 @@ var Slider = (0, import_styled_components32.default)(BaseSlider)`
3380
3478
  `;
3381
3479
 
3382
3480
  // src/components/TrackControls/SliderWrapper.tsx
3383
- var import_styled_components33 = __toESM(require("styled-components"));
3384
- var SliderWrapper = import_styled_components33.default.label`
3481
+ var import_styled_components34 = __toESM(require("styled-components"));
3482
+ var SliderWrapper = import_styled_components34.default.label`
3385
3483
  width: 100%;
3386
3484
  display: flex;
3387
3485
  justify-content: space-between;
@@ -3392,15 +3490,15 @@ var SliderWrapper = import_styled_components33.default.label`
3392
3490
  `;
3393
3491
 
3394
3492
  // src/components/TrackMenu.tsx
3395
- var import_react29 = __toESM(require("react"));
3493
+ var import_react32 = __toESM(require("react"));
3396
3494
  var import_react_dom = require("react-dom");
3397
- var import_styled_components34 = __toESM(require("styled-components"));
3398
- var import_jsx_runtime35 = require("react/jsx-runtime");
3399
- var MenuContainer = import_styled_components34.default.div`
3495
+ var import_styled_components35 = __toESM(require("styled-components"));
3496
+ var import_jsx_runtime39 = require("react/jsx-runtime");
3497
+ var MenuContainer = import_styled_components35.default.div`
3400
3498
  position: relative;
3401
3499
  display: inline-block;
3402
3500
  `;
3403
- var MenuButton = import_styled_components34.default.button`
3501
+ var MenuButton = import_styled_components35.default.button`
3404
3502
  background: none;
3405
3503
  border: none;
3406
3504
  cursor: pointer;
@@ -3416,7 +3514,7 @@ var MenuButton = import_styled_components34.default.button`
3416
3514
  }
3417
3515
  `;
3418
3516
  var DROPDOWN_MIN_WIDTH = 180;
3419
- var Dropdown = import_styled_components34.default.div`
3517
+ var Dropdown = import_styled_components35.default.div`
3420
3518
  position: fixed;
3421
3519
  top: ${(p) => p.$top}px;
3422
3520
  left: ${(p) => p.$left}px;
@@ -3429,19 +3527,19 @@ var Dropdown = import_styled_components34.default.div`
3429
3527
  min-width: ${DROPDOWN_MIN_WIDTH}px;
3430
3528
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
3431
3529
  `;
3432
- var Divider = import_styled_components34.default.hr`
3530
+ var Divider = import_styled_components35.default.hr`
3433
3531
  border: none;
3434
3532
  border-top: 1px solid rgba(128, 128, 128, 0.3);
3435
3533
  margin: 0.35rem 0;
3436
3534
  `;
3437
3535
  var TrackMenu = ({ items: itemsProp }) => {
3438
- const [open, setOpen] = (0, import_react29.useState)(false);
3439
- const close = (0, import_react29.useCallback)(() => setOpen(false), []);
3536
+ const [open, setOpen] = (0, import_react32.useState)(false);
3537
+ const close = (0, import_react32.useCallback)(() => setOpen(false), []);
3440
3538
  const items = typeof itemsProp === "function" ? itemsProp(close) : itemsProp;
3441
- const [dropdownPos, setDropdownPos] = (0, import_react29.useState)({ top: 0, left: 0 });
3442
- const buttonRef = (0, import_react29.useRef)(null);
3443
- const dropdownRef = (0, import_react29.useRef)(null);
3444
- const updatePosition = (0, import_react29.useCallback)(() => {
3539
+ const [dropdownPos, setDropdownPos] = (0, import_react32.useState)({ top: 0, left: 0 });
3540
+ const buttonRef = (0, import_react32.useRef)(null);
3541
+ const dropdownRef = (0, import_react32.useRef)(null);
3542
+ const updatePosition = (0, import_react32.useCallback)(() => {
3445
3543
  if (!buttonRef.current) return;
3446
3544
  const rect = buttonRef.current.getBoundingClientRect();
3447
3545
  const vw = window.innerWidth;
@@ -3458,7 +3556,7 @@ var TrackMenu = ({ items: itemsProp }) => {
3458
3556
  }
3459
3557
  setDropdownPos({ top, left });
3460
3558
  }, []);
3461
- (0, import_react29.useEffect)(() => {
3559
+ (0, import_react32.useEffect)(() => {
3462
3560
  if (!open) return;
3463
3561
  updatePosition();
3464
3562
  const rafId = requestAnimationFrame(() => updatePosition());
@@ -3472,7 +3570,7 @@ var TrackMenu = ({ items: itemsProp }) => {
3472
3570
  window.removeEventListener("resize", onResize);
3473
3571
  };
3474
3572
  }, [open, updatePosition]);
3475
- (0, import_react29.useEffect)(() => {
3573
+ (0, import_react32.useEffect)(() => {
3476
3574
  if (!open) return;
3477
3575
  const handleClick = (e) => {
3478
3576
  const target = e.target;
@@ -3492,8 +3590,8 @@ var TrackMenu = ({ items: itemsProp }) => {
3492
3590
  document.removeEventListener("keydown", handleKeyDown);
3493
3591
  };
3494
3592
  }, [open]);
3495
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(MenuContainer, { children: [
3496
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3593
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(MenuContainer, { children: [
3594
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3497
3595
  MenuButton,
3498
3596
  {
3499
3597
  ref: buttonRef,
@@ -3504,19 +3602,19 @@ var TrackMenu = ({ items: itemsProp }) => {
3504
3602
  onMouseDown: (e) => e.stopPropagation(),
3505
3603
  title: "Track menu",
3506
3604
  "aria-label": "Track menu",
3507
- children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(DotsIcon, { size: 16 })
3605
+ children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(DotsIcon, { size: 16 })
3508
3606
  }
3509
3607
  ),
3510
3608
  open && typeof document !== "undefined" && (0, import_react_dom.createPortal)(
3511
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3609
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3512
3610
  Dropdown,
3513
3611
  {
3514
3612
  ref: dropdownRef,
3515
3613
  $top: dropdownPos.top,
3516
3614
  $left: dropdownPos.left,
3517
3615
  onMouseDown: (e) => e.stopPropagation(),
3518
- children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_react29.default.Fragment, { children: [
3519
- index > 0 && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Divider, {}),
3616
+ children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_react32.default.Fragment, { children: [
3617
+ index > 0 && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Divider, {}),
3520
3618
  item.content
3521
3619
  ] }, item.id))
3522
3620
  }
@@ -3527,10 +3625,10 @@ var TrackMenu = ({ items: itemsProp }) => {
3527
3625
  };
3528
3626
 
3529
3627
  // src/components/SegmentedVUMeter.tsx
3530
- var import_react30 = __toESM(require("react"));
3531
- var import_styled_components35 = __toESM(require("styled-components"));
3628
+ var import_react33 = __toESM(require("react"));
3629
+ var import_styled_components36 = __toESM(require("styled-components"));
3532
3630
  var import_core8 = require("@waveform-playlist/core");
3533
- var import_jsx_runtime36 = require("react/jsx-runtime");
3631
+ var import_jsx_runtime40 = require("react/jsx-runtime");
3534
3632
  var DEFAULT_COLOR_STOPS = [
3535
3633
  { dB: 2, color: "#ff0000" },
3536
3634
  { dB: -1, color: "#e74c3c" },
@@ -3567,23 +3665,23 @@ function computeThresholds(segmentCount, dBRange) {
3567
3665
  function formatDbLabel(dB) {
3568
3666
  return Math.round(dB).toString();
3569
3667
  }
3570
- var MeterContainer = import_styled_components35.default.div`
3668
+ var MeterContainer = import_styled_components36.default.div`
3571
3669
  display: inline-flex;
3572
3670
  flex-direction: ${(props) => props.$orientation === "horizontal" ? "column" : "row"};
3573
3671
  gap: 4px;
3574
3672
  font-family: 'Courier New', monospace;
3575
3673
  `;
3576
- var ChannelColumn = import_styled_components35.default.div`
3674
+ var ChannelColumn = import_styled_components36.default.div`
3577
3675
  display: flex;
3578
3676
  flex-direction: ${(props) => props.$orientation === "horizontal" ? "row" : "column"};
3579
3677
  align-items: center;
3580
3678
  gap: 4px;
3581
3679
  `;
3582
- var SegmentStack = import_styled_components35.default.div`
3680
+ var SegmentStack = import_styled_components36.default.div`
3583
3681
  display: flex;
3584
3682
  flex-direction: ${(props) => props.$orientation === "horizontal" ? "row" : "column"};
3585
3683
  `;
3586
- var Segment = import_styled_components35.default.div.attrs((props) => ({
3684
+ var Segment = import_styled_components36.default.div.attrs((props) => ({
3587
3685
  style: {
3588
3686
  width: `${props.$width}px`,
3589
3687
  height: `${props.$height}px`,
@@ -3596,19 +3694,19 @@ var Segment = import_styled_components35.default.div.attrs((props) => ({
3596
3694
  border-radius: 1px;
3597
3695
  `;
3598
3696
  var DEFAULT_LABEL_COLOR = "#888";
3599
- var ChannelLabel = import_styled_components35.default.div`
3697
+ var ChannelLabel = import_styled_components36.default.div`
3600
3698
  color: ${(props) => props.$labelColor};
3601
3699
  font-size: 10px;
3602
3700
  text-align: center;
3603
3701
  user-select: none;
3604
3702
  `;
3605
- var ScaleColumn = import_styled_components35.default.div`
3703
+ var ScaleColumn = import_styled_components36.default.div`
3606
3704
  display: flex;
3607
3705
  flex-direction: column;
3608
3706
  position: relative;
3609
3707
  min-width: 28px;
3610
3708
  `;
3611
- var ScaleLabel = import_styled_components35.default.div.attrs((props) => ({
3709
+ var ScaleLabel = import_styled_components36.default.div.attrs((props) => ({
3612
3710
  style: {
3613
3711
  top: `${props.$top}px`,
3614
3712
  color: props.$labelColor
@@ -3622,19 +3720,19 @@ var ScaleLabel = import_styled_components35.default.div.attrs((props) => ({
3622
3720
  transform: translate(-50%, -50%);
3623
3721
  user-select: none;
3624
3722
  `;
3625
- var HorizontalScaleWrapper = import_styled_components35.default.div`
3723
+ var HorizontalScaleWrapper = import_styled_components36.default.div`
3626
3724
  display: flex;
3627
3725
  flex-direction: row;
3628
3726
  align-items: center;
3629
3727
  gap: 4px;
3630
3728
  `;
3631
- var ScaleRow = import_styled_components35.default.div`
3729
+ var ScaleRow = import_styled_components36.default.div`
3632
3730
  display: flex;
3633
3731
  flex-direction: row;
3634
3732
  position: relative;
3635
3733
  min-height: 16px;
3636
3734
  `;
3637
- var ScaleLabelHorizontal = import_styled_components35.default.div.attrs((props) => ({
3735
+ var ScaleLabelHorizontal = import_styled_components36.default.div.attrs((props) => ({
3638
3736
  style: {
3639
3737
  left: `${props.$left}px`,
3640
3738
  color: props.$labelColor
@@ -3675,11 +3773,11 @@ var SegmentedVUMeterInner = ({
3675
3773
  const isMultiChannel = channelCount >= 2;
3676
3774
  const segmentTotalHeight = segmentHeight + segmentGap;
3677
3775
  const [dBMin, dBMax] = dBRange;
3678
- const thresholds = (0, import_react30.useMemo)(
3776
+ const thresholds = (0, import_react33.useMemo)(
3679
3777
  () => computeThresholds(segmentCount, [dBMin, dBMax]),
3680
3778
  [segmentCount, dBMin, dBMax]
3681
3779
  );
3682
- const scaleLabels = (0, import_react30.useMemo)(() => {
3780
+ const scaleLabels = (0, import_react33.useMemo)(() => {
3683
3781
  const totalSize = segmentCount * segmentTotalHeight - segmentGap;
3684
3782
  const minDb = dBMin;
3685
3783
  const maxDb = dBMax;
@@ -3699,7 +3797,7 @@ var SegmentedVUMeterInner = ({
3699
3797
  }
3700
3798
  return labels2;
3701
3799
  }, [orientation, segmentCount, segmentTotalHeight, segmentGap, dBMin, dBMax]);
3702
- const renderThresholds = (0, import_react30.useMemo)(
3800
+ const renderThresholds = (0, import_react33.useMemo)(
3703
3801
  () => orientation === "horizontal" ? [...thresholds].reverse() : thresholds,
3704
3802
  [thresholds, orientation]
3705
3803
  );
@@ -3718,13 +3816,13 @@ var SegmentedVUMeterInner = ({
3718
3816
  }
3719
3817
  }
3720
3818
  }
3721
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(ChannelColumn, { $orientation: orientation, "data-channel": true, children: [
3722
- orientation === "horizontal" && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(ChannelLabel, { $labelColor: resolvedLabelColor, children: labels[channelIndex] }),
3723
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(SegmentStack, { $orientation: orientation, children: renderThresholds.map((threshold, segIdx) => {
3819
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(ChannelColumn, { $orientation: orientation, "data-channel": true, children: [
3820
+ orientation === "horizontal" && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(ChannelLabel, { $labelColor: resolvedLabelColor, children: labels[channelIndex] }),
3821
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(SegmentStack, { $orientation: orientation, children: renderThresholds.map((threshold, segIdx) => {
3724
3822
  const active = levelDb >= threshold;
3725
3823
  const isPeak = segIdx === peakSegmentIndex;
3726
3824
  const color = getColorForDb(threshold, colorStops);
3727
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3825
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3728
3826
  Segment,
3729
3827
  {
3730
3828
  $width: orientation === "horizontal" ? segmentHeight : segmentWidth,
@@ -3741,23 +3839,23 @@ var SegmentedVUMeterInner = ({
3741
3839
  segIdx
3742
3840
  );
3743
3841
  }) }),
3744
- orientation === "vertical" && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(ChannelLabel, { $labelColor: resolvedLabelColor, children: labels[channelIndex] })
3842
+ orientation === "vertical" && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(ChannelLabel, { $labelColor: resolvedLabelColor, children: labels[channelIndex] })
3745
3843
  ] }, channelIndex);
3746
3844
  };
3747
3845
  const renderScale = () => {
3748
3846
  if (orientation === "horizontal") {
3749
3847
  const totalWidth = segmentCount * segmentTotalHeight - segmentGap;
3750
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(HorizontalScaleWrapper, { children: [
3751
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(ChannelLabel, { $labelColor: resolvedLabelColor, style: { visibility: "hidden" }, children: "L" }),
3752
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(ScaleRow, { style: { width: `${totalWidth}px` }, children: scaleLabels.map(({ position, label }, i) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(ScaleLabelHorizontal, { $left: position, $labelColor: resolvedLabelColor, children: label }, i)) })
3848
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(HorizontalScaleWrapper, { children: [
3849
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(ChannelLabel, { $labelColor: resolvedLabelColor, style: { visibility: "hidden" }, children: "L" }),
3850
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(ScaleRow, { style: { width: `${totalWidth}px` }, children: scaleLabels.map(({ position, label }, i) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(ScaleLabelHorizontal, { $left: position, $labelColor: resolvedLabelColor, children: label }, i)) })
3753
3851
  ] });
3754
3852
  }
3755
3853
  const totalHeight = segmentCount * segmentTotalHeight - segmentGap;
3756
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(ScaleColumn, { style: { height: `${totalHeight}px` }, children: scaleLabels.map(({ position, label }, i) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(ScaleLabel, { $top: position, $labelColor: resolvedLabelColor, children: label }, i)) });
3854
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(ScaleColumn, { style: { height: `${totalHeight}px` }, children: scaleLabels.map(({ position, label }, i) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(ScaleLabel, { $top: position, $labelColor: resolvedLabelColor, children: label }, i)) });
3757
3855
  };
3758
3856
  if (isMultiChannel) {
3759
3857
  if (orientation === "horizontal") {
3760
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
3858
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
3761
3859
  MeterContainer,
3762
3860
  {
3763
3861
  className,
@@ -3773,7 +3871,7 @@ var SegmentedVUMeterInner = ({
3773
3871
  const midpoint = Math.ceil(channelCount / 2);
3774
3872
  const leftChannels = Array.from({ length: midpoint }, (_, i) => i);
3775
3873
  const rightChannels = Array.from({ length: channelCount - midpoint }, (_, i) => midpoint + i);
3776
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
3874
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
3777
3875
  MeterContainer,
3778
3876
  {
3779
3877
  className,
@@ -3787,7 +3885,7 @@ var SegmentedVUMeterInner = ({
3787
3885
  }
3788
3886
  );
3789
3887
  }
3790
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
3888
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
3791
3889
  MeterContainer,
3792
3890
  {
3793
3891
  className,
@@ -3800,7 +3898,7 @@ var SegmentedVUMeterInner = ({
3800
3898
  }
3801
3899
  );
3802
3900
  };
3803
- var SegmentedVUMeter = import_react30.default.memo(SegmentedVUMeterInner);
3901
+ var SegmentedVUMeter = import_react33.default.memo(SegmentedVUMeterInner);
3804
3902
 
3805
3903
  // src/utils/conversions.ts
3806
3904
  function samplesToSeconds(samples, sampleRate) {
@@ -3853,11 +3951,14 @@ function secondsToPixels2(seconds, samplesPerPixel, sampleRate) {
3853
3951
  DevicePixelRatioProvider,
3854
3952
  DotsIcon,
3855
3953
  FadeOverlay,
3954
+ GripIcon,
3856
3955
  Header,
3857
3956
  InlineLabel,
3858
3957
  LoopRegion,
3859
3958
  LoopRegionMarkers,
3860
3959
  MasterVolumeControl,
3960
+ MoveDownIcon,
3961
+ MoveUpIcon,
3861
3962
  PianoRollChannel,
3862
3963
  Playhead,
3863
3964
  PlayheadWithMarker,
@@ -3865,6 +3966,7 @@ function secondsToPixels2(seconds, samplesPerPixel, sampleRate) {
3865
3966
  PlaylistErrorBoundary,
3866
3967
  PlaylistInfoContext,
3867
3968
  PlayoutProvider,
3969
+ ReorderRail,
3868
3970
  ScreenReaderOnly,
3869
3971
  ScrollViewportProvider,
3870
3972
  SegmentedVUMeter,