@scalar/api-reference 1.25.71 → 1.25.72
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 +30 -0
- package/dist/browser/standalone.js +10875 -10813
- package/dist/browser/webpack-stats.json +1 -1
- 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/Content.vue.d.ts +1 -1
- package/dist/components/Content/Content.vue.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.js +1 -1
- package/dist/components/Content/Content.vue2.js +58 -52
- 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/Tag/TagList.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/TagList.vue.js +34 -28
- 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 +4 -4
- package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
- 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/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 +73 -63
- package/dist/helpers/getExampleCode.d.ts +2 -2
- package/dist/helpers/getExampleCode.d.ts.map +1 -1
- package/dist/helpers/getExampleCode.js +12 -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/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 +9 -9
|
@@ -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":"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":"AAkNA,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;WAqMT,OAAO,IAA6B;;uBAVvB,GAAG;+BACM,GAAG;qBACb,GAAG;;;;EAa5B;AAuBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;YA5PR,QAAQ,GAAG,SAAS;6EAmQ/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 a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
5
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d6b86255"]]);
|
|
6
6
|
export {
|
|
7
7
|
a 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
30
|
var m, u, f, v;
|
|
30
|
-
return
|
|
31
|
-
c[0] || (c[0] =
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
return s(), t(i, null, [
|
|
32
|
+
c[0] || (c[0] = L('<div class="section-flare" data-v-d6b86255><div class="section-flare-item" data-v-d6b86255></div><div class="section-flare-item" data-v-d6b86255></div><div class="section-flare-item" data-v-d6b86255></div><div class="section-flare-item" data-v-d6b86255></div><div class="section-flare-item" data-v-d6b86255></div><div class="section-flare-item" data-v-d6b86255></div><div class="section-flare-item" data-v-d6b86255></div><div class="section-flare-item" data-v-d6b86255></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
|
-
(u = (m = e.parsedSpec) == null ? void 0 : m.info) != null && u.title || (v = (f = e.parsedSpec) == null ? void 0 : f.info) != null && v.description ? (
|
|
39
|
+
(u = (m = e.parsedSpec) == null ? void 0 : m.info) != null && u.title || (v = (f = e.parsedSpec) == null ? void 0 : f.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 +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":"TagList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/TagList.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TagList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/TagList.vue"],"names":[],"mappings":"AA2DA,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAOhE,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,OAAO,EAAE,CAAA;IACf,IAAI,EAAE,IAAI,CAAA;IACV,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;CAC9B,CAAC;;AA6GF,wBAMG"}
|
|
@@ -1,45 +1,51 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
1
|
+
import { defineComponent as g, computed as v, openBlock as r, createElementBlock as c, Fragment as m, renderList as d, createBlock as l, unref as e, withCtx as s, resolveDynamicComponent as B, createVNode as p } from "vue";
|
|
2
|
+
import { ScalarErrorBoundary as I } from "@scalar/components";
|
|
3
|
+
import S from "./TagAccordion.vue.js";
|
|
4
|
+
import T from "./Tag.vue.js";
|
|
5
|
+
import f from "../Lazy/Lazy.vue2.js";
|
|
6
|
+
import $ from "../../../features/Operation/Operation.vue.js";
|
|
7
|
+
import { useSidebar as b } from "../../../hooks/useSidebar.js";
|
|
7
8
|
import { useNavState as C } from "../../../hooks/useNavState.js";
|
|
8
|
-
const
|
|
9
|
+
const j = /* @__PURE__ */ g({
|
|
9
10
|
__name: "TagList",
|
|
10
11
|
props: {
|
|
11
12
|
tags: {},
|
|
12
13
|
spec: {},
|
|
13
14
|
layout: {}
|
|
14
15
|
},
|
|
15
|
-
setup(
|
|
16
|
-
const
|
|
17
|
-
() =>
|
|
18
|
-
),
|
|
19
|
-
return (
|
|
16
|
+
setup(y) {
|
|
17
|
+
const n = y, { getOperationId: u, getTagId: a, hash: _ } = C(), { collapsedSidebarItems: L } = b(), h = v(
|
|
18
|
+
() => n.layout === "classic" ? S : T
|
|
19
|
+
), k = n.layout !== "classic" && !_.value.startsWith("model");
|
|
20
|
+
return (i, E) => (r(!0), c(m, null, d(i.tags, (t) => (r(), l(e(f), {
|
|
20
21
|
id: e(a)(t),
|
|
21
22
|
key: e(a)(t),
|
|
22
|
-
isLazy: e(
|
|
23
|
+
isLazy: e(k) && !e(L)[e(a)(t)]
|
|
23
24
|
}, {
|
|
24
|
-
default:
|
|
25
|
-
(r(),
|
|
25
|
+
default: s(() => [
|
|
26
|
+
(r(), l(B(h.value), {
|
|
26
27
|
id: e(a)(t),
|
|
27
|
-
spec:
|
|
28
|
+
spec: i.spec,
|
|
28
29
|
tag: t
|
|
29
30
|
}, {
|
|
30
|
-
default:
|
|
31
|
-
(r(!0),
|
|
32
|
-
id: e(
|
|
31
|
+
default: s(() => [
|
|
32
|
+
(r(!0), c(m, null, d(t.operations, (o, z) => (r(), l(e(f), {
|
|
33
|
+
id: e(u)(o, t),
|
|
33
34
|
key: `${o.httpVerb}-${o.operationId}`,
|
|
34
|
-
isLazy:
|
|
35
|
+
isLazy: z > 0
|
|
35
36
|
}, {
|
|
36
|
-
default:
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
37
|
+
default: s(() => [
|
|
38
|
+
p(e(I), null, {
|
|
39
|
+
default: s(() => [
|
|
40
|
+
p(e($), {
|
|
41
|
+
id: e(u)(o, t),
|
|
42
|
+
layout: i.layout,
|
|
43
|
+
operation: o,
|
|
44
|
+
tag: t
|
|
45
|
+
}, null, 8, ["id", "layout", "operation", "tag"])
|
|
46
|
+
]),
|
|
47
|
+
_: 2
|
|
48
|
+
}, 1024)
|
|
43
49
|
]),
|
|
44
50
|
_: 2
|
|
45
51
|
}, 1032, ["id", "isLazy"]))), 128))
|
|
@@ -52,5 +58,5 @@ const O = /* @__PURE__ */ z({
|
|
|
52
58
|
}
|
|
53
59
|
});
|
|
54
60
|
export {
|
|
55
|
-
|
|
61
|
+
j as default
|
|
56
62
|
};
|
|
@@ -552,6 +552,17 @@ declare const parsedSpec: {
|
|
|
552
552
|
summary?: string | undefined;
|
|
553
553
|
tags?: string[] | undefined;
|
|
554
554
|
deprecated?: boolean | undefined;
|
|
555
|
+
servers?: ({
|
|
556
|
+
url?: string | undefined;
|
|
557
|
+
description?: string | undefined;
|
|
558
|
+
variables?: {
|
|
559
|
+
[variable: string]: import("@scalar/openapi-types").OpenAPIV3.ServerVariableObject;
|
|
560
|
+
} | undefined;
|
|
561
|
+
} | {
|
|
562
|
+
url?: string | undefined;
|
|
563
|
+
description?: string | undefined;
|
|
564
|
+
variables?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.ServerVariableObject> | undefined;
|
|
565
|
+
})[] | undefined;
|
|
555
566
|
'x-custom-examples'?: {
|
|
556
567
|
lang: string;
|
|
557
568
|
label: string;
|
|
@@ -568,6 +579,17 @@ declare const parsedSpec: {
|
|
|
568
579
|
source: string;
|
|
569
580
|
}[] | undefined;
|
|
570
581
|
} | undefined;
|
|
582
|
+
servers?: ({
|
|
583
|
+
url?: string | undefined;
|
|
584
|
+
description?: string | undefined;
|
|
585
|
+
variables?: {
|
|
586
|
+
[variable: string]: import("@scalar/openapi-types").OpenAPIV3.ServerVariableObject;
|
|
587
|
+
} | undefined;
|
|
588
|
+
} | {
|
|
589
|
+
url?: string | undefined;
|
|
590
|
+
description?: string | undefined;
|
|
591
|
+
variables?: Record<string, import("@scalar/openapi-types").OpenAPIV3_1.ServerVariableObject> | undefined;
|
|
592
|
+
})[] | undefined;
|
|
571
593
|
pathParameters?: {
|
|
572
594
|
name: string;
|
|
573
595
|
in?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OpenApiDocument.vue.d.ts","sourceRoot":"","sources":["../../../src/embeds/OpenApiDocument/OpenApiDocument.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OpenApiDocument.vue.d.ts","sourceRoot":"","sources":["../../../src/embeds/OpenApiDocument/OpenApiDocument.vue"],"names":[],"mappings":"AAiIA,OAAO,EAAE,KAAK,WAAW,EAAqB,MAAM,wBAAwB,CAAA;AAE5E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAUpD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,SAAS,CAAA;AAI3D,KAAK,WAAW,GAAG;IACjB,aAAa,CAAC,EAAE,4BAA4B,CAAA;CAC7C,CAAC;AAGF,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAAwC,CAAA;AAC1D,QAAA,MAAM,OAAO,2DAA8B,CAAA;AAC3C,QAAA,MAAM,MAAM;;;;;;IAAyB,CAAA;AAIrC,QAAA,MAAoB,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uCA2G1B,QAAS,YAAY;;;2CAlClB,QAAS,cACX;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2CAiCQ,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAvGvB,CAAA;AAqFF,iBAAS,cAAc;WA6CT,OAAO,IAA6B;;uBAtGjC;YACb,8BAA8B;YAC9B,aAAa,CAAC,EAAE,4BAA4B,CAAA;YAC5C,8CAA8C;YAC9C,MAAM,EAAE,OAAO,MAAM,CAAC,KAAK,CAAA;YAC3B,4CAA4C;YAC5C,OAAO,EAAE,OAAO,OAAO,CAAC,KAAK,CAAA;YAC7B,wCAAwC;YACxC,YAAY,EAAE,OAAO,YAAY,CAAC,KAAK,CAAA;YACvC;;;eAGG;YACH,UAAU,EAAE,OAAO,UAAU,CAAA;SAC9B,GAAG,GAAG;;uBAdQ;YACb,8BAA8B;YAC9B,aAAa,CAAC,EAAE,4BAA4B,CAAA;YAC5C,8CAA8C;YAC9C,MAAM,EAAE,OAAO,MAAM,CAAC,KAAK,CAAA;YAC3B,4CAA4C;YAC5C,OAAO,EAAE,OAAO,OAAO,CAAC,KAAK,CAAA;YAC7B,wCAAwC;YACxC,YAAY,EAAE,OAAO,YAAY,CAAC,KAAK,CAAA;YACvC;;;eAGG;YACH,UAAU,EAAE,OAAO,UAAU,CAAA;SAC9B,GAAG,GAAG;;;;EA6FR;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAMnB,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,3 +1,3 @@
|
|
|
1
1
|
import type { ReferenceConfiguration } from '../../types';
|
|
2
|
-
export type OpenApiDocumentConfiguration = Partial<Pick<ReferenceConfiguration, 'proxy' | 'baseServerURL' | 'servers' | 'spec' | 'authentication' | 'defaultHttpClient' | 'hiddenClients'>>;
|
|
2
|
+
export type OpenApiDocumentConfiguration = Partial<Pick<ReferenceConfiguration, 'proxy' | 'proxyUrl' | 'baseServerURL' | 'servers' | 'spec' | 'authentication' | 'defaultHttpClient' | 'hiddenClients'>>;
|
|
3
3
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/embeds/OpenApiDocument/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;AAErD,MAAM,MAAM,4BAA4B,GAAG,OAAO,CAChD,IAAI,CACF,sBAAsB,EACpB,OAAO,GACP,eAAe,GACf,SAAS,GACT,MAAM,GACN,gBAAgB,GAChB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAAA"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/embeds/OpenApiDocument/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;AAErD,MAAM,MAAM,4BAA4B,GAAG,OAAO,CAChD,IAAI,CACF,sBAAsB,EACpB,OAAO,GACP,UAAU,GACV,eAAe,GACf,SAAS,GACT,MAAM,GACN,gBAAgB,GAChB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAAA"}
|
|
@@ -468,7 +468,7 @@ declare const client: import("vue").Ref<{
|
|
|
468
468
|
documentUrl?: string | undefined;
|
|
469
469
|
integration?: string | null | undefined;
|
|
470
470
|
} | undefined>;
|
|
471
|
-
importSpecFromUrl: (url: string, workspaceUid: string, {
|
|
471
|
+
importSpecFromUrl: (url: string, workspaceUid: string, { proxyUrl, ...options }?: Omit<Pick<{
|
|
472
472
|
type?: "collection" | undefined;
|
|
473
473
|
uid?: string | undefined;
|
|
474
474
|
externalDocs?: {
|
|
@@ -524,7 +524,7 @@ declare const client: import("vue").Ref<{
|
|
|
524
524
|
watchModeStatus?: "IDLE" | "WATCHING" | "ERROR" | undefined;
|
|
525
525
|
}, "documentUrl" | "watchMode"> & Pick<import("@scalar/types").ReferenceConfiguration, "servers" | "authentication" | "baseServerURL"> & {
|
|
526
526
|
setCollectionSecurity?: boolean;
|
|
527
|
-
} & Pick<import("@scalar/types").ReferenceConfiguration, "servers">, "documentUrl"> & Pick<import("@scalar/types").ReferenceConfiguration, "
|
|
527
|
+
} & Pick<import("@scalar/types").ReferenceConfiguration, "servers">, "documentUrl"> & Pick<import("@scalar/types").ReferenceConfiguration, "proxyUrl">) => Promise<import("@scalar/api-client/libs").ErrorResponse<Awaited<ReturnType<(_spec: string | Record<string, any>, workspaceUid: string, options?: Pick<{
|
|
528
528
|
type?: "collection" | undefined;
|
|
529
529
|
uid?: string | undefined;
|
|
530
530
|
externalDocs?: {
|
|
@@ -4015,7 +4015,7 @@ declare const client: import("vue").Ref<{
|
|
|
4015
4015
|
documentUrl?: string | undefined;
|
|
4016
4016
|
integration?: string | null | undefined;
|
|
4017
4017
|
} | undefined>;
|
|
4018
|
-
importSpecFromUrl: (url: string, workspaceUid: string, {
|
|
4018
|
+
importSpecFromUrl: (url: string, workspaceUid: string, { proxyUrl, ...options }?: Omit<Pick<{
|
|
4019
4019
|
type?: "collection" | undefined;
|
|
4020
4020
|
uid?: string | undefined;
|
|
4021
4021
|
externalDocs?: {
|
|
@@ -4071,7 +4071,7 @@ declare const client: import("vue").Ref<{
|
|
|
4071
4071
|
watchModeStatus?: "IDLE" | "WATCHING" | "ERROR" | undefined;
|
|
4072
4072
|
}, "documentUrl" | "watchMode"> & Pick<import("@scalar/types").ReferenceConfiguration, "servers" | "authentication" | "baseServerURL"> & {
|
|
4073
4073
|
setCollectionSecurity?: boolean;
|
|
4074
|
-
} & Pick<import("@scalar/types").ReferenceConfiguration, "servers">, "documentUrl"> & Pick<import("@scalar/types").ReferenceConfiguration, "
|
|
4074
|
+
} & Pick<import("@scalar/types").ReferenceConfiguration, "servers">, "documentUrl"> & Pick<import("@scalar/types").ReferenceConfiguration, "proxyUrl">) => Promise<import("@scalar/api-client/libs").ErrorResponse<Awaited<ReturnType<(_spec: string | Record<string, any>, workspaceUid: string, options?: Pick<{
|
|
4075
4075
|
type?: "collection" | undefined;
|
|
4076
4076
|
uid?: string | undefined;
|
|
4077
4077
|
externalDocs?: {
|