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