@scalar/api-reference 1.24.38 → 1.24.40
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 +32 -0
- package/dist/browser/standalone.js +9274 -9279
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiClientModal.vue.js +8 -8
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +3 -3
- package/dist/components/ApiReferenceLayout.vue2.js +108 -109
- package/dist/components/Card/CardContent.vue.d.ts.map +1 -1
- package/dist/components/Card/CardContent.vue.js +1 -1
- 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 +9 -9
- package/dist/components/Content/Operation/PathResponses/ExampleResponse.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/PathResponses/ExampleResponse.vue.js +1 -1
- package/dist/components/Content/Operation/PathResponses/ExampleResponse.vue2.js +37 -39
- package/dist/components/Content/Operation/PathResponses/PathResponses.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/PathResponses/PathResponses.vue.js +1 -1
- package/dist/components/Content/Operation/PathResponses/PathResponses.vue2.js +1 -1
- package/dist/components/DarkModeToggle/DarkModeToggle.vue.d.ts.map +1 -1
- package/dist/components/DarkModeToggle/DarkModeToggle.vue.js +2 -2
- package/dist/components/DarkModeToggle/DarkModeToggle.vue2.js +8 -5
- package/dist/features/BaseUrl/ServerUrl.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerUrl.vue.js +2 -2
- package/dist/features/BaseUrl/ServerUrlSelect.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerUrlSelect.vue.js +4 -4
- package/dist/features/BaseUrl/ServerUrlSelect.vue2.js +16 -16
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +7 -7
- package/dist/components/Util/Style.vue.d.ts +0 -3
- package/dist/components/Util/Style.vue.d.ts.map +0 -1
- package/dist/components/Util/Style.vue.js +0 -12
- package/dist/components/Util/index.d.ts +0 -2
- package/dist/components/Util/index.d.ts.map +0 -1
|
@@ -2,7 +2,7 @@ import { defineComponent as v, ref as u, onMounted as U, watch as _, onBeforeUnm
|
|
|
2
2
|
import { modalStateBus as B, apiClientBus as A } from "./api-client-bus.js";
|
|
3
3
|
import { getUrlFromServerState as C } from "../legacy/helpers/getUrlFromServerState.js";
|
|
4
4
|
import { useAuthenticationStore as k } from "../legacy/stores/useAuthenticationStore.js";
|
|
5
|
-
import { useServerStore as
|
|
5
|
+
import { useServerStore as M } from "../legacy/stores/useServerStore.js";
|
|
6
6
|
const b = /* @__PURE__ */ v({
|
|
7
7
|
__name: "ApiClientModal",
|
|
8
8
|
props: {
|
|
@@ -10,12 +10,12 @@ const b = /* @__PURE__ */ v({
|
|
|
10
10
|
spec: {}
|
|
11
11
|
},
|
|
12
12
|
setup(c) {
|
|
13
|
-
const
|
|
13
|
+
const o = c, r = u(null), p = u(null), { authentication: i } = k(), { server: s } = M();
|
|
14
14
|
return U(async () => {
|
|
15
|
-
if (!
|
|
16
|
-
const {
|
|
17
|
-
spec:
|
|
18
|
-
proxyUrl:
|
|
15
|
+
if (!r.value) return;
|
|
16
|
+
const { createApiClientModal: t } = await import("@scalar/api-client"), { app: n, open: m, updateAuth: f, updateServerUrl: d, modalState: S, updateSpec: a } = await t(r.value, {
|
|
17
|
+
spec: o.spec ?? {},
|
|
18
|
+
proxyUrl: o.proxyUrl
|
|
19
19
|
});
|
|
20
20
|
B.emit(S), A.on((e) => {
|
|
21
21
|
if (e.open) {
|
|
@@ -25,7 +25,7 @@ const b = /* @__PURE__ */ v({
|
|
|
25
25
|
}
|
|
26
26
|
e.updateSpec && a(e.updateSpec);
|
|
27
27
|
}), _(
|
|
28
|
-
() =>
|
|
28
|
+
() => o.spec,
|
|
29
29
|
(e) => e && a(e),
|
|
30
30
|
{ deep: !0 }
|
|
31
31
|
), p.value = n;
|
|
@@ -34,7 +34,7 @@ const b = /* @__PURE__ */ v({
|
|
|
34
34
|
return (t = p.value) == null ? void 0 : t.unmount();
|
|
35
35
|
}), (t, n) => (x(), y("div", {
|
|
36
36
|
ref_key: "el",
|
|
37
|
-
ref:
|
|
37
|
+
ref: r
|
|
38
38
|
}, null, 512));
|
|
39
39
|
}
|
|
40
40
|
});
|
|
@@ -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":"AAojBA,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,UAAU,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAggBjB,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"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import o from "./ApiReferenceLayout.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
|
-
import
|
|
5
|
-
const
|
|
4
|
+
import e from "../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const m = /* @__PURE__ */ e(o, [["__scopeId", "data-v-be93deac"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
m as default
|
|
8
8
|
};
|
|
@@ -1,30 +1,29 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { provideUseId as
|
|
3
|
-
import { addScalarClassesToHeadless as
|
|
4
|
-
import { defaultStateFactory as
|
|
5
|
-
import { getThemeStyles as
|
|
6
|
-
import { useToasts as
|
|
7
|
-
import { useMediaQuery as
|
|
8
|
-
import
|
|
1
|
+
import { defineComponent as J, ref as h, onMounted as D, onBeforeMount as F, computed as b, watch as X, onServerPrefetch as Z, useSSRContext as _, getCurrentInstance as x, provide as M, openBlock as v, createElementBlock as S, Fragment as O, createElementVNode as i, normalizeClass as ee, unref as u, normalizeStyle as oe, renderSlot as l, normalizeProps as d, guardReactiveProps as c, createVNode as f, withCtx as m, createCommentVNode as w, withDirectives as te, vShow as re, createSlots as ae } from "vue";
|
|
2
|
+
import { provideUseId as ne } from "@headlessui/vue";
|
|
3
|
+
import { addScalarClassesToHeadless as se } from "@scalar/components";
|
|
4
|
+
import { defaultStateFactory as P } from "@scalar/oas-utils/helpers";
|
|
5
|
+
import { getThemeStyles as ie } from "@scalar/themes";
|
|
6
|
+
import { useToasts as le, ScalarToasts as de } from "@scalar/use-toasts";
|
|
7
|
+
import { useMediaQuery as ce, useResizeObserver as ue, useDebounceFn as pe } from "@vueuse/core";
|
|
8
|
+
import fe from "./ApiClientModal.vue.js";
|
|
9
9
|
/* empty css */
|
|
10
|
-
import
|
|
11
|
-
import { downloadSpecBus as
|
|
12
|
-
import { useDeprecationWarnings as
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
|
|
21
|
-
const Ee = { class: "references-header" }, Be = {
|
|
10
|
+
import me from "./GettingStarted.vue.js";
|
|
11
|
+
import { downloadSpecBus as ge, downloadSpecFile as ve } from "../helpers/specDownloads.js";
|
|
12
|
+
import { useDeprecationWarnings as Se } from "../hooks/useDeprecationWarnings.js";
|
|
13
|
+
import he from "./Sidebar/Sidebar.vue.js";
|
|
14
|
+
import be from "./Content/Content.vue.js";
|
|
15
|
+
import { GLOBAL_SECURITY_SYMBOL as we, HIDE_DOWNLOAD_BUTTON_SYMBOL as ye } from "../helpers/provideSymbols.js";
|
|
16
|
+
import { useSidebar as Te } from "../hooks/useSidebar.js";
|
|
17
|
+
import { useNavState as Re } from "../hooks/useNavState.js";
|
|
18
|
+
import { scrollToId as $e } from "../helpers/scrollToId.js";
|
|
19
|
+
import { sleep as Ce } from "../helpers/sleep.js";
|
|
20
|
+
const Ie = ["innerHTML"], Le = { class: "references-header" }, Ee = {
|
|
22
21
|
key: 0,
|
|
23
22
|
class: "references-navigation t-doc__sidebar"
|
|
24
|
-
},
|
|
23
|
+
}, ke = { class: "references-navigation-list" }, Be = { class: "references-editor" }, De = { class: "references-editor-textarea" }, Fe = { class: "references-rendered" }, Me = {
|
|
25
24
|
key: 0,
|
|
26
25
|
class: "references-footer"
|
|
27
|
-
},
|
|
26
|
+
}, xe = /* @__PURE__ */ J({
|
|
28
27
|
inheritAttrs: !1,
|
|
29
28
|
__name: "ApiReferenceLayout",
|
|
30
29
|
props: {
|
|
@@ -33,159 +32,159 @@ const Ee = { class: "references-header" }, Be = {
|
|
|
33
32
|
rawSpec: {}
|
|
34
33
|
},
|
|
35
34
|
emits: ["changeTheme", "updateContent", "loadSwaggerFile", "linkSwaggerFile", "toggleDarkMode"],
|
|
36
|
-
setup(
|
|
37
|
-
const t =
|
|
38
|
-
A((e) =>
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
|
|
35
|
+
setup(U) {
|
|
36
|
+
const t = U, { initializeToasts: A, toast: H } = le();
|
|
37
|
+
A((e) => H(e));
|
|
38
|
+
const N = ce("(min-width: 1150px)"), z = h("100dvh"), p = h(null);
|
|
39
|
+
ue(p, (e) => {
|
|
40
|
+
z.value = e[0].contentRect.height + "px";
|
|
42
41
|
});
|
|
43
|
-
const
|
|
44
|
-
|
|
42
|
+
const y = h(0);
|
|
43
|
+
D(() => {
|
|
45
44
|
var a, r, n;
|
|
46
|
-
const e = (r = (a =
|
|
45
|
+
const e = (r = (a = p.value) == null ? void 0 : a.parentElement) == null ? void 0 : r.getBoundingClientRect(), o = (n = p.value) == null ? void 0 : n.getBoundingClientRect();
|
|
47
46
|
if (e && o) {
|
|
48
|
-
const
|
|
49
|
-
|
|
47
|
+
const B = o.top - e.top;
|
|
48
|
+
y.value = B < 2 ? 0 : B;
|
|
50
49
|
}
|
|
51
50
|
});
|
|
52
51
|
const {
|
|
53
|
-
breadcrumb:
|
|
54
|
-
collapsedSidebarItems:
|
|
55
|
-
isSidebarOpen:
|
|
56
|
-
setCollapsedSidebarItem:
|
|
52
|
+
breadcrumb: Y,
|
|
53
|
+
collapsedSidebarItems: g,
|
|
54
|
+
isSidebarOpen: V,
|
|
55
|
+
setCollapsedSidebarItem: T,
|
|
57
56
|
hideModels: G,
|
|
58
57
|
setParsedSpec: W
|
|
59
|
-
} =
|
|
58
|
+
} = Te(), {
|
|
60
59
|
getPathRoutingId: R,
|
|
61
60
|
getSectionId: j,
|
|
62
61
|
getTagId: K,
|
|
63
|
-
hash:
|
|
62
|
+
hash: $,
|
|
64
63
|
isIntersectionEnabled: C,
|
|
65
|
-
pathRouting:
|
|
66
|
-
updateHash:
|
|
67
|
-
} =
|
|
68
|
-
|
|
69
|
-
const
|
|
64
|
+
pathRouting: I,
|
|
65
|
+
updateHash: L
|
|
66
|
+
} = Re();
|
|
67
|
+
I.value = t.configuration.pathRouting, F(() => L());
|
|
68
|
+
const E = async (e) => {
|
|
70
69
|
var o;
|
|
71
|
-
C.value = !1,
|
|
70
|
+
C.value = !1, L(), e ? $e(e) : (o = p.value) == null || o.scrollTo(0, 0), await Ce(100), C.value = !0;
|
|
72
71
|
};
|
|
73
|
-
F(() =>
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}), window.onhashchange = () =>
|
|
72
|
+
F(() => se()), D(() => {
|
|
73
|
+
ge.on(({ specTitle: e }) => {
|
|
74
|
+
ve(t.rawSpec, e);
|
|
75
|
+
}), window.onhashchange = () => E(decodeURIComponent(window.location.hash.replace(/^#/, ""))), window.onpopstate = () => I.value && E(R(window.location.pathname));
|
|
77
76
|
});
|
|
78
|
-
const Q =
|
|
79
|
-
() =>
|
|
80
|
-
),
|
|
77
|
+
const Q = b(
|
|
78
|
+
() => N.value || !t.configuration.isEditable
|
|
79
|
+
), k = pe((e) => {
|
|
81
80
|
if ((e.target.scrollTop ?? 0) < 50) {
|
|
82
81
|
const a = t.configuration.pathRouting ? t.configuration.pathRouting.basePath : window.location.pathname;
|
|
83
|
-
window.history.replaceState({}, "", a + window.location.search),
|
|
82
|
+
window.history.replaceState({}, "", a + window.location.search), $.value = "";
|
|
84
83
|
}
|
|
85
|
-
}), s =
|
|
86
|
-
breadcrumb:
|
|
84
|
+
}), s = b(() => ({
|
|
85
|
+
breadcrumb: Y.value,
|
|
87
86
|
spec: t.parsedSpec
|
|
88
87
|
}));
|
|
89
|
-
|
|
88
|
+
X(() => t.parsedSpec, W, { deep: !0 }), Z(() => {
|
|
90
89
|
var o, a;
|
|
91
|
-
const e =
|
|
92
|
-
if (e && (e.payload || (e.payload = { data:
|
|
90
|
+
const e = _();
|
|
91
|
+
if (e && (e.payload || (e.payload = { data: P() }), (o = e.payload).data || (o.data = P()), t.configuration.pathRouting)) {
|
|
93
92
|
const r = R(e.url);
|
|
94
|
-
|
|
95
|
-
for (const n in
|
|
96
|
-
Object.hasOwn(
|
|
93
|
+
$.value = r, e.payload.data.hash = r;
|
|
94
|
+
for (const n in g)
|
|
95
|
+
Object.hasOwn(g, n) && delete g[n];
|
|
97
96
|
if (r)
|
|
98
|
-
|
|
97
|
+
T(j(r), !0);
|
|
99
98
|
else {
|
|
100
99
|
const n = (a = t.parsedSpec.tags) == null ? void 0 : a[0];
|
|
101
|
-
n &&
|
|
100
|
+
n && T(K(n), !0);
|
|
102
101
|
}
|
|
103
|
-
e.payload.data["useSidebarContent-collapsedSidebarItems"] =
|
|
102
|
+
e.payload.data["useSidebarContent-collapsedSidebarItems"] = g;
|
|
104
103
|
}
|
|
105
|
-
}),
|
|
104
|
+
}), ne(() => {
|
|
106
105
|
var r;
|
|
107
|
-
const e =
|
|
106
|
+
const e = x(), o = "scalar-instance-id";
|
|
108
107
|
if (!e) return o;
|
|
109
108
|
let a = e.uid;
|
|
110
109
|
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
|
-
}),
|
|
112
|
-
|
|
110
|
+
}), M(we, () => t.parsedSpec.security), M(
|
|
111
|
+
ye,
|
|
113
112
|
() => t.configuration.hideDownloadButton
|
|
114
|
-
), G.value = t.configuration.hideModels ?? !1,
|
|
113
|
+
), G.value = t.configuration.hideModels ?? !1, Se(t.configuration);
|
|
114
|
+
const q = b(
|
|
115
|
+
() => `<style>
|
|
116
|
+
${ie(t.configuration.theme, {
|
|
117
|
+
fonts: t.configuration.withDefaultFonts
|
|
118
|
+
})}</style>`
|
|
119
|
+
);
|
|
120
|
+
return (e, o) => {
|
|
115
121
|
var a;
|
|
116
|
-
return
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
ee(oe(i(de)(e.configuration.theme, {
|
|
120
|
-
fonts: e.configuration.withDefaultFonts
|
|
121
|
-
})), 1)
|
|
122
|
-
]),
|
|
123
|
-
_: 1
|
|
124
|
-
})) : h("", !0),
|
|
125
|
-
p("div", {
|
|
122
|
+
return v(), S(O, null, [
|
|
123
|
+
i("div", { innerHTML: q.value }, null, 8, Ie),
|
|
124
|
+
i("div", {
|
|
126
125
|
ref_key: "documentEl",
|
|
127
|
-
ref:
|
|
128
|
-
class:
|
|
126
|
+
ref: p,
|
|
127
|
+
class: ee(["scalar-app scalar-api-reference references-layout", [
|
|
129
128
|
{
|
|
130
129
|
"references-editable": e.configuration.isEditable,
|
|
131
130
|
"references-sidebar": e.configuration.showSidebar,
|
|
132
|
-
"references-sidebar-mobile-open":
|
|
131
|
+
"references-sidebar-mobile-open": u(V),
|
|
133
132
|
"references-classic": e.configuration.layout === "classic"
|
|
134
133
|
},
|
|
135
134
|
e.$attrs.class
|
|
136
135
|
]]),
|
|
137
|
-
style:
|
|
138
|
-
"--scalar-y-offset": `var(--scalar-custom-header-height, ${
|
|
136
|
+
style: oe({
|
|
137
|
+
"--scalar-y-offset": `var(--scalar-custom-header-height, ${y.value}px)`
|
|
139
138
|
}),
|
|
140
139
|
onScrollPassive: o[4] || (o[4] = //@ts-ignore
|
|
141
|
-
(...r) =>
|
|
140
|
+
(...r) => u(k) && u(k)(...r))
|
|
142
141
|
}, [
|
|
143
|
-
|
|
142
|
+
i("div", Le, [
|
|
144
143
|
l(e.$slots, "header", d(c(s.value)), void 0, !0)
|
|
145
144
|
]),
|
|
146
|
-
e.configuration.showSidebar ? (
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
"sidebar-start":
|
|
145
|
+
e.configuration.showSidebar ? (v(), S("aside", Ee, [
|
|
146
|
+
i("div", ke, [
|
|
147
|
+
f(u(he), { parsedSpec: e.parsedSpec }, {
|
|
148
|
+
"sidebar-start": m(() => [
|
|
150
149
|
l(e.$slots, "sidebar-start", d(c(s.value)), void 0, !0)
|
|
151
150
|
]),
|
|
152
|
-
"sidebar-end":
|
|
151
|
+
"sidebar-end": m(() => [
|
|
153
152
|
l(e.$slots, "sidebar-end", d(c(s.value)), void 0, !0)
|
|
154
153
|
]),
|
|
155
154
|
_: 3
|
|
156
155
|
}, 8, ["parsedSpec"])
|
|
157
156
|
])
|
|
158
|
-
])) :
|
|
159
|
-
|
|
160
|
-
|
|
157
|
+
])) : w("", !0),
|
|
158
|
+
te(i("div", Be, [
|
|
159
|
+
i("div", De, [
|
|
161
160
|
l(e.$slots, "editor", d(c(s.value)), void 0, !0)
|
|
162
161
|
])
|
|
163
162
|
], 512), [
|
|
164
|
-
[
|
|
163
|
+
[re, e.configuration.isEditable]
|
|
165
164
|
]),
|
|
166
|
-
Q.value ? (
|
|
167
|
-
|
|
168
|
-
|
|
165
|
+
Q.value ? (v(), S(O, { key: 1 }, [
|
|
166
|
+
i("div", Fe, [
|
|
167
|
+
f(u(be), {
|
|
169
168
|
baseServerURL: e.configuration.baseServerURL,
|
|
170
169
|
layout: e.configuration.layout === "classic" ? "accordion" : "default",
|
|
171
170
|
parsedSpec: e.parsedSpec,
|
|
172
171
|
proxy: e.configuration.proxy,
|
|
173
172
|
servers: e.configuration.servers
|
|
174
|
-
},
|
|
175
|
-
start:
|
|
173
|
+
}, ae({
|
|
174
|
+
start: m(() => [
|
|
176
175
|
l(e.$slots, "content-start", d(c(s.value)), void 0, !0)
|
|
177
176
|
]),
|
|
178
|
-
end:
|
|
177
|
+
end: m(() => [
|
|
179
178
|
l(e.$slots, "content-end", d(c(s.value)), void 0, !0)
|
|
180
179
|
]),
|
|
181
180
|
_: 2
|
|
182
181
|
}, [
|
|
183
182
|
(a = e.configuration) != null && a.isEditable ? {
|
|
184
183
|
name: "empty-state",
|
|
185
|
-
fn:
|
|
184
|
+
fn: m(() => {
|
|
186
185
|
var r;
|
|
187
186
|
return [
|
|
188
|
-
|
|
187
|
+
f(me, {
|
|
189
188
|
theme: ((r = e.configuration) == null ? void 0 : r.theme) || "default",
|
|
190
189
|
onChangeTheme: o[0] || (o[0] = (n) => e.$emit("changeTheme", n)),
|
|
191
190
|
onLinkSwaggerFile: o[1] || (o[1] = (n) => e.$emit("linkSwaggerFile")),
|
|
@@ -198,20 +197,20 @@ const Ee = { class: "references-header" }, Be = {
|
|
|
198
197
|
} : void 0
|
|
199
198
|
]), 1032, ["baseServerURL", "layout", "parsedSpec", "proxy", "servers"])
|
|
200
199
|
]),
|
|
201
|
-
e.$slots.footer ? (
|
|
200
|
+
e.$slots.footer ? (v(), S("div", Me, [
|
|
202
201
|
l(e.$slots, "footer", d(c(s.value)), void 0, !0)
|
|
203
|
-
])) :
|
|
204
|
-
], 64)) :
|
|
205
|
-
|
|
202
|
+
])) : w("", !0)
|
|
203
|
+
], 64)) : w("", !0),
|
|
204
|
+
f(fe, {
|
|
206
205
|
proxyUrl: e.configuration.proxy,
|
|
207
206
|
spec: e.configuration.spec
|
|
208
207
|
}, null, 8, ["proxyUrl", "spec"])
|
|
209
208
|
], 38),
|
|
210
|
-
|
|
209
|
+
f(u(de))
|
|
211
210
|
], 64);
|
|
212
211
|
};
|
|
213
212
|
}
|
|
214
213
|
});
|
|
215
214
|
export {
|
|
216
|
-
|
|
215
|
+
xe as default
|
|
217
216
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardContent.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Card/CardContent.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CardContent.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Card/CardContent.vue"],"names":[],"mappings":"AA8CA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;;;;AA8E/C,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"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./CardContent.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-1c1d215c"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -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":"AAmNA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;;;;;;;;AAkR7D,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 p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-0a481dcd"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -7,24 +7,24 @@ import C from "../../Section/SectionAccordion.vue.js";
|
|
|
7
7
|
import k from "../../HttpMethod/HttpMethod.vue.js";
|
|
8
8
|
import S from "../../Anchor/Anchor.vue.js";
|
|
9
9
|
import w from "./PathResponses/PathResponses.vue.js";
|
|
10
|
-
import
|
|
11
|
-
import { useClipboard as
|
|
12
|
-
const
|
|
10
|
+
import B from "../../../features/ExampleRequest/ExampleRequest.vue.js";
|
|
11
|
+
import { useClipboard as E } from "../../../hooks/useClipboard.js";
|
|
12
|
+
const R = { class: "endpoint-header" }, g = { class: "endpoint-details" }, A = { class: "endpoint-label" }, I = { class: "endpoint-label-path" }, P = { class: "endpoint-label-name" }, V = { class: "endpoint-content" }, H = /* @__PURE__ */ l({
|
|
13
13
|
__name: "OperationAccordion",
|
|
14
14
|
props: {
|
|
15
15
|
id: {},
|
|
16
16
|
operation: {}
|
|
17
17
|
},
|
|
18
18
|
setup(q) {
|
|
19
|
-
const { copyToClipboard: d } =
|
|
19
|
+
const { copyToClipboard: d } = E();
|
|
20
20
|
return (o, s) => (r(), p(e(C), {
|
|
21
21
|
id: o.id,
|
|
22
22
|
class: "reference-endpoint",
|
|
23
23
|
transparent: ""
|
|
24
24
|
}, c({
|
|
25
25
|
title: i(() => [
|
|
26
|
-
n("h3",
|
|
27
|
-
n("div",
|
|
26
|
+
n("h3", R, [
|
|
27
|
+
n("div", g, [
|
|
28
28
|
t(e(k), {
|
|
29
29
|
class: "endpoint-type",
|
|
30
30
|
method: o.operation.httpVerb,
|
|
@@ -37,7 +37,7 @@ const E = { class: "endpoint-header" }, R = { class: "endpoint-details" }, g = {
|
|
|
37
37
|
default: i(() => {
|
|
38
38
|
var a;
|
|
39
39
|
return [
|
|
40
|
-
n("div",
|
|
40
|
+
n("div", A, [
|
|
41
41
|
n("div", I, [
|
|
42
42
|
t(_, {
|
|
43
43
|
deprecated: (a = o.operation.information) == null ? void 0 : a.deprecated,
|
|
@@ -60,7 +60,7 @@ const E = { class: "endpoint-header" }, R = { class: "endpoint-details" }, g = {
|
|
|
60
60
|
}, null, 8, ["operation"])) : (r(), p(e(f), {
|
|
61
61
|
key: 1,
|
|
62
62
|
class: "endpoint-try-hint",
|
|
63
|
-
icon: "
|
|
63
|
+
icon: "Play"
|
|
64
64
|
})),
|
|
65
65
|
t(e(u), {
|
|
66
66
|
class: "endpoint-copy",
|
|
@@ -75,7 +75,7 @@ const E = { class: "endpoint-header" }, R = { class: "endpoint-details" }, g = {
|
|
|
75
75
|
n("div", V, [
|
|
76
76
|
t(y, { operation: o.operation }, null, 8, ["operation"]),
|
|
77
77
|
t(e(w), { operation: o.operation }, null, 8, ["operation"]),
|
|
78
|
-
t(e(
|
|
78
|
+
t(e(B), { operation: o.operation }, null, 8, ["operation"])
|
|
79
79
|
])
|
|
80
80
|
]),
|
|
81
81
|
_: 2
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExampleResponse.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Operation/PathResponses/ExampleResponse.vue"],"names":[],"mappings":";;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"ExampleResponse.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Operation/PathResponses/ExampleResponse.vue"],"names":[],"mappings":";;;;;;;;;;;AAgeA,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 "./ExampleResponse.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import p from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const r = /* @__PURE__ */ p(o, [["__scopeId", "data-v-
|
|
4
|
+
const r = /* @__PURE__ */ p(o, [["__scopeId", "data-v-9fd95437"]]);
|
|
5
5
|
export {
|
|
6
6
|
r as default
|
|
7
7
|
};
|
|
@@ -1,43 +1,42 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as D, openBlock as o, createBlock as a, unref as s, createElementBlock as t, Fragment as p, renderList as C, createElementVNode as V, toDisplayString as J, createVNode as L, createCommentVNode as P } from "vue";
|
|
2
2
|
import { ScalarCodeBlock as r } from "@scalar/components";
|
|
3
|
-
import { prettyPrintJson as
|
|
4
|
-
import { getExampleFromSchema as
|
|
5
|
-
const R = {
|
|
3
|
+
import { prettyPrintJson as F } from "@scalar/oas-utils/helpers";
|
|
4
|
+
import { getExampleFromSchema as l } from "@scalar/oas-utils/spec-getters";
|
|
5
|
+
const R = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "rule"
|
|
8
|
-
},
|
|
8
|
+
}, q = { class: "rule-title" }, w = { class: "rule-items" }, z = {
|
|
9
9
|
key: 2,
|
|
10
10
|
class: "empty-state"
|
|
11
|
-
},
|
|
11
|
+
}, Q = /* @__PURE__ */ D({
|
|
12
12
|
__name: "ExampleResponse",
|
|
13
13
|
props: {
|
|
14
14
|
response: {}
|
|
15
15
|
},
|
|
16
|
-
setup(
|
|
17
|
-
const
|
|
16
|
+
setup(G) {
|
|
17
|
+
const _ = ["oneOf", "anyOf", "not"], c = (e) => e.reduce((i, m) => ({
|
|
18
18
|
...i,
|
|
19
|
-
...
|
|
19
|
+
...m
|
|
20
20
|
}), {});
|
|
21
21
|
return (e, i) => {
|
|
22
|
-
var
|
|
23
|
-
return (
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
var j, O, _, v, B, E;
|
|
22
|
+
var m, d, h, y, g, u, f, k, S;
|
|
23
|
+
return (m = e.response) != null && m.example ? (o(), a(s(r), {
|
|
24
|
+
key: 0,
|
|
25
|
+
content: s(F)((d = e.response) == null ? void 0 : d.example),
|
|
26
|
+
lang: "json"
|
|
27
|
+
}, null, 8, ["content"])) : (h = e.response) != null && h.schema ? (o(), t(p, { key: 1 }, [
|
|
28
|
+
(o(), t(p, null, C(_, (n) => {
|
|
29
|
+
var j, O, B, E, N, v;
|
|
31
30
|
return o(), t(p, { key: n }, [
|
|
32
|
-
(j = e.response) != null && j.schema[n] && (((O = e.response) == null ? void 0 : O.schema[n].length) > 1 || n === "not") ? (o(), t("div",
|
|
33
|
-
V("div",
|
|
34
|
-
V("ol",
|
|
35
|
-
(o(!0), t(p, null, C((
|
|
36
|
-
key:
|
|
31
|
+
(j = e.response) != null && j.schema[n] && (((O = e.response) == null ? void 0 : O.schema[n].length) > 1 || n === "not") ? (o(), t("div", R, [
|
|
32
|
+
V("div", q, J(n), 1),
|
|
33
|
+
V("ol", w, [
|
|
34
|
+
(o(!0), t(p, null, C((B = e.response) == null ? void 0 : B.schema[n], (b, A) => (o(), t("li", {
|
|
35
|
+
key: A,
|
|
37
36
|
class: "rule-item"
|
|
38
37
|
}, [
|
|
39
|
-
|
|
40
|
-
content: s(
|
|
38
|
+
L(s(r), {
|
|
39
|
+
content: s(l)(b, {
|
|
41
40
|
emptyString: "…",
|
|
42
41
|
mode: "read"
|
|
43
42
|
}),
|
|
@@ -45,53 +44,52 @@ const R = { key: 0 }, q = { key: 1 }, w = {
|
|
|
45
44
|
}, null, 8, ["content"])
|
|
46
45
|
]))), 128))
|
|
47
46
|
])
|
|
48
|
-
])) : (
|
|
47
|
+
])) : (E = e.response) != null && E.schema[n] && ((N = e.response) == null ? void 0 : N.schema[n].length) === 1 ? (o(), a(s(r), {
|
|
49
48
|
key: 1,
|
|
50
|
-
content: s(
|
|
49
|
+
content: s(l)((v = e.response) == null ? void 0 : v.schema[n][0], {
|
|
51
50
|
emptyString: "…",
|
|
52
51
|
mode: "read"
|
|
53
52
|
}),
|
|
54
53
|
lang: "json"
|
|
55
|
-
}, null, 8, ["content"])) :
|
|
54
|
+
}, null, 8, ["content"])) : P("", !0)
|
|
56
55
|
], 64);
|
|
57
56
|
}), 64)),
|
|
58
|
-
(y = e.response) != null && y.schema.allOf ? (o(),
|
|
57
|
+
(y = e.response) != null && y.schema.allOf ? (o(), a(s(r), {
|
|
59
58
|
key: 0,
|
|
60
59
|
content: c(
|
|
61
|
-
(
|
|
62
|
-
(n) => s(
|
|
60
|
+
(g = e.response) == null ? void 0 : g.schema.allOf.map(
|
|
61
|
+
(n) => s(l)(n, {
|
|
63
62
|
emptyString: "…",
|
|
64
63
|
mode: "read"
|
|
65
64
|
})
|
|
66
65
|
)
|
|
67
66
|
),
|
|
68
67
|
lang: "json"
|
|
69
|
-
}, null, 8, ["content"])) :
|
|
70
|
-
(f = (g = e.response) == null ? void 0 : g.schema.items) != null && f.allOf ? (o(), m(s(r), {
|
|
68
|
+
}, null, 8, ["content"])) : (f = (u = e.response) == null ? void 0 : u.schema.items) != null && f.allOf ? (o(), a(s(r), {
|
|
71
69
|
key: 1,
|
|
72
70
|
content: c(
|
|
73
71
|
(k = e.response) == null ? void 0 : k.schema.items.allOf.map(
|
|
74
|
-
(n) => s(
|
|
72
|
+
(n) => s(l)(n, {
|
|
75
73
|
emptyString: "…",
|
|
76
74
|
mode: "read"
|
|
77
75
|
})
|
|
78
76
|
)
|
|
79
77
|
),
|
|
80
78
|
lang: "json"
|
|
81
|
-
}, null, 8, ["content"])) : (o(),
|
|
79
|
+
}, null, 8, ["content"])) : (o(), a(s(r), {
|
|
82
80
|
key: 2,
|
|
83
|
-
content: s(
|
|
84
|
-
s(
|
|
81
|
+
content: s(F)(
|
|
82
|
+
s(l)((S = e.response) == null ? void 0 : S.schema, {
|
|
85
83
|
emptyString: "…",
|
|
86
84
|
mode: "read"
|
|
87
85
|
})
|
|
88
86
|
),
|
|
89
87
|
lang: "json"
|
|
90
88
|
}, null, 8, ["content"]))
|
|
91
|
-
])) : (o(), t("div",
|
|
89
|
+
], 64)) : (o(), t("div", z, " No Body "));
|
|
92
90
|
};
|
|
93
91
|
}
|
|
94
92
|
});
|
|
95
93
|
export {
|
|
96
|
-
|
|
94
|
+
Q as default
|
|
97
95
|
};
|