@scalar/api-reference 1.28.17 → 1.28.19
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 +27 -0
- package/dist/browser/standalone.js +13903 -13945
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +2 -2
- package/dist/components/ApiReferenceLayout.vue2.js +93 -85
- 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 +17 -15
- 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 +86 -86
- package/dist/components/Content/Tag/Tag.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/Tag.vue.js +35 -33
- package/dist/components/SpecificationExtension/SpecificationExtension.vue.d.ts +9 -0
- package/dist/components/SpecificationExtension/SpecificationExtension.vue.d.ts.map +1 -0
- package/dist/components/SpecificationExtension/SpecificationExtension.vue.js +35 -0
- package/dist/components/SpecificationExtension/SpecificationExtension.vue2.js +4 -0
- package/dist/components/SpecificationExtension/index.d.ts +2 -0
- package/dist/components/SpecificationExtension/index.d.ts.map +1 -0
- package/dist/features/ApiClientModal/useApiClient.d.ts +68 -68
- package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
- package/dist/hooks/useConfig.d.ts +4 -1
- package/dist/hooks/useConfig.d.ts.map +1 -1
- package/dist/hooks/useMultipleDocuments.d.ts +10 -2
- package/dist/hooks/useMultipleDocuments.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/plugins/hooks/usePluginManager.d.ts +8 -0
- package/dist/plugins/hooks/usePluginManager.d.ts.map +1 -0
- package/dist/plugins/hooks/usePluginManager.js +10 -0
- package/dist/plugins/index.d.ts +3 -0
- package/dist/plugins/index.d.ts.map +1 -0
- package/dist/plugins/plugin-manager.d.ts +19 -0
- package/dist/plugins/plugin-manager.d.ts.map +1 -0
- package/dist/plugins/plugin-manager.js +21 -0
- package/dist/style.css +1 -1
- package/package.json +8 -8
|
@@ -1,32 +1,33 @@
|
|
|
1
|
-
import { defineComponent as $, computed as y, openBlock as l, createBlock as
|
|
2
|
-
import { Disclosure as
|
|
3
|
-
import { ScalarMarkdown as S, ScalarIcon as
|
|
4
|
-
import { optimizeValueForDisplay as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
1
|
+
import { defineComponent as $, computed as y, openBlock as l, createBlock as h, resolveDynamicComponent as M, normalizeClass as I, withCtx as m, createSlots as G, createTextVNode as D, toDisplayString as c, createCommentVNode as r, createElementBlock as a, createVNode as i, unref as s, Fragment as d, renderList as k, createElementVNode as f } from "vue";
|
|
2
|
+
import { Disclosure as J, DisclosurePanel as K, DisclosureButton as Q } from "@headlessui/vue";
|
|
3
|
+
import { ScalarMarkdown as S, ScalarIcon as W } from "@scalar/components";
|
|
4
|
+
import { optimizeValueForDisplay as X, discriminators as Y } from "./helpers/optimizeValueForDisplay.js";
|
|
5
|
+
import L from "./Schema.vue.js";
|
|
6
|
+
import O from "./SchemaDiscriminator.vue.js";
|
|
7
7
|
import x from "./SchemaPropertyHeading.vue.js";
|
|
8
|
-
|
|
8
|
+
import ee from "../../SpecificationExtension/SpecificationExtension.vue.js";
|
|
9
|
+
const ne = {
|
|
9
10
|
key: 1,
|
|
10
11
|
class: "property-description"
|
|
11
12
|
}, te = {
|
|
12
13
|
key: 2,
|
|
13
14
|
class: "property-description"
|
|
14
|
-
},
|
|
15
|
+
}, le = {
|
|
15
16
|
key: 3,
|
|
16
17
|
class: "property-enum"
|
|
17
|
-
},
|
|
18
|
+
}, oe = {
|
|
18
19
|
key: 0,
|
|
19
20
|
class: "property-list"
|
|
20
|
-
},
|
|
21
|
+
}, ae = { class: "property-heading" }, ie = { class: "property-name" }, se = { class: "property-description" }, re = {
|
|
21
22
|
key: 1,
|
|
22
23
|
class: "property-enum-values"
|
|
23
|
-
},
|
|
24
|
+
}, pe = { class: "property-enum-value-label" }, me = { class: "property-enum-value-label" }, ce = {
|
|
24
25
|
key: 4,
|
|
25
26
|
class: "children"
|
|
26
|
-
},
|
|
27
|
+
}, de = {
|
|
27
28
|
key: 0,
|
|
28
29
|
class: "children"
|
|
29
|
-
},
|
|
30
|
+
}, Be = /* @__PURE__ */ $({
|
|
30
31
|
__name: "SchemaProperty",
|
|
31
32
|
props: {
|
|
32
33
|
is: {},
|
|
@@ -43,8 +44,8 @@ const ee = {
|
|
|
43
44
|
schemas: {},
|
|
44
45
|
hideHeading: { type: Boolean }
|
|
45
46
|
},
|
|
46
|
-
setup(
|
|
47
|
-
const
|
|
47
|
+
setup(_) {
|
|
48
|
+
const R = _, H = {
|
|
48
49
|
integer: {
|
|
49
50
|
_default: "Integer numbers.",
|
|
50
51
|
int32: "Signed 32-bit integers (commonly used integer type).",
|
|
@@ -57,47 +58,45 @@ const ee = {
|
|
|
57
58
|
byte: "base64-encoded characters, for example, U3dhZ2dlciByb2Nrcw==",
|
|
58
59
|
binary: "binary data, used to describe files"
|
|
59
60
|
}
|
|
60
|
-
}, B = (e,
|
|
61
|
-
var
|
|
62
|
-
return (e == null ? void 0 : e.enum) || ((
|
|
61
|
+
}, B = (e, t) => t != null && t.properties || t != null && t.additionalProperties || t != null && t.patternProperties || t != null && t.allOf ? null : e || (t == null ? void 0 : t.description) || null, E = (e) => !e || !H[e.type] ? null : H[e.type][e.format || "_default"], p = (e) => {
|
|
62
|
+
var t;
|
|
63
|
+
return (e == null ? void 0 : e.enum) || ((t = e == null ? void 0 : e.items) == null ? void 0 : t.enum) || [];
|
|
63
64
|
}, C = y(
|
|
64
|
-
() => p(
|
|
65
|
-
), P = y(() => C.value ? 5 : 9),
|
|
66
|
-
() => p(
|
|
67
|
-
),
|
|
68
|
-
() => p(
|
|
69
|
-
),
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
var b;
|
|
74
|
-
return l(), f(G(e.is ?? "li"), {
|
|
65
|
+
() => p(n.value).length > 9
|
|
66
|
+
), P = y(() => C.value ? 5 : 9), T = y(
|
|
67
|
+
() => p(n.value).slice(0, P.value)
|
|
68
|
+
), U = y(
|
|
69
|
+
() => p(n.value).slice(P.value)
|
|
70
|
+
), n = y(() => X(R.value)), Z = (e, t, g, b, v) => t || g || b || (e == null ? void 0 : e.deprecated) || (e == null ? void 0 : e.const) || (e == null ? void 0 : e.enum) && e.enum.length === 1 || (e == null ? void 0 : e.type) || (e == null ? void 0 : e.nullable) === !0 || (e == null ? void 0 : e.writeOnly) || (e == null ? void 0 : e.readOnly) || v;
|
|
71
|
+
return (e, t) => {
|
|
72
|
+
var g;
|
|
73
|
+
return l(), h(M(e.is ?? "li"), {
|
|
75
74
|
class: I(["property", [
|
|
76
|
-
(B(e.description,
|
|
75
|
+
(B(e.description, n.value), ""),
|
|
77
76
|
`property--level-${e.level}`,
|
|
78
77
|
{
|
|
79
78
|
"property--compact": e.compact,
|
|
80
|
-
"property--deprecated": (
|
|
79
|
+
"property--deprecated": (g = n.value) == null ? void 0 : g.deprecated
|
|
81
80
|
}
|
|
82
81
|
]])
|
|
83
82
|
}, {
|
|
84
83
|
default: m(() => {
|
|
85
|
-
var
|
|
84
|
+
var b, v, w, q, A, F, N, V, j;
|
|
86
85
|
return [
|
|
87
|
-
|
|
88
|
-
|
|
86
|
+
Z(
|
|
87
|
+
n.value,
|
|
89
88
|
e.name,
|
|
90
89
|
e.additional,
|
|
91
90
|
e.pattern,
|
|
92
91
|
e.required
|
|
93
|
-
) ? (l(),
|
|
92
|
+
) ? (l(), h(x, {
|
|
94
93
|
key: 0,
|
|
95
94
|
additional: e.additional,
|
|
96
|
-
enum: p(
|
|
95
|
+
enum: p(n.value).length > 0,
|
|
97
96
|
pattern: e.pattern,
|
|
98
97
|
required: e.required,
|
|
99
|
-
value:
|
|
100
|
-
},
|
|
98
|
+
value: n.value
|
|
99
|
+
}, G({ _: 2 }, [
|
|
101
100
|
e.name ? {
|
|
102
101
|
name: "name",
|
|
103
102
|
fn: m(() => [
|
|
@@ -105,61 +104,61 @@ const ee = {
|
|
|
105
104
|
]),
|
|
106
105
|
key: "0"
|
|
107
106
|
} : void 0,
|
|
108
|
-
(
|
|
107
|
+
(b = n.value) != null && b.example ? {
|
|
109
108
|
name: "example",
|
|
110
109
|
fn: m(() => [
|
|
111
|
-
D(" Example: " + c(
|
|
110
|
+
D(" Example: " + c(n.value.example), 1)
|
|
112
111
|
]),
|
|
113
112
|
key: "1"
|
|
114
113
|
} : void 0
|
|
115
|
-
]), 1032, ["additional", "enum", "pattern", "required", "value"])) :
|
|
116
|
-
B(e.description,
|
|
117
|
-
s(
|
|
118
|
-
value: B(e.description,
|
|
114
|
+
]), 1032, ["additional", "enum", "pattern", "required", "value"])) : r("", !0),
|
|
115
|
+
B(e.description, n.value) ? (l(), a("div", ne, [
|
|
116
|
+
i(s(S), {
|
|
117
|
+
value: B(e.description, n.value)
|
|
119
118
|
}, null, 8, ["value"])
|
|
120
|
-
])) : E(
|
|
121
|
-
s(
|
|
122
|
-
value: E(
|
|
119
|
+
])) : E(n.value) ? (l(), a("div", te, [
|
|
120
|
+
i(s(S), {
|
|
121
|
+
value: E(n.value) || ""
|
|
123
122
|
}, null, 8, ["value"])
|
|
124
|
-
])) :
|
|
125
|
-
((v = p(
|
|
126
|
-
Array.isArray((w =
|
|
127
|
-
(l(!0),
|
|
123
|
+
])) : r("", !0),
|
|
124
|
+
((v = p(n.value)) == null ? void 0 : v.length) > 0 ? (l(), a("div", le, [
|
|
125
|
+
Array.isArray((w = n.value) == null ? void 0 : w["x-enumDescriptions"]) ? (l(), a("div", oe, [
|
|
126
|
+
(l(!0), a(d, null, k(p(n.value), (o) => (l(), a("div", {
|
|
128
127
|
key: o,
|
|
129
128
|
class: "property"
|
|
130
129
|
}, [
|
|
131
|
-
|
|
132
|
-
|
|
130
|
+
f("div", ae, [
|
|
131
|
+
f("div", ie, c(o), 1)
|
|
133
132
|
]),
|
|
134
|
-
|
|
135
|
-
s(
|
|
136
|
-
value:
|
|
133
|
+
f("div", se, [
|
|
134
|
+
i(s(S), {
|
|
135
|
+
value: n.value["x-enumDescriptions"][o]
|
|
137
136
|
}, null, 8, ["value"])
|
|
138
137
|
])
|
|
139
138
|
]))), 128))
|
|
140
|
-
])) : (l(),
|
|
141
|
-
(l(!0),
|
|
139
|
+
])) : (l(), a("ul", re, [
|
|
140
|
+
(l(!0), a(d, null, k(T.value, (o) => (l(), a("li", {
|
|
142
141
|
key: o,
|
|
143
142
|
class: "property-enum-value"
|
|
144
143
|
}, [
|
|
145
|
-
|
|
144
|
+
f("span", pe, c(o), 1)
|
|
146
145
|
]))), 128)),
|
|
147
|
-
C.value ? (l(),
|
|
146
|
+
C.value ? (l(), h(s(J), { key: 0 }, {
|
|
148
147
|
default: m(({ open: o }) => [
|
|
149
|
-
s(
|
|
148
|
+
i(s(K), null, {
|
|
150
149
|
default: m(() => [
|
|
151
|
-
(l(!0),
|
|
150
|
+
(l(!0), a(d, null, k(U.value, (u) => (l(), a("li", {
|
|
152
151
|
key: u,
|
|
153
152
|
class: "property-enum-value"
|
|
154
153
|
}, [
|
|
155
|
-
|
|
154
|
+
f("span", me, c(u), 1)
|
|
156
155
|
]))), 128))
|
|
157
156
|
]),
|
|
158
157
|
_: 1
|
|
159
158
|
}),
|
|
160
|
-
s(
|
|
159
|
+
i(s(Q), { class: "enum-toggle-button" }, {
|
|
161
160
|
default: m(() => [
|
|
162
|
-
s(
|
|
161
|
+
i(s(W), {
|
|
163
162
|
class: I(["enum-toggle-button-icon", { "enum-toggle-button-icon--open": o }]),
|
|
164
163
|
icon: "Add",
|
|
165
164
|
size: "sm"
|
|
@@ -170,33 +169,33 @@ const ee = {
|
|
|
170
169
|
}, 1024)
|
|
171
170
|
]),
|
|
172
171
|
_: 1
|
|
173
|
-
})) :
|
|
172
|
+
})) : r("", !0)
|
|
174
173
|
]))
|
|
175
|
-
])) :
|
|
176
|
-
((
|
|
177
|
-
|
|
174
|
+
])) : r("", !0),
|
|
175
|
+
((q = n.value) == null ? void 0 : q.type) === "object" && ((A = n.value) != null && A.properties || (F = n.value) != null && F.additionalProperties) ? (l(), a("div", ce, [
|
|
176
|
+
i(L, {
|
|
178
177
|
compact: e.compact,
|
|
179
178
|
level: e.level + 1,
|
|
180
179
|
name: e.name,
|
|
181
180
|
noncollapsible: e.noncollapsible,
|
|
182
|
-
value:
|
|
181
|
+
value: n.value
|
|
183
182
|
}, null, 8, ["compact", "level", "name", "noncollapsible", "value"])
|
|
184
|
-
])) :
|
|
185
|
-
(
|
|
186
|
-
["object"].includes((
|
|
187
|
-
|
|
183
|
+
])) : r("", !0),
|
|
184
|
+
(N = n.value) != null && N.items && typeof n.value.items == "object" && "type" in n.value.items && typeof n.value.items.type == "string" ? (l(), a(d, { key: 5 }, [
|
|
185
|
+
["object"].includes((j = (V = n.value) == null ? void 0 : V.items) == null ? void 0 : j.type) ? (l(), a("div", de, [
|
|
186
|
+
i(L, {
|
|
188
187
|
compact: e.compact,
|
|
189
188
|
level: e.level + 1,
|
|
190
189
|
name: e.name,
|
|
191
190
|
noncollapsible: e.noncollapsible,
|
|
192
|
-
value:
|
|
191
|
+
value: n.value.items
|
|
193
192
|
}, null, 8, ["compact", "level", "name", "noncollapsible", "value"])
|
|
194
|
-
])) :
|
|
195
|
-
], 64)) :
|
|
196
|
-
(l(!0),
|
|
193
|
+
])) : r("", !0)
|
|
194
|
+
], 64)) : r("", !0),
|
|
195
|
+
(l(!0), a(d, null, k(s(Y), (o) => {
|
|
197
196
|
var u, z;
|
|
198
|
-
return l(),
|
|
199
|
-
(u =
|
|
197
|
+
return l(), a(d, { key: o }, [
|
|
198
|
+
(u = n.value) != null && u[o] ? (l(), h(O, {
|
|
200
199
|
key: 0,
|
|
201
200
|
compact: e.compact,
|
|
202
201
|
discriminator: o,
|
|
@@ -205,8 +204,8 @@ const ee = {
|
|
|
205
204
|
name: e.name,
|
|
206
205
|
noncollapsible: e.noncollapsible,
|
|
207
206
|
schemas: e.schemas,
|
|
208
|
-
value:
|
|
209
|
-
}, null, 8, ["compact", "discriminator", "hideHeading", "level", "name", "noncollapsible", "schemas", "value"])) : (z =
|
|
207
|
+
value: n.value
|
|
208
|
+
}, null, 8, ["compact", "discriminator", "hideHeading", "level", "name", "noncollapsible", "schemas", "value"])) : (z = n.value) != null && z.items && typeof o == "string" && typeof n.value.items == "object" && o in n.value.items && Array.isArray(n.value.items[o]) && e.level < 3 ? (l(), h(O, {
|
|
210
209
|
key: 1,
|
|
211
210
|
compact: e.compact,
|
|
212
211
|
discriminator: o,
|
|
@@ -215,10 +214,11 @@ const ee = {
|
|
|
215
214
|
name: e.name,
|
|
216
215
|
noncollapsible: e.noncollapsible,
|
|
217
216
|
schemas: e.schemas,
|
|
218
|
-
value:
|
|
219
|
-
}, null, 8, ["compact", "discriminator", "hideHeading", "level", "name", "noncollapsible", "schemas", "value"])) :
|
|
217
|
+
value: n.value.items
|
|
218
|
+
}, null, 8, ["compact", "discriminator", "hideHeading", "level", "name", "noncollapsible", "schemas", "value"])) : r("", !0)
|
|
220
219
|
], 64);
|
|
221
|
-
}), 128))
|
|
220
|
+
}), 128)),
|
|
221
|
+
i(s(ee), { value: n.value }, null, 8, ["value"])
|
|
222
222
|
];
|
|
223
223
|
}),
|
|
224
224
|
_: 1
|
|
@@ -227,5 +227,5 @@ const ee = {
|
|
|
227
227
|
}
|
|
228
228
|
});
|
|
229
229
|
export {
|
|
230
|
-
|
|
230
|
+
Be as default
|
|
231
231
|
};
|
|
@@ -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":"AAuEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AACjE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAqB/C,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,GAAG,CAAA;IACR,UAAU,EAAE,UAAU,CAAA;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AAqKF,wBAOG"}
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { defineComponent as c, computed as g, openBlock as n, createBlock as
|
|
1
|
+
import { defineComponent as c, computed as g, openBlock as n, createBlock as m, unref as e, withCtx as a, withDirectives as C, createVNode as t, createTextVNode as d, toDisplayString as S, createCommentVNode as v, vShow as h } from "vue";
|
|
2
2
|
import { ScalarMarkdown as w } from "@scalar/components";
|
|
3
3
|
import N from "../../ScreenReader.vue.js";
|
|
4
|
-
import { useConfig as
|
|
5
|
-
import { useNavState as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
4
|
+
import { useConfig as _ } from "../../../hooks/useConfig.js";
|
|
5
|
+
import { useNavState as k } from "../../../hooks/useNavState.js";
|
|
6
|
+
import y from "./OperationsList.vue.js";
|
|
7
|
+
import I from "../../Section/Section.vue.js";
|
|
8
|
+
import T from "../../Section/SectionHeader.vue.js";
|
|
9
9
|
import B from "../../Anchor/Anchor.vue.js";
|
|
10
10
|
import L from "../../Section/SectionHeaderTag.vue.js";
|
|
11
11
|
import V from "../../Section/SectionContent.vue.js";
|
|
12
12
|
import b from "../../Section/SectionColumns.vue.js";
|
|
13
13
|
import p from "../../Section/SectionColumn.vue.js";
|
|
14
|
-
|
|
14
|
+
import D from "../../SpecificationExtension/SpecificationExtension.vue.js";
|
|
15
|
+
const K = /* @__PURE__ */ c({
|
|
15
16
|
__name: "Tag",
|
|
16
17
|
props: {
|
|
17
18
|
id: {},
|
|
@@ -21,28 +22,28 @@ const J = /* @__PURE__ */ c({
|
|
|
21
22
|
isCollapsed: { type: Boolean }
|
|
22
23
|
},
|
|
23
24
|
setup(s) {
|
|
24
|
-
const l = s, { getTagId:
|
|
25
|
-
return (o, r) => (n(),
|
|
25
|
+
const l = s, { getTagId: u } = k(), i = _(), f = g(() => l.tag["x-displayName"] ?? l.tag.name);
|
|
26
|
+
return (o, r) => (n(), m(e(I), {
|
|
26
27
|
id: o.id,
|
|
27
28
|
label: o.tag.name.toUpperCase(),
|
|
28
29
|
role: "none"
|
|
29
30
|
}, {
|
|
30
|
-
default:
|
|
31
|
-
C(
|
|
32
|
-
default:
|
|
33
|
-
|
|
34
|
-
id: e(
|
|
31
|
+
default: a(() => [
|
|
32
|
+
C(t(e(T), null, {
|
|
33
|
+
default: a(() => [
|
|
34
|
+
t(e(B), {
|
|
35
|
+
id: e(u)(o.tag)
|
|
35
36
|
}, {
|
|
36
|
-
default:
|
|
37
|
-
|
|
37
|
+
default: a(() => [
|
|
38
|
+
t(e(L), {
|
|
38
39
|
id: o.headerId,
|
|
39
40
|
level: 2
|
|
40
41
|
}, {
|
|
41
|
-
default:
|
|
42
|
-
|
|
43
|
-
o.isCollapsed ? (n(),
|
|
44
|
-
default:
|
|
45
|
-
|
|
42
|
+
default: a(() => [
|
|
43
|
+
d(S(f.value) + " ", 1),
|
|
44
|
+
o.isCollapsed ? (n(), m(N, { key: 0 }, {
|
|
45
|
+
default: a(() => r[0] || (r[0] = [
|
|
46
|
+
d(" (Collapsed)")
|
|
46
47
|
])),
|
|
47
48
|
_: 1
|
|
48
49
|
})) : v("", !0)
|
|
@@ -57,15 +58,15 @@ const J = /* @__PURE__ */ c({
|
|
|
57
58
|
}, 512), [
|
|
58
59
|
[h, !e(i).isLoading]
|
|
59
60
|
]),
|
|
60
|
-
|
|
61
|
+
t(e(V), {
|
|
61
62
|
loading: e(i).isLoading
|
|
62
63
|
}, {
|
|
63
|
-
default:
|
|
64
|
-
|
|
65
|
-
default:
|
|
66
|
-
|
|
67
|
-
default:
|
|
68
|
-
|
|
64
|
+
default: a(() => [
|
|
65
|
+
t(e(b), null, {
|
|
66
|
+
default: a(() => [
|
|
67
|
+
t(e(p), null, {
|
|
68
|
+
default: a(() => [
|
|
69
|
+
t(e(w), {
|
|
69
70
|
clamp: o.isCollapsed ? "7" : !1,
|
|
70
71
|
value: o.tag.description,
|
|
71
72
|
withImages: ""
|
|
@@ -73,9 +74,9 @@ const J = /* @__PURE__ */ c({
|
|
|
73
74
|
]),
|
|
74
75
|
_: 1
|
|
75
76
|
}),
|
|
76
|
-
|
|
77
|
-
default:
|
|
78
|
-
|
|
77
|
+
t(e(p), null, {
|
|
78
|
+
default: a(() => [
|
|
79
|
+
t(y, {
|
|
79
80
|
collection: o.collection,
|
|
80
81
|
tag: o.tag
|
|
81
82
|
}, null, 8, ["collection", "tag"])
|
|
@@ -87,12 +88,13 @@ const J = /* @__PURE__ */ c({
|
|
|
87
88
|
})
|
|
88
89
|
]),
|
|
89
90
|
_: 1
|
|
90
|
-
}, 8, ["loading"])
|
|
91
|
+
}, 8, ["loading"]),
|
|
92
|
+
t(e(D), { value: o.tag }, null, 8, ["value"])
|
|
91
93
|
]),
|
|
92
94
|
_: 1
|
|
93
95
|
}, 8, ["id", "label"]));
|
|
94
96
|
}
|
|
95
97
|
});
|
|
96
98
|
export {
|
|
97
|
-
|
|
99
|
+
K as default
|
|
98
100
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/**
|
|
3
|
+
* Any value that can contain OpenAPI specification extensions.
|
|
4
|
+
*/
|
|
5
|
+
value: Record<string, unknown> | undefined;
|
|
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=SpecificationExtension.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpecificationExtension.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SpecificationExtension/SpecificationExtension.vue"],"names":[],"mappings":"AAmEA,KAAK,WAAW,GAAG;IACjB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAA;CAC3C,CAAC;;AA0GF,wBAMG"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { defineComponent as f, openBlock as o, createElementBlock as d, Fragment as E, renderList as _, unref as s, createBlock as a, withCtx as g, createElementVNode as x, resolveDynamicComponent as C, mergeProps as v, createCommentVNode as k } from "vue";
|
|
2
|
+
import { ScalarErrorBoundary as y } from "@scalar/components";
|
|
3
|
+
import { usePluginManager as h } from "../../plugins/hooks/usePluginManager.js";
|
|
4
|
+
const B = { class: "text-base" }, j = /* @__PURE__ */ f({
|
|
5
|
+
__name: "SpecificationExtension",
|
|
6
|
+
props: {
|
|
7
|
+
value: {}
|
|
8
|
+
},
|
|
9
|
+
setup(c) {
|
|
10
|
+
const { getSpecificationExtensions: m } = h();
|
|
11
|
+
function i(e) {
|
|
12
|
+
return Object.keys(e ?? {}).filter(
|
|
13
|
+
(t) => t.startsWith("x-")
|
|
14
|
+
);
|
|
15
|
+
}
|
|
16
|
+
function u(e) {
|
|
17
|
+
return e.flatMap((t) => m(t)).filter((t) => t.component);
|
|
18
|
+
}
|
|
19
|
+
const l = i(c.value), p = u(l);
|
|
20
|
+
return (e, t) => typeof e.value == "object" ? (o(!0), d(E, { key: 0 }, _(s(p), (n) => (o(), a(s(y), null, {
|
|
21
|
+
default: g(() => {
|
|
22
|
+
var r;
|
|
23
|
+
return [
|
|
24
|
+
x("div", B, [
|
|
25
|
+
(o(), a(C(n.component), v({ ref_for: !0 }, { [n.name]: (r = e.value) == null ? void 0 : r[n.name] }), null, 16))
|
|
26
|
+
])
|
|
27
|
+
];
|
|
28
|
+
}),
|
|
29
|
+
_: 2
|
|
30
|
+
}, 1024))), 256)) : k("", !0);
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
export {
|
|
34
|
+
j as default
|
|
35
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SpecificationExtension/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,8BAA8B,CAAA"}
|