@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,17 @@
|
|
|
1
|
+
import { type EnvVariable } from '@scalar/api-client/store';
|
|
2
|
+
import type { Environment } from '@scalar/oas-utils/entities/environment';
|
|
3
|
+
import { type Collection, type Oauth2Flow, type SecuritySchemeOauth2, type 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
|
+
flow: Oauth2Flow;
|
|
10
|
+
persistAuth: boolean;
|
|
11
|
+
scheme: SecuritySchemeOauth2;
|
|
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=OAuth2.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OAuth2.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue"],"names":[],"mappings":"AAqRA,OAAO,EAEL,KAAK,WAAW,EAEjB,MAAM,0BAA0B,CAAA;AAGjC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,EAEL,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,oBAAoB,EACzB,KAAK,MAAM,EACZ,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAQrE,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,IAAI,EAAE,UAAU,CAAA;IAChB,WAAW,EAAE,OAAO,CAAA;IACpB,MAAM,EAAE,oBAAoB,CAAA;IAC5B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;AA0hBF,wBAMG"}
|
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
import { defineComponent as T, useTemplateRef as z, createElementBlock as V, openBlock as d, Fragment as U, createElementVNode as g, createBlock as k, createCommentVNode as w, createVNode as a, unref as r, withCtx as o, mergeProps as m, createTextVNode as u } from "vue";
|
|
2
|
+
import { DataTableRow as f } from "@scalar/api-client/components/DataTable";
|
|
3
|
+
import { useWorkspace as P } from "@scalar/api-client/store";
|
|
4
|
+
import { authorizeOauth2 as A } from "@scalar/api-client/views/Request/libs";
|
|
5
|
+
import { useLoadingState as B, ScalarButton as C } from "@scalar/components";
|
|
6
|
+
import { pkceOptions as L } from "@scalar/oas-utils/entities/spec";
|
|
7
|
+
import { useToasts as F } from "@scalar/use-toasts";
|
|
8
|
+
import { updateScheme as I } from "../helpers/update-scheme.js";
|
|
9
|
+
import N from "./OAuthScopesInput.vue.js";
|
|
10
|
+
import p from "./RequestAuthDataTableInput.vue.js";
|
|
11
|
+
const O = { class: "flex h-8 items-center justify-end gap-2 border-t" }, j = { class: "flex h-8 w-full items-center justify-end border-t" }, q = /* @__PURE__ */ T({
|
|
12
|
+
__name: "OAuth2",
|
|
13
|
+
props: {
|
|
14
|
+
collection: {},
|
|
15
|
+
environment: {},
|
|
16
|
+
envVariables: {},
|
|
17
|
+
flow: {},
|
|
18
|
+
persistAuth: { type: Boolean, default: !1 },
|
|
19
|
+
scheme: {},
|
|
20
|
+
server: {},
|
|
21
|
+
workspace: {}
|
|
22
|
+
},
|
|
23
|
+
setup(s) {
|
|
24
|
+
const y = B(), { toast: v } = F(), R = P(), n = (l, e) => I(
|
|
25
|
+
s.scheme.uid,
|
|
26
|
+
l,
|
|
27
|
+
e,
|
|
28
|
+
R,
|
|
29
|
+
$.value,
|
|
30
|
+
s.persistAuth
|
|
31
|
+
), S = async () => {
|
|
32
|
+
var t, b;
|
|
33
|
+
if (y.isLoading || !((t = s.collection) != null && t.uid))
|
|
34
|
+
return;
|
|
35
|
+
if (!s.server) {
|
|
36
|
+
v("No server selected", "error");
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
y.startLoading();
|
|
40
|
+
const [l, e] = await A(
|
|
41
|
+
s.flow,
|
|
42
|
+
s.server,
|
|
43
|
+
(b = s.workspace) == null ? void 0 : b.proxyUrl
|
|
44
|
+
).finally(() => y.stopLoading());
|
|
45
|
+
e ? n(`flows.${s.flow.type}.token`, e) : (console.error(l), v((l == null ? void 0 : l.message) ?? "Failed to authorize", "error"));
|
|
46
|
+
}, i = {
|
|
47
|
+
environment: s.environment,
|
|
48
|
+
envVariables: s.envVariables,
|
|
49
|
+
workspace: s.workspace
|
|
50
|
+
}, $ = z("wrapperRef");
|
|
51
|
+
return (l, e) => (d(), V(U, null, [
|
|
52
|
+
g("div", {
|
|
53
|
+
ref_key: "wrapperRef",
|
|
54
|
+
ref: $
|
|
55
|
+
}, null, 512),
|
|
56
|
+
l.flow.token ? (d(), V(U, { key: 0 }, [
|
|
57
|
+
a(r(f), null, {
|
|
58
|
+
default: o(() => [
|
|
59
|
+
a(p, m(i, {
|
|
60
|
+
class: "border-r-transparent",
|
|
61
|
+
modelValue: l.flow.token,
|
|
62
|
+
placeholder: "QUxMIFlPVVIgQkFTRSBBUkUgQkVMT05HIFRPIFVT",
|
|
63
|
+
type: "password",
|
|
64
|
+
"onUpdate:modelValue": e[0] || (e[0] = (t) => n(`flows.${l.flow.type}.token`, t))
|
|
65
|
+
}), {
|
|
66
|
+
default: o(() => e[10] || (e[10] = [
|
|
67
|
+
u(" Access Token ")
|
|
68
|
+
])),
|
|
69
|
+
_: 1,
|
|
70
|
+
__: [10]
|
|
71
|
+
}, 16, ["modelValue"])
|
|
72
|
+
]),
|
|
73
|
+
_: 1
|
|
74
|
+
}),
|
|
75
|
+
a(r(f), { class: "min-w-full" }, {
|
|
76
|
+
default: o(() => [
|
|
77
|
+
g("div", O, [
|
|
78
|
+
a(r(C), {
|
|
79
|
+
class: "mr-1 p-0 px-2 py-0.5",
|
|
80
|
+
loading: r(y),
|
|
81
|
+
size: "sm",
|
|
82
|
+
variant: "outlined",
|
|
83
|
+
onClick: e[1] || (e[1] = (t) => n(`flows.${l.flow.type}.token`, ""))
|
|
84
|
+
}, {
|
|
85
|
+
default: o(() => e[11] || (e[11] = [
|
|
86
|
+
u(" Clear ")
|
|
87
|
+
])),
|
|
88
|
+
_: 1,
|
|
89
|
+
__: [11]
|
|
90
|
+
}, 8, ["loading"])
|
|
91
|
+
])
|
|
92
|
+
]),
|
|
93
|
+
_: 1
|
|
94
|
+
})
|
|
95
|
+
], 64)) : (d(), V(U, { key: 1 }, [
|
|
96
|
+
a(r(f), null, {
|
|
97
|
+
default: o(() => [
|
|
98
|
+
"authorizationUrl" in l.flow ? (d(), k(p, m({ key: 0 }, i, {
|
|
99
|
+
containerClass: "border-r-0",
|
|
100
|
+
modelValue: l.flow.authorizationUrl,
|
|
101
|
+
placeholder: "https://galaxy.scalar.com/authorize",
|
|
102
|
+
"onUpdate:modelValue": e[2] || (e[2] = (t) => n(`flows.${l.flow.type}.authorizationUrl`, t))
|
|
103
|
+
}), {
|
|
104
|
+
default: o(() => e[12] || (e[12] = [
|
|
105
|
+
u(" Auth URL ")
|
|
106
|
+
])),
|
|
107
|
+
_: 1,
|
|
108
|
+
__: [12]
|
|
109
|
+
}, 16, ["modelValue"])) : w("", !0),
|
|
110
|
+
"tokenUrl" in l.flow ? (d(), k(p, m({ key: 1 }, i, {
|
|
111
|
+
modelValue: l.flow.tokenUrl,
|
|
112
|
+
placeholder: "https://galaxy.scalar.com/token",
|
|
113
|
+
"onUpdate:modelValue": e[3] || (e[3] = (t) => n(`flows.${l.flow.type}.tokenUrl`, t))
|
|
114
|
+
}), {
|
|
115
|
+
default: o(() => e[13] || (e[13] = [
|
|
116
|
+
u(" Token URL ")
|
|
117
|
+
])),
|
|
118
|
+
_: 1,
|
|
119
|
+
__: [13]
|
|
120
|
+
}, 16, ["modelValue"])) : w("", !0)
|
|
121
|
+
]),
|
|
122
|
+
_: 1
|
|
123
|
+
}),
|
|
124
|
+
"x-scalar-redirect-uri" in l.flow ? (d(), k(r(f), { key: 0 }, {
|
|
125
|
+
default: o(() => [
|
|
126
|
+
a(p, m(i, {
|
|
127
|
+
modelValue: l.flow["x-scalar-redirect-uri"],
|
|
128
|
+
placeholder: "https://galaxy.scalar.com/callback",
|
|
129
|
+
"onUpdate:modelValue": e[4] || (e[4] = (t) => n(`flows.${l.flow.type}.x-scalar-redirect-uri`, t))
|
|
130
|
+
}), {
|
|
131
|
+
default: o(() => e[14] || (e[14] = [
|
|
132
|
+
u(" Redirect URL ")
|
|
133
|
+
])),
|
|
134
|
+
_: 1,
|
|
135
|
+
__: [14]
|
|
136
|
+
}, 16, ["modelValue"])
|
|
137
|
+
]),
|
|
138
|
+
_: 1
|
|
139
|
+
})) : w("", !0),
|
|
140
|
+
l.flow.type === "password" ? (d(), V(U, { key: 1 }, [
|
|
141
|
+
a(r(f), null, {
|
|
142
|
+
default: o(() => [
|
|
143
|
+
a(p, m(i, {
|
|
144
|
+
class: "text-c-2",
|
|
145
|
+
modelValue: l.flow.username,
|
|
146
|
+
placeholder: "janedoe",
|
|
147
|
+
"onUpdate:modelValue": e[5] || (e[5] = (t) => n(`flows.${l.flow.type}.username`, t))
|
|
148
|
+
}), {
|
|
149
|
+
default: o(() => e[15] || (e[15] = [
|
|
150
|
+
u(" Username ")
|
|
151
|
+
])),
|
|
152
|
+
_: 1,
|
|
153
|
+
__: [15]
|
|
154
|
+
}, 16, ["modelValue"])
|
|
155
|
+
]),
|
|
156
|
+
_: 1
|
|
157
|
+
}),
|
|
158
|
+
a(r(f), null, {
|
|
159
|
+
default: o(() => [
|
|
160
|
+
a(p, m(i, {
|
|
161
|
+
modelValue: l.flow.password,
|
|
162
|
+
placeholder: "********",
|
|
163
|
+
type: "password",
|
|
164
|
+
"onUpdate:modelValue": e[6] || (e[6] = (t) => n(`flows.${l.flow.type}.password`, t))
|
|
165
|
+
}), {
|
|
166
|
+
default: o(() => e[16] || (e[16] = [
|
|
167
|
+
u(" Password ")
|
|
168
|
+
])),
|
|
169
|
+
_: 1,
|
|
170
|
+
__: [16]
|
|
171
|
+
}, 16, ["modelValue"])
|
|
172
|
+
]),
|
|
173
|
+
_: 1
|
|
174
|
+
})
|
|
175
|
+
], 64)) : w("", !0),
|
|
176
|
+
a(r(f), null, {
|
|
177
|
+
default: o(() => [
|
|
178
|
+
a(p, m(i, {
|
|
179
|
+
modelValue: l.flow["x-scalar-client-id"],
|
|
180
|
+
placeholder: "12345",
|
|
181
|
+
"onUpdate:modelValue": e[7] || (e[7] = (t) => n(`flows.${l.flow.type}.x-scalar-client-id`, t))
|
|
182
|
+
}), {
|
|
183
|
+
default: o(() => e[17] || (e[17] = [
|
|
184
|
+
u(" Client ID ")
|
|
185
|
+
])),
|
|
186
|
+
_: 1,
|
|
187
|
+
__: [17]
|
|
188
|
+
}, 16, ["modelValue"])
|
|
189
|
+
]),
|
|
190
|
+
_: 1
|
|
191
|
+
}),
|
|
192
|
+
"clientSecret" in l.flow ? (d(), k(r(f), { key: 2 }, {
|
|
193
|
+
default: o(() => [
|
|
194
|
+
a(p, m(i, {
|
|
195
|
+
modelValue: l.flow.clientSecret,
|
|
196
|
+
placeholder: "XYZ123",
|
|
197
|
+
type: "password",
|
|
198
|
+
"onUpdate:modelValue": e[8] || (e[8] = (t) => n(`flows.${l.flow.type}.clientSecret`, t))
|
|
199
|
+
}), {
|
|
200
|
+
default: o(() => e[18] || (e[18] = [
|
|
201
|
+
u(" Client Secret ")
|
|
202
|
+
])),
|
|
203
|
+
_: 1,
|
|
204
|
+
__: [18]
|
|
205
|
+
}, 16, ["modelValue"])
|
|
206
|
+
]),
|
|
207
|
+
_: 1
|
|
208
|
+
})) : w("", !0),
|
|
209
|
+
"x-usePkce" in l.flow ? (d(), k(r(f), { key: 3 }, {
|
|
210
|
+
default: o(() => [
|
|
211
|
+
a(p, m(i, {
|
|
212
|
+
enum: r(L),
|
|
213
|
+
modelValue: l.flow["x-usePkce"],
|
|
214
|
+
readOnly: "",
|
|
215
|
+
"onUpdate:modelValue": e[9] || (e[9] = (t) => n(
|
|
216
|
+
`flows.${l.flow.type}.x-usePkce`,
|
|
217
|
+
t
|
|
218
|
+
))
|
|
219
|
+
}), {
|
|
220
|
+
default: o(() => e[19] || (e[19] = [
|
|
221
|
+
u(" Use PKCE ")
|
|
222
|
+
])),
|
|
223
|
+
_: 1,
|
|
224
|
+
__: [19]
|
|
225
|
+
}, 16, ["enum", "modelValue"])
|
|
226
|
+
]),
|
|
227
|
+
_: 1
|
|
228
|
+
})) : w("", !0),
|
|
229
|
+
Object.keys(l.flow.scopes ?? {}).length ? (d(), k(r(f), { key: 4 }, {
|
|
230
|
+
default: o(() => [
|
|
231
|
+
a(N, {
|
|
232
|
+
flow: l.flow,
|
|
233
|
+
updateScheme: n
|
|
234
|
+
}, null, 8, ["flow"])
|
|
235
|
+
]),
|
|
236
|
+
_: 1
|
|
237
|
+
})) : w("", !0)
|
|
238
|
+
], 64)),
|
|
239
|
+
l.flow.token ? w("", !0) : (d(), k(r(f), {
|
|
240
|
+
key: 2,
|
|
241
|
+
class: "min-w-full"
|
|
242
|
+
}, {
|
|
243
|
+
default: o(() => [
|
|
244
|
+
g("div", j, [
|
|
245
|
+
a(r(C), {
|
|
246
|
+
class: "mr-0.75 p-0 px-2 py-0.5",
|
|
247
|
+
loading: r(y),
|
|
248
|
+
size: "sm",
|
|
249
|
+
variant: "outlined",
|
|
250
|
+
onClick: S
|
|
251
|
+
}, {
|
|
252
|
+
default: o(() => e[20] || (e[20] = [
|
|
253
|
+
u(" Authorize ")
|
|
254
|
+
])),
|
|
255
|
+
_: 1,
|
|
256
|
+
__: [20]
|
|
257
|
+
}, 8, ["loading"])
|
|
258
|
+
])
|
|
259
|
+
]),
|
|
260
|
+
_: 1
|
|
261
|
+
}))
|
|
262
|
+
], 64));
|
|
263
|
+
}
|
|
264
|
+
});
|
|
265
|
+
export {
|
|
266
|
+
q as default
|
|
267
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { UpdateScheme } from '@scalar/api-client/store';
|
|
2
|
+
import type { Oauth2Flow } from '@scalar/oas-utils/entities/spec';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
flow: Oauth2Flow;
|
|
5
|
+
updateScheme: UpdateScheme;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
export default _default;
|
|
9
|
+
//# sourceMappingURL=OAuthScopesInput.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OAuthScopesInput.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue"],"names":[],"mappings":"AA6IA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAE5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AAGjE,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,UAAU,CAAA;IAChB,YAAY,EAAE,YAAY,CAAA;CAC3B,CAAC;;AA6UF,wBAMG"}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { defineComponent as O, computed as S, createBlock as p, openBlock as n, unref as s, withCtx as c, createElementVNode as i, createVNode as u, normalizeClass as T, toDisplayString as m, createCommentVNode as w, withModifiers as k, createTextVNode as x, createElementBlock as y, Fragment as $, renderList as j } from "vue";
|
|
2
|
+
import { Disclosure as z, DisclosureButton as N, DisclosurePanel as E } from "@headlessui/vue";
|
|
3
|
+
import { DataTableCell as b, DataTableRow as F, DataTableCheckbox as I } from "@scalar/api-client/components/DataTable";
|
|
4
|
+
import { ScalarButton as C, ScalarIcon as R } from "@scalar/components";
|
|
5
|
+
const L = { class: "flex h-fit w-full" }, M = { class: "flex-1" }, P = { class: "flex items-center gap-1.75" }, U = {
|
|
6
|
+
class: "grid auto-rows-auto",
|
|
7
|
+
style: { gridTemplateColumns: "1fr auto" }
|
|
8
|
+
}, q = { key: 0 }, G = { class: "font-code text-xs" }, W = /* @__PURE__ */ O({
|
|
9
|
+
__name: "OAuthScopesInput",
|
|
10
|
+
props: {
|
|
11
|
+
flow: {},
|
|
12
|
+
updateScheme: { type: Function }
|
|
13
|
+
},
|
|
14
|
+
setup(l) {
|
|
15
|
+
const D = S(
|
|
16
|
+
() => {
|
|
17
|
+
var e;
|
|
18
|
+
return Object.entries(((e = l.flow) == null ? void 0 : e.scopes) ?? {}).map(([t, o]) => ({
|
|
19
|
+
id: t,
|
|
20
|
+
label: t,
|
|
21
|
+
description: o
|
|
22
|
+
}));
|
|
23
|
+
}
|
|
24
|
+
), d = S(() => {
|
|
25
|
+
var e;
|
|
26
|
+
return ((e = l.flow) == null ? void 0 : e.selectedScopes) || [];
|
|
27
|
+
});
|
|
28
|
+
function V(e, t) {
|
|
29
|
+
t ? l.updateScheme(`flows.${l.flow.type}.selectedScopes`, [
|
|
30
|
+
...d.value,
|
|
31
|
+
e
|
|
32
|
+
]) : l.updateScheme(
|
|
33
|
+
`flows.${l.flow.type}.selectedScopes`,
|
|
34
|
+
d.value.filter((o) => o !== e)
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
const v = S(
|
|
38
|
+
() => {
|
|
39
|
+
var e, t, o;
|
|
40
|
+
return ((t = (e = l.flow) == null ? void 0 : e.selectedScopes) == null ? void 0 : t.length) === Object.keys(((o = l.flow) == null ? void 0 : o.scopes) ?? {}).length;
|
|
41
|
+
}
|
|
42
|
+
), A = () => {
|
|
43
|
+
var e;
|
|
44
|
+
l.updateScheme(
|
|
45
|
+
`flows.${l.flow.type}.selectedScopes`,
|
|
46
|
+
Object.keys(((e = l.flow) == null ? void 0 : e.scopes) ?? {})
|
|
47
|
+
);
|
|
48
|
+
}, B = () => {
|
|
49
|
+
l.updateScheme(`flows.${l.flow.type}.selectedScopes`, []);
|
|
50
|
+
};
|
|
51
|
+
return (e, t) => (n(), p(s(b), { class: "h-auto !max-h-[initial] min-h-8 items-center" }, {
|
|
52
|
+
default: c(() => [
|
|
53
|
+
i("div", L, [
|
|
54
|
+
t[2] || (t[2] = i("div", { class: "text-c-1 h-full items-center" }, null, -1)),
|
|
55
|
+
u(s(z), {
|
|
56
|
+
as: "div",
|
|
57
|
+
class: "bl flex w-full flex-col"
|
|
58
|
+
}, {
|
|
59
|
+
default: c(() => {
|
|
60
|
+
var o, g;
|
|
61
|
+
return [
|
|
62
|
+
u(s(N), {
|
|
63
|
+
class: T([
|
|
64
|
+
"group/scopes-accordion hover:text-c-1 flex h-auto min-h-8 cursor-pointer items-center gap-1.5 pr-2.25 pl-3 text-left",
|
|
65
|
+
(((g = (o = e.flow) == null ? void 0 : o.selectedScopes) == null ? void 0 : g.length) || 0) > 0 ? "text-c-1" : "text-c-3"
|
|
66
|
+
])
|
|
67
|
+
}, {
|
|
68
|
+
default: c(({ open: a }) => {
|
|
69
|
+
var f, r, h;
|
|
70
|
+
return [
|
|
71
|
+
i("div", M, " Scopes Selected " + m(((r = (f = e.flow) == null ? void 0 : f.selectedScopes) == null ? void 0 : r.length) || 0) + " / " + m(Object.keys(((h = e.flow) == null ? void 0 : h.scopes) ?? {}).length || 0), 1),
|
|
72
|
+
i("div", P, [
|
|
73
|
+
v.value ? (n(), p(s(C), {
|
|
74
|
+
key: 0,
|
|
75
|
+
class: "pr-0.75 pl-1 transition-none",
|
|
76
|
+
size: "sm",
|
|
77
|
+
variant: "ghost",
|
|
78
|
+
onClick: k(B, ["stop"])
|
|
79
|
+
}, {
|
|
80
|
+
default: c(() => t[0] || (t[0] = [
|
|
81
|
+
x(" Deselect All ")
|
|
82
|
+
])),
|
|
83
|
+
_: 1,
|
|
84
|
+
__: [0]
|
|
85
|
+
})) : w("", !0),
|
|
86
|
+
v.value ? w("", !0) : (n(), p(s(C), {
|
|
87
|
+
key: 1,
|
|
88
|
+
class: "pr-0.75 pl-1 transition-none",
|
|
89
|
+
size: "sm",
|
|
90
|
+
variant: "ghost",
|
|
91
|
+
onClick: k(A, ["stop"])
|
|
92
|
+
}, {
|
|
93
|
+
default: c(() => t[1] || (t[1] = [
|
|
94
|
+
x(" Select All ")
|
|
95
|
+
])),
|
|
96
|
+
_: 1,
|
|
97
|
+
__: [1]
|
|
98
|
+
})),
|
|
99
|
+
u(s(R), {
|
|
100
|
+
class: "text-c-3 group-hover/scopes-accordion:text-c-2",
|
|
101
|
+
icon: a ? "ChevronDown" : "ChevronRight",
|
|
102
|
+
size: "md"
|
|
103
|
+
}, null, 8, ["icon"])
|
|
104
|
+
])
|
|
105
|
+
];
|
|
106
|
+
}),
|
|
107
|
+
_: 1
|
|
108
|
+
}, 8, ["class"]),
|
|
109
|
+
u(s(E), { as: "template" }, {
|
|
110
|
+
default: c(() => [
|
|
111
|
+
i("table", U, [
|
|
112
|
+
(n(!0), y($, null, j(D.value, ({ id: a, label: f, description: r }) => (n(), p(s(F), {
|
|
113
|
+
key: a,
|
|
114
|
+
class: "text-c-2",
|
|
115
|
+
onClick: (h) => V(a, !d.value.includes(a))
|
|
116
|
+
}, {
|
|
117
|
+
default: c(() => [
|
|
118
|
+
u(s(b), { class: "hover:text-c-1 box-border !max-h-[initial] w-full cursor-pointer px-3 py-1.5" }, {
|
|
119
|
+
default: c(() => [
|
|
120
|
+
r ? (n(), y("div", q, [
|
|
121
|
+
i("span", G, m(f), 1),
|
|
122
|
+
x(" – " + m(r), 1)
|
|
123
|
+
])) : w("", !0)
|
|
124
|
+
]),
|
|
125
|
+
_: 2
|
|
126
|
+
}, 1024),
|
|
127
|
+
u(s(I), {
|
|
128
|
+
modelValue: d.value.includes(a),
|
|
129
|
+
"onUpdate:modelValue": () => {
|
|
130
|
+
}
|
|
131
|
+
}, null, 8, ["modelValue"])
|
|
132
|
+
]),
|
|
133
|
+
_: 2
|
|
134
|
+
}, 1032, ["onClick"]))), 128))
|
|
135
|
+
])
|
|
136
|
+
]),
|
|
137
|
+
_: 1
|
|
138
|
+
})
|
|
139
|
+
];
|
|
140
|
+
}),
|
|
141
|
+
_: 1
|
|
142
|
+
})
|
|
143
|
+
])
|
|
144
|
+
]),
|
|
145
|
+
_: 1
|
|
146
|
+
}));
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
export {
|
|
150
|
+
W as default
|
|
151
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
selectedSchemeOptions: {
|
|
12
|
+
id: string;
|
|
13
|
+
label: string;
|
|
14
|
+
}[];
|
|
15
|
+
server: Server | undefined;
|
|
16
|
+
workspace: Workspace;
|
|
17
|
+
};
|
|
18
|
+
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>;
|
|
19
|
+
export default _default;
|
|
20
|
+
//# sourceMappingURL=RequestAuthDataTable.vue.d.ts.map
|
package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RequestAuthDataTable.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue"],"names":[],"mappings":"AAgOA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AAE3D,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;AAMrE,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,qBAAqB,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;IACtD,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;AAkPF,wBAMG"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { defineComponent as k, ref as m, computed as h, watch as S, createElementBlock as l, openBlock as o, withModifiers as g, createCommentVNode as p, createBlock as w, createVNode as v, normalizeClass as s, Fragment as x, renderList as A, createElementVNode as f, toDisplayString as C, unref as c, withCtx as V } from "vue";
|
|
2
|
+
import { DataTable as O } from "@scalar/api-client/components/DataTable";
|
|
3
|
+
import { useModal as B } from "@scalar/components";
|
|
4
|
+
import z from "./DeleteRequestAuthModal.vue.js";
|
|
5
|
+
import M from "./RequestAuthTab.vue.js";
|
|
6
|
+
const N = ["onClick"], $ = { class: "relative z-10 font-medium whitespace-nowrap" }, D = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "absolute inset-x-1 bottom-[var(--scalar-border-width)] left-1/2 z-1 h-px w-full -translate-x-1/2 bg-current"
|
|
9
|
+
}, I = /* @__PURE__ */ k({
|
|
10
|
+
__name: "RequestAuthDataTable",
|
|
11
|
+
props: {
|
|
12
|
+
collection: {},
|
|
13
|
+
environment: {},
|
|
14
|
+
envVariables: {},
|
|
15
|
+
layout: { default: "client" },
|
|
16
|
+
persistAuth: { type: Boolean, default: !1 },
|
|
17
|
+
selectedSchemeOptions: { default: () => [] },
|
|
18
|
+
server: {},
|
|
19
|
+
workspace: {}
|
|
20
|
+
},
|
|
21
|
+
setup(n) {
|
|
22
|
+
const u = B(), b = m(
|
|
23
|
+
null
|
|
24
|
+
), t = m(0), d = h(() => {
|
|
25
|
+
if (!n.selectedSchemeOptions || n.selectedSchemeOptions.length === 0)
|
|
26
|
+
return [];
|
|
27
|
+
const e = n.selectedSchemeOptions[t.value];
|
|
28
|
+
if (!e)
|
|
29
|
+
return [];
|
|
30
|
+
const r = e.id.split(",").filter(Boolean);
|
|
31
|
+
return r.length > 1 ? r : [e.id];
|
|
32
|
+
}), y = h(() => d.value.length > 0);
|
|
33
|
+
return S(
|
|
34
|
+
() => n.selectedSchemeOptions,
|
|
35
|
+
(e) => {
|
|
36
|
+
(!e || !e[t.value]) && (t.value = Math.max(0, t.value - 1));
|
|
37
|
+
}
|
|
38
|
+
), (e, r) => (o(), l("form", {
|
|
39
|
+
onSubmit: r[1] || (r[1] = g(() => {
|
|
40
|
+
}, ["prevent"]))
|
|
41
|
+
}, [
|
|
42
|
+
e.selectedSchemeOptions.length > 1 ? (o(), l("div", {
|
|
43
|
+
key: 0,
|
|
44
|
+
class: s(["box-content flex flex-wrap gap-x-2.5 overflow-hidden border border-b-0 px-3", e.layout === "client" && "border-x-0"])
|
|
45
|
+
}, [
|
|
46
|
+
(o(!0), l(x, null, A(e.selectedSchemeOptions, (a, i) => (o(), l("div", {
|
|
47
|
+
key: a.id,
|
|
48
|
+
class: s(["relative z-1 -mb-[var(--scalar-border-width)] flex h-8 cursor-pointer", [t.value === i ? "text-c-1" : "text-c-3"]])
|
|
49
|
+
}, [
|
|
50
|
+
f("button", {
|
|
51
|
+
class: "floating-bg relative cursor-pointer border-b-[1px] border-transparent py-1 text-sm font-medium",
|
|
52
|
+
type: "button",
|
|
53
|
+
onClick: (E) => t.value = i
|
|
54
|
+
}, [
|
|
55
|
+
f("span", $, C(a.label), 1)
|
|
56
|
+
], 8, N),
|
|
57
|
+
t.value === i ? (o(), l("div", D)) : p("", !0)
|
|
58
|
+
], 2))), 128))
|
|
59
|
+
], 2)) : p("", !0),
|
|
60
|
+
y.value ? (o(), w(c(O), {
|
|
61
|
+
key: 1,
|
|
62
|
+
class: s(["flex-1", e.layout === "reference" && "bg-b-1 rounded-b-lg border border-t-0"]),
|
|
63
|
+
columns: [""],
|
|
64
|
+
presentational: ""
|
|
65
|
+
}, {
|
|
66
|
+
default: V(() => [
|
|
67
|
+
v(M, {
|
|
68
|
+
collection: e.collection,
|
|
69
|
+
envVariables: e.envVariables,
|
|
70
|
+
environment: e.environment,
|
|
71
|
+
layout: e.layout,
|
|
72
|
+
persistAuth: e.persistAuth,
|
|
73
|
+
securitySchemeUids: d.value,
|
|
74
|
+
server: e.server,
|
|
75
|
+
workspace: e.workspace
|
|
76
|
+
}, null, 8, ["collection", "envVariables", "environment", "layout", "persistAuth", "securitySchemeUids", "server", "workspace"])
|
|
77
|
+
]),
|
|
78
|
+
_: 1
|
|
79
|
+
}, 8, ["class"])) : (o(), l("div", {
|
|
80
|
+
key: 2,
|
|
81
|
+
class: s([
|
|
82
|
+
"text-c-3 bg-b-1 flex min-h-16 items-center justify-center border-t px-4 text-sm",
|
|
83
|
+
e.layout === "reference" && "min-h-[calc(4rem+0.5px)] rounded-b-lg border"
|
|
84
|
+
])
|
|
85
|
+
}, " No authentication selected ", 2)),
|
|
86
|
+
v(z, {
|
|
87
|
+
scheme: b.value,
|
|
88
|
+
state: c(u),
|
|
89
|
+
onClose: r[0] || (r[0] = (a) => c(u).hide())
|
|
90
|
+
}, null, 8, ["scheme", "state"])
|
|
91
|
+
], 32));
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
export {
|
|
95
|
+
I as default
|
|
96
|
+
};
|
package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { EnvVariable } from '@scalar/api-client/store';
|
|
2
|
+
import type { Environment } from '@scalar/oas-utils/entities/environment';
|
|
3
|
+
import type { Workspace } from '@scalar/oas-utils/entities/workspace';
|
|
4
|
+
import { type MaybeRefOrGetter } from 'vue';
|
|
5
|
+
/**
|
|
6
|
+
* Vue class prop type
|
|
7
|
+
*
|
|
8
|
+
* Vue seems to just use any behind the scenes
|
|
9
|
+
*
|
|
10
|
+
* @see https://vuejs.org/guide/essentials/class-and-style.html#class-and-style-bindings
|
|
11
|
+
*/
|
|
12
|
+
export type VueClassProp = MaybeRefOrGetter<string | Record<string, boolean> | (string | Record<string, boolean>)[] | false>;
|
|
13
|
+
type __VLS_Props = {
|
|
14
|
+
type?: string;
|
|
15
|
+
containerClass?: VueClassProp;
|
|
16
|
+
required?: boolean;
|
|
17
|
+
modelValue: string | number;
|
|
18
|
+
readOnly?: boolean;
|
|
19
|
+
environment: Environment;
|
|
20
|
+
envVariables: EnvVariable[];
|
|
21
|
+
workspace: Workspace;
|
|
22
|
+
};
|
|
23
|
+
declare var __VLS_13: {}, __VLS_15: {};
|
|
24
|
+
type __VLS_Slots = {} & {
|
|
25
|
+
default?: (props: typeof __VLS_13) => any;
|
|
26
|
+
} & {
|
|
27
|
+
icon?: (props: typeof __VLS_15) => any;
|
|
28
|
+
};
|
|
29
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
30
|
+
"update:modelValue": (v: string) => any;
|
|
31
|
+
inputFocus: () => any;
|
|
32
|
+
inputBlur: () => any;
|
|
33
|
+
selectVariable: (value: string) => any;
|
|
34
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
35
|
+
"onUpdate:modelValue"?: ((v: string) => any) | undefined;
|
|
36
|
+
onInputFocus?: (() => any) | undefined;
|
|
37
|
+
onInputBlur?: (() => any) | undefined;
|
|
38
|
+
onSelectVariable?: ((value: string) => any) | undefined;
|
|
39
|
+
}>, {
|
|
40
|
+
required: boolean;
|
|
41
|
+
readOnly: boolean;
|
|
42
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
43
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
44
|
+
export default _default;
|
|
45
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
46
|
+
new (): {
|
|
47
|
+
$slots: S;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=RequestAuthDataTableInput.vue.d.ts.map
|
package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RequestAuthDataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue"],"names":[],"mappings":"AA2EA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AACrE,OAAO,EAAS,KAAK,gBAAgB,EAAE,MAAM,KAAK,CAAA;AAElD;;;;;;GAMG;AACH,MAAM,MAAM,YAAY,GAAG,gBAAgB,CACvC,MAAM,GACN,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACvB,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAAE,GACpC,KAAK,CACR,CAAA;AAED,KAAK,WAAW,GAAG;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,cAAc,CAAC,EAAE,YAAY,CAAA;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,EAAE,MAAM,GAAG,MAAM,CAAA;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;AAkGJ,QAAA,IAAI,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AAC/C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAyB7C,QAAA,MAAM,eAAe;;;;;;;;;;;cApIN,OAAO;cAEP,OAAO;6EA0IpB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|