@scalar/api-reference 1.25.21 → 1.25.23
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 +30 -0
- package/dist/browser/standalone.js +16523 -15986
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiClientModal.vue.d.ts +2 -0
- package/dist/components/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/components/ApiClientModal.vue.js +13 -11
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +1 -1
- package/dist/components/ApiReferenceLayout.vue2.js +92 -91
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue2.js +91 -81
- package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts.map +1 -1
- package/dist/features/Search/SearchButton.vue.js +2 -2
- package/dist/features/Search/SearchButton.vue2.js +14 -14
- package/dist/features/Search/SearchModal.vue.d.ts.map +1 -1
- package/dist/features/Search/SearchModal.vue.js +2 -2
- package/dist/features/Search/SearchModal.vue2.js +87 -74
- package/dist/features/Search/index.d.ts +0 -1
- package/dist/features/Search/index.d.ts.map +1 -1
- package/dist/index.js +98 -100
- package/dist/legacy/stores/useOpenApiStore.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +9 -9
- package/dist/features/Search/Search.vue.d.ts +0 -20
- package/dist/features/Search/Search.vue.d.ts.map +0 -1
- package/dist/features/Search/Search.vue.js +0 -18
- package/dist/features/Search/Search.vue2.js +0 -4
- package/dist/features/Search/useKeyboardNavigation.d.ts +0 -13
- package/dist/features/Search/useKeyboardNavigation.d.ts.map +0 -1
- package/dist/features/Search/useKeyboardNavigation.js +0 -30
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import type { Spec, SpecConfiguration } from '@scalar/types/legacy';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
3
3
|
proxyUrl?: string;
|
|
4
|
+
preferredSecurityScheme?: string | null;
|
|
4
5
|
spec?: SpecConfiguration;
|
|
5
6
|
servers?: Spec["servers"];
|
|
6
7
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
7
8
|
proxyUrl?: string;
|
|
9
|
+
preferredSecurityScheme?: string | null;
|
|
8
10
|
spec?: SpecConfiguration;
|
|
9
11
|
servers?: Spec["servers"];
|
|
10
12
|
}>>>, {}, {}>;
|
|
@@ -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":"AA6EA,OAAO,KAAK,EAAE,IAAI,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;;eAQtD,MAAM;8BACS,MAAM,GAAG,IAAI;WAChC,iBAAiB;cACd,IAAI,CAAC,SAAS,CAAC;;eAHd,MAAM;8BACS,MAAM,GAAG,IAAI;WAChC,iBAAiB;cACd,IAAI,CAAC,SAAS,CAAC;;AA+F3B,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,20 +1,22 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { modalStateBus as
|
|
1
|
+
import { defineComponent as S, ref as c, onMounted as v, watch as l, onBeforeUnmount as h, openBlock as y, createElementBlock as _ } from "vue";
|
|
2
|
+
import { modalStateBus as U, apiClientBus as x } from "./api-client-bus.js";
|
|
3
3
|
import { useServerStore as A } from "../legacy/stores/useServerStore.js";
|
|
4
4
|
import { getUrlFromServerState as B } from "../legacy/helpers/getUrlFromServerState.js";
|
|
5
|
-
const g = /* @__PURE__ */
|
|
5
|
+
const g = /* @__PURE__ */ S({
|
|
6
6
|
__name: "ApiClientModal",
|
|
7
7
|
props: {
|
|
8
8
|
proxyUrl: {},
|
|
9
|
+
preferredSecurityScheme: {},
|
|
9
10
|
spec: {},
|
|
10
11
|
servers: {}
|
|
11
12
|
},
|
|
12
|
-
setup(
|
|
13
|
-
const p =
|
|
14
|
-
return
|
|
13
|
+
setup(n) {
|
|
14
|
+
const p = n, a = c(null), o = c(null), { server: s } = A();
|
|
15
|
+
return v(async () => {
|
|
15
16
|
if (!a.value) return;
|
|
16
17
|
const { createApiClientModal: e } = await import("@scalar/api-client"), { app: r, open: i, updateAuth: m, modalState: d, updateSpec: u, updateServer: f } = await e(a.value, {
|
|
17
18
|
spec: p.spec ?? {},
|
|
19
|
+
preferredSecurityScheme: p.preferredSecurityScheme,
|
|
18
20
|
proxyUrl: p.proxyUrl,
|
|
19
21
|
servers: p.servers
|
|
20
22
|
});
|
|
@@ -23,23 +25,23 @@ const g = /* @__PURE__ */ v({
|
|
|
23
25
|
app: r,
|
|
24
26
|
updateSpec: u,
|
|
25
27
|
updateServer: f
|
|
26
|
-
},
|
|
28
|
+
}, U.emit(d), x.on((t) => {
|
|
27
29
|
t.open && i(t.open), t.updateSpec && u(t.updateSpec), t.updateAuth && m(t.updateAuth);
|
|
28
30
|
});
|
|
29
|
-
}),
|
|
31
|
+
}), l(s, (e) => {
|
|
30
32
|
const r = B(e);
|
|
31
33
|
r && o.value && o.value.updateServer(r);
|
|
32
|
-
}),
|
|
34
|
+
}), l(
|
|
33
35
|
() => p.spec,
|
|
34
36
|
(e) => {
|
|
35
37
|
var r;
|
|
36
38
|
return e && ((r = o.value) == null ? void 0 : r.updateSpec(e));
|
|
37
39
|
},
|
|
38
40
|
{ deep: !0 }
|
|
39
|
-
),
|
|
41
|
+
), h(() => {
|
|
40
42
|
var e;
|
|
41
43
|
return (e = o.value) == null ? void 0 : e.app.unmount();
|
|
42
|
-
}), (e, r) => (
|
|
44
|
+
}), (e, r) => (y(), _("div", {
|
|
43
45
|
ref_key: "el",
|
|
44
46
|
ref: a
|
|
45
47
|
}, null, 512));
|
|
@@ -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":"AAmjBA,OAAO,EACL,KAAK,OAAO,EAGb,MAAM,gBAAgB,CAAA;AA0BvB,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,UAAU,CAAA;AAmOjB,iBAAS,cAAc;oBAvMe,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;EAqf/D;AACD,QAAA,MAAM,eAAe;;YAtgBqB,OAAO;eAAS,MAAM;;;;;;;;YAAtB,OAAO;eAAS,MAAM;;;;;;UA6gB9D,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"}
|
|
@@ -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 a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
5
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-dc418317"]]);
|
|
6
6
|
export {
|
|
7
7
|
a as default
|
|
8
8
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as Z, ref as w, onMounted as D, computed as v, onBeforeMount as M, watch as x, onServerPrefetch as ee, useSSRContext as oe, getCurrentInstance as te, provide as
|
|
1
|
+
import { defineComponent as Z, ref as w, onMounted as D, computed as v, onBeforeMount as M, watch as x, onServerPrefetch as ee, useSSRContext as oe, getCurrentInstance as te, provide as h, openBlock as b, createElementBlock as y, Fragment as k, createElementVNode as l, normalizeClass as re, unref as p, normalizeStyle as ae, renderSlot as d, normalizeProps as c, guardReactiveProps as u, createVNode as g, withCtx as m, createCommentVNode as T, withDirectives as ne, vShow as se, createSlots as ie } from "vue";
|
|
2
2
|
import { provideUseId as le } from "@headlessui/vue";
|
|
3
3
|
import { addScalarClassesToHeadless as de } from "@scalar/components";
|
|
4
4
|
import { defaultStateFactory as P } from "@scalar/oas-utils/helpers";
|
|
5
5
|
import { hasObtrusiveScrollbars as ce, getThemeStyles as ue } from "@scalar/themes";
|
|
6
6
|
import { useToasts as pe, ScalarToasts as fe } from "@scalar/use-toasts";
|
|
7
|
-
import { useMediaQuery as ge, useResizeObserver as me, useDebounceFn as
|
|
8
|
-
import
|
|
7
|
+
import { useMediaQuery as ge, useResizeObserver as me, useDebounceFn as Se } from "@vueuse/core";
|
|
8
|
+
import ve from "./ApiClientModal.vue.js";
|
|
9
9
|
/* empty css */
|
|
10
10
|
import he from "./GettingStarted.vue.js";
|
|
11
|
-
import { downloadSpecBus as be, downloadSpecFile as
|
|
12
|
-
import { useDeprecationWarnings as
|
|
11
|
+
import { downloadSpecBus as be, downloadSpecFile as ye } from "../helpers/specDownloads.js";
|
|
12
|
+
import { useDeprecationWarnings as we } from "../hooks/useDeprecationWarnings.js";
|
|
13
13
|
import Te from "./Sidebar/Sidebar.vue.js";
|
|
14
14
|
import Re from "./Content/Content.vue.js";
|
|
15
15
|
import { useSidebar as Ce } from "../hooks/useSidebar.js";
|
|
@@ -34,90 +34,90 @@ const Ue = ["innerHTML"], De = { class: "references-header" }, Me = {
|
|
|
34
34
|
setup(F) {
|
|
35
35
|
const t = F, { initializeToasts: A, toast: N } = pe();
|
|
36
36
|
A((e) => N(e));
|
|
37
|
-
const H = ge("(min-width: 1150px)"), Y = w("100dvh"),
|
|
38
|
-
me(
|
|
37
|
+
const H = ge("(min-width: 1150px)"), Y = w("100dvh"), f = w(null);
|
|
38
|
+
me(f, (e) => {
|
|
39
39
|
Y.value = e[0].contentRect.height + "px";
|
|
40
40
|
});
|
|
41
|
-
const
|
|
41
|
+
const R = w(0);
|
|
42
42
|
D(() => {
|
|
43
|
-
var
|
|
44
|
-
const e = (
|
|
43
|
+
var r, a, n;
|
|
44
|
+
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();
|
|
45
45
|
if (e && o) {
|
|
46
|
-
const
|
|
47
|
-
|
|
46
|
+
const s = o.top - e.top;
|
|
47
|
+
R.value = s < 2 ? 0 : s;
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
50
|
const z = v(ce), {
|
|
51
51
|
breadcrumb: V,
|
|
52
|
-
collapsedSidebarItems:
|
|
52
|
+
collapsedSidebarItems: S,
|
|
53
53
|
isSidebarOpen: G,
|
|
54
|
-
setCollapsedSidebarItem:
|
|
54
|
+
setCollapsedSidebarItem: C,
|
|
55
55
|
hideModels: Q,
|
|
56
56
|
defaultOpenAllTags: W,
|
|
57
|
-
setParsedSpec:
|
|
58
|
-
scrollToOperation:
|
|
57
|
+
setParsedSpec: j,
|
|
58
|
+
scrollToOperation: q
|
|
59
59
|
} = Ce(), {
|
|
60
|
-
getPathRoutingId:
|
|
61
|
-
getSectionId:
|
|
62
|
-
getTagId:
|
|
63
|
-
hash:
|
|
64
|
-
isIntersectionEnabled:
|
|
65
|
-
pathRouting:
|
|
66
|
-
updateHash:
|
|
60
|
+
getPathRoutingId: $,
|
|
61
|
+
getSectionId: K,
|
|
62
|
+
getTagId: _,
|
|
63
|
+
hash: E,
|
|
64
|
+
isIntersectionEnabled: O,
|
|
65
|
+
pathRouting: L,
|
|
66
|
+
updateHash: B
|
|
67
67
|
} = Be();
|
|
68
|
-
|
|
69
|
-
const
|
|
68
|
+
L.value = t.configuration.pathRouting, M(() => B());
|
|
69
|
+
const I = async (e) => {
|
|
70
70
|
var o;
|
|
71
|
-
|
|
71
|
+
O.value = !1, B(), e ? q(e) : (o = f.value) == null || o.scrollTo(0, 0), await Ie(100), O.value = !0;
|
|
72
72
|
};
|
|
73
73
|
M(() => de()), D(() => {
|
|
74
74
|
be.on(({ specTitle: e }) => {
|
|
75
|
-
|
|
76
|
-
}), window.onhashchange = () =>
|
|
75
|
+
ye(t.rawSpec, e);
|
|
76
|
+
}), window.onhashchange = () => I(decodeURIComponent(window.location.hash.replace(/^#/, ""))), window.onpopstate = () => L.value && I($(window.location.pathname));
|
|
77
77
|
});
|
|
78
78
|
const J = v(
|
|
79
79
|
() => H.value || !t.configuration.isEditable
|
|
80
|
-
),
|
|
80
|
+
), U = Se((e) => {
|
|
81
81
|
if ((e.target.scrollTop ?? 0) < 50) {
|
|
82
|
-
const
|
|
83
|
-
window.history.replaceState({}, "",
|
|
82
|
+
const r = t.configuration.pathRouting ? t.configuration.pathRouting.basePath : window.location.pathname;
|
|
83
|
+
window.history.replaceState({}, "", r + window.location.search), E.value = "";
|
|
84
84
|
}
|
|
85
|
-
}),
|
|
85
|
+
}), i = v(() => ({
|
|
86
86
|
breadcrumb: V.value,
|
|
87
87
|
spec: t.parsedSpec
|
|
88
88
|
}));
|
|
89
|
-
x(() => t.parsedSpec,
|
|
90
|
-
var o,
|
|
89
|
+
x(() => t.parsedSpec, j, { deep: !0 }), ee(() => {
|
|
90
|
+
var o, r;
|
|
91
91
|
const e = oe();
|
|
92
92
|
if (e && (e.payload || (e.payload = { data: P() }), (o = e.payload).data || (o.data = P()), t.configuration.pathRouting)) {
|
|
93
|
-
const
|
|
94
|
-
|
|
95
|
-
for (const
|
|
96
|
-
Object.hasOwn(
|
|
97
|
-
if (
|
|
98
|
-
|
|
93
|
+
const a = $(e.url);
|
|
94
|
+
E.value = a, e.payload.data.hash = a;
|
|
95
|
+
for (const n in S)
|
|
96
|
+
Object.hasOwn(S, n) && delete S[n];
|
|
97
|
+
if (a)
|
|
98
|
+
C(K(a), !0);
|
|
99
99
|
else {
|
|
100
|
-
const
|
|
101
|
-
|
|
100
|
+
const n = (r = t.parsedSpec.tags) == null ? void 0 : r[0];
|
|
101
|
+
n && C(_(n), !0);
|
|
102
102
|
}
|
|
103
|
-
e.payload.data["useSidebarContent-collapsedSidebarItems"] =
|
|
103
|
+
e.payload.data["useSidebarContent-collapsedSidebarItems"] = S;
|
|
104
104
|
}
|
|
105
105
|
}), le(() => {
|
|
106
|
-
var
|
|
106
|
+
var a;
|
|
107
107
|
const e = te(), o = "scalar-instance-id";
|
|
108
108
|
if (!e) return o;
|
|
109
|
-
let
|
|
110
|
-
return typeof window > "u" ? (e.attrs || (e.attrs = {}), e.attrs[o] =
|
|
111
|
-
}),
|
|
109
|
+
let r = e.uid;
|
|
110
|
+
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}`;
|
|
111
|
+
}), h($e, () => t.parsedSpec.security), h(
|
|
112
112
|
Ee,
|
|
113
113
|
() => t.configuration.hideDownloadButton
|
|
114
|
-
),
|
|
114
|
+
), h(
|
|
115
115
|
Oe,
|
|
116
116
|
() => t.configuration.hideTestRequestButton
|
|
117
|
-
),
|
|
117
|
+
), h(Le, () => {
|
|
118
118
|
var e;
|
|
119
119
|
return (e = t.configuration.spec) == null ? void 0 : e.url;
|
|
120
|
-
}), Q.value = t.configuration.hideModels ?? !1, W.value = t.configuration.defaultOpenAllTags ?? !1,
|
|
120
|
+
}), Q.value = t.configuration.hideModels ?? !1, W.value = t.configuration.defaultOpenAllTags ?? !1, we(t.configuration);
|
|
121
121
|
const X = v(
|
|
122
122
|
() => `<style>
|
|
123
123
|
${ue(t.configuration.theme, {
|
|
@@ -125,78 +125,78 @@ const Ue = ["innerHTML"], De = { class: "references-header" }, Me = {
|
|
|
125
125
|
})}</style>`
|
|
126
126
|
);
|
|
127
127
|
return (e, o) => {
|
|
128
|
-
var a;
|
|
129
|
-
return
|
|
130
|
-
|
|
131
|
-
|
|
128
|
+
var r, a;
|
|
129
|
+
return b(), y(k, null, [
|
|
130
|
+
l("div", { innerHTML: X.value }, null, 8, Ue),
|
|
131
|
+
l("div", {
|
|
132
132
|
ref_key: "documentEl",
|
|
133
|
-
ref:
|
|
133
|
+
ref: f,
|
|
134
134
|
class: re(["scalar-app scalar-api-reference references-layout", [
|
|
135
135
|
{
|
|
136
136
|
"scalar-scrollbars-obtrusive": z.value,
|
|
137
137
|
"references-editable": e.configuration.isEditable,
|
|
138
138
|
"references-sidebar": e.configuration.showSidebar,
|
|
139
|
-
"references-sidebar-mobile-open":
|
|
139
|
+
"references-sidebar-mobile-open": p(G),
|
|
140
140
|
"references-classic": e.configuration.layout === "classic"
|
|
141
141
|
},
|
|
142
142
|
e.$attrs.class
|
|
143
143
|
]]),
|
|
144
144
|
style: ae({
|
|
145
|
-
"--scalar-y-offset": `var(--scalar-custom-header-height, ${
|
|
145
|
+
"--scalar-y-offset": `var(--scalar-custom-header-height, ${R.value}px)`
|
|
146
146
|
}),
|
|
147
147
|
onScrollPassive: o[4] || (o[4] = //@ts-ignore
|
|
148
|
-
(...
|
|
148
|
+
(...n) => p(U) && p(U)(...n))
|
|
149
149
|
}, [
|
|
150
|
-
|
|
151
|
-
|
|
150
|
+
l("div", De, [
|
|
151
|
+
d(e.$slots, "header", c(u(i.value)), void 0, !0)
|
|
152
152
|
]),
|
|
153
|
-
e.configuration.showSidebar ? (
|
|
154
|
-
|
|
155
|
-
|
|
153
|
+
e.configuration.showSidebar ? (b(), y("aside", Me, [
|
|
154
|
+
l("div", ke, [
|
|
155
|
+
g(p(Te), {
|
|
156
156
|
parsedSpec: e.parsedSpec,
|
|
157
157
|
tagsSorter: e.configuration.tagsSorter
|
|
158
158
|
}, {
|
|
159
|
-
"sidebar-start":
|
|
160
|
-
|
|
159
|
+
"sidebar-start": m(() => [
|
|
160
|
+
d(e.$slots, "sidebar-start", c(u(i.value)), void 0, !0)
|
|
161
161
|
]),
|
|
162
|
-
"sidebar-end":
|
|
163
|
-
|
|
162
|
+
"sidebar-end": m(() => [
|
|
163
|
+
d(e.$slots, "sidebar-end", c(u(i.value)), void 0, !0)
|
|
164
164
|
]),
|
|
165
165
|
_: 3
|
|
166
166
|
}, 8, ["parsedSpec", "tagsSorter"])
|
|
167
167
|
])
|
|
168
|
-
])) :
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
168
|
+
])) : T("", !0),
|
|
169
|
+
ne(l("div", Pe, [
|
|
170
|
+
l("div", Fe, [
|
|
171
|
+
d(e.$slots, "editor", c(u(i.value)), void 0, !0)
|
|
172
172
|
])
|
|
173
173
|
], 512), [
|
|
174
|
-
[
|
|
174
|
+
[se, e.configuration.isEditable]
|
|
175
175
|
]),
|
|
176
|
-
J.value ? (
|
|
177
|
-
|
|
178
|
-
|
|
176
|
+
J.value ? (b(), y(k, { key: 1 }, [
|
|
177
|
+
l("div", Ae, [
|
|
178
|
+
g(p(Re), {
|
|
179
179
|
baseServerURL: e.configuration.baseServerURL,
|
|
180
180
|
layout: e.configuration.layout === "classic" ? "accordion" : "default",
|
|
181
181
|
parsedSpec: e.parsedSpec,
|
|
182
182
|
proxy: e.configuration.proxy,
|
|
183
183
|
servers: e.configuration.servers
|
|
184
184
|
}, ie({
|
|
185
|
-
start:
|
|
186
|
-
|
|
185
|
+
start: m(() => [
|
|
186
|
+
d(e.$slots, "content-start", c(u(i.value)), void 0, !0)
|
|
187
187
|
]),
|
|
188
|
-
end:
|
|
189
|
-
|
|
188
|
+
end: m(() => [
|
|
189
|
+
d(e.$slots, "content-end", c(u(i.value)), void 0, !0)
|
|
190
190
|
]),
|
|
191
191
|
_: 2
|
|
192
192
|
}, [
|
|
193
|
-
(
|
|
193
|
+
(r = e.configuration) != null && r.isEditable ? {
|
|
194
194
|
name: "empty-state",
|
|
195
|
-
fn:
|
|
196
|
-
var
|
|
195
|
+
fn: m(() => {
|
|
196
|
+
var n;
|
|
197
197
|
return [
|
|
198
|
-
|
|
199
|
-
theme: ((
|
|
198
|
+
g(he, {
|
|
199
|
+
theme: ((n = e.configuration) == null ? void 0 : n.theme) || "default",
|
|
200
200
|
onChangeTheme: o[0] || (o[0] = (s) => e.$emit("changeTheme", s)),
|
|
201
201
|
onLinkSwaggerFile: o[1] || (o[1] = (s) => e.$emit("linkSwaggerFile")),
|
|
202
202
|
onLoadSwaggerFile: o[2] || (o[2] = (s) => e.$emit("loadSwaggerFile")),
|
|
@@ -208,17 +208,18 @@ const Ue = ["innerHTML"], De = { class: "references-header" }, Me = {
|
|
|
208
208
|
} : void 0
|
|
209
209
|
]), 1032, ["baseServerURL", "layout", "parsedSpec", "proxy", "servers"])
|
|
210
210
|
]),
|
|
211
|
-
e.$slots.footer ? (
|
|
212
|
-
|
|
213
|
-
])) :
|
|
214
|
-
], 64)) :
|
|
215
|
-
|
|
211
|
+
e.$slots.footer ? (b(), y("div", Ne, [
|
|
212
|
+
d(e.$slots, "footer", c(u(i.value)), void 0, !0)
|
|
213
|
+
])) : T("", !0)
|
|
214
|
+
], 64)) : T("", !0),
|
|
215
|
+
g(ve, {
|
|
216
|
+
preferredSecurityScheme: (a = e.configuration.authentication) == null ? void 0 : a.preferredSecurityScheme,
|
|
216
217
|
proxyUrl: e.configuration.proxy,
|
|
217
218
|
servers: e.configuration.servers,
|
|
218
219
|
spec: e.configuration.spec
|
|
219
|
-
}, null, 8, ["proxyUrl", "servers", "spec"])
|
|
220
|
+
}, null, 8, ["preferredSecurityScheme", "proxyUrl", "servers", "spec"])
|
|
220
221
|
], 38),
|
|
221
|
-
|
|
222
|
+
g(p(fe))
|
|
222
223
|
], 64);
|
|
223
224
|
};
|
|
224
225
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.vue"],"names":[],"mappings":";YA0VY,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;YACnB,MAAM;WACP,MAAM;eACF,OAAO;cACR,OAAO;kBACH,MAAM;iBACP,OAAO;;;;;;YANZ,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;YACnB,MAAM;WACP,MAAM;eACF,OAAO;cACR,OAAO;kBACH,MAAM;iBACP,OAAO;;;;;;cAHT,OAAO;WAFV,MAAM;aAGJ,OAAO;;AA4VrB,0BAMG;AAOH,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAC7C,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KAAC,CAAC,GACvC,CAAC,CAAC,CAAC,CAAC;CACP,CAAC;AAEN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AAExD,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 "./SchemaProperty.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-bfe8efb1"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|