@pixerate/editor-react 0.85.0 → 0.86.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.
@@ -18,7 +18,7 @@ import {
18
18
  useImageEditor,
19
19
  useImageEffectsTools,
20
20
  useImageHistogram
21
- } from "../chunk-VKWTKESA.js";
21
+ } from "../chunk-4FQXRPBN.js";
22
22
  import "../chunk-MO354USR.js";
23
23
  import "../chunk-WOQ3H7KA.js";
24
24
  import "../chunk-ZQZAKUUM.js";
package/dist/index.cjs CHANGED
@@ -5816,6 +5816,14 @@ var BrushOptionsBar = ({ controller, className }) => {
5816
5816
  /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "text-slate-400", "data-testid": "clone-source", children: (0, import_image_editor10.cloneSourceLabel)(controller) }),
5817
5817
  cloneSource && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("button", { type: "button", title: "Forget the source point", className: chip(false), onClick: () => controller.setCloneSource(null), children: "Clear source" })
5818
5818
  ] }),
5819
+ (tool === "clone" || tool === "heal") && /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex flex-col gap-1", role: "group", "aria-label": "Clone source transform", "data-testid": "clone-transform", children: [
5820
+ import_image_editor10.CLONE_TRANSFORM_CONTROLS.map((spec) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(ControlSlider, { spec, value: (0, import_image_editor10.cloneTransformView)(controller)[spec.id], onChange: (v) => (0, import_image_editor10.setCloneTransformValue)(controller, spec.id, v) }, spec.id)),
5821
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex items-center gap-1", children: [
5822
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("button", { type: "button", "aria-pressed": (0, import_image_editor10.cloneTransformView)(controller).flipH, title: "Mirror the source left to right", className: chip((0, import_image_editor10.cloneTransformView)(controller).flipH), onClick: () => (0, import_image_editor10.setCloneTransformValue)(controller, "flipH"), children: "Flip H" }),
5823
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("button", { type: "button", "aria-pressed": (0, import_image_editor10.cloneTransformView)(controller).flipV, title: "Mirror the source top to bottom", className: chip((0, import_image_editor10.cloneTransformView)(controller).flipV), onClick: () => (0, import_image_editor10.setCloneTransformValue)(controller, "flipV"), children: "Flip V" }),
5824
+ !(0, import_image_editor10.cloneTransformView)(controller).identity && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("button", { type: "button", title: "Back to 100 %, no flip, 0\xB0", className: chip(false), onClick: () => controller.setCloneTransform(null), children: "Reset transform" })
5825
+ ] })
5826
+ ] }),
5819
5827
  import_image_editor10.RETOUCH_CHOICES.filter((c) => c.tools.includes(tool)).map((choice) => /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex flex-wrap items-center gap-1", role: "group", "aria-label": choice.label, children: [
5820
5828
  /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "text-slate-400", children: choice.label }),
5821
5829
  choice.options.map((o) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(