@scalar/api-reference 1.28.6 → 1.28.8
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 +38 -0
- package/dist/browser/standalone.js +13884 -13880
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReference.vue.d.ts +2 -2
- package/dist/components/ApiReference.vue.d.ts.map +1 -1
- package/dist/components/ApiReference.vue.js +26 -15
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +2 -2
- package/dist/components/ApiReferenceLayout.vue2.js +128 -129
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +1 -1
- package/dist/components/Sidebar/Sidebar.vue2.js +89 -76
- package/dist/components/Sidebar/SidebarElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarElement.vue.js +2 -2
- package/dist/components/Sidebar/SidebarElement.vue2.js +38 -38
- package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts +46 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue.js +2 -2
- package/dist/features/ExampleRequest/ExampleRequest.vue2.js +83 -74
- package/dist/features/Search/useSearchIndex.d.ts.map +1 -1
- package/dist/features/Search/useSearchIndex.js +9 -9
- package/dist/helpers/freeze-element.d.ts +11 -0
- package/dist/helpers/freeze-element.d.ts.map +1 -0
- package/dist/helpers/freeze-element.js +20 -0
- package/dist/hooks/index.d.ts +0 -2
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/useMultipleDocuments.d.ts +9 -4
- package/dist/hooks/useMultipleDocuments.d.ts.map +1 -1
- package/dist/hooks/useMultipleDocuments.js +63 -39
- package/dist/hooks/useNavState.d.ts +13 -4
- package/dist/hooks/useNavState.d.ts.map +1 -1
- package/dist/hooks/useNavState.js +52 -48
- package/dist/index.js +1 -1
- package/dist/standalone/lib/html-api.d.ts +5 -5
- package/dist/standalone/lib/html-api.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types.d.ts +3 -12
- package/dist/types.d.ts.map +1 -1
- package/package.json +12 -11
- package/dist/hooks/useClientStore.d.ts +0 -2
- package/dist/hooks/useClientStore.d.ts.map +0 -1
- package/dist/hooks/useRefOnMount.d.ts +0 -6
- package/dist/hooks/useRefOnMount.d.ts.map +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { useNavState as
|
|
5
|
-
import { useSidebar as
|
|
1
|
+
import { defineComponent as F, ref as E, watch as I, onMounted as N, onUnmounted as L, openBlock as r, createElementBlock as d, renderSlot as w, createElementVNode as V, createVNode as G, withCtx as h, Fragment as o, renderList as y, unref as n, toDisplayString as M, createBlock as f, createCommentVNode as v } from "vue";
|
|
2
|
+
import S from "./SidebarElement.vue.js";
|
|
3
|
+
import g from "./SidebarGroup.vue.js";
|
|
4
|
+
import { useNavState as D } from "../../hooks/useNavState.js";
|
|
5
|
+
import { useSidebar as H } from "../../hooks/useSidebar.js";
|
|
6
6
|
import { sleep as C } from "../../helpers/sleep.js";
|
|
7
|
-
const
|
|
7
|
+
const R = { class: "sidebar" }, U = ["aria-label"], j = { class: "sidebar-group-title" }, q = -160, W = /* @__PURE__ */ F({
|
|
8
8
|
__name: "Sidebar",
|
|
9
9
|
props: {
|
|
10
10
|
parsedSpec: {},
|
|
@@ -12,49 +12,62 @@ const H = { class: "sidebar" }, M = ["aria-label"], R = { class: "sidebar-group-
|
|
|
12
12
|
operationsSorter: { type: [String, Function] }
|
|
13
13
|
},
|
|
14
14
|
setup(A) {
|
|
15
|
-
const
|
|
15
|
+
const m = A, { hash: p, isIntersectionEnabled: $ } = D(), { items: O, toggleCollapsedSidebarItem: T, collapsedSidebarItems: _ } = H(
|
|
16
16
|
{
|
|
17
|
-
parsedSpec:
|
|
18
|
-
tagsSorter:
|
|
19
|
-
operationsSorter:
|
|
17
|
+
parsedSpec: m.parsedSpec,
|
|
18
|
+
tagsSorter: m.tagsSorter,
|
|
19
|
+
operationsSorter: m.operationsSorter
|
|
20
20
|
}
|
|
21
|
-
),
|
|
22
|
-
|
|
23
|
-
!$.value ||
|
|
21
|
+
), b = E(null), u = E(!0);
|
|
22
|
+
I(p, (l) => {
|
|
23
|
+
!$.value || u.value || typeof window > "u" || k(l);
|
|
24
24
|
});
|
|
25
|
-
const k = (
|
|
26
|
-
var e, t,
|
|
27
|
-
const
|
|
28
|
-
if (!
|
|
25
|
+
const k = (l) => {
|
|
26
|
+
var e, t, s, a;
|
|
27
|
+
const i = document.getElementById(`sidebar-${l}`);
|
|
28
|
+
if (!i || !b.value)
|
|
29
29
|
return;
|
|
30
|
-
let
|
|
31
|
-
|
|
30
|
+
let c = q;
|
|
31
|
+
i.getAttribute("data-sidebar-type") === "heading" ? c += i.offsetTop + ((e = i.getElementsByClassName("sidebar-heading")) == null ? void 0 : e[0]).offsetHeight : c += i.offsetTop + (((t = i.parentElement) == null ? void 0 : t.offsetTop) ?? 0) + (((a = (s = i.parentElement) == null ? void 0 : s.parentElement) == null ? void 0 : a.offsetTop) ?? 0), b.value.scrollTo({ top: c, behavior: "smooth" });
|
|
32
|
+
}, B = (l) => {
|
|
33
|
+
if (!b.value)
|
|
34
|
+
return;
|
|
35
|
+
const i = new MutationObserver((c, e) => {
|
|
36
|
+
document.getElementById(`sidebar-${l}`) && (k(l), u.value = !1, e.disconnect());
|
|
37
|
+
});
|
|
38
|
+
return i.observe(b.value, {
|
|
39
|
+
childList: !0,
|
|
40
|
+
subtree: !0
|
|
41
|
+
}), i;
|
|
32
42
|
};
|
|
33
43
|
return N(() => {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
44
|
+
const l = B(p.value);
|
|
45
|
+
L(() => {
|
|
46
|
+
l == null || l.disconnect();
|
|
47
|
+
});
|
|
48
|
+
}), (l, i) => {
|
|
49
|
+
var c;
|
|
50
|
+
return r(), d("div", R, [
|
|
51
|
+
w(l.$slots, "sidebar-start", {}, void 0, !0),
|
|
52
|
+
V("nav", {
|
|
40
53
|
ref_key: "scrollerEl",
|
|
41
|
-
ref:
|
|
42
|
-
"aria-label": `Table of contents for ${(
|
|
54
|
+
ref: b,
|
|
55
|
+
"aria-label": `Table of contents for ${(c = l.parsedSpec.info) == null ? void 0 : c.title}`,
|
|
43
56
|
class: "sidebar-pages custom-scroll custom-scroll-self-contain-overflow"
|
|
44
57
|
}, [
|
|
45
|
-
|
|
46
|
-
default:
|
|
47
|
-
(r(!0),
|
|
58
|
+
G(g, { level: 0 }, {
|
|
59
|
+
default: h(() => [
|
|
60
|
+
(r(!0), d(o, null, y(n(O).entries, (e) => (r(), d(o, {
|
|
48
61
|
key: e.id
|
|
49
62
|
}, [
|
|
50
|
-
e.isGroup ? (r(),
|
|
51
|
-
|
|
52
|
-
(r(!0),
|
|
63
|
+
e.isGroup ? (r(), d(o, { key: 0 }, [
|
|
64
|
+
V("li", j, M(e.displayTitle ?? e.title), 1),
|
|
65
|
+
(r(!0), d(o, null, y(e.children, (t) => (r(), f(S, {
|
|
53
66
|
key: t.id,
|
|
54
67
|
id: `sidebar-${t.id}`,
|
|
55
68
|
"data-sidebar-type": "heading",
|
|
56
69
|
hasChildren: t.children && t.children.length > 0,
|
|
57
|
-
isActive:
|
|
70
|
+
isActive: n(p) === t.id,
|
|
58
71
|
item: {
|
|
59
72
|
id: t.id,
|
|
60
73
|
title: t.displayTitle ?? t.title,
|
|
@@ -62,49 +75,49 @@ const H = { class: "sidebar" }, M = ["aria-label"], R = { class: "sidebar-group-
|
|
|
62
75
|
httpVerb: t.httpVerb,
|
|
63
76
|
deprecated: t.deprecated ?? !1
|
|
64
77
|
},
|
|
65
|
-
open:
|
|
78
|
+
open: n(_)[t.id] ?? !1,
|
|
66
79
|
onToggleOpen: async () => {
|
|
67
|
-
|
|
80
|
+
u.value = !0, n(T)(t.id), await n(C)(100), u.value = !1;
|
|
68
81
|
}
|
|
69
82
|
}, {
|
|
70
|
-
default:
|
|
71
|
-
var
|
|
83
|
+
default: h(() => {
|
|
84
|
+
var s;
|
|
72
85
|
return [
|
|
73
|
-
t.children && ((
|
|
86
|
+
t.children && ((s = t.children) == null ? void 0 : s.length) > 0 ? (r(), f(g, {
|
|
74
87
|
key: 0,
|
|
75
88
|
level: 1
|
|
76
89
|
}, {
|
|
77
|
-
default:
|
|
78
|
-
(r(!0),
|
|
79
|
-
key:
|
|
90
|
+
default: h(() => [
|
|
91
|
+
(r(!0), d(o, null, y(t.children, (a) => (r(), d(o, {
|
|
92
|
+
key: a.id
|
|
80
93
|
}, [
|
|
81
|
-
e.show ? (r(),
|
|
94
|
+
e.show ? (r(), f(S, {
|
|
82
95
|
key: 0,
|
|
83
|
-
id: `sidebar-${
|
|
84
|
-
isActive:
|
|
96
|
+
id: `sidebar-${a.id}`,
|
|
97
|
+
isActive: n(p) === a.id,
|
|
85
98
|
item: {
|
|
86
|
-
id:
|
|
87
|
-
title:
|
|
88
|
-
select:
|
|
89
|
-
httpVerb:
|
|
90
|
-
deprecated:
|
|
99
|
+
id: a.id,
|
|
100
|
+
title: a.displayTitle ?? a.title,
|
|
101
|
+
select: a.select,
|
|
102
|
+
httpVerb: a.httpVerb,
|
|
103
|
+
deprecated: a.deprecated ?? !1
|
|
91
104
|
}
|
|
92
|
-
}, null, 8, ["id", "isActive", "item"])) :
|
|
105
|
+
}, null, 8, ["id", "isActive", "item"])) : v("", !0)
|
|
93
106
|
], 64))), 128))
|
|
94
107
|
]),
|
|
95
108
|
_: 2
|
|
96
|
-
}, 1024)) :
|
|
109
|
+
}, 1024)) : v("", !0)
|
|
97
110
|
];
|
|
98
111
|
}),
|
|
99
112
|
_: 2
|
|
100
113
|
}, 1032, ["id", "hasChildren", "isActive", "item", "open", "onToggleOpen"]))), 128))
|
|
101
|
-
], 64)) : (r(),
|
|
102
|
-
e.show ? (r(),
|
|
114
|
+
], 64)) : (r(), d(o, { key: 1 }, [
|
|
115
|
+
e.show ? (r(), f(S, {
|
|
103
116
|
key: 0,
|
|
104
117
|
id: `sidebar-${e.id}`,
|
|
105
118
|
"data-sidebar-type": "heading",
|
|
106
119
|
hasChildren: e.children && e.children.length > 0,
|
|
107
|
-
isActive:
|
|
120
|
+
isActive: n(p) === e.id,
|
|
108
121
|
item: {
|
|
109
122
|
id: e.id,
|
|
110
123
|
title: e.displayTitle ?? e.title,
|
|
@@ -112,53 +125,53 @@ const H = { class: "sidebar" }, M = ["aria-label"], R = { class: "sidebar-group-
|
|
|
112
125
|
httpVerb: e.httpVerb,
|
|
113
126
|
deprecated: e.deprecated ?? !1
|
|
114
127
|
},
|
|
115
|
-
open:
|
|
128
|
+
open: n(_)[e.id] ?? !1,
|
|
116
129
|
onToggleOpen: async () => {
|
|
117
|
-
|
|
130
|
+
u.value = !0, n(T)(e.id), await n(C)(100), u.value = !1;
|
|
118
131
|
}
|
|
119
132
|
}, {
|
|
120
|
-
default:
|
|
133
|
+
default: h(() => {
|
|
121
134
|
var t;
|
|
122
135
|
return [
|
|
123
|
-
e.children && ((t = e.children) == null ? void 0 : t.length) > 0 ? (r(),
|
|
136
|
+
e.children && ((t = e.children) == null ? void 0 : t.length) > 0 ? (r(), f(g, {
|
|
124
137
|
key: 0,
|
|
125
138
|
level: 1
|
|
126
139
|
}, {
|
|
127
|
-
default:
|
|
128
|
-
(r(!0),
|
|
129
|
-
key:
|
|
140
|
+
default: h(() => [
|
|
141
|
+
(r(!0), d(o, null, y(e.children, (s) => (r(), d(o, {
|
|
142
|
+
key: s.id
|
|
130
143
|
}, [
|
|
131
|
-
e.show ? (r(),
|
|
144
|
+
e.show ? (r(), f(S, {
|
|
132
145
|
key: 0,
|
|
133
|
-
id: `sidebar-${
|
|
134
|
-
isActive:
|
|
146
|
+
id: `sidebar-${s.id}`,
|
|
147
|
+
isActive: n(p) === s.id,
|
|
135
148
|
item: {
|
|
136
|
-
id:
|
|
137
|
-
title:
|
|
138
|
-
select:
|
|
139
|
-
httpVerb:
|
|
140
|
-
deprecated:
|
|
149
|
+
id: s.id,
|
|
150
|
+
title: s.displayTitle ?? s.title,
|
|
151
|
+
select: s.select,
|
|
152
|
+
httpVerb: s.httpVerb,
|
|
153
|
+
deprecated: s.deprecated ?? !1
|
|
141
154
|
}
|
|
142
|
-
}, null, 8, ["id", "isActive", "item"])) :
|
|
155
|
+
}, null, 8, ["id", "isActive", "item"])) : v("", !0)
|
|
143
156
|
], 64))), 128))
|
|
144
157
|
]),
|
|
145
158
|
_: 2
|
|
146
|
-
}, 1024)) :
|
|
159
|
+
}, 1024)) : v("", !0)
|
|
147
160
|
];
|
|
148
161
|
}),
|
|
149
162
|
_: 2
|
|
150
|
-
}, 1032, ["id", "hasChildren", "isActive", "item", "open", "onToggleOpen"])) :
|
|
163
|
+
}, 1032, ["id", "hasChildren", "isActive", "item", "open", "onToggleOpen"])) : v("", !0)
|
|
151
164
|
], 64))
|
|
152
165
|
], 64))), 128))
|
|
153
166
|
]),
|
|
154
167
|
_: 1
|
|
155
168
|
})
|
|
156
|
-
], 8,
|
|
157
|
-
|
|
169
|
+
], 8, U),
|
|
170
|
+
w(l.$slots, "sidebar-end", {}, void 0, !0)
|
|
158
171
|
]);
|
|
159
172
|
};
|
|
160
173
|
}
|
|
161
174
|
});
|
|
162
175
|
export {
|
|
163
|
-
|
|
176
|
+
W as default
|
|
164
177
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarElement.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarElement.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SidebarElement.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarElement.vue"],"names":[],"mappings":"AAwWA,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM,CAAA;QACV,KAAK,EAAE,MAAM,CAAA;QACb,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;QACnB,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,IAAI,CAAC,EAAE;YACL,GAAG,EAAE,MAAM,CAAA;SACZ,CAAA;QACD,QAAQ,CAAC,EAAE,MAAM,CAAA;QACjB,UAAU,CAAC,EAAE,OAAO,CAAA;KACrB,CAAA;IACD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,IAAI,CAAC,EAAE,OAAO,CAAA;CACf,CAAC;AAuEF,iBAAS,cAAc;WAoKT,OAAO,IAA6B;;yBATpB,GAAG;+BACG,GAAG;;;;EAatC;AAgBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;4FAQnB,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"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SidebarElement.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-eb72afb2"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarSidebarGroupToggle as
|
|
3
|
-
import { combineUrlAndPath as
|
|
4
|
-
import { useConfig as
|
|
5
|
-
import
|
|
1
|
+
import { defineComponent as $, openBlock as n, createElementBlock as d, createElementVNode as a, normalizeClass as A, unref as m, withModifiers as T, createVNode as b, withCtx as V, createTextVNode as h, toDisplayString as c, createCommentVNode as s, createBlock as E, renderSlot as v } from "vue";
|
|
2
|
+
import { ScalarSidebarGroupToggle as N, ScalarIcon as O } from "@scalar/components";
|
|
3
|
+
import { combineUrlAndPath as R } from "@scalar/oas-utils/helpers";
|
|
4
|
+
import { useConfig as U } from "../../hooks/useConfig.js";
|
|
5
|
+
import H from "./SidebarHttpBadge.vue.js";
|
|
6
6
|
import { sleep as C } from "../../helpers/sleep.js";
|
|
7
|
-
import { useNavState as
|
|
8
|
-
import { scrollToId as
|
|
9
|
-
const
|
|
7
|
+
import { useNavState as I } from "../../hooks/useNavState.js";
|
|
8
|
+
import { scrollToId as P } from "../../helpers/scrollToId.js";
|
|
9
|
+
const D = ["id"], L = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "sidebar-heading-chevron"
|
|
12
|
-
},
|
|
12
|
+
}, M = ["aria-expanded"], z = ["href", "tabindex"], F = { class: "sidebar-heading-link-title" }, G = {
|
|
13
13
|
key: 1,
|
|
14
14
|
class: "sidebar-heading-link-method"
|
|
15
|
-
},
|
|
15
|
+
}, j = {
|
|
16
16
|
key: 1,
|
|
17
17
|
class: "action-menu"
|
|
18
|
-
},
|
|
18
|
+
}, _ = /* @__PURE__ */ $({
|
|
19
19
|
__name: "SidebarElement",
|
|
20
20
|
props: {
|
|
21
21
|
id: {},
|
|
@@ -26,81 +26,81 @@ const M = ["id"], R = {
|
|
|
26
26
|
},
|
|
27
27
|
emits: ["toggleOpen"],
|
|
28
28
|
setup(k, { emit: y }) {
|
|
29
|
-
const i = k,
|
|
29
|
+
const i = k, p = y, { getFullHash: u, isIntersectionEnabled: r, replaceUrlState: w } = I(), l = U(), f = async () => {
|
|
30
30
|
var e, t;
|
|
31
|
-
i.hasChildren &&
|
|
32
|
-
},
|
|
33
|
-
if (
|
|
34
|
-
return
|
|
31
|
+
i.hasChildren && p("toggleOpen"), (t = (e = i.item) == null ? void 0 : e.select) == null || t.call(e), i.open && (r.value = !1, await C(100), r.value = !0);
|
|
32
|
+
}, S = () => {
|
|
33
|
+
if (l.value.pathRouting)
|
|
34
|
+
return R(l.value.pathRouting.basePath, i.item.id);
|
|
35
35
|
if (typeof window < "u") {
|
|
36
36
|
const e = new URL(window.location.href);
|
|
37
37
|
return e.hash = u(i.item.id), `${e.pathname}${e.search}${e.hash}`;
|
|
38
38
|
}
|
|
39
39
|
return `#${u(i.item.id)}`;
|
|
40
|
-
},
|
|
40
|
+
}, B = async (e) => {
|
|
41
41
|
var t, o;
|
|
42
|
-
|
|
42
|
+
l.value.pathRouting && (e.preventDefault(), i.hasChildren && p("toggleOpen"), (o = (t = i.item) == null ? void 0 : t.select) == null || o.call(t), p("toggleOpen"), r.value = !1, w(i.item.id), P(i.item.id), await C(100), r.value = !0);
|
|
43
43
|
};
|
|
44
44
|
return (e, t) => {
|
|
45
45
|
var o, g;
|
|
46
|
-
return n(),
|
|
46
|
+
return n(), d("li", {
|
|
47
47
|
id: e.id,
|
|
48
48
|
class: "sidebar-group-item"
|
|
49
49
|
}, [
|
|
50
50
|
a("div", {
|
|
51
|
-
class:
|
|
51
|
+
class: A(["sidebar-heading", {
|
|
52
52
|
"sidebar-group-item__folder": e.hasChildren,
|
|
53
53
|
active_page: e.isActive,
|
|
54
54
|
deprecated: e.item.deprecated ?? !1
|
|
55
55
|
}]),
|
|
56
56
|
onClick: f
|
|
57
57
|
}, [
|
|
58
|
-
e.hasChildren && !m(
|
|
58
|
+
e.hasChildren && !m(l).defaultOpenAllTags ? (n(), d("p", L, [
|
|
59
59
|
a("button", {
|
|
60
60
|
"aria-expanded": e.open,
|
|
61
61
|
class: "toggle-nested-icon",
|
|
62
62
|
type: "button",
|
|
63
|
-
onClick:
|
|
63
|
+
onClick: T(f, ["stop"])
|
|
64
64
|
}, [
|
|
65
|
-
b(m(
|
|
66
|
-
label:
|
|
67
|
-
c(
|
|
65
|
+
b(m(N), { open: e.open }, {
|
|
66
|
+
label: V(() => [
|
|
67
|
+
h(c(e.open ? "Collapse" : "Expand") + " " + c(e.item.title), 1)
|
|
68
68
|
]),
|
|
69
69
|
_: 1
|
|
70
70
|
}, 8, ["open"])
|
|
71
|
-
], 8,
|
|
72
|
-
t[0] || (t[0] =
|
|
71
|
+
], 8, M),
|
|
72
|
+
t[0] || (t[0] = h(" "))
|
|
73
73
|
])) : s("", !0),
|
|
74
74
|
a("a", {
|
|
75
75
|
class: "sidebar-heading-link",
|
|
76
|
-
href:
|
|
76
|
+
href: S(),
|
|
77
77
|
tabindex: e.hasChildren ? -1 : 0,
|
|
78
|
-
onClick:
|
|
78
|
+
onClick: B
|
|
79
79
|
}, [
|
|
80
|
-
(g = (o = e.item) == null ? void 0 : o.icon) != null && g.src ? (n(),
|
|
80
|
+
(g = (o = e.item) == null ? void 0 : o.icon) != null && g.src ? (n(), E(m(O), {
|
|
81
81
|
key: 0,
|
|
82
82
|
class: "sidebar-icon",
|
|
83
83
|
icon: e.item.icon.src
|
|
84
84
|
}, null, 8, ["icon"])) : s("", !0),
|
|
85
|
-
a("p",
|
|
86
|
-
e.item.httpVerb && !e.hasChildren ? (n(),
|
|
87
|
-
t[1] || (t[1] =
|
|
85
|
+
a("p", F, c(e.item.title), 1),
|
|
86
|
+
e.item.httpVerb && !e.hasChildren ? (n(), d("p", G, [
|
|
87
|
+
t[1] || (t[1] = h(" ")),
|
|
88
88
|
t[2] || (t[2] = a("span", { class: "sr-only" }, "HTTP Method: ", -1)),
|
|
89
|
-
b(
|
|
89
|
+
b(H, {
|
|
90
90
|
active: e.isActive,
|
|
91
91
|
method: e.item.httpVerb
|
|
92
92
|
}, null, 8, ["active", "method"])
|
|
93
93
|
])) : s("", !0)
|
|
94
|
-
], 8,
|
|
94
|
+
], 8, z)
|
|
95
95
|
], 2),
|
|
96
96
|
e.open ? v(e.$slots, "default", { key: 0 }, void 0, !0) : s("", !0),
|
|
97
|
-
e.$slots["action-menu"] ? (n(),
|
|
97
|
+
e.$slots["action-menu"] ? (n(), d("div", j, [
|
|
98
98
|
v(e.$slots, "action-menu", {}, void 0, !0)
|
|
99
99
|
])) : s("", !0)
|
|
100
|
-
], 8,
|
|
100
|
+
], 8, D);
|
|
101
101
|
};
|
|
102
102
|
}
|
|
103
103
|
});
|
|
104
104
|
export {
|
|
105
|
-
|
|
105
|
+
_ as default
|
|
106
106
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Collection, Operation, Server } from '@scalar/oas-utils/entities/spec';
|
|
2
2
|
import type { TransformedOperation } from '@scalar/types/legacy';
|
|
3
|
+
import { type ComponentPublicInstance } from 'vue';
|
|
3
4
|
type __VLS_Props = {
|
|
4
5
|
operation: Operation;
|
|
5
6
|
server: Server | undefined;
|
|
@@ -17,7 +18,51 @@ declare function __VLS_template(): {
|
|
|
17
18
|
footer?(_: {}): any;
|
|
18
19
|
footer?(_: {}): any;
|
|
19
20
|
};
|
|
20
|
-
refs: {
|
|
21
|
+
refs: {
|
|
22
|
+
elem: ({
|
|
23
|
+
$: import("vue").ComponentInternalInstance;
|
|
24
|
+
$data: {};
|
|
25
|
+
$props: Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
|
|
26
|
+
$attrs: {
|
|
27
|
+
[x: string]: unknown;
|
|
28
|
+
};
|
|
29
|
+
$refs: {
|
|
30
|
+
[x: string]: unknown;
|
|
31
|
+
};
|
|
32
|
+
$slots: Readonly<{
|
|
33
|
+
[name: string]: import("vue").Slot<any> | undefined;
|
|
34
|
+
}>;
|
|
35
|
+
$root: ComponentPublicInstance | null;
|
|
36
|
+
$parent: ComponentPublicInstance | null;
|
|
37
|
+
$host: Element | null;
|
|
38
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
39
|
+
$el: HTMLDivElement;
|
|
40
|
+
$options: import("vue").ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
|
|
41
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
42
|
+
created?: (() => void) | (() => void)[];
|
|
43
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
44
|
+
mounted?: (() => void) | (() => void)[];
|
|
45
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
46
|
+
updated?: (() => void) | (() => void)[];
|
|
47
|
+
activated?: (() => void) | (() => void)[];
|
|
48
|
+
deactivated?: (() => void) | (() => void)[];
|
|
49
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
50
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
51
|
+
destroyed?: (() => void) | (() => void)[];
|
|
52
|
+
unmounted?: (() => void) | (() => void)[];
|
|
53
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
54
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
55
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
56
|
+
};
|
|
57
|
+
$forceUpdate: () => void;
|
|
58
|
+
$nextTick: typeof import("vue").nextTick;
|
|
59
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
|
|
60
|
+
} & Readonly<{}> & Omit<Readonly<{}> & Readonly<{}>, never> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
|
|
61
|
+
$slots: {
|
|
62
|
+
default?(_: {}): any;
|
|
63
|
+
};
|
|
64
|
+
}) | null;
|
|
65
|
+
};
|
|
21
66
|
rootEl: any;
|
|
22
67
|
};
|
|
23
68
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
@@ -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":"AAuZA,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACT,MAAM,EACP,MAAM,iCAAiC,CAAA;AAExC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAEhE,OAAO,EAML,KAAK,uBAAuB,EAC7B,MAAM,KAAK,CAAA;AAcZ,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,SAAS,CAAA;IACpB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,UAAU,EAAE,UAAU,CAAA;IACtB,yDAAyD;IACzD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,0CAA0C;IAC1C,oBAAoB,EAAE,oBAAoB,CAAA;CAC3C,CAAC;AA6NF,iBAAS,cAAc;WAiPT,OAAO,IAA6B;;wBAZrB,GAAG;wBAEH,GAAG;wBADH,GAAG;wBAEH,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA5F+E,GAAG,8CAC1F,GAAG,yBACZ,GAAG,6DAAmC,GAAG;;;;;;;;EAwGvD;AAiCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAMnB,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"}
|
|
@@ -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
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-ecaba69d"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|