@scalar/api-reference 1.25.99 → 1.25.100
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 +18 -0
- package/dist/browser/standalone.js +1724 -1722
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +1 -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 +44 -43
- package/dist/components/Content/Content.vue.js +1 -1
- package/dist/components/Content/Content.vue2.js +35 -35
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
- package/dist/components/Content/Schema/SchemaProperty.vue2.js +85 -78
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts +3 -2
- 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 +170 -162
- package/dist/features/BaseUrl/ServerForm.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerForm.vue.js +2 -2
- package/dist/features/BaseUrl/ServerUrlSelect.vue.js +2 -2
- package/dist/features/BaseUrl/ServerVariablesForm.vue.js +1 -1
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +6 -6
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Disclosure as
|
|
3
|
-
import { ScalarMarkdown as
|
|
1
|
+
import { defineComponent as Q, computed as y, openBlock as l, createElementBlock as t, normalizeClass as M, createVNode as n, createSlots as W, withCtx as v, createTextVNode as b, toDisplayString as r, unref as p, createCommentVNode as s, createElementVNode as c, Fragment as i, renderList as d, createBlock as E } from "vue";
|
|
2
|
+
import { Disclosure as X, DisclosurePanel as Y, DisclosureButton as _ } from "@headlessui/vue";
|
|
3
|
+
import { ScalarMarkdown as S, ScalarIcon as x } from "@scalar/components";
|
|
4
4
|
import f from "./Schema.vue.js";
|
|
5
|
-
import
|
|
6
|
-
const
|
|
5
|
+
import ee from "./SchemaPropertyHeading.vue.js";
|
|
6
|
+
const le = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "property-description"
|
|
9
|
-
},
|
|
9
|
+
}, te = {
|
|
10
10
|
key: 1,
|
|
11
11
|
class: "property-description"
|
|
12
|
-
},
|
|
12
|
+
}, ae = {
|
|
13
13
|
key: 2,
|
|
14
14
|
class: "property-example custom-scroll"
|
|
15
|
-
},
|
|
15
|
+
}, oe = { class: "property-example-value" }, se = {
|
|
16
16
|
key: 3,
|
|
17
17
|
class: "property-example custom-scroll"
|
|
18
|
-
},
|
|
18
|
+
}, ne = { class: "property-example-label" }, re = {
|
|
19
19
|
key: 4,
|
|
20
20
|
class: "property-enum"
|
|
21
|
-
},
|
|
21
|
+
}, ie = {
|
|
22
22
|
key: 0,
|
|
23
23
|
class: "property-list"
|
|
24
|
-
},
|
|
24
|
+
}, ue = { class: "property-heading" }, pe = { class: "property-name" }, de = { class: "property-description" }, me = {
|
|
25
25
|
key: 1,
|
|
26
26
|
class: "property-enum-values"
|
|
27
27
|
}, ce = {
|
|
28
28
|
key: 5,
|
|
29
29
|
class: "children"
|
|
30
|
-
},
|
|
30
|
+
}, ve = {
|
|
31
31
|
key: 0,
|
|
32
32
|
class: "children"
|
|
33
|
-
},
|
|
33
|
+
}, ye = {
|
|
34
34
|
key: 0,
|
|
35
35
|
class: "property-rule"
|
|
36
|
-
},
|
|
36
|
+
}, fe = {
|
|
37
37
|
key: 1,
|
|
38
38
|
class: "property-rule"
|
|
39
|
-
},
|
|
39
|
+
}, Se = /* @__PURE__ */ Q({
|
|
40
40
|
__name: "SchemaProperty",
|
|
41
41
|
props: {
|
|
42
42
|
value: {},
|
|
@@ -47,8 +47,8 @@ const ee = {
|
|
|
47
47
|
description: {},
|
|
48
48
|
additional: { type: Boolean }
|
|
49
49
|
},
|
|
50
|
-
setup(
|
|
51
|
-
const h =
|
|
50
|
+
setup($) {
|
|
51
|
+
const h = $, B = {
|
|
52
52
|
integer: {
|
|
53
53
|
_default: "Integer numbers.",
|
|
54
54
|
int32: "Signed 32-bit integers (commonly used integer type).",
|
|
@@ -61,102 +61,109 @@ const ee = {
|
|
|
61
61
|
byte: "base64-encoded characters, for example, U3dhZ2dlciByb2Nrcw==",
|
|
62
62
|
binary: "binary data, used to describe files"
|
|
63
63
|
}
|
|
64
|
-
},
|
|
64
|
+
}, D = function(e, o) {
|
|
65
65
|
return o != null && o.properties || o != null && o.additionalProperties ? null : e || (o == null ? void 0 : o.description) || null;
|
|
66
|
-
},
|
|
67
|
-
return !e || !
|
|
68
|
-
},
|
|
66
|
+
}, C = function(e) {
|
|
67
|
+
return !e || !B[e.type] ? null : B[e.type][e.format || "_default"];
|
|
68
|
+
}, m = function(e) {
|
|
69
69
|
var o;
|
|
70
70
|
return (e == null ? void 0 : e.enum) || ((o = e == null ? void 0 : e.items) == null ? void 0 : o.enum) || [];
|
|
71
|
-
},
|
|
72
|
-
() =>
|
|
73
|
-
),
|
|
74
|
-
() =>
|
|
71
|
+
}, G = ["oneOf", "anyOf", "allOf", "not"], P = y(() => m(h.value).length > 9), j = y(() => P.value ? 5 : 9), J = y(
|
|
72
|
+
() => m(h.value).slice(0, j.value)
|
|
73
|
+
), K = y(
|
|
74
|
+
() => m(h.value).slice(j.value)
|
|
75
75
|
);
|
|
76
76
|
return (e, o) => {
|
|
77
|
-
var
|
|
77
|
+
var w, N, O, q, F, I, L, V, z, H, R, T, U;
|
|
78
78
|
return l(), t("div", {
|
|
79
|
-
class:
|
|
79
|
+
class: M(["property", [
|
|
80
80
|
`property--level-${e.level}`,
|
|
81
81
|
{
|
|
82
82
|
"property--compact": e.compact,
|
|
83
|
-
"property--deprecated": (
|
|
83
|
+
"property--deprecated": (w = e.value) == null ? void 0 : w.deprecated
|
|
84
84
|
}
|
|
85
85
|
]])
|
|
86
86
|
}, [
|
|
87
|
-
n(
|
|
87
|
+
n(ee, {
|
|
88
88
|
additional: e.additional,
|
|
89
|
-
enum:
|
|
89
|
+
enum: m(e.value).length > 1,
|
|
90
90
|
required: e.required,
|
|
91
91
|
value: e.value
|
|
92
|
-
},
|
|
92
|
+
}, W({ _: 2 }, [
|
|
93
93
|
e.name ? {
|
|
94
94
|
name: "name",
|
|
95
|
-
fn:
|
|
96
|
-
|
|
95
|
+
fn: v(() => [
|
|
96
|
+
b(r(e.name), 1)
|
|
97
97
|
]),
|
|
98
98
|
key: "0"
|
|
99
|
+
} : void 0,
|
|
100
|
+
(N = e.value) != null && N.example ? {
|
|
101
|
+
name: "example",
|
|
102
|
+
fn: v(() => [
|
|
103
|
+
b(" Example: " + r(e.value.example), 1)
|
|
104
|
+
]),
|
|
105
|
+
key: "1"
|
|
99
106
|
} : void 0
|
|
100
107
|
]), 1032, ["additional", "enum", "required", "value"]),
|
|
101
|
-
|
|
102
|
-
n(p(
|
|
103
|
-
value:
|
|
108
|
+
D(e.description, e.value) ? (l(), t("div", le, [
|
|
109
|
+
n(p(S), {
|
|
110
|
+
value: D(e.description, e.value)
|
|
104
111
|
}, null, 8, ["value"])
|
|
105
|
-
])) :
|
|
106
|
-
n(p(
|
|
107
|
-
value:
|
|
112
|
+
])) : C(e.value) ? (l(), t("div", te, [
|
|
113
|
+
n(p(S), {
|
|
114
|
+
value: C(e.value) || ""
|
|
108
115
|
}, null, 8, ["value"])
|
|
109
116
|
])) : s("", !0),
|
|
110
|
-
(
|
|
111
|
-
o[0] || (o[0] =
|
|
112
|
-
|
|
117
|
+
(O = e.value) != null && O.example || (F = (q = e.value) == null ? void 0 : q.items) != null && F.example ? (l(), t("div", ae, [
|
|
118
|
+
o[0] || (o[0] = c("span", { class: "property-example-label" }, "Example", -1)),
|
|
119
|
+
c("code", oe, r(e.value.example || ((I = e.value) == null ? void 0 : I.items.example)), 1)
|
|
113
120
|
])) : s("", !0),
|
|
114
|
-
(
|
|
115
|
-
|
|
116
|
-
(l(!0), t(
|
|
121
|
+
(L = e.value) != null && L.examples && typeof e.value.examples == "object" && Object.keys(e.value.examples).length > 0 ? (l(), t("div", se, [
|
|
122
|
+
c("span", ne, r(Object.keys(e.value.examples).length === 1 ? "Example" : "Examples"), 1),
|
|
123
|
+
(l(!0), t(i, null, d(e.value.examples, (a, u) => (l(), t("code", {
|
|
117
124
|
key: u,
|
|
118
125
|
class: "property-example-value"
|
|
119
|
-
},
|
|
126
|
+
}, r(a), 1))), 128))
|
|
120
127
|
])) : s("", !0),
|
|
121
|
-
((
|
|
122
|
-
(
|
|
123
|
-
(l(!0), t(
|
|
128
|
+
((V = m(e.value)) == null ? void 0 : V.length) > 1 ? (l(), t("div", re, [
|
|
129
|
+
(z = e.value) != null && z["x-enumDescriptions"] ? (l(), t("div", ie, [
|
|
130
|
+
(l(!0), t(i, null, d(m(e.value), (a) => (l(), t("div", {
|
|
124
131
|
key: a,
|
|
125
132
|
class: "property"
|
|
126
133
|
}, [
|
|
127
|
-
|
|
128
|
-
|
|
134
|
+
c("div", ue, [
|
|
135
|
+
c("div", pe, r(a), 1)
|
|
129
136
|
]),
|
|
130
|
-
|
|
131
|
-
n(p(
|
|
137
|
+
c("div", de, [
|
|
138
|
+
n(p(S), {
|
|
132
139
|
value: e.value["x-enumDescriptions"][a]
|
|
133
140
|
}, null, 8, ["value"])
|
|
134
141
|
])
|
|
135
142
|
]))), 128))
|
|
136
|
-
])) : (l(), t("ul",
|
|
137
|
-
(l(!0), t(
|
|
143
|
+
])) : (l(), t("ul", me, [
|
|
144
|
+
(l(!0), t(i, null, d(J.value, (a) => (l(), t("li", {
|
|
138
145
|
key: a,
|
|
139
146
|
class: "property-enum-value"
|
|
140
|
-
},
|
|
141
|
-
|
|
142
|
-
default:
|
|
143
|
-
n(p(
|
|
144
|
-
default:
|
|
145
|
-
(l(!0), t(
|
|
147
|
+
}, r(a), 1))), 128)),
|
|
148
|
+
P.value ? (l(), E(p(X), { key: 0 }, {
|
|
149
|
+
default: v(({ open: a }) => [
|
|
150
|
+
n(p(Y), null, {
|
|
151
|
+
default: v(() => [
|
|
152
|
+
(l(!0), t(i, null, d(K.value, (u) => (l(), t("li", {
|
|
146
153
|
key: u,
|
|
147
154
|
class: "property-enum-value"
|
|
148
|
-
},
|
|
155
|
+
}, r(u), 1))), 128))
|
|
149
156
|
]),
|
|
150
157
|
_: 1
|
|
151
158
|
}),
|
|
152
|
-
n(p(
|
|
153
|
-
default:
|
|
154
|
-
n(p(
|
|
155
|
-
class:
|
|
159
|
+
n(p(_), { class: "enum-toggle-button" }, {
|
|
160
|
+
default: v(() => [
|
|
161
|
+
n(p(x), {
|
|
162
|
+
class: M(["enum-toggle-button-icon", { "enum-toggle-button-icon--open": a }]),
|
|
156
163
|
icon: "Add",
|
|
157
164
|
size: "sm"
|
|
158
165
|
}, null, 8, ["class"]),
|
|
159
|
-
|
|
166
|
+
b(" " + r(a ? "Hide values" : "Show all values"), 1)
|
|
160
167
|
]),
|
|
161
168
|
_: 2
|
|
162
169
|
}, 1024)
|
|
@@ -165,15 +172,15 @@ const ee = {
|
|
|
165
172
|
})) : s("", !0)
|
|
166
173
|
]))
|
|
167
174
|
])) : s("", !0),
|
|
168
|
-
((
|
|
175
|
+
((H = e.value) == null ? void 0 : H.type) === "object" && ((R = e.value) != null && R.properties || (T = e.value) != null && T.additionalProperties) ? (l(), t("div", ce, [
|
|
169
176
|
n(f, {
|
|
170
177
|
compact: e.compact,
|
|
171
178
|
level: e.level + 1,
|
|
172
179
|
value: e.value
|
|
173
180
|
}, null, 8, ["compact", "level", "value"])
|
|
174
181
|
])) : s("", !0),
|
|
175
|
-
(
|
|
176
|
-
["object"].includes(e.value.items.type) ? (l(), t("div",
|
|
182
|
+
(U = e.value) != null && U.items ? (l(), t(i, { key: 6 }, [
|
|
183
|
+
["object"].includes(e.value.items.type) ? (l(), t("div", ve, [
|
|
177
184
|
n(f, {
|
|
178
185
|
compact: e.compact,
|
|
179
186
|
level: e.level + 1,
|
|
@@ -181,19 +188,19 @@ const ee = {
|
|
|
181
188
|
}, null, 8, ["compact", "level", "value"])
|
|
182
189
|
])) : s("", !0)
|
|
183
190
|
], 64)) : s("", !0),
|
|
184
|
-
(l(), t(
|
|
185
|
-
var u,
|
|
186
|
-
return l(), t(
|
|
187
|
-
(u = e.value) != null && u[a] ? (l(), t("div",
|
|
188
|
-
(l(!0), t(
|
|
191
|
+
(l(), t(i, null, d(G, (a) => {
|
|
192
|
+
var u, Z, A;
|
|
193
|
+
return l(), t(i, { key: a }, [
|
|
194
|
+
(u = e.value) != null && u[a] ? (l(), t("div", ye, [
|
|
195
|
+
(l(!0), t(i, null, d(e.value[a], (g, k) => (l(), E(f, {
|
|
189
196
|
key: k,
|
|
190
197
|
compact: e.compact,
|
|
191
198
|
level: e.level + 1,
|
|
192
199
|
value: g
|
|
193
200
|
}, null, 8, ["compact", "level", "value"]))), 128))
|
|
194
201
|
])) : s("", !0),
|
|
195
|
-
(
|
|
196
|
-
(l(!0), t(
|
|
202
|
+
(A = (Z = e.value) == null ? void 0 : Z.items) != null && A[a] && e.level < 3 ? (l(), t("div", fe, [
|
|
203
|
+
(l(!0), t(i, null, d(e.value.items[a], (g, k) => (l(), E(f, {
|
|
197
204
|
key: k,
|
|
198
205
|
compact: e.compact,
|
|
199
206
|
level: e.level + 1,
|
|
@@ -207,5 +214,5 @@ const ee = {
|
|
|
207
214
|
}
|
|
208
215
|
});
|
|
209
216
|
export {
|
|
210
|
-
|
|
217
|
+
Se as default
|
|
211
218
|
};
|
|
@@ -8,14 +8,15 @@ declare function __VLS_template(): {
|
|
|
8
8
|
attrs: Partial<{}>;
|
|
9
9
|
slots: {
|
|
10
10
|
name?(_: {}): any;
|
|
11
|
+
example?(_: {}): any;
|
|
11
12
|
};
|
|
12
13
|
refs: {};
|
|
13
|
-
rootEl:
|
|
14
|
+
rootEl: any;
|
|
14
15
|
};
|
|
15
16
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
16
17
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
17
18
|
required: boolean;
|
|
18
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {},
|
|
19
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
20
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
20
21
|
export default _default;
|
|
21
22
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaPropertyHeading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaPropertyHeading.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SchemaPropertyHeading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaPropertyHeading.vue"],"names":[],"mappings":"AA2NA,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAC;AA0BJ,iBAAS,cAAc;WAkRT,OAAO,IAA6B;;sBATxB,GAAG;yBACC,GAAG;;;;EAahC;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;cAjUN,OAAO;6EAwUpB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,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 "./SchemaPropertyHeading.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const m = /* @__PURE__ */
|
|
3
|
+
import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const m = /* @__PURE__ */ e(o, [["__scopeId", "data-v-8f6978ee"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|