@mintlify/cli 4.0.1711 → 4.0.1712
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 +5 -0
- package/package.json +3 -3
package/bin/vendor/converter.js
CHANGED
|
@@ -16058,6 +16058,7 @@ import { Fragment } from "prosemirror-model";
|
|
|
16058
16058
|
import { parse as parseYaml2 } from "yaml";
|
|
16059
16059
|
|
|
16060
16060
|
// ../editor/dist/converter/diff/node-utils.js
|
|
16061
|
+
import { isMdxJsxElement } from "@mintlify/common";
|
|
16061
16062
|
var deepEqual = (a, b) => {
|
|
16062
16063
|
if (a === b)
|
|
16063
16064
|
return true;
|
|
@@ -16095,11 +16096,15 @@ var attrsEqual = (a, b) => {
|
|
|
16095
16096
|
if (keysA.length !== keysB.length)
|
|
16096
16097
|
return false;
|
|
16097
16098
|
for (const key of keysA) {
|
|
16099
|
+
if (key === "mdxJsxNode" && "tagName" in a && omitsHtmlSource(a[key], b[key]))
|
|
16100
|
+
continue;
|
|
16098
16101
|
if (stringifyAttrValue(key, a[key]) !== stringifyAttrValue(key, b[key]))
|
|
16099
16102
|
return false;
|
|
16100
16103
|
}
|
|
16101
16104
|
return true;
|
|
16102
16105
|
};
|
|
16106
|
+
var isHtmlSource = (value) => isMdxJsxElement(value) && !!value.name && HTML_ELEMENTS.has(value.name);
|
|
16107
|
+
var omitsHtmlSource = (a, b) => a === null && isHtmlSource(b) || b === null && isHtmlSource(a);
|
|
16103
16108
|
var isMdastPosition = (v) => v !== null && typeof v === "object" && "start" in v && "end" in v;
|
|
16104
16109
|
var isEstreeLoc = (v) => v !== null && typeof v === "object" && "start" in v && "end" in v;
|
|
16105
16110
|
var stringifyAttrValue = (key, value) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mintlify/cli",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.1712",
|
|
4
4
|
"description": "The Mintlify CLI",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=18.0.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.561",
|
|
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": "af3c3361a8d153c72e2eb943b3d61c43c45952ae"
|
|
105
105
|
}
|