@scalar/api-reference 1.28.19 → 1.28.21
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 +41 -0
- package/dist/browser/standalone.js +514 -514
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/DocumentSelector/DocumentSelector.vue.d.ts.map +1 -1
- package/dist/components/DocumentSelector/DocumentSelector.vue.js +1 -1
- 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 +18 -18
- package/dist/features/ApiClientModal/useApiClient.d.ts +5302 -5302
- package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue.js +3 -3
- package/dist/features/ExampleRequest/ExampleRequest.vue2.js +145 -133
- 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 -1
- package/dist/helpers/get-request.d.ts.map +1 -1
- package/dist/hooks/useMultipleDocuments.d.ts +1 -1
- package/dist/hooks/useMultipleDocuments.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +9 -9
- package/dist/components/Spinner/Spinner.vue.d.ts +0 -3
- package/dist/components/Spinner/Spinner.vue.d.ts.map +0 -1
- package/dist/components/Spinner/index.d.ts +0 -2
- package/dist/components/Spinner/index.d.ts.map +0 -1
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useWorkspace as
|
|
3
|
-
import { getSnippet as
|
|
4
|
-
import { filterSecurityRequirements as
|
|
5
|
-
import { ScalarCodeBlock as
|
|
6
|
-
import
|
|
7
|
-
import { freezeElement as
|
|
8
|
-
import { useConfig as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
1
|
+
import { defineComponent as X, useId as Y, computed as m, ref as B, watch as Z, unref as a, openBlock as d, createBlock as x, withCtx as n, createVNode as s, createElementBlock as K, Fragment as j, createTextVNode as p, toDisplayString as h, createElementVNode as k, renderSlot as y, createCommentVNode as E } from "vue";
|
|
2
|
+
import { useWorkspace as _ } from "@scalar/api-client/store";
|
|
3
|
+
import { getSnippet as ee } from "@scalar/api-client/views/Components/CodeSnippet";
|
|
4
|
+
import { filterSecurityRequirements as te } from "@scalar/api-client/views/Request/RequestSection";
|
|
5
|
+
import { ScalarCodeBlock as le } from "@scalar/components";
|
|
6
|
+
import b from "../../components/ScreenReader.vue.js";
|
|
7
|
+
import { freezeElement as ae } from "../../helpers/freeze-element.js";
|
|
8
|
+
import { useConfig as oe } from "../../hooks/useConfig.js";
|
|
9
|
+
import re from "./ExamplePicker.vue.js";
|
|
10
|
+
import ne from "./TextSelect.vue.js";
|
|
11
11
|
/* empty css */
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import { useExampleStore as
|
|
18
|
-
import { useHttpClientStore as
|
|
19
|
-
const
|
|
12
|
+
import w from "../../components/Card/Card.vue.js";
|
|
13
|
+
import se from "../../components/Card/CardHeader.vue.js";
|
|
14
|
+
import H from "../../components/HttpMethod/HttpMethod.vue.js";
|
|
15
|
+
import R from "../../components/Card/CardContent.vue.js";
|
|
16
|
+
import ie from "../../components/Card/CardFooter.vue.js";
|
|
17
|
+
import { useExampleStore as ue } from "../../legacy/stores/useExampleStore.js";
|
|
18
|
+
import { useHttpClientStore as ce } from "../../stores/useHttpClientStore.js";
|
|
19
|
+
const me = ["id"], de = ["id"], pe = {
|
|
20
20
|
key: 0,
|
|
21
21
|
class: "request-card-footer-addon"
|
|
22
|
-
},
|
|
22
|
+
}, fe = { class: "request-header" }, je = /* @__PURE__ */ X({
|
|
23
23
|
__name: "ExampleRequest",
|
|
24
24
|
props: {
|
|
25
25
|
operation: {},
|
|
@@ -28,88 +28,88 @@ const ie = ["id"], ue = ["id"], me = {
|
|
|
28
28
|
fallback: { type: Boolean },
|
|
29
29
|
transformedOperation: {}
|
|
30
30
|
},
|
|
31
|
-
setup(
|
|
32
|
-
const { selectedExampleKey:
|
|
33
|
-
httpClient:
|
|
34
|
-
setHttpClient:
|
|
35
|
-
availableTargets:
|
|
36
|
-
httpTargetTitle:
|
|
37
|
-
httpClientTitle:
|
|
38
|
-
} =
|
|
31
|
+
setup(o) {
|
|
32
|
+
const { selectedExampleKey: S, operationId: J } = ue(), { requestExamples: C, securitySchemes: q, requestExampleMutators: U } = _(), F = oe(), {
|
|
33
|
+
httpClient: i,
|
|
34
|
+
setHttpClient: I,
|
|
35
|
+
availableTargets: O,
|
|
36
|
+
httpTargetTitle: M,
|
|
37
|
+
httpClientTitle: z
|
|
38
|
+
} = ce(), f = Y(), u = m(() => {
|
|
39
39
|
var t;
|
|
40
40
|
const e = ["x-custom-examples", "x-codeSamples", "x-code-samples"];
|
|
41
41
|
for (const l of e)
|
|
42
|
-
if ((t =
|
|
43
|
-
return [...
|
|
42
|
+
if ((t = o.transformedOperation.information) != null && t[l])
|
|
43
|
+
return [...o.transformedOperation.information[l]];
|
|
44
44
|
return [];
|
|
45
|
-
}), r =
|
|
45
|
+
}), r = B(
|
|
46
46
|
// Default to first custom example
|
|
47
|
-
|
|
47
|
+
u.value.length ? {
|
|
48
48
|
targetKey: "customExamples",
|
|
49
49
|
clientKey: 0
|
|
50
50
|
} : (
|
|
51
51
|
// Otherwise use the globally selected HTTP client
|
|
52
52
|
{
|
|
53
|
-
targetKey:
|
|
54
|
-
clientKey:
|
|
53
|
+
targetKey: i.targetKey,
|
|
54
|
+
clientKey: i.clientKey
|
|
55
55
|
}
|
|
56
56
|
)
|
|
57
57
|
);
|
|
58
|
-
|
|
58
|
+
Z(i, () => {
|
|
59
59
|
r.value = {
|
|
60
|
-
targetKey:
|
|
61
|
-
clientKey:
|
|
60
|
+
targetKey: i.targetKey,
|
|
61
|
+
clientKey: i.clientKey
|
|
62
62
|
};
|
|
63
63
|
});
|
|
64
|
-
const
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
).length > 1;
|
|
70
|
-
}
|
|
71
|
-
), M = () => {
|
|
72
|
-
var g;
|
|
64
|
+
const $ = m(() => {
|
|
65
|
+
const e = v.value;
|
|
66
|
+
return Object.keys(e).length > 1;
|
|
67
|
+
}), P = () => {
|
|
68
|
+
var T;
|
|
73
69
|
if (r.value.targetKey === "customExamples")
|
|
74
|
-
return ((
|
|
75
|
-
const e =
|
|
70
|
+
return ((T = u.value[r.value.clientKey]) == null ? void 0 : T.source) ?? "";
|
|
71
|
+
const e = i.clientKey, t = i.targetKey, l = C[o.operation.examples[0]];
|
|
76
72
|
if (!l)
|
|
77
73
|
return "";
|
|
78
|
-
const
|
|
79
|
-
|
|
80
|
-
|
|
74
|
+
const c = te(
|
|
75
|
+
o.operation.security || o.collection.security,
|
|
76
|
+
o.collection.selectedSecuritySchemeUids,
|
|
81
77
|
q
|
|
82
|
-
), [
|
|
83
|
-
operation:
|
|
78
|
+
), [V, Q] = ee(t, e, {
|
|
79
|
+
operation: o.operation,
|
|
84
80
|
example: l,
|
|
85
|
-
server:
|
|
86
|
-
securitySchemes:
|
|
81
|
+
server: o.server,
|
|
82
|
+
securitySchemes: c
|
|
87
83
|
});
|
|
88
|
-
return
|
|
89
|
-
}, N =
|
|
84
|
+
return V ? V.message ?? "" : Q;
|
|
85
|
+
}, N = m(() => {
|
|
90
86
|
try {
|
|
91
|
-
return
|
|
87
|
+
return P();
|
|
92
88
|
} catch (e) {
|
|
93
89
|
return console.error("[generateSnippet]", e), "";
|
|
94
90
|
}
|
|
95
|
-
}),
|
|
91
|
+
}), v = m(() => {
|
|
92
|
+
var l, c;
|
|
93
|
+
const e = ((c = (l = o.transformedOperation.information) == null ? void 0 : l.requestBody) == null ? void 0 : c.content) ?? {}, t = Object.values(e)[0];
|
|
94
|
+
return (t == null ? void 0 : t.examples) ?? {};
|
|
95
|
+
}), D = m(() => {
|
|
96
96
|
var t, l;
|
|
97
97
|
const e = (
|
|
98
98
|
// Specified language
|
|
99
|
-
((t = r.value) == null ? void 0 : t.targetKey) === "customExamples" ? ((l =
|
|
99
|
+
((t = r.value) == null ? void 0 : t.targetKey) === "customExamples" ? ((l = u.value[r.value.clientKey]) == null ? void 0 : l.lang) ?? "plaintext" : (
|
|
100
100
|
// Or language for the globally selected HTTP client
|
|
101
|
-
|
|
101
|
+
i.targetKey
|
|
102
102
|
)
|
|
103
103
|
);
|
|
104
104
|
return e === "shell" && N.value.includes("curl") ? "curl" : e === "Objective-C" ? "objc" : e;
|
|
105
|
-
}),
|
|
105
|
+
}), W = m(
|
|
106
106
|
() => Object.values(q).flatMap((e) => e.type === "apiKey" ? e.value : (e == null ? void 0 : e.type) === "http" ? [
|
|
107
107
|
e.token,
|
|
108
108
|
e.password,
|
|
109
109
|
btoa(`${e.username}:${e.password}`)
|
|
110
110
|
] : e.type === "oauth2" ? Object.values(e.flows).map((t) => t.token) : [])
|
|
111
|
-
),
|
|
112
|
-
const e =
|
|
111
|
+
), A = m(() => {
|
|
112
|
+
const e = O.value.map((t) => ({
|
|
113
113
|
value: t.key,
|
|
114
114
|
label: t.title,
|
|
115
115
|
options: t.clients.map((l) => ({
|
|
@@ -120,10 +120,10 @@ const ie = ["id"], ue = ["id"], me = {
|
|
|
120
120
|
label: l.title
|
|
121
121
|
}))
|
|
122
122
|
}));
|
|
123
|
-
return
|
|
123
|
+
return u.value.length && e.unshift({
|
|
124
124
|
value: "customExamples",
|
|
125
125
|
label: "Examples",
|
|
126
|
-
options:
|
|
126
|
+
options: u.value.map((t, l) => ({
|
|
127
127
|
value: JSON.stringify({
|
|
128
128
|
targetKey: "customExamples",
|
|
129
129
|
clientKey: l
|
|
@@ -131,145 +131,157 @@ const ie = ["id"], ue = ["id"], me = {
|
|
|
131
131
|
label: t.label ?? t.lang ?? `Example #${l + 1}`
|
|
132
132
|
}))
|
|
133
133
|
}), e;
|
|
134
|
-
}),
|
|
135
|
-
function
|
|
134
|
+
}), g = B(null);
|
|
135
|
+
function G(e) {
|
|
136
136
|
const t = JSON.parse(e);
|
|
137
|
-
if (
|
|
138
|
-
const l =
|
|
137
|
+
if (g.value) {
|
|
138
|
+
const l = ae(g.value.$el);
|
|
139
139
|
setTimeout(() => {
|
|
140
140
|
l();
|
|
141
141
|
}, 300);
|
|
142
142
|
}
|
|
143
|
-
t.targetKey === "customExamples" || r.value.targetKey === "customExamples" && t.targetKey ===
|
|
143
|
+
t.targetKey === "customExamples" || r.value.targetKey === "customExamples" && t.targetKey === i.targetKey && t.clientKey === i.clientKey ? r.value = t : I(t);
|
|
144
|
+
}
|
|
145
|
+
function L(e) {
|
|
146
|
+
S.value = e, J.value = o.operation.operationId;
|
|
147
|
+
const t = C[o.operation.examples[0]], l = v.value[e];
|
|
148
|
+
if (t && (l != null && l.value))
|
|
149
|
+
try {
|
|
150
|
+
U.edit(
|
|
151
|
+
t.uid,
|
|
152
|
+
"body.raw.value",
|
|
153
|
+
JSON.stringify(l.value, null, 2)
|
|
154
|
+
);
|
|
155
|
+
} catch (c) {
|
|
156
|
+
console.error("[handleExampleUpdate]", c);
|
|
157
|
+
}
|
|
144
158
|
}
|
|
145
|
-
return (e, t) =>
|
|
159
|
+
return (e, t) => a(O).length || u.value.length ? (d(), x(a(w), {
|
|
146
160
|
key: 0,
|
|
147
|
-
"aria-labelledby": `${
|
|
161
|
+
"aria-labelledby": `${a(f)}-header`,
|
|
148
162
|
class: "dark-mode",
|
|
149
163
|
ref_key: "elem",
|
|
150
|
-
ref:
|
|
164
|
+
ref: g,
|
|
151
165
|
role: "region"
|
|
152
166
|
}, {
|
|
153
|
-
default:
|
|
154
|
-
|
|
155
|
-
actions:
|
|
156
|
-
|
|
167
|
+
default: n(() => [
|
|
168
|
+
s(a(se), { muted: "" }, {
|
|
169
|
+
actions: n(() => [
|
|
170
|
+
s(ne, {
|
|
157
171
|
class: "request-client-picker",
|
|
158
|
-
controls: `${
|
|
172
|
+
controls: `${a(f)}-example`,
|
|
159
173
|
modelValue: JSON.stringify(r.value),
|
|
160
|
-
options:
|
|
161
|
-
"onUpdate:modelValue":
|
|
174
|
+
options: A.value,
|
|
175
|
+
"onUpdate:modelValue": G
|
|
162
176
|
}, {
|
|
163
|
-
default:
|
|
164
|
-
r.value.targetKey === "customExamples" ? (d(),
|
|
165
|
-
|
|
166
|
-
default:
|
|
167
|
-
|
|
177
|
+
default: n(() => [
|
|
178
|
+
r.value.targetKey === "customExamples" ? (d(), K(j, { key: 0 }, [
|
|
179
|
+
s(b, null, {
|
|
180
|
+
default: n(() => t[1] || (t[1] = [
|
|
181
|
+
p("Selected Example:")
|
|
168
182
|
])),
|
|
169
183
|
_: 1
|
|
170
184
|
}),
|
|
171
|
-
|
|
172
|
-
], 64)) : (d(),
|
|
173
|
-
|
|
174
|
-
default:
|
|
175
|
-
|
|
185
|
+
p(" " + h(u.value[r.value.clientKey].label ?? "Example"), 1)
|
|
186
|
+
], 64)) : (d(), K(j, { key: 1 }, [
|
|
187
|
+
s(b, null, {
|
|
188
|
+
default: n(() => t[2] || (t[2] = [
|
|
189
|
+
p("Selected HTTP client:")
|
|
176
190
|
])),
|
|
177
191
|
_: 1
|
|
178
192
|
}),
|
|
179
|
-
|
|
193
|
+
p(" " + h(a(M)) + " " + h(a(z)), 1)
|
|
180
194
|
], 64))
|
|
181
195
|
]),
|
|
182
196
|
_: 1
|
|
183
197
|
}, 8, ["controls", "modelValue", "options"])
|
|
184
198
|
]),
|
|
185
|
-
default:
|
|
186
|
-
|
|
187
|
-
id: `${
|
|
199
|
+
default: n(() => [
|
|
200
|
+
k("div", {
|
|
201
|
+
id: `${a(f)}-header`,
|
|
188
202
|
class: "request-header"
|
|
189
203
|
}, [
|
|
190
|
-
|
|
191
|
-
default:
|
|
192
|
-
|
|
204
|
+
s(b, null, {
|
|
205
|
+
default: n(() => t[0] || (t[0] = [
|
|
206
|
+
p("Request Example for")
|
|
193
207
|
])),
|
|
194
208
|
_: 1
|
|
195
209
|
}),
|
|
196
|
-
|
|
210
|
+
s(a(H), {
|
|
197
211
|
as: "span",
|
|
198
212
|
class: "request-method",
|
|
199
213
|
method: e.operation.method
|
|
200
214
|
}, null, 8, ["method"]),
|
|
201
|
-
|
|
202
|
-
], 8,
|
|
215
|
+
y(e.$slots, "header", {}, void 0, !0)
|
|
216
|
+
], 8, me)
|
|
203
217
|
]),
|
|
204
218
|
_: 3
|
|
205
219
|
}),
|
|
206
|
-
|
|
220
|
+
s(a(R), {
|
|
207
221
|
borderless: "",
|
|
208
222
|
class: "request-editor-section custom-scroll",
|
|
209
223
|
frameless: ""
|
|
210
224
|
}, {
|
|
211
|
-
default:
|
|
212
|
-
|
|
213
|
-
id: `${
|
|
225
|
+
default: n(() => [
|
|
226
|
+
k("div", {
|
|
227
|
+
id: `${a(f)}-example`,
|
|
214
228
|
class: "code-snippet"
|
|
215
229
|
}, [
|
|
216
|
-
|
|
230
|
+
s(a(le), {
|
|
217
231
|
class: "bg-b-2 -outline-offset-2",
|
|
218
232
|
content: N.value,
|
|
219
|
-
hideCredentials:
|
|
220
|
-
lang:
|
|
233
|
+
hideCredentials: W.value,
|
|
234
|
+
lang: D.value,
|
|
221
235
|
lineNumbers: ""
|
|
222
236
|
}, null, 8, ["content", "hideCredentials", "lang"])
|
|
223
|
-
], 8,
|
|
237
|
+
], 8, de)
|
|
224
238
|
]),
|
|
225
239
|
_: 1
|
|
226
240
|
}),
|
|
227
|
-
(
|
|
241
|
+
($.value || !a(F).hideTestRequestButton) && e.$slots.footer ? (d(), x(a(ie), {
|
|
228
242
|
key: 0,
|
|
229
243
|
class: "request-card-footer",
|
|
230
244
|
contrast: ""
|
|
231
245
|
}, {
|
|
232
|
-
default:
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
];
|
|
244
|
-
}),
|
|
246
|
+
default: n(() => [
|
|
247
|
+
$.value ? (d(), K("div", pe, [
|
|
248
|
+
s(re, {
|
|
249
|
+
class: "request-example-selector",
|
|
250
|
+
examples: v.value,
|
|
251
|
+
modelValue: a(S),
|
|
252
|
+
"onUpdate:modelValue": L
|
|
253
|
+
}, null, 8, ["examples", "modelValue"])
|
|
254
|
+
])) : E("", !0),
|
|
255
|
+
y(e.$slots, "footer", {}, void 0, !0)
|
|
256
|
+
]),
|
|
245
257
|
_: 3
|
|
246
|
-
})) :
|
|
258
|
+
})) : E("", !0)
|
|
247
259
|
]),
|
|
248
260
|
_: 3
|
|
249
|
-
}, 8, ["aria-labelledby"])) : e.fallback ? (d(),
|
|
261
|
+
}, 8, ["aria-labelledby"])) : e.fallback ? (d(), x(a(w), {
|
|
250
262
|
key: 1,
|
|
251
263
|
class: "dark-mode"
|
|
252
264
|
}, {
|
|
253
|
-
default:
|
|
254
|
-
|
|
255
|
-
default:
|
|
256
|
-
|
|
257
|
-
|
|
265
|
+
default: n(() => [
|
|
266
|
+
s(a(R), { class: "request-card-simple" }, {
|
|
267
|
+
default: n(() => [
|
|
268
|
+
k("div", fe, [
|
|
269
|
+
s(a(H), {
|
|
258
270
|
as: "span",
|
|
259
271
|
class: "request-method",
|
|
260
272
|
method: e.operation.method
|
|
261
273
|
}, null, 8, ["method"]),
|
|
262
|
-
|
|
274
|
+
y(e.$slots, "header", {}, void 0, !0)
|
|
263
275
|
]),
|
|
264
|
-
|
|
276
|
+
y(e.$slots, "footer", {}, void 0, !0)
|
|
265
277
|
]),
|
|
266
278
|
_: 3
|
|
267
279
|
})
|
|
268
280
|
]),
|
|
269
281
|
_: 3
|
|
270
|
-
})) :
|
|
282
|
+
})) : E("", !0);
|
|
271
283
|
}
|
|
272
284
|
});
|
|
273
285
|
export {
|
|
274
|
-
|
|
286
|
+
je as default
|
|
275
287
|
};
|
|
@@ -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":"AAmPA,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;;AA0Q9B,wBAOG"}
|
|
@@ -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-7ad4f6c6"]]);
|
|
5
5
|
export {
|
|
6
6
|
e as default
|
|
7
7
|
};
|
|
@@ -21,7 +21,7 @@ const N = {
|
|
|
21
21
|
v.value[0]
|
|
22
22
|
);
|
|
23
23
|
a.parameter.content && "application/json" in a.parameter.content && (s.value = "application/json");
|
|
24
|
-
const r = i(() => !!(a.collapsableItems && a.parameter.content)), k = i(() => a.parameter.readOnly !== !0);
|
|
24
|
+
const r = i(() => !!(a.collapsableItems && (a.parameter.content || a.parameter.headers))), k = i(() => a.parameter.readOnly !== !0);
|
|
25
25
|
return (e, d) => k.value ? (o(), C("li", N, [
|
|
26
26
|
m(t(S), null, {
|
|
27
27
|
default: c(({ open: l }) => [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-request.d.ts","sourceRoot":"","sources":["../../src/helpers/get-request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAE9D,6CAA6C;AAC7C,eAAO,MAAM,UAAU,aAAc,cAAc,CAAC,UAAU,CAAC,QAAQ,MAAM,UAAU,MAAM;
|
|
1
|
+
{"version":3,"file":"get-request.d.ts","sourceRoot":"","sources":["../../src/helpers/get-request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAE9D,6CAA6C;AAC7C,eAAO,MAAM,UAAU,aAAc,cAAc,CAAC,UAAU,CAAC,QAAQ,MAAM,UAAU,MAAM;yBAEkzT,KAAK;;;kDAA2H,KAAK,8CAA8C,KAAK;wCAA6E,KAAK;8BAA6D,KAAK;+BAAyD,KAAK;;;;;;mBAAwR,CAAC;;;;;;;;;;;;;mBAA8f,CAAC;eAAyC,CAAC;cAA6B,CAAC;eAA8B,CAAC;aAA4B,CAAC;gBAA8H,CAAC;iBAAoD,CAAC;mBAAkC,CAAC;;;;;;;aAAoO,CAAC;YAAsC,CAAC;;;;aAAyH,CAAC;YAAsC,CAAC;;;;aAA4H,CAAC;YAAsC,CAAC;;kCAAqF,eAAe;aADx9X,CAAA"}
|
|
@@ -23,7 +23,7 @@ export declare const useMultipleDocuments: ({ configuration, initialIndex, isInt
|
|
|
23
23
|
default?: boolean;
|
|
24
24
|
hideClientButton?: boolean | undefined;
|
|
25
25
|
showSidebar?: boolean | undefined;
|
|
26
|
-
theme?: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "none" | undefined;
|
|
26
|
+
theme?: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "laserwave" | "none" | undefined;
|
|
27
27
|
layout?: "modern" | "classic" | undefined;
|
|
28
28
|
isEditable?: boolean | undefined;
|
|
29
29
|
isLoading?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMultipleDocuments.d.ts","sourceRoot":"","sources":["../../src/hooks/useMultipleDocuments.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AAEnD,OAAO,EACL,KAAK,4BAA4B,EACjC,KAAK,iBAAiB,EAEvB,MAAM,6BAA6B,CAAA;AAGpC,OAAO,EAAE,KAAK,GAAG,EAAwB,MAAM,KAAK,CAAA;AAKpD,KAAK,yBAAyB,GAAG;IAC/B;;;OAGG;IACH,aAAa,EAAE,GAAG,CAAC,4BAA4B,GAAG,SAAS,CAAC,CAAA;IAC5D,2FAA2F;IAC3F,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB,GAAG,QAAQ,CAAA;AAIZ;;GAEG;AACH,eAAO,MAAM,uBAAuB,kBACnB,4BAA4B,GAAG,SAAS,KACtD,iBAAiB,EA6BnB,CAAA;AA0CD,eAAO,MAAM,oBAAoB,8EAM9B,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"useMultipleDocuments.d.ts","sourceRoot":"","sources":["../../src/hooks/useMultipleDocuments.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AAEnD,OAAO,EACL,KAAK,4BAA4B,EACjC,KAAK,iBAAiB,EAEvB,MAAM,6BAA6B,CAAA;AAGpC,OAAO,EAAE,KAAK,GAAG,EAAwB,MAAM,KAAK,CAAA;AAKpD,KAAK,yBAAyB,GAAG;IAC/B;;;OAGG;IACH,aAAa,EAAE,GAAG,CAAC,4BAA4B,GAAG,SAAS,CAAC,CAAA;IAC5D,2FAA2F;IAC3F,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB,GAAG,QAAQ,CAAA;AAIZ;;GAEG;AACH,eAAO,MAAM,uBAAuB,kBACnB,4BAA4B,GAAG,SAAS,KACtD,iBAAiB,EA6BnB,CAAA;AA0CD,eAAO,MAAM,oBAAoB,8EAM9B,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;0CA8H2zoB,GAAI;oBAAuF,GAAG;;;;yBAAiH,CAAC;;;;;;;;;;;;;yCAAymB,GAAI;2CAA6E,GAAI;6BAAgE,GAAG;qBAAwE,GAAG;uCAAyF,GAAI;2CAA6F,GAAI;;;;;gBAA0K,CAAC;WAA4B,GAAI;;gBAAyF,CAAC;WAA4B,GAAI;;gBAAuF,CAAC;WAA4B,GAAI;;;;uBAAkJ,CAAC;mBAAqC,CAAC;WAA4B,GAAI;;;kBAAmH,CAAC;WAA4B,GAAI;qCAAyE,GAAI;;2DAAgK,GAAI;4EAAgH,GAAI;;;uDA/K7otB,GAAG;;;;;;;;;mDAAH,GAAG;;;;;;;;CA8KrD,CAAA"}
|