@morphika/andami 0.2.19 → 0.2.22
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.
|
@@ -7,7 +7,7 @@ import type { DeviceViewport } from "../../lib/builder/types";
|
|
|
7
7
|
import SectionV2Canvas from "./SectionV2Canvas";
|
|
8
8
|
import CoverRowResizeHandle from "./CoverRowResizeHandle";
|
|
9
9
|
import { DEVICE_HEIGHTS } from "../../lib/builder/types";
|
|
10
|
-
import {
|
|
10
|
+
import { adminAssetUrl } from "../../lib/assets";
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* CoverSectionCanvas — renders a CoverSection in the builder canvas.
|
|
@@ -51,7 +51,6 @@ export default function CoverSectionCanvas({
|
|
|
51
51
|
const store = useBuilderStore();
|
|
52
52
|
const activeViewport = store.activeViewport || "desktop";
|
|
53
53
|
const previewMode = store.previewMode;
|
|
54
|
-
const assetUrl = useAssetUrl();
|
|
55
54
|
const [isSectionHovered, setIsSectionHovered] = useState(false);
|
|
56
55
|
|
|
57
56
|
const vhPixels = DEVICE_HEIGHTS[activeViewport];
|
|
@@ -59,7 +58,7 @@ export default function CoverSectionCanvas({
|
|
|
59
58
|
const containerHeight = Math.round(vhPixels * heightMultiplier);
|
|
60
59
|
|
|
61
60
|
const bgImageUrl = section.background_type === "image" && section.background_image
|
|
62
|
-
?
|
|
61
|
+
? adminAssetUrl(section.background_image)
|
|
63
62
|
: null;
|
|
64
63
|
|
|
65
64
|
const effectiveRows = useMemo(
|
package/lib/version.ts
CHANGED
package/package.json
CHANGED