@sarimarcus/content-sites-tourism 0.73.0 → 0.74.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,18 @@
2
2
 
3
3
  All packages in the platform release in lockstep; entries are per release version.
4
4
 
5
+ ## 0.74.1 (2026-11-16)
6
+
7
+ Patch (SLA-4247). No codemod.
8
+
9
+ - `TourismItinerariesHub` top-aligns the hero's text and photo columns (`align-items: start`), so long hero copy no longer pushes the photo below the header line on desktop. Scoped to the itineraries hub; the homepage and months index heroes keep `align-items: end`.
10
+
11
+ ## 0.74.0 (2026-11-15)
12
+
13
+ Additive (SLA-4242). No codemod.
14
+
15
+ - `journeyMeta(journey)` is exported from `./templates/itineraries`, and `TourismItinerariesHub` renders it for a day trip whose model item sets no `journeyMeta` ("mode · duration · from €X"). A site can drop its own `journeyMeta` helper; an item that still sets the field renders as before.
16
+
5
17
  ## 0.73.0 (2026-11-15)
6
18
 
7
19
  Additive (SLA-4156). No codemod.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sarimarcus/content-sites-tourism",
3
- "version": "0.73.0",
3
+ "version": "0.74.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",
@@ -40,7 +40,7 @@
40
40
  "peerDependencies": {
41
41
  "astro": "^7.0.6",
42
42
  "tailwindcss": "^4.1.18",
43
- "@sarimarcus/content-sites-core": "0.73.0",
44
- "@sarimarcus/content-sites-ui": "0.73.0"
43
+ "@sarimarcus/content-sites-core": "0.74.1",
44
+ "@sarimarcus/content-sites-ui": "0.74.1"
45
45
  }
46
46
  }
@@ -6,7 +6,7 @@ import { AuthoritativeSources } from '@sarimarcus/content-sites-ui/seo';
6
6
  import { Container } from '@sarimarcus/content-sites-ui/layout';
7
7
  import MonthStripNav from './MonthStripNav.astro';
8
8
  import ItnChecked from './ItnChecked.astro';
9
- import { compareRows, itinerariesToc, rowId, type TourismItinerariesModel } from './tourismItinerariesModel';
9
+ import { compareRows, itinerariesToc, journeyMeta, rowId, type TourismItinerariesModel } from './tourismItinerariesModel';
10
10
 
11
11
  interface Props { model: TourismItinerariesModel }
12
12
  const { model } = Astro.props;
@@ -160,7 +160,7 @@ const [toc, tips, faqHtml, afterFaq] = await Promise.all(['toc', 'tips', 'faq',
160
160
  {t.image && <div class="hp-img"><ResponsiveImage src={t.image} alt="" sizes="160px" loading="lazy" /></div>}
161
161
  <h3><span class="itn-n" aria-hidden="true">{i + 1}</span><a class="hp-quiet" href={t.href}>{t.name}</a></h3>
162
162
  {t.text && <p>{t.text}</p>}
163
- <span class="hp-meta">{t.journeyMeta}</span>
163
+ <span class="hp-meta">{t.journeyMeta ?? journeyMeta(t.journey)}</span>
164
164
  </li>
165
165
  ))}
166
166
  </ol>
@@ -255,6 +255,7 @@ const [toc, tips, faqHtml, afterFaq] = await Promise.all(['toc', 'tips', 'faq',
255
255
 
256
256
  <style>
257
257
  .hp.itn .itn-lead { padding-top: clamp(2rem, 5vw, 3.5rem); }
258
+ .hp.itn .itn-lead .hp-lead__top { align-items: start; }
258
259
  .hp .itn-also { margin-top: 0.75rem; font-size: 0.9375rem; color: var(--muted-foreground); }
259
260
  .hp .itn-intro { margin-top: 1rem; display: grid; gap: 0.75rem; max-width: 40rem; }
260
261
  .hp .itn-byline { margin-top: 1.25rem; }
@@ -1,5 +1,5 @@
1
1
  export { default as TourismItinerariesHub } from './TourismItinerariesHub.astro';
2
- export { compareRows, itinerariesJsonLd, itinerariesToc } from './tourismItinerariesModel';
2
+ export { compareRows, itinerariesJsonLd, itinerariesToc, journeyMeta } from './tourismItinerariesModel';
3
3
  export type {
4
4
  TourismItinerariesModel, HubItinerary, HubCompare, HubChecked, HubHead, HubStyle, HubTocEntry, HubSchemaEntry,
5
5
  } from './tourismItinerariesModel';
@@ -151,6 +151,9 @@ export function itinerariesToc(model: TourismItinerariesModel): HubTocEntry[] {
151
151
  export const compareRows = (model: TourismItinerariesModel) =>
152
152
  model.compare ? model.stays.items.filter((i): i is HubItinerary & { compare: HubCompare } => !!i.compare) : [];
153
153
 
154
+ export const journeyMeta = (journey: HubItinerary['journey']) =>
155
+ journey ? [journey.mode, journey.duration, journey.fromPrice && `from ${journey.fromPrice}`].filter(Boolean).join(' · ') : '';
156
+
154
157
  export const rowId = (prefix: string, item: { slug?: string }) => (item.slug ? `${prefix}-${item.slug}` : undefined);
155
158
 
156
159
  export interface HubSchemaEntry { type: string; data: Record<string, unknown> }