dune-react 0.0.44 → 0.0.45
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.
|
@@ -387,7 +387,7 @@ function MediaEditDialog({
|
|
|
387
387
|
value: "adjust",
|
|
388
388
|
className: "m-3 animate-tabs flex flex-col overflow-hidden rounded-lg",
|
|
389
389
|
children: [
|
|
390
|
-
/* @__PURE__ */ jsx("div", { className: "overflow-hidden rounded-t-lg bg-muted", children: /* @__PURE__ */ jsx(
|
|
390
|
+
/* @__PURE__ */ jsx("div", { className: "overflow-hidden rounded-t-lg bg-muted min-h-[256px]", children: /* @__PURE__ */ jsx(
|
|
391
391
|
Cropper,
|
|
392
392
|
{
|
|
393
393
|
ref: cropperRef,
|
|
@@ -3,7 +3,6 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { useRef, useEffect, useCallback } from "react";
|
|
4
4
|
import { registerOverlayPortal } from "@puckeditor/core";
|
|
5
5
|
import { usePuckDispatch, usePuckAppState } from "./hooks.js";
|
|
6
|
-
import { Pencil } from "lucide-react";
|
|
7
6
|
import { useEditorContext } from "./context/editor-context.js";
|
|
8
7
|
import set from "../../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/set.js";
|
|
9
8
|
const BLOCK_LEVEL_TYPES = /* @__PURE__ */ new Set(["image", "media"]);
|
|
@@ -94,8 +93,8 @@ function withEditable(Component, config) {
|
|
|
94
93
|
transform: `scale(${inverseScale})`,
|
|
95
94
|
transformOrigin: "center center"
|
|
96
95
|
},
|
|
97
|
-
className: "flex
|
|
98
|
-
children: /* @__PURE__ */ jsx(
|
|
96
|
+
className: "flex items-center justify-center rounded-full bg-black/50 px-2 py-1 shadow-md backdrop-blur-sm",
|
|
97
|
+
children: /* @__PURE__ */ jsx("span", { className: "text-xs font-medium text-white", children: "Edit" })
|
|
99
98
|
}
|
|
100
99
|
) })
|
|
101
100
|
] });
|
|
@@ -106,8 +105,8 @@ function withEditable(Component, config) {
|
|
|
106
105
|
"span",
|
|
107
106
|
{
|
|
108
107
|
onClick: handleEdit,
|
|
109
|
-
className: "flex
|
|
110
|
-
children: /* @__PURE__ */ jsx(
|
|
108
|
+
className: "flex items-center justify-center rounded-full bg-black/50 px-2 py-1 shadow-md backdrop-blur-sm",
|
|
109
|
+
children: /* @__PURE__ */ jsx("span", { className: "text-xs font-medium text-white", children: "Edit" })
|
|
111
110
|
}
|
|
112
111
|
) })
|
|
113
112
|
] });
|