@scalar/api-reference 1.25.128 → 1.26.0
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 +54 -0
- package/dist/browser/standalone.js +7981 -7915
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +2 -2
- package/dist/components/ApiReferenceLayout.vue2.js +1 -1
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.js +2 -2
- package/dist/components/Content/Introduction/Introduction.vue.js +1 -1
- package/dist/components/Content/Introduction/Introduction.vue2.js +45 -42
- package/dist/components/Content/Lazy/Loading.vue.js +15 -15
- package/dist/components/Content/Tag/{Endpoints.vue.d.ts → OperationsList.vue.d.ts} +1 -3
- package/dist/components/Content/Tag/OperationsList.vue.d.ts.map +1 -0
- package/dist/components/Content/Tag/OperationsList.vue.js +7 -0
- package/dist/components/Content/Tag/OperationsList.vue2.js +62 -0
- package/dist/components/Content/Tag/OperationsListItem.vue.d.ts +9 -0
- package/dist/components/Content/Tag/OperationsListItem.vue.d.ts.map +1 -0
- package/dist/components/Content/Tag/OperationsListItem.vue.js +7 -0
- package/dist/components/Content/Tag/OperationsListItem.vue2.js +66 -0
- package/dist/components/Content/Tag/Tag.vue.d.ts +4 -64
- package/dist/components/Content/Tag/Tag.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/Tag.vue.js +87 -5
- package/dist/components/Content/Tag/Tag.vue2.js +2 -63
- package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/TagList.vue.js +11 -11
- package/dist/components/Content/Tag/TagSection.vue.d.ts +70 -0
- package/dist/components/Content/Tag/TagSection.vue.d.ts.map +1 -0
- package/dist/components/Content/Tag/TagSection.vue.js +7 -0
- package/dist/components/Content/Tag/TagSection.vue2.js +65 -0
- package/dist/components/Content/Tag/index.d.ts +1 -2
- package/dist/components/Content/Tag/index.d.ts.map +1 -1
- package/dist/features/ApiClientModal/useApiClient.d.ts +30 -10
- package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
- package/dist/features/BaseUrl/BaseUrl.vue.js +31 -30
- package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue.js +2 -2
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
- package/dist/features/Operation/layouts/ClassicLayout.vue2.js +54 -54
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
- package/dist/features/Operation/layouts/ModernLayout.vue2.js +65 -67
- package/dist/features/TestRequestButton/TestRequestButton.vue.js +2 -2
- package/dist/features/TestRequestButton/TestRequestButton.vue2.js +16 -14
- package/dist/helpers/get-request.d.ts +1 -0
- package/dist/helpers/get-request.d.ts.map +1 -1
- package/dist/helpers/index.d.ts +0 -1
- package/dist/helpers/index.d.ts.map +1 -1
- package/dist/hooks/useConfig.d.ts +3 -3
- package/dist/hooks/useConfig.d.ts.map +1 -1
- package/dist/hooks/useConfig.js +7 -4
- package/dist/hooks/useNavState.js +38 -38
- package/dist/hooks/useReactiveSpec.d.ts +8 -8
- package/dist/hooks/useSidebar.d.ts.map +1 -1
- package/dist/hooks/useSidebar.js +126 -116
- package/dist/index.js +55 -59
- package/dist/libs/operation.d.ts +15 -0
- package/dist/libs/operation.d.ts.map +1 -0
- package/dist/libs/operation.js +16 -0
- package/dist/stores/useHttpClientStore.d.ts +1 -1
- package/dist/stores/useHttpClientStore.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +13 -14
- package/dist/components/Content/Tag/Endpoints.vue.d.ts.map +0 -1
- package/dist/components/Content/Tag/Endpoints.vue.js +0 -7
- package/dist/components/Content/Tag/Endpoints.vue2.js +0 -161
- package/dist/helpers/operation.d.ts +0 -14
- package/dist/helpers/operation.d.ts.map +0 -1
- package/dist/helpers/operation.js +0 -18
- package/dist/standalone/lib/html-rendering.d.ts +0 -50
- package/dist/standalone/lib/html-rendering.d.ts.map +0 -1
- package/dist/standalone/lib/html-rendering.js +0 -64
|
@@ -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 a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-2f1a12fb"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
a as default
|
|
8
8
|
};
|
|
@@ -138,7 +138,7 @@ const Ke = ["innerHTML"], We = { class: "references-header" }, je = ["aria-label
|
|
|
138
138
|
{ immediate: !0 }
|
|
139
139
|
), w(Ce, $);
|
|
140
140
|
const re = Te($);
|
|
141
|
-
w($e, re), w(we, "modal"), w(He, a
|
|
141
|
+
w($e, re), w(we, "modal"), w(He, a);
|
|
142
142
|
function B(e, t) {
|
|
143
143
|
E(
|
|
144
144
|
() => a.value[e],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClientSelector.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/ClientSelector.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ClientSelector.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/ClientSelector.vue"],"names":[],"mappings":"AA+RA,KAAK,WAAW,GAAG;IACjB,yEAAyE;IACzE,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAC;;AA4MF,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ClientSelector.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-6a409ae4"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Introduction.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-53fa9a98"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,99 +1,102 @@
|
|
|
1
|
-
import { defineComponent as V, computed as
|
|
1
|
+
import { defineComponent as V, computed as a, onMounted as $, openBlock as l, createBlock as s, unref as o, withCtx as t, createVNode as r, createElementVNode as g, createTextVNode as d, toDisplayString as f, createCommentVNode as u, renderSlot as S } from "vue";
|
|
2
2
|
import w from "github-slugger";
|
|
3
3
|
import { useConfig as N } from "../../../hooks/useConfig.js";
|
|
4
4
|
import b from "../../../features/DownloadLink/DownloadLink.vue.js";
|
|
5
5
|
import B from "./Description.vue.js";
|
|
6
6
|
import D from "../../Section/SectionContainer.vue.js";
|
|
7
7
|
import H from "../../Section/Section.vue.js";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
const
|
|
8
|
+
import L from "../../Section/SectionContent.vue.js";
|
|
9
|
+
import _ from "../../Badge/Badge.vue.js";
|
|
10
|
+
import A from "../../Section/SectionHeader.vue.js";
|
|
11
|
+
import E from "../../Section/SectionHeaderTag.vue.js";
|
|
12
|
+
import F from "../../Section/SectionColumns.vue.js";
|
|
13
|
+
import C from "../../Section/SectionColumn.vue.js";
|
|
14
|
+
const G = { class: "badges" }, I = { class: "sticky-cards" }, Y = /* @__PURE__ */ V({
|
|
15
15
|
__name: "Introduction",
|
|
16
16
|
props: {
|
|
17
17
|
info: {},
|
|
18
18
|
parsedSpec: {}
|
|
19
19
|
},
|
|
20
|
-
setup(
|
|
21
|
-
const i =
|
|
20
|
+
setup(k) {
|
|
21
|
+
const i = k, m = a(
|
|
22
22
|
() => {
|
|
23
|
-
var e,
|
|
24
|
-
return ((e = i.parsedSpec) == null ? void 0 : e.openapi) ?? ((
|
|
23
|
+
var e, n;
|
|
24
|
+
return ((e = i.parsedSpec) == null ? void 0 : e.openapi) ?? ((n = i.parsedSpec) == null ? void 0 : n.swagger) ?? "";
|
|
25
25
|
}
|
|
26
|
-
),
|
|
26
|
+
), y = new w(), h = a(() => {
|
|
27
27
|
var e;
|
|
28
|
-
return
|
|
29
|
-
}),
|
|
30
|
-
var e,
|
|
31
|
-
return typeof ((e = i.info) == null ? void 0 : e.version) == "string" ? i.info.version.toString().match(/^\d/) ? `v${i.info.version}` : i.info.version : typeof ((
|
|
32
|
-
}),
|
|
33
|
-
return $(() =>
|
|
28
|
+
return y.slug(((e = i.info) == null ? void 0 : e.title) ?? "");
|
|
29
|
+
}), p = a(() => {
|
|
30
|
+
var e, n;
|
|
31
|
+
return typeof ((e = i.info) == null ? void 0 : e.version) == "string" ? i.info.version.toString().match(/^\d/) ? `v${i.info.version}` : i.info.version : typeof ((n = i.info) == null ? void 0 : n.version) == "number" ? `v${i.info.version}` : void 0;
|
|
32
|
+
}), T = N();
|
|
33
|
+
return $(() => {
|
|
34
|
+
var e, n;
|
|
35
|
+
return (n = (e = T.value).onLoaded) == null ? void 0 : n.call(e);
|
|
36
|
+
}), (e, n) => (l(), s(o(D), null, {
|
|
34
37
|
default: t(() => [
|
|
35
|
-
|
|
38
|
+
r(o(H), { class: "introduction-section gap-12" }, {
|
|
36
39
|
default: t(() => {
|
|
37
|
-
var
|
|
40
|
+
var c, v;
|
|
38
41
|
return [
|
|
39
|
-
|
|
40
|
-
loading: !((
|
|
42
|
+
r(o(L), {
|
|
43
|
+
loading: !((c = e.info) != null && c.description) && !((v = e.info) != null && v.title)
|
|
41
44
|
}, {
|
|
42
45
|
default: t(() => [
|
|
43
|
-
|
|
44
|
-
|
|
46
|
+
g("div", G, [
|
|
47
|
+
p.value ? (l(), s(o(_), { key: 0 }, {
|
|
45
48
|
default: t(() => [
|
|
46
|
-
|
|
49
|
+
d(f(p.value), 1)
|
|
47
50
|
]),
|
|
48
51
|
_: 1
|
|
49
|
-
})) :
|
|
50
|
-
|
|
52
|
+
})) : u("", !0),
|
|
53
|
+
m.value ? (l(), s(o(_), { key: 1 }, {
|
|
51
54
|
default: t(() => [
|
|
52
|
-
|
|
55
|
+
d("OAS " + f(m.value), 1)
|
|
53
56
|
]),
|
|
54
57
|
_: 1
|
|
55
|
-
})) :
|
|
58
|
+
})) : u("", !0)
|
|
56
59
|
]),
|
|
57
|
-
|
|
60
|
+
r(o(A), {
|
|
58
61
|
loading: !e.info.title,
|
|
59
62
|
tight: ""
|
|
60
63
|
}, {
|
|
61
64
|
default: t(() => [
|
|
62
|
-
|
|
65
|
+
r(o(E), { level: 1 }, {
|
|
63
66
|
default: t(() => [
|
|
64
|
-
|
|
67
|
+
d(f(e.info.title), 1)
|
|
65
68
|
]),
|
|
66
69
|
_: 1
|
|
67
70
|
})
|
|
68
71
|
]),
|
|
69
72
|
_: 1
|
|
70
73
|
}, 8, ["loading"]),
|
|
71
|
-
|
|
72
|
-
|
|
74
|
+
r(b, { specTitle: h.value }, null, 8, ["specTitle"]),
|
|
75
|
+
r(o(F), null, {
|
|
73
76
|
default: t(() => [
|
|
74
|
-
|
|
77
|
+
r(o(C), null, {
|
|
75
78
|
default: t(() => [
|
|
76
|
-
|
|
79
|
+
r(B, {
|
|
77
80
|
value: e.info.description
|
|
78
81
|
}, null, 8, ["value"])
|
|
79
82
|
]),
|
|
80
83
|
_: 1
|
|
81
84
|
}),
|
|
82
|
-
e.$slots.aside ? (l(), s(o(
|
|
85
|
+
e.$slots.aside ? (l(), s(o(C), { key: 0 }, {
|
|
83
86
|
default: t(() => [
|
|
84
|
-
|
|
85
|
-
|
|
87
|
+
g("div", I, [
|
|
88
|
+
S(e.$slots, "aside", {}, void 0, !0)
|
|
86
89
|
])
|
|
87
90
|
]),
|
|
88
91
|
_: 3
|
|
89
|
-
})) :
|
|
92
|
+
})) : u("", !0)
|
|
90
93
|
]),
|
|
91
94
|
_: 3
|
|
92
95
|
})
|
|
93
96
|
]),
|
|
94
97
|
_: 3
|
|
95
98
|
}, 8, ["loading"]),
|
|
96
|
-
|
|
99
|
+
S(e.$slots, "after", {}, void 0, !0)
|
|
97
100
|
];
|
|
98
101
|
}),
|
|
99
102
|
_: 3
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as D, ref as v, watch as H, onMounted as K, withDirectives as M, openBlock as n, createElementBlock as f, normalizeClass as j, Fragment as g, renderList as w, createBlock as m, unref as t, withCtx as
|
|
1
|
+
import { defineComponent as D, ref as v, watch as H, onMounted as K, withDirectives as M, openBlock as n, createElementBlock as f, normalizeClass as j, Fragment as g, renderList as w, createBlock as m, unref as t, withCtx as d, createCommentVNode as T, createVNode as h, createTextVNode as F, toDisplayString as P, vShow as q } from "vue";
|
|
2
2
|
import { useActiveEntities as G } from "@scalar/api-client/store";
|
|
3
3
|
import { lazyBus as J } from "./lazyBus.js";
|
|
4
|
-
import Q from "../Tag/
|
|
4
|
+
import Q from "../Tag/TagSection.vue.js";
|
|
5
5
|
import R from "../../../features/Operation/Operation.vue.js";
|
|
6
6
|
import U from "../../Section/SectionContainer.vue.js";
|
|
7
7
|
import X from "../../Section/Section.vue.js";
|
|
@@ -33,16 +33,16 @@ const ye = /* @__PURE__ */ D({
|
|
|
33
33
|
const l = B();
|
|
34
34
|
if (l.startsWith("tag")) {
|
|
35
35
|
let o = 0;
|
|
36
|
-
const
|
|
36
|
+
const c = ((e = i.parsedSpec.tags) == null ? void 0 : e.findIndex(
|
|
37
37
|
(k) => N(k) === l
|
|
38
38
|
)) ?? 0, s = a.value.match(/tag\/([^/]+)\/([^/]+)\/(.+)/);
|
|
39
39
|
if ((s == null ? void 0 : s.length) === 4) {
|
|
40
40
|
const k = s[2], W = "/" + s[3];
|
|
41
|
-
o = (u = i.parsedSpec.tags[
|
|
41
|
+
o = (u = i.parsedSpec.tags[c]) == null ? void 0 : u.operations.findIndex(
|
|
42
42
|
({ httpVerb: $, path: A }) => k === $ && W === A
|
|
43
43
|
);
|
|
44
44
|
}
|
|
45
|
-
const p = i.parsedSpec.tags[
|
|
45
|
+
const p = i.parsedSpec.tags[c];
|
|
46
46
|
if (!p) return;
|
|
47
47
|
p.name !== "default" && (_.value = l !== a.value && l.startsWith("tag")), y.value.push({
|
|
48
48
|
...p,
|
|
@@ -52,7 +52,7 @@ const ye = /* @__PURE__ */ D({
|
|
|
52
52
|
)
|
|
53
53
|
});
|
|
54
54
|
} else if (a.value.startsWith("model")) {
|
|
55
|
-
const o = Object.keys(S(i.parsedSpec) ?? {}), [,
|
|
55
|
+
const o = Object.keys(S(i.parsedSpec) ?? {}), [, c] = a.value.toLowerCase().split("/"), s = a.value === "models" ? 0 : o.findIndex((p) => p.toLowerCase() === c);
|
|
56
56
|
if (s === -1) return;
|
|
57
57
|
I.value = o.slice(s, s + 3);
|
|
58
58
|
} else
|
|
@@ -82,7 +82,7 @@ const ye = /* @__PURE__ */ D({
|
|
|
82
82
|
spec: r.parsedSpec,
|
|
83
83
|
tag: e
|
|
84
84
|
}, {
|
|
85
|
-
default:
|
|
85
|
+
default: d(() => [
|
|
86
86
|
(n(!0), f(g, null, w(e.lazyOperations, (o) => (n(), m(t(R), {
|
|
87
87
|
key: `${o.httpVerb}-${o.operationId}`,
|
|
88
88
|
collection: t(O),
|
|
@@ -95,29 +95,29 @@ const ye = /* @__PURE__ */ D({
|
|
|
95
95
|
}, 1032, ["spec", "tag"])) : T("", !0)
|
|
96
96
|
], 64))), 128)),
|
|
97
97
|
I.value.length ? (n(), m(t(U), { key: 0 }, {
|
|
98
|
-
default:
|
|
98
|
+
default: d(() => [
|
|
99
99
|
(n(!0), f(g, null, w(I.value, (e) => (n(), m(t(X), {
|
|
100
100
|
key: e,
|
|
101
101
|
label: e
|
|
102
102
|
}, {
|
|
103
|
-
default:
|
|
103
|
+
default: d(() => {
|
|
104
104
|
var u;
|
|
105
105
|
return [
|
|
106
106
|
(u = t(S)(r.parsedSpec)) != null && u[e] ? (n(), m(t(Y), { key: 0 }, {
|
|
107
|
-
default:
|
|
107
|
+
default: d(() => {
|
|
108
108
|
var o;
|
|
109
109
|
return [
|
|
110
110
|
h(t(Z), null, {
|
|
111
|
-
default:
|
|
111
|
+
default: d(() => [
|
|
112
112
|
h(t(ee), {
|
|
113
113
|
id: t(z)({ name: e })
|
|
114
114
|
}, {
|
|
115
|
-
default:
|
|
115
|
+
default: d(() => [
|
|
116
116
|
h(t(te), { level: 2 }, {
|
|
117
|
-
default:
|
|
118
|
-
var
|
|
117
|
+
default: d(() => {
|
|
118
|
+
var c;
|
|
119
119
|
return [
|
|
120
|
-
F(P(((
|
|
120
|
+
F(P(((c = t(S)(r.parsedSpec)) == null ? void 0 : c[e]).title ?? e), 1)
|
|
121
121
|
];
|
|
122
122
|
}),
|
|
123
123
|
_: 2
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import type { Tag } from '@scalar/types/legacy';
|
|
2
2
|
type __VLS_Props = {
|
|
3
|
-
id?: string;
|
|
4
3
|
tag: Tag;
|
|
5
|
-
headerId?: string;
|
|
6
4
|
isCollapsed?: boolean;
|
|
7
5
|
};
|
|
8
6
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
7
|
export default _default;
|
|
10
|
-
//# sourceMappingURL=
|
|
8
|
+
//# sourceMappingURL=OperationsList.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OperationsList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/OperationsList.vue"],"names":[],"mappings":"AAsDA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAW/C,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,GAAG,CAAA;IACR,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AAiHF,wBAMG"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { defineComponent as f, computed as g, openBlock as r, createBlock as p, unref as t, withCtx as a, createVNode as o, createTextVNode as d, toDisplayString as C, createElementVNode as N, createElementBlock as k, Fragment as y, renderList as O, createCommentVNode as _ } from "vue";
|
|
2
|
+
import B from "../../ScreenReader.vue.js";
|
|
3
|
+
import { useNavState as V } from "../../../hooks/useNavState.js";
|
|
4
|
+
import v from "./OperationsListItem.vue.js";
|
|
5
|
+
import L from "../../Card/Card.vue.js";
|
|
6
|
+
import S from "../../Card/CardHeader.vue.js";
|
|
7
|
+
import b from "../../Card/CardContent.vue.js";
|
|
8
|
+
const h = ["aria-label"], T = /* @__PURE__ */ f({
|
|
9
|
+
__name: "OperationsList",
|
|
10
|
+
props: {
|
|
11
|
+
tag: {},
|
|
12
|
+
isCollapsed: { type: Boolean }
|
|
13
|
+
},
|
|
14
|
+
setup(u) {
|
|
15
|
+
const s = u, { getOperationId: c } = V(), n = g(() => s.tag["x-displayName"] ?? s.tag.name);
|
|
16
|
+
return (e, l) => {
|
|
17
|
+
var i;
|
|
18
|
+
return ((i = e.tag.operations) == null ? void 0 : i.length) > 0 ? (r(), p(t(L), {
|
|
19
|
+
key: 0,
|
|
20
|
+
class: "scalar-card-sticky"
|
|
21
|
+
}, {
|
|
22
|
+
default: a(() => [
|
|
23
|
+
o(t(S), { muted: "" }, {
|
|
24
|
+
default: a(() => [
|
|
25
|
+
o(B, null, {
|
|
26
|
+
default: a(() => [
|
|
27
|
+
d(C(n.value), 1)
|
|
28
|
+
]),
|
|
29
|
+
_: 1
|
|
30
|
+
}),
|
|
31
|
+
l[0] || (l[0] = d(" Operations "))
|
|
32
|
+
]),
|
|
33
|
+
_: 1
|
|
34
|
+
}),
|
|
35
|
+
o(t(b), {
|
|
36
|
+
class: "custom-scroll",
|
|
37
|
+
muted: ""
|
|
38
|
+
}, {
|
|
39
|
+
default: a(() => [
|
|
40
|
+
N("ul", {
|
|
41
|
+
"aria-label": `${n.value} endpoints`,
|
|
42
|
+
class: "endpoints"
|
|
43
|
+
}, [
|
|
44
|
+
(r(!0), k(y, null, O(e.tag.operations, (m) => (r(), p(v, {
|
|
45
|
+
key: t(c)(m, e.tag),
|
|
46
|
+
isCollapsed: e.isCollapsed,
|
|
47
|
+
tag: e.tag,
|
|
48
|
+
transformedOperation: m
|
|
49
|
+
}, null, 8, ["isCollapsed", "tag", "transformedOperation"]))), 128))
|
|
50
|
+
], 8, h)
|
|
51
|
+
]),
|
|
52
|
+
_: 1
|
|
53
|
+
})
|
|
54
|
+
]),
|
|
55
|
+
_: 1
|
|
56
|
+
})) : _("", !0);
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
export {
|
|
61
|
+
T as default
|
|
62
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Tag, TransformedOperation } from '@scalar/types/legacy';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
transformedOperation: TransformedOperation;
|
|
4
|
+
tag: Tag;
|
|
5
|
+
isCollapsed?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
export default _default;
|
|
9
|
+
//# sourceMappingURL=OperationsListItem.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OperationsListItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/OperationsListItem.vue"],"names":[],"mappings":"AAiIA,OAAO,KAAK,EAAE,GAAG,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAarE,KAAK,WAAW,GAAG;IACjB,oBAAoB,EAAE,oBAAoB,CAAA;IAC1C,GAAG,EAAE,GAAG,CAAA;IACR,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AAkJF,wBAMG"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { defineComponent as u, computed as h, unref as t, openBlock as s, createElementBlock as O, createBlock as g, withCtx as k, createTextVNode as C, toDisplayString as i, createCommentVNode as p, createElementVNode as m, withModifiers as v, createVNode as y, normalizeClass as B } from "vue";
|
|
2
|
+
import { useWorkspace as N } from "@scalar/api-client/store";
|
|
3
|
+
import { getPointer as V } from "../../../blocks/helpers/getPointer.js";
|
|
4
|
+
import { useBlockProps as S } from "../../../blocks/hooks/useBlockProps.js";
|
|
5
|
+
import { useNavState as w } from "../../../hooks/useNavState.js";
|
|
6
|
+
import { useSidebar as H } from "../../../hooks/useSidebar.js";
|
|
7
|
+
import { isOperationDeprecated as I } from "../../../libs/operation.js";
|
|
8
|
+
import T from "../../Section/SectionHeaderTag.vue.js";
|
|
9
|
+
import $ from "../../HttpMethod/HttpMethod.vue.js";
|
|
10
|
+
const b = ["href"], F = /* @__PURE__ */ u({
|
|
11
|
+
__name: "OperationsListItem",
|
|
12
|
+
props: {
|
|
13
|
+
transformedOperation: {},
|
|
14
|
+
tag: {},
|
|
15
|
+
isCollapsed: { type: Boolean }
|
|
16
|
+
},
|
|
17
|
+
setup(a) {
|
|
18
|
+
const { getOperationId: n } = w(), { scrollToOperation: l } = H(), d = async (e) => {
|
|
19
|
+
const o = n(e, a.tag);
|
|
20
|
+
l(o);
|
|
21
|
+
}, c = N(), { operation: r } = S({
|
|
22
|
+
store: c,
|
|
23
|
+
location: V([
|
|
24
|
+
"paths",
|
|
25
|
+
a.transformedOperation.path,
|
|
26
|
+
a.transformedOperation.httpVerb.toLowerCase()
|
|
27
|
+
])
|
|
28
|
+
}), f = h(() => {
|
|
29
|
+
var e, o;
|
|
30
|
+
return ((e = r.value) == null ? void 0 : e.summary) || ((o = r.value) == null ? void 0 : o.path);
|
|
31
|
+
});
|
|
32
|
+
return (e, o) => t(r) ? (s(), O("li", {
|
|
33
|
+
key: t(n)(e.transformedOperation, e.tag),
|
|
34
|
+
class: "contents"
|
|
35
|
+
}, [
|
|
36
|
+
e.isCollapsed ? (s(), g(t(T), {
|
|
37
|
+
key: 0,
|
|
38
|
+
class: "sr-only",
|
|
39
|
+
level: 3
|
|
40
|
+
}, {
|
|
41
|
+
default: k(() => [
|
|
42
|
+
C(i(f.value) + " (Hidden) ", 1)
|
|
43
|
+
]),
|
|
44
|
+
_: 1
|
|
45
|
+
})) : p("", !0),
|
|
46
|
+
m("a", {
|
|
47
|
+
class: "endpoint",
|
|
48
|
+
href: `#${t(n)(e.transformedOperation, e.tag)}`,
|
|
49
|
+
onClick: o[0] || (o[0] = v((D) => d(e.transformedOperation), ["prevent"]))
|
|
50
|
+
}, [
|
|
51
|
+
y(t($), {
|
|
52
|
+
class: "endpoint-method",
|
|
53
|
+
method: t(r).method
|
|
54
|
+
}, null, 8, ["method"]),
|
|
55
|
+
m("span", {
|
|
56
|
+
class: B(["endpoint-path", {
|
|
57
|
+
deprecated: t(I)(t(r))
|
|
58
|
+
}])
|
|
59
|
+
}, i(t(r).path), 3)
|
|
60
|
+
], 8, b)
|
|
61
|
+
])) : p("", !0);
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
export {
|
|
65
|
+
F as default
|
|
66
|
+
};
|
|
@@ -1,70 +1,10 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import { nextTick } from 'vue';
|
|
1
|
+
import type { Tag } from '@scalar/types/legacy';
|
|
3
2
|
type __VLS_Props = {
|
|
4
3
|
id?: string;
|
|
5
4
|
tag: Tag;
|
|
6
|
-
|
|
5
|
+
headerId?: string;
|
|
6
|
+
isCollapsed?: boolean;
|
|
7
7
|
};
|
|
8
|
-
declare
|
|
9
|
-
attrs: Partial<{}>;
|
|
10
|
-
slots: {
|
|
11
|
-
default?(_: {}): any;
|
|
12
|
-
};
|
|
13
|
-
refs: {
|
|
14
|
-
sectionContainerRef: ({
|
|
15
|
-
$: import("vue").ComponentInternalInstance;
|
|
16
|
-
$data: {};
|
|
17
|
-
$props: Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
|
|
18
|
-
$attrs: {
|
|
19
|
-
[x: string]: unknown;
|
|
20
|
-
};
|
|
21
|
-
$refs: {
|
|
22
|
-
[x: string]: unknown;
|
|
23
|
-
};
|
|
24
|
-
$slots: Readonly<{
|
|
25
|
-
[name: string]: import("vue").Slot<any> | undefined;
|
|
26
|
-
}>;
|
|
27
|
-
$root: import("vue").ComponentPublicInstance | null;
|
|
28
|
-
$parent: import("vue").ComponentPublicInstance | null;
|
|
29
|
-
$host: Element | null;
|
|
30
|
-
$emit: (event: string, ...args: any[]) => void;
|
|
31
|
-
$el: HTMLDivElement;
|
|
32
|
-
$options: import("vue").ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
|
|
33
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
34
|
-
created?: (() => void) | (() => void)[];
|
|
35
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
36
|
-
mounted?: (() => void) | (() => void)[];
|
|
37
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
38
|
-
updated?: (() => void) | (() => void)[];
|
|
39
|
-
activated?: (() => void) | (() => void)[];
|
|
40
|
-
deactivated?: (() => void) | (() => void)[];
|
|
41
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
42
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
43
|
-
destroyed?: (() => void) | (() => void)[];
|
|
44
|
-
unmounted?: (() => void) | (() => void)[];
|
|
45
|
-
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
46
|
-
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
47
|
-
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
48
|
-
};
|
|
49
|
-
$forceUpdate: () => void;
|
|
50
|
-
$nextTick: typeof nextTick;
|
|
51
|
-
$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;
|
|
52
|
-
} & Readonly<{}> & Omit<Readonly<{}> & Readonly<{}>, never> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
|
|
53
|
-
$slots: {
|
|
54
|
-
default?(_: {}): any;
|
|
55
|
-
};
|
|
56
|
-
}) | null;
|
|
57
|
-
contentsRef: HTMLDivElement;
|
|
58
|
-
};
|
|
59
|
-
rootEl: HTMLDivElement;
|
|
60
|
-
};
|
|
61
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
62
|
-
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
63
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
8
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
64
9
|
export default _default;
|
|
65
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
66
|
-
new (): {
|
|
67
|
-
$slots: S;
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
10
|
//# sourceMappingURL=Tag.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tag.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/Tag.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Tag.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/Tag.vue"],"names":[],"mappings":"AA+DA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAmB/C,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,GAAG,CAAA;IACR,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AA2JF,wBAOG"}
|
|
@@ -1,7 +1,89 @@
|
|
|
1
|
-
import o from "
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import { defineComponent as s, computed as c, openBlock as n, createBlock as i, unref as e, withCtx as o, createVNode as t, createTextVNode as d, toDisplayString as g, createCommentVNode as C } from "vue";
|
|
2
|
+
import { ScalarMarkdown as S } from "@scalar/components";
|
|
3
|
+
import v from "../../ScreenReader.vue.js";
|
|
4
|
+
import { useNavState as N } from "../../../hooks/useNavState.js";
|
|
5
|
+
import _ from "./OperationsList.vue.js";
|
|
6
|
+
import h from "../../Section/Section.vue.js";
|
|
7
|
+
import k from "../../Section/SectionHeader.vue.js";
|
|
8
|
+
import y from "../../Anchor/Anchor.vue.js";
|
|
9
|
+
import I from "../../Section/SectionHeaderTag.vue.js";
|
|
10
|
+
import T from "../../Section/SectionContent.vue.js";
|
|
11
|
+
import w from "../../Section/SectionColumns.vue.js";
|
|
12
|
+
import m from "../../Section/SectionColumn.vue.js";
|
|
13
|
+
const q = /* @__PURE__ */ s({
|
|
14
|
+
__name: "Tag",
|
|
15
|
+
props: {
|
|
16
|
+
id: {},
|
|
17
|
+
tag: {},
|
|
18
|
+
headerId: {},
|
|
19
|
+
isCollapsed: { type: Boolean }
|
|
20
|
+
},
|
|
21
|
+
setup(p) {
|
|
22
|
+
const l = p, { getTagId: u } = N(), f = c(() => l.tag["x-displayName"] ?? l.tag.name);
|
|
23
|
+
return (a, r) => (n(), i(e(h), {
|
|
24
|
+
id: a.id,
|
|
25
|
+
label: a.tag.name.toUpperCase(),
|
|
26
|
+
role: "none"
|
|
27
|
+
}, {
|
|
28
|
+
default: o(() => [
|
|
29
|
+
t(e(k), null, {
|
|
30
|
+
default: o(() => [
|
|
31
|
+
t(e(y), {
|
|
32
|
+
id: e(u)(a.tag)
|
|
33
|
+
}, {
|
|
34
|
+
default: o(() => [
|
|
35
|
+
t(e(I), {
|
|
36
|
+
id: a.headerId,
|
|
37
|
+
level: 2
|
|
38
|
+
}, {
|
|
39
|
+
default: o(() => [
|
|
40
|
+
d(g(f.value) + " ", 1),
|
|
41
|
+
a.isCollapsed ? (n(), i(v, { key: 0 }, {
|
|
42
|
+
default: o(() => r[0] || (r[0] = [
|
|
43
|
+
d(" (Collapsed)")
|
|
44
|
+
])),
|
|
45
|
+
_: 1
|
|
46
|
+
})) : C("", !0)
|
|
47
|
+
]),
|
|
48
|
+
_: 1
|
|
49
|
+
}, 8, ["id"])
|
|
50
|
+
]),
|
|
51
|
+
_: 1
|
|
52
|
+
}, 8, ["id"])
|
|
53
|
+
]),
|
|
54
|
+
_: 1
|
|
55
|
+
}),
|
|
56
|
+
t(e(T), null, {
|
|
57
|
+
default: o(() => [
|
|
58
|
+
t(e(w), null, {
|
|
59
|
+
default: o(() => [
|
|
60
|
+
t(e(m), null, {
|
|
61
|
+
default: o(() => [
|
|
62
|
+
t(e(S), {
|
|
63
|
+
clamp: a.isCollapsed ? "7" : !1,
|
|
64
|
+
value: a.tag.description,
|
|
65
|
+
withImages: ""
|
|
66
|
+
}, null, 8, ["clamp", "value"])
|
|
67
|
+
]),
|
|
68
|
+
_: 1
|
|
69
|
+
}),
|
|
70
|
+
t(e(m), null, {
|
|
71
|
+
default: o(() => [
|
|
72
|
+
t(_, { tag: a.tag }, null, 8, ["tag"])
|
|
73
|
+
]),
|
|
74
|
+
_: 1
|
|
75
|
+
})
|
|
76
|
+
]),
|
|
77
|
+
_: 1
|
|
78
|
+
})
|
|
79
|
+
]),
|
|
80
|
+
_: 1
|
|
81
|
+
})
|
|
82
|
+
]),
|
|
83
|
+
_: 1
|
|
84
|
+
}, 8, ["id", "label"]));
|
|
85
|
+
}
|
|
86
|
+
});
|
|
5
87
|
export {
|
|
6
|
-
|
|
88
|
+
q as default
|
|
7
89
|
};
|