@scalar/api-reference 1.24.20 → 1.24.21
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 +23 -0
- package/dist/browser/standalone.js +8172 -8136
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/components/ApiClientModal.vue.js +1 -1
- package/dist/components/ApiClientModal.vue3.js +5 -0
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +2 -2
- package/dist/components/ApiReferenceLayout.vue2.js +105 -116
- package/dist/components/Content/Content.vue.d.ts +0 -3
- package/dist/components/Content/Content.vue.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.js +2 -2
- package/dist/components/Content/Content.vue2.js +70 -93
- package/dist/components/Content/Introduction/Introduction.vue.d.ts +2 -2
- package/dist/components/Content/Schema/Schema.vue.d.ts +2 -2
- package/dist/components/Content/Schema/SchemaHeading.vue.d.ts +2 -2
- package/dist/components/api-client-bus.d.ts +1 -1
- package/dist/components/api-client-bus.d.ts.map +1 -1
- package/dist/{components/Content/BaseUrl/ServerVariables.vue.d.ts → features/BaseUrl/BaseUrl.vue.d.ts} +18 -4
- package/dist/features/BaseUrl/BaseUrl.vue.d.ts.map +1 -0
- package/dist/features/BaseUrl/BaseUrl.vue.js +87 -0
- package/dist/features/BaseUrl/BaseUrl.vue2.js +4 -0
- package/dist/features/BaseUrl/ServerForm.vue.d.ts +41 -0
- package/dist/features/BaseUrl/ServerForm.vue.d.ts.map +1 -0
- package/dist/features/BaseUrl/ServerForm.vue.js +7 -0
- package/dist/features/BaseUrl/ServerForm.vue2.js +66 -0
- package/dist/{components/Content/BaseUrl/ServerItem.vue.d.ts → features/BaseUrl/ServerUrl.vue.d.ts} +6 -6
- package/dist/features/BaseUrl/ServerUrl.vue.d.ts.map +1 -0
- package/dist/features/BaseUrl/ServerUrl.vue.js +8 -0
- package/dist/features/BaseUrl/ServerUrl.vue2.js +29 -0
- package/dist/features/BaseUrl/ServerUrlSelect.vue.d.ts +30 -0
- package/dist/features/BaseUrl/ServerUrlSelect.vue.d.ts.map +1 -0
- package/dist/features/BaseUrl/ServerUrlSelect.vue.js +7 -0
- package/dist/features/BaseUrl/ServerUrlSelect.vue2.js +56 -0
- package/dist/features/BaseUrl/ServerVariablesForm.vue.d.ts +23 -0
- package/dist/features/BaseUrl/ServerVariablesForm.vue.d.ts.map +1 -0
- package/dist/features/BaseUrl/ServerVariablesForm.vue.js +7 -0
- package/dist/features/BaseUrl/ServerVariablesForm.vue2.js +53 -0
- package/dist/{components/Content/BaseUrl/ServerVariableSelect.vue.d.ts → features/BaseUrl/ServerVariablesSelect.vue.d.ts} +1 -1
- package/dist/features/BaseUrl/ServerVariablesSelect.vue.d.ts.map +1 -0
- package/dist/features/BaseUrl/ServerVariablesSelect.vue.js +7 -0
- package/dist/{components/Content/BaseUrl/ServerVariableSelect.vue2.js → features/BaseUrl/ServerVariablesSelect.vue2.js} +1 -1
- package/dist/{components/Content/BaseUrl/ServerVariableTextbox.vue.d.ts → features/BaseUrl/ServerVariablesTextbox.vue.d.ts} +1 -1
- package/dist/features/BaseUrl/ServerVariablesTextbox.vue.d.ts.map +1 -0
- package/dist/features/BaseUrl/ServerVariablesTextbox.vue.js +7 -0
- package/dist/{components/Content/BaseUrl/ServerVariableTextbox.vue2.js → features/BaseUrl/ServerVariablesTextbox.vue2.js} +6 -6
- package/dist/features/BaseUrl/index.d.ts +3 -0
- package/dist/features/BaseUrl/index.d.ts.map +1 -0
- package/dist/features/BaseUrl/types.d.ts +10 -0
- package/dist/features/BaseUrl/types.d.ts.map +1 -0
- package/dist/features/BaseUrl/utils/getServers.d.ts +15 -0
- package/dist/features/BaseUrl/utils/getServers.d.ts.map +1 -0
- package/dist/features/BaseUrl/utils/getServers.js +29 -0
- package/dist/features/BaseUrl/utils/index.d.ts +2 -0
- package/dist/features/BaseUrl/utils/index.d.ts.map +1 -0
- package/dist/helpers/createEmptySpecification.d.ts +1 -1
- package/dist/helpers/createEmptySpecification.d.ts.map +1 -1
- package/dist/helpers/createEmptySpecification.js +5 -4
- package/dist/helpers/getModels.d.ts +1 -1
- package/dist/hooks/useReactiveSpec.d.ts +8 -8
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types.d.ts +1 -4
- package/dist/types.d.ts.map +1 -1
- package/package.json +7 -7
- package/dist/components/ApiClientModal.vue2.js +0 -4
- package/dist/components/Content/BaseUrl/BaseUrl.vue.d.ts +0 -3
- package/dist/components/Content/BaseUrl/BaseUrl.vue.d.ts.map +0 -1
- package/dist/components/Content/BaseUrl/BaseUrl.vue.js +0 -7
- package/dist/components/Content/BaseUrl/BaseUrl.vue2.js +0 -90
- package/dist/components/Content/BaseUrl/ServerItem.vue.d.ts.map +0 -1
- package/dist/components/Content/BaseUrl/ServerItem.vue.js +0 -8
- package/dist/components/Content/BaseUrl/ServerItem.vue2.js +0 -35
- package/dist/components/Content/BaseUrl/ServerVariableSelect.vue.d.ts.map +0 -1
- package/dist/components/Content/BaseUrl/ServerVariableSelect.vue.js +0 -7
- package/dist/components/Content/BaseUrl/ServerVariableTextbox.vue.d.ts.map +0 -1
- package/dist/components/Content/BaseUrl/ServerVariableTextbox.vue.js +0 -7
- package/dist/components/Content/BaseUrl/ServerVariables.vue.d.ts.map +0 -1
- package/dist/components/Content/BaseUrl/ServerVariables.vue.js +0 -7
- package/dist/components/Content/BaseUrl/ServerVariables.vue2.js +0 -47
- package/dist/components/Content/BaseUrl/index.d.ts +0 -2
- package/dist/components/Content/BaseUrl/index.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiClientModal.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiClientModal.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ApiClientModal.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiClientModal.vue"],"names":[],"mappings":"AAmDA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;;;;;;;;AAiF1D,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"}
|
|
@@ -11,7 +11,7 @@ const B = /* @__PURE__ */ c({
|
|
|
11
11
|
const t = a, e = s(null), { authentication: p } = d();
|
|
12
12
|
return u(async () => {
|
|
13
13
|
if (!e.value) return;
|
|
14
|
-
const { createScalarApiClient: o } = await import("@scalar/
|
|
14
|
+
const { createScalarApiClient: o } = await import("@scalar/client-app"), { modalState: n, open: i, updateAuth: l } = await o(
|
|
15
15
|
e.value,
|
|
16
16
|
{
|
|
17
17
|
spec: t.spec ?? {},
|
|
@@ -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":"AAujBA,OAAO,8BAA8B,CAAA;AAGrC,OAAO,EAAE,KAAK,OAAO,EAAkB,MAAM,gBAAgB,CAAA;AAC7D,OAAO,0BAA0B,CAAA;AA0BjC,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,UAAU,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4jBjB,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 m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-a1d14223"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
m as default
|
|
8
8
|
};
|
|
@@ -1,31 +1,33 @@
|
|
|
1
|
-
import { defineComponent as X, defineAsyncComponent as Z, ref as b, onMounted as
|
|
2
|
-
import { provideUseId as
|
|
1
|
+
import { defineComponent as X, defineAsyncComponent as Z, ref as b, onMounted as L, onBeforeMount as B, computed as O, watch as _, onServerPrefetch as x, useSSRContext as ee, getCurrentInstance as oe, provide as P, openBlock as f, createElementBlock as h, Fragment as U, createVNode as v, unref as i, withCtx as p, createTextVNode as te, toDisplayString as re, createElementVNode as m, normalizeClass as ae, normalizeStyle as ne, renderSlot as l, normalizeProps as d, guardReactiveProps as c, createCommentVNode as y, withDirectives as ie, vShow as se, createSlots as le, createBlock as A } from "vue";
|
|
2
|
+
import { provideUseId as de } from "@headlessui/vue";
|
|
3
|
+
import { addScalarClassesToHeadless as ce } from "@scalar/components";
|
|
3
4
|
import "@scalar/components/style.css";
|
|
4
|
-
import { defaultStateFactory as
|
|
5
|
-
import { getThemeStyles as
|
|
5
|
+
import { defaultStateFactory as ue } from "@scalar/oas-utils/helpers";
|
|
6
|
+
import { getThemeStyles as pe } from "@scalar/themes";
|
|
6
7
|
import "@scalar/themes/style.css";
|
|
7
|
-
import { useToasts as
|
|
8
|
-
import { useMediaQuery as
|
|
8
|
+
import { useToasts as fe, ScalarToasts as me } from "@scalar/use-toasts";
|
|
9
|
+
import { useMediaQuery as ge, useResizeObserver as ve, useDebounceFn as Se } from "@vueuse/core";
|
|
9
10
|
import { NEW_API_MODAL as F } from "../features.js";
|
|
10
|
-
import
|
|
11
|
-
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
14
|
-
import
|
|
15
|
-
import $e from "./
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
|
|
11
|
+
import he from "./ApiClientModal.vue.js";
|
|
12
|
+
/* empty css */
|
|
13
|
+
import be from "./GettingStarted.vue.js";
|
|
14
|
+
import { downloadSpecBus as ye, downloadSpecFile as we } from "../helpers/specDownloads.js";
|
|
15
|
+
import { useDeprecationWarnings as Ce } from "../hooks/useDeprecationWarnings.js";
|
|
16
|
+
import $e from "./Util/Style.vue.js";
|
|
17
|
+
import Re from "./Sidebar/Sidebar.vue.js";
|
|
18
|
+
import Te from "./Content/Content.vue.js";
|
|
19
|
+
import { useSidebar as ke } from "../hooks/useSidebar.js";
|
|
20
|
+
import { GLOBAL_SECURITY_SYMBOL as Ie, HIDE_DOWNLOAD_BUTTON_SYMBOL as Ee } from "../helpers/provideSymbols.js";
|
|
21
|
+
import { useNavState as De } from "../hooks/useNavState.js";
|
|
22
|
+
import { scrollToId as Le } from "../helpers/scrollToId.js";
|
|
23
|
+
import { sleep as Be } from "../helpers/sleep.js";
|
|
24
|
+
const Oe = { class: "references-header" }, Pe = {
|
|
23
25
|
key: 0,
|
|
24
26
|
class: "references-navigation t-doc__sidebar"
|
|
25
|
-
},
|
|
27
|
+
}, Ue = { class: "references-navigation-list" }, Ae = { class: "references-editor" }, Fe = { class: "references-editor-textarea" }, Me = { class: "references-rendered" }, Ne = {
|
|
26
28
|
key: 0,
|
|
27
29
|
class: "references-footer"
|
|
28
|
-
},
|
|
30
|
+
}, lo = /* @__PURE__ */ X({
|
|
29
31
|
inheritAttrs: !1,
|
|
30
32
|
__name: "ApiReferenceLayout",
|
|
31
33
|
props: {
|
|
@@ -35,9 +37,9 @@ const Oe = { class: "references-header" }, Ae = {
|
|
|
35
37
|
},
|
|
36
38
|
emits: ["changeTheme", "updateContent", "loadSwaggerFile", "linkSwaggerFile", "toggleDarkMode"],
|
|
37
39
|
setup(M) {
|
|
38
|
-
const
|
|
40
|
+
const r = M, { initializeToasts: N, toast: z } = fe();
|
|
39
41
|
N((e) => z(e));
|
|
40
|
-
const
|
|
42
|
+
const H = Z(() => F ? (
|
|
41
43
|
// Empty component
|
|
42
44
|
new Promise((e) => {
|
|
43
45
|
e({ render: () => null });
|
|
@@ -45,14 +47,14 @@ const Oe = { class: "references-header" }, Ae = {
|
|
|
45
47
|
) : (
|
|
46
48
|
// Load component
|
|
47
49
|
import("./ApiClientModalOld.vue.js")
|
|
48
|
-
)),
|
|
49
|
-
|
|
50
|
-
|
|
50
|
+
)), V = ge("(min-width: 1150px)"), Y = b("100dvh"), g = b(null);
|
|
51
|
+
ve(g, (e) => {
|
|
52
|
+
Y.value = e[0].contentRect.height + "px";
|
|
51
53
|
});
|
|
52
54
|
const w = b(0);
|
|
53
|
-
|
|
54
|
-
var
|
|
55
|
-
const e = (
|
|
55
|
+
L(() => {
|
|
56
|
+
var t, a, n;
|
|
57
|
+
const e = (a = (t = g.value) == null ? void 0 : t.parentElement) == null ? void 0 : a.getBoundingClientRect(), o = (n = g.value) == null ? void 0 : n.getBoundingClientRect();
|
|
56
58
|
if (e && o) {
|
|
57
59
|
const u = o.top - e.top;
|
|
58
60
|
w.value = u < 2 ? 0 : u;
|
|
@@ -62,83 +64,70 @@ const Oe = { class: "references-header" }, Ae = {
|
|
|
62
64
|
breadcrumb: W,
|
|
63
65
|
collapsedSidebarItems: S,
|
|
64
66
|
isSidebarOpen: G,
|
|
65
|
-
setCollapsedSidebarItem:
|
|
67
|
+
setCollapsedSidebarItem: C,
|
|
66
68
|
hideModels: j,
|
|
67
69
|
setParsedSpec: K
|
|
68
|
-
} =
|
|
70
|
+
} = ke(), {
|
|
69
71
|
getPathRoutingId: $,
|
|
70
72
|
getSectionId: Q,
|
|
71
73
|
getTagId: q,
|
|
72
|
-
hash:
|
|
74
|
+
hash: R,
|
|
73
75
|
isIntersectionEnabled: T,
|
|
74
|
-
pathRouting:
|
|
75
|
-
updateHash:
|
|
76
|
-
} =
|
|
77
|
-
|
|
78
|
-
const
|
|
76
|
+
pathRouting: k,
|
|
77
|
+
updateHash: I
|
|
78
|
+
} = De();
|
|
79
|
+
k.value = r.configuration.pathRouting, B(() => I());
|
|
80
|
+
const E = async (e) => {
|
|
79
81
|
var o;
|
|
80
|
-
T.value = !1,
|
|
82
|
+
T.value = !1, I(), e ? Le(e) : (o = g.value) == null || o.scrollTo(0, 0), await Be(100), T.value = !0;
|
|
81
83
|
};
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
(a) => a.id === "headlessui-portal-root"
|
|
87
|
-
)
|
|
88
|
-
);
|
|
89
|
-
if (r) {
|
|
90
|
-
const t = r.addedNodes[0];
|
|
91
|
-
t.classList.add("scalar-app"), t.classList.add("scalar-client"), e.disconnect();
|
|
92
|
-
}
|
|
93
|
-
});
|
|
94
|
-
e.observe(document.body, { childList: !0 });
|
|
95
|
-
}), D(() => {
|
|
96
|
-
be.on(({ specTitle: e }) => {
|
|
97
|
-
ye(n.rawSpec, e);
|
|
98
|
-
}), window.onhashchange = () => I(decodeURIComponent(window.location.hash.replace(/^#/, ""))), window.onpopstate = () => L.value && I($(window.location.pathname));
|
|
84
|
+
B(() => ce()), L(() => {
|
|
85
|
+
ye.on(({ specTitle: e }) => {
|
|
86
|
+
we(r.rawSpec, e);
|
|
87
|
+
}), window.onhashchange = () => E(decodeURIComponent(window.location.hash.replace(/^#/, ""))), window.onpopstate = () => k.value && E($(window.location.pathname));
|
|
99
88
|
});
|
|
100
|
-
const J =
|
|
101
|
-
() =>
|
|
102
|
-
),
|
|
89
|
+
const J = O(
|
|
90
|
+
() => V.value || !r.configuration.isEditable
|
|
91
|
+
), D = Se((e) => {
|
|
103
92
|
if ((e.target.scrollTop ?? 0) < 50) {
|
|
104
|
-
const
|
|
105
|
-
window.history.replaceState({}, "",
|
|
93
|
+
const t = r.configuration.pathRouting ? r.configuration.pathRouting.basePath : window.location.pathname;
|
|
94
|
+
window.history.replaceState({}, "", t + window.location.search), R.value = "";
|
|
106
95
|
}
|
|
107
|
-
}),
|
|
96
|
+
}), s = O(() => ({
|
|
108
97
|
breadcrumb: W.value,
|
|
109
|
-
spec:
|
|
98
|
+
spec: r.parsedSpec
|
|
110
99
|
}));
|
|
111
|
-
return _(() =>
|
|
112
|
-
var o,
|
|
100
|
+
return _(() => r.parsedSpec, K, { deep: !0 }), x(() => {
|
|
101
|
+
var o, t;
|
|
113
102
|
const e = ee();
|
|
114
|
-
if (e && ((o = e.payload).data || (o.data =
|
|
115
|
-
const
|
|
116
|
-
|
|
117
|
-
for (const
|
|
118
|
-
Object.hasOwn(S,
|
|
119
|
-
if (
|
|
120
|
-
|
|
103
|
+
if (e && ((o = e.payload).data || (o.data = ue()), r.configuration.pathRouting)) {
|
|
104
|
+
const a = $(e.url);
|
|
105
|
+
R.value = a, e.payload.data.hash = a;
|
|
106
|
+
for (const n in S)
|
|
107
|
+
Object.hasOwn(S, n) && delete S[n];
|
|
108
|
+
if (a)
|
|
109
|
+
C(Q(a), !0);
|
|
121
110
|
else {
|
|
122
|
-
const
|
|
123
|
-
|
|
111
|
+
const n = (t = r.parsedSpec.tags) == null ? void 0 : t[0];
|
|
112
|
+
n && C(q(n), !0);
|
|
124
113
|
}
|
|
125
114
|
e.payload.data["useSidebarContent-collapsedSidebarItems"] = S;
|
|
126
115
|
}
|
|
127
|
-
}),
|
|
128
|
-
var
|
|
116
|
+
}), de(() => {
|
|
117
|
+
var a;
|
|
129
118
|
const e = oe(), o = "scalar-instance-id";
|
|
130
119
|
if (!e) return o;
|
|
131
|
-
let
|
|
132
|
-
return typeof window > "u" ? (e.attrs || (e.attrs = {}), e.attrs[o] =
|
|
133
|
-
}),
|
|
134
|
-
|
|
135
|
-
() =>
|
|
136
|
-
), j.value =
|
|
137
|
-
var
|
|
138
|
-
return f(), h(
|
|
139
|
-
v(
|
|
120
|
+
let t = e.uid;
|
|
121
|
+
return typeof window > "u" ? (e.attrs || (e.attrs = {}), e.attrs[o] = t) : (a = e.vnode.el) != null && a.getAttribute && (t = e.vnode.el.getAttribute(o)), `${o}-${t}`;
|
|
122
|
+
}), P(Ie, () => r.parsedSpec.security), P(
|
|
123
|
+
Ee,
|
|
124
|
+
() => r.configuration.hideDownloadButton
|
|
125
|
+
), j.value = r.configuration.hideModels ?? !1, Ce(r.configuration), (e, o) => {
|
|
126
|
+
var t, a;
|
|
127
|
+
return f(), h(U, null, [
|
|
128
|
+
v(i($e), null, {
|
|
140
129
|
default: p(() => [
|
|
141
|
-
te(re(
|
|
130
|
+
te(re(i(pe)(e.configuration.theme, {
|
|
142
131
|
fonts: e.configuration.withDefaultFonts
|
|
143
132
|
})), 1)
|
|
144
133
|
]),
|
|
@@ -151,7 +140,7 @@ const Oe = { class: "references-header" }, Ae = {
|
|
|
151
140
|
{
|
|
152
141
|
"references-editable": e.configuration.isEditable,
|
|
153
142
|
"references-sidebar": e.configuration.showSidebar,
|
|
154
|
-
"references-sidebar-mobile-open":
|
|
143
|
+
"references-sidebar-mobile-open": i(G),
|
|
155
144
|
"references-classic": e.configuration.layout === "classic"
|
|
156
145
|
},
|
|
157
146
|
e.$attrs.class
|
|
@@ -160,54 +149,54 @@ const Oe = { class: "references-header" }, Ae = {
|
|
|
160
149
|
"--scalar-y-offset": `var(--scalar-custom-header-height, ${w.value}px)`
|
|
161
150
|
}),
|
|
162
151
|
onScrollPassive: o[4] || (o[4] = //@ts-ignore
|
|
163
|
-
(...
|
|
152
|
+
(...n) => i(D) && i(D)(...n))
|
|
164
153
|
}, [
|
|
165
154
|
m("div", Oe, [
|
|
166
|
-
|
|
155
|
+
l(e.$slots, "header", d(c(s.value)), void 0, !0)
|
|
167
156
|
]),
|
|
168
|
-
e.configuration.showSidebar ? (f(), h("aside",
|
|
169
|
-
m("div",
|
|
170
|
-
v(
|
|
157
|
+
e.configuration.showSidebar ? (f(), h("aside", Pe, [
|
|
158
|
+
m("div", Ue, [
|
|
159
|
+
v(i(Re), { parsedSpec: e.parsedSpec }, {
|
|
171
160
|
"sidebar-start": p(() => [
|
|
172
|
-
|
|
161
|
+
l(e.$slots, "sidebar-start", d(c(s.value)), void 0, !0)
|
|
173
162
|
]),
|
|
174
163
|
"sidebar-end": p(() => [
|
|
175
|
-
|
|
164
|
+
l(e.$slots, "sidebar-end", d(c(s.value)), void 0, !0)
|
|
176
165
|
]),
|
|
177
166
|
_: 3
|
|
178
167
|
}, 8, ["parsedSpec"])
|
|
179
168
|
])
|
|
180
169
|
])) : y("", !0),
|
|
181
|
-
|
|
182
|
-
m("div",
|
|
183
|
-
|
|
170
|
+
ie(m("div", Ae, [
|
|
171
|
+
m("div", Fe, [
|
|
172
|
+
l(e.$slots, "editor", d(c(s.value)), void 0, !0)
|
|
184
173
|
])
|
|
185
174
|
], 512), [
|
|
186
|
-
[
|
|
175
|
+
[se, e.configuration.isEditable]
|
|
187
176
|
]),
|
|
188
|
-
J.value ? (f(), h(
|
|
189
|
-
m("div",
|
|
190
|
-
v(
|
|
177
|
+
J.value ? (f(), h(U, { key: 1 }, [
|
|
178
|
+
m("div", Me, [
|
|
179
|
+
v(i(Te), {
|
|
191
180
|
baseServerURL: e.configuration.baseServerURL,
|
|
192
181
|
layout: e.configuration.layout === "classic" ? "accordion" : "default",
|
|
193
182
|
parsedSpec: e.parsedSpec,
|
|
194
183
|
proxy: e.configuration.proxy
|
|
195
|
-
},
|
|
184
|
+
}, le({
|
|
196
185
|
start: p(() => [
|
|
197
|
-
|
|
186
|
+
l(e.$slots, "content-start", d(c(s.value)), void 0, !0)
|
|
198
187
|
]),
|
|
199
188
|
end: p(() => [
|
|
200
|
-
|
|
189
|
+
l(e.$slots, "content-end", d(c(s.value)), void 0, !0)
|
|
201
190
|
]),
|
|
202
191
|
_: 2
|
|
203
192
|
}, [
|
|
204
|
-
(
|
|
193
|
+
(t = e.configuration) != null && t.isEditable ? {
|
|
205
194
|
name: "empty-state",
|
|
206
195
|
fn: p(() => {
|
|
207
|
-
var
|
|
196
|
+
var n;
|
|
208
197
|
return [
|
|
209
|
-
v(
|
|
210
|
-
theme: ((
|
|
198
|
+
v(be, {
|
|
199
|
+
theme: ((n = e.configuration) == null ? void 0 : n.theme) || "default",
|
|
211
200
|
onChangeTheme: o[0] || (o[0] = (u) => e.$emit("changeTheme", u)),
|
|
212
201
|
onLinkSwaggerFile: o[1] || (o[1] = (u) => e.$emit("linkSwaggerFile")),
|
|
213
202
|
onLoadSwaggerFile: o[2] || (o[2] = (u) => e.$emit("loadSwaggerFile")),
|
|
@@ -219,33 +208,33 @@ const Oe = { class: "references-header" }, Ae = {
|
|
|
219
208
|
} : void 0
|
|
220
209
|
]), 1032, ["baseServerURL", "layout", "parsedSpec", "proxy"])
|
|
221
210
|
]),
|
|
222
|
-
e.$slots.footer ? (f(), h("div",
|
|
223
|
-
|
|
211
|
+
e.$slots.footer ? (f(), h("div", Ne, [
|
|
212
|
+
l(e.$slots, "footer", d(c(s.value)), void 0, !0)
|
|
224
213
|
])) : y("", !0)
|
|
225
214
|
], 64)) : y("", !0),
|
|
226
|
-
|
|
215
|
+
i(F) ? (f(), A(he, {
|
|
227
216
|
key: 2,
|
|
228
217
|
proxyUrl: e.configuration.proxy,
|
|
229
218
|
spec: e.configuration.spec
|
|
230
|
-
}, null, 8, ["proxyUrl", "spec"])) : (f(),
|
|
219
|
+
}, null, 8, ["proxyUrl", "spec"])) : (f(), A(i(H), {
|
|
231
220
|
key: 3,
|
|
232
221
|
parsedSpec: e.parsedSpec,
|
|
233
|
-
proxyUrl: (
|
|
222
|
+
proxyUrl: (a = e.configuration) == null ? void 0 : a.proxy
|
|
234
223
|
}, {
|
|
235
224
|
"sidebar-start": p(() => [
|
|
236
|
-
|
|
225
|
+
l(e.$slots, "sidebar-start", d(c(s.value)), void 0, !0)
|
|
237
226
|
]),
|
|
238
227
|
"sidebar-end": p(() => [
|
|
239
|
-
|
|
228
|
+
l(e.$slots, "sidebar-end", d(c(s.value)), void 0, !0)
|
|
240
229
|
]),
|
|
241
230
|
_: 3
|
|
242
231
|
}, 8, ["parsedSpec", "proxyUrl"]))
|
|
243
232
|
], 38),
|
|
244
|
-
v(
|
|
233
|
+
v(i(me))
|
|
245
234
|
], 64);
|
|
246
235
|
};
|
|
247
236
|
}
|
|
248
237
|
});
|
|
249
238
|
export {
|
|
250
|
-
|
|
239
|
+
lo as default
|
|
251
240
|
};
|
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
import { type Server } from '@scalar/api-client';
|
|
2
1
|
import type { Spec } from '@scalar/oas-utils';
|
|
3
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
4
3
|
parsedSpec: Spec;
|
|
5
4
|
layout?: "default" | "accordion" | undefined;
|
|
6
5
|
baseServerURL?: string | undefined;
|
|
7
6
|
proxy?: string | undefined;
|
|
8
|
-
servers?: Server[] | undefined;
|
|
9
7
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
10
8
|
parsedSpec: Spec;
|
|
11
9
|
layout?: "default" | "accordion" | undefined;
|
|
12
10
|
baseServerURL?: string | undefined;
|
|
13
11
|
proxy?: string | undefined;
|
|
14
|
-
servers?: Server[] | undefined;
|
|
15
12
|
}>>>, {}, {}>, {
|
|
16
13
|
start?(_: {}): any;
|
|
17
14
|
"empty-state"?(_: {}): any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Content.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Content/Content.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Content.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Content/Content.vue"],"names":[],"mappings":"AA+MA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;;;;;;;;;;;;;;;;AA+U7C,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 "./Content.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 _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-378846e4"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
_ as default
|
|
8
8
|
};
|