@scalar/api-reference 1.25.127 → 1.25.130
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 +67 -0
- package/dist/browser/standalone.js +13272 -13158
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReference.vue.d.ts.map +1 -1
- package/dist/components/ApiReference.vue.js +40 -64
- package/dist/components/ApiReferenceLayout.vue.d.ts +2 -2
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +2 -2
- package/dist/components/ApiReferenceLayout.vue2.js +158 -159
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +1 -1
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +69 -17
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts +5 -1
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.js +2 -2
- package/dist/components/Content/ClientLibraries/ClientSelector.vue2.js +73 -94
- package/dist/components/Content/ClientLibraries/useFeaturedHttpClients.d.ts +16 -0
- package/dist/components/Content/ClientLibraries/useFeaturedHttpClients.d.ts.map +1 -0
- package/dist/components/Content/ClientLibraries/useFeaturedHttpClients.js +36 -0
- package/dist/components/Content/Lazy/Loading.vue.js +15 -15
- package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/Schema.vue.js +2 -2
- package/dist/components/Content/Schema/Schema.vue2.js +4 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue2.js +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +2 -2
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +143 -124
- package/dist/components/Content/Tag/{Endpoints.vue.d.ts → OperationsList.vue.d.ts} +1 -3
- package/dist/components/Content/Tag/OperationsList.vue.d.ts.map +1 -0
- package/dist/components/Content/Tag/OperationsList.vue.js +7 -0
- package/dist/components/Content/Tag/OperationsList.vue2.js +62 -0
- package/dist/components/Content/Tag/OperationsListItem.vue.d.ts +9 -0
- package/dist/components/Content/Tag/OperationsListItem.vue.d.ts.map +1 -0
- package/dist/components/Content/Tag/OperationsListItem.vue.js +7 -0
- package/dist/components/Content/Tag/OperationsListItem.vue2.js +66 -0
- package/dist/components/Content/Tag/Tag.vue.d.ts +4 -64
- package/dist/components/Content/Tag/Tag.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/Tag.vue.js +87 -5
- package/dist/components/Content/Tag/Tag.vue2.js +2 -63
- package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/TagList.vue.js +11 -11
- package/dist/components/Content/Tag/TagSection.vue.d.ts +70 -0
- package/dist/components/Content/Tag/TagSection.vue.d.ts.map +1 -0
- package/dist/components/Content/Tag/TagSection.vue.js +7 -0
- package/dist/components/Content/Tag/TagSection.vue2.js +65 -0
- package/dist/components/Content/Tag/index.d.ts +1 -2
- package/dist/components/Content/Tag/index.d.ts.map +1 -1
- package/dist/components/GettingStarted.vue.d.ts.map +1 -1
- package/dist/components/GettingStarted.vue.js +1 -1
- package/dist/components/GettingStarted.vue2.js +13 -13
- package/dist/components/Layouts/ClassicLayout.vue.d.ts +3 -3
- package/dist/components/Layouts/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/components/Layouts/Layouts.vue.d.ts +3 -3
- package/dist/components/Layouts/Layouts.vue.d.ts.map +1 -1
- package/dist/components/Layouts/ModernLayout.vue.d.ts +3 -3
- package/dist/components/Layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/components/Layouts/ModernLayout.vue.js +2 -2
- package/dist/components/Section/CompactSection.vue.d.ts.map +1 -1
- package/dist/components/Section/CompactSection.vue.js +2 -2
- package/dist/components/Section/CompactSection.vue2.js +30 -29
- package/dist/esm.d.ts +5 -3
- package/dist/esm.d.ts.map +1 -1
- package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts +2 -2
- package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/features/ApiClientModal/useApiClient.d.ts +386 -346
- package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -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 +82 -74
- package/dist/features/ExampleResponses/ExampleResponse.vue.d.ts.map +1 -1
- package/dist/features/ExampleResponses/ExampleResponse.vue.js +2 -2
- package/dist/features/ExampleResponses/ExampleResponse.vue2.js +11 -11
- package/dist/features/ExampleResponses/ExampleResponses.vue.d.ts.map +1 -1
- package/dist/features/ExampleResponses/ExampleResponses.vue.js +2 -2
- package/dist/features/ExampleResponses/ExampleResponses.vue2.js +90 -78
- package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts +1 -1
- package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ContentTypeSelect.vue.js +1 -1
- package/dist/features/Operation/components/ContentTypeSelect.vue2.js +29 -25
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue.js +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue2.js +40 -47
- 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/layouts/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
- package/dist/features/Operation/layouts/ClassicLayout.vue2.js +54 -54
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue.js +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue2.js +65 -67
- package/dist/helpers/get-request.d.ts +2 -1
- package/dist/helpers/get-request.d.ts.map +1 -1
- package/dist/helpers/index.d.ts +0 -1
- package/dist/helpers/index.d.ts.map +1 -1
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/useConfig.d.ts +3 -3
- package/dist/hooks/useConfig.d.ts.map +1 -1
- package/dist/hooks/useConfig.js +5 -4
- package/dist/hooks/useReactiveSpec.d.ts +8 -8
- package/dist/hooks/useSidebar.d.ts.map +1 -1
- package/dist/hooks/useSidebar.js +126 -116
- package/dist/index.js +56 -62
- package/dist/libs/operation.d.ts +15 -0
- package/dist/libs/operation.d.ts.map +1 -0
- package/dist/libs/operation.js +16 -0
- package/dist/standalone/lib/html-api.d.ts +3 -3
- package/dist/standalone/lib/html-api.d.ts.map +1 -1
- package/dist/stores/useHttpClientStore.d.ts +1 -1
- package/dist/stores/useHttpClientStore.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types.d.ts +20 -3
- package/dist/types.d.ts.map +1 -1
- package/package.json +13 -13
- package/dist/components/Content/Tag/Endpoints.vue.d.ts.map +0 -1
- package/dist/components/Content/Tag/Endpoints.vue.js +0 -7
- package/dist/components/Content/Tag/Endpoints.vue2.js +0 -161
- package/dist/helpers/operation.d.ts +0 -14
- package/dist/helpers/operation.d.ts.map +0 -1
- package/dist/helpers/operation.js +0 -18
- package/dist/hooks/useDeprecationWarnings.d.ts +0 -6
- package/dist/hooks/useDeprecationWarnings.d.ts.map +0 -1
- package/dist/hooks/useDeprecationWarnings.js +0 -20
- package/dist/standalone/lib/html-rendering.d.ts +0 -51
- package/dist/standalone/lib/html-rendering.d.ts.map +0 -1
- package/dist/standalone/lib/html-rendering.js +0 -54
|
@@ -1,31 +1,32 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as V, openBlock as t, createElementBlock as n, renderSlot as w, Fragment as m, createTextVNode as u, createCommentVNode as a, toDisplayString as i, createVNode as v, unref as f, withCtx as r, createBlock as d, renderList as $ } from "vue";
|
|
2
|
+
import k from "../../ScreenReader.vue.js";
|
|
2
3
|
import o from "./SchemaPropertyDetail.vue.js";
|
|
3
|
-
import
|
|
4
|
-
const
|
|
4
|
+
import g from "../../Badge/Badge.vue.js";
|
|
5
|
+
const C = { class: "property-heading" }, D = {
|
|
5
6
|
key: 0,
|
|
6
7
|
class: "property-name"
|
|
7
|
-
},
|
|
8
|
+
}, F = {
|
|
8
9
|
key: 1,
|
|
9
10
|
class: "property-additional"
|
|
10
|
-
},
|
|
11
|
+
}, T = {
|
|
11
12
|
key: 2,
|
|
12
13
|
class: "property-pattern"
|
|
13
|
-
},
|
|
14
|
+
}, j = {
|
|
14
15
|
key: 3,
|
|
15
16
|
class: "property-deprecated"
|
|
16
|
-
},
|
|
17
|
+
}, E = {
|
|
17
18
|
key: 4,
|
|
18
19
|
class: "property-const"
|
|
19
20
|
}, H = {
|
|
20
21
|
key: 7,
|
|
21
22
|
class: "property-write-only"
|
|
22
|
-
},
|
|
23
|
+
}, R = {
|
|
23
24
|
key: 8,
|
|
24
25
|
class: "property-read-only"
|
|
25
26
|
}, z = {
|
|
26
27
|
key: 9,
|
|
27
28
|
class: "property-required"
|
|
28
|
-
},
|
|
29
|
+
}, W = /* @__PURE__ */ V({
|
|
29
30
|
__name: "SchemaPropertyHeading",
|
|
30
31
|
props: {
|
|
31
32
|
value: {},
|
|
@@ -35,191 +36,209 @@ const $ = { class: "property-heading" }, C = {
|
|
|
35
36
|
pattern: { type: Boolean }
|
|
36
37
|
},
|
|
37
38
|
setup(G) {
|
|
38
|
-
const
|
|
39
|
-
return (e,
|
|
40
|
-
var
|
|
41
|
-
return
|
|
42
|
-
e.$slots.name ? (
|
|
43
|
-
e.pattern ? (
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
], 64)) :
|
|
48
|
-
])) :
|
|
49
|
-
e.additional ? (
|
|
50
|
-
(
|
|
51
|
-
|
|
52
|
-
], 64)) : (
|
|
53
|
-
|
|
39
|
+
const A = ["oneOf", "anyOf", "allOf", "not"], M = (e) => Array.isArray(e == null ? void 0 : e.default) && e.default.length === 1 ? e.default[0] : e == null ? void 0 : e.default;
|
|
40
|
+
return (e, l) => {
|
|
41
|
+
var B, q, I, L, N, O, P, S;
|
|
42
|
+
return t(), n("div", C, [
|
|
43
|
+
e.$slots.name ? (t(), n("div", D, [
|
|
44
|
+
e.pattern ? (t(), n(m, { key: 1 }, [
|
|
45
|
+
l[0] || (l[0] = u("/")),
|
|
46
|
+
w(e.$slots, "name", {}, void 0, !0),
|
|
47
|
+
l[1] || (l[1] = u("/"))
|
|
48
|
+
], 64)) : w(e.$slots, "name", { key: 0 }, void 0, !0)
|
|
49
|
+
])) : a("", !0),
|
|
50
|
+
e.additional ? (t(), n("div", F, [
|
|
51
|
+
(B = e.value) != null && B["x-additionalPropertiesName"] ? (t(), n(m, { key: 0 }, [
|
|
52
|
+
u(i(e.value["x-additionalPropertiesName"]), 1)
|
|
53
|
+
], 64)) : (t(), n(m, { key: 1 }, [
|
|
54
|
+
u("additional properties")
|
|
54
55
|
], 64))
|
|
55
|
-
])) :
|
|
56
|
-
e.pattern ? (
|
|
57
|
-
v(f(
|
|
58
|
-
default:
|
|
59
|
-
|
|
56
|
+
])) : a("", !0),
|
|
57
|
+
e.pattern ? (t(), n("div", T, [
|
|
58
|
+
v(f(g), null, {
|
|
59
|
+
default: r(() => l[2] || (l[2] = [
|
|
60
|
+
u("pattern")
|
|
60
61
|
])),
|
|
61
62
|
_: 1
|
|
62
63
|
})
|
|
63
|
-
])) :
|
|
64
|
-
(
|
|
65
|
-
v(f(
|
|
66
|
-
default:
|
|
67
|
-
|
|
64
|
+
])) : a("", !0),
|
|
65
|
+
(q = e.value) != null && q.deprecated ? (t(), n("div", j, [
|
|
66
|
+
v(f(g), null, {
|
|
67
|
+
default: r(() => l[3] || (l[3] = [
|
|
68
|
+
u("deprecated")
|
|
68
69
|
])),
|
|
69
70
|
_: 1
|
|
70
71
|
})
|
|
71
|
-
])) :
|
|
72
|
-
(
|
|
72
|
+
])) : a("", !0),
|
|
73
|
+
(I = e.value) != null && I.const || (L = e.value) != null && L.enum && e.value.enum.length === 1 ? (t(), n("div", E, [
|
|
73
74
|
v(o, { truncate: "" }, {
|
|
74
|
-
prefix:
|
|
75
|
-
|
|
75
|
+
prefix: r(() => l[4] || (l[4] = [
|
|
76
|
+
u("const:")
|
|
76
77
|
])),
|
|
77
|
-
default:
|
|
78
|
-
|
|
78
|
+
default: r(() => [
|
|
79
|
+
u(" " + i(e.value.const ?? e.value.enum[0]), 1)
|
|
79
80
|
]),
|
|
80
81
|
_: 1
|
|
81
82
|
})
|
|
82
|
-
])) : (
|
|
83
|
+
])) : (N = e.value) != null && N.type ? (t(), n(m, { key: 5 }, [
|
|
83
84
|
v(o, null, {
|
|
84
|
-
default:
|
|
85
|
+
default: r(() => {
|
|
85
86
|
var s, p, y;
|
|
86
87
|
return [
|
|
87
|
-
(
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
88
|
+
v(k, null, {
|
|
89
|
+
default: r(() => l[5] || (l[5] = [
|
|
90
|
+
u("Type:")
|
|
91
|
+
])),
|
|
92
|
+
_: 1
|
|
93
|
+
}),
|
|
94
|
+
(p = (s = e.value) == null ? void 0 : s.items) != null && p.type ? (t(), n(m, { key: 0 }, [
|
|
95
|
+
u(i(e.value.type) + " " + i(e.value.items.type) + "[] ", 1)
|
|
96
|
+
], 64)) : (t(), n(m, { key: 1 }, [
|
|
97
|
+
u(i(Array.isArray(e.value.type) ? e.value.type.join(" | ") : e.value.type) + " " + i((y = e.value) != null && y.nullable ? " | nullable" : ""), 1)
|
|
91
98
|
], 64)),
|
|
92
|
-
e.value.minItems || e.value.maxItems ? (
|
|
93
|
-
|
|
94
|
-
], 64)) :
|
|
99
|
+
e.value.minItems || e.value.maxItems ? (t(), n(m, { key: 2 }, [
|
|
100
|
+
u(i(e.value.minItems) + "…" + i(e.value.maxItems), 1)
|
|
101
|
+
], 64)) : a("", !0)
|
|
95
102
|
];
|
|
96
103
|
}),
|
|
97
104
|
_: 1
|
|
98
105
|
}),
|
|
99
|
-
e.value.minLength ? (
|
|
100
|
-
prefix:
|
|
101
|
-
|
|
106
|
+
e.value.minLength ? (t(), d(o, { key: 0 }, {
|
|
107
|
+
prefix: r(() => l[6] || (l[6] = [
|
|
108
|
+
u("min:")
|
|
102
109
|
])),
|
|
103
|
-
default:
|
|
104
|
-
|
|
110
|
+
default: r(() => [
|
|
111
|
+
u(" " + i(e.value.minLength), 1)
|
|
105
112
|
]),
|
|
106
113
|
_: 1
|
|
107
|
-
})) :
|
|
108
|
-
e.value.maxLength ? (
|
|
109
|
-
prefix:
|
|
110
|
-
|
|
114
|
+
})) : a("", !0),
|
|
115
|
+
e.value.maxLength ? (t(), d(o, { key: 1 }, {
|
|
116
|
+
prefix: r(() => l[7] || (l[7] = [
|
|
117
|
+
u("max:")
|
|
111
118
|
])),
|
|
112
|
-
default:
|
|
113
|
-
|
|
119
|
+
default: r(() => [
|
|
120
|
+
u(" " + i(e.value.maxLength), 1)
|
|
114
121
|
]),
|
|
115
122
|
_: 1
|
|
116
|
-
})) :
|
|
117
|
-
e.value.uniqueItems ? (
|
|
118
|
-
default:
|
|
119
|
-
|
|
123
|
+
})) : a("", !0),
|
|
124
|
+
e.value.uniqueItems ? (t(), d(o, { key: 2 }, {
|
|
125
|
+
default: r(() => l[8] || (l[8] = [
|
|
126
|
+
u(" unique! ")
|
|
120
127
|
])),
|
|
121
128
|
_: 1
|
|
122
|
-
})) :
|
|
123
|
-
e.value.format ? (
|
|
124
|
-
default:
|
|
125
|
-
|
|
129
|
+
})) : a("", !0),
|
|
130
|
+
e.value.format ? (t(), d(o, { key: 3 }, {
|
|
131
|
+
default: r(() => [
|
|
132
|
+
v(k, null, {
|
|
133
|
+
default: r(() => l[9] || (l[9] = [
|
|
134
|
+
u("Format:")
|
|
135
|
+
])),
|
|
136
|
+
_: 1
|
|
137
|
+
}),
|
|
138
|
+
u(" " + i(e.value.format), 1)
|
|
126
139
|
]),
|
|
127
140
|
_: 1
|
|
128
|
-
})) :
|
|
129
|
-
e.value.minimum !== void 0 && e.value.exclusiveMinimum ? (
|
|
130
|
-
prefix:
|
|
131
|
-
|
|
141
|
+
})) : a("", !0),
|
|
142
|
+
e.value.minimum !== void 0 && e.value.exclusiveMinimum ? (t(), d(o, { key: 4 }, {
|
|
143
|
+
prefix: r(() => l[10] || (l[10] = [
|
|
144
|
+
u("greater than:")
|
|
132
145
|
])),
|
|
133
|
-
default:
|
|
134
|
-
|
|
146
|
+
default: r(() => [
|
|
147
|
+
u(" " + i(e.value.minimum), 1)
|
|
135
148
|
]),
|
|
136
149
|
_: 1
|
|
137
|
-
})) :
|
|
138
|
-
e.value.minimum !== void 0 && !e.value.exclusiveMinimum ? (
|
|
139
|
-
prefix:
|
|
140
|
-
|
|
150
|
+
})) : a("", !0),
|
|
151
|
+
e.value.minimum !== void 0 && !e.value.exclusiveMinimum ? (t(), d(o, { key: 5 }, {
|
|
152
|
+
prefix: r(() => l[11] || (l[11] = [
|
|
153
|
+
u("min:")
|
|
141
154
|
])),
|
|
142
|
-
default:
|
|
143
|
-
|
|
155
|
+
default: r(() => [
|
|
156
|
+
u(" " + i(e.value.minimum), 1)
|
|
144
157
|
]),
|
|
145
158
|
_: 1
|
|
146
|
-
})) :
|
|
147
|
-
e.value.maximum !== void 0 && e.value.exclusiveMaximum ? (
|
|
148
|
-
prefix:
|
|
149
|
-
|
|
159
|
+
})) : a("", !0),
|
|
160
|
+
e.value.maximum !== void 0 && e.value.exclusiveMaximum ? (t(), d(o, { key: 6 }, {
|
|
161
|
+
prefix: r(() => l[12] || (l[12] = [
|
|
162
|
+
u("less than:")
|
|
150
163
|
])),
|
|
151
|
-
default:
|
|
152
|
-
|
|
164
|
+
default: r(() => [
|
|
165
|
+
u(" " + i(e.value.maximum), 1)
|
|
153
166
|
]),
|
|
154
167
|
_: 1
|
|
155
|
-
})) :
|
|
156
|
-
e.value.maximum !== void 0 && !e.value.exclusiveMaximum ? (
|
|
157
|
-
prefix:
|
|
158
|
-
|
|
168
|
+
})) : a("", !0),
|
|
169
|
+
e.value.maximum !== void 0 && !e.value.exclusiveMaximum ? (t(), d(o, { key: 7 }, {
|
|
170
|
+
prefix: r(() => l[13] || (l[13] = [
|
|
171
|
+
u("max:")
|
|
159
172
|
])),
|
|
160
|
-
default:
|
|
161
|
-
|
|
173
|
+
default: r(() => [
|
|
174
|
+
u(" " + i(e.value.maximum), 1)
|
|
162
175
|
]),
|
|
163
176
|
_: 1
|
|
164
|
-
})) :
|
|
165
|
-
e.value.pattern ? (
|
|
177
|
+
})) : a("", !0),
|
|
178
|
+
e.value.pattern ? (t(), d(o, {
|
|
166
179
|
key: 8,
|
|
167
180
|
code: "",
|
|
168
181
|
truncate: ""
|
|
169
182
|
}, {
|
|
170
|
-
default:
|
|
171
|
-
|
|
183
|
+
default: r(() => [
|
|
184
|
+
v(k, null, {
|
|
185
|
+
default: r(() => l[14] || (l[14] = [
|
|
186
|
+
u("Pattern:")
|
|
187
|
+
])),
|
|
188
|
+
_: 1
|
|
189
|
+
}),
|
|
190
|
+
u(" " + i(e.value.pattern), 1)
|
|
172
191
|
]),
|
|
173
192
|
_: 1
|
|
174
|
-
})) :
|
|
175
|
-
e.$props.enum ? (
|
|
176
|
-
default:
|
|
177
|
-
|
|
193
|
+
})) : a("", !0),
|
|
194
|
+
e.$props.enum ? (t(), d(o, { key: 9 }, {
|
|
195
|
+
default: r(() => l[15] || (l[15] = [
|
|
196
|
+
u("enum")
|
|
178
197
|
])),
|
|
179
198
|
_: 1
|
|
180
|
-
})) :
|
|
181
|
-
e.value.default !== void 0 ? (
|
|
199
|
+
})) : a("", !0),
|
|
200
|
+
e.value.default !== void 0 ? (t(), d(o, {
|
|
182
201
|
key: 10,
|
|
183
202
|
truncate: ""
|
|
184
203
|
}, {
|
|
185
|
-
prefix:
|
|
186
|
-
|
|
204
|
+
prefix: r(() => l[16] || (l[16] = [
|
|
205
|
+
u("default:")
|
|
187
206
|
])),
|
|
188
|
-
default:
|
|
189
|
-
|
|
207
|
+
default: r(() => [
|
|
208
|
+
u(" " + i(M(e.value)), 1)
|
|
190
209
|
]),
|
|
191
210
|
_: 1
|
|
192
|
-
})) :
|
|
193
|
-
], 64)) : (
|
|
194
|
-
((
|
|
195
|
-
default:
|
|
196
|
-
|
|
211
|
+
})) : a("", !0)
|
|
212
|
+
], 64)) : (t(), n(m, { key: 6 }, [
|
|
213
|
+
((O = e.value) == null ? void 0 : O.nullable) === !0 ? (t(), d(o, { key: 0 }, {
|
|
214
|
+
default: r(() => l[17] || (l[17] = [
|
|
215
|
+
u(" nullable ")
|
|
197
216
|
])),
|
|
198
217
|
_: 1
|
|
199
|
-
})) :
|
|
218
|
+
})) : a("", !0)
|
|
200
219
|
], 64)),
|
|
201
|
-
(
|
|
202
|
-
(
|
|
220
|
+
(P = e.value) != null && P.writeOnly ? (t(), n("div", H, " write-only ")) : (S = e.value) != null && S.readOnly ? (t(), n("div", R, " read-only ")) : a("", !0),
|
|
221
|
+
(t(!0), n(m, null, $(A.filter(
|
|
203
222
|
(s) => {
|
|
204
|
-
var p, y,
|
|
205
|
-
return ((p = e.value) == null ? void 0 : p[s]) || ((
|
|
223
|
+
var p, y, b;
|
|
224
|
+
return ((p = e.value) == null ? void 0 : p[s]) || ((b = (y = e.value) == null ? void 0 : y.items) == null ? void 0 : b[s]);
|
|
206
225
|
}
|
|
207
226
|
), (s) => {
|
|
208
227
|
var p, y;
|
|
209
|
-
return
|
|
210
|
-
((y = (p = e.value) == null ? void 0 : p[s]) == null ? void 0 : y.length) > 1 ? (
|
|
211
|
-
default:
|
|
212
|
-
|
|
228
|
+
return t(), n(m, { key: s }, [
|
|
229
|
+
((y = (p = e.value) == null ? void 0 : p[s]) == null ? void 0 : y.length) > 1 ? (t(), d(f(g), { key: 0 }, {
|
|
230
|
+
default: r(() => [
|
|
231
|
+
u(i(s), 1)
|
|
213
232
|
]),
|
|
214
233
|
_: 2
|
|
215
|
-
}, 1024)) :
|
|
234
|
+
}, 1024)) : a("", !0)
|
|
216
235
|
], 64);
|
|
217
236
|
}), 128)),
|
|
218
|
-
e.required ? (
|
|
237
|
+
e.required ? (t(), n("div", z, " required ")) : a("", !0)
|
|
219
238
|
]);
|
|
220
239
|
};
|
|
221
240
|
}
|
|
222
241
|
});
|
|
223
242
|
export {
|
|
224
|
-
|
|
243
|
+
W as default
|
|
225
244
|
};
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import type { Tag } from '@scalar/types/legacy';
|
|
2
2
|
type __VLS_Props = {
|
|
3
|
-
id?: string;
|
|
4
3
|
tag: Tag;
|
|
5
|
-
headerId?: string;
|
|
6
4
|
isCollapsed?: boolean;
|
|
7
5
|
};
|
|
8
6
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
7
|
export default _default;
|
|
10
|
-
//# sourceMappingURL=
|
|
8
|
+
//# sourceMappingURL=OperationsList.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OperationsList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/OperationsList.vue"],"names":[],"mappings":"AAsDA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAW/C,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,GAAG,CAAA;IACR,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AAiHF,wBAMG"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { defineComponent as f, computed as g, openBlock as r, createBlock as p, unref as t, withCtx as a, createVNode as o, createTextVNode as d, toDisplayString as C, createElementVNode as N, createElementBlock as k, Fragment as y, renderList as O, createCommentVNode as _ } from "vue";
|
|
2
|
+
import B from "../../ScreenReader.vue.js";
|
|
3
|
+
import { useNavState as V } from "../../../hooks/useNavState.js";
|
|
4
|
+
import v from "./OperationsListItem.vue.js";
|
|
5
|
+
import L from "../../Card/Card.vue.js";
|
|
6
|
+
import S from "../../Card/CardHeader.vue.js";
|
|
7
|
+
import b from "../../Card/CardContent.vue.js";
|
|
8
|
+
const h = ["aria-label"], T = /* @__PURE__ */ f({
|
|
9
|
+
__name: "OperationsList",
|
|
10
|
+
props: {
|
|
11
|
+
tag: {},
|
|
12
|
+
isCollapsed: { type: Boolean }
|
|
13
|
+
},
|
|
14
|
+
setup(u) {
|
|
15
|
+
const s = u, { getOperationId: c } = V(), n = g(() => s.tag["x-displayName"] ?? s.tag.name);
|
|
16
|
+
return (e, l) => {
|
|
17
|
+
var i;
|
|
18
|
+
return ((i = e.tag.operations) == null ? void 0 : i.length) > 0 ? (r(), p(t(L), {
|
|
19
|
+
key: 0,
|
|
20
|
+
class: "scalar-card-sticky"
|
|
21
|
+
}, {
|
|
22
|
+
default: a(() => [
|
|
23
|
+
o(t(S), { muted: "" }, {
|
|
24
|
+
default: a(() => [
|
|
25
|
+
o(B, null, {
|
|
26
|
+
default: a(() => [
|
|
27
|
+
d(C(n.value), 1)
|
|
28
|
+
]),
|
|
29
|
+
_: 1
|
|
30
|
+
}),
|
|
31
|
+
l[0] || (l[0] = d(" Operations "))
|
|
32
|
+
]),
|
|
33
|
+
_: 1
|
|
34
|
+
}),
|
|
35
|
+
o(t(b), {
|
|
36
|
+
class: "custom-scroll",
|
|
37
|
+
muted: ""
|
|
38
|
+
}, {
|
|
39
|
+
default: a(() => [
|
|
40
|
+
N("ul", {
|
|
41
|
+
"aria-label": `${n.value} endpoints`,
|
|
42
|
+
class: "endpoints"
|
|
43
|
+
}, [
|
|
44
|
+
(r(!0), k(y, null, O(e.tag.operations, (m) => (r(), p(v, {
|
|
45
|
+
key: t(c)(m, e.tag),
|
|
46
|
+
isCollapsed: e.isCollapsed,
|
|
47
|
+
tag: e.tag,
|
|
48
|
+
transformedOperation: m
|
|
49
|
+
}, null, 8, ["isCollapsed", "tag", "transformedOperation"]))), 128))
|
|
50
|
+
], 8, h)
|
|
51
|
+
]),
|
|
52
|
+
_: 1
|
|
53
|
+
})
|
|
54
|
+
]),
|
|
55
|
+
_: 1
|
|
56
|
+
})) : _("", !0);
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
export {
|
|
61
|
+
T as default
|
|
62
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Tag, TransformedOperation } from '@scalar/types/legacy';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
transformedOperation: TransformedOperation;
|
|
4
|
+
tag: Tag;
|
|
5
|
+
isCollapsed?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
export default _default;
|
|
9
|
+
//# sourceMappingURL=OperationsListItem.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OperationsListItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/OperationsListItem.vue"],"names":[],"mappings":"AAiIA,OAAO,KAAK,EAAE,GAAG,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAarE,KAAK,WAAW,GAAG;IACjB,oBAAoB,EAAE,oBAAoB,CAAA;IAC1C,GAAG,EAAE,GAAG,CAAA;IACR,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AAkJF,wBAMG"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { defineComponent as u, computed as h, unref as t, openBlock as s, createElementBlock as O, createBlock as g, withCtx as k, createTextVNode as C, toDisplayString as i, createCommentVNode as p, createElementVNode as m, withModifiers as v, createVNode as y, normalizeClass as B } from "vue";
|
|
2
|
+
import { useWorkspace as N } from "@scalar/api-client/store";
|
|
3
|
+
import { getPointer as V } from "../../../blocks/helpers/getPointer.js";
|
|
4
|
+
import { useBlockProps as S } from "../../../blocks/hooks/useBlockProps.js";
|
|
5
|
+
import { useNavState as w } from "../../../hooks/useNavState.js";
|
|
6
|
+
import { useSidebar as H } from "../../../hooks/useSidebar.js";
|
|
7
|
+
import { isOperationDeprecated as I } from "../../../libs/operation.js";
|
|
8
|
+
import T from "../../Section/SectionHeaderTag.vue.js";
|
|
9
|
+
import $ from "../../HttpMethod/HttpMethod.vue.js";
|
|
10
|
+
const b = ["href"], F = /* @__PURE__ */ u({
|
|
11
|
+
__name: "OperationsListItem",
|
|
12
|
+
props: {
|
|
13
|
+
transformedOperation: {},
|
|
14
|
+
tag: {},
|
|
15
|
+
isCollapsed: { type: Boolean }
|
|
16
|
+
},
|
|
17
|
+
setup(a) {
|
|
18
|
+
const { getOperationId: n } = w(), { scrollToOperation: l } = H(), d = async (e) => {
|
|
19
|
+
const o = n(e, a.tag);
|
|
20
|
+
l(o);
|
|
21
|
+
}, c = N(), { operation: r } = S({
|
|
22
|
+
store: c,
|
|
23
|
+
location: V([
|
|
24
|
+
"paths",
|
|
25
|
+
a.transformedOperation.path,
|
|
26
|
+
a.transformedOperation.httpVerb.toLowerCase()
|
|
27
|
+
])
|
|
28
|
+
}), f = h(() => {
|
|
29
|
+
var e, o;
|
|
30
|
+
return ((e = r.value) == null ? void 0 : e.summary) || ((o = r.value) == null ? void 0 : o.path);
|
|
31
|
+
});
|
|
32
|
+
return (e, o) => t(r) ? (s(), O("li", {
|
|
33
|
+
key: t(n)(e.transformedOperation, e.tag),
|
|
34
|
+
class: "contents"
|
|
35
|
+
}, [
|
|
36
|
+
e.isCollapsed ? (s(), g(t(T), {
|
|
37
|
+
key: 0,
|
|
38
|
+
class: "sr-only",
|
|
39
|
+
level: 3
|
|
40
|
+
}, {
|
|
41
|
+
default: k(() => [
|
|
42
|
+
C(i(f.value) + " (Hidden) ", 1)
|
|
43
|
+
]),
|
|
44
|
+
_: 1
|
|
45
|
+
})) : p("", !0),
|
|
46
|
+
m("a", {
|
|
47
|
+
class: "endpoint",
|
|
48
|
+
href: `#${t(n)(e.transformedOperation, e.tag)}`,
|
|
49
|
+
onClick: o[0] || (o[0] = v((D) => d(e.transformedOperation), ["prevent"]))
|
|
50
|
+
}, [
|
|
51
|
+
y(t($), {
|
|
52
|
+
class: "endpoint-method",
|
|
53
|
+
method: t(r).method
|
|
54
|
+
}, null, 8, ["method"]),
|
|
55
|
+
m("span", {
|
|
56
|
+
class: B(["endpoint-path", {
|
|
57
|
+
deprecated: t(I)(t(r))
|
|
58
|
+
}])
|
|
59
|
+
}, i(t(r).path), 3)
|
|
60
|
+
], 8, b)
|
|
61
|
+
])) : p("", !0);
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
export {
|
|
65
|
+
F as default
|
|
66
|
+
};
|
|
@@ -1,70 +1,10 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import { nextTick } from 'vue';
|
|
1
|
+
import type { Tag } from '@scalar/types/legacy';
|
|
3
2
|
type __VLS_Props = {
|
|
4
3
|
id?: string;
|
|
5
4
|
tag: Tag;
|
|
6
|
-
|
|
5
|
+
headerId?: string;
|
|
6
|
+
isCollapsed?: boolean;
|
|
7
7
|
};
|
|
8
|
-
declare
|
|
9
|
-
attrs: Partial<{}>;
|
|
10
|
-
slots: {
|
|
11
|
-
default?(_: {}): any;
|
|
12
|
-
};
|
|
13
|
-
refs: {
|
|
14
|
-
sectionContainerRef: ({
|
|
15
|
-
$: import("vue").ComponentInternalInstance;
|
|
16
|
-
$data: {};
|
|
17
|
-
$props: Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
|
|
18
|
-
$attrs: {
|
|
19
|
-
[x: string]: unknown;
|
|
20
|
-
};
|
|
21
|
-
$refs: {
|
|
22
|
-
[x: string]: unknown;
|
|
23
|
-
};
|
|
24
|
-
$slots: Readonly<{
|
|
25
|
-
[name: string]: import("vue").Slot<any> | undefined;
|
|
26
|
-
}>;
|
|
27
|
-
$root: import("vue").ComponentPublicInstance | null;
|
|
28
|
-
$parent: import("vue").ComponentPublicInstance | null;
|
|
29
|
-
$host: Element | null;
|
|
30
|
-
$emit: (event: string, ...args: any[]) => void;
|
|
31
|
-
$el: HTMLDivElement;
|
|
32
|
-
$options: import("vue").ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
|
|
33
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
34
|
-
created?: (() => void) | (() => void)[];
|
|
35
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
36
|
-
mounted?: (() => void) | (() => void)[];
|
|
37
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
38
|
-
updated?: (() => void) | (() => void)[];
|
|
39
|
-
activated?: (() => void) | (() => void)[];
|
|
40
|
-
deactivated?: (() => void) | (() => void)[];
|
|
41
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
42
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
43
|
-
destroyed?: (() => void) | (() => void)[];
|
|
44
|
-
unmounted?: (() => void) | (() => void)[];
|
|
45
|
-
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
46
|
-
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
47
|
-
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
48
|
-
};
|
|
49
|
-
$forceUpdate: () => void;
|
|
50
|
-
$nextTick: typeof nextTick;
|
|
51
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
|
|
52
|
-
} & Readonly<{}> & Omit<Readonly<{}> & Readonly<{}>, never> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
|
|
53
|
-
$slots: {
|
|
54
|
-
default?(_: {}): any;
|
|
55
|
-
};
|
|
56
|
-
}) | null;
|
|
57
|
-
contentsRef: HTMLDivElement;
|
|
58
|
-
};
|
|
59
|
-
rootEl: HTMLDivElement;
|
|
60
|
-
};
|
|
61
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
62
|
-
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
63
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
8
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
64
9
|
export default _default;
|
|
65
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
66
|
-
new (): {
|
|
67
|
-
$slots: S;
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
10
|
//# sourceMappingURL=Tag.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tag.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/Tag.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Tag.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/Tag.vue"],"names":[],"mappings":"AA+DA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAmB/C,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,GAAG,CAAA;IACR,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AA2JF,wBAOG"}
|