@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.
- package/dist/animation-editor/AnimationEditor.d.cts +14 -3
- package/dist/animation-editor/AnimationEditor.d.ts +14 -3
- package/dist/animation-editor/AnimationRecordPanel.d.cts +17 -0
- package/dist/animation-editor/AnimationRecordPanel.d.ts +17 -0
- package/dist/animation-editor/AnimationStage.d.cts +8 -2
- package/dist/animation-editor/AnimationStage.d.ts +8 -2
- package/dist/animation-editor/index.cjs +607 -405
- package/dist/animation-editor/index.d.cts +1 -0
- package/dist/animation-editor/index.d.ts +1 -0
- package/dist/animation-editor/index.js +359 -242
- package/dist/canvas/index.cjs +3 -2
- package/dist/canvas/index.js +4 -4
- 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-6MDTFAPY.js → chunk-6YRSQW2V.js} +5 -5
- package/dist/chunk-7I73DW4V.js +43 -0
- package/dist/{chunk-GML6BYCN.js → chunk-GECXTPSH.js} +53 -3
- package/dist/{chunk-ECBC4HD7.js → chunk-IPVWWVSF.js} +3 -2
- package/dist/image-editor/index.cjs +3 -2
- package/dist/image-editor/index.js +2 -2
- package/dist/index.cjs +609 -527
- package/dist/index.js +10 -6
- 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/index.d.cts +1 -0
- package/dist/playback/index.d.ts +1 -0
- package/dist/playback/useElementPlaybackSurface.d.cts +19 -0
- package/dist/playback/useElementPlaybackSurface.d.ts +19 -0
- package/dist/playback/usePlaybackSurface.d.cts +3 -1
- package/dist/playback/usePlaybackSurface.d.ts +3 -1
- 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/index.cjs +3 -2
- package/dist/vector/index.js +5 -5
- 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
|
@@ -54,10 +54,11 @@ function useAgentPlayback() {
|
|
|
54
54
|
// src/playback/usePlaybackSurface.ts
|
|
55
55
|
import { useEffect, useRef, useState } from "react";
|
|
56
56
|
import { PresenceStore } from "@pixerate/editor/tools";
|
|
57
|
-
function usePlaybackSurface(playback, id, options = {}) {
|
|
57
|
+
function usePlaybackSurface(playback, id, options = {}, sharedPresence) {
|
|
58
58
|
const ambient = useAgentPlayback();
|
|
59
59
|
const target = playback === void 0 ? ambient : playback;
|
|
60
|
-
const [
|
|
60
|
+
const [ownPresence] = useState(() => new PresenceStore());
|
|
61
|
+
const presence = sharedPresence ?? ownPresence;
|
|
61
62
|
const latest = useRef(options);
|
|
62
63
|
latest.current = options;
|
|
63
64
|
useEffect(() => {
|
|
@@ -231,10 +231,11 @@ function useAgentPlayback() {
|
|
|
231
231
|
// src/playback/usePlaybackSurface.ts
|
|
232
232
|
var import_react3 = require("react");
|
|
233
233
|
var import_tools = require("@pixerate/editor/tools");
|
|
234
|
-
function usePlaybackSurface(playback, id, options = {}) {
|
|
234
|
+
function usePlaybackSurface(playback, id, options = {}, sharedPresence) {
|
|
235
235
|
const ambient = useAgentPlayback();
|
|
236
236
|
const target = playback === void 0 ? ambient : playback;
|
|
237
|
-
const [
|
|
237
|
+
const [ownPresence] = (0, import_react3.useState)(() => new import_tools.PresenceStore());
|
|
238
|
+
const presence = sharedPresence ?? ownPresence;
|
|
238
239
|
const latest = (0, import_react3.useRef)(options);
|
|
239
240
|
latest.current = options;
|
|
240
241
|
(0, import_react3.useEffect)(() => {
|
|
@@ -18,11 +18,11 @@ import {
|
|
|
18
18
|
useImageEditor,
|
|
19
19
|
useImageEffectsTools,
|
|
20
20
|
useImageHistogram
|
|
21
|
-
} from "../chunk-
|
|
22
|
-
import "../chunk-ECBC4HD7.js";
|
|
21
|
+
} from "../chunk-6YRSQW2V.js";
|
|
23
22
|
import "../chunk-AJCWF6SN.js";
|
|
24
23
|
import "../chunk-5R67YSSD.js";
|
|
25
24
|
import "../chunk-OTGJEYHV.js";
|
|
25
|
+
import "../chunk-IPVWWVSF.js";
|
|
26
26
|
export {
|
|
27
27
|
AdjustmentLayersPanel,
|
|
28
28
|
BrushOptionsBar,
|