@scalar/api-reference 1.25.52 → 1.25.53
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 +32 -0
- package/README.md +3 -2
- package/dist/browser/standalone.js +12953 -12838
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/Anchor/Anchor.vue.d.ts.map +1 -1
- package/dist/components/Anchor/Anchor.vue.js +1 -1
- package/dist/components/Anchor/Anchor.vue2.js +9 -9
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +2 -2
- package/dist/components/ApiReferenceLayout.vue2.js +26 -31
- package/dist/components/Card/CardTab.vue.d.ts.map +1 -1
- package/dist/components/Card/CardTab.vue.js +2 -2
- package/dist/components/Card/CardTab.vue2.js +3 -3
- package/dist/components/Content/Operation/ParameterItem.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/ParameterItem.vue.js +4 -4
- package/dist/components/Content/Operation/ParameterItem.vue2.js +72 -54
- 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 +22 -15
- package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/Schema.vue.js +3 -3
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
- package/dist/components/Content/Schema/SchemaProperty.vue2.js +114 -88
- package/dist/components/Content/Tag/Endpoints.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/Endpoints.vue.js +2 -2
- package/dist/components/Content/Tag/Endpoints.vue2.js +79 -64
- package/dist/components/Content/Tag/Tag.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/Tag.vue.js +3 -3
- package/dist/components/Content/Tag/Tag.vue2.js +34 -21
- package/dist/components/Section/CompactSection.vue.d.ts.map +1 -1
- package/dist/components/Section/CompactSection.vue.js +1 -1
- package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts.map +1 -1
- package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts +3 -9
- package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/features/ApiClientModal/ApiClientModal.vue.js +27 -33
- package/dist/features/ApiClientModal/useApiClient.d.ts +140 -12
- package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerUrlSelect.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerUrlSelect.vue.js +4 -4
- package/dist/features/BaseUrl/ServerUrlSelect.vue2.js +11 -9
- package/dist/features/ExampleRequest/ExamplePicker.vue.d.ts.map +1 -1
- package/dist/features/ExampleRequest/ExamplePicker.vue.js +3 -3
- package/dist/features/ExampleRequest/ExamplePicker.vue2.js +28 -21
- 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 +139 -119
- package/dist/features/ExampleRequest/TextSelect.vue.d.ts +2 -0
- package/dist/features/ExampleRequest/TextSelect.vue.d.ts.map +1 -1
- package/dist/features/ExampleRequest/TextSelect.vue.js +22 -19
- package/dist/features/ExampleResponses/ExampleResponse.vue.js +3 -3
- package/dist/features/ExampleResponses/ExampleResponses.vue.d.ts.map +1 -1
- package/dist/features/ExampleResponses/ExampleResponses.vue.js +1 -1
- package/dist/features/ExampleResponses/ExampleResponses.vue2.js +88 -81
- package/dist/index.js +1 -1
- package/dist/legacy/components/SecuritySchemeSelector.vue.d.ts.map +1 -1
- package/dist/legacy/components/SecuritySchemeSelector.vue.js +3 -3
- package/dist/legacy/components/SecuritySchemeSelector.vue2.js +30 -25
- package/dist/style.css +1 -1
- package/package.json +10 -9
|
@@ -1,41 +1,42 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
1
|
+
import { defineComponent as A, openBlock as l, createElementBlock as t, normalizeClass as U, createVNode as s, createSlots as L, withCtx as v, createTextVNode as Z, toDisplayString as i, unref as u, createCommentVNode as r, createElementVNode as c, Fragment as n, renderList as d, createBlock as k } from "vue";
|
|
2
|
+
import { Disclosure as M, DisclosurePanel as V, DisclosureButton as $ } from "@headlessui/vue";
|
|
3
|
+
import { ScalarMarkdown as g, ScalarIcon as G } from "@scalar/components";
|
|
4
|
+
import y from "./Schema.vue.js";
|
|
5
|
+
import J from "./SchemaPropertyHeading.vue.js";
|
|
6
|
+
const K = {
|
|
6
7
|
key: 0,
|
|
7
8
|
class: "property-description"
|
|
8
|
-
},
|
|
9
|
+
}, Q = {
|
|
9
10
|
key: 1,
|
|
10
11
|
class: "property-description"
|
|
11
|
-
},
|
|
12
|
+
}, W = {
|
|
12
13
|
key: 2,
|
|
13
14
|
class: "property-example custom-scroll"
|
|
14
|
-
},
|
|
15
|
+
}, X = { class: "property-example-value" }, Y = {
|
|
15
16
|
key: 3,
|
|
16
17
|
class: "property-example custom-scroll"
|
|
17
|
-
},
|
|
18
|
+
}, _ = { class: "property-example-label" }, x = {
|
|
18
19
|
key: 4,
|
|
19
20
|
class: "property-enum"
|
|
20
|
-
},
|
|
21
|
+
}, ee = {
|
|
21
22
|
key: 0,
|
|
22
23
|
class: "property-list"
|
|
23
|
-
},
|
|
24
|
+
}, le = { class: "property-heading" }, te = { class: "property-name" }, oe = { class: "property-description" }, ae = {
|
|
24
25
|
key: 1,
|
|
25
26
|
class: "property-enum-values"
|
|
26
|
-
},
|
|
27
|
+
}, re = {
|
|
27
28
|
key: 5,
|
|
28
29
|
class: "children"
|
|
29
|
-
},
|
|
30
|
+
}, se = {
|
|
30
31
|
key: 0,
|
|
31
32
|
class: "children"
|
|
32
|
-
},
|
|
33
|
+
}, ne = {
|
|
33
34
|
key: 0,
|
|
34
35
|
class: "property-rule"
|
|
35
|
-
},
|
|
36
|
+
}, ie = {
|
|
36
37
|
key: 1,
|
|
37
38
|
class: "property-rule"
|
|
38
|
-
},
|
|
39
|
+
}, ye = /* @__PURE__ */ A({
|
|
39
40
|
__name: "SchemaProperty",
|
|
40
41
|
props: {
|
|
41
42
|
value: {},
|
|
@@ -46,8 +47,8 @@ const $ = {
|
|
|
46
47
|
description: {},
|
|
47
48
|
additional: { type: Boolean }
|
|
48
49
|
},
|
|
49
|
-
setup(
|
|
50
|
-
const
|
|
50
|
+
setup(pe) {
|
|
51
|
+
const b = {
|
|
51
52
|
integer: {
|
|
52
53
|
_default: "Integer numbers.",
|
|
53
54
|
int32: "Signed 32-bit integers (commonly used integer type).",
|
|
@@ -60,116 +61,141 @@ const $ = {
|
|
|
60
61
|
byte: "base64-encoded characters, for example, U3dhZ2dlciByb2Nrcw==",
|
|
61
62
|
binary: "binary data, used to describe files"
|
|
62
63
|
}
|
|
63
|
-
},
|
|
64
|
-
return
|
|
65
|
-
},
|
|
66
|
-
return !e || !
|
|
67
|
-
},
|
|
68
|
-
var
|
|
69
|
-
return (e == null ? void 0 : e.enum) || ((
|
|
70
|
-
},
|
|
71
|
-
return (e,
|
|
72
|
-
var
|
|
64
|
+
}, S = function(e, a) {
|
|
65
|
+
return a != null && a.properties || a != null && a.additionalProperties ? null : e || (a == null ? void 0 : a.description) || null;
|
|
66
|
+
}, B = function(e) {
|
|
67
|
+
return !e || !b[e.type] ? null : b[e.type][e.format || "_default"];
|
|
68
|
+
}, m = function(e) {
|
|
69
|
+
var a;
|
|
70
|
+
return (e == null ? void 0 : e.enum) || ((a = e == null ? void 0 : e.items) == null ? void 0 : a.enum) || [];
|
|
71
|
+
}, z = ["oneOf", "anyOf", "allOf", "not"];
|
|
72
|
+
return (e, a) => {
|
|
73
|
+
var D, C, E, P, j, w, N, O, q, F, I, H;
|
|
73
74
|
return l(), t("div", {
|
|
74
|
-
class:
|
|
75
|
+
class: U(["property", [
|
|
75
76
|
`property--level-${e.level}`,
|
|
76
77
|
{
|
|
77
78
|
"property--compact": e.compact,
|
|
78
|
-
"property--deprecated": (
|
|
79
|
+
"property--deprecated": (D = e.value) == null ? void 0 : D.deprecated
|
|
79
80
|
}
|
|
80
81
|
]])
|
|
81
82
|
}, [
|
|
82
|
-
|
|
83
|
+
s(J, {
|
|
83
84
|
additional: e.additional,
|
|
84
|
-
enum:
|
|
85
|
+
enum: m(e.value).length > 1,
|
|
85
86
|
required: e.required,
|
|
86
87
|
value: e.value
|
|
87
|
-
},
|
|
88
|
+
}, L({ _: 2 }, [
|
|
88
89
|
e.name ? {
|
|
89
90
|
name: "name",
|
|
90
|
-
fn:
|
|
91
|
-
|
|
91
|
+
fn: v(() => [
|
|
92
|
+
Z(i(e.name), 1)
|
|
92
93
|
]),
|
|
93
94
|
key: "0"
|
|
94
95
|
} : void 0
|
|
95
96
|
]), 1032, ["additional", "enum", "required", "value"]),
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
value:
|
|
97
|
+
S(e.description, e.value) ? (l(), t("div", K, [
|
|
98
|
+
s(u(g), {
|
|
99
|
+
value: S(e.description, e.value)
|
|
99
100
|
}, null, 8, ["value"])
|
|
100
|
-
])) :
|
|
101
|
-
|
|
102
|
-
value:
|
|
101
|
+
])) : B(e.value) ? (l(), t("div", Q, [
|
|
102
|
+
s(u(g), {
|
|
103
|
+
value: B(e.value) || ""
|
|
103
104
|
}, null, 8, ["value"])
|
|
104
|
-
])) :
|
|
105
|
-
(
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
])) :
|
|
109
|
-
(
|
|
110
|
-
|
|
111
|
-
(l(!0), t(
|
|
112
|
-
key:
|
|
105
|
+
])) : r("", !0),
|
|
106
|
+
(C = e.value) != null && C.example || (P = (E = e.value) == null ? void 0 : E.items) != null && P.example ? (l(), t("div", W, [
|
|
107
|
+
a[0] || (a[0] = c("span", { class: "property-example-label" }, "Example", -1)),
|
|
108
|
+
c("code", X, i(e.value.example || ((j = e.value) == null ? void 0 : j.items.example)), 1)
|
|
109
|
+
])) : r("", !0),
|
|
110
|
+
(w = e.value) != null && w.examples && typeof e.value.examples == "object" && Object.keys(e.value.examples).length > 0 ? (l(), t("div", Y, [
|
|
111
|
+
c("span", _, i(Object.keys(e.value.examples).length === 1 ? "Example" : "Examples"), 1),
|
|
112
|
+
(l(!0), t(n, null, d(e.value.examples, (o, p) => (l(), t("code", {
|
|
113
|
+
key: p,
|
|
113
114
|
class: "property-example-value"
|
|
114
|
-
}, i(
|
|
115
|
-
])) :
|
|
116
|
-
((N =
|
|
117
|
-
(O = e.value) != null && O["x-enumDescriptions"] ? (l(), t("div",
|
|
118
|
-
(l(!0), t(
|
|
119
|
-
key:
|
|
115
|
+
}, i(o), 1))), 128))
|
|
116
|
+
])) : r("", !0),
|
|
117
|
+
((N = m(e.value)) == null ? void 0 : N.length) > 1 ? (l(), t("div", x, [
|
|
118
|
+
(O = e.value) != null && O["x-enumDescriptions"] ? (l(), t("div", ee, [
|
|
119
|
+
(l(!0), t(n, null, d(m(e.value), (o) => (l(), t("div", {
|
|
120
|
+
key: o,
|
|
120
121
|
class: "property"
|
|
121
122
|
}, [
|
|
122
|
-
|
|
123
|
-
|
|
123
|
+
c("div", le, [
|
|
124
|
+
c("div", te, i(o), 1)
|
|
124
125
|
]),
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
value: e.value["x-enumDescriptions"][
|
|
126
|
+
c("div", oe, [
|
|
127
|
+
s(u(g), {
|
|
128
|
+
value: e.value["x-enumDescriptions"][o]
|
|
128
129
|
}, null, 8, ["value"])
|
|
129
130
|
])
|
|
130
131
|
]))), 128))
|
|
131
|
-
])) : (l(), t("ul",
|
|
132
|
-
(l(!0), t(
|
|
133
|
-
key:
|
|
132
|
+
])) : (l(), t("ul", ae, [
|
|
133
|
+
(l(!0), t(n, null, d(m(e.value).slice(0, 4), (o) => (l(), t("li", {
|
|
134
|
+
key: o,
|
|
134
135
|
class: "property-enum-value"
|
|
135
|
-
}, i(
|
|
136
|
+
}, i(o), 1))), 128)),
|
|
137
|
+
m(e.value).length > 4 ? (l(), k(u(M), { key: 0 }, {
|
|
138
|
+
default: v(({ open: o }) => [
|
|
139
|
+
s(u(V), null, {
|
|
140
|
+
default: v(() => [
|
|
141
|
+
(l(!0), t(n, null, d(m(e.value).slice(4), (p) => (l(), t("li", {
|
|
142
|
+
key: p,
|
|
143
|
+
class: "property-enum-value"
|
|
144
|
+
}, i(p), 1))), 128))
|
|
145
|
+
]),
|
|
146
|
+
_: 1
|
|
147
|
+
}),
|
|
148
|
+
s(u($), { class: "enum-toggle-button" }, {
|
|
149
|
+
default: v(() => [
|
|
150
|
+
s(u(G), {
|
|
151
|
+
class: U(["enum-toggle-button-icon h-2.5", { "enum-toggle-button-icon--open": o }]),
|
|
152
|
+
icon: "Add",
|
|
153
|
+
thickness: "3"
|
|
154
|
+
}, null, 8, ["class"]),
|
|
155
|
+
Z(" " + i(o ? "Hide values" : "Show all values"), 1)
|
|
156
|
+
]),
|
|
157
|
+
_: 2
|
|
158
|
+
}, 1024)
|
|
159
|
+
]),
|
|
160
|
+
_: 1
|
|
161
|
+
})) : r("", !0)
|
|
136
162
|
]))
|
|
137
|
-
])) :
|
|
138
|
-
((
|
|
139
|
-
|
|
163
|
+
])) : r("", !0),
|
|
164
|
+
((q = e.value) == null ? void 0 : q.type) === "object" && ((F = e.value) != null && F.properties || (I = e.value) != null && I.additionalProperties) ? (l(), t("div", re, [
|
|
165
|
+
s(y, {
|
|
140
166
|
compact: e.compact,
|
|
141
167
|
level: e.level + 1,
|
|
142
168
|
value: e.value
|
|
143
169
|
}, null, 8, ["compact", "level", "value"])
|
|
144
|
-
])) :
|
|
145
|
-
(
|
|
146
|
-
["object"].includes(e.value.items.type) ? (l(), t("div",
|
|
147
|
-
|
|
170
|
+
])) : r("", !0),
|
|
171
|
+
(H = e.value) != null && H.items ? (l(), t(n, { key: 6 }, [
|
|
172
|
+
["object"].includes(e.value.items.type) ? (l(), t("div", se, [
|
|
173
|
+
s(y, {
|
|
148
174
|
compact: e.compact,
|
|
149
175
|
level: e.level + 1,
|
|
150
176
|
value: e.value.items
|
|
151
177
|
}, null, 8, ["compact", "level", "value"])
|
|
152
|
-
])) :
|
|
153
|
-
], 64)) :
|
|
154
|
-
(l(), t(
|
|
155
|
-
var
|
|
156
|
-
return l(), t(
|
|
157
|
-
(
|
|
158
|
-
(l(!0), t(
|
|
159
|
-
key:
|
|
178
|
+
])) : r("", !0)
|
|
179
|
+
], 64)) : r("", !0),
|
|
180
|
+
(l(), t(n, null, d(z, (o) => {
|
|
181
|
+
var p, R, T;
|
|
182
|
+
return l(), t(n, { key: o }, [
|
|
183
|
+
(p = e.value) != null && p[o] ? (l(), t("div", ne, [
|
|
184
|
+
(l(!0), t(n, null, d(e.value[o], (f, h) => (l(), k(y, {
|
|
185
|
+
key: h,
|
|
160
186
|
compact: e.compact,
|
|
161
187
|
level: e.level + 1,
|
|
162
|
-
value:
|
|
188
|
+
value: f
|
|
163
189
|
}, null, 8, ["compact", "level", "value"]))), 128))
|
|
164
|
-
])) :
|
|
165
|
-
(
|
|
166
|
-
(l(!0), t(
|
|
167
|
-
key:
|
|
190
|
+
])) : r("", !0),
|
|
191
|
+
(T = (R = e.value) == null ? void 0 : R.items) != null && T[o] && e.level < 3 ? (l(), t("div", ie, [
|
|
192
|
+
(l(!0), t(n, null, d(e.value.items[o], (f, h) => (l(), k(y, {
|
|
193
|
+
key: h,
|
|
168
194
|
compact: e.compact,
|
|
169
195
|
level: e.level + 1,
|
|
170
|
-
value:
|
|
196
|
+
value: f
|
|
171
197
|
}, null, 8, ["compact", "level", "value"]))), 128))
|
|
172
|
-
])) :
|
|
198
|
+
])) : r("", !0)
|
|
173
199
|
], 64);
|
|
174
200
|
}), 64))
|
|
175
201
|
], 2);
|
|
@@ -177,5 +203,5 @@ const $ = {
|
|
|
177
203
|
}
|
|
178
204
|
});
|
|
179
205
|
export {
|
|
180
|
-
|
|
206
|
+
ye as default
|
|
181
207
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Endpoints.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/Endpoints.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Endpoints.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/Endpoints.vue"],"names":[],"mappings":"AA2IA,OAAO,KAAK,EAAE,GAAG,EAAwB,MAAM,sBAAsB,CAAA;;SAkBxC,MAAM;SAAO,GAAG;kBAAgB,OAAO;;SAAvC,MAAM;SAAO,GAAG;kBAAgB,OAAO;;AAmSpE,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Endpoints.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1c92eacd"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
c as default
|
|
7
7
|
};
|
|
@@ -1,54 +1,55 @@
|
|
|
1
|
-
import { defineComponent as y, openBlock as n, createBlock as
|
|
2
|
-
import { ScalarMarkdown as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import {
|
|
15
|
-
|
|
1
|
+
import { defineComponent as y, computed as N, openBlock as n, createBlock as g, unref as e, withCtx as a, createVNode as o, createTextVNode as m, toDisplayString as p, createElementVNode as c, createElementBlock as C, Fragment as b, renderList as V, withModifiers as w, normalizeClass as B, createCommentVNode as E } from "vue";
|
|
2
|
+
import { ScalarMarkdown as I } from "@scalar/components";
|
|
3
|
+
import $ from "../../ScreenReader.vue.js";
|
|
4
|
+
import H from "../../Section/Section.vue.js";
|
|
5
|
+
import T from "../../Section/SectionContent.vue.js";
|
|
6
|
+
import M from "../../Section/SectionColumns.vue.js";
|
|
7
|
+
import h from "../../Section/SectionColumn.vue.js";
|
|
8
|
+
import O from "../../Section/SectionHeader.vue.js";
|
|
9
|
+
import z from "../../Anchor/Anchor.vue.js";
|
|
10
|
+
import A from "../../Card/Card.vue.js";
|
|
11
|
+
import D from "../../Card/CardHeader.vue.js";
|
|
12
|
+
import F from "../../Card/CardContent.vue.js";
|
|
13
|
+
import L from "../../HttpMethod/HttpMethod.vue.js";
|
|
14
|
+
import { useSidebar as R } from "../../../hooks/useSidebar.js";
|
|
15
|
+
import { useNavState as U } from "../../../hooks/useNavState.js";
|
|
16
|
+
const j = ["aria-label"], q = ["href", "onClick"], ne = /* @__PURE__ */ y({
|
|
16
17
|
__name: "Endpoints",
|
|
17
18
|
props: {
|
|
18
19
|
id: {},
|
|
19
20
|
tag: {},
|
|
20
21
|
isCollapsed: { type: Boolean }
|
|
21
22
|
},
|
|
22
|
-
setup(
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
k(
|
|
23
|
+
setup(_) {
|
|
24
|
+
const s = _, { getOperationId: i, getTagId: S } = U(), { scrollToOperation: k } = R(), d = N(() => s.tag["x-displayName"] ?? s.tag.name), v = async (t) => {
|
|
25
|
+
const r = i(t, s.tag);
|
|
26
|
+
k(r);
|
|
26
27
|
};
|
|
27
|
-
return (t,
|
|
28
|
+
return (t, r) => (n(), g(e(H), {
|
|
28
29
|
id: t.id,
|
|
29
30
|
label: t.tag.name.toUpperCase()
|
|
30
31
|
}, {
|
|
31
|
-
default:
|
|
32
|
-
|
|
33
|
-
default:
|
|
34
|
-
|
|
35
|
-
default:
|
|
36
|
-
|
|
37
|
-
default:
|
|
38
|
-
|
|
39
|
-
default:
|
|
40
|
-
|
|
41
|
-
id: e(
|
|
32
|
+
default: a(() => [
|
|
33
|
+
o(e(T), null, {
|
|
34
|
+
default: a(() => [
|
|
35
|
+
o(e(M), null, {
|
|
36
|
+
default: a(() => [
|
|
37
|
+
o(e(h), null, {
|
|
38
|
+
default: a(() => [
|
|
39
|
+
o(e(O), { level: 2 }, {
|
|
40
|
+
default: a(() => [
|
|
41
|
+
o(e(z), {
|
|
42
|
+
id: e(S)(t.tag)
|
|
42
43
|
}, {
|
|
43
|
-
default:
|
|
44
|
-
p(
|
|
44
|
+
default: a(() => [
|
|
45
|
+
m(p(d.value), 1)
|
|
45
46
|
]),
|
|
46
47
|
_: 1
|
|
47
48
|
}, 8, ["id"])
|
|
48
49
|
]),
|
|
49
50
|
_: 1
|
|
50
51
|
}),
|
|
51
|
-
|
|
52
|
+
o(e(I), {
|
|
52
53
|
clamp: t.isCollapsed ? "7" : !1,
|
|
53
54
|
value: t.tag.description,
|
|
54
55
|
withImages: ""
|
|
@@ -56,51 +57,65 @@ const L = { class: "endpoints" }, M = ["onClick"], te = /* @__PURE__ */ y({
|
|
|
56
57
|
]),
|
|
57
58
|
_: 1
|
|
58
59
|
}),
|
|
59
|
-
|
|
60
|
-
default:
|
|
61
|
-
var
|
|
60
|
+
o(e(h), null, {
|
|
61
|
+
default: a(() => {
|
|
62
|
+
var u;
|
|
62
63
|
return [
|
|
63
|
-
((
|
|
64
|
+
((u = t.tag.operations) == null ? void 0 : u.length) > 0 ? (n(), g(e(A), {
|
|
64
65
|
key: 0,
|
|
65
66
|
class: "scalar-card-sticky"
|
|
66
67
|
}, {
|
|
67
|
-
default:
|
|
68
|
-
|
|
69
|
-
default:
|
|
70
|
-
|
|
71
|
-
|
|
68
|
+
default: a(() => [
|
|
69
|
+
o(e(D), { muted: "" }, {
|
|
70
|
+
default: a(() => [
|
|
71
|
+
o($, null, {
|
|
72
|
+
default: a(() => [
|
|
73
|
+
m(p(d.value), 1)
|
|
74
|
+
]),
|
|
75
|
+
_: 1
|
|
76
|
+
}),
|
|
77
|
+
r[0] || (r[0] = m(" Endpoints "))
|
|
78
|
+
]),
|
|
72
79
|
_: 1
|
|
73
80
|
}),
|
|
74
|
-
|
|
81
|
+
o(e(F), {
|
|
75
82
|
class: "custom-scroll",
|
|
76
83
|
muted: ""
|
|
77
84
|
}, {
|
|
78
|
-
default:
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
85
|
+
default: a(() => [
|
|
86
|
+
c("ul", {
|
|
87
|
+
"aria-label": `${d.value} endpoints`,
|
|
88
|
+
class: "endpoints"
|
|
89
|
+
}, [
|
|
90
|
+
(n(!0), C(b, null, V(t.tag.operations, (l) => {
|
|
91
|
+
var f;
|
|
92
|
+
return n(), C("li", {
|
|
93
|
+
key: e(i)(l, t.tag),
|
|
94
|
+
class: "contents"
|
|
86
95
|
}, [
|
|
87
|
-
a
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
+
c("a", {
|
|
97
|
+
class: "endpoint",
|
|
98
|
+
href: `#${e(i)(l, t.tag)}`,
|
|
99
|
+
onClick: w((G) => v(l), ["prevent"])
|
|
100
|
+
}, [
|
|
101
|
+
o(e(L), {
|
|
102
|
+
method: l.httpVerb
|
|
103
|
+
}, null, 8, ["method"]),
|
|
104
|
+
c("span", {
|
|
105
|
+
class: B(["endpoint-path", {
|
|
106
|
+
deprecated: (f = l.information) == null ? void 0 : f.deprecated
|
|
107
|
+
}])
|
|
108
|
+
}, p(l.path), 3)
|
|
109
|
+
], 8, q)
|
|
110
|
+
]);
|
|
96
111
|
}), 128))
|
|
97
|
-
])
|
|
112
|
+
], 8, j)
|
|
98
113
|
]),
|
|
99
114
|
_: 1
|
|
100
115
|
})
|
|
101
116
|
]),
|
|
102
117
|
_: 1
|
|
103
|
-
})) :
|
|
118
|
+
})) : E("", !0)
|
|
104
119
|
];
|
|
105
120
|
}),
|
|
106
121
|
_: 1
|
|
@@ -117,5 +132,5 @@ const L = { class: "endpoints" }, M = ["onClick"], te = /* @__PURE__ */ y({
|
|
|
117
132
|
}
|
|
118
133
|
});
|
|
119
134
|
export {
|
|
120
|
-
|
|
135
|
+
ne as default
|
|
121
136
|
};
|
|
@@ -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":"AAiEA,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAwCrD,iBAAS,cAAc;qBAiFO,GAAG;EAuBhC;AACD,QAAA,MAAM,eAAe;SAtId,MAAM;SACN,GAAG;UACF,IAAI;;SAFL,MAAM;SACN,GAAG;UACF,IAAI;iGA0IV,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 "./Tag.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import a from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const p = /* @__PURE__ */ a(o, [["__scopeId", "data-v-a6dd88a4"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,41 +1,54 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { useSidebar as
|
|
6
|
-
import { useNavState as
|
|
7
|
-
const
|
|
1
|
+
import { defineComponent as g, ref as d, computed as k, openBlock as a, createBlock as s, unref as n, withCtx as C, createCommentVNode as y, createElementBlock as S, renderSlot as h, nextTick as b } from "vue";
|
|
2
|
+
import v from "../../ShowMoreButton.vue.js";
|
|
3
|
+
import T from "./Endpoints.vue.js";
|
|
4
|
+
import w from "../../Section/SectionContainer.vue.js";
|
|
5
|
+
import { useSidebar as B } from "../../../hooks/useSidebar.js";
|
|
6
|
+
import { useNavState as R } from "../../../hooks/useNavState.js";
|
|
7
|
+
const M = /* @__PURE__ */ g({
|
|
8
8
|
__name: "Tag",
|
|
9
9
|
props: {
|
|
10
10
|
id: {},
|
|
11
11
|
tag: {},
|
|
12
12
|
spec: {}
|
|
13
13
|
},
|
|
14
|
-
setup(
|
|
15
|
-
const
|
|
14
|
+
setup(f) {
|
|
15
|
+
const r = f, p = d(), i = d(), { collapsedSidebarItems: l } = B(), { getTagId: c } = R(), m = k(
|
|
16
16
|
() => {
|
|
17
|
-
var e,
|
|
18
|
-
return ((e =
|
|
17
|
+
var e, t, o;
|
|
18
|
+
return ((e = r.spec.tags) == null ? void 0 : e.length) !== 1 || ((t = r.tag) == null ? void 0 : t.name) !== "default" || ((o = r.tag) == null ? void 0 : o.description) !== "";
|
|
19
19
|
}
|
|
20
20
|
);
|
|
21
|
-
|
|
21
|
+
async function u() {
|
|
22
|
+
var e, t;
|
|
23
|
+
await b(), (t = (e = i.value) == null ? void 0 : e.querySelector("button")) == null || t.focus();
|
|
24
|
+
}
|
|
25
|
+
return (e, t) => (a(), s(n(w), {
|
|
22
26
|
ref_key: "sectionContainerRef",
|
|
23
27
|
ref: p,
|
|
24
28
|
class: "tag-section-container"
|
|
25
29
|
}, {
|
|
26
|
-
default:
|
|
27
|
-
var
|
|
30
|
+
default: C(() => {
|
|
31
|
+
var o;
|
|
28
32
|
return [
|
|
29
|
-
m.value ? (
|
|
33
|
+
m.value ? (a(), s(T, {
|
|
30
34
|
key: 0,
|
|
31
35
|
id: e.id,
|
|
32
|
-
isCollapsed: !
|
|
36
|
+
isCollapsed: !n(l)[n(c)(e.tag)],
|
|
33
37
|
tag: e.tag
|
|
34
|
-
}, null, 8, ["id", "isCollapsed", "tag"])) :
|
|
35
|
-
!
|
|
38
|
+
}, null, 8, ["id", "isCollapsed", "tag"])) : y("", !0),
|
|
39
|
+
!n(l)[n(c)(e.tag)] && ((o = e.tag.operations) == null ? void 0 : o.length) > 1 ? (a(), s(v, {
|
|
36
40
|
key: 1,
|
|
37
|
-
id: e.id ?? ""
|
|
38
|
-
|
|
41
|
+
id: e.id ?? "",
|
|
42
|
+
"aria-label": `Show all ${e.tag["x-displayName"] ?? e.tag.name} endpoints`,
|
|
43
|
+
onClick: u
|
|
44
|
+
}, null, 8, ["id", "aria-label"])) : (a(), S("div", {
|
|
45
|
+
key: 2,
|
|
46
|
+
ref_key: "contentsRef",
|
|
47
|
+
ref: i,
|
|
48
|
+
class: "contents"
|
|
49
|
+
}, [
|
|
50
|
+
h(e.$slots, "default", {}, void 0, !0)
|
|
51
|
+
], 512))
|
|
39
52
|
];
|
|
40
53
|
}),
|
|
41
54
|
_: 3
|
|
@@ -43,5 +56,5 @@ const D = /* @__PURE__ */ f({
|
|
|
43
56
|
}
|
|
44
57
|
});
|
|
45
58
|
export {
|
|
46
|
-
|
|
59
|
+
M as default
|
|
47
60
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CompactSection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/CompactSection.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CompactSection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/CompactSection.vue"],"names":[],"mappings":"AAuIA,iBAAS,cAAc;qBAqFO,GAAG;qBACH,GAAG;EAkBhC;AACD,QAAA,MAAM,eAAe;QAlIf,MAAM;YACF,MAAM;;QADV,MAAM;YACF,MAAM;iGAuId,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 "./CompactSection.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-e8754cd5"]]);
|
|
5
5
|
export {
|
|
6
6
|
r as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OpenApiDocument.vue.d.ts","sourceRoot":"","sources":["../../../src/embeds/OpenApiDocument/OpenApiDocument.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OpenApiDocument.vue.d.ts","sourceRoot":"","sources":["../../../src/embeds/OpenApiDocument/OpenApiDocument.vue"],"names":[],"mappings":"AA6HA,OAAO,EAAE,KAAK,WAAW,EAAqB,MAAM,wBAAwB,CAAA;AAE5E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAUpD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,SAAS,CAAA;AAS3D,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAAwC,CAAA;AAC1D,QAAA,MAAM,OAAO,2DAA8B,CAAA;AAC3C,QAAA,MAAM,MAAM;;;;;;IAAyB,CAAA;AAIrC,QAAA,MAAoB,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uCA8FwB,QAAU,YAAW;;;2CAfnE,QAAS,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2CAeiC,YAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA3FzE,CAAA;AAkFF,iBAAS,cAAc;mBAtDN;QACb,8BAA8B;QAC9B,aAAa,CAAC,EAAE,4BAA4B,CAAA;QAC5C,8CAA8C;QAC9C,MAAM,EAAE,OAAO,MAAM,CAAC,KAAK,CAAA;QAC3B,4CAA4C;QAC5C,OAAO,EAAE,OAAO,OAAO,CAAC,KAAK,CAAA;QAC7B,wCAAwC;QACxC,YAAY,EAAE,OAAO,YAAY,CAAC,KAAK,CAAA;QACvC;;;WAGG;QACH,UAAU,EAAE,OAAO,UAAU,CAAA;KAC9B,GAAG,GAAG;;mBAdQ;QACb,8BAA8B;QAC9B,aAAa,CAAC,EAAE,4BAA4B,CAAA;QAC5C,8CAA8C;QAC9C,MAAM,EAAE,OAAO,MAAM,CAAC,KAAK,CAAA;QAC3B,4CAA4C;QAC5C,OAAO,EAAE,OAAO,OAAO,CAAC,KAAK,CAAA;QAC7B,wCAAwC;QACxC,YAAY,EAAE,OAAO,YAAY,CAAC,KAAK,CAAA;QACvC;;;WAGG;QACH,UAAU,EAAE,OAAO,UAAU,CAAA;KAC9B,GAAG,GAAG;EAmGR;AACD,QAAA,MAAM,eAAe;oBA3JH,4BAA4B;;oBAA5B,4BAA4B;iGAiK5C,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"}
|