@sarimarcus/content-sites-tourism 0.55.3 → 0.56.1

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.56.1 (2026-11-05)
6
+
7
+ - Lockstep release, no change (SLA-3723).
8
+
9
+ ## 0.56.0 (2026-11-05)
10
+
11
+ - `sections`: `ArticleCardGrid` now forwards to `@sarimarcus/content-sites-ui/editorial` `ArticleCardGrid` while keeping its `@sarimarcus/content-sites-tourism/sections` export and adapter path (SLA-3716).
12
+
5
13
  ## 0.55.3 (2026-11-04)
6
14
 
7
15
  - Lockstep release, no change (SLA-3327).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sarimarcus/content-sites-tourism",
3
- "version": "0.55.3",
3
+ "version": "0.56.1",
4
4
  "description": "City-tourism vertical: city-entity components, pages templates and utilities for the tourism sites.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -38,7 +38,7 @@
38
38
  "peerDependencies": {
39
39
  "astro": "^7.0.6",
40
40
  "tailwindcss": "^4.1.18",
41
- "@sarimarcus/content-sites-core": "0.55.3",
42
- "@sarimarcus/content-sites-ui": "0.55.3"
41
+ "@sarimarcus/content-sites-core": "0.56.1",
42
+ "@sarimarcus/content-sites-ui": "0.56.1"
43
43
  }
44
44
  }
@@ -1,59 +1,11 @@
1
1
  ---
2
2
  /**
3
- * ArticleCardGrid — the article listing grid (ui ArticleGrid) from article collection entries: the date label shows
4
- * the last update when it falls on another calendar day than publication, formatted in `timeZone`.
3
+ * ArticleCardGrid — tourism section wrapper forwarding to `@sarimarcus/content-sites-ui/editorial` `ArticleCardGrid`.
5
4
  */
6
- import type { ImageMetadata } from 'astro';
7
- import { ArticleGrid } from '@sarimarcus/content-sites-ui/editorial';
8
- import { isUpdatedAfterPublication } from '@sarimarcus/content-sites-core/articles';
9
- import { formatDisplayDay } from '@sarimarcus/content-sites-core/dates';
10
- import { routePath, url, type SiteRoutes } from '@sarimarcus/content-sites-core/url';
11
- import { getLabels } from '../internal/labels';
5
+ import { ArticleCardGrid as UiArticleCardGrid, type ArticleCardGridEntry } from '@sarimarcus/content-sites-ui/editorial';
12
6
 
13
- export interface ArticleCardGridEntry {
14
- data: {
15
- slug: string;
16
- title: string;
17
- description: string;
18
- author?: string;
19
- imageAlt?: string;
20
- datePublished?: string;
21
- dateModified?: string;
22
- };
23
- }
24
-
25
- interface Props {
26
- articles: ArticleCardGridEntry[];
27
- articleImages: Record<string, ImageMetadata>;
28
- /** IANA zone the card dates are shown in. */
29
- timeZone?: string;
30
- /** BCP-47 locale for card dates and default labels (defaults to `en-GB`). */
31
- locale?: string;
32
- readLabel?: string;
33
- updatedLabel?: string;
34
- /** Overrides of the `articles` route. */
35
- routes?: SiteRoutes;
36
- /** Grid classes; defaults to 1/2/3 columns. */
37
- class?: string;
38
- }
39
-
40
- const { articles, articleImages, timeZone = 'Europe/Madrid', locale = Astro.currentLocale && Astro.currentLocale !== 'en' ? Astro.currentLocale : 'en-GB', readLabel = getLabels(locale).articleCardGrid.readLabel, updatedLabel = getLabels(locale).articleCardGrid.updatedLabel, routes, class: className = 'grid gap-6 sm:grid-cols-2 lg:grid-cols-3' } = Astro.props;
41
-
42
- const items = articles.map(({ data: a }) => {
43
- const updated = isUpdatedAfterPublication(a);
44
- const dateTime = (updated ? a.dateModified : a.datePublished) ?? '';
45
- return {
46
- href: url(routePath('articles', a.slug, routes)),
47
- title: a.title,
48
- description: a.description,
49
- author: a.author,
50
- image: articleImages[a.slug],
51
- imageAlt: a.imageAlt,
52
- dateTime,
53
- dateLabel: formatDisplayDay(dateTime, locale, timeZone),
54
- updated,
55
- };
56
- });
7
+ export type { ArticleCardGridEntry };
8
+ type Props = Parameters<typeof UiArticleCardGrid>[0];
57
9
  ---
58
10
 
59
- <ArticleGrid articles={items} readLabel={readLabel} updatedLabel={updatedLabel} class={className} />
11
+ <UiArticleCardGrid {...Astro.props} />
@@ -12,6 +12,7 @@ export { default as HomeTripPlanner } from './HomeTripPlanner.astro';
12
12
  export { default as MonumentBody } from './MonumentBody.astro';
13
13
  export { default as MonumentBodySlot } from './MonumentBodySlot.astro';
14
14
  export { default as ArticleCardGrid } from './ArticleCardGrid.astro';
15
+ export type { ArticleCardGridEntry } from './ArticleCardGrid.astro';
15
16
  export { default as RelatedBlock } from './RelatedBlock.astro';
16
17
  export { default as MonumentHero } from './MonumentHero.astro';
17
18
  export { default as QuartierHero } from './QuartierHero.astro';
@@ -30,7 +31,6 @@ export type { SituationalScenario } from './SituationalNav.astro';
30
31
  export type { HubCategoryPill } from './NeighborhoodHubHero.astro';
31
32
  export type { ItineraryTeaserStop } from './ItineraryTeaser.astro';
32
33
  export type { HomeTripPlannerCard } from './HomeTripPlanner.astro';
33
- export type { ArticleCardGridEntry } from './ArticleCardGrid.astro';
34
34
  export type {
35
35
  MonumentBodyContent, MonumentBodySection, MonumentBodyVisitTiming, MonumentBodyTip, MonumentBodyLabels,
36
36
  } from './monumentBody.ts';