@scalar/api-reference 1.34.5 → 1.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +71 -0
- package/dist/browser/standalone.js +30859 -30766
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/Anchor/Anchor.vue.d.ts +6 -11
- package/dist/components/Anchor/Anchor.vue.d.ts.map +1 -1
- package/dist/components/Anchor/WithBreadcrumb.vue.d.ts +11 -13
- package/dist/components/Anchor/WithBreadcrumb.vue.d.ts.map +1 -1
- package/dist/components/ApiReference.vue.d.ts +14 -1
- package/dist/components/ApiReference.vue.d.ts.map +1 -1
- package/dist/components/ApiReference.vue.js +24 -10
- package/dist/components/ApiReferenceLayout.vue.d.ts +7 -31
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +2 -2
- package/dist/components/ApiReferenceLayout.vue2.js +179 -191
- package/dist/components/Badge/Badge.vue.d.ts +6 -11
- package/dist/components/Badge/Badge.vue.d.ts.map +1 -1
- package/dist/components/ClassicHeader.vue.d.ts +8 -12
- package/dist/components/ClassicHeader.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts +1 -3
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts +1 -1
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/featured-clients.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/index.d.ts +1 -1
- package/dist/components/Content/Content.vue.d.ts +9 -12
- package/dist/components/Content/Content.vue.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.js +180 -36
- package/dist/components/Content/IntroductionSection.vue.d.ts +18 -0
- package/dist/components/Content/IntroductionSection.vue.d.ts.map +1 -0
- package/dist/components/Content/IntroductionSection.vue.js +26 -0
- package/dist/components/Content/IntroductionSection.vue2.js +4 -0
- package/dist/components/Content/Models/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/ModernLayout.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/ModernLayout.vue.js +1 -1
- package/dist/components/Content/Models/ModernLayout.vue2.js +6 -6
- package/dist/components/Content/Operations/TraversedEntry.vue.d.ts.map +1 -1
- package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts +1 -5
- package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts.map +1 -1
- package/dist/components/Content/Operations/TraversedEntryContainer.vue.js +28 -35
- package/dist/components/Content/Operations/get-current-index.d.ts.map +1 -1
- package/dist/components/Content/Schema/RenderString.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/Schema.vue.js +2 -2
- package/dist/components/Content/Schema/Schema.vue2.js +84 -81
- package/dist/components/Content/Schema/SchemaComposition.vue.d.ts +1 -1
- package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.d.ts +1 -1
- package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaEnumValues.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts +3 -0
- package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaObjectProperties.vue.js +49 -41
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue2.js +1 -1
- package/dist/components/Content/Schema/SchemaPropertyDescription.vue.d.ts +6 -11
- package/dist/components/Content/Schema/SchemaPropertyDescription.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyDetail.vue.d.ts +10 -13
- package/dist/components/Content/Schema/SchemaPropertyDetail.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts +6 -11
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/get-schema-type.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/is-type-object.d.ts.map +1 -1
- package/dist/components/Content/Tags/ClassicLayout.vue.d.ts +6 -11
- package/dist/components/Content/Tags/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/components/Content/Tags/ModernLayout.vue.d.ts +5 -63
- package/dist/components/Content/Tags/ModernLayout.vue.d.ts.map +1 -1
- package/dist/components/Content/Tags/Tag.vue.d.ts +7 -11
- package/dist/components/Content/Tags/Tag.vue.d.ts.map +1 -1
- package/dist/components/Content/Tags/TagSection.vue.d.ts.map +1 -1
- package/dist/components/Content/Tags/TagSection.vue.js +1 -1
- package/dist/components/GettingStarted.vue.d.ts +1 -1
- package/dist/components/GettingStarted.vue.d.ts.map +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +5 -10
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
- package/dist/components/IntersectionObserver.vue.d.ts +5 -12
- package/dist/components/IntersectionObserver.vue.d.ts.map +1 -1
- package/dist/components/Lazy/Lazy.vue.d.ts +5 -10
- package/dist/components/Lazy/Lazy.vue.d.ts.map +1 -1
- package/dist/components/LinkList/LinkList.vue.d.ts +6 -13
- package/dist/components/LinkList/LinkList.vue.d.ts.map +1 -1
- package/dist/components/LoadingSkeleton.vue.d.ts.map +1 -1
- package/dist/components/MobileHeader.vue.d.ts +6 -11
- package/dist/components/MobileHeader.vue.d.ts.map +1 -1
- package/dist/components/OperationPath.vue.d.ts +1 -1
- package/dist/components/OperationPath.vue.d.ts.map +1 -1
- package/dist/components/OperationsList/OperationsList.vue.d.ts.map +1 -1
- package/dist/components/OperationsList/OperationsListItem.vue.d.ts +1 -1
- package/dist/components/OperationsList/OperationsListItem.vue.d.ts.map +1 -1
- package/dist/components/ScreenReader.vue.d.ts +7 -11
- package/dist/components/ScreenReader.vue.d.ts.map +1 -1
- package/dist/components/Section/CompactSection.vue.d.ts +8 -12
- package/dist/components/Section/CompactSection.vue.d.ts.map +1 -1
- package/dist/components/Section/Section.vue.d.ts +5 -10
- package/dist/components/Section/Section.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionAccordion.vue.d.ts +13 -66
- package/dist/components/Section/SectionAccordion.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionColumn.vue.d.ts +6 -11
- package/dist/components/Section/SectionColumn.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionColumns.vue.d.ts +6 -11
- package/dist/components/Section/SectionColumns.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionContainer.vue.d.ts +7 -11
- package/dist/components/Section/SectionContainer.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionContainerAccordion.vue.d.ts +8 -12
- package/dist/components/Section/SectionContainerAccordion.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionContent.vue.d.ts +6 -11
- package/dist/components/Section/SectionContent.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionHeader.vue.d.ts +8 -12
- package/dist/components/Section/SectionHeader.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionHeaderTag.vue.d.ts +5 -10
- package/dist/components/Section/SectionHeaderTag.vue.d.ts.map +1 -1
- package/dist/components/SectionFlare/SectionFlare.vue.d.ts.map +1 -1
- package/dist/components/ShowMoreButton.vue.d.ts +1 -1
- package/dist/components/ShowMoreButton.vue.d.ts.map +1 -1
- package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/OperationResponses.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterHeaders.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterList.vue.d.ts +5 -10
- package/dist/features/Operation/components/ParameterList.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/RequestBody.vue.d.ts +5 -10
- package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +2 -2
- package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/callbacks/Callback.vue.js +2 -2
- package/dist/features/Operation/components/callbacks/Callback.vue2.js +2 -2
- package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts +2 -2
- package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/callbacks/Callbacks.vue.js +2 -2
- package/dist/features/Operation/helpers/combine-params.d.ts +1 -2
- package/dist/features/Operation/helpers/combine-params.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +1 -3
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue.js +1 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue2.js +35 -34
- package/dist/features/Operation/layouts/ClassicLayout.vue3.js +2 -2
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +1 -3
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
- package/dist/features/Operation/layouts/ModernLayout.vue2.js +28 -27
- package/dist/features/Search/components/SearchButton.vue.d.ts.map +1 -1
- package/dist/features/Search/components/SearchModal.vue.d.ts.map +1 -1
- package/dist/features/api-client-modal/ApiClientModal.vue.d.ts +1 -1
- package/dist/features/api-client-modal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/features/api-client-modal/ApiClientModal.vue.js +50 -53
- package/dist/features/api-client-modal/useApiClient.d.ts +496 -496
- package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
- package/dist/features/document-source/hooks/useDocumentFetcher.d.ts +1 -1
- package/dist/features/document-source/hooks/useDocumentFetcher.d.ts.map +1 -1
- package/dist/features/document-source/hooks/useDocumentFetcher.js +13 -13
- package/dist/features/example-responses/ExampleResponse.vue.d.ts +1 -2
- package/dist/features/example-responses/ExampleResponse.vue.d.ts.map +1 -1
- package/dist/features/example-responses/ExampleResponse.vue.js +2 -2
- package/dist/features/example-responses/ExampleResponseTab.vue.d.ts +5 -10
- package/dist/features/example-responses/ExampleResponseTab.vue.d.ts.map +1 -1
- package/dist/features/example-responses/ExampleResponseTabList.vue.d.ts +7 -11
- package/dist/features/example-responses/ExampleResponseTabList.vue.d.ts.map +1 -1
- package/dist/features/example-responses/ExampleResponses.vue.d.ts +1 -1
- package/dist/features/example-responses/ExampleResponses.vue.d.ts.map +1 -1
- package/dist/features/example-responses/ExampleResponses.vue.js +2 -2
- package/dist/features/example-responses/ExampleResponses.vue2.js +9 -9
- package/dist/features/example-responses/helpers/get-resolved-ref-deep.d.ts.map +1 -1
- package/dist/features/external-docs/ExternalDocs.vue.d.ts.map +1 -1
- package/dist/features/info-object/Contact.vue.d.ts.map +1 -1
- package/dist/features/info-object/License.vue.d.ts +1 -1
- package/dist/features/info-object/License.vue.d.ts.map +1 -1
- package/dist/features/info-object/TermsOfService.vue.d.ts.map +1 -1
- package/dist/features/multiple-documents/DocumentSelector.vue.d.ts.map +1 -1
- package/dist/features/multiple-documents/useMultipleDocuments.d.ts.map +1 -1
- package/dist/features/sidebar/components/Sidebar.vue.d.ts +8 -14
- package/dist/features/sidebar/components/Sidebar.vue.d.ts.map +1 -1
- package/dist/features/sidebar/components/SidebarElement.vue.d.ts +8 -12
- package/dist/features/sidebar/components/SidebarElement.vue.d.ts.map +1 -1
- package/dist/features/sidebar/components/SidebarElement.vue.js +1 -1
- package/dist/features/sidebar/components/SidebarElement.vue2.js +60 -55
- package/dist/features/sidebar/components/SidebarGroup.vue.d.ts +6 -11
- package/dist/features/sidebar/components/SidebarGroup.vue.d.ts.map +1 -1
- package/dist/features/sidebar/components/SidebarHttpBadge.vue.d.ts +5 -10
- package/dist/features/sidebar/components/SidebarHttpBadge.vue.d.ts.map +1 -1
- package/dist/features/sidebar/helpers/create-sidebar.d.ts.map +1 -1
- package/dist/features/specification-extension/SpecificationExtension.vue.d.ts.map +1 -1
- package/dist/features/specification-extension/SpecificationExtension.vue.js +2 -47
- package/dist/features/specification-extension/SpecificationExtension.vue2.js +47 -2
- package/dist/features/specification-extension/helpers.d.ts +10 -0
- package/dist/features/specification-extension/helpers.d.ts.map +1 -0
- package/dist/features/specification-extension/helpers.js +4 -0
- package/dist/features/specification-extension/index.d.ts +1 -0
- package/dist/features/specification-extension/index.d.ts.map +1 -1
- package/dist/features/test-request-button/TestRequestButton.vue.d.ts.map +1 -1
- package/dist/features/traverse-schema/helpers/get-tag.d.ts.map +1 -1
- package/dist/features/traverse-schema/helpers/traverse-description.d.ts +3 -1
- package/dist/features/traverse-schema/helpers/traverse-description.d.ts.map +1 -1
- package/dist/features/traverse-schema/helpers/traverse-document.d.ts.map +1 -1
- package/dist/features/traverse-schema/helpers/traverse-paths.d.ts +7 -3
- package/dist/features/traverse-schema/helpers/traverse-paths.d.ts.map +1 -1
- package/dist/features/traverse-schema/helpers/traverse-schemas.d.ts +3 -1
- package/dist/features/traverse-schema/helpers/traverse-schemas.d.ts.map +1 -1
- package/dist/features/traverse-schema/helpers/traverse-tags.d.ts +3 -1
- package/dist/features/traverse-schema/helpers/traverse-tags.d.ts.map +1 -1
- package/dist/features/traverse-schema/helpers/traverse-webhooks.d.ts +5 -1
- package/dist/features/traverse-schema/helpers/traverse-webhooks.d.ts.map +1 -1
- package/dist/features/traverse-schema/types.d.ts +1 -3
- package/dist/features/traverse-schema/types.d.ts.map +1 -1
- package/dist/features/x-badges/XBadges.vue.d.ts.map +1 -1
- package/dist/helpers/convert-security-scheme.d.ts +1 -1
- package/dist/helpers/convert-security-scheme.d.ts.map +1 -1
- package/dist/helpers/test-utils.d.ts.map +1 -1
- package/dist/hooks/useFreezing.d.ts +6 -0
- package/dist/hooks/useFreezing.d.ts.map +1 -0
- package/dist/hooks/useFreezing.js +29 -0
- package/dist/hooks/useNavState.d.ts +1 -2
- package/dist/hooks/useNavState.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +18 -16
- package/dist/libs/download.d.ts +0 -5
- package/dist/libs/download.d.ts.map +1 -1
- package/dist/libs/download.js +10 -13
- package/dist/libs/markdown.d.ts.map +1 -1
- package/dist/libs/openapi.d.ts +2 -4
- package/dist/libs/openapi.d.ts.map +1 -1
- package/dist/plugins/plugin-manager.d.ts.map +1 -1
- package/dist/standalone/lib/html-api.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.d.ts +11 -14
- package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.js +92 -95
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts +20 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +7 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue2.js +223 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.d.ts +21 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.js +64 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue2.js +4 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +17 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +267 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue2.js +4 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.d.ts +9 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +151 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue2.js +4 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts +20 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +7 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue2.js +96 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts +50 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.js +50 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue2.js +4 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +17 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +253 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue2.js +4 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/filter-security-requirements.d.ts +6 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/filter-security-requirements.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/update-scheme.d.ts +8 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/update-scheme.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/update-scheme.js +22 -0
- package/dist/v2/blocks/scalar-auth-selector-block/index.d.ts +2 -0
- package/dist/v2/blocks/scalar-auth-selector-block/index.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue.d.ts +15 -0
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue.js +7 -0
- package/dist/{components/Content/ClientLibraries/ClientSelector.vue2.js → v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue2.js} +33 -33
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.d.ts +16 -0
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.js +7 -0
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue2.js +124 -0
- package/dist/v2/blocks/scalar-client-selector-block/helpers/featured-clients.d.ts +11 -0
- package/dist/v2/blocks/scalar-client-selector-block/helpers/featured-clients.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-client-selector-block/index.d.ts +2 -0
- package/dist/v2/blocks/scalar-client-selector-block/index.d.ts.map +1 -0
- package/dist/{features/base-url/BaseUrl.vue.d.ts → v2/blocks/scalar-info-block/components/DownloadLink.vue.d.ts} +3 -4
- package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue.js +7 -0
- package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue2.js +62 -0
- package/dist/v2/blocks/scalar-info-block/components/InfoBlock.vue.d.ts +36 -0
- package/dist/v2/blocks/scalar-info-block/components/InfoBlock.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-info-block/components/InfoBlock.vue.js +49 -0
- package/dist/v2/blocks/scalar-info-block/components/InfoBlock.vue2.js +4 -0
- package/dist/{components/Content/Introduction/Description.vue.d.ts → v2/blocks/scalar-info-block/components/InfoDescription.vue.d.ts} +2 -2
- package/dist/v2/blocks/scalar-info-block/components/InfoDescription.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-info-block/components/InfoDescription.vue.js +7 -0
- package/dist/v2/blocks/scalar-info-block/components/InfoDescription.vue2.js +72 -0
- package/dist/v2/blocks/scalar-info-block/components/InfoLinks.vue.d.ts +8 -0
- package/dist/v2/blocks/scalar-info-block/components/InfoLinks.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-info-block/components/InfoLinks.vue.js +36 -0
- package/dist/v2/blocks/scalar-info-block/components/InfoLinks.vue2.js +4 -0
- package/dist/v2/blocks/scalar-info-block/components/InfoVersion.vue.d.ts +7 -0
- package/dist/v2/blocks/scalar-info-block/components/InfoVersion.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-info-block/components/InfoVersion.vue.js +25 -0
- package/dist/v2/blocks/scalar-info-block/components/InfoVersion.vue2.js +4 -0
- package/dist/v2/blocks/scalar-info-block/components/IntroductionCard.vue.d.ts +16 -0
- package/dist/v2/blocks/scalar-info-block/components/IntroductionCard.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-info-block/components/IntroductionCard.vue.js +7 -0
- package/dist/v2/blocks/scalar-info-block/components/IntroductionCard.vue2.js +17 -0
- package/dist/v2/blocks/scalar-info-block/components/IntroductionCard.vue3.js +4 -0
- package/dist/v2/blocks/scalar-info-block/components/IntroductionCardItem.vue.d.ts +13 -0
- package/dist/v2/blocks/scalar-info-block/components/IntroductionCardItem.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-info-block/components/IntroductionCardItem.vue.js +13 -0
- package/dist/v2/blocks/scalar-info-block/components/IntroductionCardItem.vue2.js +4 -0
- package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue.d.ts +27 -0
- package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue.js +7 -0
- package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue2.js +122 -0
- package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue3.js +4 -0
- package/dist/{features/download-link/DownloadLink.vue.d.ts → v2/blocks/scalar-info-block/components/OpenApiVersion.vue.d.ts} +2 -2
- package/dist/v2/blocks/scalar-info-block/components/OpenApiVersion.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-info-block/components/OpenApiVersion.vue.js +19 -0
- package/dist/v2/blocks/scalar-info-block/components/OpenApiVersion.vue2.js +4 -0
- package/dist/v2/blocks/scalar-info-block/index.d.ts +3 -0
- package/dist/v2/blocks/scalar-info-block/index.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts +5 -8
- package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue2.js +38 -52
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts +7 -8
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.js +1 -1
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue2.js +148 -133
- package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.d.ts +1 -3
- package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.d.ts +1 -1
- package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.js +4 -3
- package/dist/v2/blocks/scalar-server-selector-block/components/Selector.vue.d.ts +51 -0
- package/dist/v2/blocks/scalar-server-selector-block/components/Selector.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-server-selector-block/components/Selector.vue.js +78 -0
- package/dist/v2/blocks/scalar-server-selector-block/components/Selector.vue2.js +4 -0
- package/dist/v2/blocks/scalar-server-selector-block/components/ServerSelector.vue.d.ts +18 -0
- package/dist/v2/blocks/scalar-server-selector-block/components/ServerSelector.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-server-selector-block/components/ServerSelector.vue.js +72 -0
- package/dist/v2/blocks/scalar-server-selector-block/components/ServerSelector.vue2.js +4 -0
- package/dist/v2/blocks/scalar-server-selector-block/index.d.ts +2 -0
- package/dist/v2/blocks/scalar-server-selector-block/index.d.ts.map +1 -0
- package/dist/v2/helpers/get-document-name.d.ts.map +1 -1
- package/dist/v2/helpers/map-configuration.d.ts +1 -1
- package/dist/v2/helpers/map-configuration.d.ts.map +1 -1
- package/dist/v2/helpers/normalize-content.d.ts.map +1 -1
- package/dist/v2/hooks/use-legacy-store-events.d.ts +14 -0
- package/dist/v2/hooks/use-legacy-store-events.d.ts.map +1 -0
- package/dist/v2/hooks/use-legacy-store-events.js +65 -0
- package/dist/v2/hooks/use-workspace-store-events.d.ts +4 -0
- package/dist/v2/hooks/use-workspace-store-events.d.ts.map +1 -0
- package/dist/v2/hooks/use-workspace-store-events.js +43 -0
- package/package.json +21 -19
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +0 -7
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +0 -122
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.js +0 -7
- package/dist/components/Content/Introduction/Description.vue.d.ts.map +0 -1
- package/dist/components/Content/Introduction/Description.vue.js +0 -7
- package/dist/components/Content/Introduction/Description.vue2.js +0 -72
- package/dist/components/Content/Introduction/Introduction.vue.d.ts +0 -13
- package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +0 -1
- package/dist/components/Content/Introduction/Introduction.vue.js +0 -7
- package/dist/components/Content/Introduction/Introduction.vue2.js +0 -113
- package/dist/components/Content/Introduction/IntroductionSection.vue.d.ts +0 -25
- package/dist/components/Content/Introduction/IntroductionSection.vue.d.ts.map +0 -1
- package/dist/components/Content/Introduction/IntroductionSection.vue.js +0 -7
- package/dist/components/Content/Introduction/IntroductionSection.vue2.js +0 -159
- package/dist/components/Content/Introduction/index.d.ts +0 -2
- package/dist/components/Content/Introduction/index.d.ts.map +0 -1
- package/dist/features/base-url/BaseUrl.vue.d.ts.map +0 -1
- package/dist/features/base-url/BaseUrl.vue.js +0 -56
- package/dist/features/base-url/BaseUrl.vue2.js +0 -4
- package/dist/features/base-url/index.d.ts +0 -2
- package/dist/features/base-url/index.d.ts.map +0 -1
- package/dist/features/download-link/DownloadLink.vue.d.ts.map +0 -1
- package/dist/features/download-link/DownloadLink.vue.js +0 -7
- package/dist/features/download-link/DownloadLink.vue2.js +0 -61
- package/dist/features/download-link/index.d.ts +0 -3
- package/dist/features/download-link/index.d.ts.map +0 -1
- package/dist/features/download-link/openapi-version-symbol.d.ts +0 -2
- package/dist/features/download-link/openapi-version-symbol.d.ts.map +0 -1
- package/dist/features/download-link/openapi-version-symbol.js +0 -4
- package/dist/v2/events/definitions.d.ts +0 -44
- package/dist/v2/events/definitions.d.ts.map +0 -1
- package/dist/v2/events/definitions.js +0 -7
- package/dist/v2/events/index.d.ts +0 -3
- package/dist/v2/events/index.d.ts.map +0 -1
- package/dist/v2/events/listeners.d.ts +0 -8
- package/dist/v2/events/listeners.d.ts.map +0 -1
- package/dist/v2/events/listeners.js +0 -15
- /package/dist/{components/Content/ClientLibraries/ClientLibraries.vue3.js → v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue3.js} +0 -0
- /package/dist/{components/Content/ClientLibraries/ClientSelector.vue3.js → v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue3.js} +0 -0
- /package/dist/{components/Content/Introduction/Description.vue3.js → v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue3.js} +0 -0
- /package/dist/{components/Content/Introduction/Introduction.vue3.js → v2/blocks/scalar-client-selector-block/components/ClientSelector.vue3.js} +0 -0
- /package/dist/{components/Content/ClientLibraries → v2/blocks/scalar-client-selector-block/helpers}/featured-clients.js +0 -0
- /package/dist/{features/download-link → v2/blocks/scalar-info-block/components}/DownloadLink.vue3.js +0 -0
- /package/dist/{components/Content/Introduction/IntroductionSection.vue3.js → v2/blocks/scalar-info-block/components/InfoDescription.vue3.js} +0 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { defineComponent as p, useId as m, createBlock as V, openBlock as f, unref as l, mergeProps as c, withCtx as s, renderSlot as u, createElementVNode as y } from "vue";
|
|
2
|
+
import { DataTableInput as b } from "@scalar/api-client/components/DataTable";
|
|
3
|
+
const v = ["for"], k = /* @__PURE__ */ p({
|
|
4
|
+
__name: "RequestAuthDataTableInput",
|
|
5
|
+
props: {
|
|
6
|
+
type: {},
|
|
7
|
+
containerClass: {},
|
|
8
|
+
required: { type: Boolean, default: !1 },
|
|
9
|
+
modelValue: {},
|
|
10
|
+
readOnly: { type: Boolean, default: !1 },
|
|
11
|
+
environment: {},
|
|
12
|
+
envVariables: {},
|
|
13
|
+
workspace: {}
|
|
14
|
+
},
|
|
15
|
+
emits: ["update:modelValue", "inputFocus", "inputBlur", "selectVariable"],
|
|
16
|
+
setup(i, { emit: d }) {
|
|
17
|
+
const e = i, a = d, r = m();
|
|
18
|
+
return (o, n) => (f(), V(l(b), c({
|
|
19
|
+
id: l(r),
|
|
20
|
+
canAddCustomEnumValue: !e.readOnly,
|
|
21
|
+
containerClass: e.containerClass
|
|
22
|
+
}, o.$attrs, {
|
|
23
|
+
envVariables: e.envVariables,
|
|
24
|
+
environment: e.environment,
|
|
25
|
+
lineWrapping: "",
|
|
26
|
+
modelValue: e.modelValue,
|
|
27
|
+
readOnly: e.readOnly,
|
|
28
|
+
required: e.required,
|
|
29
|
+
type: e.type,
|
|
30
|
+
workspace: e.workspace,
|
|
31
|
+
onInputBlur: n[0] || (n[0] = (t) => a("inputBlur")),
|
|
32
|
+
onInputFocus: n[1] || (n[1] = (t) => a("inputFocus")),
|
|
33
|
+
onSelectVariable: n[2] || (n[2] = (t) => a("selectVariable", t)),
|
|
34
|
+
"onUpdate:modelValue": n[3] || (n[3] = (t) => a("update:modelValue", t))
|
|
35
|
+
}), {
|
|
36
|
+
default: s(() => [
|
|
37
|
+
y("label", { for: l(r) }, [
|
|
38
|
+
u(o.$slots, "default")
|
|
39
|
+
], 8, v)
|
|
40
|
+
]),
|
|
41
|
+
icon: s(() => [
|
|
42
|
+
u(o.$slots, "icon")
|
|
43
|
+
]),
|
|
44
|
+
_: 3
|
|
45
|
+
}, 16, ["id", "canAddCustomEnumValue", "containerClass", "envVariables", "environment", "modelValue", "readOnly", "required", "type", "workspace"]));
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
export {
|
|
49
|
+
k as default
|
|
50
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type EnvVariable } from '@scalar/api-client/store';
|
|
2
|
+
import type { Environment } from '@scalar/oas-utils/entities/environment';
|
|
3
|
+
import type { Collection, Server } from '@scalar/oas-utils/entities/spec';
|
|
4
|
+
import type { Workspace } from '@scalar/oas-utils/entities/workspace';
|
|
5
|
+
type __VLS_Props = {
|
|
6
|
+
collection: Collection;
|
|
7
|
+
environment: Environment;
|
|
8
|
+
envVariables: EnvVariable[];
|
|
9
|
+
layout: 'client' | 'reference';
|
|
10
|
+
persistAuth: boolean;
|
|
11
|
+
securitySchemeUids: string[];
|
|
12
|
+
server: Server | undefined;
|
|
13
|
+
workspace: Workspace;
|
|
14
|
+
};
|
|
15
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
export default _default;
|
|
17
|
+
//# sourceMappingURL=RequestAuthTab.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RequestAuthTab.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue"],"names":[],"mappings":"AAmUA,OAAO,EAAgB,KAAK,WAAW,EAAE,MAAM,0BAA0B,CAAA;AAMzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EACV,UAAU,EAEV,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAcrE,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,MAAM,EAAE,QAAQ,GAAG,WAAW,CAAA;IAC9B,WAAW,EAAE,OAAO,CAAA;IACpB,kBAAkB,EAAE,MAAM,EAAE,CAAA;IAC5B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;AAmjBF,wBAMG"}
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
import { defineComponent as D, computed as F, ref as M, onMounted as P, useTemplateRef as z, createElementBlock as u, openBlock as l, Fragment as p, createElementVNode as x, renderList as $, createBlock as g, createCommentVNode as v, unref as d, withCtx as n, createVNode as i, toDisplayString as I, mergeProps as V, createTextVNode as k, normalizeClass as R, capitalize as S } from "vue";
|
|
2
|
+
import { DataTableRow as f, DataTableCell as N } from "@scalar/api-client/components/DataTable";
|
|
3
|
+
import { useWorkspace as H } from "@scalar/api-client/store";
|
|
4
|
+
import { ScalarMarkdownSummary as Q } from "@scalar/components";
|
|
5
|
+
import { safeLocalStorage as j, CLIENT_LS_KEYS as B } from "@scalar/helpers/object/local-storage";
|
|
6
|
+
import { isDefined as L } from "@scalar/oas-utils/helpers";
|
|
7
|
+
import { emitCustomEvent as O } from "@scalar/workspace-store/events";
|
|
8
|
+
import { updateScheme as q } from "../helpers/update-scheme.js";
|
|
9
|
+
import J from "./OAuth2.vue.js";
|
|
10
|
+
import m from "./RequestAuthDataTableInput.vue.js";
|
|
11
|
+
const Y = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow-hidden px-3 py-1.25 text-ellipsis group-hover/auth:absolute group-hover/auth:h-auto group-hover/auth:border-b *:first:line-clamp-1 *:first:text-ellipsis group-hover/auth:*:first:line-clamp-none" }, W = {
|
|
12
|
+
key: 0,
|
|
13
|
+
class: "flex min-h-8 border-t text-base"
|
|
14
|
+
}, G = { class: "flex h-8 max-w-full gap-2.5 overflow-x-auto px-3" }, X = ["onClick"], Z = { class: "relative z-10" }, de = /* @__PURE__ */ D({
|
|
15
|
+
__name: "RequestAuthTab",
|
|
16
|
+
props: {
|
|
17
|
+
collection: {},
|
|
18
|
+
environment: {},
|
|
19
|
+
envVariables: {},
|
|
20
|
+
layout: {},
|
|
21
|
+
persistAuth: { type: Boolean, default: !1 },
|
|
22
|
+
securitySchemeUids: {},
|
|
23
|
+
server: {},
|
|
24
|
+
workspace: {}
|
|
25
|
+
},
|
|
26
|
+
setup(y) {
|
|
27
|
+
const T = H(), { securitySchemes: U } = T, C = F(
|
|
28
|
+
() => y.securitySchemeUids.map((t) => ({
|
|
29
|
+
scheme: U[t]
|
|
30
|
+
}))
|
|
31
|
+
), s = M(""), E = (t) => {
|
|
32
|
+
const r = t.description ? `: ${t.description}` : "", e = `${S(t.nameKey)}${r || `: ${t.type}`}`;
|
|
33
|
+
if (t.type === "apiKey")
|
|
34
|
+
return `${S(t.nameKey)}${r || `: ${t.in}`}`;
|
|
35
|
+
if (t.type === "oauth2") {
|
|
36
|
+
const a = Object.values(t.flows ?? {})[0];
|
|
37
|
+
return `${S(t.nameKey)}: ${s.value ? s.value : (a == null ? void 0 : a.type) ?? ""}${r}`;
|
|
38
|
+
}
|
|
39
|
+
return t.type === "http" ? `${S(t.nameKey)}: ${t.scheme}${r}` : `${e}${r}`;
|
|
40
|
+
}, w = (t, r, e) => {
|
|
41
|
+
q(t, r, e, T, _.value, y.persistAuth);
|
|
42
|
+
};
|
|
43
|
+
P(() => {
|
|
44
|
+
if (!y.persistAuth)
|
|
45
|
+
return;
|
|
46
|
+
const t = JSON.parse(
|
|
47
|
+
j().getItem(B.AUTH) ?? "{}"
|
|
48
|
+
), r = Object.keys(U).reduce(
|
|
49
|
+
(e, a) => {
|
|
50
|
+
const o = U[a];
|
|
51
|
+
return o && (e[o.nameKey] = o.uid), e;
|
|
52
|
+
},
|
|
53
|
+
{}
|
|
54
|
+
);
|
|
55
|
+
Object.entries(t).forEach(([e, a]) => {
|
|
56
|
+
const o = r[e];
|
|
57
|
+
o && Object.entries(a).forEach(([A, K]) => {
|
|
58
|
+
O(_.value, "scalar-edit-security-scheme", {
|
|
59
|
+
uid: o,
|
|
60
|
+
path: A,
|
|
61
|
+
value: K
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
});
|
|
65
|
+
try {
|
|
66
|
+
const a = JSON.parse(
|
|
67
|
+
j().getItem(B.SELECTED_SECURITY_SCHEMES) ?? ""
|
|
68
|
+
).map((o) => Array.isArray(o) ? o.map((b) => r[b]).filter(L) : r[o]).filter(L);
|
|
69
|
+
O(_.value, "scalar-select-security-schemes", {
|
|
70
|
+
uids: a
|
|
71
|
+
});
|
|
72
|
+
} catch {
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
const c = {
|
|
76
|
+
environment: y.environment,
|
|
77
|
+
envVariables: y.envVariables,
|
|
78
|
+
workspace: y.workspace
|
|
79
|
+
}, _ = z("wrapperRef");
|
|
80
|
+
return (t, r) => (l(), u(p, null, [
|
|
81
|
+
x("div", {
|
|
82
|
+
ref_key: "wrapperRef",
|
|
83
|
+
ref: _
|
|
84
|
+
}, null, 512),
|
|
85
|
+
(l(!0), u(p, null, $(C.value, ({ scheme: e }) => (l(), u(p, {
|
|
86
|
+
key: e == null ? void 0 : e.uid
|
|
87
|
+
}, [
|
|
88
|
+
C.value.length > 1 && e ? (l(), g(d(f), { key: 0 }, {
|
|
89
|
+
default: n(() => [
|
|
90
|
+
i(d(N), {
|
|
91
|
+
"aria-label": E(e),
|
|
92
|
+
class: "text-c-2 group/auth flex items-center leading-[22px] whitespace-nowrap outline-none hover:whitespace-normal"
|
|
93
|
+
}, {
|
|
94
|
+
default: n(() => [
|
|
95
|
+
x("p", Y, I(E(e)), 1)
|
|
96
|
+
]),
|
|
97
|
+
_: 2
|
|
98
|
+
}, 1032, ["aria-label"])
|
|
99
|
+
]),
|
|
100
|
+
_: 2
|
|
101
|
+
}, 1024)) : v("", !0),
|
|
102
|
+
e != null && e.description && C.value.length <= 1 ? (l(), g(d(f), { key: 1 }, {
|
|
103
|
+
default: n(() => [
|
|
104
|
+
i(d(N), {
|
|
105
|
+
"aria-label": e.description,
|
|
106
|
+
class: "max-h-[auto]"
|
|
107
|
+
}, {
|
|
108
|
+
default: n(() => [
|
|
109
|
+
i(d(Q), {
|
|
110
|
+
class: "auth-description bg-b-1 text-c-2 min-w-0 flex-1 px-3 py-1.25",
|
|
111
|
+
value: e.description
|
|
112
|
+
}, null, 8, ["value"])
|
|
113
|
+
]),
|
|
114
|
+
_: 2
|
|
115
|
+
}, 1032, ["aria-label"])
|
|
116
|
+
]),
|
|
117
|
+
_: 2
|
|
118
|
+
}, 1024)) : v("", !0),
|
|
119
|
+
(e == null ? void 0 : e.type) === "http" ? (l(), u(p, { key: 2 }, [
|
|
120
|
+
e.scheme === "bearer" ? (l(), g(d(f), { key: 0 }, {
|
|
121
|
+
default: n(() => [
|
|
122
|
+
i(m, V({ ref_for: !0 }, c, {
|
|
123
|
+
containerClass: t.layout === "reference" && "border-t",
|
|
124
|
+
modelValue: e.token,
|
|
125
|
+
placeholder: "Token",
|
|
126
|
+
type: "password",
|
|
127
|
+
"onUpdate:modelValue": (a) => w(e.uid, "token", a)
|
|
128
|
+
}), {
|
|
129
|
+
default: n(() => r[0] || (r[0] = [
|
|
130
|
+
k(" Bearer Token ")
|
|
131
|
+
])),
|
|
132
|
+
_: 2,
|
|
133
|
+
__: [0]
|
|
134
|
+
}, 1040, ["containerClass", "modelValue", "onUpdate:modelValue"])
|
|
135
|
+
]),
|
|
136
|
+
_: 2
|
|
137
|
+
}, 1024)) : (e == null ? void 0 : e.scheme) === "basic" ? (l(), u(p, { key: 1 }, [
|
|
138
|
+
i(d(f), null, {
|
|
139
|
+
default: n(() => [
|
|
140
|
+
i(m, V({ ref_for: !0 }, c, {
|
|
141
|
+
class: "text-c-2",
|
|
142
|
+
modelValue: e.username,
|
|
143
|
+
placeholder: "janedoe",
|
|
144
|
+
required: "",
|
|
145
|
+
"onUpdate:modelValue": (a) => w(e.uid, "username", a)
|
|
146
|
+
}), {
|
|
147
|
+
default: n(() => r[1] || (r[1] = [
|
|
148
|
+
k(" Username ")
|
|
149
|
+
])),
|
|
150
|
+
_: 2,
|
|
151
|
+
__: [1]
|
|
152
|
+
}, 1040, ["modelValue", "onUpdate:modelValue"])
|
|
153
|
+
]),
|
|
154
|
+
_: 2
|
|
155
|
+
}, 1024),
|
|
156
|
+
i(d(f), null, {
|
|
157
|
+
default: n(() => [
|
|
158
|
+
i(m, V({ ref_for: !0 }, c, {
|
|
159
|
+
modelValue: e.password,
|
|
160
|
+
placeholder: "********",
|
|
161
|
+
type: "password",
|
|
162
|
+
"onUpdate:modelValue": (a) => w(e.uid, "password", a)
|
|
163
|
+
}), {
|
|
164
|
+
default: n(() => r[2] || (r[2] = [
|
|
165
|
+
k(" Password ")
|
|
166
|
+
])),
|
|
167
|
+
_: 2,
|
|
168
|
+
__: [2]
|
|
169
|
+
}, 1040, ["modelValue", "onUpdate:modelValue"])
|
|
170
|
+
]),
|
|
171
|
+
_: 2
|
|
172
|
+
}, 1024)
|
|
173
|
+
], 64)) : v("", !0)
|
|
174
|
+
], 64)) : (e == null ? void 0 : e.type) === "apiKey" ? (l(), u(p, { key: 3 }, [
|
|
175
|
+
i(d(f), null, {
|
|
176
|
+
default: n(() => [
|
|
177
|
+
i(m, V({ ref_for: !0 }, c, {
|
|
178
|
+
containerClass: t.layout === "reference" && "border-t",
|
|
179
|
+
modelValue: e.name,
|
|
180
|
+
placeholder: "api-key",
|
|
181
|
+
"onUpdate:modelValue": (a) => w(e.uid, "name", a)
|
|
182
|
+
}), {
|
|
183
|
+
default: n(() => r[3] || (r[3] = [
|
|
184
|
+
k(" Name ")
|
|
185
|
+
])),
|
|
186
|
+
_: 2,
|
|
187
|
+
__: [3]
|
|
188
|
+
}, 1040, ["containerClass", "modelValue", "onUpdate:modelValue"])
|
|
189
|
+
]),
|
|
190
|
+
_: 2
|
|
191
|
+
}, 1024),
|
|
192
|
+
i(d(f), null, {
|
|
193
|
+
default: n(() => [
|
|
194
|
+
i(m, V({ ref_for: !0 }, c, {
|
|
195
|
+
modelValue: e.value,
|
|
196
|
+
placeholder: "QUxMIFlPVVIgQkFTRSBBUkUgQkVMT05HIFRPIFVT",
|
|
197
|
+
type: "password",
|
|
198
|
+
"onUpdate:modelValue": (a) => w(e.uid, "value", a)
|
|
199
|
+
}), {
|
|
200
|
+
default: n(() => r[4] || (r[4] = [
|
|
201
|
+
k(" Value ")
|
|
202
|
+
])),
|
|
203
|
+
_: 2,
|
|
204
|
+
__: [4]
|
|
205
|
+
}, 1040, ["modelValue", "onUpdate:modelValue"])
|
|
206
|
+
]),
|
|
207
|
+
_: 2
|
|
208
|
+
}, 1024)
|
|
209
|
+
], 64)) : (e == null ? void 0 : e.type) === "oauth2" ? (l(), u(p, { key: 4 }, [
|
|
210
|
+
i(d(f), null, {
|
|
211
|
+
default: n(() => [
|
|
212
|
+
Object.keys(e.flows).length > 1 ? (l(), u("div", W, [
|
|
213
|
+
x("div", G, [
|
|
214
|
+
(l(!0), u(p, null, $(e == null ? void 0 : e.flows, (a, o, b) => (l(), u("button", {
|
|
215
|
+
key: o,
|
|
216
|
+
class: R(["floating-bg text-c-3 relative cursor-pointer border-b-[1px] border-transparent py-1 text-base font-medium", {
|
|
217
|
+
"!text-c-1 !rounded-none border-b-[1px] !border-current": t.layout !== "reference" && (s.value === o || b === 0 && !s.value),
|
|
218
|
+
"!text-c-1 !rounded-none border-b-[1px] !border-current opacity-100": t.layout === "reference" && (s.value === o || b === 0 && !s.value)
|
|
219
|
+
}]),
|
|
220
|
+
type: "button",
|
|
221
|
+
onClick: (A) => s.value = o
|
|
222
|
+
}, [
|
|
223
|
+
x("span", Z, I(o), 1)
|
|
224
|
+
], 10, X))), 128))
|
|
225
|
+
])
|
|
226
|
+
])) : v("", !0)
|
|
227
|
+
]),
|
|
228
|
+
_: 2
|
|
229
|
+
}, 1024),
|
|
230
|
+
(l(!0), u(p, null, $(e == null ? void 0 : e.flows, (a, o, b) => (l(), u(p, { key: o }, [
|
|
231
|
+
s.value === o || b === 0 && !s.value ? (l(), g(J, V({
|
|
232
|
+
key: 0,
|
|
233
|
+
ref_for: !0
|
|
234
|
+
}, c, {
|
|
235
|
+
collection: t.collection,
|
|
236
|
+
flow: a,
|
|
237
|
+
persistAuth: t.persistAuth,
|
|
238
|
+
scheme: e,
|
|
239
|
+
server: t.server,
|
|
240
|
+
workspace: t.workspace
|
|
241
|
+
}), null, 16, ["collection", "flow", "persistAuth", "scheme", "server", "workspace"])) : v("", !0)
|
|
242
|
+
], 64))), 128))
|
|
243
|
+
], 64)) : (e == null ? void 0 : e.type) === "openIdConnect" ? (l(), u("div", {
|
|
244
|
+
key: 5,
|
|
245
|
+
class: R(["text-c-3 bg-b-1 flex min-h-[calc(4rem+1px)] items-center justify-center border-t border-b-0 px-4 text-base", { "rounded-b-lg": t.layout === "reference" }])
|
|
246
|
+
}, " Coming soon ", 2)) : v("", !0)
|
|
247
|
+
], 64))), 128))
|
|
248
|
+
], 64));
|
|
249
|
+
}
|
|
250
|
+
});
|
|
251
|
+
export {
|
|
252
|
+
de as default
|
|
253
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Collection, SecurityScheme } from '@scalar/oas-utils/entities/spec';
|
|
2
|
+
/**
|
|
3
|
+
* Takes in selected security and filters it with the requirements
|
|
4
|
+
*/
|
|
5
|
+
export declare const filterSecurityRequirements: (securityRequirements: Collection["security"], selectedSecuritySchemeUids?: Collection["selectedSecuritySchemeUids"], securitySchemes?: Record<string, SecurityScheme>) => SecurityScheme[];
|
|
6
|
+
//# sourceMappingURL=filter-security-requirements.d.ts.map
|
package/dist/v2/blocks/scalar-auth-selector-block/helpers/filter-security-requirements.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filter-security-requirements.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/helpers/filter-security-requirements.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAEjF;;GAEG;AACH,eAAO,MAAM,0BAA0B,GACrC,sBAAsB,UAAU,CAAC,UAAU,CAAC,EAC5C,6BAA4B,UAAU,CAAC,4BAA4B,CAAM,EACzE,kBAAiB,MAAM,CAAC,MAAM,EAAE,cAAc,CAAM,KACnD,cAAc,EA0DhB,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { SecurityScheme } from '@scalar/oas-utils/entities/spec';
|
|
2
|
+
import type { Path, PathValue } from '@scalar/object-utils/nested';
|
|
3
|
+
import type { WorkspaceStore } from '@scalar/api-client/store';
|
|
4
|
+
/** Shape of the local storage auth object */
|
|
5
|
+
export type Auth<P extends Path<SecurityScheme>> = Record<string, Record<P, NonNullable<PathValue<SecurityScheme, P>>>>;
|
|
6
|
+
/** Update the security scheme with side effects */
|
|
7
|
+
export declare const updateScheme: <U extends SecurityScheme["uid"], P extends Path<SecurityScheme>>(uid: U, path: P, value: NonNullable<PathValue<SecurityScheme, P>>, { securitySchemes }: WorkspaceStore, el?: HTMLElement | null, persistAuth?: boolean) => void;
|
|
8
|
+
//# sourceMappingURL=update-scheme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-scheme.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/helpers/update-scheme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AACrE,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAA;AAElE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAG9D,6CAA6C;AAC7C,MAAM,MAAM,IAAI,CAAC,CAAC,SAAS,IAAI,CAAC,cAAc,CAAC,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,cAAc,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;AAEvH,mDAAmD;AACnD,eAAO,MAAM,YAAY,GAAI,CAAC,SAAS,cAAc,CAAC,KAAK,CAAC,EAAE,CAAC,SAAS,IAAI,CAAC,cAAc,CAAC,EAC1F,KAAK,CAAC,EACN,MAAM,CAAC,EACP,OAAO,WAAW,CAAC,SAAS,CAAC,cAAc,EAAE,CAAC,CAAC,CAAC,EAChD,qBAAqB,cAAc,EACnC,KAAK,WAAW,GAAG,IAAI,EACvB,qBAAmB,SAyBpB,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { safeLocalStorage as c, CLIENT_LS_KEYS as n } from "@scalar/helpers/object/local-storage";
|
|
2
|
+
import { emitCustomEvent as y } from "@scalar/workspace-store/events";
|
|
3
|
+
const l = (r, o, m, { securitySchemes: a }, i, f = !1) => {
|
|
4
|
+
var s;
|
|
5
|
+
if (y(i, "scalar-edit-security-scheme", {
|
|
6
|
+
uid: r,
|
|
7
|
+
path: o,
|
|
8
|
+
value: m
|
|
9
|
+
}), !!f)
|
|
10
|
+
try {
|
|
11
|
+
const e = JSON.parse(c().getItem(n.AUTH) ?? "{}"), t = a[r];
|
|
12
|
+
if (e && (t != null && t.nameKey)) {
|
|
13
|
+
const S = e[s = t.nameKey] || (e[s] = {});
|
|
14
|
+
S[o] = m, c().setItem(n.AUTH, JSON.stringify(e));
|
|
15
|
+
}
|
|
16
|
+
} catch (e) {
|
|
17
|
+
console.error(e);
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
l as updateScheme
|
|
22
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2/blocks/scalar-auth-selector-block/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,+BAA+B,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { AvailableClients } from '@scalar/types/snippetz';
|
|
2
|
+
import type { ClientOption, ClientOptionGroup } from '../../../../v2/blocks/scalar-request-example-block/types';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
/** Client options */
|
|
5
|
+
clientOptions: ClientOptionGroup[];
|
|
6
|
+
/** The currently selected Http Client */
|
|
7
|
+
xSelectedClient?: AvailableClients[number];
|
|
8
|
+
/** List of featured clients */
|
|
9
|
+
featuredClients: ClientOption[];
|
|
10
|
+
/** The id of the tab panel that contains for the non featured clients */
|
|
11
|
+
morePanel?: string;
|
|
12
|
+
};
|
|
13
|
+
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>;
|
|
14
|
+
export default _default;
|
|
15
|
+
//# sourceMappingURL=ClientDropdown.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClientDropdown.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue"],"names":[],"mappings":"AA0PA,OAAO,KAAK,EAAE,gBAAgB,EAAY,MAAM,wBAAwB,CAAA;AAMxE,OAAO,KAAK,EACV,YAAY,EACZ,iBAAiB,EAClB,MAAM,gDAAgD,CAAA;AAEvD,KAAK,WAAW,GAAG;IACjB,qBAAqB;IACrB,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,yCAAyC;IACzC,eAAe,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;IAC1C,+BAA+B;IAC/B,eAAe,EAAE,YAAY,EAAE,CAAA;IAC/B,yEAAyE;IACzE,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAC;;AA+OF,wBAMG"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as y, ref as _, computed as
|
|
2
|
-
import { Tab as
|
|
3
|
-
import { ScalarIcon as b, ScalarCombobox as
|
|
4
|
-
import { freezeElement as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
const
|
|
1
|
+
import { defineComponent as y, ref as _, computed as S, createElementBlock as o, openBlock as i, createVNode as m, Fragment as k, renderList as w, createBlock as p, unref as n, normalizeClass as a, withCtx as u, createElementVNode as r, toDisplayString as h, createCommentVNode as f } from "vue";
|
|
2
|
+
import { Tab as x } from "@headlessui/vue";
|
|
3
|
+
import { ScalarIcon as b, ScalarCombobox as V } from "@scalar/components";
|
|
4
|
+
import { freezeElement as B } from "@scalar/helpers/dom/freeze-element";
|
|
5
|
+
import { emitCustomEvent as z } from "@scalar/workspace-store/events";
|
|
6
|
+
import { isFeaturedClient as g } from "../helpers/featured-clients.js";
|
|
7
|
+
import { findClient as E } from "../../scalar-request-example-block/helpers/find-client.js";
|
|
8
|
+
const K = { class: "client-libraries-text" }, M = {
|
|
9
9
|
"aria-hidden": "true",
|
|
10
10
|
class: "client-libraries-icon__more"
|
|
11
|
-
},
|
|
11
|
+
}, O = {
|
|
12
12
|
key: 1,
|
|
13
13
|
class: "client-libraries-icon",
|
|
14
14
|
height: "50",
|
|
@@ -16,44 +16,44 @@ const M = { class: "client-libraries-text" }, O = {
|
|
|
16
16
|
viewBox: "0 0 50 50",
|
|
17
17
|
width: "50",
|
|
18
18
|
xmlns: "http://www.w3.org/2000/svg"
|
|
19
|
-
},
|
|
19
|
+
}, T = {
|
|
20
20
|
key: 0,
|
|
21
21
|
class: "client-libraries-text client-libraries-text-more"
|
|
22
|
-
},
|
|
23
|
-
__name: "
|
|
22
|
+
}, R = /* @__PURE__ */ y({
|
|
23
|
+
__name: "ClientDropdown",
|
|
24
24
|
props: {
|
|
25
25
|
clientOptions: {},
|
|
26
|
-
|
|
26
|
+
xSelectedClient: {},
|
|
27
27
|
featuredClients: {},
|
|
28
28
|
morePanel: {}
|
|
29
29
|
},
|
|
30
30
|
setup(v) {
|
|
31
|
-
const
|
|
32
|
-
if (!
|
|
31
|
+
const s = _(), d = (e) => `programming-language-${e === "js" ? "javascript" : e}`, C = (e) => {
|
|
32
|
+
if (!s.value)
|
|
33
33
|
return;
|
|
34
|
-
const t =
|
|
34
|
+
const t = B(s.value);
|
|
35
35
|
setTimeout(() => {
|
|
36
36
|
t();
|
|
37
|
-
}, 300),
|
|
38
|
-
|
|
37
|
+
}, 300), z(
|
|
38
|
+
s.value,
|
|
39
39
|
"scalar-update-selected-client",
|
|
40
40
|
e.id
|
|
41
41
|
);
|
|
42
|
-
}, c =
|
|
42
|
+
}, c = S(
|
|
43
43
|
() => {
|
|
44
44
|
var e;
|
|
45
|
-
return (e = v.
|
|
45
|
+
return (e = v.xSelectedClient) == null ? void 0 : e.split("/")[0];
|
|
46
46
|
}
|
|
47
47
|
);
|
|
48
|
-
return (e, t) => (i(),
|
|
48
|
+
return (e, t) => (i(), o("div", {
|
|
49
49
|
ref_key: "containerRef",
|
|
50
|
-
ref:
|
|
50
|
+
ref: s,
|
|
51
51
|
class: "client-libraries-content"
|
|
52
52
|
}, [
|
|
53
|
-
(i(!0),
|
|
53
|
+
(i(!0), o(k, null, w(e.featuredClients, (l) => (i(), p(n(x), {
|
|
54
54
|
key: l.clientKey,
|
|
55
55
|
class: a(["client-libraries rendered-code-sdks", {
|
|
56
|
-
"client-libraries__active": l.id === e.
|
|
56
|
+
"client-libraries__active": l.id === e.xSelectedClient
|
|
57
57
|
}])
|
|
58
58
|
}, {
|
|
59
59
|
default: u(() => [
|
|
@@ -65,13 +65,13 @@ const M = { class: "client-libraries-text" }, O = {
|
|
|
65
65
|
icon: d(l.targetKey)
|
|
66
66
|
}, null, 8, ["icon"])
|
|
67
67
|
], 2),
|
|
68
|
-
r("span",
|
|
68
|
+
r("span", K, h(l.targetTitle), 1)
|
|
69
69
|
]),
|
|
70
70
|
_: 2
|
|
71
71
|
}, 1032, ["class"]))), 128)),
|
|
72
|
-
m(n(
|
|
72
|
+
m(n(V), {
|
|
73
73
|
options: e.clientOptions,
|
|
74
|
-
modelValue: n(E)(e.clientOptions, e.
|
|
74
|
+
modelValue: n(E)(e.clientOptions, e.xSelectedClient),
|
|
75
75
|
"onUpdate:modelValue": t[0] || (t[0] = (l) => C(l)),
|
|
76
76
|
placement: "bottom-end",
|
|
77
77
|
teleport: ""
|
|
@@ -79,11 +79,11 @@ const M = { class: "client-libraries-text" }, O = {
|
|
|
79
79
|
default: u(() => [
|
|
80
80
|
r("button", {
|
|
81
81
|
class: a(["client-libraries client-libraries__select", {
|
|
82
|
-
"client-libraries__active": e.
|
|
82
|
+
"client-libraries__active": e.xSelectedClient && !n(g)(e.xSelectedClient)
|
|
83
83
|
}])
|
|
84
84
|
}, [
|
|
85
|
-
r("div",
|
|
86
|
-
e.
|
|
85
|
+
r("div", M, [
|
|
86
|
+
e.xSelectedClient && !n(g)(e.xSelectedClient) ? (i(), o("div", {
|
|
87
87
|
key: 0,
|
|
88
88
|
class: a(`client-libraries-icon__${c.value}`)
|
|
89
89
|
}, [
|
|
@@ -92,7 +92,7 @@ const M = { class: "client-libraries-text" }, O = {
|
|
|
92
92
|
class: "client-libraries-icon",
|
|
93
93
|
icon: d(c.value)
|
|
94
94
|
}, null, 8, ["icon"])) : f("", !0)
|
|
95
|
-
], 2)) : (i(),
|
|
95
|
+
], 2)) : (i(), o("svg", O, t[1] || (t[1] = [
|
|
96
96
|
r("g", {
|
|
97
97
|
fill: "currentColor",
|
|
98
98
|
"fill-rule": "nonzero"
|
|
@@ -101,7 +101,7 @@ const M = { class: "client-libraries-text" }, O = {
|
|
|
101
101
|
], -1)
|
|
102
102
|
])))
|
|
103
103
|
]),
|
|
104
|
-
e.clientOptions.length ? (i(),
|
|
104
|
+
e.clientOptions.length ? (i(), o("span", T, " More ")) : f("", !0),
|
|
105
105
|
t[2] || (t[2] = r("span", { class: "sr-only" }, "Select from all clients", -1))
|
|
106
106
|
], 2)
|
|
107
107
|
]),
|
|
@@ -111,5 +111,5 @@ const M = { class: "client-libraries-text" }, O = {
|
|
|
111
111
|
}
|
|
112
112
|
});
|
|
113
113
|
export {
|
|
114
|
-
|
|
114
|
+
R as default
|
|
115
115
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { AvailableClients } from '@scalar/snippetz';
|
|
2
|
+
import type { XScalarSdkInstallation } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-sdk-installation';
|
|
3
|
+
import type { ClientOptionGroup } from '../../../../v2/blocks/scalar-request-example-block/types';
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
/** Selected SDK installation instructions */
|
|
6
|
+
xScalarSdkInstallation?: XScalarSdkInstallation['x-scalar-sdk-installation'];
|
|
7
|
+
/** Computed list of all available Http Client options */
|
|
8
|
+
clientOptions: ClientOptionGroup[];
|
|
9
|
+
/** The currently selected Http Client */
|
|
10
|
+
xSelectedClient?: AvailableClients[number];
|
|
11
|
+
};
|
|
12
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {
|
|
13
|
+
selectedClientOption: import("vue").ComputedRef<import("../../../../v2/blocks/scalar-request-example-block/types").ClientOption>;
|
|
14
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
export default _default;
|
|
16
|
+
//# sourceMappingURL=ClientSelector.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClientSelector.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue"],"names":[],"mappings":"AA0MA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAExD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,+EAA+E,CAAA;AAQ3H,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAA;AAIvF,KAAK,WAAW,GAAG;IACjB,6CAA6C;IAC7C,sBAAsB,CAAC,EAAE,sBAAsB,CAAC,2BAA2B,CAAC,CAAA;IAC5E,yDAAyD;IACzD,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,yCAAyC;IACzC,eAAe,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;CAC3C,CAAC;;;;AAuRF,wBAOG"}
|