@scalar/api-reference 1.30.0 → 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 (141) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/dist/browser/standalone.js +6352 -6334
  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 +7 -6
  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 +98 -56
  27. package/dist/components/Content/Schema/Schema.preview.d.ts.map +1 -1
  28. package/dist/components/Content/Schema/Schema.vue.d.ts +6 -3
  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 +127 -118
  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.js +1 -1
  36. package/dist/components/Content/Schema/SchemaHeading.vue.d.ts +2 -2
  37. package/dist/components/Content/Schema/SchemaHeading.vue.d.ts.map +1 -1
  38. package/dist/components/Content/Schema/SchemaHeading.vue.js +1 -1
  39. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +4 -2
  40. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  41. package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
  42. package/dist/components/Content/Schema/SchemaProperty.vue2.js +40 -38
  43. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts +3 -2
  44. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  45. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +2 -2
  46. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +152 -152
  47. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts +2 -2
  48. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts.map +1 -1
  49. package/dist/components/Content/Tag/TagList.vue.d.ts +2 -2
  50. package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
  51. package/dist/components/DocumentSelector/DocumentSelector.vue.js +3 -3
  52. package/dist/components/Layouts/ClassicLayout.vue.js +10 -8
  53. package/dist/components/Layouts/Layouts.vue.js +11 -9
  54. package/dist/components/Layouts/ModernLayout.vue2.js +22 -20
  55. package/dist/components/Section/SectionHeader.vue.d.ts.map +1 -1
  56. package/dist/components/Section/SectionHeader.vue.js +2 -2
  57. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  58. package/dist/components/Sidebar/Sidebar.vue.js +2 -2
  59. package/dist/components/Sidebar/Sidebar.vue2.js +56 -56
  60. package/dist/components/SingleApiReference.vue.d.ts.map +1 -1
  61. package/dist/components/SingleApiReference.vue.js +27 -33
  62. package/dist/esm.d.ts.map +1 -1
  63. package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts +2 -2
  64. package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -1
  65. package/dist/features/ApiClientModal/ApiClientModal.vue.js +49 -50
  66. package/dist/features/ApiClientModal/useApiClient.d.ts +196 -196
  67. package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
  68. package/dist/features/DocumentSource/hooks/useDocumentFetcher.d.ts +11 -0
  69. package/dist/features/DocumentSource/hooks/useDocumentFetcher.d.ts.map +1 -0
  70. package/dist/features/DocumentSource/hooks/useDocumentFetcher.js +38 -0
  71. package/dist/features/DocumentSource/hooks/useDocumentSource.d.ts +21 -0
  72. package/dist/features/DocumentSource/hooks/useDocumentSource.d.ts.map +1 -0
  73. package/dist/features/DocumentSource/hooks/useDocumentSource.js +94 -0
  74. package/dist/features/DocumentSource/index.d.ts +2 -0
  75. package/dist/features/DocumentSource/index.d.ts.map +1 -0
  76. package/dist/features/DownloadLink/DownloadLink.vue.d.ts +1 -1
  77. package/dist/features/DownloadLink/DownloadLink.vue.d.ts.map +1 -1
  78. package/dist/features/DownloadLink/DownloadLink.vue.js +1 -1
  79. package/dist/features/DownloadLink/DownloadLink.vue2.js +18 -17
  80. package/dist/features/DownloadLink/index.d.ts +1 -0
  81. package/dist/features/DownloadLink/index.d.ts.map +1 -1
  82. package/dist/features/DownloadLink/openapi-version-symbol.d.ts +2 -0
  83. package/dist/features/DownloadLink/openapi-version-symbol.d.ts.map +1 -0
  84. package/dist/features/DownloadLink/openapi-version-symbol.js +4 -0
  85. package/dist/features/Operation/Operation.vue.d.ts +2 -2
  86. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  87. package/dist/features/Operation/components/OperationParameters.vue.d.ts +2 -2
  88. package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
  89. package/dist/features/Operation/components/OperationResponses.vue.d.ts +2 -2
  90. package/dist/features/Operation/components/OperationResponses.vue.d.ts.map +1 -1
  91. package/dist/features/Operation/components/ParameterHeaders.vue.d.ts +2 -2
  92. package/dist/features/Operation/components/ParameterHeaders.vue.d.ts.map +1 -1
  93. package/dist/features/Operation/components/ParameterHeaders.vue.js +2 -2
  94. package/dist/features/Operation/components/ParameterList.vue.d.ts +2 -2
  95. package/dist/features/Operation/components/ParameterList.vue.d.ts.map +1 -1
  96. package/dist/features/Operation/components/ParameterList.vue.js +2 -2
  97. package/dist/features/Operation/components/ParameterListItem.vue.d.ts +2 -2
  98. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
  99. package/dist/features/Operation/components/ParameterListItem.vue.js +3 -3
  100. package/dist/features/Operation/components/ParameterListItem.vue2.js +6 -6
  101. package/dist/features/Operation/components/RequestBody.vue.d.ts +2 -2
  102. package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
  103. package/dist/features/Operation/components/RequestBody.vue.js +2 -2
  104. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +2 -2
  105. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  106. package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
  107. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +55 -55
  108. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  109. package/dist/features/Operation/layouts/ModernLayout.vue.js +1 -1
  110. package/dist/features/Operation/layouts/ModernLayout.vue2.js +35 -32
  111. package/dist/features/Operation/types/schemas.d.ts +2 -2
  112. package/dist/features/Operation/types/schemas.d.ts.map +1 -1
  113. package/dist/features/Search/SearchButton.vue.js +2 -2
  114. package/dist/helpers/local-storage.d.ts +8 -0
  115. package/dist/helpers/local-storage.d.ts.map +1 -0
  116. package/dist/helpers/local-storage.js +6 -0
  117. package/dist/helpers/measure.d.ts +21 -0
  118. package/dist/helpers/measure.d.ts.map +1 -0
  119. package/dist/helpers/measure.js +7 -0
  120. package/dist/helpers/parse.d.ts +3 -5
  121. package/dist/helpers/parse.d.ts.map +1 -1
  122. package/dist/helpers/parse.js +64 -86
  123. package/dist/helpers/scroll-to-id.d.ts.map +1 -1
  124. package/dist/helpers/scroll-to-id.js +18 -4
  125. package/dist/index.d.ts +0 -1
  126. package/dist/index.d.ts.map +1 -1
  127. package/dist/index.js +33 -35
  128. package/dist/libs/openapi.d.ts +3 -3
  129. package/dist/libs/openapi.d.ts.map +1 -1
  130. package/dist/libs/openapi.js +35 -42
  131. package/dist/standalone/lib/html-api.d.ts.map +1 -1
  132. package/dist/standalone/lib/html-api.js +15 -15
  133. package/dist/stores/useHttpClientStore.d.ts.map +1 -1
  134. package/dist/stores/useHttpClientStore.js +19 -18
  135. package/dist/style.css +1 -1
  136. package/dist/types.d.ts +27 -3
  137. package/dist/types.d.ts.map +1 -1
  138. package/package.json +13 -14
  139. package/dist/hooks/useReactiveSpec.d.ts +0 -448
  140. package/dist/hooks/useReactiveSpec.d.ts.map +0 -1
  141. 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";
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";
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";
3
+ import { compositions as J } from "./helpers/schema-composition.js";
4
+ import R from "./SchemaPropertyExamples.vue.js";
5
+ import B from "../../ScreenReader.vue.js";
6
+ import y from "./SchemaPropertyDetail.vue.js";
8
7
  import L from "../../Badge/Badge.vue.js";
9
- const G = { class: "property-heading" }, K = {
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
+ }, ae = /* @__PURE__ */ z({
34
33
  __name: "SchemaPropertyHeading",
35
34
  props: {
36
35
  value: {},
@@ -39,254 +38,255 @@ 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(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;
47
48
  if (!e)
48
49
  return null;
49
50
  if (e.title)
50
51
  return e.title;
51
52
  if (e.name)
52
53
  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
- }
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;
62
58
  }
63
59
  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];
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];
75
71
  }
76
72
  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))
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))
83
79
  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);
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);
87
88
  }
88
- const e = M(u.value);
89
- return e || null;
89
+ return null;
90
90
  });
91
91
  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", {
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", {
95
95
  key: 0,
96
- class: J(["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 }])
97
97
  }, [
98
- e.pattern ? (r(), n(y, { key: 1 }, [
99
- t[0] || (t[0] = l("/")),
98
+ e.pattern ? (a(), n(v, { key: 1 }, [
99
+ t[0] || (t[0] = u("/")),
100
100
  E(e.$slots, "name", {}, void 0, !0),
101
- t[1] || (t[1] = l("/"))
101
+ t[1] || (t[1] = u("/"))
102
102
  ], 64)) : E(e.$slots, "name", { key: 0 }, void 0, !0)
103
103
  ], 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(() => {
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 }, {
107
+ default: r(() => {
108
108
  var C;
109
109
  return [
110
- v(j, null, {
111
- default: a(() => t[2] || (t[2] = [
112
- l("Type:")
110
+ p(B, null, {
111
+ default: r(() => t[2] || (t[2] = [
112
+ u("Type:")
113
113
  ])),
114
114
  _: 1
115
115
  }),
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)
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)
120
120
  ], 64))
121
121
  ];
122
122
  }),
123
123
  _: 1
124
124
  })) : i("", !0),
125
- e.value.minItems || e.value.maxItems ? (r(), d(s, { key: 1 }, {
126
- default: a(() => [
127
- l(m(e.value.minItems) + "…" + m(e.value.maxItems), 1)
125
+ e.value.minItems || e.value.maxItems ? (a(), o(y, { key: 1 }, {
126
+ default: r(() => [
127
+ u(m(e.value.minItems) + "…" + m(e.value.maxItems), 1)
128
128
  ]),
129
129
  _: 1
130
130
  })) : i("", !0),
131
- e.value.minLength ? (r(), d(s, { key: 2 }, {
132
- prefix: a(() => t[3] || (t[3] = [
133
- l("min:")
131
+ e.value.minLength ? (a(), o(y, { key: 2 }, {
132
+ prefix: r(() => t[3] || (t[3] = [
133
+ u("min:")
134
134
  ])),
135
- default: a(() => [
136
- l(" " + m(e.value.minLength), 1)
135
+ default: r(() => [
136
+ u(" " + m(e.value.minLength), 1)
137
137
  ]),
138
138
  _: 1
139
139
  })) : i("", !0),
140
- e.value.maxLength ? (r(), d(s, { key: 3 }, {
141
- prefix: a(() => t[4] || (t[4] = [
142
- l("max:")
140
+ e.value.maxLength ? (a(), o(y, { key: 3 }, {
141
+ prefix: r(() => t[4] || (t[4] = [
142
+ u("max:")
143
143
  ])),
144
- default: a(() => [
145
- l(" " + m(e.value.maxLength), 1)
144
+ default: r(() => [
145
+ u(" " + m(e.value.maxLength), 1)
146
146
  ]),
147
147
  _: 1
148
148
  })) : i("", !0),
149
- e.value.uniqueItems ? (r(), d(s, { key: 4 }, {
150
- default: a(() => t[5] || (t[5] = [
151
- l(" unique! ")
149
+ e.value.uniqueItems ? (a(), o(y, { key: 4 }, {
150
+ default: r(() => t[5] || (t[5] = [
151
+ u(" unique! ")
152
152
  ])),
153
153
  _: 1
154
154
  })) : 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] = [
159
- l("Format:")
155
+ e.value.format ? (a(), o(y, { key: 5 }, {
156
+ default: r(() => [
157
+ p(B, null, {
158
+ default: r(() => t[6] || (t[6] = [
159
+ u("Format:")
160
160
  ])),
161
161
  _: 1
162
162
  }),
163
- l(" " + m(e.value.format), 1)
163
+ u(" " + m(e.value.format), 1)
164
164
  ]),
165
165
  _: 1
166
166
  })) : i("", !0),
167
- e.value.minimum !== void 0 && e.value.exclusiveMinimum ? (r(), d(s, { key: 6 }, {
168
- prefix: a(() => t[7] || (t[7] = [
169
- l("greater than:")
167
+ e.value.minimum !== void 0 && e.value.exclusiveMinimum ? (a(), o(y, { key: 6 }, {
168
+ prefix: r(() => t[7] || (t[7] = [
169
+ u("greater than:")
170
170
  ])),
171
- default: a(() => [
172
- l(" " + m(e.value.minimum), 1)
171
+ default: r(() => [
172
+ u(" " + m(e.value.minimum), 1)
173
173
  ]),
174
174
  _: 1
175
175
  })) : i("", !0),
176
- e.value.minimum !== void 0 && !e.value.exclusiveMinimum ? (r(), d(s, { key: 7 }, {
177
- prefix: a(() => t[8] || (t[8] = [
178
- l("min:")
176
+ e.value.minimum !== void 0 && !e.value.exclusiveMinimum ? (a(), o(y, { key: 7 }, {
177
+ prefix: r(() => t[8] || (t[8] = [
178
+ u("min:")
179
179
  ])),
180
- default: a(() => [
181
- l(" " + m(e.value.minimum), 1)
180
+ default: r(() => [
181
+ u(" " + m(e.value.minimum), 1)
182
182
  ]),
183
183
  _: 1
184
184
  })) : i("", !0),
185
- e.value.maximum !== void 0 && e.value.exclusiveMaximum ? (r(), d(s, { key: 8 }, {
186
- prefix: a(() => t[9] || (t[9] = [
187
- l("less than:")
185
+ e.value.maximum !== void 0 && e.value.exclusiveMaximum ? (a(), o(y, { key: 8 }, {
186
+ prefix: r(() => t[9] || (t[9] = [
187
+ u("less than:")
188
188
  ])),
189
- default: a(() => [
190
- l(" " + m(e.value.maximum), 1)
189
+ default: r(() => [
190
+ u(" " + m(e.value.maximum), 1)
191
191
  ]),
192
192
  _: 1
193
193
  })) : i("", !0),
194
- e.value.maximum !== void 0 && !e.value.exclusiveMaximum ? (r(), d(s, { key: 9 }, {
195
- prefix: a(() => t[10] || (t[10] = [
196
- l("max:")
194
+ e.value.maximum !== void 0 && !e.value.exclusiveMaximum ? (a(), o(y, { key: 9 }, {
195
+ prefix: r(() => t[10] || (t[10] = [
196
+ u("max:")
197
197
  ])),
198
- default: a(() => [
199
- l(" " + m(e.value.maximum), 1)
198
+ default: r(() => [
199
+ u(" " + m(e.value.maximum), 1)
200
200
  ]),
201
201
  _: 1
202
202
  })) : i("", !0),
203
- e.value.pattern ? (r(), d(s, {
203
+ e.value.pattern ? (a(), o(y, {
204
204
  key: 10,
205
205
  code: "",
206
206
  truncate: ""
207
207
  }, {
208
- default: a(() => [
209
- v(j, null, {
210
- default: a(() => t[11] || (t[11] = [
211
- l("Pattern:")
208
+ default: r(() => [
209
+ p(B, null, {
210
+ default: r(() => t[11] || (t[11] = [
211
+ u("Pattern:")
212
212
  ])),
213
213
  _: 1
214
214
  }),
215
- l(" " + m(e.value.pattern), 1)
215
+ u(" " + m(e.value.pattern), 1)
216
216
  ]),
217
217
  _: 1
218
218
  })) : i("", !0),
219
- e.$props.enum ? (r(), d(s, { key: 11 }, {
220
- default: a(() => t[12] || (t[12] = [
221
- l("enum")
219
+ e.$props.enum ? (a(), o(y, { key: 11 }, {
220
+ default: r(() => t[12] || (t[12] = [
221
+ u("enum")
222
222
  ])),
223
223
  _: 1
224
224
  })) : i("", !0),
225
- e.value.default !== void 0 ? (r(), d(s, {
225
+ e.value.default !== void 0 ? (a(), o(y, {
226
226
  key: 12,
227
227
  truncate: ""
228
228
  }, {
229
- prefix: a(() => t[13] || (t[13] = [
230
- l("default:")
229
+ prefix: r(() => t[13] || (t[13] = [
230
+ u("default:")
231
231
  ])),
232
- default: a(() => [
233
- l(" " + m(T(e.value)), 1)
232
+ default: r(() => [
233
+ u(" " + m(O(e.value)), 1)
234
234
  ]),
235
235
  _: 1
236
236
  })) : i("", !0)
237
237
  ], 64)) : i("", !0),
238
- e.additional ? (r(), n("div", Q, [
239
- (k = e.value) != null && k["x-additionalPropertiesName"] ? (r(), n(y, { key: 0 }, [
240
- l(m(e.value["x-additionalPropertiesName"]), 1)
241
- ], 64)) : (r(), n(y, { key: 1 }, [
242
- l("additional properties")
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")
243
243
  ], 64))
244
244
  ])) : i("", !0),
245
- e.pattern ? (r(), n("div", U, [
246
- v(N(L), null, {
247
- default: a(() => t[14] || (t[14] = [
248
- l("pattern")
245
+ e.pattern ? (a(), n("div", Q, [
246
+ p(N(L), null, {
247
+ default: r(() => t[14] || (t[14] = [
248
+ u("pattern")
249
249
  ])),
250
250
  _: 1
251
251
  })
252
252
  ])) : 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] = [
256
- l("deprecated")
253
+ (j = e.value) != null && j.deprecated ? (a(), n("div", U, [
254
+ p(N(L), null, {
255
+ default: r(() => t[15] || (t[15] = [
256
+ u("deprecated")
257
257
  ])),
258
258
  _: 1
259
259
  })
260
260
  ])) : i("", !0),
261
- N(B)(S.value) ? (r(), n("div", Y, [
262
- v(s, { truncate: "" }, {
263
- prefix: a(() => t[16] || (t[16] = [
264
- l("const:")
261
+ N(b)($.value) ? (a(), n("div", X, [
262
+ p(y, { truncate: "" }, {
263
+ prefix: r(() => t[16] || (t[16] = [
264
+ u("const:")
265
265
  ])),
266
- default: a(() => [
267
- l(" " + m(S.value), 1)
266
+ default: r(() => [
267
+ u(" " + m($.value), 1)
268
268
  ]),
269
269
  _: 1
270
270
  })
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] = [
274
- l(" nullable ")
271
+ ])) : (a(), n(v, { key: 7 }, [
272
+ ((q = e.value) == null ? void 0 : q.nullable) === !0 ? (a(), o(y, { key: 0 }, {
273
+ default: r(() => t[17] || (t[17] = [
274
+ u(" nullable ")
275
275
  ])),
276
276
  _: 1
277
277
  })) : i("", !0)
278
278
  ], 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, {
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
282
  key: 11,
283
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)
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
285
  }, null, 8, ["examples", "example"])) : i("", !0)
286
286
  ]);
287
287
  };
288
288
  }
289
289
  });
290
290
  export {
291
- ie as default
291
+ ae as default
292
292
  };
@@ -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,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"]));
@@ -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));