@mintlify/cli 4.0.1523 → 4.0.1524
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/vendor/converter.js +8 -8
- package/package.json +3 -3
package/bin/vendor/converter.js
CHANGED
|
@@ -2530,7 +2530,7 @@ function mdastToPm(mdast, source = "", options) {
|
|
|
2530
2530
|
return { doc, frontmatter };
|
|
2531
2531
|
}
|
|
2532
2532
|
function transformNode(node, ctx) {
|
|
2533
|
-
var _a, _b, _c, _d;
|
|
2533
|
+
var _a, _b, _c, _d, _e;
|
|
2534
2534
|
if (!node)
|
|
2535
2535
|
return [];
|
|
2536
2536
|
switch (node.type) {
|
|
@@ -2564,7 +2564,7 @@ function transformNode(node, ctx) {
|
|
|
2564
2564
|
};
|
|
2565
2565
|
}
|
|
2566
2566
|
case "list": {
|
|
2567
|
-
const attrs2 = node.ordered ? { start: node.start
|
|
2567
|
+
const attrs2 = node.ordered ? { start: (_a = node.start) !== null && _a !== void 0 ? _a : 1 } : {};
|
|
2568
2568
|
const content = node.children.map((child) => transformNode(child, ctx));
|
|
2569
2569
|
return {
|
|
2570
2570
|
type: node.ordered ? "orderedList" : "bulletList",
|
|
@@ -2576,7 +2576,7 @@ function transformNode(node, ctx) {
|
|
|
2576
2576
|
const content = mapChildren(node, ctx);
|
|
2577
2577
|
return {
|
|
2578
2578
|
type: "listItem",
|
|
2579
|
-
attrs: { checked: (
|
|
2579
|
+
attrs: { checked: (_b = node.checked) !== null && _b !== void 0 ? _b : null },
|
|
2580
2580
|
content: content.length > 0 ? content : [{ type: "paragraph", content: [] }]
|
|
2581
2581
|
};
|
|
2582
2582
|
}
|
|
@@ -2595,8 +2595,8 @@ function transformNode(node, ctx) {
|
|
|
2595
2595
|
attrs: {
|
|
2596
2596
|
imgAttributes: {
|
|
2597
2597
|
src: node.url,
|
|
2598
|
-
alt: (
|
|
2599
|
-
title: (
|
|
2598
|
+
alt: (_c = node.alt) !== null && _c !== void 0 ? _c : void 0,
|
|
2599
|
+
title: (_d = node.title) !== null && _d !== void 0 ? _d : void 0
|
|
2600
2600
|
}
|
|
2601
2601
|
}
|
|
2602
2602
|
};
|
|
@@ -2641,7 +2641,7 @@ function transformNode(node, ctx) {
|
|
|
2641
2641
|
const linkContent = convertLinkComponent(node, [], ctx);
|
|
2642
2642
|
if (linkContent)
|
|
2643
2643
|
return linkContent;
|
|
2644
|
-
if (!node.name || !STRUCTURED_FLOW_COMPONENTS.has(node.name) || isContainerOnlyComponent(node.name, (
|
|
2644
|
+
if (!node.name || !STRUCTURED_FLOW_COMPONENTS.has(node.name) || isContainerOnlyComponent(node.name, (_e = ctx.schema) !== null && _e !== void 0 ? _e : mintlifySchema)) {
|
|
2645
2645
|
return handleInlineJsx(node, ctx, mapChildren);
|
|
2646
2646
|
}
|
|
2647
2647
|
const flowResult = handleFlowJsx(Object.assign(Object.assign({}, node), { type: "mdxJsxFlowElement", children: node.children.length > 0 ? [{ type: "paragraph", children: node.children }] : [] }), ctx, transformNode, mapJsxChildren);
|
|
@@ -3476,7 +3476,7 @@ function renderBlockquote(state, node, renderNode2) {
|
|
|
3476
3476
|
}
|
|
3477
3477
|
function renderList(state, node, ordered, renderContent2) {
|
|
3478
3478
|
var _a, _b;
|
|
3479
|
-
const start = node.attrs.start
|
|
3479
|
+
const start = typeof node.attrs.start === "number" ? node.attrs.start : 1;
|
|
3480
3480
|
const isTight = typeof node.attrs.tight === "boolean" ? node.attrs.tight : state.options.tightLists;
|
|
3481
3481
|
for (let i = 0; i < node.childCount; i++) {
|
|
3482
3482
|
const child = node.child(i);
|
|
@@ -5586,7 +5586,7 @@ ${prefix}`;
|
|
|
5586
5586
|
const fixedNumber = ordered && numbers.length >= 2 && numbers.every((n) => n === numbers[0]) ? numbers[0] : null;
|
|
5587
5587
|
return {
|
|
5588
5588
|
ordered,
|
|
5589
|
-
start: live.attrs.start
|
|
5589
|
+
start: typeof live.attrs.start === "number" ? live.attrs.start : 1,
|
|
5590
5590
|
delimiter,
|
|
5591
5591
|
fixedNumber,
|
|
5592
5592
|
contentIndent: this.continuationIndent(items)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mintlify/cli",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.1524",
|
|
4
4
|
"description": "The Mintlify CLI",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=18.0.0"
|
|
@@ -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.407",
|
|
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": "59d4e7e925f8067337f3eeaad7d3b727a54008c2"
|
|
109
109
|
}
|