@r2digisolutions/components 0.25.6 → 0.25.7

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.
@@ -39,6 +39,8 @@
39
39
  meta?: string;
40
40
  priceLabel?: string;
41
41
  imageUrl?: string | null;
42
+ /** Fallback when `imageUrl` fails (e.g. thumb → full original). */
43
+ imageFallbackUrl?: string | null;
42
44
  href?: string;
43
45
  badge?: string;
44
46
  chip?: string;
@@ -640,6 +642,7 @@
640
642
  {#if item.imageUrl}
641
643
  <Image
642
644
  src={item.imageUrl}
645
+ fallbackSrc={item.imageFallbackUrl ?? undefined}
643
646
  alt={item.title}
644
647
  class="inset-0 absolute h-full w-full"
645
648
  objectFit="contain"
@@ -665,6 +668,7 @@
665
668
  <div class="h-36 w-full overflow-hidden">
666
669
  <Image
667
670
  src={item.imageUrl}
671
+ fallbackSrc={item.imageFallbackUrl ?? undefined}
668
672
  alt={item.title}
669
673
  class="h-full w-full"
670
674
  objectFit="cover"
@@ -705,6 +709,7 @@
705
709
  <div class="w-28 relative shrink-0 overflow-hidden">
706
710
  <Image
707
711
  src={item.imageUrl}
712
+ fallbackSrc={item.imageFallbackUrl ?? undefined}
708
713
  alt={item.title}
709
714
  class="inset-0 absolute h-full w-full"
710
715
  objectFit="cover"
@@ -846,6 +851,7 @@
846
851
  {#if selected.imageUrl}
847
852
  <Image
848
853
  src={selected.imageUrl}
854
+ fallbackSrc={selected.imageFallbackUrl ?? undefined}
849
855
  alt={selected.title}
850
856
  aspectRatio="16 / 9"
851
857
  objectFit="cover"
@@ -15,6 +15,8 @@ export type MapExplorerItem = {
15
15
  meta?: string;
16
16
  priceLabel?: string;
17
17
  imageUrl?: string | null;
18
+ /** Fallback when `imageUrl` fails (e.g. thumb → full original). */
19
+ imageFallbackUrl?: string | null;
18
20
  href?: string;
19
21
  badge?: string;
20
22
  chip?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@r2digisolutions/components",
3
- "version": "0.25.6",
3
+ "version": "0.25.7",
4
4
  "private": false,
5
5
  "description": "R2DigiSolutions Svelte 5 component library — Atomic Design, Tailwind 4, Light/Dark mode",
6
6
  "license": "MIT",