@sarimarcus/content-sites-ui 0.59.0 → 0.60.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,12 @@
|
|
|
2
2
|
|
|
3
3
|
All packages in the platform release in lockstep; entries are per release version.
|
|
4
4
|
|
|
5
|
+
## 0.60.0 (2026-11-06)
|
|
6
|
+
|
|
7
|
+
Article cards and the editorial home lead link through core `articlePath`, so a site's `routes.articleItem` reaches them. Without that route the hrefs are unchanged: `render-diff` against 0.59.0 is identical for both with default routes (`tests/fixtures/render-diff/article-path-default.json`).
|
|
8
|
+
|
|
9
|
+
- `ArticleCardGrid`, `EditorialHomePage`: the article href is `articlePath(slug, category, routes)` instead of `routePath('articles', slug, routes)`.
|
|
10
|
+
|
|
5
11
|
## 0.59.0 (2026-11-06)
|
|
6
12
|
|
|
7
13
|
Opt-in slimmer author block for the editorial article head. Defaults keep today's markup: `render-diff` against 0.58.0 is byte-identical for `ArticleMetadata`, `ShareButtons` (default and `compact`) and `ArticlePage` with the standard head (`tests/fixtures/render-diff/editorial-byline.json`).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sarimarcus/content-sites-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.60.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.
|
|
54
|
+
"@sarimarcus/content-sites-core": "0.60.0"
|
|
55
55
|
}
|
|
56
56
|
}
|
|
@@ -9,7 +9,7 @@ import type { ImageMetadata } from 'astro';
|
|
|
9
9
|
import { isUpdatedAfterPublication } from '@sarimarcus/content-sites-core/articles';
|
|
10
10
|
import { formatDisplayDay } from '@sarimarcus/content-sites-core/dates';
|
|
11
11
|
import { readingTime } from '@sarimarcus/content-sites-core/text';
|
|
12
|
-
import {
|
|
12
|
+
import { articlePath, url as defaultUrl, type SiteRoutes } from '@sarimarcus/content-sites-core/url';
|
|
13
13
|
import { getLabels } from '../internal/labels';
|
|
14
14
|
import ArticleGrid from './ArticleGrid.astro';
|
|
15
15
|
|
|
@@ -44,7 +44,7 @@ interface Props {
|
|
|
44
44
|
locale?: string;
|
|
45
45
|
readLabel?: string;
|
|
46
46
|
updatedLabel?: string;
|
|
47
|
-
/** Overrides of the `
|
|
47
|
+
/** Overrides of the article routes (`articleItem`). */
|
|
48
48
|
routes?: SiteRoutes;
|
|
49
49
|
/** Grid column count when `class` is not supplied (defaults to 3). */
|
|
50
50
|
columns?: 2 | 3;
|
|
@@ -86,7 +86,7 @@ const items = articles.map(({ data: a }) => {
|
|
|
86
86
|
? `${readingTime(a)} ${minutesSuffix}`
|
|
87
87
|
: undefined;
|
|
88
88
|
return {
|
|
89
|
-
href: resolveUrl(
|
|
89
|
+
href: resolveUrl(articlePath(a.slug, a.category, routes)),
|
|
90
90
|
title: a.title,
|
|
91
91
|
description: a.description,
|
|
92
92
|
author: a.author,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
type FeaturedSnapshot,
|
|
21
21
|
} from '@sarimarcus/content-sites-core/articles';
|
|
22
22
|
import { readingTime } from '@sarimarcus/content-sites-core/text';
|
|
23
|
-
import { routePath, type SiteRoutes } from '@sarimarcus/content-sites-core/url';
|
|
23
|
+
import { articlePath, routePath, type SiteRoutes } from '@sarimarcus/content-sites-core/url';
|
|
24
24
|
import Container from '../layout/Container.astro';
|
|
25
25
|
import { getLabels } from '../internal/labels';
|
|
26
26
|
import ArticleCardGrid, { type ArticleCardGridEntry } from './ArticleCardGrid.astro';
|
|
@@ -142,7 +142,7 @@ const leadReadMins = lead?.data.sections ? readingTime({ sections: lead.data.sec
|
|
|
142
142
|
<Container>
|
|
143
143
|
<section aria-label={l.featuredEyebrow} class="mb-14">
|
|
144
144
|
<ArticleFeatureCard
|
|
145
|
-
href={url(
|
|
145
|
+
href={url(articlePath(lead.data.slug, lead.data.category, routes))}
|
|
146
146
|
title={lead.data.title}
|
|
147
147
|
description={lead.data.description}
|
|
148
148
|
author={lead.data.author ?? brand}
|