@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
package/dist/index.d.cts
CHANGED
|
@@ -9,6 +9,7 @@ export * from "./hooks/useFileImport.cjs";
|
|
|
9
9
|
export * from "./hooks/useDocxExport.cjs";
|
|
10
10
|
export * from "./components/ExportDocxButton.cjs";
|
|
11
11
|
export * from "./hooks/useAgentToolProvider.cjs";
|
|
12
|
+
export * from "./playback/index.cjs";
|
|
12
13
|
export * from "./hooks/useToolBridge.cjs";
|
|
13
14
|
export * from "./hooks/useToolRegistryView.cjs";
|
|
14
15
|
export * from "./components/EditorContent.cjs";
|
package/dist/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export * from "./hooks/useFileImport.js";
|
|
|
9
9
|
export * from "./hooks/useDocxExport.js";
|
|
10
10
|
export * from "./components/ExportDocxButton.js";
|
|
11
11
|
export * from "./hooks/useAgentToolProvider.js";
|
|
12
|
+
export * from "./playback/index.js";
|
|
12
13
|
export * from "./hooks/useToolBridge.js";
|
|
13
14
|
export * from "./hooks/useToolRegistryView.js";
|
|
14
15
|
export * from "./components/EditorContent.js";
|
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-
|
|
24
|
+
} from "./chunk-GECXTPSH.js";
|
|
22
25
|
import {
|
|
23
26
|
AdjustmentLayersPanel,
|
|
24
27
|
BrushOptionsBar,
|
|
@@ -39,10 +42,16 @@ import {
|
|
|
39
42
|
useImageEditor,
|
|
40
43
|
useImageEffectsTools,
|
|
41
44
|
useImageHistogram
|
|
42
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-6YRSQW2V.js";
|
|
43
46
|
import "./chunk-AJCWF6SN.js";
|
|
44
47
|
import "./chunk-5R67YSSD.js";
|
|
45
48
|
import "./chunk-OTGJEYHV.js";
|
|
49
|
+
import {
|
|
50
|
+
AgentPlaybackProvider,
|
|
51
|
+
PresenceLayer,
|
|
52
|
+
useAgentPlayback,
|
|
53
|
+
usePlaybackSurface
|
|
54
|
+
} from "./chunk-IPVWWVSF.js";
|
|
46
55
|
import {
|
|
47
56
|
CommandPalette,
|
|
48
57
|
useCommandPalette,
|
|
@@ -688,7 +697,11 @@ var ExportDocxButton = ({
|
|
|
688
697
|
|
|
689
698
|
// src/hooks/useAgentToolProvider.ts
|
|
690
699
|
import { useEffect as useEffect7 } from "react";
|
|
691
|
-
function useAgentToolProvider(registry, provider) {
|
|
700
|
+
function useAgentToolProvider(registry, provider, options = {}) {
|
|
701
|
+
const { playback } = options;
|
|
702
|
+
useEffect7(() => {
|
|
703
|
+
if (registry && playback) playback.install(registry);
|
|
704
|
+
}, [registry, playback]);
|
|
692
705
|
useEffect7(() => {
|
|
693
706
|
if (!registry || !provider) return;
|
|
694
707
|
return registry.register(provider);
|
|
@@ -2378,6 +2391,7 @@ function createReactChartNodeView(options = {}) {
|
|
|
2378
2391
|
}
|
|
2379
2392
|
export {
|
|
2380
2393
|
AdjustmentLayersPanel,
|
|
2394
|
+
AgentPlaybackProvider,
|
|
2381
2395
|
AssetMentionChips,
|
|
2382
2396
|
BrushOptionsBar,
|
|
2383
2397
|
BubbleMenu,
|
|
@@ -2409,6 +2423,7 @@ export {
|
|
|
2409
2423
|
NameManager,
|
|
2410
2424
|
OutlinePanel,
|
|
2411
2425
|
PaintGradientEditor,
|
|
2426
|
+
PresenceLayer,
|
|
2412
2427
|
RecoveryPrompt,
|
|
2413
2428
|
RefineEdgePanel,
|
|
2414
2429
|
ReviewToolbar,
|
|
@@ -2433,6 +2448,7 @@ export {
|
|
|
2433
2448
|
createHistoryManager2 as createHistoryManager,
|
|
2434
2449
|
createReactChartNodeView,
|
|
2435
2450
|
defaultIsEqual,
|
|
2451
|
+
useAgentPlayback,
|
|
2436
2452
|
useAgentToolProvider,
|
|
2437
2453
|
useAutosave,
|
|
2438
2454
|
useCommandPalette,
|
|
@@ -2443,6 +2459,7 @@ export {
|
|
|
2443
2459
|
useDocxExport,
|
|
2444
2460
|
useEditor2 as useEditor,
|
|
2445
2461
|
useEditorSlots,
|
|
2462
|
+
useElementPlaybackSurface,
|
|
2446
2463
|
useFileImport,
|
|
2447
2464
|
useFillHandle,
|
|
2448
2465
|
useFindReplace,
|
|
@@ -2459,6 +2476,7 @@ export {
|
|
|
2459
2476
|
useNavigationGuard,
|
|
2460
2477
|
useOutline,
|
|
2461
2478
|
useParagraphStyles,
|
|
2479
|
+
usePlaybackSurface,
|
|
2462
2480
|
usePromptEditor,
|
|
2463
2481
|
useRegisterCommands,
|
|
2464
2482
|
useSpreadsheetClipboard,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
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
|
|
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,
|