@scalar/api-reference 1.36.2 → 1.37.0
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 +49 -0
- package/dist/browser/standalone.js +26143 -25935
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReferenceContent.vue.d.ts +34 -0
- package/dist/components/ApiReferenceContent.vue.d.ts.map +1 -0
- package/dist/components/ApiReferenceContent.vue.js +8 -0
- package/dist/components/ApiReferenceContent.vue2.js +148 -0
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +2 -2
- package/dist/components/ApiReferenceLayout.vue2.js +239 -219
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts +2 -2
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts +1 -1
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/featured-clients.d.ts +1 -1
- package/dist/components/Content/ClientLibraries/featured-clients.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.d.ts +21 -3
- package/dist/components/Content/Content.vue.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.js +132 -95
- package/dist/components/Content/Models/ClassicLayout.vue.d.ts +4 -2
- package/dist/components/Content/Models/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/ClassicLayout.vue.js +2 -2
- package/dist/components/Content/Models/ClassicLayout.vue2.js +28 -28
- package/dist/components/Content/Models/Models.vue.d.ts +10 -2
- package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/Models.vue.js +25 -27
- package/dist/components/Content/Models/ModernLayout.vue.d.ts +6 -2
- package/dist/components/Content/Models/ModernLayout.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/ModernLayout.vue.js +1 -1
- package/dist/components/Content/Models/ModernLayout.vue2.js +30 -29
- package/dist/components/Content/Operations/TraversedEntry.vue.d.ts +20 -6
- package/dist/components/Content/Operations/TraversedEntry.vue.d.ts.map +1 -1
- package/dist/components/Content/Operations/TraversedEntry.vue.js +58 -46
- package/dist/components/Content/Operations/get-current-index.d.ts +1 -1
- package/dist/components/Content/Operations/get-current-index.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/get-ref-name.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/get-ref-name.js +9 -7
- package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +1 -1
- package/dist/components/Content/Schema/helpers/schema-name.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/schema-name.js +15 -14
- package/dist/components/Content/Tags/ClassicLayout.vue.d.ts +1 -1
- package/dist/components/Content/Tags/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/components/Content/Tags/ClassicLayout.vue.js +2 -2
- package/dist/components/Content/Tags/ModernLayout.vue.d.ts +3 -1
- package/dist/components/Content/Tags/ModernLayout.vue.d.ts.map +1 -1
- package/dist/components/Content/Tags/ModernLayout.vue.js +1 -1
- package/dist/components/Content/Tags/ModernLayout.vue2.js +34 -30
- package/dist/components/Content/Tags/Tag.vue.d.ts +3 -1
- package/dist/components/Content/Tags/Tag.vue.d.ts.map +1 -1
- package/dist/components/Content/Tags/Tag.vue.js +14 -12
- package/dist/components/Content/Tags/TagSection.vue.d.ts +2 -1
- package/dist/components/Content/Tags/TagSection.vue.d.ts.map +1 -1
- package/dist/components/Content/Tags/TagSection.vue.js +49 -52
- package/dist/components/OperationsList/OperationsList.vue.d.ts +1 -1
- package/dist/components/OperationsList/OperationsList.vue.d.ts.map +1 -1
- package/dist/components/OperationsList/OperationsList.vue.js +2 -2
- package/dist/components/OperationsList/OperationsListItem.vue.d.ts +1 -1
- package/dist/components/OperationsList/OperationsListItem.vue.d.ts.map +1 -1
- package/dist/components/OperationsList/OperationsListItem.vue.js +2 -2
- package/dist/components/ShowMoreButton.vue.d.ts +1 -0
- package/dist/components/ShowMoreButton.vue.d.ts.map +1 -1
- package/dist/components/ShowMoreButton.vue.js +2 -2
- package/dist/components/ShowMoreButton.vue2.js +12 -12
- package/dist/features/Operation/Operation.vue.d.ts +21 -9
- package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
- package/dist/features/Operation/Operation.vue.js +42 -53
- package/dist/features/Operation/components/Header.vue.d.ts +2 -2
- package/dist/features/Operation/components/Header.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/Header.vue.js +9 -8
- package/dist/features/Operation/components/Headers.vue.d.ts +2 -2
- package/dist/features/Operation/components/Headers.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/Headers.vue.js +2 -2
- package/dist/features/Operation/components/Headers.vue2.js +31 -29
- package/dist/features/Operation/components/OperationParameters.vue.d.ts +4 -0
- package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/OperationParameters.vue.js +37 -31
- package/dist/features/Operation/components/OperationResponses.vue.d.ts +5 -1
- package/dist/features/Operation/components/OperationResponses.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/OperationResponses.vue.js +16 -17
- package/dist/features/Operation/components/ParameterList.vue.d.ts +6 -2
- package/dist/features/Operation/components/ParameterList.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterList.vue.js +17 -19
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts +6 -2
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue.js +3 -3
- package/dist/features/Operation/components/ParameterListItem.vue2.js +64 -65
- package/dist/features/Operation/components/RequestBody.vue.d.ts +4 -0
- package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/RequestBody.vue.js +2 -2
- package/dist/features/Operation/components/RequestBody.vue2.js +65 -65
- package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +4 -0
- package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/callbacks/Callback.vue.js +3 -3
- package/dist/features/Operation/components/callbacks/Callback.vue2.js +29 -22
- package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts +6 -0
- package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/callbacks/Callbacks.vue.js +18 -16
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +11 -5
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
- package/dist/features/Operation/layouts/ClassicLayout.vue2.js +99 -90
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +12 -5
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
- package/dist/features/Operation/layouts/ModernLayout.vue2.js +99 -87
- package/dist/features/Search/helpers/create-search-index.d.ts +2 -1
- package/dist/features/Search/helpers/create-search-index.d.ts.map +1 -1
- package/dist/features/Search/types.d.ts +1 -1
- package/dist/features/Search/types.d.ts.map +1 -1
- package/dist/features/api-client-modal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/features/api-client-modal/ApiClientModal.vue.js +23 -26
- package/dist/features/api-client-modal/useApiClient.d.ts +3032 -2888
- package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
- package/dist/features/document-source/hooks/useDocumentFetcher.d.ts.map +1 -1
- package/dist/features/document-source/hooks/useDocumentFetcher.js +13 -11
- package/dist/features/document-source/hooks/useDocumentSource.d.ts +1 -1
- package/dist/features/document-source/hooks/useDocumentSource.d.ts.map +1 -1
- package/dist/features/example-responses/ExampleResponse.vue.d.ts.map +1 -1
- package/dist/features/example-responses/ExampleResponse.vue.js +3 -3
- package/dist/features/example-responses/ExampleResponse.vue2.js +26 -18
- package/dist/features/example-responses/ExampleResponses.vue.d.ts.map +1 -1
- package/dist/features/example-responses/ExampleResponses.vue.js +2 -2
- package/dist/features/example-responses/ExampleResponses.vue2.js +53 -53
- package/dist/features/multiple-documents/useMultipleDocuments.d.ts +8 -5
- package/dist/features/multiple-documents/useMultipleDocuments.d.ts.map +1 -1
- package/dist/features/multiple-documents/useMultipleDocuments.js +46 -43
- package/dist/features/test-request-button/TestRequestButton.vue.d.ts.map +1 -1
- package/dist/features/test-request-button/TestRequestButton.vue.js +2 -2
- package/dist/features/test-request-button/TestRequestButton.vue2.js +15 -21
- package/dist/features/toolbar/ApiReferenceToolbar.vue.js +18 -18
- package/dist/features/toolbar/ApiReferenceToolbarConfig.vue.js +1 -1
- package/dist/features/toolbar/ApiReferenceToolbarConfigTheme.vue.d.ts +2 -2
- package/dist/features/toolbar/ApiReferenceToolbarPopover.vue.js +1 -1
- package/dist/features/toolbar/ApiReferenceToolbarSdks.vue.js +1 -1
- package/dist/features/toolbar/ApiReferenceToolbarShare.vue.js +8 -8
- package/dist/features/toolbar/ApiReferenceToolbarShareRegister.vue.d.ts.map +1 -1
- package/dist/features/toolbar/ApiReferenceToolbarShareRegister.vue.js +34 -28
- package/dist/features/toolbar/ApiReferenceToolbarTitle.vue.js +27 -27
- package/dist/helpers/test-utils.d.ts +3 -365
- package/dist/helpers/test-utils.d.ts.map +1 -1
- package/dist/hooks/useNavState.d.ts +4 -2
- package/dist/hooks/useNavState.d.ts.map +1 -1
- package/dist/hooks/useNavState.js +31 -27
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +21 -19
- package/dist/style.css +1 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.js +46 -40
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue.d.ts +1 -1
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue.js +2 -2
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue2.js +11 -11
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.d.ts +2 -2
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.js +2 -2
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue2.js +10 -10
- package/dist/v2/blocks/scalar-client-selector-block/helpers/featured-clients.d.ts +1 -1
- package/dist/v2/blocks/scalar-client-selector-block/helpers/featured-clients.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue.d.ts +3 -0
- 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 +32 -31
- package/dist/v2/blocks/scalar-info-block/components/InfoBlock.vue.d.ts +15 -8
- package/dist/v2/blocks/scalar-info-block/components/InfoBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-info-block/components/InfoBlock.vue.js +25 -20
- package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue.d.ts +8 -7
- package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue.js +2 -2
- package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue2.js +27 -32
- package/dist/v2/blocks/scalar-server-selector-block/components/Selector.vue.d.ts +2 -22
- package/dist/v2/blocks/scalar-server-selector-block/components/Selector.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue.d.ts +8 -0
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue.js +2 -2
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue2.js +70 -65
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue.d.ts +9 -1
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue.js +2 -2
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue2.js +60 -57
- package/dist/v2/blocks/scalar-sidebar-block/helpers/create-sidebar.d.ts +3 -365
- package/dist/v2/blocks/scalar-sidebar-block/helpers/create-sidebar.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-sidebar-block/helpers/generate-reverse-index.d.ts +3 -183
- package/dist/v2/blocks/scalar-sidebar-block/helpers/generate-reverse-index.d.ts.map +1 -1
- package/dist/v2/helpers/map-configuration.d.ts +22 -22
- package/dist/v2/helpers/map-configuration.d.ts.map +1 -1
- package/package.json +19 -16
- package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts +0 -13
- package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts.map +0 -1
- package/dist/components/Content/Operations/TraversedEntryContainer.vue.js +0 -52
- package/dist/components/Content/Operations/TraversedEntryContainer.vue2.js +0 -4
- package/dist/components/Content/Operations/index.d.ts +0 -2
- package/dist/components/Content/Operations/index.d.ts.map +0 -1
- package/dist/hooks/useConfig.d.ts +0 -9
- package/dist/hooks/useConfig.d.ts.map +0 -1
- package/dist/hooks/useConfig.js +0 -10
- package/dist/legacy/stores/index.d.ts +0 -2
- package/dist/legacy/stores/index.d.ts.map +0 -1
- package/dist/legacy/stores/useExampleStore.d.ts +0 -5
- package/dist/legacy/stores/useExampleStore.d.ts.map +0 -1
- package/dist/legacy/stores/useExampleStore.js +0 -8
- package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts +0 -14
- package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.js +0 -4
- package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue2.js +0 -55
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts +0 -79
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.js +0 -7
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue2.js +0 -236
- package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts +0 -41
- package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.js +0 -22
- package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.d.ts +0 -20
- package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.js +0 -33
- package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.d.ts +0 -17
- package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.js +0 -26
- package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.d.ts +0 -4
- package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.js +0 -10
- package/dist/v2/blocks/scalar-request-example-block/index.d.ts +0 -3
- package/dist/v2/blocks/scalar-request-example-block/index.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-request-example-block/types.d.ts +0 -29
- package/dist/v2/blocks/scalar-request-example-block/types.d.ts.map +0 -1
|
@@ -1,22 +1,24 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
const c = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as s, createBlock as e, openBlock as r, normalizeProps as t, mergeProps as a, withCtx as n, renderSlot as p } from "vue";
|
|
2
|
+
import l from "./ClassicLayout.vue.js";
|
|
3
|
+
import u from "./ModernLayout.vue.js";
|
|
4
|
+
const c = /* @__PURE__ */ s({
|
|
5
5
|
__name: "Tag",
|
|
6
6
|
props: {
|
|
7
7
|
tag: {},
|
|
8
8
|
layout: {},
|
|
9
|
-
moreThanOneTag: { type: Boolean }
|
|
9
|
+
moreThanOneTag: { type: Boolean },
|
|
10
|
+
isLoading: { type: Boolean },
|
|
11
|
+
onShowMore: { type: Function }
|
|
10
12
|
},
|
|
11
|
-
setup(
|
|
12
|
-
return (o,
|
|
13
|
-
default:
|
|
14
|
-
|
|
13
|
+
setup(i) {
|
|
14
|
+
return (o, m) => o.layout === "classic" ? (r(), e(l, t(a({ key: 0 }, o.$props)), {
|
|
15
|
+
default: n(() => [
|
|
16
|
+
p(o.$slots, "default")
|
|
15
17
|
]),
|
|
16
18
|
_: 3
|
|
17
|
-
}, 16)) : (r(), e(
|
|
18
|
-
default:
|
|
19
|
-
|
|
19
|
+
}, 16)) : (r(), e(u, t(a({ key: 1 }, o.$props)), {
|
|
20
|
+
default: n(() => [
|
|
21
|
+
p(o.$slots, "default")
|
|
20
22
|
]),
|
|
21
23
|
_: 3
|
|
22
24
|
}, 16));
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import type { TraversedTag } from '@scalar/workspace-store/schemas/
|
|
1
|
+
import type { TraversedTag } from '@scalar/workspace-store/schemas/navigation';
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
tag: TraversedTag;
|
|
4
4
|
headerId?: string;
|
|
5
5
|
isCollapsed?: boolean;
|
|
6
|
+
isLoading?: boolean;
|
|
6
7
|
};
|
|
7
8
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
9
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TagSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tags/TagSection.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TagSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tags/TagSection.vue"],"names":[],"mappings":"AA2DA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAA;AAe9E,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,YAAY,CAAA;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,CAAC;;AA6KF,wBAMG"}
|
|
@@ -1,51 +1,50 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarMarkdown as
|
|
1
|
+
import { defineComponent as p, createBlock as i, createCommentVNode as r, openBlock as n, unref as o, withCtx as t, withDirectives as u, createVNode as a, createTextVNode as d, toDisplayString as f, vShow as s } from "vue";
|
|
2
|
+
import { ScalarMarkdown as g } from "@scalar/components";
|
|
3
3
|
import C from "../../ScreenReader.vue.js";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import v from "../../
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
|
|
14
|
-
const q = /* @__PURE__ */ f({
|
|
4
|
+
import S from "../../Section/Section.vue.js";
|
|
5
|
+
import c from "../../Section/SectionHeader.vue.js";
|
|
6
|
+
import v from "../../Anchor/Anchor.vue.js";
|
|
7
|
+
import _ from "../../Section/SectionHeaderTag.vue.js";
|
|
8
|
+
import y from "../../Section/SectionContent.vue.js";
|
|
9
|
+
import h from "../../Section/SectionColumns.vue.js";
|
|
10
|
+
import m from "../../Section/SectionColumn.vue.js";
|
|
11
|
+
import k from "../../OperationsList/OperationsList.vue.js";
|
|
12
|
+
import w from "../../../features/specification-extension/SpecificationExtension.vue2.js";
|
|
13
|
+
const R = /* @__PURE__ */ p({
|
|
15
14
|
__name: "TagSection",
|
|
16
15
|
props: {
|
|
17
16
|
tag: {},
|
|
18
17
|
headerId: {},
|
|
19
|
-
isCollapsed: { type: Boolean }
|
|
18
|
+
isCollapsed: { type: Boolean },
|
|
19
|
+
isLoading: { type: Boolean }
|
|
20
20
|
},
|
|
21
|
-
setup(
|
|
22
|
-
|
|
23
|
-
return (o, l) => o.tag ? (d(), r(e(_), {
|
|
21
|
+
setup(B) {
|
|
22
|
+
return (e, l) => e.tag ? (n(), i(o(S), {
|
|
24
23
|
key: 0,
|
|
25
|
-
id:
|
|
26
|
-
label:
|
|
24
|
+
id: e.tag.id,
|
|
25
|
+
label: e.tag.title?.toUpperCase(),
|
|
27
26
|
role: "none"
|
|
28
27
|
}, {
|
|
29
|
-
default:
|
|
30
|
-
u(
|
|
31
|
-
default:
|
|
32
|
-
|
|
33
|
-
id:
|
|
28
|
+
default: t(() => [
|
|
29
|
+
u(a(o(c), null, {
|
|
30
|
+
default: t(() => [
|
|
31
|
+
a(o(v), {
|
|
32
|
+
id: e.tag.id
|
|
34
33
|
}, {
|
|
35
|
-
default:
|
|
36
|
-
|
|
37
|
-
id:
|
|
34
|
+
default: t(() => [
|
|
35
|
+
a(o(_), {
|
|
36
|
+
id: e.headerId,
|
|
38
37
|
level: 2
|
|
39
38
|
}, {
|
|
40
|
-
default:
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
default:
|
|
44
|
-
|
|
39
|
+
default: t(() => [
|
|
40
|
+
d(f(e.tag.title) + " ", 1),
|
|
41
|
+
e.isCollapsed ? (n(), i(C, { key: 0 }, {
|
|
42
|
+
default: t(() => l[0] || (l[0] = [
|
|
43
|
+
d(" (Collapsed)")
|
|
45
44
|
])),
|
|
46
45
|
_: 1,
|
|
47
46
|
__: [0]
|
|
48
|
-
})) :
|
|
47
|
+
})) : r("", !0)
|
|
49
48
|
]),
|
|
50
49
|
_: 1
|
|
51
50
|
}, 8, ["id"])
|
|
@@ -55,27 +54,25 @@ const q = /* @__PURE__ */ f({
|
|
|
55
54
|
]),
|
|
56
55
|
_: 1
|
|
57
56
|
}, 512), [
|
|
58
|
-
[
|
|
57
|
+
[s, !e.isLoading]
|
|
59
58
|
]),
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
clamp: o.isCollapsed ? 7 : void 0,
|
|
70
|
-
value: o.tag?.description ?? "",
|
|
59
|
+
a(o(y), { loading: e.isLoading }, {
|
|
60
|
+
default: t(() => [
|
|
61
|
+
a(o(h), null, {
|
|
62
|
+
default: t(() => [
|
|
63
|
+
a(o(m), null, {
|
|
64
|
+
default: t(() => [
|
|
65
|
+
a(o(g), {
|
|
66
|
+
clamp: e.isCollapsed ? 7 : void 0,
|
|
67
|
+
value: e.tag?.description ?? "",
|
|
71
68
|
withImages: ""
|
|
72
69
|
}, null, 8, ["clamp", "value"])
|
|
73
70
|
]),
|
|
74
71
|
_: 1
|
|
75
72
|
}),
|
|
76
|
-
|
|
77
|
-
default:
|
|
78
|
-
|
|
73
|
+
a(o(m), null, {
|
|
74
|
+
default: t(() => [
|
|
75
|
+
a(o(k), { tag: e.tag }, null, 8, ["tag"])
|
|
79
76
|
]),
|
|
80
77
|
_: 1
|
|
81
78
|
})
|
|
@@ -85,14 +82,14 @@ const q = /* @__PURE__ */ f({
|
|
|
85
82
|
]),
|
|
86
83
|
_: 1
|
|
87
84
|
}, 8, ["loading"]),
|
|
88
|
-
|
|
89
|
-
value:
|
|
85
|
+
a(o(w), {
|
|
86
|
+
value: e.tag.xKeys
|
|
90
87
|
}, null, 8, ["value"])
|
|
91
88
|
]),
|
|
92
89
|
_: 1
|
|
93
|
-
}, 8, ["id", "label"])) :
|
|
90
|
+
}, 8, ["id", "label"])) : r("", !0);
|
|
94
91
|
}
|
|
95
92
|
});
|
|
96
93
|
export {
|
|
97
|
-
|
|
94
|
+
R as default
|
|
98
95
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OperationsList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/OperationsList/OperationsList.vue"],"names":[],"mappings":"AAmEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"OperationsList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/OperationsList/OperationsList.vue"],"names":[],"mappings":"AAmEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAA;AAO9E,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,YAAY,CAAA;CAClB,CAAC;;AAmHF,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./OperationsList.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-5f88c366"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TraversedOperation, TraversedWebhook } from '@scalar/workspace-store/schemas/
|
|
1
|
+
import type { TraversedOperation, TraversedWebhook } from '@scalar/workspace-store/schemas/navigation';
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
operation: TraversedOperation | TraversedWebhook;
|
|
4
4
|
isCollapsed?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OperationsListItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/OperationsList/OperationsListItem.vue"],"names":[],"mappings":"AAwHA,OAAO,KAAK,EAEV,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,
|
|
1
|
+
{"version":3,"file":"OperationsListItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/OperationsList/OperationsListItem.vue"],"names":[],"mappings":"AAwHA,OAAO,KAAK,EAEV,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,4CAA4C,CAAA;AAOnD,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,kBAAkB,GAAG,gBAAgB,CAAA;IAChD,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AAsJF,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./OperationsListItem.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ o(t, [["__scopeId", "data-v-7dff261d"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
2
|
id: string;
|
|
3
|
+
onShowMore: ((id: string) => void) | undefined;
|
|
3
4
|
};
|
|
4
5
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
5
6
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShowMoreButton.vue.d.ts","sourceRoot":"","sources":["../../src/components/ShowMoreButton.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ShowMoreButton.vue.d.ts","sourceRoot":"","sources":["../../src/components/ShowMoreButton.vue"],"names":[],"mappings":"AAsEA,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,UAAU,EAAE,CAAC,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,SAAS,CAAA;CAC/C,CAAC;;AAkEF,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ShowMoreButton.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-4b6e7dc9"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarIconCaretDown as
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
const h = /* @__PURE__ */ c({
|
|
1
|
+
import { defineComponent as r, createElementBlock as c, openBlock as a, createTextVNode as i, createVNode as s, unref as l } from "vue";
|
|
2
|
+
import { ScalarIconCaretDown as m } from "@scalar/icons";
|
|
3
|
+
import { useSidebar as d } from "../v2/blocks/scalar-sidebar-block/hooks/useSidebar.js";
|
|
4
|
+
const S = /* @__PURE__ */ r({
|
|
6
5
|
__name: "ShowMoreButton",
|
|
7
6
|
props: {
|
|
8
|
-
id: {}
|
|
7
|
+
id: {},
|
|
8
|
+
onShowMore: { type: Function }
|
|
9
9
|
},
|
|
10
10
|
setup(e) {
|
|
11
|
-
const { setCollapsedSidebarItem: t } =
|
|
12
|
-
t(e.id, !0),
|
|
11
|
+
const { setCollapsedSidebarItem: t } = d(), n = () => {
|
|
12
|
+
t(e.id, !0), e.onShowMore?.(e.id);
|
|
13
13
|
};
|
|
14
|
-
return (
|
|
14
|
+
return (u, o) => (a(), c("button", {
|
|
15
15
|
class: "show-more",
|
|
16
16
|
type: "button",
|
|
17
17
|
onClick: n
|
|
18
18
|
}, [
|
|
19
|
-
o[0] || (o[0] =
|
|
20
|
-
|
|
19
|
+
o[0] || (o[0] = i(" Show More ")),
|
|
20
|
+
s(l(m), {
|
|
21
21
|
class: "text-c-2 mt-0.25 size-3",
|
|
22
22
|
weight: "bold"
|
|
23
23
|
})
|
|
@@ -25,5 +25,5 @@ const h = /* @__PURE__ */ c({
|
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
27
|
export {
|
|
28
|
-
|
|
28
|
+
S as default
|
|
29
29
|
};
|
|
@@ -1,21 +1,33 @@
|
|
|
1
|
+
import type { ClientOptionGroup } from '@scalar/api-client/v2/blocks/operation-code-sample';
|
|
1
2
|
import type { HttpMethod } from '@scalar/helpers/http/http-methods';
|
|
2
3
|
import type { Collection, Server } from '@scalar/oas-utils/entities/spec';
|
|
3
|
-
import type { ApiReferenceConfiguration } from '@scalar/types';
|
|
4
4
|
import type { WorkspaceStore } from '@scalar/workspace-store/client';
|
|
5
|
-
import type {
|
|
6
|
-
import type { ClientOptionGroup } from '../../v2/blocks/scalar-request-example-block/types';
|
|
5
|
+
import type { PathItemObject, SecurityRequirementObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
7
6
|
type __VLS_Props = {
|
|
8
|
-
path: string;
|
|
9
|
-
method: HttpMethod;
|
|
10
|
-
clientOptions: ClientOptionGroup[];
|
|
11
|
-
config: ApiReferenceConfiguration;
|
|
12
|
-
document: OpenApiDocument;
|
|
13
|
-
isWebhook: boolean;
|
|
14
7
|
id: string;
|
|
8
|
+
method: HttpMethod;
|
|
9
|
+
/** Key of the operations path in the document.paths object */
|
|
10
|
+
path: string;
|
|
11
|
+
/** OpenAPI path object that will include the operation */
|
|
12
|
+
pathValue: PathItemObject | undefined;
|
|
13
|
+
/** Active server*/
|
|
15
14
|
server: Server | undefined;
|
|
15
|
+
/** Document level security requirements */
|
|
16
|
+
security: SecurityRequirementObject[] | undefined;
|
|
16
17
|
store: WorkspaceStore;
|
|
17
18
|
/** @deprecated Use `document` instead, we just need the selected security scheme uids for now */
|
|
18
19
|
collection: Collection;
|
|
20
|
+
options: {
|
|
21
|
+
layout: 'classic' | 'modern';
|
|
22
|
+
/** Sets some additional display properties when an operation is a webhook */
|
|
23
|
+
isWebhook: boolean;
|
|
24
|
+
showOperationId: boolean | undefined;
|
|
25
|
+
hideTestRequestButton: boolean | undefined;
|
|
26
|
+
expandAllResponses: boolean | undefined;
|
|
27
|
+
clientOptions: ClientOptionGroup[];
|
|
28
|
+
orderRequiredPropertiesFirst: boolean | undefined;
|
|
29
|
+
orderSchemaPropertiesBy: 'alpha' | 'preserve' | undefined;
|
|
30
|
+
};
|
|
19
31
|
};
|
|
20
32
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
33
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Operation.vue.d.ts","sourceRoot":"","sources":["../../../src/features/Operation/Operation.vue"],"names":[],"mappings":"AA8HA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"Operation.vue.d.ts","sourceRoot":"","sources":["../../../src/features/Operation/Operation.vue"],"names":[],"mappings":"AA8HA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AAE3F,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AACzE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAEpE,OAAO,KAAK,EACV,cAAc,EACd,yBAAyB,EAE1B,MAAM,8DAA8D,CAAA;AAUrE,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,EAAE,UAAU,CAAA;IAClB,8DAA8D;IAC9D,IAAI,EAAE,MAAM,CAAA;IACZ,0DAA0D;IAC1D,SAAS,EAAE,cAAc,GAAG,SAAS,CAAA;IACrC,mBAAmB;IACnB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,2CAA2C;IAC3C,QAAQ,EAAE,yBAAyB,EAAE,GAAG,SAAS,CAAA;IAGjD,KAAK,EAAE,cAAc,CAAA;IACrB,iGAAiG;IACjG,UAAU,EAAE,UAAU,CAAA;IACtB,OAAO,EAAE;QACP,MAAM,EAAE,SAAS,GAAG,QAAQ,CAAA;QAC5B,6EAA6E;QAC7E,SAAS,EAAE,OAAO,CAAA;QAClB,eAAe,EAAE,OAAO,GAAG,SAAS,CAAA;QACpC,qBAAqB,EAAE,OAAO,GAAG,SAAS,CAAA;QAC1C,kBAAkB,EAAE,OAAO,GAAG,SAAS,CAAA;QACvC,aAAa,EAAE,iBAAiB,EAAE,CAAA;QAClC,4BAA4B,EAAE,OAAO,GAAG,SAAS,CAAA;QACjD,uBAAuB,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,CAAA;KAC1D,CAAA;CACF,CAAC;;AAuIF,wBAMG"}
|
|
@@ -1,84 +1,73 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useWorkspace as
|
|
3
|
-
import { filterSecurityRequirements as
|
|
1
|
+
import { defineComponent as c, computed as o, createElementBlock as l, createCommentVNode as p, openBlock as s, Fragment as h, createBlock as n } from "vue";
|
|
2
|
+
import { useWorkspace as d } from "@scalar/api-client/store";
|
|
3
|
+
import { filterSecurityRequirements as v } from "@scalar/api-client/views/Request/RequestSection";
|
|
4
4
|
import { getResolvedRef as y } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
5
|
-
import { combineParams as
|
|
5
|
+
import { combineParams as f } from "./helpers/combine-params.js";
|
|
6
6
|
import { convertSecurityScheme as S } from "../../helpers/convert-security-scheme.js";
|
|
7
|
-
import { getFirstServer as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
const
|
|
7
|
+
import { getFirstServer as k } from "./helpers/get-first-server.js";
|
|
8
|
+
import V from "./layouts/ClassicLayout.vue.js";
|
|
9
|
+
import g from "./layouts/ModernLayout.vue.js";
|
|
10
|
+
const N = /* @__PURE__ */ c({
|
|
11
11
|
__name: "Operation",
|
|
12
12
|
props: {
|
|
13
|
-
path: {},
|
|
14
|
-
method: {},
|
|
15
|
-
clientOptions: {},
|
|
16
|
-
config: {},
|
|
17
|
-
document: {},
|
|
18
|
-
isWebhook: { type: Boolean },
|
|
19
13
|
id: {},
|
|
14
|
+
method: {},
|
|
15
|
+
path: {},
|
|
16
|
+
pathValue: {},
|
|
20
17
|
server: {},
|
|
18
|
+
security: {},
|
|
21
19
|
store: {},
|
|
22
|
-
collection: {}
|
|
20
|
+
collection: {},
|
|
21
|
+
options: {}
|
|
23
22
|
},
|
|
24
|
-
setup(
|
|
25
|
-
const
|
|
26
|
-
const e =
|
|
27
|
-
return o.document[e]?.[o.path];
|
|
28
|
-
}), t = r(() => {
|
|
29
|
-
const e = y(i.value?.[o.method]);
|
|
23
|
+
setup(t) {
|
|
24
|
+
const r = o(() => {
|
|
25
|
+
const e = y(t.pathValue?.[t.method]);
|
|
30
26
|
if (!e)
|
|
31
27
|
return null;
|
|
32
|
-
const
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
)
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
t.value?.security || o.document.security || [],
|
|
40
|
-
o.collection.selectedSecuritySchemeUids,
|
|
41
|
-
l
|
|
28
|
+
const m = f(t.pathValue?.parameters, e.parameters);
|
|
29
|
+
return { ...e, parameters: m };
|
|
30
|
+
}), { securitySchemes: u } = d(), i = o(
|
|
31
|
+
() => v(
|
|
32
|
+
r.value?.security || t.security || [],
|
|
33
|
+
t.collection.selectedSecuritySchemeUids,
|
|
34
|
+
u
|
|
42
35
|
).map(S)
|
|
43
|
-
),
|
|
44
|
-
() =>
|
|
36
|
+
), a = o(
|
|
37
|
+
() => k(
|
|
45
38
|
// 1) Operation
|
|
46
|
-
|
|
39
|
+
r.value?.servers,
|
|
47
40
|
// 2) Path Item
|
|
48
|
-
|
|
41
|
+
t.pathValue?.servers,
|
|
49
42
|
// 3) Document
|
|
50
|
-
|
|
43
|
+
t.server
|
|
51
44
|
)
|
|
52
45
|
);
|
|
53
|
-
return (e,
|
|
54
|
-
e.
|
|
46
|
+
return (e, m) => r.value ? (s(), l(h, { key: 0 }, [
|
|
47
|
+
e.options?.layout === "classic" ? (s(), n(V, {
|
|
55
48
|
key: 0,
|
|
56
49
|
id: e.id,
|
|
57
|
-
clientOptions: e.clientOptions,
|
|
58
|
-
config: e.config,
|
|
59
|
-
isWebhook: e.isWebhook,
|
|
60
50
|
method: e.method,
|
|
61
|
-
operation:
|
|
51
|
+
operation: r.value,
|
|
52
|
+
options: e.options,
|
|
62
53
|
path: e.path,
|
|
63
|
-
securitySchemes:
|
|
64
|
-
server:
|
|
54
|
+
securitySchemes: i.value,
|
|
55
|
+
server: a.value,
|
|
65
56
|
store: e.store
|
|
66
|
-
}, null, 8, ["id", "
|
|
57
|
+
}, null, 8, ["id", "method", "operation", "options", "path", "securitySchemes", "server", "store"])) : (s(), n(g, {
|
|
67
58
|
key: 1,
|
|
68
59
|
id: e.id,
|
|
69
|
-
clientOptions: e.clientOptions,
|
|
70
|
-
config: e.config,
|
|
71
|
-
isWebhook: e.isWebhook,
|
|
72
60
|
method: e.method,
|
|
73
|
-
operation:
|
|
61
|
+
operation: r.value,
|
|
62
|
+
options: e.options,
|
|
74
63
|
path: e.path,
|
|
75
|
-
securitySchemes:
|
|
76
|
-
server:
|
|
64
|
+
securitySchemes: i.value,
|
|
65
|
+
server: a.value,
|
|
77
66
|
store: e.store
|
|
78
|
-
}, null, 8, ["id", "
|
|
67
|
+
}, null, 8, ["id", "method", "operation", "options", "path", "securitySchemes", "server", "store"]))
|
|
79
68
|
], 64)) : p("", !0);
|
|
80
69
|
}
|
|
81
70
|
});
|
|
82
71
|
export {
|
|
83
|
-
|
|
72
|
+
N as default
|
|
84
73
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { ApiReferenceConfiguration } from '@scalar/types/api-reference';
|
|
2
1
|
import type { HeaderObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
3
2
|
type __VLS_Props = {
|
|
4
3
|
header: HeaderObject;
|
|
5
4
|
name: string;
|
|
6
5
|
breadcrumb?: string[];
|
|
7
|
-
|
|
6
|
+
orderSchemaPropertiesBy: 'alpha' | 'preserve' | undefined;
|
|
7
|
+
orderRequiredPropertiesFirst: boolean | undefined;
|
|
8
8
|
};
|
|
9
9
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/Header.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Header.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/Header.vue"],"names":[],"mappings":"AA6BA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAIhG,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,YAAY,CAAA;IACpB,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,uBAAuB,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,CAAA;IACzD,4BAA4B,EAAE,OAAO,GAAG,SAAS,CAAA;CAClD,CAAC;;AA0DF,wBAMG"}
|
|
@@ -1,25 +1,26 @@
|
|
|
1
|
-
import { defineComponent as r, createBlock as o, createCommentVNode as a, openBlock as
|
|
1
|
+
import { defineComponent as r, createBlock as o, createCommentVNode as a, openBlock as d, unref as m } from "vue";
|
|
2
2
|
import { getResolvedRef as i } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
3
|
-
import
|
|
3
|
+
import s from "../../../components/Content/Schema/SchemaProperty.vue.js";
|
|
4
4
|
const u = /* @__PURE__ */ r({
|
|
5
5
|
__name: "Header",
|
|
6
6
|
props: {
|
|
7
7
|
header: {},
|
|
8
8
|
name: {},
|
|
9
9
|
breadcrumb: {},
|
|
10
|
-
|
|
10
|
+
orderSchemaPropertiesBy: {},
|
|
11
|
+
orderRequiredPropertiesFirst: { type: Boolean }
|
|
11
12
|
},
|
|
12
|
-
setup(
|
|
13
|
-
return (e,
|
|
13
|
+
setup(p) {
|
|
14
|
+
return (e, n) => "schema" in e.header && e.header.schema ? (d(), o(s, {
|
|
14
15
|
key: 0,
|
|
15
16
|
breadcrumb: e.breadcrumb ? [...e.breadcrumb, "headers"] : void 0,
|
|
16
17
|
description: e.header.description,
|
|
17
18
|
name: e.name,
|
|
18
19
|
options: {
|
|
19
|
-
orderRequiredPropertiesFirst: e.
|
|
20
|
-
orderSchemaPropertiesBy: e.
|
|
20
|
+
orderRequiredPropertiesFirst: e.orderRequiredPropertiesFirst,
|
|
21
|
+
orderSchemaPropertiesBy: e.orderSchemaPropertiesBy
|
|
21
22
|
},
|
|
22
|
-
schema:
|
|
23
|
+
schema: m(i)(e.header.schema)
|
|
23
24
|
}, null, 8, ["breadcrumb", "description", "name", "options", "schema"])) : a("", !0);
|
|
24
25
|
}
|
|
25
26
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { ApiReferenceConfiguration } from '@scalar/types/api-reference';
|
|
2
1
|
import type { HeaderObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
3
2
|
type __VLS_Props = {
|
|
4
3
|
headers: Record<string, HeaderObject>;
|
|
5
4
|
breadcrumb?: string[];
|
|
6
|
-
|
|
5
|
+
orderRequiredPropertiesFirst: boolean | undefined;
|
|
6
|
+
orderSchemaPropertiesBy: 'alpha' | 'preserve' | undefined;
|
|
7
7
|
};
|
|
8
8
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
9
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Headers.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/Headers.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Headers.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/Headers.vue"],"names":[],"mappings":"AA2HA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAIhG,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAA;IACrC,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,4BAA4B,EAAE,OAAO,GAAG,SAAS,CAAA;IACjD,uBAAuB,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,CAAA;CAC1D,CAAC;;AAsJF,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Headers.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-a5e15cd2"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|