@tokenoftrust/storefront-runner 2.4.31 → 2.4.32

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.
@@ -38,7 +38,8 @@ const railId = `promo-${tenantId.replace(/[^a-z0-9]+/gi, "-")}-${(block.title ??
38
38
  alt={tile.imageAlt ?? tile.label}
39
39
  width={tile.imageWidth}
40
40
  height={tile.imageHeight}
41
- loading="lazy"
41
+ loading={tile.loading}
42
+ fetchpriority={tile.fetchpriority}
42
43
  class:list={tile.imageClass}
43
44
  />
44
45
  )}
@@ -70,13 +70,15 @@ export function promoTilesView(
70
70
  gridClass,
71
71
  tiles: block.tiles
72
72
  .filter((tile) => isSafeStorefrontHref(tile.href))
73
- .map((tile) => ({
73
+ .map((tile, index) => ({
74
74
  ...tile,
75
75
  href: withBase(basePath, tile.href),
76
76
  image: isSafeRehostedAssetPathForTenant(tile.image, tenantId) ? tile.image : undefined,
77
77
  imageAlt: tile.imageAlt ?? tile.label,
78
78
  imageWidth: isLogoStrip ? 160 : 800,
79
79
  imageHeight: isLogoStrip ? 80 : isPortrait ? 1000 : 450,
80
+ loading: index === 0 ? ("eager" as const) : ("lazy" as const),
81
+ fetchpriority: index === 0 ? ("high" as const) : undefined,
80
82
  imageClass: [
81
83
  "transition-transform duration-300 group-hover:scale-[1.02]",
82
84
  isOverlay && "absolute inset-0 h-full w-full object-cover group-hover:scale-105",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tokenoftrust/storefront-runner",
3
- "version": "2.4.31",
3
+ "version": "2.4.32",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "description": "World-shareable storefront runner: multi-tenant renderer on Astro/Cloudflare. No control plane.",
6
6
  "packageManager": "pnpm@11.9.0",