@scalar/api-reference 1.35.5 → 1.35.7
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 +53 -0
- package/dist/blocks/helpers/getPointer.d.ts.map +1 -1
- package/dist/browser/standalone.js +19316 -19449
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/Anchor/WithBreadcrumb.vue2.js +8 -11
- package/dist/components/ApiReference.vue.js +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +4 -4
- package/dist/components/ApiReferenceLayout.vue2.js +247 -268
- package/dist/components/Badge/Badge.vue.js +1 -1
- package/dist/components/ClassicHeader.vue.js +1 -1
- package/dist/components/Content/Content.vue.js +145 -169
- package/dist/components/Content/Content.vue3.js +1 -1
- package/dist/components/Content/Models/ClassicLayout.vue.js +1 -1
- package/dist/components/Content/Models/ClassicLayout.vue2.js +32 -35
- package/dist/components/Content/Models/Models.vue.js +27 -31
- package/dist/components/Content/Models/ModernLayout.vue.js +1 -1
- package/dist/components/Content/Operations/TraversedEntry.vue.js +32 -35
- package/dist/components/Content/Operations/TraversedEntryContainer.vue.js +26 -27
- package/dist/components/Content/Operations/get-current-index.js +1 -1
- package/dist/components/Content/Schema/Schema.vue.js +1 -1
- package/dist/components/Content/Schema/Schema.vue2.js +68 -74
- package/dist/components/Content/Schema/SchemaComposition.vue.js +42 -45
- package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaEnumValues.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaEnumValues.vue2.js +45 -50
- package/dist/components/Content/Schema/SchemaHeading.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaObjectProperties.vue.js +41 -48
- package/dist/components/Content/Schema/SchemaProperty.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue2.js +142 -157
- package/dist/components/Content/Schema/SchemaPropertyDetail.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +160 -164
- package/dist/components/Content/Schema/helpers/get-schema-type.js +15 -17
- package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +74 -77
- package/dist/components/Content/Schema/helpers/optimize-value-for-display.js +10 -11
- package/dist/components/Content/Tags/ClassicLayout.vue.js +1 -1
- package/dist/components/Content/Tags/ClassicLayout.vue2.js +36 -39
- package/dist/components/Content/Tags/ModernLayout.vue.js +1 -1
- package/dist/components/Content/Tags/ModernLayout.vue2.js +31 -35
- package/dist/components/Content/Tags/TagSection.vue.js +86 -92
- package/dist/components/GettingStarted.vue.js +1 -1
- package/dist/components/Lazy/Lazy.vue.d.ts.map +1 -1
- package/dist/components/Lazy/Lazy.vue2.js +2 -2
- package/dist/components/LinkList/LinkList.vue.js +1 -1
- package/dist/components/LoadingSkeleton.vue.js +1 -1
- package/dist/components/MobileHeader.vue.d.ts.map +1 -1
- package/dist/components/MobileHeader.vue.js +3 -3
- package/dist/components/MobileHeader.vue2.js +13 -12
- package/dist/components/OperationPath.vue.js +1 -1
- package/dist/components/OperationsList/OperationsList.vue.js +1 -1
- package/dist/components/OperationsList/OperationsList.vue2.js +45 -51
- package/dist/components/OperationsList/OperationsListItem.vue.js +1 -1
- package/dist/components/ScreenReader.vue.js +1 -1
- package/dist/components/Section/CompactSection.vue.js +1 -1
- package/dist/components/Section/Section.vue.js +1 -1
- package/dist/components/Section/Section.vue2.js +13 -14
- package/dist/components/Section/SectionAccordion.vue.js +1 -1
- package/dist/components/Section/SectionAccordion.vue2.js +29 -30
- package/dist/components/Section/SectionColumn.vue.js +1 -1
- package/dist/components/Section/SectionColumns.vue.js +1 -1
- package/dist/components/Section/SectionContainer.vue.js +1 -1
- package/dist/components/Section/SectionContainerAccordion.vue.js +1 -1
- package/dist/components/Section/SectionContent.vue.js +1 -1
- package/dist/components/Section/SectionHeader.vue.js +1 -1
- package/dist/components/Section/SectionHeaderTag.vue.js +1 -1
- package/dist/components/SectionFlare/SectionFlare.vue.js +1 -1
- package/dist/components/ShowMoreButton.vue.js +1 -1
- package/dist/components/ShowMoreButton.vue2.js +12 -13
- package/dist/features/Operation/Operation.vue.js +31 -36
- package/dist/features/Operation/components/Headers.vue.js +1 -1
- package/dist/features/Operation/components/OperationParameters.vue.js +8 -11
- package/dist/features/Operation/components/ParameterList.vue.js +21 -24
- package/dist/features/Operation/components/ParameterListItem.vue.js +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue2.js +36 -37
- package/dist/features/Operation/components/RequestBody.vue.js +1 -1
- package/dist/features/Operation/components/RequestBody.vue2.js +45 -52
- package/dist/features/Operation/components/callbacks/Callback.vue.js +1 -1
- package/dist/features/Operation/components/callbacks/Callback.vue2.js +32 -35
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue.js +4 -4
- package/dist/features/Operation/layouts/ClassicLayout.vue2.js +114 -119
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue.js +3 -3
- package/dist/features/Operation/layouts/ModernLayout.vue2.js +87 -89
- package/dist/features/Search/components/SearchButton.vue.js +23 -25
- package/dist/features/Search/components/SearchModal.vue.js +1 -1
- package/dist/features/Search/components/SearchModal.vue2.js +53 -54
- package/dist/features/api-client-modal/ApiClientModal.vue.js +31 -38
- package/dist/features/document-source/hooks/useDocumentFetcher.js +17 -18
- package/dist/features/document-source/hooks/useDocumentSource.d.ts.map +1 -1
- package/dist/features/document-source/hooks/useDocumentSource.js +21 -20
- package/dist/features/example-responses/ExampleResponse.vue.js +1 -1
- package/dist/features/example-responses/ExampleResponse.vue2.js +23 -26
- package/dist/features/example-responses/ExampleResponseTab.vue.js +1 -1
- package/dist/features/example-responses/ExampleResponseTabList.vue.js +1 -1
- package/dist/features/example-responses/ExampleResponses.vue.js +1 -1
- package/dist/features/example-responses/ExampleResponses.vue2.js +128 -153
- package/dist/features/info-object/Contact.vue.js +24 -27
- package/dist/features/info-object/License.vue.js +26 -29
- package/dist/features/multiple-documents/DocumentSelector.vue.js +22 -31
- package/dist/features/multiple-documents/useMultipleDocuments.js +52 -56
- package/dist/features/sidebar/components/Sidebar.vue.d.ts.map +1 -1
- package/dist/features/sidebar/components/Sidebar.vue.js +3 -3
- package/dist/features/sidebar/components/Sidebar.vue2.js +74 -79
- package/dist/features/sidebar/components/SidebarElement.vue.js +3 -3
- package/dist/features/sidebar/components/SidebarElement.vue2.js +52 -53
- package/dist/features/sidebar/components/SidebarGroup.vue.js +1 -1
- package/dist/features/sidebar/components/SidebarHttpBadge.vue.js +1 -1
- package/dist/features/specification-extension/SpecificationExtension.vue2.js +28 -31
- package/dist/features/test-request-button/TestRequestButton.vue.js +1 -1
- package/dist/features/test-request-button/TestRequestButton.vue2.js +1 -2
- package/dist/features/traverse-schema/helpers/traverse-description.js +13 -14
- package/dist/features/traverse-schema/helpers/traverse-document.js +14 -15
- package/dist/features/traverse-schema/helpers/traverse-paths.js +20 -23
- package/dist/features/traverse-schema/helpers/traverse-schemas.js +13 -15
- package/dist/features/traverse-schema/helpers/traverse-webhooks.js +8 -10
- package/dist/hooks/useFreezing.js +14 -14
- package/dist/hooks/useNavState.js +37 -39
- package/dist/index.js +2 -2
- package/dist/libs/openapi.js +28 -31
- package/dist/style.css +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.js +102 -103
- package/dist/v2/ApiReferenceWorkspace.vue3.js +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue2.js +116 -135
- package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.js +40 -47
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +45 -46
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +109 -125
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +84 -84
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/update-scheme.js +12 -13
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue.js +1 -1
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue2.js +1 -4
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.js +1 -1
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue2.js +77 -82
- package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue.js +2 -2
- package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue2.js +56 -50
- package/dist/v2/blocks/scalar-info-block/components/InfoDescription.vue.js +1 -1
- package/dist/v2/blocks/scalar-info-block/components/IntroductionCard.vue.js +1 -1
- package/dist/v2/blocks/scalar-info-block/components/IntroductionCardItem.vue.js +1 -1
- package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue.js +1 -1
- package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue2.js +74 -89
- package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue2.js +24 -27
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.js +2 -2
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue2.js +111 -118
- package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.js +11 -12
- package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.js +3 -3
- package/dist/v2/blocks/scalar-server-selector-block/components/Selector.vue.js +11 -14
- package/dist/v2/blocks/scalar-server-selector-block/components/ServerSelector.vue.js +45 -48
- package/dist/v2/helpers/get-document-name.js +10 -10
- package/dist/v2/helpers/map-configuration.d.ts.map +1 -1
- package/dist/v2/helpers/map-configuration.js +48 -51
- package/dist/v2/hooks/use-legacy-store-events.js +44 -48
- package/dist/v2/hooks/use-workspace-store-events.js +23 -26
- package/package.json +24 -23
- package/dist/components/ApiReferenceLayout.vue3.js +0 -4
- package/dist/components/ApiReferenceLayout.vue4.js +0 -4
- package/dist/components/ApiReferenceLayout.vue5.js +0 -4
- package/dist/components/ApiReferenceLayout.vue6.js +0 -4
- package/dist/components/Badge/Badge.vue3.js +0 -4
- package/dist/components/ClassicHeader.vue2.js +0 -4
- package/dist/components/Content/Content.vue2.js +0 -4
- package/dist/components/Content/Models/ClassicLayout.vue3.js +0 -4
- package/dist/components/Content/Models/ModernLayout.vue3.js +0 -4
- package/dist/components/Content/Schema/Schema.vue3.js +0 -4
- package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue3.js +0 -4
- package/dist/components/Content/Schema/SchemaEnumValues.vue3.js +0 -4
- package/dist/components/Content/Schema/SchemaHeading.vue3.js +0 -4
- package/dist/components/Content/Schema/SchemaProperty.vue3.js +0 -4
- package/dist/components/Content/Schema/SchemaPropertyDetail.vue3.js +0 -4
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue3.js +0 -4
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue3.js +0 -4
- package/dist/components/Content/Tags/ClassicLayout.vue3.js +0 -4
- package/dist/components/Content/Tags/ModernLayout.vue3.js +0 -4
- package/dist/components/GettingStarted.vue3.js +0 -4
- package/dist/components/LinkList/LinkList.vue3.js +0 -4
- package/dist/components/LoadingSkeleton.vue3.js +0 -4
- package/dist/components/MobileHeader.vue3.js +0 -4
- package/dist/components/OperationPath.vue3.js +0 -4
- package/dist/components/OperationsList/OperationsList.vue3.js +0 -4
- package/dist/components/OperationsList/OperationsListItem.vue3.js +0 -4
- package/dist/components/ScreenReader.vue3.js +0 -4
- package/dist/components/Section/CompactSection.vue3.js +0 -4
- package/dist/components/Section/Section.vue3.js +0 -4
- package/dist/components/Section/SectionAccordion.vue3.js +0 -4
- package/dist/components/Section/SectionColumn.vue2.js +0 -4
- package/dist/components/Section/SectionColumns.vue2.js +0 -4
- package/dist/components/Section/SectionContainer.vue3.js +0 -4
- package/dist/components/Section/SectionContainerAccordion.vue3.js +0 -4
- package/dist/components/Section/SectionContent.vue3.js +0 -4
- package/dist/components/Section/SectionHeader.vue3.js +0 -4
- package/dist/components/Section/SectionHeaderTag.vue3.js +0 -4
- package/dist/components/SectionFlare/SectionFlare.vue2.js +0 -4
- package/dist/components/ShowMoreButton.vue3.js +0 -4
- package/dist/features/Operation/components/Headers.vue3.js +0 -4
- package/dist/features/Operation/components/ParameterListItem.vue3.js +0 -4
- package/dist/features/Operation/components/RequestBody.vue3.js +0 -4
- package/dist/features/Operation/components/callbacks/Callback.vue3.js +0 -4
- package/dist/features/Operation/layouts/ClassicLayout.vue3.js +0 -4
- package/dist/features/Operation/layouts/ModernLayout.vue3.js +0 -4
- package/dist/features/Search/components/SearchModal.vue3.js +0 -4
- package/dist/features/example-responses/ExampleResponse.vue3.js +0 -4
- package/dist/features/example-responses/ExampleResponseTab.vue3.js +0 -4
- package/dist/features/example-responses/ExampleResponseTabList.vue3.js +0 -4
- package/dist/features/example-responses/ExampleResponses.vue3.js +0 -4
- package/dist/features/sidebar/components/Sidebar.vue3.js +0 -4
- package/dist/features/sidebar/components/SidebarElement.vue3.js +0 -4
- package/dist/features/sidebar/components/SidebarGroup.vue3.js +0 -4
- package/dist/features/sidebar/components/SidebarHttpBadge.vue3.js +0 -4
- package/dist/features/test-request-button/TestRequestButton.vue3.js +0 -4
- package/dist/v2/ApiReferenceWorkspace.vue2.js +0 -4
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue3.js +0 -4
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue3.js +0 -4
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue3.js +0 -4
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue3.js +0 -4
- package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue3.js +0 -4
- package/dist/v2/blocks/scalar-info-block/components/InfoDescription.vue3.js +0 -4
- package/dist/v2/blocks/scalar-info-block/components/IntroductionCard.vue3.js +0 -4
- package/dist/v2/blocks/scalar-info-block/components/IntroductionCardItem.vue2.js +0 -4
- package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue3.js +0 -4
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue3.js +0 -4
|
@@ -1,104 +1,98 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarMarkdown as
|
|
3
|
-
import
|
|
4
|
-
import { useConfig as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
const
|
|
1
|
+
import { defineComponent as f, createBlock as r, createCommentVNode as n, openBlock as d, unref as e, withCtx as a, withDirectives as u, createVNode as t, createTextVNode as m, toDisplayString as s, vShow as g } from "vue";
|
|
2
|
+
import { ScalarMarkdown as c } from "@scalar/components";
|
|
3
|
+
import C from "../../ScreenReader.vue.js";
|
|
4
|
+
import { useConfig as S } from "../../../hooks/useConfig.js";
|
|
5
|
+
import _ from "../../Section/Section.vue.js";
|
|
6
|
+
import v from "../../Section/SectionHeader.vue.js";
|
|
7
|
+
import h from "../../Anchor/Anchor.vue.js";
|
|
8
|
+
import k from "../../Section/SectionHeaderTag.vue.js";
|
|
9
|
+
import w from "../../Section/SectionContent.vue.js";
|
|
10
|
+
import y from "../../Section/SectionColumns.vue.js";
|
|
11
|
+
import p from "../../Section/SectionColumn.vue.js";
|
|
12
|
+
import B from "../../OperationsList/OperationsList.vue.js";
|
|
13
|
+
import I from "../../../features/specification-extension/SpecificationExtension.vue2.js";
|
|
14
|
+
const z = /* @__PURE__ */ f({
|
|
15
15
|
__name: "TagSection",
|
|
16
16
|
props: {
|
|
17
17
|
tag: {},
|
|
18
18
|
headerId: {},
|
|
19
19
|
isCollapsed: { type: Boolean }
|
|
20
20
|
},
|
|
21
|
-
setup(
|
|
22
|
-
const i =
|
|
23
|
-
return (o, l) => {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
_: 1
|
|
56
|
-
}, 8, ["id"])
|
|
57
|
-
]),
|
|
58
|
-
_: 1
|
|
59
|
-
}, 512), [
|
|
60
|
-
[C, !e(i).isLoading]
|
|
21
|
+
setup(L) {
|
|
22
|
+
const i = S();
|
|
23
|
+
return (o, l) => o.tag ? (d(), r(e(_), {
|
|
24
|
+
key: 0,
|
|
25
|
+
id: o.tag.id,
|
|
26
|
+
label: o.tag.title?.toUpperCase(),
|
|
27
|
+
role: "none"
|
|
28
|
+
}, {
|
|
29
|
+
default: a(() => [
|
|
30
|
+
u(t(e(v), null, {
|
|
31
|
+
default: a(() => [
|
|
32
|
+
t(e(h), {
|
|
33
|
+
id: o.tag.id
|
|
34
|
+
}, {
|
|
35
|
+
default: a(() => [
|
|
36
|
+
t(e(k), {
|
|
37
|
+
id: o.headerId,
|
|
38
|
+
level: 2
|
|
39
|
+
}, {
|
|
40
|
+
default: a(() => [
|
|
41
|
+
m(s(o.tag.title) + " ", 1),
|
|
42
|
+
o.isCollapsed ? (d(), r(C, { key: 0 }, {
|
|
43
|
+
default: a(() => l[0] || (l[0] = [
|
|
44
|
+
m(" (Collapsed)")
|
|
45
|
+
])),
|
|
46
|
+
_: 1,
|
|
47
|
+
__: [0]
|
|
48
|
+
})) : n("", !0)
|
|
49
|
+
]),
|
|
50
|
+
_: 1
|
|
51
|
+
}, 8, ["id"])
|
|
52
|
+
]),
|
|
53
|
+
_: 1
|
|
54
|
+
}, 8, ["id"])
|
|
61
55
|
]),
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
default: a(() => [
|
|
66
|
-
t(e(I), null, {
|
|
67
|
-
default: a(() => [
|
|
68
|
-
t(e(u), null, {
|
|
69
|
-
default: a(() => {
|
|
70
|
-
var n;
|
|
71
|
-
return [
|
|
72
|
-
t(e(S), {
|
|
73
|
-
clamp: o.isCollapsed ? 7 : void 0,
|
|
74
|
-
value: ((n = o.tag.tag) == null ? void 0 : n.description) ?? "",
|
|
75
|
-
withImages: ""
|
|
76
|
-
}, null, 8, ["clamp", "value"])
|
|
77
|
-
];
|
|
78
|
-
}),
|
|
79
|
-
_: 1
|
|
80
|
-
}),
|
|
81
|
-
t(e(u), null, {
|
|
82
|
-
default: a(() => [
|
|
83
|
-
t(e(L), { tag: o.tag }, null, 8, ["tag"])
|
|
84
|
-
]),
|
|
85
|
-
_: 1
|
|
86
|
-
})
|
|
87
|
-
]),
|
|
88
|
-
_: 1
|
|
89
|
-
})
|
|
90
|
-
]),
|
|
91
|
-
_: 1
|
|
92
|
-
}, 8, ["loading"]),
|
|
93
|
-
t(e(N), {
|
|
94
|
-
value: o.tag.tag
|
|
95
|
-
}, null, 8, ["value"])
|
|
56
|
+
_: 1
|
|
57
|
+
}, 512), [
|
|
58
|
+
[g, !e(i).isLoading]
|
|
96
59
|
]),
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
60
|
+
t(e(w), {
|
|
61
|
+
loading: e(i).isLoading
|
|
62
|
+
}, {
|
|
63
|
+
default: a(() => [
|
|
64
|
+
t(e(y), null, {
|
|
65
|
+
default: a(() => [
|
|
66
|
+
t(e(p), null, {
|
|
67
|
+
default: a(() => [
|
|
68
|
+
t(e(c), {
|
|
69
|
+
clamp: o.isCollapsed ? 7 : void 0,
|
|
70
|
+
value: o.tag.tag?.description ?? "",
|
|
71
|
+
withImages: ""
|
|
72
|
+
}, null, 8, ["clamp", "value"])
|
|
73
|
+
]),
|
|
74
|
+
_: 1
|
|
75
|
+
}),
|
|
76
|
+
t(e(p), null, {
|
|
77
|
+
default: a(() => [
|
|
78
|
+
t(e(B), { tag: o.tag }, null, 8, ["tag"])
|
|
79
|
+
]),
|
|
80
|
+
_: 1
|
|
81
|
+
})
|
|
82
|
+
]),
|
|
83
|
+
_: 1
|
|
84
|
+
})
|
|
85
|
+
]),
|
|
86
|
+
_: 1
|
|
87
|
+
}, 8, ["loading"]),
|
|
88
|
+
t(e(I), {
|
|
89
|
+
value: o.tag.tag
|
|
90
|
+
}, null, 8, ["value"])
|
|
91
|
+
]),
|
|
92
|
+
_: 1
|
|
93
|
+
}, 8, ["id", "label"])) : n("", !0);
|
|
100
94
|
}
|
|
101
95
|
});
|
|
102
96
|
export {
|
|
103
|
-
|
|
97
|
+
z as default
|
|
104
98
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Lazy.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Lazy/Lazy.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Lazy.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Lazy/Lazy.vue"],"names":[],"mappings":"AAqFA,KAAK,WAAW,GAAG;IAEjB,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX,MAAM,CAAC,EAAE,OAAO,CAAA;IAEhB,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB,IAAI,CAAC,EAAE,OAAO,CAAA;CACf,CAAC;AA8DF,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAmB/C,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -13,8 +13,8 @@ const s = 300, T = /* @__PURE__ */ o({
|
|
|
13
13
|
typeof window > "u" || ("requestIdleCallback" in window ? setTimeout(() => window.requestIdleCallback(t), e.lazyTimeout) : setTimeout(() => {
|
|
14
14
|
a(() => {
|
|
15
15
|
t();
|
|
16
|
-
})
|
|
17
|
-
}));
|
|
16
|
+
});
|
|
17
|
+
}, e.lazyTimeout ?? s));
|
|
18
18
|
}, l = u(!e.isLazy);
|
|
19
19
|
return d.emit({ loading: e.id, save: i }), e.isLazy ? n(() => {
|
|
20
20
|
l.value = !0, e.id && a(() => d.emit({ loaded: e.id, save: i }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MobileHeader.vue.d.ts","sourceRoot":"","sources":["../../src/components/MobileHeader.vue"],"names":[],"mappings":"AAsEA,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,MAAM,CAAA;CACnB,CAAC;
|
|
1
|
+
{"version":3,"file":"MobileHeader.vue.d.ts","sourceRoot":"","sources":["../../src/components/MobileHeader.vue"],"names":[],"mappings":"AAsEA,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,MAAM,CAAA;CACnB,CAAC;AA4DF,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAuB/C,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./MobileHeader.vue2.js";
|
|
2
|
-
|
|
2
|
+
/* empty css */
|
|
3
3
|
import r from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-ba06ff2c"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import { defineComponent as t, createElementBlock as a, openBlock as
|
|
1
|
+
import { defineComponent as t, createElementBlock as a, openBlock as c, createVNode as i, createElementVNode as s, unref as e, toDisplayString as l, renderSlot as d } from "vue";
|
|
2
2
|
import { ScalarIconButton as m } from "@scalar/components";
|
|
3
|
-
import {
|
|
4
|
-
|
|
3
|
+
import { ScalarIconX as p, ScalarIconList as u } from "@scalar/icons";
|
|
4
|
+
import { useSidebar as b } from "../features/sidebar/hooks/useSidebar.js";
|
|
5
|
+
const _ = { class: "references-mobile-header t-doc__header" }, f = { class: "references-mobile-breadcrumbs" }, S = { class: "references-mobile-header-actions" }, M = /* @__PURE__ */ t({
|
|
5
6
|
__name: "MobileHeader",
|
|
6
7
|
props: {
|
|
7
8
|
breadcrumb: {}
|
|
8
9
|
},
|
|
9
|
-
setup(
|
|
10
|
-
const { isSidebarOpen:
|
|
11
|
-
return (r, n) => (
|
|
12
|
-
|
|
13
|
-
icon: o
|
|
14
|
-
label: o
|
|
10
|
+
setup(h) {
|
|
11
|
+
const { isSidebarOpen: o } = b();
|
|
12
|
+
return (r, n) => (c(), a("div", _, [
|
|
13
|
+
i(e(m), {
|
|
14
|
+
icon: e(o) ? e(p) : e(u),
|
|
15
|
+
label: e(o) ? "Close Menu" : "Open Menu",
|
|
15
16
|
size: "md",
|
|
16
|
-
onClick: n[0] || (n[0] = (
|
|
17
|
+
onClick: n[0] || (n[0] = (v) => o.value = !e(o))
|
|
17
18
|
}, null, 8, ["icon", "label"]),
|
|
18
|
-
s("span",
|
|
19
|
-
s("div",
|
|
19
|
+
s("span", f, l(r.breadcrumb), 1),
|
|
20
|
+
s("div", S, [
|
|
20
21
|
d(r.$slots, "actions", {}, void 0, !0)
|
|
21
22
|
])
|
|
22
23
|
]));
|
|
@@ -1,60 +1,54 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarCard as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as m, computed as p, createBlock as l, createCommentVNode as u, openBlock as a, unref as r, withCtx as t, createVNode as o, createTextVNode as i, toDisplayString as s, createElementVNode as f, createElementBlock as h, Fragment as g, renderList as k } from "vue";
|
|
2
|
+
import { ScalarCard as _, ScalarCardHeader as C, ScalarCardSection as S } from "@scalar/components";
|
|
3
|
+
import b from "../ScreenReader.vue.js";
|
|
4
|
+
import N from "./OperationsListItem.vue.js";
|
|
5
|
+
const V = ["aria-label"], E = /* @__PURE__ */ m({
|
|
6
6
|
__name: "OperationsList",
|
|
7
7
|
props: {
|
|
8
8
|
tag: {}
|
|
9
9
|
},
|
|
10
|
-
setup(
|
|
11
|
-
const
|
|
12
|
-
() =>
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
(a) => "operation" in a || "webhook" in a
|
|
16
|
-
);
|
|
17
|
-
}
|
|
10
|
+
setup(d) {
|
|
11
|
+
const c = p(
|
|
12
|
+
() => d.tag.children?.filter(
|
|
13
|
+
(e) => "operation" in e || "webhook" in e
|
|
14
|
+
)
|
|
18
15
|
);
|
|
19
|
-
return (e,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
_: 1
|
|
54
|
-
})) : h("", !0);
|
|
55
|
-
};
|
|
16
|
+
return (e, y) => e.tag.children?.length > 0 ? (a(), l(r(_), {
|
|
17
|
+
key: 0,
|
|
18
|
+
class: "endpoints-card"
|
|
19
|
+
}, {
|
|
20
|
+
default: t(() => [
|
|
21
|
+
o(r(C), { muted: "" }, {
|
|
22
|
+
default: t(() => [
|
|
23
|
+
o(b, null, {
|
|
24
|
+
default: t(() => [
|
|
25
|
+
i(s(e.tag.title), 1)
|
|
26
|
+
]),
|
|
27
|
+
_: 1
|
|
28
|
+
}),
|
|
29
|
+
i(" " + s(e.tag.isWebhooks ? "Webhooks" : "Operations"), 1)
|
|
30
|
+
]),
|
|
31
|
+
_: 1
|
|
32
|
+
}),
|
|
33
|
+
o(r(S), { class: "custom-scroll max-h-[60vh]" }, {
|
|
34
|
+
default: t(() => [
|
|
35
|
+
f("ul", {
|
|
36
|
+
"aria-label": `${e.tag.title} endpoints`,
|
|
37
|
+
class: "endpoints"
|
|
38
|
+
}, [
|
|
39
|
+
(a(!0), h(g, null, k(c.value, (n) => (a(), l(N, {
|
|
40
|
+
key: n.id,
|
|
41
|
+
operation: n
|
|
42
|
+
}, null, 8, ["operation"]))), 128))
|
|
43
|
+
], 8, V)
|
|
44
|
+
]),
|
|
45
|
+
_: 1
|
|
46
|
+
})
|
|
47
|
+
]),
|
|
48
|
+
_: 1
|
|
49
|
+
})) : u("", !0);
|
|
56
50
|
}
|
|
57
51
|
});
|
|
58
52
|
export {
|
|
59
|
-
|
|
53
|
+
E as default
|
|
60
54
|
};
|
|
@@ -1,27 +1,26 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import { useNavState as
|
|
4
|
-
import { useSidebar as
|
|
5
|
-
const v = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as l, createBlock as d, openBlock as c, withCtx as m, renderSlot as p } from "vue";
|
|
2
|
+
import f from "../IntersectionObserver.vue.js";
|
|
3
|
+
import { useNavState as u } from "../../hooks/useNavState.js";
|
|
4
|
+
import { useSidebar as S } from "../../features/sidebar/hooks/useSidebar.js";
|
|
5
|
+
const v = /* @__PURE__ */ l({
|
|
6
6
|
__name: "Section",
|
|
7
7
|
props: {
|
|
8
8
|
id: {},
|
|
9
9
|
label: {}
|
|
10
10
|
},
|
|
11
|
-
setup(
|
|
12
|
-
const e =
|
|
13
|
-
function
|
|
14
|
-
|
|
15
|
-
!e.label || !n.value || (s(e.id ?? ""), ((t = e.id) != null && t.startsWith("model") || (o = e.id) != null && o.startsWith("webhook")) && a(r(e.id), !0));
|
|
11
|
+
setup(o) {
|
|
12
|
+
const e = o, { getSectionId: i, isIntersectionEnabled: r, replaceUrlState: n } = u(), { setCollapsedSidebarItem: s } = S();
|
|
13
|
+
function a() {
|
|
14
|
+
!e.label || !r.value || (n(e.id ?? ""), (e.id?.startsWith("model") || e.id?.startsWith("webhook")) && s(i(e.id), !0));
|
|
16
15
|
}
|
|
17
|
-
return (t,
|
|
16
|
+
return (t, _) => (c(), d(f, {
|
|
18
17
|
is: "section",
|
|
19
18
|
id: t.id,
|
|
20
19
|
class: "section",
|
|
21
|
-
onIntersecting:
|
|
20
|
+
onIntersecting: a
|
|
22
21
|
}, {
|
|
23
|
-
default:
|
|
24
|
-
|
|
22
|
+
default: m(() => [
|
|
23
|
+
p(t.$slots, "default", {}, void 0, !0)
|
|
25
24
|
]),
|
|
26
25
|
_: 3
|
|
27
26
|
}, 8, ["id"]));
|
|
@@ -1,64 +1,63 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Disclosure as
|
|
3
|
-
import { ScalarIconCaretRight as
|
|
4
|
-
import { useElementHover as
|
|
5
|
-
import { useNavState as
|
|
6
|
-
import
|
|
7
|
-
import { useSidebar as
|
|
8
|
-
const
|
|
1
|
+
import { defineComponent as k, ref as $, createBlock as C, openBlock as c, withCtx as s, createVNode as n, unref as o, normalizeClass as d, createElementVNode as l, createElementBlock as u, createCommentVNode as m, renderSlot as i } from "vue";
|
|
2
|
+
import { Disclosure as B, DisclosureButton as I, DisclosurePanel as _ } from "@headlessui/vue";
|
|
3
|
+
import { ScalarIconCaretRight as y } from "@scalar/icons";
|
|
4
|
+
import { useElementHover as E } from "@vueuse/core";
|
|
5
|
+
import { useNavState as N } from "../../hooks/useNavState.js";
|
|
6
|
+
import g from "../IntersectionObserver.vue.js";
|
|
7
|
+
import { useSidebar as w } from "../../features/sidebar/hooks/useSidebar.js";
|
|
8
|
+
const D = { class: "section-accordion-button-content" }, V = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "section-accordion-button-actions"
|
|
11
|
-
},
|
|
11
|
+
}, z = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "section-accordion-description"
|
|
14
|
-
},
|
|
14
|
+
}, H = { class: "section-accordion-content-card" }, G = /* @__PURE__ */ k({
|
|
15
15
|
__name: "SectionAccordion",
|
|
16
16
|
props: {
|
|
17
17
|
id: {},
|
|
18
18
|
transparent: { type: Boolean }
|
|
19
19
|
},
|
|
20
20
|
setup(e) {
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
!e.id || !h.value || (b(e.id), ((t = e.id) != null && t.startsWith("model") || (c = e.id) != null && c.startsWith("webhook")) && S(v(e.id), !0));
|
|
21
|
+
const r = $(), f = E(r), { getSectionId: p, isIntersectionEnabled: v, replaceUrlState: h } = N(), { setCollapsedSidebarItem: b } = w(), S = () => {
|
|
22
|
+
!e.id || !v.value || (h(e.id), (e.id?.startsWith("model") || e.id?.startsWith("webhook")) && b(p(e.id), !0));
|
|
24
23
|
};
|
|
25
|
-
return (t,
|
|
24
|
+
return (t, W) => (c(), C(g, {
|
|
26
25
|
id: t.id,
|
|
27
26
|
class: "section-wrapper",
|
|
28
|
-
onIntersecting:
|
|
27
|
+
onIntersecting: S
|
|
29
28
|
}, {
|
|
30
29
|
default: s(() => [
|
|
31
|
-
n(o(
|
|
30
|
+
n(o(B), {
|
|
32
31
|
as: "section",
|
|
33
|
-
class:
|
|
32
|
+
class: d(["section-accordion", { "section-accordion-transparent": t.transparent }])
|
|
34
33
|
}, {
|
|
35
|
-
default: s(({ open:
|
|
36
|
-
n(o(
|
|
34
|
+
default: s(({ open: a }) => [
|
|
35
|
+
n(o(I), {
|
|
37
36
|
ref_key: "button",
|
|
38
|
-
ref:
|
|
37
|
+
ref: r,
|
|
39
38
|
class: "section-accordion-button"
|
|
40
39
|
}, {
|
|
41
40
|
default: s(() => [
|
|
42
|
-
|
|
41
|
+
l("div", D, [
|
|
43
42
|
i(t.$slots, "title", {}, void 0, !0)
|
|
44
43
|
]),
|
|
45
|
-
t.$slots.actions ? (
|
|
44
|
+
t.$slots.actions ? (c(), u("div", V, [
|
|
46
45
|
i(t.$slots, "actions", {
|
|
47
|
-
active: o(
|
|
46
|
+
active: o(f) || a
|
|
48
47
|
}, void 0, !0)
|
|
49
|
-
])) :
|
|
50
|
-
n(o(
|
|
51
|
-
class:
|
|
48
|
+
])) : m("", !0),
|
|
49
|
+
n(o(y), {
|
|
50
|
+
class: d(["section-accordion-chevron size-4.5 transition-transform", { "rotate-90": a }])
|
|
52
51
|
}, null, 8, ["class"])
|
|
53
52
|
]),
|
|
54
53
|
_: 2
|
|
55
54
|
}, 1536),
|
|
56
|
-
n(o(
|
|
55
|
+
n(o(_), { class: "section-accordion-content" }, {
|
|
57
56
|
default: s(() => [
|
|
58
|
-
t.$slots.description ? (
|
|
57
|
+
t.$slots.description ? (c(), u("div", z, [
|
|
59
58
|
i(t.$slots, "description", {}, void 0, !0)
|
|
60
|
-
])) :
|
|
61
|
-
|
|
59
|
+
])) : m("", !0),
|
|
60
|
+
l("div", H, [
|
|
62
61
|
i(t.$slots, "default", {}, void 0, !0)
|
|
63
62
|
])
|
|
64
63
|
]),
|