@pixerate/editor-react 0.97.0 → 0.98.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/README.md +2 -2
- package/dist/animation-editor/index.cjs +2 -2
- package/dist/animation-editor/index.js +1 -1
- package/dist/canvas/index.cjs +2 -2
- package/dist/canvas/index.js +1 -1
- package/dist/chart/index.cjs +2 -2
- package/dist/chart/index.js +1 -1
- package/dist/{chunk-7I73DW4V.js → chunk-NEQI2ZIU.js} +1 -1
- package/dist/{chunk-GECXTPSH.js → chunk-S6C2W5JW.js} +1 -1
- package/dist/{chunk-IPVWWVSF.js → chunk-SI2V7XPZ.js} +2 -2
- package/dist/{chunk-NC4RLZTK.js → chunk-TFEKLNC7.js} +3082 -3030
- package/dist/image-editor/ImageEditor.d.cts +3 -1
- package/dist/image-editor/ImageEditor.d.ts +3 -1
- package/dist/image-editor/ImageEditorCanvas.d.cts +77 -0
- package/dist/image-editor/ImageEditorCanvas.d.ts +77 -0
- package/dist/image-editor/ImageEffectControls.d.cts +12 -0
- package/dist/image-editor/ImageEffectControls.d.ts +12 -0
- package/dist/image-editor/index.cjs +4712 -4665
- package/dist/image-editor/index.d.cts +2 -0
- package/dist/image-editor/index.d.ts +2 -0
- package/dist/image-editor/index.js +6 -2
- package/dist/index.cjs +5133 -5086
- package/dist/index.js +8 -4
- package/dist/paint-editor/index.cjs +2 -2
- package/dist/paint-editor/index.js +1 -1
- package/dist/parameters/index.cjs +2 -2
- package/dist/parameters/index.js +2 -2
- package/dist/playback/PresenceLayer.d.cts +3 -1
- package/dist/playback/PresenceLayer.d.ts +3 -1
- package/dist/spreadsheet/index.cjs +2 -2
- package/dist/spreadsheet/index.js +2 -2
- package/dist/vector/index.cjs +2 -2
- package/dist/vector/index.js +1 -1
- package/dist/video-editor/index.cjs +2 -2
- package/dist/video-editor/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useElementPlaybackSurface
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NEQI2ZIU.js";
|
|
4
4
|
import {
|
|
5
5
|
ChartCanvas,
|
|
6
6
|
ChartDataGrid,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
useSpreadsheetClipboard,
|
|
22
22
|
useSpreadsheetEditor,
|
|
23
23
|
useSpreadsheetViewport
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-S6C2W5JW.js";
|
|
25
25
|
import {
|
|
26
26
|
AdjustmentLayersPanel,
|
|
27
27
|
BrushOptionsBar,
|
|
@@ -31,6 +31,8 @@ import {
|
|
|
31
31
|
FreeTransformOptionsBar,
|
|
32
32
|
Histogram,
|
|
33
33
|
ImageEditor,
|
|
34
|
+
ImageEditorCanvas,
|
|
35
|
+
ImageEffectControls,
|
|
34
36
|
ImageProviderEffectsPanel,
|
|
35
37
|
LayerEffectsPanel,
|
|
36
38
|
LayersPanel,
|
|
@@ -42,7 +44,7 @@ import {
|
|
|
42
44
|
useImageEditor,
|
|
43
45
|
useImageEffectsTools,
|
|
44
46
|
useImageHistogram
|
|
45
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-TFEKLNC7.js";
|
|
46
48
|
import "./chunk-AJCWF6SN.js";
|
|
47
49
|
import "./chunk-Q7LAFHGP.js";
|
|
48
50
|
import "./chunk-5LFQ2UQZ.js";
|
|
@@ -53,7 +55,7 @@ import {
|
|
|
53
55
|
PresenceLayer,
|
|
54
56
|
useAgentPlayback,
|
|
55
57
|
usePlaybackSurface
|
|
56
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-SI2V7XPZ.js";
|
|
57
59
|
import {
|
|
58
60
|
CommandPalette,
|
|
59
61
|
useCommandPalette,
|
|
@@ -2417,6 +2419,8 @@ export {
|
|
|
2417
2419
|
Histogram,
|
|
2418
2420
|
HistoryManager2 as HistoryManager,
|
|
2419
2421
|
ImageEditor,
|
|
2422
|
+
ImageEditorCanvas,
|
|
2423
|
+
ImageEffectControls,
|
|
2420
2424
|
ImageProviderEffectsPanel,
|
|
2421
2425
|
InsertTableGrid,
|
|
2422
2426
|
JobProgress,
|
|
@@ -1386,7 +1386,7 @@ function usePlaybackSurface(playback, id, options = {}, sharedPresence) {
|
|
|
1386
1386
|
// src/playback/PresenceLayer.tsx
|
|
1387
1387
|
var import_react13 = __toESM(require("react"), 1);
|
|
1388
1388
|
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
1389
|
-
function PresenceLayer({ presence, viewport, className = "" }) {
|
|
1389
|
+
function PresenceLayer({ presence, viewport, clip = true, className = "" }) {
|
|
1390
1390
|
const { actors } = (0, import_react13.useSyncExternalStore)(presence.subscribe, presence.getState, presence.getState);
|
|
1391
1391
|
if (!actors.length) return null;
|
|
1392
1392
|
const map = typeof viewport === "function" ? viewport : viewport ? (p) => ({ x: p.x * viewport.zoom + viewport.x, y: p.y * viewport.zoom + viewport.y }) : (p) => p;
|
|
@@ -1396,7 +1396,7 @@ function PresenceLayer({ presence, viewport, className = "" }) {
|
|
|
1396
1396
|
className: `pixerate-presence ${className}`.trim(),
|
|
1397
1397
|
"aria-hidden": "true",
|
|
1398
1398
|
"data-testid": "presence-layer",
|
|
1399
|
-
style: { position: "absolute", inset: 0, pointerEvents: "none", overflow: "hidden", zIndex: 50 },
|
|
1399
|
+
style: { position: "absolute", inset: 0, pointerEvents: "none", overflow: clip ? "hidden" : "visible", zIndex: 50 },
|
|
1400
1400
|
children: actors.map((a) => {
|
|
1401
1401
|
const at = map(a);
|
|
1402
1402
|
const ring = a.focus && (() => {
|
|
@@ -1623,7 +1623,7 @@ function useElementPlaybackSurface(playback, id, element, options) {
|
|
|
1623
1623
|
// src/playback/PresenceLayer.tsx
|
|
1624
1624
|
var import_react9 = __toESM(require("react"), 1);
|
|
1625
1625
|
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
1626
|
-
function PresenceLayer({ presence, viewport, className = "" }) {
|
|
1626
|
+
function PresenceLayer({ presence, viewport, clip = true, className = "" }) {
|
|
1627
1627
|
const { actors } = (0, import_react9.useSyncExternalStore)(presence.subscribe, presence.getState, presence.getState);
|
|
1628
1628
|
if (!actors.length) return null;
|
|
1629
1629
|
const map = typeof viewport === "function" ? viewport : viewport ? (p) => ({ x: p.x * viewport.zoom + viewport.x, y: p.y * viewport.zoom + viewport.y }) : (p) => p;
|
|
@@ -1633,7 +1633,7 @@ function PresenceLayer({ presence, viewport, className = "" }) {
|
|
|
1633
1633
|
className: `pixerate-presence ${className}`.trim(),
|
|
1634
1634
|
"aria-hidden": "true",
|
|
1635
1635
|
"data-testid": "presence-layer",
|
|
1636
|
-
style: { position: "absolute", inset: 0, pointerEvents: "none", overflow: "hidden", zIndex: 50 },
|
|
1636
|
+
style: { position: "absolute", inset: 0, pointerEvents: "none", overflow: clip ? "hidden" : "visible", zIndex: 50 },
|
|
1637
1637
|
children: actors.map((a) => {
|
|
1638
1638
|
const at = map(a);
|
|
1639
1639
|
const ring = a.focus && (() => {
|
package/dist/parameters/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useElementPlaybackSurface
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-NEQI2ZIU.js";
|
|
4
4
|
import {
|
|
5
5
|
KeyframeDiamond,
|
|
6
6
|
ParameterColor,
|
|
@@ -21,7 +21,7 @@ import "../chunk-3I7FOSLF.js";
|
|
|
21
21
|
import {
|
|
22
22
|
PresenceLayer,
|
|
23
23
|
useAgentPlayback
|
|
24
|
-
} from "../chunk-
|
|
24
|
+
} from "../chunk-SI2V7XPZ.js";
|
|
25
25
|
|
|
26
26
|
// src/parameters/useParameters.ts
|
|
27
27
|
import { useEffect, useMemo, useRef, useSyncExternalStore } from "react";
|
|
@@ -18,6 +18,8 @@ export interface PresenceLayerProps {
|
|
|
18
18
|
x: number;
|
|
19
19
|
y: number;
|
|
20
20
|
});
|
|
21
|
+
/** Clip the cursors to the layer's box (default true). `false` lets a cursor visit chrome outside it. */
|
|
22
|
+
clip?: boolean;
|
|
21
23
|
className?: string;
|
|
22
24
|
}
|
|
23
25
|
/**
|
|
@@ -25,4 +27,4 @@ export interface PresenceLayerProps {
|
|
|
25
27
|
* in a `position: relative` box over the surface. It has the `pixerate-presence` class, so
|
|
26
28
|
* snapshots and exports leave it out.
|
|
27
29
|
*/
|
|
28
|
-
export declare function PresenceLayer({ presence, viewport, className }: PresenceLayerProps): React.JSX.Element | null;
|
|
30
|
+
export declare function PresenceLayer({ presence, viewport, clip, className }: PresenceLayerProps): React.JSX.Element | null;
|
|
@@ -18,6 +18,8 @@ export interface PresenceLayerProps {
|
|
|
18
18
|
x: number;
|
|
19
19
|
y: number;
|
|
20
20
|
});
|
|
21
|
+
/** Clip the cursors to the layer's box (default true). `false` lets a cursor visit chrome outside it. */
|
|
22
|
+
clip?: boolean;
|
|
21
23
|
className?: string;
|
|
22
24
|
}
|
|
23
25
|
/**
|
|
@@ -25,4 +27,4 @@ export interface PresenceLayerProps {
|
|
|
25
27
|
* in a `position: relative` box over the surface. It has the `pixerate-presence` class, so
|
|
26
28
|
* snapshots and exports leave it out.
|
|
27
29
|
*/
|
|
28
|
-
export declare function PresenceLayer({ presence, viewport, className }: PresenceLayerProps): React.JSX.Element | null;
|
|
30
|
+
export declare function PresenceLayer({ presence, viewport, clip, className }: PresenceLayerProps): React.JSX.Element | null;
|
|
@@ -334,7 +334,7 @@ function usePlaybackSurface(playback, id, options = {}, sharedPresence) {
|
|
|
334
334
|
// src/playback/PresenceLayer.tsx
|
|
335
335
|
var import_react4 = __toESM(require("react"), 1);
|
|
336
336
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
337
|
-
function PresenceLayer({ presence, viewport, className = "" }) {
|
|
337
|
+
function PresenceLayer({ presence, viewport, clip = true, className = "" }) {
|
|
338
338
|
const { actors } = (0, import_react4.useSyncExternalStore)(presence.subscribe, presence.getState, presence.getState);
|
|
339
339
|
if (!actors.length) return null;
|
|
340
340
|
const map = typeof viewport === "function" ? viewport : viewport ? (p) => ({ x: p.x * viewport.zoom + viewport.x, y: p.y * viewport.zoom + viewport.y }) : (p) => p;
|
|
@@ -344,7 +344,7 @@ function PresenceLayer({ presence, viewport, className = "" }) {
|
|
|
344
344
|
className: `pixerate-presence ${className}`.trim(),
|
|
345
345
|
"aria-hidden": "true",
|
|
346
346
|
"data-testid": "presence-layer",
|
|
347
|
-
style: { position: "absolute", inset: 0, pointerEvents: "none", overflow: "hidden", zIndex: 50 },
|
|
347
|
+
style: { position: "absolute", inset: 0, pointerEvents: "none", overflow: clip ? "hidden" : "visible", zIndex: 50 },
|
|
348
348
|
children: actors.map((a) => {
|
|
349
349
|
const at = map(a);
|
|
350
350
|
const ring = a.focus && (() => {
|
|
@@ -12,8 +12,8 @@ import {
|
|
|
12
12
|
useSpreadsheetClipboard,
|
|
13
13
|
useSpreadsheetEditor,
|
|
14
14
|
useSpreadsheetViewport
|
|
15
|
-
} from "../chunk-
|
|
16
|
-
import "../chunk-
|
|
15
|
+
} from "../chunk-S6C2W5JW.js";
|
|
16
|
+
import "../chunk-SI2V7XPZ.js";
|
|
17
17
|
export {
|
|
18
18
|
FormulaHints,
|
|
19
19
|
NameManager,
|
package/dist/vector/index.cjs
CHANGED
|
@@ -194,7 +194,7 @@ function usePlaybackSurface(playback, id, options = {}, sharedPresence) {
|
|
|
194
194
|
// src/playback/PresenceLayer.tsx
|
|
195
195
|
var import_react4 = __toESM(require("react"), 1);
|
|
196
196
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
197
|
-
function PresenceLayer({ presence, viewport, className = "" }) {
|
|
197
|
+
function PresenceLayer({ presence, viewport, clip = true, className = "" }) {
|
|
198
198
|
const { actors } = (0, import_react4.useSyncExternalStore)(presence.subscribe, presence.getState, presence.getState);
|
|
199
199
|
if (!actors.length) return null;
|
|
200
200
|
const map = typeof viewport === "function" ? viewport : viewport ? (p) => ({ x: p.x * viewport.zoom + viewport.x, y: p.y * viewport.zoom + viewport.y }) : (p) => p;
|
|
@@ -204,7 +204,7 @@ function PresenceLayer({ presence, viewport, className = "" }) {
|
|
|
204
204
|
className: `pixerate-presence ${className}`.trim(),
|
|
205
205
|
"aria-hidden": "true",
|
|
206
206
|
"data-testid": "presence-layer",
|
|
207
|
-
style: { position: "absolute", inset: 0, pointerEvents: "none", overflow: "hidden", zIndex: 50 },
|
|
207
|
+
style: { position: "absolute", inset: 0, pointerEvents: "none", overflow: clip ? "hidden" : "visible", zIndex: 50 },
|
|
208
208
|
children: actors.map((a) => {
|
|
209
209
|
const at = map(a);
|
|
210
210
|
const ring = a.focus && (() => {
|
package/dist/vector/index.js
CHANGED
|
@@ -301,7 +301,7 @@ function usePlaybackSurface(playback, id, options = {}, sharedPresence) {
|
|
|
301
301
|
// src/playback/PresenceLayer.tsx
|
|
302
302
|
var import_react6 = __toESM(require("react"), 1);
|
|
303
303
|
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
304
|
-
function PresenceLayer({ presence, viewport, className = "" }) {
|
|
304
|
+
function PresenceLayer({ presence, viewport, clip = true, className = "" }) {
|
|
305
305
|
const { actors } = (0, import_react6.useSyncExternalStore)(presence.subscribe, presence.getState, presence.getState);
|
|
306
306
|
if (!actors.length) return null;
|
|
307
307
|
const map = typeof viewport === "function" ? viewport : viewport ? (p) => ({ x: p.x * viewport.zoom + viewport.x, y: p.y * viewport.zoom + viewport.y }) : (p) => p;
|
|
@@ -311,7 +311,7 @@ function PresenceLayer({ presence, viewport, className = "" }) {
|
|
|
311
311
|
className: `pixerate-presence ${className}`.trim(),
|
|
312
312
|
"aria-hidden": "true",
|
|
313
313
|
"data-testid": "presence-layer",
|
|
314
|
-
style: { position: "absolute", inset: 0, pointerEvents: "none", overflow: "hidden", zIndex: 50 },
|
|
314
|
+
style: { position: "absolute", inset: 0, pointerEvents: "none", overflow: clip ? "hidden" : "visible", zIndex: 50 },
|
|
315
315
|
children: actors.map((a) => {
|
|
316
316
|
const at = map(a);
|
|
317
317
|
const ring = a.focus && (() => {
|