@sarimarcus/content-sites-ui 0.55.2 → 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
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
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
|
+
|
|
5
9
|
## 0.55.2 (2026-11-04)
|
|
6
10
|
|
|
7
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).
|
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
|
}
|
|
@@ -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>
|