@scalar/api-reference 1.34.5 → 1.35.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 +71 -0
- package/dist/browser/standalone.js +30859 -30766
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/Anchor/Anchor.vue.d.ts +6 -11
- package/dist/components/Anchor/Anchor.vue.d.ts.map +1 -1
- package/dist/components/Anchor/WithBreadcrumb.vue.d.ts +11 -13
- package/dist/components/Anchor/WithBreadcrumb.vue.d.ts.map +1 -1
- package/dist/components/ApiReference.vue.d.ts +14 -1
- package/dist/components/ApiReference.vue.d.ts.map +1 -1
- package/dist/components/ApiReference.vue.js +24 -10
- package/dist/components/ApiReferenceLayout.vue.d.ts +7 -31
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +2 -2
- package/dist/components/ApiReferenceLayout.vue2.js +179 -191
- package/dist/components/Badge/Badge.vue.d.ts +6 -11
- package/dist/components/Badge/Badge.vue.d.ts.map +1 -1
- package/dist/components/ClassicHeader.vue.d.ts +8 -12
- package/dist/components/ClassicHeader.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts +1 -3
- 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.map +1 -1
- package/dist/components/Content/ClientLibraries/index.d.ts +1 -1
- package/dist/components/Content/Content.vue.d.ts +9 -12
- package/dist/components/Content/Content.vue.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.js +180 -36
- package/dist/components/Content/IntroductionSection.vue.d.ts +18 -0
- package/dist/components/Content/IntroductionSection.vue.d.ts.map +1 -0
- package/dist/components/Content/IntroductionSection.vue.js +26 -0
- package/dist/components/Content/IntroductionSection.vue2.js +4 -0
- package/dist/components/Content/Models/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
- 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 +6 -6
- package/dist/components/Content/Operations/TraversedEntry.vue.d.ts.map +1 -1
- package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts +1 -5
- package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts.map +1 -1
- package/dist/components/Content/Operations/TraversedEntryContainer.vue.js +28 -35
- package/dist/components/Content/Operations/get-current-index.d.ts.map +1 -1
- package/dist/components/Content/Schema/RenderString.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/Schema.vue.js +2 -2
- package/dist/components/Content/Schema/Schema.vue2.js +84 -81
- package/dist/components/Content/Schema/SchemaComposition.vue.d.ts +1 -1
- package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.d.ts +1 -1
- package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaEnumValues.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts +3 -0
- package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaObjectProperties.vue.js +49 -41
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue2.js +1 -1
- package/dist/components/Content/Schema/SchemaPropertyDescription.vue.d.ts +6 -11
- package/dist/components/Content/Schema/SchemaPropertyDescription.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyDetail.vue.d.ts +10 -13
- package/dist/components/Content/Schema/SchemaPropertyDetail.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts +6 -11
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/get-schema-type.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/is-type-object.d.ts.map +1 -1
- package/dist/components/Content/Tags/ClassicLayout.vue.d.ts +6 -11
- package/dist/components/Content/Tags/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/components/Content/Tags/ModernLayout.vue.d.ts +5 -63
- package/dist/components/Content/Tags/ModernLayout.vue.d.ts.map +1 -1
- package/dist/components/Content/Tags/Tag.vue.d.ts +7 -11
- package/dist/components/Content/Tags/Tag.vue.d.ts.map +1 -1
- package/dist/components/Content/Tags/TagSection.vue.d.ts.map +1 -1
- package/dist/components/Content/Tags/TagSection.vue.js +1 -1
- package/dist/components/GettingStarted.vue.d.ts +1 -1
- package/dist/components/GettingStarted.vue.d.ts.map +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +5 -10
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
- package/dist/components/IntersectionObserver.vue.d.ts +5 -12
- package/dist/components/IntersectionObserver.vue.d.ts.map +1 -1
- package/dist/components/Lazy/Lazy.vue.d.ts +5 -10
- package/dist/components/Lazy/Lazy.vue.d.ts.map +1 -1
- package/dist/components/LinkList/LinkList.vue.d.ts +6 -13
- package/dist/components/LinkList/LinkList.vue.d.ts.map +1 -1
- package/dist/components/LoadingSkeleton.vue.d.ts.map +1 -1
- package/dist/components/MobileHeader.vue.d.ts +6 -11
- package/dist/components/MobileHeader.vue.d.ts.map +1 -1
- package/dist/components/OperationPath.vue.d.ts +1 -1
- package/dist/components/OperationPath.vue.d.ts.map +1 -1
- package/dist/components/OperationsList/OperationsList.vue.d.ts.map +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/ScreenReader.vue.d.ts +7 -11
- package/dist/components/ScreenReader.vue.d.ts.map +1 -1
- package/dist/components/Section/CompactSection.vue.d.ts +8 -12
- package/dist/components/Section/CompactSection.vue.d.ts.map +1 -1
- package/dist/components/Section/Section.vue.d.ts +5 -10
- package/dist/components/Section/Section.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionAccordion.vue.d.ts +13 -66
- package/dist/components/Section/SectionAccordion.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionColumn.vue.d.ts +6 -11
- package/dist/components/Section/SectionColumn.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionColumns.vue.d.ts +6 -11
- package/dist/components/Section/SectionColumns.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionContainer.vue.d.ts +7 -11
- package/dist/components/Section/SectionContainer.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionContainerAccordion.vue.d.ts +8 -12
- package/dist/components/Section/SectionContainerAccordion.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionContent.vue.d.ts +6 -11
- package/dist/components/Section/SectionContent.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionHeader.vue.d.ts +8 -12
- package/dist/components/Section/SectionHeader.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionHeaderTag.vue.d.ts +5 -10
- package/dist/components/Section/SectionHeaderTag.vue.d.ts.map +1 -1
- package/dist/components/SectionFlare/SectionFlare.vue.d.ts.map +1 -1
- package/dist/components/ShowMoreButton.vue.d.ts +1 -1
- package/dist/components/ShowMoreButton.vue.d.ts.map +1 -1
- package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/OperationResponses.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterHeaders.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterList.vue.d.ts +5 -10
- package/dist/features/Operation/components/ParameterList.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/RequestBody.vue.d.ts +5 -10
- package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +2 -2
- 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 +2 -2
- package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts +2 -2
- package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/callbacks/Callbacks.vue.js +2 -2
- package/dist/features/Operation/helpers/combine-params.d.ts +1 -2
- package/dist/features/Operation/helpers/combine-params.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +1 -3
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue.js +1 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue2.js +35 -34
- package/dist/features/Operation/layouts/ClassicLayout.vue3.js +2 -2
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +1 -3
- 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 +28 -27
- package/dist/features/Search/components/SearchButton.vue.d.ts.map +1 -1
- package/dist/features/Search/components/SearchModal.vue.d.ts.map +1 -1
- package/dist/features/api-client-modal/ApiClientModal.vue.d.ts +1 -1
- package/dist/features/api-client-modal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/features/api-client-modal/ApiClientModal.vue.js +50 -53
- package/dist/features/api-client-modal/useApiClient.d.ts +496 -496
- package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
- package/dist/features/document-source/hooks/useDocumentFetcher.d.ts +1 -1
- package/dist/features/document-source/hooks/useDocumentFetcher.d.ts.map +1 -1
- package/dist/features/document-source/hooks/useDocumentFetcher.js +13 -13
- package/dist/features/example-responses/ExampleResponse.vue.d.ts +1 -2
- package/dist/features/example-responses/ExampleResponse.vue.d.ts.map +1 -1
- package/dist/features/example-responses/ExampleResponse.vue.js +2 -2
- package/dist/features/example-responses/ExampleResponseTab.vue.d.ts +5 -10
- package/dist/features/example-responses/ExampleResponseTab.vue.d.ts.map +1 -1
- package/dist/features/example-responses/ExampleResponseTabList.vue.d.ts +7 -11
- package/dist/features/example-responses/ExampleResponseTabList.vue.d.ts.map +1 -1
- package/dist/features/example-responses/ExampleResponses.vue.d.ts +1 -1
- 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 +9 -9
- package/dist/features/example-responses/helpers/get-resolved-ref-deep.d.ts.map +1 -1
- package/dist/features/external-docs/ExternalDocs.vue.d.ts.map +1 -1
- package/dist/features/info-object/Contact.vue.d.ts.map +1 -1
- package/dist/features/info-object/License.vue.d.ts +1 -1
- package/dist/features/info-object/License.vue.d.ts.map +1 -1
- package/dist/features/info-object/TermsOfService.vue.d.ts.map +1 -1
- package/dist/features/multiple-documents/DocumentSelector.vue.d.ts.map +1 -1
- package/dist/features/multiple-documents/useMultipleDocuments.d.ts.map +1 -1
- package/dist/features/sidebar/components/Sidebar.vue.d.ts +8 -14
- package/dist/features/sidebar/components/Sidebar.vue.d.ts.map +1 -1
- package/dist/features/sidebar/components/SidebarElement.vue.d.ts +8 -12
- package/dist/features/sidebar/components/SidebarElement.vue.d.ts.map +1 -1
- package/dist/features/sidebar/components/SidebarElement.vue.js +1 -1
- package/dist/features/sidebar/components/SidebarElement.vue2.js +60 -55
- package/dist/features/sidebar/components/SidebarGroup.vue.d.ts +6 -11
- package/dist/features/sidebar/components/SidebarGroup.vue.d.ts.map +1 -1
- package/dist/features/sidebar/components/SidebarHttpBadge.vue.d.ts +5 -10
- package/dist/features/sidebar/components/SidebarHttpBadge.vue.d.ts.map +1 -1
- package/dist/features/sidebar/helpers/create-sidebar.d.ts.map +1 -1
- package/dist/features/specification-extension/SpecificationExtension.vue.d.ts.map +1 -1
- package/dist/features/specification-extension/SpecificationExtension.vue.js +2 -47
- package/dist/features/specification-extension/SpecificationExtension.vue2.js +47 -2
- package/dist/features/specification-extension/helpers.d.ts +10 -0
- package/dist/features/specification-extension/helpers.d.ts.map +1 -0
- package/dist/features/specification-extension/helpers.js +4 -0
- package/dist/features/specification-extension/index.d.ts +1 -0
- package/dist/features/specification-extension/index.d.ts.map +1 -1
- package/dist/features/test-request-button/TestRequestButton.vue.d.ts.map +1 -1
- package/dist/features/traverse-schema/helpers/get-tag.d.ts.map +1 -1
- package/dist/features/traverse-schema/helpers/traverse-description.d.ts +3 -1
- package/dist/features/traverse-schema/helpers/traverse-description.d.ts.map +1 -1
- package/dist/features/traverse-schema/helpers/traverse-document.d.ts.map +1 -1
- package/dist/features/traverse-schema/helpers/traverse-paths.d.ts +7 -3
- package/dist/features/traverse-schema/helpers/traverse-paths.d.ts.map +1 -1
- package/dist/features/traverse-schema/helpers/traverse-schemas.d.ts +3 -1
- package/dist/features/traverse-schema/helpers/traverse-schemas.d.ts.map +1 -1
- package/dist/features/traverse-schema/helpers/traverse-tags.d.ts +3 -1
- package/dist/features/traverse-schema/helpers/traverse-tags.d.ts.map +1 -1
- package/dist/features/traverse-schema/helpers/traverse-webhooks.d.ts +5 -1
- package/dist/features/traverse-schema/helpers/traverse-webhooks.d.ts.map +1 -1
- package/dist/features/traverse-schema/types.d.ts +1 -3
- package/dist/features/traverse-schema/types.d.ts.map +1 -1
- package/dist/features/x-badges/XBadges.vue.d.ts.map +1 -1
- package/dist/helpers/convert-security-scheme.d.ts +1 -1
- package/dist/helpers/convert-security-scheme.d.ts.map +1 -1
- package/dist/helpers/test-utils.d.ts.map +1 -1
- package/dist/hooks/useFreezing.d.ts +6 -0
- package/dist/hooks/useFreezing.d.ts.map +1 -0
- package/dist/hooks/useFreezing.js +29 -0
- package/dist/hooks/useNavState.d.ts +1 -2
- package/dist/hooks/useNavState.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +18 -16
- package/dist/libs/download.d.ts +0 -5
- package/dist/libs/download.d.ts.map +1 -1
- package/dist/libs/download.js +10 -13
- package/dist/libs/markdown.d.ts.map +1 -1
- package/dist/libs/openapi.d.ts +2 -4
- package/dist/libs/openapi.d.ts.map +1 -1
- package/dist/plugins/plugin-manager.d.ts.map +1 -1
- package/dist/standalone/lib/html-api.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.d.ts +11 -14
- package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.js +92 -95
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts +20 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +7 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue2.js +223 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.d.ts +21 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.js +64 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue2.js +4 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +17 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +267 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue2.js +4 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.d.ts +9 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +151 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue2.js +4 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts +20 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +7 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue2.js +96 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts +50 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.js +50 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue2.js +4 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +17 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +253 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue2.js +4 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/filter-security-requirements.d.ts +6 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/filter-security-requirements.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/update-scheme.d.ts +8 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/update-scheme.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/update-scheme.js +22 -0
- package/dist/v2/blocks/scalar-auth-selector-block/index.d.ts +2 -0
- package/dist/v2/blocks/scalar-auth-selector-block/index.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue.d.ts +15 -0
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue.js +7 -0
- package/dist/{components/Content/ClientLibraries/ClientSelector.vue2.js → v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue2.js} +33 -33
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.d.ts +16 -0
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.js +7 -0
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue2.js +124 -0
- package/dist/v2/blocks/scalar-client-selector-block/helpers/featured-clients.d.ts +11 -0
- package/dist/v2/blocks/scalar-client-selector-block/helpers/featured-clients.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-client-selector-block/index.d.ts +2 -0
- package/dist/v2/blocks/scalar-client-selector-block/index.d.ts.map +1 -0
- package/dist/{features/base-url/BaseUrl.vue.d.ts → v2/blocks/scalar-info-block/components/DownloadLink.vue.d.ts} +3 -4
- package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue.js +7 -0
- package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue2.js +62 -0
- package/dist/v2/blocks/scalar-info-block/components/InfoBlock.vue.d.ts +36 -0
- package/dist/v2/blocks/scalar-info-block/components/InfoBlock.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-info-block/components/InfoBlock.vue.js +49 -0
- package/dist/v2/blocks/scalar-info-block/components/InfoBlock.vue2.js +4 -0
- package/dist/{components/Content/Introduction/Description.vue.d.ts → v2/blocks/scalar-info-block/components/InfoDescription.vue.d.ts} +2 -2
- package/dist/v2/blocks/scalar-info-block/components/InfoDescription.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-info-block/components/InfoDescription.vue.js +7 -0
- package/dist/v2/blocks/scalar-info-block/components/InfoDescription.vue2.js +72 -0
- package/dist/v2/blocks/scalar-info-block/components/InfoLinks.vue.d.ts +8 -0
- package/dist/v2/blocks/scalar-info-block/components/InfoLinks.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-info-block/components/InfoLinks.vue.js +36 -0
- package/dist/v2/blocks/scalar-info-block/components/InfoLinks.vue2.js +4 -0
- package/dist/v2/blocks/scalar-info-block/components/InfoVersion.vue.d.ts +7 -0
- package/dist/v2/blocks/scalar-info-block/components/InfoVersion.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-info-block/components/InfoVersion.vue.js +25 -0
- package/dist/v2/blocks/scalar-info-block/components/InfoVersion.vue2.js +4 -0
- package/dist/v2/blocks/scalar-info-block/components/IntroductionCard.vue.d.ts +16 -0
- package/dist/v2/blocks/scalar-info-block/components/IntroductionCard.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-info-block/components/IntroductionCard.vue.js +7 -0
- package/dist/v2/blocks/scalar-info-block/components/IntroductionCard.vue2.js +17 -0
- package/dist/v2/blocks/scalar-info-block/components/IntroductionCard.vue3.js +4 -0
- package/dist/v2/blocks/scalar-info-block/components/IntroductionCardItem.vue.d.ts +13 -0
- package/dist/v2/blocks/scalar-info-block/components/IntroductionCardItem.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-info-block/components/IntroductionCardItem.vue.js +13 -0
- package/dist/v2/blocks/scalar-info-block/components/IntroductionCardItem.vue2.js +4 -0
- package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue.d.ts +27 -0
- package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue.js +7 -0
- package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue2.js +122 -0
- package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue3.js +4 -0
- package/dist/{features/download-link/DownloadLink.vue.d.ts → v2/blocks/scalar-info-block/components/OpenApiVersion.vue.d.ts} +2 -2
- package/dist/v2/blocks/scalar-info-block/components/OpenApiVersion.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-info-block/components/OpenApiVersion.vue.js +19 -0
- package/dist/v2/blocks/scalar-info-block/components/OpenApiVersion.vue2.js +4 -0
- package/dist/v2/blocks/scalar-info-block/index.d.ts +3 -0
- package/dist/v2/blocks/scalar-info-block/index.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts +5 -8
- package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue2.js +38 -52
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts +7 -8
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.js +1 -1
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue2.js +148 -133
- package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.d.ts +1 -3
- package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.d.ts +1 -1
- package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.js +4 -3
- package/dist/v2/blocks/scalar-server-selector-block/components/Selector.vue.d.ts +51 -0
- package/dist/v2/blocks/scalar-server-selector-block/components/Selector.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-server-selector-block/components/Selector.vue.js +78 -0
- package/dist/v2/blocks/scalar-server-selector-block/components/Selector.vue2.js +4 -0
- package/dist/v2/blocks/scalar-server-selector-block/components/ServerSelector.vue.d.ts +18 -0
- package/dist/v2/blocks/scalar-server-selector-block/components/ServerSelector.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-server-selector-block/components/ServerSelector.vue.js +72 -0
- package/dist/v2/blocks/scalar-server-selector-block/components/ServerSelector.vue2.js +4 -0
- package/dist/v2/blocks/scalar-server-selector-block/index.d.ts +2 -0
- package/dist/v2/blocks/scalar-server-selector-block/index.d.ts.map +1 -0
- package/dist/v2/helpers/get-document-name.d.ts.map +1 -1
- package/dist/v2/helpers/map-configuration.d.ts +1 -1
- package/dist/v2/helpers/map-configuration.d.ts.map +1 -1
- package/dist/v2/helpers/normalize-content.d.ts.map +1 -1
- package/dist/v2/hooks/use-legacy-store-events.d.ts +14 -0
- package/dist/v2/hooks/use-legacy-store-events.d.ts.map +1 -0
- package/dist/v2/hooks/use-legacy-store-events.js +65 -0
- package/dist/v2/hooks/use-workspace-store-events.d.ts +4 -0
- package/dist/v2/hooks/use-workspace-store-events.d.ts.map +1 -0
- package/dist/v2/hooks/use-workspace-store-events.js +43 -0
- package/package.json +21 -19
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +0 -7
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +0 -122
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.js +0 -7
- package/dist/components/Content/Introduction/Description.vue.d.ts.map +0 -1
- package/dist/components/Content/Introduction/Description.vue.js +0 -7
- package/dist/components/Content/Introduction/Description.vue2.js +0 -72
- package/dist/components/Content/Introduction/Introduction.vue.d.ts +0 -13
- package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +0 -1
- package/dist/components/Content/Introduction/Introduction.vue.js +0 -7
- package/dist/components/Content/Introduction/Introduction.vue2.js +0 -113
- package/dist/components/Content/Introduction/IntroductionSection.vue.d.ts +0 -25
- package/dist/components/Content/Introduction/IntroductionSection.vue.d.ts.map +0 -1
- package/dist/components/Content/Introduction/IntroductionSection.vue.js +0 -7
- package/dist/components/Content/Introduction/IntroductionSection.vue2.js +0 -159
- package/dist/components/Content/Introduction/index.d.ts +0 -2
- package/dist/components/Content/Introduction/index.d.ts.map +0 -1
- package/dist/features/base-url/BaseUrl.vue.d.ts.map +0 -1
- package/dist/features/base-url/BaseUrl.vue.js +0 -56
- package/dist/features/base-url/BaseUrl.vue2.js +0 -4
- package/dist/features/base-url/index.d.ts +0 -2
- package/dist/features/base-url/index.d.ts.map +0 -1
- package/dist/features/download-link/DownloadLink.vue.d.ts.map +0 -1
- package/dist/features/download-link/DownloadLink.vue.js +0 -7
- package/dist/features/download-link/DownloadLink.vue2.js +0 -61
- package/dist/features/download-link/index.d.ts +0 -3
- package/dist/features/download-link/index.d.ts.map +0 -1
- package/dist/features/download-link/openapi-version-symbol.d.ts +0 -2
- package/dist/features/download-link/openapi-version-symbol.d.ts.map +0 -1
- package/dist/features/download-link/openapi-version-symbol.js +0 -4
- package/dist/v2/events/definitions.d.ts +0 -44
- package/dist/v2/events/definitions.d.ts.map +0 -1
- package/dist/v2/events/definitions.js +0 -7
- package/dist/v2/events/index.d.ts +0 -3
- package/dist/v2/events/index.d.ts.map +0 -1
- package/dist/v2/events/listeners.d.ts +0 -8
- package/dist/v2/events/listeners.d.ts.map +0 -1
- package/dist/v2/events/listeners.js +0 -15
- /package/dist/{components/Content/ClientLibraries/ClientLibraries.vue3.js → v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue3.js} +0 -0
- /package/dist/{components/Content/ClientLibraries/ClientSelector.vue3.js → v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue3.js} +0 -0
- /package/dist/{components/Content/Introduction/Description.vue3.js → v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue3.js} +0 -0
- /package/dist/{components/Content/Introduction/Introduction.vue3.js → v2/blocks/scalar-client-selector-block/components/ClientSelector.vue3.js} +0 -0
- /package/dist/{components/Content/ClientLibraries → v2/blocks/scalar-client-selector-block/helpers}/featured-clients.js +0 -0
- /package/dist/{features/download-link → v2/blocks/scalar-info-block/components}/DownloadLink.vue3.js +0 -0
- /package/dist/{components/Content/Introduction/IntroductionSection.vue3.js → v2/blocks/scalar-info-block/components/InfoDescription.vue3.js} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SidebarElement.vue2.js";
|
|
2
2
|
import "./SidebarElement.vue3.js";
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-dc609512"]]);
|
|
5
5
|
export {
|
|
6
6
|
a as default
|
|
7
7
|
};
|
|
@@ -1,23 +1,26 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarSidebarGroupToggle as
|
|
3
|
-
import { scrollToId as
|
|
4
|
-
import { getHttpMethodInfo as
|
|
5
|
-
import { sleep as
|
|
6
|
-
import { ScalarIconWebhooksLogo as
|
|
1
|
+
import { defineComponent as O, createElementBlock as a, openBlock as o, createElementVNode as s, renderSlot as f, createCommentVNode as l, normalizeClass as A, unref as r, createTextVNode as h, withModifiers as $, createVNode as b, withCtx as k, toDisplayString as p, createBlock as E, normalizeStyle as N } from "vue";
|
|
2
|
+
import { ScalarSidebarGroupToggle as V } from "@scalar/components";
|
|
3
|
+
import { scrollToId as H } from "@scalar/helpers/dom/scroll-to-id";
|
|
4
|
+
import { getHttpMethodInfo as I } from "@scalar/helpers/http/http-info";
|
|
5
|
+
import { sleep as v } from "@scalar/helpers/testing/sleep";
|
|
6
|
+
import { ScalarIconWebhooksLogo as P } from "@scalar/icons";
|
|
7
7
|
import { isOperationDeprecated as R, combineUrlAndPath as U } from "@scalar/oas-utils/helpers";
|
|
8
8
|
import { useConfig as D } from "../../../hooks/useConfig.js";
|
|
9
9
|
import { useNavState as L } from "../../../hooks/useNavState.js";
|
|
10
10
|
import M from "./SidebarHttpBadge.vue.js";
|
|
11
|
-
const
|
|
11
|
+
const z = ["id"], j = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "sidebar-heading-chevron"
|
|
14
|
-
},
|
|
14
|
+
}, F = ["aria-expanded"], G = ["href", "tabindex"], W = { class: "sidebar-heading-link-title" }, q = {
|
|
15
|
+
key: 0,
|
|
16
|
+
class: "hanging-indent"
|
|
17
|
+
}, J = { key: 1 }, K = {
|
|
15
18
|
key: 0,
|
|
16
19
|
class: "sidebar-heading-link-method"
|
|
17
|
-
},
|
|
20
|
+
}, Q = {
|
|
18
21
|
key: 1,
|
|
19
22
|
class: "action-menu"
|
|
20
|
-
},
|
|
23
|
+
}, ae = /* @__PURE__ */ O({
|
|
21
24
|
__name: "SidebarElement",
|
|
22
25
|
props: {
|
|
23
26
|
id: {},
|
|
@@ -27,87 +30,89 @@ const P = ["id"], z = {
|
|
|
27
30
|
open: { type: Boolean }
|
|
28
31
|
},
|
|
29
32
|
emits: ["toggleOpen"],
|
|
30
|
-
setup(
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
},
|
|
34
|
-
if (
|
|
35
|
-
return U(
|
|
33
|
+
setup(y, { emit: C }) {
|
|
34
|
+
const i = y, m = C, { getFullHash: u, isIntersectionEnabled: d, replaceUrlState: w } = L(), n = D(), S = (e) => "path" in e ? e.path.replace(/\//g, "/") : e.title, c = async () => {
|
|
35
|
+
d.value = !1, i.hasChildren && m("toggleOpen"), await v(100), d.value = !0;
|
|
36
|
+
}, T = () => {
|
|
37
|
+
if (n.value.pathRouting)
|
|
38
|
+
return U(n.value.pathRouting.basePath, i.item.id);
|
|
36
39
|
if (typeof window < "u") {
|
|
37
40
|
const e = new URL(window.location.href);
|
|
38
|
-
return e.hash = u(
|
|
41
|
+
return e.hash = u(i.item.id), `${e.search}${e.hash}`;
|
|
39
42
|
}
|
|
40
|
-
return `#${u(
|
|
43
|
+
return `#${u(i.item.id)}`;
|
|
41
44
|
}, B = async (e) => {
|
|
42
|
-
var t,
|
|
43
|
-
(
|
|
45
|
+
var t, g;
|
|
46
|
+
(g = (t = n.value).onSidebarClick) == null || g.call(t, i.item.id), n.value.pathRouting && (e.preventDefault(), i.hasChildren && m("toggleOpen"), m("toggleOpen"), d.value = !1, w(i.item.id), H(i.item.id), await v(100), d.value = !0);
|
|
44
47
|
};
|
|
45
|
-
return (e, t) => (
|
|
48
|
+
return (e, t) => (o(), a("li", {
|
|
46
49
|
id: e.id,
|
|
47
50
|
class: "sidebar-group-item"
|
|
48
51
|
}, [
|
|
49
|
-
|
|
50
|
-
class:
|
|
52
|
+
s("div", {
|
|
53
|
+
class: A(["sidebar-heading", {
|
|
51
54
|
"sidebar-group-item__folder": e.hasChildren,
|
|
52
55
|
active_page: e.isActive,
|
|
53
|
-
deprecated: "operation" in e.item &&
|
|
56
|
+
deprecated: "operation" in e.item && r(R)(
|
|
54
57
|
e.item.operation
|
|
55
58
|
)
|
|
56
59
|
}]),
|
|
57
60
|
onClick: c
|
|
58
61
|
}, [
|
|
59
|
-
e.hasChildren && !
|
|
60
|
-
|
|
62
|
+
e.hasChildren && !r(n).defaultOpenAllTags ? (o(), a("p", j, [
|
|
63
|
+
s("button", {
|
|
61
64
|
"aria-expanded": e.open,
|
|
62
65
|
class: "toggle-nested-icon",
|
|
63
66
|
type: "button",
|
|
64
|
-
onClick:
|
|
67
|
+
onClick: $(c, ["stop"])
|
|
65
68
|
}, [
|
|
66
|
-
b(
|
|
67
|
-
label:
|
|
68
|
-
|
|
69
|
+
b(r(V), { open: e.open }, {
|
|
70
|
+
label: k(() => [
|
|
71
|
+
h(p(e.open ? "Collapse" : "Expand") + " " + p(e.item.title), 1)
|
|
69
72
|
]),
|
|
70
73
|
_: 1
|
|
71
74
|
}, 8, ["open"])
|
|
72
|
-
], 8,
|
|
73
|
-
t[0] || (t[0] =
|
|
74
|
-
])) :
|
|
75
|
-
|
|
75
|
+
], 8, F),
|
|
76
|
+
t[0] || (t[0] = h(" "))
|
|
77
|
+
])) : l("", !0),
|
|
78
|
+
s("a", {
|
|
76
79
|
class: "sidebar-heading-link",
|
|
77
|
-
href:
|
|
80
|
+
href: T(),
|
|
78
81
|
tabindex: e.hasChildren ? -1 : 0,
|
|
79
82
|
onClick: B
|
|
80
83
|
}, [
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
84
|
+
s("p", W, [
|
|
85
|
+
r(n).operationTitleSource === "path" ? (o(), a("span", q, p(S(e.item)), 1)) : (o(), a("span", J, p(e.item.title), 1))
|
|
86
|
+
]),
|
|
87
|
+
"method" in e.item && !e.hasChildren ? (o(), a("p", K, [
|
|
88
|
+
t[1] || (t[1] = h(" ")),
|
|
89
|
+
t[2] || (t[2] = s("span", { class: "sr-only" }, "HTTP Method: ", -1)),
|
|
85
90
|
b(M, {
|
|
86
|
-
class: "min-w-9.75 justify-end text-right",
|
|
87
91
|
active: e.isActive,
|
|
92
|
+
class: "min-w-9.75 justify-end text-right",
|
|
88
93
|
method: e.item.method
|
|
89
94
|
}, {
|
|
90
|
-
default:
|
|
91
|
-
"webhook" in e.item ? (
|
|
95
|
+
default: k(() => [
|
|
96
|
+
"webhook" in e.item ? (o(), E(r(P), {
|
|
92
97
|
key: 0,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
}, null, 8, ["style"])) :
|
|
98
|
+
style: N({
|
|
99
|
+
color: r(I)(e.item.method).colorVar
|
|
100
|
+
}),
|
|
101
|
+
weight: "bold"
|
|
102
|
+
}, null, 8, ["style"])) : l("", !0)
|
|
98
103
|
]),
|
|
99
104
|
_: 1
|
|
100
105
|
}, 8, ["active", "method"])
|
|
101
|
-
])) :
|
|
102
|
-
], 8,
|
|
106
|
+
])) : l("", !0)
|
|
107
|
+
], 8, G)
|
|
103
108
|
], 2),
|
|
104
|
-
e.open ?
|
|
105
|
-
e.$slots["action-menu"] ? (
|
|
106
|
-
|
|
107
|
-
])) :
|
|
108
|
-
], 8,
|
|
109
|
+
e.open ? f(e.$slots, "default", { key: 0 }, void 0, !0) : l("", !0),
|
|
110
|
+
e.$slots["action-menu"] ? (o(), a("div", Q, [
|
|
111
|
+
f(e.$slots, "action-menu", {}, void 0, !0)
|
|
112
|
+
])) : l("", !0)
|
|
113
|
+
], 8, z));
|
|
109
114
|
}
|
|
110
115
|
});
|
|
111
116
|
export {
|
|
112
|
-
|
|
117
|
+
ae as default
|
|
113
118
|
};
|
|
@@ -1,19 +1,14 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
2
|
level: number;
|
|
3
3
|
};
|
|
4
|
-
declare
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
default?(_: {}): any;
|
|
8
|
-
};
|
|
9
|
-
refs: {};
|
|
10
|
-
rootEl: HTMLUListElement;
|
|
4
|
+
declare var __VLS_1: {};
|
|
5
|
+
type __VLS_Slots = {} & {
|
|
6
|
+
default?: (props: typeof __VLS_1) => any;
|
|
11
7
|
};
|
|
12
|
-
|
|
13
|
-
declare const
|
|
14
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
8
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
15
10
|
export default _default;
|
|
16
|
-
type
|
|
11
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
17
12
|
new (): {
|
|
18
13
|
$slots: S;
|
|
19
14
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarGroup.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/sidebar/components/SidebarGroup.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SidebarGroup.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/sidebar/components/SidebarGroup.vue"],"names":[],"mappings":"AA8CA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;CACd,CAAC;AAkCF,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAmB/C,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"}
|
|
@@ -2,19 +2,14 @@ type __VLS_Props = {
|
|
|
2
2
|
method: string;
|
|
3
3
|
active?: boolean;
|
|
4
4
|
};
|
|
5
|
-
declare
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
default?(_: {}): any;
|
|
9
|
-
};
|
|
10
|
-
refs: {};
|
|
11
|
-
rootEl: any;
|
|
5
|
+
declare var __VLS_6: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_6) => any;
|
|
12
8
|
};
|
|
13
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
14
9
|
declare const __VLS_component: 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>;
|
|
15
|
-
declare const _default:
|
|
10
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
16
11
|
export default _default;
|
|
17
|
-
type
|
|
12
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
18
13
|
new (): {
|
|
19
14
|
$slots: S;
|
|
20
15
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarHttpBadge.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/sidebar/components/SidebarHttpBadge.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SidebarHttpBadge.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/sidebar/components/SidebarHttpBadge.vue"],"names":[],"mappings":"AA2CA,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAAC;AA8CF,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAoB/C,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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-sidebar.d.ts","sourceRoot":"","sources":["../../../../src/features/sidebar/helpers/create-sidebar.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAGxD,OAAO,EAAE,KAAK,GAAG,EAA2B,MAAM,KAAK,CAAA;AAEvD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAA;AAIrE,2CAA2C;AAC3C,KAAK,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAEpD,qCAAqC;AACrC,MAAM,MAAM,cAAc,GAAG,mBAAmB,CAAA;AAEhD;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"create-sidebar.d.ts","sourceRoot":"","sources":["../../../../src/features/sidebar/helpers/create-sidebar.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAGxD,OAAO,EAAE,KAAK,GAAG,EAA2B,MAAM,KAAK,CAAA;AAEvD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAA;AAIrE,2CAA2C;AAC3C,KAAK,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAEpD,qCAAqC;AACrC,MAAM,MAAM,cAAc,GAAG,mBAAmB,CAAA;AAEhD;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,GAAI,sBAAsB,GAAG,CAAC,WAAW,CAAC,QAAQ,CAAC,EAAE,SAAS,cAAc;;;;;;;qCAa5D,MAAM,UAAU,OAAO;mCARzB,MAAM,SAAS,OAAO;sCADnB,MAAM;CAgDhD,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpecificationExtension.vue.d.ts","sourceRoot":"","sources":["../../../src/features/specification-extension/SpecificationExtension.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SpecificationExtension.vue.d.ts","sourceRoot":"","sources":["../../../src/features/specification-extension/SpecificationExtension.vue"],"names":[],"mappings":"AAgFA,KAAK,WAAW,GAAG;IACjB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAA;CAC3C,CAAC;;AA6GF,wBAMG"}
|
|
@@ -1,49 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ScalarErrorBoundary as B } from "@scalar/components";
|
|
3
|
-
import { usePluginManager as b } from "../../plugins/hooks/usePluginManager.js";
|
|
4
|
-
const N = {
|
|
5
|
-
key: 0,
|
|
6
|
-
class: "text-base"
|
|
7
|
-
}, O = /* @__PURE__ */ E({
|
|
8
|
-
__name: "SpecificationExtension",
|
|
9
|
-
props: {
|
|
10
|
-
value: {}
|
|
11
|
-
},
|
|
12
|
-
setup(i) {
|
|
13
|
-
const { getSpecificationExtensions: f } = b();
|
|
14
|
-
function d(t) {
|
|
15
|
-
return Object.keys(t ?? {}).filter(
|
|
16
|
-
(n) => n.startsWith("x-")
|
|
17
|
-
);
|
|
18
|
-
}
|
|
19
|
-
function v(t) {
|
|
20
|
-
return t.flatMap((n) => f(n)).filter((n) => n.component);
|
|
21
|
-
}
|
|
22
|
-
const g = c(() => d(i.value)), a = c(
|
|
23
|
-
() => v(g.value)
|
|
24
|
-
);
|
|
25
|
-
return (t, n) => typeof t.value == "object" && a.value.length ? (r(), l("div", N, [
|
|
26
|
-
(r(!0), l(k, null, y(a.value, (e) => (r(), o(C(B), null, {
|
|
27
|
-
default: h(() => {
|
|
28
|
-
var u, m;
|
|
29
|
-
return [
|
|
30
|
-
e.renderer ? (r(), o(s(e.renderer), p({
|
|
31
|
-
key: 0,
|
|
32
|
-
ref_for: !0
|
|
33
|
-
}, {
|
|
34
|
-
[e.name]: (u = t.value) == null ? void 0 : u[e.name],
|
|
35
|
-
component: e.component
|
|
36
|
-
}), null, 16)) : (r(), o(s(e.component), p({
|
|
37
|
-
key: 1,
|
|
38
|
-
ref_for: !0
|
|
39
|
-
}, { [e.name]: (m = t.value) == null ? void 0 : m[e.name] }), null, 16))
|
|
40
|
-
];
|
|
41
|
-
}),
|
|
42
|
-
_: 2
|
|
43
|
-
}, 1024))), 256))
|
|
44
|
-
])) : _("", !0);
|
|
45
|
-
}
|
|
46
|
-
});
|
|
1
|
+
import f from "./SpecificationExtension.vue2.js";
|
|
47
2
|
export {
|
|
48
|
-
|
|
3
|
+
f as default
|
|
49
4
|
};
|
|
@@ -1,4 +1,49 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { defineComponent as E, computed as c, createElementBlock as l, createCommentVNode as _, openBlock as r, Fragment as k, renderList as y, createBlock as o, unref as C, withCtx as h, resolveDynamicComponent as s, mergeProps as p } from "vue";
|
|
2
|
+
import { ScalarErrorBoundary as B } from "@scalar/components";
|
|
3
|
+
import { usePluginManager as b } from "../../plugins/hooks/usePluginManager.js";
|
|
4
|
+
const N = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "text-base"
|
|
7
|
+
}, O = /* @__PURE__ */ E({
|
|
8
|
+
__name: "SpecificationExtension",
|
|
9
|
+
props: {
|
|
10
|
+
value: {}
|
|
11
|
+
},
|
|
12
|
+
setup(i) {
|
|
13
|
+
const { getSpecificationExtensions: f } = b();
|
|
14
|
+
function d(t) {
|
|
15
|
+
return Object.keys(t ?? {}).filter(
|
|
16
|
+
(n) => n.startsWith("x-")
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
function v(t) {
|
|
20
|
+
return t.flatMap((n) => f(n)).filter((n) => n.component);
|
|
21
|
+
}
|
|
22
|
+
const g = c(() => d(i.value)), a = c(
|
|
23
|
+
() => v(g.value)
|
|
24
|
+
);
|
|
25
|
+
return (t, n) => typeof t.value == "object" && a.value.length ? (r(), l("div", N, [
|
|
26
|
+
(r(!0), l(k, null, y(a.value, (e) => (r(), o(C(B), null, {
|
|
27
|
+
default: h(() => {
|
|
28
|
+
var u, m;
|
|
29
|
+
return [
|
|
30
|
+
e.renderer ? (r(), o(s(e.renderer), p({
|
|
31
|
+
key: 0,
|
|
32
|
+
ref_for: !0
|
|
33
|
+
}, {
|
|
34
|
+
[e.name]: (u = t.value) == null ? void 0 : u[e.name],
|
|
35
|
+
component: e.component
|
|
36
|
+
}), null, 16)) : (r(), o(s(e.component), p({
|
|
37
|
+
key: 1,
|
|
38
|
+
ref_for: !0
|
|
39
|
+
}, { [e.name]: (m = t.value) == null ? void 0 : m[e.name] }), null, 16))
|
|
40
|
+
];
|
|
41
|
+
}),
|
|
42
|
+
_: 2
|
|
43
|
+
}, 1024))), 256))
|
|
44
|
+
])) : _("", !0);
|
|
45
|
+
}
|
|
46
|
+
});
|
|
2
47
|
export {
|
|
3
|
-
|
|
48
|
+
O as default
|
|
4
49
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Utility function to extract all keys starting with 'x-' (OpenAPI extensions) from an object.
|
|
3
|
+
*
|
|
4
|
+
* @param object - The object from which to extract extension keys.
|
|
5
|
+
* @returns An object containing only the entries whose keys start with 'x-'.
|
|
6
|
+
*/
|
|
7
|
+
export declare const getXKeysFromObject: (object?: Record<string, unknown>) => {
|
|
8
|
+
[k: string]: unknown;
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/features/specification-extension/helpers.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,GAAI,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;CAOlE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/specification-extension/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/specification-extension/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,8BAA8B,CAAA;AAChF,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TestRequestButton.vue.d.ts","sourceRoot":"","sources":["../../../src/features/test-request-button/TestRequestButton.vue"],"names":[],"mappings":"AAmFA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;
|
|
1
|
+
{"version":3,"file":"TestRequestButton.vue.d.ts","sourceRoot":"","sources":["../../../src/features/test-request-button/TestRequestButton.vue"],"names":[],"mappings":"AAmFA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAQnE,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,UAAU,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;CACb,CAAC;;AA0FF,wBAMG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-tag.d.ts","sourceRoot":"","sources":["../../../../src/features/traverse-schema/helpers/get-tag.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAA;AAE/D,KAAK,WAAW,GAAG,WAAW,CAAC,OAAO,SAAS,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,CAAA;AAEhF,qEAAqE;AACrE,eAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"get-tag.d.ts","sourceRoot":"","sources":["../../../../src/features/traverse-schema/helpers/get-tag.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAA;AAE/D,KAAK,WAAW,GAAG,WAAW,CAAC,OAAO,SAAS,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,CAAA;AAEhF,qEAAqE;AACrE,eAAO,MAAM,MAAM,GAAI,SAAS,OAAO,EAAE,MAAM,MAAM,KAAG,WAWvD,CAAA"}
|
|
@@ -5,5 +5,7 @@ export declare const DEFAULT_INTRODUCTION_SLUG = "introduction";
|
|
|
5
5
|
* Creates sidebar entries from markdown headings in the OpenAPI description.
|
|
6
6
|
* Only includes the top two levels of headings for a clean hierarchy.
|
|
7
7
|
*/
|
|
8
|
-
export declare const traverseDescription: (description: string | undefined,
|
|
8
|
+
export declare const traverseDescription: (description: string | undefined,
|
|
9
|
+
/** Map of titles for the mobile header */
|
|
10
|
+
titlesMap: Map<string, string>, getHeadingId: (heading: Heading) => string) => TraversedDescription[];
|
|
9
11
|
//# sourceMappingURL=traverse-description.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"traverse-description.d.ts","sourceRoot":"","sources":["../../../../src/features/traverse-schema/helpers/traverse-description.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAA;AAE5E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAEnD,eAAO,MAAM,yBAAyB,iBAAiB,CAAA;AAEvD;;;GAGG;AACH,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"traverse-description.d.ts","sourceRoot":"","sources":["../../../../src/features/traverse-schema/helpers/traverse-description.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAA;AAE5E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAEnD,eAAO,MAAM,yBAAyB,iBAAiB,CAAA;AAEvD;;;GAGG;AACH,eAAO,MAAM,mBAAmB,GAC9B,aAAa,MAAM,GAAG,SAAS;AAC/B,0CAA0C;AAC1C,WAAW,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EAC9B,cAAc,CAAC,OAAO,EAAE,OAAO,KAAK,MAAM,KACzC,oBAAoB,EAmDtB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"traverse-document.d.ts","sourceRoot":"","sources":["../../../../src/features/traverse-schema/helpers/traverse-document.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAOxD,OAAO,KAAK,EAAW,mBAAmB,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAA;AAEpG;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"traverse-document.d.ts","sourceRoot":"","sources":["../../../../src/features/traverse-schema/helpers/traverse-document.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAOxD,OAAO,KAAK,EAAW,mBAAmB,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAA;AAEpG;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,GAC3B,UAAU,WAAW,CAAC,QAAQ,EAC9B,8EAA8E,mBAAmB;;;CA8ClG,CAAA"}
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
import type { OpenAPIV3_1 } from '@scalar/openapi-types';
|
|
2
2
|
import type { TraversedEntry } from '../../../features/traverse-schema/types';
|
|
3
3
|
import type { UseNavState } from '../../../hooks/useNavState.js';
|
|
4
|
-
import type { TagObject } from '@scalar/workspace-store/schemas/v3.1/strict/
|
|
4
|
+
import type { TagObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
5
5
|
/**
|
|
6
6
|
* Traverse the paths of the spec and build a map of tags and operations
|
|
7
7
|
*
|
|
8
8
|
* Default tag is to match what we have now we can improve later
|
|
9
9
|
*/
|
|
10
|
-
export declare const traversePaths: (content: OpenAPIV3_1.Document,
|
|
10
|
+
export declare const traversePaths: (content: OpenAPIV3_1.Document,
|
|
11
|
+
/** Map of tags and their entries */
|
|
12
|
+
tagsMap: Map<string, {
|
|
11
13
|
tag: TagObject;
|
|
12
14
|
entries: TraversedEntry[];
|
|
13
|
-
}>,
|
|
15
|
+
}>,
|
|
16
|
+
/** Map of titles for the mobile header */
|
|
17
|
+
titlesMap: Map<string, string>, getOperationId: UseNavState["getOperationId"]) => void;
|
|
14
18
|
//# sourceMappingURL=traverse-paths.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"traverse-paths.d.ts","sourceRoot":"","sources":["../../../../src/features/traverse-schema/helpers/traverse-paths.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAExD,OAAO,KAAK,EAAE,cAAc,EAAsB,MAAM,kCAAkC,CAAA;AAC1F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"traverse-paths.d.ts","sourceRoot":"","sources":["../../../../src/features/traverse-schema/helpers/traverse-paths.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAExD,OAAO,KAAK,EAAE,cAAc,EAAsB,MAAM,kCAAkC,CAAA;AAC1F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAEtD,OAAO,KAAK,EAAmB,SAAS,EAAE,MAAM,8DAA8D,CAAA;AAyB9G;;;;GAIG;AACH,eAAO,MAAM,aAAa,GACxB,SAAS,WAAW,CAAC,QAAQ;AAC7B,oCAAoC;AACpC,SAAS,GAAG,CAAC,MAAM,EAAE;IAAE,GAAG,EAAE,SAAS,CAAC;IAAC,OAAO,EAAE,cAAc,EAAE,CAAA;CAAE,CAAC;AACnE,0CAA0C;AAC1C,WAAW,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EAC9B,gBAAgB,WAAW,CAAC,gBAAgB,CAAC,SA+B9C,CAAA"}
|
|
@@ -2,5 +2,7 @@ import type { TagsMap, TraversedSchema } from '../../../features/traverse-schema
|
|
|
2
2
|
import type { UseNavState } from '../../../hooks/useNavState.js';
|
|
3
3
|
import type { OpenAPIV3_1 } from '@scalar/openapi-types';
|
|
4
4
|
/** Traverse components.schemas to create entries for models */
|
|
5
|
-
export declare const traverseSchemas: (content: OpenAPIV3_1.Document, tagsMap: TagsMap,
|
|
5
|
+
export declare const traverseSchemas: (content: OpenAPIV3_1.Document, tagsMap: TagsMap,
|
|
6
|
+
/** Map of titles for the mobile header */
|
|
7
|
+
titlesMap: Map<string, string>, getModelId: UseNavState["getModelId"]) => TraversedSchema[];
|
|
6
8
|
//# sourceMappingURL=traverse-schemas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"traverse-schemas.d.ts","sourceRoot":"","sources":["../../../../src/features/traverse-schema/helpers/traverse-schemas.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AAChF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;
|
|
1
|
+
{"version":3,"file":"traverse-schemas.d.ts","sourceRoot":"","sources":["../../../../src/features/traverse-schema/helpers/traverse-schemas.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AAChF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AA2BxD,+DAA+D;AAC/D,eAAO,MAAM,eAAe,GAC1B,SAAS,WAAW,CAAC,QAAQ,EAC7B,SAAS,OAAO;AAChB,0CAA0C;AAC1C,WAAW,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EAC9B,YAAY,WAAW,CAAC,YAAY,CAAC,KACpC,eAAe,EAyBjB,CAAA"}
|
|
@@ -4,6 +4,8 @@ import type { TagsMap, TraversedEntry } from '../../../features/traverse-schema/
|
|
|
4
4
|
import type { UseNavState } from '../../../hooks/useNavState.js';
|
|
5
5
|
type Options = Pick<UseNavState, 'getTagId'> & Pick<ApiReferenceConfiguration, 'tagsSorter' | 'operationsSorter'>;
|
|
6
6
|
/** Traverses our tags map creates entries, also handles sorting and tagGroups */
|
|
7
|
-
export declare const traverseTags: (content: OpenAPIV3_1.Document, tagsMap: TagsMap,
|
|
7
|
+
export declare const traverseTags: (content: OpenAPIV3_1.Document, tagsMap: TagsMap,
|
|
8
|
+
/** Map of titles for the mobile title */
|
|
9
|
+
titlesMap: Map<string, string>, { getTagId, tagsSorter, operationsSorter }: Options) => TraversedEntry[];
|
|
8
10
|
export {};
|
|
9
11
|
//# sourceMappingURL=traverse-tags.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"traverse-tags.d.ts","sourceRoot":"","sources":["../../../../src/features/traverse-schema/helpers/traverse-tags.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAG5E,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAgB,MAAM,kCAAkC,CAAA;AAC7F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAItD,KAAK,OAAO,GAAG,IAAI,CAAC,WAAW,EAAE,UAAU,CAAC,GAAG,IAAI,CAAC,yBAAyB,EAAE,YAAY,GAAG,kBAAkB,CAAC,CAAA;AAkGjH,iFAAiF;AACjF,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"traverse-tags.d.ts","sourceRoot":"","sources":["../../../../src/features/traverse-schema/helpers/traverse-tags.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAG5E,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAgB,MAAM,kCAAkC,CAAA;AAC7F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAItD,KAAK,OAAO,GAAG,IAAI,CAAC,WAAW,EAAE,UAAU,CAAC,GAAG,IAAI,CAAC,yBAAyB,EAAE,YAAY,GAAG,kBAAkB,CAAC,CAAA;AAkGjH,iFAAiF;AACjF,eAAO,MAAM,YAAY,GACvB,SAAS,WAAW,CAAC,QAAQ,EAC7B,SAAS,OAAO;AAChB,yCAAyC;AACzC,WAAW,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EAC9B,4CAA4C,OAAO,KAClD,cAAc,EAyBhB,CAAA"}
|
|
@@ -2,5 +2,9 @@ import type { OpenAPIV3_1 } from '@scalar/openapi-types';
|
|
|
2
2
|
import type { TagsMap, TraversedWebhook } from '../../../features/traverse-schema/types';
|
|
3
3
|
import type { UseNavState } from '../../../hooks/useNavState.js';
|
|
4
4
|
/** When traversing webhooks, we pass in the tags in from operations to save on memory */
|
|
5
|
-
export declare const traverseWebhooks: (content: OpenAPIV3_1.Document,
|
|
5
|
+
export declare const traverseWebhooks: (content: OpenAPIV3_1.Document,
|
|
6
|
+
/** The tag map from from traversing paths */
|
|
7
|
+
tagsMap: TagsMap,
|
|
8
|
+
/** Map of titles for the mobile title */
|
|
9
|
+
titlesMap: Map<string, string>, getWebhookId: UseNavState["getWebhookId"]) => TraversedWebhook[];
|
|
6
10
|
//# sourceMappingURL=traverse-webhooks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"traverse-webhooks.d.ts","sourceRoot":"","sources":["../../../../src/features/traverse-schema/helpers/traverse-webhooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAExD,OAAO,KAAK,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAA;AACjF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"traverse-webhooks.d.ts","sourceRoot":"","sources":["../../../../src/features/traverse-schema/helpers/traverse-webhooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAExD,OAAO,KAAK,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAA;AACjF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AA0BtD,yFAAyF;AACzF,eAAO,MAAM,gBAAgB,GAC3B,SAAS,WAAW,CAAC,QAAQ;AAC7B,6CAA6C;AAC7C,SAAS,OAAO;AAChB,yCAAyC;AACzC,WAAW,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EAC9B,cAAc,WAAW,CAAC,cAAc,CAAC,KACxC,gBAAgB,EA4BlB,CAAA"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import type { ApiReferenceConfiguration } from '@scalar/types/api-reference';
|
|
2
2
|
import type { UseNavState } from '../../hooks/useNavState.js';
|
|
3
3
|
import type { OpenAPIV3_1 } from '@scalar/openapi-types';
|
|
4
|
-
import type { OperationObject } from '@scalar/workspace-store/schemas/v3.1/strict/
|
|
5
|
-
import type { SchemaObject } from '@scalar/workspace-store/schemas/v3.1/strict/schema';
|
|
6
|
-
import type { TagObject } from '@scalar/workspace-store/schemas/v3.1/strict/tag';
|
|
4
|
+
import type { OperationObject, TagObject, SchemaObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
7
5
|
import type { Ref } from 'vue';
|
|
8
6
|
/** Map of tagNames and their entries */
|
|
9
7
|
export type TagsMap = Map<string, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/features/traverse-schema/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAE5E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/features/traverse-schema/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAE5E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EACV,eAAe,EACf,SAAS,EACT,YAAY,EACb,MAAM,8DAA8D,CAAA;AACrE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAE9B,wCAAwC;AACxC,MAAM,MAAM,OAAO,GAAG,GAAG,CAAC,MAAM,EAAE;IAAE,GAAG,EAAE,SAAS,CAAC;IAAC,OAAO,EAAE,cAAc,EAAE,CAAA;CAAE,CAAC,CAAA;AAEhF,8DAA8D;AAC9D,MAAM,MAAM,oBAAoB,GAAG;IACjC,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,oBAAoB,EAAE,CAAA;CAClC,CAAA;AAED,4DAA4D;AAC5D,MAAM,MAAM,kBAAkB,GAAG;IAC/B,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,WAAW,CAAC,WAAW,CAAA;IAC/B,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,eAAe,CAAA;CAC3B,CAAA;AAED,wDAAwD;AACxD,MAAM,MAAM,eAAe,GAAG;IAC5B,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,YAAY,CAAA;CACrB,CAAA;AAED,0EAA0E;AAC1E,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,cAAc,EAAE,CAAA;IAC1B,GAAG,EAAE,SAAS,CAAA;IACd,OAAO,EAAE,OAAO,CAAA;IAChB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAA;AAED,6HAA6H;AAC7H,MAAM,MAAM,gBAAgB,GAAG;IAC7B,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,WAAW,CAAC,WAAW,CAAA;IAC/B,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,eAAe,CAAA;CACzB,CAAA;AAED,oDAAoD;AACpD,MAAM,MAAM,cAAc,GACtB,oBAAoB,GACpB,kBAAkB,GAClB,eAAe,GACf,YAAY,GACZ,gBAAgB,CAAA;AAEpB,sCAAsC;AACtC,MAAM,MAAM,mBAAmB,GAAG;IAChC,MAAM,EAAE,GAAG,CAAC,yBAAyB,CAAC,CAAA;CACvC,GAAG,IAAI,CAAC,WAAW,EAAE,cAAc,GAAG,YAAY,GAAG,gBAAgB,GAAG,cAAc,GAAG,UAAU,GAAG,cAAc,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"XBadges.vue.d.ts","sourceRoot":"","sources":["../../../src/features/x-badges/XBadges.vue"],"names":[],"mappings":"AAoCA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,8DAA8D,CAAA;
|
|
1
|
+
{"version":3,"file":"XBadges.vue.d.ts","sourceRoot":"","sources":["../../../src/features/x-badges/XBadges.vue"],"names":[],"mappings":"AAoCA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,8DAA8D,CAAA;AAK1F,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAA;IAC5B,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAA;CAC3B,CAAC;;AA2DF,wBAMG"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { SecurityScheme } from '@scalar/oas-utils/entities/spec';
|
|
2
|
-
import type { SecuritySchemeObject } from '@scalar/workspace-store/schemas/v3.1/strict/
|
|
2
|
+
import type { SecuritySchemeObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
3
3
|
/**
|
|
4
4
|
* Convert the old security scheme to the new one with secret extensions
|
|
5
5
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"convert-security-scheme.d.ts","sourceRoot":"","sources":["../../src/helpers/convert-security-scheme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AACrE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"convert-security-scheme.d.ts","sourceRoot":"","sources":["../../src/helpers/convert-security-scheme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AACrE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8DAA8D,CAAA;AAExG;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,GAAI,QAAQ,cAAc,KAAG,oBAsC9D,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-utils.d.ts","sourceRoot":"","sources":["../../src/helpers/test-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAClF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAExD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAA;AAIlF;;GAEG;AAEH,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"test-utils.d.ts","sourceRoot":"","sources":["../../src/helpers/test-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAClF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAExD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAA;AAIlF;;GAEG;AAEH,eAAO,MAAM,iBAAiB,GAAI,iBAAgB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,EAAE,UAAS,cAAc,EAAO;;;;;;;;;;CAO5G,CAAA;AAEF,eAAO,MAAM,6BAA6B,GAAI,UAAU,WAAW,CAAC,QAAQ;;;;;;;;;;CAe3E,CAAA;AAED,eAAO,MAAM,uBAAuB;;CAElC,CAAA;AAEF,eAAO,MAAM,kBAAkB,GAAI,aAAS;;;;;;;;;;;;;;;;;CAiB1C,CAAA;AAEF,eAAO,MAAM,eAAe,GAAI,gBAAgB,iBAAiB,KAAG,cAsBlE,CAAA;AAEF,eAAO,MAAM,sBAAsB;;;;;;;CAOjC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFreezing.d.ts","sourceRoot":"","sources":["../../src/hooks/useFreezing.ts"],"names":[],"mappings":"AASA;;;GAGG;AACH,eAAO,MAAM,WAAW,YAyDvB,CAAA"}
|