@scalar/api-reference 1.25.71 → 1.25.74
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 +75 -0
- package/dist/browser/standalone.js +12267 -12210
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/Anchor/Anchor.vue.d.ts.map +1 -1
- package/dist/components/Anchor/Anchor.vue.js +2 -2
- package/dist/components/ApiReference.vue.d.ts.map +1 -1
- package/dist/components/ApiReference.vue.js +56 -57
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +3 -3
- package/dist/components/ApiReferenceLayout.vue2.js +160 -143
- package/dist/components/Content/Authentication/Authentication.vue.d.ts +1 -1
- package/dist/components/Content/Authentication/Authentication.vue.d.ts.map +1 -1
- package/dist/components/Content/Authentication/Authentication.vue.js +2 -2
- package/dist/components/Content/Authentication/Authentication.vue2.js +20 -20
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +2 -2
- package/dist/components/Content/Content.vue.d.ts +1 -1
- package/dist/components/Content/Content.vue.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.js +2 -2
- package/dist/components/Content/Content.vue2.js +59 -53
- package/dist/components/Content/Introduction/Introduction.vue.js +1 -1
- package/dist/components/Content/Introduction/Introduction.vue2.js +32 -32
- package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/Models.vue.js +2 -2
- package/dist/components/Content/Models/Models.vue2.js +42 -36
- 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 +10 -11
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue2.js +12 -12
- package/dist/components/Content/Tag/Endpoints.vue.js +2 -2
- package/dist/components/Content/Tag/Endpoints.vue2.js +19 -19
- package/dist/components/Content/Tag/TagAccordion.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/TagAccordion.vue.js +2 -2
- package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/TagList.vue.js +34 -28
- package/dist/components/Layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/components/Layouts/ModernLayout.vue.js +2 -2
- package/dist/components/Layouts/ModernLayout.vue2.js +30 -29
- package/dist/components/Section/CompactSection.vue.js +2 -2
- package/dist/components/Section/CompactSection.vue2.js +9 -8
- package/dist/components/Section/SectionColumn.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionColumn.vue.js +4 -4
- package/dist/components/Section/SectionContainerAccordion.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionContainerAccordion.vue.js +2 -2
- package/dist/components/Section/SectionHeader.vue.d.ts +2 -2
- package/dist/components/Section/SectionHeader.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionHeader.vue.js +1 -1
- package/dist/components/Section/SectionHeader.vue2.js +16 -14
- package/dist/components/ShowMoreButton.vue.js +2 -2
- package/dist/components/Sidebar/SidebarElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarElement.vue.js +2 -2
- package/dist/components/Sidebar/SidebarElement.vue2.js +3 -2
- package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts +22 -0
- package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts.map +1 -1
- package/dist/embeds/OpenApiDocument/types.d.ts +1 -1
- package/dist/embeds/OpenApiDocument/types.d.ts.map +1 -1
- package/dist/features/ApiClientModal/useApiClient.d.ts +6 -4
- package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerUrlSelect.vue.js +3 -3
- package/dist/features/BaseUrl/ServerUrlSelect.vue2.js +5 -5
- package/dist/features/BaseUrl/ServerVariablesSelect.vue.js +2 -2
- package/dist/features/BaseUrl/ServerVariablesSelect.vue2.js +3 -3
- package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue.js +2 -2
- package/dist/features/ExampleRequest/ExampleRequest.vue2.js +124 -120
- package/dist/features/Operation/components/ParameterHeaders.vue.js +3 -3
- package/dist/features/Operation/components/ParameterHeaders.vue2.js +7 -7
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue.js +2 -2
- package/dist/features/Operation/components/ParameterListItem.vue2.js +3 -4
- package/dist/features/Operation/components/RequestBodyPropertiesChild.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
- package/dist/features/Operation/layouts/ModernLayout.vue2.js +99 -89
- package/dist/helpers/getExampleCode.d.ts +2 -2
- package/dist/helpers/getExampleCode.d.ts.map +1 -1
- package/dist/helpers/getExampleCode.js +11 -11
- package/dist/helpers/parse.d.ts +2 -2
- package/dist/helpers/parse.d.ts.map +1 -1
- package/dist/helpers/parse.js +3 -3
- package/dist/hooks/useDeprecationWarnings.d.ts.map +1 -1
- package/dist/hooks/useDeprecationWarnings.js +12 -15
- package/dist/hooks/useReactiveSpec.d.ts +24 -2
- package/dist/hooks/useReactiveSpec.d.ts.map +1 -1
- package/dist/hooks/useReactiveSpec.js +4 -4
- package/dist/index.js +1 -1
- package/dist/legacy/components/SecurityScheme.vue.d.ts +1 -1
- package/dist/legacy/components/SecurityScheme.vue.d.ts.map +1 -1
- package/dist/legacy/components/SecurityScheme.vue.js +2 -2
- package/dist/legacy/components/SecurityScheme.vue2.js +13 -13
- package/dist/legacy/components/SecuritySchemeSelector.vue.js +2 -2
- package/dist/legacy/components/SecuritySchemeSelector.vue2.js +3 -3
- package/dist/legacy/helpers/getUrlFromServerState.d.ts +2 -1
- package/dist/legacy/helpers/getUrlFromServerState.d.ts.map +1 -1
- package/dist/legacy/helpers/getUrlFromServerState.js +14 -14
- package/dist/legacy/stores/useOpenApiStore.d.ts +22 -0
- package/dist/legacy/stores/useOpenApiStore.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +11 -11
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineComponent as f, computed as v, watch as _, onServerPrefetch as k, useSSRContext as x, unref as n, openBlock as a, createElementBlock as S, createElementVNode as h, createVNode as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { sleep as
|
|
5
|
-
import { hasSecuritySchemes as
|
|
6
|
-
import { useAuthenticationStore as
|
|
7
|
-
const
|
|
1
|
+
import { defineComponent as f, computed as v, watch as _, onServerPrefetch as k, useSSRContext as x, unref as n, openBlock as a, createElementBlock as S, createElementVNode as h, createVNode as U, createBlock as w, createCommentVNode as i } from "vue";
|
|
2
|
+
import A from "../../../legacy/components/SecurityScheme.vue.js";
|
|
3
|
+
import B from "../../../legacy/components/SecuritySchemeSelector.vue.js";
|
|
4
|
+
import { sleep as C } from "../../../helpers/sleep.js";
|
|
5
|
+
import { hasSecuritySchemes as N } from "../../../helpers/hasSecuritySchemes.js";
|
|
6
|
+
import { useAuthenticationStore as V } from "../../../legacy/stores/useAuthenticationStore.js";
|
|
7
|
+
const E = { key: 0 }, b = { class: "authentication-header" }, G = { class: "selector" }, P = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "authentication-content"
|
|
10
|
-
},
|
|
10
|
+
}, F = /* @__PURE__ */ f({
|
|
11
11
|
__name: "Authentication",
|
|
12
12
|
props: {
|
|
13
13
|
parsedSpec: {},
|
|
14
|
-
|
|
14
|
+
proxyUrl: {}
|
|
15
15
|
},
|
|
16
16
|
setup(d) {
|
|
17
|
-
const s = d, { authentication: r, setAuthentication: l } =
|
|
17
|
+
const s = d, { authentication: r, setAuthentication: l } = V(), y = v(() => {
|
|
18
18
|
var t, c, o;
|
|
19
19
|
if (!r.preferredSecurityScheme)
|
|
20
20
|
return !1;
|
|
@@ -35,28 +35,28 @@ const b = { key: 0 }, G = { class: "authentication-header" }, P = { class: "sele
|
|
|
35
35
|
{ deep: !0, immediate: !0 }
|
|
36
36
|
), k(async () => {
|
|
37
37
|
const e = x();
|
|
38
|
-
await
|
|
38
|
+
await C(1), e.payload.data["useGlobalStore-authentication"] = r;
|
|
39
39
|
}), (e, t) => {
|
|
40
40
|
var c, o, p, u, m;
|
|
41
|
-
return n(
|
|
42
|
-
h("div",
|
|
43
|
-
h("div",
|
|
44
|
-
|
|
41
|
+
return n(N)(e.parsedSpec) ? (a(), S("div", E, [
|
|
42
|
+
h("div", b, [
|
|
43
|
+
h("div", G, [
|
|
44
|
+
U(B, {
|
|
45
45
|
value: (o = (c = e.parsedSpec) == null ? void 0 : c.components) == null ? void 0 : o.securitySchemes
|
|
46
46
|
}, null, 8, ["value"])
|
|
47
47
|
])
|
|
48
48
|
]),
|
|
49
|
-
y.value ? (a(), S("div",
|
|
50
|
-
n(r).preferredSecurityScheme ? (a(), A
|
|
49
|
+
y.value ? (a(), S("div", P, [
|
|
50
|
+
n(r).preferredSecurityScheme ? (a(), w(A, {
|
|
51
51
|
key: 0,
|
|
52
|
-
|
|
52
|
+
proxyUrl: e.proxyUrl,
|
|
53
53
|
value: (m = (u = (p = e.parsedSpec) == null ? void 0 : p.components) == null ? void 0 : u.securitySchemes) == null ? void 0 : m[n(r).preferredSecurityScheme]
|
|
54
|
-
}, null, 8, ["
|
|
54
|
+
}, null, 8, ["proxyUrl", "value"])) : i("", !0)
|
|
55
55
|
])) : i("", !0)
|
|
56
56
|
])) : i("", !0);
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
60
|
export {
|
|
61
|
-
|
|
61
|
+
F as default
|
|
62
62
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClientLibraries.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/ClientLibraries.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ClientLibraries.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/ClientLibraries.vue"],"names":[],"mappings":";AAiIA,wBAKG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ClientLibraries.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-d0104df2"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Content.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Content/Content.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Content.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Content/Content.vue"],"names":[],"mappings":"AA0NA,OAAO,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAgBxD,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,IAAI,CAAA;IAChB,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAC;AAsBJ,iBAAS,cAAc;WAuMT,OAAO,IAA6B;;uBAVvB,GAAG;+BACM,GAAG;qBACb,GAAG;;;;EAa5B;AAuBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;YA9PR,QAAQ,GAAG,SAAS;6EAqQ/B,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"}
|
|
@@ -2,7 +2,7 @@ import o from "./Content.vue2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const
|
|
5
|
+
const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-fbdf2978"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
_ as default
|
|
8
8
|
};
|
|
@@ -1,67 +1,73 @@
|
|
|
1
|
-
import { defineComponent as M, computed as
|
|
1
|
+
import { defineComponent as M, computed as B, openBlock as s, createElementBlock as t, Fragment as i, createStaticVNode as L, createElementVNode as b, renderSlot as l, createVNode as o, unref as r, createBlock as a, withCtx as k, normalizeClass as N, renderList as V, createCommentVNode as p } from "vue";
|
|
2
|
+
import { ScalarErrorBoundary as E } from "@scalar/components";
|
|
2
3
|
import A from "./Lazy/Loading.vue.js";
|
|
3
4
|
/* empty css */
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
5
|
+
import R from "./Introduction/Introduction.vue.js";
|
|
6
|
+
import z from "../../features/BaseUrl/BaseUrl.vue.js";
|
|
7
|
+
import F from "./Authentication/Authentication.vue.js";
|
|
8
|
+
import G from "./ClientLibraries/ClientLibraries.vue.js";
|
|
8
9
|
import h from "./Tag/TagList.vue.js";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { useSidebar as
|
|
13
|
-
import { hasModels as
|
|
10
|
+
import I from "../../features/Operation/Webhooks.vue.js";
|
|
11
|
+
import W from "./Models/ModelsAccordion.vue.js";
|
|
12
|
+
import j from "./Models/Models.vue.js";
|
|
13
|
+
import { useSidebar as q } from "../../hooks/useSidebar.js";
|
|
14
|
+
import { hasModels as D } from "../../helpers/hasModels.js";
|
|
14
15
|
import { getModels as g } from "../../helpers/getModels.js";
|
|
15
|
-
const
|
|
16
|
+
const H = { class: "narrow-references-container" }, oe = /* @__PURE__ */ M({
|
|
16
17
|
__name: "Content",
|
|
17
18
|
props: {
|
|
18
19
|
parsedSpec: {},
|
|
19
20
|
layout: { default: "modern" },
|
|
20
21
|
baseServerURL: {},
|
|
21
22
|
servers: {},
|
|
22
|
-
|
|
23
|
+
proxyUrl: {}
|
|
23
24
|
},
|
|
24
|
-
setup(
|
|
25
|
-
const n =
|
|
25
|
+
setup(U) {
|
|
26
|
+
const n = U, { hideModels: w } = q(), C = B(
|
|
26
27
|
() => n.layout === "classic" ? "after" : "aside"
|
|
27
28
|
);
|
|
28
29
|
return (e, c) => {
|
|
29
|
-
var m, u,
|
|
30
|
-
return
|
|
31
|
-
c[0] || (c[0] =
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
30
|
+
var f, m, u, v;
|
|
31
|
+
return s(), t(i, null, [
|
|
32
|
+
c[0] || (c[0] = L('<div class="section-flare" data-v-fbdf2978><div class="section-flare-item" data-v-fbdf2978></div><div class="section-flare-item" data-v-fbdf2978></div><div class="section-flare-item" data-v-fbdf2978></div><div class="section-flare-item" data-v-fbdf2978></div><div class="section-flare-item" data-v-fbdf2978></div><div class="section-flare-item" data-v-fbdf2978></div><div class="section-flare-item" data-v-fbdf2978></div><div class="section-flare-item" data-v-fbdf2978></div></div>', 1)),
|
|
33
|
+
b("div", H, [
|
|
34
|
+
l(e.$slots, "start", {}, void 0, !0),
|
|
35
|
+
o(r(A), {
|
|
35
36
|
layout: e.layout,
|
|
36
37
|
parsedSpec: e.parsedSpec
|
|
37
38
|
}, null, 8, ["layout", "parsedSpec"]),
|
|
38
|
-
(
|
|
39
|
+
(m = (f = e.parsedSpec) == null ? void 0 : f.info) != null && m.title || (v = (u = e.parsedSpec) == null ? void 0 : u.info) != null && v.description ? (s(), a(r(R), {
|
|
39
40
|
key: 0,
|
|
40
41
|
info: e.parsedSpec.info,
|
|
41
42
|
parsedSpec: e.parsedSpec
|
|
42
43
|
}, {
|
|
43
|
-
[C.value]:
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
44
|
+
[C.value]: k(() => [
|
|
45
|
+
o(r(E), null, {
|
|
46
|
+
default: k(() => [
|
|
47
|
+
b("div", {
|
|
48
|
+
class: N(["introduction-card", { "introduction-card-row": e.layout === "classic" }])
|
|
49
|
+
}, [
|
|
50
|
+
o(r(z), {
|
|
51
|
+
class: "introduction-card-item",
|
|
52
|
+
defaultServerUrl: e.baseServerURL,
|
|
53
|
+
servers: n.servers,
|
|
54
|
+
specification: e.parsedSpec
|
|
55
|
+
}, null, 8, ["defaultServerUrl", "servers", "specification"]),
|
|
56
|
+
o(r(F), {
|
|
57
|
+
class: "introduction-card-item",
|
|
58
|
+
parsedSpec: e.parsedSpec,
|
|
59
|
+
proxyUrl: e.proxyUrl
|
|
60
|
+
}, null, 8, ["parsedSpec", "proxyUrl"]),
|
|
61
|
+
o(r(G), { class: "introduction-card-item" })
|
|
62
|
+
], 2)
|
|
63
|
+
]),
|
|
64
|
+
_: 1
|
|
65
|
+
})
|
|
60
66
|
]),
|
|
61
67
|
_: 2
|
|
62
|
-
}, 1032, ["info", "parsedSpec"])) :
|
|
63
|
-
e.parsedSpec.tags ? (
|
|
64
|
-
e.parsedSpec["x-tagGroups"] ? (
|
|
68
|
+
}, 1032, ["info", "parsedSpec"])) : l(e.$slots, "empty-state", { key: 1 }, void 0, !0),
|
|
69
|
+
e.parsedSpec.tags ? (s(), t(i, { key: 2 }, [
|
|
70
|
+
e.parsedSpec["x-tagGroups"] ? (s(!0), t(i, { key: 0 }, V(e.parsedSpec["x-tagGroups"], (S) => (s(), a(r(h), {
|
|
65
71
|
key: S.name,
|
|
66
72
|
layout: e.layout,
|
|
67
73
|
spec: e.parsedSpec,
|
|
@@ -69,32 +75,32 @@ const D = { class: "narrow-references-container" }, re = /* @__PURE__ */ M({
|
|
|
69
75
|
var y;
|
|
70
76
|
return (y = e.parsedSpec.tags) == null ? void 0 : y.find(($) => $.name === d);
|
|
71
77
|
}).filter((d) => !!d)
|
|
72
|
-
}, null, 8, ["layout", "spec", "tags"]))), 128)) : (
|
|
78
|
+
}, null, 8, ["layout", "spec", "tags"]))), 128)) : (s(), a(r(h), {
|
|
73
79
|
key: 1,
|
|
74
80
|
layout: e.layout,
|
|
75
81
|
spec: e.parsedSpec,
|
|
76
82
|
tags: e.parsedSpec.tags
|
|
77
83
|
}, null, 8, ["layout", "spec", "tags"]))
|
|
78
|
-
], 64)) :
|
|
79
|
-
e.parsedSpec.webhooks ? (
|
|
84
|
+
], 64)) : p("", !0),
|
|
85
|
+
e.parsedSpec.webhooks ? (s(), a(r(I), {
|
|
80
86
|
key: 3,
|
|
81
87
|
webhooks: e.parsedSpec.webhooks
|
|
82
|
-
}, null, 8, ["webhooks"])) :
|
|
83
|
-
|
|
84
|
-
e.layout === "classic" ? (
|
|
88
|
+
}, null, 8, ["webhooks"])) : p("", !0),
|
|
89
|
+
r(D)(e.parsedSpec) && !r(w) ? (s(), t(i, { key: 4 }, [
|
|
90
|
+
e.layout === "classic" ? (s(), a(r(W), {
|
|
85
91
|
key: 0,
|
|
86
|
-
schemas:
|
|
87
|
-
}, null, 8, ["schemas"])) : (
|
|
92
|
+
schemas: r(g)(e.parsedSpec)
|
|
93
|
+
}, null, 8, ["schemas"])) : (s(), a(r(j), {
|
|
88
94
|
key: 1,
|
|
89
|
-
schemas:
|
|
95
|
+
schemas: r(g)(e.parsedSpec)
|
|
90
96
|
}, null, 8, ["schemas"]))
|
|
91
|
-
], 64)) :
|
|
92
|
-
|
|
97
|
+
], 64)) : p("", !0),
|
|
98
|
+
l(e.$slots, "end", {}, void 0, !0)
|
|
93
99
|
])
|
|
94
100
|
], 64);
|
|
95
101
|
};
|
|
96
102
|
}
|
|
97
103
|
});
|
|
98
104
|
export {
|
|
99
|
-
|
|
105
|
+
oe as default
|
|
100
106
|
};
|
|
@@ -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 p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-fbd64817"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|
|
@@ -5,10 +5,10 @@ import y from "./Description.vue.js";
|
|
|
5
5
|
import V from "../../Section/SectionContainer.vue.js";
|
|
6
6
|
import w from "../../Section/Section.vue.js";
|
|
7
7
|
import N from "../../Section/SectionContent.vue.js";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
8
|
+
import m from "../../Badge/Badge.vue.js";
|
|
9
|
+
import T from "../../Section/SectionHeader.vue.js";
|
|
10
|
+
import B from "../../Section/SectionColumns.vue.js";
|
|
11
|
+
import g from "../../Section/SectionColumn.vue.js";
|
|
12
12
|
const D = { class: "badges" }, $ = { class: "sticky-cards" }, J = /* @__PURE__ */ k({
|
|
13
13
|
__name: "Introduction",
|
|
14
14
|
props: {
|
|
@@ -25,42 +25,42 @@ const D = { class: "badges" }, $ = { class: "sticky-cards" }, J = /* @__PURE__ *
|
|
|
25
25
|
loading: !e.info.description && !e.info.title
|
|
26
26
|
}, {
|
|
27
27
|
default: t(() => [
|
|
28
|
-
|
|
28
|
+
f("div", D, [
|
|
29
|
+
e.info.version ? (n(), r(o(m), { key: 0 }, {
|
|
30
|
+
default: t(() => [
|
|
31
|
+
s(a(e.info.version), 1)
|
|
32
|
+
]),
|
|
33
|
+
_: 1
|
|
34
|
+
})) : d("", !0),
|
|
35
|
+
u.value ? (n(), r(o(m), { key: 1 }, {
|
|
36
|
+
default: t(() => [
|
|
37
|
+
s(" OAS " + a(u.value), 1)
|
|
38
|
+
]),
|
|
39
|
+
_: 1
|
|
40
|
+
})) : d("", !0)
|
|
41
|
+
]),
|
|
42
|
+
i(o(T), {
|
|
43
|
+
level: 1,
|
|
44
|
+
loading: !e.info.title,
|
|
45
|
+
tight: ""
|
|
46
|
+
}, {
|
|
29
47
|
default: t(() => [
|
|
30
|
-
|
|
48
|
+
s(a(e.info.title), 1)
|
|
49
|
+
]),
|
|
50
|
+
_: 1
|
|
51
|
+
}, 8, ["loading"]),
|
|
52
|
+
i(h, { specTitle: _.value }, null, 8, ["specTitle"]),
|
|
53
|
+
i(o(B), null, {
|
|
54
|
+
default: t(() => [
|
|
55
|
+
i(o(g), null, {
|
|
31
56
|
default: t(() => [
|
|
32
|
-
f("div", D, [
|
|
33
|
-
e.info.version ? (n(), r(o(g), { key: 0 }, {
|
|
34
|
-
default: t(() => [
|
|
35
|
-
s(a(e.info.version), 1)
|
|
36
|
-
]),
|
|
37
|
-
_: 1
|
|
38
|
-
})) : d("", !0),
|
|
39
|
-
u.value ? (n(), r(o(g), { key: 1 }, {
|
|
40
|
-
default: t(() => [
|
|
41
|
-
s(" OAS " + a(u.value), 1)
|
|
42
|
-
]),
|
|
43
|
-
_: 1
|
|
44
|
-
})) : d("", !0)
|
|
45
|
-
]),
|
|
46
|
-
i(o(B), {
|
|
47
|
-
level: 1,
|
|
48
|
-
loading: !e.info.title,
|
|
49
|
-
tight: ""
|
|
50
|
-
}, {
|
|
51
|
-
default: t(() => [
|
|
52
|
-
s(a(e.info.title), 1)
|
|
53
|
-
]),
|
|
54
|
-
_: 1
|
|
55
|
-
}, 8, ["loading"]),
|
|
56
|
-
i(h, { specTitle: _.value }, null, 8, ["specTitle"]),
|
|
57
57
|
i(y, {
|
|
58
58
|
value: e.info.description
|
|
59
59
|
}, null, 8, ["value"])
|
|
60
60
|
]),
|
|
61
61
|
_: 1
|
|
62
62
|
}),
|
|
63
|
-
e.$slots.aside ? (n(), r(o(
|
|
63
|
+
e.$slots.aside ? (n(), r(o(g), { key: 0 }, {
|
|
64
64
|
default: t(() => [
|
|
65
65
|
f("div", $, [
|
|
66
66
|
c(e.$slots, "aside", {}, void 0, !0)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Models.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Models/Models.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Models.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Models/Models.vue"],"names":[],"mappings":"AAwGA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAgB9E,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,EACJ,SAAS,CAAC,iBAAiB,GAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,GACtC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GACxC,OAAO,CAAA;CACZ,CAAC;;AAiLF,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Models.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-02d49c40"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
s as default
|
|
7
7
|
};
|
|
@@ -1,69 +1,75 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import C from "
|
|
3
|
-
import L from "../../
|
|
1
|
+
import { defineComponent as v, computed as c, openBlock as a, createBlock as i, unref as e, withCtx as t, createVNode as l, createTextVNode as k, createElementVNode as y, normalizeClass as M, createElementBlock as b, Fragment as N, renderList as g, createCommentVNode as u } from "vue";
|
|
2
|
+
import { ScalarErrorBoundary as C } from "@scalar/components";
|
|
3
|
+
import L from "../../ShowMoreButton.vue.js";
|
|
4
|
+
import B from "../../Section/SectionContainer.vue.js";
|
|
4
5
|
import I from "../../Section/Section.vue.js";
|
|
5
6
|
import w from "../../Section/SectionHeader.vue.js";
|
|
6
7
|
import f from "../Lazy/Lazy.vue2.js";
|
|
7
|
-
import
|
|
8
|
+
import E from "../../Section/CompactSection.vue.js";
|
|
8
9
|
import H from "../Schema/SchemaHeading.vue.js";
|
|
9
10
|
import O from "../Schema/Schema.vue.js";
|
|
10
11
|
import { useSidebar as V } from "../../../hooks/useSidebar.js";
|
|
11
12
|
import { useNavState as z } from "../../../hooks/useNavState.js";
|
|
12
|
-
const p = 10,
|
|
13
|
+
const p = 10, J = /* @__PURE__ */ v({
|
|
13
14
|
__name: "Models",
|
|
14
15
|
props: {
|
|
15
16
|
schemas: {}
|
|
16
17
|
},
|
|
17
18
|
setup(h) {
|
|
18
|
-
const d = h, { collapsedSidebarItems: S } = V(), { getModelId:
|
|
19
|
-
() => Object.keys(d.schemas ?? {}).length <= p || S[
|
|
20
|
-
),
|
|
21
|
-
const
|
|
22
|
-
return m.value ?
|
|
19
|
+
const d = h, { collapsedSidebarItems: S } = V(), { getModelId: s } = z(), m = c(
|
|
20
|
+
() => Object.keys(d.schemas ?? {}).length <= p || S[s()]
|
|
21
|
+
), _ = c(() => {
|
|
22
|
+
const r = Object.keys(d.schemas ?? {});
|
|
23
|
+
return m.value ? r : r.slice(0, p);
|
|
23
24
|
});
|
|
24
|
-
return (
|
|
25
|
+
return (r, n) => r.schemas ? (a(), i(e(B), {
|
|
25
26
|
key: 0,
|
|
26
27
|
id: "models"
|
|
27
28
|
}, {
|
|
28
|
-
default:
|
|
29
|
-
|
|
30
|
-
default:
|
|
31
|
-
|
|
32
|
-
default:
|
|
29
|
+
default: t(() => [
|
|
30
|
+
l(e(I), null, {
|
|
31
|
+
default: t(() => [
|
|
32
|
+
l(e(w), { level: 2 }, {
|
|
33
|
+
default: t(() => n[0] || (n[0] = [
|
|
33
34
|
k("Models")
|
|
34
35
|
])),
|
|
35
36
|
_: 1
|
|
36
37
|
}),
|
|
37
|
-
|
|
38
|
+
l(e(f), {
|
|
38
39
|
id: "models",
|
|
39
40
|
isLazy: !1
|
|
40
41
|
}),
|
|
41
|
-
|
|
42
|
-
class:
|
|
42
|
+
y("div", {
|
|
43
|
+
class: M(["models-list", { "models-list-truncated": !m.value }])
|
|
43
44
|
}, [
|
|
44
|
-
(a(!0),
|
|
45
|
-
id: e(
|
|
45
|
+
(a(!0), b(N, null, g(_.value, (o) => (a(), i(e(f), {
|
|
46
|
+
id: e(s)(o),
|
|
46
47
|
key: o,
|
|
47
48
|
isLazy: ""
|
|
48
49
|
}, {
|
|
49
|
-
default:
|
|
50
|
-
|
|
51
|
-
id: e(
|
|
50
|
+
default: t(() => [
|
|
51
|
+
l(e(E), {
|
|
52
|
+
id: e(s)(o),
|
|
52
53
|
class: "models-list-item",
|
|
53
54
|
label: o
|
|
54
55
|
}, {
|
|
55
|
-
heading:
|
|
56
|
-
|
|
56
|
+
heading: t(() => [
|
|
57
|
+
l(e(H), {
|
|
57
58
|
name: o,
|
|
58
|
-
value:
|
|
59
|
+
value: r.schemas[o]
|
|
59
60
|
}, null, 8, ["name", "value"])
|
|
60
61
|
]),
|
|
61
|
-
default:
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
62
|
+
default: t(() => [
|
|
63
|
+
l(e(C), null, {
|
|
64
|
+
default: t(() => [
|
|
65
|
+
l(e(O), {
|
|
66
|
+
hideHeading: !0,
|
|
67
|
+
noncollapsible: "",
|
|
68
|
+
value: r.schemas[o]
|
|
69
|
+
}, null, 8, ["value"])
|
|
70
|
+
]),
|
|
71
|
+
_: 2
|
|
72
|
+
}, 1024)
|
|
67
73
|
]),
|
|
68
74
|
_: 2
|
|
69
75
|
}, 1032, ["id", "label"])
|
|
@@ -71,9 +77,9 @@ const p = 10, q = /* @__PURE__ */ _({
|
|
|
71
77
|
_: 2
|
|
72
78
|
}, 1032, ["id"]))), 128))
|
|
73
79
|
], 2),
|
|
74
|
-
m.value ? u("", !0) : (a(), i(
|
|
80
|
+
m.value ? u("", !0) : (a(), i(L, {
|
|
75
81
|
key: 0,
|
|
76
|
-
id: e(
|
|
82
|
+
id: e(s)(),
|
|
77
83
|
class: "show-more-models"
|
|
78
84
|
}, null, 8, ["id"]))
|
|
79
85
|
]),
|
|
@@ -85,5 +91,5 @@ const p = 10, q = /* @__PURE__ */ _({
|
|
|
85
91
|
}
|
|
86
92
|
});
|
|
87
93
|
export {
|
|
88
|
-
|
|
94
|
+
J as default
|
|
89
95
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Schema.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/Schema.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Schema.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/Schema.vue"],"names":[],"mappings":"AAuRA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAQ9E,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EACF,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,YAAY,GACtB,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,oBAAoB,GAC9B,WAAW,CAAC,YAAY,GACxB,WAAW,CAAC,iBAAiB,GAC7B,WAAW,CAAC,oBAAoB,CAAA;IACpC,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,+DAA+D;IAC/D,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,2CAA2C;IAC3C,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;WARQ,MAAM;;AAuSlB,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Schema.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-6f5b320f"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as O, computed as D, openBlock as l, createBlock as i, unref as r, withCtx as h, createElementVNode as P, normalizeClass as p, createElementBlock as o, createVNode as d, createCommentVNode as n, withDirectives as q, normalizeStyle as
|
|
2
|
-
import { Disclosure as
|
|
1
|
+
import { defineComponent as O, computed as D, openBlock as l, createBlock as i, unref as r, withCtx as h, createElementVNode as P, normalizeClass as p, createElementBlock as o, createVNode as d, createCommentVNode as n, withDirectives as q, normalizeStyle as z, Fragment as t, createTextVNode as S, toDisplayString as C, vShow as A, renderList as H } from "vue";
|
|
2
|
+
import { Disclosure as N, DisclosureButton as V, DisclosurePanel as E } from "@headlessui/vue";
|
|
3
3
|
import { ScalarMarkdown as T, ScalarIcon as B } from "@scalar/components";
|
|
4
4
|
import $ from "./SchemaHeading.vue.js";
|
|
5
5
|
import m from "./SchemaProperty.vue.js";
|
|
@@ -18,7 +18,7 @@ const F = {
|
|
|
18
18
|
},
|
|
19
19
|
setup(j) {
|
|
20
20
|
const v = j, y = D(() => !(v.noncollapsible || v.level === 0)), w = (e) => v.noncollapsible && e.stopPropagation();
|
|
21
|
-
return (e, I) => typeof e.value == "object" && Object.keys(e.value).length ? (l(), i(r(
|
|
21
|
+
return (e, I) => typeof e.value == "object" && Object.keys(e.value).length ? (l(), i(r(N), {
|
|
22
22
|
key: 0,
|
|
23
23
|
defaultOpen: e.noncollapsible
|
|
24
24
|
}, {
|
|
@@ -39,10 +39,10 @@ const F = {
|
|
|
39
39
|
P("div", {
|
|
40
40
|
class: p(["schema-properties", { "schema-properties-open": s }])
|
|
41
41
|
}, [
|
|
42
|
-
q(d(r(
|
|
42
|
+
q(d(r(V), {
|
|
43
43
|
as: e.noncollapsible ? "div" : "button",
|
|
44
44
|
class: p(["schema-card-title", { "schema-card-title--compact": e.compact }]),
|
|
45
|
-
style:
|
|
45
|
+
style: z({
|
|
46
46
|
top: `calc(var(--refs-header-height) + calc(var(--schema-title-height) * ${e.level}))`
|
|
47
47
|
}),
|
|
48
48
|
onClickCapture: w
|
|
@@ -53,9 +53,9 @@ const F = {
|
|
|
53
53
|
e.compact ? (l(), o(t, { key: 0 }, [
|
|
54
54
|
y.value ? (l(), i(r(B), {
|
|
55
55
|
key: 0,
|
|
56
|
-
class: p(["schema-card-title-icon
|
|
56
|
+
class: p(["schema-card-title-icon", { "schema-card-title-icon--open": s }]),
|
|
57
57
|
icon: "Add",
|
|
58
|
-
|
|
58
|
+
size: "sm"
|
|
59
59
|
}, null, 8, ["class"])) : n("", !0),
|
|
60
60
|
s ? (l(), o(t, { key: 1 }, [
|
|
61
61
|
S(" Hide " + C(((c = e.value) == null ? void 0 : c.title) ?? "Child Attributes"), 1)
|
|
@@ -67,8 +67,7 @@ const F = {
|
|
|
67
67
|
key: 0,
|
|
68
68
|
class: p(["schema-card-title-icon", { "schema-card-title-icon--open": s }]),
|
|
69
69
|
icon: "Add",
|
|
70
|
-
size: "
|
|
71
|
-
thickness: "2.5"
|
|
70
|
+
size: "sm"
|
|
72
71
|
}, null, 8, ["class"])) : n("", !0),
|
|
73
72
|
d($, {
|
|
74
73
|
name: ((u = e.value) == null ? void 0 : u.title) ?? e.name,
|
|
@@ -79,14 +78,14 @@ const F = {
|
|
|
79
78
|
}),
|
|
80
79
|
_: 2
|
|
81
80
|
}, 1032, ["as", "class", "style"]), [
|
|
82
|
-
[
|
|
81
|
+
[A, !e.hideHeading && !(e.noncollapsible && e.compact)]
|
|
83
82
|
]),
|
|
84
83
|
d(r(E), { static: e.noncollapsible }, {
|
|
85
84
|
default: h(() => {
|
|
86
85
|
var c;
|
|
87
86
|
return [
|
|
88
87
|
e.value.properties || e.value.additionalProperties ? (l(), o(t, { key: 0 }, [
|
|
89
|
-
e.value.properties ? (l(!0), o(t, { key: 0 },
|
|
88
|
+
e.value.properties ? (l(!0), o(t, { key: 0 }, H(Object.keys((c = e.value) == null ? void 0 : c.properties), (a) => {
|
|
90
89
|
var u, f, b, g;
|
|
91
90
|
return l(), i(m, {
|
|
92
91
|
key: a,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.vue"],"names":[],"mappings":"AA0YA,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;;
|
|
1
|
+
{"version":3,"file":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.vue"],"names":[],"mappings":"AA0YA,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;;AAyWrB,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 p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-
|
|
4
|
+
const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-38da2070"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|