@scalar/api-reference 1.28.30 → 1.28.32
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 +33 -0
- package/dist/blocks/constants.js +2 -4
- package/dist/browser/standalone.js +14161 -14196
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/Anchor/Anchor.vue2.js +2 -2
- package/dist/components/ApiReference.vue.js +2 -2
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +2 -2
- package/dist/components/ApiReferenceLayout.vue2.js +17 -14
- package/dist/components/Badge/Badge.vue.js +2 -2
- package/dist/components/Card/Card.vue.js +2 -2
- package/dist/components/Card/CardContent.vue2.js +2 -2
- package/dist/components/Card/CardFooter.vue2.js +2 -2
- package/dist/components/Card/CardHeader.vue2.js +2 -2
- package/dist/components/Card/CardTab.vue2.js +2 -2
- package/dist/components/Card/CardTabHeader.vue2.js +6 -6
- package/dist/components/ClassicHeader.vue.js +2 -2
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +1 -1
- package/dist/components/Content/ClientLibraries/ClientSelector.vue2.js +1 -1
- package/dist/components/Content/Content.vue2.js +1 -1
- package/dist/components/Content/Introduction/Description.vue2.js +5 -5
- package/dist/components/Content/Introduction/Introduction.vue2.js +15 -15
- package/dist/components/Content/Lazy/Loading.vue.js +7 -7
- package/dist/components/Content/Models/Models.vue2.js +7 -7
- package/dist/components/Content/Models/ModelsAccordion.vue2.js +13 -13
- package/dist/components/Content/Schema/Schema.vue2.js +1 -1
- package/dist/components/Content/Schema/SchemaDiscriminator.vue2.js +1 -1
- package/dist/components/Content/Schema/SchemaHeading.vue2.js +7 -7
- package/dist/components/Content/Schema/SchemaProperty.vue2.js +1 -1
- package/dist/components/Content/Schema/SchemaPropertyDetail.vue2.js +7 -7
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue2.js +9 -9
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts +1 -4
- 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 +148 -148
- package/dist/components/Content/Tag/OperationsList.vue2.js +5 -5
- package/dist/components/Content/Tag/OperationsListItem.vue2.js +9 -9
- package/dist/components/Content/Tag/Tag.vue.js +5 -5
- package/dist/components/Content/Tag/TagAccordion.vue2.js +4 -4
- package/dist/components/Content/Tag/TagList.vue.js +1 -1
- package/dist/components/Content/Tag/TagSection.vue2.js +1 -1
- package/dist/components/DocumentSelector/DocumentSelector.vue.js +5 -5
- package/dist/components/GettingStarted.vue2.js +3 -3
- package/dist/components/HttpMethod/HttpMethod.vue.js +2 -2
- package/dist/components/IntersectionObserver.vue.js +2 -2
- package/dist/components/Layouts/ClassicLayout.vue.js +5 -5
- package/dist/components/Layouts/Layouts.vue.js +2 -2
- package/dist/components/Layouts/ModernLayout.vue2.js +5 -5
- package/dist/components/LoadingSkeleton.vue2.js +2 -2
- package/dist/components/MobileHeader.vue2.js +5 -5
- package/dist/components/OperationPath.vue2.js +4 -4
- package/dist/components/ScreenReader.vue2.js +2 -2
- package/dist/components/Section/CompactSection.vue2.js +4 -4
- package/dist/components/Section/Section.vue2.js +2 -2
- package/dist/components/Section/SectionAccordion.vue2.js +1 -1
- package/dist/components/Section/SectionColumn.vue.js +2 -2
- package/dist/components/Section/SectionColumns.vue.js +2 -2
- package/dist/components/Section/SectionContainer.vue.js +2 -2
- package/dist/components/Section/SectionContainerAccordion.vue2.js +2 -2
- package/dist/components/Section/SectionContent.vue2.js +1 -1
- package/dist/components/Section/SectionHeader.vue2.js +1 -1
- package/dist/components/Section/SectionHeaderTag.vue2.js +2 -2
- package/dist/components/ShowMoreButton.vue2.js +2 -2
- package/dist/components/Sidebar/Sidebar.vue2.js +1 -1
- package/dist/components/Sidebar/SidebarElement.vue2.js +5 -5
- package/dist/components/Sidebar/SidebarGroup.vue2.js +2 -2
- package/dist/components/Sidebar/SidebarHttpBadge.vue2.js +2 -2
- package/dist/components/SingleApiReference.vue.js +5 -5
- package/dist/components/SpecificationExtension/SpecificationExtension.vue.js +5 -5
- package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts +2 -0
- package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/features/ApiClientModal/ApiClientModal.vue.js +51 -29
- package/dist/features/ApiClientModal/useApiClient.d.ts +4 -4
- package/dist/features/BaseUrl/BaseUrl.vue.js +1 -1
- package/dist/features/DownloadLink/DownloadLink.vue2.js +5 -5
- package/dist/features/ExampleRequest/ExamplePicker.vue2.js +2 -2
- package/dist/features/ExampleRequest/ExampleRequest.vue2.js +12 -12
- package/dist/features/ExampleRequest/TextSelect.vue.js +6 -6
- package/dist/features/ExampleResponses/ExampleResponse.vue2.js +1 -1
- package/dist/features/ExampleResponses/ExampleResponses.vue2.js +23 -23
- package/dist/features/Operation/Operation.vue.js +3 -3
- package/dist/features/Operation/Webhooks.vue2.js +1 -1
- package/dist/features/Operation/components/ContentTypeSelect.vue.js +3 -3
- package/dist/features/Operation/components/OperationParameters.vue.js +1 -1
- package/dist/features/Operation/components/OperationResponses.vue.js +2 -2
- package/dist/features/Operation/components/ParameterHeaders.vue2.js +1 -1
- package/dist/features/Operation/components/ParameterList.vue2.js +4 -4
- package/dist/features/Operation/components/ParameterListItem.vue2.js +17 -17
- package/dist/features/Operation/components/RequestBody.vue2.js +5 -5
- package/dist/features/Operation/components/Webhook.vue2.js +5 -5
- package/dist/features/Operation/layouts/ClassicLayout.vue2.js +20 -20
- package/dist/features/Operation/layouts/ModernLayout.vue2.js +3 -3
- package/dist/features/Search/SearchButton.vue2.js +4 -4
- package/dist/features/Search/SearchModal.vue2.js +1 -1
- package/dist/features/TestRequestButton/TestRequestButton.vue2.js +5 -5
- package/dist/hooks/useNavState.js +1 -1
- package/dist/hooks/useSidebar.js +13 -13
- package/dist/index.js +21 -21
- package/dist/stores/useHttpClientStore.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +16 -16
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as X, useId as Y, computed as m, ref as B, watch as Z,
|
|
1
|
+
import { defineComponent as X, useId as Y, computed as m, ref as B, watch as Z, createBlock as x, createCommentVNode as K, unref as a, openBlock as d, withCtx as n, createVNode as s, createElementVNode as h, renderSlot as y, createTextVNode as p, createElementBlock as k, Fragment as j, toDisplayString as E } from "vue";
|
|
2
2
|
import { useWorkspace as _ } from "@scalar/api-client/store";
|
|
3
3
|
import { getSnippet as ee } from "@scalar/api-client/views/Components/CodeSnippet";
|
|
4
4
|
import { filterSecurityRequirements as te } from "@scalar/api-client/views/Request/RequestSection";
|
|
@@ -175,29 +175,29 @@ const me = ["id"], de = ["id"], pe = {
|
|
|
175
175
|
"onUpdate:modelValue": G
|
|
176
176
|
}, {
|
|
177
177
|
default: n(() => [
|
|
178
|
-
r.value.targetKey === "customExamples" ? (d(),
|
|
178
|
+
r.value.targetKey === "customExamples" ? (d(), k(j, { key: 0 }, [
|
|
179
179
|
s(b, null, {
|
|
180
180
|
default: n(() => t[1] || (t[1] = [
|
|
181
181
|
p("Selected Example:")
|
|
182
182
|
])),
|
|
183
183
|
_: 1
|
|
184
184
|
}),
|
|
185
|
-
p(" " +
|
|
186
|
-
], 64)) : (d(),
|
|
185
|
+
p(" " + E(u.value[r.value.clientKey].label ?? "Example"), 1)
|
|
186
|
+
], 64)) : (d(), k(j, { key: 1 }, [
|
|
187
187
|
s(b, null, {
|
|
188
188
|
default: n(() => t[2] || (t[2] = [
|
|
189
189
|
p("Selected HTTP client:")
|
|
190
190
|
])),
|
|
191
191
|
_: 1
|
|
192
192
|
}),
|
|
193
|
-
p(" " +
|
|
193
|
+
p(" " + E(a(M)) + " " + E(a(z)), 1)
|
|
194
194
|
], 64))
|
|
195
195
|
]),
|
|
196
196
|
_: 1
|
|
197
197
|
}, 8, ["controls", "modelValue", "options"])
|
|
198
198
|
]),
|
|
199
199
|
default: n(() => [
|
|
200
|
-
|
|
200
|
+
h("div", {
|
|
201
201
|
id: `${a(f)}-header`,
|
|
202
202
|
class: "request-header"
|
|
203
203
|
}, [
|
|
@@ -223,7 +223,7 @@ const me = ["id"], de = ["id"], pe = {
|
|
|
223
223
|
frameless: ""
|
|
224
224
|
}, {
|
|
225
225
|
default: n(() => [
|
|
226
|
-
|
|
226
|
+
h("div", {
|
|
227
227
|
id: `${a(f)}-example`,
|
|
228
228
|
class: "code-snippet"
|
|
229
229
|
}, [
|
|
@@ -244,18 +244,18 @@ const me = ["id"], de = ["id"], pe = {
|
|
|
244
244
|
contrast: ""
|
|
245
245
|
}, {
|
|
246
246
|
default: n(() => [
|
|
247
|
-
$.value ? (d(),
|
|
247
|
+
$.value ? (d(), k("div", pe, [
|
|
248
248
|
s(re, {
|
|
249
249
|
class: "request-example-selector",
|
|
250
250
|
examples: v.value,
|
|
251
251
|
modelValue: a(S),
|
|
252
252
|
"onUpdate:modelValue": L
|
|
253
253
|
}, null, 8, ["examples", "modelValue"])
|
|
254
|
-
])) :
|
|
254
|
+
])) : K("", !0),
|
|
255
255
|
y(e.$slots, "footer", {}, void 0, !0)
|
|
256
256
|
]),
|
|
257
257
|
_: 3
|
|
258
|
-
})) :
|
|
258
|
+
})) : K("", !0)
|
|
259
259
|
]),
|
|
260
260
|
_: 3
|
|
261
261
|
}, 8, ["aria-labelledby"])) : e.fallback ? (d(), x(a(w), {
|
|
@@ -265,7 +265,7 @@ const me = ["id"], de = ["id"], pe = {
|
|
|
265
265
|
default: n(() => [
|
|
266
266
|
s(a(R), { class: "request-card-simple" }, {
|
|
267
267
|
default: n(() => [
|
|
268
|
-
|
|
268
|
+
h("div", fe, [
|
|
269
269
|
s(a(H), {
|
|
270
270
|
as: "span",
|
|
271
271
|
class: "request-method",
|
|
@@ -279,7 +279,7 @@ const me = ["id"], de = ["id"], pe = {
|
|
|
279
279
|
})
|
|
280
280
|
]),
|
|
281
281
|
_: 3
|
|
282
|
-
})) :
|
|
282
|
+
})) : K("", !0);
|
|
283
283
|
}
|
|
284
284
|
});
|
|
285
285
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as m, computed as v,
|
|
1
|
+
import { defineComponent as m, computed as v, createElementBlock as l, openBlock as o, normalizeClass as b, createElementVNode as u, renderSlot as _, Fragment as s, renderList as r, toDisplayString as p } from "vue";
|
|
2
2
|
const g = { class: "text-select-label" }, f = ["aria-controls", "tabindex", "value"], k = ["label"], y = ["value"], V = ["value"], S = /* @__PURE__ */ m({
|
|
3
3
|
__name: "TextSelect",
|
|
4
4
|
props: {
|
|
@@ -11,7 +11,7 @@ const g = { class: "text-select-label" }, f = ["aria-controls", "tabindex", "val
|
|
|
11
11
|
const d = i, c = v(
|
|
12
12
|
() => d.options.flatMap((e) => e.options ?? e).length
|
|
13
13
|
);
|
|
14
|
-
return (e, n) => (
|
|
14
|
+
return (e, n) => (o(), l("label", {
|
|
15
15
|
class: b(["text-select", c.value === 1 ? "text-select--single-option" : ""])
|
|
16
16
|
}, [
|
|
17
17
|
u("span", g, [
|
|
@@ -23,18 +23,18 @@ const g = { class: "text-select-label" }, f = ["aria-controls", "tabindex", "val
|
|
|
23
23
|
value: e.modelValue,
|
|
24
24
|
onInput: n[0] || (n[0] = (t) => e.$emit("update:modelValue", t.target.value))
|
|
25
25
|
}, [
|
|
26
|
-
(
|
|
26
|
+
(o(!0), l(s, null, r(e.options, (t) => (o(), l(s, {
|
|
27
27
|
key: t.value
|
|
28
28
|
}, [
|
|
29
|
-
t.options ? (
|
|
29
|
+
t.options ? (o(), l("optgroup", {
|
|
30
30
|
key: 0,
|
|
31
31
|
label: t.label
|
|
32
32
|
}, [
|
|
33
|
-
(
|
|
33
|
+
(o(!0), l(s, null, r(t.options, (a) => (o(), l("option", {
|
|
34
34
|
key: a.value,
|
|
35
35
|
value: a.value
|
|
36
36
|
}, p(a.label), 9, y))), 128))
|
|
37
|
-
], 8, k)) : (
|
|
37
|
+
], 8, k)) : (o(), l("option", {
|
|
38
38
|
key: t.value,
|
|
39
39
|
value: t.value
|
|
40
40
|
}, p(t.label), 9, V))
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as m,
|
|
1
|
+
import { defineComponent as m, createBlock as p, createElementBlock as c, openBlock as o, unref as n } from "vue";
|
|
2
2
|
import { ScalarCodeBlock as l } from "@scalar/components";
|
|
3
3
|
import { getExampleFromSchema as f } from "@scalar/oas-utils/spec-getters";
|
|
4
4
|
const i = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as M, useId as N, ref as E, computed as v,
|
|
1
|
+
import { defineComponent as M, useId as N, ref as E, computed as v, createBlock as r, createCommentVNode as x, openBlock as o, unref as s, withCtx as u, createVNode as f, createElementVNode as g, createElementBlock as k, Fragment as C, renderList as O, createTextVNode as R, toDisplayString as F, withDirectives as I, vModelCheckbox as A } from "vue";
|
|
2
2
|
import { ScalarIcon as D, ScalarCodeBlock as K, ScalarMarkdown as P } from "@scalar/components";
|
|
3
3
|
import { normalizeMimeTypeObject as U, getObjectKeys as H } from "@scalar/oas-utils/helpers";
|
|
4
4
|
import { useClipboard as J } from "@scalar/use-hooks/useClipboard";
|
|
@@ -60,7 +60,7 @@ const Z = {
|
|
|
60
60
|
default: u(() => {
|
|
61
61
|
var m;
|
|
62
62
|
return [
|
|
63
|
-
|
|
63
|
+
f(s(q), {
|
|
64
64
|
muted: "",
|
|
65
65
|
x: "as",
|
|
66
66
|
onChange: B
|
|
@@ -68,7 +68,7 @@ const Z = {
|
|
|
68
68
|
actions: u(() => {
|
|
69
69
|
var t, d;
|
|
70
70
|
return [
|
|
71
|
-
(t = l.value) != null && t.example ? (o(),
|
|
71
|
+
(t = l.value) != null && t.example ? (o(), k("button", {
|
|
72
72
|
key: 0,
|
|
73
73
|
class: "code-copy",
|
|
74
74
|
type: "button",
|
|
@@ -77,50 +77,50 @@ const Z = {
|
|
|
77
77
|
return s(V)((c = l.value) == null ? void 0 : c.example);
|
|
78
78
|
})
|
|
79
79
|
}, [
|
|
80
|
-
|
|
80
|
+
f(s(D), {
|
|
81
81
|
icon: "Clipboard",
|
|
82
82
|
width: "12px"
|
|
83
83
|
})
|
|
84
|
-
])) :
|
|
85
|
-
(d = l.value) != null && d.schema ? (o(),
|
|
86
|
-
a[4] || (a[4] =
|
|
87
|
-
|
|
84
|
+
])) : x("", !0),
|
|
85
|
+
(d = l.value) != null && d.schema ? (o(), k("label", Z, [
|
|
86
|
+
a[4] || (a[4] = R(" Show Schema ")),
|
|
87
|
+
I(g("input", {
|
|
88
88
|
"onUpdate:modelValue": a[1] || (a[1] = (c) => S.value = c),
|
|
89
89
|
"aria-controls": s(n),
|
|
90
90
|
class: "scalar-card-checkbox-input",
|
|
91
91
|
type: "checkbox"
|
|
92
92
|
}, null, 8, $), [
|
|
93
|
-
[
|
|
93
|
+
[A, S.value]
|
|
94
94
|
]),
|
|
95
|
-
a[5] || (a[5] =
|
|
96
|
-
])) :
|
|
95
|
+
a[5] || (a[5] = g("span", { class: "scalar-card-checkbox-checkmark" }, null, -1))
|
|
96
|
+
])) : x("", !0)
|
|
97
97
|
];
|
|
98
98
|
}),
|
|
99
99
|
default: u(() => [
|
|
100
|
-
(o(!0),
|
|
100
|
+
(o(!0), k(C, null, O(h.value, (t) => (o(), r(s(G), {
|
|
101
101
|
key: t,
|
|
102
102
|
"aria-controls": s(n)
|
|
103
103
|
}, {
|
|
104
104
|
default: u(() => [
|
|
105
|
-
|
|
105
|
+
f(L, null, {
|
|
106
106
|
default: u(() => a[3] || (a[3] = [
|
|
107
|
-
|
|
107
|
+
R("Status:")
|
|
108
108
|
])),
|
|
109
109
|
_: 1
|
|
110
110
|
}),
|
|
111
|
-
|
|
111
|
+
R(" " + F(t), 1)
|
|
112
112
|
]),
|
|
113
113
|
_: 2
|
|
114
114
|
}, 1032, ["aria-controls"]))), 128))
|
|
115
115
|
]),
|
|
116
116
|
_: 1
|
|
117
117
|
}),
|
|
118
|
-
|
|
119
|
-
|
|
118
|
+
g("div", z, [
|
|
119
|
+
f(s(Q), { muted: "" }, {
|
|
120
120
|
default: u(() => {
|
|
121
121
|
var t;
|
|
122
122
|
return [
|
|
123
|
-
(t = l.value) != null && t.schema ? (o(),
|
|
123
|
+
(t = l.value) != null && t.schema ? (o(), k(C, { key: 0 }, [
|
|
124
124
|
S.value && b.value ? (o(), r(s(K), {
|
|
125
125
|
key: 0,
|
|
126
126
|
id: s(n),
|
|
@@ -155,20 +155,20 @@ const Z = {
|
|
|
155
155
|
class: "response-example-selector",
|
|
156
156
|
examples: (t = l.value) == null ? void 0 : t.examples,
|
|
157
157
|
"onUpdate:modelValue": a[2] || (a[2] = (c) => p.value = c)
|
|
158
|
-
}, null, 8, ["examples"])) : (d = i.value) != null && d.description ? (o(),
|
|
159
|
-
|
|
158
|
+
}, null, 8, ["examples"])) : (d = i.value) != null && d.description ? (o(), k("div", ee, [
|
|
159
|
+
f(s(P), {
|
|
160
160
|
class: "markdown",
|
|
161
161
|
value: i.value.description
|
|
162
162
|
}, null, 8, ["value"])
|
|
163
|
-
])) :
|
|
163
|
+
])) : x("", !0)
|
|
164
164
|
];
|
|
165
165
|
}),
|
|
166
166
|
_: 1
|
|
167
|
-
})) :
|
|
167
|
+
})) : x("", !0)
|
|
168
168
|
];
|
|
169
169
|
}),
|
|
170
170
|
_: 1
|
|
171
|
-
})) :
|
|
171
|
+
})) : x("", !0);
|
|
172
172
|
}
|
|
173
173
|
});
|
|
174
174
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as c, computed as m,
|
|
1
|
+
import { defineComponent as c, computed as m, createElementBlock as d, createCommentVNode as p, unref as n, openBlock as a, Fragment as u, createBlock as l } from "vue";
|
|
2
2
|
import { useWorkspace as f } from "@scalar/api-client/store";
|
|
3
3
|
import { getPointer as v } from "../../blocks/helpers/getPointer.js";
|
|
4
4
|
import { useBlockProps as h } from "../../blocks/hooks/useBlockProps.js";
|
|
@@ -34,7 +34,7 @@ const P = /* @__PURE__ */ c({
|
|
|
34
34
|
}
|
|
35
35
|
return o.server;
|
|
36
36
|
});
|
|
37
|
-
return (e, t) => e.collection && n(r) ? (a(), d(
|
|
37
|
+
return (e, t) => e.collection && n(r) ? (a(), d(u, { key: 0 }, [
|
|
38
38
|
e.layout === "classic" ? (a(), l(O, {
|
|
39
39
|
key: 0,
|
|
40
40
|
id: e.id,
|
|
@@ -52,7 +52,7 @@ const P = /* @__PURE__ */ c({
|
|
|
52
52
|
server: s.value,
|
|
53
53
|
transformedOperation: e.transformedOperation
|
|
54
54
|
}, null, 8, ["id", "collection", "operation", "schemas", "server", "transformedOperation"]))
|
|
55
|
-
], 64)) :
|
|
55
|
+
], 64)) : p("", !0);
|
|
56
56
|
}
|
|
57
57
|
});
|
|
58
58
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as O, computed as m, useId as H,
|
|
1
|
+
import { defineComponent as O, computed as m, useId as H, createBlock as n, createCommentVNode as d, openBlock as r, unref as e, withCtx as s, createVNode as i, createElementVNode as z, createTextVNode as S, normalizeClass as A, createElementBlock as b, Fragment as h, renderList as _, toDisplayString as E } from "vue";
|
|
2
2
|
import { ScalarMarkdown as M } from "@scalar/components";
|
|
3
3
|
import T from "../../components/ShowMoreButton.vue.js";
|
|
4
4
|
import j from "./components/Webhook.vue.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as S, computed as s, ref as B,
|
|
1
|
+
import { defineComponent as S, computed as s, ref as B, createBlock as V, createElementBlock as k, openBlock as p, unref as n, withCtx as r, createVNode as c, normalizeClass as m, createElementVNode as f, createTextVNode as g, toDisplayString as v } from "vue";
|
|
2
2
|
import { cva as h, ScalarListbox as w, ScalarButton as _, ScalarIcon as q } from "@scalar/components";
|
|
3
3
|
import N from "../../../components/ScreenReader.vue.js";
|
|
4
4
|
const O = /* @__PURE__ */ S({
|
|
@@ -52,7 +52,7 @@ const O = /* @__PURE__ */ S({
|
|
|
52
52
|
default: r(() => [
|
|
53
53
|
c(N, null, {
|
|
54
54
|
default: r(() => o[1] || (o[1] = [
|
|
55
|
-
|
|
55
|
+
g("Selected Content Type:")
|
|
56
56
|
])),
|
|
57
57
|
_: 1
|
|
58
58
|
}),
|
|
@@ -68,7 +68,7 @@ const O = /* @__PURE__ */ S({
|
|
|
68
68
|
}, 8, ["class"])
|
|
69
69
|
]),
|
|
70
70
|
_: 1
|
|
71
|
-
}, 8, ["modelValue", "options"])) : (p(),
|
|
71
|
+
}, 8, ["modelValue", "options"])) : (p(), k("div", {
|
|
72
72
|
key: 1,
|
|
73
73
|
class: m(n(i)({ dropdown: !1 })),
|
|
74
74
|
tabindex: "0"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as u,
|
|
1
|
+
import { defineComponent as u, createElementBlock as h, openBlock as i, Fragment as y, createVNode as o, createBlock as B, createCommentVNode as f, withCtx as t, createTextVNode as a } from "vue";
|
|
2
2
|
import p from "./ParameterList.vue.js";
|
|
3
3
|
import k from "./RequestBody.vue.js";
|
|
4
4
|
const C = /* @__PURE__ */ u({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as r,
|
|
1
|
+
import { defineComponent as r, createBlock as p, openBlock as m, unref as l, withCtx as n, createTextVNode as c } from "vue";
|
|
2
2
|
import { useResponses as i } from "../hooks/useResponses.js";
|
|
3
3
|
import f from "./ParameterList.vue.js";
|
|
4
4
|
const d = /* @__PURE__ */ r({
|
|
@@ -10,7 +10,7 @@ const d = /* @__PURE__ */ r({
|
|
|
10
10
|
},
|
|
11
11
|
setup(o) {
|
|
12
12
|
const t = o, { responses: a } = i(t.operation);
|
|
13
|
-
return (e, s) => (
|
|
13
|
+
return (e, s) => (m(), p(f, {
|
|
14
14
|
collapsableItems: e.collapsableItems,
|
|
15
15
|
parameters: l(a),
|
|
16
16
|
schemas: e.schemas,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as f,
|
|
1
|
+
import { defineComponent as f, createBlock as m, openBlock as e, unref as a, withCtx as c, createElementVNode as p, normalizeClass as o, createVNode as d, createElementBlock as l, Fragment as i, createTextVNode as u, renderList as _ } from "vue";
|
|
2
2
|
import { Disclosure as v, DisclosureButton as k, DisclosurePanel as B } from "@headlessui/vue";
|
|
3
3
|
import { ScalarIcon as H } from "@scalar/components";
|
|
4
4
|
import S from "../../../components/Content/Schema/SchemaProperty.vue.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as o,
|
|
1
|
+
import { defineComponent as o, createElementBlock as l, createCommentVNode as m, openBlock as t, createElementVNode as r, renderSlot as n, Fragment as p, renderList as i, createBlock as h } from "vue";
|
|
2
2
|
import c from "./ParameterListItem.vue.js";
|
|
3
3
|
const d = {
|
|
4
4
|
key: 0,
|
|
@@ -17,10 +17,10 @@ const d = {
|
|
|
17
17
|
var a;
|
|
18
18
|
return (a = e.parameters) != null && a.length ? (t(), l("div", d, [
|
|
19
19
|
r("div", u, [
|
|
20
|
-
|
|
20
|
+
n(e.$slots, "title", {}, void 0, !0)
|
|
21
21
|
]),
|
|
22
22
|
r("ul", f, [
|
|
23
|
-
(t(!0), l(
|
|
23
|
+
(t(!0), l(p, null, i(e.parameters, (s) => (t(), h(c, {
|
|
24
24
|
key: s.name,
|
|
25
25
|
collapsableItems: e.collapsableItems,
|
|
26
26
|
parameter: s,
|
|
@@ -29,7 +29,7 @@ const d = {
|
|
|
29
29
|
withExamples: e.withExamples
|
|
30
30
|
}, null, 8, ["collapsableItems", "parameter", "schemas", "showChildren", "withExamples"]))), 128))
|
|
31
31
|
])
|
|
32
|
-
])) :
|
|
32
|
+
])) : m("", !0);
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
35
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as B, computed as i, ref as D,
|
|
1
|
+
import { defineComponent as B, computed as i, ref as D, createElementBlock as E, createCommentVNode as m, openBlock as s, createVNode as l, createElementVNode as u, unref as r, withCtx as c, createBlock as p, normalizeClass as S, toDisplayString as b } from "vue";
|
|
2
2
|
import { Disclosure as q, DisclosureButton as P, DisclosurePanel as V } from "@headlessui/vue";
|
|
3
3
|
import { ScalarIcon as I, ScalarMarkdown as j } from "@scalar/components";
|
|
4
4
|
import { isDefined as N } from "@scalar/oas-utils/helpers";
|
|
@@ -23,41 +23,41 @@ const H = {
|
|
|
23
23
|
);
|
|
24
24
|
a.parameter.content && "application/json" in a.parameter.content && (t.value = "application/json");
|
|
25
25
|
const o = i(() => !!(a.collapsableItems && (a.parameter.content || a.parameter.headers))), C = i(() => a.parameter.readOnly !== !0);
|
|
26
|
-
return (e, d) => C.value ? (
|
|
26
|
+
return (e, d) => C.value ? (s(), E("li", H, [
|
|
27
27
|
l(r(q), null, {
|
|
28
|
-
default:
|
|
29
|
-
o.value ? (
|
|
28
|
+
default: c(({ open: n }) => [
|
|
29
|
+
o.value ? (s(), p(r(P), {
|
|
30
30
|
key: 0,
|
|
31
31
|
class: S(["parameter-item-trigger flex", { "parameter-item-trigger-open": n }])
|
|
32
32
|
}, {
|
|
33
|
-
default:
|
|
33
|
+
default: c(() => [
|
|
34
34
|
l(r(I), {
|
|
35
35
|
class: "parameter-item-icon",
|
|
36
36
|
icon: n ? "ChevronDown" : "ChevronRight",
|
|
37
37
|
thickness: "1.5"
|
|
38
38
|
}, null, 8, ["icon"]),
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
e.parameter.description ? (
|
|
39
|
+
u("span", L, b(e.parameter.name), 1),
|
|
40
|
+
u("span", M, [
|
|
41
|
+
e.parameter.description ? (s(), p(r(j), {
|
|
42
42
|
key: 0,
|
|
43
43
|
class: "markdown",
|
|
44
44
|
value: e.parameter.description
|
|
45
|
-
}, null, 8, ["value"])) :
|
|
45
|
+
}, null, 8, ["value"])) : m("", !0)
|
|
46
46
|
])
|
|
47
47
|
]),
|
|
48
48
|
_: 2
|
|
49
|
-
}, 1032, ["class"])) :
|
|
49
|
+
}, 1032, ["class"])) : m("", !0),
|
|
50
50
|
l(r(V), {
|
|
51
51
|
class: "parameter-item-container parameter-item-container-markdown",
|
|
52
52
|
static: !o.value
|
|
53
53
|
}, {
|
|
54
|
-
default:
|
|
54
|
+
default: c(() => {
|
|
55
55
|
var h, f, v, y, k;
|
|
56
56
|
return [
|
|
57
|
-
e.parameter.headers ? (
|
|
57
|
+
e.parameter.headers ? (s(), p(O, {
|
|
58
58
|
key: 0,
|
|
59
59
|
headers: e.parameter.headers
|
|
60
|
-
}, null, 8, ["headers"])) :
|
|
60
|
+
}, null, 8, ["headers"])) : m("", !0),
|
|
61
61
|
l(r(z), {
|
|
62
62
|
is: "div",
|
|
63
63
|
compact: "",
|
|
@@ -84,16 +84,16 @@ const H = {
|
|
|
84
84
|
]),
|
|
85
85
|
_: 1
|
|
86
86
|
}),
|
|
87
|
-
|
|
88
|
-
o.value && a.parameter.content ? (
|
|
87
|
+
u("div", R, [
|
|
88
|
+
o.value && a.parameter.content ? (s(), p(T, {
|
|
89
89
|
key: 0,
|
|
90
90
|
class: "parameter-item-content-type",
|
|
91
91
|
defaultValue: t.value,
|
|
92
92
|
requestBody: a.parameter,
|
|
93
93
|
onSelectContentType: d[0] || (d[0] = ({ contentType: n }) => t.value = n)
|
|
94
|
-
}, null, 8, ["defaultValue", "requestBody"])) :
|
|
94
|
+
}, null, 8, ["defaultValue", "requestBody"])) : m("", !0)
|
|
95
95
|
])
|
|
96
|
-
])) :
|
|
96
|
+
])) : m("", !0);
|
|
97
97
|
}
|
|
98
98
|
});
|
|
99
99
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as B, computed as f, ref as b,
|
|
1
|
+
import { defineComponent as B, computed as f, ref as b, createElementBlock as l, createCommentVNode as p, openBlock as u, createElementVNode as k, renderSlot as j, createVNode as a, unref as c } from "vue";
|
|
2
2
|
import { ScalarMarkdown as C } from "@scalar/components";
|
|
3
3
|
import E from "./ContentTypeSelect.vue.js";
|
|
4
4
|
import y from "../../../components/Content/Schema/Schema.vue.js";
|
|
@@ -48,7 +48,7 @@ const P = { key: 0 }, S = { class: "request-body-title" }, V = {
|
|
|
48
48
|
});
|
|
49
49
|
return (e, s) => {
|
|
50
50
|
var m, o, r;
|
|
51
|
-
return e.requestBody ? (
|
|
51
|
+
return e.requestBody ? (u(), l("div", P, [
|
|
52
52
|
k("div", S, [
|
|
53
53
|
j(e.$slots, "title", {}, void 0, !0),
|
|
54
54
|
a(E, {
|
|
@@ -56,13 +56,13 @@ const P = { key: 0 }, S = { class: "request-body-title" }, V = {
|
|
|
56
56
|
requestBody: e.requestBody,
|
|
57
57
|
onSelectContentType: s[0] || (s[0] = ({ contentType: n }) => t.value = n)
|
|
58
58
|
}, null, 8, ["defaultValue", "requestBody"]),
|
|
59
|
-
e.requestBody.description ? (
|
|
59
|
+
e.requestBody.description ? (u(), l("div", V, [
|
|
60
60
|
a(c(C), {
|
|
61
61
|
value: e.requestBody.description
|
|
62
62
|
}, null, 8, ["value"])
|
|
63
63
|
])) : p("", !0)
|
|
64
64
|
]),
|
|
65
|
-
d.value ? (
|
|
65
|
+
d.value ? (u(), l("div", O, [
|
|
66
66
|
a(c(y), {
|
|
67
67
|
compact: "",
|
|
68
68
|
name: "Request Body",
|
|
@@ -77,7 +77,7 @@ const P = { key: 0 }, S = { class: "request-body-title" }, V = {
|
|
|
77
77
|
schemas: e.schemas,
|
|
78
78
|
value: d.value.collapsedProperties
|
|
79
79
|
}, null, 8, ["schemas", "value"])
|
|
80
|
-
])) : (m = e.requestBody.content) != null && m[t.value] ? (
|
|
80
|
+
])) : (m = e.requestBody.content) != null && m[t.value] ? (u(), l("div", R, [
|
|
81
81
|
a(c(y), {
|
|
82
82
|
compact: "",
|
|
83
83
|
name: "Request Body",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as n,
|
|
1
|
+
import { defineComponent as n, createElementBlock as a, createCommentVNode as m, openBlock as s, Fragment as p, createVNode as r, withCtx as i, createTextVNode as d } from "vue";
|
|
2
2
|
import u from "./OperationResponses.vue.js";
|
|
3
3
|
import k from "./RequestBody.vue.js";
|
|
4
4
|
const c = /* @__PURE__ */ n({
|
|
@@ -9,18 +9,18 @@ const c = /* @__PURE__ */ n({
|
|
|
9
9
|
setup(l) {
|
|
10
10
|
return (e, o) => {
|
|
11
11
|
var t;
|
|
12
|
-
return e.webhook ? (
|
|
12
|
+
return e.webhook ? (s(), a(p, { key: 0 }, [
|
|
13
13
|
r(k, {
|
|
14
14
|
class: "webhook-request-body",
|
|
15
15
|
requestBody: (t = e.webhook.information) == null ? void 0 : t.requestBody
|
|
16
16
|
}, {
|
|
17
|
-
title:
|
|
18
|
-
|
|
17
|
+
title: i(() => o[0] || (o[0] = [
|
|
18
|
+
d("Payload")
|
|
19
19
|
])),
|
|
20
20
|
_: 1
|
|
21
21
|
}, 8, ["requestBody"]),
|
|
22
22
|
r(u, { operation: e.webhook }, null, 8, ["operation"])
|
|
23
|
-
], 64)) :
|
|
23
|
+
], 64)) : m("", !0);
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
26
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as C, computed as b,
|
|
1
|
+
import { defineComponent as C, computed as b, createBlock as r, openBlock as s, unref as e, createSlots as k, withCtx as a, createElementVNode as t, createVNode as i, createCommentVNode as m, withModifiers as O, toDisplayString as f, normalizeClass as g, createTextVNode as S } from "vue";
|
|
2
2
|
import { ScalarIcon as _, ScalarIconButton as B, ScalarMarkdown as R } from "@scalar/components";
|
|
3
3
|
import { useClipboard as w } from "@scalar/use-hooks/useClipboard";
|
|
4
4
|
import I from "../../../components/OperationPath.vue.js";
|
|
@@ -7,12 +7,12 @@ import { isOperationDeprecated as T, getOperationStability as h, getOperationSta
|
|
|
7
7
|
import $ from "../components/OperationParameters.vue.js";
|
|
8
8
|
import q from "../components/OperationResponses.vue.js";
|
|
9
9
|
import E from "../../../components/Section/SectionAccordion.vue.js";
|
|
10
|
-
import z from "
|
|
11
|
-
import A from "
|
|
12
|
-
import D from "
|
|
13
|
-
import L from "
|
|
14
|
-
import M from "
|
|
15
|
-
import P from "
|
|
10
|
+
import z from "../../ExampleResponses/ExampleResponses.vue.js";
|
|
11
|
+
import A from "../../ExampleRequest/ExampleRequest.vue.js";
|
|
12
|
+
import D from "../../TestRequestButton/TestRequestButton.vue.js";
|
|
13
|
+
import L from "../../../components/HttpMethod/HttpMethod.vue.js";
|
|
14
|
+
import M from "../../../components/Anchor/Anchor.vue.js";
|
|
15
|
+
import P from "../../../components/Badge/Badge.vue.js";
|
|
16
16
|
const U = { class: "operation-title" }, j = { class: "operation-details" }, F = { class: "endpoint-label" }, G = { class: "endpoint-label-path" }, H = { class: "endpoint-label-name" }, J = { class: "endpoint-content" }, K = { class: "operation-details-card" }, Q = { class: "operation-details-card-item" }, W = { class: "operation-details-card-item" }, fo = /* @__PURE__ */ C({
|
|
17
17
|
__name: "ClassicLayout",
|
|
18
18
|
props: {
|
|
@@ -27,7 +27,7 @@ const U = { class: "operation-title" }, j = { class: "operation-details" }, F =
|
|
|
27
27
|
const { copyToClipboard: u } = w(), v = N(), y = b(() => p.operation.summary || p.operation.path);
|
|
28
28
|
return (o, l) => {
|
|
29
29
|
var d;
|
|
30
|
-
return
|
|
30
|
+
return s(), r(e(E), {
|
|
31
31
|
id: o.id,
|
|
32
32
|
class: "reference-endpoint",
|
|
33
33
|
transparent: ""
|
|
@@ -35,12 +35,12 @@ const U = { class: "operation-title" }, j = { class: "operation-details" }, F =
|
|
|
35
35
|
title: a(() => [
|
|
36
36
|
t("div", U, [
|
|
37
37
|
t("div", j, [
|
|
38
|
-
i(e(
|
|
38
|
+
i(e(L), {
|
|
39
39
|
class: "endpoint-type",
|
|
40
40
|
method: o.operation.method,
|
|
41
41
|
short: ""
|
|
42
42
|
}, null, 8, ["method"]),
|
|
43
|
-
i(e(
|
|
43
|
+
i(e(M), {
|
|
44
44
|
id: o.id ?? "",
|
|
45
45
|
class: "endpoint-anchor"
|
|
46
46
|
}, {
|
|
@@ -52,16 +52,16 @@ const U = { class: "operation-title" }, j = { class: "operation-details" }, F =
|
|
|
52
52
|
path: o.operation.path
|
|
53
53
|
}, null, 8, ["deprecated", "path"])
|
|
54
54
|
]),
|
|
55
|
-
t("div", H,
|
|
56
|
-
e(h)(o.operation) ? (
|
|
55
|
+
t("div", H, f(y.value), 1),
|
|
56
|
+
e(h)(o.operation) ? (s(), r(e(P), {
|
|
57
57
|
key: 0,
|
|
58
|
-
class:
|
|
58
|
+
class: g(e(V)(o.operation))
|
|
59
59
|
}, {
|
|
60
60
|
default: a(() => [
|
|
61
|
-
|
|
61
|
+
S(f(e(h)(o.operation)), 1)
|
|
62
62
|
]),
|
|
63
63
|
_: 1
|
|
64
|
-
}, 8, ["class"])) :
|
|
64
|
+
}, 8, ["class"])) : m("", !0)
|
|
65
65
|
])
|
|
66
66
|
]),
|
|
67
67
|
_: 1
|
|
@@ -72,10 +72,10 @@ const U = { class: "operation-title" }, j = { class: "operation-details" }, F =
|
|
|
72
72
|
actions: a(({ active: n }) => {
|
|
73
73
|
var c;
|
|
74
74
|
return [
|
|
75
|
-
n ? (
|
|
75
|
+
n ? (s(), r(e(D), {
|
|
76
76
|
key: 0,
|
|
77
77
|
operation: o.operation
|
|
78
|
-
}, null, 8, ["operation"])) : (c = e(v)) != null && c.hideTestRequestButton ?
|
|
78
|
+
}, null, 8, ["operation"])) : (c = e(v)) != null && c.hideTestRequestButton ? m("", !0) : (s(), r(e(_), {
|
|
79
79
|
key: 1,
|
|
80
80
|
class: "endpoint-try-hint",
|
|
81
81
|
icon: "Play",
|
|
@@ -87,7 +87,7 @@ const U = { class: "operation-title" }, j = { class: "operation-details" }, F =
|
|
|
87
87
|
label: "Copy endpoint URL",
|
|
88
88
|
size: "xs",
|
|
89
89
|
variant: "ghost",
|
|
90
|
-
onClick: l[0] || (l[0] =
|
|
90
|
+
onClick: l[0] || (l[0] = O((X) => e(u)(o.operation.path), ["stop"]))
|
|
91
91
|
})
|
|
92
92
|
];
|
|
93
93
|
}),
|
|
@@ -108,10 +108,10 @@ const U = { class: "operation-title" }, j = { class: "operation-details" }, F =
|
|
|
108
108
|
}, null, 8, ["operation", "schemas"])
|
|
109
109
|
])
|
|
110
110
|
]),
|
|
111
|
-
i(e(
|
|
111
|
+
i(e(z), {
|
|
112
112
|
responses: o.operation.responses
|
|
113
113
|
}, null, 8, ["responses"]),
|
|
114
|
-
i(e(
|
|
114
|
+
i(e(A), {
|
|
115
115
|
collection: o.collection,
|
|
116
116
|
operation: o.operation,
|
|
117
117
|
server: o.server,
|