@waveform-playlist/browser 15.4.0 → 16.0.1
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 +1 -1
- package/dist/index.d.mts +10 -23
- package/dist/index.d.ts +10 -23
- package/dist/index.js +10 -24
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -23
- package/dist/index.mjs.map +1 -1
- package/package.json +17 -17
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ npm install @waveform-playlist/browser tone @dnd-kit/react
|
|
|
27
27
|
| `react` / `react-dom` | ^18.0.0 or ^19.0.0 |
|
|
28
28
|
| `styled-components` | ^6.0.0 — CSS-in-JS styling |
|
|
29
29
|
| `tone` | ^15.0.0 — Web Audio engine (optional if you supply your own `PlayoutAdapter`) |
|
|
30
|
-
| `@dnd-kit/react` | ^0.
|
|
30
|
+
| `@dnd-kit/react` | ^0.5.0 — drag-and-drop (includes `@dnd-kit/dom` and `@dnd-kit/abstract`) |
|
|
31
31
|
| `@waveform-playlist/playout` | Tone.js playout engine (optional peer, dynamically imported by default) |
|
|
32
32
|
| `@waveform-playlist/media-element-playout` | engine for `MediaElementPlaylistProvider` (optional peer) |
|
|
33
33
|
| `@waveform-playlist/annotations` / `@waveform-playlist/recording` / `@dawcore/wam` | optional, install only if you use those features |
|
package/dist/index.d.mts
CHANGED
|
@@ -9,7 +9,7 @@ import { WaveformPlaylistTheme, TimeFormat, RenderPlayheadFunction, TrackMenuIte
|
|
|
9
9
|
export { TimeFormat } from '@waveform-playlist/ui-components';
|
|
10
10
|
import { MediaElementPlayout, FadeConfig } from '@waveform-playlist/media-element-playout';
|
|
11
11
|
import * as _dnd_kit_abstract from '@dnd-kit/abstract';
|
|
12
|
-
import { DragStartEvent, DragMoveEvent, DragEndEvent, PluginDescriptor, Modifier, DragDropManager, DragOperation
|
|
12
|
+
import { DragStartEvent, DragMoveEvent, DragEndEvent, PluginDescriptor, Modifier, DragDropManager, DragOperation } from '@dnd-kit/abstract';
|
|
13
13
|
import { PointerSensor } from '@dnd-kit/dom';
|
|
14
14
|
import WaveformData from 'waveform-data';
|
|
15
15
|
|
|
@@ -568,9 +568,9 @@ interface UseClipDragHandlersOptions {
|
|
|
568
568
|
* ```
|
|
569
569
|
*/
|
|
570
570
|
declare function useClipDragHandlers({ tracks, onTracksChange, samplesPerPixel, engineRef, isDraggingRef, snapSamplePosition, }: UseClipDragHandlersOptions): {
|
|
571
|
-
onDragStart: (event:
|
|
572
|
-
onDragMove: (event:
|
|
573
|
-
onDragEnd: (event:
|
|
571
|
+
onDragStart: (event: DragStartEvent) => void;
|
|
572
|
+
onDragMove: (event: DragMoveEvent) => void;
|
|
573
|
+
onDragEnd: (event: DragEndEvent) => void;
|
|
574
574
|
};
|
|
575
575
|
|
|
576
576
|
interface UseAnnotationDragHandlersOptions {
|
|
@@ -612,9 +612,9 @@ interface UseAnnotationDragHandlersOptions {
|
|
|
612
612
|
* ```
|
|
613
613
|
*/
|
|
614
614
|
declare function useAnnotationDragHandlers({ annotations, onAnnotationsChange, samplesPerPixel, sampleRate, duration, linkEndpoints, }: UseAnnotationDragHandlersOptions): {
|
|
615
|
-
onDragStart: (event:
|
|
616
|
-
onDragMove: (event:
|
|
617
|
-
onDragEnd: (event:
|
|
615
|
+
onDragStart: (event: DragStartEvent) => void;
|
|
616
|
+
onDragMove: (event: DragMoveEvent) => void;
|
|
617
|
+
onDragEnd: (event: DragEndEvent) => void;
|
|
618
618
|
};
|
|
619
619
|
|
|
620
620
|
/**
|
|
@@ -1471,7 +1471,7 @@ declare class ClipCollisionModifier extends Modifier<DragDropManager<any, any>,
|
|
|
1471
1471
|
x: number;
|
|
1472
1472
|
y: number;
|
|
1473
1473
|
};
|
|
1474
|
-
static configure: (options: ClipCollisionOptions) => _dnd_kit_abstract.PluginDescriptor<any, any, typeof ClipCollisionModifier>;
|
|
1474
|
+
static configure: (options: ClipCollisionOptions) => _dnd_kit_abstract.PluginDescriptor<any, _dnd_kit_abstract.Plugin<any, ClipCollisionOptions>, typeof ClipCollisionModifier>;
|
|
1475
1475
|
}
|
|
1476
1476
|
|
|
1477
1477
|
interface SnapToGridBeatsOptions {
|
|
@@ -1503,22 +1503,9 @@ declare class SnapToGridModifier extends Modifier<DragDropManager<any, any>, Sna
|
|
|
1503
1503
|
x: number;
|
|
1504
1504
|
y: number;
|
|
1505
1505
|
};
|
|
1506
|
-
static configure: (options: SnapToGridBeatsOptions | SnapToGridTimescaleOptions) => _dnd_kit_abstract.PluginDescriptor<any, any, typeof SnapToGridModifier>;
|
|
1506
|
+
static configure: (options: SnapToGridBeatsOptions | SnapToGridTimescaleOptions) => _dnd_kit_abstract.PluginDescriptor<any, _dnd_kit_abstract.Plugin<any, SnapToGridBeatsOptions | SnapToGridTimescaleOptions>, typeof SnapToGridModifier>;
|
|
1507
1507
|
}
|
|
1508
1508
|
|
|
1509
|
-
/**
|
|
1510
|
-
* DragDropProvider plugins customizer that disables the Feedback plugin's drop animation.
|
|
1511
|
-
*
|
|
1512
|
-
* Without this, the Feedback plugin animates the dragged element back to its original
|
|
1513
|
-
* position on drop, causing a visual snap-back before React re-renders at the new position.
|
|
1514
|
-
*
|
|
1515
|
-
* Usage:
|
|
1516
|
-
* ```tsx
|
|
1517
|
-
* <DragDropProvider plugins={noDropAnimationPlugins} ...>
|
|
1518
|
-
* ```
|
|
1519
|
-
*/
|
|
1520
|
-
declare const noDropAnimationPlugins: (defaults: Plugins) => Plugins;
|
|
1521
|
-
|
|
1522
1509
|
/**
|
|
1523
1510
|
* Waveform Data Loader
|
|
1524
1511
|
*
|
|
@@ -1574,4 +1561,4 @@ declare function getWaveformDataMetadata(src: string): Promise<{
|
|
|
1574
1561
|
bits: 8 | 16;
|
|
1575
1562
|
}>;
|
|
1576
1563
|
|
|
1577
|
-
export { type AnnotationIntegration, AnnotationIntegrationProvider, AudioPosition, AutomaticScrollCheckbox, ClearAllButton, type ClearAllButtonProps, ClipCollisionModifier, ClipInteractionProvider, type ClipInteractionProviderProps, ContinuousPlayCheckbox, DownloadAnnotationsButton, EditableCheckbox, FastForwardButton, type FrameData, type GetAnnotationBoxLabelFn, KeyboardShortcuts, type KeyboardShortcutsProps, LinkEndpointsCheckbox, LoopButton, MasterVolumeControl, type MasterVolumeControls, type MediaElementAnimationContextValue, MediaElementAnnotationList, type MediaElementAnnotationListProps, type MediaElementControlsContextValue, type MediaElementDataContextValue, MediaElementPlaylist, type MediaElementPlaylistProps, MediaElementPlaylistProvider, type MediaElementStateContextValue, type MediaElementTrackConfig, MediaElementWaveform, type MediaElementWaveformProps, type OnAnnotationUpdateFn, PauseButton, PlayButton, PlaylistAnnotationList, type PlaylistAnnotationListProps, PlaylistVisualization, type PlaylistVisualizationProps, RewindButton, SelectionTimeInputs, SetLoopRegionButton, SkipBackwardButton, SkipForwardButton, SnapToGridModifier, SortableTrackControls, type SortableTrackControlsProps, type SortableTrackControlsRenderProps, type SpectrogramCanvasRegistration, type SpectrogramIntegration, SpectrogramIntegrationProvider, StopButton, type TimeFormatControls, TimeFormatSelect, type TrackState, type UsePlaybackShortcutsOptions, type UsePlaybackShortcutsReturn, Waveform, WaveformPlaylistProvider, type WaveformProps, type WaveformTrack, type ZoomControls, ZoomInButton, ZoomOutButton, getWaveformDataMetadata, loadPeaksFromWaveformData, loadWaveformData,
|
|
1564
|
+
export { type AnnotationIntegration, AnnotationIntegrationProvider, AudioPosition, AutomaticScrollCheckbox, ClearAllButton, type ClearAllButtonProps, ClipCollisionModifier, ClipInteractionProvider, type ClipInteractionProviderProps, ContinuousPlayCheckbox, DownloadAnnotationsButton, EditableCheckbox, FastForwardButton, type FrameData, type GetAnnotationBoxLabelFn, KeyboardShortcuts, type KeyboardShortcutsProps, LinkEndpointsCheckbox, LoopButton, MasterVolumeControl, type MasterVolumeControls, type MediaElementAnimationContextValue, MediaElementAnnotationList, type MediaElementAnnotationListProps, type MediaElementControlsContextValue, type MediaElementDataContextValue, MediaElementPlaylist, type MediaElementPlaylistProps, MediaElementPlaylistProvider, type MediaElementStateContextValue, type MediaElementTrackConfig, MediaElementWaveform, type MediaElementWaveformProps, type OnAnnotationUpdateFn, PauseButton, PlayButton, PlaylistAnnotationList, type PlaylistAnnotationListProps, PlaylistVisualization, type PlaylistVisualizationProps, RewindButton, SelectionTimeInputs, SetLoopRegionButton, SkipBackwardButton, SkipForwardButton, SnapToGridModifier, SortableTrackControls, type SortableTrackControlsProps, type SortableTrackControlsRenderProps, type SpectrogramCanvasRegistration, type SpectrogramIntegration, SpectrogramIntegrationProvider, StopButton, type TimeFormatControls, TimeFormatSelect, type TrackState, type UsePlaybackShortcutsOptions, type UsePlaybackShortcutsReturn, Waveform, WaveformPlaylistProvider, type WaveformProps, type WaveformTrack, type ZoomControls, ZoomInButton, ZoomOutButton, getWaveformDataMetadata, loadPeaksFromWaveformData, loadWaveformData, useAnnotationDragHandlers, useAnnotationIntegration, useAnnotationKeyboardControls, useClipDragHandlers, useClipInteractionEnabled, useClipSplitting, useDragSensors, useKeyboardShortcuts, useMasterVolume, useMediaElementAnimation, useMediaElementControls, useMediaElementData, useMediaElementState, usePlaybackAnimation, usePlaybackShortcuts, usePlaylistControls, usePlaylistData, usePlaylistDataOptional, usePlaylistState, useSpectrogramIntegration, useTimeFormat, useZoomControls, waveformDataToPeaks };
|
package/dist/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ import { WaveformPlaylistTheme, TimeFormat, RenderPlayheadFunction, TrackMenuIte
|
|
|
9
9
|
export { TimeFormat } from '@waveform-playlist/ui-components';
|
|
10
10
|
import { MediaElementPlayout, FadeConfig } from '@waveform-playlist/media-element-playout';
|
|
11
11
|
import * as _dnd_kit_abstract from '@dnd-kit/abstract';
|
|
12
|
-
import { DragStartEvent, DragMoveEvent, DragEndEvent, PluginDescriptor, Modifier, DragDropManager, DragOperation
|
|
12
|
+
import { DragStartEvent, DragMoveEvent, DragEndEvent, PluginDescriptor, Modifier, DragDropManager, DragOperation } from '@dnd-kit/abstract';
|
|
13
13
|
import { PointerSensor } from '@dnd-kit/dom';
|
|
14
14
|
import WaveformData from 'waveform-data';
|
|
15
15
|
|
|
@@ -568,9 +568,9 @@ interface UseClipDragHandlersOptions {
|
|
|
568
568
|
* ```
|
|
569
569
|
*/
|
|
570
570
|
declare function useClipDragHandlers({ tracks, onTracksChange, samplesPerPixel, engineRef, isDraggingRef, snapSamplePosition, }: UseClipDragHandlersOptions): {
|
|
571
|
-
onDragStart: (event:
|
|
572
|
-
onDragMove: (event:
|
|
573
|
-
onDragEnd: (event:
|
|
571
|
+
onDragStart: (event: DragStartEvent) => void;
|
|
572
|
+
onDragMove: (event: DragMoveEvent) => void;
|
|
573
|
+
onDragEnd: (event: DragEndEvent) => void;
|
|
574
574
|
};
|
|
575
575
|
|
|
576
576
|
interface UseAnnotationDragHandlersOptions {
|
|
@@ -612,9 +612,9 @@ interface UseAnnotationDragHandlersOptions {
|
|
|
612
612
|
* ```
|
|
613
613
|
*/
|
|
614
614
|
declare function useAnnotationDragHandlers({ annotations, onAnnotationsChange, samplesPerPixel, sampleRate, duration, linkEndpoints, }: UseAnnotationDragHandlersOptions): {
|
|
615
|
-
onDragStart: (event:
|
|
616
|
-
onDragMove: (event:
|
|
617
|
-
onDragEnd: (event:
|
|
615
|
+
onDragStart: (event: DragStartEvent) => void;
|
|
616
|
+
onDragMove: (event: DragMoveEvent) => void;
|
|
617
|
+
onDragEnd: (event: DragEndEvent) => void;
|
|
618
618
|
};
|
|
619
619
|
|
|
620
620
|
/**
|
|
@@ -1471,7 +1471,7 @@ declare class ClipCollisionModifier extends Modifier<DragDropManager<any, any>,
|
|
|
1471
1471
|
x: number;
|
|
1472
1472
|
y: number;
|
|
1473
1473
|
};
|
|
1474
|
-
static configure: (options: ClipCollisionOptions) => _dnd_kit_abstract.PluginDescriptor<any, any, typeof ClipCollisionModifier>;
|
|
1474
|
+
static configure: (options: ClipCollisionOptions) => _dnd_kit_abstract.PluginDescriptor<any, _dnd_kit_abstract.Plugin<any, ClipCollisionOptions>, typeof ClipCollisionModifier>;
|
|
1475
1475
|
}
|
|
1476
1476
|
|
|
1477
1477
|
interface SnapToGridBeatsOptions {
|
|
@@ -1503,22 +1503,9 @@ declare class SnapToGridModifier extends Modifier<DragDropManager<any, any>, Sna
|
|
|
1503
1503
|
x: number;
|
|
1504
1504
|
y: number;
|
|
1505
1505
|
};
|
|
1506
|
-
static configure: (options: SnapToGridBeatsOptions | SnapToGridTimescaleOptions) => _dnd_kit_abstract.PluginDescriptor<any, any, typeof SnapToGridModifier>;
|
|
1506
|
+
static configure: (options: SnapToGridBeatsOptions | SnapToGridTimescaleOptions) => _dnd_kit_abstract.PluginDescriptor<any, _dnd_kit_abstract.Plugin<any, SnapToGridBeatsOptions | SnapToGridTimescaleOptions>, typeof SnapToGridModifier>;
|
|
1507
1507
|
}
|
|
1508
1508
|
|
|
1509
|
-
/**
|
|
1510
|
-
* DragDropProvider plugins customizer that disables the Feedback plugin's drop animation.
|
|
1511
|
-
*
|
|
1512
|
-
* Without this, the Feedback plugin animates the dragged element back to its original
|
|
1513
|
-
* position on drop, causing a visual snap-back before React re-renders at the new position.
|
|
1514
|
-
*
|
|
1515
|
-
* Usage:
|
|
1516
|
-
* ```tsx
|
|
1517
|
-
* <DragDropProvider plugins={noDropAnimationPlugins} ...>
|
|
1518
|
-
* ```
|
|
1519
|
-
*/
|
|
1520
|
-
declare const noDropAnimationPlugins: (defaults: Plugins) => Plugins;
|
|
1521
|
-
|
|
1522
1509
|
/**
|
|
1523
1510
|
* Waveform Data Loader
|
|
1524
1511
|
*
|
|
@@ -1574,4 +1561,4 @@ declare function getWaveformDataMetadata(src: string): Promise<{
|
|
|
1574
1561
|
bits: 8 | 16;
|
|
1575
1562
|
}>;
|
|
1576
1563
|
|
|
1577
|
-
export { type AnnotationIntegration, AnnotationIntegrationProvider, AudioPosition, AutomaticScrollCheckbox, ClearAllButton, type ClearAllButtonProps, ClipCollisionModifier, ClipInteractionProvider, type ClipInteractionProviderProps, ContinuousPlayCheckbox, DownloadAnnotationsButton, EditableCheckbox, FastForwardButton, type FrameData, type GetAnnotationBoxLabelFn, KeyboardShortcuts, type KeyboardShortcutsProps, LinkEndpointsCheckbox, LoopButton, MasterVolumeControl, type MasterVolumeControls, type MediaElementAnimationContextValue, MediaElementAnnotationList, type MediaElementAnnotationListProps, type MediaElementControlsContextValue, type MediaElementDataContextValue, MediaElementPlaylist, type MediaElementPlaylistProps, MediaElementPlaylistProvider, type MediaElementStateContextValue, type MediaElementTrackConfig, MediaElementWaveform, type MediaElementWaveformProps, type OnAnnotationUpdateFn, PauseButton, PlayButton, PlaylistAnnotationList, type PlaylistAnnotationListProps, PlaylistVisualization, type PlaylistVisualizationProps, RewindButton, SelectionTimeInputs, SetLoopRegionButton, SkipBackwardButton, SkipForwardButton, SnapToGridModifier, SortableTrackControls, type SortableTrackControlsProps, type SortableTrackControlsRenderProps, type SpectrogramCanvasRegistration, type SpectrogramIntegration, SpectrogramIntegrationProvider, StopButton, type TimeFormatControls, TimeFormatSelect, type TrackState, type UsePlaybackShortcutsOptions, type UsePlaybackShortcutsReturn, Waveform, WaveformPlaylistProvider, type WaveformProps, type WaveformTrack, type ZoomControls, ZoomInButton, ZoomOutButton, getWaveformDataMetadata, loadPeaksFromWaveformData, loadWaveformData,
|
|
1564
|
+
export { type AnnotationIntegration, AnnotationIntegrationProvider, AudioPosition, AutomaticScrollCheckbox, ClearAllButton, type ClearAllButtonProps, ClipCollisionModifier, ClipInteractionProvider, type ClipInteractionProviderProps, ContinuousPlayCheckbox, DownloadAnnotationsButton, EditableCheckbox, FastForwardButton, type FrameData, type GetAnnotationBoxLabelFn, KeyboardShortcuts, type KeyboardShortcutsProps, LinkEndpointsCheckbox, LoopButton, MasterVolumeControl, type MasterVolumeControls, type MediaElementAnimationContextValue, MediaElementAnnotationList, type MediaElementAnnotationListProps, type MediaElementControlsContextValue, type MediaElementDataContextValue, MediaElementPlaylist, type MediaElementPlaylistProps, MediaElementPlaylistProvider, type MediaElementStateContextValue, type MediaElementTrackConfig, MediaElementWaveform, type MediaElementWaveformProps, type OnAnnotationUpdateFn, PauseButton, PlayButton, PlaylistAnnotationList, type PlaylistAnnotationListProps, PlaylistVisualization, type PlaylistVisualizationProps, RewindButton, SelectionTimeInputs, SetLoopRegionButton, SkipBackwardButton, SkipForwardButton, SnapToGridModifier, SortableTrackControls, type SortableTrackControlsProps, type SortableTrackControlsRenderProps, type SpectrogramCanvasRegistration, type SpectrogramIntegration, SpectrogramIntegrationProvider, StopButton, type TimeFormatControls, TimeFormatSelect, type TrackState, type UsePlaybackShortcutsOptions, type UsePlaybackShortcutsReturn, Waveform, WaveformPlaylistProvider, type WaveformProps, type WaveformTrack, type ZoomControls, ZoomInButton, ZoomOutButton, getWaveformDataMetadata, loadPeaksFromWaveformData, loadWaveformData, useAnnotationDragHandlers, useAnnotationIntegration, useAnnotationKeyboardControls, useClipDragHandlers, useClipInteractionEnabled, useClipSplitting, useDragSensors, useKeyboardShortcuts, useMasterVolume, useMediaElementAnimation, useMediaElementControls, useMediaElementData, useMediaElementState, usePlaybackAnimation, usePlaybackShortcuts, usePlaylistControls, usePlaylistData, usePlaylistDataOptional, usePlaylistState, useSpectrogramIntegration, useTimeFormat, useZoomControls, waveformDataToPeaks };
|
package/dist/index.js
CHANGED
|
@@ -119,7 +119,6 @@ __export(index_exports, {
|
|
|
119
119
|
getWaveformDataMetadata: () => getWaveformDataMetadata,
|
|
120
120
|
loadPeaksFromWaveformData: () => loadPeaksFromWaveformData,
|
|
121
121
|
loadWaveformData: () => loadWaveformData,
|
|
122
|
-
noDropAnimationPlugins: () => noDropAnimationPlugins,
|
|
123
122
|
useAnnotationDragHandlers: () => useAnnotationDragHandlers,
|
|
124
123
|
useAnnotationIntegration: () => useAnnotationIntegration,
|
|
125
124
|
useAnnotationKeyboardControls: () => useAnnotationKeyboardControls,
|
|
@@ -3805,6 +3804,7 @@ var import_ui_components8 = require("@waveform-playlist/ui-components");
|
|
|
3805
3804
|
var import_react23 = require("react");
|
|
3806
3805
|
var import_sortable = require("@dnd-kit/react/sortable");
|
|
3807
3806
|
var import_modifiers = require("@dnd-kit/abstract/modifiers");
|
|
3807
|
+
var import_dom2 = require("@dnd-kit/dom");
|
|
3808
3808
|
|
|
3809
3809
|
// src/utils/dragPopoverHealer.ts
|
|
3810
3810
|
function createDragPopoverHealer(element) {
|
|
@@ -3835,6 +3835,8 @@ function createDragPopoverHealer(element) {
|
|
|
3835
3835
|
|
|
3836
3836
|
// src/components/SortableTrackControls.tsx
|
|
3837
3837
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
3838
|
+
var MOVE_FEEDBACK = import_dom2.Feedback.configure({ feedback: "move" });
|
|
3839
|
+
var withMoveFeedback = (defaults) => [...defaults, MOVE_FEEDBACK];
|
|
3838
3840
|
var SortableTrackControls = ({
|
|
3839
3841
|
trackId,
|
|
3840
3842
|
index,
|
|
@@ -3850,6 +3852,12 @@ var SortableTrackControls = ({
|
|
|
3850
3852
|
data: { kind: "track-reorder", trackId },
|
|
3851
3853
|
modifiers: [import_modifiers.RestrictToVerticalAxis],
|
|
3852
3854
|
disabled,
|
|
3855
|
+
// Per-entity Feedback config (@dnd-kit 0.5+ moved `feedback` out of the
|
|
3856
|
+
// hook options into `plugins`). The FUNCTION form extends the sortable's
|
|
3857
|
+
// default plugins — a bare array would silently drop
|
|
3858
|
+
// OptimisticSortingPlugin, which drives the live `sortable.index` that
|
|
3859
|
+
// drag-commit reads (covered by sortableTrackControlsFeedbackPlugins.test).
|
|
3860
|
+
//
|
|
3853
3861
|
// feedback: 'move' (NOT 'none' — see below) disables the Feedback
|
|
3854
3862
|
// plugin's placeholder/clone splicing for this sortable while KEEPING its
|
|
3855
3863
|
// dragOperation.shape computation alive. That plugin does raw,
|
|
@@ -3875,7 +3883,7 @@ var SortableTrackControls = ({
|
|
|
3875
3883
|
// sortables need shape. `isDragSource` (box-shadow lift feedback below)
|
|
3876
3884
|
// is a reactive signal, unaffected either way. See browser/CLAUDE.md
|
|
3877
3885
|
// "Track Reordering".
|
|
3878
|
-
|
|
3886
|
+
plugins: withMoveFeedback
|
|
3879
3887
|
});
|
|
3880
3888
|
const elementRef = (0, import_react23.useRef)(null);
|
|
3881
3889
|
const composedRef = (0, import_react23.useCallback)(
|
|
@@ -5067,25 +5075,6 @@ var import_react33 = require("@dnd-kit/react");
|
|
|
5067
5075
|
var import_modifiers2 = require("@dnd-kit/abstract/modifiers");
|
|
5068
5076
|
var import_ui_components10 = require("@waveform-playlist/ui-components");
|
|
5069
5077
|
|
|
5070
|
-
// src/plugins/noDropAnimationPlugins.ts
|
|
5071
|
-
var import_dom2 = require("@dnd-kit/dom");
|
|
5072
|
-
var noDropAnimationPlugins = (defaults) => {
|
|
5073
|
-
let feedbackFound = false;
|
|
5074
|
-
const result = defaults.map((p) => {
|
|
5075
|
-
if (p === import_dom2.Feedback) {
|
|
5076
|
-
feedbackFound = true;
|
|
5077
|
-
return import_dom2.Feedback.configure({ dropAnimation: null });
|
|
5078
|
-
}
|
|
5079
|
-
return p;
|
|
5080
|
-
});
|
|
5081
|
-
if (!feedbackFound) {
|
|
5082
|
-
console.warn(
|
|
5083
|
-
"[waveform-playlist] noDropAnimationPlugins: Feedback plugin not found in defaults \u2014 drop animation may not be disabled. Check @dnd-kit/dom version."
|
|
5084
|
-
);
|
|
5085
|
-
}
|
|
5086
|
-
return result;
|
|
5087
|
-
};
|
|
5088
|
-
|
|
5089
5078
|
// src/components/AnimatedMediaElementPlayhead.tsx
|
|
5090
5079
|
var import_react30 = require("react");
|
|
5091
5080
|
var import_styled_components7 = __toESM(require("styled-components"));
|
|
@@ -5532,7 +5521,6 @@ var MediaElementPlaylist = ({
|
|
|
5532
5521
|
onDragMove,
|
|
5533
5522
|
onDragEnd,
|
|
5534
5523
|
modifiers: editable ? [import_modifiers2.RestrictToHorizontalAxis] : [],
|
|
5535
|
-
plugins: noDropAnimationPlugins,
|
|
5536
5524
|
children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(annotationIntegration.AnnotationBoxesWrapper, { height: 30, width: tracksFullWidth, children: annotations.map((annotation, index) => {
|
|
5537
5525
|
const startPosition = annotation.start * sampleRate / samplesPerPixel;
|
|
5538
5526
|
const endPosition = annotation.end * sampleRate / samplesPerPixel;
|
|
@@ -5930,7 +5918,6 @@ var ClipInteractionProvider = ({
|
|
|
5930
5918
|
onDragOver: handleDragOver,
|
|
5931
5919
|
onDragEnd: handleDragEnd,
|
|
5932
5920
|
modifiers,
|
|
5933
|
-
plugins: noDropAnimationPlugins,
|
|
5934
5921
|
children
|
|
5935
5922
|
}
|
|
5936
5923
|
) });
|
|
@@ -5977,7 +5964,6 @@ var ClipInteractionProvider = ({
|
|
|
5977
5964
|
getWaveformDataMetadata,
|
|
5978
5965
|
loadPeaksFromWaveformData,
|
|
5979
5966
|
loadWaveformData,
|
|
5980
|
-
noDropAnimationPlugins,
|
|
5981
5967
|
useAnnotationDragHandlers,
|
|
5982
5968
|
useAnnotationIntegration,
|
|
5983
5969
|
useAnnotationKeyboardControls,
|