@scalar/api-reference 1.32.4 → 1.32.6
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 +35 -0
- package/dist/browser/standalone.js +9758 -9706
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +1 -1
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +28 -26
- package/dist/components/Content/Tag/OperationsListItem.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/OperationsListItem.vue.js +2 -2
- package/dist/components/Content/Tag/OperationsListItem.vue2.js +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 +4 -2
- 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/ClassicLayout.vue2.js +71 -67
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +4 -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 +30 -30
- package/dist/features/api-client-modal/useApiClient.d.ts +84 -4
- package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
- package/dist/features/download-link/DownloadLink.vue.d.ts.map +1 -1
- package/dist/features/download-link/DownloadLink.vue.js +1 -1
- package/dist/features/sidebar/components/SidebarElement.vue.d.ts.map +1 -1
- package/dist/features/sidebar/components/SidebarElement.vue.js +2 -2
- package/dist/features/sidebar/components/SidebarElement.vue2.js +16 -15
- package/dist/index.js +1 -1
- package/dist/libs/openapi.d.ts +0 -13
- package/dist/libs/openapi.d.ts.map +1 -1
- package/dist/libs/openapi.js +49 -63
- package/dist/stores/useHttpClientStore.js +20 -20
- package/dist/style.css +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.js +80 -72
- package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts +14 -0
- package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts +21 -72
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts +1 -1
- package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts.map +1 -1
- package/dist/v2/events/definitions.d.ts +9 -0
- package/dist/v2/events/definitions.d.ts.map +1 -1
- package/package.json +11 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClientLibraries.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/ClientLibraries.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ClientLibraries.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/ClientLibraries.vue"],"names":[],"mappings":";AA2dA,wBAKG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ClientLibraries.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const a = /* @__PURE__ */ r(o, [["__scopeId", "data-v-
|
|
4
|
+
const a = /* @__PURE__ */ r(o, [["__scopeId", "data-v-d0decf3e"]]);
|
|
5
5
|
export {
|
|
6
6
|
a as default
|
|
7
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as K, ref as
|
|
2
|
-
import { TabGroup as
|
|
1
|
+
import { defineComponent as K, ref as P, useId as y, watch as w, onMounted as B, computed as D, createElementBlock as l, createCommentVNode as _, unref as e, openBlock as n, createVNode as i, withCtx as m, createElementVNode as F, Fragment as h, normalizeClass as V, renderList as A, createBlock as H, createTextVNode as R, toDisplayString as p } from "vue";
|
|
2
|
+
import { TabGroup as M, TabList as O, TabPanels as j, TabPanel as z } from "@headlessui/vue";
|
|
3
3
|
import { useWorkspace as G } from "@scalar/api-client/store";
|
|
4
4
|
import { ScalarMarkdown as J, ScalarCodeBlock as W } from "@scalar/components";
|
|
5
5
|
import { REFERENCE_LS_KEYS as Y } from "@scalar/helpers/object/local-storage";
|
|
@@ -16,14 +16,14 @@ const Z = { key: 0 }, $ = ["id"], X = {
|
|
|
16
16
|
setup(te) {
|
|
17
17
|
const {
|
|
18
18
|
availableTargets: T,
|
|
19
|
-
httpTargetTitle:
|
|
20
|
-
httpClientTitle:
|
|
21
|
-
getClientTitle:
|
|
19
|
+
httpTargetTitle: E,
|
|
20
|
+
httpClientTitle: k,
|
|
21
|
+
getClientTitle: x,
|
|
22
22
|
getTargetTitle: L,
|
|
23
23
|
httpClient: a,
|
|
24
|
-
setHttpClient:
|
|
25
|
-
} = q(), { featuredClients: d, isFeatured: S } = U(), I = G(), g =
|
|
26
|
-
|
|
24
|
+
setHttpClient: b
|
|
25
|
+
} = q(), { featuredClients: d, isFeatured: S } = U(), I = G(), g = P(0), C = y(), v = y();
|
|
26
|
+
w(
|
|
27
27
|
a,
|
|
28
28
|
(t) => {
|
|
29
29
|
t && (g.value = d.findIndex(
|
|
@@ -34,13 +34,15 @@ const Z = { key: 0 }, $ = ["id"], X = {
|
|
|
34
34
|
);
|
|
35
35
|
function N(t) {
|
|
36
36
|
const o = d[t];
|
|
37
|
-
o &&
|
|
37
|
+
o && b(o);
|
|
38
38
|
}
|
|
39
39
|
B(() => {
|
|
40
|
-
const t = localStorage.getItem(
|
|
41
|
-
|
|
40
|
+
const t = localStorage.getItem(
|
|
41
|
+
Y.SELECTED_CLIENT_DEPRECATED
|
|
42
|
+
);
|
|
43
|
+
t && b(JSON.parse(t));
|
|
42
44
|
});
|
|
43
|
-
const r =
|
|
45
|
+
const r = D(() => {
|
|
44
46
|
var c;
|
|
45
47
|
const t = Object.values(I.collections)[0], o = (c = t == null ? void 0 : t.info) == null ? void 0 : c["x-scalar-sdk-installation"];
|
|
46
48
|
if (!Array.isArray(o) || !(o != null && o.length))
|
|
@@ -55,24 +57,24 @@ const Z = { key: 0 }, $ = ["id"], X = {
|
|
|
55
57
|
return s;
|
|
56
58
|
});
|
|
57
59
|
return (t, o) => e(T).length ? (n(), l("div", Z, [
|
|
58
|
-
i(e(
|
|
60
|
+
i(e(M), {
|
|
59
61
|
manual: "",
|
|
60
62
|
selectedIndex: g.value,
|
|
61
63
|
onChange: N
|
|
62
64
|
}, {
|
|
63
65
|
default: m(() => [
|
|
64
|
-
|
|
65
|
-
id: e(
|
|
66
|
+
F("div", {
|
|
67
|
+
id: e(C),
|
|
66
68
|
class: "client-libraries-heading"
|
|
67
69
|
}, " Client Libraries ", 8, $),
|
|
68
|
-
i(e(
|
|
69
|
-
"aria-labelledby": e(
|
|
70
|
+
i(e(O), {
|
|
71
|
+
"aria-labelledby": e(C),
|
|
70
72
|
class: "client-libraries-list"
|
|
71
73
|
}, {
|
|
72
74
|
default: m(() => [
|
|
73
75
|
i(Q, {
|
|
74
76
|
featured: e(d),
|
|
75
|
-
morePanel: e(
|
|
77
|
+
morePanel: e(v)
|
|
76
78
|
}, null, 8, ["featured", "morePanel"])
|
|
77
79
|
]),
|
|
78
80
|
_: 1
|
|
@@ -84,14 +86,14 @@ const Z = { key: 0 }, $ = ["id"], X = {
|
|
|
84
86
|
(s = r.value) != null && s.source || (c = r.value) != null && c.description ? (n(), l(h, { key: 0 }, [
|
|
85
87
|
r.value.description ? (n(), l("div", {
|
|
86
88
|
key: 0,
|
|
87
|
-
class:
|
|
89
|
+
class: V(["selected-client card-footer -outline-offset-2", r.value.source && "rounded-b-none"]),
|
|
88
90
|
role: "tabpanel",
|
|
89
91
|
tabindex: "0"
|
|
90
92
|
}, [
|
|
91
93
|
i(e(J), {
|
|
92
94
|
value: r.value.description
|
|
93
95
|
}, null, 8, ["value"])
|
|
94
|
-
], 2)) :
|
|
96
|
+
], 2)) : _("", !0),
|
|
95
97
|
r.value.source ? (n(), l("div", X, [
|
|
96
98
|
i(e(W), {
|
|
97
99
|
lang: "shell",
|
|
@@ -99,22 +101,22 @@ const Z = { key: 0 }, $ = ["id"], X = {
|
|
|
99
101
|
copy: !0,
|
|
100
102
|
class: "rounded-t-none rounded-b-lg px-3 py-2 -outline-offset-1 has-focus:outline"
|
|
101
103
|
}, null, 8, ["content"])
|
|
102
|
-
])) :
|
|
103
|
-
], 64)) : e(a) && e(S)(e(a)) ? (n(!0), l(h, { key: 1 }, A(e(d), (u, f) => (n(),
|
|
104
|
+
])) : _("", !0)
|
|
105
|
+
], 64)) : e(a) && e(S)(e(a)) ? (n(!0), l(h, { key: 1 }, A(e(d), (u, f) => (n(), H(e(z), {
|
|
104
106
|
key: f,
|
|
105
107
|
class: "selected-client card-footer -outline-offset-2"
|
|
106
108
|
}, {
|
|
107
109
|
default: m(() => [
|
|
108
|
-
|
|
110
|
+
R(p(e(x)(u)) + " " + p(e(L)(u)), 1)
|
|
109
111
|
]),
|
|
110
112
|
_: 2
|
|
111
113
|
}, 1024))), 128)) : (n(), l("div", {
|
|
112
114
|
key: 2,
|
|
113
|
-
id: e(
|
|
115
|
+
id: e(v),
|
|
114
116
|
class: "selected-client card-footer -outline-offset-2",
|
|
115
117
|
role: "tabpanel",
|
|
116
118
|
tabindex: "0"
|
|
117
|
-
}, p(e(
|
|
119
|
+
}, p(e(k)) + " " + p(e(E)), 9, ee))
|
|
118
120
|
];
|
|
119
121
|
}),
|
|
120
122
|
_: 1
|
|
@@ -122,7 +124,7 @@ const Z = { key: 0 }, $ = ["id"], X = {
|
|
|
122
124
|
]),
|
|
123
125
|
_: 1
|
|
124
126
|
}, 8, ["selectedIndex"])
|
|
125
|
-
])) :
|
|
127
|
+
])) : _("", !0);
|
|
126
128
|
}
|
|
127
129
|
});
|
|
128
130
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OperationsListItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/OperationsListItem.vue"],"names":[],"mappings":"AAyHA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;
|
|
1
|
+
{"version":3,"file":"OperationsListItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/OperationsListItem.vue"],"names":[],"mappings":"AAyHA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AAEjE,OAAO,KAAK,EAEV,oBAAoB,EAErB,MAAM,sBAAsB,CAAA;AAS7B,KAAK,WAAW,GAAG;IACjB,oBAAoB,EAAE,oBAAoB,CAAA;IAC1C,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AAmJF,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./OperationsListItem.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const s = /* @__PURE__ */ o(t, [["__scopeId", "data-v-782723fb"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
s as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as f, computed as c, createElementBlock as h, openBlock as r, createBlock as i, createCommentVNode as s, createElementVNode as n, unref as t, withCtx as u, createTextVNode as O, toDisplayString as l, withModifiers as y, createVNode as k, normalizeStyle as C, normalizeClass as V } from "vue";
|
|
2
2
|
import { getHttpMethodInfo as b } from "@scalar/helpers/http/http-info";
|
|
3
3
|
import { ScalarIconWebhooksLogo as g } from "@scalar/icons";
|
|
4
|
-
import { isOperationDeprecated as v } from "
|
|
4
|
+
import { isOperationDeprecated as v } from "@scalar/oas-utils/helpers";
|
|
5
5
|
import { useSidebar as w } from "../../../features/sidebar/hooks/useSidebar.js";
|
|
6
6
|
import S from "../../Section/SectionHeaderTag.vue.js";
|
|
7
7
|
import B from "../../HttpMethod/HttpMethod.vue.js";
|
|
@@ -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,11 +1,13 @@
|
|
|
1
1
|
import type { Collection, Request, Server } from '@scalar/oas-utils/entities/spec';
|
|
2
|
-
import type { OpenAPIV3_1 } from '@scalar/types/legacy';
|
|
2
|
+
import type { OpenAPIV3_1, XScalarStability } from '@scalar/types/legacy';
|
|
3
3
|
import type { Schemas } from '../../../features/Operation/types/schemas';
|
|
4
4
|
type __VLS_Props = {
|
|
5
5
|
id: string;
|
|
6
6
|
path: string;
|
|
7
7
|
method: OpenAPIV3_1.HttpMethods;
|
|
8
|
-
operation: OpenAPIV3_1.OperationObject
|
|
8
|
+
operation: OpenAPIV3_1.OperationObject<{
|
|
9
|
+
'x-scalar-stability': XScalarStability;
|
|
10
|
+
}>;
|
|
9
11
|
isWebhook: boolean;
|
|
10
12
|
/**
|
|
11
13
|
* @deprecated Use `document` instead
|
|
@@ -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":"AAuXA,OAAO,KAAK,EACV,UAAU,EACV,OAAO,EACP,MAAM,EACP,MAAM,iCAAiC,CAAA;AAMxC,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAWzE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AASjE,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,CAAC;QACrC,oBAAoB,EAAE,gBAAgB,CAAA;KACvC,CAAC,CAAA;IACF,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
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-6d48a0e7"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,20 +1,20 @@
|
|
|
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
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
4
|
+
import { isOperationDeprecated as P, getOperationStability as y, getOperationStabilityColor as W } from "@scalar/oas-utils/helpers";
|
|
5
|
+
import { useClipboard as $ } from "@scalar/use-hooks/useClipboard";
|
|
6
|
+
import z from "../../../components/OperationPath.vue.js";
|
|
7
|
+
import { useConfig as A } from "../../../hooks/useConfig.js";
|
|
8
8
|
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 } =
|
|
34
|
+
return ((e = m.operation) == null ? void 0 : e.summary) || m.path || "";
|
|
35
|
+
}), { copyToClipboard: k } = $(), C = A(), 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,34 +54,34 @@ 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
|
-
t(
|
|
61
|
-
deprecated: o(
|
|
60
|
+
t(z, {
|
|
61
|
+
deprecated: o(P)(e.operation),
|
|
62
62
|
path: e.path
|
|
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
|
-
class: T(o(
|
|
68
|
+
class: T(o(W)(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",
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import type { Collection, Request, Server } from '@scalar/oas-utils/entities/spec';
|
|
2
|
-
import type { OpenAPIV3_1 } from '@scalar/types/legacy';
|
|
2
|
+
import type { OpenAPIV3_1, XScalarStability } from '@scalar/types/legacy';
|
|
3
3
|
import type { Schemas } from '../types/schemas';
|
|
4
4
|
type __VLS_Props = {
|
|
5
5
|
id: string;
|
|
6
6
|
path: string;
|
|
7
7
|
method: OpenAPIV3_1.HttpMethods;
|
|
8
|
-
operation: OpenAPIV3_1.OperationObject
|
|
8
|
+
operation: OpenAPIV3_1.OperationObject<{
|
|
9
|
+
'x-scalar-stability': XScalarStability;
|
|
10
|
+
}>;
|
|
9
11
|
isWebhook: boolean;
|
|
10
12
|
/**
|
|
11
13
|
* @deprecated Use `document` instead
|
|
@@ -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":"AAiLA,OAAO,KAAK,EACV,UAAU,EACV,OAAO,EACP,MAAM,EACP,MAAM,iCAAiC,CAAA;AAMxC,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAsBzE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAI/C,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,CAAC;QACrC,oBAAoB,EAAE,gBAAgB,CAAA;KACvC,CAAC,CAAA;IACF,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;;;;;;AA8TF,wBAQG"}
|
|
@@ -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 p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-40b5a836"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|