@scalar/api-reference 1.36.1 → 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 +63 -0
- package/dist/browser/standalone.js +26246 -25660
- 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/Schema.vue.js +2 -2
- package/dist/components/Content/Schema/Schema.vue2.js +24 -24
- 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 +1 -1
- 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/Section/Section.vue.js +1 -1
- package/dist/components/Section/SectionContainerAccordion.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/consts/urls.d.ts +17 -0
- package/dist/consts/urls.d.ts.map +1 -0
- package/dist/consts/urls.js +7 -0
- 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 +1 -1
- package/dist/features/Operation/components/Headers.vue2.js +35 -33
- 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 +2 -2
- 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 +3 -3
- 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 +11 -6
- package/dist/features/multiple-documents/useMultipleDocuments.d.ts.map +1 -1
- package/dist/features/multiple-documents/useMultipleDocuments.js +57 -48
- 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.d.ts +16 -0
- package/dist/features/toolbar/ApiReferenceToolbar.vue.d.ts.map +1 -0
- package/dist/features/toolbar/ApiReferenceToolbar.vue.js +43 -0
- package/dist/features/toolbar/ApiReferenceToolbar.vue2.js +4 -0
- package/dist/features/toolbar/ApiReferenceToolbarBlurb.vue.d.ts +13 -0
- package/dist/features/toolbar/ApiReferenceToolbarBlurb.vue.d.ts.map +1 -0
- package/dist/features/toolbar/ApiReferenceToolbarBlurb.vue.js +12 -0
- package/dist/features/toolbar/ApiReferenceToolbarConfig.vue.d.ts +14 -0
- package/dist/features/toolbar/ApiReferenceToolbarConfig.vue.d.ts.map +1 -0
- package/dist/features/toolbar/ApiReferenceToolbarConfig.vue.js +95 -0
- package/dist/features/toolbar/ApiReferenceToolbarConfig.vue2.js +4 -0
- package/dist/features/toolbar/ApiReferenceToolbarConfigLayout.vue.d.ts +10 -0
- package/dist/features/toolbar/ApiReferenceToolbarConfigLayout.vue.d.ts.map +1 -0
- package/dist/features/toolbar/ApiReferenceToolbarConfigLayout.vue.js +27 -0
- package/dist/features/toolbar/ApiReferenceToolbarConfigLayout.vue2.js +4 -0
- package/dist/features/toolbar/ApiReferenceToolbarConfigLayoutOptions.vue.d.ts +25 -0
- package/dist/features/toolbar/ApiReferenceToolbarConfigLayoutOptions.vue.d.ts.map +1 -0
- package/dist/features/toolbar/ApiReferenceToolbarConfigLayoutOptions.vue.js +123 -0
- package/dist/features/toolbar/ApiReferenceToolbarConfigLayoutOptions.vue2.js +4 -0
- package/dist/features/toolbar/ApiReferenceToolbarConfigTheme.vue.d.ts +11 -0
- package/dist/features/toolbar/ApiReferenceToolbarConfigTheme.vue.d.ts.map +1 -0
- package/dist/features/toolbar/ApiReferenceToolbarConfigTheme.vue.js +41 -0
- package/dist/features/toolbar/ApiReferenceToolbarConfigTheme.vue2.js +4 -0
- package/dist/features/toolbar/ApiReferenceToolbarPopover.vue.d.ts +26 -0
- package/dist/features/toolbar/ApiReferenceToolbarPopover.vue.d.ts.map +1 -0
- package/dist/features/toolbar/ApiReferenceToolbarPopover.vue.js +46 -0
- package/dist/features/toolbar/ApiReferenceToolbarPopover.vue2.js +4 -0
- package/dist/features/toolbar/ApiReferenceToolbarRegisterButton.vue.d.ts +25 -0
- package/dist/features/toolbar/ApiReferenceToolbarRegisterButton.vue.d.ts.map +1 -0
- package/dist/features/toolbar/ApiReferenceToolbarRegisterButton.vue.js +58 -0
- package/dist/features/toolbar/ApiReferenceToolbarRegisterButton.vue2.js +4 -0
- package/dist/features/toolbar/ApiReferenceToolbarSdks.vue.d.ts +7 -0
- package/dist/features/toolbar/ApiReferenceToolbarSdks.vue.d.ts.map +1 -0
- package/dist/features/toolbar/ApiReferenceToolbarSdks.vue.js +84 -0
- package/dist/features/toolbar/ApiReferenceToolbarSdks.vue2.js +4 -0
- package/dist/features/toolbar/ApiReferenceToolbarShare.vue.d.ts +7 -0
- package/dist/features/toolbar/ApiReferenceToolbarShare.vue.d.ts.map +1 -0
- package/dist/features/toolbar/ApiReferenceToolbarShare.vue.js +42 -0
- package/dist/features/toolbar/ApiReferenceToolbarShare.vue2.js +4 -0
- package/dist/features/toolbar/ApiReferenceToolbarShareRegister.vue.d.ts +7 -0
- package/dist/features/toolbar/ApiReferenceToolbarShareRegister.vue.d.ts.map +1 -0
- package/dist/features/toolbar/ApiReferenceToolbarShareRegister.vue.js +56 -0
- package/dist/features/toolbar/ApiReferenceToolbarShareRegister.vue2.js +4 -0
- package/dist/{v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts → features/toolbar/ApiReferenceToolbarShareTemporary.vue.d.ts} +6 -6
- package/dist/features/toolbar/ApiReferenceToolbarShareTemporary.vue.d.ts.map +1 -0
- package/dist/features/toolbar/ApiReferenceToolbarShareTemporary.vue.js +83 -0
- package/dist/features/toolbar/ApiReferenceToolbarShareTemporary.vue2.js +4 -0
- package/dist/features/toolbar/ApiReferenceToolbarTitle.vue.d.ts +3 -0
- package/dist/features/toolbar/ApiReferenceToolbarTitle.vue.d.ts.map +1 -0
- package/dist/features/toolbar/ApiReferenceToolbarTitle.vue.js +51 -0
- package/dist/features/toolbar/ApiReferenceToolbarTitle.vue2.js +4 -0
- package/dist/features/toolbar/uploadTempDocument.d.ts +3 -0
- package/dist/features/toolbar/uploadTempDocument.d.ts.map +1 -0
- package/dist/features/toolbar/uploadTempDocument.js +21 -0
- 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 +6 -6
- package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.js +93 -79
- 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 +1 -1
- 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 +21 -18
- 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.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,38 +1,38 @@
|
|
|
1
|
-
import { defineComponent as b, useId as y, computed as
|
|
2
|
-
import { ScalarErrorBoundary as
|
|
1
|
+
import { defineComponent as b, useId as y, computed as c, createBlock as s, createCommentVNode as p, openBlock as a, unref as e, withCtx as o, createVNode as l, createElementVNode as w, createTextVNode as B, normalizeClass as N, createElementBlock as g, Fragment as k, renderList as C } from "vue";
|
|
2
|
+
import { ScalarErrorBoundary as I } from "@scalar/components";
|
|
3
3
|
import A from "../../ShowMoreButton.vue.js";
|
|
4
4
|
import { useSidebar as H } from "../../../v2/blocks/scalar-sidebar-block/hooks/useSidebar.js";
|
|
5
5
|
import L from "../../Section/SectionContainer.vue.js";
|
|
6
|
-
import
|
|
6
|
+
import _ from "../../Section/Section.vue.js";
|
|
7
7
|
import E from "../../Section/SectionHeader.vue.js";
|
|
8
|
-
import
|
|
8
|
+
import f from "../../Section/SectionHeaderTag.vue.js";
|
|
9
9
|
import O from "../../Section/CompactSection.vue.js";
|
|
10
10
|
import P from "../Schema/Schema.vue.js";
|
|
11
11
|
import V from "../Schema/SchemaHeading.vue.js";
|
|
12
12
|
const S = 10, G = /* @__PURE__ */ b({
|
|
13
13
|
__name: "ModernLayout",
|
|
14
14
|
props: {
|
|
15
|
-
|
|
15
|
+
options: {},
|
|
16
16
|
schemas: { default: () => [] }
|
|
17
17
|
},
|
|
18
18
|
setup(r) {
|
|
19
|
-
const m = y(), { collapsedSidebarItems: h } = H(),
|
|
20
|
-
() => r.
|
|
21
|
-
),
|
|
22
|
-
return (t,
|
|
19
|
+
const m = y(), { collapsedSidebarItems: h } = H(), n = c(
|
|
20
|
+
() => r.options.expandAllModelSections || r.schemas.length <= S || h.models
|
|
21
|
+
), M = c(() => n.value ? r.schemas : r.schemas.slice(0, S));
|
|
22
|
+
return (t, u) => t.schemas ? (a(), s(e(L), {
|
|
23
23
|
key: 0,
|
|
24
24
|
id: "models"
|
|
25
25
|
}, {
|
|
26
26
|
default: o(() => [
|
|
27
|
-
l(e(
|
|
27
|
+
l(e(_), { "aria-labelledby": e(m) }, {
|
|
28
28
|
default: o(() => [
|
|
29
29
|
l(e(E), null, {
|
|
30
30
|
default: o(() => [
|
|
31
|
-
l(e(
|
|
31
|
+
l(e(f), {
|
|
32
32
|
id: e(m),
|
|
33
33
|
level: 2
|
|
34
34
|
}, {
|
|
35
|
-
default: o(() =>
|
|
35
|
+
default: o(() => u[0] || (u[0] = [
|
|
36
36
|
B(" Models ")
|
|
37
37
|
])),
|
|
38
38
|
_: 1,
|
|
@@ -41,29 +41,29 @@ const S = 10, G = /* @__PURE__ */ b({
|
|
|
41
41
|
]),
|
|
42
42
|
_: 1
|
|
43
43
|
}),
|
|
44
|
-
|
|
45
|
-
class: N(["models-list", { "models-list-truncated": !
|
|
44
|
+
w("div", {
|
|
45
|
+
class: N(["models-list", { "models-list-truncated": !n.value }])
|
|
46
46
|
}, [
|
|
47
|
-
(a(!0), k
|
|
47
|
+
(a(!0), g(k, null, C(M.value, ({ id: v, name: d, schema: i }) => (a(), s(e(O), {
|
|
48
48
|
id: v,
|
|
49
|
-
key:
|
|
49
|
+
key: d,
|
|
50
50
|
class: "models-list-item",
|
|
51
|
-
defaultOpen: t.
|
|
52
|
-
label:
|
|
51
|
+
defaultOpen: t.options.expandAllModelSections,
|
|
52
|
+
label: d
|
|
53
53
|
}, {
|
|
54
54
|
heading: o(() => [
|
|
55
|
-
l(e(
|
|
55
|
+
l(e(f), { level: 3 }, {
|
|
56
56
|
default: o(() => [
|
|
57
57
|
l(e(V), {
|
|
58
|
-
name:
|
|
59
|
-
value:
|
|
58
|
+
name: i.title ?? d,
|
|
59
|
+
value: i
|
|
60
60
|
}, null, 8, ["name", "value"])
|
|
61
61
|
]),
|
|
62
62
|
_: 2
|
|
63
63
|
}, 1024)
|
|
64
64
|
]),
|
|
65
65
|
default: o(() => [
|
|
66
|
-
l(e(
|
|
66
|
+
l(e(I), null, {
|
|
67
67
|
default: o(() => [
|
|
68
68
|
l(e(P), {
|
|
69
69
|
hideHeading: "",
|
|
@@ -71,10 +71,10 @@ const S = 10, G = /* @__PURE__ */ b({
|
|
|
71
71
|
level: 1,
|
|
72
72
|
noncollapsible: "",
|
|
73
73
|
options: {
|
|
74
|
-
orderRequiredPropertiesFirst: t.
|
|
75
|
-
orderSchemaPropertiesBy: t.
|
|
74
|
+
orderRequiredPropertiesFirst: t.options.orderRequiredPropertiesFirst,
|
|
75
|
+
orderSchemaPropertiesBy: t.options.orderSchemaPropertiesBy
|
|
76
76
|
},
|
|
77
|
-
schema:
|
|
77
|
+
schema: i
|
|
78
78
|
}, null, 8, ["options", "schema"])
|
|
79
79
|
]),
|
|
80
80
|
_: 2
|
|
@@ -83,17 +83,18 @@ const S = 10, G = /* @__PURE__ */ b({
|
|
|
83
83
|
_: 2
|
|
84
84
|
}, 1032, ["id", "defaultOpen", "label"]))), 128))
|
|
85
85
|
], 2),
|
|
86
|
-
|
|
86
|
+
n.value ? p("", !0) : (a(), s(A, {
|
|
87
87
|
key: 0,
|
|
88
88
|
id: "models",
|
|
89
|
-
class: "show-more-models"
|
|
90
|
-
|
|
89
|
+
class: "show-more-models",
|
|
90
|
+
onShowMore: t.options.onShowMore
|
|
91
|
+
}, null, 8, ["onShowMore"]))
|
|
91
92
|
]),
|
|
92
93
|
_: 1
|
|
93
94
|
}, 8, ["aria-labelledby"])
|
|
94
95
|
]),
|
|
95
96
|
_: 1
|
|
96
|
-
})) :
|
|
97
|
+
})) : p("", !0);
|
|
97
98
|
}
|
|
98
99
|
});
|
|
99
100
|
export {
|
|
@@ -1,18 +1,32 @@
|
|
|
1
|
+
import type { ClientOptionGroup } from '@scalar/api-client/v2/blocks/operation-code-sample';
|
|
1
2
|
import type { Collection, Server } from '@scalar/oas-utils/entities/spec';
|
|
2
|
-
import type { ApiReferenceConfiguration } from '@scalar/types';
|
|
3
3
|
import type { WorkspaceStore } from '@scalar/workspace-store/client';
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
4
|
+
import type { TraversedEntry } from '@scalar/workspace-store/schemas/navigation';
|
|
5
|
+
import type { PathsObject, SecurityRequirementObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
6
6
|
type __VLS_Props = {
|
|
7
7
|
level?: number;
|
|
8
|
+
hash: string;
|
|
8
9
|
rootIndex: number;
|
|
9
10
|
entries: TraversedEntry[];
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
/** The path entries from the document `document.paths` */
|
|
12
|
+
paths: PathsObject;
|
|
13
|
+
/** The webhook path entries from the document `document.webhooks` */
|
|
14
|
+
webhooks: PathsObject;
|
|
15
|
+
/** The security requirements from the document `document.security` */
|
|
16
|
+
security: SecurityRequirementObject[] | undefined;
|
|
13
17
|
activeCollection: Collection;
|
|
14
18
|
activeServer: Server | undefined;
|
|
15
19
|
store: WorkspaceStore;
|
|
20
|
+
options: {
|
|
21
|
+
layout: 'classic' | 'modern';
|
|
22
|
+
showOperationId: boolean | undefined;
|
|
23
|
+
hideTestRequestButton: boolean | undefined;
|
|
24
|
+
expandAllResponses: boolean | undefined;
|
|
25
|
+
clientOptions: ClientOptionGroup[];
|
|
26
|
+
orderRequiredPropertiesFirst: boolean | undefined;
|
|
27
|
+
orderSchemaPropertiesBy: 'alpha' | 'preserve' | undefined;
|
|
28
|
+
onShowMore: ((id: string) => void) | undefined;
|
|
29
|
+
};
|
|
16
30
|
};
|
|
17
31
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {
|
|
18
32
|
currentIndex: import("vue").ComputedRef<number>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TraversedEntry.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operations/TraversedEntry.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TraversedEntry.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operations/TraversedEntry.vue"],"names":[],"mappings":"AA6LA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AAC3F,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AACzE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EACV,cAAc,EAIf,MAAM,4CAA4C,CAAA;AACnD,OAAO,KAAK,EACV,WAAW,EACX,yBAAyB,EAC1B,MAAM,8DAA8D,CAAA;AASrE,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,cAAc,EAAE,CAAA;IACzB,0DAA0D;IAC1D,KAAK,EAAE,WAAW,CAAA;IAClB,qEAAqE;IACrE,QAAQ,EAAE,WAAW,CAAA;IACrB,sEAAsE;IACtE,QAAQ,EAAE,yBAAyB,EAAE,GAAG,SAAS,CAAA;IACjD,gBAAgB,EAAE,UAAU,CAAA;IAC5B,YAAY,EAAE,MAAM,GAAG,SAAS,CAAA;IAChC,KAAK,EAAE,cAAc,CAAA;IACrB,OAAO,EAAE;QACP,MAAM,EAAE,SAAS,GAAG,QAAQ,CAAA;QAC5B,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;QACzD,UAAU,EAAE,CAAC,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,SAAS,CAAA;KAC/C,CAAA;CACF,CAAC;;;oBA6CqB,cAAc,SAAS,MAAM;;AAoNpD,wBAOG"}
|
|
@@ -1,89 +1,101 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { getCurrentIndex as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
const D = /* @__PURE__ */ I({
|
|
1
|
+
import { defineComponent as S, computed as f, resolveComponent as b, createElementBlock as I, openBlock as r, Fragment as T, renderList as L, createBlock as i, unref as a, withCtx as v, createCommentVNode as k, createVNode as y } from "vue";
|
|
2
|
+
import { getCurrentIndex as V } from "./get-current-index.js";
|
|
3
|
+
import B from "../../Lazy/Lazy.vue2.js";
|
|
4
|
+
import E from "../../Section/SectionContainer.vue.js";
|
|
5
|
+
import z from "../../../features/Operation/Operation.vue.js";
|
|
6
|
+
import M from "../Tags/Tag.vue.js";
|
|
7
|
+
const P = /* @__PURE__ */ S({
|
|
9
8
|
__name: "TraversedEntry",
|
|
10
9
|
props: {
|
|
11
10
|
level: { default: 0 },
|
|
11
|
+
hash: {},
|
|
12
12
|
rootIndex: {},
|
|
13
13
|
entries: {},
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
paths: {},
|
|
15
|
+
webhooks: {},
|
|
16
|
+
security: {},
|
|
17
17
|
activeCollection: {},
|
|
18
18
|
activeServer: {},
|
|
19
|
-
store: {}
|
|
19
|
+
store: {},
|
|
20
|
+
options: {}
|
|
20
21
|
},
|
|
21
|
-
setup(
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
setup(t, { expose: g }) {
|
|
23
|
+
const n = (e) => e.type === "tag" && e.isGroup === !0, p = (e) => e.type === "tag" && !n(e), C = (e) => e.type === "operation", s = (e) => e.type === "webhook", c = f(() => t.level === 0), l = f(() => c.value ? t.rootIndex : V(t.hash, t.entries)), h = (e, u) => n(e) ? null : u < l.value ? "prev" : u > l.value + 2 ? "after" : null;
|
|
24
|
+
function w(e) {
|
|
25
|
+
return s(e) ? t.webhooks[e.name] : t.paths[e.path];
|
|
26
|
+
}
|
|
27
|
+
return g({
|
|
28
|
+
currentIndex: l,
|
|
29
|
+
isLazy: h
|
|
26
30
|
}), (e, u) => {
|
|
27
|
-
const
|
|
28
|
-
return
|
|
31
|
+
const d = b("TraversedEntry", !0);
|
|
32
|
+
return r(!0), I(T, null, L(e.entries, (o, m) => (r(), i(a(B), {
|
|
29
33
|
id: o.id,
|
|
30
34
|
key: o.id,
|
|
31
|
-
isLazy: !!
|
|
32
|
-
prev:
|
|
35
|
+
isLazy: !!h(o, m),
|
|
36
|
+
prev: h(o, m) === "prev"
|
|
33
37
|
}, {
|
|
34
38
|
default: v(() => [
|
|
35
|
-
|
|
39
|
+
C(o) || s(o) ? (r(), i(a(E), {
|
|
36
40
|
key: 0,
|
|
37
|
-
omit: !
|
|
41
|
+
omit: !c.value
|
|
38
42
|
}, {
|
|
39
43
|
default: v(() => [
|
|
40
|
-
|
|
44
|
+
y(a(z), {
|
|
41
45
|
id: o.id,
|
|
42
|
-
clientOptions: e.clientOptions,
|
|
43
46
|
collection: e.activeCollection,
|
|
44
|
-
config: e.config,
|
|
45
|
-
document: e.document,
|
|
46
|
-
isWebhook: a(o),
|
|
47
47
|
method: o.method,
|
|
48
|
-
|
|
48
|
+
options: {
|
|
49
|
+
...e.options,
|
|
50
|
+
isWebhook: s(o)
|
|
51
|
+
},
|
|
52
|
+
path: s(o) ? o.name : o.path,
|
|
53
|
+
pathValue: w(o),
|
|
54
|
+
security: e.security,
|
|
49
55
|
server: e.activeServer,
|
|
50
56
|
store: e.store
|
|
51
|
-
}, null, 8, ["id", "
|
|
57
|
+
}, null, 8, ["id", "collection", "method", "options", "path", "pathValue", "security", "server", "store"])
|
|
52
58
|
]),
|
|
53
59
|
_: 2
|
|
54
|
-
}, 1032, ["omit"])) :
|
|
60
|
+
}, 1032, ["omit"])) : p(o) ? (r(), i(a(M), {
|
|
55
61
|
key: 1,
|
|
56
|
-
|
|
57
|
-
|
|
62
|
+
isLoading: !1,
|
|
63
|
+
layout: e.options.layout,
|
|
64
|
+
moreThanOneTag: e.entries.filter(p).length > 1,
|
|
65
|
+
onShowMore: e.options.onShowMore,
|
|
58
66
|
tag: o
|
|
59
67
|
}, {
|
|
60
68
|
default: v(() => [
|
|
61
|
-
"children" in o && o.children?.length ? (
|
|
69
|
+
"children" in o && o.children?.length ? (r(), i(d, {
|
|
62
70
|
key: 0,
|
|
63
71
|
activeCollection: e.activeCollection,
|
|
64
72
|
activeServer: e.activeServer,
|
|
65
|
-
clientOptions: e.clientOptions,
|
|
66
|
-
config: e.config,
|
|
67
|
-
document: e.document,
|
|
68
73
|
entries: o.children,
|
|
74
|
+
hash: e.hash,
|
|
69
75
|
level: e.level + 1,
|
|
76
|
+
options: e.options,
|
|
77
|
+
paths: e.paths,
|
|
70
78
|
rootIndex: e.rootIndex,
|
|
71
|
-
|
|
72
|
-
|
|
79
|
+
security: e.security,
|
|
80
|
+
store: e.store,
|
|
81
|
+
webhooks: e.webhooks
|
|
82
|
+
}, null, 8, ["activeCollection", "activeServer", "entries", "hash", "level", "options", "paths", "rootIndex", "security", "store", "webhooks"])) : k("", !0)
|
|
73
83
|
]),
|
|
74
84
|
_: 2
|
|
75
|
-
}, 1032, ["layout", "moreThanOneTag", "tag"])) :
|
|
85
|
+
}, 1032, ["layout", "moreThanOneTag", "onShowMore", "tag"])) : n(o) ? (r(), i(d, {
|
|
76
86
|
key: 2,
|
|
77
87
|
activeCollection: e.activeCollection,
|
|
78
88
|
activeServer: e.activeServer,
|
|
79
|
-
clientOptions: e.clientOptions,
|
|
80
|
-
config: e.config,
|
|
81
|
-
document: e.document,
|
|
82
89
|
entries: o.children || [],
|
|
90
|
+
hash: e.hash,
|
|
83
91
|
level: e.level + 1,
|
|
92
|
+
options: e.options,
|
|
93
|
+
paths: e.paths,
|
|
84
94
|
rootIndex: e.rootIndex,
|
|
85
|
-
|
|
86
|
-
|
|
95
|
+
security: e.security,
|
|
96
|
+
store: e.store,
|
|
97
|
+
webhooks: e.webhooks
|
|
98
|
+
}, null, 8, ["activeCollection", "activeServer", "entries", "hash", "level", "options", "paths", "rootIndex", "security", "store", "webhooks"])) : k("", !0)
|
|
87
99
|
]),
|
|
88
100
|
_: 2
|
|
89
101
|
}, 1032, ["id", "isLazy", "prev"]))), 128);
|
|
@@ -91,5 +103,5 @@ const D = /* @__PURE__ */ I({
|
|
|
91
103
|
}
|
|
92
104
|
});
|
|
93
105
|
export {
|
|
94
|
-
|
|
106
|
+
P as default
|
|
95
107
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TraversedEntry } from '@scalar/workspace-store/schemas/
|
|
1
|
+
import type { TraversedEntry } from '@scalar/workspace-store/schemas/navigation';
|
|
2
2
|
/** Loops through the entries and returns the index of the current entry based on the hash */
|
|
3
3
|
export declare const getCurrentIndex: (hash: string, entries: TraversedEntry[]) => number;
|
|
4
4
|
//# sourceMappingURL=get-current-index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-current-index.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operations/get-current-index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"get-current-index.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operations/get-current-index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAA;AAuBhF,6FAA6F;AAC7F,eAAO,MAAM,eAAe,GAAI,MAAM,MAAM,EAAE,SAAS,cAAc,EAAE,WAYtE,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Schema.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-35907cdf"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
c as default
|
|
7
7
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as H, computed as k, createBlock as
|
|
2
|
-
import { Disclosure as P, DisclosureButton as N, DisclosurePanel as
|
|
3
|
-
import { ScalarMarkdown as
|
|
1
|
+
import { defineComponent as H, computed as k, createBlock as s, createCommentVNode as t, openBlock as i, unref as l, withCtx as r, createElementVNode as g, normalizeClass as m, createElementBlock as c, createVNode as n, withDirectives as S, createTextVNode as d, toDisplayString as u, vShow as C, normalizeStyle as O, Fragment as h } from "vue";
|
|
2
|
+
import { Disclosure as P, DisclosureButton as N, DisclosurePanel as w } from "@headlessui/vue";
|
|
3
|
+
import { ScalarMarkdown as M, ScalarIcon as p } from "@scalar/components";
|
|
4
4
|
import B from "../../ScreenReader.vue.js";
|
|
5
5
|
import { isTypeObject as D } from "./helpers/is-type-object.js";
|
|
6
6
|
import z from "./SchemaHeading.vue.js";
|
|
@@ -28,32 +28,32 @@ const j = {
|
|
|
28
28
|
options: {}
|
|
29
29
|
},
|
|
30
30
|
setup(a) {
|
|
31
|
-
const f = k(() => !a.noncollapsible && a.level > 0), y = k(() => a.schema?.allOf && a.schema.allOf.length > 0 && a.name === "Request Body" ? a.schema.description || a.schema.allOf[0].description : !a.schema?.description || typeof a.schema.description != "string" || a.schema.oneOf || a.schema.anyOf || a.schema.enum || !("properties" in a.schema) && !("patternProperties" in a.schema) && !("additionalProperties" in a.schema) ? null : a.schema.description),
|
|
32
|
-
return (e,
|
|
31
|
+
const f = k(() => !a.noncollapsible && a.level > 0), y = k(() => a.schema?.allOf && a.schema.allOf.length > 0 && a.name === "Request Body" ? a.schema.description || a.schema.allOf[0].description : !a.schema?.description || typeof a.schema.description != "string" || a.schema.oneOf || a.schema.anyOf || a.schema.enum || !("properties" in a.schema) && !("patternProperties" in a.schema) && !("additionalProperties" in a.schema) ? null : a.schema.description), v = (e) => a.noncollapsible && e.stopPropagation();
|
|
32
|
+
return (e, b) => typeof e.schema == "object" && Object.keys(e.schema).length ? (i(), s(l(P), {
|
|
33
33
|
key: 0,
|
|
34
34
|
defaultOpen: e.noncollapsible
|
|
35
35
|
}, {
|
|
36
|
-
default: r(({ open:
|
|
36
|
+
default: r(({ open: o }) => [
|
|
37
37
|
g("div", {
|
|
38
38
|
class: m(["schema-card", [
|
|
39
39
|
`schema-card--level-${e.level}`,
|
|
40
|
-
{ "schema-card--compact": e.compact, "schema-card--open":
|
|
41
|
-
{ "border-t": e.additionalProperties &&
|
|
40
|
+
{ "schema-card--compact": e.compact, "schema-card--open": o },
|
|
41
|
+
{ "border-t": e.additionalProperties && o }
|
|
42
42
|
]])
|
|
43
43
|
}, [
|
|
44
44
|
y.value ? (i(), c("div", j, [
|
|
45
|
-
n(l(
|
|
45
|
+
n(l(M), { value: y.value }, null, 8, ["value"])
|
|
46
46
|
])) : t("", !0),
|
|
47
47
|
g("div", {
|
|
48
48
|
class: m(["schema-properties", {
|
|
49
|
-
"schema-properties-open":
|
|
49
|
+
"schema-properties-open": o
|
|
50
50
|
}])
|
|
51
51
|
}, [
|
|
52
52
|
e.additionalProperties ? S((i(), c("div", T, [
|
|
53
53
|
n(l(N), {
|
|
54
54
|
as: "button",
|
|
55
55
|
class: "schema-card-title schema-card-title--compact",
|
|
56
|
-
onClickCapture:
|
|
56
|
+
onClickCapture: v
|
|
57
57
|
}, {
|
|
58
58
|
default: r(() => [
|
|
59
59
|
n(l(p), {
|
|
@@ -61,8 +61,8 @@ const j = {
|
|
|
61
61
|
icon: "Add",
|
|
62
62
|
size: "sm"
|
|
63
63
|
}),
|
|
64
|
-
|
|
65
|
-
e.name ? (i(),
|
|
64
|
+
b[0] || (b[0] = d(" Show additional properties ")),
|
|
65
|
+
e.name ? (i(), s(B, { key: 0 }, {
|
|
66
66
|
default: r(() => [
|
|
67
67
|
d("for " + u(e.name), 1)
|
|
68
68
|
]),
|
|
@@ -73,29 +73,29 @@ const j = {
|
|
|
73
73
|
__: [0]
|
|
74
74
|
})
|
|
75
75
|
], 512)), [
|
|
76
|
-
[C, !
|
|
77
|
-
]) : f.value ? S((i(),
|
|
76
|
+
[C, !o]
|
|
77
|
+
]) : f.value ? S((i(), s(l(N), {
|
|
78
78
|
key: 1,
|
|
79
79
|
as: e.noncollapsible ? "div" : "button",
|
|
80
80
|
class: m(["schema-card-title", { "schema-card-title--compact": e.compact }]),
|
|
81
81
|
style: O({
|
|
82
|
-
top: `calc(var(--refs-
|
|
82
|
+
top: `calc(var(--refs-viewport-offset) + calc(var(--schema-title-height) * ${e.level}))`
|
|
83
83
|
}),
|
|
84
|
-
onClickCapture:
|
|
84
|
+
onClickCapture: v
|
|
85
85
|
}, {
|
|
86
86
|
default: r(() => [
|
|
87
87
|
e.compact ? (i(), c(h, { key: 0 }, [
|
|
88
88
|
n(l(p), {
|
|
89
|
-
class: m(["schema-card-title-icon", { "schema-card-title-icon--open":
|
|
89
|
+
class: m(["schema-card-title-icon", { "schema-card-title-icon--open": o }]),
|
|
90
90
|
icon: "Add",
|
|
91
91
|
size: "sm"
|
|
92
92
|
}, null, 8, ["class"]),
|
|
93
|
-
|
|
93
|
+
o ? (i(), c(h, { key: 0 }, [
|
|
94
94
|
d(" Hide " + u(e.schema?.title ?? "Child Attributes"), 1)
|
|
95
95
|
], 64)) : (i(), c(h, { key: 1 }, [
|
|
96
96
|
d(" Show " + u(e.schema?.title ?? "Child Attributes"), 1)
|
|
97
97
|
], 64)),
|
|
98
|
-
e.name ? (i(),
|
|
98
|
+
e.name ? (i(), s(B, { key: 2 }, {
|
|
99
99
|
default: r(() => [
|
|
100
100
|
d("for " + u(e.name), 1)
|
|
101
101
|
]),
|
|
@@ -103,7 +103,7 @@ const j = {
|
|
|
103
103
|
})) : t("", !0)
|
|
104
104
|
], 64)) : (i(), c(h, { key: 1 }, [
|
|
105
105
|
n(l(p), {
|
|
106
|
-
class: m(["schema-card-title-icon", { "schema-card-title-icon--open":
|
|
106
|
+
class: m(["schema-card-title-icon", { "schema-card-title-icon--open": o }]),
|
|
107
107
|
icon: "Add",
|
|
108
108
|
size: "sm"
|
|
109
109
|
}, null, 8, ["class"]),
|
|
@@ -117,13 +117,13 @@ const j = {
|
|
|
117
117
|
}, 1032, ["as", "class", "style"])), [
|
|
118
118
|
[C, !e.hideHeading && !(e.noncollapsible && e.compact)]
|
|
119
119
|
]) : t("", !0),
|
|
120
|
-
!e.additionalProperties ||
|
|
120
|
+
!e.additionalProperties || o ? (i(), s(l(w), {
|
|
121
121
|
key: 2,
|
|
122
122
|
as: "ul",
|
|
123
123
|
static: !f.value
|
|
124
124
|
}, {
|
|
125
125
|
default: r(() => [
|
|
126
|
-
l(D)(e.schema) ? (i(),
|
|
126
|
+
l(D)(e.schema) ? (i(), s(A, {
|
|
127
127
|
key: 0,
|
|
128
128
|
breadcrumb: e.breadcrumb,
|
|
129
129
|
compact: e.compact,
|
|
@@ -134,7 +134,7 @@ const j = {
|
|
|
134
134
|
options: e.options,
|
|
135
135
|
schema: e.schema
|
|
136
136
|
}, null, 8, ["breadcrumb", "compact", "discriminator", "hideHeading", "hideModelNames", "level", "options", "schema"])) : (i(), c(h, { key: 1 }, [
|
|
137
|
-
e.schema ? (i(),
|
|
137
|
+
e.schema ? (i(), s(V, {
|
|
138
138
|
key: 0,
|
|
139
139
|
breadcrumb: e.breadcrumb,
|
|
140
140
|
compact: e.compact,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-ref-name.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/get-ref-name.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAChG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uDAAuD,CAAA;AAE1F;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,GAAI,QAAQ,aAAa,CAAC,YAAY,CAAC,
|
|
1
|
+
{"version":3,"file":"get-ref-name.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/get-ref-name.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAChG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uDAAuD,CAAA;AAE1F;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,GAAI,QAAQ,aAAa,CAAC,YAAY,CAAC,kBAiB7D,CAAA"}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import { REGEX as
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
if (!r)
|
|
1
|
+
import { REGEX as e } from "@scalar/helpers/regex/regex-helpers";
|
|
2
|
+
const u = (r) => {
|
|
3
|
+
if (!("$ref" in r))
|
|
5
4
|
return null;
|
|
6
|
-
const t = r
|
|
7
|
-
|
|
5
|
+
const t = r.$ref;
|
|
6
|
+
if (!t)
|
|
7
|
+
return null;
|
|
8
|
+
const n = t.match(e.REF_NAME);
|
|
9
|
+
return n ? n[1] : null;
|
|
8
10
|
};
|
|
9
11
|
export {
|
|
10
|
-
|
|
12
|
+
u as getRefName
|
|
11
13
|
};
|
|
@@ -72,7 +72,7 @@ const l = (e, f) => {
|
|
|
72
72
|
continue;
|
|
73
73
|
}
|
|
74
74
|
if (!e[r]) {
|
|
75
|
-
i.allOf ? e[r] = l(i) :
|
|
75
|
+
i.allOf ? e[r] = l(i) : O(i) && p(i.items)?.allOf ? e[r] = {
|
|
76
76
|
...i,
|
|
77
77
|
items: l(p(i.items))
|
|
78
78
|
} : e[r] = f[r];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-name.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/schema-name.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAChG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uDAAuD,CAAA;
|
|
1
|
+
{"version":3,"file":"schema-name.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/schema-name.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAChG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uDAAuD,CAAA;AAK1F;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,GAAI,aAAa,YAAY,GAAG,aAAa,CAAC,YAAY,CAAC,KAAG,MAAM,GAAG,IAyBzG,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,mBAAmB,GAAI,MAAM,OAAO,CAAC,YAAY,EAAE;IAAE,IAAI,EAAE,GAAG,CAAA;CAAE,CAAC,CAAC,MAAM,CAAC,EAAE,WAAW,MAAM,KAAG,MACrD,CAAA;AAEvD;;;GAGG;AACH,eAAO,MAAM,YAAY,GAAI,OAAO,YAAY,EAAE,wBAAsB,KAAG,MAAM,GAAG,IA+CnF,CAAA"}
|
|
@@ -1,32 +1,33 @@
|
|
|
1
|
-
import { getResolvedRef as
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { getResolvedRef as y } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
2
|
+
import { isArraySchema as a } from "@scalar/workspace-store/schemas/v3.1/strict/type-guards";
|
|
3
|
+
import { getRefName as p } from "./get-ref-name.js";
|
|
4
|
+
const s = (t) => {
|
|
4
5
|
if (!t)
|
|
5
6
|
return null;
|
|
6
7
|
if ("$ref" in t) {
|
|
7
|
-
const e =
|
|
8
|
+
const e = p(t);
|
|
8
9
|
if (e)
|
|
9
10
|
return e;
|
|
10
11
|
}
|
|
11
|
-
const r =
|
|
12
|
+
const r = y(t);
|
|
12
13
|
return r.title ? r.title : r.name ? r.name : null;
|
|
13
|
-
}, o = (t, r) => `${t} ${r}${t === "array" ? "[]" : ""}`,
|
|
14
|
+
}, o = (t, r) => `${t} ${r}${t === "array" ? "[]" : ""}`, N = (t, r = !1) => {
|
|
14
15
|
if (!("type" in t) || r)
|
|
15
16
|
return null;
|
|
16
|
-
const e = t.type, i =
|
|
17
|
+
const e = t.type, i = s(t);
|
|
17
18
|
if (i && t.title)
|
|
18
19
|
return e === "array" ? `array ${i}[]` : i;
|
|
19
|
-
if (
|
|
20
|
-
const n =
|
|
21
|
-
if (
|
|
22
|
-
return o(e,
|
|
23
|
-
const m =
|
|
20
|
+
if (a(t) && t.items) {
|
|
21
|
+
const n = y(t.items), f = n.title;
|
|
22
|
+
if (f)
|
|
23
|
+
return o(e, f);
|
|
24
|
+
const m = s(t.items);
|
|
24
25
|
return m && "type" in n && m !== n.type ? o(e, m) : "type" in n ? o(e, Array.isArray(n.type) ? n.type.join(" | ") : n.type) : o(e, "object");
|
|
25
26
|
}
|
|
26
27
|
return i && i !== e ? i.startsWith("Array of ") ? `array ${i.slice(9)}[]` : i : null;
|
|
27
28
|
};
|
|
28
29
|
export {
|
|
29
30
|
o as formatTypeWithModel,
|
|
30
|
-
|
|
31
|
-
|
|
31
|
+
N as getModelName,
|
|
32
|
+
s as getModelNameFromSchema
|
|
32
33
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tags/ClassicLayout.vue"],"names":[],"mappings":"AAkDA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tags/ClassicLayout.vue"],"names":[],"mappings":"AAkDA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAA;AAS9E,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,YAAY,CAAA;CAClB,CAAC;AAqFF,QAAA,IAAI,QAAQ,IAAY,CAAE;AAC1B,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAwBhD,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ClassicLayout.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f4dae8d7"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -1,7 +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
|
moreThanOneTag: boolean;
|
|
5
|
+
isLoading: boolean;
|
|
6
|
+
onShowMore: ((id: string) => void) | undefined;
|
|
5
7
|
};
|
|
6
8
|
declare var __VLS_21: {};
|
|
7
9
|
type __VLS_Slots = {} & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tags/ModernLayout.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tags/ModernLayout.vue"],"names":[],"mappings":"AAqFA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAA;AAW9E,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,YAAY,CAAA;IACjB,cAAc,EAAE,OAAO,CAAA;IACvB,SAAS,EAAE,OAAO,CAAA;IAClB,UAAU,EAAE,CAAC,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,SAAS,CAAA;CAC/C,CAAC;AAwHF,QAAA,IAAuB,QAAQ,IAAY,CAAE;AAC7C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAgChD,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|