@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,5 +1,5 @@
|
|
|
1
1
|
import { createElementBlock as c, openBlock as t, createElementVNode as s, renderSlot as r } from "vue";
|
|
2
|
-
|
|
2
|
+
/* empty css */
|
|
3
3
|
import o from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
const n = {}, d = { class: "references-classic-header-container" }, a = { class: "references-classic-header" }, i = { class: "references-classic-header-content" };
|
|
5
5
|
function l(e, _) {
|
|
@@ -1,195 +1,171 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useWorkspace as
|
|
3
|
-
import { ScalarErrorBoundary as
|
|
4
|
-
import { getSlugUid as
|
|
5
|
-
import
|
|
6
|
-
import { useFreezing as
|
|
7
|
-
import { useNavState as
|
|
8
|
-
import { generateClientOptions as
|
|
9
|
-
import { DEFAULT_INTRODUCTION_SLUG as
|
|
10
|
-
import { getXKeysFromObject as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
const
|
|
1
|
+
import { defineComponent as I, computed as c, createElementBlock as L, openBlock as i, Fragment as V, createVNode as r, createElementVNode as $, unref as t, renderSlot as m, createBlock as a, createCommentVNode as l, withCtx as o } from "vue";
|
|
2
|
+
import { useWorkspace as b, useActiveEntities as N } from "@scalar/api-client/store";
|
|
3
|
+
import { ScalarErrorBoundary as d } from "@scalar/components";
|
|
4
|
+
import { getSlugUid as F } from "@scalar/oas-utils/transforms";
|
|
5
|
+
import B from "./IntroductionSection.vue.js";
|
|
6
|
+
import { useFreezing as j } from "../../hooks/useFreezing.js";
|
|
7
|
+
import { useNavState as T } from "../../hooks/useNavState.js";
|
|
8
|
+
import { generateClientOptions as W } from "../../v2/blocks/scalar-request-example-block/helpers/generate-client-options.js";
|
|
9
|
+
import { DEFAULT_INTRODUCTION_SLUG as z } from "../../features/traverse-schema/helpers/traverse-description.js";
|
|
10
|
+
import { getXKeysFromObject as g } from "../../features/specification-extension/helpers.js";
|
|
11
|
+
import G from "../SectionFlare/SectionFlare.vue.js";
|
|
12
|
+
import H from "../../v2/blocks/scalar-info-block/components/InfoBlock.vue.js";
|
|
13
|
+
import f from "../../v2/blocks/scalar-info-block/components/IntroductionCardItem.vue.js";
|
|
14
|
+
import K from "../../v2/blocks/scalar-server-selector-block/components/ServerSelector.vue.js";
|
|
15
|
+
import M from "../../v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js";
|
|
16
|
+
import R from "../../v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.js";
|
|
17
|
+
import X from "./Operations/TraversedEntryContainer.vue.js";
|
|
18
|
+
import q from "./Models/Models.vue.js";
|
|
19
|
+
const J = { class: "narrow-references-container" }, fe = /* @__PURE__ */ I({
|
|
20
20
|
__name: "Content",
|
|
21
21
|
props: {
|
|
22
22
|
config: {},
|
|
23
23
|
store: {}
|
|
24
24
|
},
|
|
25
|
-
setup(
|
|
26
|
-
|
|
27
|
-
const
|
|
28
|
-
() =>
|
|
29
|
-
), { getHeadingId:
|
|
30
|
-
() =>
|
|
31
|
-
slug:
|
|
25
|
+
setup(s) {
|
|
26
|
+
j();
|
|
27
|
+
const u = c(
|
|
28
|
+
() => W(s.config.hiddenClients)
|
|
29
|
+
), { getHeadingId: k } = T(), S = c(
|
|
30
|
+
() => k({
|
|
31
|
+
slug: z,
|
|
32
32
|
depth: 1,
|
|
33
33
|
value: "Introduction"
|
|
34
34
|
})
|
|
35
|
-
),
|
|
36
|
-
() =>
|
|
37
|
-
),
|
|
38
|
-
() =>
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
} = z(), s = l(() => {
|
|
48
|
-
if (a.config.slug) {
|
|
49
|
-
const e = A[G(a.config.slug)];
|
|
35
|
+
), h = c(
|
|
36
|
+
() => g(s.store.workspace.activeDocument)
|
|
37
|
+
), w = c(
|
|
38
|
+
() => g(s.store.workspace.activeDocument?.info)
|
|
39
|
+
), { collections: D, securitySchemes: y, servers: v } = b(), {
|
|
40
|
+
activeCollection: C,
|
|
41
|
+
activeEnvVariables: E,
|
|
42
|
+
activeEnvironment: O,
|
|
43
|
+
activeWorkspace: p
|
|
44
|
+
} = N(), n = c(() => {
|
|
45
|
+
if (s.config.slug) {
|
|
46
|
+
const e = D[F(s.config.slug)];
|
|
50
47
|
if (e)
|
|
51
48
|
return e;
|
|
52
49
|
}
|
|
53
|
-
return
|
|
54
|
-
}),
|
|
55
|
-
if (
|
|
56
|
-
if (
|
|
57
|
-
const e =
|
|
50
|
+
return C.value;
|
|
51
|
+
}), U = c(() => {
|
|
52
|
+
if (n.value) {
|
|
53
|
+
if (n.value.selectedServerUid) {
|
|
54
|
+
const e = v[n.value.selectedServerUid];
|
|
58
55
|
if (e)
|
|
59
56
|
return e;
|
|
60
57
|
}
|
|
61
|
-
return
|
|
58
|
+
return v[n.value.servers[0]];
|
|
62
59
|
}
|
|
63
|
-
}),
|
|
64
|
-
return (e,
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
default: o(() => {
|
|
102
|
-
var d, D;
|
|
103
|
-
return [
|
|
104
|
-
i(t(P), {
|
|
105
|
-
servers: ((d = e.store.workspace.activeDocument) == null ? void 0 : d.servers) ?? [],
|
|
106
|
-
xSelectedServer: (D = e.store.workspace.activeDocument) == null ? void 0 : D["x-scalar-active-server"]
|
|
107
|
-
}, null, 8, ["servers", "xSelectedServer"])
|
|
108
|
-
];
|
|
109
|
-
}),
|
|
110
|
-
_: 1
|
|
111
|
-
})) : m("", !0)
|
|
112
|
-
];
|
|
113
|
-
}),
|
|
60
|
+
}), A = () => s.store.exportActiveDocument("json") ?? "{}";
|
|
61
|
+
return (e, P) => (i(), L(V, null, [
|
|
62
|
+
r(t(G)),
|
|
63
|
+
$("div", J, [
|
|
64
|
+
m(e.$slots, "start"),
|
|
65
|
+
r(B, {
|
|
66
|
+
showEmptyState: !e.store.workspace.activeDocument
|
|
67
|
+
}, {
|
|
68
|
+
"empty-state": o(() => [
|
|
69
|
+
m(e.$slots, "empty-state")
|
|
70
|
+
]),
|
|
71
|
+
default: o(() => [
|
|
72
|
+
e.store.workspace.activeDocument ? (i(), a(t(H), {
|
|
73
|
+
key: 0,
|
|
74
|
+
id: S.value,
|
|
75
|
+
documentExtensions: h.value,
|
|
76
|
+
externalDocs: e.store.workspace.activeDocument.externalDocs,
|
|
77
|
+
getOriginalDocument: A,
|
|
78
|
+
info: e.store.workspace.activeDocument.info,
|
|
79
|
+
infoExtensions: w.value,
|
|
80
|
+
isLoading: e.config.isLoading,
|
|
81
|
+
layout: e.config.layout,
|
|
82
|
+
oasVersion: e.store.workspace.activeDocument?.["x-original-oas-version"],
|
|
83
|
+
onLoaded: e.config.onLoaded
|
|
84
|
+
}, {
|
|
85
|
+
selectors: o(() => [
|
|
86
|
+
r(t(d), null, {
|
|
87
|
+
default: o(() => [
|
|
88
|
+
e.store.workspace.activeDocument?.servers?.length ? (i(), a(t(f), {
|
|
89
|
+
key: 0,
|
|
90
|
+
class: "scalar-reference-intro-server scalar-client introduction-card-item text-base leading-normal [--scalar-address-bar-height:0px]"
|
|
91
|
+
}, {
|
|
92
|
+
default: o(() => [
|
|
93
|
+
r(t(K), {
|
|
94
|
+
servers: e.store.workspace.activeDocument?.servers ?? [],
|
|
95
|
+
xSelectedServer: e.store.workspace.activeDocument?.["x-scalar-active-server"]
|
|
96
|
+
}, null, 8, ["servers", "xSelectedServer"])
|
|
97
|
+
]),
|
|
114
98
|
_: 1
|
|
115
|
-
}),
|
|
116
|
-
|
|
99
|
+
})) : l("", !0)
|
|
100
|
+
]),
|
|
101
|
+
_: 1
|
|
102
|
+
}),
|
|
103
|
+
r(t(d), null, {
|
|
104
|
+
default: o(() => [
|
|
105
|
+
n.value && t(p) && Object.keys(t(y) ?? {}).length ? (i(), a(t(f), {
|
|
106
|
+
key: 0,
|
|
107
|
+
class: "scalar-reference-intro-auth scalar-client introduction-card-item leading-normal"
|
|
108
|
+
}, {
|
|
117
109
|
default: o(() => [
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
layout: "reference",
|
|
130
|
-
persistAuth: (r = e.config) == null ? void 0 : r.persistAuth,
|
|
131
|
-
selectedSecuritySchemeUids: ((n = s.value) == null ? void 0 : n.selectedSecuritySchemeUids) ?? [],
|
|
132
|
-
server: b.value,
|
|
133
|
-
title: "Authentication",
|
|
134
|
-
workspace: t(S)
|
|
135
|
-
}, null, 8, ["collection", "envVariables", "environment", "persistAuth", "selectedSecuritySchemeUids", "server", "workspace"])
|
|
136
|
-
];
|
|
137
|
-
}),
|
|
138
|
-
_: 1
|
|
139
|
-
})) : m("", !0)
|
|
110
|
+
r(t(M), {
|
|
111
|
+
collection: n.value,
|
|
112
|
+
envVariables: t(E),
|
|
113
|
+
environment: t(O),
|
|
114
|
+
layout: "reference",
|
|
115
|
+
persistAuth: e.config?.persistAuth,
|
|
116
|
+
selectedSecuritySchemeUids: n.value?.selectedSecuritySchemeUids ?? [],
|
|
117
|
+
server: U.value,
|
|
118
|
+
title: "Authentication",
|
|
119
|
+
workspace: t(p)
|
|
120
|
+
}, null, 8, ["collection", "envVariables", "environment", "persistAuth", "selectedSecuritySchemeUids", "server", "workspace"])
|
|
140
121
|
]),
|
|
141
122
|
_: 1
|
|
142
|
-
}),
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
];
|
|
161
|
-
}),
|
|
162
|
-
_: 1
|
|
163
|
-
})) : m("", !0)
|
|
164
|
-
];
|
|
165
|
-
}),
|
|
123
|
+
})) : l("", !0)
|
|
124
|
+
]),
|
|
125
|
+
_: 1
|
|
126
|
+
}),
|
|
127
|
+
r(t(d), null, {
|
|
128
|
+
default: o(() => [
|
|
129
|
+
e.config?.hiddenClients !== !0 && u.value.length ? (i(), a(t(f), {
|
|
130
|
+
key: 0,
|
|
131
|
+
class: "introduction-card-item scalar-reference-intro-clients"
|
|
132
|
+
}, {
|
|
133
|
+
default: o(() => [
|
|
134
|
+
r(t(R), {
|
|
135
|
+
class: "introduction-card-item scalar-reference-intro-clients",
|
|
136
|
+
clientOptions: u.value,
|
|
137
|
+
xScalarSdkInstallation: e.store.workspace.activeDocument?.info?.["x-scalar-sdk-installation"],
|
|
138
|
+
xSelectedClient: e.store.workspace["x-scalar-default-client"]
|
|
139
|
+
}, null, 8, ["clientOptions", "xScalarSdkInstallation", "xSelectedClient"])
|
|
140
|
+
]),
|
|
166
141
|
_: 1
|
|
167
|
-
})
|
|
142
|
+
})) : l("", !0)
|
|
168
143
|
]),
|
|
169
144
|
_: 1
|
|
170
|
-
}
|
|
171
|
-
]
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
])
|
|
189
|
-
|
|
190
|
-
|
|
145
|
+
})
|
|
146
|
+
]),
|
|
147
|
+
_: 1
|
|
148
|
+
}, 8, ["id", "documentExtensions", "externalDocs", "info", "infoExtensions", "isLoading", "layout", "oasVersion", "onLoaded"])) : l("", !0)
|
|
149
|
+
]),
|
|
150
|
+
_: 3
|
|
151
|
+
}, 8, ["showEmptyState"]),
|
|
152
|
+
e.store.workspace.activeDocument ? (i(), a(t(X), {
|
|
153
|
+
key: 0,
|
|
154
|
+
clientOptions: u.value,
|
|
155
|
+
config: e.config,
|
|
156
|
+
document: e.store.workspace.activeDocument,
|
|
157
|
+
store: e.store
|
|
158
|
+
}, null, 8, ["clientOptions", "config", "document", "store"])) : l("", !0),
|
|
159
|
+
!e.config?.hideModels && e.store.workspace.activeDocument ? (i(), a(t(q), {
|
|
160
|
+
key: 1,
|
|
161
|
+
config: e.config,
|
|
162
|
+
document: e.store.workspace.activeDocument
|
|
163
|
+
}, null, 8, ["config", "document"])) : l("", !0),
|
|
164
|
+
m(e.$slots, "end")
|
|
165
|
+
])
|
|
166
|
+
], 64));
|
|
191
167
|
}
|
|
192
168
|
});
|
|
193
169
|
export {
|
|
194
|
-
|
|
170
|
+
fe as default
|
|
195
171
|
};
|
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { getResolvedRef as
|
|
3
|
-
import { useNavState as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
const
|
|
1
|
+
import { defineComponent as v, createBlock as a, createCommentVNode as k, openBlock as r, unref as e, withCtx as t, createElementBlock as n, Fragment as c, renderList as f, createVNode as i, createTextVNode as S } from "vue";
|
|
2
|
+
import { getResolvedRef as g } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
3
|
+
import { useNavState as y } from "../../../hooks/useNavState.js";
|
|
4
|
+
import C from "../../Section/SectionContainerAccordion.vue.js";
|
|
5
|
+
import b from "../../Section/SectionAccordion.vue.js";
|
|
6
|
+
import p from "../Schema/SchemaProperty.vue.js";
|
|
7
|
+
import N from "../../Anchor/Anchor.vue.js";
|
|
8
|
+
import q from "../../Section/SectionHeaderTag.vue.js";
|
|
9
|
+
import B from "../Schema/SchemaHeading.vue.js";
|
|
10
|
+
import H from "../../Section/SectionHeader.vue.js";
|
|
11
|
+
const V = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "properties"
|
|
14
|
-
},
|
|
14
|
+
}, x = { key: 1 }, O = /* @__PURE__ */ v({
|
|
15
15
|
__name: "ClassicLayout",
|
|
16
16
|
props: {
|
|
17
17
|
models: {}
|
|
18
18
|
},
|
|
19
|
-
setup(
|
|
20
|
-
const { getModelId: s } =
|
|
21
|
-
return (u, m) => u.models.length ? (r(), a(e(
|
|
19
|
+
setup(A) {
|
|
20
|
+
const { getModelId: s } = y();
|
|
21
|
+
return (u, m) => u.models.length ? (r(), a(e(C), {
|
|
22
22
|
key: 0,
|
|
23
23
|
class: "reference-models"
|
|
24
24
|
}, {
|
|
25
25
|
title: t(() => [
|
|
26
|
-
i(e(
|
|
26
|
+
i(e(H), { level: 2 }, {
|
|
27
27
|
default: t(() => m[0] || (m[0] = [
|
|
28
|
-
|
|
28
|
+
S("Models")
|
|
29
29
|
])),
|
|
30
30
|
_: 1,
|
|
31
31
|
__: [0]
|
|
32
32
|
})
|
|
33
33
|
]),
|
|
34
34
|
default: t(() => [
|
|
35
|
-
(r(!0), n(
|
|
35
|
+
(r(!0), n(c, null, f(u.models, ({ name: l, schema: o }) => (r(), a(e(b), {
|
|
36
36
|
id: e(s)({ name: l }),
|
|
37
37
|
key: l,
|
|
38
38
|
label: l
|
|
39
39
|
}, {
|
|
40
40
|
title: t(() => [
|
|
41
|
-
i(e(
|
|
41
|
+
i(e(N), {
|
|
42
42
|
id: e(s)({ name: l }),
|
|
43
43
|
class: "reference-models-anchor"
|
|
44
44
|
}, {
|
|
45
45
|
default: t(() => [
|
|
46
|
-
i(e(
|
|
46
|
+
i(e(q), { level: 3 }, {
|
|
47
47
|
default: t(() => [
|
|
48
|
-
i(e(
|
|
48
|
+
i(e(B), {
|
|
49
49
|
class: "reference-models-label",
|
|
50
50
|
name: o.title ?? l,
|
|
51
51
|
value: o
|
|
@@ -58,27 +58,24 @@ const x = {
|
|
|
58
58
|
}, 1032, ["id"])
|
|
59
59
|
]),
|
|
60
60
|
default: t(() => [
|
|
61
|
-
"properties" in o ? (r(), n("div",
|
|
62
|
-
(r(!0), n(
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
}), 128))
|
|
71
|
-
])) : (r(), n("div", A, [
|
|
72
|
-
i(e(_), { value: o }, null, 8, ["value"])
|
|
61
|
+
"properties" in o ? (r(), n("div", V, [
|
|
62
|
+
(r(!0), n(c, null, f(Object.entries(o.properties ?? {}), ([d, _]) => (r(), a(e(p), {
|
|
63
|
+
key: d,
|
|
64
|
+
name: d,
|
|
65
|
+
required: o.required?.includes(d),
|
|
66
|
+
value: e(g)(_)
|
|
67
|
+
}, null, 8, ["name", "required", "value"]))), 128))
|
|
68
|
+
])) : (r(), n("div", x, [
|
|
69
|
+
i(e(p), { value: o }, null, 8, ["value"])
|
|
73
70
|
]))
|
|
74
71
|
]),
|
|
75
72
|
_: 2
|
|
76
73
|
}, 1032, ["id", "label"]))), 128))
|
|
77
74
|
]),
|
|
78
75
|
_: 1
|
|
79
|
-
})) :
|
|
76
|
+
})) : k("", !0);
|
|
80
77
|
}
|
|
81
78
|
});
|
|
82
79
|
export {
|
|
83
|
-
|
|
80
|
+
O as default
|
|
84
81
|
};
|
|
@@ -1,46 +1,42 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { getResolvedRef as
|
|
3
|
-
import { useNavState as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
const
|
|
1
|
+
import { defineComponent as u, computed as f, createBlock as s, createCommentVNode as d, openBlock as n, unref as r, withCtx as p } from "vue";
|
|
2
|
+
import { getResolvedRef as h } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
3
|
+
import { useNavState as y } from "../../../hooks/useNavState.js";
|
|
4
|
+
import g from "./ClassicLayout.vue.js";
|
|
5
|
+
import _ from "./ModernLayout.vue.js";
|
|
6
|
+
import k from "../../Lazy/Lazy.vue2.js";
|
|
7
|
+
const b = /* @__PURE__ */ u({
|
|
8
8
|
__name: "Models",
|
|
9
9
|
props: {
|
|
10
10
|
document: {},
|
|
11
11
|
config: {}
|
|
12
12
|
},
|
|
13
|
-
setup(
|
|
14
|
-
const { hash:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
return s["x-internal"] || s["x-scalar-ignore"] ? [] : [{ name: l, schema: s }];
|
|
13
|
+
setup(c) {
|
|
14
|
+
const { hash: a } = y(), o = f(() => {
|
|
15
|
+
const e = c.document.components?.schemas;
|
|
16
|
+
return e ? Object.entries(e).flatMap(([i, l]) => {
|
|
17
|
+
const t = h(l);
|
|
18
|
+
return t["x-internal"] || t["x-scalar-ignore"] ? [] : [{ name: i, schema: t }];
|
|
20
19
|
}) : [];
|
|
21
20
|
});
|
|
22
|
-
return (e,
|
|
21
|
+
return (e, m) => o.value && Object.keys(o.value).length > 0 ? (n(), s(r(k), {
|
|
23
22
|
key: 0,
|
|
24
23
|
id: "models",
|
|
25
|
-
isLazy: !!a
|
|
24
|
+
isLazy: !!r(a) && !r(a).startsWith("model")
|
|
26
25
|
}, {
|
|
27
|
-
default:
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}, null, 8, ["config", "schemas"]))
|
|
38
|
-
];
|
|
39
|
-
}),
|
|
26
|
+
default: p(() => [
|
|
27
|
+
e.config?.layout === "classic" ? (n(), s(g, {
|
|
28
|
+
key: 0,
|
|
29
|
+
models: o.value
|
|
30
|
+
}, null, 8, ["models"])) : (n(), s(_, {
|
|
31
|
+
key: 1,
|
|
32
|
+
config: e.config,
|
|
33
|
+
schemas: o.value
|
|
34
|
+
}, null, 8, ["config", "schemas"]))
|
|
35
|
+
]),
|
|
40
36
|
_: 1
|
|
41
|
-
}, 8, ["isLazy"])) :
|
|
37
|
+
}, 8, ["isLazy"])) : d("", !0);
|
|
42
38
|
}
|
|
43
39
|
});
|
|
44
40
|
export {
|
|
45
|
-
|
|
41
|
+
b as default
|
|
46
42
|
};
|