@scalar/api-reference 1.34.6 → 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 +51 -0
- package/dist/browser/standalone.js +30660 -30580
- 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/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.map +1 -1
- 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 +20 -18
- 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,113 +0,0 @@
|
|
|
1
|
-
import { defineComponent as V, computed as s, createBlock as y, openBlock as i, unref as t, withCtx as a, createVNode as o, createElementVNode as B, normalizeClass as N, createElementBlock as C, createCommentVNode as l } from "vue";
|
|
2
|
-
import { useWorkspace as _, useActiveEntities as z } from "@scalar/api-client/store";
|
|
3
|
-
import { RequestAuth as L } from "@scalar/api-client/views/Request/RequestSection/RequestAuth";
|
|
4
|
-
import { ScalarErrorBoundary as W } from "@scalar/components";
|
|
5
|
-
import { getSlugUid as D } from "@scalar/oas-utils/transforms";
|
|
6
|
-
import { useNavState as I } from "../../../hooks/useNavState.js";
|
|
7
|
-
import $ from "./IntroductionSection.vue.js";
|
|
8
|
-
import j from "../../Lazy/Lazy.vue2.js";
|
|
9
|
-
import q from "../../../features/base-url/BaseUrl.vue.js";
|
|
10
|
-
import R from "../ClientLibraries/ClientLibraries.vue.js";
|
|
11
|
-
const F = {
|
|
12
|
-
key: 0,
|
|
13
|
-
class: "scalar-reference-intro-server scalar-client introduction-card-item text-base leading-normal [--scalar-address-bar-height:0px]"
|
|
14
|
-
}, G = {
|
|
15
|
-
key: 1,
|
|
16
|
-
class: "scalar-reference-intro-auth scalar-client introduction-card-item leading-normal"
|
|
17
|
-
}, x = /* @__PURE__ */ V({
|
|
18
|
-
__name: "Introduction",
|
|
19
|
-
props: {
|
|
20
|
-
document: {},
|
|
21
|
-
config: {},
|
|
22
|
-
clientOptions: {},
|
|
23
|
-
store: {}
|
|
24
|
-
},
|
|
25
|
-
setup(n) {
|
|
26
|
-
const { collections: b, securitySchemes: w, servers: u } = _(), {
|
|
27
|
-
activeCollection: A,
|
|
28
|
-
activeEnvVariables: E,
|
|
29
|
-
activeEnvironment: O,
|
|
30
|
-
activeWorkspace: d
|
|
31
|
-
} = z(), r = s(() => {
|
|
32
|
-
var e;
|
|
33
|
-
if ((e = n.config) != null && e.slug) {
|
|
34
|
-
const c = b[D(n.config.slug)];
|
|
35
|
-
if (c)
|
|
36
|
-
return c;
|
|
37
|
-
}
|
|
38
|
-
return A.value;
|
|
39
|
-
}), m = s(() => {
|
|
40
|
-
if (r.value) {
|
|
41
|
-
if (r.value.selectedServerUid) {
|
|
42
|
-
const e = u[r.value.selectedServerUid];
|
|
43
|
-
if (e)
|
|
44
|
-
return e;
|
|
45
|
-
}
|
|
46
|
-
return u[r.value.servers[0]];
|
|
47
|
-
}
|
|
48
|
-
}), U = s(
|
|
49
|
-
() => {
|
|
50
|
-
var e;
|
|
51
|
-
return ((e = n.config) == null ? void 0 : e.layout) === "classic" ? "after" : "aside";
|
|
52
|
-
}
|
|
53
|
-
), { hash: v } = I();
|
|
54
|
-
return (e, c) => (i(), y(t(j), {
|
|
55
|
-
id: "introduction-card",
|
|
56
|
-
prev: "",
|
|
57
|
-
isLazy: !!t(v) && !t(v).startsWith("description")
|
|
58
|
-
}, {
|
|
59
|
-
default: a(() => [
|
|
60
|
-
o($, {
|
|
61
|
-
document: e.document,
|
|
62
|
-
config: e.config
|
|
63
|
-
}, {
|
|
64
|
-
[U.value]: a(() => [
|
|
65
|
-
o(t(W), null, {
|
|
66
|
-
default: a(() => {
|
|
67
|
-
var f, p, h, g, S, k;
|
|
68
|
-
return [
|
|
69
|
-
B("div", {
|
|
70
|
-
class: N(["introduction-card", { "introduction-card-row": ((f = e.config) == null ? void 0 : f.layout) === "classic" }])
|
|
71
|
-
}, [
|
|
72
|
-
(h = (p = r.value) == null ? void 0 : p.servers) != null && h.length ? (i(), C("div", F, [
|
|
73
|
-
o(t(q), {
|
|
74
|
-
collection: r.value,
|
|
75
|
-
server: m.value
|
|
76
|
-
}, null, 8, ["collection", "server"])
|
|
77
|
-
])) : l("", !0),
|
|
78
|
-
r.value && t(d) && Object.keys(t(w) ?? {}).length ? (i(), C("div", G, [
|
|
79
|
-
o(t(L), {
|
|
80
|
-
collection: r.value,
|
|
81
|
-
envVariables: t(E),
|
|
82
|
-
environment: t(O),
|
|
83
|
-
layout: "reference",
|
|
84
|
-
persistAuth: (g = e.config) == null ? void 0 : g.persistAuth,
|
|
85
|
-
selectedSecuritySchemeUids: ((S = r.value) == null ? void 0 : S.selectedSecuritySchemeUids) ?? [],
|
|
86
|
-
server: m.value,
|
|
87
|
-
title: "Authentication",
|
|
88
|
-
workspace: t(d)
|
|
89
|
-
}, null, 8, ["collection", "envVariables", "environment", "persistAuth", "selectedSecuritySchemeUids", "server", "workspace"])
|
|
90
|
-
])) : l("", !0),
|
|
91
|
-
((k = e.config) == null ? void 0 : k.hiddenClients) !== !0 && e.clientOptions.length && e.store.workspace.activeDocument ? (i(), y(t(R), {
|
|
92
|
-
key: 2,
|
|
93
|
-
clientOptions: e.clientOptions,
|
|
94
|
-
document: e.store.workspace.activeDocument,
|
|
95
|
-
selectedClient: e.store.workspace["x-scalar-default-client"],
|
|
96
|
-
class: "introduction-card-item scalar-reference-intro-clients"
|
|
97
|
-
}, null, 8, ["clientOptions", "document", "selectedClient"])) : l("", !0)
|
|
98
|
-
], 2)
|
|
99
|
-
];
|
|
100
|
-
}),
|
|
101
|
-
_: 1
|
|
102
|
-
})
|
|
103
|
-
]),
|
|
104
|
-
_: 2
|
|
105
|
-
}, 1032, ["document", "config"])
|
|
106
|
-
]),
|
|
107
|
-
_: 1
|
|
108
|
-
}, 8, ["isLazy"]));
|
|
109
|
-
}
|
|
110
|
-
});
|
|
111
|
-
export {
|
|
112
|
-
x as default
|
|
113
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { OpenAPIV3_1 } from '@scalar/openapi-types';
|
|
2
|
-
import type { ApiReferenceConfiguration } from '@scalar/types/api-reference';
|
|
3
|
-
type __VLS_Props = {
|
|
4
|
-
document: OpenAPIV3_1.Document;
|
|
5
|
-
config?: ApiReferenceConfiguration;
|
|
6
|
-
};
|
|
7
|
-
declare function __VLS_template(): {
|
|
8
|
-
attrs: Partial<{}>;
|
|
9
|
-
slots: {
|
|
10
|
-
aside?(_: {}): any;
|
|
11
|
-
after?(_: {}): any;
|
|
12
|
-
};
|
|
13
|
-
refs: {};
|
|
14
|
-
rootEl: any;
|
|
15
|
-
};
|
|
16
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
17
|
-
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>;
|
|
18
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
19
|
-
export default _default;
|
|
20
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
21
|
-
new (): {
|
|
22
|
-
$slots: S;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
//# sourceMappingURL=IntroductionSection.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IntroductionSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Introduction/IntroductionSection.vue"],"names":[],"mappings":"AA6HA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAyB5E,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAAA;IAC9B,MAAM,CAAC,EAAE,yBAAyB,CAAA;CACnC,CAAC;AAgCF,iBAAS,cAAc;WA2NT,OAAO,IAA6B;;uBATrB,GAAG;uBACH,GAAG;;;;EAa/B;AA4BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
import { defineComponent as B, inject as E, computed as A, onMounted as H, createBlock as r, openBlock as u, unref as o, withCtx as n, createVNode as t, renderSlot as I, createElementVNode as f, createCommentVNode as d, createTextVNode as c, toDisplayString as s } from "vue";
|
|
2
|
-
import { useNavState as U } from "../../../hooks/useNavState.js";
|
|
3
|
-
import w from "./Description.vue.js";
|
|
4
|
-
import { OPENAPI_VERSION_SYMBOL as M } from "../../../features/download-link/openapi-version-symbol.js";
|
|
5
|
-
import P from "../../Section/SectionContainer.vue.js";
|
|
6
|
-
import R from "../../Section/Section.vue.js";
|
|
7
|
-
import { DEFAULT_INTRODUCTION_SLUG as b } from "../../../features/traverse-schema/helpers/traverse-description.js";
|
|
8
|
-
import j from "../../Section/SectionContent.vue.js";
|
|
9
|
-
import D from "../../Badge/Badge.vue.js";
|
|
10
|
-
import z from "../../Section/SectionHeader.vue.js";
|
|
11
|
-
import F from "../../Section/SectionHeaderTag.vue.js";
|
|
12
|
-
import G from "../../LinkList/LinkList.vue.js";
|
|
13
|
-
import Y from "../../../features/external-docs/ExternalDocs.vue.js";
|
|
14
|
-
import q from "../../../features/info-object/Contact.vue.js";
|
|
15
|
-
import J from "../../../features/info-object/License.vue.js";
|
|
16
|
-
import K from "../../../features/info-object/TermsOfService.vue.js";
|
|
17
|
-
import Q from "../../Section/SectionColumns.vue.js";
|
|
18
|
-
import V from "../../Section/SectionColumn.vue.js";
|
|
19
|
-
import W from "../../../features/download-link/DownloadLink.vue.js";
|
|
20
|
-
import _ from "../../../features/specification-extension/SpecificationExtension.vue.js";
|
|
21
|
-
const X = { class: "flex gap-1.5" }, Z = { class: "links" }, x = { class: "sticky-cards" }, $e = /* @__PURE__ */ B({
|
|
22
|
-
__name: "IntroductionSection",
|
|
23
|
-
props: {
|
|
24
|
-
document: {},
|
|
25
|
-
config: {}
|
|
26
|
-
},
|
|
27
|
-
setup(l) {
|
|
28
|
-
const { getHeadingId: T } = U(), v = E(M), p = A(() => {
|
|
29
|
-
var e, m;
|
|
30
|
-
return typeof ((e = l.document.info) == null ? void 0 : e.version) == "string" ? l.document.info.version.toString().match(/^\d/) ? `v${l.document.info.version}` : l.document.info.version : typeof ((m = l.document.info) == null ? void 0 : m.version) == "number" ? `v${l.document.info.version}` : void 0;
|
|
31
|
-
});
|
|
32
|
-
return H(() => {
|
|
33
|
-
var e, m;
|
|
34
|
-
return (m = (e = l.config) == null ? void 0 : e.onLoaded) == null ? void 0 : m.call(e);
|
|
35
|
-
}), (e, m) => (u(), r(o(P), null, {
|
|
36
|
-
default: n(() => [
|
|
37
|
-
t(o(R), {
|
|
38
|
-
class: "introduction-section z-1 gap-12",
|
|
39
|
-
id: o(T)({
|
|
40
|
-
slug: o(b),
|
|
41
|
-
depth: 1,
|
|
42
|
-
value: "Introduction"
|
|
43
|
-
})
|
|
44
|
-
}, {
|
|
45
|
-
default: n(() => {
|
|
46
|
-
var g, S, k, y, $;
|
|
47
|
-
return [
|
|
48
|
-
t(o(j), {
|
|
49
|
-
loading: ((g = e.config) == null ? void 0 : g.isLoading) ?? (!((k = (S = e.document) == null ? void 0 : S.info) != null && k.description) && !(($ = (y = e.document) == null ? void 0 : y.info) != null && $.title))
|
|
50
|
-
}, {
|
|
51
|
-
default: n(() => {
|
|
52
|
-
var N;
|
|
53
|
-
return [
|
|
54
|
-
f("div", X, [
|
|
55
|
-
p.value ? (u(), r(o(D), { key: 0 }, {
|
|
56
|
-
default: n(() => [
|
|
57
|
-
c(s(p.value), 1)
|
|
58
|
-
]),
|
|
59
|
-
_: 1
|
|
60
|
-
})) : d("", !0),
|
|
61
|
-
o(v) ? (u(), r(o(D), { key: 1 }, {
|
|
62
|
-
default: n(() => [
|
|
63
|
-
c("OAS " + s(o(v)), 1)
|
|
64
|
-
]),
|
|
65
|
-
_: 1
|
|
66
|
-
})) : d("", !0)
|
|
67
|
-
]),
|
|
68
|
-
t(o(z), {
|
|
69
|
-
loading: !((N = e.document.info) != null && N.title),
|
|
70
|
-
tight: ""
|
|
71
|
-
}, {
|
|
72
|
-
links: n(() => [
|
|
73
|
-
t(o(G), null, {
|
|
74
|
-
default: n(() => {
|
|
75
|
-
var i, a, h, C, L, O;
|
|
76
|
-
return [
|
|
77
|
-
t(o(Y), {
|
|
78
|
-
value: e.document.externalDocs
|
|
79
|
-
}, null, 8, ["value"]),
|
|
80
|
-
(i = e.document.info) != null && i.contact ? (u(), r(o(q), {
|
|
81
|
-
key: 0,
|
|
82
|
-
value: (a = e.document.info) == null ? void 0 : a.contact
|
|
83
|
-
}, null, 8, ["value"])) : d("", !0),
|
|
84
|
-
(h = e.document.info) != null && h.license ? (u(), r(o(J), {
|
|
85
|
-
key: 1,
|
|
86
|
-
value: (C = e.document.info) == null ? void 0 : C.license
|
|
87
|
-
}, null, 8, ["value"])) : d("", !0),
|
|
88
|
-
(L = e.document.info) != null && L.termsOfService ? (u(), r(o(K), {
|
|
89
|
-
key: 2,
|
|
90
|
-
value: (O = e.document.info) == null ? void 0 : O.termsOfService
|
|
91
|
-
}, null, 8, ["value"])) : d("", !0)
|
|
92
|
-
];
|
|
93
|
-
}),
|
|
94
|
-
_: 1
|
|
95
|
-
})
|
|
96
|
-
]),
|
|
97
|
-
default: n(() => [
|
|
98
|
-
t(o(F), { level: 1 }, {
|
|
99
|
-
default: n(() => {
|
|
100
|
-
var i;
|
|
101
|
-
return [
|
|
102
|
-
c(s((i = e.document.info) == null ? void 0 : i.title), 1)
|
|
103
|
-
];
|
|
104
|
-
}),
|
|
105
|
-
_: 1
|
|
106
|
-
})
|
|
107
|
-
]),
|
|
108
|
-
_: 1
|
|
109
|
-
}, 8, ["loading"]),
|
|
110
|
-
t(o(Q), null, {
|
|
111
|
-
default: n(() => [
|
|
112
|
-
t(o(V), null, {
|
|
113
|
-
default: n(() => {
|
|
114
|
-
var i, a;
|
|
115
|
-
return [
|
|
116
|
-
f("div", Z, [
|
|
117
|
-
t(o(W), {
|
|
118
|
-
title: (i = e.document.info) == null ? void 0 : i.title
|
|
119
|
-
}, null, 8, ["title"])
|
|
120
|
-
]),
|
|
121
|
-
t(w, {
|
|
122
|
-
value: (a = e.document.info) == null ? void 0 : a.description
|
|
123
|
-
}, null, 8, ["value"])
|
|
124
|
-
];
|
|
125
|
-
}),
|
|
126
|
-
_: 1
|
|
127
|
-
}),
|
|
128
|
-
e.$slots.aside ? (u(), r(o(V), { key: 0 }, {
|
|
129
|
-
default: n(() => [
|
|
130
|
-
f("div", x, [
|
|
131
|
-
I(e.$slots, "aside", {}, void 0, !0)
|
|
132
|
-
])
|
|
133
|
-
]),
|
|
134
|
-
_: 3
|
|
135
|
-
})) : d("", !0)
|
|
136
|
-
]),
|
|
137
|
-
_: 3
|
|
138
|
-
}),
|
|
139
|
-
t(o(_), { value: e.document }, null, 8, ["value"]),
|
|
140
|
-
t(o(_), {
|
|
141
|
-
value: e.document.info
|
|
142
|
-
}, null, 8, ["value"])
|
|
143
|
-
];
|
|
144
|
-
}),
|
|
145
|
-
_: 3
|
|
146
|
-
}, 8, ["loading"]),
|
|
147
|
-
I(e.$slots, "after", {}, void 0, !0)
|
|
148
|
-
];
|
|
149
|
-
}),
|
|
150
|
-
_: 3
|
|
151
|
-
}, 8, ["id"])
|
|
152
|
-
]),
|
|
153
|
-
_: 3
|
|
154
|
-
}));
|
|
155
|
-
}
|
|
156
|
-
});
|
|
157
|
-
export {
|
|
158
|
-
$e as default
|
|
159
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Introduction/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,oBAAoB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BaseUrl.vue.d.ts","sourceRoot":"","sources":["../../../src/features/base-url/BaseUrl.vue"],"names":[],"mappings":"AAyEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AAOzE,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAC;;AAyJF,wBAMG"}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { defineComponent as k, useId as C, createElementBlock as V, openBlock as a, Fragment as y, createElementVNode as u, createVNode as B, createBlock as m, createCommentVNode as b, normalizeClass as h, unref as t } from "vue";
|
|
2
|
-
import { ServerSelector as N, ServerVariablesForm as U } from "@scalar/api-client/components/Server";
|
|
3
|
-
import { useWorkspace as E } from "@scalar/api-client/store";
|
|
4
|
-
import { ScalarMarkdown as F } from "@scalar/components";
|
|
5
|
-
import { useConfig as M } from "../../hooks/useConfig.js";
|
|
6
|
-
const w = ["id"], A = /* @__PURE__ */ k({
|
|
7
|
-
__name: "BaseUrl",
|
|
8
|
-
props: {
|
|
9
|
-
collection: {},
|
|
10
|
-
server: {}
|
|
11
|
-
},
|
|
12
|
-
setup(l) {
|
|
13
|
-
const { serverMutators: p } = E(), s = C(), f = M(), g = (e, o) => {
|
|
14
|
-
if (!l.server)
|
|
15
|
-
return;
|
|
16
|
-
const r = l.server.variables || {};
|
|
17
|
-
r[e] = { ...r[e], default: o }, p.edit(l.server.uid, "variables", r);
|
|
18
|
-
}, S = (e) => {
|
|
19
|
-
var o, r;
|
|
20
|
-
(r = (o = f.value).onServerChange) == null || r.call(o, e);
|
|
21
|
-
};
|
|
22
|
-
return (e, o) => {
|
|
23
|
-
var r, n, i, d, v, c;
|
|
24
|
-
return a(), V(y, null, [
|
|
25
|
-
o[0] || (o[0] = u("label", { class: "bg-b-2 flex h-8 items-center rounded-t-lg border border-b-0 px-3 py-2.5 font-medium" }, " Server ", -1)),
|
|
26
|
-
u("div", {
|
|
27
|
-
id: t(s),
|
|
28
|
-
class: h(["border", {
|
|
29
|
-
"rounded-b-lg": !((r = e.server) != null && r.description) && !((n = e.server) != null && n.variables)
|
|
30
|
-
}])
|
|
31
|
-
}, [
|
|
32
|
-
(d = (i = e.collection) == null ? void 0 : i.servers) != null && d.length ? (a(), m(t(N), {
|
|
33
|
-
key: 0,
|
|
34
|
-
collection: e.collection,
|
|
35
|
-
server: e.server,
|
|
36
|
-
target: t(s),
|
|
37
|
-
onUpdateServer: S
|
|
38
|
-
}, null, 8, ["collection", "server", "target"])) : b("", !0)
|
|
39
|
-
], 10, w),
|
|
40
|
-
B(t(U), {
|
|
41
|
-
variables: (v = e.server) == null ? void 0 : v.variables,
|
|
42
|
-
layout: "reference",
|
|
43
|
-
"onUpdate:variable": g
|
|
44
|
-
}, null, 8, ["variables"]),
|
|
45
|
-
(c = e.server) != null && c.description ? (a(), m(t(F), {
|
|
46
|
-
key: 0,
|
|
47
|
-
class: "text-c-3 rounded-b-lg border border-t-0 px-3 py-1.5",
|
|
48
|
-
value: e.server.description
|
|
49
|
-
}, null, 8, ["value"])) : b("", !0)
|
|
50
|
-
], 64);
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
export {
|
|
55
|
-
A as default
|
|
56
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/base-url/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,eAAe,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DownloadLink.vue.d.ts","sourceRoot":"","sources":["../../../src/features/download-link/DownloadLink.vue"],"names":[],"mappings":"AAyLA,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;;AAqJF,wBAMG"}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { defineComponent as T, computed as B, createElementBlock as t, createCommentVNode as l, unref as n, openBlock as d, normalizeClass as N, withModifiers as w, createElementVNode as y, createVNode as g, withCtx as D, createTextVNode as b } from "vue";
|
|
2
|
-
import V from "github-slugger";
|
|
3
|
-
import c from "../../components/Badge/Badge.vue.js";
|
|
4
|
-
import { useConfig as j } from "../../hooks/useConfig.js";
|
|
5
|
-
import { downloadEventBus as E } from "../../libs/download.js";
|
|
6
|
-
const $ = /* @__PURE__ */ T({
|
|
7
|
-
__name: "DownloadLink",
|
|
8
|
-
props: {
|
|
9
|
-
title: {}
|
|
10
|
-
},
|
|
11
|
-
setup(v) {
|
|
12
|
-
const e = j(), k = new V(), x = B(() => k.slug(v.title ?? "")), r = (a) => {
|
|
13
|
-
E.emit({ id: "", filename: x.value, format: a });
|
|
14
|
-
};
|
|
15
|
-
return (a, o) => {
|
|
16
|
-
var u, s, i, m, p, f;
|
|
17
|
-
return ((u = n(e)) == null ? void 0 : u.documentDownloadType) !== "none" ? (d(), t("div", {
|
|
18
|
-
key: 0,
|
|
19
|
-
class: N([{
|
|
20
|
-
"download-both": ((s = n(e)) == null ? void 0 : s.documentDownloadType) === "both"
|
|
21
|
-
}, "download-container group"])
|
|
22
|
-
}, [
|
|
23
|
-
((i = n(e)) == null ? void 0 : i.documentDownloadType) === "json" || ((m = n(e)) == null ? void 0 : m.documentDownloadType) === "both" ? (d(), t("button", {
|
|
24
|
-
key: 0,
|
|
25
|
-
type: "button",
|
|
26
|
-
class: "download-button",
|
|
27
|
-
onClick: o[0] || (o[0] = w((C) => r("json"), ["prevent"])),
|
|
28
|
-
variant: "ghost"
|
|
29
|
-
}, [
|
|
30
|
-
o[3] || (o[3] = y("span", null, " Download OpenAPI Document ", -1)),
|
|
31
|
-
g(c, { class: "extension hidden group-hover:flex" }, {
|
|
32
|
-
default: D(() => o[2] || (o[2] = [
|
|
33
|
-
b("json")
|
|
34
|
-
])),
|
|
35
|
-
_: 1,
|
|
36
|
-
__: [2]
|
|
37
|
-
})
|
|
38
|
-
])) : l("", !0),
|
|
39
|
-
((p = n(e)) == null ? void 0 : p.documentDownloadType) === "yaml" || ((f = n(e)) == null ? void 0 : f.documentDownloadType) === "both" ? (d(), t("button", {
|
|
40
|
-
key: 1,
|
|
41
|
-
type: "button",
|
|
42
|
-
class: "download-button",
|
|
43
|
-
onClick: o[1] || (o[1] = w((C) => r("yaml"), ["prevent"])),
|
|
44
|
-
variant: "ghost"
|
|
45
|
-
}, [
|
|
46
|
-
o[5] || (o[5] = y("span", null, " Download OpenAPI Document ", -1)),
|
|
47
|
-
g(c, { class: "extension hidden group-hover:flex" }, {
|
|
48
|
-
default: D(() => o[4] || (o[4] = [
|
|
49
|
-
b("yaml")
|
|
50
|
-
])),
|
|
51
|
-
_: 1,
|
|
52
|
-
__: [4]
|
|
53
|
-
})
|
|
54
|
-
])) : l("", !0)
|
|
55
|
-
], 2)) : l("", !0);
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
export {
|
|
60
|
-
$ as default
|
|
61
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/download-link/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"openapi-version-symbol.d.ts","sourceRoot":"","sources":["../../../src/features/download-link/openapi-version-symbol.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB,eAA2B,CAAA"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import type { AvailableClients } from '@scalar/snippetz';
|
|
2
|
-
/**
|
|
3
|
-
* Event definitions for scalar blocks
|
|
4
|
-
*
|
|
5
|
-
* Events can have a typed payload using the `data` property.
|
|
6
|
-
*/
|
|
7
|
-
export type ApiReferenceEvents = {
|
|
8
|
-
'scalar-update-sidebar': {
|
|
9
|
-
detail: {
|
|
10
|
-
value: boolean;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
'scalar-update-dark-mode': {
|
|
14
|
-
detail: {
|
|
15
|
-
value: boolean;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
'scalar-update-active-document': {
|
|
19
|
-
detail: {
|
|
20
|
-
value: string;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
/** Controls the selected client in our code example blocks */
|
|
24
|
-
'scalar-update-selected-client': {
|
|
25
|
-
detail: AvailableClients[number];
|
|
26
|
-
};
|
|
27
|
-
/** Controls the selected example key in our operation blocks + children */
|
|
28
|
-
'scalar-update-selected-example': {
|
|
29
|
-
detail: string;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
export type ApiReferenceEvent = Prettify<keyof ApiReferenceEvents>;
|
|
33
|
-
/**
|
|
34
|
-
* Scalar blocks will use vanilla events to allow more flexibility in integrations
|
|
35
|
-
*
|
|
36
|
-
* Event can include typed payloads using the `data` property. A target for the dispatch must be provided.
|
|
37
|
-
*/
|
|
38
|
-
export declare function emitCustomEvent<E extends ApiReferenceEvent>(target: HTMLElement, event: E, detail: ApiReferenceEvents[E]['detail']): void;
|
|
39
|
-
/** Type helper for expanding complex types */
|
|
40
|
-
type Prettify<T> = {
|
|
41
|
-
[K in keyof T]: T[K];
|
|
42
|
-
} & {};
|
|
43
|
-
export {};
|
|
44
|
-
//# sourceMappingURL=definitions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../../../src/v2/events/definitions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAExD;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,uBAAuB,EAAE;QACvB,MAAM,EAAE;YACN,KAAK,EAAE,OAAO,CAAA;SACf,CAAA;KACF,CAAA;IACD,yBAAyB,EAAE;QACzB,MAAM,EAAE;YACN,KAAK,EAAE,OAAO,CAAA;SACf,CAAA;KACF,CAAA;IACD,+BAA+B,EAAE;QAC/B,MAAM,EAAE;YACN,KAAK,EAAE,MAAM,CAAA;SACd,CAAA;KACF,CAAA;IACD,8DAA8D;IAC9D,+BAA+B,EAAE;QAC/B,MAAM,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;KACjC,CAAA;IACD,2EAA2E;IAC3E,gCAAgC,EAAE;QAChC,MAAM,EAAE,MAAM,CAAA;KACf,CAAA;CACF,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG,QAAQ,CAAC,MAAM,kBAAkB,CAAC,CAAA;AAElE;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,CAAC,SAAS,iBAAiB,EACzD,MAAM,EAAE,WAAW,EACnB,KAAK,EAAE,CAAC,EACR,MAAM,EAAE,kBAAkB,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,QAKxC;AAED,8CAA8C;AAC9C,KAAK,QAAQ,CAAC,CAAC,IAAI;KAChB,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACrB,GAAG,EAAE,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/v2/events/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,iBAAiB,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAChG,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { ApiReferenceEvent, ApiReferenceEvents } from './definitions.js';
|
|
2
|
-
import { type Ref } from 'vue';
|
|
3
|
-
/**
|
|
4
|
-
* Vue wrapper for attaching and removing event listeners
|
|
5
|
-
*
|
|
6
|
-
*/
|
|
7
|
-
export declare function onCustomEvent<E extends ApiReferenceEvent>(el: Ref<HTMLElement | null>, event: E, handler: (event: ApiReferenceEvents[E]) => void): void;
|
|
8
|
-
//# sourceMappingURL=listeners.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"listeners.d.ts","sourceRoot":"","sources":["../../../src/v2/events/listeners.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;AAC1E,OAAO,EAAmB,KAAK,GAAG,EAAS,MAAM,KAAK,CAAA;AAEtD;;;GAGG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS,iBAAiB,EACvD,EAAE,EAAE,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,EAC3B,KAAK,EAAE,CAAC,EACR,OAAO,EAAE,CAAC,KAAK,EAAE,kBAAkB,CAAC,CAAC,CAAC,KAAK,IAAI,QAsBhD"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { watch as o, onBeforeUnmount as u } from "vue";
|
|
2
|
-
function m(t, e, r) {
|
|
3
|
-
o(
|
|
4
|
-
() => t.value,
|
|
5
|
-
(n) => {
|
|
6
|
-
n && n.addEventListener(e, r);
|
|
7
|
-
},
|
|
8
|
-
{ immediate: !0 }
|
|
9
|
-
), u(() => {
|
|
10
|
-
t.value && t.value.removeEventListener(e, r);
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
export {
|
|
14
|
-
m as onCustomEvent
|
|
15
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{features/download-link → v2/blocks/scalar-info-block/components}/DownloadLink.vue3.js
RENAMED
|
File without changes
|