@scalar/api-reference 1.25.127 → 1.25.128
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 +29 -0
- package/dist/browser/standalone.js +16046 -15965
- 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/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/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 +362 -342
- 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/ModernLayout.vue.js +2 -2
- package/dist/helpers/get-request.d.ts +1 -1
- package/dist/helpers/get-request.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/index.js +17 -19
- package/dist/standalone/lib/html-api.d.ts +3 -3
- package/dist/standalone/lib/html-api.d.ts.map +1 -1
- package/dist/standalone/lib/html-rendering.d.ts +23 -24
- package/dist/standalone/lib/html-rendering.d.ts.map +1 -1
- package/dist/standalone/lib/html-rendering.js +39 -29
- package/dist/stores/useHttpClientStore.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types.d.ts +19 -2
- package/dist/types.d.ts.map +1 -1
- package/package.json +11 -10
- package/dist/hooks/useDeprecationWarnings.d.ts +0 -6
- package/dist/hooks/useDeprecationWarnings.d.ts.map +0 -1
- package/dist/hooks/useDeprecationWarnings.js +0 -20
|
@@ -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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GettingStarted.vue.d.ts","sourceRoot":"","sources":["../../src/components/GettingStarted.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GettingStarted.vue.d.ts","sourceRoot":"","sources":["../../src/components/GettingStarted.vue"],"names":[],"mappings":"AA+cA,OAAO,EAAe,KAAK,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAI1D,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,OAAO,CAAA;CACf,CAAC;;;YAIwC,OAAO;eAAS,MAAM;;;;;;;YAAtB,OAAO;eAAS,MAAM;;;;;;AA6QhE,wBAQG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./GettingStarted.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const f = /* @__PURE__ */ o(t, [["__scopeId", "data-v-
|
|
4
|
+
const f = /* @__PURE__ */ o(t, [["__scopeId", "data-v-386e82f2"]]);
|
|
5
5
|
export {
|
|
6
6
|
f as default
|
|
7
7
|
};
|
|
@@ -26,15 +26,15 @@ const A = { class: "start custom-scroll" }, x = { class: "start-copy" }, k = { c
|
|
|
26
26
|
);
|
|
27
27
|
g("updateContent", await s.text());
|
|
28
28
|
}
|
|
29
|
-
return (s,
|
|
29
|
+
return (s, t) => (o(), i("div", A, [
|
|
30
30
|
e("div", x, [
|
|
31
|
-
|
|
31
|
+
t[3] || (t[3] = r('<div class="start-logo" data-v-386e82f2><svg height="36" viewBox="0 0 36 36" width="36" xmlns="http://www.w3.org/2000/svg" data-v-386e82f2><path d="M18 0a18 18 0 1 1 0 36 18 18 0 0 1 0-36Zm11.2 6.5c-3.3-3.3-11.1-1-17.4 5.3-6.2 6.3-8.6 14-5.3 17.4 3.3 3.3 11 .9 17.3-5.4 6.3-6.2 8.7-14 5.4-17.3ZM17.6 12a6.3 6.3 0 1 1 0 12.7 6.3 6.3 0 0 1 0-12.7Z" fill="currentColor" fill-rule="evenodd" data-v-386e82f2></path></svg></div><h1 class="start-h1" data-v-386e82f2>Swagger Editor</h1><p class="start-p" data-v-386e82f2> Welcome to the Scalar API References + Swagger Editor, a Free & Open-Source tool that takes your Swagger/OAS file and generates Beautiful API references. </p>', 3)),
|
|
32
32
|
e("div", k, [
|
|
33
33
|
n(l(c), {
|
|
34
34
|
fullWidth: "",
|
|
35
35
|
onClick: m
|
|
36
36
|
}, {
|
|
37
|
-
default: d(() =>
|
|
37
|
+
default: d(() => t[1] || (t[1] = [
|
|
38
38
|
p(" Show Example ")
|
|
39
39
|
])),
|
|
40
40
|
_: 1
|
|
@@ -42,9 +42,9 @@ const A = { class: "start custom-scroll" }, x = { class: "start-copy" }, k = { c
|
|
|
42
42
|
n(l(c), {
|
|
43
43
|
fullWidth: "",
|
|
44
44
|
variant: "outlined",
|
|
45
|
-
onClick:
|
|
45
|
+
onClick: t[0] || (t[0] = (a) => s.$emit("loadSwaggerFile"))
|
|
46
46
|
}, {
|
|
47
|
-
default: d(() =>
|
|
47
|
+
default: d(() => t[2] || (t[2] = [
|
|
48
48
|
p(" Upload File ")
|
|
49
49
|
])),
|
|
50
50
|
_: 1
|
|
@@ -52,17 +52,17 @@ const A = { class: "start custom-scroll" }, x = { class: "start-copy" }, k = { c
|
|
|
52
52
|
])
|
|
53
53
|
]),
|
|
54
54
|
e("div", Z, [
|
|
55
|
-
|
|
55
|
+
t[5] || (t[5] = r('<div class="start-section start-section-integrations" data-v-386e82f2><div class="start-h2" data-v-386e82f2>INTEGRATIONS</div><a class="start-item" href="https://github.com/scalar/scalar/tree/main/packages/fastify-api-reference#readme" target="_blank" data-v-386e82f2><svg fill="currentColor" height="16" viewBox="0 0 19 16" width="19" xmlns="http://www.w3.org/2000/svg" data-v-386e82f2><path d="m18.2 3.1.8-2V.9l-4.7 1.3C15.2 1 15 0 15 0s-2.5 1.6-4.3 1.5c-2 0-3.6.8-4 1-1.8 1.2-2.5 3.3-3.2 3.8L0 8.9 2.3 8l-2 2.5c.2.3 1.2 1.6 2.1 1.3l.4-.1 1.6.5-.7-1 .2-.2.9.3-.1-.8.9.3-.1-.8.3-.1 1-3.5 3.7-2.6-.3.7A4 4 0 0 1 8 7l-.6.2c-.5.5-.7.7-.8 2.5a2 2 0 0 1 1 0c1.6.4 2.2 2.3 1.7 2.9l-.7.6H8v.6h-.7v.5l-.2.2c-.7 0-1.4-.6-1.4-.6 0 .5.4 1.3.4 1.3s1.7 1.1 2.7.7c1-.4.7-2.3 2.8-3.2l3.3-.9.8-2.2-1.7.5v-2l2.5-.6.9-2.2-3.4.9v-2l4.2-1.1Z" fill="currentColor" fill-rule="nonzero" data-v-386e82f2></path></svg><span data-v-386e82f2>Fastify</span></a><a class="start-item" href="https://github.com/scalar/scalar/tree/main#from-a-cdn" target="_blank" data-v-386e82f2><svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" data-v-386e82f2><g data-v-386e82f2><path d="M22.5 1.5h-21A1.5 1.5 0 0 0 0 3v3a1.5 1.5 0 0 0 1.5 1.5h21A1.5 1.5 0 0 0 24 6V3a1.5 1.5 0 0 0-1.5-1.5Zm-19.25 3A1.25 1.25 0 1 1 4.5 5.75 1.25 1.25 0 0 1 3.25 4.5ZM8.5 5.75A1.25 1.25 0 1 1 9.75 4.5 1.25 1.25 0 0 1 8.5 5.75Z" fill="currentColor" data-v-386e82f2></path><path d="M22.5 9h-21A1.5 1.5 0 0 0 0 10.5v3A1.5 1.5 0 0 0 1.5 15h21a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 22.5 9ZM3.25 12a1.25 1.25 0 1 1 1.25 1.25A1.25 1.25 0 0 1 3.25 12Zm5.25 1.25A1.25 1.25 0 1 1 9.75 12a1.25 1.25 0 0 1-1.25 1.25Z" fill="currentColor" data-v-386e82f2></path><path d="M22.5 16.5h-21A1.5 1.5 0 0 0 0 18v3a1.5 1.5 0 0 0 1.5 1.5h21A1.5 1.5 0 0 0 24 21v-3a1.5 1.5 0 0 0-1.5-1.5Zm-19.25 3a1.25 1.25 0 1 1 1.25 1.25 1.25 1.25 0 0 1-1.25-1.25Zm5.25 1.25a1.25 1.25 0 1 1 1.25-1.25 1.25 1.25 0 0 1-1.25 1.25Z" fill="currentColor" data-v-386e82f2></path></g></svg><span data-v-386e82f2>CDN</span></a><a class="start-item" href="https://github.com/scalar/scalar/tree/main#with-vuejs" target="_blank" data-v-386e82f2><svg height="170" viewBox="0 0 196.3 170" width="196.3" xmlns="http://www.w3.org/2000/svg" data-v-386e82f2><g fill="currentColor" fill-rule="nonzero" data-v-386e82f2><polygon points="39.23 0 0 0 2.9450761 5.1010782 98.16 170.02 196.32 0 157.06 0 98.16 102.01 42.175701 5.0991171" data-v-386e82f2></polygon><polygon points="75.5 2.009956e-14 0 2.009956e-14 2.94 5.1 78.44871 5.1 98.16 39.26 117.87937 5.1 193.38 5.1 196.325 0 120.82 7.8065636e-15 114.97322 2.009956e-14 98.16 29.037153 81.35 2.009956e-14" data-v-386e82f2></polygon></g></svg><span data-v-386e82f2>Vue</span></a><a class="start-item" href="https://github.com/scalar/scalar/tree/main#with-react" target="_blank" data-v-386e82f2><svg height="23.3" viewBox="0 0 22 23.3" width="22" xmlns="http://www.w3.org/2000/svg" data-v-386e82f2><g fill="none" fill-rule="evenodd" data-v-386e82f2><circle cx="11" cy="11.6" fill="currentColor" fill-rule="nonzero" r="2" data-v-386e82f2></circle><g stroke="currentColor" data-v-386e82f2><ellipse cx="11" cy="11.6" rx="11" ry="4.2" data-v-386e82f2></ellipse><ellipse cx="11" cy="11.6" rx="11" ry="4.2" transform="rotate(60 11 11.6)" data-v-386e82f2></ellipse><ellipse cx="11" cy="11.6" rx="11" ry="4.2" transform="rotate(120 11 11.6)" data-v-386e82f2></ellipse></g></g></svg><span data-v-386e82f2>React</span></a></div>', 1)),
|
|
56
56
|
e("div", b, [
|
|
57
|
-
|
|
58
|
-
(o(), i(w, null, y(h, (
|
|
59
|
-
key:
|
|
60
|
-
class: C(["start-item", { "start-item-active":
|
|
61
|
-
onClick: (_) => s.$emit("changeTheme", { id:
|
|
62
|
-
}, S(l(f)[
|
|
57
|
+
t[4] || (t[4] = e("p", { class: "start-h2" }, "THEMING", -1)),
|
|
58
|
+
(o(), i(w, null, y(h, (a) => e("div", {
|
|
59
|
+
key: a,
|
|
60
|
+
class: C(["start-item", { "start-item-active": a === s.theme }]),
|
|
61
|
+
onClick: (_) => s.$emit("changeTheme", { id: a, label: l(f)[a] })
|
|
62
|
+
}, S(l(f)[a]), 11, F)), 64))
|
|
63
63
|
])
|
|
64
64
|
]),
|
|
65
|
-
|
|
65
|
+
t[6] || (t[6] = r('<p class="start-h1" data-v-386e82f2>Features</p><ul class="start-ul" data-v-386e82f2><li data-v-386e82f2><p class="start-h3" data-v-386e82f2>Customize</p> Bring your typography & color palettes, or use our themes! </li><li data-v-386e82f2><p class="start-h3" data-v-386e82f2>Testing</p> A deeply integrated Rest API Client (Also Free & Open-Source) </li><li data-v-386e82f2><p class="start-h3" data-v-386e82f2>Search</p> Fully integrated Search (Using fuse.js) </li><li data-v-386e82f2><p class="start-h3" data-v-386e82f2>Hosting</p> Free subdomain hosting on https://apidocumentation.com </li><li data-v-386e82f2><p class="start-h3" data-v-386e82f2>OpenAPI & Swagger</p> Support for OpenAPI 3.1, OpenAPI 3.0, and Swagger 2.0 </li><li data-v-386e82f2><p class="start-h3" data-v-386e82f2>Code Samples</p> Code samples to show off your API in most popular languages </li></ul>', 2))
|
|
66
66
|
]));
|
|
67
67
|
}
|
|
68
68
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { InternalReferenceProps, ReferenceLayoutSlots } from '../../types';
|
|
2
2
|
declare function __VLS_template(): {
|
|
3
3
|
attrs: Partial<{}>;
|
|
4
4
|
slots: Readonly<ReferenceLayoutSlots> & ReferenceLayoutSlots;
|
|
@@ -6,10 +6,10 @@ declare function __VLS_template(): {
|
|
|
6
6
|
rootEl: any;
|
|
7
7
|
};
|
|
8
8
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
9
|
-
declare const __VLS_component: import("vue").DefineComponent<
|
|
9
|
+
declare const __VLS_component: import("vue").DefineComponent<InternalReferenceProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
10
10
|
updateContent: (v: string) => any;
|
|
11
11
|
toggleDarkMode: () => any;
|
|
12
|
-
}, string, import("vue").PublicProps, Readonly<
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<InternalReferenceProps> & Readonly<{
|
|
13
13
|
onUpdateContent?: ((v: string) => any) | undefined;
|
|
14
14
|
onToggleDarkMode?: (() => any) | undefined;
|
|
15
15
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Layouts/ClassicLayout.vue"],"names":[],"mappings":"AA+DA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Layouts/ClassicLayout.vue"],"names":[],"mappings":"AA+DA,OAAO,KAAK,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAwB3E,iBAAS,cAAc;WAkHT,OAAO,IAA6B;;;;EAKjD;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;kFAQnB,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
|
/**
|
|
2
2
|
* This component allows dynamic selection of various layout configurations
|
|
3
3
|
*/
|
|
4
|
-
import type {
|
|
4
|
+
import type { InternalReferenceProps, ReferenceLayoutSlots } from '../../types';
|
|
5
5
|
declare function __VLS_template(): {
|
|
6
6
|
attrs: Partial<{}>;
|
|
7
7
|
slots: Readonly<ReferenceLayoutSlots> & ReferenceLayoutSlots;
|
|
@@ -9,10 +9,10 @@ declare function __VLS_template(): {
|
|
|
9
9
|
rootEl: any;
|
|
10
10
|
};
|
|
11
11
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
-
declare const __VLS_component: import("vue").DefineComponent<
|
|
12
|
+
declare const __VLS_component: import("vue").DefineComponent<InternalReferenceProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
13
13
|
updateContent: (v: string) => any;
|
|
14
14
|
toggleDarkMode: () => any;
|
|
15
|
-
}, string, import("vue").PublicProps, Readonly<
|
|
15
|
+
}, string, import("vue").PublicProps, Readonly<InternalReferenceProps> & Readonly<{
|
|
16
16
|
onUpdateContent?: ((v: string) => any) | undefined;
|
|
17
17
|
onToggleDarkMode?: (() => any) | undefined;
|
|
18
18
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Layouts.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Layouts/Layouts.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Layouts.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Layouts/Layouts.vue"],"names":[],"mappings":"AAyCA;;GAEG;AACH,OAAO,KAAK,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AA4B3E,iBAAS,cAAc;WAuET,OAAO,IAA6B;;;;EAKjD;AAWD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;kFAOnB,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,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { InternalReferenceProps, ReferenceLayoutSlots } from '../../types';
|
|
2
2
|
declare function __VLS_template(): {
|
|
3
3
|
attrs: Partial<{}>;
|
|
4
4
|
slots: Readonly<ReferenceLayoutSlots> & ReferenceLayoutSlots;
|
|
@@ -6,10 +6,10 @@ declare function __VLS_template(): {
|
|
|
6
6
|
rootEl: any;
|
|
7
7
|
};
|
|
8
8
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
9
|
-
declare const __VLS_component: import("vue").DefineComponent<
|
|
9
|
+
declare const __VLS_component: import("vue").DefineComponent<InternalReferenceProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
10
10
|
updateContent: (v: string) => any;
|
|
11
11
|
toggleDarkMode: () => any;
|
|
12
|
-
}, string, import("vue").PublicProps, Readonly<
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<InternalReferenceProps> & Readonly<{
|
|
13
13
|
onUpdateContent?: ((v: string) => any) | undefined;
|
|
14
14
|
onToggleDarkMode?: (() => any) | undefined;
|
|
15
15
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Layouts/ModernLayout.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Layouts/ModernLayout.vue"],"names":[],"mappings":"AAyHA,OAAO,KAAK,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAoC3E,iBAAS,cAAc;WAsJT,OAAO,IAA6B;;;;EAKjD;AAiBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;kFAQnB,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"}
|
|
@@ -2,7 +2,7 @@ import o from "./ModernLayout.vue2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const
|
|
5
|
+
const d = /* @__PURE__ */ t(o, [["__scopeId", "data-v-fd0d609b"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
d as default
|
|
8
8
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CompactSection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/CompactSection.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CompactSection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/CompactSection.vue"],"names":[],"mappings":"AAmHA,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;AAyBF,iBAAS,cAAc;WAoFT,OAAO,IAA6B;;yBATpB,GAAG;yBACH,GAAG;;;;EAahC;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,6SAOnB,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 "./CompactSection.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-21da4905"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
r as default
|
|
7
7
|
};
|