@scalar/api-reference 1.25.115 → 1.25.118
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 +76 -0
- package/dist/browser/standalone.js +15973 -15829
- 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/Introduction/Introduction.vue.d.ts.map +1 -1
- package/dist/components/Content/Introduction/Introduction.vue.js +1 -1
- package/dist/components/Content/Introduction/Introduction.vue2.js +39 -38
- package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
- package/dist/components/Content/Lazy/Loading.vue.js +58 -60
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +6 -0
- 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 +124 -120
- package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.d.ts +1 -3
- package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.d.ts.map +1 -1
- package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/TagList.vue.js +36 -38
- package/dist/components/Sidebar/SidebarElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarElement.vue.js +1 -1
- package/dist/components/Sidebar/SidebarElement.vue2.js +59 -55
- package/dist/features/ApiClientModal/useApiClient.d.ts +208 -128
- package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts +6 -4
- 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 +130 -119
- package/dist/features/ExampleResponses/ExampleResponses.vue.d.ts +2 -2
- package/dist/features/ExampleResponses/ExampleResponses.vue.d.ts.map +1 -1
- package/dist/features/ExampleResponses/ExampleResponses.vue.js +3 -3
- package/dist/features/ExampleResponses/ExampleResponses.vue2.js +86 -91
- package/dist/features/Operation/Operation.vue.d.ts +4 -5
- package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
- package/dist/features/Operation/Operation.vue.js +34 -41
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +6 -6
- 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 -51
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +6 -6
- 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 +71 -71
- package/dist/helpers/get-request.d.ts.map +1 -1
- package/dist/helpers/index.d.ts +0 -3
- package/dist/helpers/index.d.ts.map +1 -1
- package/dist/hooks/useConfig.d.ts +1 -1
- package/dist/hooks/useConfig.d.ts.map +1 -1
- package/dist/hooks/useConfig.js +1 -1
- package/dist/hooks/useNavState.d.ts.map +1 -1
- package/dist/hooks/useNavState.js +26 -24
- package/dist/hooks/useReactiveSpec.d.ts +1 -1
- package/dist/index.js +66 -72
- package/dist/style.css +1 -1
- package/package.json +12 -12
- package/dist/features/Operation/hooks/useRequestExample.d.ts +0 -17
- package/dist/features/Operation/hooks/useRequestExample.d.ts.map +0 -1
- package/dist/features/Operation/hooks/useRequestExample.js +0 -68
- package/dist/helpers/convertRequestToHarRequest.d.ts +0 -7
- package/dist/helpers/convertRequestToHarRequest.d.ts.map +0 -1
- package/dist/helpers/convertRequestToHarRequest.js +0 -64
- package/dist/helpers/get-request.js +0 -6
- package/dist/helpers/getExampleCode.d.ts +0 -8
- package/dist/helpers/getExampleCode.d.ts.map +0 -1
- package/dist/helpers/getExampleCode.js +0 -16
- package/dist/helpers/joinWithSlash.d.ts +0 -5
- package/dist/helpers/joinWithSlash.d.ts.map +0 -1
- package/dist/helpers/joinWithSlash.js +0 -4
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { formatExample as
|
|
3
|
-
import { optimizeValueForDisplay as
|
|
4
|
-
import { Disclosure as
|
|
5
|
-
import { ScalarMarkdown as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
const
|
|
1
|
+
import { defineComponent as Y, computed as h, openBlock as l, createElementBlock as a, normalizeClass as G, createVNode as i, createSlots as ee, withCtx as g, createTextVNode as k, toDisplayString as u, unref as s, createCommentVNode as n, createElementVNode as y, Fragment as p, renderList as m, createBlock as _ } from "vue";
|
|
2
|
+
import { formatExample as te } from "./helpers/formatExample.js";
|
|
3
|
+
import { optimizeValueForDisplay as le, discriminators as J } from "./helpers/optimizeValueForDisplay.js";
|
|
4
|
+
import { Disclosure as ae, DisclosurePanel as oe, DisclosureButton as re } from "@headlessui/vue";
|
|
5
|
+
import { ScalarMarkdown as x, ScalarIcon as se } from "@scalar/components";
|
|
6
|
+
import b from "./Schema.vue.js";
|
|
7
|
+
import ne from "./SchemaPropertyHeading.vue.js";
|
|
8
|
+
const ie = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "property-description"
|
|
11
|
-
},
|
|
11
|
+
}, ue = {
|
|
12
12
|
key: 1,
|
|
13
13
|
class: "property-description"
|
|
14
|
-
},
|
|
14
|
+
}, pe = {
|
|
15
15
|
key: 2,
|
|
16
16
|
class: "property-example custom-scroll"
|
|
17
|
-
},
|
|
17
|
+
}, ce = { class: "property-example-value" }, me = {
|
|
18
18
|
key: 3,
|
|
19
19
|
class: "property-example custom-scroll"
|
|
20
|
-
},
|
|
20
|
+
}, de = { class: "property-example-label" }, ve = {
|
|
21
21
|
key: 4,
|
|
22
22
|
class: "property-enum"
|
|
23
|
-
},
|
|
23
|
+
}, ye = {
|
|
24
24
|
key: 0,
|
|
25
25
|
class: "property-list"
|
|
26
|
-
},
|
|
26
|
+
}, fe = { class: "property-heading" }, he = { class: "property-name" }, ge = { class: "property-description" }, be = {
|
|
27
27
|
key: 1,
|
|
28
28
|
class: "property-enum-values"
|
|
29
|
-
},
|
|
29
|
+
}, ke = {
|
|
30
30
|
key: 5,
|
|
31
31
|
class: "children"
|
|
32
|
-
},
|
|
32
|
+
}, _e = {
|
|
33
33
|
key: 0,
|
|
34
34
|
class: "children"
|
|
35
|
-
},
|
|
35
|
+
}, xe = {
|
|
36
36
|
key: 0,
|
|
37
37
|
class: "property-rule"
|
|
38
|
-
},
|
|
38
|
+
}, Ee = {
|
|
39
39
|
key: 1,
|
|
40
40
|
class: "property-rule"
|
|
41
|
-
}, Pe = /* @__PURE__ */
|
|
41
|
+
}, Pe = /* @__PURE__ */ Y({
|
|
42
42
|
__name: "SchemaProperty",
|
|
43
43
|
props: {
|
|
44
44
|
value: {},
|
|
@@ -51,8 +51,8 @@ const oe = {
|
|
|
51
51
|
pattern: { type: Boolean },
|
|
52
52
|
withExamples: { type: Boolean, default: !0 }
|
|
53
53
|
},
|
|
54
|
-
setup(
|
|
55
|
-
const
|
|
54
|
+
setup(K) {
|
|
55
|
+
const Q = K, E = {
|
|
56
56
|
integer: {
|
|
57
57
|
_default: "Integer numbers.",
|
|
58
58
|
int32: "Signed 32-bit integers (commonly used integer type).",
|
|
@@ -65,110 +65,114 @@ const oe = {
|
|
|
65
65
|
byte: "base64-encoded characters, for example, U3dhZ2dlciByb2Nrcw==",
|
|
66
66
|
binary: "binary data, used to describe files"
|
|
67
67
|
}
|
|
68
|
-
},
|
|
69
|
-
return
|
|
70
|
-
},
|
|
71
|
-
return !
|
|
72
|
-
},
|
|
73
|
-
var
|
|
74
|
-
return (
|
|
75
|
-
},
|
|
76
|
-
() =>
|
|
77
|
-
),
|
|
78
|
-
() =>
|
|
79
|
-
),
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
68
|
+
}, j = function(t, o) {
|
|
69
|
+
return o != null && o.properties || o != null && o.additionalProperties || o != null && o.patternProperties ? null : t || (o == null ? void 0 : o.description) || null;
|
|
70
|
+
}, B = function(t) {
|
|
71
|
+
return !t || !E[t.type] ? null : E[t.type][t.format || "_default"];
|
|
72
|
+
}, d = function(t) {
|
|
73
|
+
var o;
|
|
74
|
+
return (t == null ? void 0 : t.enum) || ((o = t == null ? void 0 : t.items) == null ? void 0 : o.enum) || [];
|
|
75
|
+
}, S = h(
|
|
76
|
+
() => d(e.value).length > 9
|
|
77
|
+
), D = h(() => S.value ? 5 : 9), W = h(
|
|
78
|
+
() => d(e.value).slice(0, D.value)
|
|
79
|
+
), X = h(
|
|
80
|
+
() => d(e.value).slice(D.value)
|
|
81
|
+
), e = h(() => le(Q.value)), v = J.find((t) => !e.value || typeof e.value != "object" ? !1 : t in e.value || e.value.items && typeof e.value.items == "object" && t in e.value.items);
|
|
82
|
+
return (t, o) => {
|
|
83
|
+
var w, A, C, P, F, N, V, q, z, I, L, T, H, O, R, U;
|
|
84
|
+
return l(), a("div", {
|
|
85
|
+
class: G(["property", [
|
|
86
|
+
`property--level-${t.level}`,
|
|
85
87
|
{
|
|
86
|
-
"property--compact":
|
|
87
|
-
"property--deprecated": (
|
|
88
|
+
"property--compact": t.compact,
|
|
89
|
+
"property--deprecated": (w = e.value) == null ? void 0 : w.deprecated
|
|
88
90
|
}
|
|
89
91
|
]])
|
|
90
92
|
}, [
|
|
91
|
-
|
|
92
|
-
additional:
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
required:
|
|
96
|
-
value:
|
|
97
|
-
},
|
|
98
|
-
|
|
93
|
+
i(ne, {
|
|
94
|
+
additional: t.additional,
|
|
95
|
+
enum: d(e.value).length > 0,
|
|
96
|
+
pattern: t.pattern,
|
|
97
|
+
required: t.required,
|
|
98
|
+
value: e.value
|
|
99
|
+
}, ee({ _: 2 }, [
|
|
100
|
+
t.name ? {
|
|
99
101
|
name: "name",
|
|
100
|
-
fn:
|
|
101
|
-
|
|
102
|
+
fn: g(() => [
|
|
103
|
+
k(u(t.name), 1)
|
|
102
104
|
]),
|
|
103
105
|
key: "0"
|
|
104
106
|
} : void 0,
|
|
105
|
-
(
|
|
107
|
+
(A = e.value) != null && A.example ? {
|
|
106
108
|
name: "example",
|
|
107
|
-
fn:
|
|
108
|
-
|
|
109
|
+
fn: g(() => [
|
|
110
|
+
k(" Example: " + u(e.value.example), 1)
|
|
109
111
|
]),
|
|
110
112
|
key: "1"
|
|
111
113
|
} : void 0
|
|
112
|
-
]), 1032, ["additional", "
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
value:
|
|
114
|
+
]), 1032, ["additional", "enum", "pattern", "required", "value"]),
|
|
115
|
+
j(t.description, e.value) ? (l(), a("div", ie, [
|
|
116
|
+
i(s(x), {
|
|
117
|
+
value: j(t.description, e.value)
|
|
116
118
|
}, null, 8, ["value"])
|
|
117
|
-
])) :
|
|
118
|
-
|
|
119
|
-
value:
|
|
119
|
+
])) : B(e.value) ? (l(), a("div", ue, [
|
|
120
|
+
i(s(x), {
|
|
121
|
+
value: B(e.value) || ""
|
|
120
122
|
}, null, 8, ["value"])
|
|
121
123
|
])) : n("", !0),
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
124
|
+
t.withExamples && ((C = e.value) != null && C.example || (F = (P = e.value) == null ? void 0 : P.items) != null && F.example) ? (l(), a("div", pe, [
|
|
125
|
+
o[0] || (o[0] = y("span", { class: "property-example-label" }, "Example", -1)),
|
|
126
|
+
y("code", ce, u(s(te)(
|
|
127
|
+
((N = e.value) == null ? void 0 : N.example) || s(v) && ((V = e.value) == null ? void 0 : V.items) && typeof e.value.items == "object" && e.value.items[s(v)]
|
|
128
|
+
)), 1)
|
|
125
129
|
])) : n("", !0),
|
|
126
|
-
(
|
|
127
|
-
|
|
128
|
-
(l(!0),
|
|
129
|
-
key:
|
|
130
|
+
(q = e.value) != null && q.examples && typeof e.value.examples == "object" && Object.keys(e.value.examples).length > 0 ? (l(), a("div", me, [
|
|
131
|
+
y("span", de, u(Object.keys(e.value.examples).length === 1 ? "Example" : "Examples"), 1),
|
|
132
|
+
(l(!0), a(p, null, m(e.value.examples, (r, c) => (l(), a("code", {
|
|
133
|
+
key: c,
|
|
130
134
|
class: "property-example-value"
|
|
131
|
-
},
|
|
135
|
+
}, u(r), 1))), 128))
|
|
132
136
|
])) : n("", !0),
|
|
133
|
-
((
|
|
134
|
-
(
|
|
135
|
-
(l(!0),
|
|
136
|
-
key:
|
|
137
|
+
((z = d(e.value)) == null ? void 0 : z.length) > 0 ? (l(), a("div", ve, [
|
|
138
|
+
Array.isArray((I = e.value) == null ? void 0 : I["x-enumDescriptions"]) ? (l(), a("div", ye, [
|
|
139
|
+
(l(!0), a(p, null, m(d(e.value), (r) => (l(), a("div", {
|
|
140
|
+
key: r,
|
|
137
141
|
class: "property"
|
|
138
142
|
}, [
|
|
139
|
-
|
|
140
|
-
|
|
143
|
+
y("div", fe, [
|
|
144
|
+
y("div", he, u(r), 1)
|
|
141
145
|
]),
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
value: e.value["x-enumDescriptions"][
|
|
146
|
+
y("div", ge, [
|
|
147
|
+
i(s(x), {
|
|
148
|
+
value: e.value["x-enumDescriptions"][r]
|
|
145
149
|
}, null, 8, ["value"])
|
|
146
150
|
])
|
|
147
151
|
]))), 128))
|
|
148
|
-
])) : (l(),
|
|
149
|
-
(l(!0),
|
|
150
|
-
key:
|
|
152
|
+
])) : (l(), a("ul", be, [
|
|
153
|
+
(l(!0), a(p, null, m(W.value, (r) => (l(), a("li", {
|
|
154
|
+
key: r,
|
|
151
155
|
class: "property-enum-value"
|
|
152
|
-
},
|
|
153
|
-
|
|
154
|
-
default:
|
|
155
|
-
|
|
156
|
-
default:
|
|
157
|
-
(l(!0),
|
|
158
|
-
key:
|
|
156
|
+
}, u(r), 1))), 128)),
|
|
157
|
+
S.value ? (l(), _(s(ae), { key: 0 }, {
|
|
158
|
+
default: g(({ open: r }) => [
|
|
159
|
+
i(s(oe), null, {
|
|
160
|
+
default: g(() => [
|
|
161
|
+
(l(!0), a(p, null, m(X.value, (c) => (l(), a("li", {
|
|
162
|
+
key: c,
|
|
159
163
|
class: "property-enum-value"
|
|
160
|
-
},
|
|
164
|
+
}, u(c), 1))), 128))
|
|
161
165
|
]),
|
|
162
166
|
_: 1
|
|
163
167
|
}),
|
|
164
|
-
|
|
165
|
-
default:
|
|
166
|
-
|
|
167
|
-
class:
|
|
168
|
+
i(s(re), { class: "enum-toggle-button" }, {
|
|
169
|
+
default: g(() => [
|
|
170
|
+
i(s(se), {
|
|
171
|
+
class: G(["enum-toggle-button-icon", { "enum-toggle-button-icon--open": r }]),
|
|
168
172
|
icon: "Add",
|
|
169
173
|
size: "sm"
|
|
170
174
|
}, null, 8, ["class"]),
|
|
171
|
-
|
|
175
|
+
k(" " + u(r ? "Hide values" : "Show all values"), 1)
|
|
172
176
|
]),
|
|
173
177
|
_: 2
|
|
174
178
|
}, 1024)
|
|
@@ -177,43 +181,43 @@ const oe = {
|
|
|
177
181
|
})) : n("", !0)
|
|
178
182
|
]))
|
|
179
183
|
])) : n("", !0),
|
|
180
|
-
((
|
|
181
|
-
|
|
182
|
-
compact:
|
|
183
|
-
level:
|
|
184
|
+
((L = e.value) == null ? void 0 : L.type) === "object" && ((T = e.value) != null && T.properties || (H = e.value) != null && H.additionalProperties) ? (l(), a("div", ke, [
|
|
185
|
+
i(b, {
|
|
186
|
+
compact: t.compact,
|
|
187
|
+
level: t.level + 1,
|
|
184
188
|
value: e.value
|
|
185
189
|
}, null, 8, ["compact", "level", "value"])
|
|
186
190
|
])) : n("", !0),
|
|
187
|
-
(
|
|
188
|
-
["object"].includes(e.value.items.type) ? (l(),
|
|
189
|
-
|
|
190
|
-
compact:
|
|
191
|
-
level:
|
|
191
|
+
(O = e.value) != null && O.items && typeof e.value.items == "object" && "type" in e.value.items && typeof e.value.items.type == "string" ? (l(), a(p, { key: 6 }, [
|
|
192
|
+
["object"].includes((U = (R = e.value) == null ? void 0 : R.items) == null ? void 0 : U.type) ? (l(), a("div", _e, [
|
|
193
|
+
i(b, {
|
|
194
|
+
compact: t.compact,
|
|
195
|
+
level: t.level + 1,
|
|
192
196
|
value: e.value.items
|
|
193
197
|
}, null, 8, ["compact", "level", "value"])
|
|
194
198
|
])) : n("", !0)
|
|
195
199
|
], 64)) : n("", !0),
|
|
196
|
-
(l(!0),
|
|
197
|
-
var
|
|
198
|
-
return l(),
|
|
199
|
-
(
|
|
200
|
-
(l(!0),
|
|
201
|
-
var M
|
|
202
|
-
return l(),
|
|
203
|
-
key:
|
|
204
|
-
compact:
|
|
205
|
-
level:
|
|
206
|
-
noncollapsible: ((M = e.value) == null ? void 0 : M[
|
|
207
|
-
value:
|
|
200
|
+
(l(!0), a(p, null, m(s(J), (r) => {
|
|
201
|
+
var c, Z;
|
|
202
|
+
return l(), a(p, { key: r }, [
|
|
203
|
+
(c = e.value) != null && c[r] ? (l(), a("div", xe, [
|
|
204
|
+
(l(!0), a(p, null, m(e.value[r], (f) => {
|
|
205
|
+
var M, $;
|
|
206
|
+
return l(), _(b, {
|
|
207
|
+
key: f.id,
|
|
208
|
+
compact: t.compact,
|
|
209
|
+
level: t.level + 1,
|
|
210
|
+
noncollapsible: Array.isArray((M = e.value) == null ? void 0 : M[r]) && (($ = e.value) == null ? void 0 : $[r].length) === 1,
|
|
211
|
+
value: f
|
|
208
212
|
}, null, 8, ["compact", "level", "noncollapsible", "value"]);
|
|
209
213
|
}), 128))
|
|
210
214
|
])) : n("", !0),
|
|
211
|
-
(
|
|
212
|
-
(l(!0),
|
|
213
|
-
key:
|
|
214
|
-
compact:
|
|
215
|
-
level:
|
|
216
|
-
value:
|
|
215
|
+
(Z = e.value) != null && Z.items && typeof s(v) == "string" && typeof e.value.items == "object" && s(v) in e.value.items && Array.isArray(e.value.items[s(v)]) && t.level < 3 ? (l(), a("div", Ee, [
|
|
216
|
+
(l(!0), a(p, null, m(e.value.items[s(v)], (f) => (l(), _(b, {
|
|
217
|
+
key: f.id,
|
|
218
|
+
compact: t.compact,
|
|
219
|
+
level: t.level + 1,
|
|
220
|
+
value: f
|
|
217
221
|
}, null, 8, ["compact", "level", "value"]))), 128))
|
|
218
222
|
])) : n("", !0)
|
|
219
223
|
], 64);
|
|
@@ -3,7 +3,5 @@ export declare const discriminators: string[];
|
|
|
3
3
|
/**
|
|
4
4
|
* Optimize the value by removing nulls from discriminators.
|
|
5
5
|
*/
|
|
6
|
-
export declare function optimizeValueForDisplay(value: UnknownObject | undefined):
|
|
7
|
-
[x: string]: unknown;
|
|
8
|
-
} | undefined;
|
|
6
|
+
export declare function optimizeValueForDisplay(value: UnknownObject | undefined): Record<string, any> | undefined;
|
|
9
7
|
//# sourceMappingURL=optimizeValueForDisplay.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"optimizeValueForDisplay.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/optimizeValueForDisplay.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAExD,eAAO,MAAM,cAAc,UAAqC,CAAA;AAEhE;;GAEG;AACH,wBAAgB,uBAAuB,
|
|
1
|
+
{"version":3,"file":"optimizeValueForDisplay.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/optimizeValueForDisplay.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAExD,eAAO,MAAM,cAAc,UAAqC,CAAA;AAEhE;;GAEG;AACH,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,aAAa,GAAG,SAAS,GAC/B,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,CAwDjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TagList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/TagList.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TagList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/TagList.vue"],"names":[],"mappings":"AA8EA,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAOhE,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,OAAO,EAAE,CAAA;IACf,IAAI,EAAE,IAAI,CAAA;IACV,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;CAC9B,CAAC;;AAkIF,wBAMG"}
|
|
@@ -1,54 +1,52 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import { ScalarErrorBoundary as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
1
|
+
import { defineComponent as C, computed as p, openBlock as s, createElementBlock as f, Fragment as y, renderList as v, createBlock as l, unref as e, withCtx as i, resolveDynamicComponent as T, createVNode as _ } from "vue";
|
|
2
|
+
import { useActiveEntities as $ } from "@scalar/api-client/store";
|
|
3
|
+
import { ScalarErrorBoundary as b } from "@scalar/components";
|
|
4
|
+
import E from "./TagAccordion.vue.js";
|
|
5
|
+
import O from "./Tag.vue.js";
|
|
6
6
|
import L from "../Lazy/Lazy.vue2.js";
|
|
7
|
-
import
|
|
8
|
-
import { useNavState as
|
|
9
|
-
import { useSidebar as
|
|
10
|
-
const
|
|
7
|
+
import A from "../../../features/Operation/Operation.vue.js";
|
|
8
|
+
import { useNavState as N } from "../../../hooks/useNavState.js";
|
|
9
|
+
import { useSidebar as V } from "../../../hooks/useSidebar.js";
|
|
10
|
+
const K = /* @__PURE__ */ C({
|
|
11
11
|
__name: "TagList",
|
|
12
12
|
props: {
|
|
13
13
|
tags: {},
|
|
14
14
|
spec: {},
|
|
15
15
|
layout: {}
|
|
16
16
|
},
|
|
17
|
-
setup(
|
|
18
|
-
const
|
|
19
|
-
() =>
|
|
20
|
-
),
|
|
21
|
-
() =>
|
|
22
|
-
),
|
|
23
|
-
return (
|
|
17
|
+
setup(h) {
|
|
18
|
+
const n = h, { getOperationId: c, getTagId: r, hash: z } = N(), { collapsedSidebarItems: m } = V(), { activeCollection: I, activeServer: g } = $(), k = p(
|
|
19
|
+
() => n.layout === "classic" ? E : O
|
|
20
|
+
), S = p(
|
|
21
|
+
() => n.tags.findIndex((o) => !m[r(o)]) + 1
|
|
22
|
+
), u = (o) => n.layout !== "classic" && !z.value.startsWith("model") && o > S.value;
|
|
23
|
+
return (o, w) => (s(!0), f(y, null, v(o.tags, (t, d) => (s(), l(e(L), {
|
|
24
24
|
id: e(r)(t),
|
|
25
25
|
key: e(r)(t),
|
|
26
|
-
isLazy:
|
|
26
|
+
isLazy: u(d)
|
|
27
27
|
}, {
|
|
28
|
-
default:
|
|
29
|
-
(
|
|
28
|
+
default: i(() => [
|
|
29
|
+
(s(), l(T(k.value), {
|
|
30
30
|
id: e(r)(t),
|
|
31
|
-
spec:
|
|
31
|
+
spec: o.spec,
|
|
32
32
|
tag: t
|
|
33
33
|
}, {
|
|
34
|
-
default:
|
|
35
|
-
(
|
|
36
|
-
id: e(
|
|
37
|
-
key: `${
|
|
38
|
-
isLazy:
|
|
34
|
+
default: i(() => [
|
|
35
|
+
(s(!0), f(y, null, v(t.operations, (a, B) => (s(), l(e(L), {
|
|
36
|
+
id: e(c)(a, t),
|
|
37
|
+
key: `${a.httpVerb}-${a.operationId}`,
|
|
38
|
+
isLazy: u(d) || e(m)[e(r)(t)] && B > 0
|
|
39
39
|
}, {
|
|
40
|
-
default:
|
|
41
|
-
|
|
42
|
-
default:
|
|
43
|
-
|
|
44
|
-
id: e(
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
tag: t
|
|
51
|
-
}, null, 8, ["id", "layout", "operation", "requestExamples", "requests", "securitySchemes", "tag"])
|
|
40
|
+
default: i(() => [
|
|
41
|
+
_(e(b), null, {
|
|
42
|
+
default: i(() => [
|
|
43
|
+
_(e(A), {
|
|
44
|
+
id: e(c)(a, t),
|
|
45
|
+
collection: e(I),
|
|
46
|
+
layout: o.layout,
|
|
47
|
+
server: e(g),
|
|
48
|
+
transformedOperation: a
|
|
49
|
+
}, null, 8, ["id", "collection", "layout", "server", "transformedOperation"])
|
|
52
50
|
]),
|
|
53
51
|
_: 2
|
|
54
52
|
}, 1024)
|
|
@@ -64,5 +62,5 @@ const M = /* @__PURE__ */ x({
|
|
|
64
62
|
}
|
|
65
63
|
});
|
|
66
64
|
export {
|
|
67
|
-
|
|
65
|
+
K as default
|
|
68
66
|
};
|
|
@@ -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":"AA6VA,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;AAgEF,iBAAS,cAAc;WAoKT,OAAO,IAA6B;;yBATpB,GAAG;+BACG,GAAG;;;;EAatC;AAeD,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 a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-18e6dc3d"]]);
|
|
5
5
|
export {
|
|
6
6
|
a as default
|
|
7
7
|
};
|