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