@scalar/api-reference 1.34.6 → 1.35.1
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 +68 -0
- package/dist/browser/standalone.js +30773 -30680
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/Anchor/Anchor.vue.d.ts +6 -11
- package/dist/components/Anchor/Anchor.vue.d.ts.map +1 -1
- package/dist/components/Anchor/WithBreadcrumb.vue.d.ts +11 -13
- package/dist/components/Anchor/WithBreadcrumb.vue.d.ts.map +1 -1
- package/dist/components/ApiReference.vue.d.ts +14 -1
- package/dist/components/ApiReference.vue.d.ts.map +1 -1
- package/dist/components/ApiReference.vue.js +24 -10
- package/dist/components/ApiReferenceLayout.vue.d.ts +7 -31
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +2 -2
- package/dist/components/ApiReferenceLayout.vue2.js +179 -191
- package/dist/components/Badge/Badge.vue.d.ts +6 -11
- package/dist/components/Badge/Badge.vue.d.ts.map +1 -1
- package/dist/components/ClassicHeader.vue.d.ts +8 -12
- package/dist/components/ClassicHeader.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts +1 -3
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts +1 -1
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/featured-clients.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/index.d.ts +1 -1
- package/dist/components/Content/Content.vue.d.ts +9 -12
- package/dist/components/Content/Content.vue.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.js +180 -36
- package/dist/components/Content/IntroductionSection.vue.d.ts +18 -0
- package/dist/components/Content/IntroductionSection.vue.d.ts.map +1 -0
- package/dist/components/Content/IntroductionSection.vue.js +26 -0
- package/dist/components/Content/IntroductionSection.vue2.js +4 -0
- package/dist/components/Content/Models/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/ModernLayout.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/ModernLayout.vue.js +1 -1
- package/dist/components/Content/Models/ModernLayout.vue2.js +6 -6
- package/dist/components/Content/Operations/TraversedEntry.vue.d.ts.map +1 -1
- package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts +1 -5
- package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts.map +1 -1
- package/dist/components/Content/Operations/TraversedEntryContainer.vue.js +28 -35
- package/dist/components/Content/Operations/get-current-index.d.ts.map +1 -1
- package/dist/components/Content/Schema/RenderString.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaComposition.vue.d.ts +1 -1
- package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.d.ts +1 -1
- package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaEnumValues.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue2.js +1 -1
- package/dist/components/Content/Schema/SchemaPropertyDescription.vue.d.ts +6 -11
- package/dist/components/Content/Schema/SchemaPropertyDescription.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyDetail.vue.d.ts +10 -13
- package/dist/components/Content/Schema/SchemaPropertyDetail.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts +6 -11
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/get-schema-type.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/is-type-object.d.ts.map +1 -1
- package/dist/components/Content/Tags/ClassicLayout.vue.d.ts +6 -11
- package/dist/components/Content/Tags/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/components/Content/Tags/ModernLayout.vue.d.ts +5 -63
- package/dist/components/Content/Tags/ModernLayout.vue.d.ts.map +1 -1
- package/dist/components/Content/Tags/Tag.vue.d.ts +7 -11
- package/dist/components/Content/Tags/Tag.vue.d.ts.map +1 -1
- package/dist/components/Content/Tags/TagSection.vue.d.ts.map +1 -1
- package/dist/components/Content/Tags/TagSection.vue.js +1 -1
- package/dist/components/GettingStarted.vue.d.ts +1 -1
- package/dist/components/GettingStarted.vue.d.ts.map +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +5 -10
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
- package/dist/components/IntersectionObserver.vue.d.ts +5 -12
- package/dist/components/IntersectionObserver.vue.d.ts.map +1 -1
- package/dist/components/Lazy/Lazy.vue.d.ts +5 -10
- package/dist/components/Lazy/Lazy.vue.d.ts.map +1 -1
- package/dist/components/LinkList/LinkList.vue.d.ts +6 -13
- package/dist/components/LinkList/LinkList.vue.d.ts.map +1 -1
- package/dist/components/LoadingSkeleton.vue.d.ts.map +1 -1
- package/dist/components/MobileHeader.vue.d.ts +6 -11
- package/dist/components/MobileHeader.vue.d.ts.map +1 -1
- package/dist/components/OperationPath.vue.d.ts +1 -1
- package/dist/components/OperationPath.vue.d.ts.map +1 -1
- package/dist/components/OperationsList/OperationsList.vue.d.ts.map +1 -1
- package/dist/components/OperationsList/OperationsListItem.vue.d.ts +1 -1
- package/dist/components/OperationsList/OperationsListItem.vue.d.ts.map +1 -1
- package/dist/components/ScreenReader.vue.d.ts +7 -11
- package/dist/components/ScreenReader.vue.d.ts.map +1 -1
- package/dist/components/Section/CompactSection.vue.d.ts +8 -12
- package/dist/components/Section/CompactSection.vue.d.ts.map +1 -1
- package/dist/components/Section/Section.vue.d.ts +5 -10
- package/dist/components/Section/Section.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionAccordion.vue.d.ts +13 -66
- package/dist/components/Section/SectionAccordion.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionColumn.vue.d.ts +6 -11
- package/dist/components/Section/SectionColumn.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionColumns.vue.d.ts +6 -11
- package/dist/components/Section/SectionColumns.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionContainer.vue.d.ts +7 -11
- package/dist/components/Section/SectionContainer.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionContainerAccordion.vue.d.ts +8 -12
- package/dist/components/Section/SectionContainerAccordion.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionContent.vue.d.ts +6 -11
- package/dist/components/Section/SectionContent.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionHeader.vue.d.ts +8 -12
- package/dist/components/Section/SectionHeader.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionHeaderTag.vue.d.ts +5 -10
- package/dist/components/Section/SectionHeaderTag.vue.d.ts.map +1 -1
- package/dist/components/SectionFlare/SectionFlare.vue.d.ts.map +1 -1
- package/dist/components/ShowMoreButton.vue.d.ts +1 -1
- package/dist/components/ShowMoreButton.vue.d.ts.map +1 -1
- package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/OperationResponses.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterHeaders.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterList.vue.d.ts +5 -10
- package/dist/features/Operation/components/ParameterList.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/RequestBody.vue.d.ts +5 -10
- package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +2 -2
- package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/callbacks/Callback.vue.js +2 -2
- package/dist/features/Operation/components/callbacks/Callback.vue2.js +2 -2
- package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts +2 -2
- package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/callbacks/Callbacks.vue.js +2 -2
- package/dist/features/Operation/helpers/combine-params.d.ts +1 -2
- package/dist/features/Operation/helpers/combine-params.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +1 -3
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue.js +1 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue2.js +35 -34
- package/dist/features/Operation/layouts/ClassicLayout.vue3.js +2 -2
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +1 -3
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
- package/dist/features/Operation/layouts/ModernLayout.vue2.js +28 -27
- package/dist/features/Search/components/SearchButton.vue.d.ts.map +1 -1
- package/dist/features/Search/components/SearchModal.vue.d.ts.map +1 -1
- package/dist/features/api-client-modal/ApiClientModal.vue.d.ts +1 -1
- package/dist/features/api-client-modal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/features/api-client-modal/ApiClientModal.vue.js +50 -53
- package/dist/features/api-client-modal/useApiClient.d.ts +556 -556
- 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 +19 -17
- 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,72 @@
|
|
|
1
|
+
import { defineComponent as x, useId as g, computed as k, watch as y, nextTick as V, createElementBlock as h, openBlock as n, Fragment as C, createElementVNode as m, createVNode as R, createBlock as f, createCommentVNode as p, normalizeClass as _, unref as o } from "vue";
|
|
2
|
+
import { ServerVariablesForm as B } from "@scalar/api-client/components/Server";
|
|
3
|
+
import { ScalarMarkdown as E } from "@scalar/components";
|
|
4
|
+
import { emitCustomEvent as b } from "@scalar/workspace-store/events";
|
|
5
|
+
import { templateRef as N } from "@vueuse/core";
|
|
6
|
+
import F from "./Selector.vue.js";
|
|
7
|
+
const U = ["id"], w = {}, q = /* @__PURE__ */ x({
|
|
8
|
+
...w,
|
|
9
|
+
__name: "ServerSelector",
|
|
10
|
+
props: {
|
|
11
|
+
xSelectedServer: {},
|
|
12
|
+
servers: {}
|
|
13
|
+
},
|
|
14
|
+
setup(t) {
|
|
15
|
+
const s = g(), d = (e) => {
|
|
16
|
+
b(a.value, "scalar-update-selected-server", {
|
|
17
|
+
value: e
|
|
18
|
+
});
|
|
19
|
+
}, S = (e, l) => {
|
|
20
|
+
a.value && b(
|
|
21
|
+
a.value,
|
|
22
|
+
"scalar-update-selected-server-variables",
|
|
23
|
+
{ key: e, value: l }
|
|
24
|
+
);
|
|
25
|
+
}, r = k(() => t.servers.find((e) => e.url === t.xSelectedServer));
|
|
26
|
+
y(
|
|
27
|
+
() => t.servers,
|
|
28
|
+
(e) => {
|
|
29
|
+
e.length && (t.xSelectedServer || V(() => {
|
|
30
|
+
d(e[0].url);
|
|
31
|
+
}));
|
|
32
|
+
},
|
|
33
|
+
{ immediate: !0 }
|
|
34
|
+
);
|
|
35
|
+
const a = N("containerRef");
|
|
36
|
+
return (e, l) => {
|
|
37
|
+
var u, i, c, v;
|
|
38
|
+
return n(), h(C, null, [
|
|
39
|
+
l[0] || (l[0] = m("label", { class: "bg-b-2 flex h-8 items-center rounded-t-lg border border-b-0 px-3 py-2.5 font-medium" }, " Server ", -1)),
|
|
40
|
+
m("div", {
|
|
41
|
+
id: o(s),
|
|
42
|
+
ref_key: "containerRef",
|
|
43
|
+
ref: a,
|
|
44
|
+
class: _(["border", {
|
|
45
|
+
"rounded-b-lg": !((u = r.value) != null && u.description) && !((i = r.value) != null && i.variables)
|
|
46
|
+
}])
|
|
47
|
+
}, [
|
|
48
|
+
e.servers.length ? (n(), f(F, {
|
|
49
|
+
key: 0,
|
|
50
|
+
servers: e.servers,
|
|
51
|
+
target: o(s),
|
|
52
|
+
xSelectedServer: e.xSelectedServer,
|
|
53
|
+
"onUpdate:modelValue": d
|
|
54
|
+
}, null, 8, ["servers", "target", "xSelectedServer"])) : p("", !0)
|
|
55
|
+
], 10, U),
|
|
56
|
+
R(o(B), {
|
|
57
|
+
layout: "reference",
|
|
58
|
+
variables: (c = r.value) == null ? void 0 : c.variables,
|
|
59
|
+
"onUpdate:variable": S
|
|
60
|
+
}, null, 8, ["variables"]),
|
|
61
|
+
(v = r.value) != null && v.description ? (n(), f(o(E), {
|
|
62
|
+
key: 0,
|
|
63
|
+
class: "text-c-3 rounded-b-lg border border-t-0 px-3 py-1.5",
|
|
64
|
+
value: r.value.description
|
|
65
|
+
}, null, 8, ["value"])) : p("", !0)
|
|
66
|
+
], 64);
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
export {
|
|
71
|
+
q as default
|
|
72
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2/blocks/scalar-server-selector-block/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,iCAAiC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-document-name.d.ts","sourceRoot":"","sources":["../../../src/v2/helpers/get-document-name.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAA;
|
|
1
|
+
{"version":3,"file":"get-document-name.d.ts","sourceRoot":"","sources":["../../../src/v2/helpers/get-document-name.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,eAAe,EAAc,MAAM,8DAA8D,CAAA;AAE/G;;;;;;;;GAQG;AACH,eAAO,MAAM,eAAe,GAC1B,0BAAyB,OAAO,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC,SAAS,CAAM,EAClE,YAAY,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,KAC1C,MA2BF,CAAA"}
|
|
@@ -51,8 +51,8 @@ export declare const mapConfiguration: (config: Partial<ApiReferenceConfiguratio
|
|
|
51
51
|
generateOperationSlug: ((args_0: {
|
|
52
52
|
path: string;
|
|
53
53
|
method: string;
|
|
54
|
-
operationId?: string | undefined;
|
|
55
54
|
summary?: string | undefined;
|
|
55
|
+
operationId?: string | undefined;
|
|
56
56
|
}, ...args: unknown[]) => string) | undefined;
|
|
57
57
|
generateTagSlug: ((args_0: {
|
|
58
58
|
name?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"map-configuration.d.ts","sourceRoot":"","sources":["../../../src/v2/helpers/map-configuration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAG9D;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"map-configuration.d.ts","sourceRoot":"","sources":["../../../src/v2/helpers/map-configuration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAG9D;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,GAAI,QAAQ,OAAO,CAAC,yBAAyB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAiDqh3C,CAAC;;;gBAAyH,CAAC;;;;;mBAAsS,CAAC;uBAAyC,CAAC;;;gBAA1N,CAAC;;;;kBAA4W,CAAC;;;CAD/r4C,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalize-content.d.ts","sourceRoot":"","sources":["../../../src/v2/helpers/normalize-content.ts"],"names":[],"mappings":"AAEA,wEAAwE;AACxE,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"normalize-content.d.ts","sourceRoot":"","sources":["../../../src/v2/helpers/normalize-content.ts"],"names":[],"mappings":"AAEA,wEAAwE;AACxE,eAAO,MAAM,gBAAgB,GAC3B,SAAS,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,SAAS,GAAG,IAAI,KACtG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAc5B,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { WorkspaceStore as Legacy } from '@scalar/api-client/store';
|
|
2
|
+
import type { WorkspaceStore } from '@scalar/workspace-store/client';
|
|
3
|
+
import type { Ref } from 'vue';
|
|
4
|
+
import type { createActiveEntitiesStore } from '@scalar/api-client/store';
|
|
5
|
+
/**
|
|
6
|
+
* Keep the old store in sync with the new server selector block.
|
|
7
|
+
*
|
|
8
|
+
* This is a temporary solution to maintain consistency between the legacy
|
|
9
|
+
* api-client store and the new workspace store during the migration period.
|
|
10
|
+
*
|
|
11
|
+
* @todo Remove this hook when api-client is fully migrated to the new store
|
|
12
|
+
*/
|
|
13
|
+
export declare const useLegacyStoreEvents: (store: WorkspaceStore, legacyStore: Legacy, activeEntities: ReturnType<typeof createActiveEntitiesStore>, root: Ref<HTMLElement | null>) => void;
|
|
14
|
+
//# sourceMappingURL=use-legacy-store-events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-legacy-store-events.d.ts","sourceRoot":"","sources":["../../../src/v2/hooks/use-legacy-store-events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,IAAI,MAAM,EAAE,MAAM,0BAA0B,CAAA;AACxE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAEpE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAC9B,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAA;AAEzE;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB,GAC/B,OAAO,cAAc,EACrB,aAAa,MAAM,EACnB,gBAAgB,UAAU,CAAC,OAAO,yBAAyB,CAAC,EAC5D,MAAM,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,SA6H9B,CAAA"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { onCustomEvent as d } from "@scalar/workspace-store/events";
|
|
2
|
+
const O = (b, m, S, a) => {
|
|
3
|
+
const { servers: n, serverMutators: u, requestMutators: h, collectionMutators: v, securitySchemeMutators: o } = m, { activeCollection: i, activeServer: f } = S;
|
|
4
|
+
d(a, "scalar-replace-servers", ({ detail: { servers: r, options: e } }) => {
|
|
5
|
+
if ((e == null ? void 0 : e.disableOldStoreUpdate) === !0)
|
|
6
|
+
return;
|
|
7
|
+
const t = i.value;
|
|
8
|
+
if (!t)
|
|
9
|
+
return console.warn("No active collection found");
|
|
10
|
+
t.servers.forEach((l) => {
|
|
11
|
+
u.delete(l, t.uid);
|
|
12
|
+
}), r.forEach((l) => {
|
|
13
|
+
const s = Object.values(n).find((U) => U.url === l.url);
|
|
14
|
+
s && u.add(s, t.uid);
|
|
15
|
+
});
|
|
16
|
+
const c = Object.values(n).find((l) => {
|
|
17
|
+
var s;
|
|
18
|
+
return l.url === ((s = r.at(-1)) == null ? void 0 : s.url);
|
|
19
|
+
});
|
|
20
|
+
v.edit(t.uid, "selectedServerUid", c == null ? void 0 : c.uid);
|
|
21
|
+
}), d(a, "scalar-update-selected-server", ({ detail: { value: r, options: e } }) => {
|
|
22
|
+
if ((e == null ? void 0 : e.disableOldStoreUpdate) === !0)
|
|
23
|
+
return;
|
|
24
|
+
const t = i.value;
|
|
25
|
+
if (!t)
|
|
26
|
+
return;
|
|
27
|
+
const c = Object.values(n).find((l) => l.url === r);
|
|
28
|
+
c && v.edit(t.uid, "selectedServerUid", c.uid);
|
|
29
|
+
}), d(a, "store-update-selected-server-properties", ({ detail: { key: r, value: e, options: t } }) => {
|
|
30
|
+
if (t != null && t.disableOldStoreUpdate)
|
|
31
|
+
return;
|
|
32
|
+
const c = f.value;
|
|
33
|
+
c && u.edit(c.uid, r, e);
|
|
34
|
+
}), d(a, "scalar-update-selected-server-variables", ({ detail: { key: r, value: e, options: t } }) => {
|
|
35
|
+
var s;
|
|
36
|
+
if ((t == null ? void 0 : t.disableOldStoreUpdate) === !0)
|
|
37
|
+
return;
|
|
38
|
+
const c = f.value;
|
|
39
|
+
if (!c || c.url !== ((s = b.workspace.activeDocument) == null ? void 0 : s["x-scalar-active-server"]))
|
|
40
|
+
return;
|
|
41
|
+
const l = c.variables || {};
|
|
42
|
+
l[r] = { ...l[r], default: e }, u.edit(c.uid, "variables", l);
|
|
43
|
+
}), d(a, "scalar-select-security-schemes", ({ detail: { uids: r } }) => {
|
|
44
|
+
const e = i.value;
|
|
45
|
+
if (!e)
|
|
46
|
+
return console.warn("No active collection found");
|
|
47
|
+
v.edit(e.uid, "selectedSecuritySchemeUids", r);
|
|
48
|
+
}), d(a, "scalar-select-operation-security-schemes", ({ detail: { operationUid: r, uids: e } }) => {
|
|
49
|
+
h.edit(r, "selectedSecuritySchemeUids", e);
|
|
50
|
+
}), d(a, "scalar-edit-security-scheme", ({ detail: { uid: r, path: e, value: t } }) => {
|
|
51
|
+
o.edit(r, e, t);
|
|
52
|
+
}), d(a, "scalar-add-auth-option", ({ detail: { payload: r } }) => {
|
|
53
|
+
const e = i.value;
|
|
54
|
+
if (!e)
|
|
55
|
+
return console.warn("No active collection found");
|
|
56
|
+
o.add(r, e.uid);
|
|
57
|
+
}), d(a, "scalar-delete-security-scheme", ({ detail: { uid: r } }) => {
|
|
58
|
+
if (!i.value)
|
|
59
|
+
return console.warn("No active collection found");
|
|
60
|
+
o.delete(r);
|
|
61
|
+
});
|
|
62
|
+
};
|
|
63
|
+
export {
|
|
64
|
+
O as useLegacyStoreEvents
|
|
65
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type WorkspaceStore } from '@scalar/workspace-store/client';
|
|
2
|
+
import type { Ref } from 'vue';
|
|
3
|
+
export declare const useWorkspaceStoreEvents: (store: WorkspaceStore, root: Ref<HTMLElement | null>) => void;
|
|
4
|
+
//# sourceMappingURL=use-workspace-store-events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-workspace-store-events.d.ts","sourceRoot":"","sources":["../../../src/v2/hooks/use-workspace-store-events.ts"],"names":[],"mappings":"AACA,OAAO,EAA0B,KAAK,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAE5F,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAE9B,eAAO,MAAM,uBAAuB,GAAI,OAAO,cAAc,EAAE,MAAM,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,SAsG3F,CAAA"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { safeLocalStorage as u, REFERENCE_LS_KEYS as n } from "@scalar/helpers/object/local-storage";
|
|
2
|
+
import { generateClientMutators as m } from "@scalar/workspace-store/client";
|
|
3
|
+
import { onCustomEvent as s } from "@scalar/workspace-store/events";
|
|
4
|
+
const k = (r, t) => {
|
|
5
|
+
const v = m(r);
|
|
6
|
+
s(t, "scalar-update-dark-mode", (e) => {
|
|
7
|
+
r.update("x-scalar-dark-mode", e.detail.value);
|
|
8
|
+
}), s(t, "scalar-update-active-document", (e) => {
|
|
9
|
+
r.update("x-scalar-active-document", e.detail.value);
|
|
10
|
+
}), s(t, "scalar-update-selected-client", (e) => {
|
|
11
|
+
r.update("x-scalar-default-client", e.detail), u().setItem(n.SELECTED_CLIENT, e.detail);
|
|
12
|
+
}), s(t, "scalar-replace-servers", (e) => {
|
|
13
|
+
var c;
|
|
14
|
+
const a = r.workspace.activeDocument;
|
|
15
|
+
a && (a.servers = e.detail.servers, a["x-scalar-active-server"] = (c = e.detail.servers.at(-1)) == null ? void 0 : c.url);
|
|
16
|
+
}), s(t, "scalar-update-selected-server", (e) => {
|
|
17
|
+
const a = r.workspace.activeDocument;
|
|
18
|
+
a && (a["x-scalar-active-server"] = e.detail.value);
|
|
19
|
+
}), s(t, "store-update-selected-server-properties", (e) => {
|
|
20
|
+
var l;
|
|
21
|
+
const a = r.workspace.activeDocument;
|
|
22
|
+
if (!a)
|
|
23
|
+
return;
|
|
24
|
+
const c = (l = a.servers) == null ? void 0 : l.find((i) => i.url === a["x-scalar-active-server"]);
|
|
25
|
+
c && (c[e.detail.key] = e.detail.value);
|
|
26
|
+
}), s(t, "scalar-update-selected-server-variables", (e) => {
|
|
27
|
+
var l, i;
|
|
28
|
+
const a = r.workspace.activeDocument;
|
|
29
|
+
if (!a)
|
|
30
|
+
return;
|
|
31
|
+
const c = (l = a.servers) == null ? void 0 : l.find((d) => d.url === a["x-scalar-active-server"]);
|
|
32
|
+
c && (i = c.variables) != null && i[e.detail.key] && (c.variables[e.detail.key].default = e.detail.value);
|
|
33
|
+
}), s(t, "scalar-add-server", (e) => {
|
|
34
|
+
v.active().serverMutators.addServer(e.detail.server);
|
|
35
|
+
const a = r.workspace.activeDocument;
|
|
36
|
+
a && (a["x-scalar-active-server"] = e.detail.server.url);
|
|
37
|
+
}), s(t, "scalar-delete-server", (e) => {
|
|
38
|
+
v.active().serverMutators.deleteServer(e.detail.url);
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
export {
|
|
42
|
+
k as useWorkspaceStoreEvents
|
|
43
|
+
};
|
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"vue",
|
|
21
21
|
"vue3"
|
|
22
22
|
],
|
|
23
|
-
"version": "1.
|
|
23
|
+
"version": "1.35.1",
|
|
24
24
|
"engines": {
|
|
25
25
|
"node": ">=20"
|
|
26
26
|
},
|
|
@@ -50,30 +50,32 @@
|
|
|
50
50
|
"flatted": "^3.3.3",
|
|
51
51
|
"fuse.js": "^7.1.0",
|
|
52
52
|
"github-slugger": "^2.0.0",
|
|
53
|
+
"js-base64": "^3.7.8",
|
|
53
54
|
"microdiff": "^1.5.0",
|
|
54
55
|
"nanoid": "5.1.5",
|
|
56
|
+
"type-fest": "^4.41.0",
|
|
55
57
|
"vue": "^3.5.17",
|
|
56
58
|
"zod": "3.24.1",
|
|
57
|
-
"@scalar/api-client": "2.5.26",
|
|
58
59
|
"@scalar/code-highlight": "0.1.9",
|
|
59
|
-
"@scalar/
|
|
60
|
-
"@scalar/
|
|
60
|
+
"@scalar/api-client": "2.5.28",
|
|
61
|
+
"@scalar/components": "0.14.29",
|
|
62
|
+
"@scalar/helpers": "0.0.9",
|
|
63
|
+
"@scalar/json-magic": "0.4.0",
|
|
61
64
|
"@scalar/icons": "0.4.7",
|
|
62
|
-
"@scalar/
|
|
63
|
-
"@scalar/
|
|
64
|
-
"@scalar/object-utils": "1.2.4",
|
|
65
|
+
"@scalar/oas-utils": "0.4.24",
|
|
66
|
+
"@scalar/object-utils": "1.2.5",
|
|
65
67
|
"@scalar/openapi-types": "0.3.7",
|
|
66
|
-
"@scalar/
|
|
67
|
-
"@scalar/
|
|
68
|
+
"@scalar/themes": "0.13.16",
|
|
69
|
+
"@scalar/snippetz": "0.4.9",
|
|
70
|
+
"@scalar/types": "0.2.15",
|
|
71
|
+
"@scalar/openapi-parser": "0.20.2",
|
|
68
72
|
"@scalar/use-toasts": "0.8.0",
|
|
69
|
-
"@scalar/themes": "0.13.14",
|
|
70
|
-
"@scalar/snippetz": "0.4.7",
|
|
71
73
|
"@scalar/use-hooks": "0.2.4",
|
|
72
|
-
"@scalar/workspace-store": "0.
|
|
74
|
+
"@scalar/workspace-store": "0.15.1"
|
|
73
75
|
},
|
|
74
76
|
"devDependencies": {
|
|
75
77
|
"@hono/node-server": "^1.11.0",
|
|
76
|
-
"@playwright/test": "1.
|
|
78
|
+
"@playwright/test": "1.55.0",
|
|
77
79
|
"@tailwindcss/vite": "^4.1.7",
|
|
78
80
|
"@types/react": "^19.1.8",
|
|
79
81
|
"@types/react-dom": "^19.1.6",
|
|
@@ -90,9 +92,9 @@
|
|
|
90
92
|
"vite-plugin-css-injected-by-js": "^3.4.0",
|
|
91
93
|
"vitest": "^3.2.4",
|
|
92
94
|
"@scalar/build-tooling": "0.2.6",
|
|
93
|
-
"@scalar/core": "0.3.
|
|
94
|
-
"@scalar/
|
|
95
|
-
"@scalar/
|
|
95
|
+
"@scalar/core": "0.3.16",
|
|
96
|
+
"@scalar/react-renderer": "0.2.1",
|
|
97
|
+
"@scalar/galaxy": "0.5.8"
|
|
96
98
|
},
|
|
97
99
|
"scripts": {
|
|
98
100
|
"build": "pnpm build:default && pnpm build:standalone && pnpm types:build && tsc-alias -p tsconfig.build.json",
|
|
@@ -109,7 +111,7 @@
|
|
|
109
111
|
"preview": "vite preview",
|
|
110
112
|
"test": "vitest",
|
|
111
113
|
"test:e2e": "playwright test",
|
|
112
|
-
"test:e2e:playwright": "docker-
|
|
114
|
+
"test:e2e:playwright": "docker run --network=host -e PORT=5001 -p 5001:5001 scalarapi/playwright:1.55.0",
|
|
113
115
|
"test:e2e:report": "playwright show-report",
|
|
114
116
|
"test:e2e:snapshots": "PW_TEST_CONNECT_WS_ENDPOINT=ws://127.0.0.1:5001/ playwright test -c playwright.snapshots.config.ts",
|
|
115
117
|
"test:e2e:snapshots:ci": "playwright test -c playwright.snapshots.config.ts",
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
import { defineComponent as O, useId as h, computed as p, useTemplateRef as w, createElementBlock as a, createCommentVNode as C, openBlock as i, createVNode as r, unref as t, withCtx as m, createElementVNode as I, Fragment as g, normalizeClass as E, renderList as N, createBlock as P, createTextVNode as _, toDisplayString as k } from "vue";
|
|
2
|
-
import { TabGroup as B, TabList as F, TabPanels as V, TabPanel as A } from "@headlessui/vue";
|
|
3
|
-
import { ScalarMarkdown as S, ScalarCodeBlock as D } from "@scalar/components";
|
|
4
|
-
import { DEFAULT_CLIENT as M } from "../../../v2/blocks/scalar-request-example-block/helpers/find-client.js";
|
|
5
|
-
import { emitCustomEvent as R } from "../../../v2/events/definitions.js";
|
|
6
|
-
import z from "./ClientSelector.vue.js";
|
|
7
|
-
import { getFeaturedClients as G, isFeaturedClient as K } from "./featured-clients.js";
|
|
8
|
-
const U = {
|
|
9
|
-
key: 0,
|
|
10
|
-
ref: "wrapper"
|
|
11
|
-
}, j = ["id"], q = {
|
|
12
|
-
key: 1,
|
|
13
|
-
class: "selected-client card-footer border-t-0 p-0",
|
|
14
|
-
role: "tabpanel",
|
|
15
|
-
tabindex: "1"
|
|
16
|
-
}, H = ["id"], ee = /* @__PURE__ */ O({
|
|
17
|
-
__name: "ClientLibraries",
|
|
18
|
-
props: {
|
|
19
|
-
document: {},
|
|
20
|
-
clientOptions: {},
|
|
21
|
-
selectedClient: { default: () => M }
|
|
22
|
-
},
|
|
23
|
-
setup(o) {
|
|
24
|
-
const v = h(), b = h(), x = p(
|
|
25
|
-
() => o.clientOptions.flatMap(
|
|
26
|
-
(e) => e.options.find((n) => n.id === o.selectedClient) ?? []
|
|
27
|
-
)[0]
|
|
28
|
-
), d = p(() => G(o.clientOptions)), T = p(
|
|
29
|
-
() => d.value.findIndex(
|
|
30
|
-
(e) => o.selectedClient === e.id
|
|
31
|
-
)
|
|
32
|
-
), y = w("wrapper"), L = (e) => {
|
|
33
|
-
const n = d.value[e];
|
|
34
|
-
!n || !y.value || R(y.value, "scalar-update-selected-client", n.id);
|
|
35
|
-
}, l = p(() => {
|
|
36
|
-
const e = o.document.info["x-scalar-sdk-installation"];
|
|
37
|
-
if (!Array.isArray(e) || !(e != null && e.length))
|
|
38
|
-
return;
|
|
39
|
-
const n = e.find((u) => {
|
|
40
|
-
var s, c;
|
|
41
|
-
const f = (c = (s = o.selectedClient) == null ? void 0 : s.split("/")[0]) == null ? void 0 : c.toLowerCase();
|
|
42
|
-
return u.lang.toLowerCase() === f;
|
|
43
|
-
});
|
|
44
|
-
if (n)
|
|
45
|
-
return n;
|
|
46
|
-
});
|
|
47
|
-
return (e, n) => e.clientOptions.length ? (i(), a("div", U, [
|
|
48
|
-
r(t(B), {
|
|
49
|
-
manual: "",
|
|
50
|
-
selectedIndex: T.value,
|
|
51
|
-
onChange: L
|
|
52
|
-
}, {
|
|
53
|
-
default: m(() => [
|
|
54
|
-
I("div", {
|
|
55
|
-
id: t(v),
|
|
56
|
-
class: "client-libraries-heading"
|
|
57
|
-
}, " Client Libraries ", 8, j),
|
|
58
|
-
r(t(F), {
|
|
59
|
-
"aria-labelledby": t(v),
|
|
60
|
-
class: "client-libraries-list"
|
|
61
|
-
}, {
|
|
62
|
-
default: m(() => [
|
|
63
|
-
r(z, {
|
|
64
|
-
clientOptions: e.clientOptions,
|
|
65
|
-
featuredClients: d.value,
|
|
66
|
-
selectedClient: e.selectedClient,
|
|
67
|
-
morePanel: t(b)
|
|
68
|
-
}, null, 8, ["clientOptions", "featuredClients", "selectedClient", "morePanel"])
|
|
69
|
-
]),
|
|
70
|
-
_: 1
|
|
71
|
-
}, 8, ["aria-labelledby"]),
|
|
72
|
-
r(t(V), null, {
|
|
73
|
-
default: m(() => {
|
|
74
|
-
var u, f, s;
|
|
75
|
-
return [
|
|
76
|
-
(u = l.value) != null && u.source || (f = l.value) != null && f.description ? (i(), a(g, { key: 0 }, [
|
|
77
|
-
l.value.description ? (i(), a("div", {
|
|
78
|
-
key: 0,
|
|
79
|
-
class: E(["selected-client card-footer -outline-offset-2", l.value.source && "rounded-b-none"]),
|
|
80
|
-
role: "tabpanel",
|
|
81
|
-
tabindex: "0"
|
|
82
|
-
}, [
|
|
83
|
-
r(t(S), {
|
|
84
|
-
value: l.value.description
|
|
85
|
-
}, null, 8, ["value"])
|
|
86
|
-
], 2)) : C("", !0),
|
|
87
|
-
l.value.source ? (i(), a("div", q, [
|
|
88
|
-
r(t(D), {
|
|
89
|
-
lang: "shell",
|
|
90
|
-
content: l.value.source,
|
|
91
|
-
copy: !0,
|
|
92
|
-
class: "rounded-t-none rounded-b-lg px-3 py-2 -outline-offset-1 has-focus:outline"
|
|
93
|
-
}, null, 8, ["content"])
|
|
94
|
-
])) : C("", !0)
|
|
95
|
-
], 64)) : t(K)(e.selectedClient) ? (i(!0), a(g, { key: 1 }, N(d.value, (c) => (i(), P(t(A), {
|
|
96
|
-
key: c.id,
|
|
97
|
-
class: "selected-client card-footer -outline-offset-2"
|
|
98
|
-
}, {
|
|
99
|
-
default: m(() => [
|
|
100
|
-
_(k(c.title), 1)
|
|
101
|
-
]),
|
|
102
|
-
_: 2
|
|
103
|
-
}, 1024))), 128)) : (i(), a("div", {
|
|
104
|
-
key: 2,
|
|
105
|
-
id: t(b),
|
|
106
|
-
class: "selected-client card-footer -outline-offset-2",
|
|
107
|
-
role: "tabpanel",
|
|
108
|
-
tabindex: "0"
|
|
109
|
-
}, k((s = x.value) == null ? void 0 : s.title), 9, H))
|
|
110
|
-
];
|
|
111
|
-
}),
|
|
112
|
-
_: 1
|
|
113
|
-
})
|
|
114
|
-
]),
|
|
115
|
-
_: 1
|
|
116
|
-
}, 8, ["selectedIndex"])
|
|
117
|
-
], 512)) : C("", !0);
|
|
118
|
-
}
|
|
119
|
-
});
|
|
120
|
-
export {
|
|
121
|
-
ee as default
|
|
122
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Description.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Introduction/Description.vue"],"names":[],"mappings":"AAkIA,KAAK,WAAW,GAAG;IACjB,wBAAwB;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;;AAyKF,wBAMG"}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { defineComponent as H, computed as I, createElementBlock as a, createCommentVNode as S, openBlock as n, Fragment as u, renderList as w, createBlock as s, unref as i, withCtx as C, createVNode as B } from "vue";
|
|
2
|
-
import { splitContent as N, getHeadings as b } from "@scalar/code-highlight/markdown";
|
|
3
|
-
import { ScalarMarkdown as c } from "@scalar/components";
|
|
4
|
-
import d from "github-slugger";
|
|
5
|
-
import x from "../../IntersectionObserver.vue.js";
|
|
6
|
-
import { useNavState as E } from "../../../hooks/useNavState.js";
|
|
7
|
-
const F = {
|
|
8
|
-
key: 0,
|
|
9
|
-
class: "introduction-description"
|
|
10
|
-
}, U = /* @__PURE__ */ H({
|
|
11
|
-
__name: "Description",
|
|
12
|
-
props: {
|
|
13
|
-
value: {}
|
|
14
|
-
},
|
|
15
|
-
setup(m) {
|
|
16
|
-
const o = m, p = I(() => {
|
|
17
|
-
if (!o.value)
|
|
18
|
-
return [];
|
|
19
|
-
const e = new d();
|
|
20
|
-
return N(o.value).map((t) => {
|
|
21
|
-
const [r] = b(t);
|
|
22
|
-
return {
|
|
23
|
-
id: r ? l({
|
|
24
|
-
...r,
|
|
25
|
-
slug: e.slug(r.value)
|
|
26
|
-
}) : void 0,
|
|
27
|
-
content: t
|
|
28
|
-
};
|
|
29
|
-
});
|
|
30
|
-
}), { getHeadingId: l, getFullHash: g, isIntersectionEnabled: f, replaceUrlState: v } = E();
|
|
31
|
-
function h(e = "") {
|
|
32
|
-
f.value && v(e);
|
|
33
|
-
}
|
|
34
|
-
const _ = new d(), k = (e) => (e.data = {
|
|
35
|
-
hProperties: {
|
|
36
|
-
id: l({
|
|
37
|
-
depth: e.depth,
|
|
38
|
-
value: e.children[0].value,
|
|
39
|
-
slug: _.slug(e.children[0].value)
|
|
40
|
-
})
|
|
41
|
-
}
|
|
42
|
-
}, e);
|
|
43
|
-
return (e, y) => e.value ? (n(), a("div", F, [
|
|
44
|
-
(n(!0), a(u, null, w(p.value, (t) => (n(), a(u, {
|
|
45
|
-
key: t.id
|
|
46
|
-
}, [
|
|
47
|
-
t.id ? (n(), s(x, {
|
|
48
|
-
key: 0,
|
|
49
|
-
id: i(g)(t.id),
|
|
50
|
-
class: "introduction-description-heading",
|
|
51
|
-
onIntersecting: () => h(t.id)
|
|
52
|
-
}, {
|
|
53
|
-
default: C(() => [
|
|
54
|
-
B(i(c), {
|
|
55
|
-
transform: k,
|
|
56
|
-
transformType: "heading",
|
|
57
|
-
value: t.content
|
|
58
|
-
}, null, 8, ["value"])
|
|
59
|
-
]),
|
|
60
|
-
_: 2
|
|
61
|
-
}, 1032, ["id", "onIntersecting"])) : (n(), s(i(c), {
|
|
62
|
-
key: 1,
|
|
63
|
-
value: t.content,
|
|
64
|
-
withImages: ""
|
|
65
|
-
}, null, 8, ["value"]))
|
|
66
|
-
], 64))), 128))
|
|
67
|
-
])) : S("", !0);
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
export {
|
|
71
|
-
U as default
|
|
72
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { OpenAPIV3_1 } from '@scalar/openapi-types';
|
|
2
|
-
import type { ApiReferenceConfiguration } from '@scalar/types';
|
|
3
|
-
import type { WorkspaceStore } from '@scalar/workspace-store/client';
|
|
4
|
-
import type { ClientOptionGroup } from '../../../v2/blocks/scalar-request-example-block/types';
|
|
5
|
-
type __VLS_Props = {
|
|
6
|
-
document: OpenAPIV3_1.Document;
|
|
7
|
-
config?: ApiReferenceConfiguration;
|
|
8
|
-
clientOptions: ClientOptionGroup[];
|
|
9
|
-
store: WorkspaceStore;
|
|
10
|
-
};
|
|
11
|
-
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>;
|
|
12
|
-
export default _default;
|
|
13
|
-
//# sourceMappingURL=Introduction.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Introduction.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Introduction/Introduction.vue"],"names":[],"mappings":"AAmNA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAMpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAA;AAOvF,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAAA;IAC9B,MAAM,CAAC,EAAE,yBAAyB,CAAA;IAClC,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,KAAK,EAAE,cAAc,CAAA;CACtB,CAAC;;AA8NF,wBAOG"}
|