@scalar/api-reference 1.28.5 → 1.28.6
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 +25 -0
- package/dist/browser/standalone.js +6206 -6147
- 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/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +2 -2
- package/dist/components/Content/Content.vue.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.js +2 -2
- package/dist/components/Content/Content.vue2.js +57 -55
- package/dist/components/Content/Introduction/Description.vue.d.ts.map +1 -1
- package/dist/components/Content/Introduction/Description.vue.js +2 -2
- package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
- package/dist/components/Content/Introduction/Introduction.vue.js +2 -2
- package/dist/components/Content/Introduction/Introduction.vue2.js +24 -24
- package/dist/components/Content/Lazy/Lazy.vue.d.ts.map +1 -1
- package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
- package/dist/components/Content/Lazy/Loading.vue.js +4 -2
- package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/Models.vue.js +2 -2
- package/dist/components/Content/Models/Models.vue2.js +18 -17
- package/dist/components/Content/Schema/Schema.vue.d.ts +1 -0
- package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/Schema.vue.js +4 -4
- package/dist/components/Content/Schema/Schema.vue2.js +79 -67
- package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts +12 -0
- package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts.map +1 -0
- package/dist/components/Content/Schema/SchemaDiscriminator.vue.js +7 -0
- package/dist/components/Content/Schema/SchemaDiscriminator.vue2.js +109 -0
- package/dist/components/Content/Schema/SchemaHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaHeading.vue.js +2 -2
- package/dist/components/Content/Schema/SchemaHeading.vue2.js +26 -31
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +3 -0
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue2.js +143 -141
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +83 -99
- package/dist/components/Content/Tag/OperationsList.vue.js +2 -2
- package/dist/components/Content/Tag/OperationsList.vue2.js +3 -3
- package/dist/components/Content/Tag/Tag.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/Tag.vue.js +41 -36
- package/dist/components/Content/Tag/TagList.vue.d.ts +2 -0
- package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/TagList.vue.js +38 -36
- package/dist/components/Content/Tag/TagSection.vue.js +2 -2
- package/dist/components/Content/Tag/TagSection.vue2.js +3 -3
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
- package/dist/components/Layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/components/Layouts/ModernLayout.vue.js +1 -1
- package/dist/components/Section/CompactSection.vue.d.ts.map +1 -1
- package/dist/components/Section/CompactSection.vue.js +2 -2
- package/dist/components/Section/Section.vue.d.ts.map +1 -1
- package/dist/components/Section/Section.vue.js +2 -2
- package/dist/components/Section/SectionHeaderTag.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionHeaderTag.vue.js +2 -2
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +2 -2
- package/dist/components/Sidebar/Sidebar.vue2.js +2 -1
- 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 +2 -1
- package/dist/esm.d.ts.map +1 -1
- package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/features/ApiClientModal/useApiClient.d.ts +2 -4
- package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
- package/dist/features/BaseUrl/BaseUrl.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/BaseUrl.vue.js +2 -1
- 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 +2 -1
- 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 +6 -8
- package/dist/features/Operation/Operation.vue.d.ts +2 -0
- package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
- package/dist/features/Operation/Operation.vue.js +13 -10
- package/dist/features/Operation/Webhooks.vue.d.ts.map +1 -1
- package/dist/features/Operation/Webhooks.vue.js +2 -2
- package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ContentTypeSelect.vue.js +4 -4
- package/dist/features/Operation/components/OperationParameters.vue.d.ts +2 -0
- package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/OperationParameters.vue.js +37 -31
- package/dist/features/Operation/components/OperationResponses.vue.d.ts +2 -0
- package/dist/features/Operation/components/OperationResponses.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/OperationResponses.vue.js +15 -13
- package/dist/features/Operation/components/ParameterList.vue.d.ts +2 -0
- package/dist/features/Operation/components/ParameterList.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterList.vue.js +2 -2
- package/dist/features/Operation/components/ParameterList.vue2.js +14 -12
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts +2 -0
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue.js +2 -2
- package/dist/features/Operation/components/ParameterListItem.vue2.js +20 -18
- package/dist/features/Operation/components/RequestBody.vue.d.ts +2 -0
- package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/RequestBody.vue.js +2 -2
- package/dist/features/Operation/components/RequestBody.vue2.js +20 -18
- package/dist/features/Operation/hooks/useResponses.d.ts.map +1 -1
- package/dist/features/Operation/hooks/useResponses.js +2 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +2 -0
- 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 +29 -24
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +2 -0
- 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 +66 -56
- package/dist/features/Search/SearchModal.vue.d.ts.map +1 -1
- package/dist/features/Search/SearchModal.vue.js +2 -2
- package/dist/features/Search/SearchModal.vue2.js +2 -1
- package/dist/helpers/index.d.ts +4 -4
- package/dist/helpers/scrollToId.d.ts.map +1 -1
- package/dist/helpers/specHelpers.js +15 -14
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/useMultipleDocuments.d.ts +1 -0
- package/dist/hooks/useMultipleDocuments.d.ts.map +1 -1
- package/dist/hooks/useNavState.d.ts.map +1 -1
- package/dist/hooks/useNavState.js +2 -1
- package/dist/hooks/useReactiveSpec.d.ts.map +1 -1
- package/dist/hooks/useSidebar.d.ts.map +1 -1
- package/dist/hooks/useSidebar.js +3 -2
- package/dist/index.d.ts +6 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +39 -76
- package/dist/libs/operation.d.ts.map +1 -1
- package/dist/standalone/lib/html-api.d.ts +4 -4
- package/dist/standalone/lib/html-api.d.ts.map +1 -1
- package/dist/stores/useHttpClientStore.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +9 -8
- package/dist/helpers/getVariableNames.js +0 -7
- package/dist/helpers/hasSecuritySchemes.js +0 -7
- package/dist/helpers/mapFromObject.js +0 -7
- package/dist/helpers/mergeAllObjects.js +0 -7
- package/dist/hooks/useClientStore.js +0 -5
- package/dist/hooks/useRefOnMount.js +0 -10
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as M, openBlock as r, createElementBlock as n, normalizeClass as V, renderSlot as w, Fragment as m, createTextVNode as u, createCommentVNode as t, toDisplayString as i, createVNode as s, unref as A, withCtx as a, createBlock as d } from "vue";
|
|
2
|
+
import p from "../../ScreenReader.vue.js";
|
|
3
3
|
import o from "./SchemaPropertyDetail.vue.js";
|
|
4
|
-
import
|
|
5
|
-
const
|
|
4
|
+
import C from "../../Badge/Badge.vue.js";
|
|
5
|
+
const $ = { class: "property-heading" }, D = {
|
|
6
6
|
key: 1,
|
|
7
7
|
class: "property-additional"
|
|
8
|
-
},
|
|
8
|
+
}, F = {
|
|
9
9
|
key: 2,
|
|
10
10
|
class: "property-pattern"
|
|
11
|
-
},
|
|
11
|
+
}, O = {
|
|
12
12
|
key: 3,
|
|
13
13
|
class: "property-deprecated"
|
|
14
|
-
},
|
|
14
|
+
}, T = {
|
|
15
15
|
key: 4,
|
|
16
16
|
class: "property-const"
|
|
17
|
-
},
|
|
17
|
+
}, j = {
|
|
18
18
|
key: 7,
|
|
19
19
|
class: "property-write-only"
|
|
20
|
-
},
|
|
20
|
+
}, z = {
|
|
21
21
|
key: 8,
|
|
22
22
|
class: "property-read-only"
|
|
23
|
-
},
|
|
23
|
+
}, E = {
|
|
24
24
|
key: 9,
|
|
25
25
|
class: "property-required"
|
|
26
|
-
},
|
|
26
|
+
}, Q = /* @__PURE__ */ M({
|
|
27
27
|
__name: "SchemaPropertyHeading",
|
|
28
28
|
props: {
|
|
29
29
|
value: {},
|
|
@@ -32,105 +32,105 @@ const F = { class: "property-heading" }, T = {
|
|
|
32
32
|
additional: { type: Boolean },
|
|
33
33
|
pattern: { type: Boolean }
|
|
34
34
|
},
|
|
35
|
-
setup(
|
|
36
|
-
const
|
|
35
|
+
setup(H) {
|
|
36
|
+
const L = (e) => Array.isArray(e == null ? void 0 : e.default) && e.default.length === 1 ? e.default[0] : e == null ? void 0 : e.default;
|
|
37
37
|
return (e, l) => {
|
|
38
|
-
var
|
|
39
|
-
return r(), n("div",
|
|
38
|
+
var y, v, f, k, g, B, q, I, N;
|
|
39
|
+
return r(), n("div", $, [
|
|
40
40
|
e.$slots.name ? (r(), n("div", {
|
|
41
41
|
key: 0,
|
|
42
|
-
class:
|
|
42
|
+
class: V(["property-name", { deprecated: (y = e.value) == null ? void 0 : y.deprecated }])
|
|
43
43
|
}, [
|
|
44
44
|
e.pattern ? (r(), n(m, { key: 1 }, [
|
|
45
45
|
l[0] || (l[0] = u("/")),
|
|
46
|
-
|
|
46
|
+
w(e.$slots, "name", {}, void 0, !0),
|
|
47
47
|
l[1] || (l[1] = u("/"))
|
|
48
|
-
], 64)) :
|
|
49
|
-
], 2)) :
|
|
50
|
-
e.additional ? (r(), n("div",
|
|
51
|
-
(
|
|
48
|
+
], 64)) : w(e.$slots, "name", { key: 0 }, void 0, !0)
|
|
49
|
+
], 2)) : t("", !0),
|
|
50
|
+
e.additional ? (r(), n("div", D, [
|
|
51
|
+
(v = e.value) != null && v["x-additionalPropertiesName"] ? (r(), n(m, { key: 0 }, [
|
|
52
52
|
u(i(e.value["x-additionalPropertiesName"]), 1)
|
|
53
53
|
], 64)) : (r(), n(m, { key: 1 }, [
|
|
54
54
|
u("additional properties")
|
|
55
55
|
], 64))
|
|
56
|
-
])) :
|
|
57
|
-
e.pattern ? (r(), n("div",
|
|
58
|
-
|
|
59
|
-
default:
|
|
56
|
+
])) : t("", !0),
|
|
57
|
+
e.pattern ? (r(), n("div", F, [
|
|
58
|
+
s(A(C), null, {
|
|
59
|
+
default: a(() => l[2] || (l[2] = [
|
|
60
60
|
u("pattern")
|
|
61
61
|
])),
|
|
62
62
|
_: 1
|
|
63
63
|
})
|
|
64
|
-
])) :
|
|
65
|
-
(
|
|
66
|
-
|
|
67
|
-
default:
|
|
64
|
+
])) : t("", !0),
|
|
65
|
+
(f = e.value) != null && f.deprecated ? (r(), n("div", O, [
|
|
66
|
+
s(A(C), null, {
|
|
67
|
+
default: a(() => l[3] || (l[3] = [
|
|
68
68
|
u("deprecated")
|
|
69
69
|
])),
|
|
70
70
|
_: 1
|
|
71
71
|
})
|
|
72
|
-
])) :
|
|
73
|
-
(
|
|
74
|
-
|
|
75
|
-
prefix:
|
|
72
|
+
])) : t("", !0),
|
|
73
|
+
(k = e.value) != null && k.const || (g = e.value) != null && g.enum && e.value.enum.length === 1 ? (r(), n("div", T, [
|
|
74
|
+
s(o, { truncate: "" }, {
|
|
75
|
+
prefix: a(() => l[4] || (l[4] = [
|
|
76
76
|
u("const:")
|
|
77
77
|
])),
|
|
78
|
-
default:
|
|
78
|
+
default: a(() => [
|
|
79
79
|
u(" " + i(e.value.const ?? e.value.enum[0]), 1)
|
|
80
80
|
]),
|
|
81
81
|
_: 1
|
|
82
82
|
})
|
|
83
|
-
])) : (
|
|
84
|
-
|
|
85
|
-
default:
|
|
86
|
-
var
|
|
83
|
+
])) : (B = e.value) != null && B.type ? (r(), n(m, { key: 5 }, [
|
|
84
|
+
s(o, null, {
|
|
85
|
+
default: a(() => {
|
|
86
|
+
var P, S, b;
|
|
87
87
|
return [
|
|
88
|
-
|
|
89
|
-
default:
|
|
88
|
+
s(p, null, {
|
|
89
|
+
default: a(() => l[5] || (l[5] = [
|
|
90
90
|
u("Type:")
|
|
91
91
|
])),
|
|
92
92
|
_: 1
|
|
93
93
|
}),
|
|
94
|
-
(
|
|
94
|
+
(S = (P = e.value) == null ? void 0 : P.items) != null && S.type ? (r(), n(m, { key: 0 }, [
|
|
95
95
|
u(i(e.value.type) + " " + i(e.value.items.type) + "[] ", 1)
|
|
96
96
|
], 64)) : (r(), n(m, { key: 1 }, [
|
|
97
|
-
u(i(Array.isArray(e.value.type) ? e.value.type.join(" | ") : e.value.type) + " " + i((
|
|
97
|
+
u(i(Array.isArray(e.value.type) ? e.value.type.join(" | ") : e.value.type) + " " + i((b = e.value) != null && b.nullable ? " | nullable" : ""), 1)
|
|
98
98
|
], 64)),
|
|
99
99
|
e.value.minItems || e.value.maxItems ? (r(), n(m, { key: 2 }, [
|
|
100
100
|
u(i(e.value.minItems) + "…" + i(e.value.maxItems), 1)
|
|
101
|
-
], 64)) :
|
|
101
|
+
], 64)) : t("", !0)
|
|
102
102
|
];
|
|
103
103
|
}),
|
|
104
104
|
_: 1
|
|
105
105
|
}),
|
|
106
106
|
e.value.minLength ? (r(), d(o, { key: 0 }, {
|
|
107
|
-
prefix:
|
|
107
|
+
prefix: a(() => l[6] || (l[6] = [
|
|
108
108
|
u("min:")
|
|
109
109
|
])),
|
|
110
|
-
default:
|
|
110
|
+
default: a(() => [
|
|
111
111
|
u(" " + i(e.value.minLength), 1)
|
|
112
112
|
]),
|
|
113
113
|
_: 1
|
|
114
|
-
})) :
|
|
114
|
+
})) : t("", !0),
|
|
115
115
|
e.value.maxLength ? (r(), d(o, { key: 1 }, {
|
|
116
|
-
prefix:
|
|
116
|
+
prefix: a(() => l[7] || (l[7] = [
|
|
117
117
|
u("max:")
|
|
118
118
|
])),
|
|
119
|
-
default:
|
|
119
|
+
default: a(() => [
|
|
120
120
|
u(" " + i(e.value.maxLength), 1)
|
|
121
121
|
]),
|
|
122
122
|
_: 1
|
|
123
|
-
})) :
|
|
123
|
+
})) : t("", !0),
|
|
124
124
|
e.value.uniqueItems ? (r(), d(o, { key: 2 }, {
|
|
125
|
-
default:
|
|
125
|
+
default: a(() => l[8] || (l[8] = [
|
|
126
126
|
u(" unique! ")
|
|
127
127
|
])),
|
|
128
128
|
_: 1
|
|
129
|
-
})) :
|
|
129
|
+
})) : t("", !0),
|
|
130
130
|
e.value.format ? (r(), d(o, { key: 3 }, {
|
|
131
|
-
default:
|
|
132
|
-
|
|
133
|
-
default:
|
|
131
|
+
default: a(() => [
|
|
132
|
+
s(p, null, {
|
|
133
|
+
default: a(() => l[9] || (l[9] = [
|
|
134
134
|
u("Format:")
|
|
135
135
|
])),
|
|
136
136
|
_: 1
|
|
@@ -138,51 +138,51 @@ const F = { class: "property-heading" }, T = {
|
|
|
138
138
|
u(" " + i(e.value.format), 1)
|
|
139
139
|
]),
|
|
140
140
|
_: 1
|
|
141
|
-
})) :
|
|
141
|
+
})) : t("", !0),
|
|
142
142
|
e.value.minimum !== void 0 && e.value.exclusiveMinimum ? (r(), d(o, { key: 4 }, {
|
|
143
|
-
prefix:
|
|
143
|
+
prefix: a(() => l[10] || (l[10] = [
|
|
144
144
|
u("greater than:")
|
|
145
145
|
])),
|
|
146
|
-
default:
|
|
146
|
+
default: a(() => [
|
|
147
147
|
u(" " + i(e.value.minimum), 1)
|
|
148
148
|
]),
|
|
149
149
|
_: 1
|
|
150
|
-
})) :
|
|
150
|
+
})) : t("", !0),
|
|
151
151
|
e.value.minimum !== void 0 && !e.value.exclusiveMinimum ? (r(), d(o, { key: 5 }, {
|
|
152
|
-
prefix:
|
|
152
|
+
prefix: a(() => l[11] || (l[11] = [
|
|
153
153
|
u("min:")
|
|
154
154
|
])),
|
|
155
|
-
default:
|
|
155
|
+
default: a(() => [
|
|
156
156
|
u(" " + i(e.value.minimum), 1)
|
|
157
157
|
]),
|
|
158
158
|
_: 1
|
|
159
|
-
})) :
|
|
159
|
+
})) : t("", !0),
|
|
160
160
|
e.value.maximum !== void 0 && e.value.exclusiveMaximum ? (r(), d(o, { key: 6 }, {
|
|
161
|
-
prefix:
|
|
161
|
+
prefix: a(() => l[12] || (l[12] = [
|
|
162
162
|
u("less than:")
|
|
163
163
|
])),
|
|
164
|
-
default:
|
|
164
|
+
default: a(() => [
|
|
165
165
|
u(" " + i(e.value.maximum), 1)
|
|
166
166
|
]),
|
|
167
167
|
_: 1
|
|
168
|
-
})) :
|
|
168
|
+
})) : t("", !0),
|
|
169
169
|
e.value.maximum !== void 0 && !e.value.exclusiveMaximum ? (r(), d(o, { key: 7 }, {
|
|
170
|
-
prefix:
|
|
170
|
+
prefix: a(() => l[13] || (l[13] = [
|
|
171
171
|
u("max:")
|
|
172
172
|
])),
|
|
173
|
-
default:
|
|
173
|
+
default: a(() => [
|
|
174
174
|
u(" " + i(e.value.maximum), 1)
|
|
175
175
|
]),
|
|
176
176
|
_: 1
|
|
177
|
-
})) :
|
|
177
|
+
})) : t("", !0),
|
|
178
178
|
e.value.pattern ? (r(), d(o, {
|
|
179
179
|
key: 8,
|
|
180
180
|
code: "",
|
|
181
181
|
truncate: ""
|
|
182
182
|
}, {
|
|
183
|
-
default:
|
|
184
|
-
|
|
185
|
-
default:
|
|
183
|
+
default: a(() => [
|
|
184
|
+
s(p, null, {
|
|
185
|
+
default: a(() => l[14] || (l[14] = [
|
|
186
186
|
u("Pattern:")
|
|
187
187
|
])),
|
|
188
188
|
_: 1
|
|
@@ -190,55 +190,39 @@ const F = { class: "property-heading" }, T = {
|
|
|
190
190
|
u(" " + i(e.value.pattern), 1)
|
|
191
191
|
]),
|
|
192
192
|
_: 1
|
|
193
|
-
})) :
|
|
193
|
+
})) : t("", !0),
|
|
194
194
|
e.$props.enum ? (r(), d(o, { key: 9 }, {
|
|
195
|
-
default:
|
|
195
|
+
default: a(() => l[15] || (l[15] = [
|
|
196
196
|
u("enum")
|
|
197
197
|
])),
|
|
198
198
|
_: 1
|
|
199
|
-
})) :
|
|
199
|
+
})) : t("", !0),
|
|
200
200
|
e.value.default !== void 0 ? (r(), d(o, {
|
|
201
201
|
key: 10,
|
|
202
202
|
truncate: ""
|
|
203
203
|
}, {
|
|
204
|
-
prefix:
|
|
204
|
+
prefix: a(() => l[16] || (l[16] = [
|
|
205
205
|
u("default:")
|
|
206
206
|
])),
|
|
207
|
-
default:
|
|
208
|
-
u(" " + i(
|
|
207
|
+
default: a(() => [
|
|
208
|
+
u(" " + i(L(e.value)), 1)
|
|
209
209
|
]),
|
|
210
210
|
_: 1
|
|
211
|
-
})) :
|
|
211
|
+
})) : t("", !0)
|
|
212
212
|
], 64)) : (r(), n(m, { key: 6 }, [
|
|
213
|
-
((
|
|
214
|
-
default:
|
|
213
|
+
((q = e.value) == null ? void 0 : q.nullable) === !0 ? (r(), d(o, { key: 0 }, {
|
|
214
|
+
default: a(() => l[17] || (l[17] = [
|
|
215
215
|
u(" nullable ")
|
|
216
216
|
])),
|
|
217
217
|
_: 1
|
|
218
|
-
})) :
|
|
218
|
+
})) : t("", !0)
|
|
219
219
|
], 64)),
|
|
220
|
-
(
|
|
221
|
-
(r(
|
|
222
|
-
(s) => {
|
|
223
|
-
var p, y, w;
|
|
224
|
-
return ((p = e.value) == null ? void 0 : p[s]) || ((w = (y = e.value) == null ? void 0 : y.items) == null ? void 0 : w[s]);
|
|
225
|
-
}
|
|
226
|
-
), (s) => {
|
|
227
|
-
var p, y;
|
|
228
|
-
return r(), n(m, { key: s }, [
|
|
229
|
-
((y = (p = e.value) == null ? void 0 : p[s]) == null ? void 0 : y.length) > 1 ? (r(), d(f(g), { key: 0 }, {
|
|
230
|
-
default: t(() => [
|
|
231
|
-
u(i(s), 1)
|
|
232
|
-
]),
|
|
233
|
-
_: 2
|
|
234
|
-
}, 1024)) : a("", !0)
|
|
235
|
-
], 64);
|
|
236
|
-
}), 128)),
|
|
237
|
-
e.required ? (r(), n("div", G, " required ")) : a("", !0)
|
|
220
|
+
(I = e.value) != null && I.writeOnly ? (r(), n("div", j, " write-only ")) : (N = e.value) != null && N.readOnly ? (r(), n("div", z, " read-only ")) : t("", !0),
|
|
221
|
+
e.required ? (r(), n("div", E, " required ")) : t("", !0)
|
|
238
222
|
]);
|
|
239
223
|
};
|
|
240
224
|
}
|
|
241
225
|
});
|
|
242
226
|
export {
|
|
243
|
-
|
|
227
|
+
Q as default
|
|
244
228
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./OperationsList.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-324fe114"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -44,11 +44,11 @@ const h = ["aria-label"], T = /* @__PURE__ */ f({
|
|
|
44
44
|
}, [
|
|
45
45
|
(a(!0), k(y, null, O(e.tag.operations, (m) => (a(), p(v, {
|
|
46
46
|
key: t(u)(m, e.tag),
|
|
47
|
+
collection: e.collection,
|
|
47
48
|
isCollapsed: e.isCollapsed,
|
|
48
49
|
tag: e.tag,
|
|
49
|
-
transformedOperation: m
|
|
50
|
-
|
|
51
|
-
}, null, 8, ["isCollapsed", "tag", "transformedOperation", "collection"]))), 128))
|
|
50
|
+
transformedOperation: m
|
|
51
|
+
}, null, 8, ["collection", "isCollapsed", "tag", "transformedOperation"]))), 128))
|
|
52
52
|
], 8, h)
|
|
53
53
|
]),
|
|
54
54
|
_: 1
|
|
@@ -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":"AAqEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AACjE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAoB/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;;AA8JF,wBAOG"}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { defineComponent 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
|
-
|
|
1
|
+
import { defineComponent as c, computed as g, openBlock as n, createBlock as d, unref as e, withCtx as t, withDirectives as C, createVNode as a, createTextVNode as m, toDisplayString as S, createCommentVNode as v, vShow as h } from "vue";
|
|
2
|
+
import { ScalarMarkdown as w } from "@scalar/components";
|
|
3
|
+
import N from "../../ScreenReader.vue.js";
|
|
4
|
+
import { useConfig as k } from "../../../hooks/useConfig.js";
|
|
5
|
+
import { useNavState as y } from "../../../hooks/useNavState.js";
|
|
6
|
+
import I from "./OperationsList.vue.js";
|
|
7
|
+
import T from "../../Section/Section.vue.js";
|
|
8
|
+
import _ from "../../Section/SectionHeader.vue.js";
|
|
9
|
+
import B from "../../Anchor/Anchor.vue.js";
|
|
10
|
+
import L from "../../Section/SectionHeaderTag.vue.js";
|
|
11
|
+
import V from "../../Section/SectionContent.vue.js";
|
|
12
|
+
import b from "../../Section/SectionColumns.vue.js";
|
|
13
|
+
import p from "../../Section/SectionColumn.vue.js";
|
|
14
|
+
const J = /* @__PURE__ */ c({
|
|
14
15
|
__name: "Tag",
|
|
15
16
|
props: {
|
|
16
17
|
id: {},
|
|
@@ -19,32 +20,32 @@ const q = /* @__PURE__ */ s({
|
|
|
19
20
|
headerId: {},
|
|
20
21
|
isCollapsed: { type: Boolean }
|
|
21
22
|
},
|
|
22
|
-
setup(
|
|
23
|
-
const
|
|
24
|
-
return (o, r) => (n(),
|
|
23
|
+
setup(s) {
|
|
24
|
+
const l = s, { getTagId: f } = y(), i = k(), u = g(() => l.tag["x-displayName"] ?? l.tag.name);
|
|
25
|
+
return (o, r) => (n(), d(e(T), {
|
|
25
26
|
id: o.id,
|
|
26
27
|
label: o.tag.name.toUpperCase(),
|
|
27
28
|
role: "none"
|
|
28
29
|
}, {
|
|
29
30
|
default: t(() => [
|
|
30
|
-
|
|
31
|
+
C(a(e(_), null, {
|
|
31
32
|
default: t(() => [
|
|
32
|
-
|
|
33
|
-
id: e(
|
|
33
|
+
a(e(B), {
|
|
34
|
+
id: e(f)(o.tag)
|
|
34
35
|
}, {
|
|
35
36
|
default: t(() => [
|
|
36
|
-
|
|
37
|
+
a(e(L), {
|
|
37
38
|
id: o.headerId,
|
|
38
39
|
level: 2
|
|
39
40
|
}, {
|
|
40
41
|
default: t(() => [
|
|
41
|
-
|
|
42
|
-
o.isCollapsed ? (n(),
|
|
42
|
+
m(S(u.value) + " ", 1),
|
|
43
|
+
o.isCollapsed ? (n(), d(N, { key: 0 }, {
|
|
43
44
|
default: t(() => r[0] || (r[0] = [
|
|
44
|
-
|
|
45
|
+
m(" (Collapsed)")
|
|
45
46
|
])),
|
|
46
47
|
_: 1
|
|
47
|
-
})) :
|
|
48
|
+
})) : v("", !0)
|
|
48
49
|
]),
|
|
49
50
|
_: 1
|
|
50
51
|
}, 8, ["id"])
|
|
@@ -53,14 +54,18 @@ const q = /* @__PURE__ */ s({
|
|
|
53
54
|
}, 8, ["id"])
|
|
54
55
|
]),
|
|
55
56
|
_: 1
|
|
56
|
-
}),
|
|
57
|
-
|
|
57
|
+
}, 512), [
|
|
58
|
+
[h, !e(i).isLoading]
|
|
59
|
+
]),
|
|
60
|
+
a(e(V), {
|
|
61
|
+
loading: e(i).isLoading
|
|
62
|
+
}, {
|
|
58
63
|
default: t(() => [
|
|
59
|
-
|
|
64
|
+
a(e(b), null, {
|
|
60
65
|
default: t(() => [
|
|
61
|
-
|
|
66
|
+
a(e(p), null, {
|
|
62
67
|
default: t(() => [
|
|
63
|
-
|
|
68
|
+
a(e(w), {
|
|
64
69
|
clamp: o.isCollapsed ? "7" : !1,
|
|
65
70
|
value: o.tag.description,
|
|
66
71
|
withImages: ""
|
|
@@ -68,12 +73,12 @@ const q = /* @__PURE__ */ s({
|
|
|
68
73
|
]),
|
|
69
74
|
_: 1
|
|
70
75
|
}),
|
|
71
|
-
|
|
76
|
+
a(e(p), null, {
|
|
72
77
|
default: t(() => [
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}, null, 8, ["
|
|
78
|
+
a(I, {
|
|
79
|
+
collection: o.collection,
|
|
80
|
+
tag: o.tag
|
|
81
|
+
}, null, 8, ["collection", "tag"])
|
|
77
82
|
]),
|
|
78
83
|
_: 1
|
|
79
84
|
})
|
|
@@ -82,12 +87,12 @@ const q = /* @__PURE__ */ s({
|
|
|
82
87
|
})
|
|
83
88
|
]),
|
|
84
89
|
_: 1
|
|
85
|
-
})
|
|
90
|
+
}, 8, ["loading"])
|
|
86
91
|
]),
|
|
87
92
|
_: 1
|
|
88
93
|
}, 8, ["id", "label"]));
|
|
89
94
|
}
|
|
90
95
|
});
|
|
91
96
|
export {
|
|
92
|
-
|
|
97
|
+
J as default
|
|
93
98
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Collection, Server } from '@scalar/oas-utils/entities/spec';
|
|
2
|
+
import type { OpenAPIV2, OpenAPIV3, OpenAPIV3_1 } from '@scalar/openapi-types';
|
|
2
3
|
import type { Spec, Tag as TagType } from '@scalar/types/legacy';
|
|
3
4
|
type __VLS_Props = {
|
|
4
5
|
collection: Collection;
|
|
@@ -6,6 +7,7 @@ type __VLS_Props = {
|
|
|
6
7
|
spec: Spec;
|
|
7
8
|
layout?: 'modern' | 'classic';
|
|
8
9
|
server?: Server;
|
|
10
|
+
schemas?: OpenAPIV2.DefinitionsObject | Record<string, OpenAPIV3.SchemaObject> | Record<string, OpenAPIV3_1.SchemaObject> | unknown;
|
|
9
11
|
};
|
|
10
12
|
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>;
|
|
11
13
|
export default _default;
|
|
@@ -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":"AAoFA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAC9E,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAYhE,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,IAAI,EAAE,OAAO,EAAE,CAAA;IACf,IAAI,EAAE,IAAI,CAAA;IACV,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EACJ,SAAS,CAAC,iBAAiB,GAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,GACtC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GACxC,OAAO,CAAA;CACZ,CAAC;;AA+HF,wBAMG"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as S, computed as f, openBlock as
|
|
1
|
+
import { defineComponent as S, computed as f, openBlock as s, createElementBlock as p, Fragment as y, renderList as h, createBlock as i, unref as o, withCtx as l, resolveDynamicComponent as B, createVNode as v } from "vue";
|
|
2
2
|
import { ScalarErrorBoundary as T } from "@scalar/components";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { useNavState as
|
|
8
|
-
import { useSidebar as
|
|
3
|
+
import $ from "./TagAccordion.vue.js";
|
|
4
|
+
import b from "./TagSection.vue.js";
|
|
5
|
+
import L from "../Lazy/Lazy.vue2.js";
|
|
6
|
+
import C from "../../../features/Operation/Operation.vue.js";
|
|
7
|
+
import { useNavState as O } from "../../../hooks/useNavState.js";
|
|
8
|
+
import { useSidebar as _ } from "../../../hooks/useSidebar.js";
|
|
9
9
|
const q = /* @__PURE__ */ S({
|
|
10
10
|
__name: "TagList",
|
|
11
11
|
props: {
|
|
@@ -13,42 +13,44 @@ const q = /* @__PURE__ */ S({
|
|
|
13
13
|
tags: {},
|
|
14
14
|
spec: {},
|
|
15
15
|
layout: {},
|
|
16
|
-
server: {}
|
|
16
|
+
server: {},
|
|
17
|
+
schemas: {}
|
|
17
18
|
},
|
|
18
|
-
setup(
|
|
19
|
-
const { getOperationId:
|
|
20
|
-
() =>
|
|
19
|
+
setup(c) {
|
|
20
|
+
const { getOperationId: n, getTagId: r, hash: z } = O(), { collapsedSidebarItems: m } = _(), I = f(
|
|
21
|
+
() => c.layout === "classic" ? $ : b
|
|
21
22
|
), g = f(
|
|
22
|
-
() =>
|
|
23
|
-
),
|
|
24
|
-
return (
|
|
25
|
-
id:
|
|
26
|
-
key:
|
|
27
|
-
isLazy: d
|
|
23
|
+
() => c.tags.findIndex((e) => !m[r(e)]) + 1
|
|
24
|
+
), u = (e) => c.layout !== "classic" && !z.value.startsWith("model") && e > g.value;
|
|
25
|
+
return (e, E) => (s(!0), p(y, null, h(e.tags, (t, d) => (s(), i(o(L), {
|
|
26
|
+
id: o(r)(t),
|
|
27
|
+
key: o(r)(t),
|
|
28
|
+
isLazy: u(d)
|
|
28
29
|
}, {
|
|
29
|
-
default:
|
|
30
|
-
(
|
|
31
|
-
id:
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
default: l(() => [
|
|
31
|
+
(s(), i(B(I.value), {
|
|
32
|
+
id: o(r)(t),
|
|
33
|
+
collection: e.collection,
|
|
34
|
+
spec: e.spec,
|
|
34
35
|
tag: t
|
|
35
36
|
}, {
|
|
36
|
-
default:
|
|
37
|
-
(
|
|
38
|
-
id:
|
|
37
|
+
default: l(() => [
|
|
38
|
+
(s(!0), p(y, null, h(t.operations, (a, k) => (s(), i(o(L), {
|
|
39
|
+
id: o(n)(a, t),
|
|
39
40
|
key: `${a.httpVerb}-${a.operationId}`,
|
|
40
|
-
isLazy: d
|
|
41
|
+
isLazy: u(d) || o(m)[o(r)(t)] && k > 0
|
|
41
42
|
}, {
|
|
42
|
-
default:
|
|
43
|
-
|
|
44
|
-
default:
|
|
45
|
-
|
|
46
|
-
id:
|
|
47
|
-
collection:
|
|
48
|
-
layout:
|
|
49
|
-
|
|
43
|
+
default: l(() => [
|
|
44
|
+
v(o(T), null, {
|
|
45
|
+
default: l(() => [
|
|
46
|
+
v(o(C), {
|
|
47
|
+
id: o(n)(a, t),
|
|
48
|
+
collection: e.collection,
|
|
49
|
+
layout: e.layout,
|
|
50
|
+
schemas: e.schemas,
|
|
51
|
+
server: e.server,
|
|
50
52
|
transformedOperation: a
|
|
51
|
-
}, null, 8, ["id", "collection", "layout", "server", "transformedOperation"])
|
|
53
|
+
}, null, 8, ["id", "collection", "layout", "schemas", "server", "transformedOperation"])
|
|
52
54
|
]),
|
|
53
55
|
_: 2
|
|
54
56
|
}, 1024)
|
|
@@ -57,7 +59,7 @@ const q = /* @__PURE__ */ S({
|
|
|
57
59
|
}, 1032, ["id", "isLazy"]))), 128))
|
|
58
60
|
]),
|
|
59
61
|
_: 2
|
|
60
|
-
}, 1032, ["id", "
|
|
62
|
+
}, 1032, ["id", "collection", "spec", "tag"]))
|
|
61
63
|
]),
|
|
62
64
|
_: 2
|
|
63
65
|
}, 1032, ["id", "isLazy"]))), 128));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./TagSection.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-e5f682e5"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -39,11 +39,11 @@ const M = /* @__PURE__ */ k({
|
|
|
39
39
|
g.value ? (n(), l(w, {
|
|
40
40
|
key: 0,
|
|
41
41
|
id: e.id,
|
|
42
|
+
collection: e.collection,
|
|
42
43
|
headerId: o(i),
|
|
43
44
|
isCollapsed: !o(s)[o(c)(e.tag)],
|
|
44
|
-
tag: e.tag
|
|
45
|
-
|
|
46
|
-
}, null, 8, ["id", "headerId", "isCollapsed", "tag", "collection"])) : b("", !0),
|
|
45
|
+
tag: e.tag
|
|
46
|
+
}, null, 8, ["id", "collection", "headerId", "isCollapsed", "tag"])) : b("", !0),
|
|
47
47
|
!o(s)[o(c)(e.tag)] && d.value ? (n(), l(I, {
|
|
48
48
|
key: 1,
|
|
49
49
|
id: e.id ?? "",
|