@pixerate/editor-react 0.141.0 → 0.142.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.
@@ -3054,6 +3054,7 @@ var ContentAwareFillWorkspace = ({ controller, onClose, className = "" }) => {
3054
3054
  Math.round(zoom * 100),
3055
3055
  "%"
3056
3056
  ] }),
3057
+ !session.showsWholeImage && /* @__PURE__ */ jsx16("button", { type: "button", className: button2, title: "Show (and sample from) more of the image around the selection", onClick: () => session.expandView(), children: "Expand View" }),
3057
3058
  session.computing && /* @__PURE__ */ jsx16("span", { role: "status", className: "text-muted-foreground", children: "Updating preview\u2026" })
3058
3059
  ] }),
3059
3060
  /* @__PURE__ */ jsxs14("div", { className: "flex-1 grid grid-cols-2 gap-2 p-2 min-h-0", children: [
@@ -3125,7 +3126,8 @@ var ContentAwareFillWorkspace = ({ controller, onClose, className = "" }) => {
3125
3126
  value: settings.output,
3126
3127
  options: [
3127
3128
  { value: "new-layer", label: "New Layer" },
3128
- { value: "current", label: "Current Layer" }
3129
+ { value: "current", label: "Current Layer" },
3130
+ { value: "duplicate-layer", label: "Duplicate Layer" }
3129
3131
  ],
3130
3132
  onChange: (v) => set({ output: v })
3131
3133
  }
@@ -6,7 +6,7 @@ export interface ContentAwareFillWorkspaceProps {
6
6
  onClose: (result: {
7
7
  layerId: string;
8
8
  bounds: CropBox;
9
- output: 'current' | 'new-layer';
9
+ output: 'current' | 'new-layer' | 'duplicate-layer';
10
10
  } | null) => void;
11
11
  className?: string;
12
12
  }
@@ -6,7 +6,7 @@ export interface ContentAwareFillWorkspaceProps {
6
6
  onClose: (result: {
7
7
  layerId: string;
8
8
  bounds: CropBox;
9
- output: 'current' | 'new-layer';
9
+ output: 'current' | 'new-layer' | 'duplicate-layer';
10
10
  } | null) => void;
11
11
  className?: string;
12
12
  }
@@ -4988,6 +4988,7 @@ var ContentAwareFillWorkspace = ({ controller, onClose, className = "" }) => {
4988
4988
  Math.round(zoom * 100),
4989
4989
  "%"
4990
4990
  ] }),
4991
+ !session.showsWholeImage && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("button", { type: "button", className: button3, title: "Show (and sample from) more of the image around the selection", onClick: () => session.expandView(), children: "Expand View" }),
4991
4992
  session.computing && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { role: "status", className: "text-muted-foreground", children: "Updating preview\u2026" })
4992
4993
  ] }),
4993
4994
  /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "flex-1 grid grid-cols-2 gap-2 p-2 min-h-0", children: [
@@ -5059,7 +5060,8 @@ var ContentAwareFillWorkspace = ({ controller, onClose, className = "" }) => {
5059
5060
  value: settings.output,
5060
5061
  options: [
5061
5062
  { value: "new-layer", label: "New Layer" },
5062
- { value: "current", label: "Current Layer" }
5063
+ { value: "current", label: "Current Layer" },
5064
+ { value: "duplicate-layer", label: "Duplicate Layer" }
5063
5065
  ],
5064
5066
  onChange: (v) => set({ output: v })
5065
5067
  }
@@ -30,7 +30,7 @@ import {
30
30
  useImageEditorControls,
31
31
  useImageEffectsTools,
32
32
  useImageHistogram
33
- } from "../chunk-DD2SZVT2.js";
33
+ } from "../chunk-ULBLX67B.js";
34
34
  import "../chunk-AJCWF6SN.js";
35
35
  import "../chunk-6BWTJ3EE.js";
36
36
  import "../chunk-5RPB4WGT.js";
package/dist/index.cjs CHANGED
@@ -8702,6 +8702,7 @@ var ContentAwareFillWorkspace = ({ controller, onClose, className = "" }) => {
8702
8702
  Math.round(zoom * 100),
8703
8703
  "%"
8704
8704
  ] }),
8705
+ !session.showsWholeImage && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("button", { type: "button", className: button3, title: "Show (and sample from) more of the image around the selection", onClick: () => session.expandView(), children: "Expand View" }),
8705
8706
  session.computing && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { role: "status", className: "text-muted-foreground", children: "Updating preview\u2026" })
8706
8707
  ] }),
8707
8708
  /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "flex-1 grid grid-cols-2 gap-2 p-2 min-h-0", children: [
@@ -8773,7 +8774,8 @@ var ContentAwareFillWorkspace = ({ controller, onClose, className = "" }) => {
8773
8774
  value: settings.output,
8774
8775
  options: [
8775
8776
  { value: "new-layer", label: "New Layer" },
8776
- { value: "current", label: "Current Layer" }
8777
+ { value: "current", label: "Current Layer" },
8778
+ { value: "duplicate-layer", label: "Duplicate Layer" }
8777
8779
  ],
8778
8780
  onChange: (v) => set({ output: v })
8779
8781
  }
package/dist/index.js CHANGED
@@ -54,7 +54,7 @@ import {
54
54
  useImageEditorControls,
55
55
  useImageEffectsTools,
56
56
  useImageHistogram
57
- } from "./chunk-DD2SZVT2.js";
57
+ } from "./chunk-ULBLX67B.js";
58
58
  import "./chunk-AJCWF6SN.js";
59
59
  import "./chunk-6BWTJ3EE.js";
60
60
  import "./chunk-5RPB4WGT.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pixerate/editor-react",
3
- "version": "0.141.0",
3
+ "version": "0.142.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.211.0 <1.0.0-0",
257
+ "@pixerate/editor": ">=0.212.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.211.0"
308
+ "@pixerate/editor": "0.212.0"
309
309
  },
310
310
  "scripts": {
311
311
  "build": "tsup && tsc -p tsconfig.build.json && node ../../scripts/finalize-declarations.mjs dist",