@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.
|
|
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.
|
|
53
|
+
"@sarimarcus/content-sites-core": "0.55.2"
|
|
54
54
|
}
|
|
55
55
|
}
|
|
@@ -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
|
|
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(
|
|
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
|
}
|
package/src/affiliate/types.ts
CHANGED
|
@@ -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`. */
|