@pixerate/editor 0.232.0 → 0.233.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.
Files changed (47) hide show
  1. package/dist/animation-editor/compile.d.cts +3 -0
  2. package/dist/animation-editor/compile.d.ts +3 -0
  3. package/dist/animation-editor/controller.d.cts +67 -2
  4. package/dist/animation-editor/controller.d.ts +67 -2
  5. package/dist/animation-editor/edit.d.cts +1 -1
  6. package/dist/animation-editor/edit.d.ts +1 -1
  7. package/dist/animation-editor/evaluate.d.cts +8 -1
  8. package/dist/animation-editor/evaluate.d.ts +8 -1
  9. package/dist/animation-editor/index.cjs +1202 -371
  10. package/dist/animation-editor/index.d.cts +3 -0
  11. package/dist/animation-editor/index.d.ts +3 -0
  12. package/dist/animation-editor/index.js +1032 -201
  13. package/dist/animation-editor/issues.d.cts +28 -0
  14. package/dist/animation-editor/issues.d.ts +28 -0
  15. package/dist/animation-editor/layer-edit.d.cts +55 -0
  16. package/dist/animation-editor/layer-edit.d.ts +55 -0
  17. package/dist/animation-editor/layer-tools.d.cts +11 -0
  18. package/dist/animation-editor/layer-tools.d.ts +11 -0
  19. package/dist/animation-editor/layers.d.cts +166 -0
  20. package/dist/animation-editor/layers.d.ts +166 -0
  21. package/dist/animation-editor/parse.d.cts +2 -0
  22. package/dist/animation-editor/parse.d.ts +2 -0
  23. package/dist/animation-editor/types.d.cts +44 -1
  24. package/dist/animation-editor/types.d.ts +44 -1
  25. package/dist/canvas/index.cjs +10 -10
  26. package/dist/canvas/index.js +4 -4
  27. package/dist/chunk-6RZVFYGJ.cjs +255 -0
  28. package/dist/{chunk-RG4O6K2A.cjs → chunk-A7PQNIBX.cjs} +14 -14
  29. package/dist/{chunk-ERJA5CGT.cjs → chunk-DGWOGQJ5.cjs} +8 -1
  30. package/dist/{chunk-TYCJGFCF.js → chunk-EUKY4KFX.js} +8 -1
  31. package/dist/chunk-I277KJLQ.js +255 -0
  32. package/dist/{chunk-2K5TELHV.cjs → chunk-JAOSL334.cjs} +10 -10
  33. package/dist/{chunk-MUSZYMBX.js → chunk-TEFQISBY.js} +1 -1
  34. package/dist/{chunk-6QLTUGMO.js → chunk-WDDUPWVG.js} +1 -1
  35. package/dist/{chunk-A653N65Q.cjs → chunk-ZQIWBJGH.cjs} +7 -7
  36. package/dist/effects/index.cjs +114 -322
  37. package/dist/effects/index.js +23 -231
  38. package/dist/image-editor/index.cjs +16 -16
  39. package/dist/image-editor/index.js +4 -4
  40. package/dist/paint-editor/index.cjs +10 -10
  41. package/dist/paint-editor/index.js +5 -5
  42. package/dist/vector/index.cjs +6 -6
  43. package/dist/vector/index.js +1 -1
  44. package/dist/video-editor/index.cjs +339 -339
  45. package/dist/video-editor/index.js +5 -5
  46. package/package.json +1 -1
  47. package/dist/{chunk-PQYDJ2AV.js → chunk-SIK3LT6M.js} +16 -16
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createEffectAuthoringSession
3
- } from "../chunk-MUSZYMBX.js";
3
+ } from "../chunk-TEFQISBY.js";
4
4
  import {
5
5
  VIDEO_ADJUSTMENT_SCOPES,
6
6
  VIDEO_BLEND_MODES,
@@ -149,11 +149,11 @@ import {
149
149
  videoTransitionEase,
150
150
  videoValueAt,
151
151
  videoWipeRect
152
- } from "../chunk-6QLTUGMO.js";
153
- import "../chunk-EHLOCVWB.js";
152
+ } from "../chunk-WDDUPWVG.js";
154
153
  import {
155
154
  namedWithSuggestion
156
- } from "../chunk-TYCJGFCF.js";
155
+ } from "../chunk-EUKY4KFX.js";
156
+ import "../chunk-EHLOCVWB.js";
157
157
  import {
158
158
  CAMERA_MOVE_MAX_MS,
159
159
  EffectsSlot,
@@ -163,7 +163,7 @@ import {
163
163
  isEffectError,
164
164
  resolveCameraMoveSpec,
165
165
  sampleEffectCameraMove
166
- } from "../chunk-PQYDJ2AV.js";
166
+ } from "../chunk-SIK3LT6M.js";
167
167
  import "../chunk-V2ZCJRDM.js";
168
168
  import {
169
169
  defineEditorDocument
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pixerate/editor",
3
- "version": "0.232.0",
3
+ "version": "0.233.0",
4
4
  "description": "UI-agnostic rich text and media editing core library",
5
5
  "author": "Pixerate",
6
6
  "license": "MIT",
@@ -2,6 +2,15 @@ import {
2
2
  validateJsonSchema
3
3
  } from "./chunk-V2ZCJRDM.js";
4
4
 
5
+ // src/effects/types.ts
6
+ var EFFECT_KINDS = ["shader", "vector", "motion", "camera"];
7
+ var EFFECT_USES = ["filter", "transition", "generator", "overlay", "title", "motion", "interactive", "camera"];
8
+ var CAMERA_MOVE_ROLES = ["transition", "hold"];
9
+ var EFFECT_SUBJECT_KINDS = ["image", "video", "svg", "text", "slot"];
10
+ var EFFECT_LAYER_ROLES = ["background", "subject", "overlay"];
11
+ var EFFECT_TRANSITION_MS = 800;
12
+ var EFFECT_TEMPLATE_SLOT_TYPES = ["image", "video", "svg", "text", "color", "number"];
13
+
5
14
  // src/effects/errors.ts
6
15
  var EFFECT_ERROR_CODES = ["unknown_effect", "invalid_values", "unsupported", "disposed", "no_provider", "unknown_template"];
7
16
  var EffectError = class extends Error {
@@ -281,15 +290,6 @@ function cameraBoxOfView(view, stage) {
281
290
  return { x: -view.scrollX, y: -view.scrollY, width, height };
282
291
  }
283
292
 
284
- // src/effects/types.ts
285
- var EFFECT_KINDS = ["shader", "vector", "motion", "camera"];
286
- var EFFECT_USES = ["filter", "transition", "generator", "overlay", "title", "motion", "interactive", "camera"];
287
- var CAMERA_MOVE_ROLES = ["transition", "hold"];
288
- var EFFECT_SUBJECT_KINDS = ["image", "video", "svg", "text", "slot"];
289
- var EFFECT_LAYER_ROLES = ["background", "subject", "overlay"];
290
- var EFFECT_TRANSITION_MS = 800;
291
- var EFFECT_TEMPLATE_SLOT_TYPES = ["image", "video", "svg", "text", "color", "number"];
292
-
293
293
  // src/effects/tools.ts
294
294
  var ANNOTATIONS = {
295
295
  read: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false },
@@ -528,6 +528,13 @@ function createEffectToolProvider(host) {
528
528
  }
529
529
 
530
530
  export {
531
+ EFFECT_KINDS,
532
+ EFFECT_USES,
533
+ CAMERA_MOVE_ROLES,
534
+ EFFECT_SUBJECT_KINDS,
535
+ EFFECT_LAYER_ROLES,
536
+ EFFECT_TRANSITION_MS,
537
+ EFFECT_TEMPLATE_SLOT_TYPES,
531
538
  EFFECT_ERROR_CODES,
532
539
  EffectError,
533
540
  UnknownEffectError,
@@ -562,12 +569,5 @@ export {
562
569
  resolveCameraMoveSpec,
563
570
  cameraViewOfBox,
564
571
  cameraBoxOfView,
565
- EFFECT_KINDS,
566
- EFFECT_USES,
567
- CAMERA_MOVE_ROLES,
568
- EFFECT_SUBJECT_KINDS,
569
- EFFECT_LAYER_ROLES,
570
- EFFECT_TRANSITION_MS,
571
- EFFECT_TEMPLATE_SLOT_TYPES,
572
572
  createEffectToolProvider
573
573
  };