@pixerate/editor-react 0.113.0 → 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.
|
@@ -382,6 +382,7 @@ var ImageEditorCanvas = ({
|
|
|
382
382
|
viewportWidth: viewport.width,
|
|
383
383
|
viewportHeight: viewport.height,
|
|
384
384
|
pixelRatio: viewport.pixelRatio,
|
|
385
|
+
hostScale: viewport.hostScale,
|
|
385
386
|
fit,
|
|
386
387
|
showCropOverlay: mode === "crop",
|
|
387
388
|
showSelectionOverlay: true,
|
|
@@ -2044,7 +2045,7 @@ var LayersPanel = ({ controller, thumbnailSize = 32, psd = true, psdFileName = "
|
|
|
2044
2045
|
|
|
2045
2046
|
// src/image-editor/ImageProviderEffectsPanel.tsx
|
|
2046
2047
|
import React7, { useEffect as useEffect7, useState as useState8 } from "react";
|
|
2047
|
-
import { findLayer } from "@pixerate/editor/image-editor";
|
|
2048
|
+
import { EFFECT_LAYER_USES, findLayer } from "@pixerate/editor/image-editor";
|
|
2048
2049
|
|
|
2049
2050
|
// src/image-editor/ImageEffectControls.tsx
|
|
2050
2051
|
import { jsx as jsx9, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
@@ -2099,7 +2100,7 @@ function ImageProviderEffectsPanel({ controller, className = "" }) {
|
|
|
2099
2100
|
] }),
|
|
2100
2101
|
!provider && /* @__PURE__ */ jsx10("p", { className: "text-[11px] text-muted-foreground", children: "No effects provider is registered. Effects in the document are kept." }),
|
|
2101
2102
|
browse === "filter" && layer && /* @__PURE__ */ jsx10(EffectsBrowser, { provider, uses: ["filter"], title: "Filters", onPick: (e) => (setBrowse(null), run(() => controller.applyEffectFilter(layer.id, e.id))) }),
|
|
2102
|
-
browse === "layer" && /* @__PURE__ */ jsx10(EffectsBrowser, { provider, uses:
|
|
2103
|
+
browse === "layer" && /* @__PURE__ */ jsx10(EffectsBrowser, { provider, uses: EFFECT_LAYER_USES, title: "Generators and overlays", onPick: (e) => (setBrowse(null), run(() => controller.addEffectLayer(e.id))) }),
|
|
2103
2104
|
generator && layer && /* @__PURE__ */ jsxs10("div", { className: "space-y-1", "data-effect-part": "generator", children: [
|
|
2104
2105
|
/* @__PURE__ */ jsxs10("div", { className: "flex items-center gap-1", children: [
|
|
2105
2106
|
/* @__PURE__ */ jsx10("span", { className: "flex-1 font-medium text-foreground", children: generator.name ?? generator.effect }),
|
|
@@ -489,6 +489,7 @@ var ImageEditorCanvas = ({
|
|
|
489
489
|
viewportWidth: viewport.width,
|
|
490
490
|
viewportHeight: viewport.height,
|
|
491
491
|
pixelRatio: viewport.pixelRatio,
|
|
492
|
+
hostScale: viewport.hostScale,
|
|
492
493
|
fit,
|
|
493
494
|
showCropOverlay: mode === "crop",
|
|
494
495
|
showSelectionOverlay: true,
|
|
@@ -3793,7 +3794,7 @@ function ImageProviderEffectsPanel({ controller, className = "" }) {
|
|
|
3793
3794
|
] }),
|
|
3794
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." }),
|
|
3795
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))) }),
|
|
3796
|
-
browse === "layer" && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(EffectsBrowser, { provider, uses:
|
|
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))) }),
|
|
3797
3798
|
generator && layer && /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "space-y-1", "data-effect-part": "generator", children: [
|
|
3798
3799
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "flex items-center gap-1", children: [
|
|
3799
3800
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "flex-1 font-medium text-foreground", children: generator.name ?? generator.effect }),
|
package/dist/index.cjs
CHANGED
|
@@ -4199,6 +4199,7 @@ var ImageEditorCanvas = ({
|
|
|
4199
4199
|
viewportWidth: viewport.width,
|
|
4200
4200
|
viewportHeight: viewport.height,
|
|
4201
4201
|
pixelRatio: viewport.pixelRatio,
|
|
4202
|
+
hostScale: viewport.hostScale,
|
|
4202
4203
|
fit,
|
|
4203
4204
|
showCropOverlay: mode === "crop",
|
|
4204
4205
|
showSelectionOverlay: true,
|
|
@@ -7503,7 +7504,7 @@ function ImageProviderEffectsPanel({ controller, className = "" }) {
|
|
|
7503
7504
|
] }),
|
|
7504
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." }),
|
|
7505
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))) }),
|
|
7506
|
-
browse === "layer" && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(EffectsBrowser, { provider, uses:
|
|
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))) }),
|
|
7507
7508
|
generator && layer && /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "space-y-1", "data-effect-part": "generator", children: [
|
|
7508
7509
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex items-center gap-1", children: [
|
|
7509
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pixerate/editor-react",
|
|
3
|
-
"version": "0.113.
|
|
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.
|
|
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.
|
|
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",
|