@blogmcp/mdx-schema 0.2.2 → 0.4.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.
@@ -82,6 +82,59 @@ export interface AudioPlayerProps {
82
82
  /** Show collapsible transcript */
83
83
  showTranscription?: boolean;
84
84
  }
85
+ /**
86
+ * TripMap component types
87
+ */
88
+ /**
89
+ * Hand-made map node authored in the `nodes` prop. STRICT JSON in MDX:
90
+ * `nodes={[{"lat":49.35,"lng":16.31,"title":"Níhov"}]}` — unquoted keys
91
+ * silently degrade to a raw string in the prop parser.
92
+ */
93
+ export interface TripMapHandNode {
94
+ lat: number;
95
+ lng: number;
96
+ /** Stable identity; generated (`waypoint-<n>`) when omitted */
97
+ id?: string;
98
+ /** Short label shown on the marker popup + filmstrip */
99
+ title?: string;
100
+ description?: string;
101
+ /** ISO timestamp — places the node into the chronological route line */
102
+ capturedAt?: string;
103
+ thumbnailUrl?: string;
104
+ /** Optional link target for the popup */
105
+ href?: string;
106
+ }
107
+ export interface TripMapProps {
108
+ /**
109
+ * Comma-separated media slugs to map. Omit for AUTO mode: every geotagged
110
+ * media attached to or embedded in the article, sorted by capture time.
111
+ */
112
+ slugs?: string;
113
+ /** AUTO mode only: comma-separated media slugs to leave off the map */
114
+ exclude?: string;
115
+ /** Hand-made nodes (strict JSON), merged chronologically with photo nodes */
116
+ nodes?: TripMapHandNode[];
117
+ /** CSS height of the map box (e.g. "420px") */
118
+ height?: string;
119
+ /** Chronological polyline between time-neighbouring nodes */
120
+ line?: boolean;
121
+ /** Synced photo strip below the map */
122
+ filmstrip?: boolean;
123
+ /** Play button: sequential fly-through along the route */
124
+ playback?: boolean;
125
+ /** Marker clustering */
126
+ cluster?: boolean;
127
+ /** Color scheme; "auto" follows the reader's system preference */
128
+ theme?: 'light' | 'dark' | 'auto';
129
+ /** MapLibre style JSON URL override (wins over tenant config) */
130
+ styleUrl?: string;
131
+ /** Initial center "lat,lng" — overrides smart framing (pair with zoom) */
132
+ center?: string;
133
+ /** Initial zoom (1-19) — overrides smart framing (pair with center) */
134
+ zoom?: number;
135
+ /** Accessible label for the map region */
136
+ title?: string;
137
+ }
85
138
  /**
86
139
  * Common component variant type
87
140
  */
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAoWH,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;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"}
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.2.0";
22
+ export declare const SCHEMA_VERSION: "0.3.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.2.0';
22
+ export const SCHEMA_VERSION = '0.3.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.2.2",
3
+ "version": "0.4.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": {
@@ -45,6 +45,10 @@
45
45
  "./checkPin": {
46
46
  "types": "./src/checkPin.ts",
47
47
  "import": "./dist/checkPin.js"
48
+ },
49
+ "./tripmap": {
50
+ "types": "./src/tripmap.ts",
51
+ "import": "./dist/tripmap.js"
48
52
  }
49
53
  },
50
54
  "files": [