@pixerate/editor-react 0.132.0 → 0.134.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.
|
@@ -2755,6 +2755,41 @@ var SelectionOptionsBar = ({
|
|
|
2755
2755
|
setSegmenting(false);
|
|
2756
2756
|
}
|
|
2757
2757
|
};
|
|
2758
|
+
const [skying, setSkying] = useState11(false);
|
|
2759
|
+
const [skyStatus, setSkyStatus] = useState11(null);
|
|
2760
|
+
const selectSky = async () => {
|
|
2761
|
+
if (skying) return;
|
|
2762
|
+
setSkying(true);
|
|
2763
|
+
setSkyStatus(null);
|
|
2764
|
+
try {
|
|
2765
|
+
const { note } = await controller.selectSky({ mode: options.mode });
|
|
2766
|
+
setSkyStatus(note ?? null);
|
|
2767
|
+
} catch (err) {
|
|
2768
|
+
setSkyStatus(err instanceof Error ? err.message : String(err));
|
|
2769
|
+
} finally {
|
|
2770
|
+
setSkying(false);
|
|
2771
|
+
}
|
|
2772
|
+
};
|
|
2773
|
+
const [focusing, setFocusing] = useState11(false);
|
|
2774
|
+
const [focusStatus, setFocusStatus] = useState11(null);
|
|
2775
|
+
const selectFocusArea = async () => {
|
|
2776
|
+
if (focusing) return;
|
|
2777
|
+
setFocusing(true);
|
|
2778
|
+
setFocusStatus(null);
|
|
2779
|
+
try {
|
|
2780
|
+
const { selection: selection2 } = await controller.selectFocusArea({
|
|
2781
|
+
range: options.focusRange ?? 50,
|
|
2782
|
+
noise: options.focusNoise ?? 0,
|
|
2783
|
+
softness: options.focusSoftness ?? 4,
|
|
2784
|
+
mode: options.mode
|
|
2785
|
+
});
|
|
2786
|
+
setFocusStatus(selection2 ? null : "No part of the image stands out as in focus.");
|
|
2787
|
+
} catch (err) {
|
|
2788
|
+
setFocusStatus(err instanceof Error ? err.message : String(err));
|
|
2789
|
+
} finally {
|
|
2790
|
+
setFocusing(false);
|
|
2791
|
+
}
|
|
2792
|
+
};
|
|
2758
2793
|
return /* @__PURE__ */ jsxs13("div", { "data-testid": "selection-options-bar", className: `flex flex-col gap-3 text-xs ${className}`, children: [
|
|
2759
2794
|
/* @__PURE__ */ jsx15("div", { role: "group", "aria-label": "Selection tool", className: "flex flex-wrap gap-1", children: SELECTION_TOOLS.map((t) => /* @__PURE__ */ jsx15("button", { type: "button", "aria-pressed": options.tool === t.id, className: btn(options.tool === t.id), onClick: () => set({ tool: t.id }), children: t.label }, t.id)) }),
|
|
2760
2795
|
/* @__PURE__ */ jsx15("div", { role: "group", "aria-label": "Selection mode", className: "flex flex-wrap gap-1", children: SELECTION_MODES.map((m) => /* @__PURE__ */ jsx15("button", { type: "button", "aria-pressed": options.mode === m, className: btn(options.mode === m), onClick: () => set({ mode: m }), children: SELECTION_MODE_LABELS[m] }, m)) }),
|
|
@@ -3015,6 +3050,41 @@ var SelectionOptionsBar = ({
|
|
|
3015
3050
|
]
|
|
3016
3051
|
}
|
|
3017
3052
|
),
|
|
3053
|
+
/* @__PURE__ */ jsxs13("div", { "data-testid": "select-sky", className: "flex flex-col gap-1", children: [
|
|
3054
|
+
/* @__PURE__ */ jsx15("button", { type: "button", className: btn(false), disabled: skying, "aria-busy": skying, onClick: () => void selectSky(), children: skying ? "Selecting\u2026" : "Select Sky" }),
|
|
3055
|
+
skyStatus && /* @__PURE__ */ jsx15("p", { role: "status", className: "text-muted-foreground", children: skyStatus })
|
|
3056
|
+
] }),
|
|
3057
|
+
/* @__PURE__ */ jsxs13("details", { "data-testid": "focus-area", className: "flex flex-col gap-2", children: [
|
|
3058
|
+
/* @__PURE__ */ jsx15("summary", { className: "cursor-pointer text-foreground", children: "Focus Area" }),
|
|
3059
|
+
/* @__PURE__ */ jsxs13("div", { className: "flex flex-col gap-2 pt-2", children: [
|
|
3060
|
+
/* @__PURE__ */ jsxs13("label", { className: "flex flex-col gap-1", children: [
|
|
3061
|
+
/* @__PURE__ */ jsxs13("span", { className: "flex justify-between text-muted-foreground", children: [
|
|
3062
|
+
/* @__PURE__ */ jsx15("span", { children: "In-focus range" }),
|
|
3063
|
+
/* @__PURE__ */ jsx15("span", { className: "font-mono", children: options.focusRange ?? 50 })
|
|
3064
|
+
] }),
|
|
3065
|
+
/* @__PURE__ */ jsx15(ImageRange, { label: "In-focus range", min: 0, max: 100, step: 1, value: options.focusRange ?? 50, onChange: (v) => set({ focusRange: v }) })
|
|
3066
|
+
] }),
|
|
3067
|
+
/* @__PURE__ */ jsxs13("label", { className: "flex flex-col gap-1", children: [
|
|
3068
|
+
/* @__PURE__ */ jsxs13("span", { className: "flex justify-between text-muted-foreground", children: [
|
|
3069
|
+
/* @__PURE__ */ jsx15("span", { children: "Image noise level" }),
|
|
3070
|
+
/* @__PURE__ */ jsx15("span", { className: "font-mono", children: options.focusNoise ?? 0 })
|
|
3071
|
+
] }),
|
|
3072
|
+
/* @__PURE__ */ jsx15(ImageRange, { label: "Image noise level", min: 0, max: 100, step: 1, value: options.focusNoise ?? 0, onChange: (v) => set({ focusNoise: v }) })
|
|
3073
|
+
] }),
|
|
3074
|
+
/* @__PURE__ */ jsxs13("label", { className: "flex flex-col gap-1", children: [
|
|
3075
|
+
/* @__PURE__ */ jsxs13("span", { className: "flex justify-between text-muted-foreground", children: [
|
|
3076
|
+
/* @__PURE__ */ jsx15("span", { children: "Soften edge" }),
|
|
3077
|
+
/* @__PURE__ */ jsxs13("span", { className: "font-mono", children: [
|
|
3078
|
+
options.focusSoftness ?? 4,
|
|
3079
|
+
" px"
|
|
3080
|
+
] })
|
|
3081
|
+
] }),
|
|
3082
|
+
/* @__PURE__ */ jsx15(ImageRange, { label: "Focus soften edge", min: 0, max: 50, step: 1, value: options.focusSoftness ?? 4, onChange: (v) => set({ focusSoftness: v }) })
|
|
3083
|
+
] }),
|
|
3084
|
+
/* @__PURE__ */ jsx15("button", { type: "button", className: btn(false), disabled: focusing, "aria-busy": focusing, onClick: () => void selectFocusArea(), children: focusing ? "Selecting\u2026" : "Select Focus Area" }),
|
|
3085
|
+
focusStatus && /* @__PURE__ */ jsx15("p", { role: "status", className: "text-muted-foreground", children: focusStatus })
|
|
3086
|
+
] })
|
|
3087
|
+
] }),
|
|
3018
3088
|
/* @__PURE__ */ jsxs13("label", { className: "flex items-center gap-2 text-foreground", children: [
|
|
3019
3089
|
/* @__PURE__ */ jsx15(ImageCheckbox, { label: "Anti-alias", checked: options.antiAlias, onChange: (on) => set({ antiAlias: on }) }),
|
|
3020
3090
|
"Anti-alias"
|
|
@@ -4686,6 +4686,41 @@ var SelectionOptionsBar = ({
|
|
|
4686
4686
|
setSegmenting(false);
|
|
4687
4687
|
}
|
|
4688
4688
|
};
|
|
4689
|
+
const [skying, setSkying] = (0, import_react25.useState)(false);
|
|
4690
|
+
const [skyStatus, setSkyStatus] = (0, import_react25.useState)(null);
|
|
4691
|
+
const selectSky = async () => {
|
|
4692
|
+
if (skying) return;
|
|
4693
|
+
setSkying(true);
|
|
4694
|
+
setSkyStatus(null);
|
|
4695
|
+
try {
|
|
4696
|
+
const { note } = await controller.selectSky({ mode: options.mode });
|
|
4697
|
+
setSkyStatus(note ?? null);
|
|
4698
|
+
} catch (err) {
|
|
4699
|
+
setSkyStatus(err instanceof Error ? err.message : String(err));
|
|
4700
|
+
} finally {
|
|
4701
|
+
setSkying(false);
|
|
4702
|
+
}
|
|
4703
|
+
};
|
|
4704
|
+
const [focusing, setFocusing] = (0, import_react25.useState)(false);
|
|
4705
|
+
const [focusStatus, setFocusStatus] = (0, import_react25.useState)(null);
|
|
4706
|
+
const selectFocusArea = async () => {
|
|
4707
|
+
if (focusing) return;
|
|
4708
|
+
setFocusing(true);
|
|
4709
|
+
setFocusStatus(null);
|
|
4710
|
+
try {
|
|
4711
|
+
const { selection: selection2 } = await controller.selectFocusArea({
|
|
4712
|
+
range: options.focusRange ?? 50,
|
|
4713
|
+
noise: options.focusNoise ?? 0,
|
|
4714
|
+
softness: options.focusSoftness ?? 4,
|
|
4715
|
+
mode: options.mode
|
|
4716
|
+
});
|
|
4717
|
+
setFocusStatus(selection2 ? null : "No part of the image stands out as in focus.");
|
|
4718
|
+
} catch (err) {
|
|
4719
|
+
setFocusStatus(err instanceof Error ? err.message : String(err));
|
|
4720
|
+
} finally {
|
|
4721
|
+
setFocusing(false);
|
|
4722
|
+
}
|
|
4723
|
+
};
|
|
4689
4724
|
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { "data-testid": "selection-options-bar", className: `flex flex-col gap-3 text-xs ${className}`, children: [
|
|
4690
4725
|
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { role: "group", "aria-label": "Selection tool", className: "flex flex-wrap gap-1", children: import_image_editor14.SELECTION_TOOLS.map((t) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("button", { type: "button", "aria-pressed": options.tool === t.id, className: btn(options.tool === t.id), onClick: () => set({ tool: t.id }), children: t.label }, t.id)) }),
|
|
4691
4726
|
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { role: "group", "aria-label": "Selection mode", className: "flex flex-wrap gap-1", children: import_image_editor14.SELECTION_MODES.map((m) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("button", { type: "button", "aria-pressed": options.mode === m, className: btn(options.mode === m), onClick: () => set({ mode: m }), children: import_image_editor14.SELECTION_MODE_LABELS[m] }, m)) }),
|
|
@@ -4946,6 +4981,41 @@ var SelectionOptionsBar = ({
|
|
|
4946
4981
|
]
|
|
4947
4982
|
}
|
|
4948
4983
|
),
|
|
4984
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { "data-testid": "select-sky", className: "flex flex-col gap-1", children: [
|
|
4985
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("button", { type: "button", className: btn(false), disabled: skying, "aria-busy": skying, onClick: () => void selectSky(), children: skying ? "Selecting\u2026" : "Select Sky" }),
|
|
4986
|
+
skyStatus && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("p", { role: "status", className: "text-muted-foreground", children: skyStatus })
|
|
4987
|
+
] }),
|
|
4988
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("details", { "data-testid": "focus-area", className: "flex flex-col gap-2", children: [
|
|
4989
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("summary", { className: "cursor-pointer text-foreground", children: "Focus Area" }),
|
|
4990
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "flex flex-col gap-2 pt-2", children: [
|
|
4991
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("label", { className: "flex flex-col gap-1", children: [
|
|
4992
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("span", { className: "flex justify-between text-muted-foreground", children: [
|
|
4993
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { children: "In-focus range" }),
|
|
4994
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "font-mono", children: options.focusRange ?? 50 })
|
|
4995
|
+
] }),
|
|
4996
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(ImageRange, { label: "In-focus range", min: 0, max: 100, step: 1, value: options.focusRange ?? 50, onChange: (v) => set({ focusRange: v }) })
|
|
4997
|
+
] }),
|
|
4998
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("label", { className: "flex flex-col gap-1", children: [
|
|
4999
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("span", { className: "flex justify-between text-muted-foreground", children: [
|
|
5000
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { children: "Image noise level" }),
|
|
5001
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "font-mono", children: options.focusNoise ?? 0 })
|
|
5002
|
+
] }),
|
|
5003
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(ImageRange, { label: "Image noise level", min: 0, max: 100, step: 1, value: options.focusNoise ?? 0, onChange: (v) => set({ focusNoise: v }) })
|
|
5004
|
+
] }),
|
|
5005
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("label", { className: "flex flex-col gap-1", children: [
|
|
5006
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("span", { className: "flex justify-between text-muted-foreground", children: [
|
|
5007
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { children: "Soften edge" }),
|
|
5008
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("span", { className: "font-mono", children: [
|
|
5009
|
+
options.focusSoftness ?? 4,
|
|
5010
|
+
" px"
|
|
5011
|
+
] })
|
|
5012
|
+
] }),
|
|
5013
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(ImageRange, { label: "Focus soften edge", min: 0, max: 50, step: 1, value: options.focusSoftness ?? 4, onChange: (v) => set({ focusSoftness: v }) })
|
|
5014
|
+
] }),
|
|
5015
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("button", { type: "button", className: btn(false), disabled: focusing, "aria-busy": focusing, onClick: () => void selectFocusArea(), children: focusing ? "Selecting\u2026" : "Select Focus Area" }),
|
|
5016
|
+
focusStatus && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("p", { role: "status", className: "text-muted-foreground", children: focusStatus })
|
|
5017
|
+
] })
|
|
5018
|
+
] }),
|
|
4949
5019
|
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("label", { className: "flex items-center gap-2 text-foreground", children: [
|
|
4950
5020
|
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(ImageCheckbox, { label: "Anti-alias", checked: options.antiAlias, onChange: (on) => set({ antiAlias: on }) }),
|
|
4951
5021
|
"Anti-alias"
|
package/dist/index.cjs
CHANGED
|
@@ -8400,6 +8400,41 @@ var SelectionOptionsBar = ({
|
|
|
8400
8400
|
setSegmenting(false);
|
|
8401
8401
|
}
|
|
8402
8402
|
};
|
|
8403
|
+
const [skying, setSkying] = (0, import_react61.useState)(false);
|
|
8404
|
+
const [skyStatus, setSkyStatus] = (0, import_react61.useState)(null);
|
|
8405
|
+
const selectSky = async () => {
|
|
8406
|
+
if (skying) return;
|
|
8407
|
+
setSkying(true);
|
|
8408
|
+
setSkyStatus(null);
|
|
8409
|
+
try {
|
|
8410
|
+
const { note } = await controller.selectSky({ mode: options.mode });
|
|
8411
|
+
setSkyStatus(note ?? null);
|
|
8412
|
+
} catch (err) {
|
|
8413
|
+
setSkyStatus(err instanceof Error ? err.message : String(err));
|
|
8414
|
+
} finally {
|
|
8415
|
+
setSkying(false);
|
|
8416
|
+
}
|
|
8417
|
+
};
|
|
8418
|
+
const [focusing, setFocusing] = (0, import_react61.useState)(false);
|
|
8419
|
+
const [focusStatus, setFocusStatus] = (0, import_react61.useState)(null);
|
|
8420
|
+
const selectFocusArea = async () => {
|
|
8421
|
+
if (focusing) return;
|
|
8422
|
+
setFocusing(true);
|
|
8423
|
+
setFocusStatus(null);
|
|
8424
|
+
try {
|
|
8425
|
+
const { selection: selection2 } = await controller.selectFocusArea({
|
|
8426
|
+
range: options.focusRange ?? 50,
|
|
8427
|
+
noise: options.focusNoise ?? 0,
|
|
8428
|
+
softness: options.focusSoftness ?? 4,
|
|
8429
|
+
mode: options.mode
|
|
8430
|
+
});
|
|
8431
|
+
setFocusStatus(selection2 ? null : "No part of the image stands out as in focus.");
|
|
8432
|
+
} catch (err) {
|
|
8433
|
+
setFocusStatus(err instanceof Error ? err.message : String(err));
|
|
8434
|
+
} finally {
|
|
8435
|
+
setFocusing(false);
|
|
8436
|
+
}
|
|
8437
|
+
};
|
|
8403
8438
|
return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { "data-testid": "selection-options-bar", className: `flex flex-col gap-3 text-xs ${className}`, children: [
|
|
8404
8439
|
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { role: "group", "aria-label": "Selection tool", className: "flex flex-wrap gap-1", children: import_image_editor14.SELECTION_TOOLS.map((t) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("button", { type: "button", "aria-pressed": options.tool === t.id, className: btn(options.tool === t.id), onClick: () => set({ tool: t.id }), children: t.label }, t.id)) }),
|
|
8405
8440
|
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { role: "group", "aria-label": "Selection mode", className: "flex flex-wrap gap-1", children: import_image_editor14.SELECTION_MODES.map((m) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("button", { type: "button", "aria-pressed": options.mode === m, className: btn(options.mode === m), onClick: () => set({ mode: m }), children: import_image_editor14.SELECTION_MODE_LABELS[m] }, m)) }),
|
|
@@ -8660,6 +8695,41 @@ var SelectionOptionsBar = ({
|
|
|
8660
8695
|
]
|
|
8661
8696
|
}
|
|
8662
8697
|
),
|
|
8698
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { "data-testid": "select-sky", className: "flex flex-col gap-1", children: [
|
|
8699
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("button", { type: "button", className: btn(false), disabled: skying, "aria-busy": skying, onClick: () => void selectSky(), children: skying ? "Selecting\u2026" : "Select Sky" }),
|
|
8700
|
+
skyStatus && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("p", { role: "status", className: "text-muted-foreground", children: skyStatus })
|
|
8701
|
+
] }),
|
|
8702
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("details", { "data-testid": "focus-area", className: "flex flex-col gap-2", children: [
|
|
8703
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("summary", { className: "cursor-pointer text-foreground", children: "Focus Area" }),
|
|
8704
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "flex flex-col gap-2 pt-2", children: [
|
|
8705
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("label", { className: "flex flex-col gap-1", children: [
|
|
8706
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("span", { className: "flex justify-between text-muted-foreground", children: [
|
|
8707
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { children: "In-focus range" }),
|
|
8708
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: "font-mono", children: options.focusRange ?? 50 })
|
|
8709
|
+
] }),
|
|
8710
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(ImageRange, { label: "In-focus range", min: 0, max: 100, step: 1, value: options.focusRange ?? 50, onChange: (v) => set({ focusRange: v }) })
|
|
8711
|
+
] }),
|
|
8712
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("label", { className: "flex flex-col gap-1", children: [
|
|
8713
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("span", { className: "flex justify-between text-muted-foreground", children: [
|
|
8714
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { children: "Image noise level" }),
|
|
8715
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: "font-mono", children: options.focusNoise ?? 0 })
|
|
8716
|
+
] }),
|
|
8717
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(ImageRange, { label: "Image noise level", min: 0, max: 100, step: 1, value: options.focusNoise ?? 0, onChange: (v) => set({ focusNoise: v }) })
|
|
8718
|
+
] }),
|
|
8719
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("label", { className: "flex flex-col gap-1", children: [
|
|
8720
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("span", { className: "flex justify-between text-muted-foreground", children: [
|
|
8721
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { children: "Soften edge" }),
|
|
8722
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("span", { className: "font-mono", children: [
|
|
8723
|
+
options.focusSoftness ?? 4,
|
|
8724
|
+
" px"
|
|
8725
|
+
] })
|
|
8726
|
+
] }),
|
|
8727
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(ImageRange, { label: "Focus soften edge", min: 0, max: 50, step: 1, value: options.focusSoftness ?? 4, onChange: (v) => set({ focusSoftness: v }) })
|
|
8728
|
+
] }),
|
|
8729
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("button", { type: "button", className: btn(false), disabled: focusing, "aria-busy": focusing, onClick: () => void selectFocusArea(), children: focusing ? "Selecting\u2026" : "Select Focus Area" }),
|
|
8730
|
+
focusStatus && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("p", { role: "status", className: "text-muted-foreground", children: focusStatus })
|
|
8731
|
+
] })
|
|
8732
|
+
] }),
|
|
8663
8733
|
/* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("label", { className: "flex items-center gap-2 text-foreground", children: [
|
|
8664
8734
|
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(ImageCheckbox, { label: "Anti-alias", checked: options.antiAlias, onChange: (on) => set({ antiAlias: on }) }),
|
|
8665
8735
|
"Anti-alias"
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pixerate/editor-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.134.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.
|
|
257
|
+
"@pixerate/editor": ">=0.201.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.
|
|
308
|
+
"@pixerate/editor": "0.201.0"
|
|
309
309
|
},
|
|
310
310
|
"scripts": {
|
|
311
311
|
"build": "tsup && tsc -p tsconfig.build.json && node ../../scripts/finalize-declarations.mjs dist",
|