@pixerate/editor-react 0.92.0 → 0.94.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 (51) hide show
  1. package/dist/animation-editor/AnimationEditor.d.cts +14 -3
  2. package/dist/animation-editor/AnimationEditor.d.ts +14 -3
  3. package/dist/animation-editor/AnimationRecordPanel.d.cts +17 -0
  4. package/dist/animation-editor/AnimationRecordPanel.d.ts +17 -0
  5. package/dist/animation-editor/AnimationStage.d.cts +8 -2
  6. package/dist/animation-editor/AnimationStage.d.ts +8 -2
  7. package/dist/animation-editor/index.cjs +607 -405
  8. package/dist/animation-editor/index.d.cts +1 -0
  9. package/dist/animation-editor/index.d.ts +1 -0
  10. package/dist/animation-editor/index.js +359 -242
  11. package/dist/canvas/index.cjs +3 -2
  12. package/dist/canvas/index.js +4 -4
  13. package/dist/chart/ChartEditor.d.cts +12 -1
  14. package/dist/chart/ChartEditor.d.ts +12 -1
  15. package/dist/chart/index.cjs +187 -29
  16. package/dist/chart/index.js +74 -10
  17. package/dist/{chunk-6MDTFAPY.js → chunk-6YRSQW2V.js} +5 -5
  18. package/dist/chunk-7I73DW4V.js +43 -0
  19. package/dist/{chunk-GML6BYCN.js → chunk-GECXTPSH.js} +53 -3
  20. package/dist/{chunk-ECBC4HD7.js → chunk-IPVWWVSF.js} +3 -2
  21. package/dist/image-editor/index.cjs +3 -2
  22. package/dist/image-editor/index.js +2 -2
  23. package/dist/index.cjs +609 -527
  24. package/dist/index.js +10 -6
  25. package/dist/paint-editor/PaintEditor.d.cts +12 -1
  26. package/dist/paint-editor/PaintEditor.d.ts +12 -1
  27. package/dist/paint-editor/index.cjs +319 -164
  28. package/dist/paint-editor/index.js +84 -11
  29. package/dist/parameters/ParametersPanel.d.cts +11 -1
  30. package/dist/parameters/ParametersPanel.d.ts +11 -1
  31. package/dist/parameters/index.cjs +190 -41
  32. package/dist/parameters/index.js +23 -4
  33. package/dist/playback/index.d.cts +1 -0
  34. package/dist/playback/index.d.ts +1 -0
  35. package/dist/playback/useElementPlaybackSurface.d.cts +19 -0
  36. package/dist/playback/useElementPlaybackSurface.d.ts +19 -0
  37. package/dist/playback/usePlaybackSurface.d.cts +3 -1
  38. package/dist/playback/usePlaybackSurface.d.ts +3 -1
  39. package/dist/spreadsheet/SpreadsheetEditor.d.cts +10 -0
  40. package/dist/spreadsheet/SpreadsheetEditor.d.ts +10 -0
  41. package/dist/spreadsheet/index.cjs +443 -313
  42. package/dist/spreadsheet/index.js +2 -1
  43. package/dist/vector/index.cjs +3 -2
  44. package/dist/vector/index.js +5 -5
  45. package/dist/video-editor/VideoEditor.d.cts +6 -1
  46. package/dist/video-editor/VideoEditor.d.ts +6 -1
  47. package/dist/video-editor/VideoTimeline.d.cts +11 -1
  48. package/dist/video-editor/VideoTimeline.d.ts +11 -1
  49. package/dist/video-editor/index.cjs +463 -332
  50. package/dist/video-editor/index.js +53 -5
  51. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -1,3 +1,6 @@
1
+ import {
2
+ useElementPlaybackSurface
3
+ } from "./chunk-7I73DW4V.js";
1
4
  import {
2
5
  ChartCanvas,
3
6
  ChartDataGrid,
@@ -18,7 +21,7 @@ import {
18
21
  useSpreadsheetClipboard,
19
22
  useSpreadsheetEditor,
20
23
  useSpreadsheetViewport
21
- } from "./chunk-GML6BYCN.js";
24
+ } from "./chunk-GECXTPSH.js";
22
25
  import {
23
26
  AdjustmentLayersPanel,
24
27
  BrushOptionsBar,
@@ -39,16 +42,16 @@ import {
39
42
  useImageEditor,
40
43
  useImageEffectsTools,
41
44
  useImageHistogram
42
- } from "./chunk-6MDTFAPY.js";
45
+ } from "./chunk-6YRSQW2V.js";
46
+ import "./chunk-AJCWF6SN.js";
47
+ import "./chunk-5R67YSSD.js";
48
+ import "./chunk-OTGJEYHV.js";
43
49
  import {
44
50
  AgentPlaybackProvider,
45
51
  PresenceLayer,
46
52
  useAgentPlayback,
47
53
  usePlaybackSurface
48
- } from "./chunk-ECBC4HD7.js";
49
- import "./chunk-AJCWF6SN.js";
50
- import "./chunk-5R67YSSD.js";
51
- import "./chunk-OTGJEYHV.js";
54
+ } from "./chunk-IPVWWVSF.js";
52
55
  import {
53
56
  CommandPalette,
54
57
  useCommandPalette,
@@ -2456,6 +2459,7 @@ export {
2456
2459
  useDocxExport,
2457
2460
  useEditor2 as useEditor,
2458
2461
  useEditorSlots,
2462
+ useElementPlaybackSurface,
2459
2463
  useFileImport,
2460
2464
  useFillHandle,
2461
2465
  useFindReplace,
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
- import type { PaintEditorController, PaintPresence } from '@pixerate/editor/paint-editor';
2
+ import { PaintPresence, type PaintEditorController } from '@pixerate/editor/paint-editor';
3
+ import type { AgentPlayback } from '@pixerate/editor/tools';
3
4
  export interface PaintEditorProps {
4
5
  controller: PaintEditorController;
5
6
  /** Base name of saved and exported files (default `painting`). */
@@ -9,6 +10,16 @@ export interface PaintEditorProps {
9
10
  /** Agent cursors to draw over the canvas (see `usePaintDirector`). */
10
11
  presence?: PaintPresence;
11
12
  className?: string;
13
+ /**
14
+ * Agent playback: act out the paint tools' calls here with the agent's cursor, opening the panel
15
+ * each write belongs to (default: the nearest `AgentPlaybackProvider`; `null` turns it off). With
16
+ * `presence` (a `PaintDirector`'s), the director's strokes share the cursor.
17
+ */
18
+ playback?: AgentPlayback | null;
19
+ /** The playback surface id (default `paint`, where the paint tool providers play). */
20
+ playbackId?: string;
21
+ /** Bring the editor on screen (switch to its tab) before the agent acts. */
22
+ onPlaybackReveal?: () => void | Promise<void>;
12
23
  }
13
24
  /**
14
25
  * The paint editor: toolbar, brush library on the left, the canvas, and colour (wheel,
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
- import type { PaintEditorController, PaintPresence } from '@pixerate/editor/paint-editor';
2
+ import { PaintPresence, type PaintEditorController } from '@pixerate/editor/paint-editor';
3
+ import type { AgentPlayback } from '@pixerate/editor/tools';
3
4
  export interface PaintEditorProps {
4
5
  controller: PaintEditorController;
5
6
  /** Base name of saved and exported files (default `painting`). */
@@ -9,6 +10,16 @@ export interface PaintEditorProps {
9
10
  /** Agent cursors to draw over the canvas (see `usePaintDirector`). */
10
11
  presence?: PaintPresence;
11
12
  className?: string;
13
+ /**
14
+ * Agent playback: act out the paint tools' calls here with the agent's cursor, opening the panel
15
+ * each write belongs to (default: the nearest `AgentPlaybackProvider`; `null` turns it off). With
16
+ * `presence` (a `PaintDirector`'s), the director's strokes share the cursor.
17
+ */
18
+ playback?: AgentPlayback | null;
19
+ /** The playback surface id (default `paint`, where the paint tool providers play). */
20
+ playbackId?: string;
21
+ /** Bring the editor on screen (switch to its tab) before the agent acts. */
22
+ onPlaybackReveal?: () => void | Promise<void>;
12
23
  }
13
24
  /**
14
25
  * The paint editor: toolbar, brush library on the left, the canvas, and colour (wheel,