@mintlify/cli 4.0.1610 → 4.0.1612

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.
@@ -2911,12 +2911,13 @@ var YAML_DUMP_OPTIONS = {
2911
2911
  quotingType: '"',
2912
2912
  forceQuotes: true
2913
2913
  };
2914
- function deepFilterEmptyValues(value) {
2914
+ var THUMBNAIL_EMPTY_OVERRIDE_KEYS = /* @__PURE__ */ new Set(["background", "eyebrow"]);
2915
+ function deepFilterEmptyValues(value, preservedEmptyKeys) {
2915
2916
  if (Array.isArray(value)) {
2916
- return value.map(deepFilterEmptyValues);
2917
+ return value.map((entry) => deepFilterEmptyValues(entry));
2917
2918
  }
2918
2919
  if (typeof value === "object" && value !== null && !(value instanceof Date)) {
2919
- return Object.fromEntries(Object.entries(value).filter(([_, v]) => isNonEmptyFrontmatterValue(v)).map(([k, v]) => [k, deepFilterEmptyValues(v)]));
2920
+ return Object.fromEntries(Object.entries(value).filter(([key, v]) => isNonEmptyFrontmatterValue(v) || v === "" && Boolean(preservedEmptyKeys === null || preservedEmptyKeys === void 0 ? void 0 : preservedEmptyKeys.has(key))).map(([k, v]) => [k, deepFilterEmptyValues(v)]));
2920
2921
  }
2921
2922
  return value;
2922
2923
  }
@@ -2929,7 +2930,8 @@ function formatFrontmatterValue(key, value) {
2929
2930
  if (normalized === void 0) {
2930
2931
  normalized = null;
2931
2932
  }
2932
- return yaml.dump({ [key]: deepFilterEmptyValues(normalized) }, YAML_DUMP_OPTIONS).trimEnd();
2933
+ const preservedEmptyKeys = key === "thumbnail" ? THUMBNAIL_EMPTY_OVERRIDE_KEYS : void 0;
2934
+ return yaml.dump({ [key]: deepFilterEmptyValues(normalized, preservedEmptyKeys) }, YAML_DUMP_OPTIONS).trimEnd();
2933
2935
  }
2934
2936
 
2935
2937
  // ../editor/dist/converter/serialize/handlers/components.js
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mintlify/cli",
3
- "version": "4.0.1610",
3
+ "version": "4.0.1612",
4
4
  "description": "The Mintlify CLI",
5
5
  "engines": {
6
6
  "node": ">=18.0.0"
@@ -45,13 +45,13 @@
45
45
  },
46
46
  "dependencies": {
47
47
  "@inquirer/prompts": "7.9.0",
48
- "@mintlify/common": "1.0.1226",
49
- "@mintlify/link-rot": "3.0.1435",
48
+ "@mintlify/common": "1.0.1228",
49
+ "@mintlify/link-rot": "3.0.1437",
50
50
  "@mintlify/models": "0.0.369",
51
- "@mintlify/og": "0.0.24",
52
- "@mintlify/prebuild": "1.0.1385",
53
- "@mintlify/previewing": "4.0.1458",
54
- "@mintlify/validation": "0.1.901",
51
+ "@mintlify/og": "0.0.26",
52
+ "@mintlify/prebuild": "1.0.1387",
53
+ "@mintlify/previewing": "4.0.1460",
54
+ "@mintlify/validation": "0.1.903",
55
55
  "adm-zip": "0.6.0",
56
56
  "chalk": "5.2.0",
57
57
  "color": "4.2.3",
@@ -87,7 +87,7 @@
87
87
  "keytar": "7.9.0"
88
88
  },
89
89
  "devDependencies": {
90
- "@mintlify/editor": "0.0.482",
90
+ "@mintlify/editor": "0.0.484",
91
91
  "@mintlify/ts-config": "2.0.2",
92
92
  "@tsconfig/recommended": "1.0.2",
93
93
  "@types/detect-port": "1.3.2",
@@ -106,5 +106,5 @@
106
106
  "vitest": "2.1.9",
107
107
  "vitest-mock-process": "1.0.4"
108
108
  },
109
- "gitHead": "80f8a452f06f5ac47b6854e9b012dc638c77208b"
109
+ "gitHead": "1e63981b5f467012c9cd68626fd3ce9ff625fb35"
110
110
  }