@scalar/api-reference 1.24.29 → 1.24.31
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 +26 -0
- package/dist/browser/standalone.js +12408 -11944
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +2 -2
- package/dist/components/ApiReferenceLayout.vue2.js +37 -37
- package/dist/components/Content/Operation/Operation.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/Operation.vue.js +2 -2
- package/dist/components/Content/Operation/Operation.vue2.js +52 -71
- 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 +12 -12
- package/dist/components/Content/Operation/PathResponses/PathResponses.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/PathResponses/PathResponses.vue.js +2 -2
- package/dist/components/Content/Operation/PathResponses/PathResponses.vue2.js +13 -13
- package/dist/components/Sidebar/SidebarElement.vue.js +2 -2
- package/dist/components/Sidebar/SidebarElement.vue2.js +14 -14
- package/dist/features/ExampleRequest/ExamplePicker.vue.d.ts.map +1 -0
- package/dist/features/ExampleRequest/ExamplePicker.vue.js +7 -0
- package/dist/features/ExampleRequest/ExampleRequest.stories.d.ts.map +1 -0
- package/dist/{components/Content/Operation/CustomRequestExamples.vue.d.ts → features/ExampleRequest/ExampleRequest.vue.d.ts} +3 -3
- package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -0
- package/dist/features/ExampleRequest/ExampleRequest.vue.js +7 -0
- package/dist/features/ExampleRequest/ExampleRequest.vue2.js +246 -0
- package/dist/features/ExampleRequest/TextSelect.vue.d.ts.map +1 -0
- package/dist/features/ExampleRequest/index.d.ts +3 -0
- package/dist/features/ExampleRequest/index.d.ts.map +1 -0
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +7 -7
- package/dist/components/Content/Operation/CustomRequestExamples.vue.d.ts.map +0 -1
- package/dist/components/Content/Operation/CustomRequestExamples.vue.js +0 -7
- package/dist/components/Content/Operation/CustomRequestExamples.vue2.js +0 -124
- package/dist/components/Content/Operation/ExamplePicker.vue.d.ts.map +0 -1
- package/dist/components/Content/Operation/ExamplePicker.vue.js +0 -7
- package/dist/components/Content/Operation/ExampleRequest.stories.d.ts.map +0 -1
- package/dist/components/Content/Operation/ExampleRequest.vue.d.ts +0 -25
- package/dist/components/Content/Operation/ExampleRequest.vue.d.ts.map +0 -1
- package/dist/components/Content/Operation/ExampleRequest.vue.js +0 -7
- package/dist/components/Content/Operation/ExampleRequest.vue2.js +0 -188
- package/dist/components/Content/Operation/TextSelect.vue.d.ts.map +0 -1
- /package/dist/{components/Content/Operation → features/ExampleRequest}/ExamplePicker.vue.d.ts +0 -0
- /package/dist/{components/Content/Operation → features/ExampleRequest}/ExamplePicker.vue2.js +0 -0
- /package/dist/{components/Content/Operation → features/ExampleRequest}/ExampleRequest.stories.d.ts +0 -0
- /package/dist/{components/Content/Operation → features/ExampleRequest}/TextSelect.vue.d.ts +0 -0
- /package/dist/{components/Content/Operation → features/ExampleRequest}/TextSelect.vue.js +0 -0
- /package/dist/{components/Content/Operation → features/ExampleRequest}/TextSelect.vue3.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue"],"names":[],"mappings":"AA6hBA,OAAO,EAAE,KAAK,OAAO,EAAkB,MAAM,gBAAgB,CAAA;AAwB7D,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,UAAU,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8gBjB,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,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"}
|
|
@@ -2,7 +2,7 @@ import o from "./ApiReferenceLayout.vue2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import t from "../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const
|
|
5
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-7ab509ff"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
a as default
|
|
8
8
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { provideUseId as
|
|
3
|
-
import { addScalarClassesToHeadless as
|
|
4
|
-
import { defaultStateFactory as
|
|
1
|
+
import { defineComponent as q, ref as b, onMounted as B, onBeforeMount as F, computed as L, watch as J, onServerPrefetch as X, useSSRContext as Z, getCurrentInstance as _, provide as O, openBlock as m, createElementBlock as S, Fragment as P, createBlock as x, unref as i, withCtx as u, createTextVNode as ee, toDisplayString as oe, createCommentVNode as h, createElementVNode as p, normalizeClass as te, normalizeStyle as re, renderSlot as l, normalizeProps as d, guardReactiveProps as c, createVNode as g, withDirectives as ae, vShow as ne, createSlots as ie } from "vue";
|
|
2
|
+
import { provideUseId as se } from "@headlessui/vue";
|
|
3
|
+
import { addScalarClassesToHeadless as le } from "@scalar/components";
|
|
4
|
+
import { defaultStateFactory as U } from "@scalar/oas-utils/helpers";
|
|
5
5
|
import { getThemeStyles as de } from "@scalar/themes";
|
|
6
6
|
import { useToasts as ce, ScalarToasts as ue } from "@scalar/use-toasts";
|
|
7
7
|
import { useMediaQuery as pe, useResizeObserver as fe, useDebounceFn as me } from "@vueuse/core";
|
|
@@ -24,7 +24,7 @@ const Ee = { class: "references-header" }, Be = {
|
|
|
24
24
|
}, Fe = { class: "references-navigation-list" }, Le = { class: "references-editor" }, Oe = { class: "references-editor-textarea" }, Pe = { class: "references-rendered" }, Ue = {
|
|
25
25
|
key: 0,
|
|
26
26
|
class: "references-footer"
|
|
27
|
-
}, to = /* @__PURE__ */
|
|
27
|
+
}, to = /* @__PURE__ */ q({
|
|
28
28
|
inheritAttrs: !1,
|
|
29
29
|
__name: "ApiReferenceLayout",
|
|
30
30
|
props: {
|
|
@@ -33,12 +33,12 @@ const Ee = { class: "references-header" }, Be = {
|
|
|
33
33
|
rawSpec: {}
|
|
34
34
|
},
|
|
35
35
|
emits: ["changeTheme", "updateContent", "loadSwaggerFile", "linkSwaggerFile", "toggleDarkMode"],
|
|
36
|
-
setup(
|
|
37
|
-
const t =
|
|
38
|
-
|
|
39
|
-
const
|
|
36
|
+
setup(M) {
|
|
37
|
+
const t = M, { initializeToasts: A, toast: N } = ce();
|
|
38
|
+
A((e) => N(e));
|
|
39
|
+
const z = pe("(min-width: 1150px)"), H = b("100dvh"), f = b(null);
|
|
40
40
|
fe(f, (e) => {
|
|
41
|
-
|
|
41
|
+
H.value = e[0].contentRect.height + "px";
|
|
42
42
|
});
|
|
43
43
|
const w = b(0);
|
|
44
44
|
B(() => {
|
|
@@ -50,16 +50,16 @@ const Ee = { class: "references-header" }, Be = {
|
|
|
50
50
|
}
|
|
51
51
|
});
|
|
52
52
|
const {
|
|
53
|
-
breadcrumb:
|
|
53
|
+
breadcrumb: V,
|
|
54
54
|
collapsedSidebarItems: v,
|
|
55
|
-
isSidebarOpen:
|
|
55
|
+
isSidebarOpen: Y,
|
|
56
56
|
setCollapsedSidebarItem: y,
|
|
57
|
-
hideModels:
|
|
58
|
-
setParsedSpec:
|
|
57
|
+
hideModels: G,
|
|
58
|
+
setParsedSpec: W
|
|
59
59
|
} = $e(), {
|
|
60
60
|
getPathRoutingId: R,
|
|
61
|
-
getSectionId:
|
|
62
|
-
getTagId:
|
|
61
|
+
getSectionId: j,
|
|
62
|
+
getTagId: K,
|
|
63
63
|
hash: T,
|
|
64
64
|
isIntersectionEnabled: C,
|
|
65
65
|
pathRouting: $,
|
|
@@ -70,53 +70,53 @@ const Ee = { class: "references-header" }, Be = {
|
|
|
70
70
|
var o;
|
|
71
71
|
C.value = !1, k(), e ? Ie(e) : (o = f.value) == null || o.scrollTo(0, 0), await De(100), C.value = !0;
|
|
72
72
|
};
|
|
73
|
-
F(() =>
|
|
73
|
+
F(() => le()), B(() => {
|
|
74
74
|
Se.on(({ specTitle: e }) => {
|
|
75
75
|
he(t.rawSpec, e);
|
|
76
76
|
}), window.onhashchange = () => I(decodeURIComponent(window.location.hash.replace(/^#/, ""))), window.onpopstate = () => $.value && I(R(window.location.pathname));
|
|
77
77
|
});
|
|
78
|
-
const
|
|
79
|
-
() =>
|
|
78
|
+
const Q = L(
|
|
79
|
+
() => z.value || !t.configuration.isEditable
|
|
80
80
|
), D = me((e) => {
|
|
81
81
|
if ((e.target.scrollTop ?? 0) < 50) {
|
|
82
82
|
const a = t.configuration.pathRouting ? t.configuration.pathRouting.basePath : window.location.pathname;
|
|
83
83
|
window.history.replaceState({}, "", a + window.location.search), T.value = "";
|
|
84
84
|
}
|
|
85
85
|
}), s = L(() => ({
|
|
86
|
-
breadcrumb:
|
|
86
|
+
breadcrumb: V.value,
|
|
87
87
|
spec: t.parsedSpec
|
|
88
88
|
}));
|
|
89
|
-
return
|
|
89
|
+
return J(() => t.parsedSpec, W, { deep: !0 }), X(() => {
|
|
90
90
|
var o, a;
|
|
91
|
-
const e =
|
|
92
|
-
if (e && ((o = e.payload).data || (o.data =
|
|
91
|
+
const e = Z();
|
|
92
|
+
if (e && (e.payload || (e.payload = { data: U() }), (o = e.payload).data || (o.data = U()), t.configuration.pathRouting)) {
|
|
93
93
|
const r = R(e.url);
|
|
94
94
|
T.value = r, e.payload.data.hash = r;
|
|
95
95
|
for (const n in v)
|
|
96
96
|
Object.hasOwn(v, n) && delete v[n];
|
|
97
97
|
if (r)
|
|
98
|
-
y(
|
|
98
|
+
y(j(r), !0);
|
|
99
99
|
else {
|
|
100
100
|
const n = (a = t.parsedSpec.tags) == null ? void 0 : a[0];
|
|
101
|
-
n && y(
|
|
101
|
+
n && y(K(n), !0);
|
|
102
102
|
}
|
|
103
103
|
e.payload.data["useSidebarContent-collapsedSidebarItems"] = v;
|
|
104
104
|
}
|
|
105
|
-
}),
|
|
105
|
+
}), se(() => {
|
|
106
106
|
var r;
|
|
107
|
-
const e =
|
|
107
|
+
const e = _(), o = "scalar-instance-id";
|
|
108
108
|
if (!e) return o;
|
|
109
109
|
let a = e.uid;
|
|
110
110
|
return typeof window > "u" ? (e.attrs || (e.attrs = {}), e.attrs[o] = a) : (r = e.vnode.el) != null && r.getAttribute && (a = e.vnode.el.getAttribute(o)), `${o}-${a}`;
|
|
111
111
|
}), O(Te, () => t.parsedSpec.security), O(
|
|
112
112
|
Ce,
|
|
113
113
|
() => t.configuration.hideDownloadButton
|
|
114
|
-
),
|
|
114
|
+
), G.value = t.configuration.hideModels ?? !1, be(t.configuration), (e, o) => {
|
|
115
115
|
var a;
|
|
116
116
|
return m(), S(P, null, [
|
|
117
|
-
t.configuration.withDefaultFonts || t.configuration.theme ? (m(),
|
|
117
|
+
t.configuration.withDefaultFonts || t.configuration.theme ? (m(), x(i(we), { key: 0 }, {
|
|
118
118
|
default: u(() => [
|
|
119
|
-
|
|
119
|
+
ee(oe(i(de)(e.configuration.theme, {
|
|
120
120
|
fonts: e.configuration.withDefaultFonts
|
|
121
121
|
})), 1)
|
|
122
122
|
]),
|
|
@@ -125,16 +125,16 @@ const Ee = { class: "references-header" }, Be = {
|
|
|
125
125
|
p("div", {
|
|
126
126
|
ref_key: "documentEl",
|
|
127
127
|
ref: f,
|
|
128
|
-
class:
|
|
128
|
+
class: te(["scalar-app scalar-api-reference references-layout", [
|
|
129
129
|
{
|
|
130
130
|
"references-editable": e.configuration.isEditable,
|
|
131
131
|
"references-sidebar": e.configuration.showSidebar,
|
|
132
|
-
"references-sidebar-mobile-open": i(
|
|
132
|
+
"references-sidebar-mobile-open": i(Y),
|
|
133
133
|
"references-classic": e.configuration.layout === "classic"
|
|
134
134
|
},
|
|
135
135
|
e.$attrs.class
|
|
136
136
|
]]),
|
|
137
|
-
style:
|
|
137
|
+
style: re({
|
|
138
138
|
"--scalar-y-offset": `var(--scalar-custom-header-height, ${w.value}px)`
|
|
139
139
|
}),
|
|
140
140
|
onScrollPassive: o[4] || (o[4] = //@ts-ignore
|
|
@@ -156,14 +156,14 @@ const Ee = { class: "references-header" }, Be = {
|
|
|
156
156
|
}, 8, ["parsedSpec"])
|
|
157
157
|
])
|
|
158
158
|
])) : h("", !0),
|
|
159
|
-
|
|
159
|
+
ae(p("div", Le, [
|
|
160
160
|
p("div", Oe, [
|
|
161
161
|
l(e.$slots, "editor", d(c(s.value)), void 0, !0)
|
|
162
162
|
])
|
|
163
163
|
], 512), [
|
|
164
|
-
[
|
|
164
|
+
[ne, e.configuration.isEditable]
|
|
165
165
|
]),
|
|
166
|
-
|
|
166
|
+
Q.value ? (m(), S(P, { key: 1 }, [
|
|
167
167
|
p("div", Pe, [
|
|
168
168
|
g(i(Re), {
|
|
169
169
|
baseServerURL: e.configuration.baseServerURL,
|
|
@@ -171,7 +171,7 @@ const Ee = { class: "references-header" }, Be = {
|
|
|
171
171
|
parsedSpec: e.parsedSpec,
|
|
172
172
|
proxy: e.configuration.proxy,
|
|
173
173
|
servers: e.configuration.servers
|
|
174
|
-
},
|
|
174
|
+
}, ie({
|
|
175
175
|
start: u(() => [
|
|
176
176
|
l(e.$slots, "content-start", d(c(s.value)), void 0, !0)
|
|
177
177
|
]),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Operation.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/Operation.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Operation.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/Operation.vue"],"names":[],"mappings":"AA0GA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;;;;;;;;AA+R7D,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 "./Operation.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-e99da259"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|
|
@@ -1,62 +1,61 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import B from "
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
|
|
16
|
-
const w = { class: "examples" }, W = /* @__PURE__ */ y({
|
|
1
|
+
import { defineComponent as S, computed as _, openBlock as i, createBlock as p, unref as o, withCtx as t, createVNode as r, createTextVNode as s, createCommentVNode as d, createElementVNode as u, normalizeClass as k, toDisplayString as y } from "vue";
|
|
2
|
+
import E from "./EndpointDetails.vue.js";
|
|
3
|
+
import g from "./EndpointPath.vue.js";
|
|
4
|
+
import v from "./TestRequestButton.vue.js";
|
|
5
|
+
import B from "../../Section/Section.vue.js";
|
|
6
|
+
import N from "../../Section/SectionContent.vue.js";
|
|
7
|
+
import R from "../../Section/SectionColumns.vue.js";
|
|
8
|
+
import f from "../../Section/SectionColumn.vue.js";
|
|
9
|
+
import V from "../../Badge/Badge.vue.js";
|
|
10
|
+
import b from "../../Section/SectionHeader.vue.js";
|
|
11
|
+
import q from "../../Anchor/Anchor.vue.js";
|
|
12
|
+
import x from "../../../features/ExampleRequest/ExampleRequest.vue.js";
|
|
13
|
+
import T from "./PathResponses/PathResponses.vue.js";
|
|
14
|
+
import { useHttpClientStore as D } from "../../../stores/useHttpClientStore.js";
|
|
15
|
+
const H = { class: "examples" }, Q = /* @__PURE__ */ S({
|
|
17
16
|
__name: "Operation",
|
|
18
17
|
props: {
|
|
19
18
|
id: {},
|
|
20
19
|
operation: {}
|
|
21
20
|
},
|
|
22
|
-
setup(
|
|
23
|
-
const
|
|
24
|
-
var
|
|
21
|
+
setup(c) {
|
|
22
|
+
const m = c, { availableTargets: h } = D(), C = _(() => {
|
|
23
|
+
var n;
|
|
25
24
|
const e = ["x-custom-examples", "x-codeSamples", "x-code-samples"];
|
|
26
25
|
for (const a of e)
|
|
27
|
-
if ((
|
|
28
|
-
return
|
|
26
|
+
if ((n = m.operation.information) != null && n[a])
|
|
27
|
+
return m.operation.information[a];
|
|
29
28
|
return null;
|
|
30
29
|
});
|
|
31
|
-
return (e,
|
|
30
|
+
return (e, n) => (i(), p(o(B), {
|
|
32
31
|
id: e.id,
|
|
33
32
|
label: e.operation.name
|
|
34
33
|
}, {
|
|
35
|
-
default:
|
|
36
|
-
|
|
37
|
-
default:
|
|
38
|
-
|
|
39
|
-
default:
|
|
40
|
-
|
|
41
|
-
default:
|
|
42
|
-
var a,
|
|
34
|
+
default: t(() => [
|
|
35
|
+
r(o(N), null, {
|
|
36
|
+
default: t(() => [
|
|
37
|
+
r(o(R), null, {
|
|
38
|
+
default: t(() => [
|
|
39
|
+
r(o(f), null, {
|
|
40
|
+
default: t(() => {
|
|
41
|
+
var a, l;
|
|
43
42
|
return [
|
|
44
|
-
(a = e.operation.information) != null && a.deprecated ? (
|
|
45
|
-
default:
|
|
43
|
+
(a = e.operation.information) != null && a.deprecated ? (i(), p(o(V), { key: 0 }, {
|
|
44
|
+
default: t(() => [
|
|
46
45
|
s(" Deprecated ")
|
|
47
46
|
]),
|
|
48
47
|
_: 1
|
|
49
|
-
})) :
|
|
50
|
-
|
|
51
|
-
class:
|
|
48
|
+
})) : d("", !0),
|
|
49
|
+
u("div", {
|
|
50
|
+
class: k((l = e.operation.information) != null && l.deprecated ? "deprecated" : "")
|
|
52
51
|
}, [
|
|
53
|
-
|
|
54
|
-
default:
|
|
55
|
-
|
|
52
|
+
r(o(b), { level: 3 }, {
|
|
53
|
+
default: t(() => [
|
|
54
|
+
r(o(q), {
|
|
56
55
|
id: e.id ?? ""
|
|
57
56
|
}, {
|
|
58
|
-
default:
|
|
59
|
-
s(
|
|
57
|
+
default: t(() => [
|
|
58
|
+
s(y(e.operation.name), 1)
|
|
60
59
|
]),
|
|
61
60
|
_: 1
|
|
62
61
|
}, 8, ["id"])
|
|
@@ -64,53 +63,35 @@ const w = { class: "examples" }, W = /* @__PURE__ */ y({
|
|
|
64
63
|
_: 1
|
|
65
64
|
})
|
|
66
65
|
], 2),
|
|
67
|
-
|
|
66
|
+
r(E, { operation: e.operation }, null, 8, ["operation"])
|
|
68
67
|
];
|
|
69
68
|
}),
|
|
70
69
|
_: 1
|
|
71
70
|
}),
|
|
72
|
-
|
|
73
|
-
default:
|
|
74
|
-
|
|
75
|
-
|
|
71
|
+
r(o(f), null, {
|
|
72
|
+
default: t(() => [
|
|
73
|
+
u("div", H, [
|
|
74
|
+
o(h).length ? (i(), p(o(x), {
|
|
76
75
|
key: 0,
|
|
77
|
-
|
|
76
|
+
customExamples: C.value,
|
|
78
77
|
operation: e.operation
|
|
79
78
|
}, {
|
|
80
|
-
header:
|
|
79
|
+
header: t(() => {
|
|
81
80
|
var a;
|
|
82
81
|
return [
|
|
83
|
-
|
|
82
|
+
r(g, {
|
|
84
83
|
class: "example-path",
|
|
85
84
|
deprecated: (a = e.operation.information) == null ? void 0 : a.deprecated,
|
|
86
85
|
path: e.operation.path
|
|
87
86
|
}, null, 8, ["deprecated", "path"])
|
|
88
87
|
];
|
|
89
88
|
}),
|
|
90
|
-
footer:
|
|
91
|
-
|
|
89
|
+
footer: t(() => [
|
|
90
|
+
r(v, { operation: e.operation }, null, 8, ["operation"])
|
|
92
91
|
]),
|
|
93
92
|
_: 1
|
|
94
|
-
}, 8, ["
|
|
95
|
-
|
|
96
|
-
operation: e.operation
|
|
97
|
-
}, {
|
|
98
|
-
header: o(() => {
|
|
99
|
-
var a;
|
|
100
|
-
return [
|
|
101
|
-
t(c, {
|
|
102
|
-
class: "example-path",
|
|
103
|
-
deprecated: (a = e.operation.information) == null ? void 0 : a.deprecated,
|
|
104
|
-
path: e.operation.path
|
|
105
|
-
}, null, 8, ["deprecated", "path"])
|
|
106
|
-
];
|
|
107
|
-
}),
|
|
108
|
-
footer: o(() => [
|
|
109
|
-
t(h, { operation: e.operation }, null, 8, ["operation"])
|
|
110
|
-
]),
|
|
111
|
-
_: 1
|
|
112
|
-
}, 8, ["operation"])) : u("", !0),
|
|
113
|
-
t(r(H), {
|
|
93
|
+
}, 8, ["customExamples", "operation"])) : d("", !0),
|
|
94
|
+
r(o(T), {
|
|
114
95
|
operation: e.operation,
|
|
115
96
|
style: { "margin-top": "12px" }
|
|
116
97
|
}, null, 8, ["operation"])
|
|
@@ -130,5 +111,5 @@ const w = { class: "examples" }, W = /* @__PURE__ */ y({
|
|
|
130
111
|
}
|
|
131
112
|
});
|
|
132
113
|
export {
|
|
133
|
-
|
|
114
|
+
Q as default
|
|
134
115
|
};
|
|
@@ -1 +1 @@
|
|
|
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,mBAAmB,CAAA;;;;;;;;
|
|
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,mBAAmB,CAAA;;;;;;;;AAoR7D,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 a = /* @__PURE__ */ r(o, [["__scopeId", "data-v-e9cc5b71"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -2,12 +2,12 @@ import { defineComponent as l, openBlock as r, createBlock as p, unref as e, cre
|
|
|
2
2
|
import { ScalarIcon as f, ScalarIconButton as u, ScalarMarkdown as v } from "@scalar/components";
|
|
3
3
|
import y from "./EndpointDetailsCard.vue.js";
|
|
4
4
|
import _ from "./EndpointPath.vue.js";
|
|
5
|
-
import b from "./
|
|
6
|
-
import C from "
|
|
7
|
-
import k from "../../
|
|
8
|
-
import S from "../../
|
|
9
|
-
import w from "
|
|
10
|
-
import A from "
|
|
5
|
+
import b from "./TestRequestButton.vue.js";
|
|
6
|
+
import C from "../../Section/SectionAccordion.vue.js";
|
|
7
|
+
import k from "../../HttpMethod/HttpMethod.vue.js";
|
|
8
|
+
import S from "../../Anchor/Anchor.vue.js";
|
|
9
|
+
import w from "./PathResponses/PathResponses.vue.js";
|
|
10
|
+
import A from "../../../features/ExampleRequest/ExampleRequest.vue.js";
|
|
11
11
|
import { useClipboard as B } from "../../../hooks/useClipboard.js";
|
|
12
12
|
const E = { class: "endpoint-header" }, R = { class: "endpoint-details" }, g = { class: "endpoint-label" }, I = { class: "endpoint-label-path" }, P = { class: "endpoint-label-name" }, V = { class: "endpoint-content" }, H = /* @__PURE__ */ l({
|
|
13
13
|
__name: "OperationAccordion",
|
|
@@ -17,7 +17,7 @@ const E = { class: "endpoint-header" }, R = { class: "endpoint-details" }, g = {
|
|
|
17
17
|
},
|
|
18
18
|
setup(q) {
|
|
19
19
|
const { copyToClipboard: d } = B();
|
|
20
|
-
return (o, s) => (r(), p(e(
|
|
20
|
+
return (o, s) => (r(), p(e(C), {
|
|
21
21
|
id: o.id,
|
|
22
22
|
class: "reference-endpoint",
|
|
23
23
|
transparent: ""
|
|
@@ -25,12 +25,12 @@ const E = { class: "endpoint-header" }, R = { class: "endpoint-details" }, g = {
|
|
|
25
25
|
title: i(() => [
|
|
26
26
|
n("h3", E, [
|
|
27
27
|
n("div", R, [
|
|
28
|
-
t(e(
|
|
28
|
+
t(e(k), {
|
|
29
29
|
class: "endpoint-type",
|
|
30
30
|
method: o.operation.httpVerb,
|
|
31
31
|
short: ""
|
|
32
32
|
}, null, 8, ["method"]),
|
|
33
|
-
t(e(
|
|
33
|
+
t(e(S), {
|
|
34
34
|
id: o.id ?? "",
|
|
35
35
|
class: "endpoint-anchor"
|
|
36
36
|
}, {
|
|
@@ -54,7 +54,7 @@ const E = { class: "endpoint-header" }, R = { class: "endpoint-details" }, g = {
|
|
|
54
54
|
])
|
|
55
55
|
]),
|
|
56
56
|
actions: i(({ active: a }) => [
|
|
57
|
-
a ? (r(), p(
|
|
57
|
+
a ? (r(), p(b, {
|
|
58
58
|
key: 0,
|
|
59
59
|
operation: o.operation
|
|
60
60
|
}, null, 8, ["operation"])) : (r(), p(e(f), {
|
|
@@ -74,8 +74,8 @@ const E = { class: "endpoint-header" }, R = { class: "endpoint-details" }, g = {
|
|
|
74
74
|
default: i(() => [
|
|
75
75
|
n("div", V, [
|
|
76
76
|
t(y, { operation: o.operation }, null, 8, ["operation"]),
|
|
77
|
-
t(e(
|
|
78
|
-
t(
|
|
77
|
+
t(e(w), { operation: o.operation }, null, 8, ["operation"]),
|
|
78
|
+
t(e(A), { operation: o.operation }, null, 8, ["operation"])
|
|
79
79
|
])
|
|
80
80
|
]),
|
|
81
81
|
_: 2
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PathResponses.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Operation/PathResponses/PathResponses.vue"],"names":[],"mappings":"AA2TA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;;;;;;
|
|
1
|
+
{"version":3,"file":"PathResponses.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Operation/PathResponses/PathResponses.vue"],"names":[],"mappings":"AA2TA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;;;;;;AAwY7D,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 "./PathResponses.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-ee2bb75a"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineComponent as B, ref as S, computed as v, openBlock as t, createBlock as r, unref as s, withCtx as c, createVNode as b, createElementBlock as x, createCommentVNode as f, createTextVNode as g, withDirectives as M, createElementVNode as w, vModelCheckbox as N, Fragment as R, renderList as F, toDisplayString as O, pushScopeId as P, popScopeId as A } from "vue";
|
|
2
2
|
import { ScalarIcon as D, ScalarCodeBlock as U, ScalarMarkdown as H } from "@scalar/components";
|
|
3
3
|
import { normalizeMimeTypeObject as J } from "@scalar/oas-utils/helpers";
|
|
4
|
-
import K from "../ExamplePicker.vue.js";
|
|
5
4
|
import T from "./ExampleResponse.vue.js";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
5
|
+
import K from "../../../Card/Card.vue.js";
|
|
6
|
+
import L from "../../../Card/CardTabHeader.vue.js";
|
|
7
|
+
import W from "../../../Card/CardTab.vue.js";
|
|
8
|
+
import q from "../../../Card/CardContent.vue.js";
|
|
9
|
+
import G from "../../../Card/CardFooter.vue.js";
|
|
10
|
+
import Q from "../../../../features/ExampleRequest/ExamplePicker.vue.js";
|
|
11
11
|
import { useClipboard as X } from "../../../../hooks/useClipboard.js";
|
|
12
|
-
const Y = (u) => (P("data-v-
|
|
12
|
+
const Y = (u) => (P("data-v-ee2bb75a"), u = u(), A(), u), Z = {
|
|
13
13
|
key: 1,
|
|
14
14
|
class: "scalar-card-checkbox"
|
|
15
15
|
}, $ = /* @__PURE__ */ Y(() => /* @__PURE__ */ w("span", { class: "scalar-card-checkbox-checkmark" }, null, -1)), z = { class: "scalar-card-container custom-scroll" }, ee = {
|
|
@@ -57,11 +57,11 @@ const Y = (u) => (P("data-v-6087e0e2"), u = u(), A(), u), Z = {
|
|
|
57
57
|
})), I = (e) => {
|
|
58
58
|
E.value = e, p.value = void 0;
|
|
59
59
|
}, _ = S(!1);
|
|
60
|
-
return (e, a) => C.value.length ? (t(), r(s(
|
|
60
|
+
return (e, a) => C.value.length ? (t(), r(s(K), { key: 0 }, {
|
|
61
61
|
default: c(() => {
|
|
62
62
|
var i;
|
|
63
63
|
return [
|
|
64
|
-
b(s(
|
|
64
|
+
b(s(L), {
|
|
65
65
|
muted: "",
|
|
66
66
|
x: "as",
|
|
67
67
|
onChange: I
|
|
@@ -98,7 +98,7 @@ const Y = (u) => (P("data-v-6087e0e2"), u = u(), A(), u), Z = {
|
|
|
98
98
|
];
|
|
99
99
|
}),
|
|
100
100
|
default: c(() => [
|
|
101
|
-
(t(!0), x(R, null, F(C.value, (l) => (t(), r(s(
|
|
101
|
+
(t(!0), x(R, null, F(C.value, (l) => (t(), r(s(W), { key: l }, {
|
|
102
102
|
default: c(() => [
|
|
103
103
|
g(O(l), 1)
|
|
104
104
|
]),
|
|
@@ -108,7 +108,7 @@ const Y = (u) => (P("data-v-6087e0e2"), u = u(), A(), u), Z = {
|
|
|
108
108
|
_: 1
|
|
109
109
|
}),
|
|
110
110
|
w("div", z, [
|
|
111
|
-
b(s(
|
|
111
|
+
b(s(q), { muted: "" }, {
|
|
112
112
|
default: c(() => {
|
|
113
113
|
var l;
|
|
114
114
|
return [
|
|
@@ -130,7 +130,7 @@ const Y = (u) => (P("data-v-6087e0e2"), u = u(), A(), u), Z = {
|
|
|
130
130
|
_: 1
|
|
131
131
|
})
|
|
132
132
|
]),
|
|
133
|
-
(i = m.value) != null && i.description || y.value ? (t(), r(s(
|
|
133
|
+
(i = m.value) != null && i.description || y.value ? (t(), r(s(G), {
|
|
134
134
|
key: 0,
|
|
135
135
|
class: "response-card-footer",
|
|
136
136
|
muted: ""
|
|
@@ -138,7 +138,7 @@ const Y = (u) => (P("data-v-6087e0e2"), u = u(), A(), u), Z = {
|
|
|
138
138
|
default: c(() => {
|
|
139
139
|
var l, d;
|
|
140
140
|
return [
|
|
141
|
-
y.value ? (t(), r(
|
|
141
|
+
y.value ? (t(), r(s(Q), {
|
|
142
142
|
key: 0,
|
|
143
143
|
class: "response-example-selector",
|
|
144
144
|
examples: (l = o.value) == null ? void 0 : l.examples,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SidebarElement.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8f97b414"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as B, openBlock as a, createElementBlock as d, createElementVNode as h, normalizeClass as
|
|
1
|
+
import { defineComponent as B, openBlock as a, createElementBlock as d, createElementVNode as h, normalizeClass as $, createVNode as p, unref as u, withModifiers as V, createTextVNode as f, createCommentVNode as s, createBlock as N, toDisplayString as A, renderSlot as g } from "vue";
|
|
2
2
|
import { ScalarIconButton as E, ScalarIcon as I } from "@scalar/components";
|
|
3
3
|
import O from "./SidebarHttpBadge.vue.js";
|
|
4
4
|
import { sleep as v } from "../../helpers/sleep.js";
|
|
@@ -25,32 +25,32 @@ const D = ["id"], L = {
|
|
|
25
25
|
},
|
|
26
26
|
emits: ["toggleOpen"],
|
|
27
27
|
setup(b, { emit: C }) {
|
|
28
|
-
const
|
|
29
|
-
var e,
|
|
30
|
-
|
|
28
|
+
const i = b, c = C, { hash: w, isIntersectionEnabled: r, pathRouting: l } = _(), m = async () => {
|
|
29
|
+
var e, t;
|
|
30
|
+
i.hasChildren && c("toggleOpen"), (t = (e = i.item) == null ? void 0 : e.select) == null || t.call(e), i.open && (r.value = !1, await v(100), r.value = !0);
|
|
31
31
|
}, y = () => {
|
|
32
32
|
if (l.value)
|
|
33
|
-
return k(l.value.basePath,
|
|
34
|
-
{
|
|
33
|
+
return k(l.value.basePath, i.item.id);
|
|
34
|
+
if (typeof window < "u") {
|
|
35
35
|
const e = new URL(window.location.href);
|
|
36
|
-
return e.hash =
|
|
37
|
-
}
|
|
36
|
+
return e.hash = i.item.id, `${e.pathname}${e.search}${e.hash}`;
|
|
37
|
+
} else return `#${i.item.id}`;
|
|
38
38
|
}, S = async (e) => {
|
|
39
|
-
var
|
|
39
|
+
var t, o;
|
|
40
40
|
if (l.value) {
|
|
41
|
-
e.preventDefault(),
|
|
41
|
+
e.preventDefault(), i.hasChildren && c("toggleOpen"), (o = (t = i.item) == null ? void 0 : t.select) == null || o.call(t), c("toggleOpen"), r.value = !1, w.value = i.item.id;
|
|
42
42
|
const n = new URL(window.location.href);
|
|
43
|
-
n.pathname = k(l.value.basePath,
|
|
43
|
+
n.pathname = k(l.value.basePath, i.item.id), window.history.pushState({}, "", n), R(i.item.id), await v(100), r.value = !0;
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
|
-
return (e,
|
|
46
|
+
return (e, t) => {
|
|
47
47
|
var o, n;
|
|
48
48
|
return a(), d("li", {
|
|
49
49
|
id: e.id,
|
|
50
50
|
class: "sidebar-group-item"
|
|
51
51
|
}, [
|
|
52
52
|
h("div", {
|
|
53
|
-
class:
|
|
53
|
+
class: $(["sidebar-heading", {
|
|
54
54
|
"sidebar-group-item__folder": e.hasChildren,
|
|
55
55
|
active_page: e.isActive,
|
|
56
56
|
deprecated: e.item.deprecated ?? !1
|
|
@@ -63,7 +63,7 @@ const D = ["id"], L = {
|
|
|
63
63
|
icon: e.open ? "ChevronDown" : "ChevronRight",
|
|
64
64
|
label: "Toggle group",
|
|
65
65
|
size: "xs",
|
|
66
|
-
onClick:
|
|
66
|
+
onClick: V(m, ["stop"])
|
|
67
67
|
}, null, 8, ["icon"]),
|
|
68
68
|
f(" ")
|
|
69
69
|
])) : s("", !0),
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExamplePicker.vue.d.ts","sourceRoot":"","sources":["../../../src/features/ExampleRequest/ExamplePicker.vue"],"names":[],"mappings":";;;;;;;;;AAqMA,wBAOG;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"}
|