@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
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { ExternalDocumentationObject, InfoObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
oasVersion?: string;
|
|
4
|
+
info: InfoObject;
|
|
5
|
+
externalDocs?: ExternalDocumentationObject;
|
|
6
|
+
documentExtensions?: Record<string, unknown>;
|
|
7
|
+
infoExtensions?: Record<string, unknown>;
|
|
8
|
+
isLoading?: boolean;
|
|
9
|
+
getOriginalDocument: () => string;
|
|
10
|
+
onLoaded?: () => void;
|
|
11
|
+
id?: string;
|
|
12
|
+
};
|
|
13
|
+
declare var __VLS_49: {}, __VLS_59: {};
|
|
14
|
+
type __VLS_Slots = {} & {
|
|
15
|
+
aside?: (props: typeof __VLS_49) => any;
|
|
16
|
+
} & {
|
|
17
|
+
after?: (props: typeof __VLS_59) => any;
|
|
18
|
+
};
|
|
19
|
+
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>;
|
|
20
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=IntroductionLayout.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IntroductionLayout.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-info-block/components/IntroductionLayout.vue"],"names":[],"mappings":"AA+FA,OAAO,KAAK,EACV,2BAA2B,EAC3B,UAAU,EACX,MAAM,8DAA8D,CAAA;AAoBrE,KAAK,WAAW,GAAG;IACjB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,IAAI,EAAE,UAAU,CAAA;IAChB,YAAY,CAAC,EAAE,2BAA2B,CAAA;IAC1C,kBAAkB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC5C,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACxC,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,mBAAmB,EAAE,MAAM,MAAM,CAAA;IACjC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IACrB,EAAE,CAAC,EAAE,MAAM,CAAA;CACZ,CAAC;AA4LF,QAAA,IAAI,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AAC/C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC3C;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAgC9C,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"}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { defineComponent as D, onMounted as S, createBlock as m, openBlock as u, unref as n, withCtx as i, createVNode as e, renderSlot as c, createElementVNode as p, createTextVNode as V, toDisplayString as y, createCommentVNode as C } from "vue";
|
|
2
|
+
import $ from "./DownloadLink.vue.js";
|
|
3
|
+
import k from "./InfoDescription.vue.js";
|
|
4
|
+
import L from "./InfoLinks.vue.js";
|
|
5
|
+
import h from "./InfoVersion.vue.js";
|
|
6
|
+
import E from "./OpenApiVersion.vue.js";
|
|
7
|
+
import N from "../../../../components/Section/SectionContainer.vue.js";
|
|
8
|
+
import O from "../../../../components/Section/Section.vue.js";
|
|
9
|
+
import B from "../../../../components/Section/SectionContent.vue.js";
|
|
10
|
+
import w from "../../../../components/Section/SectionHeader.vue.js";
|
|
11
|
+
import F from "../../../../components/Section/SectionHeaderTag.vue.js";
|
|
12
|
+
import H from "../../../../components/Section/SectionColumns.vue.js";
|
|
13
|
+
import g from "../../../../components/Section/SectionColumn.vue.js";
|
|
14
|
+
import v from "../../../../features/specification-extension/SpecificationExtension.vue2.js";
|
|
15
|
+
const I = { class: "flex gap-1.5" }, T = { class: "sticky-cards" }, Y = /* @__PURE__ */ D({
|
|
16
|
+
__name: "IntroductionLayout",
|
|
17
|
+
props: {
|
|
18
|
+
oasVersion: {},
|
|
19
|
+
info: {},
|
|
20
|
+
externalDocs: {},
|
|
21
|
+
documentExtensions: {},
|
|
22
|
+
infoExtensions: {},
|
|
23
|
+
isLoading: { type: Boolean },
|
|
24
|
+
getOriginalDocument: { type: Function },
|
|
25
|
+
onLoaded: { type: Function },
|
|
26
|
+
id: {}
|
|
27
|
+
},
|
|
28
|
+
setup(l) {
|
|
29
|
+
return S(() => {
|
|
30
|
+
var o;
|
|
31
|
+
return (o = l.onLoaded) == null ? void 0 : o.call(l);
|
|
32
|
+
}), (o, z) => (u(), m(n(N), null, {
|
|
33
|
+
default: i(() => [
|
|
34
|
+
e(n(O), {
|
|
35
|
+
id: o.id,
|
|
36
|
+
class: "introduction-section z-1 gap-12"
|
|
37
|
+
}, {
|
|
38
|
+
default: i(() => {
|
|
39
|
+
var r, a;
|
|
40
|
+
return [
|
|
41
|
+
e(n(B), {
|
|
42
|
+
loading: o.isLoading ?? (!((r = o.info) != null && r.description) && !((a = o.info) != null && a.title))
|
|
43
|
+
}, {
|
|
44
|
+
default: i(() => {
|
|
45
|
+
var s, d;
|
|
46
|
+
return [
|
|
47
|
+
p("div", I, [
|
|
48
|
+
e(h, {
|
|
49
|
+
version: (s = o.info) == null ? void 0 : s.version
|
|
50
|
+
}, null, 8, ["version"]),
|
|
51
|
+
e(E, { oasVersion: o.oasVersion }, null, 8, ["oasVersion"])
|
|
52
|
+
]),
|
|
53
|
+
e(n(w), {
|
|
54
|
+
loading: !((d = o.info) != null && d.title),
|
|
55
|
+
tight: ""
|
|
56
|
+
}, {
|
|
57
|
+
links: i(() => [
|
|
58
|
+
e(L, {
|
|
59
|
+
externalDocs: o.externalDocs,
|
|
60
|
+
info: o.info
|
|
61
|
+
}, null, 8, ["externalDocs", "info"])
|
|
62
|
+
]),
|
|
63
|
+
default: i(() => [
|
|
64
|
+
e(n(F), { level: 1 }, {
|
|
65
|
+
default: i(() => {
|
|
66
|
+
var t;
|
|
67
|
+
return [
|
|
68
|
+
V(y((t = o.info) == null ? void 0 : t.title), 1)
|
|
69
|
+
];
|
|
70
|
+
}),
|
|
71
|
+
_: 1
|
|
72
|
+
})
|
|
73
|
+
]),
|
|
74
|
+
_: 1
|
|
75
|
+
}, 8, ["loading"]),
|
|
76
|
+
e(n(H), null, {
|
|
77
|
+
default: i(() => [
|
|
78
|
+
e(n(g), null, {
|
|
79
|
+
default: i(() => {
|
|
80
|
+
var t, f;
|
|
81
|
+
return [
|
|
82
|
+
e($, {
|
|
83
|
+
getOriginalDocument: o.getOriginalDocument,
|
|
84
|
+
title: (t = o.info) == null ? void 0 : t.title
|
|
85
|
+
}, null, 8, ["getOriginalDocument", "title"]),
|
|
86
|
+
e(k, {
|
|
87
|
+
description: (f = o.info) == null ? void 0 : f.description
|
|
88
|
+
}, null, 8, ["description"])
|
|
89
|
+
];
|
|
90
|
+
}),
|
|
91
|
+
_: 1
|
|
92
|
+
}),
|
|
93
|
+
o.$slots.aside ? (u(), m(n(g), { key: 0 }, {
|
|
94
|
+
default: i(() => [
|
|
95
|
+
p("div", T, [
|
|
96
|
+
c(o.$slots, "aside", {}, void 0, !0)
|
|
97
|
+
])
|
|
98
|
+
]),
|
|
99
|
+
_: 3
|
|
100
|
+
})) : C("", !0)
|
|
101
|
+
]),
|
|
102
|
+
_: 3
|
|
103
|
+
}),
|
|
104
|
+
e(n(v), { value: o.documentExtensions }, null, 8, ["value"]),
|
|
105
|
+
e(n(v), { value: o.infoExtensions }, null, 8, ["value"])
|
|
106
|
+
];
|
|
107
|
+
}),
|
|
108
|
+
_: 3
|
|
109
|
+
}, 8, ["loading"]),
|
|
110
|
+
c(o.$slots, "after", {}, void 0, !0)
|
|
111
|
+
];
|
|
112
|
+
}),
|
|
113
|
+
_: 3
|
|
114
|
+
}, 8, ["id"])
|
|
115
|
+
]),
|
|
116
|
+
_: 3
|
|
117
|
+
}));
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
export {
|
|
121
|
+
Y as default
|
|
122
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
|
-
|
|
2
|
+
oasVersion?: string;
|
|
3
3
|
};
|
|
4
4
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
5
5
|
export default _default;
|
|
6
|
-
//# sourceMappingURL=
|
|
6
|
+
//# sourceMappingURL=OpenApiVersion.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OpenApiVersion.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-info-block/components/OpenApiVersion.vue"],"names":[],"mappings":"AAeA,KAAK,WAAW,GAAG;IACjB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,CAAC;;AA4CF,wBAMG"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { defineComponent as o, createBlock as r, createCommentVNode as t, openBlock as n, unref as a, withCtx as s, createTextVNode as p, toDisplayString as i } from "vue";
|
|
2
|
+
import m from "../../../../components/Badge/Badge.vue.js";
|
|
3
|
+
const d = /* @__PURE__ */ o({
|
|
4
|
+
__name: "OpenApiVersion",
|
|
5
|
+
props: {
|
|
6
|
+
oasVersion: {}
|
|
7
|
+
},
|
|
8
|
+
setup(c) {
|
|
9
|
+
return (e, f) => e.oasVersion ? (n(), r(a(m), { key: 0 }, {
|
|
10
|
+
default: s(() => [
|
|
11
|
+
p("OAS " + i(e.oasVersion), 1)
|
|
12
|
+
]),
|
|
13
|
+
_: 1
|
|
14
|
+
})) : t("", !0);
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
export {
|
|
18
|
+
d as default
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2/blocks/scalar-info-block/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,4BAA4B,CAAA;AACjE,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,uCAAuC,CAAA"}
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
import type { MediaTypeObject } from '@scalar/workspace-store/schemas/v3.1/strict/
|
|
1
|
+
import type { MediaTypeObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
2
2
|
type __VLS_Props = {
|
|
3
|
-
examples
|
|
3
|
+
examples?: MediaTypeObject['examples'];
|
|
4
4
|
};
|
|
5
|
-
type __VLS_PublicProps = {
|
|
5
|
+
type __VLS_PublicProps = __VLS_Props & {
|
|
6
6
|
modelValue: string;
|
|
7
|
-
}
|
|
8
|
-
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
9
|
-
getLabel: (key: string | null) => string;
|
|
10
|
-
selectedExampleKey: import("vue").ModelRef<string, string, string, string>;
|
|
11
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
};
|
|
8
|
+
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
9
|
"update:modelValue": (value: string) => any;
|
|
13
10
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
14
11
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExamplePicker.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ExamplePicker.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue"],"names":[],"mappings":"AA4DA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAA;AAGnG,KAAK,WAAW,GAAG;IACjB,QAAQ,CAAC,EAAE,eAAe,CAAC,UAAU,CAAC,CAAA;CACvC,CAAC;AAwBF,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,UAAU,EAAE,MAAM,CAAC;CAClB,CAAC;;;;;;AA0GF,wBAOG"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import { ScalarIconCaretDown as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as u, mergeModels as c, useModel as p, computed as i, createBlock as f, openBlock as x, unref as o, withCtx as m, createVNode as d, createElementVNode as w, toDisplayString as V } from "vue";
|
|
2
|
+
import { ScalarListbox as b, ScalarButton as g } from "@scalar/components";
|
|
3
|
+
import { ScalarIconCaretDown as h } from "@scalar/icons";
|
|
4
|
+
const v = { class: "min-w-0 flex-1 truncate" }, k = /* @__PURE__ */ u({
|
|
5
5
|
__name: "ExamplePicker",
|
|
6
|
-
props: /* @__PURE__ */
|
|
7
|
-
examples: {}
|
|
6
|
+
props: /* @__PURE__ */ c({
|
|
7
|
+
examples: { default: () => ({}) }
|
|
8
8
|
}, {
|
|
9
9
|
modelValue: {
|
|
10
10
|
required: !0
|
|
@@ -12,61 +12,47 @@ const D = { class: "overflow-hidden text-ellipsis" }, N = /* @__PURE__ */ h({
|
|
|
12
12
|
modelModifiers: {}
|
|
13
13
|
}),
|
|
14
14
|
emits: ["update:modelValue"],
|
|
15
|
-
setup(
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
a.value === l ? "bg-c-accent text-b-1" : "shadow-border text-transparent"
|
|
36
|
-
])
|
|
37
|
-
}, [
|
|
38
|
-
i(t(V), {
|
|
39
|
-
class: "size-2.5",
|
|
40
|
-
icon: "Checkmark",
|
|
41
|
-
thickness: "3"
|
|
42
|
-
})
|
|
43
|
-
], 2),
|
|
44
|
-
m("span", D, p(o(l)), 1)
|
|
45
|
-
]),
|
|
46
|
-
_: 2
|
|
47
|
-
}, 1032, ["onClick"]))), 128))
|
|
48
|
-
]),
|
|
49
|
-
default: r(() => [
|
|
50
|
-
i(t(k), {
|
|
15
|
+
setup(s) {
|
|
16
|
+
const n = p(s, "modelValue"), r = i(
|
|
17
|
+
() => Object.entries(s.examples).map(([e, t]) => ({
|
|
18
|
+
id: e,
|
|
19
|
+
label: (t == null ? void 0 : t.summary) ?? e
|
|
20
|
+
}))
|
|
21
|
+
), l = i({
|
|
22
|
+
get: () => r.value.find(({ id: e }) => e === n.value),
|
|
23
|
+
set: (e) => n.value = (e == null ? void 0 : e.id) ?? ""
|
|
24
|
+
});
|
|
25
|
+
return (e, t) => (x(), f(o(b), {
|
|
26
|
+
modelValue: l.value,
|
|
27
|
+
"onUpdate:modelValue": t[0] || (t[0] = (a) => l.value = a),
|
|
28
|
+
class: "w-fit min-w-32",
|
|
29
|
+
options: r.value,
|
|
30
|
+
placement: "bottom-start"
|
|
31
|
+
}, {
|
|
32
|
+
default: m(() => [
|
|
33
|
+
d(o(g), {
|
|
34
|
+
class: "text-c-2 hover:text-c-1 flex h-full w-fit min-w-0 gap-1.5 px-1.5 py-0.75 text-base font-normal",
|
|
51
35
|
"data-testid": "example-picker",
|
|
52
|
-
class: "text-c-2 hover:text-c-1 flex h-full w-fit gap-1.5 px-1.5 py-0.75 text-base font-normal",
|
|
53
36
|
fullWidth: "",
|
|
54
37
|
variant: "ghost"
|
|
55
38
|
}, {
|
|
56
|
-
default:
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
39
|
+
default: m(() => {
|
|
40
|
+
var a;
|
|
41
|
+
return [
|
|
42
|
+
w("div", v, V(((a = l.value) == null ? void 0 : a.label) ?? "Select an example"), 1),
|
|
43
|
+
d(o(h), {
|
|
44
|
+
class: "ui-open:rotate-180 mt-0.25 size-3 transition-transform duration-100",
|
|
45
|
+
weight: "bold"
|
|
46
|
+
})
|
|
47
|
+
];
|
|
48
|
+
}),
|
|
63
49
|
_: 1
|
|
64
50
|
})
|
|
65
51
|
]),
|
|
66
52
|
_: 1
|
|
67
|
-
}));
|
|
53
|
+
}, 8, ["modelValue", "options"]));
|
|
68
54
|
}
|
|
69
55
|
});
|
|
70
56
|
export {
|
|
71
|
-
|
|
57
|
+
k as default
|
|
72
58
|
};
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import type { HttpMethod as HttpMethodType } from '@scalar/helpers/http/http-methods';
|
|
2
2
|
import { type AvailableClients } from '@scalar/snippetz';
|
|
3
|
-
import type { OperationObject } from '@scalar/workspace-store/schemas/v3.1/strict/
|
|
4
|
-
import type { SecuritySchemeObject } from '@scalar/workspace-store/schemas/v3.1/strict/security-scheme';
|
|
5
|
-
import type { ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/server';
|
|
3
|
+
import type { OperationObject, SecuritySchemeObject, ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
6
4
|
import type { ClientOptionGroup } from '../../../../v2/blocks/scalar-request-example-block/types';
|
|
7
5
|
export type RequestExampleProps = {
|
|
8
6
|
/**
|
|
@@ -54,6 +52,10 @@ export type RequestExampleProps = {
|
|
|
54
52
|
* A method to generate the label of the block, should return an html string
|
|
55
53
|
*/
|
|
56
54
|
generateLabel?: () => string;
|
|
55
|
+
/**
|
|
56
|
+
* If true, render this as a webhook request example
|
|
57
|
+
*/
|
|
58
|
+
isWebhook?: boolean;
|
|
57
59
|
};
|
|
58
60
|
/**
|
|
59
61
|
* Request Example
|
|
@@ -64,15 +66,12 @@ export type RequestExampleProps = {
|
|
|
64
66
|
* @event scalar-update-selected-client - Emitted when the selected client changes
|
|
65
67
|
* @event scalar-update-selected-example - Emitted when the selected example changes
|
|
66
68
|
*/
|
|
67
|
-
declare const _default:
|
|
68
|
-
header: () => unknown;
|
|
69
|
-
footer: () => unknown;
|
|
70
|
-
}> & {
|
|
69
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<RequestExampleProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<RequestExampleProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
71
70
|
header: () => unknown;
|
|
72
71
|
footer: () => unknown;
|
|
73
72
|
}>;
|
|
74
73
|
export default _default;
|
|
75
|
-
type
|
|
74
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
76
75
|
new (): {
|
|
77
76
|
$slots: S;
|
|
78
77
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestExample.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-request-example-block/components/RequestExample.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestExample.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-request-example-block/components/RequestExample.vue"],"names":[],"mappings":"AAicA,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAA;AAGrF,OAAO,EAAE,KAAK,gBAAgB,EAAiB,MAAM,kBAAkB,CAAA;AAGvE,OAAO,KAAK,EACV,eAAe,EACf,oBAAoB,EACpB,YAAY,EACb,MAAM,8DAA8D,CAAA;AASrE,OAAO,KAAK,EAEV,iBAAiB,EAClB,MAAM,gDAAgD,CAAA;AAKvD,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC;;;;OAIG;IACH,cAAc,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;IACzC;;OAEG;IACH,cAAc,CAAC,EAAE,YAAY,GAAG,SAAS,CAAA;IACzC;;;;;OAKG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB;;OAEG;IACH,eAAe,CAAC,EAAE,oBAAoB,EAAE,CAAA;IACxC;;OAEG;IACH,MAAM,EAAE,cAAc,CAAA;IACtB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ;;OAEG;IACH,SAAS,EAAE,eAAe,CAAA;IAC1B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,MAAM,CAAA;IAC5B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,CAAA;AAED;;;;;;;;GAQG;;YAkBO,MAAM,OAAO;YACb,MAAM,OAAO;;AAlBvB,wBAkiBC;AAOD,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./RequestExample.vue2.js";
|
|
2
2
|
import "./RequestExample.vue3.js";
|
|
3
3
|
import t from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-3d7424c4"]]);
|
|
5
5
|
export {
|
|
6
6
|
r as default
|
|
7
7
|
};
|