@sarimarcus/content-sites-tourism 0.71.0 → 0.72.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,17 @@
|
|
|
2
2
|
|
|
3
3
|
All packages in the platform release in lockstep; entries are per release version.
|
|
4
4
|
|
|
5
|
+
## 0.72.0 (2026-11-14)
|
|
6
|
+
|
|
7
|
+
Additive (SLA-4204).
|
|
8
|
+
|
|
9
|
+
- `TourismMonthGuide` event rows render optional `highlights` (a list) and `tips` from `MonthEventRow`; `events.tipLabel` prefixes a row tip. A row carrying either wraps its name in a `<div>` instead of the `<span>`; rows without them render byte-identical. No codemod.
|
|
10
|
+
- Render-diff case `tests/fixtures/render-diff/sla-4204-month-event-rows.json`. Proof: 3 tourism sites passed, html identical on every page.
|
|
11
|
+
|
|
12
|
+
### Intended output changes
|
|
13
|
+
|
|
14
|
+
- `css:added` — three rules for the event highlights list and tip (`.mg-ev-hl`, `.mg-ev-tip`).
|
|
15
|
+
|
|
5
16
|
## 0.71.0 (2026-11-14)
|
|
6
17
|
|
|
7
18
|
Additive (SLA-4167).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sarimarcus/content-sites-tourism",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.72.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.72.0",
|
|
44
|
+
"@sarimarcus/content-sites-ui": "0.72.0"
|
|
45
45
|
}
|
|
46
46
|
}
|
|
@@ -102,19 +102,24 @@ const thingMarks = things.marks ?? months.marks;
|
|
|
102
102
|
<tr><th scope="col">{events.columns.when}</th><th scope="col">{events.columns.name}</th>{showPlace && <th scope="col">{events.columns.place}</th>}{showEntry && <th scope="col">{events.columns.entry}</th>}</tr>
|
|
103
103
|
</thead>
|
|
104
104
|
<tbody>
|
|
105
|
-
{events.rows.map((r) =>
|
|
105
|
+
{events.rows.map((r) => {
|
|
106
|
+
const label = <>{r.href ? <a href={r.href}>{r.name}</a> : <span class="mg-evname">{r.name}</span>}{r.note && <span class="mg-note">{r.note}</span>}</>;
|
|
107
|
+
return (
|
|
106
108
|
<tr>
|
|
107
109
|
<td class="hp-when">{r.when}</td>
|
|
108
110
|
<th scope="row">
|
|
109
111
|
<div class="hp-cal__ev">
|
|
110
112
|
<span class="hp-cal__thumb">{r.image && <ResponsiveImage src={r.image} alt="" sizes="(min-width: 40rem) 96px, 152px" loading="lazy" />}</span>
|
|
111
|
-
|
|
113
|
+
{r.highlights?.length || r.tips
|
|
114
|
+
? <div class="hp-cal__name">{label}{r.highlights && r.highlights.length > 0 && <ul role="list" class="mg-ticks mg-ev-hl">{r.highlights.map((h) => <li>{h}</li>)}</ul>}{r.tips && <p class="mg-ev-tip">{events.tipLabel && <strong>{events.tipLabel} </strong>}{r.tips}</p>}</div>
|
|
115
|
+
: <span class="hp-cal__name">{label}</span>}
|
|
112
116
|
</div>
|
|
113
117
|
</th>
|
|
114
118
|
{showPlace && <td class="hp-where">{r.place}</td>}
|
|
115
119
|
{showEntry && <td class="hp-entry">{r.entry}</td>}
|
|
116
120
|
</tr>
|
|
117
|
-
|
|
121
|
+
);
|
|
122
|
+
})}
|
|
118
123
|
</tbody>
|
|
119
124
|
</table>
|
|
120
125
|
{events.more && <a class="hp-more" href={events.more.href}>{events.more.label}</a>}
|
|
@@ -326,6 +331,8 @@ const thingMarks = things.marks ?? months.marks;
|
|
|
326
331
|
.hp .mg-cal .hp-cal__thumb:empty { visibility: hidden; }
|
|
327
332
|
.hp .mg-evname { font-family: var(--font-display); font-size: 1.125rem; }
|
|
328
333
|
.hp .mg-note { display: block; margin-top: 0.25rem; font-size: 0.875rem; color: var(--muted-foreground); }
|
|
334
|
+
.hp .mg-ev-hl { margin: 0.5rem 0 0; font-size: 0.875rem; font-weight: 400; }
|
|
335
|
+
.hp .mg-ev-tip { margin: 0.5rem 0 0; font-size: 0.875rem; font-weight: 400; max-width: 40rem; }
|
|
329
336
|
|
|
330
337
|
.hp .mg-things .hp-rank__why { max-width: 44rem; }
|
|
331
338
|
|
|
@@ -342,6 +349,7 @@ const thingMarks = things.marks ?? months.marks;
|
|
|
342
349
|
.hp .mg-ticks > li + li { margin-top: 0.5rem; }
|
|
343
350
|
.hp .mg-ticks > li::before { content: ""; position: absolute; left: 0.125rem; top: 0.6em; width: 0.4rem; height: 0.4rem; transform: rotate(45deg); background: var(--primary-strong); }
|
|
344
351
|
.hp .hp-band--inverse .mg-ticks > li::before { background: var(--accent); }
|
|
352
|
+
.hp .mg-ev-hl > li + li { margin-top: 0.25rem; }
|
|
345
353
|
.hp .mg-food-tips { margin-top: 2rem; font-size: 0.9375rem; }
|
|
346
354
|
.hp .hp-dishes .mg-dish { font-family: var(--font-display); font-size: 1.1875rem; }
|
|
347
355
|
.hp .mg-food--solo { grid-template-columns: minmax(0, 1fr); }
|
|
@@ -33,7 +33,7 @@ export interface MonthClimateTable {
|
|
|
33
33
|
|
|
34
34
|
export interface MonthPeriod { period: string; range: string; facts: string; text: string }
|
|
35
35
|
|
|
36
|
-
export interface MonthEventRow { when: string; name: string; href?: string; image?: ImageMetadata; place?: string; entry?: string; note?: string }
|
|
36
|
+
export interface MonthEventRow { when: string; name: string; href?: string; image?: ImageMetadata; place?: string; entry?: string; note?: string; highlights?: string[]; tips?: string }
|
|
37
37
|
|
|
38
38
|
export interface MonthThing { title: string; href?: string; text: string; image?: ImageMetadata; mark?: MarkKind }
|
|
39
39
|
|
|
@@ -59,7 +59,8 @@ export interface TourismMonthGuideModel {
|
|
|
59
59
|
/** `prev`/`next` render at the foot of the page; `kicker` is the small line above each ("Previous month"). */
|
|
60
60
|
months: MonthStrip & { prev: HomeLink & { kicker: string }; next: HomeLink & { kicker: string }; adjacentLabel: string };
|
|
61
61
|
weather: HomeHead & { table: MonthClimateTable; periods?: MonthPeriod[]; /** HTML. */ tip?: string };
|
|
62
|
-
|
|
62
|
+
/** `tipLabel` prefixes a row's `tips`. */
|
|
63
|
+
events?: HomeHead & { caption: string; columns: { when: string; name: string; place: string; entry: string }; rows: MonthEventRow[]; tipLabel?: string; more?: HomeLink };
|
|
63
64
|
things: HomeHead & { items: MonthThing[]; marks?: MarkLabels };
|
|
64
65
|
features?: MonthFeature[];
|
|
65
66
|
food?: HomeHead & {
|