@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 { useAssetUrl } from "../../lib/contexts/AssetContext";
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
- ? assetUrl(section.background_image)
61
+ ? adminAssetUrl(section.background_image)
63
62
  : null;
64
63
 
65
64
  const effectiveRows = useMemo(
package/lib/version.ts CHANGED
@@ -6,4 +6,4 @@
6
6
  * Exposed as a plain constant so it can be imported without reading
7
7
  * package.json at runtime.
8
8
  */
9
- export const ANDAMI_VERSION = "0.2.19";
9
+ export const ANDAMI_VERSION = "0.2.22";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@morphika/andami",
3
- "version": "0.2.19",
3
+ "version": "0.2.22",
4
4
  "description": "Visual Page Builder — core library. A reusable website builder with visual editing, CMS integration, and asset management.",
5
5
  "type": "module",
6
6
  "license": "MIT",