@scalar/api-reference 1.25.44 → 1.25.46
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 +4788 -4787
- 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/Section/CompactSection.vue.d.ts.map +1 -1
- package/dist/components/Section/CompactSection.vue.js +2 -2
- package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +9 -9
|
@@ -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":"AAgOA,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-93630359"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -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
|
};
|
|
@@ -4,7 +4,7 @@ import type { OpenApiDocumentConfiguration } from './types';
|
|
|
4
4
|
declare const dereferenced: import("vue").Ref<{
|
|
5
5
|
[x: `x-${string}`]: any;
|
|
6
6
|
[x: string]: any;
|
|
7
|
-
openapi?: ("3.0.0" | "3.0.1" | "3.0.2" | "3.0.
|
|
7
|
+
openapi?: ("3.0.0" | "3.0.1" | "3.0.2" | "3.0.3") | undefined;
|
|
8
8
|
swagger?: undefined;
|
|
9
9
|
info?: {
|
|
10
10
|
title?: string | undefined;
|
|
@@ -249,7 +249,7 @@ declare const dereferenced: import("vue").Ref<{
|
|
|
249
249
|
} | undefined, OpenAPI.Document<{}> | {
|
|
250
250
|
[x: `x-${string}`]: any;
|
|
251
251
|
[x: string]: any;
|
|
252
|
-
openapi?: ("3.0.0" | "3.0.1" | "3.0.2" | "3.0.
|
|
252
|
+
openapi?: ("3.0.0" | "3.0.1" | "3.0.2" | "3.0.3") | undefined;
|
|
253
253
|
swagger?: undefined;
|
|
254
254
|
info?: {
|
|
255
255
|
title?: string | undefined;
|