@scalar/api-reference 1.31.0 → 1.31.2

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 (66) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/browser/standalone.js +2033 -1930
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
  5. package/dist/components/Content/Models/Models.vue.js +1 -1
  6. package/dist/components/Content/Models/Models.vue2.js +2 -1
  7. package/dist/components/Content/Schema/Schema.preview.d.ts +252 -84
  8. package/dist/components/Content/Schema/Schema.preview.d.ts.map +1 -1
  9. package/dist/components/Content/Schema/Schema.vue.d.ts +17 -3
  10. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  11. package/dist/components/Content/Schema/Schema.vue.js +2 -2
  12. package/dist/components/Content/Schema/Schema.vue2.js +146 -128
  13. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts +2 -2
  14. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
  15. package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts +2 -3
  16. package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts.map +1 -1
  17. package/dist/components/Content/Schema/SchemaDiscriminator.vue.js +29 -29
  18. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +10 -3
  19. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  20. package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
  21. package/dist/components/Content/Schema/SchemaProperty.vue2.js +129 -101
  22. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts +2 -2
  23. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  24. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +1 -1
  25. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +122 -115
  26. package/dist/components/Layouts/ClassicLayout.vue.d.ts.map +1 -1
  27. package/dist/components/Layouts/ClassicLayout.vue.js +11 -11
  28. package/dist/components/Section/SectionAccordion.vue.d.ts.map +1 -1
  29. package/dist/components/Section/SectionAccordion.vue.js +2 -2
  30. package/dist/components/Section/SectionAccordion.vue2.js +1 -1
  31. package/dist/components/Section/SectionContainerAccordion.vue.d.ts.map +1 -1
  32. package/dist/components/Section/SectionContainerAccordion.vue.js +2 -2
  33. package/dist/components/Section/SectionContainerAccordion.vue2.js +4 -4
  34. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts +2 -0
  35. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
  36. package/dist/features/ExampleRequest/ExampleRequest.vue.js +2 -2
  37. package/dist/features/ExampleRequest/ExampleRequest.vue2.js +178 -127
  38. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  39. package/dist/features/Operation/Operation.vue.js +29 -23
  40. package/dist/features/Operation/components/OperationParameters.vue.d.ts +7 -3
  41. package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
  42. package/dist/features/Operation/components/OperationParameters.vue.js +28 -24
  43. package/dist/features/Operation/components/RequestBody.vue.d.ts +5 -1
  44. package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
  45. package/dist/features/Operation/components/RequestBody.vue.js +2 -2
  46. package/dist/features/Operation/components/RequestBody.vue2.js +41 -36
  47. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +5 -1
  48. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  49. package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
  50. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +79 -74
  51. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +5 -1
  52. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  53. package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
  54. package/dist/features/Operation/layouts/ModernLayout.vue2.js +63 -57
  55. package/dist/hooks/useDiscriminator.d.ts +53 -0
  56. package/dist/hooks/useDiscriminator.d.ts.map +1 -0
  57. package/dist/hooks/useDiscriminator.js +149 -0
  58. package/dist/hooks/useOperationDiscriminator.d.ts +8 -0
  59. package/dist/hooks/useOperationDiscriminator.d.ts.map +1 -0
  60. package/dist/hooks/useOperationDiscriminator.js +57 -0
  61. package/dist/index.js +1 -1
  62. package/dist/style.css +1 -1
  63. package/package.json +9 -9
  64. package/dist/components/Content/Schema/helpers/schema-discriminator.d.ts +0 -12
  65. package/dist/components/Content/Schema/helpers/schema-discriminator.d.ts.map +0 -1
  66. package/dist/components/Content/Schema/helpers/schema-discriminator.js +0 -45
@@ -1,10 +1,10 @@
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";
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
+ import { isDefined as B } from "@scalar/oas-utils/helpers";
3
+ import J from "./SchemaPropertyExamples.vue.js";
4
+ import M from "../../ScreenReader.vue.js";
5
+ import { getDiscriminatorSchemaName as R } from "../../../hooks/useDiscriminator.js";
6
6
  import y from "./SchemaPropertyDetail.vue.js";
7
- import L from "../../Badge/Badge.vue.js";
7
+ import O from "../../Badge/Badge.vue.js";
8
8
  const W = { class: "property-heading" }, G = {
9
9
  key: 1,
10
10
  class: "property-discriminator"
@@ -29,7 +29,7 @@ const W = { class: "property-heading" }, G = {
29
29
  }, h = {
30
30
  key: 10,
31
31
  class: "property-required"
32
- }, ae = /* @__PURE__ */ z({
32
+ }, ue = /* @__PURE__ */ z({
33
33
  __name: "SchemaPropertyHeading",
34
34
  props: {
35
35
  value: {},
@@ -41,252 +41,259 @@ const W = { class: "property-heading" }, G = {
41
41
  hideModelNames: { type: Boolean, default: !1 },
42
42
  schemas: {}
43
43
  },
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
+ 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;
48
47
  if (!e)
49
48
  return null;
50
49
  if (e.title)
51
50
  return e.title;
52
51
  if (e.name)
53
52
  return e.name;
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"))
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"))
57
56
  return d;
58
57
  }
59
58
  return null;
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];
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];
71
70
  }
72
71
  return null;
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))
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))
79
78
  return null;
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);
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);
83
82
  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);
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);
88
95
  }
89
96
  return null;
90
97
  });
91
98
  return (e, t) => {
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", {
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: H(["property-name", { deprecated: (f = e.value) == null ? void 0 : f.deprecated }])
103
+ class: H(["property-name", { deprecated: (s = e.value) == null ? void 0 : s.deprecated }])
97
104
  }, [
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)
105
+ e.pattern ? (u(), n(k, { key: 1 }, [
106
+ t[0] || (t[0] = l("/")),
107
+ L(e.$slots, "name", {}, void 0, !0),
108
+ t[1] || (t[1] = l("/"))
109
+ ], 64)) : L(e.$slots, "name", { key: 0 }, void 0, !0)
103
110
  ], 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 }, {
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 }, {
107
114
  default: r(() => {
108
- var C;
115
+ var E;
109
116
  return [
110
- p(B, null, {
117
+ p(M, null, {
111
118
  default: r(() => t[2] || (t[2] = [
112
- u("Type:")
119
+ l("Type:")
113
120
  ])),
114
121
  _: 1
115
122
  }),
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)
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 ? (a(), o(y, { key: 1 }, {
132
+ e.value.minItems || e.value.maxItems ? (u(), o(y, { key: 1 }, {
126
133
  default: r(() => [
127
- u(m(e.value.minItems) + "…" + m(e.value.maxItems), 1)
134
+ l(m(e.value.minItems) + "…" + m(e.value.maxItems), 1)
128
135
  ]),
129
136
  _: 1
130
137
  })) : i("", !0),
131
- e.value.minLength ? (a(), o(y, { key: 2 }, {
138
+ e.value.minLength ? (u(), o(y, { key: 2 }, {
132
139
  prefix: r(() => t[3] || (t[3] = [
133
- u("min:")
140
+ l("min:")
134
141
  ])),
135
142
  default: r(() => [
136
- u(" " + m(e.value.minLength), 1)
143
+ l(" " + m(e.value.minLength), 1)
137
144
  ]),
138
145
  _: 1
139
146
  })) : i("", !0),
140
- e.value.maxLength ? (a(), o(y, { key: 3 }, {
147
+ e.value.maxLength ? (u(), o(y, { key: 3 }, {
141
148
  prefix: r(() => t[4] || (t[4] = [
142
- u("max:")
149
+ l("max:")
143
150
  ])),
144
151
  default: r(() => [
145
- u(" " + m(e.value.maxLength), 1)
152
+ l(" " + m(e.value.maxLength), 1)
146
153
  ]),
147
154
  _: 1
148
155
  })) : i("", !0),
149
- e.value.uniqueItems ? (a(), o(y, { key: 4 }, {
156
+ e.value.uniqueItems ? (u(), o(y, { key: 4 }, {
150
157
  default: r(() => t[5] || (t[5] = [
151
- u(" unique! ")
158
+ l(" unique! ")
152
159
  ])),
153
160
  _: 1
154
161
  })) : i("", !0),
155
- e.value.format ? (a(), o(y, { key: 5 }, {
162
+ e.value.format ? (u(), o(y, { key: 5 }, {
156
163
  default: r(() => [
157
- p(B, null, {
164
+ p(M, null, {
158
165
  default: r(() => t[6] || (t[6] = [
159
- u("Format:")
166
+ l("Format:")
160
167
  ])),
161
168
  _: 1
162
169
  }),
163
- u(" " + m(e.value.format), 1)
170
+ l(" " + m(e.value.format), 1)
164
171
  ]),
165
172
  _: 1
166
173
  })) : i("", !0),
167
- e.value.minimum !== void 0 && e.value.exclusiveMinimum ? (a(), o(y, { key: 6 }, {
174
+ e.value.minimum !== void 0 && e.value.exclusiveMinimum ? (u(), o(y, { key: 6 }, {
168
175
  prefix: r(() => t[7] || (t[7] = [
169
- u("greater than:")
176
+ l("greater than:")
170
177
  ])),
171
178
  default: r(() => [
172
- u(" " + m(e.value.minimum), 1)
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 ? (a(), o(y, { key: 7 }, {
183
+ e.value.minimum !== void 0 && !e.value.exclusiveMinimum ? (u(), o(y, { key: 7 }, {
177
184
  prefix: r(() => t[8] || (t[8] = [
178
- u("min:")
185
+ l("min:")
179
186
  ])),
180
187
  default: r(() => [
181
- u(" " + m(e.value.minimum), 1)
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 ? (a(), o(y, { key: 8 }, {
192
+ e.value.maximum !== void 0 && e.value.exclusiveMaximum ? (u(), o(y, { key: 8 }, {
186
193
  prefix: r(() => t[9] || (t[9] = [
187
- u("less than:")
194
+ l("less than:")
188
195
  ])),
189
196
  default: r(() => [
190
- u(" " + m(e.value.maximum), 1)
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 ? (a(), o(y, { key: 9 }, {
201
+ e.value.maximum !== void 0 && !e.value.exclusiveMaximum ? (u(), o(y, { key: 9 }, {
195
202
  prefix: r(() => t[10] || (t[10] = [
196
- u("max:")
203
+ l("max:")
197
204
  ])),
198
205
  default: r(() => [
199
- u(" " + m(e.value.maximum), 1)
206
+ l(" " + m(e.value.maximum), 1)
200
207
  ]),
201
208
  _: 1
202
209
  })) : i("", !0),
203
- e.value.pattern ? (a(), o(y, {
210
+ e.value.pattern ? (u(), o(y, {
204
211
  key: 10,
205
212
  code: "",
206
213
  truncate: ""
207
214
  }, {
208
215
  default: r(() => [
209
- p(B, null, {
216
+ p(M, null, {
210
217
  default: r(() => t[11] || (t[11] = [
211
- u("Pattern:")
218
+ l("Pattern:")
212
219
  ])),
213
220
  _: 1
214
221
  }),
215
- u(" " + m(e.value.pattern), 1)
222
+ l(" " + m(e.value.pattern), 1)
216
223
  ]),
217
224
  _: 1
218
225
  })) : i("", !0),
219
- e.$props.enum ? (a(), o(y, { key: 11 }, {
226
+ e.$props.enum ? (u(), o(y, { key: 11 }, {
220
227
  default: r(() => t[12] || (t[12] = [
221
- u("enum")
228
+ l("enum")
222
229
  ])),
223
230
  _: 1
224
231
  })) : i("", !0),
225
- e.value.default !== void 0 ? (a(), o(y, {
232
+ e.value.default !== void 0 ? (u(), o(y, {
226
233
  key: 12,
227
234
  truncate: ""
228
235
  }, {
229
236
  prefix: r(() => t[13] || (t[13] = [
230
- u("default:")
237
+ l("default:")
231
238
  ])),
232
239
  default: r(() => [
233
- u(" " + m(O(e.value)), 1)
240
+ l(" " + m(T(e.value)), 1)
234
241
  ]),
235
242
  _: 1
236
243
  })) : i("", !0)
237
244
  ], 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")
245
+ e.additional ? (u(), n("div", K, [
246
+ (v = e.value) != null && v["x-additionalPropertiesName"] ? (u(), n(k, { key: 0 }, [
247
+ l(m(e.value["x-additionalPropertiesName"]), 1)
248
+ ], 64)) : (u(), n(k, { key: 1 }, [
249
+ l("additional properties")
243
250
  ], 64))
244
251
  ])) : i("", !0),
245
- e.pattern ? (a(), n("div", Q, [
246
- p(N(L), null, {
252
+ e.pattern ? (u(), n("div", Q, [
253
+ p(b(O), null, {
247
254
  default: r(() => t[14] || (t[14] = [
248
- u("pattern")
255
+ l("pattern")
249
256
  ])),
250
257
  _: 1
251
258
  })
252
259
  ])) : i("", !0),
253
- (j = e.value) != null && j.deprecated ? (a(), n("div", U, [
254
- p(N(L), null, {
260
+ (j = e.value) != null && j.deprecated ? (u(), n("div", U, [
261
+ p(b(O), null, {
255
262
  default: r(() => t[15] || (t[15] = [
256
- u("deprecated")
263
+ l("deprecated")
257
264
  ])),
258
265
  _: 1
259
266
  })
260
267
  ])) : i("", !0),
261
- N(b)($.value) ? (a(), n("div", X, [
268
+ b(B)($.value) ? (u(), n("div", X, [
262
269
  p(y, { truncate: "" }, {
263
270
  prefix: r(() => t[16] || (t[16] = [
264
- u("const:")
271
+ l("const:")
265
272
  ])),
266
273
  default: r(() => [
267
- u(" " + m($.value), 1)
274
+ l(" " + m($.value), 1)
268
275
  ]),
269
276
  _: 1
270
277
  })
271
- ])) : (a(), n(v, { key: 7 }, [
272
- ((q = e.value) == null ? void 0 : q.nullable) === !0 ? (a(), o(y, { key: 0 }, {
278
+ ])) : (u(), n(k, { key: 7 }, [
279
+ ((q = e.value) == null ? void 0 : q.nullable) === !0 ? (u(), o(y, { key: 0 }, {
273
280
  default: r(() => t[17] || (t[17] = [
274
- u(" nullable ")
281
+ l(" nullable ")
275
282
  ])),
276
283
  _: 1
277
284
  })) : i("", !0)
278
285
  ], 64)),
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, {
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: ((V = e.value) == null ? void 0 : V.example) || ((A = (I = e.value) == null ? void 0 : I.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
- ae as default
298
+ ue as default
292
299
  };
@@ -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,11 +1,11 @@
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";
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
2
  import { ScalarColorModeToggleIcon as $ } from "@scalar/components";
3
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: {
@@ -18,17 +18,17 @@ const K = {
18
18
  },
19
19
  emits: ["toggleDarkMode", "updateContent"],
20
20
  setup(u) {
21
- const n = u, m = S(), l = k(() => ({ ...n.configuration, showSidebar: !1 }));
21
+ const a = u, m = S(), l = k(() => ({ ...a.configuration, showSidebar: !1 }));
22
22
  return (e, o) => (r(), c(B, {
23
23
  configuration: l.value,
24
24
  parsedSpec: e.parsedSpec,
25
25
  rawSpec: e.rawSpec,
26
26
  onUpdateContent: o[1] || (o[1] = (t) => e.$emit("updateContent", t))
27
27
  }, y({
28
- "content-start": a(({ spec: t }) => [
29
- C(H, null, {
30
- "dark-mode-toggle": a(() => [
31
- n.configuration.hideDarkModeToggle ? i("", !0) : (r(), c(p($), {
28
+ "content-start": n(({ spec: t }) => [
29
+ h(H, null, {
30
+ "dark-mode-toggle": n(() => [
31
+ a.configuration.hideDarkModeToggle ? i("", !0) : (r(), c(p($), {
32
32
  key: 0,
33
33
  class: "text-c-2 hover:text-c-1",
34
34
  mode: e.isDark ? "dark" : "light",
@@ -37,11 +37,11 @@ const K = {
37
37
  onClick: o[0] || (o[0] = (s) => e.$emit("toggleDarkMode"))
38
38
  }, null, 8, ["mode"]))
39
39
  ]),
40
- default: a(() => [
41
- e.$slots["document-selector"] ? (r(), h("div", K, [
40
+ default: n(() => [
41
+ e.$slots["document-selector"] ? (r(), C("div", K, [
42
42
  d(e.$slots, "document-selector")
43
43
  ])) : i("", !0),
44
- n.configuration.hideSearch ? i("", !0) : (r(), c(p(M), {
44
+ a.configuration.hideSearch ? i("", !0) : (r(), c(p(M), {
45
45
  key: 1,
46
46
  class: "t-doc__sidebar",
47
47
  searchHotKey: l.value.searchHotKey,
@@ -55,7 +55,7 @@ const K = {
55
55
  }, [
56
56
  v(m, (t, s) => ({
57
57
  name: s,
58
- fn: a((f) => [
58
+ fn: n((f) => [
59
59
  d(e.$slots, s, w(D(f || {})))
60
60
  ])
61
61
  }))
@@ -1 +1 @@
1
- {"version":3,"file":"SectionAccordion.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/SectionAccordion.vue"],"names":[],"mappings":"AAqIA,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;AAWF,iBAAS,cAAc;WA2HT,OAAO,IAA6B;;uBAZtB,GAAG;;;YACD,GAAG;6BACC,GAAG;yBACP,GAAG;;;;;;;;;;;;;;;;0BAzIjC,KA9EY,eA8EZ,KA9EgC,uBA8EhC,KA5EO;;oBA4EP,KA3EgB,eA2EhB,KAzEE,uBAyEF,KAxEK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+NJ;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAOnB,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":"SectionAccordion.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/SectionAccordion.vue"],"names":[],"mappings":"AAoIA,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;AAWF,iBAAS,cAAc;WA4HT,OAAO,IAA6B;;uBAZtB,GAAG;;;YACD,GAAG;6BACC,GAAG;yBACP,GAAG;;;;;;;;;;;;;;;;0BA1IjC,KA7EK,eA6EL,KA7EyB,uBA6EzB,KA3EA;;oBA2EA,KA1ES,eA0ET,KAzEU,uBAyEV,KAxEuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgOtB;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAOnB,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,7 +1,7 @@
1
1
  import o from "./SectionAccordion.vue2.js";
2
2
  /* empty css */
3
- import c from "../../_virtual/_plugin-vue_export-helper.js";
4
- const i = /* @__PURE__ */ c(o, [["__scopeId", "data-v-07cabcb0"]]);
3
+ import t from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-a371c135"]]);
5
5
  export {
6
6
  i as default
7
7
  };
@@ -42,7 +42,7 @@ const B = { class: "section-accordion-button-content" }, y = {
42
42
  }, void 0, !0)
43
43
  ])) : l("", !0),
44
44
  s(e(k), {
45
- class: "section-accordion-chevron",
45
+ class: "section-accordion-chevron size-5",
46
46
  icon: r ? "ChevronDown" : "ChevronRight"
47
47
  }, null, 8, ["icon"])
48
48
  ]),
@@ -1 +1 @@
1
- {"version":3,"file":"SectionContainerAccordion.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/SectionContainerAccordion.vue"],"names":[],"mappings":"AAoGA,iBAAS,cAAc;WA8FT,OAAO,IAA6B;;uBATtB,GAAG;yBACD,GAAG;;;;EAahC;AAWD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,0RAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"SectionContainerAccordion.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/SectionContainerAccordion.vue"],"names":[],"mappings":"AAkGA,iBAAS,cAAc;WA+FT,OAAO,IAA6B;;uBATtB,GAAG;yBACD,GAAG;;;;EAahC;AAWD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,0RAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import o from "./SectionContainerAccordion.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1a30b4ff"]]);
4
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-6f297947"]]);
5
5
  export {
6
- f as default
6
+ a as default
7
7
  };
@@ -1,10 +1,10 @@
1
- import { defineComponent as r, createElementBlock as i, openBlock as a, createVNode as o, unref as e, withCtx as t, createElementVNode as l, renderSlot as n } from "vue";
1
+ import { defineComponent as i, createElementBlock as r, openBlock as a, createVNode as o, unref as e, withCtx as t, createElementVNode as l, renderSlot as n } from "vue";
2
2
  import { Disclosure as d, DisclosureButton as u, DisclosurePanel as _ } from "@headlessui/vue";
3
3
  import { ScalarIcon as f } from "@scalar/components";
4
- const p = { class: "section-accordion-wrapper" }, m = { class: "section-accordion-title" }, B = /* @__PURE__ */ r({
4
+ const p = { class: "section-accordion-wrapper" }, m = { class: "section-accordion-title" }, B = /* @__PURE__ */ i({
5
5
  __name: "SectionContainerAccordion",
6
6
  setup(h) {
7
- return (c, v) => (a(), i("div", p, [
7
+ return (c, v) => (a(), r("div", p, [
8
8
  o(e(d), {
9
9
  as: "div",
10
10
  class: "section-accordion",
@@ -14,7 +14,7 @@ const p = { class: "section-accordion-wrapper" }, m = { class: "section-accordio
14
14
  o(e(u), { class: "section-accordion-button" }, {
15
15
  default: t(() => [
16
16
  o(e(f), {
17
- class: "section-accordion-chevron",
17
+ class: "section-accordion-chevron size-6",
18
18
  icon: s ? "ChevronDown" : "ChevronRight"
19
19
  }, null, 8, ["icon"]),
20
20
  l("div", m, [
@@ -1,6 +1,7 @@
1
1
  import type { Collection, Operation, Server } from '@scalar/oas-utils/entities/spec';
2
2
  import type { TransformedOperation } from '@scalar/types/legacy';
3
3
  import { type ComponentPublicInstance } from 'vue';
4
+ import type { Schemas } from '../../features/Operation/types/schemas';
4
5
  type __VLS_Props = {
5
6
  operation: Operation;
6
7
  server: Server | undefined;
@@ -9,6 +10,7 @@ type __VLS_Props = {
9
10
  fallback?: boolean;
10
11
  /** @deprecated Use `operation` instead */
11
12
  transformedOperation: TransformedOperation;
13
+ schemas?: Schemas;
12
14
  };
13
15
  declare function __VLS_template(): {
14
16
  attrs: Partial<{}>;
@@ -1 +1 @@
1
- {"version":3,"file":"ExampleRequest.vue.d.ts","sourceRoot":"","sources":["../../../src/features/ExampleRequest/ExampleRequest.vue"],"names":[],"mappings":"AAmbA,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACT,MAAM,EACP,MAAM,iCAAiC,CAAA;AAExC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAChE,OAAO,EAA+B,KAAK,uBAAuB,EAAE,MAAM,KAAK,CAAA;AAkB/E,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,SAAS,CAAA;IACpB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,UAAU,EAAE,UAAU,CAAA;IACtB,yDAAyD;IACzD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,0CAA0C;IAC1C,oBAAoB,EAAE,oBAAoB,CAAA;CAC3C,CAAC;AAqQF,iBAAS,cAAc;WAoOT,OAAO,IAA6B;;wBAZrB,GAAG;wBAEH,GAAG;wBADH,GAAG;wBAEH,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA5GrB,GAAG,8CACG,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;EAyHrF;AAkCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAMnB,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":"ExampleRequest.vue.d.ts","sourceRoot":"","sources":["../../../src/features/ExampleRequest/ExampleRequest.vue"],"names":[],"mappings":"AA0hBA,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACT,MAAM,EACP,MAAM,iCAAiC,CAAA;AAExC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAChE,OAAO,EAOL,KAAK,uBAAuB,EAC7B,MAAM,KAAK,CAAA;AAKZ,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAkBjE,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,SAAS,CAAA;IACpB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,UAAU,EAAE,UAAU,CAAA;IACtB,yDAAyD;IACzD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,0CAA0C;IAC1C,oBAAoB,EAAE,oBAAoB,CAAA;IAC1C,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;AA8VF,iBAAS,cAAc;WAoOT,OAAO,IAA6B;;wBAZrB,GAAG;wBAEH,GAAG;wBADH,GAAG;wBAEH,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCApMV,GAAG,8CACO,GAAG,yBACpB,GAAG,6DACP,GAAG;;;;;;;;EA+Mb;AAkCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAMnB,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,7 +1,7 @@
1
1
  import o from "./ExampleRequest.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-7088bd72"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b74e39ac"]]);
5
5
  export {
6
- r as default
6
+ p as default
7
7
  };