@mintlify/cli 4.0.1723 → 4.0.1725
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
CHANGED
|
@@ -6572,6 +6572,25 @@ function serializeCommentThreadIds(ids) {
|
|
|
6572
6572
|
return unique.length > 0 ? unique.join(" ") : null;
|
|
6573
6573
|
}
|
|
6574
6574
|
|
|
6575
|
+
// ../editor/dist/converter/utils/static-html-source.js
|
|
6576
|
+
var STATIC_HTML_TYPES = /* @__PURE__ */ new Set([BLOCK_TYPES.staticHTML, BLOCK_TYPES.inlineStaticHTML]);
|
|
6577
|
+
function keepsStaticHtmlSource(tagName, hasStaticHtmlParent) {
|
|
6578
|
+
return !hasStaticHtmlParent || tagName === "svg";
|
|
6579
|
+
}
|
|
6580
|
+
function findRedundantStaticHtmlSources(doc) {
|
|
6581
|
+
const positions = [];
|
|
6582
|
+
const visit5 = (node, pos, coveredBySource) => {
|
|
6583
|
+
const isStaticHtml = STATIC_HTML_TYPES.has(node.type.name);
|
|
6584
|
+
const hasSource = isStaticHtml && node.attrs.mdxJsxNode != null;
|
|
6585
|
+
if (hasSource && coveredBySource && !keepsStaticHtmlSource(node.attrs.tagName, true)) {
|
|
6586
|
+
positions.push(pos);
|
|
6587
|
+
}
|
|
6588
|
+
node.forEach((child, offset2) => visit5(child, pos + 1 + offset2, coveredBySource || hasSource));
|
|
6589
|
+
};
|
|
6590
|
+
doc.forEach((child, offset2) => visit5(child, offset2, false));
|
|
6591
|
+
return positions;
|
|
6592
|
+
}
|
|
6593
|
+
|
|
6575
6594
|
// ../editor/dist/converter/parse/parse-utils.js
|
|
6576
6595
|
import { parse as parseYaml } from "yaml";
|
|
6577
6596
|
function parseFrontmatterYaml(value) {
|
|
@@ -6678,7 +6697,7 @@ function normalizeBlockContent(nodes2, schema) {
|
|
|
6678
6697
|
return normalized;
|
|
6679
6698
|
}
|
|
6680
6699
|
function staticHtmlSource(node, ctx) {
|
|
6681
|
-
return ctx.hasStaticHtmlParent
|
|
6700
|
+
return keepsStaticHtmlSource(node.name, ctx.hasStaticHtmlParent === true) ? node : null;
|
|
6682
6701
|
}
|
|
6683
6702
|
|
|
6684
6703
|
// ../editor/dist/converter/parse/mdast-to-pm.js
|
|
@@ -17706,6 +17725,7 @@ export {
|
|
|
17706
17725
|
extractFrontmatter,
|
|
17707
17726
|
extractText,
|
|
17708
17727
|
filterFrontmatterRecord,
|
|
17728
|
+
findRedundantStaticHtmlSources,
|
|
17709
17729
|
formatFrontmatterValue,
|
|
17710
17730
|
formatLineRanges,
|
|
17711
17731
|
getDiffMarkerComment,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mintlify/cli",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.1725",
|
|
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.1301",
|
|
49
|
+
"@mintlify/link-rot": "3.0.1528",
|
|
50
50
|
"@mintlify/models": "0.0.378",
|
|
51
|
-
"@mintlify/og": "0.0.
|
|
52
|
-
"@mintlify/prebuild": "1.0.
|
|
53
|
-
"@mintlify/previewing": "4.0.
|
|
51
|
+
"@mintlify/og": "0.0.100",
|
|
52
|
+
"@mintlify/prebuild": "1.0.1467",
|
|
53
|
+
"@mintlify/previewing": "4.0.1546",
|
|
54
54
|
"@mintlify/validation": "0.1.943",
|
|
55
55
|
"adm-zip": "0.6.0",
|
|
56
56
|
"chalk": "5.2.0",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"keytar": "7.9.0"
|
|
83
83
|
},
|
|
84
84
|
"devDependencies": {
|
|
85
|
-
"@mintlify/editor": "0.0.
|
|
85
|
+
"@mintlify/editor": "0.0.571",
|
|
86
86
|
"@mintlify/ts-config": "2.0.2",
|
|
87
87
|
"@tsconfig/recommended": "1.0.2",
|
|
88
88
|
"@types/detect-port": "1.3.2",
|
|
@@ -101,5 +101,5 @@
|
|
|
101
101
|
"vitest": "2.1.9",
|
|
102
102
|
"vitest-mock-process": "1.0.4"
|
|
103
103
|
},
|
|
104
|
-
"gitHead": "
|
|
104
|
+
"gitHead": "12237800a5c6539d34436035b01cacb5896ec15e"
|
|
105
105
|
}
|