@sarimarcus/content-sites-ui 0.77.0 → 0.78.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 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.78.0 (2026-11-19)
6
+
7
+ - `ArticleMetadata` with `compact` and an `era` (the editorial rail head): the era renders as a text link (history icon, label · range) on its own line under the byline instead of a pill beside it; in the ~200px desktop rail the pill wrapped into a cramped 3–4 line block. Without `compact` the layout is unchanged (SLA-4389).
8
+
9
+ ### Intended output changes
10
+
11
+ - `html:articles/**` — on sites whose articles use `headVariant="editorial"`, era articles' rail era chip becomes a text link under the byline.
12
+
5
13
  ## 0.77.0 (2026-11-19)
6
14
 
7
15
  - No source change; lockstep release with the tourism `/whats-on` fixes (SLA-4361).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sarimarcus/content-sites-ui",
3
- "version": "0.77.0",
3
+ "version": "0.78.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",
@@ -51,6 +51,6 @@
51
51
  "@lucide/astro": "^1.23.0",
52
52
  "astro": "^7.0.6",
53
53
  "tailwindcss": "^4.1.18",
54
- "@sarimarcus/content-sites-core": "0.77.0"
54
+ "@sarimarcus/content-sites-core": "0.78.0"
55
55
  }
56
56
  }
@@ -17,8 +17,9 @@
17
17
  import { Image } from 'astro:assets';
18
18
  import { isUpdatedAfterPublication } from '@sarimarcus/content-sites-core/articles';
19
19
  import { formatDisplayDay } from '@sarimarcus/content-sites-core/dates';
20
- import type { EraDefinition } from '@sarimarcus/content-sites-core/eras';
20
+ import { eraHref, type EraDefinition } from '@sarimarcus/content-sites-core/eras';
21
21
  import Badge from '../primitives/Badge.astro';
22
+ import Icon from '../primitives/Icon.astro';
22
23
  import EraChip from '../editorial/EraChip.astro';
23
24
  import type { ArticleAuthor } from './types';
24
25
  import { getLabels } from '../internal/labels';
@@ -92,9 +93,18 @@ const aboutAuthorLabel = defaultLabels.articleMetadata.aboutAuthorLabel;
92
93
  const fullProfileLabel = defaultLabels.articleMetadata.fullProfileLabel;
93
94
  const grouped = bylineWhitespace === 'grouped';
94
95
  const bylineLead = author ? (grouped ? ' ' : ' ') : (grouped ? '' : ' ');
96
+ // With `compact` (the ~200px desktop rail) the era is a text link: a pill wrapped into a cramped block there.
95
97
  ---
96
98
 
97
- {era ? (
99
+ {era && compact ? (
100
+ <div class="flex flex-col items-start">
101
+ <Astro.self {...bylineProps} />
102
+ <a href={eraHref(era, eraBasePath)} data-era={era.id} aria-label={defaultLabels.eraChip.ariaLabel(era.label, era.rangeLabel)}
103
+ class="mb-4 inline-flex min-h-[44px] items-center gap-1.5 text-sm text-muted-foreground hover:text-primary hover:underline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary">
104
+ <Icon name="history" class="h-3.5 w-3.5 shrink-0 text-primary" /><span>{era.label} · <span class="whitespace-nowrap tabular-nums">{era.rangeLabel}</span></span>
105
+ </a>
106
+ </div>
107
+ ) : era ? (
98
108
  <div class="flex flex-wrap items-start justify-between gap-x-6">
99
109
  <div class="min-w-0 basis-full sm:basis-0 sm:flex-1"><Astro.self {...bylineProps} /></div>
100
110
  <EraChip era={era} basePath={eraBasePath} class="mb-5 self-start" />