@sarimarcus/content-sites-tourism 0.73.0 → 0.74.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.74.0 (2026-11-15)
|
|
6
|
+
|
|
7
|
+
Additive (SLA-4242). No codemod.
|
|
8
|
+
|
|
9
|
+
- `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.
|
|
10
|
+
|
|
5
11
|
## 0.73.0 (2026-11-15)
|
|
6
12
|
|
|
7
13
|
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.
|
|
3
|
+
"version": "0.74.0",
|
|
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.
|
|
44
|
-
"@sarimarcus/content-sites-ui": "0.
|
|
43
|
+
"@sarimarcus/content-sites-core": "0.74.0",
|
|
44
|
+
"@sarimarcus/content-sites-ui": "0.74.0"
|
|
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>
|
|
@@ -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> }
|