@scalar/api-reference 1.25.34 → 1.25.36
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 +10 -0
- package/dist/browser/standalone.js +6706 -6670
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +3 -3
- package/dist/components/ApiReferenceLayout.vue2.js +137 -133
- package/dist/components/Content/Authentication/Authentication.vue.d.ts.map +1 -1
- package/dist/components/Content/Authentication/Authentication.vue.js +2 -2
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.js +2 -2
- package/dist/components/Content/ClientLibraries/ClientSelector.vue2.js +61 -46
- package/dist/components/Content/Content.vue.js +1 -1
- package/dist/components/Content/Content.vue2.js +19 -19
- package/dist/features/BaseUrl/ServerForm.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerForm.vue.js +2 -2
- package/dist/features/BaseUrl/ServerForm.vue2.js +39 -32
- package/dist/features/BaseUrl/ServerUrl.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerUrl.vue.js +2 -3
- package/dist/features/BaseUrl/ServerUrl.vue2.js +13 -15
- package/dist/features/BaseUrl/ServerUrlSelect.vue.d.ts +2 -0
- package/dist/features/BaseUrl/ServerUrlSelect.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerUrlSelect.vue.js +2 -2
- package/dist/features/BaseUrl/ServerUrlSelect.vue2.js +37 -36
- package/dist/features/BaseUrl/ServerVariablesForm.vue.d.ts +4 -0
- package/dist/features/BaseUrl/ServerVariablesForm.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerVariablesForm.vue.js +1 -1
- package/dist/features/BaseUrl/ServerVariablesForm.vue2.js +37 -31
- package/dist/features/BaseUrl/ServerVariablesSelect.vue.d.ts +2 -0
- package/dist/features/BaseUrl/ServerVariablesSelect.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerVariablesSelect.vue.js +3 -3
- package/dist/features/BaseUrl/ServerVariablesSelect.vue2.js +39 -35
- package/dist/features/BaseUrl/ServerVariablesTextbox.vue.d.ts +2 -0
- package/dist/features/BaseUrl/ServerVariablesTextbox.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerVariablesTextbox.vue.js +4 -4
- package/dist/features/BaseUrl/ServerVariablesTextbox.vue2.js +11 -9
- package/dist/features/DownloadLink/DownloadLink.vue.d.ts.map +1 -1
- package/dist/features/DownloadLink/DownloadLink.vue.js +2 -2
- package/dist/features/DownloadLink/DownloadLink.vue2.js +12 -11
- package/dist/index.js +1 -1
- package/dist/legacy/components/CardFormTextInput.vue.d.ts +2 -0
- package/dist/legacy/components/CardFormTextInput.vue.d.ts.map +1 -1
- package/dist/legacy/components/CardFormTextInput.vue.js +1 -1
- package/dist/legacy/components/CardFormTextInput.vue2.js +39 -23
- package/dist/legacy/components/SecuritySchemeSelector.vue.d.ts.map +1 -1
- package/dist/legacy/components/SecuritySchemeSelector.vue.js +2 -2
- package/dist/legacy/components/SecuritySchemeSelector.vue2.js +67 -45
- package/dist/style.css +1 -1
- package/package.json +7 -7
|
@@ -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":"AAikBA,OAAO,EACL,KAAK,OAAO,EAGb,MAAM,gBAAgB,CAAA;AA2BvB,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,UAAU,CAAA;AA0OjB,iBAAS,cAAc;oBA9Me,kBAAkB,KAAK,GAAG;oBAA1B,kBAAkB,KAAK,GAAG;oBAA1B,kBAAkB,KAAK,GAAG;6BAA1B,kBAAkB,KAAK,GAAG;2BAA1B,kBAAkB,KAAK,GAAG;6BAA1B,kBAAkB,KAAK,GAAG;2BAA1B,kBAAkB,KAAK,GAAG;;oBAA1B,kBAAkB,KAAK,GAAG;oBAA1B,kBAAkB,KAAK,GAAG;oBAA1B,kBAAkB,KAAK,GAAG;6BAA1B,kBAAkB,KAAK,GAAG;2BAA1B,kBAAkB,KAAK,GAAG;6BAA1B,kBAAkB,KAAK,GAAG;2BAA1B,kBAAkB,KAAK,GAAG;EA4f/D;AACD,QAAA,MAAM,eAAe;;YA7gBqB,OAAO;eAAS,MAAM;;;;;;;;YAAtB,OAAO;eAAS,MAAM;;;;;;UAohB9D,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,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 c = /* @__PURE__ */ e(o, [["__scopeId", "data-v-c9ecea2a"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
c as default
|
|
8
8
|
};
|
|
@@ -1,27 +1,24 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { provideUseId as
|
|
3
|
-
import { addScalarClassesToHeadless as
|
|
4
|
-
import { defaultStateFactory as
|
|
5
|
-
import { hasObtrusiveScrollbars as
|
|
6
|
-
import { useToasts as
|
|
7
|
-
import { useMediaQuery as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { downloadSpecBus as
|
|
11
|
-
import { useDeprecationWarnings as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import { useSidebar as
|
|
15
|
-
import { GLOBAL_SECURITY_SYMBOL as
|
|
16
|
-
import { useNavState as
|
|
17
|
-
import { sleep as
|
|
18
|
-
const
|
|
19
|
-
key: 0,
|
|
20
|
-
class: "references-navigation t-doc__sidebar"
|
|
21
|
-
}, Pe = { class: "references-navigation-list" }, Fe = { class: "references-editor" }, Ae = { class: "references-editor-textarea" }, Ne = { class: "references-rendered" }, He = {
|
|
1
|
+
import { defineComponent as ee, ref as R, computed as b, onBeforeMount as P, onMounted as oe, onUnmounted as te, watch as re, onServerPrefetch as ae, useSSRContext as ne, getCurrentInstance as se, provide as y, openBlock as w, createElementBlock as T, Fragment as k, createElementVNode as l, normalizeClass as ie, unref as p, normalizeStyle as le, renderSlot as d, normalizeProps as c, guardReactiveProps as u, createVNode as m, withCtx as S, createCommentVNode as $, withDirectives as de, vShow as ce, createSlots as ue } from "vue";
|
|
2
|
+
import { provideUseId as pe } from "@headlessui/vue";
|
|
3
|
+
import { addScalarClassesToHeadless as fe } from "@scalar/components";
|
|
4
|
+
import { defaultStateFactory as A } from "@scalar/oas-utils/helpers";
|
|
5
|
+
import { hasObtrusiveScrollbars as ge, getThemeStyles as me } from "@scalar/themes";
|
|
6
|
+
import { useToasts as Se, ScalarToasts as ve } from "@scalar/use-toasts";
|
|
7
|
+
import { useMediaQuery as he, useResizeObserver as be, useDebounceFn as ye } from "@vueuse/core";
|
|
8
|
+
import we from "./ApiClientModal.vue.js";
|
|
9
|
+
import Te from "./GettingStarted.vue.js";
|
|
10
|
+
import { downloadSpecBus as F, downloadSpecFile as Re } from "../helpers/specDownloads.js";
|
|
11
|
+
import { useDeprecationWarnings as $e } from "../hooks/useDeprecationWarnings.js";
|
|
12
|
+
import Ce from "./Sidebar/Sidebar.vue.js";
|
|
13
|
+
import Oe from "./Content/Content.vue.js";
|
|
14
|
+
import { useSidebar as Ee } from "../hooks/useSidebar.js";
|
|
15
|
+
import { GLOBAL_SECURITY_SYMBOL as Le, HIDE_DOWNLOAD_BUTTON_SYMBOL as Ie, HIDE_TEST_REQUEST_BUTTON_SYMBOL as Be, OPENAPI_DOCUMENT_URL_SYMBOL as Ue } from "../helpers/provideSymbols.js";
|
|
16
|
+
import { useNavState as De } from "../hooks/useNavState.js";
|
|
17
|
+
import { sleep as Me } from "../helpers/sleep.js";
|
|
18
|
+
const Pe = ["innerHTML"], ke = { class: "references-header" }, Ae = ["aria-label"], Fe = { class: "references-navigation-list" }, Ne = { class: "references-editor" }, He = { class: "references-editor-textarea" }, Ye = ["aria-label"], ze = {
|
|
22
19
|
key: 0,
|
|
23
20
|
class: "references-footer"
|
|
24
|
-
},
|
|
21
|
+
}, no = /* @__PURE__ */ ee({
|
|
25
22
|
inheritAttrs: !1,
|
|
26
23
|
__name: "ApiReferenceLayout",
|
|
27
24
|
props: {
|
|
@@ -30,200 +27,207 @@ const De = ["innerHTML"], Me = { class: "references-header" }, ke = {
|
|
|
30
27
|
rawSpec: {}
|
|
31
28
|
},
|
|
32
29
|
emits: ["changeTheme", "updateContent", "loadSwaggerFile", "linkSwaggerFile", "toggleDarkMode"],
|
|
33
|
-
setup(
|
|
34
|
-
const t =
|
|
35
|
-
|
|
36
|
-
const
|
|
37
|
-
|
|
38
|
-
|
|
30
|
+
setup(N) {
|
|
31
|
+
const t = N, { initializeToasts: H, toast: Y } = Se();
|
|
32
|
+
H((e) => Y(e));
|
|
33
|
+
const z = he("(min-width: 1150px)"), V = R("100dvh"), f = R(null);
|
|
34
|
+
be(f, (e) => {
|
|
35
|
+
V.value = e[0].contentRect.height + "px";
|
|
39
36
|
});
|
|
40
|
-
const
|
|
41
|
-
breadcrumb:
|
|
42
|
-
collapsedSidebarItems:
|
|
43
|
-
isSidebarOpen:
|
|
44
|
-
setCollapsedSidebarItem:
|
|
45
|
-
hideModels:
|
|
46
|
-
defaultOpenAllTags:
|
|
47
|
-
setParsedSpec:
|
|
48
|
-
scrollToOperation:
|
|
49
|
-
} =
|
|
50
|
-
getPathRoutingId:
|
|
51
|
-
getSectionId:
|
|
52
|
-
getTagId:
|
|
53
|
-
hash:
|
|
54
|
-
isIntersectionEnabled:
|
|
55
|
-
pathRouting:
|
|
56
|
-
updateHash:
|
|
57
|
-
} =
|
|
58
|
-
|
|
59
|
-
const
|
|
37
|
+
const G = b(ge), {
|
|
38
|
+
breadcrumb: Q,
|
|
39
|
+
collapsedSidebarItems: v,
|
|
40
|
+
isSidebarOpen: W,
|
|
41
|
+
setCollapsedSidebarItem: C,
|
|
42
|
+
hideModels: j,
|
|
43
|
+
defaultOpenAllTags: q,
|
|
44
|
+
setParsedSpec: K,
|
|
45
|
+
scrollToOperation: J
|
|
46
|
+
} = Ee(), {
|
|
47
|
+
getPathRoutingId: O,
|
|
48
|
+
getSectionId: X,
|
|
49
|
+
getTagId: Z,
|
|
50
|
+
hash: E,
|
|
51
|
+
isIntersectionEnabled: L,
|
|
52
|
+
pathRouting: I,
|
|
53
|
+
updateHash: B
|
|
54
|
+
} = De();
|
|
55
|
+
I.value = t.configuration.pathRouting, P(() => B());
|
|
56
|
+
const U = async (e) => {
|
|
60
57
|
var o;
|
|
61
|
-
|
|
62
|
-
},
|
|
63
|
-
|
|
58
|
+
L.value = !1, B(), e ? J(e) : (o = f.value) == null || o.scrollTo(0, 0), await Me(100), L.value = !0;
|
|
59
|
+
}, D = R(0);
|
|
60
|
+
P(() => fe()), oe(() => {
|
|
64
61
|
var r, a, n;
|
|
65
|
-
history.scrollRestoration = "manual",
|
|
66
|
-
|
|
62
|
+
history.scrollRestoration = "manual", F.on(({ specTitle: i }) => {
|
|
63
|
+
Re(t.rawSpec, i);
|
|
67
64
|
});
|
|
68
65
|
const e = (a = (r = f.value) == null ? void 0 : r.parentElement) == null ? void 0 : a.getBoundingClientRect(), o = (n = f.value) == null ? void 0 : n.getBoundingClientRect();
|
|
69
66
|
if (e && o) {
|
|
70
|
-
const
|
|
71
|
-
|
|
67
|
+
const i = o.top - e.top;
|
|
68
|
+
D.value = i < 2 ? 0 : i;
|
|
72
69
|
}
|
|
73
|
-
window.onhashchange = () =>
|
|
70
|
+
window.onhashchange = () => U(decodeURIComponent(window.location.hash.replace(/^#/, ""))), window.onpopstate = () => I.value && U(O(window.location.pathname));
|
|
74
71
|
});
|
|
75
|
-
const
|
|
76
|
-
() =>
|
|
77
|
-
),
|
|
72
|
+
const _ = b(
|
|
73
|
+
() => z.value || !t.configuration.isEditable
|
|
74
|
+
), M = ye((e) => {
|
|
78
75
|
if ((e.target.scrollTop ?? 0) < 50) {
|
|
79
76
|
const r = t.configuration.pathRouting ? t.configuration.pathRouting.basePath : window.location.pathname;
|
|
80
|
-
window.history.replaceState({}, "", r + window.location.search),
|
|
77
|
+
window.history.replaceState({}, "", r + window.location.search), E.value = "";
|
|
81
78
|
}
|
|
82
|
-
}),
|
|
83
|
-
breadcrumb:
|
|
79
|
+
}), s = b(() => ({
|
|
80
|
+
breadcrumb: Q.value,
|
|
84
81
|
spec: t.parsedSpec
|
|
85
82
|
}));
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
}),
|
|
83
|
+
te(() => {
|
|
84
|
+
F.reset();
|
|
85
|
+
}), re(() => t.parsedSpec, K, { deep: !0 }), ae(() => {
|
|
89
86
|
var o, r;
|
|
90
|
-
const e =
|
|
91
|
-
if (e && (e.payload || (e.payload = { data:
|
|
92
|
-
const a =
|
|
93
|
-
|
|
94
|
-
for (const n in
|
|
95
|
-
Object.hasOwn(
|
|
87
|
+
const e = ne();
|
|
88
|
+
if (e && (e.payload || (e.payload = { data: A() }), (o = e.payload).data || (o.data = A()), t.configuration.pathRouting)) {
|
|
89
|
+
const a = O(e.url);
|
|
90
|
+
E.value = a, e.payload.data.hash = a;
|
|
91
|
+
for (const n in v)
|
|
92
|
+
Object.hasOwn(v, n) && delete v[n];
|
|
96
93
|
if (a)
|
|
97
|
-
|
|
94
|
+
C(X(a), !0);
|
|
98
95
|
else {
|
|
99
96
|
const n = (r = t.parsedSpec.tags) == null ? void 0 : r[0];
|
|
100
|
-
n &&
|
|
97
|
+
n && C(Z(n), !0);
|
|
101
98
|
}
|
|
102
|
-
e.payload.data["useSidebarContent-collapsedSidebarItems"] =
|
|
99
|
+
e.payload.data["useSidebarContent-collapsedSidebarItems"] = v;
|
|
103
100
|
}
|
|
104
|
-
}),
|
|
101
|
+
}), pe(() => {
|
|
105
102
|
var a;
|
|
106
|
-
const e =
|
|
103
|
+
const e = se(), o = "scalar-instance-id";
|
|
107
104
|
if (!e) return o;
|
|
108
105
|
let r = e.uid;
|
|
109
106
|
return typeof window > "u" ? (e.attrs || (e.attrs = {}), e.attrs[o] = r) : (a = e.vnode.el) != null && a.getAttribute && (r = e.vnode.el.getAttribute(o)), `${o}-${r}`;
|
|
110
|
-
}),
|
|
111
|
-
|
|
107
|
+
}), y(Le, () => t.parsedSpec.security), y(
|
|
108
|
+
Ie,
|
|
112
109
|
() => t.configuration.hideDownloadButton
|
|
113
|
-
),
|
|
114
|
-
|
|
110
|
+
), y(
|
|
111
|
+
Be,
|
|
115
112
|
() => t.configuration.hideTestRequestButton
|
|
116
|
-
),
|
|
113
|
+
), y(Ue, () => {
|
|
117
114
|
var e;
|
|
118
115
|
return (e = t.configuration.spec) == null ? void 0 : e.url;
|
|
119
|
-
}),
|
|
120
|
-
const
|
|
116
|
+
}), j.value = t.configuration.hideModels ?? !1, q.value = t.configuration.defaultOpenAllTags ?? !1, $e(t.configuration);
|
|
117
|
+
const x = b(
|
|
121
118
|
() => `<style>
|
|
122
|
-
${
|
|
119
|
+
${me(t.configuration.theme, {
|
|
123
120
|
fonts: t.configuration.withDefaultFonts
|
|
124
121
|
})}</style>`
|
|
125
122
|
);
|
|
126
123
|
return (e, o) => {
|
|
127
|
-
var r, a;
|
|
128
|
-
return
|
|
129
|
-
l("div", { innerHTML:
|
|
124
|
+
var r, a, n, i;
|
|
125
|
+
return w(), T(k, null, [
|
|
126
|
+
l("div", { innerHTML: x.value }, null, 8, Pe),
|
|
130
127
|
l("div", {
|
|
131
128
|
ref_key: "documentEl",
|
|
132
129
|
ref: f,
|
|
133
|
-
class:
|
|
130
|
+
class: ie(["scalar-app scalar-api-reference references-layout", [
|
|
134
131
|
{
|
|
135
|
-
"scalar-scrollbars-obtrusive":
|
|
132
|
+
"scalar-scrollbars-obtrusive": G.value,
|
|
136
133
|
"references-editable": e.configuration.isEditable,
|
|
137
134
|
"references-sidebar": e.configuration.showSidebar,
|
|
138
|
-
"references-sidebar-mobile-open": p(
|
|
135
|
+
"references-sidebar-mobile-open": p(W),
|
|
139
136
|
"references-classic": e.configuration.layout === "classic"
|
|
140
137
|
},
|
|
141
138
|
e.$attrs.class
|
|
142
139
|
]]),
|
|
143
|
-
style:
|
|
144
|
-
"--scalar-y-offset": `var(--scalar-custom-header-height, ${
|
|
140
|
+
style: le({
|
|
141
|
+
"--scalar-y-offset": `var(--scalar-custom-header-height, ${D.value}px)`
|
|
145
142
|
}),
|
|
146
143
|
onScrollPassive: o[4] || (o[4] = //@ts-ignore
|
|
147
|
-
(...
|
|
144
|
+
(...h) => p(M) && p(M)(...h))
|
|
148
145
|
}, [
|
|
149
|
-
l("div",
|
|
150
|
-
d(e.$slots, "header", c(u(
|
|
146
|
+
l("div", ke, [
|
|
147
|
+
d(e.$slots, "header", c(u(s.value)), void 0, !0)
|
|
151
148
|
]),
|
|
152
|
-
e.configuration.showSidebar ? (
|
|
153
|
-
|
|
154
|
-
|
|
149
|
+
e.configuration.showSidebar ? (w(), T("nav", {
|
|
150
|
+
key: 0,
|
|
151
|
+
"aria-label": `Contents of ${(r = e.parsedSpec.info) == null ? void 0 : r.title}`,
|
|
152
|
+
class: "references-navigation t-doc__sidebar"
|
|
153
|
+
}, [
|
|
154
|
+
l("div", Fe, [
|
|
155
|
+
m(p(Ce), {
|
|
155
156
|
operationsSorter: e.configuration.operationsSorter,
|
|
156
157
|
parsedSpec: e.parsedSpec,
|
|
157
158
|
tagsSorter: e.configuration.tagsSorter
|
|
158
159
|
}, {
|
|
159
|
-
"sidebar-start":
|
|
160
|
-
d(e.$slots, "sidebar-start", c(u(
|
|
160
|
+
"sidebar-start": S(() => [
|
|
161
|
+
d(e.$slots, "sidebar-start", c(u(s.value)), void 0, !0)
|
|
161
162
|
]),
|
|
162
|
-
"sidebar-end":
|
|
163
|
-
d(e.$slots, "sidebar-end", c(u(
|
|
163
|
+
"sidebar-end": S(() => [
|
|
164
|
+
d(e.$slots, "sidebar-end", c(u(s.value)), void 0, !0)
|
|
164
165
|
]),
|
|
165
166
|
_: 3
|
|
166
167
|
}, 8, ["operationsSorter", "parsedSpec", "tagsSorter"])
|
|
167
168
|
])
|
|
168
|
-
])) :
|
|
169
|
-
|
|
170
|
-
l("div",
|
|
171
|
-
d(e.$slots, "editor", c(u(
|
|
169
|
+
], 8, Ae)) : $("", !0),
|
|
170
|
+
de(l("div", Ne, [
|
|
171
|
+
l("div", He, [
|
|
172
|
+
d(e.$slots, "editor", c(u(s.value)), void 0, !0)
|
|
172
173
|
])
|
|
173
174
|
], 512), [
|
|
174
|
-
[
|
|
175
|
+
[ce, e.configuration.isEditable]
|
|
175
176
|
]),
|
|
176
|
-
|
|
177
|
-
l("
|
|
178
|
-
|
|
177
|
+
_.value ? (w(), T(k, { key: 1 }, [
|
|
178
|
+
l("section", {
|
|
179
|
+
"aria-label": `Open API Documentation for ${(a = e.parsedSpec.info) == null ? void 0 : a.title}`,
|
|
180
|
+
class: "references-rendered"
|
|
181
|
+
}, [
|
|
182
|
+
m(p(Oe), {
|
|
179
183
|
baseServerURL: e.configuration.baseServerURL,
|
|
180
184
|
layout: e.configuration.layout === "classic" ? "accordion" : "default",
|
|
181
185
|
parsedSpec: e.parsedSpec,
|
|
182
186
|
proxy: e.configuration.proxy,
|
|
183
187
|
servers: e.configuration.servers
|
|
184
|
-
},
|
|
185
|
-
start:
|
|
186
|
-
d(e.$slots, "content-start", c(u(
|
|
188
|
+
}, ue({
|
|
189
|
+
start: S(() => [
|
|
190
|
+
d(e.$slots, "content-start", c(u(s.value)), void 0, !0)
|
|
187
191
|
]),
|
|
188
|
-
end:
|
|
189
|
-
d(e.$slots, "content-end", c(u(
|
|
192
|
+
end: S(() => [
|
|
193
|
+
d(e.$slots, "content-end", c(u(s.value)), void 0, !0)
|
|
190
194
|
]),
|
|
191
195
|
_: 2
|
|
192
196
|
}, [
|
|
193
|
-
(
|
|
197
|
+
(n = e.configuration) != null && n.isEditable ? {
|
|
194
198
|
name: "empty-state",
|
|
195
|
-
fn:
|
|
196
|
-
var
|
|
199
|
+
fn: S(() => {
|
|
200
|
+
var h;
|
|
197
201
|
return [
|
|
198
|
-
|
|
199
|
-
theme: ((
|
|
200
|
-
onChangeTheme: o[0] || (o[0] = (
|
|
201
|
-
onLinkSwaggerFile: o[1] || (o[1] = (
|
|
202
|
-
onLoadSwaggerFile: o[2] || (o[2] = (
|
|
203
|
-
onUpdateContent: o[3] || (o[3] = (
|
|
202
|
+
m(Te, {
|
|
203
|
+
theme: ((h = e.configuration) == null ? void 0 : h.theme) || "default",
|
|
204
|
+
onChangeTheme: o[0] || (o[0] = (g) => e.$emit("changeTheme", g)),
|
|
205
|
+
onLinkSwaggerFile: o[1] || (o[1] = (g) => e.$emit("linkSwaggerFile")),
|
|
206
|
+
onLoadSwaggerFile: o[2] || (o[2] = (g) => e.$emit("loadSwaggerFile")),
|
|
207
|
+
onUpdateContent: o[3] || (o[3] = (g) => e.$emit("updateContent", g))
|
|
204
208
|
}, null, 8, ["theme"])
|
|
205
209
|
];
|
|
206
210
|
}),
|
|
207
211
|
key: "0"
|
|
208
212
|
} : void 0
|
|
209
213
|
]), 1032, ["baseServerURL", "layout", "parsedSpec", "proxy", "servers"])
|
|
210
|
-
]),
|
|
211
|
-
e.$slots.footer ? (
|
|
212
|
-
d(e.$slots, "footer", c(u(
|
|
213
|
-
])) :
|
|
214
|
-
], 64)) :
|
|
215
|
-
|
|
216
|
-
preferredSecurityScheme: (
|
|
214
|
+
], 8, Ye),
|
|
215
|
+
e.$slots.footer ? (w(), T("div", ze, [
|
|
216
|
+
d(e.$slots, "footer", c(u(s.value)), void 0, !0)
|
|
217
|
+
])) : $("", !0)
|
|
218
|
+
], 64)) : $("", !0),
|
|
219
|
+
m(we, {
|
|
220
|
+
preferredSecurityScheme: (i = e.configuration.authentication) == null ? void 0 : i.preferredSecurityScheme,
|
|
217
221
|
proxyUrl: e.configuration.proxy,
|
|
218
222
|
servers: e.configuration.servers,
|
|
219
223
|
spec: e.configuration.spec
|
|
220
224
|
}, null, 8, ["preferredSecurityScheme", "proxyUrl", "servers", "spec"])
|
|
221
225
|
], 38),
|
|
222
|
-
|
|
226
|
+
m(p(ve))
|
|
223
227
|
], 64);
|
|
224
228
|
};
|
|
225
229
|
}
|
|
226
230
|
});
|
|
227
231
|
export {
|
|
228
|
-
|
|
232
|
+
no as default
|
|
229
233
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Authentication.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Authentication/Authentication.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Authentication.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Authentication/Authentication.vue"],"names":[],"mappings":"AAgFA,OAAO,KAAK,EAAY,IAAI,EAAE,MAAM,sBAAsB,CAAA;;iBASrB,IAAI;YAAU,MAAM;;iBAApB,IAAI;YAAU,MAAM;;AAyHzD,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./Authentication.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-244454d9"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClientSelector.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/ClientSelector.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ClientSelector.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/ClientSelector.vue"],"names":[],"mappings":";AA8iBA,wBAKG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ClientSelector.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-10825810"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,30 +1,37 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarIcon as
|
|
1
|
+
import { defineComponent as w, ref as N, openBlock as n, createElementBlock as l, Fragment as d, renderList as _, unref as t, normalizeClass as y, createElementVNode as s, createVNode as k, toDisplayString as f, createCommentVNode as x, pushScopeId as $, popScopeId as z } from "vue";
|
|
2
|
+
import { ScalarIcon as m } from "@scalar/components";
|
|
3
3
|
import { useHttpClientStore as B } from "../../../stores/useHttpClientStore.js";
|
|
4
|
-
const
|
|
4
|
+
const v = (o) => ($("data-v-10825810"), o = o(), z(), o), M = ["onClick"], T = /* @__PURE__ */ v(() => /* @__PURE__ */ s("span", { class: "sr-only" }, "Select Client Library", -1)), J = ["value"], L = ["label"], O = ["aria-label", "value"], V = {
|
|
5
|
+
"aria-hidden": "true",
|
|
6
|
+
class: "client-libraries-icon__more"
|
|
7
|
+
}, E = {
|
|
5
8
|
key: 1,
|
|
6
9
|
class: "client-libraries-icon",
|
|
7
10
|
height: "50",
|
|
11
|
+
role: "presentation",
|
|
8
12
|
viewBox: "0 0 50 50",
|
|
9
13
|
width: "50",
|
|
10
14
|
xmlns: "http://www.w3.org/2000/svg"
|
|
11
|
-
}, F = /* @__PURE__ */
|
|
15
|
+
}, F = /* @__PURE__ */ v(() => /* @__PURE__ */ s("g", {
|
|
12
16
|
fill: "currentColor",
|
|
13
17
|
"fill-rule": "nonzero"
|
|
14
18
|
}, [
|
|
15
|
-
/* @__PURE__ */
|
|
19
|
+
/* @__PURE__ */ s("path", { d: "M10.71 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0M21.13 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0M31.55 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0" })
|
|
16
20
|
], -1)), H = [
|
|
17
21
|
F
|
|
18
|
-
],
|
|
22
|
+
], R = {
|
|
23
|
+
key: 0,
|
|
24
|
+
"aria-hidden": "true"
|
|
25
|
+
}, A = /* @__PURE__ */ w({
|
|
19
26
|
__name: "ClientSelector",
|
|
20
27
|
setup(o) {
|
|
21
28
|
const {
|
|
22
29
|
httpClient: r,
|
|
23
|
-
setHttpClient:
|
|
24
|
-
availableTargets:
|
|
25
|
-
getClientTitle:
|
|
26
|
-
getTargetTitle:
|
|
27
|
-
} = B(),
|
|
30
|
+
setHttpClient: p,
|
|
31
|
+
availableTargets: u,
|
|
32
|
+
getClientTitle: g,
|
|
33
|
+
getTargetTitle: C
|
|
34
|
+
} = B(), S = N(), K = [
|
|
28
35
|
{
|
|
29
36
|
targetKey: "shell",
|
|
30
37
|
clientKey: "curl"
|
|
@@ -46,74 +53,82 @@ const M = (o) => (x("data-v-4951736c"), o = o(), z(), o), T = ["onClick"], J = [
|
|
|
46
53
|
clientKey: "python3"
|
|
47
54
|
}
|
|
48
55
|
].filter(
|
|
49
|
-
(i) =>
|
|
50
|
-
),
|
|
51
|
-
(
|
|
56
|
+
(i) => u.value.find((a) => a.key === i.targetKey && a.clients.find((e) => e.key === i.clientKey))
|
|
57
|
+
), h = (i) => `programming-language-${i}`, I = (i) => i.targetKey === r.targetKey && i.clientKey === r.clientKey, b = (i) => K.some(
|
|
58
|
+
(a) => a.targetKey === i.targetKey && a.clientKey === i.clientKey
|
|
52
59
|
);
|
|
53
|
-
return (i,
|
|
60
|
+
return (i, a) => (n(), l("div", {
|
|
54
61
|
ref_key: "containerRef",
|
|
55
|
-
ref:
|
|
62
|
+
ref: S,
|
|
56
63
|
class: "client-libraries-content"
|
|
57
64
|
}, [
|
|
58
|
-
(n(!0), l(
|
|
65
|
+
(n(!0), l(d, null, _(t(K), (e) => (n(), l("button", {
|
|
59
66
|
key: e.clientKey,
|
|
60
|
-
|
|
61
|
-
|
|
67
|
+
"aria-hidden": "true",
|
|
68
|
+
class: y(["client-libraries rendered-code-sdks", {
|
|
69
|
+
"client-libraries__active": I(e)
|
|
62
70
|
}]),
|
|
63
|
-
|
|
71
|
+
tabindex: "-1",
|
|
72
|
+
type: "button",
|
|
73
|
+
onClick: () => t(p)(e)
|
|
64
74
|
}, [
|
|
65
|
-
|
|
66
|
-
class:
|
|
75
|
+
s("div", {
|
|
76
|
+
class: y(`client-libraries-icon__${e.targetKey}`)
|
|
67
77
|
}, [
|
|
68
|
-
k(t(
|
|
78
|
+
k(t(m), {
|
|
69
79
|
class: "client-libraries-icon",
|
|
70
|
-
icon:
|
|
80
|
+
icon: h(e.targetKey)
|
|
71
81
|
}, null, 8, ["icon"])
|
|
72
82
|
], 2),
|
|
73
|
-
|
|
74
|
-
], 10,
|
|
75
|
-
|
|
76
|
-
class:
|
|
77
|
-
"client-libraries__active": t(r) && !
|
|
83
|
+
s("span", null, f(t(C)(e)), 1)
|
|
84
|
+
], 10, M))), 128)),
|
|
85
|
+
s("label", {
|
|
86
|
+
class: y(["client-libraries client-libraries__select", {
|
|
87
|
+
"client-libraries__active": t(r) && !b(t(r))
|
|
78
88
|
}])
|
|
79
89
|
}, [
|
|
80
|
-
|
|
90
|
+
T,
|
|
91
|
+
s("select", {
|
|
81
92
|
class: "language-select",
|
|
82
93
|
value: JSON.stringify(t(r)),
|
|
83
|
-
onInput:
|
|
94
|
+
onInput: a[0] || (a[0] = (e) => t(p)(JSON.parse(e.target.value)))
|
|
84
95
|
}, [
|
|
85
|
-
(n(!0), l(
|
|
96
|
+
(n(!0), l(d, null, _(t(u), (e) => (n(), l("optgroup", {
|
|
86
97
|
key: e.key,
|
|
87
98
|
label: e.title
|
|
88
99
|
}, [
|
|
89
|
-
(n(!0), l(
|
|
90
|
-
key:
|
|
100
|
+
(n(!0), l(d, null, _(e.clients, (c) => (n(), l("option", {
|
|
101
|
+
key: c.key,
|
|
102
|
+
"aria-label": `${e.title} ${t(g)({
|
|
103
|
+
targetKey: e.key,
|
|
104
|
+
clientKey: c.key
|
|
105
|
+
})}`,
|
|
91
106
|
value: JSON.stringify({
|
|
92
107
|
targetKey: e.key,
|
|
93
|
-
clientKey:
|
|
108
|
+
clientKey: c.key
|
|
94
109
|
})
|
|
95
|
-
}, f(t(
|
|
110
|
+
}, f(t(g)({
|
|
96
111
|
targetKey: e.key,
|
|
97
|
-
clientKey:
|
|
98
|
-
})), 9,
|
|
99
|
-
], 8,
|
|
112
|
+
clientKey: c.key
|
|
113
|
+
})), 9, O))), 128))
|
|
114
|
+
], 8, L))), 128))
|
|
100
115
|
], 40, J),
|
|
101
|
-
|
|
102
|
-
t(r) && !
|
|
116
|
+
s("div", V, [
|
|
117
|
+
t(r) && !b(t(r)) ? (n(), l("div", {
|
|
103
118
|
key: 0,
|
|
104
|
-
class:
|
|
119
|
+
class: y(`client-libraries-icon__${t(r).targetKey}`)
|
|
105
120
|
}, [
|
|
106
|
-
k(t(
|
|
121
|
+
k(t(m), {
|
|
107
122
|
class: "client-libraries-icon",
|
|
108
|
-
icon:
|
|
123
|
+
icon: h(t(r).targetKey)
|
|
109
124
|
}, null, 8, ["icon"])
|
|
110
125
|
], 2)) : (n(), l("svg", E, H))
|
|
111
126
|
]),
|
|
112
|
-
t(
|
|
127
|
+
t(u).length ? (n(), l("span", R, " More ")) : x("", !0)
|
|
113
128
|
], 2)
|
|
114
129
|
], 512));
|
|
115
130
|
}
|
|
116
131
|
});
|
|
117
132
|
export {
|
|
118
|
-
|
|
133
|
+
A as default
|
|
119
134
|
};
|
|
@@ -2,7 +2,7 @@ import o from "./Content.vue2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
5
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-2ffda479"]]);
|
|
6
6
|
export {
|
|
7
7
|
a as default
|
|
8
8
|
};
|