@pixerate/editor-react 0.92.0 → 0.93.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.
Files changed (45) hide show
  1. package/dist/animation-editor/AnimationEditor.d.cts +11 -1
  2. package/dist/animation-editor/AnimationEditor.d.ts +11 -1
  3. package/dist/animation-editor/index.cjs +494 -366
  4. package/dist/animation-editor/index.js +48 -4
  5. package/dist/canvas/index.cjs +3 -2
  6. package/dist/canvas/index.js +4 -4
  7. package/dist/chart/ChartEditor.d.cts +12 -1
  8. package/dist/chart/ChartEditor.d.ts +12 -1
  9. package/dist/chart/index.cjs +187 -29
  10. package/dist/chart/index.js +74 -10
  11. package/dist/{chunk-6MDTFAPY.js → chunk-6YRSQW2V.js} +5 -5
  12. package/dist/chunk-7I73DW4V.js +43 -0
  13. package/dist/{chunk-GML6BYCN.js → chunk-GECXTPSH.js} +53 -3
  14. package/dist/{chunk-ECBC4HD7.js → chunk-IPVWWVSF.js} +3 -2
  15. package/dist/image-editor/index.cjs +3 -2
  16. package/dist/image-editor/index.js +2 -2
  17. package/dist/index.cjs +609 -527
  18. package/dist/index.js +10 -6
  19. package/dist/paint-editor/PaintEditor.d.cts +12 -1
  20. package/dist/paint-editor/PaintEditor.d.ts +12 -1
  21. package/dist/paint-editor/index.cjs +319 -164
  22. package/dist/paint-editor/index.js +84 -11
  23. package/dist/parameters/ParametersPanel.d.cts +11 -1
  24. package/dist/parameters/ParametersPanel.d.ts +11 -1
  25. package/dist/parameters/index.cjs +190 -41
  26. package/dist/parameters/index.js +23 -4
  27. package/dist/playback/index.d.cts +1 -0
  28. package/dist/playback/index.d.ts +1 -0
  29. package/dist/playback/useElementPlaybackSurface.d.cts +19 -0
  30. package/dist/playback/useElementPlaybackSurface.d.ts +19 -0
  31. package/dist/playback/usePlaybackSurface.d.cts +3 -1
  32. package/dist/playback/usePlaybackSurface.d.ts +3 -1
  33. package/dist/spreadsheet/SpreadsheetEditor.d.cts +10 -0
  34. package/dist/spreadsheet/SpreadsheetEditor.d.ts +10 -0
  35. package/dist/spreadsheet/index.cjs +443 -313
  36. package/dist/spreadsheet/index.js +2 -1
  37. package/dist/vector/index.cjs +3 -2
  38. package/dist/vector/index.js +5 -5
  39. package/dist/video-editor/VideoEditor.d.cts +6 -1
  40. package/dist/video-editor/VideoEditor.d.ts +6 -1
  41. package/dist/video-editor/VideoTimeline.d.cts +11 -1
  42. package/dist/video-editor/VideoTimeline.d.ts +11 -1
  43. package/dist/video-editor/index.cjs +463 -332
  44. package/dist/video-editor/index.js +53 -5
  45. package/package.json +3 -3
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import type { AgentPlayback } from '@pixerate/editor/tools';
2
3
  import { type AnimationEditorController, type MotionFrameOptions, type MotionOnionSkin } from '@pixerate/editor/animation-editor';
3
4
  import type { EffectProvider } from '@pixerate/editor/effects';
4
5
  export interface AnimationEditorProps {
@@ -23,6 +24,15 @@ export interface AnimationEditorProps {
23
24
  */
24
25
  effects?: EffectProvider | null;
25
26
  className?: string;
27
+ /**
28
+ * Agent playback: act out the animation tools' calls here with the agent's cursor (default: the
29
+ * nearest `AgentPlaybackProvider`; `null` turns it off).
30
+ */
31
+ playback?: AgentPlayback | null;
32
+ /** The playback surface id (default `animation`, where the animation tool providers play). */
33
+ playbackId?: string;
34
+ /** Bring the editor on screen (switch to its tab) before the agent acts. */
35
+ onPlaybackReveal?: () => void | Promise<void>;
26
36
  }
27
37
  /**
28
38
  * A whole animation editor for an `AnimationEditorController`: the stage (click an element to
@@ -30,4 +40,4 @@ export interface AnimationEditorProps {
30
40
  * playhead scrubber, and panels to edit commands, shots and scene settings by hand. Every edit
31
41
  * is one undo step.
32
42
  */
33
- export declare function AnimationEditor({ controller, values, onionSkin, motionPaths, showIssues, editable, effects, className }: AnimationEditorProps): React.JSX.Element;
43
+ export declare function AnimationEditor({ controller, values, onionSkin, motionPaths, showIssues, editable, effects, className, playback, playbackId, onPlaybackReveal }: AnimationEditorProps): React.JSX.Element;
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import type { AgentPlayback } from '@pixerate/editor/tools';
2
3
  import { type AnimationEditorController, type MotionFrameOptions, type MotionOnionSkin } from '@pixerate/editor/animation-editor';
3
4
  import type { EffectProvider } from '@pixerate/editor/effects';
4
5
  export interface AnimationEditorProps {
@@ -23,6 +24,15 @@ export interface AnimationEditorProps {
23
24
  */
24
25
  effects?: EffectProvider | null;
25
26
  className?: string;
27
+ /**
28
+ * Agent playback: act out the animation tools' calls here with the agent's cursor (default: the
29
+ * nearest `AgentPlaybackProvider`; `null` turns it off).
30
+ */
31
+ playback?: AgentPlayback | null;
32
+ /** The playback surface id (default `animation`, where the animation tool providers play). */
33
+ playbackId?: string;
34
+ /** Bring the editor on screen (switch to its tab) before the agent acts. */
35
+ onPlaybackReveal?: () => void | Promise<void>;
26
36
  }
27
37
  /**
28
38
  * A whole animation editor for an `AnimationEditorController`: the stage (click an element to
@@ -30,4 +40,4 @@ export interface AnimationEditorProps {
30
40
  * playhead scrubber, and panels to edit commands, shots and scene settings by hand. Every edit
31
41
  * is one undo step.
32
42
  */
33
- export declare function AnimationEditor({ controller, values, onionSkin, motionPaths, showIssues, editable, effects, className }: AnimationEditorProps): React.JSX.Element;
43
+ export declare function AnimationEditor({ controller, values, onionSkin, motionPaths, showIssues, editable, effects, className, playback, playbackId, onPlaybackReveal }: AnimationEditorProps): React.JSX.Element;