@scalar/api-reference 1.35.5 → 1.35.6
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 +21 -0
- package/dist/browser/standalone.js +18150 -18465
- 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/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.js +16 -16
- 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 +1 -1
- 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.js +68 -75
- 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.js +1 -1
- package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue2.js +46 -49
- 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.js +1 -1
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue2.js +106 -119
- 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.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 +22 -22
- 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,62 +1,59 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { useConfig as
|
|
5
|
-
import { downloadDocument as
|
|
6
|
-
const
|
|
1
|
+
import { defineComponent as D, computed as b, createElementBlock as t, createCommentVNode as l, unref as e, openBlock as d, normalizeClass as v, withModifiers as i, createElementVNode as m, createVNode as s, withCtx as p, createTextVNode as w } from "vue";
|
|
2
|
+
import k from "github-slugger";
|
|
3
|
+
import f from "../../../../components/Badge/Badge.vue.js";
|
|
4
|
+
import { useConfig as x } from "../../../../hooks/useConfig.js";
|
|
5
|
+
import { downloadDocument as C } from "../../../../libs/download.js";
|
|
6
|
+
const B = /* @__PURE__ */ D({
|
|
7
7
|
__name: "DownloadLink",
|
|
8
8
|
props: {
|
|
9
9
|
title: {},
|
|
10
10
|
getOriginalDocument: { type: Function }
|
|
11
11
|
},
|
|
12
12
|
setup(r) {
|
|
13
|
-
const n =
|
|
14
|
-
|
|
13
|
+
const n = x(), g = new k(), c = b(() => g.slug(r.title ?? "")), u = (a) => {
|
|
14
|
+
C(r.getOriginalDocument(), c.value, a);
|
|
15
15
|
};
|
|
16
|
-
return (a, o) => {
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
return (a, o) => e(n)?.documentDownloadType !== "none" ? (d(), t("div", {
|
|
17
|
+
key: 0,
|
|
18
|
+
class: v(["download-container group", {
|
|
19
|
+
"download-both": e(n)?.documentDownloadType === "both"
|
|
20
|
+
}])
|
|
21
|
+
}, [
|
|
22
|
+
e(n)?.documentDownloadType === "json" || e(n)?.documentDownloadType === "both" ? (d(), t("button", {
|
|
19
23
|
key: 0,
|
|
20
|
-
class:
|
|
21
|
-
|
|
22
|
-
|
|
24
|
+
class: "download-button",
|
|
25
|
+
type: "button",
|
|
26
|
+
variant: "ghost",
|
|
27
|
+
onClick: o[0] || (o[0] = i((y) => u("json"), ["prevent"]))
|
|
23
28
|
}, [
|
|
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
|
-
b("yaml")
|
|
51
|
-
])),
|
|
52
|
-
_: 1,
|
|
53
|
-
__: [4]
|
|
54
|
-
})
|
|
55
|
-
])) : l("", !0)
|
|
56
|
-
], 2)) : l("", !0);
|
|
57
|
-
};
|
|
29
|
+
o[3] || (o[3] = m("span", null, " Download OpenAPI Document ", -1)),
|
|
30
|
+
s(f, { class: "extension hidden group-hover:flex" }, {
|
|
31
|
+
default: p(() => o[2] || (o[2] = [
|
|
32
|
+
w("json")
|
|
33
|
+
])),
|
|
34
|
+
_: 1,
|
|
35
|
+
__: [2]
|
|
36
|
+
})
|
|
37
|
+
])) : l("", !0),
|
|
38
|
+
e(n)?.documentDownloadType === "yaml" || e(n)?.documentDownloadType === "both" ? (d(), t("button", {
|
|
39
|
+
key: 1,
|
|
40
|
+
class: "download-button",
|
|
41
|
+
type: "button",
|
|
42
|
+
variant: "ghost",
|
|
43
|
+
onClick: o[1] || (o[1] = i((y) => u("yaml"), ["prevent"]))
|
|
44
|
+
}, [
|
|
45
|
+
o[5] || (o[5] = m("span", null, " Download OpenAPI Document ", -1)),
|
|
46
|
+
s(f, { class: "extension hidden group-hover:flex" }, {
|
|
47
|
+
default: p(() => o[4] || (o[4] = [
|
|
48
|
+
w("yaml")
|
|
49
|
+
])),
|
|
50
|
+
_: 1,
|
|
51
|
+
__: [4]
|
|
52
|
+
})
|
|
53
|
+
])) : l("", !0)
|
|
54
|
+
], 2)) : l("", !0);
|
|
58
55
|
}
|
|
59
56
|
});
|
|
60
57
|
export {
|
|
61
|
-
|
|
58
|
+
B as default
|
|
62
59
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createElementBlock as e, openBlock as o, renderSlot as r } from "vue";
|
|
2
|
-
|
|
2
|
+
/* empty css */
|
|
3
3
|
import n from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
const c = {}, d = { class: "introduction-card-item" };
|
|
5
5
|
function s(t, a) {
|
|
@@ -1,18 +1,18 @@
|
|
|
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
|
-
const
|
|
1
|
+
import { defineComponent as m, onMounted as u, createBlock as t, openBlock as r, unref as n, withCtx as i, createVNode as e, renderSlot as l, createElementVNode as a, createTextVNode as c, toDisplayString as p, createCommentVNode as g } from "vue";
|
|
2
|
+
import v from "./DownloadLink.vue.js";
|
|
3
|
+
import D from "./InfoDescription.vue.js";
|
|
4
|
+
import S from "./InfoLinks.vue.js";
|
|
5
|
+
import V from "./InfoVersion.vue.js";
|
|
6
|
+
import _ from "./OpenApiVersion.vue.js";
|
|
7
|
+
import y from "../../../../components/Section/SectionContainer.vue.js";
|
|
8
|
+
import C from "../../../../components/Section/Section.vue.js";
|
|
9
|
+
import $ from "../../../../components/Section/SectionContent.vue.js";
|
|
10
|
+
import k from "../../../../components/Section/SectionHeader.vue.js";
|
|
11
|
+
import L from "../../../../components/Section/SectionHeaderTag.vue.js";
|
|
12
|
+
import h from "../../../../components/Section/SectionColumns.vue.js";
|
|
13
|
+
import s from "../../../../components/Section/SectionColumn.vue.js";
|
|
14
|
+
import d from "../../../../features/specification-extension/SpecificationExtension.vue2.js";
|
|
15
|
+
const E = { class: "flex gap-1.5" }, N = { class: "sticky-cards" }, K = /* @__PURE__ */ m({
|
|
16
16
|
__name: "IntroductionLayout",
|
|
17
17
|
props: {
|
|
18
18
|
oasVersion: {},
|
|
@@ -25,91 +25,76 @@ const I = { class: "flex gap-1.5" }, T = { class: "sticky-cards" }, Y = /* @__PU
|
|
|
25
25
|
onLoaded: { type: Function },
|
|
26
26
|
id: {}
|
|
27
27
|
},
|
|
28
|
-
setup(
|
|
29
|
-
return
|
|
30
|
-
var o;
|
|
31
|
-
return (o = l.onLoaded) == null ? void 0 : o.call(l);
|
|
32
|
-
}), (o, z) => (u(), m(n(N), null, {
|
|
28
|
+
setup(f) {
|
|
29
|
+
return u(() => f.onLoaded?.()), (o, O) => (r(), t(n(y), null, {
|
|
33
30
|
default: i(() => [
|
|
34
|
-
e(n(
|
|
31
|
+
e(n(C), {
|
|
35
32
|
id: o.id,
|
|
36
33
|
class: "introduction-section z-1 gap-12"
|
|
37
34
|
}, {
|
|
38
|
-
default: i(() =>
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
35
|
+
default: i(() => [
|
|
36
|
+
e(n($), {
|
|
37
|
+
loading: o.isLoading ?? (!o.info?.description && !o.info?.title)
|
|
38
|
+
}, {
|
|
39
|
+
default: i(() => [
|
|
40
|
+
a("div", E, [
|
|
41
|
+
e(V, {
|
|
42
|
+
version: o.info?.version
|
|
43
|
+
}, null, 8, ["version"]),
|
|
44
|
+
e(_, { oasVersion: o.oasVersion }, null, 8, ["oasVersion"])
|
|
45
|
+
]),
|
|
46
|
+
e(n(k), {
|
|
47
|
+
loading: !o.info?.title,
|
|
48
|
+
tight: ""
|
|
49
|
+
}, {
|
|
50
|
+
links: i(() => [
|
|
51
|
+
e(S, {
|
|
52
|
+
externalDocs: o.externalDocs,
|
|
53
|
+
info: o.info
|
|
54
|
+
}, null, 8, ["externalDocs", "info"])
|
|
55
|
+
]),
|
|
56
|
+
default: i(() => [
|
|
57
|
+
e(n(L), { level: 1 }, {
|
|
58
|
+
default: i(() => [
|
|
59
|
+
c(p(o.info?.title), 1)
|
|
62
60
|
]),
|
|
61
|
+
_: 1
|
|
62
|
+
})
|
|
63
|
+
]),
|
|
64
|
+
_: 1
|
|
65
|
+
}, 8, ["loading"]),
|
|
66
|
+
e(n(h), null, {
|
|
67
|
+
default: i(() => [
|
|
68
|
+
e(n(s), null, {
|
|
63
69
|
default: i(() => [
|
|
64
|
-
e(
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
_: 1
|
|
72
|
-
})
|
|
70
|
+
e(v, {
|
|
71
|
+
getOriginalDocument: o.getOriginalDocument,
|
|
72
|
+
title: o.info?.title
|
|
73
|
+
}, null, 8, ["getOriginalDocument", "title"]),
|
|
74
|
+
e(D, {
|
|
75
|
+
description: o.info?.description
|
|
76
|
+
}, null, 8, ["description"])
|
|
73
77
|
]),
|
|
74
78
|
_: 1
|
|
75
|
-
}
|
|
76
|
-
|
|
79
|
+
}),
|
|
80
|
+
o.$slots.aside ? (r(), t(n(s), { key: 0 }, {
|
|
77
81
|
default: i(() => [
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
return [
|
|
82
|
-
e($, {
|
|
83
|
-
getOriginalDocument: o.getOriginalDocument,
|
|
84
|
-
title: (t = o.info) == null ? void 0 : t.title
|
|
85
|
-
}, null, 8, ["getOriginalDocument", "title"]),
|
|
86
|
-
e(k, {
|
|
87
|
-
description: (f = o.info) == null ? void 0 : f.description
|
|
88
|
-
}, null, 8, ["description"])
|
|
89
|
-
];
|
|
90
|
-
}),
|
|
91
|
-
_: 1
|
|
92
|
-
}),
|
|
93
|
-
o.$slots.aside ? (u(), m(n(g), { key: 0 }, {
|
|
94
|
-
default: i(() => [
|
|
95
|
-
p("div", T, [
|
|
96
|
-
c(o.$slots, "aside", {}, void 0, !0)
|
|
97
|
-
])
|
|
98
|
-
]),
|
|
99
|
-
_: 3
|
|
100
|
-
})) : C("", !0)
|
|
82
|
+
a("div", N, [
|
|
83
|
+
l(o.$slots, "aside", {}, void 0, !0)
|
|
84
|
+
])
|
|
101
85
|
]),
|
|
102
86
|
_: 3
|
|
103
|
-
}),
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
];
|
|
87
|
+
})) : g("", !0)
|
|
88
|
+
]),
|
|
89
|
+
_: 3
|
|
107
90
|
}),
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
91
|
+
e(n(d), { value: o.documentExtensions }, null, 8, ["value"]),
|
|
92
|
+
e(n(d), { value: o.infoExtensions }, null, 8, ["value"])
|
|
93
|
+
]),
|
|
94
|
+
_: 3
|
|
95
|
+
}, 8, ["loading"]),
|
|
96
|
+
l(o.$slots, "after", {}, void 0, !0)
|
|
97
|
+
]),
|
|
113
98
|
_: 3
|
|
114
99
|
}, 8, ["id"])
|
|
115
100
|
]),
|
|
@@ -118,5 +103,5 @@ const I = { class: "flex gap-1.5" }, T = { class: "sticky-cards" }, Y = /* @__PU
|
|
|
118
103
|
}
|
|
119
104
|
});
|
|
120
105
|
export {
|
|
121
|
-
|
|
106
|
+
K as default
|
|
122
107
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as u, mergeModels as c, useModel as p, computed as
|
|
2
|
-
import { ScalarListbox as
|
|
3
|
-
import { ScalarIconCaretDown as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as u, mergeModels as c, useModel as p, computed as n, createBlock as f, openBlock as x, unref as l, withCtx as r, createVNode as i, createElementVNode as v, toDisplayString as w } from "vue";
|
|
2
|
+
import { ScalarListbox as V, ScalarButton as b } from "@scalar/components";
|
|
3
|
+
import { ScalarIconCaretDown as g } from "@scalar/icons";
|
|
4
|
+
const h = { class: "min-w-0 flex-1 truncate" }, k = /* @__PURE__ */ u({
|
|
5
5
|
__name: "ExamplePicker",
|
|
6
6
|
props: /* @__PURE__ */ c({
|
|
7
7
|
examples: { default: () => ({}) }
|
|
@@ -12,40 +12,37 @@ const v = { class: "min-w-0 flex-1 truncate" }, k = /* @__PURE__ */ u({
|
|
|
12
12
|
modelModifiers: {}
|
|
13
13
|
}),
|
|
14
14
|
emits: ["update:modelValue"],
|
|
15
|
-
setup(
|
|
16
|
-
const
|
|
17
|
-
() => Object.entries(
|
|
15
|
+
setup(o) {
|
|
16
|
+
const s = p(o, "modelValue"), m = n(
|
|
17
|
+
() => Object.entries(o.examples).map(([e, t]) => ({
|
|
18
18
|
id: e,
|
|
19
|
-
label:
|
|
19
|
+
label: t?.summary ?? e
|
|
20
20
|
}))
|
|
21
|
-
),
|
|
22
|
-
get: () =>
|
|
23
|
-
set: (e) =>
|
|
21
|
+
), a = n({
|
|
22
|
+
get: () => m.value.find(({ id: e }) => e === s.value),
|
|
23
|
+
set: (e) => s.value = e?.id ?? ""
|
|
24
24
|
});
|
|
25
|
-
return (e, t) => (x(), f(
|
|
26
|
-
modelValue:
|
|
27
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
25
|
+
return (e, t) => (x(), f(l(V), {
|
|
26
|
+
modelValue: a.value,
|
|
27
|
+
"onUpdate:modelValue": t[0] || (t[0] = (d) => a.value = d),
|
|
28
28
|
class: "w-fit min-w-32",
|
|
29
|
-
options:
|
|
29
|
+
options: m.value,
|
|
30
30
|
placement: "bottom-start"
|
|
31
31
|
}, {
|
|
32
|
-
default:
|
|
33
|
-
|
|
32
|
+
default: r(() => [
|
|
33
|
+
i(l(b), {
|
|
34
34
|
class: "text-c-2 hover:text-c-1 flex h-full w-fit min-w-0 gap-1.5 px-1.5 py-0.75 text-base font-normal",
|
|
35
35
|
"data-testid": "example-picker",
|
|
36
36
|
fullWidth: "",
|
|
37
37
|
variant: "ghost"
|
|
38
38
|
}, {
|
|
39
|
-
default:
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
})
|
|
47
|
-
];
|
|
48
|
-
}),
|
|
39
|
+
default: r(() => [
|
|
40
|
+
v("div", h, w(a.value?.label ?? "Select an example"), 1),
|
|
41
|
+
i(l(g), {
|
|
42
|
+
class: "ui-open:rotate-180 mt-0.25 size-3 transition-transform duration-100",
|
|
43
|
+
weight: "bold"
|
|
44
|
+
})
|
|
45
|
+
]),
|
|
49
46
|
_: 1
|
|
50
47
|
})
|
|
51
48
|
]),
|