@mintlify/cli 4.0.1511 → 4.0.1513
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/bin/tsconfig.build.tsbuildinfo +1 -1
- package/bin/vendor/converter.js +79 -146
- package/package.json +8 -8
package/bin/vendor/converter.js
CHANGED
|
@@ -173,8 +173,10 @@ import { Schema } from "prosemirror-model";
|
|
|
173
173
|
|
|
174
174
|
// ../editor/dist/schemas/component-attrs.js
|
|
175
175
|
var DEFAULT_MERMAID_PLACEMENT2 = "bottom-right";
|
|
176
|
-
var ICON_DESCRIPTION = "
|
|
177
|
-
var ICON_TYPE_DESCRIPTION = "
|
|
176
|
+
var ICON_DESCRIPTION = "Font Awesome, Lucide or Tabler icon name, URL, path to an icon file, or SVG code.";
|
|
177
|
+
var ICON_TYPE_DESCRIPTION = "Font Awesome icon style. Ignored for other icon libraries.";
|
|
178
|
+
var HEX_COLOR_PLACEHOLDER = "#FF6B6B";
|
|
179
|
+
var URL_PLACEHOLDER = "https://example.com/page";
|
|
178
180
|
var BADGE_COLOR_OPTIONS = [
|
|
179
181
|
"gray",
|
|
180
182
|
"blue",
|
|
@@ -194,12 +196,8 @@ var CARD_TYPE_OPTIONS = ["info", "warning", "note", "tip", "check", "danger"];
|
|
|
194
196
|
var STEP_ATTRS = [
|
|
195
197
|
{ name: "icon", type: "expression", description: ICON_DESCRIPTION },
|
|
196
198
|
{ name: "iconType", type: "string", description: ICON_TYPE_DESCRIPTION },
|
|
197
|
-
{ name: "stepNumber", type: "number",
|
|
198
|
-
{
|
|
199
|
-
name: "titleSize",
|
|
200
|
-
type: "string",
|
|
201
|
-
description: "The size of the step titles. One of p, h2, h3, and h4."
|
|
202
|
-
},
|
|
199
|
+
{ name: "stepNumber", type: "number", placeholder: "1" },
|
|
200
|
+
{ name: "titleSize", type: "string" },
|
|
203
201
|
{ name: "isLast", type: "boolean" }
|
|
204
202
|
];
|
|
205
203
|
var CARD_ATTRS = [
|
|
@@ -207,46 +205,32 @@ var CARD_ATTRS = [
|
|
|
207
205
|
name: "type",
|
|
208
206
|
type: "string",
|
|
209
207
|
options: CARD_TYPE_OPTIONS,
|
|
210
|
-
description: "
|
|
208
|
+
description: "Callout-style theme for the background, border and default icon."
|
|
211
209
|
},
|
|
212
210
|
{
|
|
213
211
|
name: "color",
|
|
214
212
|
type: "string",
|
|
215
|
-
|
|
213
|
+
placeholder: HEX_COLOR_PLACEHOLDER,
|
|
214
|
+
description: "Color of the card icon."
|
|
216
215
|
},
|
|
217
216
|
{ name: "icon", type: "expression", description: ICON_DESCRIPTION },
|
|
218
217
|
{ name: "iconType", type: "string", description: ICON_TYPE_DESCRIPTION },
|
|
219
|
-
{
|
|
220
|
-
|
|
221
|
-
type: "boolean",
|
|
222
|
-
description: "Display the card in a compact horizontal layout."
|
|
223
|
-
},
|
|
224
|
-
{ name: "href", type: "string", description: "URL to navigate to when the card is clicked." },
|
|
218
|
+
{ name: "horizontal", type: "boolean", description: "Compact horizontal layout." },
|
|
219
|
+
{ name: "href", type: "string", placeholder: URL_PLACEHOLDER },
|
|
225
220
|
{
|
|
226
221
|
name: "img",
|
|
227
222
|
type: "string",
|
|
228
|
-
|
|
223
|
+
placeholder: "/images/hero.png",
|
|
224
|
+
description: "Shown at the top of the card."
|
|
229
225
|
},
|
|
230
|
-
{ name: "cta", type: "string",
|
|
226
|
+
{ name: "cta", type: "string", placeholder: "Learn more" }
|
|
231
227
|
];
|
|
232
228
|
var COLUMNS_ATTRS = [
|
|
233
|
-
{
|
|
234
|
-
name: "cols",
|
|
235
|
-
type: "number",
|
|
236
|
-
description: "The number of columns per row. Accepts values from 1 to 4."
|
|
237
|
-
}
|
|
229
|
+
{ name: "cols", type: "number" }
|
|
238
230
|
];
|
|
239
231
|
var ACCORDION_ATTRS = [
|
|
240
|
-
{
|
|
241
|
-
|
|
242
|
-
type: "string",
|
|
243
|
-
description: "Detail below the title in the Accordion preview."
|
|
244
|
-
},
|
|
245
|
-
{
|
|
246
|
-
name: "defaultOpen",
|
|
247
|
-
type: "boolean",
|
|
248
|
-
description: "Whether the Accordion is open by default."
|
|
249
|
-
},
|
|
232
|
+
{ name: "description", type: "string", placeholder: "Shown below the title" },
|
|
233
|
+
{ name: "defaultOpen", type: "boolean" },
|
|
250
234
|
{ name: "icon", type: "expression", description: ICON_DESCRIPTION },
|
|
251
235
|
{ name: "iconType", type: "string", description: ICON_TYPE_DESCRIPTION }
|
|
252
236
|
];
|
|
@@ -257,7 +241,8 @@ var CALLOUT_ATTRS = [
|
|
|
257
241
|
{
|
|
258
242
|
name: "color",
|
|
259
243
|
type: "string",
|
|
260
|
-
|
|
244
|
+
placeholder: "#FFC107",
|
|
245
|
+
description: "Border, background tint and text color."
|
|
261
246
|
}
|
|
262
247
|
];
|
|
263
248
|
var TAB_ATTRS = [
|
|
@@ -265,7 +250,8 @@ var TAB_ATTRS = [
|
|
|
265
250
|
name: "title",
|
|
266
251
|
type: "string",
|
|
267
252
|
required: true,
|
|
268
|
-
|
|
253
|
+
placeholder: "macOS",
|
|
254
|
+
description: "Tabs with matching titles sync their selection."
|
|
269
255
|
},
|
|
270
256
|
{ name: "icon", type: "expression", description: ICON_DESCRIPTION },
|
|
271
257
|
{ name: "iconType", type: "string", description: ICON_TYPE_DESCRIPTION }
|
|
@@ -274,43 +260,21 @@ var TABS_ATTRS = [
|
|
|
274
260
|
{
|
|
275
261
|
name: "defaultTabIndex",
|
|
276
262
|
type: "number",
|
|
277
|
-
|
|
263
|
+
placeholder: "0",
|
|
264
|
+
description: "Zero-based index of the tab shown on page load."
|
|
278
265
|
}
|
|
279
266
|
];
|
|
280
267
|
var BADGE_ATTRS = [
|
|
281
|
-
{
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
default: "gray",
|
|
285
|
-
options: BADGE_COLOR_OPTIONS,
|
|
286
|
-
description: "Badge color variant."
|
|
287
|
-
},
|
|
288
|
-
{
|
|
289
|
-
name: "size",
|
|
290
|
-
type: "string",
|
|
291
|
-
default: "md",
|
|
292
|
-
options: BADGE_SIZE_OPTIONS,
|
|
293
|
-
description: "Badge size."
|
|
294
|
-
},
|
|
295
|
-
{
|
|
296
|
-
name: "shape",
|
|
297
|
-
type: "string",
|
|
298
|
-
default: "rounded",
|
|
299
|
-
options: BADGE_SHAPE_OPTIONS,
|
|
300
|
-
description: "Badge shape."
|
|
301
|
-
},
|
|
268
|
+
{ name: "color", type: "string", default: "gray", options: BADGE_COLOR_OPTIONS },
|
|
269
|
+
{ name: "size", type: "string", default: "md", options: BADGE_SIZE_OPTIONS },
|
|
270
|
+
{ name: "shape", type: "string", default: "rounded", options: BADGE_SHAPE_OPTIONS },
|
|
302
271
|
{
|
|
303
272
|
name: "stroke",
|
|
304
273
|
type: "boolean",
|
|
305
274
|
default: false,
|
|
306
|
-
description: "
|
|
307
|
-
},
|
|
308
|
-
{
|
|
309
|
-
name: "disabled",
|
|
310
|
-
type: "boolean",
|
|
311
|
-
default: false,
|
|
312
|
-
description: "Display badge in a disabled state with reduced opacity."
|
|
275
|
+
description: "Outline instead of a filled background."
|
|
313
276
|
},
|
|
277
|
+
{ name: "disabled", type: "boolean", default: false },
|
|
314
278
|
{ name: "icon", type: "expression", description: ICON_DESCRIPTION },
|
|
315
279
|
{ name: "iconType", type: "string", description: ICON_TYPE_DESCRIPTION }
|
|
316
280
|
];
|
|
@@ -320,46 +284,35 @@ var TOOLTIP_ATTRS = [
|
|
|
320
284
|
type: "string",
|
|
321
285
|
default: "",
|
|
322
286
|
required: true,
|
|
323
|
-
|
|
287
|
+
placeholder: "Application Programming Interface"
|
|
324
288
|
},
|
|
325
289
|
{
|
|
326
290
|
name: "headline",
|
|
327
291
|
type: "string",
|
|
328
292
|
default: "",
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
{
|
|
332
|
-
name: "cta",
|
|
333
|
-
type: "string",
|
|
334
|
-
default: "",
|
|
335
|
-
description: "The call-to-action text for a link within the tooltip."
|
|
293
|
+
placeholder: "Did you know?",
|
|
294
|
+
description: "Shown above the tip text."
|
|
336
295
|
},
|
|
296
|
+
{ name: "cta", type: "string", default: "", placeholder: "Learn more" },
|
|
337
297
|
{
|
|
338
298
|
name: "href",
|
|
339
299
|
type: "string",
|
|
340
300
|
default: "",
|
|
341
|
-
|
|
301
|
+
placeholder: URL_PLACEHOLDER,
|
|
302
|
+
description: "Required when a call to action is set."
|
|
342
303
|
}
|
|
343
304
|
];
|
|
344
305
|
var FRAME_ATTRS = [
|
|
345
306
|
{
|
|
346
307
|
name: "caption",
|
|
347
308
|
type: "string",
|
|
348
|
-
|
|
309
|
+
placeholder: "Figure 1: request flow",
|
|
310
|
+
description: "Centered below the content. Supports Markdown."
|
|
349
311
|
}
|
|
350
312
|
];
|
|
351
313
|
var EXPANDABLE_ATTRS = [
|
|
352
|
-
{
|
|
353
|
-
|
|
354
|
-
type: "string",
|
|
355
|
-
required: true,
|
|
356
|
-
description: "The name of the object you are showing."
|
|
357
|
-
},
|
|
358
|
-
{
|
|
359
|
-
name: "defaultOpen",
|
|
360
|
-
type: "boolean",
|
|
361
|
-
description: "Set to true for the expandable to open when the page loads."
|
|
362
|
-
}
|
|
314
|
+
{ name: "title", type: "string", required: true, placeholder: "user" },
|
|
315
|
+
{ name: "defaultOpen", type: "boolean" }
|
|
363
316
|
];
|
|
364
317
|
var VISIBILITY_AUDIENCE_OPTIONS = ["humans", "agents"];
|
|
365
318
|
var VISIBILITY_ATTRS = [
|
|
@@ -368,7 +321,7 @@ var VISIBILITY_ATTRS = [
|
|
|
368
321
|
type: "string",
|
|
369
322
|
required: true,
|
|
370
323
|
options: VISIBILITY_AUDIENCE_OPTIONS,
|
|
371
|
-
description: "
|
|
324
|
+
description: "Humans: visible on the web, excluded from Markdown output. Agents: hidden on the web, included in Markdown output."
|
|
372
325
|
}
|
|
373
326
|
];
|
|
374
327
|
var UPDATE_ATTRS = [
|
|
@@ -376,18 +329,16 @@ var UPDATE_ATTRS = [
|
|
|
376
329
|
name: "label",
|
|
377
330
|
type: "string",
|
|
378
331
|
required: true,
|
|
379
|
-
|
|
332
|
+
placeholder: "v1.2.0",
|
|
333
|
+
description: "Shown next to the update and used as its anchor link. Keep labels unique."
|
|
380
334
|
},
|
|
381
335
|
{
|
|
382
336
|
name: "tags",
|
|
383
337
|
type: "expression",
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
{
|
|
387
|
-
name: "description",
|
|
388
|
-
type: "string",
|
|
389
|
-
description: "Description of the update. Appears below the label and tag."
|
|
338
|
+
placeholder: '["feature", "fix"]',
|
|
339
|
+
description: "Shown as filters in the side panel."
|
|
390
340
|
},
|
|
341
|
+
{ name: "description", type: "string", placeholder: "Short summary of the update" },
|
|
391
342
|
{
|
|
392
343
|
name: "rss",
|
|
393
344
|
type: "expression",
|
|
@@ -398,50 +349,36 @@ var ICON_ATTRS = [
|
|
|
398
349
|
{ name: "name", type: "string" },
|
|
399
350
|
{ name: "icon", type: "expression", description: ICON_DESCRIPTION },
|
|
400
351
|
{ name: "iconType", type: "string", description: ICON_TYPE_DESCRIPTION },
|
|
401
|
-
{
|
|
402
|
-
|
|
403
|
-
type: "string",
|
|
404
|
-
description: "The color of the icon as a hex code (for example, #FF5733)."
|
|
405
|
-
},
|
|
406
|
-
{ name: "size", type: "number", description: "The size of the icon in pixels." }
|
|
352
|
+
{ name: "color", type: "string", placeholder: HEX_COLOR_PLACEHOLDER },
|
|
353
|
+
{ name: "size", type: "number", placeholder: "16", description: "In pixels." }
|
|
407
354
|
];
|
|
408
355
|
var CODE_BLOCK_ATTRS = [
|
|
409
|
-
{
|
|
410
|
-
|
|
411
|
-
type: "string",
|
|
412
|
-
description: "The programming language for syntax highlighting."
|
|
413
|
-
},
|
|
414
|
-
{
|
|
415
|
-
name: "filename",
|
|
416
|
-
type: "string",
|
|
417
|
-
description: "The filename to display in the code block header."
|
|
418
|
-
},
|
|
356
|
+
{ name: "language", type: "string", placeholder: "typescript" },
|
|
357
|
+
{ name: "filename", type: "string", placeholder: "index.ts" },
|
|
419
358
|
{ name: "filenameSyntax", type: "string" },
|
|
420
|
-
{ name: "expandable", type: "boolean"
|
|
421
|
-
{
|
|
422
|
-
name: "icon",
|
|
423
|
-
type: "expression",
|
|
424
|
-
description: "The icon to display in the code block header."
|
|
425
|
-
},
|
|
359
|
+
{ name: "expandable", type: "boolean" },
|
|
360
|
+
{ name: "icon", type: "expression", description: ICON_DESCRIPTION },
|
|
426
361
|
{ name: "lang", type: "string" },
|
|
427
|
-
{ name: "lines", type: "boolean", description: "
|
|
428
|
-
{ name: "wrap", type: "boolean", description: "
|
|
362
|
+
{ name: "lines", type: "boolean", description: "Show line numbers." },
|
|
363
|
+
{ name: "wrap", type: "boolean", description: "Wrap long lines." },
|
|
429
364
|
{
|
|
430
365
|
name: "highlight",
|
|
431
366
|
type: "expression",
|
|
432
|
-
|
|
367
|
+
placeholder: "[1, 3, 4]",
|
|
368
|
+
description: "Line numbers to highlight."
|
|
433
369
|
},
|
|
434
370
|
{
|
|
435
371
|
name: "focus",
|
|
436
372
|
type: "expression",
|
|
437
|
-
|
|
373
|
+
placeholder: "[1, 3, 4]",
|
|
374
|
+
description: "Line numbers to focus on."
|
|
438
375
|
},
|
|
439
376
|
{ name: "add", type: "expression" },
|
|
440
377
|
{ name: "remove", type: "expression" },
|
|
441
378
|
{
|
|
442
379
|
name: "twoslash",
|
|
443
380
|
type: "boolean",
|
|
444
|
-
description: "
|
|
381
|
+
description: "Interactive type information for JavaScript and TypeScript."
|
|
445
382
|
},
|
|
446
383
|
{ name: "nocopy", type: "boolean" }
|
|
447
384
|
];
|
|
@@ -452,7 +389,8 @@ var PROMPT_BLOCK_ATTRS = [
|
|
|
452
389
|
name: "actions",
|
|
453
390
|
type: "expression",
|
|
454
391
|
default: ["copy"],
|
|
455
|
-
|
|
392
|
+
placeholder: '["copy", "cursor"]',
|
|
393
|
+
description: "Available actions: copy (clipboard) and cursor (open in Cursor)."
|
|
456
394
|
}
|
|
457
395
|
];
|
|
458
396
|
var MERMAID_BLOCK_ATTRS = [
|
|
@@ -460,52 +398,47 @@ var MERMAID_BLOCK_ATTRS = [
|
|
|
460
398
|
name: "placement",
|
|
461
399
|
type: "string",
|
|
462
400
|
default: DEFAULT_MERMAID_PLACEMENT2,
|
|
463
|
-
|
|
401
|
+
placeholder: DEFAULT_MERMAID_PLACEMENT2,
|
|
402
|
+
description: "Position of the controls: top-left, top-right, bottom-left or bottom-right."
|
|
464
403
|
},
|
|
465
404
|
{
|
|
466
405
|
name: "actions",
|
|
467
406
|
type: "boolean",
|
|
468
|
-
description: "
|
|
407
|
+
description: "Force the controls on or off. By default they appear when the diagram is taller than 120px."
|
|
469
408
|
}
|
|
470
409
|
];
|
|
471
|
-
var PARAM_LOCATION_DESCRIPTION = "Whether the parameter is a query, path, body, or header. Followed by the parameter name.";
|
|
472
410
|
var PARAM_FIELD_ATTRS = [
|
|
473
|
-
{ name: "query", type: "string",
|
|
474
|
-
{ name: "path", type: "string",
|
|
475
|
-
{ name: "body", type: "string",
|
|
476
|
-
{ name: "header", type: "string",
|
|
411
|
+
{ name: "query", type: "string", placeholder: "limit" },
|
|
412
|
+
{ name: "path", type: "string", placeholder: "userId" },
|
|
413
|
+
{ name: "body", type: "string", placeholder: "email" },
|
|
414
|
+
{ name: "header", type: "string", placeholder: "Authorization" },
|
|
477
415
|
{
|
|
478
416
|
name: "default",
|
|
479
417
|
type: "string",
|
|
480
|
-
|
|
418
|
+
placeholder: "10",
|
|
419
|
+
description: "Used when the request value is empty."
|
|
481
420
|
},
|
|
482
421
|
{
|
|
483
422
|
name: "type",
|
|
484
423
|
type: "string",
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
{ name: "required", type: "boolean", description: "Indicate whether you require the parameter." },
|
|
488
|
-
{
|
|
489
|
-
name: "deprecated",
|
|
490
|
-
type: "boolean",
|
|
491
|
-
description: "Indicate whether you have deprecated the parameter."
|
|
424
|
+
placeholder: "string",
|
|
425
|
+
description: "number, string, boolean or object. Arrays use the [] suffix, for example string[]."
|
|
492
426
|
},
|
|
427
|
+
{ name: "required", type: "boolean" },
|
|
428
|
+
{ name: "deprecated", type: "boolean" },
|
|
493
429
|
{
|
|
494
430
|
name: "placeholder",
|
|
495
431
|
type: "string",
|
|
496
|
-
|
|
432
|
+
placeholder: "sk_live_...",
|
|
433
|
+
description: "Shown in the API playground input."
|
|
497
434
|
}
|
|
498
435
|
];
|
|
499
436
|
var RESPONSE_FIELD_ATTRS = [
|
|
500
|
-
{ name: "name", type: "string", required: true,
|
|
501
|
-
{
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
},
|
|
506
|
-
{ name: "default", type: "string", description: "The default value." },
|
|
507
|
-
{ name: "required", type: "boolean", description: "Indicate whether you require the response." },
|
|
508
|
-
{ name: "deprecated", type: "boolean", description: "Whether you have deprecated a field." }
|
|
437
|
+
{ name: "name", type: "string", required: true, placeholder: "id" },
|
|
438
|
+
{ name: "type", type: "string", placeholder: "string" },
|
|
439
|
+
{ name: "default", type: "string", placeholder: "null" },
|
|
440
|
+
{ name: "required", type: "boolean" },
|
|
441
|
+
{ name: "deprecated", type: "boolean" }
|
|
509
442
|
];
|
|
510
443
|
|
|
511
444
|
// ../editor/dist/schemas/utils.js
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mintlify/cli",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.1513",
|
|
4
4
|
"description": "The Mintlify CLI",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=18.0.0"
|
|
@@ -45,12 +45,12 @@
|
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@inquirer/prompts": "7.9.0",
|
|
48
|
-
"@mintlify/common": "1.0.
|
|
49
|
-
"@mintlify/link-rot": "3.0.
|
|
48
|
+
"@mintlify/common": "1.0.1157",
|
|
49
|
+
"@mintlify/link-rot": "3.0.1359",
|
|
50
50
|
"@mintlify/models": "0.0.359",
|
|
51
|
-
"@mintlify/prebuild": "1.0.
|
|
52
|
-
"@mintlify/previewing": "4.0.
|
|
53
|
-
"@mintlify/validation": "0.1.
|
|
51
|
+
"@mintlify/prebuild": "1.0.1311",
|
|
52
|
+
"@mintlify/previewing": "4.0.1383",
|
|
53
|
+
"@mintlify/validation": "0.1.862",
|
|
54
54
|
"adm-zip": "0.6.0",
|
|
55
55
|
"chalk": "5.2.0",
|
|
56
56
|
"color": "4.2.3",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"keytar": "7.9.0"
|
|
87
87
|
},
|
|
88
88
|
"devDependencies": {
|
|
89
|
-
"@mintlify/editor": "0.0.
|
|
89
|
+
"@mintlify/editor": "0.0.397",
|
|
90
90
|
"@mintlify/ts-config": "2.0.2",
|
|
91
91
|
"@tsconfig/recommended": "1.0.2",
|
|
92
92
|
"@types/detect-port": "1.3.2",
|
|
@@ -105,5 +105,5 @@
|
|
|
105
105
|
"vitest": "2.1.9",
|
|
106
106
|
"vitest-mock-process": "1.0.4"
|
|
107
107
|
},
|
|
108
|
-
"gitHead": "
|
|
108
|
+
"gitHead": "67675fced5639c3a6a1fec4b8b6c466f8c54fc86"
|
|
109
109
|
}
|