@scalar/api-reference 1.25.9 → 1.25.11
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 +47 -0
- package/dist/browser/standalone.js +14512 -14482
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReference.vue.d.ts.map +1 -1
- package/dist/components/ApiReference.vue.js +43 -42
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +2 -2
- package/dist/components/ApiReferenceLayout.vue2.js +51 -48
- 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 +46 -48
- package/dist/components/Content/Operation/Operation.vue.js +2 -2
- package/dist/components/Content/Operation/Operation.vue2.js +14 -14
- package/dist/components/Content/Operation/OperationAccordion.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/OperationAccordion.vue.js +2 -2
- package/dist/components/Content/Operation/OperationAccordion.vue2.js +53 -49
- package/dist/components/Content/Operation/ParameterHeaders.vue.d.ts +21 -0
- package/dist/components/Content/Operation/ParameterHeaders.vue.d.ts.map +1 -0
- package/dist/components/Content/Operation/ParameterHeaders.vue.js +7 -0
- package/dist/components/Content/Operation/ParameterHeaders.vue2.js +62 -0
- package/dist/components/Content/Operation/ParameterItem.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/ParameterItem.vue.js +2 -2
- package/dist/components/Content/Operation/ParameterItem.vue2.js +34 -30
- package/dist/components/Content/Operation/TestRequestButton.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/TestRequestButton.vue.js +1 -1
- package/dist/components/Content/Operation/TestRequestButton.vue2.js +30 -22
- package/dist/components/Content/Schema/Schema.vue.js +2 -2
- package/dist/components/Content/Tag/Endpoints.vue.d.ts +2 -0
- package/dist/components/Content/Tag/Endpoints.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/Endpoints.vue.js +2 -2
- package/dist/components/Content/Tag/Endpoints.vue2.js +29 -25
- package/dist/components/Content/Tag/Tag.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/Tag.vue.js +2 -2
- package/dist/components/Content/Tag/Tag.vue2.js +15 -14
- package/dist/components/Content/Webhooks/Webhooks.vue.d.ts.map +1 -1
- package/dist/components/Content/Webhooks/Webhooks.vue.js +2 -2
- package/dist/components/Content/Webhooks/Webhooks.vue2.js +43 -45
- package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.d.ts.map +1 -1
- package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.js +3 -3
- package/dist/components/Layouts/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/components/Layouts/ClassicLayout.vue.js +18 -17
- 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 +31 -28
- package/dist/components/Section/CompactSection.vue.d.ts.map +1 -1
- package/dist/components/Section/CompactSection.vue.js +2 -2
- package/dist/{components/Content/Operation/PathResponses/ExampleResponse.vue.d.ts → embeds/ExampleResponses/ExampleResponses.vue.d.ts} +4 -9
- package/dist/embeds/ExampleResponses/ExampleResponses.vue.d.ts.map +1 -0
- package/dist/embeds/ExampleResponses/index.d.ts +2 -0
- package/dist/embeds/ExampleResponses/index.d.ts.map +1 -0
- package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts +8 -1
- package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts.map +1 -1
- package/dist/embeds/index.d.ts +1 -0
- package/dist/embeds/index.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerForm.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerForm.vue.js +2 -2
- package/dist/features/BaseUrl/ServerForm.vue2.js +5 -5
- package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue.js +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue2.js +118 -129
- package/dist/{components/Content/Operation/PathResponses/Headers.vue.d.ts → features/ExampleResponses/ExampleResponse.vue.d.ts} +4 -4
- package/dist/features/ExampleResponses/ExampleResponse.vue.d.ts.map +1 -0
- package/dist/features/ExampleResponses/ExampleResponse.vue.js +7 -0
- package/dist/features/ExampleResponses/ExampleResponse.vue2.js +37 -0
- package/dist/{components/Content/Operation/PathResponses/PathResponses.vue.d.ts → features/ExampleResponses/ExampleResponses.vue.d.ts} +1 -1
- package/dist/features/ExampleResponses/ExampleResponses.vue.d.ts.map +1 -0
- package/dist/features/ExampleResponses/ExampleResponses.vue.js +7 -0
- package/dist/{components/Content/Operation/PathResponses/PathResponses.vue2.js → features/ExampleResponses/ExampleResponses.vue2.js} +18 -18
- package/dist/features/ExampleResponses/index.d.ts +2 -0
- package/dist/features/ExampleResponses/index.d.ts.map +1 -0
- package/dist/helpers/createRequest.d.ts +6 -0
- package/dist/helpers/createRequest.d.ts.map +1 -0
- package/dist/helpers/createRequest.js +16 -0
- package/dist/helpers/getExampleCode.d.ts +9 -0
- package/dist/helpers/getExampleCode.d.ts.map +1 -0
- package/dist/helpers/getExampleCode.js +27 -0
- package/dist/helpers/index.d.ts +2 -0
- package/dist/helpers/index.d.ts.map +1 -1
- package/dist/helpers/mergeAllObjects.d.ts +3 -0
- package/dist/helpers/mergeAllObjects.d.ts.map +1 -1
- package/dist/helpers/provideSymbols.d.ts +1 -0
- package/dist/helpers/provideSymbols.d.ts.map +1 -1
- package/dist/helpers/provideSymbols.js +4 -3
- package/dist/hooks/useReactiveSpec.d.ts +7 -1
- package/dist/hooks/useReactiveSpec.d.ts.map +1 -1
- package/dist/hooks/useResponses.d.ts +4 -0
- package/dist/hooks/useResponses.d.ts.map +1 -1
- package/dist/hooks/useResponses.js +11 -10
- package/dist/index.js +95 -90
- package/dist/legacy/helpers/index.d.ts +1 -0
- package/dist/legacy/helpers/index.d.ts.map +1 -1
- package/dist/legacy/helpers/normalizeHeaderName.d.ts +5 -0
- package/dist/legacy/helpers/normalizeHeaderName.d.ts.map +1 -0
- package/dist/legacy/helpers/normalizeHeaderName.js +6 -0
- package/dist/legacy/helpers/normalizeHeaders.d.ts.map +1 -1
- package/dist/legacy/helpers/normalizeHeaders.js +15 -17
- package/dist/legacy/stores/useOpenApiStore.d.ts +7 -1
- package/dist/legacy/stores/useOpenApiStore.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types.d.ts +0 -8
- package/dist/types.d.ts.map +1 -1
- package/package.json +12 -12
- package/dist/components/Content/Operation/PathResponses/ExampleResponse.vue.d.ts.map +0 -1
- package/dist/components/Content/Operation/PathResponses/ExampleResponse.vue.js +0 -7
- package/dist/components/Content/Operation/PathResponses/ExampleResponse.vue2.js +0 -101
- package/dist/components/Content/Operation/PathResponses/Headers.vue.d.ts.map +0 -1
- package/dist/components/Content/Operation/PathResponses/PathResponses.vue.d.ts.map +0 -1
- package/dist/components/Content/Operation/PathResponses/PathResponses.vue.js +0 -7
- package/dist/components/Content/Operation/PathResponses/index.d.ts +0 -2
- package/dist/components/Content/Operation/PathResponses/index.d.ts.map +0 -1
- package/dist/components/SimpleTable/SimpleCell.vue.d.ts +0 -50
- package/dist/components/SimpleTable/SimpleCell.vue.d.ts.map +0 -1
- package/dist/components/SimpleTable/SimpleHeader.vue.d.ts +0 -12
- package/dist/components/SimpleTable/SimpleHeader.vue.d.ts.map +0 -1
- package/dist/components/SimpleTable/SimpleRow.vue.d.ts +0 -12
- package/dist/components/SimpleTable/SimpleRow.vue.d.ts.map +0 -1
- package/dist/components/SimpleTable/SimpleTable.stories.d.ts +0 -7
- package/dist/components/SimpleTable/SimpleTable.stories.d.ts.map +0 -1
- package/dist/components/SimpleTable/SimpleTable.vue.d.ts +0 -12
- package/dist/components/SimpleTable/SimpleTable.vue.d.ts.map +0 -1
- package/dist/components/SimpleTable/index.d.ts +0 -5
- package/dist/components/SimpleTable/index.d.ts.map +0 -1
|
@@ -4,14 +4,14 @@ import _ from "./EndpointPath.vue.js";
|
|
|
4
4
|
import C from "./TestRequestButton.vue.js";
|
|
5
5
|
import S from "../../Section/Section.vue.js";
|
|
6
6
|
import B from "../../Section/SectionContent.vue.js";
|
|
7
|
-
import
|
|
7
|
+
import E from "../../Section/SectionColumns.vue.js";
|
|
8
8
|
import d from "../../Section/SectionColumn.vue.js";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
const
|
|
9
|
+
import N from "../../Badge/Badge.vue.js";
|
|
10
|
+
import V from "../../Section/SectionHeader.vue.js";
|
|
11
|
+
import g from "../../Anchor/Anchor.vue.js";
|
|
12
|
+
import k from "../../../features/ExampleRequest/ExampleRequest.vue.js";
|
|
13
|
+
import v from "../../../features/ExampleResponses/ExampleResponses.vue.js";
|
|
14
|
+
const y = { class: "examples" }, I = /* @__PURE__ */ f({
|
|
15
15
|
__name: "Operation",
|
|
16
16
|
props: {
|
|
17
17
|
id: {},
|
|
@@ -25,13 +25,13 @@ const E = { class: "examples" }, I = /* @__PURE__ */ f({
|
|
|
25
25
|
default: r(() => [
|
|
26
26
|
o(t(B), null, {
|
|
27
27
|
default: r(() => [
|
|
28
|
-
o(t(
|
|
28
|
+
o(t(E), null, {
|
|
29
29
|
default: r(() => [
|
|
30
30
|
o(t(d), null, {
|
|
31
31
|
default: r(() => {
|
|
32
32
|
var a, n;
|
|
33
33
|
return [
|
|
34
|
-
(a = e.operation.information) != null && a.deprecated ? (i(), p(t(
|
|
34
|
+
(a = e.operation.information) != null && a.deprecated ? (i(), p(t(N), { key: 0 }, {
|
|
35
35
|
default: r(() => [
|
|
36
36
|
l(" Deprecated ")
|
|
37
37
|
]),
|
|
@@ -40,9 +40,9 @@ const E = { class: "examples" }, I = /* @__PURE__ */ f({
|
|
|
40
40
|
m("div", {
|
|
41
41
|
class: u((n = e.operation.information) != null && n.deprecated ? "deprecated" : "")
|
|
42
42
|
}, [
|
|
43
|
-
o(t(
|
|
43
|
+
o(t(V), { level: 3 }, {
|
|
44
44
|
default: r(() => [
|
|
45
|
-
o(t(
|
|
45
|
+
o(t(g), {
|
|
46
46
|
id: e.id ?? ""
|
|
47
47
|
}, {
|
|
48
48
|
default: r(() => [
|
|
@@ -61,8 +61,8 @@ const E = { class: "examples" }, I = /* @__PURE__ */ f({
|
|
|
61
61
|
}),
|
|
62
62
|
o(t(d), null, {
|
|
63
63
|
default: r(() => [
|
|
64
|
-
m("div",
|
|
65
|
-
o(t(
|
|
64
|
+
m("div", y, [
|
|
65
|
+
o(t(k), { operation: e.operation }, {
|
|
66
66
|
header: r(() => {
|
|
67
67
|
var a;
|
|
68
68
|
return [
|
|
@@ -78,7 +78,7 @@ const E = { class: "examples" }, I = /* @__PURE__ */ f({
|
|
|
78
78
|
]),
|
|
79
79
|
_: 1
|
|
80
80
|
}, 8, ["operation"]),
|
|
81
|
-
o(t(
|
|
81
|
+
o(t(v), {
|
|
82
82
|
operation: e.operation,
|
|
83
83
|
style: { "margin-top": "12px" }
|
|
84
84
|
}, null, 8, ["operation"])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OperationAccordion.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/OperationAccordion.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OperationAccordion.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/OperationAccordion.vue"],"names":[],"mappings":"AAyNA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;;SAiBzD,MAAM;eACA,oBAAoB;;SAD1B,MAAM;eACA,oBAAoB;;AA2QjC,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./OperationAccordion.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const c = /* @__PURE__ */ r(o, [["__scopeId", "data-v-9b0621a3"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
c as default
|
|
7
7
|
};
|
|
@@ -1,50 +1,51 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarIcon as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { useClipboard as
|
|
12
|
-
|
|
1
|
+
import { defineComponent as m, inject as h, openBlock as p, createBlock as s, unref as e, createSlots as f, withCtx as i, createElementVNode as t, createVNode as n, toDisplayString as u, createCommentVNode as _, withModifiers as v } from "vue";
|
|
2
|
+
import { ScalarIcon as y, ScalarIconButton as C, ScalarMarkdown as E } from "@scalar/components";
|
|
3
|
+
import S from "./EndpointDetailsCard.vue.js";
|
|
4
|
+
import b from "./EndpointPath.vue.js";
|
|
5
|
+
import k from "./TestRequestButton.vue.js";
|
|
6
|
+
import T from "../../Section/SectionAccordion.vue.js";
|
|
7
|
+
import B from "../../HttpMethod/HttpMethod.vue.js";
|
|
8
|
+
import w from "../../Anchor/Anchor.vue.js";
|
|
9
|
+
import I from "../../../features/ExampleResponses/ExampleResponses.vue.js";
|
|
10
|
+
import N from "../../../features/ExampleRequest/ExampleRequest.vue.js";
|
|
11
|
+
import { useClipboard as R } from "../../../hooks/useClipboard.js";
|
|
12
|
+
import { HIDE_TEST_REQUEST_BUTTON_SYMBOL as V } from "../../../helpers/provideSymbols.js";
|
|
13
|
+
const g = { class: "endpoint-header" }, A = { class: "endpoint-details" }, D = { class: "endpoint-label" }, M = { class: "endpoint-label-path" }, O = { class: "endpoint-label-name" }, U = { class: "endpoint-content" }, X = /* @__PURE__ */ m({
|
|
13
14
|
__name: "OperationAccordion",
|
|
14
15
|
props: {
|
|
15
16
|
id: {},
|
|
16
17
|
operation: {}
|
|
17
18
|
},
|
|
18
|
-
setup(
|
|
19
|
-
const { copyToClipboard:
|
|
20
|
-
return (o,
|
|
19
|
+
setup(L) {
|
|
20
|
+
const { copyToClipboard: c } = R(), r = h(V);
|
|
21
|
+
return console.log(!(r != null && r())), (o, d) => (p(), s(e(T), {
|
|
21
22
|
id: o.id,
|
|
22
23
|
class: "reference-endpoint",
|
|
23
24
|
transparent: ""
|
|
24
|
-
},
|
|
25
|
+
}, f({
|
|
25
26
|
title: i(() => [
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
t("h3", g, [
|
|
28
|
+
t("div", A, [
|
|
29
|
+
n(e(B), {
|
|
29
30
|
class: "endpoint-type",
|
|
30
31
|
method: o.operation.httpVerb,
|
|
31
32
|
short: ""
|
|
32
33
|
}, null, 8, ["method"]),
|
|
33
|
-
|
|
34
|
+
n(e(w), {
|
|
34
35
|
id: o.id ?? "",
|
|
35
36
|
class: "endpoint-anchor"
|
|
36
37
|
}, {
|
|
37
38
|
default: i(() => {
|
|
38
39
|
var a;
|
|
39
40
|
return [
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
t("div", D, [
|
|
42
|
+
t("div", M, [
|
|
43
|
+
n(b, {
|
|
43
44
|
deprecated: (a = o.operation.information) == null ? void 0 : a.deprecated,
|
|
44
45
|
path: o.operation.path
|
|
45
46
|
}, null, 8, ["deprecated", "path"])
|
|
46
47
|
]),
|
|
47
|
-
|
|
48
|
+
t("div", O, u(o.operation.name), 1)
|
|
48
49
|
])
|
|
49
50
|
];
|
|
50
51
|
}),
|
|
@@ -53,30 +54,33 @@ const R = { class: "endpoint-header" }, g = { class: "endpoint-details" }, A = {
|
|
|
53
54
|
])
|
|
54
55
|
])
|
|
55
56
|
]),
|
|
56
|
-
actions: i(({ active: a }) =>
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
57
|
+
actions: i(({ active: a }) => {
|
|
58
|
+
var l;
|
|
59
|
+
return [
|
|
60
|
+
a ? (p(), s(k, {
|
|
61
|
+
key: 0,
|
|
62
|
+
operation: o.operation
|
|
63
|
+
}, null, 8, ["operation"])) : (l = e(r)) != null && l() ? _("", !0) : (p(), s(e(y), {
|
|
64
|
+
key: 1,
|
|
65
|
+
class: "endpoint-try-hint",
|
|
66
|
+
icon: "Play",
|
|
67
|
+
thickness: "1.75px"
|
|
68
|
+
})),
|
|
69
|
+
n(e(C), {
|
|
70
|
+
class: "endpoint-copy",
|
|
71
|
+
icon: "Clipboard",
|
|
72
|
+
label: "Copy endpoint URL",
|
|
73
|
+
size: "xs",
|
|
74
|
+
variant: "ghost",
|
|
75
|
+
onClick: d[0] || (d[0] = v((P) => e(c)(o.operation.path), ["stop"]))
|
|
76
|
+
})
|
|
77
|
+
];
|
|
78
|
+
}),
|
|
75
79
|
default: i(() => [
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
+
t("div", U, [
|
|
81
|
+
n(S, { operation: o.operation }, null, 8, ["operation"]),
|
|
82
|
+
n(e(I), { operation: o.operation }, null, 8, ["operation"]),
|
|
83
|
+
n(e(N), { operation: o.operation }, null, 8, ["operation"])
|
|
80
84
|
])
|
|
81
85
|
]),
|
|
82
86
|
_: 2
|
|
@@ -84,7 +88,7 @@ const R = { class: "endpoint-header" }, g = { class: "endpoint-details" }, A = {
|
|
|
84
88
|
o.operation.description ? {
|
|
85
89
|
name: "description",
|
|
86
90
|
fn: i(() => [
|
|
87
|
-
|
|
91
|
+
n(e(E), {
|
|
88
92
|
value: o.operation.description,
|
|
89
93
|
withImages: ""
|
|
90
94
|
}, null, 8, ["value"])
|
|
@@ -95,5 +99,5 @@ const R = { class: "endpoint-header" }, g = { class: "endpoint-details" }, A = {
|
|
|
95
99
|
}
|
|
96
100
|
});
|
|
97
101
|
export {
|
|
98
|
-
|
|
102
|
+
X as default
|
|
99
103
|
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { OpenAPI } from '@scalar/openapi-types';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
3
|
+
headers: {
|
|
4
|
+
[key: string]: OpenAPI.HeaderObject;
|
|
5
|
+
};
|
|
6
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
7
|
+
headers: {
|
|
8
|
+
[key: string]: OpenAPI.HeaderObject;
|
|
9
|
+
};
|
|
10
|
+
}>>>, {}, {}>;
|
|
11
|
+
export default _default;
|
|
12
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
13
|
+
type __VLS_TypePropsToOption<T> = {
|
|
14
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
15
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
16
|
+
} : {
|
|
17
|
+
type: import('vue').PropType<T[K]>;
|
|
18
|
+
required: true;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=ParameterHeaders.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ParameterHeaders.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/ParameterHeaders.vue"],"names":[],"mappings":"AA4HA,OAAO,KAAK,EAAE,OAAO,EAA0B,MAAM,uBAAuB,CAAA;;aAOjE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAA;KAAE;;aAAvC;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAA;KAAE;;AA8JlD,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
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 n, createTextVNode as u, renderList as _ } from "vue";
|
|
2
|
+
import { Disclosure as v, DisclosureButton as k, DisclosurePanel as B } from "@headlessui/vue";
|
|
3
|
+
import { ScalarIcon as H } from "@scalar/components";
|
|
4
|
+
import S from "../Schema/SchemaProperty.vue.js";
|
|
5
|
+
const V = /* @__PURE__ */ f({
|
|
6
|
+
__name: "ParameterHeaders",
|
|
7
|
+
props: {
|
|
8
|
+
headers: {}
|
|
9
|
+
},
|
|
10
|
+
setup(x) {
|
|
11
|
+
function h(t) {
|
|
12
|
+
return t.schema !== void 0;
|
|
13
|
+
}
|
|
14
|
+
return (t, y) => (e(), m(a(v), null, {
|
|
15
|
+
default: c(({ open: r }) => [
|
|
16
|
+
p("div", {
|
|
17
|
+
class: o(["headers-card headers-card--compact", [{ "headers-card--open": r }]])
|
|
18
|
+
}, [
|
|
19
|
+
p("div", {
|
|
20
|
+
class: o(["headers-properties", { "headers-properties-open": r }])
|
|
21
|
+
}, [
|
|
22
|
+
d(a(k), {
|
|
23
|
+
class: "headers-card-title headers-card-title--compact",
|
|
24
|
+
style: {
|
|
25
|
+
top: "calc(var(--refs-header-height)))"
|
|
26
|
+
}
|
|
27
|
+
}, {
|
|
28
|
+
default: c(() => [
|
|
29
|
+
d(a(H), {
|
|
30
|
+
class: o(["headers-card-title-icon", { "headers-card-title-icon--open": r }]),
|
|
31
|
+
icon: "Add",
|
|
32
|
+
thickness: "3"
|
|
33
|
+
}, null, 8, ["class"]),
|
|
34
|
+
r ? (e(), l(n, { key: 0 }, [
|
|
35
|
+
u(" Hide Headers ")
|
|
36
|
+
], 64)) : (e(), l(n, { key: 1 }, [
|
|
37
|
+
u(" Show Headers ")
|
|
38
|
+
], 64))
|
|
39
|
+
]),
|
|
40
|
+
_: 2
|
|
41
|
+
}, 1024),
|
|
42
|
+
d(a(B), null, {
|
|
43
|
+
default: c(() => [
|
|
44
|
+
(e(!0), l(n, null, _(t.headers, (s, i) => (e(), m(S, {
|
|
45
|
+
key: i,
|
|
46
|
+
description: s.description,
|
|
47
|
+
name: `${i}`,
|
|
48
|
+
value: h(s) ? s.schema : void 0
|
|
49
|
+
}, null, 8, ["description", "name", "value"]))), 128))
|
|
50
|
+
]),
|
|
51
|
+
_: 1
|
|
52
|
+
})
|
|
53
|
+
], 2)
|
|
54
|
+
], 2)
|
|
55
|
+
]),
|
|
56
|
+
_: 1
|
|
57
|
+
}));
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
export {
|
|
61
|
+
V as default
|
|
62
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ParameterItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/ParameterItem.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ParameterItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/ParameterItem.vue"],"names":[],"mappings":"AAyLA,OAAO,KAAK,EAAe,UAAU,EAAE,MAAM,sBAAsB,CAAA;;eAUpD,UAAU;mBACN,OAAO;uBACH,OAAO;;;;;eAFf,UAAU;mBACN,OAAO;uBACH,OAAO;;;;;kBADX,OAAO;sBACH,OAAO;;AA+M9B,wBAMG;AAOH,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAC7C,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KAAC,CAAC,GACvC,CAAC,CAAC,CAAC,CAAC;CACP,CAAC;AAEN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AAExD,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./ParameterItem.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-f4d4e7c0"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1,30 +1,31 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as g, ref as u, computed as d, openBlock as n, createElementBlock as m, normalizeClass as b, createVNode as v, unref as f, createElementVNode as h, toDisplayString as y, createBlock as C, createCommentVNode as s } from "vue";
|
|
2
2
|
import { ScalarIcon as q } from "@scalar/components";
|
|
3
3
|
import w from "./ContentTypeSelect.vue.js";
|
|
4
|
-
import I from "
|
|
5
|
-
|
|
4
|
+
import I from "./ParameterHeaders.vue.js";
|
|
5
|
+
import S from "../Schema/SchemaProperty.vue.js";
|
|
6
|
+
const V = { class: "parameter-item" }, T = { class: "parameter-item-name" }, j = { class: "parameter-item-type" }, N = {
|
|
6
7
|
key: 1,
|
|
7
8
|
class: "parameter-item-container parameter-item-container-markdown"
|
|
8
|
-
},
|
|
9
|
+
}, O = /* @__PURE__ */ g({
|
|
9
10
|
__name: "ParameterItem",
|
|
10
11
|
props: {
|
|
11
12
|
parameter: {},
|
|
12
13
|
showChildren: { type: Boolean, default: !1 },
|
|
13
14
|
collapsableItems: { type: Boolean, default: !1 }
|
|
14
15
|
},
|
|
15
|
-
setup(
|
|
16
|
-
const
|
|
17
|
-
|
|
16
|
+
setup(k) {
|
|
17
|
+
const a = k, r = u(!1), B = d(() => a.parameter.content ? Object.keys(a.parameter.content) : []), o = u(
|
|
18
|
+
B.value[0]
|
|
18
19
|
);
|
|
19
|
-
|
|
20
|
-
const
|
|
21
|
-
return (e,
|
|
20
|
+
a.parameter.content && "application/json" in a.parameter.content && (o.value = "application/json");
|
|
21
|
+
const t = d(() => a.collapsableItems && a.parameter.content);
|
|
22
|
+
return (e, l) => {
|
|
22
23
|
var p, i;
|
|
23
|
-
return
|
|
24
|
-
|
|
24
|
+
return n(), m("li", V, [
|
|
25
|
+
t.value ? (n(), m("div", {
|
|
25
26
|
key: 0,
|
|
26
|
-
class:
|
|
27
|
-
onClick:
|
|
27
|
+
class: b(["flex parameter-item-trigger", { "parameter-item-trigger-open": r.value }]),
|
|
28
|
+
onClick: l[1] || (l[1] = (c) => r.value = !r.value)
|
|
28
29
|
}, [
|
|
29
30
|
v(f(q), {
|
|
30
31
|
class: "parameter-item-icon",
|
|
@@ -32,31 +33,34 @@ const S = { class: "parameter-item" }, V = { class: "parameter-item-name" }, T =
|
|
|
32
33
|
size: "md",
|
|
33
34
|
thickness: "1.75"
|
|
34
35
|
}, null, 8, ["icon"]),
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
h("span", T, y(e.parameter.name), 1),
|
|
37
|
+
h("span", j, y(e.parameter.description), 1),
|
|
38
|
+
t.value && a.parameter.content ? (n(), C(w, {
|
|
38
39
|
key: 0,
|
|
39
40
|
class: "parameter-item-content-type",
|
|
40
|
-
defaultValue:
|
|
41
|
-
requestBody:
|
|
42
|
-
onSelectContentType:
|
|
43
|
-
}, null, 8, ["defaultValue", "requestBody"])) :
|
|
44
|
-
], 2)) :
|
|
45
|
-
|
|
46
|
-
|
|
41
|
+
defaultValue: o.value,
|
|
42
|
+
requestBody: a.parameter,
|
|
43
|
+
onSelectContentType: l[0] || (l[0] = ({ contentType: c }) => o.value = c)
|
|
44
|
+
}, null, 8, ["defaultValue", "requestBody"])) : s("", !0)
|
|
45
|
+
], 2)) : s("", !0),
|
|
46
|
+
t.value && r.value || !t.value ? (n(), m("div", N, [
|
|
47
|
+
e.parameter.headers ? (n(), C(I, {
|
|
48
|
+
key: 0,
|
|
49
|
+
headers: e.parameter.headers
|
|
50
|
+
}, null, 8, ["headers"])) : s("", !0),
|
|
51
|
+
v(f(S), {
|
|
47
52
|
compact: "",
|
|
48
|
-
description:
|
|
49
|
-
|
|
50
|
-
name: a.value ? "" : e.parameter.name,
|
|
53
|
+
description: t.value ? "" : e.parameter.description,
|
|
54
|
+
name: t.value ? "" : e.parameter.name,
|
|
51
55
|
noncollapsible: e.showChildren,
|
|
52
56
|
required: e.parameter.required,
|
|
53
|
-
value: e.parameter.content ? (i = (p = e.parameter.content) == null ? void 0 : p[
|
|
57
|
+
value: e.parameter.content ? (i = (p = e.parameter.content) == null ? void 0 : p[o.value]) == null ? void 0 : i.schema : e.parameter.schema
|
|
54
58
|
}, null, 8, ["description", "name", "noncollapsible", "required", "value"])
|
|
55
|
-
])) :
|
|
59
|
+
])) : s("", !0)
|
|
56
60
|
]);
|
|
57
61
|
};
|
|
58
62
|
}
|
|
59
63
|
});
|
|
60
64
|
export {
|
|
61
|
-
|
|
65
|
+
O as default
|
|
62
66
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TestRequestButton.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/TestRequestButton.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TestRequestButton.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/TestRequestButton.vue"],"names":[],"mappings":"AAwEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;;eASnD,oBAAoB;;eAApB,oBAAoB;;AAkFjC,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./TestRequestButton.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-
|
|
4
|
+
const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-2e17b0a6"]]);
|
|
5
5
|
export {
|
|
6
6
|
a as default
|
|
7
7
|
};
|
|
@@ -1,31 +1,39 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarIcon as
|
|
3
|
-
import { apiClientBus as
|
|
4
|
-
|
|
1
|
+
import { defineComponent as a, inject as m, unref as o, openBlock as r, createElementBlock as s, withModifiers as c, createVNode as u, Fragment as d, createTextVNode as l, pushScopeId as h, popScopeId as _, createElementVNode as f } from "vue";
|
|
2
|
+
import { ScalarIcon as T } from "@scalar/components";
|
|
3
|
+
import { apiClientBus as B } from "../../api-client-bus.js";
|
|
4
|
+
import { HIDE_TEST_REQUEST_BUTTON_SYMBOL as S } from "../../../helpers/provideSymbols.js";
|
|
5
|
+
const b = (e) => (h("data-v-2e17b0a6"), e = e(), _(), e), E = ["method"], k = /* @__PURE__ */ b(() => /* @__PURE__ */ f("span", null, "Test Request", -1)), q = /* @__PURE__ */ a({
|
|
5
6
|
__name: "TestRequestButton",
|
|
6
7
|
props: {
|
|
7
8
|
operation: {}
|
|
8
9
|
},
|
|
9
10
|
setup(e) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
|
|
11
|
+
const i = m(S);
|
|
12
|
+
return (t, n) => {
|
|
13
|
+
var p;
|
|
14
|
+
return ((p = o(i)) == null ? void 0 : p()) !== !0 ? (r(), s("button", {
|
|
15
|
+
key: 0,
|
|
16
|
+
class: "show-api-client-button",
|
|
17
|
+
method: t.operation.httpVerb,
|
|
18
|
+
type: "button",
|
|
19
|
+
onClick: n[0] || (n[0] = c((I) => o(B).emit({
|
|
20
|
+
open: {
|
|
21
|
+
path: t.operation.path,
|
|
22
|
+
method: t.operation.httpVerb
|
|
23
|
+
}
|
|
24
|
+
}), ["stop"]))
|
|
25
|
+
}, [
|
|
26
|
+
u(o(T), {
|
|
27
|
+
icon: "Play",
|
|
28
|
+
size: "sm"
|
|
29
|
+
}),
|
|
30
|
+
k
|
|
31
|
+
], 8, E)) : (r(), s(d, { key: 1 }, [
|
|
32
|
+
l(" ")
|
|
33
|
+
], 64));
|
|
34
|
+
};
|
|
27
35
|
}
|
|
28
36
|
});
|
|
29
37
|
export {
|
|
30
|
-
|
|
38
|
+
q as default
|
|
31
39
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Schema.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-24920b5a"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -2,9 +2,11 @@ import type { Tag } from '@scalar/types/legacy';
|
|
|
2
2
|
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
3
3
|
id?: string;
|
|
4
4
|
tag: Tag;
|
|
5
|
+
isCollapsed?: boolean;
|
|
5
6
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
6
7
|
id?: string;
|
|
7
8
|
tag: Tag;
|
|
9
|
+
isCollapsed?: boolean;
|
|
8
10
|
}>>>, {}, {}>;
|
|
9
11
|
export default _default;
|
|
10
12
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Endpoints.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/Endpoints.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Endpoints.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/Endpoints.vue"],"names":[],"mappings":"AA0HA,OAAO,KAAK,EAAE,GAAG,EAAwB,MAAM,sBAAsB,CAAA;;SAgBxC,MAAM;SAAO,GAAG;kBAAgB,OAAO;;SAAvC,MAAM;SAAO,GAAG;kBAAgB,OAAO;;AA+QpE,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Endpoints.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-fe316e67"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|