@scalar/api-reference 1.32.4 → 1.32.5
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 +6 -0
- package/dist/browser/standalone.js +19 -17
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ContentTypeSelect.vue.js +6 -6
- package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/RequestBody.vue.js +1 -1
- package/dist/features/Operation/components/RequestBody.vue2.js +13 -10
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue.js +1 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue2.js +64 -60
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentTypeSelect.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/ContentTypeSelect.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ContentTypeSelect.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/ContentTypeSelect.vue"],"names":[],"mappings":"AAuGA,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAOpE,KAAK,WAAW,GAAG;IACjB,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB,YAAY,CAAC,EAAE,WAAW,CAAA;CAC3B,CAAC;;;qBAIiD,WAAW;;;;qBAAX,WAAW;;;AAwK9D,wBAOG"}
|
|
@@ -1,4 +1,4 @@
|
|
|
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
|
|
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 y } 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({
|
|
@@ -8,8 +8,8 @@ const O = /* @__PURE__ */ S({
|
|
|
8
8
|
defaultValue: {}
|
|
9
9
|
},
|
|
10
10
|
emits: ["selectContentType"],
|
|
11
|
-
setup(
|
|
12
|
-
const t =
|
|
11
|
+
setup(v, { emit: x }) {
|
|
12
|
+
const t = v, C = x, T = (e) => {
|
|
13
13
|
e != null && e.id && C("selectContentType", { contentType: e.id });
|
|
14
14
|
}, a = s(() => {
|
|
15
15
|
var e;
|
|
@@ -56,7 +56,7 @@ const O = /* @__PURE__ */ S({
|
|
|
56
56
|
])),
|
|
57
57
|
_: 1
|
|
58
58
|
}),
|
|
59
|
-
f("span", null,
|
|
59
|
+
f("span", null, y(l.value), 1),
|
|
60
60
|
c(n(q), {
|
|
61
61
|
class: "ui-open:rotate-180 ml-auto",
|
|
62
62
|
icon: "ChevronDown",
|
|
@@ -70,10 +70,10 @@ const O = /* @__PURE__ */ S({
|
|
|
70
70
|
_: 1
|
|
71
71
|
}, 8, ["modelValue", "options"])) : (p(), k("div", {
|
|
72
72
|
key: 1,
|
|
73
|
-
class: m(n(i)({ dropdown: !1 })),
|
|
73
|
+
class: m([n(i)({ dropdown: !1 }), "selected-content-type"]),
|
|
74
74
|
tabindex: "0"
|
|
75
75
|
}, [
|
|
76
|
-
f("span", null,
|
|
76
|
+
f("span", null, y(l.value), 1)
|
|
77
77
|
], 2));
|
|
78
78
|
}
|
|
79
79
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/RequestBody.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/RequestBody.vue"],"names":[],"mappings":"AAqKA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAe,WAAW,EAAE,MAAM,sBAAsB,CAAA;AASpE,KAAK,WAAW,GAAG;IACjB,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GAAG,OAAO,CAAA;CAC7D,CAAC;AA+DF,iBAAS,cAAc;WA6IT,OAAO,IAA6B;;uBARvB,GAAG;;;;EAa7B;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;kFAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./RequestBody.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f3b8e406"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { defineComponent as j, computed as f, ref as C, createElementBlock as a, createCommentVNode as
|
|
1
|
+
import { defineComponent as j, computed as f, ref as C, createElementBlock as a, createCommentVNode as d, openBlock as l, createElementVNode as b, createVNode as n, renderSlot as E, unref as i } from "vue";
|
|
2
2
|
import { ScalarMarkdown as P } from "@scalar/components";
|
|
3
3
|
import S from "./ContentTypeSelect.vue.js";
|
|
4
4
|
import y from "../../../components/Content/Schema/Schema.vue.js";
|
|
5
|
-
const _ = {
|
|
5
|
+
const _ = {
|
|
6
|
+
key: 0,
|
|
7
|
+
class: "request-body"
|
|
8
|
+
}, O = { class: "request-body-header" }, R = { class: "request-body-title" }, g = {
|
|
6
9
|
key: 0,
|
|
7
10
|
class: "request-body-required"
|
|
8
11
|
}, N = {
|
|
@@ -58,7 +61,7 @@ const _ = { key: 0 }, O = { class: "request-body-header" }, R = { class: "reques
|
|
|
58
61
|
b("div", O, [
|
|
59
62
|
b("span", R, [
|
|
60
63
|
E(e.$slots, "title", {}, void 0, !0),
|
|
61
|
-
e.requestBody.required ? (l(), a("div", g, " required ")) :
|
|
64
|
+
e.requestBody.required ? (l(), a("div", g, " required ")) : d("", !0)
|
|
62
65
|
]),
|
|
63
66
|
n(S, {
|
|
64
67
|
defaultValue: t.value,
|
|
@@ -66,13 +69,13 @@ const _ = { key: 0 }, O = { class: "request-body-header" }, R = { class: "reques
|
|
|
66
69
|
onSelectContentType: s[0] || (s[0] = ({ contentType: u }) => t.value = u)
|
|
67
70
|
}, null, 8, ["defaultValue", "requestBody"]),
|
|
68
71
|
e.requestBody.description ? (l(), a("div", N, [
|
|
69
|
-
n(
|
|
72
|
+
n(i(P), {
|
|
70
73
|
value: e.requestBody.description
|
|
71
74
|
}, null, 8, ["value"])
|
|
72
|
-
])) :
|
|
75
|
+
])) : d("", !0)
|
|
73
76
|
]),
|
|
74
77
|
m.value ? (l(), a("div", T, [
|
|
75
|
-
n(
|
|
78
|
+
n(i(y), {
|
|
76
79
|
compact: "",
|
|
77
80
|
name: "Request Body",
|
|
78
81
|
noncollapsible: "",
|
|
@@ -80,7 +83,7 @@ const _ = { key: 0 }, O = { class: "request-body-header" }, R = { class: "reques
|
|
|
80
83
|
value: m.value.visibleProperties,
|
|
81
84
|
"onUpdate:modelValue": h
|
|
82
85
|
}, null, 8, ["schemas", "value"]),
|
|
83
|
-
n(
|
|
86
|
+
n(i(y), {
|
|
84
87
|
additionalProperties: "",
|
|
85
88
|
compact: "",
|
|
86
89
|
name: "Request Body",
|
|
@@ -88,7 +91,7 @@ const _ = { key: 0 }, O = { class: "request-body-header" }, R = { class: "reques
|
|
|
88
91
|
value: m.value.collapsedProperties
|
|
89
92
|
}, null, 8, ["schemas", "value"])
|
|
90
93
|
])) : (p = e.requestBody.content) != null && p[t.value] ? (l(), a("div", M, [
|
|
91
|
-
n(
|
|
94
|
+
n(i(y), {
|
|
92
95
|
compact: "",
|
|
93
96
|
name: "Request Body",
|
|
94
97
|
noncollapsible: "",
|
|
@@ -96,8 +99,8 @@ const _ = { key: 0 }, O = { class: "request-body-header" }, R = { class: "reques
|
|
|
96
99
|
value: (r = (o = e.requestBody.content) == null ? void 0 : o[t.value]) == null ? void 0 : r.schema,
|
|
97
100
|
"onUpdate:modelValue": h
|
|
98
101
|
}, null, 8, ["schemas", "value"])
|
|
99
|
-
])) :
|
|
100
|
-
])) :
|
|
102
|
+
])) : d("", !0)
|
|
103
|
+
])) : d("", !0);
|
|
101
104
|
};
|
|
102
105
|
}
|
|
103
106
|
});
|
|
@@ -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":"AAqXA,OAAO,KAAK,EACV,UAAU,EACV,OAAO,EACP,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAWvD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAcjE,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,WAAW,CAAC,WAAW,CAAA;IAC/B,SAAS,EAAE,WAAW,CAAC,eAAe,CAAA;IACtC,SAAS,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,UAAU,EAAE,UAAU,CAAA;IACtB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,OAAO,EAAE,OAAO,GAAG,SAAS,CAAA;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;;;;;;AA2VF,wBAQG"}
|
|
@@ -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 c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-3bc6e3e0"]]);
|
|
5
5
|
export {
|
|
6
6
|
c as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as B, computed as S, createBlock as n, openBlock as p, unref as o, createSlots as V, withCtx as a, createElementVNode as s, createVNode as t, createCommentVNode as d, withModifiers as w, toDisplayString as u, normalizeClass as T, createTextVNode as f } from "vue";
|
|
2
2
|
import { ScalarIcon as I, ScalarIconButton as R, ScalarMarkdown as N } from "@scalar/components";
|
|
3
3
|
import { ScalarIconWebhooksLogo as O } from "@scalar/icons";
|
|
4
4
|
import { useClipboard as P } from "@scalar/use-hooks/useClipboard";
|
|
@@ -9,12 +9,12 @@ import D from "../components/OperationParameters.vue.js";
|
|
|
9
9
|
import E from "../components/OperationResponses.vue.js";
|
|
10
10
|
import L from "../../../components/Section/SectionAccordion.vue.js";
|
|
11
11
|
import U from "../../example-responses/ExampleResponses.vue.js";
|
|
12
|
-
import
|
|
13
|
-
import
|
|
12
|
+
import M from "../../example-request/ExampleRequest.vue.js";
|
|
13
|
+
import _ from "../../test-request-button/TestRequestButton.vue.js";
|
|
14
14
|
import j from "../../../components/HttpMethod/HttpMethod.vue.js";
|
|
15
15
|
import F from "../../../components/Anchor/Anchor.vue.js";
|
|
16
16
|
import v from "../../../components/Badge/Badge.vue.js";
|
|
17
|
-
const G = { class: "operation-title" }, H = { class: "operation-details" }, J = { class: "endpoint-label" }, K = { class: "endpoint-label-path" }, Q = { class: "endpoint-label-name" }, X = { class: "endpoint-content" }, Y = { class: "operation-details-card" }, Z = { class: "operation-details-card-item" }, x = { class: "operation-details-card-item" }, ve = /* @__PURE__ */
|
|
17
|
+
const G = { class: "operation-title" }, H = { class: "operation-details" }, J = { class: "endpoint-label" }, K = { class: "endpoint-label-path" }, Q = { class: "endpoint-label-name" }, X = { class: "endpoint-content" }, Y = { class: "operation-details-card" }, Z = { class: "operation-details-card-item" }, x = { class: "operation-details-card-item" }, ve = /* @__PURE__ */ B({
|
|
18
18
|
__name: "ClassicLayout",
|
|
19
19
|
props: {
|
|
20
20
|
id: {},
|
|
@@ -28,21 +28,21 @@ const G = { class: "operation-title" }, H = { class: "operation-details" }, J =
|
|
|
28
28
|
schemas: {}
|
|
29
29
|
},
|
|
30
30
|
emits: ["update:modelValue"],
|
|
31
|
-
setup(
|
|
32
|
-
const g =
|
|
31
|
+
setup(m, { emit: b }) {
|
|
32
|
+
const g = S(() => {
|
|
33
33
|
var e;
|
|
34
|
-
return ((e =
|
|
35
|
-
}), { copyToClipboard: k } = P(), C = $(), q = b,
|
|
34
|
+
return ((e = m.operation) == null ? void 0 : e.summary) || m.path || "";
|
|
35
|
+
}), { copyToClipboard: k } = P(), C = $(), q = b, c = (e) => {
|
|
36
36
|
q("update:modelValue", e);
|
|
37
37
|
};
|
|
38
|
-
return (e,
|
|
39
|
-
var
|
|
40
|
-
return
|
|
38
|
+
return (e, l) => {
|
|
39
|
+
var h;
|
|
40
|
+
return p(), n(o(L), {
|
|
41
41
|
id: e.id,
|
|
42
42
|
class: "reference-endpoint",
|
|
43
43
|
transparent: ""
|
|
44
|
-
},
|
|
45
|
-
title:
|
|
44
|
+
}, V({
|
|
45
|
+
title: a(() => [
|
|
46
46
|
s("div", G, [
|
|
47
47
|
s("div", H, [
|
|
48
48
|
t(o(j), {
|
|
@@ -54,7 +54,7 @@ const G = { class: "operation-title" }, H = { class: "operation-details" }, J =
|
|
|
54
54
|
id: e.id,
|
|
55
55
|
class: "endpoint-anchor"
|
|
56
56
|
}, {
|
|
57
|
-
default:
|
|
57
|
+
default: a(() => [
|
|
58
58
|
s("h3", J, [
|
|
59
59
|
s("div", K, [
|
|
60
60
|
t(W, {
|
|
@@ -63,25 +63,25 @@ const G = { class: "operation-title" }, H = { class: "operation-details" }, J =
|
|
|
63
63
|
}, null, 8, ["deprecated", "path"])
|
|
64
64
|
]),
|
|
65
65
|
s("div", Q, u(g.value), 1),
|
|
66
|
-
o(y)(e.operation) ? (
|
|
66
|
+
o(y)(e.operation) ? (p(), n(o(v), {
|
|
67
67
|
key: 0,
|
|
68
68
|
class: T(o(A)(e.operation))
|
|
69
69
|
}, {
|
|
70
|
-
default:
|
|
70
|
+
default: a(() => [
|
|
71
71
|
f(u(o(y)(e.operation)), 1)
|
|
72
72
|
]),
|
|
73
73
|
_: 1
|
|
74
|
-
}, 8, ["class"])) :
|
|
75
|
-
e.isWebhook ? (
|
|
74
|
+
}, 8, ["class"])) : d("", !0),
|
|
75
|
+
e.isWebhook ? (p(), n(o(v), {
|
|
76
76
|
key: 1,
|
|
77
77
|
class: "font-code text-green flex w-fit items-center justify-center gap-1"
|
|
78
78
|
}, {
|
|
79
|
-
default:
|
|
79
|
+
default: a(() => [
|
|
80
80
|
t(o(O), { weight: "bold" }),
|
|
81
|
-
|
|
81
|
+
l[1] || (l[1] = f("Webhook "))
|
|
82
82
|
]),
|
|
83
83
|
_: 1
|
|
84
|
-
})) :
|
|
84
|
+
})) : d("", !0)
|
|
85
85
|
])
|
|
86
86
|
]),
|
|
87
87
|
_: 1
|
|
@@ -89,13 +89,13 @@ const G = { class: "operation-title" }, H = { class: "operation-details" }, J =
|
|
|
89
89
|
])
|
|
90
90
|
])
|
|
91
91
|
]),
|
|
92
|
-
actions:
|
|
93
|
-
var
|
|
92
|
+
actions: a(({ active: i }) => {
|
|
93
|
+
var r;
|
|
94
94
|
return [
|
|
95
|
-
|
|
95
|
+
i && e.request ? (p(), n(o(_), {
|
|
96
96
|
key: 0,
|
|
97
97
|
operation: e.request
|
|
98
|
-
}, null, 8, ["operation"])) : (
|
|
98
|
+
}, null, 8, ["operation"])) : (r = o(C)) != null && r.hideTestRequestButton ? d("", !0) : (p(), n(o(I), {
|
|
99
99
|
key: 1,
|
|
100
100
|
class: "endpoint-try-hint size-6",
|
|
101
101
|
icon: "Play",
|
|
@@ -107,50 +107,54 @@ const G = { class: "operation-title" }, H = { class: "operation-details" }, J =
|
|
|
107
107
|
label: "Copy endpoint URL",
|
|
108
108
|
size: "xs",
|
|
109
109
|
variant: "ghost",
|
|
110
|
-
onClick:
|
|
110
|
+
onClick: l[0] || (l[0] = w((ee) => o(k)(e.path), ["stop"]))
|
|
111
111
|
})
|
|
112
112
|
];
|
|
113
113
|
}),
|
|
114
|
-
default:
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
114
|
+
default: a(() => {
|
|
115
|
+
var i, r;
|
|
116
|
+
return [
|
|
117
|
+
s("div", X, [
|
|
118
|
+
s("div", Y, [
|
|
119
|
+
s("div", Z, [
|
|
120
|
+
t(D, {
|
|
121
|
+
parameters: (i = e.operation) == null ? void 0 : i.parameters,
|
|
122
|
+
requestBody: (r = e.operation) == null ? void 0 : r.requestBody,
|
|
123
|
+
schemas: e.schemas,
|
|
124
|
+
"onUpdate:modelValue": c
|
|
125
|
+
}, null, 8, ["parameters", "requestBody", "schemas"])
|
|
126
|
+
]),
|
|
127
|
+
s("div", x, [
|
|
128
|
+
t(E, {
|
|
129
|
+
collapsableItems: !1,
|
|
130
|
+
responses: e.operation.responses,
|
|
131
|
+
schemas: e.schemas
|
|
132
|
+
}, null, 8, ["responses", "schemas"])
|
|
133
|
+
])
|
|
123
134
|
]),
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
collection: e.collection,
|
|
139
|
-
operation: e.operation,
|
|
140
|
-
server: e.server,
|
|
141
|
-
"onUpdate:modelValue": m
|
|
142
|
-
}, null, 8, ["request", "method", "collection", "operation", "server"])
|
|
143
|
-
])
|
|
144
|
-
]),
|
|
135
|
+
t(o(U), {
|
|
136
|
+
responses: e.operation.responses
|
|
137
|
+
}, null, 8, ["responses"]),
|
|
138
|
+
t(o(M), {
|
|
139
|
+
request: e.request,
|
|
140
|
+
method: e.method,
|
|
141
|
+
collection: e.collection,
|
|
142
|
+
operation: e.operation,
|
|
143
|
+
server: e.server,
|
|
144
|
+
"onUpdate:modelValue": c
|
|
145
|
+
}, null, 8, ["request", "method", "collection", "operation", "server"])
|
|
146
|
+
])
|
|
147
|
+
];
|
|
148
|
+
}),
|
|
145
149
|
_: 2
|
|
146
150
|
}, [
|
|
147
|
-
(
|
|
151
|
+
(h = e.operation) != null && h.description ? {
|
|
148
152
|
name: "description",
|
|
149
|
-
fn:
|
|
150
|
-
var
|
|
153
|
+
fn: a(() => {
|
|
154
|
+
var i;
|
|
151
155
|
return [
|
|
152
156
|
t(o(N), {
|
|
153
|
-
value: (
|
|
157
|
+
value: (i = e.operation) == null ? void 0 : i.description,
|
|
154
158
|
withImages: "",
|
|
155
159
|
withAnchors: "",
|
|
156
160
|
transformType: "heading",
|