@sarimarcus/content-sites-ui 0.55.0 → 0.55.2

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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  All packages in the platform release in lockstep; entries are per release version.
4
4
 
5
+ ## 0.55.2 (2026-11-04)
6
+
7
+ - `affiliate`: `AffiliateCardItem` and `gygCardItem` accept an optional per-card `placement` override that `AffiliateCardSection` and `AffiliateCarousel` prefer over their section-level `placement` prop; `widgetSrc` forwards `WidgetOptions.subId` (SLA-3334).
8
+
9
+ ## 0.55.1 (2026-11-04)
10
+
11
+ - `AuthorPage`: constrain the `<main>` body `<Container>` to `size="measure"` (`max-w-measure`) so author profile pages match the `article` page-rail archetype across all sites (SLA-3756).
12
+
5
13
  ## 0.55.0 (2026-11-04)
6
14
 
7
15
  - `editorial`: add `AuthorPage`, `AuthorsIndexPage`, `groupAuthorWork`, and `socialLinkLabel` (with `authorPage` and `authorsIndexPage` labels in `LABELS` and `LABELS_IT`) — solid `bg-muted` header band, `BreadcrumbBand`, `ResponsiveImage` portrait (`sizes` + `fetchpriority="high"`), solid `bg-accent` rule, and slots/props for expertise chips, credentials, social links, grouped work with "Show N more" disclosure, topic hubs, editorial prose, author cards, and FAQ (SLA-3756).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sarimarcus/content-sites-ui",
3
- "version": "0.55.0",
3
+ "version": "0.55.2",
4
4
  "description": "Universal Astro UI components, layout shell and design tokens shared by the content sites.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -50,6 +50,6 @@
50
50
  "@lucide/astro": "^1.23.0",
51
51
  "astro": "^7.0.6",
52
52
  "tailwindcss": "^4.1.18",
53
- "@sarimarcus/content-sites-core": "0.55.0"
53
+ "@sarimarcus/content-sites-core": "0.55.2"
54
54
  }
55
55
  }
@@ -52,7 +52,7 @@ const imageSizes = bandImageSizes(visible.length);
52
52
  {...cardOptions}
53
53
  {...item}
54
54
  index={index}
55
- placement={placement}
55
+ placement={item.placement ?? placement}
56
56
  imageSizes={imageSizes}
57
57
  imageFetchpriority={imageFetchpriority}
58
58
  />
@@ -81,7 +81,7 @@ const visible = shown.map((a) => {
81
81
  locale={locale}
82
82
  {...cardOptions}
83
83
  {...item}
84
- placement={placement}
84
+ placement={item.placement ?? placement}
85
85
  imageSizes={imageSizes}
86
86
  index={index}
87
87
  />
@@ -28,10 +28,13 @@ const LOCALES: Record<string, string> = { en: 'en-GB', fr: 'fr-FR', it: 'it-IT',
28
28
  export const gygCardLocale = (language: string) => LOCALES[language] || 'en-GB';
29
29
 
30
30
  /**
31
- * A cached GYG activity as an AffiliateCard item. The site passes what it owns: the campaign-tagged `href` and the
32
- * resolved `image`.
31
+ * A cached GYG activity as an AffiliateCard item. The site passes what it owns: the campaign-tagged `href`, the
32
+ * resolved `image`, and an optional per-card `placement` override.
33
33
  */
34
- export function gygCardItem(a: GygCardActivity, { href, image }: { href: string; image: AffiliateCardItem['image'] }): AffiliateCardItem {
34
+ export function gygCardItem(
35
+ a: GygCardActivity,
36
+ { href, image, placement }: { href: string; image: AffiliateCardItem['image']; placement?: string },
37
+ ): AffiliateCardItem {
35
38
  return {
36
39
  href,
37
40
  provider: 'gyg',
@@ -45,5 +48,6 @@ export function gygCardItem(a: GygCardActivity, { href, image }: { href: string;
45
48
  reviewCount: a.reviewCount,
46
49
  duration: a.duration,
47
50
  locale: gygCardLocale(a.language),
51
+ ...(placement !== undefined ? { placement } : {}),
48
52
  };
49
53
  }
@@ -43,6 +43,8 @@ export interface AffiliateCardItem {
43
43
  reviewCount?: number;
44
44
  duration: string;
45
45
  locale?: string;
46
+ /** Optional per-card placement override (e.g. `festival-patios_gyg-1`); falls back to the section/carousel `placement`. */
47
+ placement?: string;
46
48
  }
47
49
 
48
50
  /** HotelAffiliateCTA copy; every key has an English default built from `entityNoun`. */
@@ -184,7 +184,7 @@ const hasWorksSlot = Astro.slots.has('works');
184
184
  </div>
185
185
 
186
186
  <main class="py-12">
187
- <Container>
187
+ <Container size="measure">
188
188
  {hasWorksSlot ? (
189
189
  <slot name="works" />
190
190
  ) : workItems.length > 0 ? (