@pixerate/editor-react 0.113.1 → 0.113.2

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.
@@ -2045,7 +2045,7 @@ var LayersPanel = ({ controller, thumbnailSize = 32, psd = true, psdFileName = "
2045
2045
 
2046
2046
  // src/image-editor/ImageProviderEffectsPanel.tsx
2047
2047
  import React7, { useEffect as useEffect7, useState as useState8 } from "react";
2048
- import { findLayer } from "@pixerate/editor/image-editor";
2048
+ import { EFFECT_LAYER_USES, findLayer } from "@pixerate/editor/image-editor";
2049
2049
 
2050
2050
  // src/image-editor/ImageEffectControls.tsx
2051
2051
  import { jsx as jsx9, jsxs as jsxs9 } from "react/jsx-runtime";
@@ -2100,7 +2100,7 @@ function ImageProviderEffectsPanel({ controller, className = "" }) {
2100
2100
  ] }),
2101
2101
  !provider && /* @__PURE__ */ jsx10("p", { className: "text-[11px] text-muted-foreground", children: "No effects provider is registered. Effects in the document are kept." }),
2102
2102
  browse === "filter" && layer && /* @__PURE__ */ jsx10(EffectsBrowser, { provider, uses: ["filter"], title: "Filters", onPick: (e) => (setBrowse(null), run(() => controller.applyEffectFilter(layer.id, e.id))) }),
2103
- browse === "layer" && /* @__PURE__ */ jsx10(EffectsBrowser, { provider, uses: ["generator", "overlay", "title"], title: "Generators and overlays", onPick: (e) => (setBrowse(null), run(() => controller.addEffectLayer(e.id))) }),
2103
+ browse === "layer" && /* @__PURE__ */ jsx10(EffectsBrowser, { provider, uses: EFFECT_LAYER_USES, title: "Generators and overlays", onPick: (e) => (setBrowse(null), run(() => controller.addEffectLayer(e.id))) }),
2104
2104
  generator && layer && /* @__PURE__ */ jsxs10("div", { className: "space-y-1", "data-effect-part": "generator", children: [
2105
2105
  /* @__PURE__ */ jsxs10("div", { className: "flex items-center gap-1", children: [
2106
2106
  /* @__PURE__ */ jsx10("span", { className: "flex-1 font-medium text-foreground", children: generator.name ?? generator.effect }),
@@ -3794,7 +3794,7 @@ function ImageProviderEffectsPanel({ controller, className = "" }) {
3794
3794
  ] }),
3795
3795
  !provider && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "text-[11px] text-muted-foreground", children: "No effects provider is registered. Effects in the document are kept." }),
3796
3796
  browse === "filter" && layer && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(EffectsBrowser, { provider, uses: ["filter"], title: "Filters", onPick: (e) => (setBrowse(null), run(() => controller.applyEffectFilter(layer.id, e.id))) }),
3797
- browse === "layer" && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(EffectsBrowser, { provider, uses: ["generator", "overlay", "title"], title: "Generators and overlays", onPick: (e) => (setBrowse(null), run(() => controller.addEffectLayer(e.id))) }),
3797
+ browse === "layer" && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(EffectsBrowser, { provider, uses: import_image_editor9.EFFECT_LAYER_USES, title: "Generators and overlays", onPick: (e) => (setBrowse(null), run(() => controller.addEffectLayer(e.id))) }),
3798
3798
  generator && layer && /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "space-y-1", "data-effect-part": "generator", children: [
3799
3799
  /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "flex items-center gap-1", children: [
3800
3800
  /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "flex-1 font-medium text-foreground", children: generator.name ?? generator.effect }),
@@ -25,7 +25,7 @@ import {
25
25
  useImageEditorControls,
26
26
  useImageEffectsTools,
27
27
  useImageHistogram
28
- } from "../chunk-CVYTRTFT.js";
28
+ } from "../chunk-2INOKIJN.js";
29
29
  import "../chunk-AJCWF6SN.js";
30
30
  import "../chunk-BWEARAWR.js";
31
31
  import "../chunk-5LFQ2UQZ.js";
package/dist/index.cjs CHANGED
@@ -7504,7 +7504,7 @@ function ImageProviderEffectsPanel({ controller, className = "" }) {
7504
7504
  ] }),
7505
7505
  !provider && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { className: "text-[11px] text-muted-foreground", children: "No effects provider is registered. Effects in the document are kept." }),
7506
7506
  browse === "filter" && layer && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(EffectsBrowser, { provider, uses: ["filter"], title: "Filters", onPick: (e) => (setBrowse(null), run(() => controller.applyEffectFilter(layer.id, e.id))) }),
7507
- browse === "layer" && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(EffectsBrowser, { provider, uses: ["generator", "overlay", "title"], title: "Generators and overlays", onPick: (e) => (setBrowse(null), run(() => controller.addEffectLayer(e.id))) }),
7507
+ browse === "layer" && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(EffectsBrowser, { provider, uses: import_image_editor9.EFFECT_LAYER_USES, title: "Generators and overlays", onPick: (e) => (setBrowse(null), run(() => controller.addEffectLayer(e.id))) }),
7508
7508
  generator && layer && /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "space-y-1", "data-effect-part": "generator", children: [
7509
7509
  /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex items-center gap-1", children: [
7510
7510
  /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "flex-1 font-medium text-foreground", children: generator.name ?? generator.effect }),
package/dist/index.js CHANGED
@@ -49,7 +49,7 @@ import {
49
49
  useImageEditorControls,
50
50
  useImageEffectsTools,
51
51
  useImageHistogram
52
- } from "./chunk-CVYTRTFT.js";
52
+ } from "./chunk-2INOKIJN.js";
53
53
  import "./chunk-AJCWF6SN.js";
54
54
  import "./chunk-BWEARAWR.js";
55
55
  import "./chunk-5LFQ2UQZ.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pixerate/editor-react",
3
- "version": "0.113.1",
3
+ "version": "0.113.2",
4
4
  "description": "React bindings and prompt/rich-text components for @pixerate/editor",
5
5
  "author": "Pixerate",
6
6
  "license": "MIT",
@@ -258,7 +258,7 @@
258
258
  },
259
259
  "peerDependencies": {
260
260
  "@dagrejs/dagre": "^1.1.8",
261
- "@pixerate/editor": ">=0.170.0 <1.0.0-0",
261
+ "@pixerate/editor": ">=0.171.0 <1.0.0-0",
262
262
  "@tiptap/core": "^2.27.3",
263
263
  "@tiptap/pm": "^2.27.3",
264
264
  "@tiptap/react": "^2.27.3",
@@ -285,7 +285,7 @@
285
285
  "tsup": "^9.0.0",
286
286
  "typescript": "^5.7.3",
287
287
  "vitest": "^5.0.5",
288
- "@pixerate/editor": "0.170.0"
288
+ "@pixerate/editor": "0.171.0"
289
289
  },
290
290
  "scripts": {
291
291
  "build": "tsup && tsc -p tsconfig.build.json && node ../../scripts/finalize-declarations.mjs dist",