@sarimarcus/content-sites-ui 0.55.1 → 0.55.3
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 +8 -0
- package/package.json +2 -2
- package/src/affiliate/AffiliateCardSection.astro +1 -1
- package/src/affiliate/AffiliateCarousel.astro +1 -1
- package/src/affiliate/cardItem.ts +7 -3
- package/src/affiliate/types.ts +2 -0
- package/src/editorial/EraListingPage.astro +9 -1
- package/src/editorial/EraListingRoute.astro +4 -0
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.3 (2026-11-04)
|
|
6
|
+
|
|
7
|
+
- `editorial`: `EraListingPage` and `EraListingRoute` accept optional page-1 `places` and `faq` slots (with `faq` rendered inside a `size="measure"` `Container` only when non-empty, matching `ArticleTopicPage`) (SLA-3327).
|
|
8
|
+
|
|
9
|
+
## 0.55.2 (2026-11-04)
|
|
10
|
+
|
|
11
|
+
- `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).
|
|
12
|
+
|
|
5
13
|
## 0.55.1 (2026-11-04)
|
|
6
14
|
|
|
7
15
|
- `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).
|
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.3",
|
|
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.3"
|
|
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`. */
|
|
@@ -9,7 +9,9 @@
|
|
|
9
9
|
* header-extra — a line under the lede (e.g. the article count and the era's date range). Page 1 only.
|
|
10
10
|
* grid — the site's article card grid for this page.
|
|
11
11
|
* pagination — the site's pagination.
|
|
12
|
+
* places — places-to-visit strip after the list. Page 1 only.
|
|
12
13
|
* go-deeper — related-content blocks after the list. Page 1 only.
|
|
14
|
+
* faq — the site FAQ block, rendered in a measure column at the bottom. Page 1 only.
|
|
13
15
|
*/
|
|
14
16
|
import type { ImageMetadata } from 'astro';
|
|
15
17
|
import type { EraDefinition } from '@sarimarcus/content-sites-core/eras';
|
|
@@ -36,6 +38,7 @@ interface Props {
|
|
|
36
38
|
const { eyebrow, heading, lede, era, hero, currentPage, listHeading, dossiersLabel } = Astro.props;
|
|
37
39
|
const first = currentPage === 1;
|
|
38
40
|
const headingId = `${era.anchor}-articles-heading`;
|
|
41
|
+
const faqHtml = first && Astro.slots.has('faq') ? (await Astro.slots.render('faq')).trim() : '';
|
|
39
42
|
---
|
|
40
43
|
|
|
41
44
|
{first ? (
|
|
@@ -63,9 +66,14 @@ const headingId = `${era.anchor}-articles-heading`;
|
|
|
63
66
|
<slot name="grid" />
|
|
64
67
|
<slot name="pagination" />
|
|
65
68
|
</section>
|
|
66
|
-
<slot name="go-deeper" />
|
|
69
|
+
<slot name="places" /><slot name="go-deeper" />
|
|
67
70
|
<EraDossiers era={era} label={dossiersLabel} />
|
|
68
71
|
</Container>
|
|
72
|
+
{faqHtml && (
|
|
73
|
+
<Container size="measure" class="mt-16">
|
|
74
|
+
<Fragment set:html={faqHtml} />
|
|
75
|
+
</Container>
|
|
76
|
+
)}
|
|
69
77
|
</ArticlesListingPage>
|
|
70
78
|
) : (
|
|
71
79
|
<ArticlesListingPage eyebrow={eyebrow} heading={heading} lede={lede}>
|
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
* `breadcrumbs`, `prevHref`, `nextHref`) and pass the same model here. Slots:
|
|
7
7
|
* grid — the site's article card grid for this page.
|
|
8
8
|
* pagination — the site's pagination.
|
|
9
|
+
* places — places-to-visit strip after the list. Page 1 only.
|
|
10
|
+
* faq — the site FAQ block, rendered in a measure column at the bottom. Page 1 only.
|
|
9
11
|
*/
|
|
10
12
|
import type { ImageMetadata } from 'astro';
|
|
11
13
|
import type { EraDefinition } from '@sarimarcus/content-sites-core/eras';
|
|
@@ -45,7 +47,9 @@ const { first, page, heading, trail, count, timelineHref, labels: L } = listing;
|
|
|
45
47
|
</Fragment>
|
|
46
48
|
<slot name="grid" slot="grid" />
|
|
47
49
|
<slot name="pagination" slot="pagination" />
|
|
50
|
+
<slot name="places" slot="places" />
|
|
48
51
|
<p slot="go-deeper" class="mt-12">
|
|
49
52
|
<LinkArrow href={timelineHref}>{L.timelineLink(era.label)}</LinkArrow>
|
|
50
53
|
</p>
|
|
54
|
+
<slot name="faq" slot="faq" />
|
|
51
55
|
</EraListingPage>
|