@scalar/api-reference 1.28.13 → 1.28.14
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 +16 -0
- package/dist/browser/standalone.js +7124 -7120
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/Card/Card.vue.d.ts.map +1 -1
- package/dist/components/Card/Card.vue.js +7 -7
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.js +2 -2
- package/dist/components/Content/ClientLibraries/ClientSelector.vue2.js +18 -19
- package/dist/components/Content/Lazy/Loading.vue.d.ts +8 -17
- package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
- package/dist/components/Content/Lazy/Loading.vue.js +50 -44
- 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 +84 -71
- package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts +1 -0
- package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaDiscriminator.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaDiscriminator.vue2.js +23 -20
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +3 -1
- 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 +159 -148
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue.js +2 -2
- package/dist/features/Operation/components/ParameterListItem.vue2.js +1 -0
- 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 +29 -26
- package/dist/features/Search/SearchButton.vue.d.ts.map +1 -1
- package/dist/features/Search/SearchButton.vue.js +2 -2
- package/dist/features/Search/SearchButton.vue2.js +42 -29
- package/dist/features/Search/SearchModal.vue.d.ts.map +1 -1
- package/dist/features/Search/SearchModal.vue.js +3 -3
- package/dist/features/Search/SearchModal.vue2.js +102 -96
- package/dist/features/Search/useSearchIndex.d.ts +2 -1
- package/dist/features/Search/useSearchIndex.d.ts.map +1 -1
- package/dist/features/Search/useSearchIndex.js +55 -52
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +6 -6
|
@@ -1,34 +1,35 @@
|
|
|
1
|
-
import { defineComponent as $, computed as
|
|
2
|
-
import { Disclosure as
|
|
3
|
-
import { ScalarMarkdown as
|
|
4
|
-
import { optimizeValueForDisplay as
|
|
1
|
+
import { defineComponent as $, computed as y, openBlock as o, createBlock as f, resolveDynamicComponent as G, normalizeClass as z, withCtx as m, createSlots as J, createTextVNode as D, toDisplayString as d, createCommentVNode as a, createElementBlock as i, createVNode as s, unref as l, Fragment as c, renderList as k, createElementVNode as h } from "vue";
|
|
2
|
+
import { Disclosure as K, DisclosurePanel as Q, DisclosureButton as W } from "@headlessui/vue";
|
|
3
|
+
import { ScalarMarkdown as S, ScalarIcon as X } from "@scalar/components";
|
|
4
|
+
import { optimizeValueForDisplay as Y, discriminators as I } from "./helpers/optimizeValueForDisplay.js";
|
|
5
5
|
import L from "./Schema.vue.js";
|
|
6
6
|
import O from "./SchemaDiscriminator.vue.js";
|
|
7
|
-
import
|
|
8
|
-
const
|
|
7
|
+
import x from "./SchemaPropertyHeading.vue.js";
|
|
8
|
+
const ee = {
|
|
9
9
|
key: 1,
|
|
10
10
|
class: "property-description"
|
|
11
|
-
},
|
|
11
|
+
}, te = {
|
|
12
12
|
key: 2,
|
|
13
13
|
class: "property-description"
|
|
14
|
-
},
|
|
14
|
+
}, ne = {
|
|
15
15
|
key: 3,
|
|
16
16
|
class: "property-enum"
|
|
17
|
-
},
|
|
17
|
+
}, oe = {
|
|
18
18
|
key: 0,
|
|
19
19
|
class: "property-list"
|
|
20
|
-
}, re = { class: "property-heading" },
|
|
20
|
+
}, re = { class: "property-heading" }, ie = { class: "property-name" }, ae = { class: "property-description" }, se = {
|
|
21
21
|
key: 1,
|
|
22
22
|
class: "property-enum-values"
|
|
23
|
-
},
|
|
23
|
+
}, le = { class: "property-enum-value-label" }, pe = { class: "property-enum-value-label" }, me = {
|
|
24
24
|
key: 4,
|
|
25
25
|
class: "children"
|
|
26
26
|
}, de = {
|
|
27
27
|
key: 0,
|
|
28
28
|
class: "children"
|
|
29
|
-
},
|
|
29
|
+
}, be = /* @__PURE__ */ $({
|
|
30
30
|
__name: "SchemaProperty",
|
|
31
31
|
props: {
|
|
32
|
+
is: {},
|
|
32
33
|
value: {},
|
|
33
34
|
level: { default: 0 },
|
|
34
35
|
name: {},
|
|
@@ -58,158 +59,168 @@ const x = {
|
|
|
58
59
|
}, B = (e, n) => n != null && n.properties || n != null && n.additionalProperties || n != null && n.patternProperties || n != null && n.allOf ? null : e || (n == null ? void 0 : n.description) || null, E = (e) => !e || !H[e.type] ? null : H[e.type][e.format || "_default"], p = (e) => {
|
|
59
60
|
var n;
|
|
60
61
|
return (e == null ? void 0 : e.enum) || ((n = e == null ? void 0 : e.items) == null ? void 0 : n.enum) || [];
|
|
61
|
-
},
|
|
62
|
+
}, C = y(
|
|
62
63
|
() => p(t.value).length > 9
|
|
63
|
-
), P =
|
|
64
|
+
), P = y(() => C.value ? 5 : 9), U = y(
|
|
64
65
|
() => p(t.value).slice(0, P.value)
|
|
65
|
-
), Z =
|
|
66
|
+
), Z = y(
|
|
66
67
|
() => p(t.value).slice(P.value)
|
|
67
|
-
), t =
|
|
68
|
+
), t = y(() => Y(T.value));
|
|
68
69
|
I.find((e) => !t.value || typeof t.value != "object" ? !1 : e in t.value || t.value.items && typeof t.value.items == "object" && e in t.value.items);
|
|
69
|
-
const M = (e, n,
|
|
70
|
+
const M = (e, n, g, v, b) => n || g || v || (e == null ? void 0 : e.deprecated) || (e == null ? void 0 : e.const) || (e == null ? void 0 : e.enum) && e.enum.length === 1 || (e == null ? void 0 : e.type) || (e == null ? void 0 : e.nullable) === !0 || (e == null ? void 0 : e.writeOnly) || (e == null ? void 0 : e.readOnly) || b;
|
|
70
71
|
return (e, n) => {
|
|
71
|
-
var
|
|
72
|
-
return
|
|
72
|
+
var g;
|
|
73
|
+
return o(), f(G(e.is ?? "li"), {
|
|
73
74
|
class: z(["property", [
|
|
74
75
|
(B(e.description, t.value), ""),
|
|
75
76
|
`property--level-${e.level}`,
|
|
76
77
|
{
|
|
77
78
|
"property--compact": e.compact,
|
|
78
|
-
"property--deprecated": (
|
|
79
|
+
"property--deprecated": (g = t.value) == null ? void 0 : g.deprecated
|
|
79
80
|
}
|
|
80
81
|
]])
|
|
81
|
-
},
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
pattern: e.pattern,
|
|
93
|
-
required: e.required,
|
|
94
|
-
value: t.value
|
|
95
|
-
}, G({ _: 2 }, [
|
|
96
|
-
e.name ? {
|
|
97
|
-
name: "name",
|
|
98
|
-
fn: y(() => [
|
|
99
|
-
S(d(e.name), 1)
|
|
100
|
-
]),
|
|
101
|
-
key: "0"
|
|
102
|
-
} : void 0,
|
|
103
|
-
(g = t.value) != null && g.example ? {
|
|
104
|
-
name: "example",
|
|
105
|
-
fn: y(() => [
|
|
106
|
-
S(" Example: " + d(t.value.example), 1)
|
|
107
|
-
]),
|
|
108
|
-
key: "1"
|
|
109
|
-
} : void 0
|
|
110
|
-
]), 1032, ["additional", "enum", "pattern", "required", "value"])) : l("", !0),
|
|
111
|
-
B(e.description, t.value) ? (r(), i("div", x, [
|
|
112
|
-
s(a(D), {
|
|
113
|
-
value: B(e.description, t.value)
|
|
114
|
-
}, null, 8, ["value"])
|
|
115
|
-
])) : E(t.value) ? (r(), i("div", ee, [
|
|
116
|
-
s(a(D), {
|
|
117
|
-
value: E(t.value) || ""
|
|
118
|
-
}, null, 8, ["value"])
|
|
119
|
-
])) : l("", !0),
|
|
120
|
-
((v = p(t.value)) == null ? void 0 : v.length) > 0 ? (r(), i("div", te, [
|
|
121
|
-
Array.isArray((w = t.value) == null ? void 0 : w["x-enumDescriptions"]) ? (r(), i("div", ne, [
|
|
122
|
-
(r(!0), i(c, null, k(p(t.value), (o) => (r(), i("div", {
|
|
123
|
-
key: o,
|
|
124
|
-
class: "property"
|
|
125
|
-
}, [
|
|
126
|
-
f("div", re, [
|
|
127
|
-
f("div", oe, d(o), 1)
|
|
128
|
-
]),
|
|
129
|
-
f("div", ie, [
|
|
130
|
-
s(a(D), {
|
|
131
|
-
value: t.value["x-enumDescriptions"][o]
|
|
132
|
-
}, null, 8, ["value"])
|
|
133
|
-
])
|
|
134
|
-
]))), 128))
|
|
135
|
-
])) : (r(), i("ul", le, [
|
|
136
|
-
(r(!0), i(c, null, k(U.value, (o) => (r(), i("li", {
|
|
137
|
-
key: o,
|
|
138
|
-
class: "property-enum-value"
|
|
139
|
-
}, [
|
|
140
|
-
f("span", se, d(o), 1)
|
|
141
|
-
]))), 128)),
|
|
142
|
-
_.value ? (r(), b(a(J), { key: 0 }, {
|
|
143
|
-
default: y(({ open: o }) => [
|
|
144
|
-
s(a(K), null, {
|
|
145
|
-
default: y(() => [
|
|
146
|
-
(r(!0), i(c, null, k(Z.value, (m) => (r(), i("li", {
|
|
147
|
-
key: m,
|
|
148
|
-
class: "property-enum-value"
|
|
149
|
-
}, [
|
|
150
|
-
f("span", ae, d(m), 1)
|
|
151
|
-
]))), 128))
|
|
152
|
-
]),
|
|
153
|
-
_: 1
|
|
154
|
-
}),
|
|
155
|
-
s(a(Q), { class: "enum-toggle-button" }, {
|
|
156
|
-
default: y(() => [
|
|
157
|
-
s(a(W), {
|
|
158
|
-
class: z(["enum-toggle-button-icon", { "enum-toggle-button-icon--open": o }]),
|
|
159
|
-
icon: "Add",
|
|
160
|
-
size: "sm"
|
|
161
|
-
}, null, 8, ["class"]),
|
|
162
|
-
S(" " + d(o ? "Hide values" : "Show all values"), 1)
|
|
163
|
-
]),
|
|
164
|
-
_: 2
|
|
165
|
-
}, 1024)
|
|
166
|
-
]),
|
|
167
|
-
_: 1
|
|
168
|
-
})) : l("", !0)
|
|
169
|
-
]))
|
|
170
|
-
])) : l("", !0),
|
|
171
|
-
((C = t.value) == null ? void 0 : C.type) === "object" && ((j = t.value) != null && j.properties || (q = t.value) != null && q.additionalProperties) ? (r(), i("div", pe, [
|
|
172
|
-
s(L, {
|
|
173
|
-
compact: e.compact,
|
|
174
|
-
level: e.level + 1,
|
|
175
|
-
value: t.value
|
|
176
|
-
}, null, 8, ["compact", "level", "value"])
|
|
177
|
-
])) : l("", !0),
|
|
178
|
-
(A = t.value) != null && A.items && typeof t.value.items == "object" && "type" in t.value.items && typeof t.value.items.type == "string" ? (r(), i(c, { key: 5 }, [
|
|
179
|
-
["object"].includes((N = (F = t.value) == null ? void 0 : F.items) == null ? void 0 : N.type) ? (r(), i("div", de, [
|
|
180
|
-
s(L, {
|
|
181
|
-
compact: e.compact,
|
|
182
|
-
level: e.level + 1,
|
|
183
|
-
value: t.value.items
|
|
184
|
-
}, null, 8, ["compact", "level", "value"])
|
|
185
|
-
])) : l("", !0)
|
|
186
|
-
], 64)) : l("", !0),
|
|
187
|
-
(r(!0), i(c, null, k(a(I), (o) => {
|
|
188
|
-
var m, V;
|
|
189
|
-
return r(), i(c, { key: o }, [
|
|
190
|
-
(m = t.value) != null && m[o] ? (r(), b(O, {
|
|
82
|
+
}, {
|
|
83
|
+
default: m(() => {
|
|
84
|
+
var v, b, w, j, q, A, F, N, V;
|
|
85
|
+
return [
|
|
86
|
+
M(
|
|
87
|
+
t.value,
|
|
88
|
+
e.name,
|
|
89
|
+
e.additional,
|
|
90
|
+
e.pattern,
|
|
91
|
+
e.required
|
|
92
|
+
) ? (o(), f(x, {
|
|
191
93
|
key: 0,
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
schemas: e.schemas,
|
|
94
|
+
additional: e.additional,
|
|
95
|
+
enum: p(t.value).length > 0,
|
|
96
|
+
pattern: e.pattern,
|
|
97
|
+
required: e.required,
|
|
197
98
|
value: t.value
|
|
198
|
-
},
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
99
|
+
}, J({ _: 2 }, [
|
|
100
|
+
e.name ? {
|
|
101
|
+
name: "name",
|
|
102
|
+
fn: m(() => [
|
|
103
|
+
D(d(e.name), 1)
|
|
104
|
+
]),
|
|
105
|
+
key: "0"
|
|
106
|
+
} : void 0,
|
|
107
|
+
(v = t.value) != null && v.example ? {
|
|
108
|
+
name: "example",
|
|
109
|
+
fn: m(() => [
|
|
110
|
+
D(" Example: " + d(t.value.example), 1)
|
|
111
|
+
]),
|
|
112
|
+
key: "1"
|
|
113
|
+
} : void 0
|
|
114
|
+
]), 1032, ["additional", "enum", "pattern", "required", "value"])) : a("", !0),
|
|
115
|
+
B(e.description, t.value) ? (o(), i("div", ee, [
|
|
116
|
+
s(l(S), {
|
|
117
|
+
value: B(e.description, t.value)
|
|
118
|
+
}, null, 8, ["value"])
|
|
119
|
+
])) : E(t.value) ? (o(), i("div", te, [
|
|
120
|
+
s(l(S), {
|
|
121
|
+
value: E(t.value) || ""
|
|
122
|
+
}, null, 8, ["value"])
|
|
123
|
+
])) : a("", !0),
|
|
124
|
+
((b = p(t.value)) == null ? void 0 : b.length) > 0 ? (o(), i("div", ne, [
|
|
125
|
+
Array.isArray((w = t.value) == null ? void 0 : w["x-enumDescriptions"]) ? (o(), i("div", oe, [
|
|
126
|
+
(o(!0), i(c, null, k(p(t.value), (r) => (o(), i("div", {
|
|
127
|
+
key: r,
|
|
128
|
+
class: "property"
|
|
129
|
+
}, [
|
|
130
|
+
h("div", re, [
|
|
131
|
+
h("div", ie, d(r), 1)
|
|
132
|
+
]),
|
|
133
|
+
h("div", ae, [
|
|
134
|
+
s(l(S), {
|
|
135
|
+
value: t.value["x-enumDescriptions"][r]
|
|
136
|
+
}, null, 8, ["value"])
|
|
137
|
+
])
|
|
138
|
+
]))), 128))
|
|
139
|
+
])) : (o(), i("ul", se, [
|
|
140
|
+
(o(!0), i(c, null, k(U.value, (r) => (o(), i("li", {
|
|
141
|
+
key: r,
|
|
142
|
+
class: "property-enum-value"
|
|
143
|
+
}, [
|
|
144
|
+
h("span", le, d(r), 1)
|
|
145
|
+
]))), 128)),
|
|
146
|
+
C.value ? (o(), f(l(K), { key: 0 }, {
|
|
147
|
+
default: m(({ open: r }) => [
|
|
148
|
+
s(l(Q), null, {
|
|
149
|
+
default: m(() => [
|
|
150
|
+
(o(!0), i(c, null, k(Z.value, (u) => (o(), i("li", {
|
|
151
|
+
key: u,
|
|
152
|
+
class: "property-enum-value"
|
|
153
|
+
}, [
|
|
154
|
+
h("span", pe, d(u), 1)
|
|
155
|
+
]))), 128))
|
|
156
|
+
]),
|
|
157
|
+
_: 1
|
|
158
|
+
}),
|
|
159
|
+
s(l(W), { class: "enum-toggle-button" }, {
|
|
160
|
+
default: m(() => [
|
|
161
|
+
s(l(X), {
|
|
162
|
+
class: z(["enum-toggle-button-icon", { "enum-toggle-button-icon--open": r }]),
|
|
163
|
+
icon: "Add",
|
|
164
|
+
size: "sm"
|
|
165
|
+
}, null, 8, ["class"]),
|
|
166
|
+
D(" " + d(r ? "Hide values" : "Show all values"), 1)
|
|
167
|
+
]),
|
|
168
|
+
_: 2
|
|
169
|
+
}, 1024)
|
|
170
|
+
]),
|
|
171
|
+
_: 1
|
|
172
|
+
})) : a("", !0)
|
|
173
|
+
]))
|
|
174
|
+
])) : a("", !0),
|
|
175
|
+
((j = t.value) == null ? void 0 : j.type) === "object" && ((q = t.value) != null && q.properties || (A = t.value) != null && A.additionalProperties) ? (o(), i("div", me, [
|
|
176
|
+
s(L, {
|
|
177
|
+
compact: e.compact,
|
|
178
|
+
level: e.level + 1,
|
|
179
|
+
name: e.name,
|
|
180
|
+
value: t.value
|
|
181
|
+
}, null, 8, ["compact", "level", "name", "value"])
|
|
182
|
+
])) : a("", !0),
|
|
183
|
+
(F = t.value) != null && F.items && typeof t.value.items == "object" && "type" in t.value.items && typeof t.value.items.type == "string" ? (o(), i(c, { key: 5 }, [
|
|
184
|
+
["object"].includes((V = (N = t.value) == null ? void 0 : N.items) == null ? void 0 : V.type) ? (o(), i("div", de, [
|
|
185
|
+
s(L, {
|
|
186
|
+
compact: e.compact,
|
|
187
|
+
level: e.level + 1,
|
|
188
|
+
name: e.name,
|
|
189
|
+
value: t.value.items
|
|
190
|
+
}, null, 8, ["compact", "level", "name", "value"])
|
|
191
|
+
])) : a("", !0)
|
|
192
|
+
], 64)) : a("", !0),
|
|
193
|
+
(o(!0), i(c, null, k(l(I), (r) => {
|
|
194
|
+
var u, _;
|
|
195
|
+
return o(), i(c, { key: r }, [
|
|
196
|
+
(u = t.value) != null && u[r] ? (o(), f(O, {
|
|
197
|
+
key: 0,
|
|
198
|
+
compact: e.compact,
|
|
199
|
+
discriminator: r,
|
|
200
|
+
hideHeading: e.hideHeading,
|
|
201
|
+
level: e.level,
|
|
202
|
+
name: e.name,
|
|
203
|
+
schemas: e.schemas,
|
|
204
|
+
value: t.value
|
|
205
|
+
}, null, 8, ["compact", "discriminator", "hideHeading", "level", "name", "schemas", "value"])) : (_ = t.value) != null && _.items && typeof r == "string" && typeof t.value.items == "object" && r in t.value.items && Array.isArray(t.value.items[r]) && e.level < 3 ? (o(), f(O, {
|
|
206
|
+
key: 1,
|
|
207
|
+
compact: e.compact,
|
|
208
|
+
discriminator: r,
|
|
209
|
+
hideHeading: e.hideHeading,
|
|
210
|
+
level: e.level,
|
|
211
|
+
name: e.name,
|
|
212
|
+
schemas: e.schemas,
|
|
213
|
+
value: t.value.items
|
|
214
|
+
}, null, 8, ["compact", "discriminator", "hideHeading", "level", "name", "schemas", "value"])) : a("", !0)
|
|
215
|
+
], 64);
|
|
216
|
+
}), 128))
|
|
217
|
+
];
|
|
218
|
+
}),
|
|
219
|
+
_: 1
|
|
220
|
+
}, 8, ["class"]);
|
|
210
221
|
};
|
|
211
222
|
}
|
|
212
223
|
});
|
|
213
224
|
export {
|
|
214
|
-
|
|
225
|
+
be as default
|
|
215
226
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ParameterListItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/ParameterListItem.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ParameterListItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/ParameterListItem.vue"],"names":[],"mappings":"AAgPA,OAAO,KAAK,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iCAAiC,CAAA;AAC/E,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAW9E,KAAK,WAAW,GAAG;IACf,SAAS,EACL,WAAW,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,GAChD,WAAW,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAA;IACnD,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,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;;kBANe,OAAO;kBAFP,OAAO;sBACH,OAAO;;AAuQ9B,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./ParameterListItem.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const c = /* @__PURE__ */ o(t, [["__scopeId", "data-v-cc0511cb"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
c as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/RequestBody.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/RequestBody.vue"],"names":[],"mappings":"AAwMA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAC9E,OAAO,KAAK,EAAe,WAAW,EAAE,MAAM,sBAAsB,CAAA;AASpE,KAAK,WAAW,GAAG;IACjB,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB,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;AAoDF,iBAAS,cAAc;WAiHT,OAAO,IAA6B;;uBARvB,GAAG;;;;EAa7B;AAaD,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 "./RequestBody.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1aa0f610"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as B, computed as
|
|
1
|
+
import { defineComponent as B, computed as f, ref as b, openBlock as l, createElementBlock as u, createElementVNode as k, renderSlot as j, createVNode as a, unref as c, createCommentVNode as p } from "vue";
|
|
2
2
|
import { ScalarMarkdown as C } from "@scalar/components";
|
|
3
3
|
import E from "./ContentTypeSelect.vue.js";
|
|
4
|
-
import
|
|
4
|
+
import y from "../../../components/Content/Schema/Schema.vue.js";
|
|
5
5
|
const P = { key: 0 }, S = { class: "request-body-title" }, V = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "request-body-description"
|
|
8
8
|
}, O = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "request-body-schema"
|
|
11
|
-
},
|
|
11
|
+
}, R = {
|
|
12
12
|
key: 1,
|
|
13
13
|
class: "request-body-schema"
|
|
14
|
-
},
|
|
14
|
+
}, _ = /* @__PURE__ */ B({
|
|
15
15
|
__name: "RequestBody",
|
|
16
16
|
props: {
|
|
17
17
|
requestBody: {},
|
|
@@ -19,22 +19,22 @@ const P = { key: 0 }, S = { class: "request-body-title" }, V = {
|
|
|
19
19
|
},
|
|
20
20
|
setup(i) {
|
|
21
21
|
var h;
|
|
22
|
-
const
|
|
22
|
+
const v = f(
|
|
23
23
|
() => {
|
|
24
24
|
var e;
|
|
25
25
|
return Object.keys(((e = i.requestBody) == null ? void 0 : e.content) ?? {});
|
|
26
26
|
}
|
|
27
27
|
), t = b("application/json");
|
|
28
|
-
(h = i.requestBody) != null && h.content &&
|
|
29
|
-
const d =
|
|
30
|
-
var r,
|
|
31
|
-
const e = (
|
|
28
|
+
(h = i.requestBody) != null && h.content && v.value.length > 0 && (t.value = v.value[0]);
|
|
29
|
+
const d = f(() => {
|
|
30
|
+
var r, n, q;
|
|
31
|
+
const e = (q = (n = (r = i.requestBody) == null ? void 0 : r.content) == null ? void 0 : n[t.value]) == null ? void 0 : q.schema;
|
|
32
32
|
if ((e == null ? void 0 : e.type) !== "object" || !e.properties)
|
|
33
33
|
return null;
|
|
34
34
|
const s = Object.entries(e.properties);
|
|
35
35
|
if (s.length < 13)
|
|
36
36
|
return null;
|
|
37
|
-
const { properties:
|
|
37
|
+
const { properties: m, ...o } = e;
|
|
38
38
|
return {
|
|
39
39
|
visibleProperties: {
|
|
40
40
|
...o,
|
|
@@ -47,46 +47,49 @@ const P = { key: 0 }, S = { class: "request-body-title" }, V = {
|
|
|
47
47
|
};
|
|
48
48
|
});
|
|
49
49
|
return (e, s) => {
|
|
50
|
-
var
|
|
51
|
-
return e.requestBody ? (
|
|
50
|
+
var m, o, r;
|
|
51
|
+
return e.requestBody ? (l(), u("div", P, [
|
|
52
52
|
k("div", S, [
|
|
53
53
|
j(e.$slots, "title", {}, void 0, !0),
|
|
54
|
-
|
|
54
|
+
a(E, {
|
|
55
55
|
defaultValue: t.value,
|
|
56
56
|
requestBody: e.requestBody,
|
|
57
|
-
onSelectContentType: s[0] || (s[0] = ({ contentType:
|
|
57
|
+
onSelectContentType: s[0] || (s[0] = ({ contentType: n }) => t.value = n)
|
|
58
58
|
}, null, 8, ["defaultValue", "requestBody"]),
|
|
59
|
-
e.requestBody.description ? (
|
|
60
|
-
|
|
59
|
+
e.requestBody.description ? (l(), u("div", V, [
|
|
60
|
+
a(c(C), {
|
|
61
61
|
value: e.requestBody.description
|
|
62
62
|
}, null, 8, ["value"])
|
|
63
|
-
])) :
|
|
63
|
+
])) : p("", !0)
|
|
64
64
|
]),
|
|
65
|
-
d.value ? (
|
|
66
|
-
|
|
65
|
+
d.value ? (l(), u("div", O, [
|
|
66
|
+
a(c(y), {
|
|
67
67
|
compact: "",
|
|
68
|
+
name: "Request Body",
|
|
68
69
|
noncollapsible: "",
|
|
69
70
|
schemas: e.schemas,
|
|
70
71
|
value: d.value.visibleProperties
|
|
71
72
|
}, null, 8, ["schemas", "value"]),
|
|
72
|
-
|
|
73
|
-
compact: "",
|
|
73
|
+
a(c(y), {
|
|
74
74
|
additionalProperties: "",
|
|
75
|
+
compact: "",
|
|
76
|
+
name: "Request Body",
|
|
75
77
|
schemas: e.schemas,
|
|
76
78
|
value: d.value.collapsedProperties
|
|
77
79
|
}, null, 8, ["schemas", "value"])
|
|
78
|
-
])) : (
|
|
79
|
-
|
|
80
|
+
])) : (m = e.requestBody.content) != null && m[t.value] ? (l(), u("div", R, [
|
|
81
|
+
a(c(y), {
|
|
80
82
|
compact: "",
|
|
83
|
+
name: "Request Body",
|
|
81
84
|
noncollapsible: "",
|
|
82
85
|
schemas: e.schemas,
|
|
83
86
|
value: (r = (o = e.requestBody.content) == null ? void 0 : o[t.value]) == null ? void 0 : r.schema
|
|
84
87
|
}, null, 8, ["schemas", "value"])
|
|
85
|
-
])) :
|
|
86
|
-
])) :
|
|
88
|
+
])) : p("", !0)
|
|
89
|
+
])) : p("", !0);
|
|
87
90
|
};
|
|
88
91
|
}
|
|
89
92
|
});
|
|
90
93
|
export {
|
|
91
|
-
|
|
94
|
+
_ as default
|
|
92
95
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchButton.vue.d.ts","sourceRoot":"","sources":["../../../src/features/Search/SearchButton.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SearchButton.vue.d.ts","sourceRoot":"","sources":["../../../src/features/Search/SearchButton.vue"],"names":[],"mappings":"AAsJA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAShD,KAAK,WAAW,GAAG;IACf,IAAI,EAAE,IAAI,CAAA;IACV,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB,CAAC;;kBADe,MAAM;;AAsJzB,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SearchButton.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-c23332bd"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,60 +1,73 @@
|
|
|
1
|
-
import { defineComponent as S, onMounted as
|
|
2
|
-
import { useModal as
|
|
3
|
-
import
|
|
4
|
-
import { isMacOs as
|
|
5
|
-
import { useApiClient as
|
|
6
|
-
const
|
|
1
|
+
import { defineComponent as S, ref as b, watch as w, nextTick as v, onMounted as K, onBeforeUnmount as C, openBlock as a, createElementBlock as n, Fragment as r, createElementVNode as o, normalizeClass as B, createVNode as p, unref as l, createTextVNode as u, toDisplayString as E } from "vue";
|
|
2
|
+
import { useModal as H, ScalarIcon as M } from "@scalar/components";
|
|
3
|
+
import g from "./SearchModal.vue.js";
|
|
4
|
+
import { isMacOs as m } from "../../helpers/isMacOs.js";
|
|
5
|
+
import { useApiClient as L } from "../ApiClientModal/useApiClient.js";
|
|
6
|
+
const N = { class: "sidebar-search-input" }, T = { class: "sidebar-search-shortcut" }, V = { class: "sidebar-search-key" }, F = /* @__PURE__ */ S({
|
|
7
7
|
__name: "SearchButton",
|
|
8
8
|
props: {
|
|
9
9
|
spec: {},
|
|
10
10
|
searchHotKey: { default: "k" }
|
|
11
11
|
},
|
|
12
|
-
setup(
|
|
13
|
-
const
|
|
12
|
+
setup(h) {
|
|
13
|
+
const f = h, i = b(), t = H(), { client: y } = L(), c = (s) => {
|
|
14
14
|
var e;
|
|
15
|
-
(
|
|
15
|
+
(m() ? s.metaKey : s.ctrlKey) && s.key === f.searchHotKey && !((e = y.value) != null && e.modalState.open) && (s.preventDefault(), s.stopPropagation(), t.open ? t.hide() : t.show());
|
|
16
16
|
};
|
|
17
|
-
|
|
17
|
+
w(
|
|
18
|
+
() => t.open,
|
|
19
|
+
(s, e) => {
|
|
20
|
+
!s && e && v(() => {
|
|
21
|
+
var d;
|
|
22
|
+
(d = i.value) == null || d.focus();
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
), K(() => window.addEventListener("keydown", c)), C(() => window.removeEventListener("keydown", c));
|
|
26
|
+
function k() {
|
|
27
|
+
t.show();
|
|
28
|
+
}
|
|
29
|
+
return (s, e) => (a(), n(r, null, [
|
|
18
30
|
o("button", {
|
|
19
|
-
|
|
31
|
+
ref_key: "button",
|
|
32
|
+
ref: i,
|
|
33
|
+
class: B(["sidebar-search", s.$attrs.class]),
|
|
20
34
|
role: "search",
|
|
21
35
|
type: "button",
|
|
22
|
-
onClick:
|
|
23
|
-
(...y) => a(t).show && a(t).show(...y))
|
|
36
|
+
onClick: k
|
|
24
37
|
}, [
|
|
25
|
-
|
|
38
|
+
p(l(M), {
|
|
26
39
|
class: "scalar-search-icon",
|
|
27
40
|
icon: "Search",
|
|
28
41
|
size: "sm",
|
|
29
42
|
thickness: "2.5"
|
|
30
43
|
}),
|
|
31
|
-
o("div",
|
|
32
|
-
e[
|
|
33
|
-
e[
|
|
44
|
+
o("div", N, [
|
|
45
|
+
e[3] || (e[3] = o("span", { class: "sr-only" }, "Open Search", -1)),
|
|
46
|
+
e[4] || (e[4] = o("span", {
|
|
34
47
|
"aria-hidden": "true",
|
|
35
48
|
class: "sidebar-search-placeholder"
|
|
36
49
|
}, " Search ", -1)),
|
|
37
|
-
o("span",
|
|
38
|
-
e[
|
|
39
|
-
o("kbd",
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
], 64)) : (
|
|
43
|
-
e[
|
|
44
|
-
e[
|
|
50
|
+
o("span", T, [
|
|
51
|
+
e[2] || (e[2] = o("span", { class: "sr-only" }, "Keyboard Shortcut:", -1)),
|
|
52
|
+
o("kbd", V, [
|
|
53
|
+
l(m)() ? (a(), n(r, { key: 0 }, [
|
|
54
|
+
u("⌘")
|
|
55
|
+
], 64)) : (a(), n(r, { key: 1 }, [
|
|
56
|
+
e[0] || (e[0] = o("span", { class: "sr-only" }, "CTRL", -1)),
|
|
57
|
+
e[1] || (e[1] = o("span", { "aria-hidden": "true" }, "⌃", -1))
|
|
45
58
|
], 64)),
|
|
46
|
-
|
|
59
|
+
u(" " + E(s.searchHotKey), 1)
|
|
47
60
|
])
|
|
48
61
|
])
|
|
49
62
|
])
|
|
50
63
|
], 2),
|
|
51
|
-
|
|
52
|
-
modalState:
|
|
64
|
+
p(g, {
|
|
65
|
+
modalState: l(t),
|
|
53
66
|
parsedSpec: s.spec
|
|
54
67
|
}, null, 8, ["modalState", "parsedSpec"])
|
|
55
68
|
], 64));
|
|
56
69
|
}
|
|
57
70
|
});
|
|
58
71
|
export {
|
|
59
|
-
|
|
72
|
+
F as default
|
|
60
73
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchModal.vue.d.ts","sourceRoot":"","sources":["../../../src/features/Search/SearchModal.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SearchModal.vue.d.ts","sourceRoot":"","sources":["../../../src/features/Search/SearchModal.vue"],"names":[],"mappings":"AAiSA,OAAO,EAML,KAAK,UAAU,EAChB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAahD,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,IAAI,CAAA;IAChB,UAAU,EAAE,UAAU,CAAA;CACvB,CAAC;;AA6ZF,wBAOG"}
|