canvu-react 0.4.30 → 0.4.31

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.
package/dist/react.cjs CHANGED
@@ -2205,7 +2205,7 @@ var defaultLabels = {
2205
2205
  title: "Images",
2206
2206
  dragHandle: "Drag to reorder",
2207
2207
  focus: "Focus on canvas",
2208
- copy: "Copy",
2208
+ duplicate: "Duplicate",
2209
2209
  rotate: "Rotate",
2210
2210
  delete: "Delete",
2211
2211
  collapse: "Collapse images menu",
@@ -2231,7 +2231,11 @@ function ImagesMenu({
2231
2231
  if (managed.length === 0) {
2232
2232
  return null;
2233
2233
  }
2234
- const resolvedLabels = { ...defaultLabels, ...labels };
2234
+ const resolvedLabels = {
2235
+ ...defaultLabels,
2236
+ ...labels,
2237
+ duplicate: labels?.duplicate ?? labels?.copy ?? defaultLabels.duplicate
2238
+ };
2235
2239
  if (collapsed) {
2236
2240
  return /* @__PURE__ */ jsxRuntime.jsx(
2237
2241
  "button",
@@ -2345,7 +2349,7 @@ function ImagesMenuRow({
2345
2349
  ),
2346
2350
  /* @__PURE__ */ jsxRuntime.jsx(FocusTarget, { label: labels.focus, onFocus, children: /* @__PURE__ */ jsxRuntime.jsx("div", { style: thumbBoxStyle, children: src ? /* @__PURE__ */ jsxRuntime.jsx("img", { src, alt: "", style: thumbImgStyle, draggable: false }) : null }) }),
2347
2351
  /* @__PURE__ */ jsxRuntime.jsxs("div", { style: actionsColumnStyle, children: [
2348
- /* @__PURE__ */ jsxRuntime.jsx(ImagesMenuAction, { label: labels.copy, onClick: onCopy, children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Copy, { size: 18 }) }),
2352
+ /* @__PURE__ */ jsxRuntime.jsx(ImagesMenuAction, { label: labels.duplicate, onClick: onCopy, children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CopyPlus, { size: 18 }) }),
2349
2353
  /* @__PURE__ */ jsxRuntime.jsx(ImagesMenuAction, { label: labels.rotate, onClick: onRotate, children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.RotateCw, { size: 18 }) }),
2350
2354
  /* @__PURE__ */ jsxRuntime.jsx(ImagesMenuAction, { label: labels.delete, onClick: onDelete, danger: true, children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Trash2, { size: 18 }) })
2351
2355
  ] })