@scalar/api-reference 1.25.31 → 1.25.33
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 +49 -0
- package/dist/browser/standalone.js +10930 -10703
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/components/ApiClientModal.vue2.js +4 -0
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +1 -1
- package/dist/components/ApiReferenceLayout.vue2.js +85 -86
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +2 -2
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +11 -13
- package/dist/components/Content/Operation/Operation.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/Operation.vue.js +2 -2
- package/dist/components/Content/Operation/Operation.vue2.js +21 -18
- package/dist/components/Content/Operation/OperationAccordion.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/OperationAccordion.vue.js +2 -2
- package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts +6 -0
- package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue.js +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue2.js +123 -101
- package/dist/hooks/useReactiveSpec.d.ts.map +1 -1
- package/dist/hooks/useReactiveSpec.js +31 -26
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +14 -13
- package/dist/components/ApiClientModal.vue3.js +0 -5
|
@@ -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":"AAuFA,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;;AA2G3B,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 +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":"AA8jBA,OAAO,EACL,KAAK,OAAO,EAGb,MAAM,gBAAgB,CAAA;AA2BvB,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,UAAU,CAAA;AA0OjB,iBAAS,cAAc;oBA9Me,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;EA4f/D;AACD,QAAA,MAAM,eAAe;;YA7gBqB,OAAO;eAAS,MAAM;;;;;;;;YAAtB,OAAO;eAAS,MAAM;;;;;;UAohB9D,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 m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
5
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-ce34303a"]]);
|
|
6
6
|
export {
|
|
7
7
|
m as default
|
|
8
8
|
};
|
|
@@ -1,25 +1,24 @@
|
|
|
1
|
-
import { defineComponent as _, ref as w,
|
|
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
|
-
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
|
|
19
|
-
const Ue = ["innerHTML"], De = { class: "references-header" }, Me = {
|
|
1
|
+
import { defineComponent as _, ref as w, computed as v, onBeforeMount as D, onMounted as x, onUnmounted as ee, watch as oe, onServerPrefetch as te, useSSRContext as re, getCurrentInstance as ae, provide as h, openBlock as b, createElementBlock as y, Fragment as M, createElementVNode as l, normalizeClass as ne, unref as p, normalizeStyle as se, renderSlot as d, normalizeProps as c, guardReactiveProps as u, createVNode as g, withCtx as m, createCommentVNode as T, withDirectives as ie, vShow as le, createSlots as de } from "vue";
|
|
2
|
+
import { provideUseId as ce } from "@headlessui/vue";
|
|
3
|
+
import { addScalarClassesToHeadless as ue } from "@scalar/components";
|
|
4
|
+
import { defaultStateFactory as k } 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 "./ApiClientModal.vue.js";
|
|
9
|
+
import ye from "./GettingStarted.vue.js";
|
|
10
|
+
import { downloadSpecBus as P, downloadSpecFile as we } from "../helpers/specDownloads.js";
|
|
11
|
+
import { useDeprecationWarnings as Te } from "../hooks/useDeprecationWarnings.js";
|
|
12
|
+
import Re from "./Sidebar/Sidebar.vue.js";
|
|
13
|
+
import Ce from "./Content/Content.vue.js";
|
|
14
|
+
import { useSidebar as $e } from "../hooks/useSidebar.js";
|
|
15
|
+
import { GLOBAL_SECURITY_SYMBOL as Ee, HIDE_DOWNLOAD_BUTTON_SYMBOL as Oe, HIDE_TEST_REQUEST_BUTTON_SYMBOL as Le, OPENAPI_DOCUMENT_URL_SYMBOL as Be } from "../helpers/provideSymbols.js";
|
|
16
|
+
import { useNavState as Ie } from "../hooks/useNavState.js";
|
|
17
|
+
import { sleep as Ue } from "../helpers/sleep.js";
|
|
18
|
+
const De = ["innerHTML"], Me = { class: "references-header" }, ke = {
|
|
20
19
|
key: 0,
|
|
21
20
|
class: "references-navigation t-doc__sidebar"
|
|
22
|
-
},
|
|
21
|
+
}, Pe = { class: "references-navigation-list" }, Fe = { class: "references-editor" }, Ae = { class: "references-editor-textarea" }, Ne = { class: "references-rendered" }, He = {
|
|
23
22
|
key: 0,
|
|
24
23
|
class: "references-footer"
|
|
25
24
|
}, ro = /* @__PURE__ */ _({
|
|
@@ -32,106 +31,106 @@ const Ue = ["innerHTML"], De = { class: "references-header" }, Me = {
|
|
|
32
31
|
},
|
|
33
32
|
emits: ["changeTheme", "updateContent", "loadSwaggerFile", "linkSwaggerFile", "toggleDarkMode"],
|
|
34
33
|
setup(F) {
|
|
35
|
-
const t = F, { initializeToasts: A, toast: N } =
|
|
34
|
+
const t = F, { initializeToasts: A, toast: N } = ge();
|
|
36
35
|
A((e) => N(e));
|
|
37
|
-
const H =
|
|
38
|
-
|
|
36
|
+
const H = Se("(min-width: 1150px)"), Y = w("100dvh"), f = w(null);
|
|
37
|
+
ve(f, (e) => {
|
|
39
38
|
Y.value = e[0].contentRect.height + "px";
|
|
40
39
|
});
|
|
41
|
-
const
|
|
42
|
-
D(() => {
|
|
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
|
-
if (e && o) {
|
|
46
|
-
const s = o.top - e.top;
|
|
47
|
-
R.value = s < 2 ? 0 : s;
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
const z = v(ce), {
|
|
40
|
+
const z = v(pe), {
|
|
51
41
|
breadcrumb: V,
|
|
52
42
|
collapsedSidebarItems: S,
|
|
53
43
|
isSidebarOpen: G,
|
|
54
|
-
setCollapsedSidebarItem:
|
|
44
|
+
setCollapsedSidebarItem: R,
|
|
55
45
|
hideModels: Q,
|
|
56
46
|
defaultOpenAllTags: W,
|
|
57
47
|
setParsedSpec: j,
|
|
58
48
|
scrollToOperation: q
|
|
59
|
-
} =
|
|
60
|
-
getPathRoutingId:
|
|
49
|
+
} = $e(), {
|
|
50
|
+
getPathRoutingId: C,
|
|
61
51
|
getSectionId: K,
|
|
62
52
|
getTagId: J,
|
|
63
|
-
hash:
|
|
64
|
-
isIntersectionEnabled:
|
|
65
|
-
pathRouting:
|
|
66
|
-
updateHash:
|
|
67
|
-
} =
|
|
68
|
-
|
|
69
|
-
const
|
|
53
|
+
hash: $,
|
|
54
|
+
isIntersectionEnabled: E,
|
|
55
|
+
pathRouting: O,
|
|
56
|
+
updateHash: L
|
|
57
|
+
} = Ie();
|
|
58
|
+
O.value = t.configuration.pathRouting, D(() => L());
|
|
59
|
+
const B = async (e) => {
|
|
70
60
|
var o;
|
|
71
|
-
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
61
|
+
E.value = !1, L(), e ? q(e) : (o = f.value) == null || o.scrollTo(0, 0), await Ue(100), E.value = !0;
|
|
62
|
+
}, I = w(0);
|
|
63
|
+
D(() => ue()), x(() => {
|
|
64
|
+
var r, a, n;
|
|
65
|
+
history.scrollRestoration = "manual", P.on(({ specTitle: s }) => {
|
|
66
|
+
we(t.rawSpec, s);
|
|
67
|
+
});
|
|
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();
|
|
69
|
+
if (e && o) {
|
|
70
|
+
const s = o.top - e.top;
|
|
71
|
+
I.value = s < 2 ? 0 : s;
|
|
72
|
+
}
|
|
73
|
+
window.onhashchange = () => B(decodeURIComponent(window.location.hash.replace(/^#/, ""))), window.onpopstate = () => O.value && B(C(window.location.pathname));
|
|
77
74
|
});
|
|
78
75
|
const X = v(
|
|
79
76
|
() => H.value || !t.configuration.isEditable
|
|
80
|
-
), U =
|
|
77
|
+
), U = he((e) => {
|
|
81
78
|
if ((e.target.scrollTop ?? 0) < 50) {
|
|
82
79
|
const r = t.configuration.pathRouting ? t.configuration.pathRouting.basePath : window.location.pathname;
|
|
83
|
-
window.history.replaceState({}, "", r + window.location.search),
|
|
80
|
+
window.history.replaceState({}, "", r + window.location.search), $.value = "";
|
|
84
81
|
}
|
|
85
82
|
}), i = v(() => ({
|
|
86
83
|
breadcrumb: V.value,
|
|
87
84
|
spec: t.parsedSpec
|
|
88
85
|
}));
|
|
89
|
-
|
|
86
|
+
ee(() => {
|
|
87
|
+
P.reset();
|
|
88
|
+
}), oe(() => t.parsedSpec, j, { deep: !0 }), te(() => {
|
|
90
89
|
var o, r;
|
|
91
|
-
const e =
|
|
92
|
-
if (e && (e.payload || (e.payload = { data:
|
|
93
|
-
const a =
|
|
94
|
-
|
|
90
|
+
const e = re();
|
|
91
|
+
if (e && (e.payload || (e.payload = { data: k() }), (o = e.payload).data || (o.data = k()), t.configuration.pathRouting)) {
|
|
92
|
+
const a = C(e.url);
|
|
93
|
+
$.value = a, e.payload.data.hash = a;
|
|
95
94
|
for (const n in S)
|
|
96
95
|
Object.hasOwn(S, n) && delete S[n];
|
|
97
96
|
if (a)
|
|
98
|
-
|
|
97
|
+
R(K(a), !0);
|
|
99
98
|
else {
|
|
100
99
|
const n = (r = t.parsedSpec.tags) == null ? void 0 : r[0];
|
|
101
|
-
n &&
|
|
100
|
+
n && R(J(n), !0);
|
|
102
101
|
}
|
|
103
102
|
e.payload.data["useSidebarContent-collapsedSidebarItems"] = S;
|
|
104
103
|
}
|
|
105
|
-
}),
|
|
104
|
+
}), ce(() => {
|
|
106
105
|
var a;
|
|
107
|
-
const e =
|
|
106
|
+
const e = ae(), o = "scalar-instance-id";
|
|
108
107
|
if (!e) return o;
|
|
109
108
|
let r = e.uid;
|
|
110
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}`;
|
|
111
|
-
}), h(
|
|
112
|
-
|
|
110
|
+
}), h(Ee, () => t.parsedSpec.security), h(
|
|
111
|
+
Oe,
|
|
113
112
|
() => t.configuration.hideDownloadButton
|
|
114
113
|
), h(
|
|
115
|
-
|
|
114
|
+
Le,
|
|
116
115
|
() => t.configuration.hideTestRequestButton
|
|
117
|
-
), h(
|
|
116
|
+
), h(Be, () => {
|
|
118
117
|
var e;
|
|
119
118
|
return (e = t.configuration.spec) == null ? void 0 : e.url;
|
|
120
|
-
}), Q.value = t.configuration.hideModels ?? !1, W.value = t.configuration.defaultOpenAllTags ?? !1,
|
|
119
|
+
}), Q.value = t.configuration.hideModels ?? !1, W.value = t.configuration.defaultOpenAllTags ?? !1, Te(t.configuration);
|
|
121
120
|
const Z = v(
|
|
122
121
|
() => `<style>
|
|
123
|
-
${
|
|
122
|
+
${fe(t.configuration.theme, {
|
|
124
123
|
fonts: t.configuration.withDefaultFonts
|
|
125
124
|
})}</style>`
|
|
126
125
|
);
|
|
127
126
|
return (e, o) => {
|
|
128
127
|
var r, a;
|
|
129
|
-
return b(), y(
|
|
130
|
-
l("div", { innerHTML: Z.value }, null, 8,
|
|
128
|
+
return b(), y(M, null, [
|
|
129
|
+
l("div", { innerHTML: Z.value }, null, 8, De),
|
|
131
130
|
l("div", {
|
|
132
131
|
ref_key: "documentEl",
|
|
133
132
|
ref: f,
|
|
134
|
-
class:
|
|
133
|
+
class: ne(["scalar-app scalar-api-reference references-layout", [
|
|
135
134
|
{
|
|
136
135
|
"scalar-scrollbars-obtrusive": z.value,
|
|
137
136
|
"references-editable": e.configuration.isEditable,
|
|
@@ -141,18 +140,18 @@ const Ue = ["innerHTML"], De = { class: "references-header" }, Me = {
|
|
|
141
140
|
},
|
|
142
141
|
e.$attrs.class
|
|
143
142
|
]]),
|
|
144
|
-
style:
|
|
145
|
-
"--scalar-y-offset": `var(--scalar-custom-header-height, ${
|
|
143
|
+
style: se({
|
|
144
|
+
"--scalar-y-offset": `var(--scalar-custom-header-height, ${I.value}px)`
|
|
146
145
|
}),
|
|
147
146
|
onScrollPassive: o[4] || (o[4] = //@ts-ignore
|
|
148
147
|
(...n) => p(U) && p(U)(...n))
|
|
149
148
|
}, [
|
|
150
|
-
l("div",
|
|
149
|
+
l("div", Me, [
|
|
151
150
|
d(e.$slots, "header", c(u(i.value)), void 0, !0)
|
|
152
151
|
]),
|
|
153
|
-
e.configuration.showSidebar ? (b(), y("aside",
|
|
154
|
-
l("div",
|
|
155
|
-
g(p(
|
|
152
|
+
e.configuration.showSidebar ? (b(), y("aside", ke, [
|
|
153
|
+
l("div", Pe, [
|
|
154
|
+
g(p(Re), {
|
|
156
155
|
operationsSorter: e.configuration.operationsSorter,
|
|
157
156
|
parsedSpec: e.parsedSpec,
|
|
158
157
|
tagsSorter: e.configuration.tagsSorter
|
|
@@ -167,22 +166,22 @@ const Ue = ["innerHTML"], De = { class: "references-header" }, Me = {
|
|
|
167
166
|
}, 8, ["operationsSorter", "parsedSpec", "tagsSorter"])
|
|
168
167
|
])
|
|
169
168
|
])) : T("", !0),
|
|
170
|
-
|
|
171
|
-
l("div",
|
|
169
|
+
ie(l("div", Fe, [
|
|
170
|
+
l("div", Ae, [
|
|
172
171
|
d(e.$slots, "editor", c(u(i.value)), void 0, !0)
|
|
173
172
|
])
|
|
174
173
|
], 512), [
|
|
175
|
-
[
|
|
174
|
+
[le, e.configuration.isEditable]
|
|
176
175
|
]),
|
|
177
|
-
X.value ? (b(), y(
|
|
178
|
-
l("div",
|
|
179
|
-
g(p(
|
|
176
|
+
X.value ? (b(), y(M, { key: 1 }, [
|
|
177
|
+
l("div", Ne, [
|
|
178
|
+
g(p(Ce), {
|
|
180
179
|
baseServerURL: e.configuration.baseServerURL,
|
|
181
180
|
layout: e.configuration.layout === "classic" ? "accordion" : "default",
|
|
182
181
|
parsedSpec: e.parsedSpec,
|
|
183
182
|
proxy: e.configuration.proxy,
|
|
184
183
|
servers: e.configuration.servers
|
|
185
|
-
},
|
|
184
|
+
}, de({
|
|
186
185
|
start: m(() => [
|
|
187
186
|
d(e.$slots, "content-start", c(u(i.value)), void 0, !0)
|
|
188
187
|
]),
|
|
@@ -196,7 +195,7 @@ const Ue = ["innerHTML"], De = { class: "references-header" }, Me = {
|
|
|
196
195
|
fn: m(() => {
|
|
197
196
|
var n;
|
|
198
197
|
return [
|
|
199
|
-
g(
|
|
198
|
+
g(ye, {
|
|
200
199
|
theme: ((n = e.configuration) == null ? void 0 : n.theme) || "default",
|
|
201
200
|
onChangeTheme: o[0] || (o[0] = (s) => e.$emit("changeTheme", s)),
|
|
202
201
|
onLinkSwaggerFile: o[1] || (o[1] = (s) => e.$emit("linkSwaggerFile")),
|
|
@@ -209,18 +208,18 @@ const Ue = ["innerHTML"], De = { class: "references-header" }, Me = {
|
|
|
209
208
|
} : void 0
|
|
210
209
|
]), 1032, ["baseServerURL", "layout", "parsedSpec", "proxy", "servers"])
|
|
211
210
|
]),
|
|
212
|
-
e.$slots.footer ? (b(), y("div",
|
|
211
|
+
e.$slots.footer ? (b(), y("div", He, [
|
|
213
212
|
d(e.$slots, "footer", c(u(i.value)), void 0, !0)
|
|
214
213
|
])) : T("", !0)
|
|
215
214
|
], 64)) : T("", !0),
|
|
216
|
-
g(
|
|
215
|
+
g(be, {
|
|
217
216
|
preferredSecurityScheme: (a = e.configuration.authentication) == null ? void 0 : a.preferredSecurityScheme,
|
|
218
217
|
proxyUrl: e.configuration.proxy,
|
|
219
218
|
servers: e.configuration.servers,
|
|
220
219
|
spec: e.configuration.spec
|
|
221
220
|
}, null, 8, ["preferredSecurityScheme", "proxyUrl", "servers", "spec"])
|
|
222
221
|
], 38),
|
|
223
|
-
g(p(
|
|
222
|
+
g(p(me))
|
|
224
223
|
], 64);
|
|
225
224
|
};
|
|
226
225
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClientLibraries.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/ClientLibraries.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ClientLibraries.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/ClientLibraries.vue"],"names":[],"mappings":";AAqHA,wBAKG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ClientLibraries.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const i = /* @__PURE__ */ r(o, [["__scopeId", "data-v-7df7ca7f"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
i as default
|
|
7
7
|
};
|
|
@@ -1,22 +1,20 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as a, unref as t, openBlock as l, createElementBlock as s, createElementVNode as o, createVNode as d, toDisplayString as i, createCommentVNode as p, pushScopeId as _, popScopeId as m } from "vue";
|
|
2
2
|
import f from "./ClientSelector.vue.js";
|
|
3
3
|
import { useHttpClientStore as h } from "../../../stores/useHttpClientStore.js";
|
|
4
|
-
const
|
|
4
|
+
const u = (e) => (_("data-v-7df7ca7f"), e = e(), m(), e), C = { key: 0 }, v = /* @__PURE__ */ u(() => /* @__PURE__ */ o("div", { class: "client-libraries-heading" }, "Client Libraries", -1)), S = {
|
|
5
5
|
class: "selected-client card-footer",
|
|
6
6
|
muted: ""
|
|
7
|
-
}, N = /* @__PURE__ */
|
|
7
|
+
}, N = /* @__PURE__ */ a({
|
|
8
8
|
__name: "ClientLibraries",
|
|
9
9
|
setup(e) {
|
|
10
|
-
const { availableTargets:
|
|
11
|
-
return (
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
], 64)) : m("", !0)
|
|
19
|
-
]));
|
|
10
|
+
const { availableTargets: r, httpTargetTitle: c, httpClientTitle: n } = h();
|
|
11
|
+
return (g, b) => t(r).length ? (l(), s("div", C, [
|
|
12
|
+
v,
|
|
13
|
+
o("div", null, [
|
|
14
|
+
d(f)
|
|
15
|
+
]),
|
|
16
|
+
o("div", S, i(t(n)) + " " + i(t(c)), 1)
|
|
17
|
+
])) : p("", !0);
|
|
20
18
|
}
|
|
21
19
|
});
|
|
22
20
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Operation.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/Operation.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Operation.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/Operation.vue"],"names":[],"mappings":"AAoFA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;;SAoBzD,MAAM;eACA,oBAAoB;;SAD1B,MAAM;eACA,oBAAoB;;AAiPjC,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,7 +1,7 @@
|
|
|
1
1
|
import o from "./Operation.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d485e1e4"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -3,35 +3,35 @@ import h from "./EndpointDetails.vue.js";
|
|
|
3
3
|
import _ from "./EndpointPath.vue.js";
|
|
4
4
|
import C from "./TestRequestButton.vue.js";
|
|
5
5
|
import S from "../../Section/Section.vue.js";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
6
|
+
import k from "../../Section/SectionContent.vue.js";
|
|
7
|
+
import B from "../../Section/SectionColumns.vue.js";
|
|
8
8
|
import d from "../../Section/SectionColumn.vue.js";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
const
|
|
9
|
+
import E from "../../Badge/Badge.vue.js";
|
|
10
|
+
import N from "../../Section/SectionHeader.vue.js";
|
|
11
|
+
import V from "../../Anchor/Anchor.vue.js";
|
|
12
|
+
import b from "../../../features/ExampleRequest/ExampleRequest.vue.js";
|
|
13
|
+
import g from "../../../features/ExampleResponses/ExampleResponses.vue.js";
|
|
14
|
+
const v = { class: "examples" }, I = /* @__PURE__ */ f({
|
|
15
15
|
__name: "Operation",
|
|
16
16
|
props: {
|
|
17
17
|
id: {},
|
|
18
18
|
operation: {}
|
|
19
19
|
},
|
|
20
|
-
setup(
|
|
21
|
-
return (e,
|
|
20
|
+
setup(y) {
|
|
21
|
+
return (e, R) => (i(), p(t(S), {
|
|
22
22
|
id: e.id,
|
|
23
23
|
label: e.operation.name
|
|
24
24
|
}, {
|
|
25
25
|
default: r(() => [
|
|
26
|
-
o(t(
|
|
26
|
+
o(t(k), null, {
|
|
27
27
|
default: r(() => [
|
|
28
|
-
o(t(
|
|
28
|
+
o(t(B), null, {
|
|
29
29
|
default: r(() => [
|
|
30
30
|
o(t(d), null, {
|
|
31
31
|
default: r(() => {
|
|
32
32
|
var a, n;
|
|
33
33
|
return [
|
|
34
|
-
(a = e.operation.information) != null && a.deprecated ? (i(), p(t(
|
|
34
|
+
(a = e.operation.information) != null && a.deprecated ? (i(), p(t(E), { key: 0 }, {
|
|
35
35
|
default: r(() => [
|
|
36
36
|
l(" Deprecated ")
|
|
37
37
|
]),
|
|
@@ -40,9 +40,9 @@ const y = { class: "examples" }, I = /* @__PURE__ */ f({
|
|
|
40
40
|
m("div", {
|
|
41
41
|
class: u((n = e.operation.information) != null && n.deprecated ? "deprecated" : "")
|
|
42
42
|
}, [
|
|
43
|
-
o(t(
|
|
43
|
+
o(t(N), { level: 3 }, {
|
|
44
44
|
default: r(() => [
|
|
45
|
-
o(t(
|
|
45
|
+
o(t(V), {
|
|
46
46
|
id: e.id ?? ""
|
|
47
47
|
}, {
|
|
48
48
|
default: r(() => [
|
|
@@ -61,8 +61,11 @@ const y = { class: "examples" }, I = /* @__PURE__ */ f({
|
|
|
61
61
|
}),
|
|
62
62
|
o(t(d), null, {
|
|
63
63
|
default: r(() => [
|
|
64
|
-
m("div",
|
|
65
|
-
o(t(
|
|
64
|
+
m("div", v, [
|
|
65
|
+
o(t(b), {
|
|
66
|
+
fallback: "",
|
|
67
|
+
operation: e.operation
|
|
68
|
+
}, {
|
|
66
69
|
header: r(() => {
|
|
67
70
|
var a;
|
|
68
71
|
return [
|
|
@@ -78,7 +81,7 @@ const y = { class: "examples" }, I = /* @__PURE__ */ f({
|
|
|
78
81
|
]),
|
|
79
82
|
_: 1
|
|
80
83
|
}, 8, ["operation"]),
|
|
81
|
-
o(t(
|
|
84
|
+
o(t(g), {
|
|
82
85
|
operation: e.operation,
|
|
83
86
|
style: { "margin-top": "12px" }
|
|
84
87
|
}, null, 8, ["operation"])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OperationAccordion.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/OperationAccordion.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OperationAccordion.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/OperationAccordion.vue"],"names":[],"mappings":"AA0NA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;;SAiBzD,MAAM;eACA,oBAAoB;;SAD1B,MAAM;eACA,oBAAoB;;AA2QjC,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,7 +1,7 @@
|
|
|
1
1
|
import o from "./OperationAccordion.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-79ac1ab2"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
import type { TransformedOperation } from '@scalar/types/legacy';
|
|
2
2
|
declare function __VLS_template(): {
|
|
3
3
|
header?(_: {}): any;
|
|
4
|
+
header?(_: {}): any;
|
|
5
|
+
footer?(_: {}): any;
|
|
4
6
|
footer?(_: {}): any;
|
|
5
7
|
};
|
|
6
8
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
7
9
|
operation: TransformedOperation;
|
|
10
|
+
/** Show a simplified card if no example are available */
|
|
11
|
+
fallback?: boolean;
|
|
8
12
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
9
13
|
operation: TransformedOperation;
|
|
14
|
+
/** Show a simplified card if no example are available */
|
|
15
|
+
fallback?: boolean;
|
|
10
16
|
}>>>, {}, {}>;
|
|
11
17
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
12
18
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExampleRequest.vue.d.ts","sourceRoot":"","sources":["../../../src/features/ExampleRequest/ExampleRequest.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ExampleRequest.vue.d.ts","sourceRoot":"","sources":["../../../src/features/ExampleRequest/ExampleRequest.vue"],"names":[],"mappings":"AAoYA,OAAO,KAAK,EAGV,oBAAoB,EACrB,MAAM,sBAAsB,CAAA;AA+O7B,iBAAS,cAAc;oBAuQM,GAAG;oBAEH,GAAG;oBADH,GAAG;oBAEH,GAAG;EAmC/B;AACD,QAAA,MAAM,eAAe;eA/fR,oBAAoB;IAC/B,yDAAyD;eAC9C,OAAO;;eAFP,oBAAoB;IAC/B,yDAAyD;eAC9C,OAAO;aAmgBlB,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"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ExampleRequest.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-db770e2d"]]);
|
|
5
5
|
export {
|
|
6
6
|
r as default
|
|
7
7
|
};
|