@scalar/api-reference 1.25.45 → 1.25.47
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 +26 -0
- package/dist/browser/standalone.js +4468 -4444
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/Content/Introduction/Description.vue.d.ts.map +1 -1
- package/dist/components/Content/Introduction/Description.vue.js +2 -2
- package/dist/components/Content/Operation/ParameterItem.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/ParameterItem.vue.js +4 -4
- package/dist/components/Content/Operation/ParameterItem.vue2.js +24 -22
- package/dist/components/Content/Operation/Parameters.vue.js +4 -4
- package/dist/components/Content/Operation/RequestBody.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/RequestBody.vue.js +2 -2
- package/dist/components/Content/Schema/Schema.vue.js +3 -3
- 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/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 +10 -10
- package/dist/components/Section/CompactSection.vue.d.ts.map +1 -1
- package/dist/components/Section/CompactSection.vue.js +2 -2
- package/dist/index.js +1 -1
- package/dist/legacy/components/CardFormTextInput.vue.d.ts.map +1 -1
- package/dist/legacy/components/CardFormTextInput.vue.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Description.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Introduction/Description.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Description.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Introduction/Description.vue"],"names":[],"mappings":";IAiJE,wBAAwB;YAChB,MAAM;;IADd,wBAAwB;YAChB,MAAM;;AAmLhB,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Description.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-76e3a64b"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ParameterItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/ParameterItem.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ParameterItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/ParameterItem.vue"],"names":[],"mappings":"AA8MA,OAAO,KAAK,EAAe,UAAU,EAAE,MAAM,sBAAsB,CAAA;;eAUpD,UAAU;mBACN,OAAO;uBACH,OAAO;;eAFf,UAAU;mBACN,OAAO;uBACH,OAAO;;kBADX,OAAO;sBACH,OAAO;;AAuN9B,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import a from "./ParameterItem.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const e = /* @__PURE__ */ t(a, [["__scopeId", "data-v-fa59a8ba"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as B, ref as d, computed as v, openBlock as n, createElementBlock as m, normalizeClass as b, createVNode as f, unref as h, createElementVNode as p, toDisplayString as y, createBlock as C, createCommentVNode as s } from "vue";
|
|
2
2
|
import { ScalarIcon as q } from "@scalar/components";
|
|
3
3
|
import w from "./ContentTypeSelect.vue.js";
|
|
4
4
|
import I from "./ParameterHeaders.vue.js";
|
|
5
5
|
import S from "../Schema/SchemaProperty.vue.js";
|
|
6
|
-
const V = { class: "parameter-item" }, T = { class: "parameter-item-name" }, j = { class: "parameter-item-type" }, N = {
|
|
6
|
+
const V = { class: "parameter-item" }, T = { class: "parameter-item-name" }, j = { class: "parameter-item-type" }, N = { class: "absolute right-0" }, P = {
|
|
7
7
|
key: 1,
|
|
8
8
|
class: "parameter-item-container parameter-item-container-markdown"
|
|
9
|
-
},
|
|
9
|
+
}, R = /* @__PURE__ */ B({
|
|
10
10
|
__name: "ParameterItem",
|
|
11
11
|
props: {
|
|
12
12
|
parameter: {},
|
|
@@ -14,47 +14,49 @@ const V = { class: "parameter-item" }, T = { class: "parameter-item-name" }, j =
|
|
|
14
14
|
collapsableItems: { type: Boolean, default: !1 }
|
|
15
15
|
},
|
|
16
16
|
setup(k) {
|
|
17
|
-
const a = k, r =
|
|
18
|
-
|
|
17
|
+
const a = k, r = d(!1), g = v(() => a.parameter.content ? Object.keys(a.parameter.content) : []), o = d(
|
|
18
|
+
g.value[0]
|
|
19
19
|
);
|
|
20
20
|
a.parameter.content && "application/json" in a.parameter.content && (o.value = "application/json");
|
|
21
|
-
const t =
|
|
21
|
+
const t = v(() => a.collapsableItems && a.parameter.content);
|
|
22
22
|
return (e, l) => {
|
|
23
|
-
var
|
|
23
|
+
var i, c;
|
|
24
24
|
return n(), m("li", V, [
|
|
25
25
|
t.value ? (n(), m("div", {
|
|
26
26
|
key: 0,
|
|
27
27
|
class: b(["flex parameter-item-trigger", { "parameter-item-trigger-open": r.value }]),
|
|
28
|
-
onClick: l[1] || (l[1] = (
|
|
28
|
+
onClick: l[1] || (l[1] = (u) => r.value = !r.value)
|
|
29
29
|
}, [
|
|
30
|
-
|
|
30
|
+
f(h(q), {
|
|
31
31
|
class: "parameter-item-icon",
|
|
32
32
|
icon: r.value ? "ChevronDown" : "ChevronRight",
|
|
33
33
|
size: "md",
|
|
34
34
|
thickness: "1.75"
|
|
35
35
|
}, null, 8, ["icon"]),
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
36
|
+
p("span", T, y(e.parameter.name), 1),
|
|
37
|
+
p("span", j, y(e.parameter.description), 1),
|
|
38
|
+
p("div", N, [
|
|
39
|
+
t.value && a.parameter.content ? (n(), C(w, {
|
|
40
|
+
key: 0,
|
|
41
|
+
class: "parameter-item-content-type",
|
|
42
|
+
defaultValue: o.value,
|
|
43
|
+
requestBody: a.parameter,
|
|
44
|
+
onSelectContentType: l[0] || (l[0] = ({ contentType: u }) => o.value = u)
|
|
45
|
+
}, null, 8, ["defaultValue", "requestBody"])) : s("", !0)
|
|
46
|
+
])
|
|
45
47
|
], 2)) : s("", !0),
|
|
46
|
-
t.value && r.value || !t.value ? (n(), m("div",
|
|
48
|
+
t.value && r.value || !t.value ? (n(), m("div", P, [
|
|
47
49
|
e.parameter.headers ? (n(), C(I, {
|
|
48
50
|
key: 0,
|
|
49
51
|
headers: e.parameter.headers
|
|
50
52
|
}, null, 8, ["headers"])) : s("", !0),
|
|
51
|
-
|
|
53
|
+
f(h(S), {
|
|
52
54
|
compact: "",
|
|
53
55
|
description: t.value ? "" : e.parameter.description,
|
|
54
56
|
name: t.value ? "" : e.parameter.name,
|
|
55
57
|
noncollapsible: e.showChildren,
|
|
56
58
|
required: e.parameter.required,
|
|
57
|
-
value: e.parameter.content ? (
|
|
59
|
+
value: e.parameter.content ? (c = (i = e.parameter.content) == null ? void 0 : i[o.value]) == null ? void 0 : c.schema : e.parameter.schema
|
|
58
60
|
}, null, 8, ["description", "name", "noncollapsible", "required", "value"])
|
|
59
61
|
])) : s("", !0)
|
|
60
62
|
]);
|
|
@@ -62,5 +64,5 @@ const V = { class: "parameter-item" }, T = { class: "parameter-item-name" }, j =
|
|
|
62
64
|
}
|
|
63
65
|
});
|
|
64
66
|
export {
|
|
65
|
-
|
|
67
|
+
R as default
|
|
66
68
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import o from "./Parameters.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-b3f16733"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/RequestBody.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/RequestBody.vue"],"names":[],"mappings":"AAgJA,OAAO,KAAK,EAAe,WAAW,EAAE,MAAM,sBAAsB,CAAA;AA6BpE,iBAAS,cAAc;mBAuFI,GAAG;EAkB7B;AACD,QAAA,MAAM,eAAe;kBAhIiB,WAAW;;kBAAX,WAAW;iGAsI/C,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./RequestBody.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-ad41227a"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Schema.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import c from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const a = /* @__PURE__ */ c(o, [["__scopeId", "data-v-e624cccb"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -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":";YA8VY,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;YACnB,MAAM;WACP,MAAM;eACF,OAAO;cACR,OAAO;kBACH,MAAM;iBACP,OAAO;;YANZ,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;YACnB,MAAM;WACP,MAAM;eACF,OAAO;cACR,OAAO;kBACH,MAAM;iBACP,OAAO;;cAHT,OAAO;WAFV,MAAM;aAGJ,OAAO;;AAgWrB,0BAOG"}
|
|
@@ -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 p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-cd74902a"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -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":"AAiOA,iBAAS,cAAc;kBA4UG,GAAG;EAmB5B;AACD,QAAA,MAAM,eAAe;YA9XT,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;WACpB,OAAO;eACH,OAAO;iBACL,OAAO;;YAHZ,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;WACpB,OAAO;eACH,OAAO;iBACL,OAAO;;cADT,OAAO;6EAmYpB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAexG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,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
3
|
import r from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-0a22c130"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -12,19 +12,19 @@ const C = { class: "property-heading" }, D = {
|
|
|
12
12
|
class: "property-deprecated"
|
|
13
13
|
}, j = {
|
|
14
14
|
key: 3,
|
|
15
|
-
class: "property-
|
|
15
|
+
class: "property-const"
|
|
16
16
|
}, E = {
|
|
17
17
|
key: 4,
|
|
18
|
-
class: "property-
|
|
18
|
+
class: "property-details"
|
|
19
19
|
}, F = {
|
|
20
20
|
key: 5,
|
|
21
|
-
class: "property-
|
|
21
|
+
class: "property-write-only"
|
|
22
22
|
}, H = {
|
|
23
23
|
key: 6,
|
|
24
|
-
class: "property-
|
|
24
|
+
class: "property-read-only"
|
|
25
25
|
}, T = {
|
|
26
26
|
key: 7,
|
|
27
|
-
class: "property-
|
|
27
|
+
class: "property-required"
|
|
28
28
|
}, K = /* @__PURE__ */ P({
|
|
29
29
|
__name: "SchemaPropertyHeading",
|
|
30
30
|
props: {
|
|
@@ -56,8 +56,7 @@ const C = { class: "property-heading" }, D = {
|
|
|
56
56
|
_: 1
|
|
57
57
|
})
|
|
58
58
|
])) : t("", !0),
|
|
59
|
-
e.
|
|
60
|
-
(g = e.value) != null && g.const || (B = e.value) != null && B.enum && e.value.enum.length === 1 ? (u(), n("div", E, [
|
|
59
|
+
(g = e.value) != null && g.const || (B = e.value) != null && B.enum && e.value.enum.length === 1 ? (u(), n("div", j, [
|
|
61
60
|
v(o, { truncate: "" }, {
|
|
62
61
|
prefix: l(() => r[1] || (r[1] = [
|
|
63
62
|
a("const:")
|
|
@@ -67,7 +66,7 @@ const C = { class: "property-heading" }, D = {
|
|
|
67
66
|
]),
|
|
68
67
|
_: 1
|
|
69
68
|
})
|
|
70
|
-
])) : (q = e.value) != null && q.type ? (u(), n("div",
|
|
69
|
+
])) : (q = e.value) != null && q.type ? (u(), n("div", E, [
|
|
71
70
|
v(o, null, {
|
|
72
71
|
default: l(() => {
|
|
73
72
|
var m, p, y;
|
|
@@ -179,7 +178,7 @@ const C = { class: "property-heading" }, D = {
|
|
|
179
178
|
_: 1
|
|
180
179
|
})) : t("", !0)
|
|
181
180
|
])) : t("", !0),
|
|
182
|
-
(I = e.value) != null && I.writeOnly ? (u(), n("div",
|
|
181
|
+
(I = e.value) != null && I.writeOnly ? (u(), n("div", F, " write-only ")) : (L = e.value) != null && L.readOnly ? (u(), n("div", H, " read-only ")) : t("", !0),
|
|
183
182
|
(u(!0), n(s, null, V(A.filter((m) => {
|
|
184
183
|
var p, y, N;
|
|
185
184
|
return ((p = e.value) == null ? void 0 : p[m]) || ((N = (y = e.value) == null ? void 0 : y.items) == null ? void 0 : N[m]);
|
|
@@ -188,7 +187,8 @@ const C = { class: "property-heading" }, D = {
|
|
|
188
187
|
a(i(m), 1)
|
|
189
188
|
]),
|
|
190
189
|
_: 2
|
|
191
|
-
}, 1024))), 128))
|
|
190
|
+
}, 1024))), 128)),
|
|
191
|
+
e.required ? (u(), n("div", T, " required ")) : t("", !0)
|
|
192
192
|
]);
|
|
193
193
|
};
|
|
194
194
|
}
|
|
@@ -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":"AA2IA,iBAAS,cAAc;qBAuFO,GAAG;qBACH,GAAG;EAkBhC;AACD,QAAA,MAAM,eAAe;QApIf,MAAM;YACF,MAAM;;QADV,MAAM;YACF,MAAM;iGAyId,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,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-05521a03"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
r as default
|
|
7
7
|
};
|