@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.
- package/CHANGELOG.md +19 -0
- package/dist/browser/standalone.js +2033 -1930
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/Models.vue.js +1 -1
- package/dist/components/Content/Models/Models.vue2.js +2 -1
- package/dist/components/Content/Schema/Schema.preview.d.ts +252 -84
- package/dist/components/Content/Schema/Schema.preview.d.ts.map +1 -1
- package/dist/components/Content/Schema/Schema.vue.d.ts +17 -3
- package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/Schema.vue.js +2 -2
- package/dist/components/Content/Schema/Schema.vue2.js +146 -128
- package/dist/components/Content/Schema/SchemaComposition.vue.d.ts +2 -2
- package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts +2 -3
- package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaDiscriminator.vue.js +29 -29
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +10 -3
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
- package/dist/components/Content/Schema/SchemaProperty.vue2.js +129 -101
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts +2 -2
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +122 -115
- package/dist/components/Layouts/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/components/Layouts/ClassicLayout.vue.js +11 -11
- package/dist/components/Section/SectionAccordion.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionAccordion.vue.js +2 -2
- package/dist/components/Section/SectionAccordion.vue2.js +1 -1
- package/dist/components/Section/SectionContainerAccordion.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionContainerAccordion.vue.js +2 -2
- package/dist/components/Section/SectionContainerAccordion.vue2.js +4 -4
- package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts +2 -0
- package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue.js +2 -2
- package/dist/features/ExampleRequest/ExampleRequest.vue2.js +178 -127
- package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
- package/dist/features/Operation/Operation.vue.js +29 -23
- package/dist/features/Operation/components/OperationParameters.vue.d.ts +7 -3
- package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/OperationParameters.vue.js +28 -24
- package/dist/features/Operation/components/RequestBody.vue.d.ts +5 -1
- package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/RequestBody.vue.js +2 -2
- package/dist/features/Operation/components/RequestBody.vue2.js +41 -36
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +5 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
- package/dist/features/Operation/layouts/ClassicLayout.vue2.js +79 -74
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +5 -1
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
- package/dist/features/Operation/layouts/ModernLayout.vue2.js +63 -57
- package/dist/hooks/useDiscriminator.d.ts +53 -0
- package/dist/hooks/useDiscriminator.d.ts.map +1 -0
- package/dist/hooks/useDiscriminator.js +149 -0
- package/dist/hooks/useOperationDiscriminator.d.ts +8 -0
- package/dist/hooks/useOperationDiscriminator.d.ts.map +1 -0
- package/dist/hooks/useOperationDiscriminator.js +57 -0
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +9 -9
- package/dist/components/Content/Schema/helpers/schema-discriminator.d.ts +0 -12
- package/dist/components/Content/Schema/helpers/schema-discriminator.d.ts.map +0 -1
- package/dist/components/Content/Schema/helpers/schema-discriminator.js +0 -45
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as z, computed as
|
|
2
|
-
import { isDefined as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
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
|
|
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
|
-
},
|
|
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(
|
|
45
|
-
|
|
46
|
-
|
|
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 (
|
|
55
|
-
for (const [d,
|
|
56
|
-
if (
|
|
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
|
-
}, $ =
|
|
61
|
-
var e, t,
|
|
62
|
-
if (
|
|
63
|
-
return (t =
|
|
64
|
-
if (((d = (
|
|
65
|
-
return
|
|
66
|
-
if ((
|
|
67
|
-
if (
|
|
68
|
-
return
|
|
69
|
-
if (((
|
|
70
|
-
return
|
|
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
|
-
}),
|
|
74
|
-
var e, t,
|
|
75
|
-
return Array.isArray((e =
|
|
76
|
-
}),
|
|
77
|
-
var t,
|
|
78
|
-
if (!((t =
|
|
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 (
|
|
81
|
-
return
|
|
82
|
-
const e =
|
|
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
|
|
85
|
-
if (
|
|
86
|
-
const
|
|
87
|
-
|
|
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
|
|
93
|
-
return
|
|
94
|
-
e.$slots.name ? (
|
|
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: (
|
|
103
|
+
class: H(["property-name", { deprecated: (s = e.value) == null ? void 0 : s.deprecated }])
|
|
97
104
|
}, [
|
|
98
|
-
e.pattern ? (
|
|
99
|
-
t[0] || (t[0] =
|
|
100
|
-
|
|
101
|
-
t[1] || (t[1] =
|
|
102
|
-
], 64)) :
|
|
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 ? (
|
|
105
|
-
e.value ? (
|
|
106
|
-
(
|
|
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
|
|
115
|
+
var E;
|
|
109
116
|
return [
|
|
110
|
-
p(
|
|
117
|
+
p(M, null, {
|
|
111
118
|
default: r(() => t[2] || (t[2] = [
|
|
112
|
-
|
|
119
|
+
l("Type:")
|
|
113
120
|
])),
|
|
114
121
|
_: 1
|
|
115
122
|
}),
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
], 64)) : (
|
|
119
|
-
|
|
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 ? (
|
|
132
|
+
e.value.minItems || e.value.maxItems ? (u(), o(y, { key: 1 }, {
|
|
126
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 ? (
|
|
138
|
+
e.value.minLength ? (u(), o(y, { key: 2 }, {
|
|
132
139
|
prefix: r(() => t[3] || (t[3] = [
|
|
133
|
-
|
|
140
|
+
l("min:")
|
|
134
141
|
])),
|
|
135
142
|
default: r(() => [
|
|
136
|
-
|
|
143
|
+
l(" " + m(e.value.minLength), 1)
|
|
137
144
|
]),
|
|
138
145
|
_: 1
|
|
139
146
|
})) : i("", !0),
|
|
140
|
-
e.value.maxLength ? (
|
|
147
|
+
e.value.maxLength ? (u(), o(y, { key: 3 }, {
|
|
141
148
|
prefix: r(() => t[4] || (t[4] = [
|
|
142
|
-
|
|
149
|
+
l("max:")
|
|
143
150
|
])),
|
|
144
151
|
default: r(() => [
|
|
145
|
-
|
|
152
|
+
l(" " + m(e.value.maxLength), 1)
|
|
146
153
|
]),
|
|
147
154
|
_: 1
|
|
148
155
|
})) : i("", !0),
|
|
149
|
-
e.value.uniqueItems ? (
|
|
156
|
+
e.value.uniqueItems ? (u(), o(y, { key: 4 }, {
|
|
150
157
|
default: r(() => t[5] || (t[5] = [
|
|
151
|
-
|
|
158
|
+
l(" unique! ")
|
|
152
159
|
])),
|
|
153
160
|
_: 1
|
|
154
161
|
})) : i("", !0),
|
|
155
|
-
e.value.format ? (
|
|
162
|
+
e.value.format ? (u(), o(y, { key: 5 }, {
|
|
156
163
|
default: r(() => [
|
|
157
|
-
p(
|
|
164
|
+
p(M, null, {
|
|
158
165
|
default: r(() => t[6] || (t[6] = [
|
|
159
|
-
|
|
166
|
+
l("Format:")
|
|
160
167
|
])),
|
|
161
168
|
_: 1
|
|
162
169
|
}),
|
|
163
|
-
|
|
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 ? (
|
|
174
|
+
e.value.minimum !== void 0 && e.value.exclusiveMinimum ? (u(), o(y, { key: 6 }, {
|
|
168
175
|
prefix: r(() => t[7] || (t[7] = [
|
|
169
|
-
|
|
176
|
+
l("greater than:")
|
|
170
177
|
])),
|
|
171
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 ? (
|
|
183
|
+
e.value.minimum !== void 0 && !e.value.exclusiveMinimum ? (u(), o(y, { key: 7 }, {
|
|
177
184
|
prefix: r(() => t[8] || (t[8] = [
|
|
178
|
-
|
|
185
|
+
l("min:")
|
|
179
186
|
])),
|
|
180
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 ? (
|
|
192
|
+
e.value.maximum !== void 0 && e.value.exclusiveMaximum ? (u(), o(y, { key: 8 }, {
|
|
186
193
|
prefix: r(() => t[9] || (t[9] = [
|
|
187
|
-
|
|
194
|
+
l("less than:")
|
|
188
195
|
])),
|
|
189
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 ? (
|
|
201
|
+
e.value.maximum !== void 0 && !e.value.exclusiveMaximum ? (u(), o(y, { key: 9 }, {
|
|
195
202
|
prefix: r(() => t[10] || (t[10] = [
|
|
196
|
-
|
|
203
|
+
l("max:")
|
|
197
204
|
])),
|
|
198
205
|
default: r(() => [
|
|
199
|
-
|
|
206
|
+
l(" " + m(e.value.maximum), 1)
|
|
200
207
|
]),
|
|
201
208
|
_: 1
|
|
202
209
|
})) : i("", !0),
|
|
203
|
-
e.value.pattern ? (
|
|
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(
|
|
216
|
+
p(M, null, {
|
|
210
217
|
default: r(() => t[11] || (t[11] = [
|
|
211
|
-
|
|
218
|
+
l("Pattern:")
|
|
212
219
|
])),
|
|
213
220
|
_: 1
|
|
214
221
|
}),
|
|
215
|
-
|
|
222
|
+
l(" " + m(e.value.pattern), 1)
|
|
216
223
|
]),
|
|
217
224
|
_: 1
|
|
218
225
|
})) : i("", !0),
|
|
219
|
-
e.$props.enum ? (
|
|
226
|
+
e.$props.enum ? (u(), o(y, { key: 11 }, {
|
|
220
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 ? (
|
|
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
|
-
|
|
237
|
+
l("default:")
|
|
231
238
|
])),
|
|
232
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 ? (
|
|
239
|
-
(
|
|
240
|
-
|
|
241
|
-
], 64)) : (
|
|
242
|
-
|
|
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 ? (
|
|
246
|
-
p(
|
|
252
|
+
e.pattern ? (u(), n("div", Q, [
|
|
253
|
+
p(b(O), null, {
|
|
247
254
|
default: r(() => t[14] || (t[14] = [
|
|
248
|
-
|
|
255
|
+
l("pattern")
|
|
249
256
|
])),
|
|
250
257
|
_: 1
|
|
251
258
|
})
|
|
252
259
|
])) : i("", !0),
|
|
253
|
-
(j = e.value) != null && j.deprecated ? (
|
|
254
|
-
p(
|
|
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
|
-
|
|
263
|
+
l("deprecated")
|
|
257
264
|
])),
|
|
258
265
|
_: 1
|
|
259
266
|
})
|
|
260
267
|
])) : i("", !0),
|
|
261
|
-
|
|
268
|
+
b(B)($.value) ? (u(), n("div", X, [
|
|
262
269
|
p(y, { truncate: "" }, {
|
|
263
270
|
prefix: r(() => t[16] || (t[16] = [
|
|
264
|
-
|
|
271
|
+
l("const:")
|
|
265
272
|
])),
|
|
266
273
|
default: r(() => [
|
|
267
|
-
|
|
274
|
+
l(" " + m($.value), 1)
|
|
268
275
|
]),
|
|
269
276
|
_: 1
|
|
270
277
|
})
|
|
271
|
-
])) : (
|
|
272
|
-
((q = e.value) == null ? void 0 : q.nullable) === !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
|
-
|
|
281
|
+
l(" nullable ")
|
|
275
282
|
])),
|
|
276
283
|
_: 1
|
|
277
284
|
})) : i("", !0)
|
|
278
285
|
], 64)),
|
|
279
|
-
(w = e.value) != null && w.writeOnly ? (
|
|
280
|
-
e.required ? (
|
|
281
|
-
e.withExamples ? (
|
|
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: (
|
|
284
|
-
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
|
-
|
|
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;
|
|
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
|
|
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
|
|
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":
|
|
29
|
-
|
|
30
|
-
"dark-mode-toggle":
|
|
31
|
-
|
|
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:
|
|
41
|
-
e.$slots["document-selector"] ? (r(),
|
|
40
|
+
default: n(() => [
|
|
41
|
+
e.$slots["document-selector"] ? (r(), C("div", K, [
|
|
42
42
|
d(e.$slots, "document-selector")
|
|
43
43
|
])) : i("", !0),
|
|
44
|
-
|
|
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:
|
|
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":"
|
|
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
|
|
4
|
-
const i = /* @__PURE__ */
|
|
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":"
|
|
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
|
|
4
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-6f297947"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
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__ */
|
|
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(),
|
|
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":"
|
|
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
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b74e39ac"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|