@scalar/api-reference 1.25.122 → 1.25.124
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 +72 -0
- package/dist/blocks/constants.d.ts.map +1 -1
- package/dist/blocks/helpers/getPointer.d.ts.map +1 -1
- package/dist/blocks/hooks/useBlockProps.d.ts.map +1 -1
- package/dist/browser/standalone.js +21533 -21032
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/Anchor/Anchor.vue.d.ts +0 -1
- package/dist/components/Anchor/Anchor.vue.d.ts.map +1 -1
- package/dist/components/Anchor/Anchor.vue.js +2 -2
- package/dist/components/Anchor/Anchor.vue2.js +27 -23
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +2 -2
- package/dist/components/ApiReferenceLayout.vue2.js +135 -128
- package/dist/components/Card/Card.vue.d.ts.map +1 -1
- package/dist/components/Card/Card.vue.js +7 -7
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.js +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 +33 -33
- package/dist/components/Content/Introduction/Description.vue.d.ts.map +1 -1
- package/dist/components/Content/Introduction/Description.vue.js +2 -2
- package/dist/components/Content/Introduction/Description.vue2.js +7 -7
- package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
- package/dist/components/Content/Introduction/Introduction.vue.js +1 -1
- package/dist/components/Content/Introduction/Introduction.vue2.js +44 -39
- package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
- package/dist/components/Content/Lazy/Loading.vue.js +65 -59
- 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 +66 -52
- package/dist/components/Content/Models/ModelsAccordion.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/ModelsAccordion.vue.js +1 -1
- package/dist/components/Content/Models/ModelsAccordion.vue2.js +37 -31
- package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.d.ts.map +1 -1
- package/dist/components/Content/Tag/Endpoints.vue.d.ts +1 -0
- package/dist/components/Content/Tag/Endpoints.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/Endpoints.vue.js +2 -2
- package/dist/components/Content/Tag/Endpoints.vue2.js +79 -52
- package/dist/components/Content/Tag/Tag.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/Tag.vue.js +2 -2
- package/dist/components/Content/Tag/Tag.vue2.js +29 -26
- 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/TagAccordion.vue2.js +22 -19
- package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
- package/dist/components/GettingStarted.vue.d.ts.map +1 -1
- package/dist/components/GettingStarted.vue.js +2 -2
- package/dist/components/GettingStarted.vue2.js +25 -25
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
- package/dist/components/Layouts/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/components/Layouts/ClassicLayout.vue.js +6 -6
- package/dist/components/Section/SectionContainer.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionContainer.vue.js +1 -1
- package/dist/components/Section/SectionHeader.vue.d.ts +1 -6
- 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 +12 -16
- package/dist/components/Section/SectionHeaderTag.vue.d.ts +21 -0
- package/dist/components/Section/SectionHeaderTag.vue.d.ts.map +1 -0
- package/dist/components/Section/SectionHeaderTag.vue.js +7 -0
- package/dist/components/Section/SectionHeaderTag.vue2.js +18 -0
- package/dist/components/Section/index.d.ts +1 -0
- package/dist/components/Section/index.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +1 -1
- package/dist/components/Sidebar/Sidebar.vue2.js +14 -14
- package/dist/components/Sidebar/SidebarElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarElement.vue.js +2 -2
- package/dist/esm.d.ts.map +1 -1
- package/dist/esm.js +1 -3
- package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/features/ApiClientModal/useApiClient.d.ts +414 -510
- package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
- package/dist/features/BaseUrl/BaseUrl.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/BaseUrl.vue.js +20 -21
- package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue.js +1 -1
- package/dist/features/ExampleResponses/ExampleResponses.vue.d.ts.map +1 -1
- package/dist/features/ExampleResponses/ExampleResponses.vue.js +2 -2
- package/dist/features/ExampleResponses/ExampleResponses.vue2.js +47 -47
- package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
- package/dist/features/Operation/Operation.vue.js +5 -5
- package/dist/features/Operation/Webhooks.vue.d.ts.map +1 -1
- package/dist/features/Operation/Webhooks.vue.js +3 -3
- package/dist/features/Operation/Webhooks.vue2.js +74 -60
- package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ContentTypeSelect.vue.js +2 -2
- package/dist/features/Operation/components/ParameterHeaders.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterHeaders.vue.js +3 -3
- package/dist/features/Operation/components/ParameterHeaders.vue2.js +8 -8
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue.js +3 -3
- package/dist/features/Operation/components/ParameterListItem.vue2.js +16 -16
- package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/RequestBody.vue.js +2 -2
- package/dist/features/Operation/components/RequestBody.vue2.js +26 -47
- package/dist/features/Operation/hooks/useResponses.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/ClassicLayout.vue2.js +11 -11
- 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 +80 -69
- package/dist/features/Search/SearchButton.vue.d.ts.map +1 -1
- package/dist/features/Search/SearchButton.vue.js +1 -1
- package/dist/features/Search/SearchButton.vue2.js +30 -18
- package/dist/features/Search/SearchModal.vue.d.ts.map +1 -1
- package/dist/features/Search/SearchModal.vue.js +1 -1
- package/dist/features/Search/SearchModal.vue2.js +104 -95
- package/dist/features/Search/useSearchIndex.d.ts.map +1 -1
- package/dist/features/Search/useSearchIndex.js +11 -17
- package/dist/features/TestRequestButton/TestRequestButton.vue.d.ts.map +1 -1
- package/dist/features/TestRequestButton/TestRequestButton.vue.js +2 -2
- package/dist/features/TestRequestButton/TestRequestButton.vue2.js +6 -6
- package/dist/helpers/createEmptySpecification.d.ts.map +1 -1
- package/dist/helpers/get-request.d.ts.map +1 -1
- package/dist/helpers/getModels.d.ts.map +1 -1
- package/dist/helpers/isMacOs.d.ts.map +1 -1
- package/dist/helpers/operation.d.ts.map +1 -1
- package/dist/helpers/parse.js +62 -62
- package/dist/helpers/specDownloads.d.ts.map +1 -1
- package/dist/helpers/specHelpers.d.ts.map +1 -1
- package/dist/helpers/waitFor.d.ts.map +1 -1
- package/dist/hooks/useConfig.d.ts.map +1 -1
- package/dist/hooks/useDeprecationWarnings.d.ts.map +1 -1
- package/dist/hooks/useDeprecationWarnings.js +1 -5
- package/dist/hooks/useNavState.d.ts +1 -2
- package/dist/hooks/useNavState.d.ts.map +1 -1
- package/dist/hooks/useNavState.js +3 -10
- package/dist/hooks/useReactiveSpec.d.ts +8 -8
- package/dist/hooks/useReactiveSpec.d.ts.map +1 -1
- package/dist/hooks/useReactiveSpec.js +12 -13
- package/dist/hooks/useSidebar.d.ts.map +1 -1
- package/dist/hooks/useSidebar.js +38 -48
- package/dist/index.js +1 -1
- package/dist/legacy/helpers/normalizeRequestMethod.d.ts.map +1 -1
- package/dist/legacy/helpers/normalizeRequestMethod.js +2 -6
- package/dist/legacy/types.d.ts.map +1 -1
- package/dist/standalone/lib/html-api.d.ts +11 -0
- package/dist/standalone/lib/html-api.d.ts.map +1 -0
- package/dist/standalone/lib/html-rendering.d.ts +51 -0
- package/dist/standalone/lib/html-rendering.d.ts.map +1 -0
- package/dist/standalone/lib/html-rendering.js +54 -0
- package/dist/stores/useHttpClientStore.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types.d.ts +0 -3
- package/dist/types.d.ts.map +1 -1
- package/package.json +16 -15
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as W, computed as L, openBlock as
|
|
1
|
+
import { defineComponent as W, computed as L, openBlock as t, createElementBlock as r, Fragment as p, createStaticVNode as j, createElementVNode as h, renderSlot as m, createVNode as d, unref as s, createBlock as o, withCtx as g, normalizeClass as q, createCommentVNode as l, renderList as z } from "vue";
|
|
2
2
|
import { useWorkspace as F, useActiveEntities as G } from "@scalar/api-client/store";
|
|
3
3
|
import { RequestAuth as I } from "@scalar/api-client/views/Request/RequestSection/RequestAuth";
|
|
4
4
|
import { ScalarErrorBoundary as O } from "@scalar/components";
|
|
@@ -16,7 +16,7 @@ import { hasModels as X } from "../../helpers/hasModels.js";
|
|
|
16
16
|
import { getModels as w } from "../../helpers/getModels.js";
|
|
17
17
|
const Y = { class: "narrow-references-container" }, Z = {
|
|
18
18
|
key: 0,
|
|
19
|
-
class: "scalar-client introduction-card-item [--scalar-address-bar-height:0px]
|
|
19
|
+
class: "scalar-client introduction-card-item divide-y text-sm [--scalar-address-bar-height:0px]"
|
|
20
20
|
}, _ = {
|
|
21
21
|
key: 1,
|
|
22
22
|
class: "scalar-client introduction-card-item"
|
|
@@ -32,49 +32,49 @@ const Y = { class: "narrow-references-container" }, Z = {
|
|
|
32
32
|
activeEnvVariables: M,
|
|
33
33
|
activeEnvironment: A,
|
|
34
34
|
activeServer: B,
|
|
35
|
-
activeWorkspace:
|
|
35
|
+
activeWorkspace: u
|
|
36
36
|
} = G(), N = L(
|
|
37
37
|
() => V.layout === "classic" ? "after" : "aside"
|
|
38
38
|
);
|
|
39
|
-
return (e,
|
|
39
|
+
return (e, f) => {
|
|
40
40
|
var v, S, y, k;
|
|
41
|
-
return
|
|
42
|
-
|
|
41
|
+
return t(), r(p, null, [
|
|
42
|
+
f[0] || (f[0] = j('<div class="section-flare" data-v-8c18ef22><div class="section-flare-item" data-v-8c18ef22></div><div class="section-flare-item" data-v-8c18ef22></div><div class="section-flare-item" data-v-8c18ef22></div><div class="section-flare-item" data-v-8c18ef22></div><div class="section-flare-item" data-v-8c18ef22></div><div class="section-flare-item" data-v-8c18ef22></div><div class="section-flare-item" data-v-8c18ef22></div><div class="section-flare-item" data-v-8c18ef22></div></div>', 1)),
|
|
43
43
|
h("div", Y, [
|
|
44
44
|
m(e.$slots, "start", {}, void 0, !0),
|
|
45
|
-
d(
|
|
45
|
+
d(s(R), {
|
|
46
46
|
layout: e.layout,
|
|
47
47
|
parsedSpec: e.parsedSpec
|
|
48
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 ? (
|
|
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), {
|
|
50
50
|
key: 0,
|
|
51
51
|
info: e.parsedSpec.info,
|
|
52
52
|
parsedSpec: e.parsedSpec
|
|
53
53
|
}, {
|
|
54
54
|
[N.value]: g(() => [
|
|
55
|
-
d(
|
|
55
|
+
d(s(O), null, {
|
|
56
56
|
default: g(() => {
|
|
57
|
-
var i,
|
|
57
|
+
var i, a, c;
|
|
58
58
|
return [
|
|
59
59
|
h("div", {
|
|
60
60
|
class: q(["introduction-card", { "introduction-card-row": e.layout === "classic" }])
|
|
61
61
|
}, [
|
|
62
|
-
(
|
|
63
|
-
d(
|
|
62
|
+
(a = (i = s(n)) == null ? void 0 : i.servers) != null && a.length ? (t(), r("div", Z, [
|
|
63
|
+
d(s(H))
|
|
64
64
|
])) : l("", !0),
|
|
65
|
-
|
|
66
|
-
d(
|
|
67
|
-
collection:
|
|
68
|
-
envVariables:
|
|
69
|
-
environment:
|
|
65
|
+
s(n) && s(u) && Object.keys(s($) ?? {}).length ? (t(), r("div", _, [
|
|
66
|
+
d(s(I), {
|
|
67
|
+
collection: s(n),
|
|
68
|
+
envVariables: s(M),
|
|
69
|
+
environment: s(A),
|
|
70
70
|
layout: "reference",
|
|
71
|
-
selectedSecuritySchemeUids: ((c =
|
|
72
|
-
server:
|
|
71
|
+
selectedSecuritySchemeUids: ((c = s(n)) == null ? void 0 : c.selectedSecuritySchemeUids) ?? [],
|
|
72
|
+
server: s(B),
|
|
73
73
|
title: "Authentication",
|
|
74
|
-
workspace:
|
|
74
|
+
workspace: s(u)
|
|
75
75
|
}, null, 8, ["collection", "envVariables", "environment", "selectedSecuritySchemeUids", "server", "workspace"])
|
|
76
76
|
])) : l("", !0),
|
|
77
|
-
d(
|
|
77
|
+
d(s(J), { class: "introduction-card-item" })
|
|
78
78
|
], 2)
|
|
79
79
|
];
|
|
80
80
|
}),
|
|
@@ -83,33 +83,33 @@ const Y = { class: "narrow-references-container" }, Z = {
|
|
|
83
83
|
]),
|
|
84
84
|
_: 2
|
|
85
85
|
}, 1032, ["info", "parsedSpec"])) : m(e.$slots, "empty-state", { key: 1 }, void 0, !0),
|
|
86
|
-
e.parsedSpec.tags ? (
|
|
87
|
-
e.parsedSpec["x-tagGroups"] ? (
|
|
86
|
+
e.parsedSpec.tags ? (t(), r(p, { key: 2 }, [
|
|
87
|
+
e.parsedSpec["x-tagGroups"] ? (t(!0), r(p, { key: 0 }, z(e.parsedSpec["x-tagGroups"], (i) => (t(), o(s(b), {
|
|
88
88
|
key: i.name,
|
|
89
89
|
layout: e.layout,
|
|
90
90
|
spec: e.parsedSpec,
|
|
91
|
-
tags: i.tags.map((
|
|
91
|
+
tags: i.tags.map((a) => {
|
|
92
92
|
var c;
|
|
93
|
-
return (c = e.parsedSpec.tags) == null ? void 0 : c.find((U) => U.name ===
|
|
94
|
-
}).filter((
|
|
95
|
-
}, null, 8, ["layout", "spec", "tags"]))), 128)) : (
|
|
93
|
+
return (c = e.parsedSpec.tags) == null ? void 0 : c.find((U) => U.name === a);
|
|
94
|
+
}).filter((a) => !!a)
|
|
95
|
+
}, null, 8, ["layout", "spec", "tags"]))), 128)) : (t(), o(s(b), {
|
|
96
96
|
key: 1,
|
|
97
97
|
layout: e.layout,
|
|
98
98
|
spec: e.parsedSpec,
|
|
99
99
|
tags: e.parsedSpec.tags
|
|
100
100
|
}, null, 8, ["layout", "spec", "tags"]))
|
|
101
101
|
], 64)) : l("", !0),
|
|
102
|
-
e.parsedSpec.webhooks ? (
|
|
102
|
+
e.parsedSpec.webhooks ? (t(), o(s(K), {
|
|
103
103
|
key: 3,
|
|
104
104
|
webhooks: e.parsedSpec.webhooks
|
|
105
105
|
}, null, 8, ["webhooks"])) : l("", !0),
|
|
106
|
-
|
|
107
|
-
e.layout === "classic" ? (
|
|
106
|
+
s(X)(e.parsedSpec) && !s(E) ? (t(), r(p, { key: 4 }, [
|
|
107
|
+
e.layout === "classic" ? (t(), o(s(P), {
|
|
108
108
|
key: 0,
|
|
109
|
-
schemas:
|
|
110
|
-
}, null, 8, ["schemas"])) : (
|
|
109
|
+
schemas: s(w)(e.parsedSpec)
|
|
110
|
+
}, null, 8, ["schemas"])) : (t(), o(s(Q), {
|
|
111
111
|
key: 1,
|
|
112
|
-
schemas:
|
|
112
|
+
schemas: s(w)(e.parsedSpec)
|
|
113
113
|
}, null, 8, ["schemas"]))
|
|
114
114
|
], 64)) : l("", !0),
|
|
115
115
|
m(e.$slots, "end", {}, void 0, !0)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Description.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Introduction/Description.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Description.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Introduction/Description.vue"],"names":[],"mappings":"AAmIA,KAAK,WAAW,GAAG;IACjB,wBAAwB;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;;AAyKF,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Description.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-509a7035"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
i as default
|
|
7
7
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as H, computed as I, openBlock as n, createElementBlock as a, Fragment as u, renderList as S, createBlock as s, unref as i, withCtx as w, createVNode as C, createCommentVNode as B } from "vue";
|
|
2
|
-
import N from "
|
|
3
|
-
import { useNavState as b } from "../../../hooks/useNavState.js";
|
|
4
|
-
import { splitContent as x, getHeadings as E } from "@scalar/code-highlight/markdown";
|
|
2
|
+
import { splitContent as N, getHeadings as b } from "@scalar/code-highlight/markdown";
|
|
5
3
|
import { ScalarMarkdown as c } from "@scalar/components";
|
|
6
4
|
import d from "github-slugger";
|
|
5
|
+
import x from "../../IntersectionObserver.vue.js";
|
|
6
|
+
import { useNavState as E } from "../../../hooks/useNavState.js";
|
|
7
7
|
const F = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "introduction-description"
|
|
@@ -17,8 +17,8 @@ const F = {
|
|
|
17
17
|
if (!o.value)
|
|
18
18
|
return [];
|
|
19
19
|
const e = new d();
|
|
20
|
-
return
|
|
21
|
-
const [r] =
|
|
20
|
+
return N(o.value).map((t) => {
|
|
21
|
+
const [r] = b(t);
|
|
22
22
|
return {
|
|
23
23
|
id: r ? l({
|
|
24
24
|
...r,
|
|
@@ -27,7 +27,7 @@ const F = {
|
|
|
27
27
|
content: t
|
|
28
28
|
};
|
|
29
29
|
});
|
|
30
|
-
}), { getHeadingId: l, getFullHash: g, isIntersectionEnabled: f, replaceUrlState: v } =
|
|
30
|
+
}), { getHeadingId: l, getFullHash: g, isIntersectionEnabled: f, replaceUrlState: v } = E();
|
|
31
31
|
function h(e = "") {
|
|
32
32
|
f.value && v(e);
|
|
33
33
|
}
|
|
@@ -44,7 +44,7 @@ const F = {
|
|
|
44
44
|
(n(!0), a(u, null, S(p.value, (t) => (n(), a(u, {
|
|
45
45
|
key: t.id
|
|
46
46
|
}, [
|
|
47
|
-
t.id ? (n(), s(
|
|
47
|
+
t.id ? (n(), s(x, {
|
|
48
48
|
key: 0,
|
|
49
49
|
id: i(g)(t.id),
|
|
50
50
|
class: "introduction-description-heading",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Introduction.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Introduction/Introduction.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Introduction.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Introduction/Introduction.vue"],"names":[],"mappings":"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;WAiJT,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 m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-2ce99a34"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as V, computed as f, onMounted as $, openBlock as l, createBlock as s, unref as o, withCtx as t, createVNode as n, createElementVNode as S, createTextVNode as u, toDisplayString as d, createCommentVNode as m, renderSlot as _ } from "vue";
|
|
2
|
+
import w from "github-slugger";
|
|
2
3
|
import { useConfig as N } from "../../../hooks/useConfig.js";
|
|
3
|
-
import T from "github-slugger";
|
|
4
4
|
import b from "../../../features/DownloadLink/DownloadLink.vue.js";
|
|
5
5
|
import B from "./Description.vue.js";
|
|
6
6
|
import D from "../../Section/SectionContainer.vue.js";
|
|
@@ -8,80 +8,85 @@ import H from "../../Section/Section.vue.js";
|
|
|
8
8
|
import A from "../../Section/SectionContent.vue.js";
|
|
9
9
|
import C from "../../Badge/Badge.vue.js";
|
|
10
10
|
import E from "../../Section/SectionHeader.vue.js";
|
|
11
|
-
import F from "../../Section/
|
|
11
|
+
import F from "../../Section/SectionHeaderTag.vue.js";
|
|
12
|
+
import G from "../../Section/SectionColumns.vue.js";
|
|
12
13
|
import k from "../../Section/SectionColumn.vue.js";
|
|
13
|
-
const
|
|
14
|
+
const I = { class: "badges" }, M = { class: "sticky-cards" }, Y = /* @__PURE__ */ V({
|
|
14
15
|
__name: "Introduction",
|
|
15
16
|
props: {
|
|
16
17
|
info: {},
|
|
17
18
|
parsedSpec: {}
|
|
18
19
|
},
|
|
19
20
|
setup(y) {
|
|
20
|
-
const
|
|
21
|
+
const i = y, p = f(
|
|
21
22
|
() => {
|
|
22
23
|
var e, r;
|
|
23
|
-
return ((e =
|
|
24
|
+
return ((e = i.parsedSpec) == null ? void 0 : e.openapi) ?? ((r = i.parsedSpec) == null ? void 0 : r.swagger) ?? "";
|
|
24
25
|
}
|
|
25
|
-
), h = new
|
|
26
|
+
), h = new w(), T = f(() => {
|
|
26
27
|
var e;
|
|
27
|
-
return h.slug(((e =
|
|
28
|
-
}), c =
|
|
28
|
+
return h.slug(((e = i.info) == null ? void 0 : e.title) ?? "");
|
|
29
|
+
}), c = f(() => {
|
|
29
30
|
var e, r;
|
|
30
|
-
return typeof ((e =
|
|
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 ((r = i.info) == null ? void 0 : r.version) == "number" ? `v${i.info.version}` : void 0;
|
|
31
32
|
}), { onLoaded: a } = N();
|
|
32
|
-
return
|
|
33
|
-
default:
|
|
34
|
-
n(
|
|
35
|
-
default:
|
|
33
|
+
return $(() => a == null ? void 0 : a()), (e, r) => (l(), s(o(D), null, {
|
|
34
|
+
default: t(() => [
|
|
35
|
+
n(o(H), { class: "introduction-section gap-12" }, {
|
|
36
|
+
default: t(() => {
|
|
36
37
|
var v, g;
|
|
37
38
|
return [
|
|
38
|
-
n(
|
|
39
|
+
n(o(A), {
|
|
39
40
|
loading: !((v = e.info) != null && v.description) && !((g = e.info) != null && g.title)
|
|
40
41
|
}, {
|
|
41
|
-
default:
|
|
42
|
-
S("div",
|
|
43
|
-
c.value ? (l(), s(
|
|
44
|
-
default:
|
|
45
|
-
|
|
42
|
+
default: t(() => [
|
|
43
|
+
S("div", I, [
|
|
44
|
+
c.value ? (l(), s(o(C), { key: 0 }, {
|
|
45
|
+
default: t(() => [
|
|
46
|
+
u(d(c.value), 1)
|
|
46
47
|
]),
|
|
47
48
|
_: 1
|
|
48
|
-
})) :
|
|
49
|
-
|
|
50
|
-
default:
|
|
51
|
-
|
|
49
|
+
})) : m("", !0),
|
|
50
|
+
p.value ? (l(), s(o(C), { key: 1 }, {
|
|
51
|
+
default: t(() => [
|
|
52
|
+
u("OAS " + d(p.value), 1)
|
|
52
53
|
]),
|
|
53
54
|
_: 1
|
|
54
|
-
})) :
|
|
55
|
+
})) : m("", !0)
|
|
55
56
|
]),
|
|
56
|
-
n(
|
|
57
|
-
level: 1,
|
|
57
|
+
n(o(E), {
|
|
58
58
|
loading: !e.info.title,
|
|
59
59
|
tight: ""
|
|
60
60
|
}, {
|
|
61
|
-
default:
|
|
62
|
-
|
|
61
|
+
default: t(() => [
|
|
62
|
+
n(o(F), { level: 1 }, {
|
|
63
|
+
default: t(() => [
|
|
64
|
+
u(d(e.info.title), 1)
|
|
65
|
+
]),
|
|
66
|
+
_: 1
|
|
67
|
+
})
|
|
63
68
|
]),
|
|
64
69
|
_: 1
|
|
65
70
|
}, 8, ["loading"]),
|
|
66
|
-
n(b, { specTitle:
|
|
67
|
-
n(
|
|
68
|
-
default:
|
|
69
|
-
n(
|
|
70
|
-
default:
|
|
71
|
+
n(b, { specTitle: T.value }, null, 8, ["specTitle"]),
|
|
72
|
+
n(o(G), null, {
|
|
73
|
+
default: t(() => [
|
|
74
|
+
n(o(k), null, {
|
|
75
|
+
default: t(() => [
|
|
71
76
|
n(B, {
|
|
72
77
|
value: e.info.description
|
|
73
78
|
}, null, 8, ["value"])
|
|
74
79
|
]),
|
|
75
80
|
_: 1
|
|
76
81
|
}),
|
|
77
|
-
e.$slots.aside ? (l(), s(
|
|
78
|
-
default:
|
|
79
|
-
S("div",
|
|
82
|
+
e.$slots.aside ? (l(), s(o(k), { key: 0 }, {
|
|
83
|
+
default: t(() => [
|
|
84
|
+
S("div", M, [
|
|
80
85
|
_(e.$slots, "aside", {}, void 0, !0)
|
|
81
86
|
])
|
|
82
87
|
]),
|
|
83
88
|
_: 3
|
|
84
|
-
})) :
|
|
89
|
+
})) : m("", !0)
|
|
85
90
|
]),
|
|
86
91
|
_: 3
|
|
87
92
|
})
|
|
@@ -99,5 +104,5 @@ const G = { class: "badges" }, I = { class: "sticky-cards" }, W = /* @__PURE__ *
|
|
|
99
104
|
}
|
|
100
105
|
});
|
|
101
106
|
export {
|
|
102
|
-
|
|
107
|
+
Y as default
|
|
103
108
|
};
|
|
@@ -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":"AAsOA,OAAO,KAAK,EACV,IAAI,EAGL,MAAM,sBAAsB,CAAA;AAqB7B;;;;;;;;;;;;GAYG;AACH,KAAK,WAAW,GAAG;IACf,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;IAC7B,UAAU,EAAE,IAAI,CAAA;CACjB,CAAC;;YAFS,QAAQ,GAAG,SAAS;;AAiRjC,wBAQG"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as D, ref as v, watch as
|
|
1
|
+
import { defineComponent as D, ref as v, watch as H, onMounted as K, withDirectives as M, openBlock as n, createElementBlock as f, normalizeClass as j, Fragment as g, renderList as w, createBlock as m, unref as t, withCtx as c, createCommentVNode as T, createVNode as h, createTextVNode as F, toDisplayString as P, vShow as q } from "vue";
|
|
2
2
|
import { useActiveEntities as G } from "@scalar/api-client/store";
|
|
3
3
|
import { lazyBus as J } from "./lazyBus.js";
|
|
4
4
|
import Q from "../Tag/Tag.vue.js";
|
|
@@ -8,19 +8,20 @@ import X from "../../Section/Section.vue.js";
|
|
|
8
8
|
import Y from "../../Section/SectionContent.vue.js";
|
|
9
9
|
import Z from "../../Section/SectionHeader.vue.js";
|
|
10
10
|
import ee from "../../Anchor/Anchor.vue.js";
|
|
11
|
-
import te from "
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
11
|
+
import te from "../../Section/SectionHeaderTag.vue.js";
|
|
12
|
+
import oe from "../Schema/Schema.vue.js";
|
|
13
|
+
import { useNavState as re } from "../../../hooks/useNavState.js";
|
|
14
|
+
import { getModels as S } from "../../../helpers/getModels.js";
|
|
14
15
|
import { scrollToId as x } from "../../../helpers/scrollToId.js";
|
|
15
|
-
const
|
|
16
|
+
const ye = /* @__PURE__ */ D({
|
|
16
17
|
__name: "Loading",
|
|
17
18
|
props: {
|
|
18
19
|
layout: { default: "modern" },
|
|
19
20
|
parsedSpec: {}
|
|
20
21
|
},
|
|
21
22
|
setup(L) {
|
|
22
|
-
const i = L,
|
|
23
|
-
|
|
23
|
+
const i = L, _ = v(!1), y = v([]), I = v([]), { activeCollection: O, activeServer: V } = G(), { getModelId: z, getSectionId: B, getTagId: N, hash: a, isIntersectionEnabled: b } = re(), C = v(i.layout !== "classic" && a.value);
|
|
24
|
+
H(
|
|
24
25
|
() => {
|
|
25
26
|
var r;
|
|
26
27
|
return (r = i.parsedSpec.tags) == null ? void 0 : r.length;
|
|
@@ -29,51 +30,51 @@ const he = /* @__PURE__ */ D({
|
|
|
29
30
|
var e, u;
|
|
30
31
|
if (!a.value || typeof r != "number" || !i.parsedSpec.tags)
|
|
31
32
|
return;
|
|
32
|
-
const
|
|
33
|
-
if (
|
|
33
|
+
const l = B();
|
|
34
|
+
if (l.startsWith("tag")) {
|
|
34
35
|
let o = 0;
|
|
35
|
-
const
|
|
36
|
-
(
|
|
37
|
-
)) ?? 0,
|
|
38
|
-
if ((
|
|
39
|
-
const
|
|
40
|
-
o = (u = i.parsedSpec.tags[
|
|
41
|
-
({ httpVerb: $, path: A }) =>
|
|
36
|
+
const d = ((e = i.parsedSpec.tags) == null ? void 0 : e.findIndex(
|
|
37
|
+
(k) => N(k) === l
|
|
38
|
+
)) ?? 0, s = a.value.match(/tag\/([^/]+)\/([^/]+)\/(.+)/);
|
|
39
|
+
if ((s == null ? void 0 : s.length) === 4) {
|
|
40
|
+
const k = s[2], W = "/" + s[3];
|
|
41
|
+
o = (u = i.parsedSpec.tags[d]) == null ? void 0 : u.operations.findIndex(
|
|
42
|
+
({ httpVerb: $, path: A }) => k === $ && W === A
|
|
42
43
|
);
|
|
43
44
|
}
|
|
44
|
-
const
|
|
45
|
-
if (!
|
|
46
|
-
|
|
47
|
-
...
|
|
48
|
-
lazyOperations:
|
|
45
|
+
const p = i.parsedSpec.tags[d];
|
|
46
|
+
if (!p) return;
|
|
47
|
+
p.name !== "default" && (_.value = l !== a.value && l.startsWith("tag")), y.value.push({
|
|
48
|
+
...p,
|
|
49
|
+
lazyOperations: p.operations.slice(
|
|
49
50
|
o,
|
|
50
51
|
o + 2
|
|
51
52
|
)
|
|
52
53
|
});
|
|
53
54
|
} else if (a.value.startsWith("model")) {
|
|
54
|
-
const o = Object.keys(
|
|
55
|
-
if (
|
|
56
|
-
|
|
55
|
+
const o = Object.keys(S(i.parsedSpec) ?? {}), [, d] = a.value.toLowerCase().split("/"), s = a.value === "models" ? 0 : o.findIndex((p) => p.toLowerCase() === d);
|
|
56
|
+
if (s === -1) return;
|
|
57
|
+
I.value = o.slice(s, s + 3);
|
|
57
58
|
} else
|
|
58
|
-
typeof window < "u" && x(a.value), setTimeout(() =>
|
|
59
|
+
typeof window < "u" && x(a.value), setTimeout(() => b.value = !0, 1e3);
|
|
59
60
|
},
|
|
60
61
|
{ immediate: !0 }
|
|
61
62
|
);
|
|
62
63
|
const E = J.on(({ id: r }) => {
|
|
63
|
-
const
|
|
64
|
-
!
|
|
65
|
-
typeof window < "u" && x(
|
|
64
|
+
const l = a.value;
|
|
65
|
+
!l || r !== l || (E(), setTimeout(() => {
|
|
66
|
+
typeof window < "u" && x(l), C.value = !1, setTimeout(() => b.value = !0, 1e3);
|
|
66
67
|
}, 300));
|
|
67
68
|
});
|
|
68
|
-
return
|
|
69
|
-
a.value || setTimeout(() =>
|
|
70
|
-
}), (r,
|
|
71
|
-
class:
|
|
72
|
-
"references-loading-hidden-tag":
|
|
73
|
-
"references-loading-top-spacer":
|
|
69
|
+
return K(() => {
|
|
70
|
+
a.value || setTimeout(() => b.value = !0, 1e3);
|
|
71
|
+
}), (r, l) => M((n(), f("div", {
|
|
72
|
+
class: j(["references-loading", {
|
|
73
|
+
"references-loading-hidden-tag": _.value,
|
|
74
|
+
"references-loading-top-spacer": y.value.length
|
|
74
75
|
}])
|
|
75
76
|
}, [
|
|
76
|
-
(n(!0), f(g, null,
|
|
77
|
+
(n(!0), f(g, null, w(y.value, (e, u) => (n(), f(g, {
|
|
77
78
|
key: e.name + u
|
|
78
79
|
}, [
|
|
79
80
|
e.operations && e.operations.length > 0 ? (n(), m(t(Q), {
|
|
@@ -81,8 +82,8 @@ const he = /* @__PURE__ */ D({
|
|
|
81
82
|
spec: r.parsedSpec,
|
|
82
83
|
tag: e
|
|
83
84
|
}, {
|
|
84
|
-
default:
|
|
85
|
-
(n(!0), f(g, null,
|
|
85
|
+
default: c(() => [
|
|
86
|
+
(n(!0), f(g, null, w(e.lazyOperations, (o) => (n(), m(t(R), {
|
|
86
87
|
key: `${o.httpVerb}-${o.operationId}`,
|
|
87
88
|
collection: t(O),
|
|
88
89
|
layout: r.layout,
|
|
@@ -91,58 +92,63 @@ const he = /* @__PURE__ */ D({
|
|
|
91
92
|
}, null, 8, ["collection", "layout", "server", "transformedOperation"]))), 128))
|
|
92
93
|
]),
|
|
93
94
|
_: 2
|
|
94
|
-
}, 1032, ["spec", "tag"])) :
|
|
95
|
+
}, 1032, ["spec", "tag"])) : T("", !0)
|
|
95
96
|
], 64))), 128)),
|
|
96
|
-
|
|
97
|
-
default:
|
|
98
|
-
(n(!0), f(g, null,
|
|
97
|
+
I.value.length ? (n(), m(t(U), { key: 0 }, {
|
|
98
|
+
default: c(() => [
|
|
99
|
+
(n(!0), f(g, null, w(I.value, (e) => (n(), m(t(X), {
|
|
99
100
|
key: e,
|
|
100
101
|
label: e
|
|
101
102
|
}, {
|
|
102
|
-
default:
|
|
103
|
+
default: c(() => {
|
|
103
104
|
var u;
|
|
104
105
|
return [
|
|
105
|
-
(u = t(
|
|
106
|
-
default:
|
|
106
|
+
(u = t(S)(r.parsedSpec)) != null && u[e] ? (n(), m(t(Y), { key: 0 }, {
|
|
107
|
+
default: c(() => {
|
|
107
108
|
var o;
|
|
108
109
|
return [
|
|
109
|
-
|
|
110
|
-
default:
|
|
111
|
-
|
|
110
|
+
h(t(Z), null, {
|
|
111
|
+
default: c(() => [
|
|
112
|
+
h(t(ee), {
|
|
112
113
|
id: t(z)({ name: e })
|
|
113
114
|
}, {
|
|
114
|
-
default:
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
115
|
+
default: c(() => [
|
|
116
|
+
h(t(te), { level: 2 }, {
|
|
117
|
+
default: c(() => {
|
|
118
|
+
var d;
|
|
119
|
+
return [
|
|
120
|
+
F(P(((d = t(S)(r.parsedSpec)) == null ? void 0 : d[e]).title ?? e), 1)
|
|
121
|
+
];
|
|
122
|
+
}),
|
|
123
|
+
_: 2
|
|
124
|
+
}, 1024)
|
|
125
|
+
]),
|
|
120
126
|
_: 2
|
|
121
127
|
}, 1032, ["id"])
|
|
122
128
|
]),
|
|
123
129
|
_: 2
|
|
124
130
|
}, 1024),
|
|
125
|
-
|
|
131
|
+
h(t(oe), {
|
|
126
132
|
name: e,
|
|
127
133
|
noncollapsible: "",
|
|
128
|
-
value: (o = t(
|
|
134
|
+
value: (o = t(S)(r.parsedSpec)) == null ? void 0 : o[e]
|
|
129
135
|
}, null, 8, ["name", "value"])
|
|
130
136
|
];
|
|
131
137
|
}),
|
|
132
138
|
_: 2
|
|
133
|
-
}, 1024)) :
|
|
139
|
+
}, 1024)) : T("", !0)
|
|
134
140
|
];
|
|
135
141
|
}),
|
|
136
142
|
_: 2
|
|
137
143
|
}, 1032, ["label"]))), 128))
|
|
138
144
|
]),
|
|
139
145
|
_: 1
|
|
140
|
-
})) :
|
|
146
|
+
})) : T("", !0)
|
|
141
147
|
], 2)), [
|
|
142
|
-
[q,
|
|
148
|
+
[q, C.value]
|
|
143
149
|
]);
|
|
144
150
|
}
|
|
145
151
|
});
|
|
146
152
|
export {
|
|
147
|
-
|
|
153
|
+
ye as default
|
|
148
154
|
};
|
|
@@ -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":"AAkHA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAiB9E,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;;AAoMF,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 m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-c7c5f295"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|