@pixerate/editor-svelte 0.59.0 → 0.60.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.
@@ -3,6 +3,7 @@
3
3
  findVideoClip,
4
4
  formatVideoTimecode,
5
5
  planVideoClipDrag,
6
+ videoDragLabel,
6
7
  videoAssetMap,
7
8
  videoClipLabel,
8
9
  videoClipTint,
@@ -119,6 +120,7 @@
119
120
  delta: (dx * 1000) / px,
120
121
  track: d.mode === 'move' ? trackAt(e.clientY, clip) : undefined,
121
122
  ripple: e.altKey,
123
+ placement: e.altKey ? 'insert' : e.shiftKey ? 'overwrite' : 'refuse',
122
124
  snap: (t) => controller.snap(t, { exclude: [clip] }).time,
123
125
  });
124
126
  drag = { ...d, moved: true, plan };
@@ -131,7 +133,7 @@
131
133
  if (!d) return;
132
134
  if (d.moved) {
133
135
  const edit = d.plan?.edit;
134
- if (edit) controller.apply(edit, edit.op === 'move_clip' ? 'Move clip' : edit.op === 'trim_clip' && edit.ripple ? 'Ripple trim' : 'Trim clip');
136
+ if (edit) controller.apply(edit, videoDragLabel(edit));
135
137
  } else if (!d.additive) controller.select([d.clip]);
136
138
  }
137
139
 
@@ -210,7 +212,8 @@
210
212
  <!--
211
213
  The timeline: a ruler to scrub (with markers), the playhead, and a row per track with its
212
214
  toggles and clips. Click a clip to select it (shift / ⌘ to add), drag it to move it (onto
213
- another track of its kind), drag an edge to trim (alt: ripple). Keys: Space plays, ←/→ step a
215
+ another track of its kind; alt: insert, pushing later material along on every sync-locked track;
216
+ shift: overwrite what is underneath), drag an edge to trim (alt: ripple). Keys: Space plays, ←/→ step a
214
217
  frame, S splits, Delete deletes (shift: ripple), ⌘Z / ⇧⌘Z undo and redo. Every edit is one undo step.
215
218
  -->
216
219
  <!-- svelte-ignore a11y_no_noninteractive_tabindex, a11y_no_noninteractive_element_interactions -->
@@ -1 +1 @@
1
- {"version":3,"file":"VideoTimeline.svelte.d.ts","sourceRoot":"","sources":["../../src/video-editor/VideoTimeline.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,EAYH,KAAK,qBAAqB,EAE3B,MAAM,+BAA+B,CAAC;AAKvC,UAAU,KAAK;IACb,UAAU,EAAE,qBAAqB,CAAC;IAClC,mEAAmE;IACnE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0DAA0D;IAC1D,mBAAmB,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IACpD,kIAAkI;IAClI,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAyQH,QAAA,MAAM,aAAa,sDAAwC,CAAC;AAC5D,KAAK,aAAa,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC;AACtD,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"VideoTimeline.svelte.d.ts","sourceRoot":"","sources":["../../src/video-editor/VideoTimeline.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,EAaH,KAAK,qBAAqB,EAE3B,MAAM,+BAA+B,CAAC;AAKvC,UAAU,KAAK;IACb,UAAU,EAAE,qBAAqB,CAAC;IAClC,mEAAmE;IACnE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0DAA0D;IAC1D,mBAAmB,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IACpD,kIAAkI;IAClI,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AA0QH,QAAA,MAAM,aAAa,sDAAwC,CAAC;AAC5D,KAAK,aAAa,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC;AACtD,eAAe,aAAa,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pixerate/editor-svelte",
3
- "version": "0.59.0",
3
+ "version": "0.60.1",
4
4
  "description": "Svelte bindings and prompt/rich-text components for @pixerate/editor",
5
5
  "author": "Pixerate",
6
6
  "license": "MIT",
@@ -131,7 +131,7 @@
131
131
  "@tiptap/extension-bubble-menu": "^2.11.5",
132
132
  "@tiptap/extension-placeholder": "^2.11.5",
133
133
  "@tiptap/starter-kit": "^2.11.5",
134
- "@pixerate/editor": "0.79.0"
134
+ "@pixerate/editor": "0.81.0"
135
135
  },
136
136
  "peerDependencies": {
137
137
  "@dagrejs/dagre": "^1.1.4",