@scalar/api-reference 1.25.71 → 1.25.74
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 +75 -0
- package/dist/browser/standalone.js +12267 -12210
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/Anchor/Anchor.vue.d.ts.map +1 -1
- package/dist/components/Anchor/Anchor.vue.js +2 -2
- package/dist/components/ApiReference.vue.d.ts.map +1 -1
- package/dist/components/ApiReference.vue.js +56 -57
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +3 -3
- package/dist/components/ApiReferenceLayout.vue2.js +160 -143
- package/dist/components/Content/Authentication/Authentication.vue.d.ts +1 -1
- package/dist/components/Content/Authentication/Authentication.vue.d.ts.map +1 -1
- package/dist/components/Content/Authentication/Authentication.vue.js +2 -2
- package/dist/components/Content/Authentication/Authentication.vue2.js +20 -20
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +2 -2
- package/dist/components/Content/Content.vue.d.ts +1 -1
- package/dist/components/Content/Content.vue.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.js +2 -2
- package/dist/components/Content/Content.vue2.js +59 -53
- package/dist/components/Content/Introduction/Introduction.vue.js +1 -1
- package/dist/components/Content/Introduction/Introduction.vue2.js +32 -32
- package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/Models.vue.js +2 -2
- package/dist/components/Content/Models/Models.vue2.js +42 -36
- 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 +10 -11
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue2.js +12 -12
- package/dist/components/Content/Tag/Endpoints.vue.js +2 -2
- package/dist/components/Content/Tag/Endpoints.vue2.js +19 -19
- package/dist/components/Content/Tag/TagAccordion.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/TagAccordion.vue.js +2 -2
- package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/TagList.vue.js +34 -28
- package/dist/components/Layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/components/Layouts/ModernLayout.vue.js +2 -2
- package/dist/components/Layouts/ModernLayout.vue2.js +30 -29
- package/dist/components/Section/CompactSection.vue.js +2 -2
- package/dist/components/Section/CompactSection.vue2.js +9 -8
- package/dist/components/Section/SectionColumn.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionColumn.vue.js +4 -4
- package/dist/components/Section/SectionContainerAccordion.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionContainerAccordion.vue.js +2 -2
- package/dist/components/Section/SectionHeader.vue.d.ts +2 -2
- package/dist/components/Section/SectionHeader.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionHeader.vue.js +1 -1
- package/dist/components/Section/SectionHeader.vue2.js +16 -14
- package/dist/components/ShowMoreButton.vue.js +2 -2
- package/dist/components/Sidebar/SidebarElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarElement.vue.js +2 -2
- package/dist/components/Sidebar/SidebarElement.vue2.js +3 -2
- package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts +22 -0
- package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts.map +1 -1
- package/dist/embeds/OpenApiDocument/types.d.ts +1 -1
- package/dist/embeds/OpenApiDocument/types.d.ts.map +1 -1
- package/dist/features/ApiClientModal/useApiClient.d.ts +6 -4
- package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerUrlSelect.vue.js +3 -3
- package/dist/features/BaseUrl/ServerUrlSelect.vue2.js +5 -5
- package/dist/features/BaseUrl/ServerVariablesSelect.vue.js +2 -2
- package/dist/features/BaseUrl/ServerVariablesSelect.vue2.js +3 -3
- 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 +124 -120
- package/dist/features/Operation/components/ParameterHeaders.vue.js +3 -3
- package/dist/features/Operation/components/ParameterHeaders.vue2.js +7 -7
- 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 +3 -4
- package/dist/features/Operation/components/RequestBodyPropertiesChild.vue.d.ts.map +1 -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/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 +99 -89
- package/dist/helpers/getExampleCode.d.ts +2 -2
- package/dist/helpers/getExampleCode.d.ts.map +1 -1
- package/dist/helpers/getExampleCode.js +11 -11
- package/dist/helpers/parse.d.ts +2 -2
- package/dist/helpers/parse.d.ts.map +1 -1
- package/dist/helpers/parse.js +3 -3
- package/dist/hooks/useDeprecationWarnings.d.ts.map +1 -1
- package/dist/hooks/useDeprecationWarnings.js +12 -15
- package/dist/hooks/useReactiveSpec.d.ts +24 -2
- package/dist/hooks/useReactiveSpec.d.ts.map +1 -1
- package/dist/hooks/useReactiveSpec.js +4 -4
- package/dist/index.js +1 -1
- package/dist/legacy/components/SecurityScheme.vue.d.ts +1 -1
- package/dist/legacy/components/SecurityScheme.vue.d.ts.map +1 -1
- package/dist/legacy/components/SecurityScheme.vue.js +2 -2
- package/dist/legacy/components/SecurityScheme.vue2.js +13 -13
- package/dist/legacy/components/SecuritySchemeSelector.vue.js +2 -2
- package/dist/legacy/components/SecuritySchemeSelector.vue2.js +3 -3
- package/dist/legacy/helpers/getUrlFromServerState.d.ts +2 -1
- package/dist/legacy/helpers/getUrlFromServerState.d.ts.map +1 -1
- package/dist/legacy/helpers/getUrlFromServerState.js +14 -14
- package/dist/legacy/stores/useOpenApiStore.d.ts +22 -0
- package/dist/legacy/stores/useOpenApiStore.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +11 -11
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarCodeBlock as
|
|
3
|
-
import { createHash as
|
|
4
|
-
import { getRequestFromOperation as
|
|
5
|
-
import { asyncComputed as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
1
|
+
import { defineComponent as G, useId as Q, computed as f, ref as W, watch as X, inject as Z, onServerPrefetch as ee, useSSRContext as te, unref as r, openBlock as p, createBlock as K, withCtx as a, createVNode as s, createElementBlock as x, Fragment as N, createTextVNode as y, toDisplayString as C, createElementVNode as k, renderSlot as v, createCommentVNode as E } from "vue";
|
|
2
|
+
import { ScalarCodeBlock as oe } from "@scalar/components";
|
|
3
|
+
import { createHash as re, ssrState as ae } from "@scalar/oas-utils/helpers";
|
|
4
|
+
import { getRequestFromOperation as se } from "@scalar/oas-utils/spec-getters";
|
|
5
|
+
import { asyncComputed as le } from "@vueuse/core";
|
|
6
|
+
import T from "../../components/ScreenReader.vue.js";
|
|
7
|
+
import ne from "./ExamplePicker.vue.js";
|
|
8
|
+
import ie from "./TextSelect.vue.js";
|
|
9
9
|
/* empty css */
|
|
10
|
-
import { GLOBAL_SECURITY_SYMBOL as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import { getSecretCredentialsFromAuthentication as
|
|
16
|
-
import
|
|
17
|
-
import { getExampleCode as
|
|
18
|
-
import { useHttpClientStore as
|
|
19
|
-
import { useServerStore as
|
|
20
|
-
import { useExampleStore as
|
|
21
|
-
import { useAuthenticationStore as
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
const
|
|
10
|
+
import { GLOBAL_SECURITY_SYMBOL as ue } from "../../helpers/provideSymbols.js";
|
|
11
|
+
import j from "../../components/Card/Card.vue.js";
|
|
12
|
+
import me from "../../components/Card/CardHeader.vue.js";
|
|
13
|
+
import F from "../../components/HttpMethod/HttpMethod.vue.js";
|
|
14
|
+
import U from "../../components/Card/CardContent.vue.js";
|
|
15
|
+
import { getSecretCredentialsFromAuthentication as pe, getRequestFromAuthentication as ce } from "../../legacy/helpers/getRequestFromAuthentication.js";
|
|
16
|
+
import de from "../../components/Card/CardFooter.vue.js";
|
|
17
|
+
import { getExampleCode as fe } from "../../helpers/getExampleCode.js";
|
|
18
|
+
import { useHttpClientStore as ye } from "../../stores/useHttpClientStore.js";
|
|
19
|
+
import { useServerStore as ve } from "../../legacy/stores/useServerStore.js";
|
|
20
|
+
import { useExampleStore as he } from "../../legacy/stores/useExampleStore.js";
|
|
21
|
+
import { useAuthenticationStore as ge } from "../../legacy/stores/useAuthenticationStore.js";
|
|
22
|
+
import { getUrlFromServerState as Se } from "../../legacy/helpers/getUrlFromServerState.js";
|
|
23
|
+
import { getHarRequest as Ke } from "../../helpers/getHarRequest.js";
|
|
24
|
+
const xe = ["id"], Ce = ["id"], ke = {
|
|
25
25
|
key: 0,
|
|
26
26
|
class: "request-card-footer-addon"
|
|
27
|
-
},
|
|
27
|
+
}, Ee = { class: "request-header" }, Ge = /* @__PURE__ */ G({
|
|
28
28
|
__name: "ExampleRequest",
|
|
29
29
|
props: {
|
|
30
30
|
operation: {},
|
|
31
31
|
fallback: { type: Boolean }
|
|
32
32
|
},
|
|
33
|
-
setup(
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
)}`, { selectedExampleKey:
|
|
37
|
-
httpClient:
|
|
38
|
-
setHttpClient:
|
|
39
|
-
availableTargets:
|
|
40
|
-
httpTargetTitle:
|
|
41
|
-
httpClientTitle:
|
|
42
|
-
} =
|
|
33
|
+
setup(w) {
|
|
34
|
+
const l = w, b = `components-Content-Operation-Example-Request${re(
|
|
35
|
+
l.operation.path + l.operation.httpVerb + l.operation.operationId
|
|
36
|
+
)}`, { selectedExampleKey: q, operationId: I } = he(), {
|
|
37
|
+
httpClient: i,
|
|
38
|
+
setHttpClient: A,
|
|
39
|
+
availableTargets: _,
|
|
40
|
+
httpTargetTitle: J,
|
|
41
|
+
httpClientTitle: L
|
|
42
|
+
} = ye(), { server: P } = ve(), { authentication: V } = ge(), h = Q(), m = f(() => {
|
|
43
43
|
var t;
|
|
44
44
|
const e = ["x-custom-examples", "x-codeSamples", "x-code-samples"];
|
|
45
45
|
for (const o of e)
|
|
46
|
-
if ((t =
|
|
47
|
-
return [...
|
|
46
|
+
if ((t = l.operation.information) != null && t[o])
|
|
47
|
+
return [...l.operation.information[o]];
|
|
48
48
|
return [];
|
|
49
|
-
}),
|
|
49
|
+
}), n = W(
|
|
50
50
|
// Default to first custom example
|
|
51
51
|
m.value.length ? {
|
|
52
52
|
targetKey: "customExamples",
|
|
@@ -54,71 +54,75 @@ const ge = ["id"], Se = ["id"], Ke = {
|
|
|
54
54
|
} : (
|
|
55
55
|
// Otherwise use the globally selected HTTP client
|
|
56
56
|
{
|
|
57
|
-
targetKey:
|
|
58
|
-
clientKey:
|
|
57
|
+
targetKey: i.targetKey,
|
|
58
|
+
clientKey: i.clientKey
|
|
59
59
|
}
|
|
60
60
|
)
|
|
61
61
|
);
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
targetKey:
|
|
65
|
-
clientKey:
|
|
62
|
+
X(i, () => {
|
|
63
|
+
n.value = {
|
|
64
|
+
targetKey: i.targetKey,
|
|
65
|
+
clientKey: i.clientKey
|
|
66
66
|
};
|
|
67
67
|
});
|
|
68
|
-
const
|
|
68
|
+
const $ = f(
|
|
69
69
|
() => {
|
|
70
|
-
var e, t, o,
|
|
70
|
+
var e, t, o, u;
|
|
71
71
|
return Object.keys(
|
|
72
|
-
((
|
|
72
|
+
((u = (o = (t = (e = l.operation.information) == null ? void 0 : e.requestBody) == null ? void 0 : t.content) == null ? void 0 : o["application/json"]) == null ? void 0 : u.examples) ?? {}
|
|
73
73
|
).length > 1;
|
|
74
74
|
}
|
|
75
|
-
),
|
|
76
|
-
async function
|
|
77
|
-
var
|
|
78
|
-
if (
|
|
79
|
-
return ((
|
|
80
|
-
const e =
|
|
75
|
+
), g = Z(ue);
|
|
76
|
+
async function H() {
|
|
77
|
+
var c, d;
|
|
78
|
+
if (n.value.targetKey === "customExamples")
|
|
79
|
+
return ((c = m.value[n.value.clientKey]) == null ? void 0 : c.source) ?? "";
|
|
80
|
+
const e = f(() => {
|
|
81
|
+
var R, B;
|
|
82
|
+
const S = (B = (R = l.operation.information) == null ? void 0 : R.servers) == null ? void 0 : B[0], { modifiedUrl: z } = Se(P, S);
|
|
83
|
+
return z;
|
|
84
|
+
}), t = Ke(
|
|
81
85
|
{
|
|
82
|
-
url:
|
|
86
|
+
url: e.value
|
|
83
87
|
},
|
|
84
|
-
|
|
85
|
-
|
|
88
|
+
se(
|
|
89
|
+
l.operation,
|
|
86
90
|
{
|
|
87
91
|
replaceVariables: !0
|
|
88
92
|
},
|
|
89
|
-
|
|
93
|
+
q.value,
|
|
90
94
|
!0
|
|
91
95
|
),
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
((
|
|
96
|
+
ce(
|
|
97
|
+
V,
|
|
98
|
+
((d = l.operation.information) == null ? void 0 : d.security) ?? (g == null ? void 0 : g())
|
|
95
99
|
)
|
|
96
|
-
),
|
|
97
|
-
return await
|
|
100
|
+
), o = i.clientKey, u = i.targetKey;
|
|
101
|
+
return await fe(t, u, o) ?? "";
|
|
98
102
|
}
|
|
99
|
-
const
|
|
103
|
+
const O = le(async () => {
|
|
100
104
|
try {
|
|
101
|
-
return await
|
|
105
|
+
return await H();
|
|
102
106
|
} catch (e) {
|
|
103
107
|
return console.error("[generateSnippet]", e), "";
|
|
104
108
|
}
|
|
105
|
-
},
|
|
106
|
-
|
|
107
|
-
const e =
|
|
108
|
-
e.payload.data[
|
|
109
|
+
}, ae[b] ?? "");
|
|
110
|
+
ee(async () => {
|
|
111
|
+
const e = te();
|
|
112
|
+
e.payload.data[b] = await H();
|
|
109
113
|
});
|
|
110
|
-
const
|
|
114
|
+
const M = f(() => {
|
|
111
115
|
var t, o;
|
|
112
116
|
const e = (
|
|
113
117
|
// Specified language
|
|
114
|
-
((t =
|
|
118
|
+
((t = n.value) == null ? void 0 : t.targetKey) === "customExamples" ? ((o = m.value[n.value.clientKey]) == null ? void 0 : o.lang) ?? "plaintext" : (
|
|
115
119
|
// Or language for the globally selected HTTP client
|
|
116
|
-
|
|
120
|
+
i.targetKey
|
|
117
121
|
)
|
|
118
122
|
);
|
|
119
|
-
return e === "shell" &&
|
|
120
|
-
}),
|
|
121
|
-
const e =
|
|
123
|
+
return e === "shell" && O.value.includes("curl") ? "curl" : e === "Objective-C" ? "objc" : e;
|
|
124
|
+
}), Y = f(() => {
|
|
125
|
+
const e = _.value.map((t) => ({
|
|
122
126
|
value: t.key,
|
|
123
127
|
label: t.title,
|
|
124
128
|
options: t.clients.map((o) => ({
|
|
@@ -141,128 +145,128 @@ const ge = ["id"], Se = ["id"], Ke = {
|
|
|
141
145
|
}))
|
|
142
146
|
}), e;
|
|
143
147
|
});
|
|
144
|
-
function
|
|
148
|
+
function D(e) {
|
|
145
149
|
const t = JSON.parse(e);
|
|
146
|
-
t.targetKey === "customExamples" ?
|
|
150
|
+
t.targetKey === "customExamples" ? n.value = t : A(t);
|
|
147
151
|
}
|
|
148
|
-
return (e, t) => r(
|
|
152
|
+
return (e, t) => r(_).length || m.value.length ? (p(), K(r(j), {
|
|
149
153
|
key: 0,
|
|
150
154
|
class: "dark-mode"
|
|
151
155
|
}, {
|
|
152
156
|
default: a(() => [
|
|
153
|
-
|
|
157
|
+
s(r(me), { muted: "" }, {
|
|
154
158
|
actions: a(() => [
|
|
155
|
-
|
|
159
|
+
s(ie, {
|
|
156
160
|
class: "request-client-picker",
|
|
157
|
-
controls: `${r(
|
|
158
|
-
modelValue: JSON.stringify(
|
|
159
|
-
options:
|
|
160
|
-
"onUpdate:modelValue":
|
|
161
|
+
controls: `${r(h)}-example`,
|
|
162
|
+
modelValue: JSON.stringify(n.value),
|
|
163
|
+
options: Y.value,
|
|
164
|
+
"onUpdate:modelValue": D
|
|
161
165
|
}, {
|
|
162
166
|
default: a(() => [
|
|
163
|
-
|
|
164
|
-
|
|
167
|
+
n.value.targetKey === "customExamples" ? (p(), x(N, { key: 0 }, [
|
|
168
|
+
s(T, null, {
|
|
165
169
|
default: a(() => t[1] || (t[1] = [
|
|
166
|
-
|
|
170
|
+
y("Selected Example:")
|
|
167
171
|
])),
|
|
168
172
|
_: 1
|
|
169
173
|
}),
|
|
170
|
-
|
|
171
|
-
], 64)) : (p(),
|
|
172
|
-
|
|
174
|
+
y(" " + C(m.value[n.value.clientKey].label ?? "Example"), 1)
|
|
175
|
+
], 64)) : (p(), x(N, { key: 1 }, [
|
|
176
|
+
s(T, null, {
|
|
173
177
|
default: a(() => t[2] || (t[2] = [
|
|
174
|
-
|
|
178
|
+
y("Selected HTTP client:")
|
|
175
179
|
])),
|
|
176
180
|
_: 1
|
|
177
181
|
}),
|
|
178
|
-
|
|
182
|
+
y(" " + C(r(J)) + " " + C(r(L)), 1)
|
|
179
183
|
], 64))
|
|
180
184
|
]),
|
|
181
185
|
_: 1
|
|
182
186
|
}, 8, ["controls", "modelValue", "options"])
|
|
183
187
|
]),
|
|
184
188
|
default: a(() => [
|
|
185
|
-
|
|
186
|
-
id: `${r(
|
|
189
|
+
k("div", {
|
|
190
|
+
id: `${r(h)}-header`,
|
|
187
191
|
class: "request-header"
|
|
188
192
|
}, [
|
|
189
|
-
|
|
193
|
+
s(r(F), {
|
|
190
194
|
as: "span",
|
|
191
195
|
class: "request-method",
|
|
192
196
|
method: e.operation.httpVerb
|
|
193
197
|
}, null, 8, ["method"]),
|
|
194
|
-
|
|
195
|
-
], 8,
|
|
198
|
+
v(e.$slots, "header", {}, void 0, !0)
|
|
199
|
+
], 8, xe)
|
|
196
200
|
]),
|
|
197
201
|
_: 3
|
|
198
202
|
}),
|
|
199
|
-
|
|
203
|
+
s(r(U), {
|
|
200
204
|
borderless: "",
|
|
201
205
|
class: "request-editor-section custom-scroll",
|
|
202
206
|
frameless: ""
|
|
203
207
|
}, {
|
|
204
208
|
default: a(() => [
|
|
205
|
-
|
|
206
|
-
id: `${r(
|
|
209
|
+
k("div", {
|
|
210
|
+
id: `${r(h)}-example`,
|
|
207
211
|
class: "code-snippet"
|
|
208
212
|
}, [
|
|
209
|
-
|
|
213
|
+
s(r(oe), {
|
|
210
214
|
class: "bg-b-2",
|
|
211
|
-
content: r(
|
|
212
|
-
hideCredentials: r(
|
|
213
|
-
lang:
|
|
215
|
+
content: r(O),
|
|
216
|
+
hideCredentials: r(pe)(r(V)),
|
|
217
|
+
lang: M.value,
|
|
214
218
|
lineNumbers: ""
|
|
215
219
|
}, null, 8, ["content", "hideCredentials", "lang"])
|
|
216
|
-
], 8,
|
|
220
|
+
], 8, Ce)
|
|
217
221
|
]),
|
|
218
222
|
_: 1
|
|
219
223
|
}),
|
|
220
|
-
|
|
224
|
+
$.value || e.$slots.footer ? (p(), K(r(de), {
|
|
221
225
|
key: 0,
|
|
222
226
|
class: "request-card-footer",
|
|
223
227
|
contrast: ""
|
|
224
228
|
}, {
|
|
225
229
|
default: a(() => {
|
|
226
|
-
var o,
|
|
230
|
+
var o, u, c, d;
|
|
227
231
|
return [
|
|
228
|
-
|
|
229
|
-
|
|
232
|
+
$.value ? (p(), x("div", ke, [
|
|
233
|
+
s(ne, {
|
|
230
234
|
class: "request-example-selector",
|
|
231
|
-
examples: ((
|
|
232
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
235
|
+
examples: ((d = (c = (u = (o = e.operation.information) == null ? void 0 : o.requestBody) == null ? void 0 : u.content) == null ? void 0 : c["application/json"]) == null ? void 0 : d.examples) ?? [],
|
|
236
|
+
"onUpdate:modelValue": t[0] || (t[0] = (S) => (q.value = S, I.value = e.operation.operationId))
|
|
233
237
|
}, null, 8, ["examples"])
|
|
234
|
-
])) :
|
|
235
|
-
|
|
238
|
+
])) : E("", !0),
|
|
239
|
+
v(e.$slots, "footer", {}, void 0, !0)
|
|
236
240
|
];
|
|
237
241
|
}),
|
|
238
242
|
_: 3
|
|
239
|
-
})) :
|
|
243
|
+
})) : E("", !0)
|
|
240
244
|
]),
|
|
241
245
|
_: 3
|
|
242
|
-
})) : e.fallback ? (p(),
|
|
246
|
+
})) : e.fallback ? (p(), K(r(j), {
|
|
243
247
|
key: 1,
|
|
244
248
|
class: "dark-mode"
|
|
245
249
|
}, {
|
|
246
250
|
default: a(() => [
|
|
247
|
-
|
|
251
|
+
s(r(U), { class: "request-card-simple" }, {
|
|
248
252
|
default: a(() => [
|
|
249
|
-
|
|
250
|
-
|
|
253
|
+
k("div", Ee, [
|
|
254
|
+
s(r(F), {
|
|
251
255
|
as: "span",
|
|
252
256
|
class: "request-method",
|
|
253
257
|
method: e.operation.httpVerb
|
|
254
258
|
}, null, 8, ["method"]),
|
|
255
|
-
|
|
259
|
+
v(e.$slots, "header", {}, void 0, !0)
|
|
256
260
|
]),
|
|
257
|
-
|
|
261
|
+
v(e.$slots, "footer", {}, void 0, !0)
|
|
258
262
|
]),
|
|
259
263
|
_: 3
|
|
260
264
|
})
|
|
261
265
|
]),
|
|
262
266
|
_: 3
|
|
263
|
-
})) :
|
|
267
|
+
})) : E("", !0);
|
|
264
268
|
}
|
|
265
269
|
});
|
|
266
270
|
export {
|
|
267
|
-
|
|
271
|
+
Ge as default
|
|
268
272
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from "./ParameterHeaders.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const m = /* @__PURE__ */ e
|
|
3
|
+
import r from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const m = /* @__PURE__ */ r(e, [["__scopeId", "data-v-2f99eae6"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as f, openBlock as e, createBlock as m, unref as a, withCtx as c, createElementVNode as p, normalizeClass as o, createVNode as d, createElementBlock as l, Fragment as
|
|
1
|
+
import { defineComponent as f, openBlock as e, createBlock as m, 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 v from "../../../components/Content/Schema/SchemaProperty.vue.js";
|
|
3
3
|
import { Disclosure as k, DisclosureButton as B, DisclosurePanel as H } from "@headlessui/vue";
|
|
4
4
|
import { ScalarIcon as S } from "@scalar/components";
|
|
@@ -29,11 +29,11 @@ const V = /* @__PURE__ */ f({
|
|
|
29
29
|
d(a(S), {
|
|
30
30
|
class: o(["headers-card-title-icon", { "headers-card-title-icon--open": r }]),
|
|
31
31
|
icon: "Add",
|
|
32
|
-
|
|
32
|
+
size: "sm"
|
|
33
33
|
}, null, 8, ["class"]),
|
|
34
|
-
r ? (e(), l(
|
|
34
|
+
r ? (e(), l(i, { key: 0 }, [
|
|
35
35
|
u(" Hide Headers ")
|
|
36
|
-
], 64)) : (e(), l(
|
|
36
|
+
], 64)) : (e(), l(i, { key: 1 }, [
|
|
37
37
|
u(" Show Headers ")
|
|
38
38
|
], 64))
|
|
39
39
|
]),
|
|
@@ -41,10 +41,10 @@ const V = /* @__PURE__ */ f({
|
|
|
41
41
|
}, 1024),
|
|
42
42
|
d(a(H), null, {
|
|
43
43
|
default: c(() => [
|
|
44
|
-
(e(!0), l(
|
|
45
|
-
key:
|
|
44
|
+
(e(!0), l(i, null, _(t.headers, (s, n) => (e(), m(v, {
|
|
45
|
+
key: n,
|
|
46
46
|
description: s.description,
|
|
47
|
-
name: `${
|
|
47
|
+
name: `${n}`,
|
|
48
48
|
value: h(s) ? s.schema : void 0
|
|
49
49
|
}, null, 8, ["description", "name", "value"]))), 128))
|
|
50
50
|
]),
|
|
@@ -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":"AAmOA,OAAO,KAAK,EAAe,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAQlE,KAAK,WAAW,GAAG;IACf,SAAS,EAAE,SAAS,CAAA;IACpB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B,CAAC;;kBAFe,OAAO;sBACH,OAAO;;AA6O9B,wBAQG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./ParameterListItem.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const e = /* @__PURE__ */
|
|
3
|
+
import o from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const e = /* @__PURE__ */ o(t, [["__scopeId", "data-v-9508a2d2"]]);
|
|
5
5
|
export {
|
|
6
6
|
e as default
|
|
7
7
|
};
|
|
@@ -5,7 +5,7 @@ import { ScalarIcon as T } from "@scalar/components";
|
|
|
5
5
|
import _ from "./ContentTypeSelect.vue.js";
|
|
6
6
|
import I from "./ParameterHeaders.vue.js";
|
|
7
7
|
import N from "../../../components/Content/Schema/SchemaProperty.vue.js";
|
|
8
|
-
const P = { class: "parameter-item" }, j = { class: "parameter-item-name" }, E = { class: "parameter-item-type" },
|
|
8
|
+
const P = { class: "parameter-item" }, j = { class: "parameter-item-name" }, E = { class: "parameter-item-type" }, R = { class: "absolute right-0" }, J = /* @__PURE__ */ k({
|
|
9
9
|
__name: "ParameterListItem",
|
|
10
10
|
props: {
|
|
11
11
|
parameter: {},
|
|
@@ -29,8 +29,7 @@ const P = { class: "parameter-item" }, j = { class: "parameter-item-name" }, E =
|
|
|
29
29
|
r(n(T), {
|
|
30
30
|
class: "parameter-item-icon",
|
|
31
31
|
icon: p ? "ChevronDown" : "ChevronRight",
|
|
32
|
-
|
|
33
|
-
thickness: "1.75"
|
|
32
|
+
thickness: "1.5"
|
|
34
33
|
}, null, 8, ["icon"]),
|
|
35
34
|
r(V, null, {
|
|
36
35
|
default: m(() => [
|
|
@@ -40,7 +39,7 @@ const P = { class: "parameter-item" }, j = { class: "parameter-item-name" }, E =
|
|
|
40
39
|
}, 1024),
|
|
41
40
|
u("span", j, c(e.parameter.name), 1),
|
|
42
41
|
u("span", E, c(e.parameter.description), 1),
|
|
43
|
-
u("div",
|
|
42
|
+
u("div", R, [
|
|
44
43
|
a.value && t.parameter.content ? (s(), i(_, {
|
|
45
44
|
key: 0,
|
|
46
45
|
class: "parameter-item-content-type",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestBodyPropertiesChild.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/RequestBodyPropertiesChild.vue"],"names":[],"mappings":"AAmCA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAKhD,KAAK,WAAW,GAAG;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE,CAAC;;
|
|
1
|
+
{"version":3,"file":"RequestBodyPropertiesChild.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/RequestBodyPropertiesChild.vue"],"names":[],"mappings":"AAmCA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAKhD,KAAK,WAAW,GAAG;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE,CAAC;;AAqF5D,wBAMG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ClassicLayout.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ClassicLayout.vue"],"names":[],"mappings":"AAkSA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAShE,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,SAAS,EAAE,oBAAoB,CAAA;CAChC,CAAC;;AAuPF,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ClassicLayout.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-5753de10"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ModernLayout.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ModernLayout.vue"],"names":[],"mappings":"AA8GA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAOhE,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,SAAS,EAAE,oBAAoB,CAAA;CAChC,CAAC;;AAoNF,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ModernLayout.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-aec31ba9"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|