@pixerate/editor-react 0.150.1 → 0.151.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/{chunk-KCA3KEPC.js → chunk-M75ZC7DI.js} +25 -2
- package/dist/image-editor/ImageProviderEffectsPanel.d.cts +4 -3
- package/dist/image-editor/ImageProviderEffectsPanel.d.ts +4 -3
- package/dist/image-editor/index.cjs +25 -2
- package/dist/image-editor/index.js +1 -1
- package/dist/index.cjs +25 -2
- package/dist/index.js +1 -1
- package/package.json +3 -3
|
@@ -2390,6 +2390,7 @@ function ImageProviderEffectsPanel({ controller, className = "", components }) {
|
|
|
2390
2390
|
const [, setTick] = useState10(0);
|
|
2391
2391
|
useEffect7(() => controller.subscribe(() => setTick((n) => n + 1)), [controller]);
|
|
2392
2392
|
const [browse, setBrowse] = useState10(null);
|
|
2393
|
+
const [clip, setClip] = useState10(false);
|
|
2393
2394
|
const [message, setMessage] = useState10(null);
|
|
2394
2395
|
const [open, setOpen] = useState10(null);
|
|
2395
2396
|
const [scrubbed, setScrubbed] = useState10(null);
|
|
@@ -2529,7 +2530,7 @@ function ImageProviderEffectsPanel({ controller, className = "", components }) {
|
|
|
2529
2530
|
/* @__PURE__ */ jsx13("span", { className: "flex-1 font-semibold uppercase tracking-wider text-[11px] text-foreground", children: "Filters" }),
|
|
2530
2531
|
/* @__PURE__ */ jsx13("button", { type: "button", className: imageOutlineButtonClass, "aria-pressed": browse === "filter", onClick: () => setBrowse(browse === "filter" ? null : "filter"), children: "Add filter\u2026" })
|
|
2531
2532
|
] }),
|
|
2532
|
-
browse === "filter" && layer && /* @__PURE__ */ jsx13(EffectsBrowser, { provider, uses: ["filter"], title: "Filters", onPick: (e) => (setBrowse(null), run(() => controller.applyEffectFilter(layer.id, e.id, { useSelection: true }))) }),
|
|
2533
|
+
browse === "filter" && layer && /* @__PURE__ */ jsx13(EffectsBrowser, { provider, uses: ["filter"], title: "Filters", onPick: (e) => (setBrowse(null), run(() => controller.applyEffectFilter(layer.id, e.id, { useSelection: true, preserveTransparency: true }))) }),
|
|
2533
2534
|
filters.length > 0 && layer && /* @__PURE__ */ jsx13("ol", { className: "space-y-1", "data-effect-part": "filters", "aria-label": "Filters", children: filters.map((f) => {
|
|
2534
2535
|
const label = f.kind === "effect" ? f.name ?? f.effect : f.kind;
|
|
2535
2536
|
const all = layer.smartFilters.filters;
|
|
@@ -2550,6 +2551,17 @@ function ImageProviderEffectsPanel({ controller, className = "", components }) {
|
|
|
2550
2551
|
/* @__PURE__ */ jsx13("button", { type: "button", className: imageOutlineButtonClass, disabled: index === 0, "aria-label": "Move down", onClick: () => run(() => controller.updateEffectFilter(layer.id, f.id, { index: index - 1 })), children: "\u2193" }),
|
|
2551
2552
|
/* @__PURE__ */ jsx13("button", { type: "button", className: imageOutlineButtonClass, "aria-label": `Remove ${label}`, onClick: () => run(() => controller.removeSmartFilter(layer.id, f.id)), children: "\u2715" })
|
|
2552
2553
|
] }),
|
|
2554
|
+
/* @__PURE__ */ jsxs12("label", { className: "mt-0.5 flex items-center gap-1 pl-0.5 text-[11px] text-muted-foreground", title: "Draw the filter only over the layer's own pixels; clear it to let the effect fill transparent areas", children: [
|
|
2555
|
+
/* @__PURE__ */ jsx13(
|
|
2556
|
+
ImageCheckbox,
|
|
2557
|
+
{
|
|
2558
|
+
checked: f.preserveTransparency === true,
|
|
2559
|
+
label: `${label}: keep transparency`,
|
|
2560
|
+
onChange: (preserveTransparency) => run(() => controller.updateEffectFilter(layer.id, f.id, { preserveTransparency }))
|
|
2561
|
+
}
|
|
2562
|
+
),
|
|
2563
|
+
"Keep transparency"
|
|
2564
|
+
] }),
|
|
2553
2565
|
open === f.id && /* @__PURE__ */ jsxs12("div", { className: "mt-1 space-y-2", children: [
|
|
2554
2566
|
/* @__PURE__ */ jsxs12("label", { className: "flex items-center gap-1", children: [
|
|
2555
2567
|
/* @__PURE__ */ jsx13("span", { className: "w-14 text-[11px] text-foreground", children: "Opacity" }),
|
|
@@ -2581,7 +2593,18 @@ function ImageProviderEffectsPanel({ controller, className = "", components }) {
|
|
|
2581
2593
|
] })
|
|
2582
2594
|
] }, f.id);
|
|
2583
2595
|
}) }),
|
|
2584
|
-
layer && canFilter && !generator && filters.length === 0 && /* @__PURE__ */ jsx13("p", { className: "text-[11px] text-muted-foreground", children: "No filters yet. A filter changes the layer's pixels and stays editable. Layer styles such as a drop shadow are in the layer's properties
|
|
2596
|
+
layer && canFilter && !generator && filters.length === 0 && /* @__PURE__ */ jsx13("p", { className: "text-[11px] text-muted-foreground", children: "No filters yet. A filter changes the layer's pixels and stays editable. Layer styles such as a drop shadow are in the layer's properties." }),
|
|
2597
|
+
provider && /* @__PURE__ */ jsxs12("div", { className: "space-y-1", "data-effect-part": "add-layer", children: [
|
|
2598
|
+
/* @__PURE__ */ jsxs12("div", { className: "flex items-center gap-1", children: [
|
|
2599
|
+
/* @__PURE__ */ jsx13("span", { className: "flex-1 font-semibold uppercase tracking-wider text-[11px] text-foreground", children: "Effect layers" }),
|
|
2600
|
+
/* @__PURE__ */ jsx13("button", { type: "button", className: imageOutlineButtonClass, "aria-pressed": browse === "layer", onClick: () => setBrowse(browse === "layer" ? null : "layer"), children: "Add effect layer\u2026" })
|
|
2601
|
+
] }),
|
|
2602
|
+
/* @__PURE__ */ jsxs12("label", { className: "flex items-center gap-1 text-[11px] text-muted-foreground", title: "Show the new effect layer only over the pixels of the layer below it (a clipping mask)", children: [
|
|
2603
|
+
/* @__PURE__ */ jsx13(ImageCheckbox, { checked: clip, label: "Clip to layer below", onChange: setClip }),
|
|
2604
|
+
"Clip to layer below"
|
|
2605
|
+
] }),
|
|
2606
|
+
browse === "layer" && /* @__PURE__ */ jsx13(EffectsBrowser, { provider, uses: EFFECT_LAYER_USES, title: "Add an effect layer", onPick: (e) => (setBrowse(null), run(() => controller.addEffectLayer(e.id, { clipped: clip }))) })
|
|
2607
|
+
] }),
|
|
2585
2608
|
!layer && /* @__PURE__ */ jsx13("p", { className: "text-[11px] text-muted-foreground", children: "Select a layer to apply effects to it." }),
|
|
2586
2609
|
message && /* @__PURE__ */ jsx13("p", { role: "alert", className: "text-[11px] text-destructive", children: message })
|
|
2587
2610
|
] });
|
|
@@ -11,8 +11,9 @@ export interface ImageProviderEffectsPanelProps {
|
|
|
11
11
|
* Provider effects for the active layer. An effect layer first: its effect (change it or
|
|
12
12
|
* rasterize it), a still frame or an animation for an effect that moves, and its controls. Then
|
|
13
13
|
* the provider filters applied to the layer (smart filters; applying one converts a pixel layer to
|
|
14
|
-
* a smart object in the same undo step)
|
|
15
|
-
*
|
|
16
|
-
*
|
|
14
|
+
* a smart object in the same undo step), each keeping the layer's transparency unless "Keep
|
|
15
|
+
* transparency" is cleared. Then adding an effect layer, above the active layer and optionally
|
|
16
|
+
* clipped to it. Layer styles (drop shadow, stroke…) are not here: they are part of the layer's
|
|
17
|
+
* properties (`LayerEffectsPanel`). Without a provider it says why nothing can be added.
|
|
17
18
|
*/
|
|
18
19
|
export declare function ImageProviderEffectsPanel({ controller, className, components }: ImageProviderEffectsPanelProps): React.JSX.Element;
|
|
@@ -11,8 +11,9 @@ export interface ImageProviderEffectsPanelProps {
|
|
|
11
11
|
* Provider effects for the active layer. An effect layer first: its effect (change it or
|
|
12
12
|
* rasterize it), a still frame or an animation for an effect that moves, and its controls. Then
|
|
13
13
|
* the provider filters applied to the layer (smart filters; applying one converts a pixel layer to
|
|
14
|
-
* a smart object in the same undo step)
|
|
15
|
-
*
|
|
16
|
-
*
|
|
14
|
+
* a smart object in the same undo step), each keeping the layer's transparency unless "Keep
|
|
15
|
+
* transparency" is cleared. Then adding an effect layer, above the active layer and optionally
|
|
16
|
+
* clipped to it. Layer styles (drop shadow, stroke…) are not here: they are part of the layer's
|
|
17
|
+
* properties (`LayerEffectsPanel`). Without a provider it says why nothing can be added.
|
|
17
18
|
*/
|
|
18
19
|
export declare function ImageProviderEffectsPanel({ controller, className, components }: ImageProviderEffectsPanelProps): React.JSX.Element;
|
|
@@ -4226,6 +4226,7 @@ function ImageProviderEffectsPanel({ controller, className = "", components }) {
|
|
|
4226
4226
|
const [, setTick] = (0, import_react23.useState)(0);
|
|
4227
4227
|
(0, import_react23.useEffect)(() => controller.subscribe(() => setTick((n) => n + 1)), [controller]);
|
|
4228
4228
|
const [browse, setBrowse] = (0, import_react23.useState)(null);
|
|
4229
|
+
const [clip, setClip] = (0, import_react23.useState)(false);
|
|
4229
4230
|
const [message, setMessage] = (0, import_react23.useState)(null);
|
|
4230
4231
|
const [open, setOpen] = (0, import_react23.useState)(null);
|
|
4231
4232
|
const [scrubbed, setScrubbed] = (0, import_react23.useState)(null);
|
|
@@ -4365,7 +4366,7 @@ function ImageProviderEffectsPanel({ controller, className = "", components }) {
|
|
|
4365
4366
|
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "flex-1 font-semibold uppercase tracking-wider text-[11px] text-foreground", children: "Filters" }),
|
|
4366
4367
|
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("button", { type: "button", className: imageOutlineButtonClass, "aria-pressed": browse === "filter", onClick: () => setBrowse(browse === "filter" ? null : "filter"), children: "Add filter\u2026" })
|
|
4367
4368
|
] }),
|
|
4368
|
-
browse === "filter" && layer && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(EffectsBrowser, { provider, uses: ["filter"], title: "Filters", onPick: (e) => (setBrowse(null), run(() => controller.applyEffectFilter(layer.id, e.id, { useSelection: true }))) }),
|
|
4369
|
+
browse === "filter" && layer && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(EffectsBrowser, { provider, uses: ["filter"], title: "Filters", onPick: (e) => (setBrowse(null), run(() => controller.applyEffectFilter(layer.id, e.id, { useSelection: true, preserveTransparency: true }))) }),
|
|
4369
4370
|
filters.length > 0 && layer && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("ol", { className: "space-y-1", "data-effect-part": "filters", "aria-label": "Filters", children: filters.map((f) => {
|
|
4370
4371
|
const label = f.kind === "effect" ? f.name ?? f.effect : f.kind;
|
|
4371
4372
|
const all = layer.smartFilters.filters;
|
|
@@ -4386,6 +4387,17 @@ function ImageProviderEffectsPanel({ controller, className = "", components }) {
|
|
|
4386
4387
|
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("button", { type: "button", className: imageOutlineButtonClass, disabled: index === 0, "aria-label": "Move down", onClick: () => run(() => controller.updateEffectFilter(layer.id, f.id, { index: index - 1 })), children: "\u2193" }),
|
|
4387
4388
|
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("button", { type: "button", className: imageOutlineButtonClass, "aria-label": `Remove ${label}`, onClick: () => run(() => controller.removeSmartFilter(layer.id, f.id)), children: "\u2715" })
|
|
4388
4389
|
] }),
|
|
4390
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("label", { className: "mt-0.5 flex items-center gap-1 pl-0.5 text-[11px] text-muted-foreground", title: "Draw the filter only over the layer's own pixels; clear it to let the effect fill transparent areas", children: [
|
|
4391
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4392
|
+
ImageCheckbox,
|
|
4393
|
+
{
|
|
4394
|
+
checked: f.preserveTransparency === true,
|
|
4395
|
+
label: `${label}: keep transparency`,
|
|
4396
|
+
onChange: (preserveTransparency) => run(() => controller.updateEffectFilter(layer.id, f.id, { preserveTransparency }))
|
|
4397
|
+
}
|
|
4398
|
+
),
|
|
4399
|
+
"Keep transparency"
|
|
4400
|
+
] }),
|
|
4389
4401
|
open === f.id && /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "mt-1 space-y-2", children: [
|
|
4390
4402
|
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("label", { className: "flex items-center gap-1", children: [
|
|
4391
4403
|
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "w-14 text-[11px] text-foreground", children: "Opacity" }),
|
|
@@ -4417,7 +4429,18 @@ function ImageProviderEffectsPanel({ controller, className = "", components }) {
|
|
|
4417
4429
|
] })
|
|
4418
4430
|
] }, f.id);
|
|
4419
4431
|
}) }),
|
|
4420
|
-
layer && canFilter && !generator && filters.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "text-[11px] text-muted-foreground", children: "No filters yet. A filter changes the layer's pixels and stays editable. Layer styles such as a drop shadow are in the layer's properties
|
|
4432
|
+
layer && canFilter && !generator && filters.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "text-[11px] text-muted-foreground", children: "No filters yet. A filter changes the layer's pixels and stays editable. Layer styles such as a drop shadow are in the layer's properties." }),
|
|
4433
|
+
provider && /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "space-y-1", "data-effect-part": "add-layer", children: [
|
|
4434
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex items-center gap-1", children: [
|
|
4435
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "flex-1 font-semibold uppercase tracking-wider text-[11px] text-foreground", children: "Effect layers" }),
|
|
4436
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("button", { type: "button", className: imageOutlineButtonClass, "aria-pressed": browse === "layer", onClick: () => setBrowse(browse === "layer" ? null : "layer"), children: "Add effect layer\u2026" })
|
|
4437
|
+
] }),
|
|
4438
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("label", { className: "flex items-center gap-1 text-[11px] text-muted-foreground", title: "Show the new effect layer only over the pixels of the layer below it (a clipping mask)", children: [
|
|
4439
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(ImageCheckbox, { checked: clip, label: "Clip to layer below", onChange: setClip }),
|
|
4440
|
+
"Clip to layer below"
|
|
4441
|
+
] }),
|
|
4442
|
+
browse === "layer" && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(EffectsBrowser, { provider, uses: import_image_editor9.EFFECT_LAYER_USES, title: "Add an effect layer", onPick: (e) => (setBrowse(null), run(() => controller.addEffectLayer(e.id, { clipped: clip }))) })
|
|
4443
|
+
] }),
|
|
4421
4444
|
!layer && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "text-[11px] text-muted-foreground", children: "Select a layer to apply effects to it." }),
|
|
4422
4445
|
message && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { role: "alert", className: "text-[11px] text-destructive", children: message })
|
|
4423
4446
|
] });
|
package/dist/index.cjs
CHANGED
|
@@ -7940,6 +7940,7 @@ function ImageProviderEffectsPanel({ controller, className = "", components }) {
|
|
|
7940
7940
|
const [, setTick] = (0, import_react59.useState)(0);
|
|
7941
7941
|
(0, import_react59.useEffect)(() => controller.subscribe(() => setTick((n) => n + 1)), [controller]);
|
|
7942
7942
|
const [browse, setBrowse] = (0, import_react59.useState)(null);
|
|
7943
|
+
const [clip, setClip] = (0, import_react59.useState)(false);
|
|
7943
7944
|
const [message2, setMessage] = (0, import_react59.useState)(null);
|
|
7944
7945
|
const [open, setOpen] = (0, import_react59.useState)(null);
|
|
7945
7946
|
const [scrubbed, setScrubbed] = (0, import_react59.useState)(null);
|
|
@@ -8079,7 +8080,7 @@ function ImageProviderEffectsPanel({ controller, className = "", components }) {
|
|
|
8079
8080
|
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "flex-1 font-semibold uppercase tracking-wider text-[11px] text-foreground", children: "Filters" }),
|
|
8080
8081
|
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("button", { type: "button", className: imageOutlineButtonClass, "aria-pressed": browse === "filter", onClick: () => setBrowse(browse === "filter" ? null : "filter"), children: "Add filter\u2026" })
|
|
8081
8082
|
] }),
|
|
8082
|
-
browse === "filter" && layer && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(EffectsBrowser, { provider, uses: ["filter"], title: "Filters", onPick: (e) => (setBrowse(null), run(() => controller.applyEffectFilter(layer.id, e.id, { useSelection: true }))) }),
|
|
8083
|
+
browse === "filter" && layer && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(EffectsBrowser, { provider, uses: ["filter"], title: "Filters", onPick: (e) => (setBrowse(null), run(() => controller.applyEffectFilter(layer.id, e.id, { useSelection: true, preserveTransparency: true }))) }),
|
|
8083
8084
|
filters.length > 0 && layer && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("ol", { className: "space-y-1", "data-effect-part": "filters", "aria-label": "Filters", children: filters.map((f) => {
|
|
8084
8085
|
const label = f.kind === "effect" ? f.name ?? f.effect : f.kind;
|
|
8085
8086
|
const all = layer.smartFilters.filters;
|
|
@@ -8100,6 +8101,17 @@ function ImageProviderEffectsPanel({ controller, className = "", components }) {
|
|
|
8100
8101
|
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("button", { type: "button", className: imageOutlineButtonClass, disabled: index === 0, "aria-label": "Move down", onClick: () => run(() => controller.updateEffectFilter(layer.id, f.id, { index: index - 1 })), children: "\u2193" }),
|
|
8101
8102
|
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("button", { type: "button", className: imageOutlineButtonClass, "aria-label": `Remove ${label}`, onClick: () => run(() => controller.removeSmartFilter(layer.id, f.id)), children: "\u2715" })
|
|
8102
8103
|
] }),
|
|
8104
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("label", { className: "mt-0.5 flex items-center gap-1 pl-0.5 text-[11px] text-muted-foreground", title: "Draw the filter only over the layer's own pixels; clear it to let the effect fill transparent areas", children: [
|
|
8105
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
8106
|
+
ImageCheckbox,
|
|
8107
|
+
{
|
|
8108
|
+
checked: f.preserveTransparency === true,
|
|
8109
|
+
label: `${label}: keep transparency`,
|
|
8110
|
+
onChange: (preserveTransparency) => run(() => controller.updateEffectFilter(layer.id, f.id, { preserveTransparency }))
|
|
8111
|
+
}
|
|
8112
|
+
),
|
|
8113
|
+
"Keep transparency"
|
|
8114
|
+
] }),
|
|
8103
8115
|
open === f.id && /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "mt-1 space-y-2", children: [
|
|
8104
8116
|
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("label", { className: "flex items-center gap-1", children: [
|
|
8105
8117
|
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "w-14 text-[11px] text-foreground", children: "Opacity" }),
|
|
@@ -8131,7 +8143,18 @@ function ImageProviderEffectsPanel({ controller, className = "", components }) {
|
|
|
8131
8143
|
] })
|
|
8132
8144
|
] }, f.id);
|
|
8133
8145
|
}) }),
|
|
8134
|
-
layer && canFilter && !generator && filters.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { className: "text-[11px] text-muted-foreground", children: "No filters yet. A filter changes the layer's pixels and stays editable. Layer styles such as a drop shadow are in the layer's properties
|
|
8146
|
+
layer && canFilter && !generator && filters.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { className: "text-[11px] text-muted-foreground", children: "No filters yet. A filter changes the layer's pixels and stays editable. Layer styles such as a drop shadow are in the layer's properties." }),
|
|
8147
|
+
provider && /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "space-y-1", "data-effect-part": "add-layer", children: [
|
|
8148
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "flex items-center gap-1", children: [
|
|
8149
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "flex-1 font-semibold uppercase tracking-wider text-[11px] text-foreground", children: "Effect layers" }),
|
|
8150
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("button", { type: "button", className: imageOutlineButtonClass, "aria-pressed": browse === "layer", onClick: () => setBrowse(browse === "layer" ? null : "layer"), children: "Add effect layer\u2026" })
|
|
8151
|
+
] }),
|
|
8152
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("label", { className: "flex items-center gap-1 text-[11px] text-muted-foreground", title: "Show the new effect layer only over the pixels of the layer below it (a clipping mask)", children: [
|
|
8153
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(ImageCheckbox, { checked: clip, label: "Clip to layer below", onChange: setClip }),
|
|
8154
|
+
"Clip to layer below"
|
|
8155
|
+
] }),
|
|
8156
|
+
browse === "layer" && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(EffectsBrowser, { provider, uses: import_image_editor9.EFFECT_LAYER_USES, title: "Add an effect layer", onPick: (e) => (setBrowse(null), run(() => controller.addEffectLayer(e.id, { clipped: clip }))) })
|
|
8157
|
+
] }),
|
|
8135
8158
|
!layer && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { className: "text-[11px] text-muted-foreground", children: "Select a layer to apply effects to it." }),
|
|
8136
8159
|
message2 && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { role: "alert", className: "text-[11px] text-destructive", children: message2 })
|
|
8137
8160
|
] });
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pixerate/editor-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.151.0",
|
|
4
4
|
"description": "React bindings and prompt/rich-text components for @pixerate/editor",
|
|
5
5
|
"author": "Pixerate",
|
|
6
6
|
"license": "MIT",
|
|
@@ -254,7 +254,7 @@
|
|
|
254
254
|
"dependencies": {},
|
|
255
255
|
"peerDependencies": {
|
|
256
256
|
"@dagrejs/dagre": "^1.1.8",
|
|
257
|
-
"@pixerate/editor": ">=0.
|
|
257
|
+
"@pixerate/editor": ">=0.226.0 <1.0.0-0",
|
|
258
258
|
"@tiptap/core": "^2.27.3",
|
|
259
259
|
"@tiptap/extension-bubble-menu": "^2.27.3",
|
|
260
260
|
"@tiptap/extension-placeholder": "^2.27.3",
|
|
@@ -305,7 +305,7 @@
|
|
|
305
305
|
"tsup": "^9.0.0",
|
|
306
306
|
"typescript": "^5.7.3",
|
|
307
307
|
"vitest": "^5.0.5",
|
|
308
|
-
"@pixerate/editor": "0.
|
|
308
|
+
"@pixerate/editor": "0.226.0"
|
|
309
309
|
},
|
|
310
310
|
"scripts": {
|
|
311
311
|
"build": "tsup && tsc -p tsconfig.build.json && node ../../scripts/finalize-declarations.mjs dist",
|