@sarimarcus/content-sites-ui 0.46.0 → 0.47.0
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 +4 -0
- package/package.json +2 -2
- package/src/editorial/PeopleHub.astro +27 -6
- package/src/internal/labels.ts +1 -0
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.47.0 (2026-10-23)
|
|
6
|
+
|
|
7
|
+
- `editorial`: `PeopleHub` people take optional `places` (`{ label, href }[]`); when any person has them, the closing block adds a "Where to find them" list (`LABELS.peopleHub.placesHeading`, prop `placesHeading`) linking each person to their places. Without `places` the markup is unchanged (SLA-3311).
|
|
8
|
+
|
|
5
9
|
## 0.46.0 (2026-10-22)
|
|
6
10
|
|
|
7
11
|
- `editorial`: new `EraListingPage`, an era's article listing (`/articles/era/<id>`) on the `ArticlesListingPage` shell: the era hero in a `<figure>`, a labelled list section with `grid` and `pagination` slots, a `go-deeper` slot and the era's dossier links on page 1; a page above 1 carries only the grid and pagination. `EraScenes` takes an optional `articleListings` (`{ [eraId]: { href, count } }`); when set, an era's articles strip ends with an "All N articles" link (`LABELS.eraScenes.allArticlesLabel`). Without it the markup is unchanged (SLA-3306).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sarimarcus/content-sites-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.47.0",
|
|
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.
|
|
53
|
+
"@sarimarcus/content-sites-core": "0.47.0"
|
|
54
54
|
}
|
|
55
55
|
}
|
|
@@ -21,6 +21,8 @@ interface HubPerson extends PeopleTimelineEntry {
|
|
|
21
21
|
imageAlt: string;
|
|
22
22
|
roles?: readonly string[];
|
|
23
23
|
knownFor?: string;
|
|
24
|
+
/** Places tied to this person (monuments etc.), linked in the closing block. */
|
|
25
|
+
places?: readonly { label: string; href: string }[];
|
|
24
26
|
}
|
|
25
27
|
|
|
26
28
|
interface Props {
|
|
@@ -40,6 +42,7 @@ interface Props {
|
|
|
40
42
|
indexLabel?: string;
|
|
41
43
|
timelineLabel?: string;
|
|
42
44
|
footstepsHeading?: string;
|
|
45
|
+
placesHeading?: string;
|
|
43
46
|
}
|
|
44
47
|
|
|
45
48
|
const {
|
|
@@ -54,6 +57,7 @@ const {
|
|
|
54
57
|
indexLabel = LABELS.peopleHub.indexLabel,
|
|
55
58
|
timelineLabel,
|
|
56
59
|
footstepsHeading = LABELS.peopleHub.footstepsHeading,
|
|
60
|
+
placesHeading = LABELS.peopleHub.placesHeading,
|
|
57
61
|
} = Astro.props;
|
|
58
62
|
|
|
59
63
|
const introParagraphs = introHtml ?? intro.map(textAsHtml);
|
|
@@ -61,6 +65,7 @@ const eraNote = (id: string) => eraNotesHtml[id] ?? (eraNotes[id] ? textAsHtml(e
|
|
|
61
65
|
const segments = layoutPeopleTimeline(eras, people);
|
|
62
66
|
const sections = segments.map(({ era, dots }) => ({ era, group: dots }));
|
|
63
67
|
const footsteps = footstepLinks(segments.map((s) => s.era));
|
|
68
|
+
const withPlaces = segments.flatMap((s) => s.dots).filter((p): p is typeof p & { places: NonNullable<typeof p.places> } => !!p.places?.length);
|
|
64
69
|
---
|
|
65
70
|
|
|
66
71
|
<div class="bg-muted/30 border-b border-border pt-12 pb-10" data-pagefind-body>
|
|
@@ -104,14 +109,30 @@ const footsteps = footstepLinks(segments.map((s) => s.era));
|
|
|
104
109
|
</div>
|
|
105
110
|
</section>
|
|
106
111
|
))}
|
|
107
|
-
{footsteps.length > 0 && (
|
|
112
|
+
{(footsteps.length > 0 || withPlaces.length > 0) && (
|
|
108
113
|
<section class="border-t border-border pt-10" aria-labelledby="people-footsteps-heading">
|
|
109
114
|
<h2 id="people-footsteps-heading" class="font-display text-2xl font-semibold text-foreground">{footstepsHeading}</h2>
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
+
{footsteps.length > 0 && (
|
|
116
|
+
<ul class="mt-4 grid gap-x-8 sm:grid-cols-2">
|
|
117
|
+
{footsteps.map((link) => (
|
|
118
|
+
<li><LinkArrow href={link.href} color="secondary" class="min-h-11">{link.label}</LinkArrow></li>
|
|
119
|
+
))}
|
|
120
|
+
</ul>
|
|
121
|
+
)}{withPlaces.length > 0 && (
|
|
122
|
+
<>
|
|
123
|
+
<h3 class="mt-8 font-display text-lg font-semibold text-foreground">{placesHeading}</h3>
|
|
124
|
+
<ul class="mt-3 grid gap-x-8 gap-y-3 sm:grid-cols-2">
|
|
125
|
+
{withPlaces.map((p) => (
|
|
126
|
+
<li class="text-base text-foreground">
|
|
127
|
+
<a href={p.href} class="font-medium text-primary hover:underline">{p.name}</a><span class="text-muted-foreground">: </span>
|
|
128
|
+
{p.places.map((place, i) => (
|
|
129
|
+
<>{i > 0 && ', '}<a href={place.href} class="text-secondary hover:underline">{place.label}</a></>
|
|
130
|
+
))}
|
|
131
|
+
</li>
|
|
132
|
+
))}
|
|
133
|
+
</ul>
|
|
134
|
+
</>
|
|
135
|
+
)}
|
|
115
136
|
</section>
|
|
116
137
|
)}
|
|
117
138
|
</Container>
|
package/src/internal/labels.ts
CHANGED