@scalar/api-reference 1.25.48 → 1.25.50
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 +39 -0
- package/dist/browser/standalone.js +13734 -13778
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +1 -1
- package/dist/components/ApiReferenceLayout.vue2.js +136 -137
- package/dist/components/Content/Operation/TestRequestButton.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/TestRequestButton.vue.js +2 -2
- package/dist/components/Content/Operation/TestRequestButton.vue2.js +18 -17
- package/dist/components/DarkModeToggle/DarkModeToggle.vue.d.ts.map +1 -1
- package/dist/components/DarkModeToggle/DarkModeToggle.vue.js +1 -1
- package/dist/components/DarkModeToggle/DarkModeToggle.vue2.js +12 -11
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +2 -2
- package/dist/components/Sidebar/Sidebar.vue2.js +146 -142
- package/dist/components/Sidebar/SidebarElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarElement.vue.js +1 -1
- package/dist/components/Sidebar/SidebarElement.vue2.js +37 -35
- package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts.map +1 -1
- package/dist/{components → features/ApiClientModal}/ApiClientModal.vue.d.ts +3 -3
- package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -0
- package/dist/features/ApiClientModal/ApiClientModal.vue.js +49 -0
- package/dist/features/ApiClientModal/index.d.ts +3 -0
- package/dist/features/ApiClientModal/index.d.ts.map +1 -0
- package/dist/features/ApiClientModal/useApiClient.d.ts +7734 -0
- package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -0
- package/dist/features/ApiClientModal/useApiClient.js +23 -0
- package/dist/features/BaseUrl/ServerUrlSelect.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerUrlSelect.vue.js +2 -2
- package/dist/features/BaseUrl/ServerUrlSelect.vue2.js +10 -7
- package/dist/features/Search/SearchButton.vue.d.ts.map +1 -1
- package/dist/features/Search/SearchButton.vue.js +2 -2
- package/dist/features/Search/SearchButton.vue2.js +16 -20
- package/dist/helpers/getExampleCode.js +11 -11
- package/dist/helpers/index.d.ts +0 -1
- package/dist/helpers/index.d.ts.map +1 -1
- package/dist/hooks/useSidebar.d.ts.map +1 -1
- package/dist/hooks/useSidebar.js +148 -155
- package/dist/index.js +43 -45
- package/dist/legacy/components/SecurityScheme.vue.d.ts.map +1 -1
- package/dist/legacy/components/SecurityScheme.vue.js +2 -2
- package/dist/legacy/components/SecurityScheme.vue2.js +111 -115
- package/dist/legacy/components/SecuritySchemeSelector.vue.d.ts.map +1 -1
- package/dist/legacy/components/SecuritySchemeSelector.vue.js +1 -1
- package/dist/legacy/components/SecuritySchemeSelector.vue2.js +46 -36
- package/dist/legacy/helpers/index.d.ts +1 -1
- package/dist/legacy/stores/index.d.ts +1 -2
- package/dist/legacy/stores/index.d.ts.map +1 -1
- package/dist/legacy/stores/useOpenApiStore.js +4 -18
- package/dist/style.css +1 -1
- package/package.json +9 -9
- package/dist/components/ApiClientModal.vue.d.ts.map +0 -1
- package/dist/components/ApiClientModal.vue.js +0 -64
- package/dist/components/api-client-bus.d.ts +0 -22
- package/dist/components/api-client-bus.d.ts.map +0 -1
- package/dist/components/api-client-bus.js +0 -6
- package/dist/helpers/openClientFor.d.ts +0 -7
- package/dist/helpers/openClientFor.d.ts.map +0 -1
- package/dist/helpers/openClientFor.js +0 -19
- package/dist/legacy/helpers/createPlaceholderRequest.js +0 -14
- package/dist/legacy/stores/useApiClientStore.d.ts +0 -18
- package/dist/legacy/stores/useApiClientStore.d.ts.map +0 -1
- package/dist/legacy/stores/useApiClientStore.js +0 -32
- package/dist/legacy/stores/useRequestStore.js +0 -33
- /package/dist/{components → features/ApiClientModal}/ApiClientModal.vue2.js +0 -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":"AAokBA,OAAO,EACL,KAAK,OAAO,EAGb,MAAM,gBAAgB,CAAA;AA6BvB,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,UAAU,CAAA;AAoPjB,iBAAS,cAAc;oBAzNe,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;EA4gB/D;AACD,QAAA,MAAM,eAAe;;YAOqB,OAAO;eAAS,MAAM;;;;;;;;YAAtB,OAAO;eAAS,MAAM;;;;;;kFAM9D,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"}
|
|
@@ -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-e75c5db5"]]);
|
|
6
6
|
export {
|
|
7
7
|
a as default
|
|
8
8
|
};
|
|
@@ -1,24 +1,27 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { provideUseId as
|
|
3
|
-
import { addScalarClassesToHeadless as
|
|
4
|
-
import { defaultStateFactory as
|
|
5
|
-
import { hasObtrusiveScrollbars as
|
|
6
|
-
import { useToasts as
|
|
7
|
-
import { useMediaQuery as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import { useSidebar as
|
|
16
|
-
import { useNavState as
|
|
17
|
-
import { sleep as
|
|
18
|
-
const
|
|
1
|
+
import { defineComponent as Z, ref as y, computed as h, onBeforeMount as D, onMounted as x, onUnmounted as ee, watch as oe, onServerPrefetch as te, useSSRContext as re, getCurrentInstance as ae, provide as g, openBlock as b, createElementBlock as w, Fragment as M, createElementVNode as l, normalizeClass as ne, unref as d, normalizeStyle as ie, renderSlot as u, normalizeProps as c, guardReactiveProps as p, createVNode as m, withCtx as S, createCommentVNode as T, withDirectives as se, vShow as le, createSlots as de } from "vue";
|
|
2
|
+
import { provideUseId as ue } from "@headlessui/vue";
|
|
3
|
+
import { addScalarClassesToHeadless as ce } from "@scalar/components";
|
|
4
|
+
import { defaultStateFactory as P } from "@scalar/oas-utils/helpers";
|
|
5
|
+
import { hasObtrusiveScrollbars as pe, getThemeStyles as fe } from "@scalar/themes";
|
|
6
|
+
import { useToasts as ge, ScalarToasts as me } from "@scalar/use-toasts";
|
|
7
|
+
import { useMediaQuery as Se, useResizeObserver as ve, useDebounceFn as he } from "@vueuse/core";
|
|
8
|
+
import be from "./GettingStarted.vue.js";
|
|
9
|
+
import { downloadSpecBus as k, downloadSpecFile as we } from "../helpers/specDownloads.js";
|
|
10
|
+
import { GLOBAL_SECURITY_SYMBOL as ye, HIDE_DOWNLOAD_BUTTON_SYMBOL as Te, HIDE_TEST_REQUEST_BUTTON_SYMBOL as Re, OPENAPI_DOCUMENT_URL_SYMBOL as Oe, INTEGRATION_SYMBOL as $e } from "../helpers/provideSymbols.js";
|
|
11
|
+
import { useDeprecationWarnings as Ce } from "../hooks/useDeprecationWarnings.js";
|
|
12
|
+
import Ee from "./Sidebar/Sidebar.vue.js";
|
|
13
|
+
import Ie from "./Content/Content.vue.js";
|
|
14
|
+
import Le from "../features/ApiClientModal/ApiClientModal.vue.js";
|
|
15
|
+
import { useSidebar as Be } from "../hooks/useSidebar.js";
|
|
16
|
+
import { useNavState as Ue } from "../hooks/useNavState.js";
|
|
17
|
+
import { sleep as De } from "../helpers/sleep.js";
|
|
18
|
+
const Me = ["innerHTML"], Pe = { class: "references-header" }, ke = {
|
|
19
|
+
key: 0,
|
|
20
|
+
class: "references-navigation t-doc__sidebar"
|
|
21
|
+
}, Ae = { class: "references-navigation-list" }, Fe = { class: "references-editor" }, Ne = { class: "references-editor-textarea" }, He = ["aria-label"], Ye = {
|
|
19
22
|
key: 0,
|
|
20
23
|
class: "references-footer"
|
|
21
|
-
},
|
|
24
|
+
}, ao = /* @__PURE__ */ Z({
|
|
22
25
|
inheritAttrs: !1,
|
|
23
26
|
__name: "ApiReferenceLayout",
|
|
24
27
|
props: {
|
|
@@ -27,210 +30,206 @@ const ke = ["innerHTML"], Ae = { class: "references-header" }, Fe = ["aria-label
|
|
|
27
30
|
rawSpec: {}
|
|
28
31
|
},
|
|
29
32
|
emits: ["changeTheme", "updateContent", "loadSwaggerFile", "linkSwaggerFile", "toggleDarkMode"],
|
|
30
|
-
setup(
|
|
31
|
-
const t =
|
|
32
|
-
|
|
33
|
-
const
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
setup(A) {
|
|
34
|
+
const t = A, { initializeToasts: F, toast: N } = ge();
|
|
35
|
+
F((e) => N(e));
|
|
36
|
+
const H = Se("(min-width: 1150px)"), Y = y("100dvh"), f = y(null);
|
|
37
|
+
ve(f, (e) => {
|
|
38
|
+
Y.value = e[0].contentRect.height + "px";
|
|
36
39
|
});
|
|
37
|
-
const
|
|
38
|
-
breadcrumb:
|
|
39
|
-
collapsedSidebarItems:
|
|
40
|
-
isSidebarOpen:
|
|
41
|
-
setCollapsedSidebarItem:
|
|
42
|
-
hideModels:
|
|
43
|
-
defaultOpenAllTags:
|
|
44
|
-
setParsedSpec:
|
|
45
|
-
scrollToOperation:
|
|
46
|
-
} =
|
|
47
|
-
getPathRoutingId:
|
|
48
|
-
getSectionId:
|
|
49
|
-
getTagId:
|
|
50
|
-
hash:
|
|
51
|
-
isIntersectionEnabled:
|
|
52
|
-
pathRouting:
|
|
53
|
-
updateHash:
|
|
54
|
-
} =
|
|
55
|
-
|
|
56
|
-
const
|
|
40
|
+
const z = h(pe), {
|
|
41
|
+
breadcrumb: G,
|
|
42
|
+
collapsedSidebarItems: v,
|
|
43
|
+
isSidebarOpen: V,
|
|
44
|
+
setCollapsedSidebarItem: R,
|
|
45
|
+
hideModels: Q,
|
|
46
|
+
defaultOpenAllTags: W,
|
|
47
|
+
setParsedSpec: _,
|
|
48
|
+
scrollToOperation: j
|
|
49
|
+
} = Be(), {
|
|
50
|
+
getPathRoutingId: O,
|
|
51
|
+
getSectionId: q,
|
|
52
|
+
getTagId: K,
|
|
53
|
+
hash: $,
|
|
54
|
+
isIntersectionEnabled: C,
|
|
55
|
+
pathRouting: E,
|
|
56
|
+
updateHash: I
|
|
57
|
+
} = Ue();
|
|
58
|
+
E.value = t.configuration.pathRouting, D(() => I());
|
|
59
|
+
const L = async (e) => {
|
|
57
60
|
var o;
|
|
58
|
-
|
|
59
|
-
},
|
|
60
|
-
|
|
61
|
+
C.value = !1, I(), e ? j(e) : (o = f.value) == null || o.scrollTo(0, 0), await De(100), C.value = !0;
|
|
62
|
+
}, B = y(0);
|
|
63
|
+
D(() => ce()), x(() => {
|
|
61
64
|
var r, a, n;
|
|
62
|
-
history.scrollRestoration = "manual",
|
|
63
|
-
|
|
65
|
+
history.scrollRestoration = "manual", k.on(({ specTitle: i }) => {
|
|
66
|
+
we(t.rawSpec, i);
|
|
64
67
|
});
|
|
65
68
|
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();
|
|
66
69
|
if (e && o) {
|
|
67
|
-
const
|
|
68
|
-
|
|
70
|
+
const i = o.top - e.top;
|
|
71
|
+
B.value = i < 2 ? 0 : i;
|
|
69
72
|
}
|
|
70
|
-
window.onhashchange = () =>
|
|
73
|
+
window.onhashchange = () => L(decodeURIComponent(window.location.hash.replace(/^#/, ""))), window.onpopstate = () => E.value && L(O(window.location.pathname));
|
|
71
74
|
});
|
|
72
|
-
const
|
|
73
|
-
() =>
|
|
74
|
-
),
|
|
75
|
+
const J = h(
|
|
76
|
+
() => H.value || !t.configuration.isEditable
|
|
77
|
+
), U = he((e) => {
|
|
75
78
|
if ((e.target.scrollTop ?? 0) < 50) {
|
|
76
79
|
const r = t.configuration.pathRouting ? t.configuration.pathRouting.basePath : window.location.pathname;
|
|
77
|
-
window.history.replaceState({}, "", r + window.location.search),
|
|
80
|
+
window.history.replaceState({}, "", r + window.location.search), $.value = "";
|
|
78
81
|
}
|
|
79
|
-
}),
|
|
80
|
-
breadcrumb:
|
|
82
|
+
}), s = h(() => ({
|
|
83
|
+
breadcrumb: G.value,
|
|
81
84
|
spec: t.parsedSpec
|
|
82
85
|
}));
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}),
|
|
86
|
+
ee(() => {
|
|
87
|
+
k.reset();
|
|
88
|
+
}), oe(() => t.parsedSpec, _, { deep: !0 }), te(() => {
|
|
86
89
|
var o, r;
|
|
87
|
-
const e =
|
|
88
|
-
if (e && (e.payload || (e.payload = { data:
|
|
89
|
-
const a =
|
|
90
|
-
|
|
91
|
-
for (const n in
|
|
92
|
-
Object.hasOwn(
|
|
90
|
+
const e = re();
|
|
91
|
+
if (e && (e.payload || (e.payload = { data: P() }), (o = e.payload).data || (o.data = P()), t.configuration.pathRouting)) {
|
|
92
|
+
const a = O(e.url);
|
|
93
|
+
$.value = a, e.payload.data.hash = a;
|
|
94
|
+
for (const n in v)
|
|
95
|
+
Object.hasOwn(v, n) && delete v[n];
|
|
93
96
|
if (a)
|
|
94
|
-
|
|
97
|
+
R(q(a), !0);
|
|
95
98
|
else {
|
|
96
99
|
const n = (r = t.parsedSpec.tags) == null ? void 0 : r[0];
|
|
97
|
-
n &&
|
|
100
|
+
n && R(K(n), !0);
|
|
98
101
|
}
|
|
99
|
-
e.payload.data["useSidebarContent-collapsedSidebarItems"] =
|
|
102
|
+
e.payload.data["useSidebarContent-collapsedSidebarItems"] = v;
|
|
100
103
|
}
|
|
101
|
-
}),
|
|
104
|
+
}), ue(() => {
|
|
102
105
|
var a;
|
|
103
|
-
const e =
|
|
106
|
+
const e = ae(), o = "scalar-instance-id";
|
|
104
107
|
if (!e) return o;
|
|
105
108
|
let r = e.uid;
|
|
106
109
|
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}`;
|
|
107
|
-
}),
|
|
108
|
-
|
|
110
|
+
}), g(ye, () => t.parsedSpec.security), g(
|
|
111
|
+
Te,
|
|
109
112
|
() => t.configuration.hideDownloadButton
|
|
110
|
-
),
|
|
111
|
-
|
|
113
|
+
), g(
|
|
114
|
+
Re,
|
|
112
115
|
() => t.configuration.hideTestRequestButton
|
|
113
|
-
),
|
|
116
|
+
), g(Oe, () => {
|
|
114
117
|
var e;
|
|
115
118
|
return (e = t.configuration.spec) == null ? void 0 : e.url;
|
|
116
|
-
}),
|
|
117
|
-
|
|
119
|
+
}), g(
|
|
120
|
+
$e,
|
|
118
121
|
() => t.configuration._integration !== null ? t.configuration._integration : "vue"
|
|
119
|
-
),
|
|
120
|
-
const
|
|
122
|
+
), Q.value = t.configuration.hideModels ?? !1, W.value = t.configuration.defaultOpenAllTags ?? !1, Ce(t.configuration);
|
|
123
|
+
const X = h(
|
|
121
124
|
() => `<style>
|
|
122
|
-
${
|
|
125
|
+
${fe(t.configuration.theme, {
|
|
123
126
|
fonts: t.configuration.withDefaultFonts
|
|
124
127
|
})}</style>`
|
|
125
128
|
);
|
|
126
129
|
return (e, o) => {
|
|
127
|
-
var r, a
|
|
128
|
-
return
|
|
129
|
-
l("div", { innerHTML:
|
|
130
|
+
var r, a;
|
|
131
|
+
return b(), w(M, null, [
|
|
132
|
+
l("div", { innerHTML: X.value }, null, 8, Me),
|
|
130
133
|
l("div", {
|
|
131
134
|
ref_key: "documentEl",
|
|
132
135
|
ref: f,
|
|
133
|
-
class:
|
|
136
|
+
class: ne(["scalar-app scalar-api-reference references-layout", [
|
|
134
137
|
{
|
|
135
|
-
"scalar-scrollbars-obtrusive":
|
|
138
|
+
"scalar-scrollbars-obtrusive": z.value,
|
|
136
139
|
"references-editable": e.configuration.isEditable,
|
|
137
140
|
"references-sidebar": e.configuration.showSidebar,
|
|
138
|
-
"references-sidebar-mobile-open":
|
|
141
|
+
"references-sidebar-mobile-open": d(V),
|
|
139
142
|
"references-classic": e.configuration.layout === "classic"
|
|
140
143
|
},
|
|
141
144
|
e.$attrs.class
|
|
142
145
|
]]),
|
|
143
|
-
style:
|
|
144
|
-
"--scalar-y-offset": `var(--scalar-custom-header-height, ${
|
|
146
|
+
style: ie({
|
|
147
|
+
"--scalar-y-offset": `var(--scalar-custom-header-height, ${B.value}px)`
|
|
145
148
|
}),
|
|
146
149
|
onScrollPassive: o[4] || (o[4] = //@ts-ignore
|
|
147
|
-
(...
|
|
150
|
+
(...n) => d(U) && d(U)(...n))
|
|
148
151
|
}, [
|
|
149
|
-
l("div",
|
|
150
|
-
|
|
152
|
+
l("div", Pe, [
|
|
153
|
+
u(e.$slots, "header", c(p(s.value)), void 0, !0)
|
|
151
154
|
]),
|
|
152
|
-
e.configuration.showSidebar ? (
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
class: "references-navigation t-doc__sidebar"
|
|
156
|
-
}, [
|
|
157
|
-
l("div", Ne, [
|
|
158
|
-
S(p(Be), {
|
|
155
|
+
e.configuration.showSidebar ? (b(), w("aside", ke, [
|
|
156
|
+
l("div", Ae, [
|
|
157
|
+
m(d(Ee), {
|
|
159
158
|
operationsSorter: e.configuration.operationsSorter,
|
|
160
159
|
parsedSpec: e.parsedSpec,
|
|
161
160
|
tagsSorter: e.configuration.tagsSorter
|
|
162
161
|
}, {
|
|
163
|
-
"sidebar-start":
|
|
164
|
-
|
|
162
|
+
"sidebar-start": S(() => [
|
|
163
|
+
u(e.$slots, "sidebar-start", c(p(s.value)), void 0, !0)
|
|
165
164
|
]),
|
|
166
|
-
"sidebar-end":
|
|
167
|
-
|
|
165
|
+
"sidebar-end": S(() => [
|
|
166
|
+
u(e.$slots, "sidebar-end", c(p(s.value)), void 0, !0)
|
|
168
167
|
]),
|
|
169
168
|
_: 3
|
|
170
169
|
}, 8, ["operationsSorter", "parsedSpec", "tagsSorter"])
|
|
171
170
|
])
|
|
172
|
-
]
|
|
173
|
-
|
|
174
|
-
l("div",
|
|
175
|
-
|
|
171
|
+
])) : T("", !0),
|
|
172
|
+
se(l("div", Fe, [
|
|
173
|
+
l("div", Ne, [
|
|
174
|
+
u(e.$slots, "editor", c(p(s.value)), void 0, !0)
|
|
176
175
|
])
|
|
177
176
|
], 512), [
|
|
178
|
-
[
|
|
177
|
+
[le, e.configuration.isEditable]
|
|
179
178
|
]),
|
|
180
|
-
|
|
179
|
+
J.value ? (b(), w(M, { key: 1 }, [
|
|
181
180
|
l("section", {
|
|
182
|
-
"aria-label": `Open API Documentation for ${(
|
|
181
|
+
"aria-label": `Open API Documentation for ${(r = e.parsedSpec.info) == null ? void 0 : r.title}`,
|
|
183
182
|
class: "references-rendered"
|
|
184
183
|
}, [
|
|
185
|
-
|
|
184
|
+
m(d(Ie), {
|
|
186
185
|
baseServerURL: e.configuration.baseServerURL,
|
|
187
186
|
layout: e.configuration.layout === "classic" ? "accordion" : "default",
|
|
188
187
|
parsedSpec: e.parsedSpec,
|
|
189
188
|
proxy: e.configuration.proxy,
|
|
190
189
|
servers: e.configuration.servers
|
|
191
|
-
},
|
|
192
|
-
start:
|
|
193
|
-
|
|
190
|
+
}, de({
|
|
191
|
+
start: S(() => [
|
|
192
|
+
u(e.$slots, "content-start", c(p(s.value)), void 0, !0)
|
|
194
193
|
]),
|
|
195
|
-
end:
|
|
196
|
-
|
|
194
|
+
end: S(() => [
|
|
195
|
+
u(e.$slots, "content-end", c(p(s.value)), void 0, !0)
|
|
197
196
|
]),
|
|
198
197
|
_: 2
|
|
199
198
|
}, [
|
|
200
|
-
(
|
|
199
|
+
(a = e.configuration) != null && a.isEditable ? {
|
|
201
200
|
name: "empty-state",
|
|
202
|
-
fn:
|
|
203
|
-
var
|
|
201
|
+
fn: S(() => {
|
|
202
|
+
var n;
|
|
204
203
|
return [
|
|
205
|
-
|
|
206
|
-
theme: ((
|
|
207
|
-
onChangeTheme: o[0] || (o[0] = (
|
|
208
|
-
onLinkSwaggerFile: o[1] || (o[1] = (
|
|
209
|
-
onLoadSwaggerFile: o[2] || (o[2] = (
|
|
210
|
-
onUpdateContent: o[3] || (o[3] = (
|
|
204
|
+
m(be, {
|
|
205
|
+
theme: ((n = e.configuration) == null ? void 0 : n.theme) || "default",
|
|
206
|
+
onChangeTheme: o[0] || (o[0] = (i) => e.$emit("changeTheme", i)),
|
|
207
|
+
onLinkSwaggerFile: o[1] || (o[1] = (i) => e.$emit("linkSwaggerFile")),
|
|
208
|
+
onLoadSwaggerFile: o[2] || (o[2] = (i) => e.$emit("loadSwaggerFile")),
|
|
209
|
+
onUpdateContent: o[3] || (o[3] = (i) => e.$emit("updateContent", i))
|
|
211
210
|
}, null, 8, ["theme"])
|
|
212
211
|
];
|
|
213
212
|
}),
|
|
214
213
|
key: "0"
|
|
215
214
|
} : void 0
|
|
216
215
|
]), 1032, ["baseServerURL", "layout", "parsedSpec", "proxy", "servers"])
|
|
217
|
-
], 8,
|
|
218
|
-
e.$slots.footer ? (
|
|
219
|
-
|
|
220
|
-
])) :
|
|
221
|
-
], 64)) :
|
|
222
|
-
|
|
223
|
-
|
|
216
|
+
], 8, He),
|
|
217
|
+
e.$slots.footer ? (b(), w("div", Ye, [
|
|
218
|
+
u(e.$slots, "footer", c(p(s.value)), void 0, !0)
|
|
219
|
+
])) : T("", !0)
|
|
220
|
+
], 64)) : T("", !0),
|
|
221
|
+
m(d(Le), {
|
|
222
|
+
authentication: e.configuration.authentication,
|
|
224
223
|
proxyUrl: e.configuration.proxy,
|
|
225
224
|
servers: e.configuration.servers,
|
|
226
225
|
spec: e.configuration.spec
|
|
227
|
-
}, null, 8, ["
|
|
226
|
+
}, null, 8, ["authentication", "proxyUrl", "servers", "spec"])
|
|
228
227
|
], 38),
|
|
229
|
-
|
|
228
|
+
m(d(me))
|
|
230
229
|
], 64);
|
|
231
230
|
};
|
|
232
231
|
}
|
|
233
232
|
});
|
|
234
233
|
export {
|
|
235
|
-
|
|
234
|
+
ao as default
|
|
236
235
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TestRequestButton.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/TestRequestButton.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TestRequestButton.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/TestRequestButton.vue"],"names":[],"mappings":"AAuEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;;eASnD,oBAAoB;;eAApB,oBAAoB;;AAiFjC,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./TestRequestButton.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const s = /* @__PURE__ */ o(t, [["__scopeId", "data-v-ee2f87fc"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
s as default
|
|
7
7
|
};
|
|
@@ -1,39 +1,40 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarIcon as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as m, inject as u, unref as o, openBlock as p, createElementBlock as s, withModifiers as l, createVNode as c, createElementVNode as d, Fragment as f, createTextVNode as T } from "vue";
|
|
2
|
+
import { ScalarIcon as h } from "@scalar/components";
|
|
3
|
+
import { HIDE_TEST_REQUEST_BUTTON_SYMBOL as _ } from "../../../helpers/provideSymbols.js";
|
|
4
|
+
import { useApiClient as B } from "../../../features/ApiClientModal/useApiClient.js";
|
|
5
|
+
const E = ["method"], S = /* @__PURE__ */ m({
|
|
6
6
|
__name: "TestRequestButton",
|
|
7
7
|
props: {
|
|
8
8
|
operation: {}
|
|
9
9
|
},
|
|
10
|
-
setup(
|
|
11
|
-
const i = a(
|
|
10
|
+
setup(b) {
|
|
11
|
+
const i = u(_), { client: a } = B();
|
|
12
12
|
return (t, e) => {
|
|
13
13
|
var n;
|
|
14
|
-
return ((n = o(i)) == null ? void 0 : n()) !== !0 ? (
|
|
14
|
+
return ((n = o(i)) == null ? void 0 : n()) !== !0 ? (p(), s("button", {
|
|
15
15
|
key: 0,
|
|
16
16
|
class: "show-api-client-button",
|
|
17
17
|
method: t.operation.httpVerb,
|
|
18
18
|
type: "button",
|
|
19
|
-
onClick: e[0] || (e[0] =
|
|
20
|
-
|
|
19
|
+
onClick: e[0] || (e[0] = l((k) => {
|
|
20
|
+
var r;
|
|
21
|
+
return (r = o(a)) == null ? void 0 : r.open({
|
|
21
22
|
path: t.operation.path,
|
|
22
23
|
method: t.operation.httpVerb
|
|
23
|
-
}
|
|
24
|
-
}
|
|
24
|
+
});
|
|
25
|
+
}, ["stop"]))
|
|
25
26
|
}, [
|
|
26
|
-
|
|
27
|
+
c(o(h), {
|
|
27
28
|
icon: "Play",
|
|
28
29
|
size: "sm"
|
|
29
30
|
}),
|
|
30
|
-
e[1] || (e[1] =
|
|
31
|
-
], 8,
|
|
32
|
-
|
|
31
|
+
e[1] || (e[1] = d("span", null, "Test Request", -1))
|
|
32
|
+
], 8, E)) : (p(), s(f, { key: 1 }, [
|
|
33
|
+
T(" ")
|
|
33
34
|
], 64));
|
|
34
35
|
};
|
|
35
36
|
}
|
|
36
37
|
});
|
|
37
38
|
export {
|
|
38
|
-
|
|
39
|
+
S as default
|
|
39
40
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DarkModeToggle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DarkModeToggle/DarkModeToggle.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"DarkModeToggle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DarkModeToggle/DarkModeToggle.vue"],"names":[],"mappings":";gBAsFc,OAAO;;;;gBAAP,OAAO;;;;AAwFrB,wBASG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./DarkModeToggle.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-
|
|
4
|
+
const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-57bfeb25"]]);
|
|
5
5
|
export {
|
|
6
6
|
f as default
|
|
7
7
|
};
|
|
@@ -1,25 +1,26 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarIcon as
|
|
3
|
-
const i = { class: "darklight-reference" },
|
|
1
|
+
import { defineComponent as a, openBlock as o, createElementBlock as t, createElementVNode as r, createVNode as n, unref as l } from "vue";
|
|
2
|
+
import { ScalarIcon as d } from "@scalar/components";
|
|
3
|
+
const i = { class: "darklight-reference" }, k = { key: 0 }, p = { key: 1 }, M = /* @__PURE__ */ a({
|
|
4
4
|
__name: "DarkModeToggle",
|
|
5
5
|
props: {
|
|
6
6
|
isDarkMode: { type: Boolean }
|
|
7
7
|
},
|
|
8
8
|
emits: ["toggleDarkMode"],
|
|
9
|
-
setup(
|
|
10
|
-
return (
|
|
11
|
-
|
|
9
|
+
setup(m) {
|
|
10
|
+
return (s, e) => (o(), t("div", i, [
|
|
11
|
+
r("button", {
|
|
12
12
|
class: "darklight",
|
|
13
13
|
type: "button",
|
|
14
|
-
onClick: e[0] || (e[0] = (
|
|
14
|
+
onClick: e[0] || (e[0] = (g) => s.$emit("toggleDarkMode"))
|
|
15
15
|
}, [
|
|
16
|
-
|
|
16
|
+
n(l(d), {
|
|
17
17
|
icon: "LightDarkModeToggle",
|
|
18
18
|
size: "md"
|
|
19
19
|
}),
|
|
20
|
-
|
|
20
|
+
e[1] || (e[1] = r("div", { class: "sr-only" }, "Set to", -1)),
|
|
21
|
+
s.isDarkMode ? (o(), t("span", k, "Light Mode")) : (o(), t("span", p, "Dark Mode"))
|
|
21
22
|
]),
|
|
22
|
-
e[
|
|
23
|
+
e[2] || (e[2] = r("a", {
|
|
23
24
|
class: "darklight-reference-promo",
|
|
24
25
|
href: "https://www.scalar.com",
|
|
25
26
|
target: "_blank"
|
|
@@ -28,5 +29,5 @@ const i = { class: "darklight-reference" }, c = { key: 0 }, k = { key: 1 }, _ =
|
|
|
28
29
|
}
|
|
29
30
|
});
|
|
30
31
|
export {
|
|
31
|
-
|
|
32
|
+
M as default
|
|
32
33
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/Sidebar.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/Sidebar.vue"],"names":[],"mappings":"AAmOA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAIhD,OAAO,EAAE,KAAK,YAAY,EAA2B,MAAM,aAAa,CAAA;AAyExE,iBAAS,cAAc;6BA8Oc,GAAG;2BACJ,GAAG;EAuBtC;AACD,QAAA,MAAM,eAAe;gBAzUL,IAAI;;gBAAJ,IAAI;gHA+UlB,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"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Sidebar.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-37c6928e"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|