@blogmcp/mdx-schema 0.4.0 → 0.6.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Lukas Zubal
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -414,7 +414,7 @@ export const componentMetadata = [
414
414
  },
415
415
  {
416
416
  name: 'TripMap',
417
- description: 'Interactive trip map built from photo GPS + capture time: thumbnail markers, chronological route line, synced photo filmstrip, fly-through playback. Without props it maps every geotagged media attached to or embedded in the article (auto mode); only media with exposed location (geoExposed) appear. In article previews it renders as a static photo strip + stop list — the live map loads on the published page.',
417
+ description: 'Interactive trip map built from photo GPS + capture time: thumbnail markers, chronological route line, synced photo filmstrip, fly-through playback. Without props it maps every geotagged media attached to or embedded in the article (auto mode); only media with exposed location (geoExposed) appear. Article previews load the same live map; where its engine cannot load, a static photo strip + stop list stays in its place.',
418
418
  icon: '🗺',
419
419
  category: 'media',
420
420
  aliases: ['tripmap', 'map', 'trip', 'route', 'travelmap', 'hike'],
@@ -435,7 +435,7 @@ export const componentMetadata = [
435
435
  name: 'nodes',
436
436
  type: 'array',
437
437
  required: false,
438
- description: 'Hand-made nodes merged chronologically with the photos. STRICT JSON with quoted keys: [{"lat": 49.35, "lng": 16.31, "title": "Níhov, nádraží", "capturedAt": "2025-04-20T08:52:00"}]. Entries without capturedAt render as markers but stay off the route line. Unquoted keys silently break the prop.',
438
+ description: 'Hand-made stops merged with the photos — a STRICT JSON array inside braces, keys quoted: nodes={[{"id": "eiffel-tower", "lat": 48.8582, "lng": 2.2945, "title": "Eiffel Tower", "capturedAt": "2025-04-20T07:30:00Z"}]}. lat/lng are JSON numbers, never strings. An id (optional) must be unique and must not equal a media slug — a clashing node is dropped. capturedAt is the local wall-clock time at the stop marked Z, the way photo capture times are stored (reached at 09:40 → "2025-04-20T09:40:00Z") — always write the Z; a real offset such as +02:00 shifts the stop against the photos by that offset. Timed nodes join the route line and the GPX track, untimed ones stay off both. Distance (km) and place labels are never derived from hand nodes. Unquoted keys or invalid JSON silently drop the whole prop.',
439
439
  },
440
440
  {
441
441
  name: 'height',
@@ -480,6 +480,15 @@ export const componentMetadata = [
480
480
  description: 'Map color scheme; "auto" follows the reader’s system preference.',
481
481
  enum: ['light', 'dark', 'auto'],
482
482
  },
483
+ {
484
+ name: 'detail',
485
+ type: 'string',
486
+ required: false,
487
+ default: '"popup"',
488
+ description: 'Where the selected photo opens: "popup" on the map, or "panel" below the filmstrip at full width (larger photos; the map keeps its height). Both open the photo full-screen on click.',
489
+ enum: ['popup', 'panel'],
490
+ addedIn: '0.4.0',
491
+ },
483
492
  {
484
493
  name: 'styleUrl',
485
494
  type: 'string',
@@ -510,7 +519,7 @@ export const componentMetadata = [
510
519
  selfClosing: true,
511
520
  defaultProps: 'title="Trasa výletu"',
512
521
  defaultChildren: '',
513
- example: '<TripMap title="Trasa údolím Libochovky" nodes={[{"lat": 49.3641, "lng": 16.3143, "title": "Níhov, nádraží", "capturedAt": "2025-04-20T08:52:00"}]} />',
522
+ example: '<TripMap title="Paris walk" nodes={[{"id": "eiffel-tower", "lat": 48.8582, "lng": 2.2945, "title": "Eiffel Tower", "capturedAt": "2025-04-20T07:30:00Z"}, {"id": "arc-de-triomphe", "lat": 48.8736, "lng": 2.295, "title": "Arc de Triomphe", "capturedAt": "2025-04-20T08:15:00Z"}]} />',
514
523
  addedIn: '0.3.0',
515
524
  deprecated: [],
516
525
  },
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/metadata/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,qEAAqE;AACrE,qEAAqE;AACrE,iDAAiD;AACjD,OAAO,EAAE,cAAc,IAAI,eAAe,EAAE,MAAM,eAAe,CAAA;AACjE,KAAK,eAAe,CAAA;AAGpB,6EAA6E;AAC7E,MAAM,CAAC,MAAM,iBAAiB,GAAwB;IACpD;QACE,IAAI,EAAE,SAAS;QACf,WAAW,EAAE,8BAA8B;QAC3C,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,SAAS;QACnB,OAAO,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,CAAC;QAC/D,KAAK,EAAE;YACL;gBACE,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,KAAK;gBACf,OAAO,EAAE,QAAQ;gBACjB,WAAW,EAAE,8CAA8C;gBAC3D,IAAI,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,CAAC;aAC3C;SACF;QACD,WAAW,EAAE,IAAI;QACjB,WAAW,EAAE,KAAK;QAClB,YAAY,EAAE,aAAa;QAC3B,eAAe,EAAE,mBAAmB;QACpC,OAAO,EAAE,sDAAsD;QAC/D,OAAO,E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CAAA;AAED,MAAM,WAAW,GAAG,IAAI,GAAG,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;AAEpE,kDAAkD;AAClD,MAAM,UAAU,oBAAoB,CAAC,IAAY;IAC/C,OAAO,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;AAC9B,CAAC;AAED,yCAAyC;AACzC,MAAM,UAAU,iBAAiB;IAC/B,OAAO,iBAAiB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAA;AAC3C,CAAC;AAED,0FAA0F;AAC1F,cAAc,uBAAuB,CAAA"}
@@ -13,7 +13,13 @@
13
13
  */
14
14
  import type { GalleryProps } from '../types/index.js';
15
15
  export declare const tripMapStyles: {
16
- readonly container: "my-6 flex flex-col gap-3 rounded-xl border border-gray-200 bg-white p-3";
16
+ /**
17
+ * `not-prose` is load-bearing: every host puts the article inside Tailwind Typography's
18
+ * `.prose` (both blogs, md-editor, the article-review MCP app), whose `img { margin: 2em 0 }`
19
+ * / `li` / `ol` rules would otherwise leak into the facade strip — an 80 px thumb pushed
20
+ * 32 px down inside an overflow-hidden 80 px tile (seen in the claude.ai preview, 2026-09-06).
21
+ */
22
+ readonly container: "not-prose my-6 flex flex-col gap-3 rounded-xl border border-gray-200 bg-white p-3";
17
23
  readonly head: "text-sm font-medium text-gray-700 m-0";
18
24
  /**
19
25
  * Sized wrapper that hosts BOTH the engine div and the facade overlay.
@@ -22,6 +28,8 @@ export declare const tripMapStyles: {
22
28
  * own container would clobber the classes the engine adds to it).
23
29
  */
24
30
  readonly mapWrap: "relative w-full overflow-hidden rounded-lg";
31
+ /** detail="panel": engine-owned photo panel host below the map box (empty until a photo is picked). */
32
+ readonly detailHost: "w-full";
25
33
  readonly mapOverlay: "absolute inset-0";
26
34
  readonly mapBox: "flex h-full w-full items-center justify-center overflow-hidden rounded-lg bg-gray-100";
27
35
  readonly mapHint: "text-sm text-gray-500";
@@ -17,7 +17,13 @@
17
17
  // the live map's own chrome is styled by @blogmcp/tripmap-core at runtime.
18
18
  // ---------------------------------------------------------------------------
19
19
  export const tripMapStyles = {
20
- container: 'my-6 flex flex-col gap-3 rounded-xl border border-gray-200 bg-white p-3',
20
+ /**
21
+ * `not-prose` is load-bearing: every host puts the article inside Tailwind Typography's
22
+ * `.prose` (both blogs, md-editor, the article-review MCP app), whose `img { margin: 2em 0 }`
23
+ * / `li` / `ol` rules would otherwise leak into the facade strip — an 80 px thumb pushed
24
+ * 32 px down inside an overflow-hidden 80 px tile (seen in the claude.ai preview, 2026-09-06).
25
+ */
26
+ container: 'not-prose my-6 flex flex-col gap-3 rounded-xl border border-gray-200 bg-white p-3',
21
27
  head: 'text-sm font-medium text-gray-700 m-0',
22
28
  /**
23
29
  * Sized wrapper that hosts BOTH the engine div and the facade overlay.
@@ -26,6 +32,8 @@ export const tripMapStyles = {
26
32
  * own container would clobber the classes the engine adds to it).
27
33
  */
28
34
  mapWrap: 'relative w-full overflow-hidden rounded-lg',
35
+ /** detail="panel": engine-owned photo panel host below the map box (empty until a photo is picked). */
36
+ detailHost: 'w-full',
29
37
  mapOverlay: 'absolute inset-0',
30
38
  mapBox: 'flex h-full w-full items-center justify-center overflow-hidden rounded-lg bg-gray-100',
31
39
  mapHint: 'text-sm text-gray-500',
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/styles/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAIH,8EAA8E;AAC9E,6EAA6E;AAC7E,8EAA8E;AAC9E,2EAA2E;AAC3E,8EAA8E;AAC9E,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,SAAS,EAAE,yEAAyE;IACpF,IAAI,EAAE,uCAAuC;IAC7C;;;;;OAKG;IACH,OAAO,EAAE,4CAA4C;IACrD,UAAU,EAAE,kBAAkB;IAC9B,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AS,EAAE,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE,cAAc,EAAE,eAAe,EAAE,CAAA;IAC3E,CAAC;IACD,OAAO;QACL,SAAS,EAAE,EAAE,WAAW,EAAE;QAC1B,UAAU,EAAE,EAAE,SAAS,EAAE,KAAK,CAAC,GAAG,IAAI,OAAO,EAAE,cAAc,EAAE,KAAK,CAAC,QAAQ,IAAI,QAAQ,EAAE;QAC3F,cAAc,EAAE,eAAe;KAChC,CAAA;AACH,CAAC"}
package/dist/tripmap.d.ts CHANGED
@@ -31,10 +31,17 @@ export declare function tripMapFormatTime(iso: string): string;
31
31
  * win; otherwise auto mode selects by article identity; with neither the
32
32
  * URL is a config-only request (the endpoint answers with the tenant basemap
33
33
  * `config` and no nodes) so a hand-made-nodes map still gets its style.
34
+ *
35
+ * Auto mode maps the article as the caller is served it: a reader gets the
36
+ * published text's photos, and a draft is a 404. A DRAFT PREVIEW passes
37
+ * `article.previewToken` — the draft-preview token md-editor minted for this
38
+ * article (the one in the `/preview/<token>` or `/api/embed/<token>` URL) —
39
+ * and gets the working copy's photos instead.
34
40
  */
35
41
  export declare function buildTripMapGeoUrl(props: Pick<TripMapProps, 'slugs' | 'exclude'>, article?: {
36
42
  filename?: string;
37
43
  language?: string;
44
+ previewToken?: string;
38
45
  } | null): string;
39
46
  /** One node of the GET /api/media/geo response. */
40
47
  export interface TripMapGeoNode {
@@ -44,6 +51,8 @@ export interface TripMapGeoNode {
44
51
  capturedAt?: string | null;
45
52
  thumbnailUrl?: string | null;
46
53
  url?: string | null;
54
+ /** Fullscreen-viewer variant (wider than `url`); older kb-api builds omit it. */
55
+ largeUrl?: string | null;
47
56
  altText?: string | null;
48
57
  placeName?: string | null;
49
58
  width?: number | null;
@@ -54,18 +63,129 @@ export interface TripMapGeoResponse {
54
63
  styleUrl?: string;
55
64
  darkStyleUrl?: string;
56
65
  attribution?: string;
66
+ /**
67
+ * Tenant switch for node clock times (HH:MM beside each photo in the
68
+ * filmstrip, popup, detail panel and viewer). `false` hides them; omitted
69
+ * shows them. Nothing honours it yet: kb-api does not send it, and it reaches
70
+ * the engine only through `tripMapEngineOptions`, which the Vue and React
71
+ * renderers do not call — they build their engine options inline. Until they
72
+ * adopt that helper, a tenant setting here changes nothing on the page.
73
+ */
74
+ showTime?: boolean;
57
75
  };
58
76
  nodes: TripMapGeoNode[];
59
77
  /** Count of requested media without exposed geo. */
60
78
  skipped?: number;
61
79
  }
80
+ /**
81
+ * Media rows of GET /api/media/geo → the engine's node shape. Shared by every
82
+ * host that mounts the engine (Vue + React renderers, the article-review
83
+ * MCP app) so the field mapping is decided in ONE place.
84
+ */
85
+ export interface TripMapMediaNodeInput {
86
+ id: string;
87
+ lat: number;
88
+ lng: number;
89
+ capturedAt?: string;
90
+ thumbnailUrl?: string;
91
+ imageUrl?: string;
92
+ largeImageUrl?: string;
93
+ altText?: string;
94
+ title?: string;
95
+ }
96
+ export declare function tripMapNodesFromGeo(nodes: readonly TripMapGeoNode[] | undefined): TripMapMediaNodeInput[];
97
+ /** `center="lat,lng"` + `zoom` → the engine's `initialView` (lng,lat order). */
98
+ export declare function tripMapInitialView(props: Pick<TripMapProps, 'center' | 'zoom'>): {
99
+ center?: [number, number];
100
+ zoom?: number;
101
+ } | undefined;
102
+ /**
103
+ * Engine options derived from the block props + the geo response — everything
104
+ * except the DOM hosts (`detailHost`) and event callbacks, which only the
105
+ * mounting host can supply. Prop defaults mirror the schema metadata.
106
+ */
107
+ export declare function tripMapEngineOptions(props: TripMapProps, geo: Pick<TripMapGeoResponse, 'config'> | undefined, language: string | undefined): {
108
+ styleUrl: string;
109
+ darkStyleUrl?: string;
110
+ theme: NonNullable<TripMapProps['theme']>;
111
+ cluster: boolean;
112
+ showLine: boolean;
113
+ showFilmstrip: boolean;
114
+ showPlayback: boolean;
115
+ showTime: boolean;
116
+ title?: string;
117
+ detail: 'popup' | 'panel';
118
+ extraAttribution?: string;
119
+ labels?: TripMapUiLabels;
120
+ initialView?: {
121
+ center?: [number, number];
122
+ zoom?: number;
123
+ };
124
+ };
62
125
  export interface TripMapUiTexts {
63
126
  hint: string;
64
127
  empty: string;
65
128
  unavailable: string;
66
129
  }
67
130
  export declare function tripMapUiTexts(language: string | undefined): TripMapUiTexts;
68
- export declare function tripMapPlaybackLabels(language: string | undefined): {
131
+ /** Localized core UI labels (playback + fullscreen); undefined keeps the core's English defaults. */
132
+ export interface TripMapUiLabels {
69
133
  play: string;
70
134
  stop: string;
71
- } | undefined;
135
+ fullscreen: string;
136
+ exitFullscreen: string;
137
+ export: string;
138
+ exportGpx: string;
139
+ exportGpxHint: string;
140
+ openInMapy: string;
141
+ openInGoogleMaps: string;
142
+ lightboxClose: string;
143
+ lightboxPrev: string;
144
+ lightboxNext: string;
145
+ zoomImage: string;
146
+ }
147
+ export declare function tripMapPlaybackLabels(language: string | undefined): TripMapUiLabels | undefined;
148
+ /** One thumbnail of the static facade (author order for `slugs`, capture order otherwise). */
149
+ export interface TripMapFacadeThumb {
150
+ slug: string;
151
+ src: string;
152
+ /** Alt text when the host handed the article's media in; empty otherwise. */
153
+ alt: string;
154
+ }
155
+ /** One named stop of the static facade (place-labelled photos + hand-made waypoints, chronological). */
156
+ export interface TripMapFacadeStop {
157
+ key: string;
158
+ title: string;
159
+ capturedAt?: string;
160
+ }
161
+ export interface TripMapFacade {
162
+ thumbs: TripMapFacadeThumb[];
163
+ stops: TripMapFacadeStop[];
164
+ }
165
+ /**
166
+ * What the facade needs from a host-provided media row — a structural subset
167
+ * that both the blog SDK's `ContentImageGeo` and `TripMapGeoNode` satisfy.
168
+ */
169
+ export interface TripMapFacadeMedia {
170
+ /** Rows without a slug (older API builds) are ignored. */
171
+ slug?: string | null;
172
+ thumbnailUrl?: string | null;
173
+ altText?: string | null;
174
+ placeName?: string | null;
175
+ capturedAt?: string | null;
176
+ }
177
+ /**
178
+ * The static facade both renderers server-render before any script runs:
179
+ * a thumbnail strip with alt text and a list of named stops. It is the part
180
+ * of a TripMap that search engines and answer engines read.
181
+ *
182
+ * - `slugs` set → those photos in author order; alt text comes from the
183
+ * article media the host provided (`context.media`), empty when unknown.
184
+ * - AUTO mode → every photo of the article the host provided, minus
185
+ * `exclude`, in capture order. Without host-provided media the facade has
186
+ * no thumbs (the live map still fetches them; only the no-JS view is poorer).
187
+ * - Stops: photos with a `placeName` plus hand-made `nodes`, chronological.
188
+ */
189
+ export declare function tripMapFacade(props: Pick<TripMapProps, 'slugs' | 'exclude' | 'nodes'>, context: {
190
+ media?: readonly TripMapFacadeMedia[] | null;
191
+ } | null | undefined): TripMapFacade;
package/dist/tripmap.js CHANGED
@@ -57,6 +57,12 @@ export function tripMapFormatTime(iso) {
57
57
  * win; otherwise auto mode selects by article identity; with neither the
58
58
  * URL is a config-only request (the endpoint answers with the tenant basemap
59
59
  * `config` and no nodes) so a hand-made-nodes map still gets its style.
60
+ *
61
+ * Auto mode maps the article as the caller is served it: a reader gets the
62
+ * published text's photos, and a draft is a 404. A DRAFT PREVIEW passes
63
+ * `article.previewToken` — the draft-preview token md-editor minted for this
64
+ * article (the one in the `/preview/<token>` or `/api/embed/<token>` URL) —
65
+ * and gets the working copy's photos instead.
60
66
  */
61
67
  export function buildTripMapGeoUrl(props, article) {
62
68
  const params = new URLSearchParams();
@@ -72,6 +78,8 @@ export function buildTripMapGeoUrl(props, article) {
72
78
  const exclude = splitTripMapList(props.exclude);
73
79
  if (exclude.length > 0)
74
80
  params.set('exclude', exclude.join(','));
81
+ if (article.previewToken)
82
+ params.set('preview', article.previewToken);
75
83
  return `/api/media/geo?${params.toString()}`;
76
84
  }
77
85
  // Nothing to select (hand-made nodes only, or a host that provides no
@@ -81,6 +89,55 @@ export function buildTripMapGeoUrl(props, article) {
81
89
  const qs = params.toString();
82
90
  return qs ? `/api/media/geo?${qs}` : '/api/media/geo';
83
91
  }
92
+ export function tripMapNodesFromGeo(nodes) {
93
+ return (nodes ?? [])
94
+ .filter((n) => typeof n.latitude === 'number' && typeof n.longitude === 'number')
95
+ .map((n) => ({
96
+ id: n.slug,
97
+ lat: n.latitude,
98
+ lng: n.longitude,
99
+ capturedAt: n.capturedAt ?? undefined,
100
+ thumbnailUrl: n.thumbnailUrl ?? undefined,
101
+ imageUrl: n.url ?? undefined,
102
+ largeImageUrl: n.largeUrl ?? undefined,
103
+ altText: n.altText ?? undefined,
104
+ title: n.placeName ?? undefined,
105
+ }));
106
+ }
107
+ /** `center="lat,lng"` + `zoom` → the engine's `initialView` (lng,lat order). */
108
+ export function tripMapInitialView(props) {
109
+ if (!props.center)
110
+ return undefined;
111
+ const [lat, lng] = props.center.split(',').map((v) => Number.parseFloat(v.trim()));
112
+ if (!Number.isFinite(lat) || !Number.isFinite(lng))
113
+ return undefined;
114
+ return { center: [lng, lat], zoom: props.zoom };
115
+ }
116
+ /**
117
+ * Engine options derived from the block props + the geo response — everything
118
+ * except the DOM hosts (`detailHost`) and event callbacks, which only the
119
+ * mounting host can supply. Prop defaults mirror the schema metadata.
120
+ */
121
+ export function tripMapEngineOptions(props, geo, language) {
122
+ return {
123
+ styleUrl: props.styleUrl || geo?.config?.styleUrl || '',
124
+ darkStyleUrl: geo?.config?.darkStyleUrl,
125
+ theme: props.theme ?? 'auto',
126
+ cluster: props.cluster ?? true,
127
+ showLine: props.line ?? true,
128
+ showFilmstrip: props.filmstrip ?? true,
129
+ showPlayback: props.playback ?? true,
130
+ // Tenant-level (geo config), deliberately not a block prop. Only an explicit
131
+ // false hides, which is the engine's own rule, so a stray non-boolean off the
132
+ // wire still shows times and this option stays a real boolean.
133
+ showTime: geo?.config?.showTime !== false,
134
+ title: props.title,
135
+ detail: props.detail === 'panel' ? 'panel' : 'popup',
136
+ extraAttribution: geo?.config?.attribution,
137
+ labels: tripMapPlaybackLabels(language),
138
+ initialView: tripMapInitialView(props),
139
+ };
140
+ }
84
141
  export function tripMapUiTexts(language) {
85
142
  const czech = (language ?? '').toLowerCase().startsWith('cs');
86
143
  return czech
@@ -97,7 +154,109 @@ export function tripMapUiTexts(language) {
97
154
  }
98
155
  export function tripMapPlaybackLabels(language) {
99
156
  return (language ?? '').toLowerCase().startsWith('cs')
100
- ? { play: 'Přehrát trasu', stop: 'Zastavit' }
157
+ ? {
158
+ play: 'Přehrát trasu',
159
+ stop: 'Zastavit',
160
+ fullscreen: 'Celá obrazovka',
161
+ exitFullscreen: 'Ukončit celou obrazovku',
162
+ export: 'Export trasy',
163
+ exportGpx: 'Stáhnout GPX',
164
+ exportGpxHint: 'hodinky, Garmin, Strava, Komoot',
165
+ openInMapy: 'Otevřít v Mapy.com',
166
+ openInGoogleMaps: 'Otevřít v Google Maps',
167
+ lightboxClose: 'Zavřít',
168
+ lightboxPrev: 'Předchozí fotka',
169
+ lightboxNext: 'Další fotka',
170
+ zoomImage: 'Zobrazit na celou obrazovku',
171
+ }
101
172
  : undefined;
102
173
  }
174
+ const thumbUrlFor = (slug) => `/api/media/thumb/${encodeURIComponent(slug)}?width=192`;
175
+ // An ISO date-time with no zone designator: minutes, optional seconds and fraction.
176
+ // A space or a lowercase t in place of the T is read the same way by Date.parse.
177
+ const ZONELESS_DATE_TIME = /^(\d{4}-\d{2}-\d{2})[Tt ](\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)$/;
178
+ /**
179
+ * Capture instant in ms, or null when there is nothing to order by — the rule of
180
+ * `@blogmcp/tripmap-core`'s `captureTimeMs`, repeated here because this module may
181
+ * not import the core (see the header). Date.parse, except that an ISO date-time
182
+ * without a zone is read as UTC, as if it carried the Z the trip convention writes.
183
+ * Left to Date.parse it lands in the runtime's zone, and this facade renders twice —
184
+ * on the server and again in the reader's browser — so a UTC pod and a Prague
185
+ * browser would list the stops in different orders: a hydration mismatch, and a
186
+ * crawler reading another order than the reader sees.
187
+ */
188
+ const captureTimeMs = (capturedAt) => {
189
+ // Hand nodes are author JSON, not type-checked: a non-string is untimed, never a throw.
190
+ if (typeof capturedAt !== 'string' || !capturedAt)
191
+ return null;
192
+ const zoneless = ZONELESS_DATE_TIME.exec(capturedAt.trim());
193
+ const t = Date.parse(zoneless ? `${zoneless[1]}T${zoneless[2]}Z` : capturedAt);
194
+ return Number.isNaN(t) ? null : t;
195
+ };
196
+ /**
197
+ * Chronological order exactly as `@blogmcp/tripmap-core`'s `buildTripNodes` sorts
198
+ * the live map (this module may not import it — see the header), so the no-JS
199
+ * facade lists stops in the order the map draws them.
200
+ *
201
+ * By instant (`captureTimeMs`), never compared as strings: `capturedAt` has arrived
202
+ * as JS Date#toString ("Mon Apr 21 2025 …"), and as a string that sorts by weekday
203
+ * name and puts every such value after any ISO one. Timed items first by instant
204
+ * (stable, so equal instants keep input order); unparseable or missing times are
205
+ * untimed and follow in input order.
206
+ */
207
+ function orderByCaptureTime(items) {
208
+ const timed = [];
209
+ const untimed = [];
210
+ for (const item of items) {
211
+ const t = captureTimeMs(item.capturedAt);
212
+ if (t === null)
213
+ untimed.push(item);
214
+ else
215
+ timed.push({ item, t });
216
+ }
217
+ timed.sort((a, b) => a.t - b.t);
218
+ return [...timed.map((entry) => entry.item), ...untimed];
219
+ }
220
+ /**
221
+ * The static facade both renderers server-render before any script runs:
222
+ * a thumbnail strip with alt text and a list of named stops. It is the part
223
+ * of a TripMap that search engines and answer engines read.
224
+ *
225
+ * - `slugs` set → those photos in author order; alt text comes from the
226
+ * article media the host provided (`context.media`), empty when unknown.
227
+ * - AUTO mode → every photo of the article the host provided, minus
228
+ * `exclude`, in capture order. Without host-provided media the facade has
229
+ * no thumbs (the live map still fetches them; only the no-JS view is poorer).
230
+ * - Stops: photos with a `placeName` plus hand-made `nodes`, chronological.
231
+ */
232
+ export function tripMapFacade(props, context) {
233
+ const media = (context?.media ?? []).filter((m) => Boolean(m.slug));
234
+ const bySlug = new Map(media.map((m) => [m.slug, m]));
235
+ const slugList = splitTripMapList(props.slugs);
236
+ const exclude = new Set(splitTripMapList(props.exclude));
237
+ let photos;
238
+ let thumbs;
239
+ if (slugList.length > 0) {
240
+ thumbs = slugList.map((slug) => {
241
+ const m = bySlug.get(slug);
242
+ return { slug, src: m?.thumbnailUrl || thumbUrlFor(slug), alt: m?.altText ?? '' };
243
+ });
244
+ photos = slugList.map((slug) => bySlug.get(slug)).filter((m) => Boolean(m));
245
+ }
246
+ else {
247
+ photos = orderByCaptureTime(media.filter((m) => !exclude.has(m.slug)));
248
+ thumbs = photos.map((m) => ({ slug: m.slug, src: m.thumbnailUrl || thumbUrlFor(m.slug), alt: m.altText ?? '' }));
249
+ }
250
+ const stops = orderByCaptureTime([
251
+ ...photos
252
+ .filter((m) => m.placeName)
253
+ .map((m) => ({ key: `m:${m.slug}`, title: m.placeName, capturedAt: m.capturedAt ?? undefined })),
254
+ ...parseTripMapHandNodes(props.nodes).map((n, i) => ({
255
+ key: `n:${n.id || i}`,
256
+ title: n.title || `${n.lat}, ${n.lng}`,
257
+ capturedAt: n.capturedAt,
258
+ })),
259
+ ]);
260
+ return { thumbs, stops };
261
+ }
103
262
  //# sourceMappingURL=tripmap.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tripmap.js","sourceRoot":"","sources":["../src/tripmap.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAIH,MAAM,CAAC,MAAM,sBAAsB,GAAG,OAAO,CAAA;AAE7C,8DAA8D;AAC9D,MAAM,UAAU,gBAAgB,CAAC,KAAyB;IACxD,OAAO,CAAC,KAAK,IAAI,EAAE,CAAC;SACjB,KAAK,CAAC,GAAG,CAAC;SACV,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;SACpB,MAAM,CAAC,OAAO,CAAC,CAAA;AACpB,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,qBAAqB,CAAC,GAA0B;IAC9D,IAAI,KAAK,GAAY,GAAG,CAAA;IACxB,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,IAAI,CAAC;YACH,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;QAC3B,CAAC;QAAC,MAAM,CAAC;YACP,IAAI,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AC,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,OAAO,IAAI,EAAE,EAAE,CAAC,CAAC,CAAA;IAClH,CAAC;IAED,MAAM,KAAK,GAAwB,kBAAkB,CAAC;QACpD,GAAG,MAAM;aACN,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;aAC1B,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC,IAAI,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC,SAAmB,EAAE,UAAU,EAAE,CAAC,CAAC,UAAU,IAAI,SAAS,EAAE,CAAC,CAAC;QAC5G,GAAG,qBAAqB,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;YACnD,GAAG,EAAE,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE;YACrB,KAAK,EAAE,CAAC,CAAC,KAAK,IAAI,GAAG,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,GAAG,EAAE;YACtC,UAAU,EAAE,CAAC,CAAC,UAAU;SACzB,CAAC,CAAC;KACJ,CAAC,CAAA;IAEF,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,CAAA;AAC1B,CAAC"}
@@ -101,7 +101,10 @@ export interface TripMapHandNode {
101
101
  /** ISO timestamp — places the node into the chronological route line */
102
102
  capturedAt?: string;
103
103
  thumbnailUrl?: string;
104
- /** Optional link target for the popup */
104
+ /**
105
+ * Optional link target for the popup: an http(s) URL or an on-site reference
106
+ * (`/…`, `./…`, `../…`, `#…`, `?…`). The map renders anything else as no link.
107
+ */
105
108
  href?: string;
106
109
  }
107
110
  export interface TripMapProps {
@@ -126,6 +129,11 @@ export interface TripMapProps {
126
129
  cluster?: boolean;
127
130
  /** Color scheme; "auto" follows the reader's system preference */
128
131
  theme?: 'light' | 'dark' | 'auto';
132
+ /**
133
+ * Where the selected photo opens: "popup" on the map (default) or "panel"
134
+ * below the filmstrip at full width — larger photos, the map keeps its height
135
+ */
136
+ detail?: 'popup' | 'panel';
129
137
  /** MapLibre style JSON URL override (wins over tenant config) */
130
138
  styleUrl?: string;
131
139
  /** Initial center "lat,lng" — overrides smart framing (pair with zoom) */
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AA4ZH,yEAAyE;AACzE,MAAM,UAAU,iBAAiB,CAC/B,KAAuB;IAEvB,OAAO,KAAK,CAAC,IAAI,KAAK,YAAY,CAAA;AACpC,CAAC;AAED,MAAM,UAAU,sBAAsB,CACpC,KAAuB;IAEvB,OAAO,KAAK,CAAC,IAAI,KAAK,iBAAiB,CAAA;AACzC,CAAC;AAED,MAAM,UAAU,kBAAkB,CAChC,KAAuB;IAEvB,OAAO,KAAK,CAAC,IAAI,KAAK,aAAa,CAAA;AACrC,CAAC;AAED,MAAM,UAAU,yBAAyB,CACvC,KAAuB;IAEvB,OAAO,KAAK,CAAC,IAAI,KAAK,oBAAoB,CAAA;AAC5C,CAAC;AAED,MAAM,UAAU,4BAA4B,CAC1C,KAAuB;IAEvB,OAAO,KAAK,CAAC,IAAI,KAAK,uBAAuB,CAAA;AAC/C,CAAC;AAED,MAAM,UAAU,+BAA+B,CAC7C,KAAuB;IAEvB,OAAO,KAAK,CAAC,IAAI,KAAK,0BAA0B,CAAA;AAClD,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAoaH,yEAAyE;AACzE,MAAM,UAAU,iBAAiB,CAC/B,KAAuB;IAEvB,OAAO,KAAK,CAAC,IAAI,KAAK,YAAY,CAAA;AACpC,CAAC;AAED,MAAM,UAAU,sBAAsB,CACpC,KAAuB;IAEvB,OAAO,KAAK,CAAC,IAAI,KAAK,iBAAiB,CAAA;AACzC,CAAC;AAED,MAAM,UAAU,kBAAkB,CAChC,KAAuB;IAEvB,OAAO,KAAK,CAAC,IAAI,KAAK,aAAa,CAAA;AACrC,CAAC;AAED,MAAM,UAAU,yBAAyB,CACvC,KAAuB;IAEvB,OAAO,KAAK,CAAC,IAAI,KAAK,oBAAoB,CAAA;AAC5C,CAAC;AAED,MAAM,UAAU,4BAA4B,CAC1C,KAAuB;IAEvB,OAAO,KAAK,CAAC,IAAI,KAAK,uBAAuB,CAAA;AAC/C,CAAC;AAED,MAAM,UAAU,+BAA+B,CAC7C,KAAuB;IAEvB,OAAO,KAAK,CAAC,IAAI,KAAK,0BAA0B,CAAA;AAClD,CAAC"}
package/dist/version.d.ts CHANGED
@@ -19,5 +19,5 @@
19
19
  *
20
20
  * npm run baseline:regen --workspace=@blogmcp/mdx-schema
21
21
  */
22
- export declare const SCHEMA_VERSION: "0.3.0";
22
+ export declare const SCHEMA_VERSION: "0.4.0";
23
23
  export type SchemaVersion = typeof SCHEMA_VERSION;
package/dist/version.js CHANGED
@@ -19,5 +19,5 @@
19
19
  *
20
20
  * npm run baseline:regen --workspace=@blogmcp/mdx-schema
21
21
  */
22
- export const SCHEMA_VERSION = '0.3.0';
22
+ export const SCHEMA_VERSION = '0.4.0';
23
23
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blogmcp/mdx-schema",
3
- "version": "0.4.0",
3
+ "version": "0.6.0",
4
4
  "description": "Framework-agnostic schema + metadata + parsing for MDX components. Zero framework dependencies — consumed by Vue and React renderer packages.",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -422,7 +422,7 @@ export const componentMetadata: ComponentMetadata[] = [
422
422
  {
423
423
  name: 'TripMap',
424
424
  description:
425
- 'Interactive trip map built from photo GPS + capture time: thumbnail markers, chronological route line, synced photo filmstrip, fly-through playback. Without props it maps every geotagged media attached to or embedded in the article (auto mode); only media with exposed location (geoExposed) appear. In article previews it renders as a static photo strip + stop list — the live map loads on the published page.',
425
+ 'Interactive trip map built from photo GPS + capture time: thumbnail markers, chronological route line, synced photo filmstrip, fly-through playback. Without props it maps every geotagged media attached to or embedded in the article (auto mode); only media with exposed location (geoExposed) appear. Article previews load the same live map; where its engine cannot load, a static photo strip + stop list stays in its place.',
426
426
  icon: '🗺',
427
427
  category: 'media',
428
428
  aliases: ['tripmap', 'map', 'trip', 'route', 'travelmap', 'hike'],
@@ -445,7 +445,7 @@ export const componentMetadata: ComponentMetadata[] = [
445
445
  type: 'array',
446
446
  required: false,
447
447
  description:
448
- 'Hand-made nodes merged chronologically with the photos. STRICT JSON with quoted keys: [{"lat": 49.35, "lng": 16.31, "title": "Níhov, nádraží", "capturedAt": "2025-04-20T08:52:00"}]. Entries without capturedAt render as markers but stay off the route line. Unquoted keys silently break the prop.',
448
+ 'Hand-made stops merged with the photos — a STRICT JSON array inside braces, keys quoted: nodes={[{"id": "eiffel-tower", "lat": 48.8582, "lng": 2.2945, "title": "Eiffel Tower", "capturedAt": "2025-04-20T07:30:00Z"}]}. lat/lng are JSON numbers, never strings. An id (optional) must be unique and must not equal a media slug — a clashing node is dropped. capturedAt is the local wall-clock time at the stop marked Z, the way photo capture times are stored (reached at 09:40 → "2025-04-20T09:40:00Z") — always write the Z; a real offset such as +02:00 shifts the stop against the photos by that offset. Timed nodes join the route line and the GPX track, untimed ones stay off both. Distance (km) and place labels are never derived from hand nodes. Unquoted keys or invalid JSON silently drop the whole prop.',
449
449
  },
450
450
  {
451
451
  name: 'height',
@@ -490,6 +490,16 @@ export const componentMetadata: ComponentMetadata[] = [
490
490
  description: 'Map color scheme; "auto" follows the reader’s system preference.',
491
491
  enum: ['light', 'dark', 'auto'],
492
492
  },
493
+ {
494
+ name: 'detail',
495
+ type: 'string',
496
+ required: false,
497
+ default: '"popup"',
498
+ description:
499
+ 'Where the selected photo opens: "popup" on the map, or "panel" below the filmstrip at full width (larger photos; the map keeps its height). Both open the photo full-screen on click.',
500
+ enum: ['popup', 'panel'],
501
+ addedIn: '0.4.0',
502
+ },
493
503
  {
494
504
  name: 'styleUrl',
495
505
  type: 'string',
@@ -521,7 +531,7 @@ export const componentMetadata: ComponentMetadata[] = [
521
531
  defaultProps: 'title="Trasa výletu"',
522
532
  defaultChildren: '',
523
533
  example:
524
- '<TripMap title="Trasa údolím Libochovky" nodes={[{"lat": 49.3641, "lng": 16.3143, "title": "Níhov, nádraží", "capturedAt": "2025-04-20T08:52:00"}]} />',
534
+ '<TripMap title="Paris walk" nodes={[{"id": "eiffel-tower", "lat": 48.8582, "lng": 2.2945, "title": "Eiffel Tower", "capturedAt": "2025-04-20T07:30:00Z"}, {"id": "arc-de-triomphe", "lat": 48.8736, "lng": 2.295, "title": "Arc de Triomphe", "capturedAt": "2025-04-20T08:15:00Z"}]} />',
525
535
  addedIn: '0.3.0',
526
536
  deprecated: [],
527
537
  },
@@ -20,7 +20,13 @@ import type { GalleryProps } from '../types/index.js'
20
20
  // the live map's own chrome is styled by @blogmcp/tripmap-core at runtime.
21
21
  // ---------------------------------------------------------------------------
22
22
  export const tripMapStyles = {
23
- container: 'my-6 flex flex-col gap-3 rounded-xl border border-gray-200 bg-white p-3',
23
+ /**
24
+ * `not-prose` is load-bearing: every host puts the article inside Tailwind Typography's
25
+ * `.prose` (both blogs, md-editor, the article-review MCP app), whose `img { margin: 2em 0 }`
26
+ * / `li` / `ol` rules would otherwise leak into the facade strip — an 80 px thumb pushed
27
+ * 32 px down inside an overflow-hidden 80 px tile (seen in the claude.ai preview, 2026-09-06).
28
+ */
29
+ container: 'not-prose my-6 flex flex-col gap-3 rounded-xl border border-gray-200 bg-white p-3',
24
30
  head: 'text-sm font-medium text-gray-700 m-0',
25
31
  /**
26
32
  * Sized wrapper that hosts BOTH the engine div and the facade overlay.
@@ -29,6 +35,8 @@ export const tripMapStyles = {
29
35
  * own container would clobber the classes the engine adds to it).
30
36
  */
31
37
  mapWrap: 'relative w-full overflow-hidden rounded-lg',
38
+ /** detail="panel": engine-owned photo panel host below the map box (empty until a photo is picked). */
39
+ detailHost: 'w-full',
32
40
  mapOverlay: 'absolute inset-0',
33
41
  mapBox: 'flex h-full w-full items-center justify-center overflow-hidden rounded-lg bg-gray-100',
34
42
  mapHint: 'text-sm text-gray-500',
package/src/tripmap.ts CHANGED
@@ -67,10 +67,16 @@ export function tripMapFormatTime(iso: string): string {
67
67
  * win; otherwise auto mode selects by article identity; with neither the
68
68
  * URL is a config-only request (the endpoint answers with the tenant basemap
69
69
  * `config` and no nodes) so a hand-made-nodes map still gets its style.
70
+ *
71
+ * Auto mode maps the article as the caller is served it: a reader gets the
72
+ * published text's photos, and a draft is a 404. A DRAFT PREVIEW passes
73
+ * `article.previewToken` — the draft-preview token md-editor minted for this
74
+ * article (the one in the `/preview/<token>` or `/api/embed/<token>` URL) —
75
+ * and gets the working copy's photos instead.
70
76
  */
71
77
  export function buildTripMapGeoUrl(
72
78
  props: Pick<TripMapProps, 'slugs' | 'exclude'>,
73
- article?: { filename?: string; language?: string } | null,
79
+ article?: { filename?: string; language?: string; previewToken?: string } | null,
74
80
  ): string {
75
81
  const params = new URLSearchParams()
76
82
  if (article?.language) params.set('lang', article.language)
@@ -83,6 +89,7 @@ export function buildTripMapGeoUrl(
83
89
  params.set('article', article.filename)
84
90
  const exclude = splitTripMapList(props.exclude)
85
91
  if (exclude.length > 0) params.set('exclude', exclude.join(','))
92
+ if (article.previewToken) params.set('preview', article.previewToken)
86
93
  return `/api/media/geo?${params.toString()}`
87
94
  }
88
95
  // Nothing to select (hand-made nodes only, or a host that provides no
@@ -101,6 +108,8 @@ export interface TripMapGeoNode {
101
108
  capturedAt?: string | null
102
109
  thumbnailUrl?: string | null
103
110
  url?: string | null
111
+ /** Fullscreen-viewer variant (wider than `url`); older kb-api builds omit it. */
112
+ largeUrl?: string | null
104
113
  altText?: string | null
105
114
  placeName?: string | null
106
115
  width?: number | null
@@ -112,12 +121,108 @@ export interface TripMapGeoResponse {
112
121
  styleUrl?: string
113
122
  darkStyleUrl?: string
114
123
  attribution?: string
124
+ /**
125
+ * Tenant switch for node clock times (HH:MM beside each photo in the
126
+ * filmstrip, popup, detail panel and viewer). `false` hides them; omitted
127
+ * shows them. Nothing honours it yet: kb-api does not send it, and it reaches
128
+ * the engine only through `tripMapEngineOptions`, which the Vue and React
129
+ * renderers do not call — they build their engine options inline. Until they
130
+ * adopt that helper, a tenant setting here changes nothing on the page.
131
+ */
132
+ showTime?: boolean
115
133
  }
116
134
  nodes: TripMapGeoNode[]
117
135
  /** Count of requested media without exposed geo. */
118
136
  skipped?: number
119
137
  }
120
138
 
139
+ /**
140
+ * Media rows of GET /api/media/geo → the engine's node shape. Shared by every
141
+ * host that mounts the engine (Vue + React renderers, the article-review
142
+ * MCP app) so the field mapping is decided in ONE place.
143
+ */
144
+ export interface TripMapMediaNodeInput {
145
+ id: string
146
+ lat: number
147
+ lng: number
148
+ capturedAt?: string
149
+ thumbnailUrl?: string
150
+ imageUrl?: string
151
+ largeImageUrl?: string
152
+ altText?: string
153
+ title?: string
154
+ }
155
+
156
+ export function tripMapNodesFromGeo(nodes: readonly TripMapGeoNode[] | undefined): TripMapMediaNodeInput[] {
157
+ return (nodes ?? [])
158
+ .filter((n) => typeof n.latitude === 'number' && typeof n.longitude === 'number')
159
+ .map((n) => ({
160
+ id: n.slug,
161
+ lat: n.latitude,
162
+ lng: n.longitude,
163
+ capturedAt: n.capturedAt ?? undefined,
164
+ thumbnailUrl: n.thumbnailUrl ?? undefined,
165
+ imageUrl: n.url ?? undefined,
166
+ largeImageUrl: n.largeUrl ?? undefined,
167
+ altText: n.altText ?? undefined,
168
+ title: n.placeName ?? undefined,
169
+ }))
170
+ }
171
+
172
+ /** `center="lat,lng"` + `zoom` → the engine's `initialView` (lng,lat order). */
173
+ export function tripMapInitialView(
174
+ props: Pick<TripMapProps, 'center' | 'zoom'>,
175
+ ): { center?: [number, number]; zoom?: number } | undefined {
176
+ if (!props.center) return undefined
177
+ const [lat, lng] = props.center.split(',').map((v) => Number.parseFloat(v.trim()))
178
+ if (!Number.isFinite(lat) || !Number.isFinite(lng)) return undefined
179
+ return { center: [lng, lat], zoom: props.zoom }
180
+ }
181
+
182
+ /**
183
+ * Engine options derived from the block props + the geo response — everything
184
+ * except the DOM hosts (`detailHost`) and event callbacks, which only the
185
+ * mounting host can supply. Prop defaults mirror the schema metadata.
186
+ */
187
+ export function tripMapEngineOptions(
188
+ props: TripMapProps,
189
+ geo: Pick<TripMapGeoResponse, 'config'> | undefined,
190
+ language: string | undefined,
191
+ ): {
192
+ styleUrl: string
193
+ darkStyleUrl?: string
194
+ theme: NonNullable<TripMapProps['theme']>
195
+ cluster: boolean
196
+ showLine: boolean
197
+ showFilmstrip: boolean
198
+ showPlayback: boolean
199
+ showTime: boolean
200
+ title?: string
201
+ detail: 'popup' | 'panel'
202
+ extraAttribution?: string
203
+ labels?: TripMapUiLabels
204
+ initialView?: { center?: [number, number]; zoom?: number }
205
+ } {
206
+ return {
207
+ styleUrl: props.styleUrl || geo?.config?.styleUrl || '',
208
+ darkStyleUrl: geo?.config?.darkStyleUrl,
209
+ theme: props.theme ?? 'auto',
210
+ cluster: props.cluster ?? true,
211
+ showLine: props.line ?? true,
212
+ showFilmstrip: props.filmstrip ?? true,
213
+ showPlayback: props.playback ?? true,
214
+ // Tenant-level (geo config), deliberately not a block prop. Only an explicit
215
+ // false hides, which is the engine's own rule, so a stray non-boolean off the
216
+ // wire still shows times and this option stays a real boolean.
217
+ showTime: geo?.config?.showTime !== false,
218
+ title: props.title,
219
+ detail: props.detail === 'panel' ? 'panel' : 'popup',
220
+ extraAttribution: geo?.config?.attribution,
221
+ labels: tripMapPlaybackLabels(language),
222
+ initialView: tripMapInitialView(props),
223
+ }
224
+ }
225
+
121
226
  export interface TripMapUiTexts {
122
227
  hint: string
123
228
  empty: string
@@ -139,10 +244,172 @@ export function tripMapUiTexts(language: string | undefined): TripMapUiTexts {
139
244
  }
140
245
  }
141
246
 
142
- export function tripMapPlaybackLabels(
143
- language: string | undefined,
144
- ): { play: string; stop: string } | undefined {
247
+ /** Localized core UI labels (playback + fullscreen); undefined keeps the core's English defaults. */
248
+ export interface TripMapUiLabels {
249
+ play: string
250
+ stop: string
251
+ fullscreen: string
252
+ exitFullscreen: string
253
+ export: string
254
+ exportGpx: string
255
+ exportGpxHint: string
256
+ openInMapy: string
257
+ openInGoogleMaps: string
258
+ lightboxClose: string
259
+ lightboxPrev: string
260
+ lightboxNext: string
261
+ zoomImage: string
262
+ }
263
+
264
+ export function tripMapPlaybackLabels(language: string | undefined): TripMapUiLabels | undefined {
145
265
  return (language ?? '').toLowerCase().startsWith('cs')
146
- ? { play: 'Přehrát trasu', stop: 'Zastavit' }
266
+ ? {
267
+ play: 'Přehrát trasu',
268
+ stop: 'Zastavit',
269
+ fullscreen: 'Celá obrazovka',
270
+ exitFullscreen: 'Ukončit celou obrazovku',
271
+ export: 'Export trasy',
272
+ exportGpx: 'Stáhnout GPX',
273
+ exportGpxHint: 'hodinky, Garmin, Strava, Komoot',
274
+ openInMapy: 'Otevřít v Mapy.com',
275
+ openInGoogleMaps: 'Otevřít v Google Maps',
276
+ lightboxClose: 'Zavřít',
277
+ lightboxPrev: 'Předchozí fotka',
278
+ lightboxNext: 'Další fotka',
279
+ zoomImage: 'Zobrazit na celou obrazovku',
280
+ }
147
281
  : undefined
148
282
  }
283
+
284
+
285
+ // ---------------------------------------------------------------------------
286
+ // Server-rendered facade — what crawlers and no-JS readers get
287
+ // ---------------------------------------------------------------------------
288
+
289
+ /** One thumbnail of the static facade (author order for `slugs`, capture order otherwise). */
290
+ export interface TripMapFacadeThumb {
291
+ slug: string
292
+ src: string
293
+ /** Alt text when the host handed the article's media in; empty otherwise. */
294
+ alt: string
295
+ }
296
+
297
+ /** One named stop of the static facade (place-labelled photos + hand-made waypoints, chronological). */
298
+ export interface TripMapFacadeStop {
299
+ key: string
300
+ title: string
301
+ capturedAt?: string
302
+ }
303
+
304
+ export interface TripMapFacade {
305
+ thumbs: TripMapFacadeThumb[]
306
+ stops: TripMapFacadeStop[]
307
+ }
308
+
309
+ /**
310
+ * What the facade needs from a host-provided media row — a structural subset
311
+ * that both the blog SDK's `ContentImageGeo` and `TripMapGeoNode` satisfy.
312
+ */
313
+ export interface TripMapFacadeMedia {
314
+ /** Rows without a slug (older API builds) are ignored. */
315
+ slug?: string | null
316
+ thumbnailUrl?: string | null
317
+ altText?: string | null
318
+ placeName?: string | null
319
+ capturedAt?: string | null
320
+ }
321
+
322
+ const thumbUrlFor = (slug: string): string => `/api/media/thumb/${encodeURIComponent(slug)}?width=192`
323
+
324
+ // An ISO date-time with no zone designator: minutes, optional seconds and fraction.
325
+ // A space or a lowercase t in place of the T is read the same way by Date.parse.
326
+ const ZONELESS_DATE_TIME = /^(\d{4}-\d{2}-\d{2})[Tt ](\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)$/
327
+
328
+ /**
329
+ * Capture instant in ms, or null when there is nothing to order by — the rule of
330
+ * `@blogmcp/tripmap-core`'s `captureTimeMs`, repeated here because this module may
331
+ * not import the core (see the header). Date.parse, except that an ISO date-time
332
+ * without a zone is read as UTC, as if it carried the Z the trip convention writes.
333
+ * Left to Date.parse it lands in the runtime's zone, and this facade renders twice —
334
+ * on the server and again in the reader's browser — so a UTC pod and a Prague
335
+ * browser would list the stops in different orders: a hydration mismatch, and a
336
+ * crawler reading another order than the reader sees.
337
+ */
338
+ const captureTimeMs = (capturedAt: unknown): number | null => {
339
+ // Hand nodes are author JSON, not type-checked: a non-string is untimed, never a throw.
340
+ if (typeof capturedAt !== 'string' || !capturedAt) return null
341
+ const zoneless = ZONELESS_DATE_TIME.exec(capturedAt.trim())
342
+ const t = Date.parse(zoneless ? `${zoneless[1]}T${zoneless[2]}Z` : capturedAt)
343
+ return Number.isNaN(t) ? null : t
344
+ }
345
+
346
+ /**
347
+ * Chronological order exactly as `@blogmcp/tripmap-core`'s `buildTripNodes` sorts
348
+ * the live map (this module may not import it — see the header), so the no-JS
349
+ * facade lists stops in the order the map draws them.
350
+ *
351
+ * By instant (`captureTimeMs`), never compared as strings: `capturedAt` has arrived
352
+ * as JS Date#toString ("Mon Apr 21 2025 …"), and as a string that sorts by weekday
353
+ * name and puts every such value after any ISO one. Timed items first by instant
354
+ * (stable, so equal instants keep input order); unparseable or missing times are
355
+ * untimed and follow in input order.
356
+ */
357
+ function orderByCaptureTime<T extends { capturedAt?: string | null }>(items: readonly T[]): T[] {
358
+ const timed: Array<{ item: T; t: number }> = []
359
+ const untimed: T[] = []
360
+ for (const item of items) {
361
+ const t = captureTimeMs(item.capturedAt)
362
+ if (t === null) untimed.push(item)
363
+ else timed.push({ item, t })
364
+ }
365
+ timed.sort((a, b) => a.t - b.t)
366
+ return [...timed.map((entry) => entry.item), ...untimed]
367
+ }
368
+
369
+ /**
370
+ * The static facade both renderers server-render before any script runs:
371
+ * a thumbnail strip with alt text and a list of named stops. It is the part
372
+ * of a TripMap that search engines and answer engines read.
373
+ *
374
+ * - `slugs` set → those photos in author order; alt text comes from the
375
+ * article media the host provided (`context.media`), empty when unknown.
376
+ * - AUTO mode → every photo of the article the host provided, minus
377
+ * `exclude`, in capture order. Without host-provided media the facade has
378
+ * no thumbs (the live map still fetches them; only the no-JS view is poorer).
379
+ * - Stops: photos with a `placeName` plus hand-made `nodes`, chronological.
380
+ */
381
+ export function tripMapFacade(
382
+ props: Pick<TripMapProps, 'slugs' | 'exclude' | 'nodes'>,
383
+ context: { media?: readonly TripMapFacadeMedia[] | null } | null | undefined,
384
+ ): TripMapFacade {
385
+ const media = (context?.media ?? []).filter((m): m is TripMapFacadeMedia & { slug: string } => Boolean(m.slug))
386
+ const bySlug = new Map(media.map((m) => [m.slug, m]))
387
+ const slugList = splitTripMapList(props.slugs)
388
+ const exclude = new Set(splitTripMapList(props.exclude))
389
+
390
+ let photos: Array<TripMapFacadeMedia & { slug: string }>
391
+ let thumbs: TripMapFacadeThumb[]
392
+ if (slugList.length > 0) {
393
+ thumbs = slugList.map((slug) => {
394
+ const m = bySlug.get(slug)
395
+ return { slug, src: m?.thumbnailUrl || thumbUrlFor(slug), alt: m?.altText ?? '' }
396
+ })
397
+ photos = slugList.map((slug) => bySlug.get(slug)).filter((m): m is TripMapFacadeMedia & { slug: string } => Boolean(m))
398
+ } else {
399
+ photos = orderByCaptureTime(media.filter((m) => !exclude.has(m.slug)))
400
+ thumbs = photos.map((m) => ({ slug: m.slug, src: m.thumbnailUrl || thumbUrlFor(m.slug), alt: m.altText ?? '' }))
401
+ }
402
+
403
+ const stops: TripMapFacadeStop[] = orderByCaptureTime([
404
+ ...photos
405
+ .filter((m) => m.placeName)
406
+ .map((m) => ({ key: `m:${m.slug}`, title: m.placeName as string, capturedAt: m.capturedAt ?? undefined })),
407
+ ...parseTripMapHandNodes(props.nodes).map((n, i) => ({
408
+ key: `n:${n.id || i}`,
409
+ title: n.title || `${n.lat}, ${n.lng}`,
410
+ capturedAt: n.capturedAt,
411
+ })),
412
+ ])
413
+
414
+ return { thumbs, stops }
415
+ }
@@ -112,7 +112,10 @@ export interface TripMapHandNode {
112
112
  /** ISO timestamp — places the node into the chronological route line */
113
113
  capturedAt?: string
114
114
  thumbnailUrl?: string
115
- /** Optional link target for the popup */
115
+ /**
116
+ * Optional link target for the popup: an http(s) URL or an on-site reference
117
+ * (`/…`, `./…`, `../…`, `#…`, `?…`). The map renders anything else as no link.
118
+ */
116
119
  href?: string
117
120
  }
118
121
 
@@ -138,6 +141,11 @@ export interface TripMapProps {
138
141
  cluster?: boolean
139
142
  /** Color scheme; "auto" follows the reader's system preference */
140
143
  theme?: 'light' | 'dark' | 'auto'
144
+ /**
145
+ * Where the selected photo opens: "popup" on the map (default) or "panel"
146
+ * below the filmstrip at full width — larger photos, the map keeps its height
147
+ */
148
+ detail?: 'popup' | 'panel'
141
149
  /** MapLibre style JSON URL override (wins over tenant config) */
142
150
  styleUrl?: string
143
151
  /** Initial center "lat,lng" — overrides smart framing (pair with zoom) */
package/src/version.ts CHANGED
@@ -19,6 +19,6 @@
19
19
  *
20
20
  * npm run baseline:regen --workspace=@blogmcp/mdx-schema
21
21
  */
22
- export const SCHEMA_VERSION = '0.3.0' as const
22
+ export const SCHEMA_VERSION = '0.4.0' as const
23
23
 
24
24
  export type SchemaVersion = typeof SCHEMA_VERSION