@blogmcp/sdk 0.6.0 → 0.6.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/dist/core/index.js +2 -2
- package/dist/packages/mdx-render-vue/dist/composables/useGallery.js +12 -11
- package/dist/packages/mdx-render-vue/dist/composables/useTripMap.js +16 -16
- package/dist/packages/mdx-render-vue/dist/edit/TripMapEdit.vue.js +1 -1
- package/dist/packages/mdx-render-vue/dist/registry.js +21 -22
- package/dist/packages/mdx-render-vue/dist/render/alert/Alert.vue2.js +1 -1
- package/dist/packages/mdx-render-vue/dist/render/badge/Badge.vue2.js +1 -1
- package/dist/packages/mdx-render-vue/dist/render/button/Button.vue2.js +1 -1
- package/dist/packages/mdx-render-vue/dist/render/callout/CalloutDefault.vue.js +1 -1
- package/dist/packages/mdx-render-vue/dist/render/callout/CalloutMinimal.vue.js +1 -1
- package/dist/packages/mdx-render-vue/dist/render/tripmap/TripMapDefault.vue.js +2 -2
- package/dist/react/KbMdxContent.js +7 -8
- package/dist/vue/components/KbMdxContent.vue2.js +6 -7
- package/package.json +3 -3
- package/dist/_virtual/constants.js +0 -4
- package/dist/_virtual/index.js +0 -2
- package/dist/_virtual/index2.js +0 -4
- package/dist/_virtual/index3.js +0 -2
- package/dist/_virtual/re.js +0 -4
- package/dist/node_modules/@braintree/sanitize-url/dist/constants.js +0 -8
- package/dist/node_modules/@braintree/sanitize-url/dist/index.js +0 -60
- package/dist/node_modules/dompurify/dist/purify.es.js +0 -662
- package/dist/node_modules/semver/classes/comparator.js +0 -56
- package/dist/node_modules/semver/classes/range.js +0 -148
- package/dist/node_modules/semver/classes/semver.js +0 -169
- package/dist/node_modules/semver/functions/clean.js +0 -14
- package/dist/node_modules/semver/functions/cmp.js +0 -39
- package/dist/node_modules/semver/functions/coerce.js +0 -33
- package/dist/node_modules/semver/functions/compare-build.js +0 -14
- package/dist/node_modules/semver/functions/compare-loose.js +0 -11
- package/dist/node_modules/semver/functions/compare.js +0 -11
- package/dist/node_modules/semver/functions/diff.js +0 -24
- package/dist/node_modules/semver/functions/eq.js +0 -11
- package/dist/node_modules/semver/functions/gt.js +0 -11
- package/dist/node_modules/semver/functions/gte.js +0 -11
- package/dist/node_modules/semver/functions/inc.js +0 -21
- package/dist/node_modules/semver/functions/lt.js +0 -11
- package/dist/node_modules/semver/functions/lte.js +0 -11
- package/dist/node_modules/semver/functions/major.js +0 -11
- package/dist/node_modules/semver/functions/minor.js +0 -11
- package/dist/node_modules/semver/functions/neq.js +0 -11
- package/dist/node_modules/semver/functions/parse.js +0 -21
- package/dist/node_modules/semver/functions/patch.js +0 -11
- package/dist/node_modules/semver/functions/prerelease.js +0 -14
- package/dist/node_modules/semver/functions/rcompare.js +0 -11
- package/dist/node_modules/semver/functions/rsort.js +0 -11
- package/dist/node_modules/semver/functions/satisfies.js +0 -18
- package/dist/node_modules/semver/functions/sort.js +0 -11
- package/dist/node_modules/semver/functions/valid.js +0 -14
- package/dist/node_modules/semver/index.js +0 -97
- package/dist/node_modules/semver/internal/constants.js +0 -28
- package/dist/node_modules/semver/internal/debug.js +0 -8
- package/dist/node_modules/semver/internal/identifiers.js +0 -18
- package/dist/node_modules/semver/internal/lrucache.js +0 -32
- package/dist/node_modules/semver/internal/parse-options.js +0 -10
- package/dist/node_modules/semver/internal/re.js +0 -32
- package/dist/node_modules/semver/ranges/gtr.js +0 -11
- package/dist/node_modules/semver/ranges/intersects.js +0 -11
- package/dist/node_modules/semver/ranges/ltr.js +0 -11
- package/dist/node_modules/semver/ranges/max-satisfying.js +0 -22
- package/dist/node_modules/semver/ranges/min-satisfying.js +0 -22
- package/dist/node_modules/semver/ranges/min-version.js +0 -42
- package/dist/node_modules/semver/ranges/outside.js +0 -44
- package/dist/node_modules/semver/ranges/simplify.js +0 -24
- package/dist/node_modules/semver/ranges/subset.js +0 -94
- package/dist/node_modules/semver/ranges/to-comparators.js +0 -11
- package/dist/node_modules/semver/ranges/valid.js +0 -17
- package/dist/packages/mdx-schema/dist/composables/useMdxParsing.js +0 -389
- package/dist/packages/mdx-schema/dist/metadata/index.js +0 -526
- package/dist/packages/mdx-schema/dist/prepareProps.js +0 -46
- package/dist/packages/mdx-schema/dist/styles/index.js +0 -147
- package/dist/packages/mdx-schema/dist/tripmap.js +0 -101
- package/dist/packages/mdx-schema/dist/types/index.js +0 -26
- package/dist/packages/sanitize/dist/html.js +0 -89
|
@@ -1,526 +0,0 @@
|
|
|
1
|
-
const t = [
|
|
2
|
-
{
|
|
3
|
-
name: "Callout",
|
|
4
|
-
description: "Info/warning/tip message box",
|
|
5
|
-
icon: "💬",
|
|
6
|
-
category: "content",
|
|
7
|
-
aliases: ["callout", "note", "alert", "info", "warning", "tip"],
|
|
8
|
-
props: [
|
|
9
|
-
{
|
|
10
|
-
name: "type",
|
|
11
|
-
type: "string",
|
|
12
|
-
required: !1,
|
|
13
|
-
default: '"info"',
|
|
14
|
-
description: "Callout style: info, warning, tip, or danger",
|
|
15
|
-
enum: ["info", "warning", "tip", "danger"]
|
|
16
|
-
}
|
|
17
|
-
],
|
|
18
|
-
hasChildren: !0,
|
|
19
|
-
selfClosing: !1,
|
|
20
|
-
defaultProps: 'type="info"',
|
|
21
|
-
defaultChildren: "Your message here",
|
|
22
|
-
example: `<Callout type="info">
|
|
23
|
-
Your message here
|
|
24
|
-
</Callout>`,
|
|
25
|
-
addedIn: "0.1.0",
|
|
26
|
-
deprecated: []
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
name: "YouTube",
|
|
30
|
-
description: "Embedded video player",
|
|
31
|
-
icon: "▶",
|
|
32
|
-
category: "media",
|
|
33
|
-
aliases: ["youtube", "video", "embed"],
|
|
34
|
-
props: [
|
|
35
|
-
{
|
|
36
|
-
name: "id",
|
|
37
|
-
type: "string",
|
|
38
|
-
required: !0,
|
|
39
|
-
description: 'YouTube video ID (e.g., "dQw4w9WgXcQ")'
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
name: "title",
|
|
43
|
-
type: "string",
|
|
44
|
-
required: !1,
|
|
45
|
-
description: "Video title displayed below the embed"
|
|
46
|
-
}
|
|
47
|
-
],
|
|
48
|
-
hasChildren: !1,
|
|
49
|
-
selfClosing: !0,
|
|
50
|
-
defaultProps: 'id="VIDEO_ID" title="Video title"',
|
|
51
|
-
defaultChildren: "",
|
|
52
|
-
example: '<YouTube id="dQw4w9WgXcQ" title="Video title" />',
|
|
53
|
-
addedIn: "0.1.0",
|
|
54
|
-
deprecated: []
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
name: "Gallery",
|
|
58
|
-
description: "Image grid with lightbox",
|
|
59
|
-
icon: "🖼",
|
|
60
|
-
category: "media",
|
|
61
|
-
aliases: ["gallery", "images", "grid", "photos"],
|
|
62
|
-
props: [
|
|
63
|
-
{
|
|
64
|
-
name: "images",
|
|
65
|
-
type: "array",
|
|
66
|
-
required: !0,
|
|
67
|
-
description: "Array of image objects with src and alt properties: {src: string, alt: string}[]"
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
name: "columns",
|
|
71
|
-
type: "number",
|
|
72
|
-
required: !1,
|
|
73
|
-
default: "2",
|
|
74
|
-
description: "Number of columns (1-4)",
|
|
75
|
-
numericRange: [1, 4]
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
name: "gap",
|
|
79
|
-
type: "number",
|
|
80
|
-
required: !1,
|
|
81
|
-
default: "4",
|
|
82
|
-
description: "Gap between images (Tailwind scale)"
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
name: "aspectRatio",
|
|
86
|
-
type: "string",
|
|
87
|
-
required: !1,
|
|
88
|
-
default: '"1"',
|
|
89
|
-
description: 'Tile aspect-ratio controlling height, e.g. "16/9" or "775/308". Use "auto" to drop the fixed box and let images use their natural height (full width, proportional) — ideal for a single wide image.',
|
|
90
|
-
addedIn: "0.2.0"
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
name: "fit",
|
|
94
|
-
type: "string",
|
|
95
|
-
required: !1,
|
|
96
|
-
default: '"cover"',
|
|
97
|
-
description: 'How the image fills its tile: "cover" crops to fill, "contain" shows the whole image letterboxed (no crop). Ignored when aspectRatio="auto".',
|
|
98
|
-
enum: ["cover", "contain"],
|
|
99
|
-
addedIn: "0.2.0"
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
name: "position",
|
|
103
|
-
type: "string",
|
|
104
|
-
required: !1,
|
|
105
|
-
default: '"center"',
|
|
106
|
-
description: 'CSS object-position selecting which region shows when cropping (e.g. "top", "50% 30%"). Only applies with fit="cover" and a fixed aspect-ratio.',
|
|
107
|
-
addedIn: "0.2.0"
|
|
108
|
-
}
|
|
109
|
-
],
|
|
110
|
-
hasChildren: !1,
|
|
111
|
-
selfClosing: !0,
|
|
112
|
-
defaultProps: 'images={[{"src": "/image1.jpg", "alt": "Image 1"}, {"src": "/image2.jpg", "alt": "Image 2"}]} columns={2}',
|
|
113
|
-
defaultChildren: "",
|
|
114
|
-
example: '<Gallery images={[{"src": "/banner.svg", "alt": "Banner"}]} columns={1} aspectRatio="16/9" fit="contain" />',
|
|
115
|
-
addedIn: "0.1.0",
|
|
116
|
-
deprecated: []
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
name: "CodeBlock",
|
|
120
|
-
description: "Syntax-highlighted code",
|
|
121
|
-
icon: "{ }",
|
|
122
|
-
category: "code",
|
|
123
|
-
aliases: ["codeblock", "snippet", "syntax"],
|
|
124
|
-
props: [
|
|
125
|
-
{
|
|
126
|
-
name: "language",
|
|
127
|
-
type: "string",
|
|
128
|
-
required: !1,
|
|
129
|
-
default: '"javascript"',
|
|
130
|
-
description: "Programming language for syntax highlighting"
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
name: "title",
|
|
134
|
-
type: "string",
|
|
135
|
-
required: !1,
|
|
136
|
-
description: "File name or title displayed in header"
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
name: "showLineNumbers",
|
|
140
|
-
type: "boolean",
|
|
141
|
-
required: !1,
|
|
142
|
-
default: "false",
|
|
143
|
-
description: "Whether to show line numbers"
|
|
144
|
-
}
|
|
145
|
-
],
|
|
146
|
-
hasChildren: !0,
|
|
147
|
-
selfClosing: !1,
|
|
148
|
-
defaultProps: 'language="javascript" title="example.js"',
|
|
149
|
-
defaultChildren: 'const hello = "world";',
|
|
150
|
-
example: `<CodeBlock language="javascript" title="example.js">
|
|
151
|
-
const hello = "world";
|
|
152
|
-
</CodeBlock>`,
|
|
153
|
-
addedIn: "0.1.0",
|
|
154
|
-
deprecated: []
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
name: "AudioPlayer",
|
|
158
|
-
description: "Audio player with optional transcription",
|
|
159
|
-
icon: "🔊",
|
|
160
|
-
category: "media",
|
|
161
|
-
aliases: ["audioplayer", "audio", "podcast", "recording"],
|
|
162
|
-
props: [
|
|
163
|
-
{
|
|
164
|
-
name: "slug",
|
|
165
|
-
type: "string",
|
|
166
|
-
required: !0,
|
|
167
|
-
description: "Media slug — resolves to /api/media/file/{slug}"
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
name: "title",
|
|
171
|
-
type: "string",
|
|
172
|
-
required: !1,
|
|
173
|
-
description: "Displayed title"
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
name: "showTranscription",
|
|
177
|
-
type: "boolean",
|
|
178
|
-
required: !1,
|
|
179
|
-
default: "false",
|
|
180
|
-
description: "Show collapsible transcript panel"
|
|
181
|
-
}
|
|
182
|
-
],
|
|
183
|
-
hasChildren: !1,
|
|
184
|
-
selfClosing: !0,
|
|
185
|
-
defaultProps: 'slug="audio-slug" title="Audio title"',
|
|
186
|
-
defaultChildren: "",
|
|
187
|
-
example: '<AudioPlayer slug="interview-dr-smith" title="Interview" showTranscription />',
|
|
188
|
-
addedIn: "0.1.0",
|
|
189
|
-
deprecated: []
|
|
190
|
-
},
|
|
191
|
-
{
|
|
192
|
-
name: "Button",
|
|
193
|
-
description: "Action button or CTA link. Self-closing; label is a prop so agents do not nest MDX inside.",
|
|
194
|
-
icon: "🔘",
|
|
195
|
-
category: "action",
|
|
196
|
-
aliases: ["button", "cta", "action"],
|
|
197
|
-
props: [
|
|
198
|
-
{
|
|
199
|
-
name: "label",
|
|
200
|
-
type: "string",
|
|
201
|
-
required: !0,
|
|
202
|
-
description: "Button text"
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
name: "to",
|
|
206
|
-
type: "string",
|
|
207
|
-
required: !1,
|
|
208
|
-
description: "Link URL — when set, the button renders as an <a>"
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
name: "variant",
|
|
212
|
-
type: "string",
|
|
213
|
-
required: !1,
|
|
214
|
-
default: '"solid"',
|
|
215
|
-
description: "Visual style",
|
|
216
|
-
enum: ["solid", "outline", "soft", "ghost", "link"]
|
|
217
|
-
},
|
|
218
|
-
{
|
|
219
|
-
name: "color",
|
|
220
|
-
type: "string",
|
|
221
|
-
required: !1,
|
|
222
|
-
default: '"primary"',
|
|
223
|
-
description: "Semantic color",
|
|
224
|
-
enum: ["primary", "neutral", "success", "warning", "error"]
|
|
225
|
-
},
|
|
226
|
-
{
|
|
227
|
-
name: "size",
|
|
228
|
-
type: "string",
|
|
229
|
-
required: !1,
|
|
230
|
-
default: '"md"',
|
|
231
|
-
description: "Button size",
|
|
232
|
-
enum: ["sm", "md", "lg"]
|
|
233
|
-
}
|
|
234
|
-
],
|
|
235
|
-
hasChildren: !1,
|
|
236
|
-
selfClosing: !0,
|
|
237
|
-
defaultProps: 'label="Read more" to="/docs"',
|
|
238
|
-
defaultChildren: "",
|
|
239
|
-
example: '<Button label="Read more" to="/docs" variant="outline" />',
|
|
240
|
-
addedIn: "0.1.0",
|
|
241
|
-
deprecated: []
|
|
242
|
-
},
|
|
243
|
-
{
|
|
244
|
-
name: "Card",
|
|
245
|
-
description: "Content block with optional title. Wraps child MDX in a bordered container.",
|
|
246
|
-
icon: "🃏",
|
|
247
|
-
category: "content",
|
|
248
|
-
aliases: ["card", "panel", "box"],
|
|
249
|
-
props: [
|
|
250
|
-
{
|
|
251
|
-
name: "title",
|
|
252
|
-
type: "string",
|
|
253
|
-
required: !1,
|
|
254
|
-
description: "Optional heading displayed at the top of the card"
|
|
255
|
-
}
|
|
256
|
-
],
|
|
257
|
-
hasChildren: !0,
|
|
258
|
-
selfClosing: !1,
|
|
259
|
-
defaultProps: 'title="Card title"',
|
|
260
|
-
defaultChildren: "Card body content.",
|
|
261
|
-
example: `<Card title="About">
|
|
262
|
-
Content goes here.
|
|
263
|
-
</Card>`,
|
|
264
|
-
addedIn: "0.1.0",
|
|
265
|
-
deprecated: []
|
|
266
|
-
},
|
|
267
|
-
{
|
|
268
|
-
name: "Alert",
|
|
269
|
-
description: "Inline notice — flatter and smaller than Callout. Use for short status messages.",
|
|
270
|
-
icon: "⚠️",
|
|
271
|
-
category: "content",
|
|
272
|
-
aliases: ["alert", "notice", "banner"],
|
|
273
|
-
props: [
|
|
274
|
-
{
|
|
275
|
-
name: "severity",
|
|
276
|
-
type: "string",
|
|
277
|
-
required: !1,
|
|
278
|
-
default: '"info"',
|
|
279
|
-
description: "Severity level — drives color and icon",
|
|
280
|
-
enum: ["info", "success", "warning", "error"]
|
|
281
|
-
},
|
|
282
|
-
{
|
|
283
|
-
name: "title",
|
|
284
|
-
type: "string",
|
|
285
|
-
required: !1,
|
|
286
|
-
description: "Optional bold heading above the body"
|
|
287
|
-
}
|
|
288
|
-
],
|
|
289
|
-
hasChildren: !0,
|
|
290
|
-
selfClosing: !1,
|
|
291
|
-
defaultProps: 'severity="warning" title="Heads up"',
|
|
292
|
-
defaultChildren: "Important message.",
|
|
293
|
-
example: `<Alert severity="warning" title="Heads up">
|
|
294
|
-
Read this carefully.
|
|
295
|
-
</Alert>`,
|
|
296
|
-
addedIn: "0.1.0",
|
|
297
|
-
deprecated: []
|
|
298
|
-
},
|
|
299
|
-
{
|
|
300
|
-
name: "Badge",
|
|
301
|
-
description: "Small label or tag. Self-closing; label is a prop.",
|
|
302
|
-
icon: "🏷",
|
|
303
|
-
category: "content",
|
|
304
|
-
aliases: ["badge", "tag", "chip", "label"],
|
|
305
|
-
props: [
|
|
306
|
-
{
|
|
307
|
-
name: "label",
|
|
308
|
-
type: "string",
|
|
309
|
-
required: !0,
|
|
310
|
-
description: "Badge text"
|
|
311
|
-
},
|
|
312
|
-
{
|
|
313
|
-
name: "color",
|
|
314
|
-
type: "string",
|
|
315
|
-
required: !1,
|
|
316
|
-
default: '"neutral"',
|
|
317
|
-
description: "Semantic color",
|
|
318
|
-
enum: ["primary", "neutral", "success", "warning", "error"]
|
|
319
|
-
},
|
|
320
|
-
{
|
|
321
|
-
name: "variant",
|
|
322
|
-
type: "string",
|
|
323
|
-
required: !1,
|
|
324
|
-
default: '"soft"',
|
|
325
|
-
description: "Visual style",
|
|
326
|
-
enum: ["solid", "soft", "outline"]
|
|
327
|
-
}
|
|
328
|
-
],
|
|
329
|
-
hasChildren: !1,
|
|
330
|
-
selfClosing: !0,
|
|
331
|
-
defaultProps: 'label="New" color="success"',
|
|
332
|
-
defaultChildren: "",
|
|
333
|
-
example: '<Badge label="New" color="success" />',
|
|
334
|
-
addedIn: "0.1.0",
|
|
335
|
-
deprecated: []
|
|
336
|
-
},
|
|
337
|
-
{
|
|
338
|
-
name: "Icon",
|
|
339
|
-
description: 'Inline SVG icon from any Iconify set (lucide, mdi, heroicons, etc.). Name format: "set:icon".',
|
|
340
|
-
icon: "★",
|
|
341
|
-
category: "media",
|
|
342
|
-
aliases: ["icon", "symbol"],
|
|
343
|
-
props: [
|
|
344
|
-
{
|
|
345
|
-
name: "name",
|
|
346
|
-
type: "string",
|
|
347
|
-
required: !0,
|
|
348
|
-
description: 'Iconify identifier, e.g. "lucide:star", "mdi:check", "heroicons:heart"'
|
|
349
|
-
},
|
|
350
|
-
{
|
|
351
|
-
name: "size",
|
|
352
|
-
type: "number",
|
|
353
|
-
required: !1,
|
|
354
|
-
default: "20",
|
|
355
|
-
description: "Pixel size (width = height)"
|
|
356
|
-
},
|
|
357
|
-
{
|
|
358
|
-
name: "color",
|
|
359
|
-
type: "string",
|
|
360
|
-
required: !1,
|
|
361
|
-
description: "CSS color — omit to inherit current text color"
|
|
362
|
-
}
|
|
363
|
-
],
|
|
364
|
-
hasChildren: !1,
|
|
365
|
-
selfClosing: !0,
|
|
366
|
-
defaultProps: 'name="lucide:star"',
|
|
367
|
-
defaultChildren: "",
|
|
368
|
-
example: '<Icon name="lucide:star" size={24} />',
|
|
369
|
-
addedIn: "0.1.0",
|
|
370
|
-
deprecated: []
|
|
371
|
-
},
|
|
372
|
-
{
|
|
373
|
-
name: "Tooltip",
|
|
374
|
-
description: "Hover-reveal tooltip wrapping its child. Backed by Ark UI — keyboard accessible, portals on demand.",
|
|
375
|
-
icon: "💡",
|
|
376
|
-
category: "action",
|
|
377
|
-
aliases: ["tooltip", "hint"],
|
|
378
|
-
props: [
|
|
379
|
-
{
|
|
380
|
-
name: "label",
|
|
381
|
-
type: "string",
|
|
382
|
-
required: !0,
|
|
383
|
-
description: "Tooltip text shown on hover or focus"
|
|
384
|
-
},
|
|
385
|
-
{
|
|
386
|
-
name: "placement",
|
|
387
|
-
type: "string",
|
|
388
|
-
required: !1,
|
|
389
|
-
default: '"top"',
|
|
390
|
-
description: "Position relative to the trigger",
|
|
391
|
-
enum: ["top", "bottom", "left", "right"]
|
|
392
|
-
}
|
|
393
|
-
],
|
|
394
|
-
hasChildren: !0,
|
|
395
|
-
selfClosing: !1,
|
|
396
|
-
defaultProps: 'label="Click to save"',
|
|
397
|
-
defaultChildren: '<Button label="Save" />',
|
|
398
|
-
example: `<Tooltip label="Saves instantly">
|
|
399
|
-
<Button label="Save" />
|
|
400
|
-
</Tooltip>`,
|
|
401
|
-
addedIn: "0.1.0",
|
|
402
|
-
deprecated: []
|
|
403
|
-
},
|
|
404
|
-
{
|
|
405
|
-
name: "TripMap",
|
|
406
|
-
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.",
|
|
407
|
-
icon: "🗺",
|
|
408
|
-
category: "media",
|
|
409
|
-
aliases: ["tripmap", "map", "trip", "route", "travelmap", "hike"],
|
|
410
|
-
props: [
|
|
411
|
-
{
|
|
412
|
-
name: "slugs",
|
|
413
|
-
type: "string",
|
|
414
|
-
required: !1,
|
|
415
|
-
description: 'Comma-separated media slugs to map (e.g. "img-a,img-b"). Omit for AUTO mode: all geotagged media of the article, sorted by capture time.'
|
|
416
|
-
},
|
|
417
|
-
{
|
|
418
|
-
name: "exclude",
|
|
419
|
-
type: "string",
|
|
420
|
-
required: !1,
|
|
421
|
-
description: "AUTO mode only: comma-separated media slugs to leave off the map."
|
|
422
|
-
},
|
|
423
|
-
{
|
|
424
|
-
name: "nodes",
|
|
425
|
-
type: "array",
|
|
426
|
-
required: !1,
|
|
427
|
-
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.'
|
|
428
|
-
},
|
|
429
|
-
{
|
|
430
|
-
name: "height",
|
|
431
|
-
type: "string",
|
|
432
|
-
required: !1,
|
|
433
|
-
default: '"420px"',
|
|
434
|
-
description: "CSS height of the map box."
|
|
435
|
-
},
|
|
436
|
-
{
|
|
437
|
-
name: "line",
|
|
438
|
-
type: "boolean",
|
|
439
|
-
required: !1,
|
|
440
|
-
default: "true",
|
|
441
|
-
description: "Draw the chronological route line between time-neighbouring nodes."
|
|
442
|
-
},
|
|
443
|
-
{
|
|
444
|
-
name: "filmstrip",
|
|
445
|
-
type: "boolean",
|
|
446
|
-
required: !1,
|
|
447
|
-
default: "true",
|
|
448
|
-
description: "Show the synced photo strip below the map."
|
|
449
|
-
},
|
|
450
|
-
{
|
|
451
|
-
name: "playback",
|
|
452
|
-
type: "boolean",
|
|
453
|
-
required: !1,
|
|
454
|
-
default: "true",
|
|
455
|
-
description: "Show the play button that flies the camera along the route."
|
|
456
|
-
},
|
|
457
|
-
{
|
|
458
|
-
name: "cluster",
|
|
459
|
-
type: "boolean",
|
|
460
|
-
required: !1,
|
|
461
|
-
default: "true",
|
|
462
|
-
description: "Cluster nearby markers at low zoom."
|
|
463
|
-
},
|
|
464
|
-
{
|
|
465
|
-
name: "theme",
|
|
466
|
-
type: "string",
|
|
467
|
-
required: !1,
|
|
468
|
-
default: '"auto"',
|
|
469
|
-
description: 'Map color scheme; "auto" follows the reader’s system preference.',
|
|
470
|
-
enum: ["light", "dark", "auto"]
|
|
471
|
-
},
|
|
472
|
-
{
|
|
473
|
-
name: "detail",
|
|
474
|
-
type: "string",
|
|
475
|
-
required: !1,
|
|
476
|
-
default: '"popup"',
|
|
477
|
-
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.',
|
|
478
|
-
enum: ["popup", "panel"],
|
|
479
|
-
addedIn: "0.4.0"
|
|
480
|
-
},
|
|
481
|
-
{
|
|
482
|
-
name: "styleUrl",
|
|
483
|
-
type: "string",
|
|
484
|
-
required: !1,
|
|
485
|
-
description: "MapLibre style JSON URL override for this block (wins over tenant config)."
|
|
486
|
-
},
|
|
487
|
-
{
|
|
488
|
-
name: "center",
|
|
489
|
-
type: "string",
|
|
490
|
-
required: !1,
|
|
491
|
-
description: 'Initial center as "lat,lng" — overrides smart framing; pair with zoom.'
|
|
492
|
-
},
|
|
493
|
-
{
|
|
494
|
-
name: "zoom",
|
|
495
|
-
type: "number",
|
|
496
|
-
required: !1,
|
|
497
|
-
description: "Initial zoom level — overrides smart framing; pair with center.",
|
|
498
|
-
numericRange: [1, 19]
|
|
499
|
-
},
|
|
500
|
-
{
|
|
501
|
-
name: "title",
|
|
502
|
-
type: "string",
|
|
503
|
-
required: !1,
|
|
504
|
-
description: "Accessible label for the map region."
|
|
505
|
-
}
|
|
506
|
-
],
|
|
507
|
-
hasChildren: !1,
|
|
508
|
-
selfClosing: !0,
|
|
509
|
-
defaultProps: 'title="Trasa výletu"',
|
|
510
|
-
defaultChildren: "",
|
|
511
|
-
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"}]} />',
|
|
512
|
-
addedIn: "0.3.0",
|
|
513
|
-
deprecated: []
|
|
514
|
-
}
|
|
515
|
-
], a = new Map(t.map((e) => [e.name, e]));
|
|
516
|
-
function i(e) {
|
|
517
|
-
return a.get(e);
|
|
518
|
-
}
|
|
519
|
-
function r() {
|
|
520
|
-
return t.map((e) => e.name);
|
|
521
|
-
}
|
|
522
|
-
export {
|
|
523
|
-
t as componentMetadata,
|
|
524
|
-
i as getComponentMetadata,
|
|
525
|
-
r as getComponentNames
|
|
526
|
-
};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { isPropRenameEntry as c, isEnumValueRenameEntry as a, isPropRemovedEntry as u, isPropBecameRequiredEntry as d, isDefaultChangeAcceptedEntry as l, isComponentStructureChangeEntry as $ } from "./types/index.js";
|
|
2
|
-
const i = /* @__PURE__ */ new Set();
|
|
3
|
-
function m() {
|
|
4
|
-
return typeof process < "u" && typeof process.env < "u" && process.env.NODE_ENV === "production";
|
|
5
|
-
}
|
|
6
|
-
function t(r, n) {
|
|
7
|
-
m() || i.has(r) || (i.add(r), console.warn(`[mdx-schema] ${n}`));
|
|
8
|
-
}
|
|
9
|
-
const f = /^on[A-Za-z]/i;
|
|
10
|
-
function y(r, n) {
|
|
11
|
-
return f.test(r) && typeof n == "string";
|
|
12
|
-
}
|
|
13
|
-
function P(r, n) {
|
|
14
|
-
const o = { ...r };
|
|
15
|
-
for (const e of Object.keys(o))
|
|
16
|
-
y(e, o[e]) && (delete o[e], t(`${n.name}.eventHandlerProp.${e}`, `${n.name}: dropped string-valued event-handler-shaped prop "${e}" — MDX content cannot bind DOM event handlers (potential XSS vector).`));
|
|
17
|
-
for (const e of n.deprecated) {
|
|
18
|
-
if (c(e)) {
|
|
19
|
-
const p = Object.prototype.hasOwnProperty.call(o, e.prop), s = Object.prototype.hasOwnProperty.call(o, e.aliasFor);
|
|
20
|
-
p && (s || (o[e.aliasFor] = o[e.prop]), delete o[e.prop], t(`${n.name}.propRename.${e.prop}`, `${n.name}: prop "${e.prop}" was renamed to "${e.aliasFor}" in ${e.since} (removed in ${e.removeIn}). ${e.message}`));
|
|
21
|
-
continue;
|
|
22
|
-
}
|
|
23
|
-
if (a(e)) {
|
|
24
|
-
const p = o[e.prop];
|
|
25
|
-
if (typeof p == "string" && Object.prototype.hasOwnProperty.call(e.valueAliases, p)) {
|
|
26
|
-
const s = e.valueAliases[p];
|
|
27
|
-
o[e.prop] = s, t(`${n.name}.enumValueRename.${e.prop}`, `${n.name}.${e.prop}: value "${p}" was renamed to "${s}" in ${e.since} (removed in ${e.removeIn}). ${e.message}`);
|
|
28
|
-
}
|
|
29
|
-
continue;
|
|
30
|
-
}
|
|
31
|
-
if (u(e)) {
|
|
32
|
-
Object.prototype.hasOwnProperty.call(o, e.prop) && t(`${n.name}.propRemoved.${e.prop}`, `${n.name}: prop "${e.prop}" was removed in ${e.removeIn} but is still present on content (run codemod ${e.codemod}). ${e.message}`);
|
|
33
|
-
continue;
|
|
34
|
-
}
|
|
35
|
-
if (d(e)) {
|
|
36
|
-
Object.prototype.hasOwnProperty.call(o, e.prop) || (o[e.prop] = e.defaultValue, t(`${n.name}.propBecameRequired.${e.prop}`, `${n.name}: prop "${e.prop}" became required in ${e.since} but is missing from stored content (run codemod ${e.codemod}; injected default for render). ${e.message}`));
|
|
37
|
-
continue;
|
|
38
|
-
}
|
|
39
|
-
l(e) || $(e);
|
|
40
|
-
}
|
|
41
|
-
return o;
|
|
42
|
-
}
|
|
43
|
-
export {
|
|
44
|
-
i as loggedKeys,
|
|
45
|
-
P as prepareProps
|
|
46
|
-
};
|