@scalar/api-reference 1.31.8 → 1.31.9
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 +45 -0
- package/dist/browser/standalone.js +18613 -18470
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReference.vue.d.ts.map +1 -1
- package/dist/components/ApiReference.vue.js +10 -30
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +2 -2
- package/dist/components/ApiReferenceLayout.vue2.js +240 -222
- package/dist/components/Content/Content.vue.d.ts +2 -0
- 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 +84 -74
- package/dist/components/Content/Introduction/Introduction.vue.d.ts +1 -3
- 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 +93 -83
- package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
- package/dist/components/Content/Lazy/Loading.vue.js +84 -86
- package/dist/components/Content/Models/Models.vue.js +1 -1
- package/dist/components/Content/Models/Models.vue2.js +4 -4
- package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/Schema.vue.js +2 -2
- package/dist/components/Content/Schema/Schema.vue2.js +53 -53
- package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaDiscriminator.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue2.js +117 -112
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +2 -2
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +161 -191
- package/dist/components/Content/Schema/helpers/schema-name.d.ts +13 -0
- package/dist/components/Content/Schema/helpers/schema-name.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/schema-name.js +59 -13
- package/dist/components/Content/Tag/OperationsList.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/OperationsList.vue.js +1 -1
- package/dist/components/Content/Tag/OperationsList.vue2.js +22 -25
- package/dist/components/Content/Tag/OperationsListItem.vue.d.ts +2 -3
- 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 +46 -47
- package/dist/components/Content/Tag/Tag.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/Tag.vue.js +45 -47
- package/dist/components/Content/Tag/TagList.vue.d.ts +2 -0
- package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/TagList.vue.js +40 -41
- 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 +21 -21
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +16 -1
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.js +12 -11
- package/dist/components/MobileHeader.vue.d.ts +1 -8
- package/dist/components/MobileHeader.vue.d.ts.map +1 -1
- package/dist/components/MobileHeader.vue.js +1 -1
- package/dist/components/MobileHeader.vue2.js +19 -19
- package/dist/components/Section/Section.vue.js +2 -2
- package/dist/components/Section/Section.vue2.js +1 -1
- package/dist/components/ShowMoreButton.vue.js +2 -2
- package/dist/components/ShowMoreButton.vue2.js +1 -1
- package/dist/components/Sidebar/Sidebar.vue.d.ts +2 -4
- 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 +113 -159
- package/dist/components/Sidebar/SidebarElement.vue.d.ts +2 -11
- 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 +85 -81
- package/dist/components/Sidebar/SidebarHttpBadge.vue.d.ts +16 -1
- package/dist/components/Sidebar/SidebarHttpBadge.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarHttpBadge.vue.js +2 -2
- package/dist/components/Sidebar/SidebarHttpBadge.vue2.js +11 -5
- package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/features/ApiClientModal/ApiClientModal.vue.js +54 -42
- package/dist/features/ApiClientModal/useApiClient.d.ts +74 -72
- package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
- package/dist/features/DocumentSource/hooks/useDocumentSource.d.ts +0 -2
- package/dist/features/DocumentSource/hooks/useDocumentSource.d.ts.map +1 -1
- package/dist/features/DocumentSource/hooks/useDocumentSource.js +40 -67
- package/dist/features/DownloadLink/DownloadLink.vue.js +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts +5 -5
- package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue.js +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue2.js +200 -179
- package/dist/features/Operation/Operation.vue.d.ts +0 -1
- package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
- package/dist/features/Operation/Operation.vue.js +31 -34
- package/dist/features/Operation/components/OperationParameters.vue.d.ts +3 -2
- package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/OperationParameters.vue.js +62 -64
- package/dist/features/Operation/components/OperationResponses.vue.d.ts +1 -2
- package/dist/features/Operation/components/OperationResponses.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/OperationResponses.vue.js +2 -2
- package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/callbacks/Callback.vue.js +3 -3
- package/dist/features/Operation/components/callbacks/Callback.vue2.js +31 -38
- package/dist/features/Operation/hooks/useResponses.d.ts +3 -3
- package/dist/features/Operation/hooks/useResponses.d.ts.map +1 -1
- package/dist/features/Operation/hooks/useResponses.js +12 -13
- package/dist/features/Operation/index.d.ts +0 -1
- package/dist/features/Operation/index.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +4 -6
- 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 +85 -72
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +2 -4
- 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 +114 -98
- package/dist/features/Search/SearchModal.vue.js +2 -2
- package/dist/features/Search/SearchModal.vue2.js +1 -1
- package/dist/features/Search/useSearchIndex.d.ts.map +1 -1
- package/dist/features/Search/useSearchIndex.js +61 -64
- package/dist/features/sidebar/helpers/create-sidebar.d.ts +4 -2
- package/dist/features/sidebar/helpers/create-sidebar.d.ts.map +1 -1
- package/dist/features/sidebar/helpers/create-sidebar.js +33 -0
- package/dist/features/sidebar/hooks/useSidebar.d.ts +2 -3
- package/dist/features/sidebar/hooks/useSidebar.d.ts.map +1 -1
- package/dist/features/sidebar/hooks/useSidebar.js +18 -0
- package/dist/features/sidebar/index.d.ts +2 -1
- package/dist/features/sidebar/index.d.ts.map +1 -1
- package/dist/features/traverse-schema/helpers/get-tag.d.ts +4 -2
- package/dist/features/traverse-schema/helpers/get-tag.d.ts.map +1 -1
- package/dist/features/traverse-schema/helpers/get-tag.js +7 -0
- package/dist/features/traverse-schema/helpers/traverse-description.js +33 -0
- package/dist/features/traverse-schema/helpers/traverse-document.d.ts.map +1 -1
- package/dist/features/traverse-schema/helpers/traverse-document.js +34 -0
- package/dist/features/traverse-schema/helpers/traverse-paths.d.ts +5 -3
- package/dist/features/traverse-schema/helpers/traverse-paths.d.ts.map +1 -1
- package/dist/features/traverse-schema/helpers/traverse-paths.js +32 -0
- package/dist/features/traverse-schema/helpers/traverse-schemas.d.ts +2 -2
- package/dist/features/traverse-schema/helpers/traverse-schemas.d.ts.map +1 -1
- package/dist/features/traverse-schema/helpers/traverse-schemas.js +23 -0
- package/dist/features/traverse-schema/helpers/traverse-tags.d.ts +2 -2
- package/dist/features/traverse-schema/helpers/traverse-tags.d.ts.map +1 -1
- package/dist/features/traverse-schema/helpers/traverse-tags.js +43 -0
- package/dist/features/traverse-schema/helpers/traverse-webhooks.d.ts +2 -2
- package/dist/features/traverse-schema/helpers/traverse-webhooks.d.ts.map +1 -1
- package/dist/features/traverse-schema/helpers/traverse-webhooks.js +26 -0
- package/dist/features/traverse-schema/index.d.ts +3 -3
- package/dist/features/traverse-schema/index.d.ts.map +1 -1
- package/dist/features/traverse-schema/types.d.ts +8 -5
- package/dist/features/traverse-schema/types.d.ts.map +1 -1
- package/dist/helpers/parse.d.ts +2 -1
- package/dist/helpers/parse.d.ts.map +1 -1
- package/dist/helpers/parse.js +72 -88
- package/dist/hooks/useMultipleDocuments.d.ts +6 -6
- package/dist/hooks/useMultipleDocuments.d.ts.map +1 -1
- package/dist/hooks/useNavState.d.ts +1 -1
- package/dist/hooks/useNavState.d.ts.map +1 -1
- package/dist/hooks/useNavState.js +14 -9
- package/dist/hooks/useOperation.d.ts +7 -7
- package/dist/hooks/useOperation.d.ts.map +1 -1
- package/dist/hooks/useOperation.js +13 -12
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +23 -25
- package/dist/legacy/fixtures/index.d.ts +1 -1
- package/dist/libs/openapi.d.ts +3 -4
- package/dist/libs/openapi.d.ts.map +1 -1
- package/dist/libs/openapi.js +8 -9
- package/dist/style.css +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.d.ts +4 -18
- package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.js +68 -45
- package/package.json +16 -16
- package/dist/components/Content/Webhooks/index.d.ts +0 -2
- package/dist/components/Content/Webhooks/index.d.ts.map +0 -1
- package/dist/features/Operation/Webhooks.vue.d.ts +0 -7
- package/dist/features/Operation/Webhooks.vue.d.ts.map +0 -1
- package/dist/features/Operation/Webhooks.vue.js +0 -7
- package/dist/features/Operation/Webhooks.vue2.js +0 -121
- package/dist/features/Operation/components/Webhook.vue.d.ts +0 -7
- package/dist/features/Operation/components/Webhook.vue.d.ts.map +0 -1
- package/dist/features/Operation/components/Webhook.vue.js +0 -7
- package/dist/features/Operation/components/Webhook.vue2.js +0 -29
- package/dist/features/traverse-schema/helpers/operation-id-params.d.ts +0 -8
- package/dist/features/traverse-schema/helpers/operation-id-params.d.ts.map +0 -1
- package/dist/features/traverse-schema/helpers/operation-id-params.js +0 -8
- package/dist/hooks/useSidebar.d.ts +0 -53
- package/dist/hooks/useSidebar.d.ts.map +0 -1
- package/dist/hooks/useSidebar.js +0 -248
- package/dist/legacy/fixtures/httpRequestMethods.js +0 -14
|
@@ -1,103 +1,101 @@
|
|
|
1
|
-
import { defineComponent as F, computed as
|
|
1
|
+
import { defineComponent as F, computed as f, createElementBlock as i, openBlock as t, Fragment as v, createStaticVNode as G, createElementVNode as E, renderSlot as y, createBlock as a, createCommentVNode as c, unref as r, withCtx as U, createVNode as m, normalizeClass as I, renderList as O } from "vue";
|
|
2
2
|
import { useWorkspace as R, useActiveEntities as D } from "@scalar/api-client/store";
|
|
3
3
|
import { RequestAuth as H } from "@scalar/api-client/views/Request/RequestSection/RequestAuth";
|
|
4
4
|
import { ScalarErrorBoundary as J } from "@scalar/components";
|
|
5
5
|
import { getSlugUid as K } from "@scalar/oas-utils/transforms";
|
|
6
6
|
import { useConfig as P } from "../../hooks/useConfig.js";
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import X from "./Lazy/Loading.vue.js";
|
|
7
|
+
import { getModels as p, hasModels as Q } from "../../libs/openapi.js";
|
|
8
|
+
import T from "./Lazy/Loading.vue.js";
|
|
10
9
|
/* empty css */
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
|
|
18
|
-
const se = { class: "narrow-references-container" }, te = {
|
|
10
|
+
import X from "./Introduction/Introduction.vue.js";
|
|
11
|
+
import Y from "../../features/BaseUrl/BaseUrl.vue.js";
|
|
12
|
+
import Z from "./ClientLibraries/ClientLibraries.vue.js";
|
|
13
|
+
import S from "./Tag/TagList.vue.js";
|
|
14
|
+
import _ from "./Models/ModelsAccordion.vue.js";
|
|
15
|
+
import x from "./Models/Models.vue.js";
|
|
16
|
+
const ee = { class: "narrow-references-container" }, re = {
|
|
19
17
|
key: 0,
|
|
20
18
|
class: "scalar-reference-intro-server scalar-client introduction-card-item text-sm leading-normal [--scalar-address-bar-height:0px]"
|
|
21
|
-
},
|
|
19
|
+
}, se = {
|
|
22
20
|
key: 1,
|
|
23
21
|
class: "scalar-reference-intro-auth scalar-client introduction-card-item leading-normal"
|
|
24
|
-
},
|
|
22
|
+
}, he = /* @__PURE__ */ F({
|
|
25
23
|
__name: "Content",
|
|
26
24
|
props: {
|
|
25
|
+
document: {},
|
|
27
26
|
parsedSpec: {},
|
|
28
27
|
layout: { default: "modern" }
|
|
29
28
|
},
|
|
30
|
-
setup(
|
|
31
|
-
const
|
|
29
|
+
setup($) {
|
|
30
|
+
const M = $, u = P(), { collections: B, securitySchemes: N, servers: h } = R(), {
|
|
32
31
|
activeCollection: W,
|
|
33
32
|
activeEnvVariables: L,
|
|
34
33
|
activeEnvironment: j,
|
|
35
|
-
activeWorkspace:
|
|
36
|
-
} = D(), s =
|
|
37
|
-
if (
|
|
38
|
-
const e = B[K(
|
|
34
|
+
activeWorkspace: g
|
|
35
|
+
} = D(), s = f(() => {
|
|
36
|
+
if (u.value.slug) {
|
|
37
|
+
const e = B[K(u.value.slug)];
|
|
39
38
|
if (e)
|
|
40
39
|
return e;
|
|
41
40
|
}
|
|
42
41
|
return W.value;
|
|
43
|
-
}),
|
|
42
|
+
}), o = f(() => {
|
|
44
43
|
if (s.value) {
|
|
45
44
|
if (s.value.selectedServerUid) {
|
|
46
|
-
const e =
|
|
45
|
+
const e = h[s.value.selectedServerUid];
|
|
47
46
|
if (e)
|
|
48
47
|
return e;
|
|
49
48
|
}
|
|
50
|
-
return
|
|
49
|
+
return h[s.value.servers[0]];
|
|
51
50
|
}
|
|
52
|
-
}), q =
|
|
53
|
-
() =>
|
|
51
|
+
}), q = f(
|
|
52
|
+
() => M.layout === "classic" ? "after" : "aside"
|
|
54
53
|
);
|
|
55
54
|
return (e, k) => {
|
|
56
|
-
var
|
|
57
|
-
return t(), i(
|
|
58
|
-
k[0] || (k[0] = G('<div class="section-flare" data-v-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
s.value ? (t(), a(r(
|
|
55
|
+
var b, C, w, A, V;
|
|
56
|
+
return t(), i(v, null, [
|
|
57
|
+
k[0] || (k[0] = G('<div class="section-flare" data-v-54b62036><div class="section-flare-item" data-v-54b62036></div><div class="section-flare-item" data-v-54b62036></div><div class="section-flare-item" data-v-54b62036></div><div class="section-flare-item" data-v-54b62036></div><div class="section-flare-item" data-v-54b62036></div><div class="section-flare-item" data-v-54b62036></div><div class="section-flare-item" data-v-54b62036></div><div class="section-flare-item" data-v-54b62036></div></div>', 1)),
|
|
58
|
+
E("div", ee, [
|
|
59
|
+
y(e.$slots, "start", {}, void 0, !0),
|
|
60
|
+
s.value ? (t(), a(r(T), {
|
|
62
61
|
key: 0,
|
|
63
62
|
collection: s.value,
|
|
64
63
|
layout: e.layout,
|
|
65
64
|
parsedSpec: e.parsedSpec,
|
|
66
|
-
server:
|
|
67
|
-
}, null, 8, ["collection", "layout", "parsedSpec", "server"])) :
|
|
68
|
-
(
|
|
65
|
+
server: o.value
|
|
66
|
+
}, null, 8, ["collection", "layout", "parsedSpec", "server"])) : c("", !0),
|
|
67
|
+
(C = (b = e.document) == null ? void 0 : b.info) != null && C.title || (A = (w = e.document) == null ? void 0 : w.info) != null && A.description ? (t(), a(r(X), {
|
|
69
68
|
key: 1,
|
|
70
|
-
|
|
71
|
-
parsedSpec: e.parsedSpec
|
|
69
|
+
document: e.document
|
|
72
70
|
}, {
|
|
73
|
-
[q.value]:
|
|
74
|
-
|
|
75
|
-
default:
|
|
76
|
-
var n,
|
|
71
|
+
[q.value]: U(() => [
|
|
72
|
+
m(r(J), null, {
|
|
73
|
+
default: U(() => {
|
|
74
|
+
var n, l, d;
|
|
77
75
|
return [
|
|
78
|
-
|
|
76
|
+
E("div", {
|
|
79
77
|
class: I(["introduction-card", { "introduction-card-row": e.layout === "classic" }])
|
|
80
78
|
}, [
|
|
81
|
-
(
|
|
82
|
-
|
|
79
|
+
(l = (n = s.value) == null ? void 0 : n.servers) != null && l.length ? (t(), i("div", re, [
|
|
80
|
+
m(r(Y), {
|
|
83
81
|
collection: s.value,
|
|
84
|
-
server:
|
|
82
|
+
server: o.value
|
|
85
83
|
}, null, 8, ["collection", "server"])
|
|
86
|
-
])) :
|
|
87
|
-
s.value && r(
|
|
88
|
-
|
|
84
|
+
])) : c("", !0),
|
|
85
|
+
s.value && r(g) && Object.keys(r(N) ?? {}).length ? (t(), i("div", se, [
|
|
86
|
+
m(r(H), {
|
|
89
87
|
collection: s.value,
|
|
90
88
|
envVariables: r(L),
|
|
91
89
|
environment: r(j),
|
|
92
90
|
layout: "reference",
|
|
93
|
-
persistAuth: r(
|
|
91
|
+
persistAuth: r(u).persistAuth,
|
|
94
92
|
selectedSecuritySchemeUids: ((d = s.value) == null ? void 0 : d.selectedSecuritySchemeUids) ?? [],
|
|
95
|
-
server:
|
|
93
|
+
server: o.value,
|
|
96
94
|
title: "Authentication",
|
|
97
|
-
workspace: r(
|
|
95
|
+
workspace: r(g)
|
|
98
96
|
}, null, 8, ["collection", "envVariables", "environment", "persistAuth", "selectedSecuritySchemeUids", "server", "workspace"])
|
|
99
|
-
])) :
|
|
100
|
-
|
|
97
|
+
])) : c("", !0),
|
|
98
|
+
m(r(Z), { class: "introduction-card-item scalar-reference-intro-clients" })
|
|
101
99
|
], 2)
|
|
102
100
|
];
|
|
103
101
|
}),
|
|
@@ -105,47 +103,59 @@ const se = { class: "narrow-references-container" }, te = {
|
|
|
105
103
|
})
|
|
106
104
|
]),
|
|
107
105
|
_: 2
|
|
108
|
-
}, 1032, ["
|
|
109
|
-
e.parsedSpec.tags && s.value ? (t(), i(
|
|
110
|
-
e.parsedSpec["x-tagGroups"] ? (t(!0), i(
|
|
106
|
+
}, 1032, ["document"])) : y(e.$slots, "empty-state", { key: 2 }, void 0, !0),
|
|
107
|
+
e.parsedSpec.tags && s.value ? (t(), i(v, { key: 3 }, [
|
|
108
|
+
e.parsedSpec["x-tagGroups"] ? (t(!0), i(v, { key: 0 }, O(e.parsedSpec["x-tagGroups"], (n) => (t(), a(r(S), {
|
|
111
109
|
key: n.name,
|
|
112
110
|
collection: s.value,
|
|
113
111
|
layout: e.layout,
|
|
114
|
-
server:
|
|
112
|
+
server: o.value,
|
|
115
113
|
spec: e.parsedSpec,
|
|
116
|
-
tags: n.tags.map((
|
|
114
|
+
tags: n.tags.map((l) => {
|
|
117
115
|
var d;
|
|
118
|
-
return (d = e.parsedSpec.tags) == null ? void 0 : d.find((z) => z.name ===
|
|
119
|
-
}).filter((
|
|
120
|
-
}, null, 8, ["collection", "layout", "server", "spec", "tags"]))), 128)) : (t(), a(r(
|
|
116
|
+
return (d = e.parsedSpec.tags) == null ? void 0 : d.find((z) => z.name === l);
|
|
117
|
+
}).filter((l) => !!l)
|
|
118
|
+
}, null, 8, ["collection", "layout", "server", "spec", "tags"]))), 128)) : (t(), a(r(S), {
|
|
121
119
|
key: 1,
|
|
122
120
|
collection: s.value,
|
|
123
121
|
layout: e.layout,
|
|
124
|
-
schemas: r(
|
|
125
|
-
server:
|
|
122
|
+
schemas: r(p)(e.parsedSpec),
|
|
123
|
+
server: o.value,
|
|
126
124
|
spec: e.parsedSpec,
|
|
127
125
|
tags: e.parsedSpec.tags
|
|
128
126
|
}, null, 8, ["collection", "layout", "schemas", "server", "spec", "tags"]))
|
|
129
|
-
], 64)) :
|
|
130
|
-
e.parsedSpec.webhooks ? (t(), a(r(
|
|
127
|
+
], 64)) : c("", !0),
|
|
128
|
+
(V = e.parsedSpec.webhooks) != null && V.length && s.value ? (t(), a(r(S), {
|
|
131
129
|
key: 4,
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
130
|
+
id: "webhooks",
|
|
131
|
+
collection: s.value,
|
|
132
|
+
layout: e.layout,
|
|
133
|
+
schemas: r(p)(e.parsedSpec),
|
|
134
|
+
server: o.value,
|
|
135
|
+
spec: e.parsedSpec,
|
|
136
|
+
tags: [
|
|
137
|
+
{
|
|
138
|
+
name: "Webhooks",
|
|
139
|
+
description: "",
|
|
140
|
+
operations: e.parsedSpec.webhooks
|
|
141
|
+
}
|
|
142
|
+
]
|
|
143
|
+
}, null, 8, ["collection", "layout", "schemas", "server", "spec", "tags"])) : c("", !0),
|
|
144
|
+
r(Q)(e.parsedSpec) && !r(u).hideModels ? (t(), i(v, { key: 5 }, [
|
|
145
|
+
e.layout === "classic" ? (t(), a(r(_), {
|
|
136
146
|
key: 0,
|
|
137
|
-
schemas: r(
|
|
138
|
-
}, null, 8, ["schemas"])) : (t(), a(r(
|
|
147
|
+
schemas: r(p)(e.parsedSpec)
|
|
148
|
+
}, null, 8, ["schemas"])) : (t(), a(r(x), {
|
|
139
149
|
key: 1,
|
|
140
|
-
schemas: r(
|
|
150
|
+
schemas: r(p)(e.parsedSpec)
|
|
141
151
|
}, null, 8, ["schemas"]))
|
|
142
|
-
], 64)) :
|
|
143
|
-
|
|
152
|
+
], 64)) : c("", !0),
|
|
153
|
+
y(e.$slots, "end", {}, void 0, !0)
|
|
144
154
|
])
|
|
145
155
|
], 64);
|
|
146
156
|
};
|
|
147
157
|
}
|
|
148
158
|
});
|
|
149
159
|
export {
|
|
150
|
-
|
|
160
|
+
he as default
|
|
151
161
|
};
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import type { OpenAPIV3_1 } from '@scalar/openapi-types';
|
|
2
|
-
import type { Spec } from '@scalar/types/legacy';
|
|
3
2
|
type __VLS_Props = {
|
|
4
|
-
|
|
5
|
-
parsedSpec: Spec;
|
|
3
|
+
document: OpenAPIV3_1.Document;
|
|
6
4
|
};
|
|
7
5
|
declare function __VLS_template(): {
|
|
8
6
|
attrs: Partial<{}>;
|
|
@@ -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":"AA2GA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAwBxD,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAAA;CAC/B,CAAC;AAiCF,iBAAS,cAAc;WA+KT,OAAO,IAA6B;;uBATtB,GAAG;uBACH,GAAG;;;;EAa9B;AAwBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,6SAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Introduction.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-fa96ab44"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,108 +1,118 @@
|
|
|
1
|
-
import { defineComponent 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
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
const
|
|
1
|
+
import { defineComponent as $, inject as D, computed as T, onMounted as _, createBlock as u, openBlock as l, unref as e, withCtx as t, createVNode as n, renderSlot as k, createElementVNode as y, createCommentVNode as m, createTextVNode as a, toDisplayString as f } from "vue";
|
|
2
|
+
import B from "../../../features/DownloadLink/DownloadLink.vue.js";
|
|
3
|
+
import { useConfig as E } from "../../../hooks/useConfig.js";
|
|
4
|
+
import { useNavState as A } from "../../../hooks/useNavState.js";
|
|
5
|
+
import H from "./Description.vue.js";
|
|
6
|
+
import { OPENAPI_VERSION_SYMBOL as U } from "../../../features/DownloadLink/openapi-version-symbol.js";
|
|
7
|
+
import w from "../../Section/SectionContainer.vue.js";
|
|
8
|
+
import M from "../../Section/Section.vue.js";
|
|
9
|
+
import { DEFAULT_INTRODUCTION_SLUG as P } from "../../../features/traverse-schema/helpers/traverse-description.js";
|
|
10
|
+
import R from "../../Section/SectionContent.vue.js";
|
|
11
|
+
import I from "../../Badge/Badge.vue.js";
|
|
12
|
+
import b from "../../Section/SectionHeader.vue.js";
|
|
13
|
+
import j from "../../Section/SectionHeaderTag.vue.js";
|
|
14
|
+
import F from "../../Section/SectionColumns.vue.js";
|
|
15
|
+
import L from "../../Section/SectionColumn.vue.js";
|
|
16
|
+
import O from "../../SpecificationExtension/SpecificationExtension.vue.js";
|
|
17
|
+
const G = { class: "flex gap-1" }, Y = { class: "sticky-cards" }, lo = /* @__PURE__ */ $({
|
|
18
18
|
__name: "Introduction",
|
|
19
19
|
props: {
|
|
20
|
-
|
|
21
|
-
parsedSpec: {}
|
|
20
|
+
document: {}
|
|
22
21
|
},
|
|
23
|
-
setup(
|
|
24
|
-
const
|
|
22
|
+
setup(i) {
|
|
23
|
+
const { getHeadingId: V } = A(), c = D(U), s = T(() => {
|
|
25
24
|
var o, r;
|
|
26
|
-
return typeof ((o =
|
|
27
|
-
}),
|
|
28
|
-
return
|
|
25
|
+
return typeof ((o = i.document.info) == null ? void 0 : o.version) == "string" ? i.document.info.version.toString().match(/^\d/) ? `v${i.document.info.version}` : i.document.info.version : typeof ((r = i.document.info) == null ? void 0 : r.version) == "number" ? `v${i.document.info.version}` : void 0;
|
|
26
|
+
}), v = E();
|
|
27
|
+
return _(() => {
|
|
29
28
|
var o, r;
|
|
30
|
-
return (r = (o =
|
|
31
|
-
}), (o, r) => (
|
|
29
|
+
return (r = (o = v.value).onLoaded) == null ? void 0 : r.call(o);
|
|
30
|
+
}), (o, r) => (l(), u(e(w), null, {
|
|
32
31
|
default: t(() => [
|
|
33
|
-
|
|
32
|
+
n(e(M), {
|
|
34
33
|
class: "introduction-section gap-12",
|
|
35
|
-
id: e(
|
|
36
|
-
slug: e(
|
|
34
|
+
id: e(V)({
|
|
35
|
+
slug: e(P),
|
|
37
36
|
depth: 1,
|
|
38
37
|
value: "Introduction"
|
|
39
38
|
})
|
|
40
39
|
}, {
|
|
41
40
|
default: t(() => {
|
|
42
|
-
var
|
|
41
|
+
var p, g, S, C;
|
|
43
42
|
return [
|
|
44
|
-
|
|
45
|
-
loading: e(
|
|
43
|
+
n(e(R), {
|
|
44
|
+
loading: e(v).isLoading ?? (!((g = (p = o.document) == null ? void 0 : p.info) != null && g.description) && !((C = (S = o.document) == null ? void 0 : S.info) != null && C.title))
|
|
46
45
|
}, {
|
|
47
|
-
default: t(() =>
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
]),
|
|
53
|
-
_: 1
|
|
54
|
-
})) : s("", !0),
|
|
55
|
-
e(u) ? (a(), l(e(_), { key: 1 }, {
|
|
56
|
-
default: t(() => [
|
|
57
|
-
d("OAS " + f(e(u)), 1)
|
|
58
|
-
]),
|
|
59
|
-
_: 1
|
|
60
|
-
})) : s("", !0)
|
|
61
|
-
]),
|
|
62
|
-
i(e(w), {
|
|
63
|
-
loading: !o.info.title,
|
|
64
|
-
tight: ""
|
|
65
|
-
}, {
|
|
66
|
-
default: t(() => [
|
|
67
|
-
i(e(M), { level: 1 }, {
|
|
46
|
+
default: t(() => {
|
|
47
|
+
var N;
|
|
48
|
+
return [
|
|
49
|
+
y("div", G, [
|
|
50
|
+
s.value ? (l(), u(e(I), { key: 0 }, {
|
|
68
51
|
default: t(() => [
|
|
69
|
-
|
|
52
|
+
a(f(s.value), 1)
|
|
70
53
|
]),
|
|
71
54
|
_: 1
|
|
72
|
-
})
|
|
73
|
-
|
|
74
|
-
_: 1
|
|
75
|
-
}, 8, ["loading"]),
|
|
76
|
-
i(e(P), null, {
|
|
77
|
-
default: t(() => [
|
|
78
|
-
i(e(C), null, {
|
|
55
|
+
})) : m("", !0),
|
|
56
|
+
e(c) ? (l(), u(e(I), { key: 1 }, {
|
|
79
57
|
default: t(() => [
|
|
80
|
-
|
|
81
|
-
title: o.info.title
|
|
82
|
-
}, null, 8, ["title"]),
|
|
83
|
-
i(B, {
|
|
84
|
-
value: o.info.description
|
|
85
|
-
}, null, 8, ["value"])
|
|
58
|
+
a("OAS " + f(e(c)), 1)
|
|
86
59
|
]),
|
|
87
60
|
_: 1
|
|
88
|
-
}),
|
|
89
|
-
o.$slots.aside ? (a(), l(e(C), { key: 0 }, {
|
|
90
|
-
default: t(() => [
|
|
91
|
-
S("div", b, [
|
|
92
|
-
g(o.$slots, "aside", {}, void 0, !0)
|
|
93
|
-
])
|
|
94
|
-
]),
|
|
95
|
-
_: 3
|
|
96
|
-
})) : s("", !0)
|
|
61
|
+
})) : m("", !0)
|
|
97
62
|
]),
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
63
|
+
n(e(b), {
|
|
64
|
+
loading: !((N = o.document.info) != null && N.title),
|
|
65
|
+
tight: ""
|
|
66
|
+
}, {
|
|
67
|
+
default: t(() => [
|
|
68
|
+
n(e(j), { level: 1 }, {
|
|
69
|
+
default: t(() => {
|
|
70
|
+
var d;
|
|
71
|
+
return [
|
|
72
|
+
a(f((d = o.document.info) == null ? void 0 : d.title), 1)
|
|
73
|
+
];
|
|
74
|
+
}),
|
|
75
|
+
_: 1
|
|
76
|
+
})
|
|
77
|
+
]),
|
|
78
|
+
_: 1
|
|
79
|
+
}, 8, ["loading"]),
|
|
80
|
+
n(e(F), null, {
|
|
81
|
+
default: t(() => [
|
|
82
|
+
n(e(L), null, {
|
|
83
|
+
default: t(() => {
|
|
84
|
+
var d, h;
|
|
85
|
+
return [
|
|
86
|
+
n(B, {
|
|
87
|
+
title: (d = o.document.info) == null ? void 0 : d.title
|
|
88
|
+
}, null, 8, ["title"]),
|
|
89
|
+
n(H, {
|
|
90
|
+
value: (h = o.document.info) == null ? void 0 : h.description
|
|
91
|
+
}, null, 8, ["value"])
|
|
92
|
+
];
|
|
93
|
+
}),
|
|
94
|
+
_: 1
|
|
95
|
+
}),
|
|
96
|
+
o.$slots.aside ? (l(), u(e(L), { key: 0 }, {
|
|
97
|
+
default: t(() => [
|
|
98
|
+
y("div", Y, [
|
|
99
|
+
k(o.$slots, "aside", {}, void 0, !0)
|
|
100
|
+
])
|
|
101
|
+
]),
|
|
102
|
+
_: 3
|
|
103
|
+
})) : m("", !0)
|
|
104
|
+
]),
|
|
105
|
+
_: 3
|
|
106
|
+
}),
|
|
107
|
+
n(e(O), { value: o.document }, null, 8, ["value"]),
|
|
108
|
+
n(e(O), {
|
|
109
|
+
value: o.document.info
|
|
110
|
+
}, null, 8, ["value"])
|
|
111
|
+
];
|
|
112
|
+
}),
|
|
103
113
|
_: 3
|
|
104
114
|
}, 8, ["loading"]),
|
|
105
|
-
|
|
115
|
+
k(o.$slots, "after", {}, void 0, !0)
|
|
106
116
|
];
|
|
107
117
|
}),
|
|
108
118
|
_: 3
|
|
@@ -113,5 +123,5 @@ const R = { class: "flex gap-1" }, b = { class: "sticky-cards" }, io = /* @__PUR
|
|
|
113
123
|
}
|
|
114
124
|
});
|
|
115
125
|
export {
|
|
116
|
-
|
|
126
|
+
lo as default
|
|
117
127
|
};
|
|
@@ -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":"AA2QA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AAEzE,OAAO,KAAK,EACV,IAAI,EAGL,MAAM,sBAAsB,CAAA;;gBAuCb,UAAU;aACb,MAAM;aACN,QAAQ,GAAG,SAAS;gBACjB,IAAI;;gBAHJ,UAAU;aACb,MAAM;aACN,QAAQ,GAAG,SAAS;gBACjB,IAAI;;YADP,QAAQ,GAAG,SAAS;;AAlBjC,wBAyUK"}
|