@scalar/api-reference 1.25.111 → 1.25.113
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 +5991 -6107
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +2 -2
- package/dist/components/ApiReferenceLayout.vue2.js +103 -104
- package/dist/components/Content/Content.vue.d.ts +1 -3
- package/dist/components/Content/Content.vue.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.js +1 -1
- package/dist/components/Content/Content.vue2.js +53 -55
- package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/features/ApiClientModal/ApiClientModal.vue.js +24 -34
- package/dist/features/ApiClientModal/useApiClient.d.ts +60 -80
- package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
- package/dist/features/BaseUrl/BaseUrl.vue.d.ts +1 -16
- package/dist/features/BaseUrl/BaseUrl.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/BaseUrl.vue.js +36 -29
- package/dist/features/BaseUrl/index.d.ts +0 -1
- package/dist/features/BaseUrl/index.d.ts.map +1 -1
- package/dist/features/Operation/hooks/useRequestExample.d.ts.map +1 -1
- package/dist/features/Operation/hooks/useRequestExample.js +39 -51
- package/dist/index.js +1 -1
- package/dist/legacy/helpers/index.d.ts +0 -1
- package/dist/legacy/helpers/index.d.ts.map +1 -1
- package/dist/legacy/stores/index.d.ts +1 -2
- package/dist/legacy/stores/index.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +8 -8
- package/dist/features/BaseUrl/ServerForm.vue.d.ts +0 -18
- package/dist/features/BaseUrl/ServerForm.vue.d.ts.map +0 -1
- package/dist/features/BaseUrl/ServerForm.vue.js +0 -7
- package/dist/features/BaseUrl/ServerForm.vue2.js +0 -76
- package/dist/features/BaseUrl/ServerUrl.vue.d.ts +0 -9
- package/dist/features/BaseUrl/ServerUrl.vue.d.ts.map +0 -1
- package/dist/features/BaseUrl/ServerUrl.vue.js +0 -7
- package/dist/features/BaseUrl/ServerUrl.vue2.js +0 -27
- package/dist/features/BaseUrl/ServerUrlSelect.vue.d.ts +0 -28
- package/dist/features/BaseUrl/ServerUrlSelect.vue.d.ts.map +0 -1
- package/dist/features/BaseUrl/ServerUrlSelect.vue.js +0 -7
- package/dist/features/BaseUrl/ServerUrlSelect.vue2.js +0 -61
- package/dist/features/BaseUrl/ServerVariablesForm.vue.d.ts +0 -14
- package/dist/features/BaseUrl/ServerVariablesForm.vue.d.ts.map +0 -1
- package/dist/features/BaseUrl/ServerVariablesForm.vue.js +0 -7
- package/dist/features/BaseUrl/ServerVariablesForm.vue2.js +0 -59
- package/dist/features/BaseUrl/ServerVariablesSelect.vue.d.ts +0 -12
- package/dist/features/BaseUrl/ServerVariablesSelect.vue.d.ts.map +0 -1
- package/dist/features/BaseUrl/ServerVariablesSelect.vue.js +0 -7
- package/dist/features/BaseUrl/ServerVariablesSelect.vue2.js +0 -54
- package/dist/features/BaseUrl/ServerVariablesTextbox.vue.d.ts +0 -11
- package/dist/features/BaseUrl/ServerVariablesTextbox.vue.d.ts.map +0 -1
- package/dist/features/BaseUrl/ServerVariablesTextbox.vue.js +0 -7
- package/dist/features/BaseUrl/ServerVariablesTextbox.vue2.js +0 -29
- package/dist/features/BaseUrl/types.d.ts +0 -9
- package/dist/features/BaseUrl/types.d.ts.map +0 -1
- package/dist/features/BaseUrl/utils/getServers.d.ts +0 -15
- package/dist/features/BaseUrl/utils/getServers.d.ts.map +0 -1
- package/dist/features/BaseUrl/utils/getServers.js +0 -31
- package/dist/legacy/helpers/getUrlFromServerState.d.ts +0 -10
- package/dist/legacy/helpers/getUrlFromServerState.d.ts.map +0 -1
- package/dist/legacy/helpers/getUrlFromServerState.js +0 -18
- package/dist/legacy/stores/useServerStore.d.ts +0 -44
- package/dist/legacy/stores/useServerStore.d.ts.map +0 -1
- package/dist/legacy/stores/useServerStore.js +0 -88
|
@@ -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":"AAonBA,OAAO,EACL,KAAK,OAAO,EAGb,MAAM,gBAAgB,CAAA;AAoBvB,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,UAAU,CAAA;AAOjB,KAAK,WAAW,GAAG,IAAI,CAAC,oBAAoB,EAAE,QAAQ,CAAC,CAAC;AAgRxD,iBAAS,cAAc;WAoPT,OAAO,IAA6B;;wBA/eZ,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;;;;;;EAof/D;AAuBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;YA7hBqB,OAAO;eAAS,MAAM;;;;;;;;YAAtB,OAAO;eAAS,MAAM;;;;;;kFAoiB9D,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,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 c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-4351acc7"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
c as default
|
|
8
8
|
};
|
|
@@ -1,29 +1,30 @@
|
|
|
1
|
-
import { defineComponent as ie, ref as
|
|
2
|
-
import { CONFIGURATION_SYMBOL as
|
|
3
|
-
import { useHttpClientStore as
|
|
1
|
+
import { defineComponent as ie, ref as C, computed as h, onBeforeMount as M, onMounted as se, onUnmounted as le, watch as T, onServerPrefetch as de, useSSRContext as ce, getCurrentInstance as ue, provide as v, openBlock as b, createElementBlock as y, Fragment as P, createElementVNode as d, normalizeClass as fe, unref as s, normalizeStyle as pe, renderSlot as c, normalizeProps as u, guardReactiveProps as f, createVNode as p, withCtx as m, createCommentVNode as $, withDirectives as me, vShow as ge, createSlots as Se } from "vue";
|
|
2
|
+
import { CONFIGURATION_SYMBOL as he } from "../hooks/useConfig.js";
|
|
3
|
+
import { useHttpClientStore as ve } from "../stores/useHttpClientStore.js";
|
|
4
4
|
import { provideUseId as be } from "@headlessui/vue";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import Be from "
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
5
|
+
import { LAYOUT_SYMBOL as ye } from "@scalar/api-client/hooks";
|
|
6
|
+
import { createWorkspaceStore as we, WORKSPACE_SYMBOL as Ce, createActiveEntitiesStore as Te, ACTIVE_ENTITIES_SYMBOL as $e } from "@scalar/api-client/store";
|
|
7
|
+
import { addScalarClassesToHeadless as Ee, ScalarErrorBoundary as Re } from "@scalar/components";
|
|
8
|
+
import { defaultStateFactory as D } from "@scalar/oas-utils/helpers";
|
|
9
|
+
import { hasObtrusiveScrollbars as Ie, getThemeStyles as Oe } from "@scalar/themes";
|
|
10
|
+
import { useToasts as ke, ScalarToasts as Ae } from "@scalar/use-toasts";
|
|
11
|
+
import { useMediaQuery as Be, useResizeObserver as Fe, useDebounceFn as Le } from "@vueuse/core";
|
|
12
|
+
import Me from "./GettingStarted.vue.js";
|
|
13
|
+
import { downloadSpecBus as H, downloadSpecFile as Pe } from "../helpers/specDownloads.js";
|
|
14
|
+
import { useDeprecationWarnings as De } from "../hooks/useDeprecationWarnings.js";
|
|
15
|
+
import He from "./Sidebar/Sidebar.vue.js";
|
|
16
|
+
import Ue from "./Content/Content.vue.js";
|
|
17
|
+
import Ne from "../features/ApiClientModal/ApiClientModal.vue.js";
|
|
18
|
+
import { useSidebar as Ye } from "../hooks/useSidebar.js";
|
|
18
19
|
import { useNavState as ze } from "../hooks/useNavState.js";
|
|
19
|
-
import { sleep as
|
|
20
|
-
const
|
|
20
|
+
import { sleep as Ve } from "../helpers/sleep.js";
|
|
21
|
+
const We = ["innerHTML"], Ge = { class: "references-header" }, Ke = {
|
|
21
22
|
key: 0,
|
|
22
23
|
class: "references-navigation t-doc__sidebar"
|
|
23
|
-
},
|
|
24
|
+
}, je = { class: "references-navigation-list" }, Qe = { class: "references-editor" }, qe = { class: "references-editor-textarea" }, Je = ["aria-label"], Xe = {
|
|
24
25
|
key: 0,
|
|
25
26
|
class: "references-footer"
|
|
26
|
-
},
|
|
27
|
+
}, ht = /* @__PURE__ */ ie({
|
|
27
28
|
inheritAttrs: !1,
|
|
28
29
|
__name: "ApiReferenceLayout",
|
|
29
30
|
props: {
|
|
@@ -32,25 +33,25 @@ const Ve = ["innerHTML"], We = { class: "references-header" }, Ge = {
|
|
|
32
33
|
rawSpec: {}
|
|
33
34
|
},
|
|
34
35
|
emits: ["changeTheme", "updateContent", "loadSwaggerFile", "linkSwaggerFile", "toggleDarkMode"],
|
|
35
|
-
setup(
|
|
36
|
-
const o =
|
|
37
|
-
N((e) =>
|
|
38
|
-
const
|
|
39
|
-
Fe(
|
|
36
|
+
setup(U) {
|
|
37
|
+
const o = U, { initializeToasts: N, toast: Y } = ke();
|
|
38
|
+
N((e) => Y(e));
|
|
39
|
+
const z = Be("(min-width: 1150px)"), V = C("100dvh"), g = C(null);
|
|
40
|
+
Fe(g, (e) => {
|
|
40
41
|
V.value = e[0].contentRect.height + "px";
|
|
41
42
|
});
|
|
42
|
-
const W =
|
|
43
|
+
const W = h(Ie), {
|
|
43
44
|
breadcrumb: G,
|
|
44
45
|
collapsedSidebarItems: S,
|
|
45
46
|
isSidebarOpen: K,
|
|
46
|
-
setCollapsedSidebarItem:
|
|
47
|
+
setCollapsedSidebarItem: E,
|
|
47
48
|
hideModels: j,
|
|
48
49
|
defaultOpenAllTags: Q,
|
|
49
50
|
setParsedSpec: q,
|
|
50
51
|
scrollToOperation: J
|
|
51
|
-
} =
|
|
52
|
+
} = Ye(), {
|
|
52
53
|
getReferenceHash: X,
|
|
53
|
-
getPathRoutingId:
|
|
54
|
+
getPathRoutingId: R,
|
|
54
55
|
getSectionId: Z,
|
|
55
56
|
getTagId: _,
|
|
56
57
|
hash: x,
|
|
@@ -59,73 +60,73 @@ const Ve = ["innerHTML"], We = { class: "references-header" }, Ge = {
|
|
|
59
60
|
updateHash: k,
|
|
60
61
|
replaceUrlState: ee
|
|
61
62
|
} = ze();
|
|
62
|
-
O.value = o.configuration.pathRouting,
|
|
63
|
-
const
|
|
63
|
+
O.value = o.configuration.pathRouting, M(() => k());
|
|
64
|
+
const A = async (e) => {
|
|
64
65
|
var t;
|
|
65
|
-
I.value = !1, k(), e ? J(e) : (t =
|
|
66
|
-
},
|
|
67
|
-
|
|
66
|
+
I.value = !1, k(), e ? J(e) : (t = g.value) == null || t.scrollTo(0, 0), await Ve(100), I.value = !0;
|
|
67
|
+
}, B = C(0);
|
|
68
|
+
M(() => Ee()), se(() => {
|
|
68
69
|
var r, a, n;
|
|
69
|
-
history.scrollRestoration = "manual",
|
|
70
|
+
history.scrollRestoration = "manual", H.on(({ specTitle: i }) => {
|
|
70
71
|
Pe(o.rawSpec, i);
|
|
71
72
|
});
|
|
72
|
-
const e = (a = (r =
|
|
73
|
+
const e = (a = (r = g.value) == null ? void 0 : r.parentElement) == null ? void 0 : a.getBoundingClientRect(), t = (n = g.value) == null ? void 0 : n.getBoundingClientRect();
|
|
73
74
|
if (e && t) {
|
|
74
75
|
const i = t.top - e.top;
|
|
75
|
-
|
|
76
|
+
B.value = i < 2 ? 0 : i;
|
|
76
77
|
}
|
|
77
78
|
window.onhashchange = () => {
|
|
78
|
-
|
|
79
|
-
}, window.onpopstate = () => O.value &&
|
|
79
|
+
A(X());
|
|
80
|
+
}, window.onpopstate = () => O.value && A(R(window.location.pathname));
|
|
80
81
|
});
|
|
81
|
-
const te =
|
|
82
|
-
() =>
|
|
83
|
-
),
|
|
82
|
+
const te = h(
|
|
83
|
+
() => z.value || !o.configuration.isEditable
|
|
84
|
+
), F = Le((e) => {
|
|
84
85
|
if ((e.target.scrollTop ?? 0) < 50) {
|
|
85
86
|
const r = o.configuration.pathRouting ? o.configuration.pathRouting.basePath : window.location.pathname;
|
|
86
87
|
ee("", r + window.location.search);
|
|
87
88
|
}
|
|
88
|
-
}), l =
|
|
89
|
+
}), l = h(() => ({
|
|
89
90
|
breadcrumb: G.value,
|
|
90
91
|
spec: o.parsedSpec
|
|
91
92
|
}));
|
|
92
93
|
le(() => {
|
|
93
|
-
|
|
94
|
-
}),
|
|
94
|
+
H.reset();
|
|
95
|
+
}), T(() => o.parsedSpec, q, { deep: !0 }), de(() => {
|
|
95
96
|
var t, r;
|
|
96
|
-
const e =
|
|
97
|
-
if (e && (e.payload || (e.payload = { data:
|
|
98
|
-
const a =
|
|
97
|
+
const e = ce();
|
|
98
|
+
if (e && (e.payload || (e.payload = { data: D() }), (t = e.payload).data || (t.data = D()), o.configuration.pathRouting)) {
|
|
99
|
+
const a = R(e.url);
|
|
99
100
|
x.value = a, e.payload.data.hash = a;
|
|
100
101
|
for (const n in S)
|
|
101
102
|
Object.hasOwn(S, n) && delete S[n];
|
|
102
103
|
if (a)
|
|
103
|
-
|
|
104
|
+
E(Z(a), !0);
|
|
104
105
|
else {
|
|
105
106
|
const n = (r = o.parsedSpec.tags) == null ? void 0 : r[0];
|
|
106
|
-
n &&
|
|
107
|
+
n && E(_(n), !0);
|
|
107
108
|
}
|
|
108
109
|
e.payload.data["useSidebarContent-collapsedSidebarItems"] = S;
|
|
109
110
|
}
|
|
110
111
|
}), be(() => {
|
|
111
112
|
var a;
|
|
112
|
-
const e =
|
|
113
|
+
const e = ue(), t = "scalar-instance-id";
|
|
113
114
|
if (!e) return t;
|
|
114
115
|
let r = e.uid;
|
|
115
116
|
return typeof window > "u" ? (e.attrs || (e.attrs = {}), e.attrs[t] = r) : (a = e.vnode.el) != null && a.getAttribute && (r = e.vnode.el.getAttribute(t)), `${t}-${r}`;
|
|
116
117
|
});
|
|
117
|
-
const
|
|
118
|
+
const w = we({
|
|
118
119
|
proxyUrl: o.configuration.proxyUrl || o.configuration.proxy,
|
|
119
120
|
themeId: o.configuration.theme,
|
|
120
121
|
useLocalStorage: !1,
|
|
121
122
|
hideClientButton: o.configuration.hideClientButton,
|
|
122
123
|
integration: o.configuration._integration
|
|
123
124
|
});
|
|
124
|
-
|
|
125
|
+
T(
|
|
125
126
|
() => o.rawSpec,
|
|
126
127
|
(e) => {
|
|
127
128
|
var t;
|
|
128
|
-
return e &&
|
|
129
|
+
return e && w.importSpecFile(e, "default", {
|
|
129
130
|
shouldLoad: !1,
|
|
130
131
|
documentUrl: (t = o.configuration.spec) == null ? void 0 : t.url,
|
|
131
132
|
setCollectionSecurity: !0,
|
|
@@ -133,11 +134,11 @@ const Ve = ["innerHTML"], We = { class: "references-header" }, Ge = {
|
|
|
133
134
|
});
|
|
134
135
|
},
|
|
135
136
|
{ immediate: !0 }
|
|
136
|
-
),
|
|
137
|
-
const oe =
|
|
138
|
-
|
|
139
|
-
function
|
|
140
|
-
|
|
137
|
+
), v(Ce, w);
|
|
138
|
+
const oe = Te(w);
|
|
139
|
+
v($e, oe), v(ye, "modal"), v(he, o.configuration);
|
|
140
|
+
function L(e, t) {
|
|
141
|
+
T(
|
|
141
142
|
() => o.configuration[e],
|
|
142
143
|
(r) => {
|
|
143
144
|
typeof r < "u" && t(r);
|
|
@@ -145,21 +146,21 @@ const Ve = ["innerHTML"], We = { class: "references-header" }, Ge = {
|
|
|
145
146
|
{ immediate: !0 }
|
|
146
147
|
);
|
|
147
148
|
}
|
|
148
|
-
const { setExcludedClients: re, setDefaultHttpClient: ae } =
|
|
149
|
-
|
|
150
|
-
const ne =
|
|
149
|
+
const { setExcludedClients: re, setDefaultHttpClient: ae } = ve();
|
|
150
|
+
L("defaultHttpClient", ae), L("hiddenClients", re), j.value = o.configuration.hideModels ?? !1, Q.value = o.configuration.defaultOpenAllTags ?? !1, De(o.configuration);
|
|
151
|
+
const ne = h(
|
|
151
152
|
() => `<style>
|
|
152
|
-
${
|
|
153
|
+
${Oe(o.configuration.theme, {
|
|
153
154
|
fonts: o.configuration.withDefaultFonts
|
|
154
155
|
})}</style>`
|
|
155
156
|
);
|
|
156
157
|
return (e, t) => {
|
|
157
158
|
var r, a;
|
|
158
|
-
return
|
|
159
|
-
d("div", { innerHTML: ne.value }, null, 8,
|
|
159
|
+
return b(), y(P, null, [
|
|
160
|
+
d("div", { innerHTML: ne.value }, null, 8, We),
|
|
160
161
|
d("div", {
|
|
161
162
|
ref_key: "documentEl",
|
|
162
|
-
ref:
|
|
163
|
+
ref: g,
|
|
163
164
|
class: fe(["scalar-app scalar-api-reference references-layout", [
|
|
164
165
|
{
|
|
165
166
|
"scalar-scrollbars-obtrusive": W.value,
|
|
@@ -171,28 +172,28 @@ const Ve = ["innerHTML"], We = { class: "references-header" }, Ge = {
|
|
|
171
172
|
e.$attrs.class
|
|
172
173
|
]]),
|
|
173
174
|
style: pe({
|
|
174
|
-
"--scalar-y-offset": `var(--scalar-custom-header-height, ${
|
|
175
|
+
"--scalar-y-offset": `var(--scalar-custom-header-height, ${B.value}px)`
|
|
175
176
|
}),
|
|
176
177
|
onScrollPassive: t[4] || (t[4] = //@ts-ignore
|
|
177
|
-
(...n) => s(
|
|
178
|
+
(...n) => s(F) && s(F)(...n))
|
|
178
179
|
}, [
|
|
179
|
-
d("div",
|
|
180
|
-
|
|
180
|
+
d("div", Ge, [
|
|
181
|
+
c(e.$slots, "header", u(f(l.value)), void 0, !0)
|
|
181
182
|
]),
|
|
182
|
-
e.configuration.showSidebar ? (
|
|
183
|
-
d("div",
|
|
184
|
-
p(s(
|
|
185
|
-
default:
|
|
186
|
-
p(s(
|
|
183
|
+
e.configuration.showSidebar ? (b(), y("aside", Ke, [
|
|
184
|
+
d("div", je, [
|
|
185
|
+
p(s(Re), null, {
|
|
186
|
+
default: m(() => [
|
|
187
|
+
p(s(He), {
|
|
187
188
|
operationsSorter: e.configuration.operationsSorter,
|
|
188
189
|
parsedSpec: e.parsedSpec,
|
|
189
190
|
tagsSorter: e.configuration.tagsSorter
|
|
190
191
|
}, {
|
|
191
|
-
"sidebar-start":
|
|
192
|
-
|
|
192
|
+
"sidebar-start": m(() => [
|
|
193
|
+
c(e.$slots, "sidebar-start", u(f(l.value)), void 0, !0)
|
|
193
194
|
]),
|
|
194
|
-
"sidebar-end":
|
|
195
|
-
|
|
195
|
+
"sidebar-end": m(() => [
|
|
196
|
+
c(e.$slots, "sidebar-end", u(f(l.value)), void 0, !0)
|
|
196
197
|
]),
|
|
197
198
|
_: 3
|
|
198
199
|
}, 8, ["operationsSorter", "parsedSpec", "tagsSorter"])
|
|
@@ -200,39 +201,37 @@ const Ve = ["innerHTML"], We = { class: "references-header" }, Ge = {
|
|
|
200
201
|
_: 3
|
|
201
202
|
})
|
|
202
203
|
])
|
|
203
|
-
])) :
|
|
204
|
-
|
|
205
|
-
d("div",
|
|
206
|
-
|
|
204
|
+
])) : $("", !0),
|
|
205
|
+
me(d("div", Qe, [
|
|
206
|
+
d("div", qe, [
|
|
207
|
+
c(e.$slots, "editor", u(f(l.value)), void 0, !0)
|
|
207
208
|
])
|
|
208
209
|
], 512), [
|
|
209
|
-
[
|
|
210
|
+
[ge, e.configuration.isEditable]
|
|
210
211
|
]),
|
|
211
|
-
te.value ? (
|
|
212
|
+
te.value ? (b(), y(P, { key: 1 }, [
|
|
212
213
|
d("section", {
|
|
213
214
|
"aria-label": `Open API Documentation for ${(r = e.parsedSpec.info) == null ? void 0 : r.title}`,
|
|
214
215
|
class: "references-rendered"
|
|
215
216
|
}, [
|
|
216
|
-
p(s(
|
|
217
|
-
baseServerURL: e.configuration.baseServerURL,
|
|
217
|
+
p(s(Ue), {
|
|
218
218
|
layout: e.configuration.layout,
|
|
219
|
-
parsedSpec: e.parsedSpec
|
|
220
|
-
servers: e.configuration.servers
|
|
219
|
+
parsedSpec: e.parsedSpec
|
|
221
220
|
}, Se({
|
|
222
|
-
start:
|
|
223
|
-
|
|
221
|
+
start: m(() => [
|
|
222
|
+
c(e.$slots, "content-start", u(f(l.value)), void 0, !0)
|
|
224
223
|
]),
|
|
225
|
-
end:
|
|
226
|
-
|
|
224
|
+
end: m(() => [
|
|
225
|
+
c(e.$slots, "content-end", u(f(l.value)), void 0, !0)
|
|
227
226
|
]),
|
|
228
227
|
_: 2
|
|
229
228
|
}, [
|
|
230
229
|
(a = e.configuration) != null && a.isEditable ? {
|
|
231
230
|
name: "empty-state",
|
|
232
|
-
fn:
|
|
231
|
+
fn: m(() => {
|
|
233
232
|
var n;
|
|
234
233
|
return [
|
|
235
|
-
p(
|
|
234
|
+
p(Me, {
|
|
236
235
|
theme: ((n = e.configuration) == null ? void 0 : n.theme) || "default",
|
|
237
236
|
onChangeTheme: t[0] || (t[0] = (i) => e.$emit("changeTheme", i)),
|
|
238
237
|
onLinkSwaggerFile: t[1] || (t[1] = (i) => e.$emit("linkSwaggerFile")),
|
|
@@ -243,19 +242,19 @@ const Ve = ["innerHTML"], We = { class: "references-header" }, Ge = {
|
|
|
243
242
|
}),
|
|
244
243
|
key: "0"
|
|
245
244
|
} : void 0
|
|
246
|
-
]), 1032, ["
|
|
247
|
-
], 8,
|
|
248
|
-
e.$slots.footer ? (
|
|
249
|
-
|
|
250
|
-
])) :
|
|
251
|
-
], 64)) :
|
|
252
|
-
p(s(
|
|
245
|
+
]), 1032, ["layout", "parsedSpec"])
|
|
246
|
+
], 8, Je),
|
|
247
|
+
e.$slots.footer ? (b(), y("div", Xe, [
|
|
248
|
+
c(e.$slots, "footer", u(f(l.value)), void 0, !0)
|
|
249
|
+
])) : $("", !0)
|
|
250
|
+
], 64)) : $("", !0),
|
|
251
|
+
p(s(Ne), { configuration: e.configuration }, null, 8, ["configuration"])
|
|
253
252
|
], 38),
|
|
254
|
-
p(s(
|
|
253
|
+
p(s(Ae))
|
|
255
254
|
], 64);
|
|
256
255
|
};
|
|
257
256
|
}
|
|
258
257
|
});
|
|
259
258
|
export {
|
|
260
|
-
|
|
259
|
+
ht as default
|
|
261
260
|
};
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Spec } from '@scalar/types/legacy';
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
parsedSpec: Spec;
|
|
4
4
|
layout?: 'modern' | 'classic';
|
|
5
|
-
baseServerURL?: string;
|
|
6
|
-
servers?: Server[];
|
|
7
5
|
};
|
|
8
6
|
declare function __VLS_template(): {
|
|
9
7
|
attrs: Partial<{}>;
|
|
@@ -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":"AAgOA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAchD,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,IAAI,CAAA;IAChB,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;CAC9B,CAAC;AAuBJ,iBAAS,cAAc;WAqNT,OAAO,IAA6B;;uBAVvB,GAAG;+BACM,GAAG;qBACb,GAAG;;;;EAa5B;AAwBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;YA3QR,QAAQ,GAAG,SAAS;6EAkR/B,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,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 _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
5
|
+
const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-2338e284"]]);
|
|
6
6
|
export {
|
|
7
7
|
_ as default
|
|
8
8
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useActiveEntities as
|
|
3
|
-
import { RequestAuth as
|
|
4
|
-
import { ScalarErrorBoundary as
|
|
5
|
-
import
|
|
1
|
+
import { defineComponent as B, computed as E, openBlock as t, createElementBlock as d, Fragment as c, createStaticVNode as N, createElementVNode as p, renderSlot as m, createVNode as l, unref as s, createBlock as r, withCtx as k, normalizeClass as V, createCommentVNode as n, renderList as U } from "vue";
|
|
2
|
+
import { useActiveEntities as L } from "@scalar/api-client/store";
|
|
3
|
+
import { RequestAuth as q } from "@scalar/api-client/views/Request/RequestSection/RequestAuth";
|
|
4
|
+
import { ScalarErrorBoundary as z } from "@scalar/components";
|
|
5
|
+
import F from "./Lazy/Loading.vue.js";
|
|
6
6
|
/* empty css */
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
7
|
+
import G from "./Introduction/Introduction.vue.js";
|
|
8
|
+
import I from "../../features/BaseUrl/BaseUrl.vue.js";
|
|
9
|
+
import R from "./ClientLibraries/ClientLibraries.vue.js";
|
|
10
10
|
import g from "./Tag/TagList.vue.js";
|
|
11
11
|
import W from "../../features/Operation/Webhooks.vue.js";
|
|
12
12
|
import j from "./Models/ModelsAccordion.vue.js";
|
|
@@ -14,55 +14,53 @@ import D from "./Models/Models.vue.js";
|
|
|
14
14
|
import { useSidebar as H } from "../../hooks/useSidebar.js";
|
|
15
15
|
import { hasModels as J } from "../../helpers/hasModels.js";
|
|
16
16
|
import { getModels as b } from "../../helpers/getModels.js";
|
|
17
|
-
const K = { class: "narrow-references-container" }, O = {
|
|
17
|
+
const K = { class: "narrow-references-container" }, O = {
|
|
18
|
+
key: 0,
|
|
19
|
+
class: "scalar-client introduction-card-item [--scalar-address-bar-height:0px] divide-y text-sm"
|
|
20
|
+
}, P = { class: "scalar-client introduction-card-item" }, ce = /* @__PURE__ */ B({
|
|
18
21
|
__name: "Content",
|
|
19
22
|
props: {
|
|
20
23
|
parsedSpec: {},
|
|
21
|
-
layout: { default: "modern" }
|
|
22
|
-
baseServerURL: {},
|
|
23
|
-
servers: {}
|
|
24
|
+
layout: { default: "modern" }
|
|
24
25
|
},
|
|
25
26
|
setup(C) {
|
|
26
|
-
const
|
|
27
|
-
() =>
|
|
27
|
+
const w = C, { hideModels: $ } = H(), { activeCollection: u } = L(), M = E(
|
|
28
|
+
() => w.layout === "classic" ? "after" : "aside"
|
|
28
29
|
);
|
|
29
|
-
return (e,
|
|
30
|
-
var
|
|
31
|
-
return
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
30
|
+
return (e, f) => {
|
|
31
|
+
var v, S, y, h;
|
|
32
|
+
return t(), d(c, null, [
|
|
33
|
+
f[0] || (f[0] = N('<div class="section-flare" data-v-2338e284><div class="section-flare-item" data-v-2338e284></div><div class="section-flare-item" data-v-2338e284></div><div class="section-flare-item" data-v-2338e284></div><div class="section-flare-item" data-v-2338e284></div><div class="section-flare-item" data-v-2338e284></div><div class="section-flare-item" data-v-2338e284></div><div class="section-flare-item" data-v-2338e284></div><div class="section-flare-item" data-v-2338e284></div></div>', 1)),
|
|
34
|
+
p("div", K, [
|
|
35
|
+
m(e.$slots, "start", {}, void 0, !0),
|
|
36
|
+
l(s(F), {
|
|
36
37
|
layout: e.layout,
|
|
37
38
|
parsedSpec: e.parsedSpec
|
|
38
39
|
}, null, 8, ["layout", "parsedSpec"]),
|
|
39
|
-
(
|
|
40
|
+
(S = (v = e.parsedSpec) == null ? void 0 : v.info) != null && S.title || (h = (y = e.parsedSpec) == null ? void 0 : y.info) != null && h.description ? (t(), r(s(G), {
|
|
40
41
|
key: 0,
|
|
41
42
|
info: e.parsedSpec.info,
|
|
42
43
|
parsedSpec: e.parsedSpec
|
|
43
44
|
}, {
|
|
44
|
-
[
|
|
45
|
-
|
|
45
|
+
[M.value]: k(() => [
|
|
46
|
+
l(s(z), null, {
|
|
46
47
|
default: k(() => {
|
|
47
|
-
var
|
|
48
|
+
var o, a, i;
|
|
48
49
|
return [
|
|
49
|
-
|
|
50
|
-
class:
|
|
50
|
+
p("div", {
|
|
51
|
+
class: V(["introduction-card", { "introduction-card-row": e.layout === "classic" }])
|
|
51
52
|
}, [
|
|
52
|
-
o
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}, null, 8, ["defaultServerUrl", "servers", "specification"]),
|
|
58
|
-
c("div", O, [
|
|
59
|
-
o(s(R), {
|
|
53
|
+
(a = (o = s(u)) == null ? void 0 : o.servers) != null && a.length ? (t(), d("div", O, [
|
|
54
|
+
l(s(I))
|
|
55
|
+
])) : n("", !0),
|
|
56
|
+
p("div", P, [
|
|
57
|
+
l(s(q), {
|
|
60
58
|
layout: "reference",
|
|
61
|
-
selectedSecuritySchemeUids: ((
|
|
59
|
+
selectedSecuritySchemeUids: ((i = s(u)) == null ? void 0 : i.selectedSecuritySchemeUids) ?? [],
|
|
62
60
|
title: "Authentication"
|
|
63
61
|
}, null, 8, ["selectedSecuritySchemeUids"])
|
|
64
62
|
]),
|
|
65
|
-
|
|
63
|
+
l(s(R), { class: "introduction-card-item" })
|
|
66
64
|
], 2)
|
|
67
65
|
];
|
|
68
66
|
}),
|
|
@@ -70,42 +68,42 @@ const K = { class: "narrow-references-container" }, O = { class: "scalar-client
|
|
|
70
68
|
})
|
|
71
69
|
]),
|
|
72
70
|
_: 2
|
|
73
|
-
}, 1032, ["info", "parsedSpec"])) :
|
|
74
|
-
e.parsedSpec.tags ? (
|
|
75
|
-
e.parsedSpec["x-tagGroups"] ? (
|
|
76
|
-
key:
|
|
71
|
+
}, 1032, ["info", "parsedSpec"])) : m(e.$slots, "empty-state", { key: 1 }, void 0, !0),
|
|
72
|
+
e.parsedSpec.tags ? (t(), d(c, { key: 2 }, [
|
|
73
|
+
e.parsedSpec["x-tagGroups"] ? (t(!0), d(c, { key: 0 }, U(e.parsedSpec["x-tagGroups"], (o) => (t(), r(s(g), {
|
|
74
|
+
key: o.name,
|
|
77
75
|
layout: e.layout,
|
|
78
76
|
spec: e.parsedSpec,
|
|
79
|
-
tags:
|
|
80
|
-
var
|
|
81
|
-
return (
|
|
82
|
-
}).filter((
|
|
83
|
-
}, null, 8, ["layout", "spec", "tags"]))), 128)) : (
|
|
77
|
+
tags: o.tags.map((a) => {
|
|
78
|
+
var i;
|
|
79
|
+
return (i = e.parsedSpec.tags) == null ? void 0 : i.find((A) => A.name === a);
|
|
80
|
+
}).filter((a) => !!a)
|
|
81
|
+
}, null, 8, ["layout", "spec", "tags"]))), 128)) : (t(), r(s(g), {
|
|
84
82
|
key: 1,
|
|
85
83
|
layout: e.layout,
|
|
86
84
|
spec: e.parsedSpec,
|
|
87
85
|
tags: e.parsedSpec.tags
|
|
88
86
|
}, null, 8, ["layout", "spec", "tags"]))
|
|
89
|
-
], 64)) :
|
|
90
|
-
e.parsedSpec.webhooks ? (
|
|
87
|
+
], 64)) : n("", !0),
|
|
88
|
+
e.parsedSpec.webhooks ? (t(), r(s(W), {
|
|
91
89
|
key: 3,
|
|
92
90
|
webhooks: e.parsedSpec.webhooks
|
|
93
|
-
}, null, 8, ["webhooks"])) :
|
|
94
|
-
s(J)(e.parsedSpec) && !s(
|
|
95
|
-
e.layout === "classic" ? (
|
|
91
|
+
}, null, 8, ["webhooks"])) : n("", !0),
|
|
92
|
+
s(J)(e.parsedSpec) && !s($) ? (t(), d(c, { key: 4 }, [
|
|
93
|
+
e.layout === "classic" ? (t(), r(s(j), {
|
|
96
94
|
key: 0,
|
|
97
95
|
schemas: s(b)(e.parsedSpec)
|
|
98
|
-
}, null, 8, ["schemas"])) : (
|
|
96
|
+
}, null, 8, ["schemas"])) : (t(), r(s(D), {
|
|
99
97
|
key: 1,
|
|
100
98
|
schemas: s(b)(e.parsedSpec)
|
|
101
99
|
}, null, 8, ["schemas"]))
|
|
102
|
-
], 64)) :
|
|
103
|
-
|
|
100
|
+
], 64)) : n("", !0),
|
|
101
|
+
m(e.$slots, "end", {}, void 0, !0)
|
|
104
102
|
])
|
|
105
103
|
], 64);
|
|
106
104
|
};
|
|
107
105
|
}
|
|
108
106
|
});
|
|
109
107
|
export {
|
|
110
|
-
|
|
108
|
+
ce as default
|
|
111
109
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiClientModal.vue.d.ts","sourceRoot":"","sources":["../../../src/features/ApiClientModal/ApiClientModal.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ApiClientModal.vue.d.ts","sourceRoot":"","sources":["../../../src/features/ApiClientModal/ApiClientModal.vue"],"names":[],"mappings":"AAqDA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AASlE,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,mBAAmB,CAAA;CACnC,CAAC;;AA2FF,wBAOG"}
|