@waveform-playlist/ui-components 13.2.0 → 14.0.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.mjs CHANGED
@@ -945,6 +945,7 @@ var PlaylistErrorBoundary = class extends React4.Component {
945
945
  // src/components/Clip.tsx
946
946
  import styled13 from "styled-components";
947
947
  import { useDraggable } from "@dnd-kit/react";
948
+ import { Feedback } from "@dnd-kit/dom";
948
949
 
949
950
  // src/components/ClipHeader.tsx
950
951
  import styled10 from "styled-components";
@@ -1144,6 +1145,8 @@ var FadeOverlay = ({
1144
1145
  // src/components/Clip.tsx
1145
1146
  import { clipPixelWidth } from "@waveform-playlist/core";
1146
1147
  import { Fragment, jsx as jsx10, jsxs as jsxs2 } from "react/jsx-runtime";
1148
+ var CLIP_MOVE_PLUGINS = [Feedback.configure({ dropAnimation: null })];
1149
+ var TRIM_HANDLE_PLUGINS = [Feedback.configure({ feedback: "none" })];
1147
1150
  var ClipContainer = styled13.div.attrs((props) => ({
1148
1151
  style: props.$isOverlay ? {} : {
1149
1152
  left: `${props.$left}px`,
@@ -1197,21 +1200,22 @@ var Clip = ({
1197
1200
  } = useDraggable({
1198
1201
  id: draggableId,
1199
1202
  data: { clipId, trackIndex, clipIndex, startSample, durationSamples },
1200
- disabled: !enableDrag
1203
+ disabled: !enableDrag,
1204
+ plugins: CLIP_MOVE_PLUGINS
1201
1205
  });
1202
1206
  const leftBoundaryId = `clip-boundary-left-${trackIndex}-${clipIndex}`;
1203
1207
  const { ref: leftBoundaryRef, isDragSource: isLeftBoundaryDragging } = useDraggable({
1204
1208
  id: leftBoundaryId,
1205
1209
  data: { clipId, trackIndex, clipIndex, boundary: "left", startSample, durationSamples },
1206
1210
  disabled: !enableDrag,
1207
- feedback: "none"
1211
+ plugins: TRIM_HANDLE_PLUGINS
1208
1212
  });
1209
1213
  const rightBoundaryId = `clip-boundary-right-${trackIndex}-${clipIndex}`;
1210
1214
  const { ref: rightBoundaryRef, isDragSource: isRightBoundaryDragging } = useDraggable({
1211
1215
  id: rightBoundaryId,
1212
1216
  data: { clipId, trackIndex, clipIndex, boundary: "right", startSample, durationSamples },
1213
1217
  disabled: !enableDrag,
1214
- feedback: "none"
1218
+ plugins: TRIM_HANDLE_PLUGINS
1215
1219
  });
1216
1220
  const style = isDragSource ? { zIndex: 100 } : void 0;
1217
1221
  return /* @__PURE__ */ jsxs2(