@scalar/api-reference 1.29.3 → 1.31.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 (159) hide show
  1. package/CHANGELOG.md +58 -0
  2. package/README.md +13 -114
  3. package/dist/browser/standalone.js +6525 -6416
  4. package/dist/browser/webpack-stats.json +1 -1
  5. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  6. package/dist/components/ApiReferenceLayout.vue.js +1 -1
  7. package/dist/components/ApiReferenceLayout.vue2.js +164 -181
  8. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
  9. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +2 -2
  10. package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +56 -51
  11. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  12. package/dist/components/Content/Content.vue.js +1 -1
  13. package/dist/components/Content/Content.vue2.js +5 -5
  14. package/dist/components/Content/Introduction/Introduction.vue.d.ts +2 -2
  15. package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
  16. package/dist/components/Content/Introduction/Introduction.vue.js +2 -2
  17. package/dist/components/Content/Introduction/Introduction.vue2.js +57 -63
  18. package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
  19. package/dist/components/Content/Lazy/Loading.vue.js +46 -46
  20. package/dist/components/Content/Models/Models.vue.d.ts +2 -2
  21. package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
  22. package/dist/components/Content/Models/Models.vue.js +2 -2
  23. package/dist/components/Content/Models/Models.vue2.js +7 -6
  24. package/dist/components/Content/Models/ModelsAccordion.vue.d.ts +2 -2
  25. package/dist/components/Content/Models/ModelsAccordion.vue.d.ts.map +1 -1
  26. package/dist/components/Content/Models/ModelsAccordion.vue.js +2 -2
  27. package/dist/components/Content/Schema/Schema.preview.d.ts +98 -56
  28. package/dist/components/Content/Schema/Schema.preview.d.ts.map +1 -1
  29. package/dist/components/Content/Schema/Schema.vue.d.ts +6 -3
  30. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  31. package/dist/components/Content/Schema/Schema.vue.js +1 -1
  32. package/dist/components/Content/Schema/Schema.vue2.js +140 -97
  33. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts +2 -2
  34. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
  35. package/dist/components/Content/Schema/SchemaComposition.vue.js +57 -53
  36. package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts +13 -0
  37. package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts.map +1 -0
  38. package/dist/components/Content/Schema/SchemaDiscriminator.vue.js +49 -0
  39. package/dist/components/Content/Schema/SchemaDiscriminator.vue2.js +4 -0
  40. package/dist/components/Content/Schema/SchemaHeading.vue.d.ts +2 -2
  41. package/dist/components/Content/Schema/SchemaHeading.vue.d.ts.map +1 -1
  42. package/dist/components/Content/Schema/SchemaHeading.vue.js +1 -1
  43. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +4 -2
  44. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  45. package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
  46. package/dist/components/Content/Schema/SchemaProperty.vue2.js +40 -38
  47. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts +3 -2
  48. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  49. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +2 -2
  50. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +147 -143
  51. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts +2 -2
  52. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts.map +1 -1
  53. package/dist/components/Content/Schema/helpers/schema-discriminator.d.ts +9 -1
  54. package/dist/components/Content/Schema/helpers/schema-discriminator.d.ts.map +1 -1
  55. package/dist/components/Content/Schema/helpers/schema-discriminator.js +45 -0
  56. package/dist/components/Content/Tag/TagList.vue.d.ts +2 -2
  57. package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
  58. package/dist/components/DocumentSelector/DocumentSelector.vue.js +3 -3
  59. package/dist/components/Layouts/ClassicLayout.vue.js +10 -8
  60. package/dist/components/Layouts/Layouts.vue.js +11 -9
  61. package/dist/components/Layouts/ModernLayout.vue2.js +22 -20
  62. package/dist/components/Section/SectionHeader.vue.d.ts.map +1 -1
  63. package/dist/components/Section/SectionHeader.vue.js +2 -2
  64. package/dist/components/Section/SectionHeaderTag.vue.d.ts.map +1 -1
  65. package/dist/components/Section/SectionHeaderTag.vue.js +2 -2
  66. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  67. package/dist/components/Sidebar/Sidebar.vue.js +2 -2
  68. package/dist/components/Sidebar/Sidebar.vue2.js +56 -56
  69. package/dist/components/SingleApiReference.vue.d.ts.map +1 -1
  70. package/dist/components/SingleApiReference.vue.js +27 -33
  71. package/dist/esm.d.ts.map +1 -1
  72. package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts +2 -2
  73. package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -1
  74. package/dist/features/ApiClientModal/ApiClientModal.vue.js +49 -50
  75. package/dist/features/ApiClientModal/useApiClient.d.ts +224 -204
  76. package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
  77. package/dist/features/DocumentSource/hooks/useDocumentFetcher.d.ts +11 -0
  78. package/dist/features/DocumentSource/hooks/useDocumentFetcher.d.ts.map +1 -0
  79. package/dist/features/DocumentSource/hooks/useDocumentFetcher.js +38 -0
  80. package/dist/features/DocumentSource/hooks/useDocumentSource.d.ts +21 -0
  81. package/dist/features/DocumentSource/hooks/useDocumentSource.d.ts.map +1 -0
  82. package/dist/features/DocumentSource/hooks/useDocumentSource.js +94 -0
  83. package/dist/features/DocumentSource/index.d.ts +2 -0
  84. package/dist/features/DocumentSource/index.d.ts.map +1 -0
  85. package/dist/features/DownloadLink/DownloadLink.vue.d.ts +1 -1
  86. package/dist/features/DownloadLink/DownloadLink.vue.d.ts.map +1 -1
  87. package/dist/features/DownloadLink/DownloadLink.vue.js +1 -1
  88. package/dist/features/DownloadLink/DownloadLink.vue2.js +18 -17
  89. package/dist/features/DownloadLink/index.d.ts +1 -0
  90. package/dist/features/DownloadLink/index.d.ts.map +1 -1
  91. package/dist/features/DownloadLink/openapi-version-symbol.d.ts +2 -0
  92. package/dist/features/DownloadLink/openapi-version-symbol.d.ts.map +1 -0
  93. package/dist/features/DownloadLink/openapi-version-symbol.js +4 -0
  94. package/dist/features/Operation/Operation.vue.d.ts +2 -2
  95. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  96. package/dist/features/Operation/components/OperationParameters.vue.d.ts +2 -2
  97. package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
  98. package/dist/features/Operation/components/OperationResponses.vue.d.ts +2 -2
  99. package/dist/features/Operation/components/OperationResponses.vue.d.ts.map +1 -1
  100. package/dist/features/Operation/components/ParameterHeaders.vue.d.ts +2 -2
  101. package/dist/features/Operation/components/ParameterHeaders.vue.d.ts.map +1 -1
  102. package/dist/features/Operation/components/ParameterHeaders.vue.js +2 -2
  103. package/dist/features/Operation/components/ParameterList.vue.d.ts +2 -2
  104. package/dist/features/Operation/components/ParameterList.vue.d.ts.map +1 -1
  105. package/dist/features/Operation/components/ParameterList.vue.js +2 -2
  106. package/dist/features/Operation/components/ParameterListItem.vue.d.ts +2 -2
  107. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
  108. package/dist/features/Operation/components/ParameterListItem.vue.js +3 -3
  109. package/dist/features/Operation/components/ParameterListItem.vue2.js +6 -6
  110. package/dist/features/Operation/components/RequestBody.vue.d.ts +2 -2
  111. package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
  112. package/dist/features/Operation/components/RequestBody.vue.js +2 -2
  113. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +14 -0
  114. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -0
  115. package/dist/features/Operation/components/callbacks/Callback.vue.js +7 -0
  116. package/dist/features/Operation/components/callbacks/Callback.vue2.js +62 -0
  117. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts +10 -0
  118. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts.map +1 -0
  119. package/dist/features/Operation/components/callbacks/Callbacks.vue.js +30 -0
  120. package/dist/features/Operation/components/callbacks/Callbacks.vue2.js +4 -0
  121. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +2 -2
  122. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  123. package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
  124. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +55 -55
  125. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +2 -2
  126. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  127. package/dist/features/Operation/layouts/ModernLayout.vue.js +1 -1
  128. package/dist/features/Operation/layouts/ModernLayout.vue2.js +94 -79
  129. package/dist/features/Operation/types/schemas.d.ts +3 -0
  130. package/dist/features/Operation/types/schemas.d.ts.map +1 -0
  131. package/dist/features/Search/SearchButton.vue.js +2 -2
  132. package/dist/helpers/local-storage.d.ts +8 -0
  133. package/dist/helpers/local-storage.d.ts.map +1 -0
  134. package/dist/helpers/local-storage.js +6 -0
  135. package/dist/helpers/measure.d.ts +21 -0
  136. package/dist/helpers/measure.d.ts.map +1 -0
  137. package/dist/helpers/measure.js +7 -0
  138. package/dist/helpers/parse.d.ts +3 -5
  139. package/dist/helpers/parse.d.ts.map +1 -1
  140. package/dist/helpers/parse.js +64 -86
  141. package/dist/helpers/scroll-to-id.d.ts.map +1 -1
  142. package/dist/helpers/scroll-to-id.js +18 -4
  143. package/dist/index.d.ts +0 -1
  144. package/dist/index.d.ts.map +1 -1
  145. package/dist/index.js +33 -35
  146. package/dist/libs/openapi.d.ts +3 -3
  147. package/dist/libs/openapi.d.ts.map +1 -1
  148. package/dist/libs/openapi.js +35 -42
  149. package/dist/standalone/lib/html-api.d.ts.map +1 -1
  150. package/dist/standalone/lib/html-api.js +15 -15
  151. package/dist/stores/useHttpClientStore.d.ts.map +1 -1
  152. package/dist/stores/useHttpClientStore.js +19 -18
  153. package/dist/style.css +1 -1
  154. package/dist/types.d.ts +27 -3
  155. package/dist/types.d.ts.map +1 -1
  156. package/package.json +15 -16
  157. package/dist/hooks/useReactiveSpec.d.ts +0 -448
  158. package/dist/hooks/useReactiveSpec.d.ts.map +0 -1
  159. package/dist/hooks/useReactiveSpec.js +0 -59
@@ -1,31 +1,33 @@
1
- import { defineComponent as z, computed as b, createElementBlock as i, openBlock as a, createCommentVNode as n, createBlock as d, normalizeClass as H, renderSlot as D, Fragment as y, createTextVNode as l, withCtx as r, createVNode as v, toDisplayString as m, unref as N } from "vue";
2
- import { isDefined as B } from "@scalar/oas-utils/helpers";
3
- import { stringify as g } from "flatted";
1
+ import { defineComponent as z, computed as g, createElementBlock as n, openBlock as a, createCommentVNode as i, createBlock as o, normalizeClass as H, renderSlot as E, Fragment as v, createTextVNode as u, withCtx as r, createVNode as p, toDisplayString as m, unref as N } from "vue";
2
+ import { isDefined as b } from "@scalar/oas-utils/helpers";
4
3
  import { compositions as J } from "./helpers/schema-composition.js";
5
4
  import R from "./SchemaPropertyExamples.vue.js";
6
- import j from "../../ScreenReader.vue.js";
7
- import f from "./SchemaPropertyDetail.vue.js";
8
- import E from "../../Badge/Badge.vue.js";
5
+ import B from "../../ScreenReader.vue.js";
6
+ import y from "./SchemaPropertyDetail.vue.js";
7
+ import L from "../../Badge/Badge.vue.js";
9
8
  const W = { class: "property-heading" }, G = {
10
- key: 2,
11
- class: "property-additional"
9
+ key: 1,
10
+ class: "property-discriminator"
12
11
  }, K = {
13
12
  key: 3,
14
- class: "property-pattern"
13
+ class: "property-additional"
15
14
  }, Q = {
16
15
  key: 4,
17
- class: "property-deprecated"
16
+ class: "property-pattern"
18
17
  }, U = {
19
18
  key: 5,
20
- class: "property-const"
19
+ class: "property-deprecated"
21
20
  }, X = {
22
- key: 7,
23
- class: "property-write-only"
21
+ key: 6,
22
+ class: "property-const"
24
23
  }, Y = {
25
24
  key: 8,
26
- class: "property-read-only"
25
+ class: "property-write-only"
27
26
  }, Z = {
28
27
  key: 9,
28
+ class: "property-read-only"
29
+ }, h = {
30
+ key: 10,
29
31
  class: "property-required"
30
32
  }, ae = /* @__PURE__ */ z({
31
33
  __name: "SchemaPropertyHeading",
@@ -36,249 +38,251 @@ const W = { class: "property-heading" }, G = {
36
38
  additional: { type: Boolean },
37
39
  pattern: { type: Boolean },
38
40
  withExamples: { type: Boolean, default: !0 },
41
+ hideModelNames: { type: Boolean, default: !1 },
39
42
  schemas: {}
40
43
  },
41
- setup(u) {
42
- J.find((e) => !u.value || typeof u.value != "object" ? !1 : e in u.value || u.value.items && typeof u.value.items == "object" && e in u.value.items);
43
- const L = (e) => (e == null ? void 0 : e.default) === null ? "null" : Array.isArray(e == null ? void 0 : e.default) && e.default.length === 1 ? e.default[0] : typeof (e == null ? void 0 : e.default) == "string" ? JSON.stringify(e.default) : e == null ? void 0 : e.default, M = (e) => {
44
+ setup(l) {
45
+ J.find((e) => !l.value || typeof l.value != "object" ? !1 : e in l.value || l.value.items && typeof l.value.items == "object" && e in l.value.items);
46
+ const O = (e) => (e == null ? void 0 : e.default) === null ? "null" : Array.isArray(e == null ? void 0 : e.default) && e.default.length === 1 ? e.default[0] : typeof (e == null ? void 0 : e.default) == "string" ? JSON.stringify(e.default) : e == null ? void 0 : e.default, M = (e) => {
47
+ var t, f;
44
48
  if (!e)
45
49
  return null;
46
50
  if (e.title)
47
51
  return e.title;
48
52
  if (e.name)
49
53
  return e.name;
50
- if (u.schemas && typeof u.schemas == "object") {
51
- for (const [t, o] of Object.entries(u.schemas))
52
- if (g(o) === g(e))
53
- return t;
54
- if (e.type === "object" && e.properties) {
55
- for (const [t, o] of Object.entries(u.schemas))
56
- if (g(o.properties) === g(e.properties))
57
- return t;
58
- }
54
+ if (l.schemas && typeof l.schemas == "object") {
55
+ for (const [d, s] of Object.entries(l.schemas))
56
+ if (s.type === e.type && (e.type === "array" && ((t = s.items) == null ? void 0 : t.type) === ((f = e.items) == null ? void 0 : f.type) || e.type === "object" && s.properties && e.properties || e.type !== "array" && e.type !== "object"))
57
+ return d;
59
58
  }
60
59
  return null;
61
- }, S = b(() => {
62
- var e, t, o, s, p, k;
63
- if (B((e = u.value) == null ? void 0 : e.const))
64
- return (t = u.value) == null ? void 0 : t.const;
65
- if (((s = (o = u.value) == null ? void 0 : o.enum) == null ? void 0 : s.length) === 1)
66
- return u.value.enum[0];
67
- if ((p = u.value) != null && p.items) {
68
- if (B(u.value.items.const))
69
- return u.value.items.const;
70
- if (((k = u.value.items.enum) == null ? void 0 : k.length) === 1)
71
- return u.value.items.enum[0];
60
+ }, $ = g(() => {
61
+ var e, t, f, d, s, k;
62
+ if (b((e = l.value) == null ? void 0 : e.const))
63
+ return (t = l.value) == null ? void 0 : t.const;
64
+ if (((d = (f = l.value) == null ? void 0 : f.enum) == null ? void 0 : d.length) === 1)
65
+ return l.value.enum[0];
66
+ if ((s = l.value) != null && s.items) {
67
+ if (b(l.value.items.const))
68
+ return l.value.items.const;
69
+ if (((k = l.value.items.enum) == null ? void 0 : k.length) === 1)
70
+ return l.value.items.enum[0];
72
71
  }
73
72
  return null;
74
- }), T = b(() => {
75
- var e, t, o, s;
76
- return Array.isArray((e = u.value) == null ? void 0 : e.type) ? u.value.type.join(" | ") : (t = u.value) != null && t.title ? u.value.title : (o = u.value) != null && o.name ? u.value.name : ((s = u.value) == null ? void 0 : s.type) ?? "";
77
- }), F = (e, t) => e === "array" ? `${e} ${t}[]` : `${e} ${t}`, $ = b(() => {
78
- var t, o;
79
- if (!((t = u.value) != null && t.type))
73
+ }), T = g(() => {
74
+ var e, t, f, d;
75
+ return Array.isArray((e = l.value) == null ? void 0 : e.type) ? l.value.type.join(" | ") : (t = l.value) != null && t.title ? l.value.title : (f = l.value) != null && f.name ? l.value.name : ((d = l.value) == null ? void 0 : d.type) ?? "";
76
+ }), F = (e, t) => e === "array" ? `${e} ${t}[]` : `${e} ${t}`, S = g(() => {
77
+ var t, f, d;
78
+ if (!((t = l.value) != null && t.type))
80
79
  return null;
81
- if (u.value.type === "array" && ((o = u.value.items) != null && o.type)) {
82
- const s = M(u.value.items) || u.value.items.type;
83
- return F(u.value.type, s);
80
+ if (l.hideModelNames)
81
+ return l.value.type === "array" && ((f = l.value.items) != null && f.type) ? `array ${l.value.items.type}[]` : null;
82
+ const e = M(l.value);
83
+ if (e)
84
+ return l.value.type === "array" ? `array ${e}[]` : e;
85
+ if (l.value.type === "array" && ((d = l.value.items) != null && d.type)) {
86
+ const s = M(l.value.items) || l.value.items.type;
87
+ return F(l.value.type, s);
84
88
  }
85
- const e = M(u.value);
86
- return e || null;
89
+ return null;
87
90
  });
88
91
  return (e, t) => {
89
- var o, s, p, k, V, q, w, P, I, O, A;
90
- return a(), i("div", W, [
91
- e.$slots.name ? (a(), i("div", {
92
+ var f, d, s, k, j, q, w, D, P, V, I, A;
93
+ return a(), n("div", W, [
94
+ e.$slots.name ? (a(), n("div", {
92
95
  key: 0,
93
- class: H(["property-name", { deprecated: (o = e.value) == null ? void 0 : o.deprecated }])
96
+ class: H(["property-name", { deprecated: (f = e.value) == null ? void 0 : f.deprecated }])
94
97
  }, [
95
- e.pattern ? (a(), i(y, { key: 1 }, [
96
- t[0] || (t[0] = l("/")),
97
- D(e.$slots, "name", {}, void 0, !0),
98
- t[1] || (t[1] = l("/"))
99
- ], 64)) : D(e.$slots, "name", { key: 0 }, void 0, !0)
100
- ], 2)) : n("", !0),
101
- e.value ? (a(), i(y, { key: 1 }, [
102
- (s = e.value) != null && s.type ? (a(), d(f, { key: 0 }, {
98
+ e.pattern ? (a(), n(v, { key: 1 }, [
99
+ t[0] || (t[0] = u("/")),
100
+ E(e.$slots, "name", {}, void 0, !0),
101
+ t[1] || (t[1] = u("/"))
102
+ ], 64)) : E(e.$slots, "name", { key: 0 }, void 0, !0)
103
+ ], 2)) : i("", !0),
104
+ (d = e.value) != null && d.isDiscriminator ? (a(), n("div", G, " Discriminator ")) : i("", !0),
105
+ e.value ? (a(), n(v, { key: 2 }, [
106
+ (s = e.value) != null && s.type ? (a(), o(y, { key: 0 }, {
103
107
  default: r(() => {
104
108
  var C;
105
109
  return [
106
- v(j, null, {
110
+ p(B, null, {
107
111
  default: r(() => t[2] || (t[2] = [
108
- l("Type:")
112
+ u("Type:")
109
113
  ])),
110
114
  _: 1
111
115
  }),
112
- $.value ? (a(), i(y, { key: 0 }, [
113
- l(m($.value), 1)
114
- ], 64)) : (a(), i(y, { key: 1 }, [
115
- l(m(T.value) + " " + m((C = e.value) != null && C.nullable ? " | nullable" : ""), 1)
116
+ S.value ? (a(), n(v, { key: 0 }, [
117
+ u(m(S.value), 1)
118
+ ], 64)) : (a(), n(v, { key: 1 }, [
119
+ u(m(T.value) + " " + m((C = e.value) != null && C.nullable ? " | nullable" : ""), 1)
116
120
  ], 64))
117
121
  ];
118
122
  }),
119
123
  _: 1
120
- })) : n("", !0),
121
- e.value.minItems || e.value.maxItems ? (a(), d(f, { key: 1 }, {
124
+ })) : i("", !0),
125
+ e.value.minItems || e.value.maxItems ? (a(), o(y, { key: 1 }, {
122
126
  default: r(() => [
123
- l(m(e.value.minItems) + "…" + m(e.value.maxItems), 1)
127
+ u(m(e.value.minItems) + "…" + m(e.value.maxItems), 1)
124
128
  ]),
125
129
  _: 1
126
- })) : n("", !0),
127
- e.value.minLength ? (a(), d(f, { key: 2 }, {
130
+ })) : i("", !0),
131
+ e.value.minLength ? (a(), o(y, { key: 2 }, {
128
132
  prefix: r(() => t[3] || (t[3] = [
129
- l("min:")
133
+ u("min:")
130
134
  ])),
131
135
  default: r(() => [
132
- l(" " + m(e.value.minLength), 1)
136
+ u(" " + m(e.value.minLength), 1)
133
137
  ]),
134
138
  _: 1
135
- })) : n("", !0),
136
- e.value.maxLength ? (a(), d(f, { key: 3 }, {
139
+ })) : i("", !0),
140
+ e.value.maxLength ? (a(), o(y, { key: 3 }, {
137
141
  prefix: r(() => t[4] || (t[4] = [
138
- l("max:")
142
+ u("max:")
139
143
  ])),
140
144
  default: r(() => [
141
- l(" " + m(e.value.maxLength), 1)
145
+ u(" " + m(e.value.maxLength), 1)
142
146
  ]),
143
147
  _: 1
144
- })) : n("", !0),
145
- e.value.uniqueItems ? (a(), d(f, { key: 4 }, {
148
+ })) : i("", !0),
149
+ e.value.uniqueItems ? (a(), o(y, { key: 4 }, {
146
150
  default: r(() => t[5] || (t[5] = [
147
- l(" unique! ")
151
+ u(" unique! ")
148
152
  ])),
149
153
  _: 1
150
- })) : n("", !0),
151
- e.value.format ? (a(), d(f, { key: 5 }, {
154
+ })) : i("", !0),
155
+ e.value.format ? (a(), o(y, { key: 5 }, {
152
156
  default: r(() => [
153
- v(j, null, {
157
+ p(B, null, {
154
158
  default: r(() => t[6] || (t[6] = [
155
- l("Format:")
159
+ u("Format:")
156
160
  ])),
157
161
  _: 1
158
162
  }),
159
- l(" " + m(e.value.format), 1)
163
+ u(" " + m(e.value.format), 1)
160
164
  ]),
161
165
  _: 1
162
- })) : n("", !0),
163
- e.value.minimum !== void 0 && e.value.exclusiveMinimum ? (a(), d(f, { key: 6 }, {
166
+ })) : i("", !0),
167
+ e.value.minimum !== void 0 && e.value.exclusiveMinimum ? (a(), o(y, { key: 6 }, {
164
168
  prefix: r(() => t[7] || (t[7] = [
165
- l("greater than:")
169
+ u("greater than:")
166
170
  ])),
167
171
  default: r(() => [
168
- l(" " + m(e.value.minimum), 1)
172
+ u(" " + m(e.value.minimum), 1)
169
173
  ]),
170
174
  _: 1
171
- })) : n("", !0),
172
- e.value.minimum !== void 0 && !e.value.exclusiveMinimum ? (a(), d(f, { key: 7 }, {
175
+ })) : i("", !0),
176
+ e.value.minimum !== void 0 && !e.value.exclusiveMinimum ? (a(), o(y, { key: 7 }, {
173
177
  prefix: r(() => t[8] || (t[8] = [
174
- l("min:")
178
+ u("min:")
175
179
  ])),
176
180
  default: r(() => [
177
- l(" " + m(e.value.minimum), 1)
181
+ u(" " + m(e.value.minimum), 1)
178
182
  ]),
179
183
  _: 1
180
- })) : n("", !0),
181
- e.value.maximum !== void 0 && e.value.exclusiveMaximum ? (a(), d(f, { key: 8 }, {
184
+ })) : i("", !0),
185
+ e.value.maximum !== void 0 && e.value.exclusiveMaximum ? (a(), o(y, { key: 8 }, {
182
186
  prefix: r(() => t[9] || (t[9] = [
183
- l("less than:")
187
+ u("less than:")
184
188
  ])),
185
189
  default: r(() => [
186
- l(" " + m(e.value.maximum), 1)
190
+ u(" " + m(e.value.maximum), 1)
187
191
  ]),
188
192
  _: 1
189
- })) : n("", !0),
190
- e.value.maximum !== void 0 && !e.value.exclusiveMaximum ? (a(), d(f, { key: 9 }, {
193
+ })) : i("", !0),
194
+ e.value.maximum !== void 0 && !e.value.exclusiveMaximum ? (a(), o(y, { key: 9 }, {
191
195
  prefix: r(() => t[10] || (t[10] = [
192
- l("max:")
196
+ u("max:")
193
197
  ])),
194
198
  default: r(() => [
195
- l(" " + m(e.value.maximum), 1)
199
+ u(" " + m(e.value.maximum), 1)
196
200
  ]),
197
201
  _: 1
198
- })) : n("", !0),
199
- e.value.pattern ? (a(), d(f, {
202
+ })) : i("", !0),
203
+ e.value.pattern ? (a(), o(y, {
200
204
  key: 10,
201
205
  code: "",
202
206
  truncate: ""
203
207
  }, {
204
208
  default: r(() => [
205
- v(j, null, {
209
+ p(B, null, {
206
210
  default: r(() => t[11] || (t[11] = [
207
- l("Pattern:")
211
+ u("Pattern:")
208
212
  ])),
209
213
  _: 1
210
214
  }),
211
- l(" " + m(e.value.pattern), 1)
215
+ u(" " + m(e.value.pattern), 1)
212
216
  ]),
213
217
  _: 1
214
- })) : n("", !0),
215
- e.$props.enum ? (a(), d(f, { key: 11 }, {
218
+ })) : i("", !0),
219
+ e.$props.enum ? (a(), o(y, { key: 11 }, {
216
220
  default: r(() => t[12] || (t[12] = [
217
- l("enum")
221
+ u("enum")
218
222
  ])),
219
223
  _: 1
220
- })) : n("", !0),
221
- e.value.default !== void 0 ? (a(), d(f, {
224
+ })) : i("", !0),
225
+ e.value.default !== void 0 ? (a(), o(y, {
222
226
  key: 12,
223
227
  truncate: ""
224
228
  }, {
225
229
  prefix: r(() => t[13] || (t[13] = [
226
- l("default:")
230
+ u("default:")
227
231
  ])),
228
232
  default: r(() => [
229
- l(" " + m(L(e.value)), 1)
233
+ u(" " + m(O(e.value)), 1)
230
234
  ]),
231
235
  _: 1
232
- })) : n("", !0)
233
- ], 64)) : n("", !0),
234
- e.additional ? (a(), i("div", G, [
235
- (p = e.value) != null && p["x-additionalPropertiesName"] ? (a(), i(y, { key: 0 }, [
236
- l(m(e.value["x-additionalPropertiesName"]), 1)
237
- ], 64)) : (a(), i(y, { key: 1 }, [
238
- l("additional properties")
236
+ })) : i("", !0)
237
+ ], 64)) : i("", !0),
238
+ e.additional ? (a(), n("div", K, [
239
+ (k = e.value) != null && k["x-additionalPropertiesName"] ? (a(), n(v, { key: 0 }, [
240
+ u(m(e.value["x-additionalPropertiesName"]), 1)
241
+ ], 64)) : (a(), n(v, { key: 1 }, [
242
+ u("additional properties")
239
243
  ], 64))
240
- ])) : n("", !0),
241
- e.pattern ? (a(), i("div", K, [
242
- v(N(E), null, {
244
+ ])) : i("", !0),
245
+ e.pattern ? (a(), n("div", Q, [
246
+ p(N(L), null, {
243
247
  default: r(() => t[14] || (t[14] = [
244
- l("pattern")
248
+ u("pattern")
245
249
  ])),
246
250
  _: 1
247
251
  })
248
- ])) : n("", !0),
249
- (k = e.value) != null && k.deprecated ? (a(), i("div", Q, [
250
- v(N(E), null, {
252
+ ])) : i("", !0),
253
+ (j = e.value) != null && j.deprecated ? (a(), n("div", U, [
254
+ p(N(L), null, {
251
255
  default: r(() => t[15] || (t[15] = [
252
- l("deprecated")
256
+ u("deprecated")
253
257
  ])),
254
258
  _: 1
255
259
  })
256
- ])) : n("", !0),
257
- N(B)(S.value) ? (a(), i("div", U, [
258
- v(f, { truncate: "" }, {
260
+ ])) : i("", !0),
261
+ N(b)($.value) ? (a(), n("div", X, [
262
+ p(y, { truncate: "" }, {
259
263
  prefix: r(() => t[16] || (t[16] = [
260
- l("const:")
264
+ u("const:")
261
265
  ])),
262
266
  default: r(() => [
263
- l(" " + m(S.value), 1)
267
+ u(" " + m($.value), 1)
264
268
  ]),
265
269
  _: 1
266
270
  })
267
- ])) : (a(), i(y, { key: 6 }, [
268
- ((V = e.value) == null ? void 0 : V.nullable) === !0 ? (a(), d(f, { key: 0 }, {
271
+ ])) : (a(), n(v, { key: 7 }, [
272
+ ((q = e.value) == null ? void 0 : q.nullable) === !0 ? (a(), o(y, { key: 0 }, {
269
273
  default: r(() => t[17] || (t[17] = [
270
- l(" nullable ")
274
+ u(" nullable ")
271
275
  ])),
272
276
  _: 1
273
- })) : n("", !0)
277
+ })) : i("", !0)
274
278
  ], 64)),
275
- (q = e.value) != null && q.writeOnly ? (a(), i("div", X, " write-only ")) : (w = e.value) != null && w.readOnly ? (a(), i("div", Y, " read-only ")) : n("", !0),
276
- e.required ? (a(), i("div", Z, " required ")) : n("", !0),
277
- e.withExamples ? (a(), d(R, {
278
- key: 10,
279
+ (w = e.value) != null && w.writeOnly ? (a(), n("div", Y, " write-only ")) : (D = e.value) != null && D.readOnly ? (a(), n("div", Z, " read-only ")) : i("", !0),
280
+ e.required ? (a(), n("div", h, " required ")) : i("", !0),
281
+ e.withExamples ? (a(), o(R, {
282
+ key: 11,
279
283
  examples: (P = e.value) == null ? void 0 : P.examples,
280
- example: ((I = e.value) == null ? void 0 : I.example) || ((A = (O = e.value) == null ? void 0 : O.items) == null ? void 0 : A.example)
281
- }, null, 8, ["examples", "example"])) : n("", !0)
284
+ example: ((V = e.value) == null ? void 0 : V.example) || ((A = (I = e.value) == null ? void 0 : I.items) == null ? void 0 : A.example)
285
+ }, null, 8, ["examples", "example"])) : i("", !0)
282
286
  ]);
283
287
  };
284
288
  }
@@ -1,5 +1,5 @@
1
- import type { OpenAPI } from '@scalar/openapi-types';
2
- type SchemaObject = OpenAPI.SchemaObject;
1
+ import type { OpenAPIV3_1 } from '@scalar/openapi-types';
2
+ type SchemaObject = OpenAPIV3_1.SchemaObject;
3
3
  /**
4
4
  * Merges multiple OpenAPI schema objects into a single schema object.
5
5
  * Handles nested allOf compositions and merges properties recursively.
@@ -1 +1 @@
1
- {"version":3,"file":"merge-all-of-schemas.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/merge-all-of-schemas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAEpD,KAAK,YAAY,GAAG,OAAO,CAAC,YAAY,CAAA;AAQxC;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,SAAI,GAAG,YAAY,CA4ClF"}
1
+ {"version":3,"file":"merge-all-of-schemas.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/merge-all-of-schemas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAExD,KAAK,YAAY,GAAG,WAAW,CAAC,YAAY,CAAA;AAQ5C;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,SAAI,GAAG,YAAY,CA4ClF"}
@@ -1,4 +1,12 @@
1
1
  import type { OpenAPIV3_1 } from '@scalar/openapi-types';
2
+ export type DiscriminatorMapping = NonNullable<OpenAPIV3_1.DiscriminatorObject['mapping']>;
3
+ export type DiscriminatorPropertyName = OpenAPIV3_1.DiscriminatorObject['propertyName'];
4
+ /** Get discriminator mapping from schema */
5
+ export declare function getDiscriminatorMapping(schema: OpenAPIV3_1.SchemaObject): DiscriminatorMapping | undefined;
2
6
  /** Get discriminator property name from schema */
3
- export declare function getDiscriminatorPropertyName(schema: OpenAPIV3_1.SchemaObject): string | undefined;
7
+ export declare function getDiscriminatorPropertyName(schema: OpenAPIV3_1.SchemaObject): DiscriminatorPropertyName | undefined;
8
+ /** Check if schema has a discriminator */
9
+ export declare function hasDiscriminator(schema: OpenAPIV3_1.SchemaObject): boolean;
10
+ /** Merge discriminator schemas */
11
+ export declare function mergeDiscriminatorSchemas(baseSchema: OpenAPIV3_1.SchemaObject, selectedType: string, schemas: Record<string, OpenAPIV3_1.SchemaObject>): OpenAPIV3_1.SchemaObject | undefined;
4
12
  //# sourceMappingURL=schema-discriminator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema-discriminator.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/schema-discriminator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAExD,kDAAkD;AAClD,wBAAgB,4BAA4B,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,GAAG,MAAM,GAAG,SAAS,CAEjG"}
1
+ {"version":3,"file":"schema-discriminator.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/schema-discriminator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAExD,MAAM,MAAM,oBAAoB,GAAG,WAAW,CAAC,WAAW,CAAC,mBAAmB,CAAC,SAAS,CAAC,CAAC,CAAA;AAE1F,MAAM,MAAM,yBAAyB,GAAG,WAAW,CAAC,mBAAmB,CAAC,cAAc,CAAC,CAAA;AAEvF,4CAA4C;AAC5C,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,GAAG,oBAAoB,GAAG,SAAS,CAM1G;AAED,kDAAkD;AAClD,wBAAgB,4BAA4B,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,GAAG,yBAAyB,GAAG,SAAS,CAEpH;AAED,0CAA0C;AAC1C,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,GAAG,OAAO,CAE1E;AAED,kCAAkC;AAClC,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,WAAW,CAAC,YAAY,EACpC,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GAChD,WAAW,CAAC,YAAY,GAAG,SAAS,CA0DtC"}
@@ -0,0 +1,45 @@
1
+ function c(r) {
2
+ var i;
3
+ if ((i = r.discriminator) != null && i.mapping)
4
+ return r.discriminator.mapping;
5
+ }
6
+ function m(r) {
7
+ var i;
8
+ return (i = r.discriminator) == null ? void 0 : i.propertyName;
9
+ }
10
+ function q(r, i, d) {
11
+ var s;
12
+ if (!((s = r.discriminator) != null && s.mapping) || !i)
13
+ return;
14
+ const u = r.discriminator.mapping[i];
15
+ if (!u)
16
+ return;
17
+ const o = u.split("/").pop();
18
+ if (!o || !d[o])
19
+ return;
20
+ const t = d[o];
21
+ if (t.allOf) {
22
+ const n = {
23
+ type: t.type,
24
+ properties: {},
25
+ required: []
26
+ }, f = {}, p = /* @__PURE__ */ new Set();
27
+ r.required && r.required.forEach((e) => p.add(e));
28
+ for (const e of t.allOf)
29
+ "properties" in e && Object.assign(f, e.properties), "required" in e && Array.isArray(e.required) && e.required.forEach((a) => p.add(a));
30
+ return n.properties = f, n.required = Array.from(p), n;
31
+ }
32
+ return {
33
+ type: t.type || r.type,
34
+ properties: {
35
+ ...r.properties || {},
36
+ ...t.properties || {}
37
+ },
38
+ required: [...r.required || [], ...t.required || []]
39
+ };
40
+ }
41
+ export {
42
+ c as getDiscriminatorMapping,
43
+ m as getDiscriminatorPropertyName,
44
+ q as mergeDiscriminatorSchemas
45
+ };
@@ -1,5 +1,5 @@
1
1
  import type { Collection, Server } from '@scalar/oas-utils/entities/spec';
2
- import type { OpenAPIV2, OpenAPIV3, OpenAPIV3_1 } from '@scalar/openapi-types';
2
+ import type { OpenAPIV3_1 } from '@scalar/openapi-types';
3
3
  import type { Spec, Tag as TagType } from '@scalar/types/legacy';
4
4
  type __VLS_Props = {
5
5
  collection: Collection;
@@ -7,7 +7,7 @@ type __VLS_Props = {
7
7
  spec: Spec;
8
8
  layout?: 'modern' | 'classic';
9
9
  server?: Server;
10
- schemas?: OpenAPIV2.DefinitionsObject | Record<string, OpenAPIV3.SchemaObject> | Record<string, OpenAPIV3_1.SchemaObject> | unknown;
10
+ schemas?: Record<string, OpenAPIV3_1.SchemaObject> | unknown;
11
11
  };
12
12
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
13
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"TagList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/TagList.vue"],"names":[],"mappings":"AAqFA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAC9E,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAahE,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,IAAI,EAAE,OAAO,EAAE,CAAA;IACf,IAAI,EAAE,IAAI,CAAA;IACV,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EACJ,SAAS,CAAC,iBAAiB,GAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,GACtC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GACxC,OAAO,CAAA;CACZ,CAAC;;AA+HF,wBAMG"}
1
+ {"version":3,"file":"TagList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/TagList.vue"],"names":[],"mappings":"AAiFA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAahE,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,IAAI,EAAE,OAAO,EAAE,CAAA;IACf,IAAI,EAAE,IAAI,CAAA;IACV,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GAAG,OAAO,CAAA;CAC7D,CAAC;;AA+HF,wBAMG"}
@@ -4,9 +4,9 @@ const w = {
4
4
  key: 0,
5
5
  class: "document-selector -mb-1 p-3 pb-0"
6
6
  }, S = {
7
- class: "group/dropdown-label hover:bg-b-2 text-c-2 py-1.75 pl-1.75 flex w-full cursor-pointer items-center rounded border pr-1.5",
7
+ class: "group/dropdown-label hover:bg-b-2 text-c-2 flex w-full cursor-pointer items-center rounded border py-1.75 pr-1.5 pl-1.75",
8
8
  tabindex: "0"
9
- }, k = { class: "text-c-1 overflow-hidden text-ellipsis text-sm font-medium" }, N = /* @__PURE__ */ b({
9
+ }, k = { class: "text-c-1 overflow-hidden text-sm font-medium text-ellipsis" }, N = /* @__PURE__ */ b({
10
10
  __name: "DocumentSelector",
11
11
  props: {
12
12
  options: {},
@@ -49,7 +49,7 @@ const w = {
49
49
  }),
50
50
  c("span", k, V(((t = s.value) == null ? void 0 : t.label) || "Select API"), 1),
51
51
  i(a(d), {
52
- class: "group-hover/dropdown-label:text-c-1 ml-auto mr-2",
52
+ class: "group-hover/dropdown-label:text-c-1 mr-2 ml-auto",
53
53
  icon: "ChevronDown",
54
54
  size: "sm",
55
55
  thickness: "2"
@@ -1,6 +1,6 @@
1
- import { defineComponent as g, useSlots as S, computed as k, createBlock as c, openBlock as r, createSlots as y, withCtx as a, createVNode as C, createElementBlock as h, createCommentVNode as i, renderSlot as d, unref as p, renderList as v, normalizeProps as w, guardReactiveProps as $ } from "vue";
2
- import { ScalarColorModeToggleIcon as B } from "@scalar/components";
3
- import D from "../ApiReferenceLayout.vue.js";
1
+ import { defineComponent as g, useSlots as S, computed as k, createBlock as c, openBlock as r, createSlots as y, withCtx as a, createVNode as C, createElementBlock as h, createCommentVNode as i, renderSlot as d, unref as p, renderList as v, normalizeProps as w, guardReactiveProps as D } from "vue";
2
+ import { ScalarColorModeToggleIcon as $ } from "@scalar/components";
3
+ import B from "../ApiReferenceLayout.vue.js";
4
4
  import H from "../ClassicHeader.vue.js";
5
5
  import M from "../../features/Search/SearchButton.vue.js";
6
6
  const K = {
@@ -10,14 +10,16 @@ const K = {
10
10
  __name: "ClassicLayout",
11
11
  props: {
12
12
  configuration: {},
13
+ dereferencedDocument: {},
14
+ originalDocument: {},
15
+ isDark: { type: Boolean },
13
16
  parsedSpec: {},
14
- rawSpec: {},
15
- isDark: { type: Boolean }
17
+ rawSpec: {}
16
18
  },
17
19
  emits: ["toggleDarkMode", "updateContent"],
18
20
  setup(u) {
19
21
  const n = u, m = S(), l = k(() => ({ ...n.configuration, showSidebar: !1 }));
20
- return (e, o) => (r(), c(D, {
22
+ return (e, o) => (r(), c(B, {
21
23
  configuration: l.value,
22
24
  parsedSpec: e.parsedSpec,
23
25
  rawSpec: e.rawSpec,
@@ -26,7 +28,7 @@ const K = {
26
28
  "content-start": a(({ spec: t }) => [
27
29
  C(H, null, {
28
30
  "dark-mode-toggle": a(() => [
29
- n.configuration.hideDarkModeToggle ? i("", !0) : (r(), c(p(B), {
31
+ n.configuration.hideDarkModeToggle ? i("", !0) : (r(), c(p($), {
30
32
  key: 0,
31
33
  class: "text-c-2 hover:text-c-1",
32
34
  mode: e.isDark ? "dark" : "light",
@@ -54,7 +56,7 @@ const K = {
54
56
  v(m, (t, s) => ({
55
57
  name: s,
56
58
  fn: a((f) => [
57
- d(e.$slots, s, w($(f || {})))
59
+ d(e.$slots, s, w(D(f || {})))
58
60
  ])
59
61
  }))
60
62
  ]), 1032, ["configuration", "parsedSpec", "rawSpec"]));