@scalar/cli 2.7.1 → 2.10.0

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.
Files changed (94) hide show
  1. package/README.md +475 -80
  2. package/chunks/action-4GZI2M5B.js +62 -0
  3. package/chunks/action-4W5GUGEG.js +63 -0
  4. package/chunks/{action-HJYZCPUN.js → action-5LF4XYHX.js} +10 -7
  5. package/chunks/{action-SRBN7N3R.js → action-5N3P43MD.js} +17 -12
  6. package/chunks/{action-RBOLLIGX.js → action-5RL4NWUZ.js} +17 -17
  7. package/chunks/{action-SNPOOW6S.js → action-657A4K2D.js} +16 -16
  8. package/chunks/{action-EOAVVL52.js → action-7XOHYWYM.js} +11 -14
  9. package/chunks/{action-AQRPFQKI.js → action-CABLS46Q.js} +9 -7
  10. package/chunks/{action-F7A2K74G.js → action-CB55NWAU.js} +9 -13
  11. package/chunks/{action-5SK5NE7E.js → action-DKDRAIKV.js} +11 -14
  12. package/chunks/{action-7PEQXDWT.js → action-DTEO4YNX.js} +127 -20
  13. package/chunks/{action-BAQYJ6UE.js → action-EAUTQ77U.js} +27 -23
  14. package/chunks/{action-QYGOPSTY.js → action-FBRY5JKU.js} +16 -16
  15. package/chunks/{action-VOFDW3U2.js → action-GFLRD7LO.js} +6 -5
  16. package/chunks/{action-LPVITMWA.js → action-GWYYTUTM.js} +4 -3
  17. package/chunks/{action-4NGK5XMD.js → action-HT42NUUX.js} +29 -24
  18. package/chunks/action-JEYDBB3P.js +147 -0
  19. package/chunks/{action-E4YSRFGT.js → action-KDUFU7TZ.js} +11 -13
  20. package/chunks/{action-BRSSC2SR.js → action-LYCNT3KA.js} +29 -10
  21. package/chunks/{action-CA4QYPI6.js → action-OJ2NK25F.js} +4 -8
  22. package/chunks/{action-NVI5DWFP.js → action-PAM2EZ22.js} +4 -8
  23. package/chunks/action-PPTFYZWD.js +1552 -0
  24. package/chunks/{action-OX2566BE.js → action-R4PGILN4.js} +30 -26
  25. package/chunks/{action-CPLH2CQ5.js → action-TOBU74JH.js} +23 -19
  26. package/chunks/action-U2L5DCFG.js +91 -0
  27. package/chunks/{action-H6OUJWWM.js → action-UUL6SWV4.js} +11 -14
  28. package/chunks/{action-T5XMJXPO.js → action-X7BA7PQQ.js} +10 -8
  29. package/chunks/{action-LVDU6YOI.js → action-XLE37MZL.js} +16 -16
  30. package/chunks/{action-BOZNBCNZ.js → action-XOADBXSX.js} +16 -12
  31. package/chunks/{action-SCOXTCPR.js → action-YSVTZVKV.js} +38 -19
  32. package/chunks/{action-YRX6SN5F.js → action-ZFI77WA5.js} +8 -6
  33. package/chunks/{action-ATGZOWSH.js → action-ZKA3RR3S.js} +15 -11
  34. package/chunks/actions-3SAMH7A5.js +182 -0
  35. package/chunks/{agent-ASPV3R5U.js → agent-2ESZI7NO.js} +7 -5
  36. package/chunks/{asyncapi-H4FU6GPC.js → asyncapi-4HGVM3PR.js} +14 -10
  37. package/chunks/{build.action-6V6GXI3X.js → build.action-VBGFGACM.js} +21 -19
  38. package/chunks/chunk-35Z7VTJT.js +453 -0
  39. package/chunks/chunk-36LXIJIZ.js +52 -0
  40. package/chunks/{chunk-BIKOD3SG.js → chunk-43WALAW3.js} +251 -103
  41. package/chunks/{chunk-C2KAWRIX.js → chunk-5ENKYZA4.js} +1 -1
  42. package/chunks/{chunk-ZJVYOZFB.js → chunk-5SMP756H.js} +2 -2
  43. package/chunks/{chunk-5JLVQVKO.js → chunk-6M7TL2G2.js} +146 -148
  44. package/chunks/chunk-6PSYZO3U.js +24 -0
  45. package/chunks/{chunk-ISXH6Q7I.js → chunk-ATNTXKMS.js} +45 -274
  46. package/chunks/{chunk-BDEPNGTO.js → chunk-BIMLCGKS.js} +1 -1
  47. package/chunks/{chunk-HGOD6THU.js → chunk-CWVYOXXM.js} +2 -19
  48. package/chunks/chunk-DFOZG7ZV.js +15 -0
  49. package/chunks/chunk-DHZW7Q7U.js +133 -0
  50. package/chunks/{chunk-R5LK6VPY.js → chunk-G4HRW2FZ.js} +13 -20
  51. package/chunks/{chunk-KCCFN4F7.js → chunk-GLWTVLKM.js} +29 -29
  52. package/chunks/{chunk-5UHLAJQD.js → chunk-GYRQPDTK.js} +24 -10
  53. package/chunks/chunk-H467HDVV.js +24 -0
  54. package/chunks/chunk-IPZP3VRA.js +327 -0
  55. package/chunks/{chunk-LG7IFACX.js → chunk-JXGF5EHC.js} +152 -18
  56. package/chunks/chunk-K2HIB5BA.js +92 -0
  57. package/chunks/{chunk-FDC2IESH.js → chunk-KHF2QXBG.js} +1352 -8327
  58. package/chunks/{chunk-IMG35UXX.js → chunk-KZNRQVMY.js} +1 -1
  59. package/chunks/{chunk-OJ2EWIJH.js → chunk-MC4EMNOR.js} +5 -1
  60. package/chunks/{chunk-YILQODZF.js → chunk-MMWSCTDB.js} +7 -4
  61. package/chunks/{chunk-6XWCMJDB.js → chunk-MNNGUUKJ.js} +12 -11
  62. package/chunks/chunk-NAC63XJF.js +10 -0
  63. package/chunks/{chunk-XXSQUBXS.js → chunk-UDBSV3CK.js} +107 -453
  64. package/chunks/{chunk-IKT5F47M.js → chunk-VVRUSQCY.js} +11 -11
  65. package/chunks/{chunk-2PPRO2QB.js → chunk-VYFGRLVQ.js} +1 -1
  66. package/chunks/{chunk-GPNB7ISG.js → chunk-WB6PWTMU.js} +5 -13
  67. package/chunks/{chunk-4X47MN6Q.js → chunk-WDIWLXLV.js} +3 -15
  68. package/chunks/{chunk-6YPQGVF4.js → chunk-WIEXQUTD.js} +1 -1
  69. package/chunks/{chunk-W24BETFG.js → chunk-XAGJJNQW.js} +3 -3
  70. package/chunks/{chunk-2DSVF5AD.js → chunk-ZGNDXPLU.js} +3 -3
  71. package/chunks/{chunk-XEDGMZJD.js → chunk-ZGVZU6L2.js} +81 -25
  72. package/chunks/{chunk-QXQZVEDC.js → chunk-ZKJPLWRJ.js} +2 -2
  73. package/chunks/{chunk-MLSZVVTT.js → chunk-ZYBLQ5CT.js} +13 -7
  74. package/chunks/{create.action-P6DLCK4W.js → create.action-DBNIS665.js} +21 -19
  75. package/chunks/{delete.action-HJKRRHE2.js → delete.action-GBOZC45K.js} +21 -19
  76. package/chunks/{delete.action-Z3GAA4ZN.js → delete.action-K7BLK7DK.js} +21 -19
  77. package/chunks/{get.action-IT4EHAV4.js → get.action-N3JOY3OU.js} +17 -12
  78. package/chunks/get.action-QHKMYZBK.js +91 -0
  79. package/chunks/{list.action-WLIAO5UW.js → list.action-6SSO3JVN.js} +45 -15
  80. package/chunks/{list.action-2FU5UZNH.js → list.action-TJCS6UEY.js} +41 -21
  81. package/chunks/{publish.action-T4J4DRXR.js → publish.action-T24VHRMR.js} +29 -24
  82. package/chunks/query-WKATAJJ6.js +129 -0
  83. package/chunks/scripts-VIBLGKYG.js +102 -0
  84. package/chunks/{update.action-3OVS3HWC.js → update.action-OGYNBXRU.js} +24 -19
  85. package/chunks/{update.action-MY7QPSSU.js → update.action-VOE6PH5F.js} +24 -19
  86. package/docs.html +1363 -320
  87. package/index.js +417 -174
  88. package/package.json +14 -13
  89. package/skills/scalar-cli/SKILL.md +13 -1
  90. package/template.md +157 -15
  91. package/chunks/action-JAHFRYWZ.js +0 -423
  92. package/chunks/action-N7BA5I3E.js +0 -229
  93. package/chunks/chunk-CWCETP6H.js +0 -610
  94. package/chunks/chunk-K74E42RV.js +0 -7311
@@ -1,14 +1,7 @@
1
1
  import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
2
2
  import {
3
- ConfigVersion,
4
- SidebarType
5
- } from "./chunk-5JLVQVKO.js";
6
- import {
7
- require_dist
8
- } from "./chunk-K74E42RV.js";
9
- import {
10
- getLegacyWysiwygVersion
11
- } from "./chunk-KCCFN4F7.js";
3
+ ConfigVersion
4
+ } from "./chunk-6M7TL2G2.js";
12
5
  import {
13
6
  emailSchema,
14
7
  external_exports,
@@ -19,7 +12,7 @@ import {
19
12
  slugSchema,
20
13
  slugify,
21
14
  zod_default
22
- } from "./chunk-IKT5F47M.js";
15
+ } from "./chunk-VVRUSQCY.js";
23
16
  import {
24
17
  __commonJS,
25
18
  __reExport,
@@ -4722,12 +4715,12 @@ var require_shared_cjs_prod = __commonJS({
4722
4715
  });
4723
4716
  };
4724
4717
  var looseToNumber = (val) => {
4725
- const n2 = parseFloat(val);
4726
- return isNaN(n2) ? val : n2;
4718
+ const n = parseFloat(val);
4719
+ return isNaN(n) ? val : n;
4727
4720
  };
4728
4721
  var toNumber = (val) => {
4729
- const n2 = isString(val) ? Number(val) : NaN;
4730
- return isNaN(n2) ? val : n2;
4722
+ const n = isString(val) ? Number(val) : NaN;
4723
+ return isNaN(n) ? val : n;
4731
4724
  };
4732
4725
  var _globalThis;
4733
4726
  var getGlobalThis = () => {
@@ -5316,12 +5309,12 @@ var require_shared_cjs = __commonJS({
5316
5309
  });
5317
5310
  };
5318
5311
  var looseToNumber = (val) => {
5319
- const n2 = parseFloat(val);
5320
- return isNaN(n2) ? val : n2;
5312
+ const n = parseFloat(val);
5313
+ return isNaN(n) ? val : n;
5321
5314
  };
5322
5315
  var toNumber = (val) => {
5323
- const n2 = isString(val) ? Number(val) : NaN;
5324
- return isNaN(n2) ? val : n2;
5316
+ const n = isString(val) ? Number(val) : NaN;
5317
+ return isNaN(n) ? val : n;
5325
5318
  };
5326
5319
  var _globalThis;
5327
5320
  var getGlobalThis = () => {
@@ -6424,9 +6417,9 @@ var require_lib2 = __commonJS({
6424
6417
  function _objectWithoutPropertiesLoose(r, e) {
6425
6418
  if (null == r) return {};
6426
6419
  var t = {};
6427
- for (var n2 in r) if ({}.hasOwnProperty.call(r, n2)) {
6428
- if (-1 !== e.indexOf(n2)) continue;
6429
- t[n2] = r[n2];
6420
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
6421
+ if (-1 !== e.indexOf(n)) continue;
6422
+ t[n] = r[n];
6430
6423
  }
6431
6424
  return t;
6432
6425
  }
@@ -11948,12 +11941,12 @@ var require_lib2 = __commonJS({
11948
11941
  }
11949
11942
  function readHexChar(input, pos, lineStart, curLine, len, forceLen, throwOnInvalid, errors) {
11950
11943
  const initialPos = pos;
11951
- let n2;
11944
+ let n;
11952
11945
  ({
11953
- n: n2,
11946
+ n,
11954
11947
  pos
11955
11948
  } = readInt(input, pos, lineStart, curLine, 16, len, forceLen, false, errors, !throwOnInvalid));
11956
- if (n2 === null) {
11949
+ if (n === null) {
11957
11950
  if (throwOnInvalid) {
11958
11951
  errors.invalidEscapeSequence(initialPos, lineStart, curLine);
11959
11952
  } else {
@@ -11961,7 +11954,7 @@ var require_lib2 = __commonJS({
11961
11954
  }
11962
11955
  }
11963
11956
  return {
11964
- code: n2,
11957
+ code: n,
11965
11958
  pos
11966
11959
  };
11967
11960
  }
@@ -12813,11 +12806,11 @@ var require_lib2 = __commonJS({
12813
12806
  }
12814
12807
  readInt(radix, len, forceLen = false, allowNumSeparator = true) {
12815
12808
  const {
12816
- n: n2,
12809
+ n,
12817
12810
  pos
12818
12811
  } = readInt(this.input, this.state.pos, this.state.lineStart, this.state.curLine, radix, len, forceLen, allowNumSeparator, this.errorHandlers_readInt, false);
12819
12812
  this.state.pos = pos;
12820
- return n2;
12813
+ return n;
12821
12814
  }
12822
12815
  readRadixNumber(radix) {
12823
12816
  const start = this.state.pos;
@@ -22283,7 +22276,7 @@ var require_source_map_consumer = __commonJS({
22283
22276
  var names = this._names;
22284
22277
  var sources = this._sources;
22285
22278
  var sourceMapURL = this._sourceMapURL;
22286
- for (var i = 0, n2 = mappings.length; i < n2; i++) {
22279
+ for (var i = 0, n = mappings.length; i < n; i++) {
22287
22280
  var mapping = mappings[i];
22288
22281
  var source = mapping.source === null ? null : sources.at(mapping.source);
22289
22282
  if (source !== null) {
@@ -22449,17 +22442,17 @@ var require_source_map_consumer = __commonJS({
22449
22442
  var compareGenerated = util.compareByGeneratedPositionsDeflatedNoLine;
22450
22443
  function sortGenerated(array, start) {
22451
22444
  let l = array.length;
22452
- let n2 = array.length - start;
22453
- if (n2 <= 1) {
22445
+ let n = array.length - start;
22446
+ if (n <= 1) {
22454
22447
  return;
22455
- } else if (n2 == 2) {
22448
+ } else if (n == 2) {
22456
22449
  let a = array[start];
22457
22450
  let b = array[start + 1];
22458
22451
  if (compareGenerated(a, b) > 0) {
22459
22452
  array[start] = b;
22460
22453
  array[start + 1] = a;
22461
22454
  }
22462
- } else if (n2 < 20) {
22455
+ } else if (n < 20) {
22463
22456
  for (let i = start; i < l; i++) {
22464
22457
  for (let j = i; j > start; j--) {
22465
22458
  let a = array[j - 1];
@@ -26728,7 +26721,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
26728
26721
  }
26729
26722
  }
26730
26723
  function createStructuralDirectiveTransform(name, fn) {
26731
- const matches = shared.isString(name) ? (n2) => n2 === name : (n2) => name.test(n2);
26724
+ const matches = shared.isString(name) ? (n) => n === name : (n) => name.test(n);
26732
26725
  return (node, context) => {
26733
26726
  if (node.type === 1) {
26734
26727
  const { props } = node;
@@ -26837,9 +26830,9 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
26837
26830
  newline(context.indentLevel);
26838
26831
  }
26839
26832
  };
26840
- function newline(n2) {
26833
+ function newline(n) {
26841
26834
  context.push(
26842
- "\n" + ` `.repeat(n2),
26835
+ "\n" + ` `.repeat(n),
26843
26836
  0
26844
26837
  /* Start */
26845
26838
  );
@@ -27120,11 +27113,11 @@ const ${helpers.map((s) => `_${helperNameMap[s]} = ${helperNameMap[s]}`).join(",
27120
27113
  context.newline();
27121
27114
  });
27122
27115
  }
27123
- function isText(n2) {
27124
- return shared.isString(n2) || n2.type === 4 || n2.type === 2 || n2.type === 5 || n2.type === 8;
27116
+ function isText(n) {
27117
+ return shared.isString(n) || n.type === 4 || n.type === 2 || n.type === 5 || n.type === 8;
27125
27118
  }
27126
27119
  function genNodeListAsArray(nodes, context) {
27127
- const multilines = nodes.length > 3 || nodes.some((n2) => shared.isArray(n2) || !isText(n2));
27120
+ const multilines = nodes.length > 3 || nodes.some((n) => shared.isArray(n) || !isText(n));
27128
27121
  context.push(`[`);
27129
27122
  multilines && context.indent();
27130
27123
  genNodeList(nodes, context, multilines);
@@ -33591,7 +33584,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
33591
33584
  }
33592
33585
  }
33593
33586
  function createStructuralDirectiveTransform(name, fn) {
33594
- const matches = shared.isString(name) ? (n2) => n2 === name : (n2) => name.test(n2);
33587
+ const matches = shared.isString(name) ? (n) => n === name : (n) => name.test(n);
33595
33588
  return (node, context) => {
33596
33589
  if (node.type === 1) {
33597
33590
  const { props } = node;
@@ -33700,9 +33693,9 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
33700
33693
  newline(context.indentLevel);
33701
33694
  }
33702
33695
  };
33703
- function newline(n2) {
33696
+ function newline(n) {
33704
33697
  context.push(
33705
- "\n" + ` `.repeat(n2),
33698
+ "\n" + ` `.repeat(n),
33706
33699
  0
33707
33700
  /* Start */
33708
33701
  );
@@ -33983,11 +33976,11 @@ const ${helpers.map((s) => `_${helperNameMap[s]} = ${helperNameMap[s]}`).join(",
33983
33976
  context.newline();
33984
33977
  });
33985
33978
  }
33986
- function isText(n2) {
33987
- return shared.isString(n2) || n2.type === 4 || n2.type === 2 || n2.type === 5 || n2.type === 8;
33979
+ function isText(n) {
33980
+ return shared.isString(n) || n.type === 4 || n.type === 2 || n.type === 5 || n.type === 8;
33988
33981
  }
33989
33982
  function genNodeListAsArray(nodes, context) {
33990
- const multilines = nodes.length > 3 || nodes.some((n2) => shared.isArray(n2) || !isText(n2));
33983
+ const multilines = nodes.length > 3 || nodes.some((n) => shared.isArray(n) || !isText(n));
33991
33984
  context.push(`[`);
33992
33985
  multilines && context.indent();
33993
33986
  genNodeList(nodes, context, multilines);
@@ -34185,7 +34178,7 @@ const ${helpers.map((s) => `_${helperNameMap[s]} = ${helperNameMap[s]}`).join(",
34185
34178
  if (patchFlag < 0) {
34186
34179
  patchFlagString = patchFlag + ` /* ${shared.PatchFlagNames[patchFlag]} */`;
34187
34180
  } else {
34188
- const flagNames = Object.keys(shared.PatchFlagNames).map(Number).filter((n2) => n2 > 0 && patchFlag & n2).map((n2) => shared.PatchFlagNames[n2]).join(`, `);
34181
+ const flagNames = Object.keys(shared.PatchFlagNames).map(Number).filter((n) => n > 0 && patchFlag & n).map((n) => shared.PatchFlagNames[n]).join(`, `);
34189
34182
  patchFlagString = patchFlag + ` /* ${flagNames} */`;
34190
34183
  }
34191
34184
  }
@@ -44982,9 +44975,9 @@ var require_runtime_core_cjs_prod = __commonJS({
44982
44975
  }
44983
44976
  const { ctx, setupState, data, props, accessCache, type, appContext } = instance;
44984
44977
  if (key[0] !== "$") {
44985
- const n2 = accessCache[key];
44986
- if (n2 !== void 0) {
44987
- switch (n2) {
44978
+ const n = accessCache[key];
44979
+ if (n !== void 0) {
44980
+ switch (n) {
44988
44981
  case 1:
44989
44982
  return setupState[key];
44990
44983
  case 2:
@@ -52710,9 +52703,9 @@ If this is a native custom element, make sure to exclude it from component resol
52710
52703
  return true;
52711
52704
  }
52712
52705
  if (key[0] !== "$") {
52713
- const n2 = accessCache[key];
52714
- if (n2 !== void 0) {
52715
- switch (n2) {
52706
+ const n = accessCache[key];
52707
+ if (n !== void 0) {
52708
+ switch (n) {
52716
52709
  case 1:
52717
52710
  return setupState[key];
52718
52711
  case 2:
@@ -58411,8 +58404,8 @@ var require_runtime_dom_cjs_prod = __commonJS({
58411
58404
  } else if (shared.isObject(duration)) {
58412
58405
  return [NumberOf(duration.enter), NumberOf(duration.leave)];
58413
58406
  } else {
58414
- const n2 = NumberOf(duration);
58415
- return [n2, n2];
58407
+ const n = NumberOf(duration);
58408
+ return [n, n];
58416
58409
  }
58417
58410
  }
58418
58411
  function NumberOf(val) {
@@ -59263,11 +59256,11 @@ var require_runtime_dom_cjs_prod = __commonJS({
59263
59256
  */
59264
59257
  _parseSlots() {
59265
59258
  const slots = this._slots = {};
59266
- let n2;
59267
- while (n2 = this.firstChild) {
59268
- const slotName = n2.nodeType === 1 && n2.getAttribute("slot") || "default";
59269
- (slots[slotName] || (slots[slotName] = [])).push(n2);
59270
- this.removeChild(n2);
59259
+ let n;
59260
+ while (n = this.firstChild) {
59261
+ const slotName = n.nodeType === 1 && n.getAttribute("slot") || "default";
59262
+ (slots[slotName] || (slots[slotName] = [])).push(n);
59263
+ this.removeChild(n);
59271
59264
  }
59272
59265
  }
59273
59266
  /**
@@ -59282,17 +59275,17 @@ var require_runtime_dom_cjs_prod = __commonJS({
59282
59275
  const content = this._slots[slotName];
59283
59276
  const parent = o.parentNode;
59284
59277
  if (content) {
59285
- for (const n2 of content) {
59286
- if (scopeId && n2.nodeType === 1) {
59278
+ for (const n of content) {
59279
+ if (scopeId && n.nodeType === 1) {
59287
59280
  const id = scopeId + "-s";
59288
- const walker = document.createTreeWalker(n2, 1);
59289
- n2.setAttribute(id, "");
59281
+ const walker = document.createTreeWalker(n, 1);
59282
+ n.setAttribute(id, "");
59290
59283
  let child;
59291
59284
  while (child = walker.nextNode()) {
59292
59285
  child.setAttribute(id, "");
59293
59286
  }
59294
59287
  }
59295
- parent.insertBefore(n2, o);
59288
+ parent.insertBefore(n, o);
59296
59289
  }
59297
59290
  } else {
59298
59291
  while (o.firstChild) parent.insertBefore(o.firstChild, o);
@@ -60226,8 +60219,8 @@ var require_runtime_dom_cjs = __commonJS({
60226
60219
  } else if (shared.isObject(duration)) {
60227
60220
  return [NumberOf(duration.enter), NumberOf(duration.leave)];
60228
60221
  } else {
60229
- const n2 = NumberOf(duration);
60230
- return [n2, n2];
60222
+ const n = NumberOf(duration);
60223
+ return [n, n];
60231
60224
  }
60232
60225
  }
60233
60226
  function NumberOf(val) {
@@ -61150,11 +61143,11 @@ Expected function or array of functions, received type ${typeof value}.`
61150
61143
  */
61151
61144
  _parseSlots() {
61152
61145
  const slots = this._slots = {};
61153
- let n2;
61154
- while (n2 = this.firstChild) {
61155
- const slotName = n2.nodeType === 1 && n2.getAttribute("slot") || "default";
61156
- (slots[slotName] || (slots[slotName] = [])).push(n2);
61157
- this.removeChild(n2);
61146
+ let n;
61147
+ while (n = this.firstChild) {
61148
+ const slotName = n.nodeType === 1 && n.getAttribute("slot") || "default";
61149
+ (slots[slotName] || (slots[slotName] = [])).push(n);
61150
+ this.removeChild(n);
61158
61151
  }
61159
61152
  }
61160
61153
  /**
@@ -61169,17 +61162,17 @@ Expected function or array of functions, received type ${typeof value}.`
61169
61162
  const content = this._slots[slotName];
61170
61163
  const parent = o.parentNode;
61171
61164
  if (content) {
61172
- for (const n2 of content) {
61173
- if (scopeId && n2.nodeType === 1) {
61165
+ for (const n of content) {
61166
+ if (scopeId && n.nodeType === 1) {
61174
61167
  const id = scopeId + "-s";
61175
- const walker = document.createTreeWalker(n2, 1);
61176
- n2.setAttribute(id, "");
61168
+ const walker = document.createTreeWalker(n, 1);
61169
+ n.setAttribute(id, "");
61177
61170
  let child;
61178
61171
  while (child = walker.nextNode()) {
61179
61172
  child.setAttribute(id, "");
61180
61173
  }
61181
61174
  }
61182
- parent.insertBefore(n2, o);
61175
+ parent.insertBefore(n, o);
61183
61176
  }
61184
61177
  } else {
61185
61178
  while (o.firstChild) parent.insertBefore(o.firstChild, o);
@@ -61965,14 +61958,14 @@ var require_vue_cjs_prod = __commonJS({
61965
61958
  var runtimeDom = require_runtime_dom();
61966
61959
  var shared = require_shared();
61967
61960
  function _interopNamespaceDefault(e) {
61968
- var n2 = /* @__PURE__ */ Object.create(null);
61961
+ var n = /* @__PURE__ */ Object.create(null);
61969
61962
  if (e) {
61970
61963
  for (var k in e) {
61971
- n2[k] = e[k];
61964
+ n[k] = e[k];
61972
61965
  }
61973
61966
  }
61974
- n2.default = e;
61975
- return Object.freeze(n2);
61967
+ n.default = e;
61968
+ return Object.freeze(n);
61976
61969
  }
61977
61970
  var runtimeDom__namespace = /* @__PURE__ */ _interopNamespaceDefault(runtimeDom);
61978
61971
  var compileCache = /* @__PURE__ */ Object.create(null);
@@ -62026,14 +62019,14 @@ var require_vue_cjs = __commonJS({
62026
62019
  var runtimeDom = require_runtime_dom();
62027
62020
  var shared = require_shared();
62028
62021
  function _interopNamespaceDefault(e) {
62029
- var n2 = /* @__PURE__ */ Object.create(null);
62022
+ var n = /* @__PURE__ */ Object.create(null);
62030
62023
  if (e) {
62031
62024
  for (var k in e) {
62032
- n2[k] = e[k];
62025
+ n[k] = e[k];
62033
62026
  }
62034
62027
  }
62035
- n2.default = e;
62036
- return Object.freeze(n2);
62028
+ n.default = e;
62029
+ return Object.freeze(n);
62037
62030
  }
62038
62031
  var runtimeDom__namespace = /* @__PURE__ */ _interopNamespaceDefault(runtimeDom);
62039
62032
  var compileCache = /* @__PURE__ */ Object.create(null);
@@ -62405,6 +62398,8 @@ var pageFrontmatterSchema = external_exports.object({
62405
62398
  tabs: external_exports.boolean().optional(),
62406
62399
  pageTitle: external_exports.boolean().optional(),
62407
62400
  pageActions: external_exports.boolean().optional(),
62401
+ pageNav: external_exports.boolean().optional().describe("Show previous and next page links on this page."),
62402
+ lastUpdated: external_exports.boolean().optional().describe("Show the date this page last changed, above the previous and next links."),
62408
62403
  fullWidth: external_exports.boolean().optional().describe("Expand the page content to the full page width instead of the default centered column."),
62409
62404
  search: external_exports.object({
62410
62405
  position: external_exports.enum(["header", "sidebar"]).optional().describe("The position of the search bar in this page"),
@@ -62424,7 +62419,13 @@ var pageFrontmatterSchema = external_exports.object({
62424
62419
  * calendar date. A date set on a config page entry is expected to already be
62425
62420
  * a plain `YYYY-MM-DD` string.
62426
62421
  */
62427
- date: external_exports.string().optional().describe("Publish date (YYYY-MM-DD). Used as the entry date in a page-mode RSS feed.")
62422
+ date: external_exports.string().optional().describe("Publish date (YYYY-MM-DD). Used as the entry date in a page-mode RSS feed."),
62423
+ /**
62424
+ * Render the page as a changelog: each version section (`## [1.2.0] - 2026-09-16`
62425
+ * in Keep a Changelog, `## 1.2.0` in Changesets) becomes a timeline item.
62426
+ * Set it on the config page entry to keep a generated CHANGELOG.md untouched.
62427
+ */
62428
+ changelog: external_exports.boolean().optional().describe("Render the page as a changelog: each version section (Keep a Changelog or Changesets format) becomes a timeline item.")
62428
62429
  });
62429
62430
  var basePageNavigationEntrySchema = pageFrontmatterSchema.extend({
62430
62431
  type: external_exports.literal("page"),
@@ -62642,6 +62643,18 @@ var routingSchema = external_exports.object({
62642
62643
  referencePathPattern: external_exports.string().optional(),
62643
62644
  redirects: redirectSchema.array().optional().describe("Redirects for the site. Can be used to redirect from one path to another")
62644
62645
  });
62646
+ var SITE_BANNER_TYPES = [
62647
+ "neutral",
62648
+ "info",
62649
+ "warning",
62650
+ "critical"
62651
+ ];
62652
+ var siteBannerSchema = external_exports.object({
62653
+ content: external_exports.string().describe("Banner text as inline markdown: links, bold, italic and code. Link to a page by its file path, e.g. [changelog](./changelog.md). Leave empty to hide the banner."),
62654
+ type: external_exports.enum(SITE_BANNER_TYPES).optional().describe('Color treatment: "neutral" for a plain gray bar, "info" (default) for announcements, "warning" for cautionary notices, "critical" for urgent issues.'),
62655
+ dismissible: external_exports.boolean().optional().describe("Show a close button. A dismissed banner stays hidden until its content changes."),
62656
+ icon: external_exports.union([iconSchema, external_exports.literal(false)]).optional().describe("Icon before the text, in the same forms as navigation icons. Set to false for no icon. Defaults to the type's icon.")
62657
+ });
62645
62658
  var logoSchema = external_exports.union([
62646
62659
  external_exports.string(),
62647
62660
  external_exports.object({ darkMode: external_exports.string(), lightMode: external_exports.string() })
@@ -62682,6 +62695,8 @@ var siteConfigSchema = external_exports.object({
62682
62695
  header: external_exports.boolean().optional(),
62683
62696
  pageTitle: external_exports.boolean().optional(),
62684
62697
  pageActions: external_exports.boolean().optional(),
62698
+ pageNav: external_exports.boolean().optional().describe("Show previous and next page links at the bottom of each page. Defaults to true."),
62699
+ lastUpdated: external_exports.boolean().optional().describe("Show the date each page last changed, above the previous and next links. Defaults to false."),
62685
62700
  search: external_exports.object({
62686
62701
  position: external_exports.enum(["header", "sidebar"]).optional().describe("The global position of the search bar"),
62687
62702
  enabled: external_exports.boolean().optional().describe("Enable or disable search globally")
@@ -62699,6 +62714,8 @@ var siteConfigSchema = external_exports.object({
62699
62714
  footer: external_exports.object({
62700
62715
  filepath: external_exports.string().endsWith(".html", 'The footer filepath must point to a ".html" file.').describe("File path to the footer HTML file")
62701
62716
  }).optional(),
62717
+ /** Site-wide announcement banner */
62718
+ banner: siteBannerSchema.optional().describe("A one-line announcement shown above the header on every page."),
62702
62719
  /** Routing options for the site */
62703
62720
  routing: routingSchema.optional(),
62704
62721
  /** Head options for the site (meta, scripts, etc-) */
@@ -62737,6 +62754,10 @@ var siteConfigSchema = external_exports.object({
62737
62754
  analytics: external_exports.object({
62738
62755
  cookieBanner: external_exports.boolean().optional().describe("Show an opt-in cookie consent banner before tracking. Required for GDPR-compliant deployments.")
62739
62756
  }).optional().describe("Analytics tracking preferences for the site"),
62757
+ /** Options for the content served to LLMs */
62758
+ llms: external_exports.object({
62759
+ stripComments: external_exports.boolean().optional().describe("Remove comments from the served markdown: HTML comments (<!-- ... -->) and link reference definition comments such as [//]: # (...). Comments never show on the rendered page, but a markdown page is otherwise served as written. Defaults to false.")
62760
+ }).optional().describe("Options for the content served to LLMs: the markdown copy of each page at <route>.md, and llms-full.txt."),
62740
62761
  /** AI and search content-usage preferences (Content Signals) */
62741
62762
  contentSignals: external_exports.union([
62742
62763
  external_exports.literal(false).describe("Set to false to omit the Content-Signal line from robots.txt entirely."),
@@ -63207,376 +63228,9 @@ function convertGuideSidebar(items) {
63207
63228
  return navigation;
63208
63229
  }
63209
63230
 
63210
- // ../../packages/scalar-config/dist/transformers/wysiwyg.js
63211
- import { n } from "neverpanic";
63212
-
63213
- // ../../packages/scalar-config/dist/errors.js
63214
- function createError(code, detail) {
63215
- return {
63216
- code,
63217
- detail
63218
- };
63219
- }
63220
-
63221
- // ../../packages/scalar-config/dist/transformers/wysiwyg.js
63222
- function generateGuideItems({ children, items }) {
63223
- const routes = {};
63224
- const sidebarItems = children.map((uid) => items[uid]);
63225
- sidebarItems.forEach((item) => {
63226
- if (!item.show) {
63227
- return;
63228
- }
63229
- const slug = createUrlSlug({ name: item.title });
63230
- const childrenRoutes = generateGuideItems({
63231
- children: item.children ?? [],
63232
- items
63233
- });
63234
- if (item.type === SidebarType.Folder) {
63235
- routes[slug] = {
63236
- type: "group",
63237
- title: item.title,
63238
- mode: "folder",
63239
- open: item.defaultOpen,
63240
- children: childrenRoutes
63241
- };
63242
- }
63243
- if (item.type === SidebarType.Page) {
63244
- const pageEntry = {
63245
- type: "page",
63246
- title: item.title,
63247
- description: item.description,
63248
- icon: item.icon?.src,
63249
- filepath: `${item.yjsReference}.yjs`,
63250
- ...item.backgroundImage && { backgroundImage: item.backgroundImage }
63251
- };
63252
- routes[slug] = item.children.length ? {
63253
- type: "group",
63254
- mode: "folder",
63255
- title: item.title ?? "Page group",
63256
- open: item.defaultOpen,
63257
- icon: item.icon?.src,
63258
- page: pageEntry,
63259
- children: childrenRoutes
63260
- } : pageEntry;
63261
- }
63262
- if (item.type === SidebarType.Link) {
63263
- routes[slug] = {
63264
- type: "link",
63265
- title: item.title,
63266
- url: item.link,
63267
- icon: item.icon?.src
63268
- };
63269
- }
63270
- });
63271
- return routes;
63272
- }
63273
- function alignAroundSpacers(items) {
63274
- const spacerIndex = items.findIndex((item) => item.type === "spacer");
63275
- if (spacerIndex === -1) {
63276
- return items;
63277
- }
63278
- return items.flatMap((item, index) => {
63279
- if (item.type === "spacer") {
63280
- return [];
63281
- }
63282
- return index > spacerIndex ? [{ ...item, align: "end" }] : [item];
63283
- });
63284
- }
63285
- function generateGuideHeader({ header, guides, invalidRefs, references }) {
63286
- const headerItems = [];
63287
- header.forEach((item) => {
63288
- if (!item.show)
63289
- return;
63290
- if (item.type === "group") {
63291
- headerItems.push({
63292
- type: "group",
63293
- title: item.title,
63294
- children: generateGuideHeader({
63295
- header: item.children,
63296
- guides,
63297
- invalidRefs,
63298
- references
63299
- }).filter((item2) => item2.type !== "group" && item2.type !== "version-selector")
63300
- });
63301
- }
63302
- if (item.type === "guide") {
63303
- const guide = guides[item.uid];
63304
- headerItems.push({
63305
- type: "link",
63306
- title: guide.title,
63307
- to: createUrlSlug({ name: guide.title })
63308
- });
63309
- }
63310
- if (item.type === "reference") {
63311
- const reference = references[item.uid];
63312
- if (item.uid in invalidRefs && !reference.managedDoc) {
63313
- return;
63314
- }
63315
- headerItems.push({
63316
- type: "link",
63317
- title: reference.title,
63318
- to: createUrlSlug({ name: reference.title })
63319
- });
63320
- }
63321
- if (item.type === "link") {
63322
- headerItems.push({
63323
- type: "link",
63324
- title: item.title,
63325
- to: item.link,
63326
- style: item.isButton ? "button" : "text"
63327
- });
63328
- }
63329
- if (item.type === "spacer") {
63330
- headerItems.push({
63331
- type: "spacer"
63332
- });
63333
- }
63334
- if (item.type === "version-selector") {
63335
- headerItems.push({
63336
- type: "version-selector"
63337
- });
63338
- }
63339
- });
63340
- return headerItems;
63341
- }
63342
- function getOrderedHeaderRefs(header) {
63343
- const ordered = [];
63344
- header.forEach((item) => {
63345
- if (item.type === "guide") {
63346
- ordered.push(item);
63347
- }
63348
- if (item.type === "reference") {
63349
- ordered.push(item);
63350
- }
63351
- if (item.type === "group") {
63352
- ordered.push(...getOrderedHeaderRefs(item.children));
63353
- }
63354
- });
63355
- return ordered;
63356
- }
63357
- function addGuideToRoutes(routes, guide) {
63358
- if (!guide.show)
63359
- return;
63360
- routes[createUrlSlug({ name: guide.title })] = {
63361
- title: guide.title,
63362
- type: "group",
63363
- children: generateGuideItems(guide.sidebar)
63364
- };
63365
- }
63366
- function addReferenceToRoutes(routes, reference, invalidRefs) {
63367
- if (!reference.show)
63368
- return;
63369
- const parseConfigResult = n.fromUnsafe(() => JSON.parse(reference.config), (originalError) => createError("INVALID_REFERENCE_CONFIG", originalError));
63370
- const config = parseConfigResult.success ? parseConfigResult.data : {};
63371
- if (reference.specPermalink) {
63372
- routes[createUrlSlug({ name: reference.title })] = {
63373
- type: "openapi",
63374
- title: reference.title,
63375
- description: reference.description,
63376
- url: reference.specPermalink,
63377
- config,
63378
- singlePage: true
63379
- };
63380
- return;
63381
- }
63382
- if (reference.managedDoc) {
63383
- routes[createUrlSlug({ name: reference.title })] = {
63384
- type: "openapi",
63385
- title: reference.title,
63386
- description: reference.description,
63387
- namespace: reference.managedDoc.namespace,
63388
- slug: reference.managedDoc.slug,
63389
- singlePage: true,
63390
- config,
63391
- version: getLegacyWysiwygVersion(reference.managedDoc.versions)
63392
- };
63393
- return;
63394
- }
63395
- if (reference.uid in invalidRefs)
63396
- return;
63397
- routes[createUrlSlug({ name: reference.title })] = {
63398
- type: "openapi",
63399
- title: reference.title,
63400
- description: reference.description,
63401
- config,
63402
- singlePage: true,
63403
- filepath: `${reference.yjsReference}.yaml`
63404
- };
63405
- }
63406
- function generateGuideRoutes({ guides, references, invalidRefs, header }) {
63407
- const routes = {};
63408
- const addedGuides = /* @__PURE__ */ new Set();
63409
- const addedReferences = /* @__PURE__ */ new Set();
63410
- getOrderedHeaderRefs(header).forEach((item) => {
63411
- if (item.type === "guide" && item.uid in guides) {
63412
- addGuideToRoutes(routes, guides[item.uid]);
63413
- addedGuides.add(item.uid);
63414
- }
63415
- if (item.type === "reference" && item.uid in references) {
63416
- addReferenceToRoutes(routes, references[item.uid], invalidRefs);
63417
- addedReferences.add(item.uid);
63418
- }
63419
- });
63420
- Object.entries(guides).forEach(([uid, guide]) => {
63421
- if (!addedGuides.has(uid)) {
63422
- addGuideToRoutes(routes, guide);
63423
- }
63424
- });
63425
- Object.entries(references).forEach(([uid, reference]) => {
63426
- if (!addedReferences.has(uid)) {
63427
- addReferenceToRoutes(routes, reference, invalidRefs);
63428
- }
63429
- });
63430
- return routes;
63431
- }
63432
- var wysiwygProjectToV2 = n.safeFn(({ project, invalidRefs, theme }) => {
63433
- const meta = [];
63434
- if (project.website.description) {
63435
- meta.push({
63436
- name: "description",
63437
- content: project.website.description
63438
- });
63439
- }
63440
- const links = [];
63441
- if (project.website.favicon) {
63442
- links.push({
63443
- rel: "icon",
63444
- type: "image/x-icon",
63445
- href: project.website.favicon
63446
- });
63447
- }
63448
- if (project.website.ogImage) {
63449
- meta.push({
63450
- property: "og:image",
63451
- content: project.website.ogImage
63452
- });
63453
- }
63454
- const versions = {};
63455
- const projectVersions = Object.values(project.versions);
63456
- const activeVersion = project.versions[project.activeVersionId] ?? projectVersions[projectVersions.length - 1];
63457
- for (const version of projectVersions) {
63458
- const identifier = version.uid === activeVersion.uid ? "default" : slugify(version.name);
63459
- versions[identifier] = {
63460
- title: version.name,
63461
- header: alignAroundSpacers(generateGuideHeader({
63462
- header: version.header,
63463
- guides: version.guides,
63464
- references: version.references,
63465
- invalidRefs
63466
- })),
63467
- routes: generateGuideRoutes({
63468
- guides: version.guides,
63469
- references: version.references,
63470
- invalidRefs,
63471
- header: version.header
63472
- })
63473
- };
63474
- }
63475
- const legacyFooterPath = "footer.html";
63476
- const legacyFooterThemePath = "footer-theme.css";
63477
- const legacyThemePath = "theme.css";
63478
- const legacyHeadScriptPath = "head.js";
63479
- const legacyBodyScriptPath = "body.js";
63480
- const styles = [
63481
- {
63482
- path: legacyFooterThemePath
63483
- }
63484
- ];
63485
- if (theme) {
63486
- styles.push({ path: legacyThemePath });
63487
- }
63488
- const scripts = [];
63489
- if (activeVersion.headScript) {
63490
- scripts.push({
63491
- path: legacyHeadScriptPath,
63492
- tagPosition: "head"
63493
- });
63494
- }
63495
- if (activeVersion.bodyScript) {
63496
- scripts.push({
63497
- path: legacyBodyScriptPath,
63498
- tagPosition: "bodyOpen"
63499
- });
63500
- }
63501
- const upgradedConfig = {
63502
- $schema: schemaCdn,
63503
- scalar: "2.0.0",
63504
- info: {
63505
- title: project.name ?? project.website.title,
63506
- description: project.website.description,
63507
- version: activeVersion.name
63508
- },
63509
- siteConfig: {
63510
- ...project.website.customUrl && {
63511
- customDomain: project.website.customUrl
63512
- },
63513
- subdomain: project.website.subdomainPrefix,
63514
- subpath: project.website.subPath,
63515
- footer: {
63516
- filepath: legacyFooterPath
63517
- },
63518
- ...(project.logo.darkMode || project.logo.lightMode) && {
63519
- logo: {
63520
- lightMode: project.logo.lightMode || project.logo.darkMode,
63521
- darkMode: project.logo.darkMode || project.logo.lightMode
63522
- }
63523
- },
63524
- head: {
63525
- title: project.website.title,
63526
- links,
63527
- meta,
63528
- styles,
63529
- scripts
63530
- },
63531
- routing: {
63532
- redirects: project.website.redirects,
63533
- ...project.website.routing.guidePathPattern && {
63534
- guidePathPattern: project.website.routing.guidePathPattern
63535
- },
63536
- ...project.website.routing.referencePathPattern && {
63537
- referencePathPattern: project.website.routing.referencePathPattern
63538
- }
63539
- }
63540
- },
63541
- versions
63542
- };
63543
- return {
63544
- success: true,
63545
- data: {
63546
- upgradedConfig,
63547
- legacyFooter: {
63548
- path: legacyFooterPath,
63549
- footerString: activeVersion.footer
63550
- },
63551
- legacyFooterTheme: {
63552
- path: legacyFooterThemePath,
63553
- cssString: activeVersion.footerCss
63554
- },
63555
- ...theme && {
63556
- legacyTheme: {
63557
- path: legacyThemePath,
63558
- cssString: theme
63559
- }
63560
- },
63561
- ...activeVersion.headScript && {
63562
- legacyHeadScript: {
63563
- path: legacyHeadScriptPath,
63564
- scriptString: activeVersion.headScript
63565
- }
63566
- },
63567
- ...activeVersion.bodyScript && {
63568
- legacyBodyScript: {
63569
- path: legacyBodyScriptPath,
63570
- scriptString: activeVersion.bodyScript
63571
- }
63572
- }
63573
- }
63574
- };
63575
- }, (originalError) => createError("FAILED_TO_CONVERT_WYSIWYG_TO_V2", originalError));
63576
-
63577
63231
  // ../../packages/helpers/dist/parse/parse.js
63578
63232
  var import_json5 = __toESM(require_lib(), 1);
63579
- var import_yaml = __toESM(require_dist(), 1);
63233
+ import yaml2 from "yaml";
63580
63234
  function findDocType(val) {
63581
63235
  const withoutWhiteSpace = val.trim();
63582
63236
  if (
@@ -63591,7 +63245,7 @@ function findDocType(val) {
63591
63245
  function parseAnything(val, schema) {
63592
63246
  const docType = findDocType(val);
63593
63247
  try {
63594
- const obj = docType === "yaml" ? import_yaml.default.parse(val) : import_json5.default.parse(val);
63248
+ const obj = docType === "yaml" ? yaml2.parse(val) : import_json5.default.parse(val);
63595
63249
  const result = schema.safeParse(obj);
63596
63250
  if (result.success) {
63597
63251
  return {