@scalar/api-reference 1.28.14 → 1.28.15
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 +12 -0
- package/dist/browser/standalone.js +5095 -5063
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
- package/dist/components/Content/Introduction/Introduction.vue.js +2 -2
- package/dist/components/Content/Introduction/Introduction.vue2.js +44 -35
- package/dist/components/Content/Schema/Schema.preview.d.ts +525 -0
- package/dist/components/Content/Schema/Schema.preview.d.ts.map +1 -1
- package/dist/components/Content/Schema/Schema.vue.d.ts +1 -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 +60 -62
- package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaDiscriminator.vue.js +2 -2
- package/dist/components/Content/Schema/SchemaDiscriminator.vue2.js +32 -50
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +1 -0
- 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 +72 -67
- package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts +12 -0
- package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts.map +1 -0
- package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +70 -0
- package/dist/features/Operation/components/ParameterListItem.vue.js +3 -3
- package/dist/features/Operation/components/ParameterListItem.vue2.js +12 -12
- package/dist/hooks/useSidebar.d.ts +1 -0
- package/dist/hooks/useSidebar.d.ts.map +1 -1
- package/dist/hooks/useSidebar.js +131 -119
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +7 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Introduction.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Introduction/Introduction.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Introduction.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Introduction/Introduction.vue"],"names":[],"mappings":"AAmHA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAC9E,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAuBhD,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,OAAO,CACX,SAAS,CAAC,UAAU,GAAG,SAAS,CAAC,UAAU,GAAG,WAAW,CAAC,UAAU,CACrE,CAAA;IACD,UAAU,EAAE,IAAI,CAAA;CACjB,CAAC;AA0CF,iBAAS,cAAc;WA8JT,OAAO,IAA6B;;uBATtB,GAAG;uBACH,GAAG;;;;EAa9B;AAwBD,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 "./Introduction.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-f02ccf38"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,61 +1,70 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import { useConfig as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import H from "
|
|
7
|
-
import
|
|
1
|
+
import { defineComponent as D, computed as s, onMounted as I, openBlock as l, createBlock as a, unref as o, withCtx as t, createVNode as r, createElementVNode as S, createTextVNode as d, toDisplayString as u, createCommentVNode as f, renderSlot as _ } from "vue";
|
|
2
|
+
import L from "github-slugger";
|
|
3
|
+
import { useConfig as V } from "../../../hooks/useConfig.js";
|
|
4
|
+
import { useNavState as $ } from "../../../hooks/useNavState.js";
|
|
5
|
+
import w from "../../../features/DownloadLink/DownloadLink.vue.js";
|
|
6
|
+
import H from "./Description.vue.js";
|
|
7
|
+
import B from "../../Section/SectionContainer.vue.js";
|
|
8
|
+
import O from "../../Section/Section.vue.js";
|
|
9
|
+
import { DEFAULT_INTRODUCTION_SLUG as U } from "../../../hooks/useSidebar.js";
|
|
8
10
|
import b from "../../Section/SectionContent.vue.js";
|
|
9
11
|
import C from "../../Badge/Badge.vue.js";
|
|
10
12
|
import A from "../../Section/SectionHeader.vue.js";
|
|
11
13
|
import E from "../../Section/SectionHeaderTag.vue.js";
|
|
12
14
|
import F from "../../Section/SectionColumns.vue.js";
|
|
13
|
-
import
|
|
14
|
-
const G = { class: "flex gap-1" },
|
|
15
|
+
import T from "../../Section/SectionColumn.vue.js";
|
|
16
|
+
const G = { class: "flex gap-1" }, M = { class: "sticky-cards" }, te = /* @__PURE__ */ D({
|
|
15
17
|
__name: "Introduction",
|
|
16
18
|
props: {
|
|
17
19
|
info: {},
|
|
18
20
|
parsedSpec: {}
|
|
19
21
|
},
|
|
20
|
-
setup(
|
|
21
|
-
const i =
|
|
22
|
+
setup(h) {
|
|
23
|
+
const i = h, { getHeadingId: k } = $(), m = s(
|
|
22
24
|
() => {
|
|
23
25
|
var e, n;
|
|
24
26
|
return ((e = i.parsedSpec) == null ? void 0 : e.openapi) ?? ((n = i.parsedSpec) == null ? void 0 : n.swagger) ?? "";
|
|
25
27
|
}
|
|
26
|
-
),
|
|
28
|
+
), y = new L(), N = s(() => {
|
|
27
29
|
var e;
|
|
28
|
-
return
|
|
29
|
-
}),
|
|
30
|
+
return y.slug(((e = i.info) == null ? void 0 : e.title) ?? "");
|
|
31
|
+
}), p = s(() => {
|
|
30
32
|
var e, n;
|
|
31
33
|
return typeof ((e = i.info) == null ? void 0 : e.version) == "string" ? i.info.version.toString().match(/^\d/) ? `v${i.info.version}` : i.info.version : typeof ((n = i.info) == null ? void 0 : n.version) == "number" ? `v${i.info.version}` : void 0;
|
|
32
|
-
}), c =
|
|
33
|
-
return
|
|
34
|
+
}), c = V();
|
|
35
|
+
return I(() => {
|
|
34
36
|
var e, n;
|
|
35
37
|
return (n = (e = c.value).onLoaded) == null ? void 0 : n.call(e);
|
|
36
|
-
}), (e, n) => (l(), a(o(
|
|
38
|
+
}), (e, n) => (l(), a(o(B), null, {
|
|
37
39
|
default: t(() => [
|
|
38
|
-
r(o(
|
|
40
|
+
r(o(O), {
|
|
41
|
+
class: "introduction-section gap-12",
|
|
42
|
+
id: o(k)({
|
|
43
|
+
slug: o(U),
|
|
44
|
+
depth: 1,
|
|
45
|
+
value: "Introduction"
|
|
46
|
+
})
|
|
47
|
+
}, {
|
|
39
48
|
default: t(() => {
|
|
40
|
-
var
|
|
49
|
+
var g, v;
|
|
41
50
|
return [
|
|
42
51
|
r(o(b), {
|
|
43
|
-
loading: o(c).isLoading ?? (!((
|
|
52
|
+
loading: o(c).isLoading ?? (!((g = e.info) != null && g.description) && !((v = e.info) != null && v.title))
|
|
44
53
|
}, {
|
|
45
54
|
default: t(() => [
|
|
46
55
|
S("div", G, [
|
|
47
|
-
|
|
56
|
+
p.value ? (l(), a(o(C), { key: 0 }, {
|
|
48
57
|
default: t(() => [
|
|
49
|
-
d(
|
|
58
|
+
d(u(p.value), 1)
|
|
50
59
|
]),
|
|
51
60
|
_: 1
|
|
52
|
-
})) :
|
|
53
|
-
|
|
61
|
+
})) : f("", !0),
|
|
62
|
+
m.value ? (l(), a(o(C), { key: 1 }, {
|
|
54
63
|
default: t(() => [
|
|
55
|
-
d("OAS " +
|
|
64
|
+
d("OAS " + u(m.value), 1)
|
|
56
65
|
]),
|
|
57
66
|
_: 1
|
|
58
|
-
})) :
|
|
67
|
+
})) : f("", !0)
|
|
59
68
|
]),
|
|
60
69
|
r(o(A), {
|
|
61
70
|
loading: !e.info.title,
|
|
@@ -64,32 +73,32 @@ const G = { class: "flex gap-1" }, I = { class: "sticky-cards" }, Y = /* @__PURE
|
|
|
64
73
|
default: t(() => [
|
|
65
74
|
r(o(E), { level: 1 }, {
|
|
66
75
|
default: t(() => [
|
|
67
|
-
d(
|
|
76
|
+
d(u(e.info.title), 1)
|
|
68
77
|
]),
|
|
69
78
|
_: 1
|
|
70
79
|
})
|
|
71
80
|
]),
|
|
72
81
|
_: 1
|
|
73
82
|
}, 8, ["loading"]),
|
|
74
|
-
r(
|
|
83
|
+
r(w, { specTitle: N.value }, null, 8, ["specTitle"]),
|
|
75
84
|
r(o(F), null, {
|
|
76
85
|
default: t(() => [
|
|
77
|
-
r(o(
|
|
86
|
+
r(o(T), null, {
|
|
78
87
|
default: t(() => [
|
|
79
|
-
r(
|
|
88
|
+
r(H, {
|
|
80
89
|
value: e.info.description
|
|
81
90
|
}, null, 8, ["value"])
|
|
82
91
|
]),
|
|
83
92
|
_: 1
|
|
84
93
|
}),
|
|
85
|
-
e.$slots.aside ? (l(), a(o(
|
|
94
|
+
e.$slots.aside ? (l(), a(o(T), { key: 0 }, {
|
|
86
95
|
default: t(() => [
|
|
87
|
-
S("div",
|
|
96
|
+
S("div", M, [
|
|
88
97
|
_(e.$slots, "aside", {}, void 0, !0)
|
|
89
98
|
])
|
|
90
99
|
]),
|
|
91
100
|
_: 3
|
|
92
|
-
})) :
|
|
101
|
+
})) : f("", !0)
|
|
93
102
|
]),
|
|
94
103
|
_: 3
|
|
95
104
|
})
|
|
@@ -100,12 +109,12 @@ const G = { class: "flex gap-1" }, I = { class: "sticky-cards" }, Y = /* @__PURE
|
|
|
100
109
|
];
|
|
101
110
|
}),
|
|
102
111
|
_: 3
|
|
103
|
-
})
|
|
112
|
+
}, 8, ["id"])
|
|
104
113
|
]),
|
|
105
114
|
_: 3
|
|
106
115
|
}));
|
|
107
116
|
}
|
|
108
117
|
});
|
|
109
118
|
export {
|
|
110
|
-
|
|
119
|
+
te as default
|
|
111
120
|
};
|