@scalar/api-reference 1.28.1 → 1.28.3
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 +41 -0
- package/dist/blocks/hooks/useBlockProps.d.ts +4 -5
- package/dist/blocks/hooks/useBlockProps.d.ts.map +1 -1
- package/dist/blocks/hooks/useBlockProps.js +10 -14
- package/dist/browser/standalone.js +11624 -11582
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +2 -2
- package/dist/components/ApiReferenceLayout.vue2.js +103 -109
- 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/ClientLibraries/ClientLibraries.vue2.js +48 -40
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.js +2 -2
- package/dist/components/Content/ClientLibraries/ClientSelector.vue2.js +6 -7
- 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 +97 -71
- 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 +18 -18
- package/dist/components/Content/Lazy/Loading.vue.d.ts +3 -0
- package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
- package/dist/components/Content/Lazy/Loading.vue.js +58 -56
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +77 -77
- package/dist/components/Content/Tag/OperationsList.vue.d.ts +2 -0
- package/dist/components/Content/Tag/OperationsList.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/OperationsList.vue.js +2 -2
- package/dist/components/Content/Tag/OperationsList.vue2.js +22 -20
- package/dist/components/Content/Tag/OperationsListItem.vue.d.ts +2 -0
- package/dist/components/Content/Tag/OperationsListItem.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/OperationsListItem.vue.js +2 -2
- package/dist/components/Content/Tag/OperationsListItem.vue2.js +10 -8
- package/dist/components/Content/Tag/Tag.vue.d.ts +2 -0
- package/dist/components/Content/Tag/Tag.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/Tag.vue.js +38 -34
- package/dist/components/Content/Tag/TagList.vue.d.ts +3 -0
- package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/TagList.vue.js +32 -30
- package/dist/components/Content/Tag/TagSection.vue.d.ts +2 -0
- package/dist/components/Content/Tag/TagSection.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/TagSection.vue.js +2 -2
- package/dist/components/Content/Tag/TagSection.vue2.js +16 -14
- package/dist/components/Section/CompactSection.vue.d.ts.map +1 -1
- package/dist/components/Section/CompactSection.vue.js +1 -1
- package/dist/components/ShowMoreButton.vue.d.ts.map +1 -1
- 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 +41 -40
- package/dist/features/ApiClientModal/useApiClient.d.ts +6 -6
- package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
- package/dist/features/BaseUrl/BaseUrl.vue.d.ts +6 -1
- package/dist/features/BaseUrl/BaseUrl.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/BaseUrl.vue.js +36 -32
- package/dist/features/Operation/Operation.vue.d.ts +1 -1
- package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
- package/dist/features/Operation/Operation.vue.js +13 -12
- 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 +11 -8
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue.js +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue2.js +9 -8
- package/dist/helpers/scrollToId.d.ts +3 -1
- package/dist/helpers/scrollToId.d.ts.map +1 -1
- package/dist/helpers/scrollToId.js +4 -4
- package/dist/hooks/useMultipleDocuments.d.ts.map +1 -1
- package/dist/hooks/useMultipleDocuments.js +49 -41
- package/dist/hooks/useSidebar.d.ts +2 -2
- package/dist/hooks/useSidebar.d.ts.map +1 -1
- package/dist/hooks/useSidebar.js +84 -84
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/standalone/lib/html-api.d.ts +8 -9
- package/dist/standalone/lib/html-api.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types.d.ts +2 -2
- package/dist/types.d.ts.map +1 -1
- package/package.json +11 -10
|
@@ -1,80 +1,102 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useWorkspace as
|
|
3
|
-
import { RequestAuth as
|
|
4
|
-
import { ScalarErrorBoundary as
|
|
5
|
-
import
|
|
1
|
+
import { defineComponent as F, computed as p, openBlock as s, createElementBlock as i, Fragment as v, createStaticVNode as G, createElementVNode as w, renderSlot as m, createBlock as o, unref as r, createCommentVNode as l, withCtx as V, createVNode as u, normalizeClass as I, renderList as O } from "vue";
|
|
2
|
+
import { useWorkspace as R, useActiveEntities as D } from "@scalar/api-client/store";
|
|
3
|
+
import { RequestAuth as H } from "@scalar/api-client/views/Request/RequestSection/RequestAuth";
|
|
4
|
+
import { ScalarErrorBoundary as J } from "@scalar/components";
|
|
5
|
+
import { getSlugUid as K } from "@scalar/oas-utils/transforms";
|
|
6
|
+
import { useConfig as P } from "../../hooks/useConfig.js";
|
|
7
|
+
import Q from "./Lazy/Loading.vue.js";
|
|
6
8
|
/* empty css */
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import { useSidebar as
|
|
15
|
-
import { hasModels as
|
|
16
|
-
import { getModels as
|
|
17
|
-
const
|
|
9
|
+
import T from "./Introduction/Introduction.vue.js";
|
|
10
|
+
import X from "../../features/BaseUrl/BaseUrl.vue.js";
|
|
11
|
+
import Y from "./ClientLibraries/ClientLibraries.vue.js";
|
|
12
|
+
import E from "./Tag/TagList.vue.js";
|
|
13
|
+
import Z from "../../features/Operation/Webhooks.vue.js";
|
|
14
|
+
import _ from "./Models/ModelsAccordion.vue.js";
|
|
15
|
+
import x from "./Models/Models.vue.js";
|
|
16
|
+
import { useSidebar as ee } from "../../hooks/useSidebar.js";
|
|
17
|
+
import { hasModels as re } from "../../helpers/hasModels.js";
|
|
18
|
+
import { getModels as U } from "../../helpers/getModels.js";
|
|
19
|
+
const te = { class: "narrow-references-container" }, se = {
|
|
18
20
|
key: 0,
|
|
19
21
|
class: "scalar-client introduction-card-item divide-y text-sm [--scalar-address-bar-height:0px]"
|
|
20
|
-
},
|
|
22
|
+
}, oe = {
|
|
21
23
|
key: 1,
|
|
22
24
|
class: "scalar-client introduction-card-item"
|
|
23
|
-
},
|
|
25
|
+
}, Ve = /* @__PURE__ */ F({
|
|
24
26
|
__name: "Content",
|
|
25
27
|
props: {
|
|
26
28
|
parsedSpec: {},
|
|
27
29
|
layout: { default: "modern" }
|
|
28
30
|
},
|
|
29
|
-
setup(
|
|
30
|
-
const
|
|
31
|
-
activeCollection:
|
|
32
|
-
activeEnvVariables:
|
|
33
|
-
activeEnvironment:
|
|
34
|
-
activeServer:
|
|
35
|
-
activeWorkspace:
|
|
36
|
-
} =
|
|
37
|
-
()
|
|
31
|
+
setup($) {
|
|
32
|
+
const M = $, f = P(), { hideModels: A } = ee(), { collections: B, securitySchemes: N, servers: S } = R(), {
|
|
33
|
+
activeCollection: W,
|
|
34
|
+
activeEnvVariables: L,
|
|
35
|
+
activeEnvironment: j,
|
|
36
|
+
activeServer: ae,
|
|
37
|
+
activeWorkspace: y
|
|
38
|
+
} = D(), t = p(() => {
|
|
39
|
+
if (f.value.slug) {
|
|
40
|
+
const e = B[K(f.value.slug)];
|
|
41
|
+
if (e) return e;
|
|
42
|
+
}
|
|
43
|
+
return W.value;
|
|
44
|
+
}), c = p(() => {
|
|
45
|
+
if (t.value) {
|
|
46
|
+
if (t.value.selectedServerUid) {
|
|
47
|
+
const e = S[t.value.selectedServerUid];
|
|
48
|
+
if (e) return e;
|
|
49
|
+
}
|
|
50
|
+
return S[t.value.servers[0]];
|
|
51
|
+
}
|
|
52
|
+
}), q = p(
|
|
53
|
+
() => M.layout === "classic" ? "after" : "aside"
|
|
38
54
|
);
|
|
39
|
-
return (e,
|
|
40
|
-
var
|
|
41
|
-
return
|
|
42
|
-
|
|
43
|
-
|
|
55
|
+
return (e, k) => {
|
|
56
|
+
var h, b, g, C;
|
|
57
|
+
return s(), i(v, null, [
|
|
58
|
+
k[0] || (k[0] = G('<div class="section-flare" data-v-4f85cfb1><div class="section-flare-item" data-v-4f85cfb1></div><div class="section-flare-item" data-v-4f85cfb1></div><div class="section-flare-item" data-v-4f85cfb1></div><div class="section-flare-item" data-v-4f85cfb1></div><div class="section-flare-item" data-v-4f85cfb1></div><div class="section-flare-item" data-v-4f85cfb1></div><div class="section-flare-item" data-v-4f85cfb1></div><div class="section-flare-item" data-v-4f85cfb1></div></div>', 1)),
|
|
59
|
+
w("div", te, [
|
|
44
60
|
m(e.$slots, "start", {}, void 0, !0),
|
|
45
|
-
|
|
46
|
-
layout: e.layout,
|
|
47
|
-
parsedSpec: e.parsedSpec
|
|
48
|
-
}, null, 8, ["layout", "parsedSpec"]),
|
|
49
|
-
(S = (v = e.parsedSpec) == null ? void 0 : v.info) != null && S.title || (k = (y = e.parsedSpec) == null ? void 0 : y.info) != null && k.description ? (t(), o(s(D), {
|
|
61
|
+
t.value ? (s(), o(r(Q), {
|
|
50
62
|
key: 0,
|
|
63
|
+
collection: t.value,
|
|
64
|
+
layout: e.layout,
|
|
65
|
+
parsedSpec: e.parsedSpec,
|
|
66
|
+
server: c.value
|
|
67
|
+
}, null, 8, ["collection", "layout", "parsedSpec", "server"])) : l("", !0),
|
|
68
|
+
(b = (h = e.parsedSpec) == null ? void 0 : h.info) != null && b.title || (C = (g = e.parsedSpec) == null ? void 0 : g.info) != null && C.description ? (s(), o(r(T), {
|
|
69
|
+
key: 1,
|
|
51
70
|
info: e.parsedSpec.info,
|
|
52
71
|
parsedSpec: e.parsedSpec
|
|
53
72
|
}, {
|
|
54
|
-
[
|
|
55
|
-
|
|
56
|
-
default:
|
|
57
|
-
var
|
|
73
|
+
[q.value]: V(() => [
|
|
74
|
+
u(r(J), null, {
|
|
75
|
+
default: V(() => {
|
|
76
|
+
var n, a, d;
|
|
58
77
|
return [
|
|
59
|
-
|
|
60
|
-
class:
|
|
78
|
+
w("div", {
|
|
79
|
+
class: I(["introduction-card", { "introduction-card-row": e.layout === "classic" }])
|
|
61
80
|
}, [
|
|
62
|
-
(a = (
|
|
63
|
-
|
|
81
|
+
(a = (n = t.value) == null ? void 0 : n.servers) != null && a.length ? (s(), i("div", se, [
|
|
82
|
+
u(r(X), {
|
|
83
|
+
collection: t.value,
|
|
84
|
+
server: c.value
|
|
85
|
+
}, null, 8, ["collection", "server"])
|
|
64
86
|
])) : l("", !0),
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
collection:
|
|
68
|
-
envVariables:
|
|
69
|
-
environment:
|
|
87
|
+
t.value && r(y) && Object.keys(r(N) ?? {}).length ? (s(), i("div", oe, [
|
|
88
|
+
u(r(H), {
|
|
89
|
+
collection: t.value,
|
|
90
|
+
envVariables: r(L),
|
|
91
|
+
environment: r(j),
|
|
70
92
|
layout: "reference",
|
|
71
|
-
selectedSecuritySchemeUids: ((
|
|
72
|
-
server:
|
|
93
|
+
selectedSecuritySchemeUids: ((d = t.value) == null ? void 0 : d.selectedSecuritySchemeUids) ?? [],
|
|
94
|
+
server: c.value,
|
|
73
95
|
title: "Authentication",
|
|
74
|
-
workspace:
|
|
96
|
+
workspace: r(y)
|
|
75
97
|
}, null, 8, ["collection", "envVariables", "environment", "selectedSecuritySchemeUids", "server", "workspace"])
|
|
76
98
|
])) : l("", !0),
|
|
77
|
-
|
|
99
|
+
u(r(Y), { class: "introduction-card-item" })
|
|
78
100
|
], 2)
|
|
79
101
|
];
|
|
80
102
|
}),
|
|
@@ -82,34 +104,38 @@ const Y = { class: "narrow-references-container" }, Z = {
|
|
|
82
104
|
})
|
|
83
105
|
]),
|
|
84
106
|
_: 2
|
|
85
|
-
}, 1032, ["info", "parsedSpec"])) : m(e.$slots, "empty-state", { key:
|
|
86
|
-
e.parsedSpec.tags ? (
|
|
87
|
-
e.parsedSpec["x-tagGroups"] ? (
|
|
88
|
-
key:
|
|
107
|
+
}, 1032, ["info", "parsedSpec"])) : m(e.$slots, "empty-state", { key: 2 }, void 0, !0),
|
|
108
|
+
e.parsedSpec.tags && t.value ? (s(), i(v, { key: 3 }, [
|
|
109
|
+
e.parsedSpec["x-tagGroups"] ? (s(!0), i(v, { key: 0 }, O(e.parsedSpec["x-tagGroups"], (n) => (s(), o(r(E), {
|
|
110
|
+
key: n.name,
|
|
111
|
+
collection: t.value,
|
|
89
112
|
layout: e.layout,
|
|
113
|
+
server: c.value,
|
|
90
114
|
spec: e.parsedSpec,
|
|
91
|
-
tags:
|
|
92
|
-
var
|
|
93
|
-
return (
|
|
115
|
+
tags: n.tags.map((a) => {
|
|
116
|
+
var d;
|
|
117
|
+
return (d = e.parsedSpec.tags) == null ? void 0 : d.find((z) => z.name === a);
|
|
94
118
|
}).filter((a) => !!a)
|
|
95
|
-
}, null, 8, ["layout", "spec", "tags"]))), 128)) : (
|
|
119
|
+
}, null, 8, ["collection", "layout", "server", "spec", "tags"]))), 128)) : (s(), o(r(E), {
|
|
96
120
|
key: 1,
|
|
121
|
+
collection: t.value,
|
|
97
122
|
layout: e.layout,
|
|
123
|
+
server: c.value,
|
|
98
124
|
spec: e.parsedSpec,
|
|
99
125
|
tags: e.parsedSpec.tags
|
|
100
|
-
}, null, 8, ["layout", "spec", "tags"]))
|
|
126
|
+
}, null, 8, ["collection", "layout", "server", "spec", "tags"]))
|
|
101
127
|
], 64)) : l("", !0),
|
|
102
|
-
e.parsedSpec.webhooks ? (
|
|
103
|
-
key:
|
|
128
|
+
e.parsedSpec.webhooks ? (s(), o(r(Z), {
|
|
129
|
+
key: 4,
|
|
104
130
|
webhooks: e.parsedSpec.webhooks
|
|
105
131
|
}, null, 8, ["webhooks"])) : l("", !0),
|
|
106
|
-
|
|
107
|
-
e.layout === "classic" ? (
|
|
132
|
+
r(re)(e.parsedSpec) && !r(A) ? (s(), i(v, { key: 5 }, [
|
|
133
|
+
e.layout === "classic" ? (s(), o(r(_), {
|
|
108
134
|
key: 0,
|
|
109
|
-
schemas:
|
|
110
|
-
}, null, 8, ["schemas"])) : (
|
|
135
|
+
schemas: r(U)(e.parsedSpec)
|
|
136
|
+
}, null, 8, ["schemas"])) : (s(), o(r(x), {
|
|
111
137
|
key: 1,
|
|
112
|
-
schemas:
|
|
138
|
+
schemas: r(U)(e.parsedSpec)
|
|
113
139
|
}, null, 8, ["schemas"]))
|
|
114
140
|
], 64)) : l("", !0),
|
|
115
141
|
m(e.$slots, "end", {}, void 0, !0)
|
|
@@ -119,5 +145,5 @@ const Y = { class: "narrow-references-container" }, Z = {
|
|
|
119
145
|
}
|
|
120
146
|
});
|
|
121
147
|
export {
|
|
122
|
-
|
|
148
|
+
Ve as default
|
|
123
149
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Introduction.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Introduction/Introduction.vue"],"names":[],"mappings":"AAsGA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAC9E,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAqBhD,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;AAwCF,iBAAS,cAAc;
|
|
1
|
+
{"version":3,"file":"Introduction.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Introduction/Introduction.vue"],"names":[],"mappings":"AAsGA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAC9E,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAqBhD,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;AAwCF,iBAAS,cAAc;WAkJT,OAAO,IAA6B;;uBATtB,GAAG;uBACH,GAAG;;;;EAa9B;AAqBD,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 _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-4302362d"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
_ as default
|
|
7
7
|
};
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import { defineComponent as V, computed as
|
|
1
|
+
import { defineComponent as V, computed as s, onMounted as $, openBlock as l, createBlock as a, unref as o, withCtx as t, createVNode as r, createElementVNode as g, createTextVNode as d, toDisplayString as f, createCommentVNode as u, renderSlot as S } from "vue";
|
|
2
2
|
import w from "github-slugger";
|
|
3
3
|
import { useConfig as N } from "../../../hooks/useConfig.js";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
4
|
+
import B from "../../../features/DownloadLink/DownloadLink.vue.js";
|
|
5
|
+
import D from "./Description.vue.js";
|
|
6
|
+
import H from "../../Section/SectionContainer.vue.js";
|
|
7
|
+
import b from "../../Section/Section.vue.js";
|
|
8
8
|
import L from "../../Section/SectionContent.vue.js";
|
|
9
9
|
import _ from "../../Badge/Badge.vue.js";
|
|
10
10
|
import A from "../../Section/SectionHeader.vue.js";
|
|
11
11
|
import E from "../../Section/SectionHeaderTag.vue.js";
|
|
12
12
|
import F from "../../Section/SectionColumns.vue.js";
|
|
13
13
|
import C from "../../Section/SectionColumn.vue.js";
|
|
14
|
-
const G = { class: "
|
|
14
|
+
const G = { class: "flex gap-1" }, I = { class: "sticky-cards" }, Y = /* @__PURE__ */ V({
|
|
15
15
|
__name: "Introduction",
|
|
16
16
|
props: {
|
|
17
17
|
info: {},
|
|
18
18
|
parsedSpec: {}
|
|
19
19
|
},
|
|
20
20
|
setup(k) {
|
|
21
|
-
const i = k,
|
|
21
|
+
const i = k, p = s(
|
|
22
22
|
() => {
|
|
23
23
|
var e, n;
|
|
24
24
|
return ((e = i.parsedSpec) == null ? void 0 : e.openapi) ?? ((n = i.parsedSpec) == null ? void 0 : n.swagger) ?? "";
|
|
25
25
|
}
|
|
26
|
-
), y = new w(), h =
|
|
26
|
+
), y = new w(), h = s(() => {
|
|
27
27
|
var e;
|
|
28
28
|
return y.slug(((e = i.info) == null ? void 0 : e.title) ?? "");
|
|
29
|
-
}),
|
|
29
|
+
}), m = s(() => {
|
|
30
30
|
var e, n;
|
|
31
31
|
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
32
|
}), T = N();
|
|
33
33
|
return $(() => {
|
|
34
34
|
var e, n;
|
|
35
35
|
return (n = (e = T.value).onLoaded) == null ? void 0 : n.call(e);
|
|
36
|
-
}), (e, n) => (l(),
|
|
36
|
+
}), (e, n) => (l(), a(o(H), null, {
|
|
37
37
|
default: t(() => [
|
|
38
|
-
r(o(
|
|
38
|
+
r(o(b), { class: "introduction-section gap-12" }, {
|
|
39
39
|
default: t(() => {
|
|
40
40
|
var c, v;
|
|
41
41
|
return [
|
|
@@ -44,15 +44,15 @@ const G = { class: "badges" }, I = { class: "sticky-cards" }, Y = /* @__PURE__ *
|
|
|
44
44
|
}, {
|
|
45
45
|
default: t(() => [
|
|
46
46
|
g("div", G, [
|
|
47
|
-
|
|
47
|
+
m.value ? (l(), a(o(_), { key: 0 }, {
|
|
48
48
|
default: t(() => [
|
|
49
|
-
d(f(
|
|
49
|
+
d(f(m.value), 1)
|
|
50
50
|
]),
|
|
51
51
|
_: 1
|
|
52
52
|
})) : u("", !0),
|
|
53
|
-
|
|
53
|
+
p.value ? (l(), a(o(_), { key: 1 }, {
|
|
54
54
|
default: t(() => [
|
|
55
|
-
d("OAS " + f(
|
|
55
|
+
d("OAS " + f(p.value), 1)
|
|
56
56
|
]),
|
|
57
57
|
_: 1
|
|
58
58
|
})) : u("", !0)
|
|
@@ -71,18 +71,18 @@ const G = { class: "badges" }, I = { class: "sticky-cards" }, Y = /* @__PURE__ *
|
|
|
71
71
|
]),
|
|
72
72
|
_: 1
|
|
73
73
|
}, 8, ["loading"]),
|
|
74
|
-
r(
|
|
74
|
+
r(B, { specTitle: h.value }, null, 8, ["specTitle"]),
|
|
75
75
|
r(o(F), null, {
|
|
76
76
|
default: t(() => [
|
|
77
77
|
r(o(C), null, {
|
|
78
78
|
default: t(() => [
|
|
79
|
-
r(
|
|
79
|
+
r(D, {
|
|
80
80
|
value: e.info.description
|
|
81
81
|
}, null, 8, ["value"])
|
|
82
82
|
]),
|
|
83
83
|
_: 1
|
|
84
84
|
}),
|
|
85
|
-
e.$slots.aside ? (l(),
|
|
85
|
+
e.$slots.aside ? (l(), a(o(C), { key: 0 }, {
|
|
86
86
|
default: t(() => [
|
|
87
87
|
g("div", I, [
|
|
88
88
|
S(e.$slots, "aside", {}, void 0, !0)
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Collection, Server } from '@scalar/oas-utils/entities/spec';
|
|
1
2
|
import type { Spec } from '@scalar/types/legacy';
|
|
2
3
|
/**
|
|
3
4
|
* Loads a "fake" tag/modal/operation if the user is deep linking
|
|
@@ -13,6 +14,8 @@ import type { Spec } from '@scalar/types/legacy';
|
|
|
13
14
|
* - need to find an event for codemirror loaded, currently using timeout for models
|
|
14
15
|
*/
|
|
15
16
|
type __VLS_Props = {
|
|
17
|
+
collection: Collection;
|
|
18
|
+
server?: Server;
|
|
16
19
|
layout?: 'modern' | 'classic';
|
|
17
20
|
parsedSpec: Spec;
|
|
18
21
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Loading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Lazy/Loading.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Loading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Lazy/Loading.vue"],"names":[],"mappings":"AAwOA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AAEzE,OAAO,KAAK,EACV,IAAI,EAGL,MAAM,sBAAsB,CAAA;AAqB7B;;;;;;;;;;;;GAYG;AACH,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,UAAU,CAAA;IACtB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;IAC7B,UAAU,EAAE,IAAI,CAAA;CACjB,CAAC;;YAFS,QAAQ,GAAG,SAAS;;AA8QjC,wBAQG"}
|
|
@@ -1,50 +1,51 @@
|
|
|
1
|
-
import { defineComponent as D, ref as v, watch as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { useNavState as re } from "../../../hooks/useNavState.js";
|
|
1
|
+
import { defineComponent as D, ref as v, watch as E, onMounted as H, withDirectives as K, openBlock as l, createElementBlock as f, normalizeClass as M, Fragment as g, renderList as w, createBlock as m, unref as r, withCtx as d, createCommentVNode as T, createVNode as h, createTextVNode as j, toDisplayString as A, vShow as F } from "vue";
|
|
2
|
+
import { lazyBus as P } from "./lazyBus.js";
|
|
3
|
+
import q from "../Tag/TagSection.vue.js";
|
|
4
|
+
import G from "../../../features/Operation/Operation.vue.js";
|
|
5
|
+
import J from "../../Section/SectionContainer.vue.js";
|
|
6
|
+
import Q from "../../Section/Section.vue.js";
|
|
7
|
+
import R from "../../Section/SectionContent.vue.js";
|
|
8
|
+
import U from "../../Section/SectionHeader.vue.js";
|
|
9
|
+
import X from "../../Anchor/Anchor.vue.js";
|
|
10
|
+
import Y from "../../Section/SectionHeaderTag.vue.js";
|
|
11
|
+
import Z from "../Schema/Schema.vue.js";
|
|
12
|
+
import { useNavState as ee } from "../../../hooks/useNavState.js";
|
|
14
13
|
import { getModels as S } from "../../../helpers/getModels.js";
|
|
15
|
-
import { scrollToId as
|
|
16
|
-
const
|
|
14
|
+
import { scrollToId as L } from "../../../helpers/scrollToId.js";
|
|
15
|
+
const ve = /* @__PURE__ */ D({
|
|
17
16
|
__name: "Loading",
|
|
18
17
|
props: {
|
|
18
|
+
collection: {},
|
|
19
|
+
server: {},
|
|
19
20
|
layout: { default: "modern" },
|
|
20
21
|
parsedSpec: {}
|
|
21
22
|
},
|
|
22
|
-
setup(
|
|
23
|
-
const i =
|
|
24
|
-
|
|
23
|
+
setup(O) {
|
|
24
|
+
const i = O, C = v(!1), y = v([]), I = v([]), { getModelId: V, getSectionId: z, getTagId: B, hash: a, isIntersectionEnabled: b } = ee(), _ = v(i.layout !== "classic" && a.value);
|
|
25
|
+
E(
|
|
25
26
|
() => {
|
|
26
|
-
var
|
|
27
|
-
return (
|
|
27
|
+
var t;
|
|
28
|
+
return (t = i.parsedSpec.tags) == null ? void 0 : t.length;
|
|
28
29
|
},
|
|
29
|
-
(
|
|
30
|
+
(t) => {
|
|
30
31
|
var e, u;
|
|
31
|
-
if (!a.value || typeof
|
|
32
|
+
if (!a.value || typeof t != "number" || !i.parsedSpec.tags)
|
|
32
33
|
return;
|
|
33
|
-
const
|
|
34
|
-
if (
|
|
34
|
+
const n = z();
|
|
35
|
+
if (n.startsWith("tag")) {
|
|
35
36
|
let o = 0;
|
|
36
37
|
const c = ((e = i.parsedSpec.tags) == null ? void 0 : e.findIndex(
|
|
37
|
-
(k) =>
|
|
38
|
+
(k) => B(k) === n
|
|
38
39
|
)) ?? 0, s = a.value.match(/tag\/([^/]+)\/([^/]+)\/(.+)/);
|
|
39
40
|
if ((s == null ? void 0 : s.length) === 4) {
|
|
40
41
|
const k = s[2], W = "/" + s[3];
|
|
41
42
|
o = (u = i.parsedSpec.tags[c]) == null ? void 0 : u.operations.findIndex(
|
|
42
|
-
({ httpVerb: $, path:
|
|
43
|
+
({ httpVerb: $, path: x }) => k === $ && W === x
|
|
43
44
|
);
|
|
44
45
|
}
|
|
45
46
|
const p = i.parsedSpec.tags[c];
|
|
46
47
|
if (!p) return;
|
|
47
|
-
p.name !== "default" && (
|
|
48
|
+
p.name !== "default" && (C.value = n !== a.value && n.startsWith("tag")), y.value.push({
|
|
48
49
|
...p,
|
|
49
50
|
lazyOperations: p.operations.slice(
|
|
50
51
|
o,
|
|
@@ -56,68 +57,69 @@ const ye = /* @__PURE__ */ D({
|
|
|
56
57
|
if (s === -1) return;
|
|
57
58
|
I.value = o.slice(s, s + 3);
|
|
58
59
|
} else
|
|
59
|
-
typeof window < "u" &&
|
|
60
|
+
typeof window < "u" && L(a.value), setTimeout(() => b.value = !0, 1e3);
|
|
60
61
|
},
|
|
61
62
|
{ immediate: !0 }
|
|
62
63
|
);
|
|
63
|
-
const
|
|
64
|
-
const
|
|
65
|
-
!
|
|
66
|
-
typeof window < "u" &&
|
|
64
|
+
const N = P.on(({ id: t }) => {
|
|
65
|
+
const n = a.value;
|
|
66
|
+
!n || t !== n || (N(), setTimeout(() => {
|
|
67
|
+
typeof window < "u" && L(n), _.value = !1, setTimeout(() => b.value = !0, 1e3);
|
|
67
68
|
}, 300));
|
|
68
69
|
});
|
|
69
|
-
return
|
|
70
|
+
return H(() => {
|
|
70
71
|
a.value || setTimeout(() => b.value = !0, 1e3);
|
|
71
|
-
}), (
|
|
72
|
-
class:
|
|
73
|
-
"references-loading-hidden-tag":
|
|
72
|
+
}), (t, n) => K((l(), f("div", {
|
|
73
|
+
class: M(["references-loading", {
|
|
74
|
+
"references-loading-hidden-tag": C.value,
|
|
74
75
|
"references-loading-top-spacer": y.value.length
|
|
75
76
|
}])
|
|
76
77
|
}, [
|
|
77
|
-
(
|
|
78
|
+
(l(!0), f(g, null, w(y.value, (e, u) => (l(), f(g, {
|
|
78
79
|
key: e.name + u
|
|
79
80
|
}, [
|
|
80
|
-
e.operations && e.operations.length > 0 ? (
|
|
81
|
+
e.operations && e.operations.length > 0 ? (l(), m(r(q), {
|
|
81
82
|
key: 0,
|
|
82
|
-
|
|
83
|
+
collection: t.collection,
|
|
84
|
+
spec: t.parsedSpec,
|
|
83
85
|
tag: e
|
|
84
86
|
}, {
|
|
85
87
|
default: d(() => [
|
|
86
|
-
(
|
|
88
|
+
(l(!0), f(g, null, w(e.lazyOperations, (o) => (l(), m(r(G), {
|
|
87
89
|
key: `${o.httpVerb}-${o.operationId}`,
|
|
88
|
-
collection: t
|
|
89
|
-
layout:
|
|
90
|
-
server: t
|
|
90
|
+
collection: t.collection,
|
|
91
|
+
layout: t.layout,
|
|
92
|
+
server: t.server,
|
|
91
93
|
transformedOperation: o
|
|
92
94
|
}, null, 8, ["collection", "layout", "server", "transformedOperation"]))), 128))
|
|
93
95
|
]),
|
|
94
96
|
_: 2
|
|
95
|
-
}, 1032, ["spec", "tag"])) : T("", !0)
|
|
97
|
+
}, 1032, ["collection", "spec", "tag"])) : T("", !0)
|
|
96
98
|
], 64))), 128)),
|
|
97
|
-
I.value.length ? (
|
|
99
|
+
I.value.length ? (l(), m(r(J), { key: 0 }, {
|
|
98
100
|
default: d(() => [
|
|
99
|
-
(
|
|
101
|
+
(l(!0), f(g, null, w(I.value, (e) => (l(), m(r(Q), {
|
|
100
102
|
key: e,
|
|
101
103
|
label: e
|
|
102
104
|
}, {
|
|
103
105
|
default: d(() => {
|
|
104
106
|
var u;
|
|
105
107
|
return [
|
|
106
|
-
(u =
|
|
108
|
+
(u = r(S)(t.parsedSpec)) != null && u[e] ? (l(), m(r(R), { key: 0 }, {
|
|
107
109
|
default: d(() => {
|
|
108
110
|
var o;
|
|
109
111
|
return [
|
|
110
|
-
h(
|
|
112
|
+
h(r(U), null, {
|
|
111
113
|
default: d(() => [
|
|
112
|
-
h(
|
|
113
|
-
id:
|
|
114
|
+
h(r(X), {
|
|
115
|
+
id: r(V)({ name: e })
|
|
114
116
|
}, {
|
|
115
117
|
default: d(() => [
|
|
116
|
-
h(
|
|
118
|
+
h(r(Y), { level: 2 }, {
|
|
117
119
|
default: d(() => {
|
|
118
120
|
var c;
|
|
119
121
|
return [
|
|
120
|
-
|
|
122
|
+
j(A(((c = r(S)(t.parsedSpec)) == null ? void 0 : c[e]).title ?? e), 1)
|
|
121
123
|
];
|
|
122
124
|
}),
|
|
123
125
|
_: 2
|
|
@@ -128,10 +130,10 @@ const ye = /* @__PURE__ */ D({
|
|
|
128
130
|
]),
|
|
129
131
|
_: 2
|
|
130
132
|
}, 1024),
|
|
131
|
-
h(
|
|
133
|
+
h(r(Z), {
|
|
132
134
|
name: e,
|
|
133
135
|
noncollapsible: "",
|
|
134
|
-
value: (o =
|
|
136
|
+
value: (o = r(S)(t.parsedSpec)) == null ? void 0 : o[e]
|
|
135
137
|
}, null, 8, ["name", "value"])
|
|
136
138
|
];
|
|
137
139
|
}),
|
|
@@ -145,10 +147,10 @@ const ye = /* @__PURE__ */ D({
|
|
|
145
147
|
_: 1
|
|
146
148
|
})) : T("", !0)
|
|
147
149
|
], 2)), [
|
|
148
|
-
[
|
|
150
|
+
[F, _.value]
|
|
149
151
|
]);
|
|
150
152
|
}
|
|
151
153
|
});
|
|
152
154
|
export {
|
|
153
|
-
|
|
155
|
+
ve as default
|
|
154
156
|
};
|
|
@@ -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":"AAgPA,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;AA0BJ,iBAAS,cAAc;WAkUT,OAAO,IAA6B;;sBATxB,GAAG;sBACH,GAAG;;;;EAa5B;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;cAnXN,OAAO;wFA2XpB,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"}
|
|
@@ -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 m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-4b65b768"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|