@scalar/api-reference 1.30.0 → 1.31.1

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 (167) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/dist/browser/standalone.js +6690 -6569
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  5. package/dist/components/ApiReferenceLayout.vue.js +1 -1
  6. package/dist/components/ApiReferenceLayout.vue2.js +164 -181
  7. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
  8. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +2 -2
  9. package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +56 -51
  10. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  11. package/dist/components/Content/Content.vue.js +1 -1
  12. package/dist/components/Content/Content.vue2.js +5 -5
  13. package/dist/components/Content/Introduction/Introduction.vue.d.ts +2 -2
  14. package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
  15. package/dist/components/Content/Introduction/Introduction.vue.js +2 -2
  16. package/dist/components/Content/Introduction/Introduction.vue2.js +57 -63
  17. package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
  18. package/dist/components/Content/Lazy/Loading.vue.js +46 -46
  19. package/dist/components/Content/Models/Models.vue.d.ts +2 -2
  20. package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
  21. package/dist/components/Content/Models/Models.vue.js +2 -2
  22. package/dist/components/Content/Models/Models.vue2.js +9 -7
  23. package/dist/components/Content/Models/ModelsAccordion.vue.d.ts +2 -2
  24. package/dist/components/Content/Models/ModelsAccordion.vue.d.ts.map +1 -1
  25. package/dist/components/Content/Models/ModelsAccordion.vue.js +2 -2
  26. package/dist/components/Content/Schema/Schema.preview.d.ts +294 -84
  27. package/dist/components/Content/Schema/Schema.preview.d.ts.map +1 -1
  28. package/dist/components/Content/Schema/Schema.vue.d.ts +21 -4
  29. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  30. package/dist/components/Content/Schema/Schema.vue.js +2 -2
  31. package/dist/components/Content/Schema/Schema.vue2.js +158 -131
  32. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts +2 -2
  33. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
  34. package/dist/components/Content/Schema/SchemaComposition.vue.js +57 -53
  35. package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts +2 -3
  36. package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts.map +1 -1
  37. package/dist/components/Content/Schema/SchemaDiscriminator.vue.js +29 -29
  38. package/dist/components/Content/Schema/SchemaHeading.vue.d.ts +2 -2
  39. package/dist/components/Content/Schema/SchemaHeading.vue.d.ts.map +1 -1
  40. package/dist/components/Content/Schema/SchemaHeading.vue.js +1 -1
  41. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +12 -3
  42. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  43. package/dist/components/Content/Schema/SchemaProperty.vue.js +1 -1
  44. package/dist/components/Content/Schema/SchemaProperty.vue2.js +133 -103
  45. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts +3 -2
  46. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  47. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +2 -2
  48. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +133 -126
  49. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts +2 -2
  50. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts.map +1 -1
  51. package/dist/components/Content/Tag/TagList.vue.d.ts +2 -2
  52. package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
  53. package/dist/components/DocumentSelector/DocumentSelector.vue.js +3 -3
  54. package/dist/components/Layouts/ClassicLayout.vue.d.ts.map +1 -1
  55. package/dist/components/Layouts/ClassicLayout.vue.js +19 -17
  56. package/dist/components/Layouts/Layouts.vue.js +11 -9
  57. package/dist/components/Layouts/ModernLayout.vue2.js +22 -20
  58. package/dist/components/Section/SectionAccordion.vue.d.ts.map +1 -1
  59. package/dist/components/Section/SectionAccordion.vue.js +2 -2
  60. package/dist/components/Section/SectionAccordion.vue2.js +1 -1
  61. package/dist/components/Section/SectionContainerAccordion.vue.d.ts.map +1 -1
  62. package/dist/components/Section/SectionContainerAccordion.vue.js +2 -2
  63. package/dist/components/Section/SectionContainerAccordion.vue2.js +4 -4
  64. package/dist/components/Section/SectionHeader.vue.d.ts.map +1 -1
  65. package/dist/components/Section/SectionHeader.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 +196 -196
  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/ExampleRequest/ExampleRequest.vue.d.ts +2 -0
  95. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
  96. package/dist/features/ExampleRequest/ExampleRequest.vue.js +2 -2
  97. package/dist/features/ExampleRequest/ExampleRequest.vue2.js +178 -127
  98. package/dist/features/Operation/Operation.vue.d.ts +2 -2
  99. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  100. package/dist/features/Operation/Operation.vue.js +29 -23
  101. package/dist/features/Operation/components/OperationParameters.vue.d.ts +7 -3
  102. package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
  103. package/dist/features/Operation/components/OperationParameters.vue.js +28 -24
  104. package/dist/features/Operation/components/OperationResponses.vue.d.ts +2 -2
  105. package/dist/features/Operation/components/OperationResponses.vue.d.ts.map +1 -1
  106. package/dist/features/Operation/components/ParameterHeaders.vue.d.ts +2 -2
  107. package/dist/features/Operation/components/ParameterHeaders.vue.d.ts.map +1 -1
  108. package/dist/features/Operation/components/ParameterHeaders.vue.js +2 -2
  109. package/dist/features/Operation/components/ParameterList.vue.d.ts +2 -2
  110. package/dist/features/Operation/components/ParameterList.vue.d.ts.map +1 -1
  111. package/dist/features/Operation/components/ParameterList.vue.js +2 -2
  112. package/dist/features/Operation/components/ParameterListItem.vue.d.ts +2 -2
  113. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
  114. package/dist/features/Operation/components/ParameterListItem.vue.js +3 -3
  115. package/dist/features/Operation/components/ParameterListItem.vue2.js +6 -6
  116. package/dist/features/Operation/components/RequestBody.vue.d.ts +7 -3
  117. package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
  118. package/dist/features/Operation/components/RequestBody.vue.js +2 -2
  119. package/dist/features/Operation/components/RequestBody.vue2.js +41 -36
  120. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +7 -3
  121. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  122. package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
  123. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +84 -79
  124. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +5 -1
  125. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  126. package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
  127. package/dist/features/Operation/layouts/ModernLayout.vue2.js +66 -57
  128. package/dist/features/Operation/types/schemas.d.ts +2 -2
  129. package/dist/features/Operation/types/schemas.d.ts.map +1 -1
  130. package/dist/features/Search/SearchButton.vue.js +2 -2
  131. package/dist/helpers/local-storage.d.ts +8 -0
  132. package/dist/helpers/local-storage.d.ts.map +1 -0
  133. package/dist/helpers/local-storage.js +6 -0
  134. package/dist/helpers/measure.d.ts +21 -0
  135. package/dist/helpers/measure.d.ts.map +1 -0
  136. package/dist/helpers/measure.js +7 -0
  137. package/dist/helpers/parse.d.ts +3 -5
  138. package/dist/helpers/parse.d.ts.map +1 -1
  139. package/dist/helpers/parse.js +64 -86
  140. package/dist/helpers/scroll-to-id.d.ts.map +1 -1
  141. package/dist/helpers/scroll-to-id.js +18 -4
  142. package/dist/hooks/useDiscriminator.d.ts +53 -0
  143. package/dist/hooks/useDiscriminator.d.ts.map +1 -0
  144. package/dist/hooks/useDiscriminator.js +149 -0
  145. package/dist/hooks/useOperationDiscriminator.d.ts +8 -0
  146. package/dist/hooks/useOperationDiscriminator.d.ts.map +1 -0
  147. package/dist/hooks/useOperationDiscriminator.js +57 -0
  148. package/dist/index.d.ts +0 -1
  149. package/dist/index.d.ts.map +1 -1
  150. package/dist/index.js +33 -35
  151. package/dist/libs/openapi.d.ts +3 -3
  152. package/dist/libs/openapi.d.ts.map +1 -1
  153. package/dist/libs/openapi.js +35 -42
  154. package/dist/standalone/lib/html-api.d.ts.map +1 -1
  155. package/dist/standalone/lib/html-api.js +15 -15
  156. package/dist/stores/useHttpClientStore.d.ts.map +1 -1
  157. package/dist/stores/useHttpClientStore.js +19 -18
  158. package/dist/style.css +1 -1
  159. package/dist/types.d.ts +27 -3
  160. package/dist/types.d.ts.map +1 -1
  161. package/package.json +15 -16
  162. package/dist/components/Content/Schema/helpers/schema-discriminator.d.ts +0 -12
  163. package/dist/components/Content/Schema/helpers/schema-discriminator.d.ts.map +0 -1
  164. package/dist/components/Content/Schema/helpers/schema-discriminator.js +0 -45
  165. package/dist/hooks/useReactiveSpec.d.ts +0 -448
  166. package/dist/hooks/useReactiveSpec.d.ts.map +0 -1
  167. package/dist/hooks/useReactiveSpec.js +0 -59
@@ -1,36 +1,35 @@
1
- import { defineComponent as H, computed as b, createElementBlock as n, openBlock as r, createCommentVNode as i, createBlock as d, normalizeClass as J, renderSlot as E, Fragment as y, createTextVNode as l, withCtx as a, createVNode as v, toDisplayString as m, unref as N } from "vue";
1
+ import { defineComponent as z, computed as N, createElementBlock as n, openBlock as u, createCommentVNode as i, createBlock as o, normalizeClass as H, renderSlot as L, Fragment as k, createTextVNode as l, withCtx as r, createVNode as p, toDisplayString as m, unref as b } from "vue";
2
2
  import { isDefined as B } from "@scalar/oas-utils/helpers";
3
- import { stringify as g } from "flatted";
4
- import { compositions as R } from "./helpers/schema-composition.js";
5
- import W from "./SchemaPropertyExamples.vue.js";
6
- import j from "../../ScreenReader.vue.js";
7
- import s from "./SchemaPropertyDetail.vue.js";
8
- import L from "../../Badge/Badge.vue.js";
9
- const G = { class: "property-heading" }, K = {
3
+ import J from "./SchemaPropertyExamples.vue.js";
4
+ import M from "../../ScreenReader.vue.js";
5
+ import { getDiscriminatorSchemaName as R } from "../../../hooks/useDiscriminator.js";
6
+ import y from "./SchemaPropertyDetail.vue.js";
7
+ import O from "../../Badge/Badge.vue.js";
8
+ const W = { class: "property-heading" }, G = {
10
9
  key: 1,
11
10
  class: "property-discriminator"
12
- }, Q = {
11
+ }, K = {
13
12
  key: 3,
14
13
  class: "property-additional"
15
- }, U = {
14
+ }, Q = {
16
15
  key: 4,
17
16
  class: "property-pattern"
18
- }, X = {
17
+ }, U = {
19
18
  key: 5,
20
19
  class: "property-deprecated"
21
- }, Y = {
20
+ }, X = {
22
21
  key: 6,
23
22
  class: "property-const"
24
- }, Z = {
23
+ }, Y = {
25
24
  key: 8,
26
25
  class: "property-write-only"
27
- }, h = {
26
+ }, Z = {
28
27
  key: 9,
29
28
  class: "property-read-only"
30
- }, x = {
29
+ }, h = {
31
30
  key: 10,
32
31
  class: "property-required"
33
- }, ie = /* @__PURE__ */ H({
32
+ }, ue = /* @__PURE__ */ z({
34
33
  __name: "SchemaPropertyHeading",
35
34
  props: {
36
35
  value: {},
@@ -39,123 +38,131 @@ const G = { class: "property-heading" }, K = {
39
38
  additional: { type: Boolean },
40
39
  pattern: { type: Boolean },
41
40
  withExamples: { type: Boolean, default: !0 },
41
+ hideModelNames: { type: Boolean, default: !1 },
42
42
  schemas: {}
43
43
  },
44
- setup(u) {
45
- R.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);
46
- const T = (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(a) {
45
+ const T = (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, S = (e) => {
46
+ var t, s;
47
47
  if (!e)
48
48
  return null;
49
49
  if (e.title)
50
50
  return e.title;
51
51
  if (e.name)
52
52
  return e.name;
53
- if (u.schemas && typeof u.schemas == "object") {
54
- for (const [t, o] of Object.entries(u.schemas))
55
- if (g(o) === g(e))
56
- return t;
57
- if (e.type === "object" && e.properties) {
58
- for (const [t, o] of Object.entries(u.schemas))
59
- if (g(o.properties) === g(e.properties))
60
- return t;
61
- }
53
+ if (a.schemas && typeof a.schemas == "object") {
54
+ for (const [d, f] of Object.entries(a.schemas))
55
+ if (f.type === e.type && (e.type === "array" && ((t = f.items) == null ? void 0 : t.type) === ((s = e.items) == null ? void 0 : s.type) || e.type === "object" && f.properties && e.properties || e.type !== "array" && e.type !== "object"))
56
+ return d;
62
57
  }
63
58
  return null;
64
- }, S = b(() => {
65
- var e, t, o, f, p, k;
66
- if (B((e = u.value) == null ? void 0 : e.const))
67
- return (t = u.value) == null ? void 0 : t.const;
68
- if (((f = (o = u.value) == null ? void 0 : o.enum) == null ? void 0 : f.length) === 1)
69
- return u.value.enum[0];
70
- if ((p = u.value) != null && p.items) {
71
- if (B(u.value.items.const))
72
- return u.value.items.const;
73
- if (((k = u.value.items.enum) == null ? void 0 : k.length) === 1)
74
- return u.value.items.enum[0];
59
+ }, $ = N(() => {
60
+ var e, t, s, d, f, v;
61
+ if (B((e = a.value) == null ? void 0 : e.const))
62
+ return (t = a.value) == null ? void 0 : t.const;
63
+ if (((d = (s = a.value) == null ? void 0 : s.enum) == null ? void 0 : d.length) === 1)
64
+ return a.value.enum[0];
65
+ if ((f = a.value) != null && f.items) {
66
+ if (B(a.value.items.const))
67
+ return a.value.items.const;
68
+ if (((v = a.value.items.enum) == null ? void 0 : v.length) === 1)
69
+ return a.value.items.enum[0];
75
70
  }
76
71
  return null;
77
- }), F = b(() => {
78
- var e, t, o, f;
79
- 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 : ((f = u.value) == null ? void 0 : f.type) ?? "";
80
- }), z = (e, t) => e === "array" ? `${e} ${t}[]` : `${e} ${t}`, $ = b(() => {
81
- var t, o;
82
- if (!((t = u.value) != null && t.type))
72
+ }), F = N(() => {
73
+ var e, t, s, d;
74
+ return Array.isArray((e = a.value) == null ? void 0 : e.type) ? a.value.type.join(" | ") : (t = a.value) != null && t.title ? a.value.title : (s = a.value) != null && s.name ? a.value.name : ((d = a.value) == null ? void 0 : d.type) ?? "";
75
+ }), g = (e, t) => e === "array" ? `${e} ${t}[]` : `${e} ${t}`, D = N(() => {
76
+ var t, s, d;
77
+ if (!((t = a.value) != null && t.type))
83
78
  return null;
84
- if (u.value.type === "array" && ((o = u.value.items) != null && o.type)) {
85
- const f = M(u.value.items) || u.value.items.type;
86
- return z(u.value.type, f);
79
+ if (a.hideModelNames)
80
+ return a.value.type === "array" && ((s = a.value.items) != null && s.type) ? `array ${a.value.items.type}[]` : null;
81
+ const e = S(a.value);
82
+ if (e)
83
+ return a.value.type === "array" ? `array ${e}[]` : e;
84
+ if (a.value.type === "array" && ((d = a.value.items) != null && d.type)) {
85
+ const f = R(a.value.items, a.schemas);
86
+ if (f)
87
+ return g(a.value.type, f);
88
+ if (a.value.items.title || a.value.items.name)
89
+ return g(
90
+ a.value.type,
91
+ a.value.items.title || a.value.items.name
92
+ );
93
+ const v = S(a.value.items) || a.value.items.type || "object";
94
+ return g(a.value.type, v);
87
95
  }
88
- const e = M(u.value);
89
- return e || null;
96
+ return null;
90
97
  });
91
98
  return (e, t) => {
92
- var o, f, p, k, V, q, w, D, P, I, O, A;
93
- return r(), n("div", G, [
94
- e.$slots.name ? (r(), n("div", {
99
+ var s, d, f, v, j, q, w, P, V, I, A, C;
100
+ return u(), n("div", W, [
101
+ e.$slots.name ? (u(), n("div", {
95
102
  key: 0,
96
- class: J(["property-name", { deprecated: (o = e.value) == null ? void 0 : o.deprecated }])
103
+ class: H(["property-name", { deprecated: (s = e.value) == null ? void 0 : s.deprecated }])
97
104
  }, [
98
- e.pattern ? (r(), n(y, { key: 1 }, [
105
+ e.pattern ? (u(), n(k, { key: 1 }, [
99
106
  t[0] || (t[0] = l("/")),
100
- E(e.$slots, "name", {}, void 0, !0),
107
+ L(e.$slots, "name", {}, void 0, !0),
101
108
  t[1] || (t[1] = l("/"))
102
- ], 64)) : E(e.$slots, "name", { key: 0 }, void 0, !0)
109
+ ], 64)) : L(e.$slots, "name", { key: 0 }, void 0, !0)
103
110
  ], 2)) : i("", !0),
104
- (f = e.value) != null && f.isDiscriminator ? (r(), n("div", K, " Discriminator ")) : i("", !0),
105
- e.value ? (r(), n(y, { key: 2 }, [
106
- (p = e.value) != null && p.type ? (r(), d(s, { key: 0 }, {
107
- default: a(() => {
108
- var C;
111
+ (d = e.value) != null && d.isDiscriminator ? (u(), n("div", G, " Discriminator ")) : i("", !0),
112
+ e.value ? (u(), n(k, { key: 2 }, [
113
+ (f = e.value) != null && f.type ? (u(), o(y, { key: 0 }, {
114
+ default: r(() => {
115
+ var E;
109
116
  return [
110
- v(j, null, {
111
- default: a(() => t[2] || (t[2] = [
117
+ p(M, null, {
118
+ default: r(() => t[2] || (t[2] = [
112
119
  l("Type:")
113
120
  ])),
114
121
  _: 1
115
122
  }),
116
- $.value ? (r(), n(y, { key: 0 }, [
117
- l(m($.value), 1)
118
- ], 64)) : (r(), n(y, { key: 1 }, [
119
- l(m(F.value) + " " + m((C = e.value) != null && C.nullable ? " | nullable" : ""), 1)
123
+ D.value ? (u(), n(k, { key: 0 }, [
124
+ l(m(D.value), 1)
125
+ ], 64)) : (u(), n(k, { key: 1 }, [
126
+ l(m(F.value) + " " + m((E = e.value) != null && E.nullable ? " | nullable" : ""), 1)
120
127
  ], 64))
121
128
  ];
122
129
  }),
123
130
  _: 1
124
131
  })) : i("", !0),
125
- e.value.minItems || e.value.maxItems ? (r(), d(s, { key: 1 }, {
126
- default: a(() => [
132
+ e.value.minItems || e.value.maxItems ? (u(), o(y, { key: 1 }, {
133
+ default: r(() => [
127
134
  l(m(e.value.minItems) + "…" + m(e.value.maxItems), 1)
128
135
  ]),
129
136
  _: 1
130
137
  })) : i("", !0),
131
- e.value.minLength ? (r(), d(s, { key: 2 }, {
132
- prefix: a(() => t[3] || (t[3] = [
138
+ e.value.minLength ? (u(), o(y, { key: 2 }, {
139
+ prefix: r(() => t[3] || (t[3] = [
133
140
  l("min:")
134
141
  ])),
135
- default: a(() => [
142
+ default: r(() => [
136
143
  l(" " + m(e.value.minLength), 1)
137
144
  ]),
138
145
  _: 1
139
146
  })) : i("", !0),
140
- e.value.maxLength ? (r(), d(s, { key: 3 }, {
141
- prefix: a(() => t[4] || (t[4] = [
147
+ e.value.maxLength ? (u(), o(y, { key: 3 }, {
148
+ prefix: r(() => t[4] || (t[4] = [
142
149
  l("max:")
143
150
  ])),
144
- default: a(() => [
151
+ default: r(() => [
145
152
  l(" " + m(e.value.maxLength), 1)
146
153
  ]),
147
154
  _: 1
148
155
  })) : i("", !0),
149
- e.value.uniqueItems ? (r(), d(s, { key: 4 }, {
150
- default: a(() => t[5] || (t[5] = [
156
+ e.value.uniqueItems ? (u(), o(y, { key: 4 }, {
157
+ default: r(() => t[5] || (t[5] = [
151
158
  l(" unique! ")
152
159
  ])),
153
160
  _: 1
154
161
  })) : i("", !0),
155
- e.value.format ? (r(), d(s, { key: 5 }, {
156
- default: a(() => [
157
- v(j, null, {
158
- default: a(() => t[6] || (t[6] = [
162
+ e.value.format ? (u(), o(y, { key: 5 }, {
163
+ default: r(() => [
164
+ p(M, null, {
165
+ default: r(() => t[6] || (t[6] = [
159
166
  l("Format:")
160
167
  ])),
161
168
  _: 1
@@ -164,50 +171,50 @@ const G = { class: "property-heading" }, K = {
164
171
  ]),
165
172
  _: 1
166
173
  })) : i("", !0),
167
- e.value.minimum !== void 0 && e.value.exclusiveMinimum ? (r(), d(s, { key: 6 }, {
168
- prefix: a(() => t[7] || (t[7] = [
174
+ e.value.minimum !== void 0 && e.value.exclusiveMinimum ? (u(), o(y, { key: 6 }, {
175
+ prefix: r(() => t[7] || (t[7] = [
169
176
  l("greater than:")
170
177
  ])),
171
- default: a(() => [
178
+ default: r(() => [
172
179
  l(" " + m(e.value.minimum), 1)
173
180
  ]),
174
181
  _: 1
175
182
  })) : i("", !0),
176
- e.value.minimum !== void 0 && !e.value.exclusiveMinimum ? (r(), d(s, { key: 7 }, {
177
- prefix: a(() => t[8] || (t[8] = [
183
+ e.value.minimum !== void 0 && !e.value.exclusiveMinimum ? (u(), o(y, { key: 7 }, {
184
+ prefix: r(() => t[8] || (t[8] = [
178
185
  l("min:")
179
186
  ])),
180
- default: a(() => [
187
+ default: r(() => [
181
188
  l(" " + m(e.value.minimum), 1)
182
189
  ]),
183
190
  _: 1
184
191
  })) : i("", !0),
185
- e.value.maximum !== void 0 && e.value.exclusiveMaximum ? (r(), d(s, { key: 8 }, {
186
- prefix: a(() => t[9] || (t[9] = [
192
+ e.value.maximum !== void 0 && e.value.exclusiveMaximum ? (u(), o(y, { key: 8 }, {
193
+ prefix: r(() => t[9] || (t[9] = [
187
194
  l("less than:")
188
195
  ])),
189
- default: a(() => [
196
+ default: r(() => [
190
197
  l(" " + m(e.value.maximum), 1)
191
198
  ]),
192
199
  _: 1
193
200
  })) : i("", !0),
194
- e.value.maximum !== void 0 && !e.value.exclusiveMaximum ? (r(), d(s, { key: 9 }, {
195
- prefix: a(() => t[10] || (t[10] = [
201
+ e.value.maximum !== void 0 && !e.value.exclusiveMaximum ? (u(), o(y, { key: 9 }, {
202
+ prefix: r(() => t[10] || (t[10] = [
196
203
  l("max:")
197
204
  ])),
198
- default: a(() => [
205
+ default: r(() => [
199
206
  l(" " + m(e.value.maximum), 1)
200
207
  ]),
201
208
  _: 1
202
209
  })) : i("", !0),
203
- e.value.pattern ? (r(), d(s, {
210
+ e.value.pattern ? (u(), o(y, {
204
211
  key: 10,
205
212
  code: "",
206
213
  truncate: ""
207
214
  }, {
208
- default: a(() => [
209
- v(j, null, {
210
- default: a(() => t[11] || (t[11] = [
215
+ default: r(() => [
216
+ p(M, null, {
217
+ default: r(() => t[11] || (t[11] = [
211
218
  l("Pattern:")
212
219
  ])),
213
220
  _: 1
@@ -216,77 +223,77 @@ const G = { class: "property-heading" }, K = {
216
223
  ]),
217
224
  _: 1
218
225
  })) : i("", !0),
219
- e.$props.enum ? (r(), d(s, { key: 11 }, {
220
- default: a(() => t[12] || (t[12] = [
226
+ e.$props.enum ? (u(), o(y, { key: 11 }, {
227
+ default: r(() => t[12] || (t[12] = [
221
228
  l("enum")
222
229
  ])),
223
230
  _: 1
224
231
  })) : i("", !0),
225
- e.value.default !== void 0 ? (r(), d(s, {
232
+ e.value.default !== void 0 ? (u(), o(y, {
226
233
  key: 12,
227
234
  truncate: ""
228
235
  }, {
229
- prefix: a(() => t[13] || (t[13] = [
236
+ prefix: r(() => t[13] || (t[13] = [
230
237
  l("default:")
231
238
  ])),
232
- default: a(() => [
239
+ default: r(() => [
233
240
  l(" " + m(T(e.value)), 1)
234
241
  ]),
235
242
  _: 1
236
243
  })) : i("", !0)
237
244
  ], 64)) : i("", !0),
238
- e.additional ? (r(), n("div", Q, [
239
- (k = e.value) != null && k["x-additionalPropertiesName"] ? (r(), n(y, { key: 0 }, [
245
+ e.additional ? (u(), n("div", K, [
246
+ (v = e.value) != null && v["x-additionalPropertiesName"] ? (u(), n(k, { key: 0 }, [
240
247
  l(m(e.value["x-additionalPropertiesName"]), 1)
241
- ], 64)) : (r(), n(y, { key: 1 }, [
248
+ ], 64)) : (u(), n(k, { key: 1 }, [
242
249
  l("additional properties")
243
250
  ], 64))
244
251
  ])) : i("", !0),
245
- e.pattern ? (r(), n("div", U, [
246
- v(N(L), null, {
247
- default: a(() => t[14] || (t[14] = [
252
+ e.pattern ? (u(), n("div", Q, [
253
+ p(b(O), null, {
254
+ default: r(() => t[14] || (t[14] = [
248
255
  l("pattern")
249
256
  ])),
250
257
  _: 1
251
258
  })
252
259
  ])) : i("", !0),
253
- (V = e.value) != null && V.deprecated ? (r(), n("div", X, [
254
- v(N(L), null, {
255
- default: a(() => t[15] || (t[15] = [
260
+ (j = e.value) != null && j.deprecated ? (u(), n("div", U, [
261
+ p(b(O), null, {
262
+ default: r(() => t[15] || (t[15] = [
256
263
  l("deprecated")
257
264
  ])),
258
265
  _: 1
259
266
  })
260
267
  ])) : i("", !0),
261
- N(B)(S.value) ? (r(), n("div", Y, [
262
- v(s, { truncate: "" }, {
263
- prefix: a(() => t[16] || (t[16] = [
268
+ b(B)($.value) ? (u(), n("div", X, [
269
+ p(y, { truncate: "" }, {
270
+ prefix: r(() => t[16] || (t[16] = [
264
271
  l("const:")
265
272
  ])),
266
- default: a(() => [
267
- l(" " + m(S.value), 1)
273
+ default: r(() => [
274
+ l(" " + m($.value), 1)
268
275
  ]),
269
276
  _: 1
270
277
  })
271
- ])) : (r(), n(y, { key: 7 }, [
272
- ((q = e.value) == null ? void 0 : q.nullable) === !0 ? (r(), d(s, { key: 0 }, {
273
- default: a(() => t[17] || (t[17] = [
278
+ ])) : (u(), n(k, { key: 7 }, [
279
+ ((q = e.value) == null ? void 0 : q.nullable) === !0 ? (u(), o(y, { key: 0 }, {
280
+ default: r(() => t[17] || (t[17] = [
274
281
  l(" nullable ")
275
282
  ])),
276
283
  _: 1
277
284
  })) : i("", !0)
278
285
  ], 64)),
279
- (w = e.value) != null && w.writeOnly ? (r(), n("div", Z, " write-only ")) : (D = e.value) != null && D.readOnly ? (r(), n("div", h, " read-only ")) : i("", !0),
280
- e.required ? (r(), n("div", x, " required ")) : i("", !0),
281
- e.withExamples ? (r(), d(W, {
286
+ (w = e.value) != null && w.writeOnly ? (u(), n("div", Y, " write-only ")) : (P = e.value) != null && P.readOnly ? (u(), n("div", Z, " read-only ")) : i("", !0),
287
+ e.required ? (u(), n("div", h, " required ")) : i("", !0),
288
+ e.withExamples ? (u(), o(J, {
282
289
  key: 11,
283
- examples: (P = e.value) == null ? void 0 : P.examples,
284
- example: ((I = e.value) == null ? void 0 : I.example) || ((A = (O = e.value) == null ? void 0 : O.items) == null ? void 0 : A.example)
290
+ examples: (V = e.value) == null ? void 0 : V.examples,
291
+ example: ((I = e.value) == null ? void 0 : I.example) || ((C = (A = e.value) == null ? void 0 : A.items) == null ? void 0 : C.example)
285
292
  }, null, 8, ["examples", "example"])) : i("", !0)
286
293
  ]);
287
294
  };
288
295
  }
289
296
  });
290
297
  export {
291
- ie as default
298
+ ue as default
292
299
  };
@@ -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,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 +1 @@
1
- {"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Layouts/ClassicLayout.vue"],"names":[],"mappings":"AAwEA,OAAO,KAAK,EACV,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,SAAS,CAAA;AAwBhB,iBAAS,cAAc;WAwHT,OAAO,IAA6B;;;;EAKjD;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;kFAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Layouts/ClassicLayout.vue"],"names":[],"mappings":"AAwEA,OAAO,KAAK,EACV,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,SAAS,CAAA;AAwBhB,iBAAS,cAAc;WAyHT,OAAO,IAA6B;;;;EAKjD;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;kFAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,32 +1,34 @@
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 n, createVNode as h, createElementBlock as C, 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 = {
7
7
  key: 0,
8
- class: "w-64"
8
+ class: "w-64 empty:hidden"
9
9
  }, T = /* @__PURE__ */ g({
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
- const n = u, m = S(), l = k(() => ({ ...n.configuration, showSidebar: !1 }));
20
- return (e, o) => (r(), c(D, {
21
+ const a = u, m = S(), l = k(() => ({ ...a.configuration, showSidebar: !1 }));
22
+ return (e, o) => (r(), c(B, {
21
23
  configuration: l.value,
22
24
  parsedSpec: e.parsedSpec,
23
25
  rawSpec: e.rawSpec,
24
26
  onUpdateContent: o[1] || (o[1] = (t) => e.$emit("updateContent", t))
25
27
  }, y({
26
- "content-start": a(({ spec: t }) => [
27
- C(H, null, {
28
- "dark-mode-toggle": a(() => [
29
- n.configuration.hideDarkModeToggle ? i("", !0) : (r(), c(p(B), {
28
+ "content-start": n(({ spec: t }) => [
29
+ h(H, null, {
30
+ "dark-mode-toggle": n(() => [
31
+ a.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",
@@ -35,11 +37,11 @@ const K = {
35
37
  onClick: o[0] || (o[0] = (s) => e.$emit("toggleDarkMode"))
36
38
  }, null, 8, ["mode"]))
37
39
  ]),
38
- default: a(() => [
39
- e.$slots["document-selector"] ? (r(), h("div", K, [
40
+ default: n(() => [
41
+ e.$slots["document-selector"] ? (r(), C("div", K, [
40
42
  d(e.$slots, "document-selector")
41
43
  ])) : i("", !0),
42
- n.configuration.hideSearch ? i("", !0) : (r(), c(p(M), {
44
+ a.configuration.hideSearch ? i("", !0) : (r(), c(p(M), {
43
45
  key: 1,
44
46
  class: "t-doc__sidebar",
45
47
  searchHotKey: l.value.searchHotKey,
@@ -53,8 +55,8 @@ const K = {
53
55
  }, [
54
56
  v(m, (t, s) => ({
55
57
  name: s,
56
- fn: a((f) => [
57
- d(e.$slots, s, w($(f || {})))
58
+ fn: n((f) => [
59
+ d(e.$slots, s, w(D(f || {})))
58
60
  ])
59
61
  }))
60
62
  ]), 1032, ["configuration", "parsedSpec", "rawSpec"]));
@@ -1,28 +1,30 @@
1
- import { defineComponent as l, useSlots as d, createBlock as u, openBlock as f, resolveDynamicComponent as g, mergeProps as c, createSlots as k, renderList as y, withCtx as C, renderSlot as D, normalizeProps as S, guardReactiveProps as $ } from "vue";
1
+ import { defineComponent as l, useSlots as d, createBlock as u, openBlock as c, resolveDynamicComponent as f, mergeProps as g, createSlots as D, renderList as k, withCtx as y, renderSlot as C, normalizeProps as S, guardReactiveProps as $ } from "vue";
2
2
  import M from "./ClassicLayout.vue.js";
3
3
  import n from "./ModernLayout.vue.js";
4
4
  const P = /* @__PURE__ */ l({
5
5
  __name: "Layouts",
6
6
  props: {
7
7
  configuration: {},
8
+ dereferencedDocument: {},
9
+ originalDocument: {},
10
+ isDark: { type: Boolean },
8
11
  parsedSpec: {},
9
- rawSpec: {},
10
- isDark: { type: Boolean }
12
+ rawSpec: {}
11
13
  },
12
14
  emits: ["toggleDarkMode", "updateContent"],
13
15
  setup(s) {
14
- const a = s, p = d(), i = {
16
+ const a = s, i = d(), p = {
15
17
  modern: n,
16
18
  classic: M
17
19
  };
18
- return (o, e) => (f(), u(g(i[o.configuration.layout ?? "modern"] ?? n), c(a, {
20
+ return (o, e) => (c(), u(f(p[o.configuration.layout ?? "modern"] ?? n), g(a, {
19
21
  onToggleDarkMode: e[0] || (e[0] = (t) => o.$emit("toggleDarkMode")),
20
22
  onUpdateContent: e[1] || (e[1] = (t) => o.$emit("updateContent", t))
21
- }), k({ _: 2 }, [
22
- y(p, (t, r) => ({
23
+ }), D({ _: 2 }, [
24
+ k(i, (t, r) => ({
23
25
  name: r,
24
- fn: C((m) => [
25
- D(o.$slots, r, S($(m || {})))
26
+ fn: y((m) => [
27
+ C(o.$slots, r, S($(m || {})))
26
28
  ])
27
29
  }))
28
30
  ]), 1040));