@pixerate/editor-react 0.91.1 → 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.
- package/dist/animation-editor/AnimationEditor.d.cts +11 -1
- package/dist/animation-editor/AnimationEditor.d.ts +11 -1
- package/dist/animation-editor/index.cjs +494 -366
- package/dist/animation-editor/index.js +48 -4
- package/dist/canvas/AgentPresenceLayer.d.cts +3 -0
- package/dist/canvas/AgentPresenceLayer.d.ts +3 -0
- package/dist/canvas/index.cjs +1033 -893
- package/dist/canvas/index.d.cts +2 -0
- package/dist/canvas/index.d.ts +2 -0
- package/dist/canvas/index.js +125 -74
- package/dist/canvas/useCanvasPlaybackSurface.d.cts +28 -0
- package/dist/canvas/useCanvasPlaybackSurface.d.ts +28 -0
- package/dist/chart/ChartEditor.d.cts +12 -1
- package/dist/chart/ChartEditor.d.ts +12 -1
- package/dist/chart/index.cjs +187 -29
- package/dist/chart/index.js +74 -10
- package/dist/{chunk-SMMO7CZB.js → chunk-6YRSQW2V.js} +84 -2
- package/dist/chunk-7I73DW4V.js +43 -0
- package/dist/{chunk-GML6BYCN.js → chunk-GECXTPSH.js} +53 -3
- package/dist/chunk-IPVWWVSF.js +96 -0
- package/dist/hooks/useAgentToolProvider.d.cts +6 -2
- package/dist/hooks/useAgentToolProvider.d.ts +6 -2
- package/dist/image-editor/ImageEditor.d.cts +10 -0
- package/dist/image-editor/ImageEditor.d.ts +10 -0
- package/dist/image-editor/index.cjs +1028 -864
- package/dist/image-editor/index.js +2 -1
- package/dist/index.cjs +2070 -1812
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +21 -3
- package/dist/paint-editor/PaintEditor.d.cts +12 -1
- package/dist/paint-editor/PaintEditor.d.ts +12 -1
- package/dist/paint-editor/index.cjs +319 -164
- package/dist/paint-editor/index.js +84 -11
- package/dist/parameters/ParametersPanel.d.cts +11 -1
- package/dist/parameters/ParametersPanel.d.ts +11 -1
- package/dist/parameters/index.cjs +190 -41
- package/dist/parameters/index.js +23 -4
- package/dist/playback/AgentPlaybackContext.d.cts +9 -0
- package/dist/playback/AgentPlaybackContext.d.ts +9 -0
- package/dist/playback/PresenceLayer.d.cts +28 -0
- package/dist/playback/PresenceLayer.d.ts +28 -0
- package/dist/playback/index.d.cts +4 -0
- package/dist/playback/index.d.ts +4 -0
- package/dist/playback/useElementPlaybackSurface.d.cts +19 -0
- package/dist/playback/useElementPlaybackSurface.d.ts +19 -0
- package/dist/playback/usePlaybackSurface.d.cts +11 -0
- package/dist/playback/usePlaybackSurface.d.ts +11 -0
- package/dist/spreadsheet/SpreadsheetEditor.d.cts +10 -0
- package/dist/spreadsheet/SpreadsheetEditor.d.ts +10 -0
- package/dist/spreadsheet/index.cjs +443 -313
- package/dist/spreadsheet/index.js +2 -1
- package/dist/vector/VectorCanvas.d.cts +11 -1
- package/dist/vector/VectorCanvas.d.ts +11 -1
- package/dist/vector/index.cjs +946 -826
- package/dist/vector/index.js +42 -3
- package/dist/video-editor/VideoEditor.d.cts +6 -1
- package/dist/video-editor/VideoEditor.d.ts +6 -1
- package/dist/video-editor/VideoTimeline.d.cts +11 -1
- package/dist/video-editor/VideoTimeline.d.ts +11 -1
- package/dist/video-editor/index.cjs +463 -332
- package/dist/video-editor/index.js +53 -5
- package/package.json +3 -3
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type VectorEditorController, type VectorRenderNode, type VectorRenderMask, type VectorRenderFilter, type VectorPaintDef, type VectorRenderGradientAnnotator, type VectorRenderText } from '@pixerate/editor/vector';
|
|
3
|
+
import type { AgentPlayback } from '@pixerate/editor/tools';
|
|
3
4
|
export interface VectorCanvasProps {
|
|
4
5
|
controller: VectorEditorController;
|
|
5
6
|
/** Fit the artboard into the canvas when it first gets a size (default `true`). */
|
|
@@ -14,6 +15,15 @@ export interface VectorCanvasProps {
|
|
|
14
15
|
style?: React.CSSProperties;
|
|
15
16
|
/** Accessible label (default "Vector canvas"). */
|
|
16
17
|
'aria-label'?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Agent playback: act out the vector commands' calls here with the agent's cursor (default: the
|
|
20
|
+
* nearest `AgentPlaybackProvider`; `null` turns it off).
|
|
21
|
+
*/
|
|
22
|
+
playback?: AgentPlayback | null;
|
|
23
|
+
/** The playback surface id (default `vector`, where the vector commands play). */
|
|
24
|
+
playbackId?: string;
|
|
25
|
+
/** Bring the canvas on screen (switch to its tab) before the agent acts. */
|
|
26
|
+
onPlaybackReveal?: () => void | Promise<void>;
|
|
17
27
|
}
|
|
18
28
|
/**
|
|
19
29
|
* Renders paint servers: `<linearGradient>` / `<radialGradient>` descriptors and patterns of
|
|
@@ -55,4 +65,4 @@ export declare function VectorMaskedNodes({ mask, nodes }: {
|
|
|
55
65
|
* An SVG canvas for a `VectorEditorController`: draws the document and the editing overlay
|
|
56
66
|
* and forwards pointer, wheel, keyboard and clipboard events. Focus it to use shortcuts.
|
|
57
67
|
*/
|
|
58
|
-
export declare function VectorCanvas({ controller, fitOnMount, checkerboard, accentColor, guideColor, className, style, 'aria-label': ariaLabel, }: VectorCanvasProps): React.JSX.Element;
|
|
68
|
+
export declare function VectorCanvas({ controller, fitOnMount, checkerboard, accentColor, guideColor, className, style, 'aria-label': ariaLabel, playback, playbackId, onPlaybackReveal, }: VectorCanvasProps): React.JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type VectorEditorController, type VectorRenderNode, type VectorRenderMask, type VectorRenderFilter, type VectorPaintDef, type VectorRenderGradientAnnotator, type VectorRenderText } from '@pixerate/editor/vector';
|
|
3
|
+
import type { AgentPlayback } from '@pixerate/editor/tools';
|
|
3
4
|
export interface VectorCanvasProps {
|
|
4
5
|
controller: VectorEditorController;
|
|
5
6
|
/** Fit the artboard into the canvas when it first gets a size (default `true`). */
|
|
@@ -14,6 +15,15 @@ export interface VectorCanvasProps {
|
|
|
14
15
|
style?: React.CSSProperties;
|
|
15
16
|
/** Accessible label (default "Vector canvas"). */
|
|
16
17
|
'aria-label'?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Agent playback: act out the vector commands' calls here with the agent's cursor (default: the
|
|
20
|
+
* nearest `AgentPlaybackProvider`; `null` turns it off).
|
|
21
|
+
*/
|
|
22
|
+
playback?: AgentPlayback | null;
|
|
23
|
+
/** The playback surface id (default `vector`, where the vector commands play). */
|
|
24
|
+
playbackId?: string;
|
|
25
|
+
/** Bring the canvas on screen (switch to its tab) before the agent acts. */
|
|
26
|
+
onPlaybackReveal?: () => void | Promise<void>;
|
|
17
27
|
}
|
|
18
28
|
/**
|
|
19
29
|
* Renders paint servers: `<linearGradient>` / `<radialGradient>` descriptors and patterns of
|
|
@@ -55,4 +65,4 @@ export declare function VectorMaskedNodes({ mask, nodes }: {
|
|
|
55
65
|
* An SVG canvas for a `VectorEditorController`: draws the document and the editing overlay
|
|
56
66
|
* and forwards pointer, wheel, keyboard and clipboard events. Focus it to use shortcuts.
|
|
57
67
|
*/
|
|
58
|
-
export declare function VectorCanvas({ controller, fitOnMount, checkerboard, accentColor, guideColor, className, style, 'aria-label': ariaLabel, }: VectorCanvasProps): React.JSX.Element;
|
|
68
|
+
export declare function VectorCanvas({ controller, fitOnMount, checkerboard, accentColor, guideColor, className, style, 'aria-label': ariaLabel, playback, playbackId, onPlaybackReveal, }: VectorCanvasProps): React.JSX.Element;
|