@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,178 +1,153 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarCard as
|
|
3
|
-
import { normalizeMimeTypeObject as
|
|
4
|
-
import { useClipboard as
|
|
5
|
-
import { getResolvedRef as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { getResolvedRefDeep as
|
|
11
|
-
import
|
|
12
|
-
const
|
|
1
|
+
import { defineComponent as _, useId as w, computed as u, ref as y, toValue as b, createBlock as n, createCommentVNode as c, openBlock as o, unref as t, withCtx as r, createVNode as m, createElementBlock as x, Fragment as O, renderList as T, createTextVNode as C, toDisplayString as B, withDirectives as M, createElementVNode as E, vModelCheckbox as N } from "vue";
|
|
2
|
+
import { ScalarCard as D, ScalarIcon as F, ScalarCardSection as I, ScalarCodeBlock as K, ScalarCardFooter as z, ScalarMarkdown as A } from "@scalar/components";
|
|
3
|
+
import { normalizeMimeTypeObject as L, getObjectKeys as U } from "@scalar/oas-utils/helpers";
|
|
4
|
+
import { useClipboard as $ } from "@scalar/use-hooks/useClipboard";
|
|
5
|
+
import { getResolvedRef as q } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
6
|
+
import G from "../../components/ScreenReader.vue.js";
|
|
7
|
+
import H from "./ExampleResponse.vue.js";
|
|
8
|
+
import J from "./ExampleResponseTab.vue.js";
|
|
9
|
+
import P from "./ExampleResponseTabList.vue.js";
|
|
10
|
+
import { getResolvedRefDeep as Q } from "./helpers/get-resolved-ref-deep.js";
|
|
11
|
+
import W from "../../v2/blocks/scalar-request-example-block/components/ExamplePicker.vue2.js";
|
|
12
|
+
const X = {
|
|
13
13
|
key: 1,
|
|
14
14
|
class: "scalar-card-checkbox"
|
|
15
|
-
},
|
|
15
|
+
}, Y = ["aria-controls"], Z = {
|
|
16
16
|
key: 0,
|
|
17
17
|
class: "response-description"
|
|
18
|
-
},
|
|
18
|
+
}, me = /* @__PURE__ */ _({
|
|
19
19
|
__name: "ExampleResponses",
|
|
20
20
|
props: {
|
|
21
21
|
responses: {}
|
|
22
22
|
},
|
|
23
|
-
setup(
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
const e = H(
|
|
34
|
-
(p = f.value) == null ? void 0 : p.content
|
|
35
|
-
), s = J(e ?? {});
|
|
23
|
+
setup(S) {
|
|
24
|
+
const i = w(), { copyToClipboard: R } = $(), v = u(
|
|
25
|
+
() => Object.keys(S.responses ?? {}).sort()
|
|
26
|
+
), h = y(0), d = u(() => {
|
|
27
|
+
const e = b(v)[b(h)];
|
|
28
|
+
return q(S.responses?.[e]);
|
|
29
|
+
}), l = u(() => {
|
|
30
|
+
const e = L(
|
|
31
|
+
d.value?.content
|
|
32
|
+
), a = U(e ?? {});
|
|
36
33
|
return (
|
|
37
34
|
// OpenAPI 3.x
|
|
38
|
-
|
|
39
|
-
|
|
35
|
+
e?.["application/json"] ?? e?.["application/xml"] ?? e?.["text/plain"] ?? e?.["text/html"] ?? e?.["*/*"] ?? // Take the first key - in the future we may want to use the selected content type
|
|
36
|
+
e?.[a[0]] ?? void 0
|
|
40
37
|
);
|
|
41
|
-
}),
|
|
42
|
-
() => {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
Object.keys(((j = t.value) == null ? void 0 : j.examples) ?? {})[0] ?? ""
|
|
48
|
-
), O = () => {
|
|
49
|
-
var a;
|
|
50
|
-
const e = E(t);
|
|
38
|
+
}), f = u(
|
|
39
|
+
() => !!l.value?.examples && Object.keys(l.value?.examples ?? {}).length > 1
|
|
40
|
+
), p = y(
|
|
41
|
+
Object.keys(l.value?.examples ?? {})[0] ?? ""
|
|
42
|
+
), g = () => {
|
|
43
|
+
const e = b(l);
|
|
51
44
|
if (!e)
|
|
52
45
|
return;
|
|
53
46
|
if (Array.isArray(e.examples))
|
|
54
47
|
return e.examples[0];
|
|
55
|
-
const
|
|
56
|
-
return
|
|
57
|
-
},
|
|
58
|
-
() =>
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
V.value = e, i.value = "";
|
|
64
|
-
}, S = h(!1);
|
|
65
|
-
return (e, s) => y.value.length ? (o(), u(l(A), {
|
|
48
|
+
const a = Object.keys(e.examples ?? {})[0];
|
|
49
|
+
return e.examples?.[a];
|
|
50
|
+
}, V = u(
|
|
51
|
+
() => f.value && p.value ? l.value?.examples?.[p.value] : g()
|
|
52
|
+
), j = (e) => {
|
|
53
|
+
h.value = e, p.value = "";
|
|
54
|
+
}, k = y(!1);
|
|
55
|
+
return (e, a) => v.value.length ? (o(), n(t(D), {
|
|
66
56
|
key: 0,
|
|
67
57
|
"aria-label": "Example Responses",
|
|
68
58
|
class: "response-card",
|
|
69
59
|
role: "region"
|
|
70
60
|
}, {
|
|
71
|
-
default:
|
|
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
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
}, null, 8, ["value"])
|
|
158
|
-
])) : m("", !0),
|
|
159
|
-
b.value ? (o(), u(l(ee), {
|
|
160
|
-
key: 1,
|
|
161
|
-
modelValue: i.value,
|
|
162
|
-
"onUpdate:modelValue": s[2] || (s[2] = (n) => i.value = n),
|
|
163
|
-
class: "response-example-selector",
|
|
164
|
-
examples: (r = t.value) == null ? void 0 : r.examples
|
|
165
|
-
}, null, 8, ["modelValue", "examples"])) : m("", !0)
|
|
166
|
-
];
|
|
167
|
-
}),
|
|
168
|
-
_: 1
|
|
169
|
-
})) : m("", !0)
|
|
170
|
-
];
|
|
171
|
-
}),
|
|
61
|
+
default: r(() => [
|
|
62
|
+
m(P, { onChange: j }, {
|
|
63
|
+
actions: r(() => [
|
|
64
|
+
l.value?.example ? (o(), x("button", {
|
|
65
|
+
key: 0,
|
|
66
|
+
class: "code-copy",
|
|
67
|
+
type: "button",
|
|
68
|
+
onClick: a[0] || (a[0] = () => t(R)(l.value?.example))
|
|
69
|
+
}, [
|
|
70
|
+
m(t(F), {
|
|
71
|
+
icon: "Clipboard",
|
|
72
|
+
width: "12px"
|
|
73
|
+
})
|
|
74
|
+
])) : c("", !0),
|
|
75
|
+
l.value?.schema ? (o(), x("label", X, [
|
|
76
|
+
a[4] || (a[4] = C(" Show Schema ")),
|
|
77
|
+
M(E("input", {
|
|
78
|
+
"onUpdate:modelValue": a[1] || (a[1] = (s) => k.value = s),
|
|
79
|
+
"aria-controls": t(i),
|
|
80
|
+
class: "scalar-card-checkbox-input",
|
|
81
|
+
type: "checkbox"
|
|
82
|
+
}, null, 8, Y), [
|
|
83
|
+
[N, k.value]
|
|
84
|
+
]),
|
|
85
|
+
a[5] || (a[5] = E("span", { class: "scalar-card-checkbox-checkmark" }, null, -1))
|
|
86
|
+
])) : c("", !0)
|
|
87
|
+
]),
|
|
88
|
+
default: r(() => [
|
|
89
|
+
(o(!0), x(O, null, T(v.value, (s) => (o(), n(J, {
|
|
90
|
+
key: s,
|
|
91
|
+
"aria-controls": t(i)
|
|
92
|
+
}, {
|
|
93
|
+
default: r(() => [
|
|
94
|
+
m(G, null, {
|
|
95
|
+
default: r(() => a[3] || (a[3] = [
|
|
96
|
+
C("Status:")
|
|
97
|
+
])),
|
|
98
|
+
_: 1,
|
|
99
|
+
__: [3]
|
|
100
|
+
}),
|
|
101
|
+
C(" " + B(s), 1)
|
|
102
|
+
]),
|
|
103
|
+
_: 2
|
|
104
|
+
}, 1032, ["aria-controls"]))), 128))
|
|
105
|
+
]),
|
|
106
|
+
_: 1
|
|
107
|
+
}),
|
|
108
|
+
m(t(I), { class: "grid flex-1" }, {
|
|
109
|
+
default: r(() => [
|
|
110
|
+
k.value && l.value?.schema ? (o(), n(t(K), {
|
|
111
|
+
key: 0,
|
|
112
|
+
id: t(i),
|
|
113
|
+
class: "-outline-offset-2",
|
|
114
|
+
content: t(Q)(l.value?.schema),
|
|
115
|
+
lang: "json"
|
|
116
|
+
}, null, 8, ["id", "content"])) : (o(), n(H, {
|
|
117
|
+
key: 1,
|
|
118
|
+
id: t(i),
|
|
119
|
+
example: V.value,
|
|
120
|
+
response: l.value
|
|
121
|
+
}, null, 8, ["id", "example", "response"]))
|
|
122
|
+
]),
|
|
123
|
+
_: 1
|
|
124
|
+
}),
|
|
125
|
+
d.value?.description || f.value ? (o(), n(t(z), {
|
|
126
|
+
key: 0,
|
|
127
|
+
class: "response-card-footer"
|
|
128
|
+
}, {
|
|
129
|
+
default: r(() => [
|
|
130
|
+
d.value?.description ? (o(), x("div", Z, [
|
|
131
|
+
m(t(A), {
|
|
132
|
+
class: "markdown",
|
|
133
|
+
value: d.value.description
|
|
134
|
+
}, null, 8, ["value"])
|
|
135
|
+
])) : c("", !0),
|
|
136
|
+
f.value ? (o(), n(t(W), {
|
|
137
|
+
key: 1,
|
|
138
|
+
modelValue: p.value,
|
|
139
|
+
"onUpdate:modelValue": a[2] || (a[2] = (s) => p.value = s),
|
|
140
|
+
class: "response-example-selector",
|
|
141
|
+
examples: l.value?.examples
|
|
142
|
+
}, null, 8, ["modelValue", "examples"])) : c("", !0)
|
|
143
|
+
]),
|
|
144
|
+
_: 1
|
|
145
|
+
})) : c("", !0)
|
|
146
|
+
]),
|
|
172
147
|
_: 1
|
|
173
|
-
})) :
|
|
148
|
+
})) : c("", !0);
|
|
174
149
|
}
|
|
175
150
|
});
|
|
176
151
|
export {
|
|
177
|
-
|
|
152
|
+
me as default
|
|
178
153
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { cva as
|
|
3
|
-
import { ScalarIconEnvelopeSimple as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as i, createElementBlock as r, createCommentVNode as o, openBlock as a, normalizeClass as l, unref as t, createVNode as m, createElementVNode as c, toDisplayString as s } from "vue";
|
|
2
|
+
import { cva as u } from "@scalar/components";
|
|
3
|
+
import { ScalarIconEnvelopeSimple as p } from "@scalar/icons";
|
|
4
|
+
const d = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "group flex items-center last:border-r-0 xl:border-r xl:first:ml-auto"
|
|
7
|
-
},
|
|
7
|
+
}, f = ["href"], v = { class: "ml-1 empty:hidden" }, y = /* @__PURE__ */ i({
|
|
8
8
|
__name: "Contact",
|
|
9
9
|
props: {
|
|
10
10
|
value: {}
|
|
11
11
|
},
|
|
12
|
-
setup(
|
|
13
|
-
const n =
|
|
12
|
+
setup(h) {
|
|
13
|
+
const n = u({
|
|
14
14
|
base: "text-c-1 mr-2 flex min-h-7 min-w-7 items-center rounded-lg border px-2 py-1 group-last:mr-0 xl:border-none",
|
|
15
15
|
variants: {
|
|
16
16
|
link: {
|
|
@@ -18,27 +18,24 @@ const h = {
|
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
|
-
return (e,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
(
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}, c(e.value.name), 3)) : i("", !0)
|
|
38
|
-
])) : i("", !0);
|
|
39
|
-
};
|
|
21
|
+
return (e, b) => e.value ? (a(), r("div", d, [
|
|
22
|
+
e.value?.email ? (a(), r("a", {
|
|
23
|
+
key: 0,
|
|
24
|
+
class: l(t(n)({ link: !0 })),
|
|
25
|
+
href: `mailto:${e.value?.email}`
|
|
26
|
+
}, [
|
|
27
|
+
m(t(p), {
|
|
28
|
+
weight: "bold",
|
|
29
|
+
class: "size-3 text-current"
|
|
30
|
+
}),
|
|
31
|
+
c("span", v, s(e.value.name), 1)
|
|
32
|
+
], 10, f)) : e.value?.name ? (a(), r("span", {
|
|
33
|
+
key: 1,
|
|
34
|
+
class: l(t(n)({ link: !1 }))
|
|
35
|
+
}, s(e.value.name), 3)) : o("", !0)
|
|
36
|
+
])) : o("", !0);
|
|
40
37
|
}
|
|
41
38
|
});
|
|
42
39
|
export {
|
|
43
|
-
|
|
40
|
+
y as default
|
|
44
41
|
};
|
|
@@ -1,37 +1,34 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarIconGavel as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as i, createElementBlock as r, openBlock as t, createVNode as n, createElementVNode as o, unref as l, toDisplayString as s, Fragment as d } from "vue";
|
|
2
|
+
import { ScalarIconGavel as a } from "@scalar/icons";
|
|
3
|
+
const m = { class: "group flex h-fit items-center last:border-r-0 xl:border-r xl:first:ml-auto" }, c = ["href"], u = { class: "ml-1 empty:hidden" }, p = { class: "ml-1 empty:hidden" }, b = /* @__PURE__ */ i({
|
|
4
4
|
__name: "License",
|
|
5
5
|
props: {
|
|
6
6
|
value: {}
|
|
7
7
|
},
|
|
8
|
-
setup(
|
|
9
|
-
return (e,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
], 64))
|
|
31
|
-
]);
|
|
32
|
-
};
|
|
8
|
+
setup(f) {
|
|
9
|
+
return (e, h) => (t(), r("div", m, [
|
|
10
|
+
e.value?.url ? (t(), r("a", {
|
|
11
|
+
key: 0,
|
|
12
|
+
class: "text-c-1 hover:bg-b-2 mr-2 flex min-h-7 min-w-7 items-center rounded-lg border px-2 py-1 no-underline group-last:mr-0 xl:border-none",
|
|
13
|
+
href: e.value.url,
|
|
14
|
+
target: "_blank",
|
|
15
|
+
rel: "noopener noreferrer"
|
|
16
|
+
}, [
|
|
17
|
+
n(l(a), {
|
|
18
|
+
weight: "bold",
|
|
19
|
+
class: "size-3 text-current"
|
|
20
|
+
}),
|
|
21
|
+
o("span", u, s(e.value?.name || e.value.identifier || e.value.url), 1)
|
|
22
|
+
], 8, c)) : (t(), r(d, { key: 1 }, [
|
|
23
|
+
n(l(a), {
|
|
24
|
+
weight: "bold",
|
|
25
|
+
class: "size-3 text-current"
|
|
26
|
+
}),
|
|
27
|
+
o("span", p, s(e.value?.name), 1)
|
|
28
|
+
], 64))
|
|
29
|
+
]));
|
|
33
30
|
}
|
|
34
31
|
});
|
|
35
32
|
export {
|
|
36
|
-
|
|
33
|
+
b as default
|
|
37
34
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as p, computed as
|
|
1
|
+
import { defineComponent as p, computed as n, createElementBlock as b, createCommentVNode as f, openBlock as x, createVNode as a, unref as r, withCtx as V, createElementVNode as i, toDisplayString as v } from "vue";
|
|
2
2
|
import { ScalarListbox as g } from "@scalar/components";
|
|
3
3
|
import { ScalarIconCaretUpDown as h } from "@scalar/icons";
|
|
4
4
|
const S = {
|
|
@@ -14,39 +14,30 @@ const S = {
|
|
|
14
14
|
modelValue: {}
|
|
15
15
|
},
|
|
16
16
|
emits: ["update:modelValue"],
|
|
17
|
-
setup(
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
label: o.title || o.slug || `API #${t + 1}`
|
|
28
|
-
}))) || [];
|
|
29
|
-
}
|
|
30
|
-
), n = s({
|
|
31
|
-
get: () => a.value.find(({ id: e }) => e === String(l.modelValue)),
|
|
32
|
-
set: (e) => d("update:modelValue", Number(e.id))
|
|
17
|
+
setup(o, { emit: c }) {
|
|
18
|
+
const u = c, d = n(() => o.options && o.options?.length > 1), s = n(
|
|
19
|
+
() => o.options?.map((e, t) => ({
|
|
20
|
+
id: String(t),
|
|
21
|
+
// Get the display text for the selected option
|
|
22
|
+
label: e.title || e.slug || `API #${t + 1}`
|
|
23
|
+
})) || []
|
|
24
|
+
), l = n({
|
|
25
|
+
get: () => s.value.find(({ id: e }) => e === String(o.modelValue)),
|
|
26
|
+
set: (e) => u("update:modelValue", Number(e.id))
|
|
33
27
|
});
|
|
34
|
-
return (e,
|
|
35
|
-
r(
|
|
36
|
-
modelValue:
|
|
37
|
-
"onUpdate:modelValue":
|
|
38
|
-
options:
|
|
28
|
+
return (e, t) => d.value ? (x(), b("div", S, [
|
|
29
|
+
a(r(g), {
|
|
30
|
+
modelValue: l.value,
|
|
31
|
+
"onUpdate:modelValue": t[0] || (t[0] = (m) => l.value = m),
|
|
32
|
+
options: s.value,
|
|
39
33
|
resize: ""
|
|
40
34
|
}, {
|
|
41
|
-
default: V(() =>
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
])
|
|
48
|
-
];
|
|
49
|
-
}),
|
|
35
|
+
default: V(() => [
|
|
36
|
+
i("button", w, [
|
|
37
|
+
a(r(h), { class: "mr-1 size-4 text-current" }),
|
|
38
|
+
i("span", _, v(l.value?.label || "Select API"), 1)
|
|
39
|
+
])
|
|
40
|
+
]),
|
|
50
41
|
_: 1
|
|
51
42
|
}, 8, ["modelValue", "options"])
|
|
52
43
|
])) : f("", !0);
|