@pixerate/editor 0.140.1 → 0.140.2

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.
@@ -4362,7 +4362,7 @@ function createVideoEditorToolProvider(controller, options = {}) {
4362
4362
  const setTransition = {
4363
4363
  name: "set_video_transition",
4364
4364
  title: "Set a transition",
4365
- description: "Sets (or with null removes) the transition into a clip from the clip that ends where it starts on the same track (one undo step). Every type but dip plays half before and half after the cut, so both clips need that much media past the cut; when they do not, the error says the longest that fits. Returns the clip.",
4365
+ description: "Sets (or with null removes) a built-in transition into a clip from the clip that ends where it starts on the same track: crossfade (a cross dissolve), dip to a colour, wipe, push, slide or iris. One undo step. Use set_video_effect_transition only for a transition effect from the effects provider. Every type but dip plays half before and half after the cut, so both clips need that much media past the cut; when they do not, the error says the longest that fits. Returns the clip.",
4366
4366
  inputSchema: object({ clip: { ...CLIP_ID, description: "The incoming clip (the one after the cut)." }, transition: { anyOf: [TRANSITION, { type: "null" }], description: "The transition, or null to remove it." } }, ["clip", "transition"]),
4367
4367
  annotations: { title: "Set a transition", ...WRITE_IDEMPOTENT },
4368
4368
  handler: ({ clip, transition }) => apply({ op: "set_transition", clip, transition }, transition ? "Set transition" : "Remove transition", (r) => ({ clip: clipOut(r.project, clip) }))
@@ -4757,7 +4757,7 @@ function createVideoEffectsToolProvider(controller, options = {}) {
4757
4757
  {
4758
4758
  name: "set_video_effect_transition",
4759
4759
  title: "Set an effect transition",
4760
- description: `Sets a provider transition effect (search_effects with use transition) into a clip from the clip that ends where it starts on the same track, centred on the cut; like a crossfade it needs half its length in media past the cut on both sides. Replaces any transition there. One undo step. Returns the clip's effects. Remove it with remove_effect (effect "transition") or set_video_transition null.`,
4760
+ description: `Sets a transition effect from the effects provider (search_effects with use transition) into a clip from the clip that ends where it starts on the same track, centred on the cut. For the built-in crossfade (cross dissolve), dip, wipe, push, slide and iris use set_video_transition instead. It needs half its length in media past the cut on both sides. Replaces any transition there. One undo step. Returns the clip's effects. Remove it with remove_effect (effect "transition") or set_video_transition null.`,
4761
4761
  inputSchema: {
4762
4762
  type: "object",
4763
4763
  properties: {
@@ -4362,7 +4362,7 @@ function createVideoEditorToolProvider(controller, options = {}) {
4362
4362
  const setTransition = {
4363
4363
  name: "set_video_transition",
4364
4364
  title: "Set a transition",
4365
- description: "Sets (or with null removes) the transition into a clip from the clip that ends where it starts on the same track (one undo step). Every type but dip plays half before and half after the cut, so both clips need that much media past the cut; when they do not, the error says the longest that fits. Returns the clip.",
4365
+ description: "Sets (or with null removes) a built-in transition into a clip from the clip that ends where it starts on the same track: crossfade (a cross dissolve), dip to a colour, wipe, push, slide or iris. One undo step. Use set_video_effect_transition only for a transition effect from the effects provider. Every type but dip plays half before and half after the cut, so both clips need that much media past the cut; when they do not, the error says the longest that fits. Returns the clip.",
4366
4366
  inputSchema: object({ clip: { ...CLIP_ID, description: "The incoming clip (the one after the cut)." }, transition: { anyOf: [TRANSITION, { type: "null" }], description: "The transition, or null to remove it." } }, ["clip", "transition"]),
4367
4367
  annotations: { title: "Set a transition", ...WRITE_IDEMPOTENT },
4368
4368
  handler: ({ clip, transition }) => apply({ op: "set_transition", clip, transition }, transition ? "Set transition" : "Remove transition", (r) => ({ clip: clipOut(r.project, clip) }))
@@ -4757,7 +4757,7 @@ function createVideoEffectsToolProvider(controller, options = {}) {
4757
4757
  {
4758
4758
  name: "set_video_effect_transition",
4759
4759
  title: "Set an effect transition",
4760
- description: `Sets a provider transition effect (search_effects with use transition) into a clip from the clip that ends where it starts on the same track, centred on the cut; like a crossfade it needs half its length in media past the cut on both sides. Replaces any transition there. One undo step. Returns the clip's effects. Remove it with remove_effect (effect "transition") or set_video_transition null.`,
4760
+ description: `Sets a transition effect from the effects provider (search_effects with use transition) into a clip from the clip that ends where it starts on the same track, centred on the cut. For the built-in crossfade (cross dissolve), dip, wipe, push, slide and iris use set_video_transition instead. It needs half its length in media past the cut on both sides. Replaces any transition there. One undo step. Returns the clip's effects. Remove it with remove_effect (effect "transition") or set_video_transition null.`,
4761
4761
  inputSchema: {
4762
4762
  type: "object",
4763
4763
  properties: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pixerate/editor",
3
- "version": "0.140.1",
3
+ "version": "0.140.2",
4
4
  "description": "UI-agnostic rich text and media editing core library",
5
5
  "author": "Pixerate",
6
6
  "license": "MIT",
@@ -251,7 +251,7 @@ and every write tool is refused with the reason.
251
251
  | `update_effect` | Change an applied effect: `values` merged over its own (null resets a control), `enabled`, `opacity`, `index` (reorder). For `generator` and `transition` only `values`. Returns the effect now. |
252
252
  | `remove_effect` | Take an effect off a clip (`transition` removes an effect transition; an effect clip is deleted with `delete_video_clips`). Returns what was removed and what is left. |
253
253
  | `add_video_effect_clip` | Put a generator, title or overlay effect on a video `track` as a clip filling the frame (`start`, `duration` default the effect's own length, `values`, `mode`). Transparent effects show the tracks beneath. Returns the clip id. |
254
- | `set_video_effect_transition` | Use a provider transition effect into a `clip` from the one ending where it starts (`duration` centred on the cut, `values`). Needs handles like a crossfade. |
254
+ | `set_video_effect_transition` | Use a transition effect from the effects provider into a `clip` from the one ending where it starts (`duration` centred on the cut, `values`). Needs handles like a crossfade. For a cross dissolve, dip, wipe, push, slide or iris use the built-in `set_video_transition` instead. |
255
255
  | `set_video_effect_keyframes` | Animate one number `control` of a clip effect (or an effect clip's `generator`) with `keys` in clip ms, or `null` to stop animating it. |
256
256
 
257
257
  ## Pitfalls