@pixerate/editor-react 0.73.0 → 0.74.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.
@@ -1477,7 +1477,7 @@ var BrushOptionsBar = ({ controller, className }) => {
1477
1477
 
1478
1478
  // src/image-editor/ColorProfilePanel.tsx
1479
1479
  import { useEffect as useEffect7, useState as useState8 } from "react";
1480
- import { INTENT_OPTIONS, PROOF_PROFILE_OPTIONS, WORKING_SPACE_OPTIONS, colorPanelView } from "@pixerate/editor/image-editor";
1480
+ import { COLOR_MODE_OPTIONS, INTENT_OPTIONS, PROOF_PROFILE_OPTIONS, WORKING_SPACE_OPTIONS, colorPanelView } from "@pixerate/editor/image-editor";
1481
1481
  import { Fragment as Fragment2, jsx as jsx8, jsxs as jsxs8 } from "react/jsx-runtime";
1482
1482
  var chip2 = "px-2 py-1 rounded text-[11px] bg-slate-800 text-slate-300 hover:text-white";
1483
1483
  var select = "rounded bg-slate-800 px-1 py-0.5 text-[11px] text-slate-200";
@@ -1514,6 +1514,11 @@ var ColorProfilePanel = ({ controller, className }) => {
1514
1514
  /* @__PURE__ */ jsx8("span", { className: "text-slate-400", children: "Profile" }),
1515
1515
  /* @__PURE__ */ jsx8("span", { "data-testid": "color-profile-name", children: view.profileName })
1516
1516
  ] }),
1517
+ /* @__PURE__ */ jsxs8("div", { className: "flex flex-wrap items-center gap-1", role: "group", "aria-label": "Colour mode", children: [
1518
+ /* @__PURE__ */ jsx8("span", { className: "text-slate-400", children: "Mode" }),
1519
+ /* @__PURE__ */ jsx8("select", { "aria-label": "Colour mode", className: select, value: view.mode, onChange: (e) => attempt(() => controller.setColorMode(e.target.value)), children: COLOR_MODE_OPTIONS.map((o) => /* @__PURE__ */ jsx8("option", { value: o.id, title: o.title, children: o.label }, o.id)) }),
1520
+ view.cmykProfileName && /* @__PURE__ */ jsx8("span", { className: "text-slate-400", children: view.cmykProfileName })
1521
+ ] }),
1517
1522
  /* @__PURE__ */ jsxs8("div", { className: "flex flex-wrap items-center gap-1", role: "group", "aria-label": "Assign or convert", children: [
1518
1523
  /* @__PURE__ */ jsx8("select", { "aria-label": "Target profile", className: select, value: target, onChange: (e) => setTarget(e.target.value), children: WORKING_SPACE_OPTIONS.map((o) => /* @__PURE__ */ jsx8("option", { value: o.id, children: o.label }, o.id)) }),
1519
1524
  /* @__PURE__ */ jsx8("select", { "aria-label": "Rendering intent", className: select, value: intent, onChange: (e) => setIntent(e.target.value), children: INTENT_OPTIONS.map((o) => /* @__PURE__ */ jsx8("option", { value: o.id, title: o.title, children: o.label }, o.id)) }),
@@ -3784,4 +3789,4 @@ export {
3784
3789
  TypeOptionsBar,
3785
3790
  ImageEditor
3786
3791
  };
3787
- //# sourceMappingURL=chunk-VNZKHFEM.js.map
3792
+ //# sourceMappingURL=chunk-LWMUV5TC.js.map