@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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Content.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Content/Content.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Content.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Content/Content.vue"],"names":[],"mappings":"AAyQA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAmBpE,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,cAAc,CAAA;IACrB,OAAO,EAAE;QACP,SAAS,EAAE,OAAO,GAAG,SAAS,CAAA;QAC9B,IAAI,EAAE,MAAM,GAAG,SAAS,CAAA;QACxB,aAAa,EAAE,yBAAyB,CAAC,eAAe,CAAC,CAAA;QACzD,MAAM,EAAE,QAAQ,GAAG,SAAS,CAAA;QAC5B,QAAQ,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAA;QAClC,WAAW,EAAE,OAAO,CAAA;QACpB,eAAe,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;QACrC,qBAAqB,EAAE,OAAO,GAAG,SAAS,CAAA;QAC1C,kBAAkB,CAAC,EAAE,OAAO,CAAA;QAC5B,UAAU,EAAE,OAAO,GAAG,SAAS,CAAA;QAC/B,sBAAsB,EAAE,OAAO,GAAG,SAAS,CAAA;QAC3C,4BAA4B,EAAE,OAAO,GAAG,SAAS,CAAA;QACjD,uBAAuB,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,CAAA;QACzD,oBAAoB,EAAE,yBAAyB,CAAC,sBAAsB,CAAC,CAAA;QACvE,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;QACvB,UAAU,EAAE,CAAC,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,SAAS,CAAA;KAC/C,CAAA;CACF,CAAC;AA4YF,QAAA,IAAI,OAAO,IAAU,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AAClE,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC1C;IAAE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GACnD;IAAE,GAAG,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AA0C5C,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,89 +1,102 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useWorkspace as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
import
|
|
1
|
+
import { defineComponent as R, computed as n, createElementBlock as w, openBlock as i, Fragment as V, createVNode as r, createElementVNode as $, unref as o, renderSlot as p, createCommentVNode as l, createBlock as c, withCtx as s } from "vue";
|
|
2
|
+
import { useWorkspace as M, useActiveEntities as q } from "@scalar/api-client/store";
|
|
3
|
+
import { generateClientOptions as U } from "@scalar/api-client/v2/blocks/operation-code-sample";
|
|
4
|
+
import { ScalarErrorBoundary as v } from "@scalar/components";
|
|
5
|
+
import { getSlugUid as L } from "@scalar/oas-utils/transforms";
|
|
6
|
+
import N from "./IntroductionSection.vue.js";
|
|
7
|
+
import { getCurrentIndex as T } from "./Operations/get-current-index.js";
|
|
8
|
+
import j from "./Operations/TraversedEntry.vue.js";
|
|
9
|
+
import { useFreezing as W } from "../../hooks/useFreezing.js";
|
|
10
|
+
import { useNavState as z } from "../../hooks/useNavState.js";
|
|
11
|
+
import { getXKeysFromObject as D } from "../../features/specification-extension/helpers.js";
|
|
12
|
+
import { useSidebar as K } from "../../v2/blocks/scalar-sidebar-block/hooks/useSidebar.js";
|
|
13
|
+
import X from "../SectionFlare/SectionFlare.vue.js";
|
|
14
|
+
import G from "../../v2/blocks/scalar-info-block/components/InfoBlock.vue.js";
|
|
12
15
|
import f from "../../v2/blocks/scalar-info-block/components/IntroductionCardItem.vue.js";
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
|
|
18
|
-
const P = { class: "narrow-references-container" }, me = /* @__PURE__ */ $({
|
|
16
|
+
import H from "../../v2/blocks/scalar-server-selector-block/components/ServerSelector.vue.js";
|
|
17
|
+
import J from "../../v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js";
|
|
18
|
+
import Q from "../../v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.js";
|
|
19
|
+
import Y from "./Models/Models.vue.js";
|
|
20
|
+
const Z = { class: "narrow-references-container" }, x = { key: 0 }, ke = /* @__PURE__ */ R({
|
|
19
21
|
__name: "Content",
|
|
20
22
|
props: {
|
|
21
|
-
|
|
22
|
-
store: {}
|
|
23
|
+
contentId: {},
|
|
24
|
+
store: {},
|
|
25
|
+
options: {}
|
|
23
26
|
},
|
|
24
|
-
setup(
|
|
25
|
-
|
|
26
|
-
const
|
|
27
|
-
() =>
|
|
28
|
-
),
|
|
29
|
-
() =>
|
|
30
|
-
),
|
|
31
|
-
() =>
|
|
32
|
-
), { collections:
|
|
33
|
-
activeCollection:
|
|
34
|
-
activeEnvVariables:
|
|
35
|
-
activeEnvironment:
|
|
36
|
-
activeWorkspace:
|
|
37
|
-
} =
|
|
38
|
-
if (
|
|
39
|
-
const e =
|
|
27
|
+
setup(a) {
|
|
28
|
+
W();
|
|
29
|
+
const d = n(
|
|
30
|
+
() => U(a.options.hiddenClients)
|
|
31
|
+
), g = n(
|
|
32
|
+
() => D(a.store.workspace.activeDocument)
|
|
33
|
+
), C = n(
|
|
34
|
+
() => D(a.store.workspace.activeDocument?.info)
|
|
35
|
+
), { collections: E, securitySchemes: I, servers: h } = M(), {
|
|
36
|
+
activeCollection: b,
|
|
37
|
+
activeEnvVariables: A,
|
|
38
|
+
activeEnvironment: B,
|
|
39
|
+
activeWorkspace: S
|
|
40
|
+
} = q(), t = n(() => {
|
|
41
|
+
if (a.options.slug) {
|
|
42
|
+
const e = E[L(a.options.slug)];
|
|
40
43
|
if (e)
|
|
41
44
|
return e;
|
|
42
45
|
}
|
|
43
|
-
return
|
|
44
|
-
}),
|
|
45
|
-
if (
|
|
46
|
-
if (
|
|
47
|
-
const e =
|
|
46
|
+
return b.value;
|
|
47
|
+
}), k = n(() => {
|
|
48
|
+
if (t.value) {
|
|
49
|
+
if (t.value.selectedServerUid) {
|
|
50
|
+
const e = h[t.value.selectedServerUid];
|
|
48
51
|
if (e)
|
|
49
52
|
return e;
|
|
50
53
|
}
|
|
51
|
-
return
|
|
54
|
+
return h[t.value.servers[0]];
|
|
52
55
|
}
|
|
53
|
-
}),
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
}), O = () => a.store.exportActiveDocument("json") ?? "{}", { items: u } = K(), { hash: m } = z(), F = n(
|
|
57
|
+
() => T(m.value, u.value.entries)
|
|
58
|
+
), P = n(() => {
|
|
59
|
+
const e = u.value.entries.find((y) => y.id === "models");
|
|
60
|
+
return e && e.type === "text" ? e : void 0;
|
|
61
|
+
});
|
|
62
|
+
return (e, y) => (i(), w(V, null, [
|
|
63
|
+
r(o(X)),
|
|
64
|
+
$("div", Z, [
|
|
65
|
+
p(e.$slots, "start"),
|
|
66
|
+
r(N, {
|
|
59
67
|
showEmptyState: !e.store.workspace.activeDocument
|
|
60
68
|
}, {
|
|
61
|
-
"empty-state":
|
|
62
|
-
|
|
69
|
+
"empty-state": s(() => [
|
|
70
|
+
p(e.$slots, "empty-state")
|
|
63
71
|
]),
|
|
64
|
-
default:
|
|
65
|
-
e.store.workspace.activeDocument ? (
|
|
72
|
+
default: s(() => [
|
|
73
|
+
e.store.workspace.activeDocument ? (i(), c(o(G), {
|
|
66
74
|
key: 0,
|
|
67
|
-
id:
|
|
68
|
-
documentExtensions:
|
|
75
|
+
id: e.contentId,
|
|
76
|
+
documentExtensions: g.value,
|
|
69
77
|
externalDocs: e.store.workspace.activeDocument.externalDocs,
|
|
70
|
-
getOriginalDocument: V,
|
|
71
78
|
info: e.store.workspace.activeDocument.info,
|
|
72
|
-
infoExtensions:
|
|
73
|
-
|
|
74
|
-
layout: e.config.layout,
|
|
79
|
+
infoExtensions: C.value,
|
|
80
|
+
layout: e.options.layout,
|
|
75
81
|
oasVersion: e.store.workspace.activeDocument?.["x-original-oas-version"],
|
|
76
|
-
|
|
82
|
+
options: {
|
|
83
|
+
documentDownloadType: e.options.documentDownloadType,
|
|
84
|
+
url: e.options.url,
|
|
85
|
+
getOriginalDocument: O,
|
|
86
|
+
isLoading: e.options.isLoading,
|
|
87
|
+
layout: e.options.layout,
|
|
88
|
+
onLoaded: e.options.onLoaded
|
|
89
|
+
}
|
|
77
90
|
}, {
|
|
78
|
-
selectors:
|
|
79
|
-
r(
|
|
80
|
-
default:
|
|
81
|
-
e.store.workspace.activeDocument?.servers?.length ? (
|
|
91
|
+
selectors: s(() => [
|
|
92
|
+
r(o(v), null, {
|
|
93
|
+
default: s(() => [
|
|
94
|
+
e.store.workspace.activeDocument?.servers?.length ? (i(), c(o(f), {
|
|
82
95
|
key: 0,
|
|
83
96
|
class: "scalar-reference-intro-server scalar-client introduction-card-item text-base leading-normal [--scalar-address-bar-height:0px]"
|
|
84
97
|
}, {
|
|
85
|
-
default:
|
|
86
|
-
r(
|
|
98
|
+
default: s(() => [
|
|
99
|
+
r(o(H), {
|
|
87
100
|
servers: e.store.workspace.activeDocument?.servers ?? [],
|
|
88
101
|
xSelectedServer: e.store.workspace.activeDocument?.["x-scalar-active-server"]
|
|
89
102
|
}, null, 8, ["servers", "xSelectedServer"])
|
|
@@ -93,23 +106,23 @@ const P = { class: "narrow-references-container" }, me = /* @__PURE__ */ $({
|
|
|
93
106
|
]),
|
|
94
107
|
_: 1
|
|
95
108
|
}),
|
|
96
|
-
r(
|
|
97
|
-
default:
|
|
98
|
-
|
|
109
|
+
r(o(v), null, {
|
|
110
|
+
default: s(() => [
|
|
111
|
+
t.value && o(S) && Object.keys(o(I) ?? {}).length ? (i(), c(o(f), {
|
|
99
112
|
key: 0,
|
|
100
113
|
class: "scalar-reference-intro-auth scalar-client introduction-card-item leading-normal"
|
|
101
114
|
}, {
|
|
102
|
-
default:
|
|
103
|
-
r(
|
|
104
|
-
collection:
|
|
105
|
-
envVariables:
|
|
106
|
-
environment:
|
|
115
|
+
default: s(() => [
|
|
116
|
+
r(o(J), {
|
|
117
|
+
collection: t.value,
|
|
118
|
+
envVariables: o(A),
|
|
119
|
+
environment: o(B),
|
|
107
120
|
layout: "reference",
|
|
108
|
-
persistAuth: e.
|
|
109
|
-
selectedSecuritySchemeUids:
|
|
110
|
-
server:
|
|
121
|
+
persistAuth: e.options.persistAuth,
|
|
122
|
+
selectedSecuritySchemeUids: t.value?.selectedSecuritySchemeUids ?? [],
|
|
123
|
+
server: k.value,
|
|
111
124
|
title: "Authentication",
|
|
112
|
-
workspace:
|
|
125
|
+
workspace: o(S)
|
|
113
126
|
}, null, 8, ["collection", "envVariables", "environment", "persistAuth", "selectedSecuritySchemeUids", "server", "workspace"])
|
|
114
127
|
]),
|
|
115
128
|
_: 1
|
|
@@ -117,16 +130,16 @@ const P = { class: "narrow-references-container" }, me = /* @__PURE__ */ $({
|
|
|
117
130
|
]),
|
|
118
131
|
_: 1
|
|
119
132
|
}),
|
|
120
|
-
r(
|
|
121
|
-
default:
|
|
122
|
-
e.
|
|
133
|
+
r(o(v), null, {
|
|
134
|
+
default: s(() => [
|
|
135
|
+
e.options.hiddenClients !== !0 && d.value.length ? (i(), c(o(f), {
|
|
123
136
|
key: 0,
|
|
124
137
|
class: "introduction-card-item scalar-reference-intro-clients"
|
|
125
138
|
}, {
|
|
126
|
-
default:
|
|
127
|
-
r(
|
|
139
|
+
default: s(() => [
|
|
140
|
+
r(o(Q), {
|
|
128
141
|
class: "introduction-card-item scalar-reference-intro-clients",
|
|
129
|
-
clientOptions:
|
|
142
|
+
clientOptions: d.value,
|
|
130
143
|
xScalarSdkInstallation: e.store.workspace.activeDocument?.info?.["x-scalar-sdk-installation"],
|
|
131
144
|
xSelectedClient: e.store.workspace["x-scalar-default-client"]
|
|
132
145
|
}, null, 8, ["clientOptions", "xScalarSdkInstallation", "xSelectedClient"])
|
|
@@ -138,27 +151,51 @@ const P = { class: "narrow-references-container" }, me = /* @__PURE__ */ $({
|
|
|
138
151
|
})
|
|
139
152
|
]),
|
|
140
153
|
_: 1
|
|
141
|
-
}, 8, ["id", "documentExtensions", "externalDocs", "info", "infoExtensions", "
|
|
154
|
+
}, 8, ["id", "documentExtensions", "externalDocs", "info", "infoExtensions", "layout", "oasVersion", "options"])) : l("", !0)
|
|
142
155
|
]),
|
|
143
156
|
_: 3
|
|
144
157
|
}, 8, ["showEmptyState"]),
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
158
|
+
o(u).entries.length && t.value ? (i(), w("div", x, [
|
|
159
|
+
r(j, {
|
|
160
|
+
activeCollection: t.value,
|
|
161
|
+
activeServer: k.value,
|
|
162
|
+
entries: o(u).entries,
|
|
163
|
+
hash: o(m),
|
|
164
|
+
options: {
|
|
165
|
+
layout: e.options.layout ?? "modern",
|
|
166
|
+
showOperationId: e.options.showOperationId,
|
|
167
|
+
hideTestRequestButton: e.options.hideTestRequestButton,
|
|
168
|
+
expandAllResponses: e.options.expandAllResponses,
|
|
169
|
+
clientOptions: d.value,
|
|
170
|
+
orderRequiredPropertiesFirst: e.options.orderRequiredPropertiesFirst,
|
|
171
|
+
orderSchemaPropertiesBy: e.options.orderSchemaPropertiesBy,
|
|
172
|
+
onShowMore: e.options.onShowMore
|
|
173
|
+
},
|
|
174
|
+
paths: e.store.workspace.activeDocument?.paths ?? {},
|
|
175
|
+
rootIndex: F.value,
|
|
176
|
+
security: e.store.workspace.activeDocument?.security,
|
|
177
|
+
store: e.store,
|
|
178
|
+
webhooks: e.store.workspace.activeDocument?.webhooks ?? {}
|
|
179
|
+
}, null, 8, ["activeCollection", "activeServer", "entries", "hash", "options", "paths", "rootIndex", "security", "store", "webhooks"])
|
|
180
|
+
])) : l("", !0),
|
|
181
|
+
!e.options.hideModels && e.store.workspace.activeDocument ? (i(), c(o(Y), {
|
|
153
182
|
key: 1,
|
|
154
|
-
|
|
183
|
+
hash: o(m),
|
|
184
|
+
models: P.value,
|
|
185
|
+
options: {
|
|
186
|
+
layout: e.options.layout ?? "modern",
|
|
187
|
+
expandAllModelSections: e.options.expandAllModelSections,
|
|
188
|
+
orderRequiredPropertiesFirst: e.options.orderRequiredPropertiesFirst,
|
|
189
|
+
orderSchemaPropertiesBy: e.options.orderSchemaPropertiesBy,
|
|
190
|
+
onShowMore: e.options.onShowMore
|
|
191
|
+
},
|
|
155
192
|
schemas: e.store.workspace.activeDocument.components?.schemas
|
|
156
|
-
}, null, 8, ["
|
|
157
|
-
|
|
193
|
+
}, null, 8, ["hash", "models", "options", "schemas"])) : l("", !0),
|
|
194
|
+
p(e.$slots, "end")
|
|
158
195
|
])
|
|
159
196
|
], 64));
|
|
160
197
|
}
|
|
161
198
|
});
|
|
162
199
|
export {
|
|
163
|
-
|
|
200
|
+
ke as default
|
|
164
201
|
};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import type { ApiReferenceConfiguration } from '@scalar/types/api-reference';
|
|
2
1
|
import type { SchemaObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
3
2
|
type __VLS_Props = {
|
|
4
|
-
|
|
3
|
+
options: {
|
|
4
|
+
orderRequiredPropertiesFirst: boolean | undefined;
|
|
5
|
+
orderSchemaPropertiesBy: 'alpha' | 'preserve' | undefined;
|
|
6
|
+
};
|
|
5
7
|
schemas: {
|
|
6
8
|
id: string;
|
|
7
9
|
name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Models/ClassicLayout.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Models/ClassicLayout.vue"],"names":[],"mappings":"AAgGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAYhG,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE;QACP,4BAA4B,EAAE,OAAO,GAAG,SAAS,CAAA;QACjD,uBAAuB,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,CAAA;KAC1D,CAAA;IACD,OAAO,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,YAAY,CAAA;KAAE,EAAE,CAAA;CAC9D,CAAC;;AAyLF,wBAMG"}
|
|
@@ -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 s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-fafd6f50"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
s as default
|
|
7
7
|
};
|
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
import { defineComponent as h, createBlock as a, createCommentVNode as
|
|
2
|
-
import { getResolvedRef as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { defineComponent as h, createBlock as a, createCommentVNode as S, openBlock as r, unref as e, withCtx as o, createElementBlock as n, Fragment as c, renderList as u, createVNode as s, createTextVNode as y } from "vue";
|
|
2
|
+
import { getResolvedRef as P } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
3
|
+
import k from "../../Section/SectionContainerAccordion.vue.js";
|
|
4
|
+
import q from "../../Section/SectionAccordion.vue.js";
|
|
5
5
|
import f from "../Schema/SchemaProperty.vue.js";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
6
|
+
import v from "../../Anchor/Anchor.vue.js";
|
|
7
|
+
import B from "../../Section/SectionHeaderTag.vue.js";
|
|
8
|
+
import R from "../Schema/SchemaHeading.vue.js";
|
|
9
|
+
import g from "../../Section/SectionHeader.vue.js";
|
|
10
10
|
const C = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "properties"
|
|
13
13
|
}, F = { key: 1 }, M = /* @__PURE__ */ h({
|
|
14
14
|
__name: "ClassicLayout",
|
|
15
15
|
props: {
|
|
16
|
-
|
|
16
|
+
options: {},
|
|
17
17
|
schemas: {}
|
|
18
18
|
},
|
|
19
19
|
setup(b) {
|
|
20
|
-
return (t, m) => t.schemas.length ? (r(), a(e(
|
|
20
|
+
return (t, m) => t.schemas.length ? (r(), a(e(k), {
|
|
21
21
|
key: 0,
|
|
22
22
|
class: "reference-models"
|
|
23
23
|
}, {
|
|
24
24
|
title: o(() => [
|
|
25
|
-
|
|
25
|
+
s(e(g), { level: 2 }, {
|
|
26
26
|
default: o(() => m[0] || (m[0] = [
|
|
27
|
-
|
|
27
|
+
y("Models")
|
|
28
28
|
])),
|
|
29
29
|
_: 1,
|
|
30
30
|
__: [0]
|
|
31
31
|
})
|
|
32
32
|
]),
|
|
33
33
|
default: o(() => [
|
|
34
|
-
(r(!0),
|
|
35
|
-
id:
|
|
34
|
+
(r(!0), n(c, null, u(t.schemas, ({ id: p, name: l, schema: i }) => (r(), a(e(q), {
|
|
35
|
+
id: p,
|
|
36
36
|
key: l,
|
|
37
37
|
label: l
|
|
38
38
|
}, {
|
|
39
39
|
title: o(() => [
|
|
40
|
-
|
|
41
|
-
id:
|
|
40
|
+
s(e(v), {
|
|
41
|
+
id: p,
|
|
42
42
|
class: "reference-models-anchor"
|
|
43
43
|
}, {
|
|
44
44
|
default: o(() => [
|
|
45
|
-
|
|
45
|
+
s(e(B), { level: 3 }, {
|
|
46
46
|
default: o(() => [
|
|
47
|
-
|
|
47
|
+
s(e(R), {
|
|
48
48
|
class: "reference-models-label",
|
|
49
49
|
name: i.title ?? l,
|
|
50
50
|
value: i
|
|
@@ -57,22 +57,22 @@ const C = {
|
|
|
57
57
|
}, 1032, ["id"])
|
|
58
58
|
]),
|
|
59
59
|
default: o(() => [
|
|
60
|
-
"properties" in i ? (r(),
|
|
61
|
-
(r(!0),
|
|
60
|
+
"properties" in i ? (r(), n("div", C, [
|
|
61
|
+
(r(!0), n(c, null, u(Object.entries(i.properties ?? {}), ([d, _]) => (r(), a(e(f), {
|
|
62
62
|
key: d,
|
|
63
63
|
name: d,
|
|
64
64
|
options: {
|
|
65
|
-
orderRequiredPropertiesFirst: t.
|
|
66
|
-
orderSchemaPropertiesBy: t.
|
|
65
|
+
orderRequiredPropertiesFirst: t.options.orderRequiredPropertiesFirst,
|
|
66
|
+
orderSchemaPropertiesBy: t.options.orderSchemaPropertiesBy
|
|
67
67
|
},
|
|
68
68
|
required: i.required?.includes(d),
|
|
69
|
-
schema: e(
|
|
69
|
+
schema: e(P)(_)
|
|
70
70
|
}, null, 8, ["name", "options", "required", "schema"]))), 128))
|
|
71
|
-
])) : (r(),
|
|
72
|
-
|
|
71
|
+
])) : (r(), n("div", F, [
|
|
72
|
+
s(e(f), {
|
|
73
73
|
options: {
|
|
74
|
-
orderRequiredPropertiesFirst: t.
|
|
75
|
-
orderSchemaPropertiesBy: t.
|
|
74
|
+
orderRequiredPropertiesFirst: t.options.orderRequiredPropertiesFirst,
|
|
75
|
+
orderSchemaPropertiesBy: t.options.orderSchemaPropertiesBy
|
|
76
76
|
},
|
|
77
77
|
schema: i
|
|
78
78
|
}, null, 8, ["options", "schema"])
|
|
@@ -82,7 +82,7 @@ const C = {
|
|
|
82
82
|
}, 1032, ["id", "label"]))), 128))
|
|
83
83
|
]),
|
|
84
84
|
_: 1
|
|
85
|
-
})) :
|
|
85
|
+
})) : S("", !0);
|
|
86
86
|
}
|
|
87
87
|
});
|
|
88
88
|
export {
|
|
@@ -1,8 +1,16 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { TraversedDescription } from '@scalar/workspace-store/schemas/navigation';
|
|
2
2
|
import type { ComponentsObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
schemas: ComponentsObject['schemas'];
|
|
5
|
-
|
|
5
|
+
models: TraversedDescription | undefined;
|
|
6
|
+
hash: string;
|
|
7
|
+
options: {
|
|
8
|
+
layout: 'classic' | 'modern';
|
|
9
|
+
expandAllModelSections: boolean | undefined;
|
|
10
|
+
orderRequiredPropertiesFirst: boolean | undefined;
|
|
11
|
+
orderSchemaPropertiesBy: 'alpha' | 'preserve' | undefined;
|
|
12
|
+
onShowMore: ((id: string) => void) | undefined;
|
|
13
|
+
};
|
|
6
14
|
};
|
|
7
15
|
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
16
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Models.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Models/Models.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Models.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Models/Models.vue"],"names":[],"mappings":"AAuDA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAA;AACtF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8DAA8D,CAAA;AAQpG,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,gBAAgB,CAAC,SAAS,CAAC,CAAA;IACpC,MAAM,EAAE,oBAAoB,GAAG,SAAS,CAAA;IACxC,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE;QACP,MAAM,EAAE,SAAS,GAAG,QAAQ,CAAA;QAC5B,sBAAsB,EAAE,OAAO,GAAG,SAAS,CAAA;QAC3C,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;;AAuFF,wBAMG"}
|
|
@@ -1,44 +1,42 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as n, computed as i, createBlock as o, createCommentVNode as r, openBlock as a, unref as l, withCtx as c } from "vue";
|
|
2
2
|
import { getResolvedRef as h } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
import v from "../../Lazy/Lazy.vue2.js";
|
|
8
|
-
const z = /* @__PURE__ */ f({
|
|
3
|
+
import p from "./ClassicLayout.vue.js";
|
|
4
|
+
import d from "./ModernLayout.vue.js";
|
|
5
|
+
import u from "../../Lazy/Lazy.vue2.js";
|
|
6
|
+
const v = /* @__PURE__ */ n({
|
|
9
7
|
__name: "Models",
|
|
10
8
|
props: {
|
|
11
9
|
schemas: { default: () => ({}) },
|
|
12
|
-
|
|
10
|
+
models: {},
|
|
11
|
+
hash: {},
|
|
12
|
+
options: {}
|
|
13
13
|
},
|
|
14
|
-
setup(
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
name: o.name,
|
|
20
|
-
schema: h(c.schemas[o.name])
|
|
14
|
+
setup(m) {
|
|
15
|
+
const t = i(() => (m.models?.children ?? []).filter((s) => s.type === "model").map((s) => ({
|
|
16
|
+
id: s.id,
|
|
17
|
+
name: s.name,
|
|
18
|
+
schema: h(m.schemas[s.name])
|
|
21
19
|
})));
|
|
22
|
-
return (e,
|
|
20
|
+
return (e, s) => e.schemas && Object.keys(e.schemas).length > 0 ? (a(), o(l(u), {
|
|
23
21
|
key: 0,
|
|
24
22
|
id: "models",
|
|
25
|
-
isLazy: !!
|
|
23
|
+
isLazy: !!e.hash && !e.hash.startsWith("model")
|
|
26
24
|
}, {
|
|
27
|
-
default:
|
|
28
|
-
e.
|
|
25
|
+
default: c(() => [
|
|
26
|
+
e.options?.layout === "classic" ? (a(), o(p, {
|
|
29
27
|
key: 0,
|
|
30
|
-
|
|
31
|
-
schemas:
|
|
32
|
-
}, null, 8, ["
|
|
28
|
+
options: e.options,
|
|
29
|
+
schemas: t.value
|
|
30
|
+
}, null, 8, ["options", "schemas"])) : (a(), o(d, {
|
|
33
31
|
key: 1,
|
|
34
|
-
|
|
35
|
-
schemas:
|
|
36
|
-
}, null, 8, ["
|
|
32
|
+
options: e.options,
|
|
33
|
+
schemas: t.value
|
|
34
|
+
}, null, 8, ["options", "schemas"]))
|
|
37
35
|
]),
|
|
38
36
|
_: 1
|
|
39
|
-
}, 8, ["isLazy"])) :
|
|
37
|
+
}, 8, ["isLazy"])) : r("", !0);
|
|
40
38
|
}
|
|
41
39
|
});
|
|
42
40
|
export {
|
|
43
|
-
|
|
41
|
+
v as default
|
|
44
42
|
};
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import type { ApiReferenceConfiguration } from '@scalar/types';
|
|
2
1
|
import type { SchemaObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
3
2
|
type __VLS_Props = {
|
|
4
|
-
|
|
3
|
+
options: {
|
|
4
|
+
expandAllModelSections: boolean | undefined;
|
|
5
|
+
orderRequiredPropertiesFirst: boolean | undefined;
|
|
6
|
+
orderSchemaPropertiesBy: 'alpha' | 'preserve' | undefined;
|
|
7
|
+
onShowMore: ((id: string) => void) | undefined;
|
|
8
|
+
};
|
|
5
9
|
schemas: {
|
|
6
10
|
id: string;
|
|
7
11
|
name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Models/ModernLayout.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Models/ModernLayout.vue"],"names":[],"mappings":"AAwHA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAehG,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE;QACP,sBAAsB,EAAE,OAAO,GAAG,SAAS,CAAA;QAC3C,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;IACD,OAAO,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,YAAY,CAAA;KAAE,EAAE,CAAA;CAC9D,CAAC;;AA+NF,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ModernLayout.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8ced91a6"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|