@scalar/api-reference 1.38.1 → 1.39.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 +69 -0
- package/dist/_virtual/_plugin-vue_export-helper.js +7 -6
- package/dist/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts +11 -0
- package/dist/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -0
- package/dist/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +7 -0
- package/dist/blocks/scalar-auth-selector-block/components/AuthSelector.vue2.js +259 -0
- package/dist/{v2/blocks → blocks}/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.d.ts +2 -2
- package/dist/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.d.ts.map +1 -0
- package/dist/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.js +66 -0
- package/dist/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue2.js +4 -0
- package/dist/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts.map +1 -0
- package/dist/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +271 -0
- package/dist/blocks/scalar-auth-selector-block/components/OAuth2.vue2.js +4 -0
- package/dist/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.d.ts.map +1 -0
- package/dist/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +150 -0
- package/dist/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue2.js +4 -0
- package/dist/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts.map +1 -0
- package/dist/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +7 -0
- package/dist/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue2.js +116 -0
- package/dist/{v2/blocks → blocks}/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts +1 -1
- package/dist/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts.map +1 -0
- package/dist/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.js +55 -0
- package/dist/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue2.js +4 -0
- package/dist/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +1 -0
- package/dist/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +288 -0
- package/dist/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue2.js +4 -0
- package/dist/blocks/scalar-auth-selector-block/helpers/filter-security-requirements.d.ts.map +1 -0
- package/dist/blocks/scalar-auth-selector-block/helpers/update-scheme.d.ts.map +1 -0
- package/dist/blocks/scalar-auth-selector-block/helpers/update-scheme.js +26 -0
- package/dist/blocks/scalar-auth-selector-block/index.d.ts.map +1 -0
- package/dist/{v2/blocks → blocks}/scalar-client-selector-block/components/ClientDropdown.vue.d.ts +0 -2
- package/dist/blocks/scalar-client-selector-block/components/ClientDropdown.vue.d.ts.map +1 -0
- package/dist/blocks/scalar-client-selector-block/components/ClientDropdown.vue.js +7 -0
- package/dist/blocks/scalar-client-selector-block/components/ClientDropdown.vue2.js +125 -0
- package/dist/{v2/blocks → blocks}/scalar-client-selector-block/components/ClientSelector.vue.d.ts +1 -1
- package/dist/blocks/scalar-client-selector-block/components/ClientSelector.vue.d.ts.map +1 -0
- package/dist/blocks/scalar-client-selector-block/components/ClientSelector.vue.js +7 -0
- package/dist/blocks/scalar-client-selector-block/components/ClientSelector.vue2.js +141 -0
- package/dist/blocks/scalar-client-selector-block/helpers/featured-clients.d.ts.map +1 -0
- package/dist/blocks/scalar-client-selector-block/helpers/featured-clients.js +24 -0
- package/dist/blocks/scalar-client-selector-block/index.d.ts.map +1 -0
- package/dist/{v2/blocks → blocks}/scalar-info-block/components/DownloadLink.vue.d.ts +0 -3
- package/dist/blocks/scalar-info-block/components/DownloadLink.vue.d.ts.map +1 -0
- package/dist/blocks/scalar-info-block/components/DownloadLink.vue.js +7 -0
- package/dist/blocks/scalar-info-block/components/DownloadLink.vue2.js +62 -0
- package/dist/{v2/blocks → blocks}/scalar-info-block/components/InfoBlock.vue.d.ts +7 -10
- package/dist/blocks/scalar-info-block/components/InfoBlock.vue.d.ts.map +1 -0
- package/dist/blocks/scalar-info-block/components/InfoBlock.vue.js +54 -0
- package/dist/blocks/scalar-info-block/components/InfoBlock.vue2.js +4 -0
- package/dist/blocks/scalar-info-block/components/InfoDescription.vue.d.ts +11 -0
- package/dist/blocks/scalar-info-block/components/InfoDescription.vue.d.ts.map +1 -0
- package/dist/blocks/scalar-info-block/components/InfoDescription.vue.js +7 -0
- package/dist/blocks/scalar-info-block/components/InfoDescription.vue2.js +66 -0
- package/dist/blocks/scalar-info-block/components/InfoLinks.vue.d.ts.map +1 -0
- package/dist/blocks/scalar-info-block/components/InfoLinks.vue.js +38 -0
- package/dist/blocks/scalar-info-block/components/InfoLinks.vue2.js +4 -0
- package/dist/blocks/scalar-info-block/components/InfoMarkdownSection.vue.d.ts +10 -0
- package/dist/blocks/scalar-info-block/components/InfoMarkdownSection.vue.d.ts.map +1 -0
- package/dist/blocks/scalar-info-block/components/InfoMarkdownSection.vue.js +36 -0
- package/dist/blocks/scalar-info-block/components/InfoMarkdownSection.vue2.js +4 -0
- package/dist/blocks/scalar-info-block/components/InfoVersion.vue.d.ts.map +1 -0
- package/dist/blocks/scalar-info-block/components/InfoVersion.vue.js +28 -0
- package/dist/blocks/scalar-info-block/components/InfoVersion.vue2.js +4 -0
- package/dist/blocks/scalar-info-block/components/IntroductionCard.vue.d.ts.map +1 -0
- package/dist/blocks/scalar-info-block/components/IntroductionCard.vue.js +7 -0
- package/dist/blocks/scalar-info-block/components/IntroductionCard.vue2.js +19 -0
- package/dist/blocks/scalar-info-block/components/IntroductionCardItem.vue.d.ts.map +1 -0
- package/dist/blocks/scalar-info-block/components/IntroductionCardItem.vue.js +14 -0
- package/dist/{v2/blocks → blocks}/scalar-info-block/components/IntroductionLayout.vue.d.ts +9 -7
- package/dist/blocks/scalar-info-block/components/IntroductionLayout.vue.d.ts.map +1 -0
- package/dist/blocks/scalar-info-block/components/IntroductionLayout.vue.js +7 -0
- package/dist/blocks/scalar-info-block/components/IntroductionLayout.vue2.js +112 -0
- package/dist/blocks/scalar-info-block/components/OpenApiVersion.vue.d.ts.map +1 -0
- package/dist/blocks/scalar-info-block/components/OpenApiVersion.vue.js +21 -0
- package/dist/blocks/scalar-info-block/components/OpenApiVersion.vue2.js +4 -0
- package/dist/blocks/scalar-info-block/index.d.ts.map +1 -0
- package/dist/blocks/scalar-server-selector-block/components/Selector.vue.d.ts.map +1 -0
- package/dist/blocks/scalar-server-selector-block/components/Selector.vue.js +88 -0
- package/dist/blocks/scalar-server-selector-block/components/Selector.vue2.js +4 -0
- package/dist/blocks/scalar-server-selector-block/components/ServerSelector.vue.d.ts.map +1 -0
- package/dist/blocks/scalar-server-selector-block/components/ServerSelector.vue.js +89 -0
- package/dist/blocks/scalar-server-selector-block/components/ServerSelector.vue2.js +4 -0
- package/dist/blocks/scalar-server-selector-block/index.d.ts.map +1 -0
- package/dist/browser/standalone.js +32761 -32285
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/Anchor/Anchor.vue.d.ts +5 -4
- package/dist/components/Anchor/Anchor.vue.d.ts.map +1 -1
- package/dist/components/Anchor/Anchor.vue.js +45 -46
- package/dist/components/Anchor/Anchor.vue2.js +2 -2
- package/dist/components/Anchor/WithBreadcrumb.vue.d.ts +2 -0
- package/dist/components/Anchor/WithBreadcrumb.vue.d.ts.map +1 -1
- package/dist/components/Anchor/WithBreadcrumb.vue.js +2 -2
- package/dist/components/Anchor/WithBreadcrumb.vue2.js +31 -33
- package/dist/components/ApiReference.vue.d.ts +275 -8
- package/dist/components/ApiReference.vue.d.ts.map +1 -1
- package/dist/components/ApiReference.vue.js +8 -35
- package/dist/components/ApiReference.vue2.js +665 -2
- package/dist/components/Badge/Badge.vue.js +4 -4
- package/dist/components/Badge/Badge.vue2.js +16 -14
- package/dist/components/ClassicHeader.vue.js +14 -11
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts +1 -1
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts +0 -2
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.d.ts +15 -10
- package/dist/components/Content/Content.vue.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.js +153 -191
- package/dist/components/Content/Content.vue3.js +2 -2
- package/dist/components/Content/Models/{Models.vue.d.ts → Model.vue.d.ts} +8 -8
- package/dist/components/Content/Models/Model.vue.d.ts.map +1 -0
- package/dist/components/Content/Models/Model.vue.js +47 -0
- package/dist/components/Content/Models/Model.vue2.js +4 -0
- package/dist/{v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue.d.ts → components/Content/Models/ModelTag.vue.d.ts} +12 -11
- package/dist/components/Content/Models/ModelTag.vue.d.ts.map +1 -0
- package/dist/components/Content/Models/ModelTag.vue.js +82 -0
- package/dist/components/Content/Models/ModelTag.vue2.js +4 -0
- package/dist/components/Content/Models/{ModernLayout.vue.d.ts → components/ClassicLayout.vue.d.ts} +7 -8
- package/dist/components/Content/Models/components/ClassicLayout.vue.d.ts.map +1 -0
- package/dist/components/Content/Models/components/ClassicLayout.vue.js +7 -0
- package/dist/components/Content/Models/components/ClassicLayout.vue2.js +84 -0
- package/dist/components/Content/Models/{ClassicLayout.vue.d.ts → components/ModernLayout.vue.d.ts} +7 -6
- package/dist/components/Content/Models/components/ModernLayout.vue.d.ts.map +1 -0
- package/dist/components/Content/Models/components/ModernLayout.vue.js +61 -0
- package/dist/components/Content/Models/components/ModernLayout.vue2.js +4 -0
- package/dist/components/Content/Models/index.d.ts +1 -1
- package/dist/components/Content/Models/index.d.ts.map +1 -1
- package/dist/components/Content/Operations/TraversedEntry.vue.d.ts +13 -11
- package/dist/components/Content/Operations/TraversedEntry.vue.d.ts.map +1 -1
- package/dist/components/Content/Operations/TraversedEntry.vue.js +142 -91
- package/dist/components/Content/Operations/TraversedEntry.vue2.js +2 -2
- package/dist/components/Content/Schema/RenderString.vue.js +19 -6
- package/dist/components/Content/Schema/RenderString.vue2.js +2 -2
- package/dist/components/Content/Schema/Schema.vue.d.ts +3 -0
- package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/Schema.vue.js +4 -4
- package/dist/components/Content/Schema/Schema.vue2.js +162 -135
- package/dist/components/Content/Schema/SchemaComposition.vue.d.ts +3 -0
- package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaComposition.vue.js +88 -71
- package/dist/components/Content/Schema/SchemaComposition.vue2.js +2 -2
- package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.js +4 -4
- package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue2.js +20 -14
- package/dist/components/Content/Schema/SchemaEnumValues.vue.js +4 -4
- package/dist/components/Content/Schema/SchemaEnumValues.vue2.js +90 -60
- package/dist/components/Content/Schema/SchemaHeading.vue.js +4 -4
- package/dist/components/Content/Schema/SchemaHeading.vue2.js +47 -29
- package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts +2 -0
- package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaObjectProperties.vue.js +79 -59
- package/dist/components/Content/Schema/SchemaObjectProperties.vue2.js +2 -2
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +3 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.js +4 -4
- package/dist/components/Content/Schema/SchemaProperty.vue2.js +228 -149
- package/dist/components/Content/Schema/SchemaPropertyDetail.vue.js +4 -4
- package/dist/components/Content/Schema/SchemaPropertyDetail.vue2.js +25 -20
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue.js +4 -4
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue2.js +65 -55
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +4 -4
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +301 -206
- package/dist/components/Content/Schema/helpers/format-example.js +38 -3
- package/dist/components/Content/Schema/helpers/get-ref-name.d.ts +1 -1
- package/dist/components/Content/Schema/helpers/get-ref-name.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/get-ref-name.js +13 -8
- package/dist/components/Content/Schema/helpers/get-schema-type.js +54 -33
- package/dist/components/Content/Schema/helpers/is-type-object.js +24 -14
- package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +197 -118
- package/dist/components/Content/Schema/helpers/optimize-value-for-display.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/optimize-value-for-display.js +56 -34
- package/dist/components/Content/Schema/helpers/schema-composition.js +2 -2
- package/dist/components/Content/Schema/helpers/schema-name.js +56 -28
- package/dist/components/Content/Schema/helpers/sort-property-names.js +47 -25
- package/dist/components/Content/Tags/Tag.vue.d.ts +3 -1
- package/dist/components/Content/Tags/Tag.vue.d.ts.map +1 -1
- package/dist/components/Content/Tags/Tag.vue.js +35 -29
- package/dist/components/Content/Tags/Tag.vue2.js +2 -2
- package/dist/components/Content/Tags/{ClassicLayout.vue.d.ts → components/ClassicLayout.vue.d.ts} +5 -2
- package/dist/components/Content/Tags/components/ClassicLayout.vue.d.ts.map +1 -0
- package/dist/components/Content/Tags/components/ClassicLayout.vue.js +7 -0
- package/dist/components/Content/Tags/components/ClassicLayout.vue2.js +57 -0
- package/dist/components/Content/Tags/{ModernLayout.vue.d.ts → components/ModernLayout.vue.d.ts} +5 -3
- package/dist/components/Content/Tags/components/ModernLayout.vue.d.ts.map +1 -0
- package/dist/components/Content/Tags/components/ModernLayout.vue.js +7 -0
- package/dist/components/Content/Tags/components/ModernLayout.vue2.js +68 -0
- package/dist/components/Content/Tags/{TagSection.vue.d.ts → components/TagSection.vue.d.ts} +2 -0
- package/dist/components/Content/Tags/components/TagSection.vue.d.ts.map +1 -0
- package/dist/components/Content/Tags/components/TagSection.vue.js +100 -0
- package/dist/components/Content/Tags/components/TagSection.vue2.js +4 -0
- package/dist/components/GettingStarted.vue.js +4 -4
- package/dist/components/GettingStarted.vue2.js +59 -50
- package/dist/components/HttpMethod/HttpMethod.vue.js +23 -19
- package/dist/components/HttpMethod/HttpMethod.vue2.js +2 -2
- package/dist/components/IntersectionObserver.vue.d.ts +2 -2
- package/dist/components/IntersectionObserver.vue.js +41 -29
- package/dist/components/IntersectionObserver.vue2.js +2 -2
- package/dist/components/Lazy/Lazy.vue.d.ts +1 -4
- package/dist/components/Lazy/Lazy.vue.d.ts.map +1 -1
- package/dist/components/Lazy/Lazy.vue.js +15 -2
- package/dist/components/Lazy/Lazy.vue2.js +2 -24
- package/dist/components/LinkList/LinkList.vue.js +4 -4
- package/dist/components/LinkList/LinkList.vue2.js +41 -25
- package/dist/components/LoadingSkeleton.vue.js +4 -4
- package/dist/components/LoadingSkeleton.vue2.js +12 -8
- package/dist/components/MobileHeader.vue.d.ts +13 -4
- package/dist/components/MobileHeader.vue.d.ts.map +1 -1
- package/dist/components/MobileHeader.vue.js +58 -5
- package/dist/components/MobileHeader.vue2.js +2 -26
- package/dist/components/OperationPath.vue.js +4 -4
- package/dist/components/OperationPath.vue2.js +21 -14
- package/dist/components/OperationsList/OperationsList.vue.d.ts +2 -0
- package/dist/components/OperationsList/OperationsList.vue.d.ts.map +1 -1
- package/dist/components/OperationsList/OperationsList.vue.js +4 -4
- package/dist/components/OperationsList/OperationsList.vue2.js +54 -45
- package/dist/components/OperationsList/OperationsListItem.vue.d.ts +2 -0
- package/dist/components/OperationsList/OperationsListItem.vue.d.ts.map +1 -1
- package/dist/components/OperationsList/OperationsListItem.vue.js +4 -4
- package/dist/components/OperationsList/OperationsListItem.vue2.js +56 -48
- package/dist/{v2/blocks/scalar-info-block/components/InfoDescription.vue.d.ts → components/RenderPlugins/RenderPlugins.vue.d.ts} +3 -3
- package/dist/components/RenderPlugins/RenderPlugins.vue.d.ts.map +1 -0
- package/dist/components/RenderPlugins/RenderPlugins.vue.js +43 -0
- package/dist/components/RenderPlugins/RenderPlugins.vue2.js +4 -0
- package/dist/components/RenderPlugins/index.d.ts +2 -0
- package/dist/components/RenderPlugins/index.d.ts.map +1 -0
- package/dist/components/ScreenReader.vue.js +4 -4
- package/dist/components/ScreenReader.vue2.js +12 -9
- package/dist/components/Section/CompactSection.vue.d.ts +11 -6
- package/dist/components/Section/CompactSection.vue.d.ts.map +1 -1
- package/dist/components/Section/CompactSection.vue.js +4 -4
- package/dist/components/Section/CompactSection.vue2.js +47 -48
- package/dist/components/Section/Section.vue.d.ts +7 -7
- package/dist/components/Section/Section.vue.d.ts.map +1 -1
- package/dist/components/Section/Section.vue.js +4 -4
- package/dist/components/Section/Section.vue2.js +18 -25
- package/dist/components/Section/SectionAccordion.vue.d.ts +13 -9
- package/dist/components/Section/SectionAccordion.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionAccordion.vue.js +4 -4
- package/dist/components/Section/SectionAccordion.vue2.js +64 -63
- package/dist/components/Section/SectionColumn.vue.js +9 -8
- package/dist/components/Section/SectionColumns.vue.js +9 -8
- package/dist/components/Section/SectionContainer.vue.js +4 -4
- package/dist/components/Section/SectionContainer.vue2.js +11 -8
- package/dist/components/Section/SectionContainerAccordion.vue.d.ts +11 -4
- package/dist/components/Section/SectionContainerAccordion.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionContainerAccordion.vue.js +4 -4
- package/dist/components/Section/SectionContainerAccordion.vue2.js +49 -34
- package/dist/components/Section/SectionContent.vue.js +4 -4
- package/dist/components/Section/SectionContent.vue2.js +15 -12
- package/dist/components/Section/SectionHeader.vue.js +4 -4
- package/dist/components/Section/SectionHeader.vue2.js +17 -14
- package/dist/components/Section/SectionHeaderTag.vue.js +4 -4
- package/dist/components/Section/SectionHeaderTag.vue2.js +12 -10
- package/dist/components/SectionFlare/SectionFlare.vue.js +10 -9
- package/dist/components/ShowMoreButton.vue.d.ts +0 -1
- package/dist/components/ShowMoreButton.vue.d.ts.map +1 -1
- package/dist/components/ShowMoreButton.vue.js +4 -4
- package/dist/components/ShowMoreButton.vue2.js +25 -21
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +7 -0
- package/dist/consts/urls.js +8 -5
- package/dist/features/Operation/Operation.vue.d.ts +8 -4
- package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
- package/dist/features/Operation/Operation.vue.js +56 -53
- package/dist/features/Operation/Operation.vue2.js +2 -2
- package/dist/features/Operation/components/ContentTypeSelect.vue.js +64 -55
- package/dist/features/Operation/components/ContentTypeSelect.vue2.js +2 -2
- package/dist/features/Operation/components/Header.vue.d.ts +2 -0
- package/dist/features/Operation/components/Header.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/Header.vue.js +21 -17
- package/dist/features/Operation/components/Header.vue2.js +2 -2
- package/dist/features/Operation/components/Headers.vue.d.ts +2 -0
- package/dist/features/Operation/components/Headers.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/Headers.vue.js +4 -4
- package/dist/features/Operation/components/Headers.vue2.js +58 -52
- package/dist/features/Operation/components/OperationParameters.vue.d.ts +2 -0
- package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/OperationParameters.vue.js +68 -60
- package/dist/features/Operation/components/OperationParameters.vue2.js +2 -2
- package/dist/features/Operation/components/OperationResponses.vue.d.ts +2 -0
- package/dist/features/Operation/components/OperationResponses.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/OperationResponses.vue.js +30 -19
- package/dist/features/Operation/components/OperationResponses.vue2.js +2 -2
- package/dist/features/Operation/components/ParameterList.vue.d.ts +2 -0
- package/dist/features/Operation/components/ParameterList.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterList.vue.js +40 -20
- package/dist/features/Operation/components/ParameterList.vue2.js +2 -2
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts +2 -0
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue.js +4 -4
- package/dist/features/Operation/components/ParameterListItem.vue2.js +120 -97
- package/dist/features/Operation/components/RequestBody.vue.d.ts +2 -0
- package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/RequestBody.vue.js +4 -4
- package/dist/features/Operation/components/RequestBody.vue2.js +126 -99
- package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +2 -1
- package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/callbacks/Callback.vue.js +4 -4
- package/dist/features/Operation/components/callbacks/Callback.vue2.js +48 -39
- package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts +2 -0
- package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/callbacks/Callbacks.vue.js +41 -26
- package/dist/features/Operation/components/callbacks/Callbacks.vue2.js +2 -2
- package/dist/features/Operation/helpers/combine-params.js +10 -9
- package/dist/features/Operation/helpers/get-first-server.js +19 -14
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +4 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue.js +4 -4
- package/dist/features/Operation/layouts/ClassicLayout.vue2.js +207 -184
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +3 -1
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue.js +4 -4
- package/dist/features/Operation/layouts/ModernLayout.vue2.js +230 -214
- package/dist/features/Search/components/SearchButton.vue.d.ts +3 -0
- package/dist/features/Search/components/SearchButton.vue.d.ts.map +1 -1
- package/dist/features/Search/components/SearchButton.vue.js +77 -54
- package/dist/features/Search/components/SearchButton.vue2.js +2 -2
- package/dist/features/Search/components/SearchModal.vue.d.ts +3 -1
- package/dist/features/Search/components/SearchModal.vue.d.ts.map +1 -1
- package/dist/features/Search/components/SearchModal.vue.js +4 -4
- package/dist/features/Search/components/SearchModal.vue2.js +104 -181
- package/dist/features/Search/components/SearchResult.vue.d.ts +10 -0
- package/dist/features/Search/components/SearchResult.vue.d.ts.map +1 -0
- package/dist/features/Search/components/SearchResult.vue.js +84 -0
- package/dist/features/Search/components/SearchResult.vue2.js +4 -0
- package/dist/features/Search/helpers/create-fuse-instance.d.ts +1 -1
- package/dist/features/Search/helpers/create-fuse-instance.d.ts.map +1 -1
- package/dist/features/Search/helpers/create-fuse-instance.js +10 -10
- package/dist/features/Search/helpers/create-search-index.d.ts +1 -2
- package/dist/features/Search/helpers/create-search-index.d.ts.map +1 -1
- package/dist/features/Search/helpers/create-search-index.js +69 -61
- package/dist/features/Search/hooks/useSearchIndex.d.ts +6 -7
- package/dist/features/Search/hooks/useSearchIndex.d.ts.map +1 -1
- package/dist/features/Search/hooks/useSearchIndex.js +26 -39
- package/dist/features/Search/types.d.ts +3 -3
- package/dist/features/Search/types.d.ts.map +1 -1
- package/dist/features/example-responses/ExampleResponse.vue.js +4 -4
- package/dist/features/example-responses/ExampleResponse.vue2.js +48 -34
- package/dist/features/example-responses/ExampleResponseTab.vue.js +4 -4
- package/dist/features/example-responses/ExampleResponseTab.vue2.js +20 -18
- package/dist/features/example-responses/ExampleResponseTabList.vue.js +4 -4
- package/dist/features/example-responses/ExampleResponseTabList.vue2.js +30 -27
- package/dist/features/example-responses/ExampleResponses.vue.js +4 -4
- package/dist/features/example-responses/ExampleResponses.vue2.js +160 -138
- package/dist/features/example-responses/helpers/get-resolved-ref-deep.js +31 -21
- package/dist/features/external-docs/ExternalDocs.vue.js +28 -22
- package/dist/features/external-docs/ExternalDocs.vue2.js +2 -2
- package/dist/features/info-object/Contact.vue.js +29 -24
- package/dist/features/info-object/Contact.vue2.js +2 -2
- package/dist/features/info-object/License.vue.js +32 -26
- package/dist/features/info-object/License.vue2.js +2 -2
- package/dist/features/info-object/TermsOfService.vue.js +24 -20
- package/dist/features/info-object/TermsOfService.vue2.js +2 -2
- package/dist/features/multiple-documents/DocumentSelector.vue.d.ts +7 -5
- package/dist/features/multiple-documents/DocumentSelector.vue.d.ts.map +1 -1
- package/dist/features/multiple-documents/DocumentSelector.vue.js +37 -34
- package/dist/features/multiple-documents/DocumentSelector.vue2.js +2 -2
- package/dist/features/specification-extension/SpecificationExtension.vue.js +2 -2
- package/dist/features/specification-extension/SpecificationExtension.vue2.js +38 -32
- package/dist/features/specification-extension/helpers.js +7 -2
- package/dist/features/test-request-button/TestRequestButton.vue.d.ts.map +1 -1
- package/dist/features/test-request-button/TestRequestButton.vue.js +4 -4
- package/dist/features/test-request-button/TestRequestButton.vue2.js +33 -30
- package/dist/features/toolbar/ApiReferenceToolbar.vue.js +47 -30
- package/dist/features/toolbar/ApiReferenceToolbar.vue2.js +2 -2
- package/dist/features/toolbar/ApiReferenceToolbarBlurb.vue.js +9 -8
- package/dist/features/toolbar/ApiReferenceToolbarConfig.vue.js +90 -82
- package/dist/features/toolbar/ApiReferenceToolbarConfig.vue2.js +2 -2
- package/dist/features/toolbar/ApiReferenceToolbarConfigLayout.vue.js +24 -18
- package/dist/features/toolbar/ApiReferenceToolbarConfigLayout.vue2.js +2 -2
- package/dist/features/toolbar/ApiReferenceToolbarConfigLayoutOptions.vue.js +107 -110
- package/dist/features/toolbar/ApiReferenceToolbarConfigLayoutOptions.vue2.js +2 -2
- package/dist/features/toolbar/ApiReferenceToolbarConfigTheme.vue.d.ts.map +1 -1
- package/dist/features/toolbar/ApiReferenceToolbarConfigTheme.vue.js +34 -30
- package/dist/features/toolbar/ApiReferenceToolbarConfigTheme.vue2.js +2 -2
- package/dist/features/toolbar/ApiReferenceToolbarPopover.vue.d.ts.map +1 -1
- package/dist/features/toolbar/ApiReferenceToolbarPopover.vue.js +45 -37
- package/dist/features/toolbar/ApiReferenceToolbarPopover.vue2.js +2 -2
- package/dist/features/toolbar/ApiReferenceToolbarRegisterButton.vue.js +52 -39
- package/dist/features/toolbar/ApiReferenceToolbarRegisterButton.vue2.js +2 -2
- package/dist/features/toolbar/ApiReferenceToolbarSdks.vue.js +70 -65
- package/dist/features/toolbar/ApiReferenceToolbarSdks.vue2.js +2 -2
- package/dist/features/toolbar/ApiReferenceToolbarShare.vue.js +36 -34
- package/dist/features/toolbar/ApiReferenceToolbarShare.vue2.js +2 -2
- package/dist/features/toolbar/ApiReferenceToolbarShareRegister.vue.js +50 -47
- package/dist/features/toolbar/ApiReferenceToolbarShareRegister.vue2.js +2 -2
- package/dist/features/toolbar/ApiReferenceToolbarShareTemporary.vue.js +75 -68
- package/dist/features/toolbar/ApiReferenceToolbarShareTemporary.vue2.js +2 -2
- package/dist/features/toolbar/ApiReferenceToolbarTitle.vue.js +49 -43
- package/dist/features/toolbar/ApiReferenceToolbarTitle.vue2.js +2 -2
- package/dist/features/x-badges/XBadges.vue.d.ts.map +1 -1
- package/dist/features/x-badges/XBadges.vue.js +26 -17
- package/dist/features/x-badges/XBadges.vue2.js +2 -2
- package/dist/helpers/convert-security-scheme.js +32 -21
- package/dist/helpers/download.d.ts.map +1 -0
- package/dist/helpers/download.js +45 -0
- package/dist/helpers/get-document-name.d.ts.map +1 -0
- package/dist/helpers/id-routing.d.ts +28 -0
- package/dist/helpers/id-routing.d.ts.map +1 -0
- package/dist/helpers/id-routing.js +57 -0
- package/dist/helpers/index.d.ts +10 -0
- package/dist/helpers/index.d.ts.map +1 -0
- package/dist/helpers/index.js +23 -0
- package/dist/helpers/lazy-bus.d.ts +39 -0
- package/dist/helpers/lazy-bus.d.ts.map +1 -0
- package/dist/helpers/lazy-bus.js +161 -0
- package/dist/helpers/map-config-to-client-store.d.ts +72 -0
- package/dist/helpers/map-config-to-client-store.d.ts.map +1 -0
- package/dist/helpers/map-config-to-client-store.js +146 -0
- package/dist/helpers/map-config-to-workspace-store.d.ts +9 -0
- package/dist/helpers/map-config-to-workspace-store.d.ts.map +1 -0
- package/dist/helpers/map-config-to-workspace-store.js +47 -0
- package/dist/helpers/map-configuration.d.ts.map +1 -0
- package/dist/helpers/map-configuration.js +52 -0
- package/dist/helpers/markdown.d.ts.map +1 -0
- package/dist/helpers/normalize-configurations.d.ts +42 -0
- package/dist/helpers/normalize-configurations.d.ts.map +1 -0
- package/dist/helpers/normalize-configurations.js +69 -0
- package/dist/helpers/openapi.d.ts.map +1 -0
- package/dist/helpers/openapi.js +119 -0
- package/dist/{features/toolbar/uploadTempDocument.d.ts → helpers/upload-temp-document.d.ts} +1 -1
- package/dist/helpers/upload-temp-document.d.ts.map +1 -0
- package/dist/helpers/upload-temp-document.js +24 -0
- package/dist/hooks/use-intersection.d.ts +3 -0
- package/dist/hooks/use-intersection.d.ts.map +1 -0
- package/dist/hooks/use-intersection.js +32 -0
- package/dist/hooks/use-legacy-store-events.d.ts.map +1 -0
- package/dist/hooks/use-legacy-store-events.js +91 -0
- package/dist/hooks/use-workspace-store-events.d.ts +4 -0
- package/dist/hooks/use-workspace-store-events.d.ts.map +1 -0
- package/dist/hooks/use-workspace-store-events.js +68 -0
- package/dist/index.d.ts +7 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -45
- package/dist/plugins/hooks/usePluginManager.js +11 -7
- package/dist/plugins/plugin-manager.d.ts +5 -1
- package/dist/plugins/plugin-manager.d.ts.map +1 -1
- package/dist/plugins/plugin-manager.js +31 -13
- package/dist/standalone/lib/html-api.d.ts.map +1 -1
- package/dist/standalone/lib/html-api.js +59 -32
- package/dist/style.css +11893 -1
- package/package.json +47 -36
- package/dist/components/ApiReferenceContent.vue.d.ts +0 -34
- package/dist/components/ApiReferenceContent.vue.d.ts.map +0 -1
- package/dist/components/ApiReferenceContent.vue.js +0 -8
- package/dist/components/ApiReferenceContent.vue2.js +0 -148
- package/dist/components/ApiReferenceLayout.vue.d.ts +0 -34
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +0 -1
- package/dist/components/ApiReferenceLayout.vue.js +0 -10
- package/dist/components/ApiReferenceLayout.vue2.js +0 -316
- package/dist/components/Content/IntroductionSection.vue.d.ts +0 -18
- package/dist/components/Content/IntroductionSection.vue.d.ts.map +0 -1
- package/dist/components/Content/IntroductionSection.vue.js +0 -26
- package/dist/components/Content/IntroductionSection.vue2.js +0 -4
- package/dist/components/Content/Models/ClassicLayout.vue.d.ts.map +0 -1
- package/dist/components/Content/Models/ClassicLayout.vue.js +0 -7
- package/dist/components/Content/Models/ClassicLayout.vue2.js +0 -90
- package/dist/components/Content/Models/Models.vue.d.ts.map +0 -1
- package/dist/components/Content/Models/Models.vue.js +0 -42
- package/dist/components/Content/Models/Models.vue2.js +0 -4
- package/dist/components/Content/Models/ModernLayout.vue.d.ts.map +0 -1
- package/dist/components/Content/Models/ModernLayout.vue.js +0 -7
- package/dist/components/Content/Models/ModernLayout.vue2.js +0 -102
- package/dist/components/Content/Operations/get-current-index.d.ts +0 -4
- package/dist/components/Content/Operations/get-current-index.d.ts.map +0 -1
- package/dist/components/Content/Operations/get-current-index.js +0 -16
- package/dist/components/Content/Tags/ClassicLayout.vue.d.ts.map +0 -1
- package/dist/components/Content/Tags/ClassicLayout.vue.js +0 -7
- package/dist/components/Content/Tags/ClassicLayout.vue2.js +0 -48
- package/dist/components/Content/Tags/ModernLayout.vue.d.ts.map +0 -1
- package/dist/components/Content/Tags/ModernLayout.vue.js +0 -7
- package/dist/components/Content/Tags/ModernLayout.vue2.js +0 -69
- package/dist/components/Content/Tags/TagSection.vue.d.ts.map +0 -1
- package/dist/components/Content/Tags/TagSection.vue.js +0 -95
- package/dist/components/Content/Tags/TagSection.vue2.js +0 -4
- package/dist/components/Lazy/index.d.ts +0 -3
- package/dist/components/Lazy/index.d.ts.map +0 -1
- package/dist/components/Lazy/lazyBus.d.ts +0 -10
- package/dist/components/Lazy/lazyBus.d.ts.map +0 -1
- package/dist/components/Lazy/lazyBus.js +0 -7
- package/dist/features/api-client-modal/ApiClientModal.vue.d.ts +0 -9
- package/dist/features/api-client-modal/ApiClientModal.vue.d.ts.map +0 -1
- package/dist/features/api-client-modal/ApiClientModal.vue.js +0 -83
- package/dist/features/api-client-modal/ApiClientModal.vue2.js +0 -4
- package/dist/features/api-client-modal/index.d.ts +0 -3
- package/dist/features/api-client-modal/index.d.ts.map +0 -1
- package/dist/features/api-client-modal/useApiClient.d.ts +0 -8073
- package/dist/features/api-client-modal/useApiClient.d.ts.map +0 -1
- package/dist/features/api-client-modal/useApiClient.js +0 -12
- package/dist/features/document-source/hooks/useDocumentFetcher.d.ts +0 -11
- package/dist/features/document-source/hooks/useDocumentFetcher.d.ts.map +0 -1
- package/dist/features/document-source/hooks/useDocumentFetcher.js +0 -37
- package/dist/features/document-source/hooks/useDocumentSource.d.ts +0 -19
- package/dist/features/document-source/hooks/useDocumentSource.d.ts.map +0 -1
- package/dist/features/document-source/hooks/useDocumentSource.js +0 -73
- package/dist/features/document-source/index.d.ts +0 -2
- package/dist/features/document-source/index.d.ts.map +0 -1
- package/dist/features/multiple-documents/index.d.ts +0 -3
- package/dist/features/multiple-documents/index.d.ts.map +0 -1
- package/dist/features/multiple-documents/useMultipleDocuments.d.ts +0 -36
- package/dist/features/multiple-documents/useMultipleDocuments.d.ts.map +0 -1
- package/dist/features/multiple-documents/useMultipleDocuments.js +0 -91
- package/dist/features/toolbar/uploadTempDocument.d.ts.map +0 -1
- package/dist/features/toolbar/uploadTempDocument.js +0 -21
- package/dist/helpers/test-utils.d.ts +0 -60
- package/dist/helpers/test-utils.d.ts.map +0 -1
- package/dist/hooks/useFreezing.d.ts +0 -6
- package/dist/hooks/useFreezing.d.ts.map +0 -1
- package/dist/hooks/useFreezing.js +0 -29
- package/dist/hooks/useNavState.d.ts +0 -54
- package/dist/hooks/useNavState.d.ts.map +0 -1
- package/dist/hooks/useNavState.js +0 -62
- package/dist/libs/download.d.ts.map +0 -1
- package/dist/libs/download.js +0 -28
- package/dist/libs/markdown.d.ts.map +0 -1
- package/dist/libs/openapi.d.ts.map +0 -1
- package/dist/libs/openapi.js +0 -75
- package/dist/types.d.ts +0 -71
- package/dist/types.d.ts.map +0 -1
- package/dist/v2/ApiReferenceWorkspace.vue.d.ts +0 -31
- package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +0 -1
- package/dist/v2/ApiReferenceWorkspace.vue.js +0 -194
- package/dist/v2/ApiReferenceWorkspace.vue3.js +0 -5
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts +0 -20
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +0 -7
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue2.js +0 -203
- package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.js +0 -57
- package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue2.js +0 -4
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +0 -266
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue2.js +0 -4
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +0 -135
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue2.js +0 -4
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +0 -7
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue2.js +0 -96
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.js +0 -50
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue2.js +0 -4
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +0 -253
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue2.js +0 -4
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/filter-security-requirements.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/update-scheme.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/update-scheme.js +0 -21
- package/dist/v2/blocks/scalar-auth-selector-block/index.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue.js +0 -7
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue2.js +0 -112
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.js +0 -7
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue2.js +0 -119
- package/dist/v2/blocks/scalar-client-selector-block/helpers/featured-clients.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-client-selector-block/helpers/featured-clients.js +0 -17
- package/dist/v2/blocks/scalar-client-selector-block/index.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue.js +0 -7
- package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue2.js +0 -69
- package/dist/v2/blocks/scalar-info-block/components/InfoBlock.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-info-block/components/InfoBlock.vue.js +0 -54
- package/dist/v2/blocks/scalar-info-block/components/InfoBlock.vue2.js +0 -4
- package/dist/v2/blocks/scalar-info-block/components/InfoDescription.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-info-block/components/InfoDescription.vue.js +0 -7
- package/dist/v2/blocks/scalar-info-block/components/InfoDescription.vue2.js +0 -72
- package/dist/v2/blocks/scalar-info-block/components/InfoLinks.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-info-block/components/InfoLinks.vue.js +0 -36
- package/dist/v2/blocks/scalar-info-block/components/InfoLinks.vue2.js +0 -4
- package/dist/v2/blocks/scalar-info-block/components/InfoVersion.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-info-block/components/InfoVersion.vue.js +0 -25
- package/dist/v2/blocks/scalar-info-block/components/InfoVersion.vue2.js +0 -4
- package/dist/v2/blocks/scalar-info-block/components/IntroductionCard.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-info-block/components/IntroductionCard.vue.js +0 -7
- package/dist/v2/blocks/scalar-info-block/components/IntroductionCard.vue2.js +0 -17
- package/dist/v2/blocks/scalar-info-block/components/IntroductionCardItem.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-info-block/components/IntroductionCardItem.vue.js +0 -13
- package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue.js +0 -7
- package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue2.js +0 -102
- package/dist/v2/blocks/scalar-info-block/components/OpenApiVersion.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-info-block/components/OpenApiVersion.vue.js +0 -19
- package/dist/v2/blocks/scalar-info-block/components/OpenApiVersion.vue2.js +0 -4
- package/dist/v2/blocks/scalar-info-block/index.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-server-selector-block/components/Selector.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-server-selector-block/components/Selector.vue.js +0 -75
- package/dist/v2/blocks/scalar-server-selector-block/components/Selector.vue2.js +0 -4
- package/dist/v2/blocks/scalar-server-selector-block/components/ServerSelector.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-server-selector-block/components/ServerSelector.vue.js +0 -69
- package/dist/v2/blocks/scalar-server-selector-block/components/ServerSelector.vue2.js +0 -4
- package/dist/v2/blocks/scalar-server-selector-block/index.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue.js +0 -7
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue2.js +0 -131
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue.d.ts +0 -35
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue.js +0 -7
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue2.js +0 -118
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarGroup.vue.d.ts +0 -16
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarGroup.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarGroup.vue.js +0 -7
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarGroup.vue2.js +0 -18
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarHttpBadge.vue.d.ts +0 -17
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarHttpBadge.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarHttpBadge.vue.js +0 -7
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarHttpBadge.vue2.js +0 -29
- package/dist/v2/blocks/scalar-sidebar-block/helpers/create-sidebar.d.ts +0 -23
- package/dist/v2/blocks/scalar-sidebar-block/helpers/create-sidebar.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-sidebar-block/helpers/create-sidebar.js +0 -35
- package/dist/v2/blocks/scalar-sidebar-block/helpers/generate-reverse-index.d.ts +0 -9
- package/dist/v2/blocks/scalar-sidebar-block/helpers/generate-reverse-index.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-sidebar-block/helpers/generate-reverse-index.js +0 -9
- package/dist/v2/blocks/scalar-sidebar-block/hooks/useSidebar.d.ts +0 -18
- package/dist/v2/blocks/scalar-sidebar-block/hooks/useSidebar.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-sidebar-block/hooks/useSidebar.js +0 -18
- package/dist/v2/blocks/scalar-sidebar-block/index.d.ts +0 -4
- package/dist/v2/blocks/scalar-sidebar-block/index.d.ts.map +0 -1
- package/dist/v2/helpers/get-document-name.d.ts.map +0 -1
- package/dist/v2/helpers/get-document-name.js +0 -15
- package/dist/v2/helpers/map-configuration.d.ts.map +0 -1
- package/dist/v2/helpers/map-configuration.js +0 -50
- package/dist/v2/helpers/normalize-content.d.ts +0 -3
- package/dist/v2/helpers/normalize-content.d.ts.map +0 -1
- package/dist/v2/helpers/normalize-content.js +0 -8
- package/dist/v2/hooks/use-legacy-store-events.d.ts.map +0 -1
- package/dist/v2/hooks/use-legacy-store-events.js +0 -61
- package/dist/v2/hooks/use-workspace-store-events.d.ts +0 -5
- package/dist/v2/hooks/use-workspace-store-events.d.ts.map +0 -1
- package/dist/v2/hooks/use-workspace-store-events.js +0 -40
- package/dist/v2/styles.d.ts +0 -2
- package/dist/v2/styles.d.ts.map +0 -1
- /package/dist/{v2/blocks → blocks}/scalar-auth-selector-block/components/OAuth2.vue.d.ts +0 -0
- /package/dist/{v2/blocks → blocks}/scalar-auth-selector-block/components/OAuthScopesInput.vue.d.ts +0 -0
- /package/dist/{v2/blocks → blocks}/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts +0 -0
- /package/dist/{v2/blocks → blocks}/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +0 -0
- /package/dist/{v2/blocks → blocks}/scalar-auth-selector-block/helpers/filter-security-requirements.d.ts +0 -0
- /package/dist/{v2/blocks → blocks}/scalar-auth-selector-block/helpers/update-scheme.d.ts +0 -0
- /package/dist/{v2/blocks → blocks}/scalar-auth-selector-block/index.d.ts +0 -0
- /package/dist/{v2/blocks → blocks}/scalar-client-selector-block/helpers/featured-clients.d.ts +0 -0
- /package/dist/{v2/blocks → blocks}/scalar-client-selector-block/index.d.ts +0 -0
- /package/dist/{v2/blocks → blocks}/scalar-info-block/components/InfoLinks.vue.d.ts +0 -0
- /package/dist/{v2/blocks → blocks}/scalar-info-block/components/InfoVersion.vue.d.ts +0 -0
- /package/dist/{v2/blocks → blocks}/scalar-info-block/components/IntroductionCard.vue.d.ts +0 -0
- /package/dist/{v2/blocks → blocks}/scalar-info-block/components/IntroductionCardItem.vue.d.ts +0 -0
- /package/dist/{v2/blocks → blocks}/scalar-info-block/components/OpenApiVersion.vue.d.ts +0 -0
- /package/dist/{v2/blocks → blocks}/scalar-info-block/index.d.ts +0 -0
- /package/dist/{v2/blocks → blocks}/scalar-server-selector-block/components/Selector.vue.d.ts +0 -0
- /package/dist/{v2/blocks → blocks}/scalar-server-selector-block/components/ServerSelector.vue.d.ts +0 -0
- /package/dist/{v2/blocks → blocks}/scalar-server-selector-block/index.d.ts +0 -0
- /package/dist/{libs → helpers}/download.d.ts +0 -0
- /package/dist/{v2/helpers → helpers}/get-document-name.d.ts +0 -0
- /package/dist/{v2/helpers → helpers}/map-configuration.d.ts +0 -0
- /package/dist/{libs → helpers}/markdown.d.ts +0 -0
- /package/dist/{libs → helpers}/openapi.d.ts +0 -0
- /package/dist/{v2/hooks → hooks}/use-legacy-store-events.d.ts +0 -0
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
import { defineComponent, computed, ref, onMounted, useTemplateRef, createElementBlock, openBlock, Fragment, createElementVNode, renderList, createBlock, createCommentVNode, unref, withCtx, createVNode, toDisplayString, mergeProps, createTextVNode, normalizeClass, capitalize } from "vue";
|
|
2
|
+
import { DataTableRow, DataTableCell } from "@scalar/api-client/components/DataTable";
|
|
3
|
+
import { useWorkspace } from "@scalar/api-client/store";
|
|
4
|
+
import { ScalarMarkdownSummary } from "@scalar/components";
|
|
5
|
+
import { safeLocalStorage, CLIENT_LS_KEYS } from "@scalar/helpers/object/local-storage";
|
|
6
|
+
import { isDefined } from "@scalar/oas-utils/helpers";
|
|
7
|
+
import { emitCustomEvent } from "@scalar/workspace-store/events";
|
|
8
|
+
import { updateScheme } from "../helpers/update-scheme.js";
|
|
9
|
+
import _sfc_main$2 from "./OAuth2.vue.js";
|
|
10
|
+
import _sfc_main$1 from "./RequestAuthDataTableInput.vue.js";
|
|
11
|
+
const _hoisted_1 = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow-hidden px-3 py-1.25 text-ellipsis group-hover/auth:absolute group-hover/auth:h-auto group-hover/auth:border-b *:first:line-clamp-1 *:first:text-ellipsis group-hover/auth:*:first:line-clamp-none" };
|
|
12
|
+
const _hoisted_2 = {
|
|
13
|
+
key: 0,
|
|
14
|
+
class: "flex min-h-8 border-t text-base"
|
|
15
|
+
};
|
|
16
|
+
const _hoisted_3 = { class: "flex h-8 max-w-full gap-2.5 overflow-x-auto px-3" };
|
|
17
|
+
const _hoisted_4 = ["onClick"];
|
|
18
|
+
const _hoisted_5 = { class: "relative z-10" };
|
|
19
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
20
|
+
__name: "RequestAuthTab",
|
|
21
|
+
props: {
|
|
22
|
+
collection: {},
|
|
23
|
+
environment: {},
|
|
24
|
+
envVariables: {},
|
|
25
|
+
layout: {},
|
|
26
|
+
persistAuth: { type: Boolean, default: false },
|
|
27
|
+
securitySchemeUids: {},
|
|
28
|
+
server: {},
|
|
29
|
+
workspace: {}
|
|
30
|
+
},
|
|
31
|
+
setup(__props) {
|
|
32
|
+
const storeContext = useWorkspace();
|
|
33
|
+
const { securitySchemes } = storeContext;
|
|
34
|
+
const security = computed(
|
|
35
|
+
() => __props.securitySchemeUids.map((uid) => ({
|
|
36
|
+
scheme: securitySchemes[uid]
|
|
37
|
+
}))
|
|
38
|
+
);
|
|
39
|
+
const activeFlow = ref("");
|
|
40
|
+
const generateLabel = (scheme) => {
|
|
41
|
+
const description = scheme.description ? `: ${scheme.description}` : "";
|
|
42
|
+
const baseLabel = `${capitalize(scheme.nameKey)}${description || `: ${scheme.type}`}`;
|
|
43
|
+
if (scheme.type === "apiKey") {
|
|
44
|
+
return `${capitalize(scheme.nameKey)}${description || `: ${scheme.in}`}`;
|
|
45
|
+
}
|
|
46
|
+
if (scheme.type === "oauth2") {
|
|
47
|
+
const firstFlow = Object.values(scheme.flows ?? {})[0];
|
|
48
|
+
return `${capitalize(scheme.nameKey)}: ${activeFlow.value ? activeFlow.value : firstFlow?.type ?? ""}${description}`;
|
|
49
|
+
}
|
|
50
|
+
if (scheme.type === "http") {
|
|
51
|
+
return `${capitalize(scheme.nameKey)}: ${scheme.scheme}${description}`;
|
|
52
|
+
}
|
|
53
|
+
return `${baseLabel}${description}`;
|
|
54
|
+
};
|
|
55
|
+
const updateScheme$1 = (uid, path, value) => {
|
|
56
|
+
updateScheme(uid, path, value, storeContext, wrapperRef.value, __props.persistAuth);
|
|
57
|
+
};
|
|
58
|
+
onMounted(() => {
|
|
59
|
+
if (!__props.persistAuth) {
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
const auth = JSON.parse(
|
|
63
|
+
safeLocalStorage().getItem(CLIENT_LS_KEYS.AUTH) ?? "{}"
|
|
64
|
+
);
|
|
65
|
+
const dict = Object.keys(securitySchemes).reduce(
|
|
66
|
+
(acc, key) => {
|
|
67
|
+
const scheme = securitySchemes[key];
|
|
68
|
+
if (scheme) {
|
|
69
|
+
acc[scheme.nameKey] = scheme.uid;
|
|
70
|
+
}
|
|
71
|
+
return acc;
|
|
72
|
+
},
|
|
73
|
+
{}
|
|
74
|
+
);
|
|
75
|
+
Object.entries(auth).forEach(([key, entry]) => {
|
|
76
|
+
const uid = dict[key];
|
|
77
|
+
if (uid) {
|
|
78
|
+
const entries = Object.entries(entry);
|
|
79
|
+
entries.forEach(([path, value]) => {
|
|
80
|
+
emitCustomEvent(wrapperRef.value, "scalar-edit-security-scheme", {
|
|
81
|
+
uid,
|
|
82
|
+
path,
|
|
83
|
+
value
|
|
84
|
+
});
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
try {
|
|
89
|
+
const selectedSchemeUids = JSON.parse(
|
|
90
|
+
safeLocalStorage().getItem(CLIENT_LS_KEYS.SELECTED_SECURITY_SCHEMES) ?? "null"
|
|
91
|
+
);
|
|
92
|
+
const uids = selectedSchemeUids?.map((nameKeys) => {
|
|
93
|
+
if (Array.isArray(nameKeys)) {
|
|
94
|
+
return nameKeys.map((key) => dict[key]).filter(isDefined);
|
|
95
|
+
}
|
|
96
|
+
return dict[nameKeys];
|
|
97
|
+
}).filter(isDefined);
|
|
98
|
+
if (uids) {
|
|
99
|
+
emitCustomEvent(wrapperRef.value, "scalar-select-security-schemes", {
|
|
100
|
+
uids
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
} catch {
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
const dataTableInputProps = {
|
|
107
|
+
environment: __props.environment,
|
|
108
|
+
envVariables: __props.envVariables,
|
|
109
|
+
workspace: __props.workspace
|
|
110
|
+
};
|
|
111
|
+
const wrapperRef = useTemplateRef("wrapperRef");
|
|
112
|
+
return (_ctx, _cache) => {
|
|
113
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
114
|
+
createElementVNode("div", {
|
|
115
|
+
ref_key: "wrapperRef",
|
|
116
|
+
ref: wrapperRef
|
|
117
|
+
}, null, 512),
|
|
118
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(security.value, ({ scheme }) => {
|
|
119
|
+
return openBlock(), createElementBlock(Fragment, {
|
|
120
|
+
key: scheme?.uid
|
|
121
|
+
}, [
|
|
122
|
+
security.value.length > 1 && scheme ? (openBlock(), createBlock(unref(DataTableRow), { key: 0 }, {
|
|
123
|
+
default: withCtx(() => [
|
|
124
|
+
createVNode(unref(DataTableCell), {
|
|
125
|
+
"aria-label": generateLabel(scheme),
|
|
126
|
+
class: "text-c-2 group/auth flex items-center leading-[22px] whitespace-nowrap outline-none hover:whitespace-normal"
|
|
127
|
+
}, {
|
|
128
|
+
default: withCtx(() => [
|
|
129
|
+
createElementVNode("p", _hoisted_1, toDisplayString(generateLabel(scheme)), 1)
|
|
130
|
+
]),
|
|
131
|
+
_: 2
|
|
132
|
+
}, 1032, ["aria-label"])
|
|
133
|
+
]),
|
|
134
|
+
_: 2
|
|
135
|
+
}, 1024)) : createCommentVNode("", true),
|
|
136
|
+
scheme?.description && security.value.length <= 1 ? (openBlock(), createBlock(unref(DataTableRow), { key: 1 }, {
|
|
137
|
+
default: withCtx(() => [
|
|
138
|
+
createVNode(unref(DataTableCell), {
|
|
139
|
+
"aria-label": scheme.description,
|
|
140
|
+
class: "max-h-[auto]"
|
|
141
|
+
}, {
|
|
142
|
+
default: withCtx(() => [
|
|
143
|
+
createVNode(unref(ScalarMarkdownSummary), {
|
|
144
|
+
class: "auth-description bg-b-1 text-c-2 min-w-0 flex-1 px-3 py-1.25",
|
|
145
|
+
value: scheme.description
|
|
146
|
+
}, null, 8, ["value"])
|
|
147
|
+
]),
|
|
148
|
+
_: 2
|
|
149
|
+
}, 1032, ["aria-label"])
|
|
150
|
+
]),
|
|
151
|
+
_: 2
|
|
152
|
+
}, 1024)) : createCommentVNode("", true),
|
|
153
|
+
scheme?.type === "http" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
154
|
+
scheme.scheme === "bearer" ? (openBlock(), createBlock(unref(DataTableRow), { key: 0 }, {
|
|
155
|
+
default: withCtx(() => [
|
|
156
|
+
createVNode(_sfc_main$1, mergeProps({ ref_for: true }, dataTableInputProps, {
|
|
157
|
+
containerClass: _ctx.layout === "reference" && "border-t",
|
|
158
|
+
modelValue: scheme.token,
|
|
159
|
+
placeholder: "Token",
|
|
160
|
+
type: "password",
|
|
161
|
+
"onUpdate:modelValue": (v) => updateScheme$1(scheme.uid, "token", v)
|
|
162
|
+
}), {
|
|
163
|
+
default: withCtx(() => [..._cache[0] || (_cache[0] = [
|
|
164
|
+
createTextVNode(" Bearer Token ", -1)
|
|
165
|
+
])]),
|
|
166
|
+
_: 1
|
|
167
|
+
}, 16, ["containerClass", "modelValue", "onUpdate:modelValue"])
|
|
168
|
+
]),
|
|
169
|
+
_: 2
|
|
170
|
+
}, 1024)) : scheme?.scheme === "basic" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
171
|
+
createVNode(unref(DataTableRow), null, {
|
|
172
|
+
default: withCtx(() => [
|
|
173
|
+
createVNode(_sfc_main$1, mergeProps({ ref_for: true }, dataTableInputProps, {
|
|
174
|
+
class: "text-c-2",
|
|
175
|
+
modelValue: scheme.username,
|
|
176
|
+
placeholder: "janedoe",
|
|
177
|
+
required: "",
|
|
178
|
+
"onUpdate:modelValue": (v) => updateScheme$1(scheme.uid, "username", v)
|
|
179
|
+
}), {
|
|
180
|
+
default: withCtx(() => [..._cache[1] || (_cache[1] = [
|
|
181
|
+
createTextVNode(" Username ", -1)
|
|
182
|
+
])]),
|
|
183
|
+
_: 1
|
|
184
|
+
}, 16, ["modelValue", "onUpdate:modelValue"])
|
|
185
|
+
]),
|
|
186
|
+
_: 2
|
|
187
|
+
}, 1024),
|
|
188
|
+
createVNode(unref(DataTableRow), null, {
|
|
189
|
+
default: withCtx(() => [
|
|
190
|
+
createVNode(_sfc_main$1, mergeProps({ ref_for: true }, dataTableInputProps, {
|
|
191
|
+
modelValue: scheme.password,
|
|
192
|
+
placeholder: "********",
|
|
193
|
+
type: "password",
|
|
194
|
+
"onUpdate:modelValue": (v) => updateScheme$1(scheme.uid, "password", v)
|
|
195
|
+
}), {
|
|
196
|
+
default: withCtx(() => [..._cache[2] || (_cache[2] = [
|
|
197
|
+
createTextVNode(" Password ", -1)
|
|
198
|
+
])]),
|
|
199
|
+
_: 1
|
|
200
|
+
}, 16, ["modelValue", "onUpdate:modelValue"])
|
|
201
|
+
]),
|
|
202
|
+
_: 2
|
|
203
|
+
}, 1024)
|
|
204
|
+
], 64)) : createCommentVNode("", true)
|
|
205
|
+
], 64)) : scheme?.type === "apiKey" ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
|
|
206
|
+
createVNode(unref(DataTableRow), null, {
|
|
207
|
+
default: withCtx(() => [
|
|
208
|
+
createVNode(_sfc_main$1, mergeProps({ ref_for: true }, dataTableInputProps, {
|
|
209
|
+
containerClass: _ctx.layout === "reference" && "border-t",
|
|
210
|
+
modelValue: scheme.name,
|
|
211
|
+
placeholder: "api-key",
|
|
212
|
+
"onUpdate:modelValue": (v) => updateScheme$1(scheme.uid, "name", v)
|
|
213
|
+
}), {
|
|
214
|
+
default: withCtx(() => [..._cache[3] || (_cache[3] = [
|
|
215
|
+
createTextVNode(" Name ", -1)
|
|
216
|
+
])]),
|
|
217
|
+
_: 1
|
|
218
|
+
}, 16, ["containerClass", "modelValue", "onUpdate:modelValue"])
|
|
219
|
+
]),
|
|
220
|
+
_: 2
|
|
221
|
+
}, 1024),
|
|
222
|
+
createVNode(unref(DataTableRow), null, {
|
|
223
|
+
default: withCtx(() => [
|
|
224
|
+
createVNode(_sfc_main$1, mergeProps({ ref_for: true }, dataTableInputProps, {
|
|
225
|
+
modelValue: scheme.value,
|
|
226
|
+
placeholder: "QUxMIFlPVVIgQkFTRSBBUkUgQkVMT05HIFRPIFVT",
|
|
227
|
+
type: "password",
|
|
228
|
+
"onUpdate:modelValue": (v) => updateScheme$1(scheme.uid, "value", v)
|
|
229
|
+
}), {
|
|
230
|
+
default: withCtx(() => [..._cache[4] || (_cache[4] = [
|
|
231
|
+
createTextVNode(" Value ", -1)
|
|
232
|
+
])]),
|
|
233
|
+
_: 1
|
|
234
|
+
}, 16, ["modelValue", "onUpdate:modelValue"])
|
|
235
|
+
]),
|
|
236
|
+
_: 2
|
|
237
|
+
}, 1024)
|
|
238
|
+
], 64)) : scheme?.type === "oauth2" ? (openBlock(), createElementBlock(Fragment, { key: 4 }, [
|
|
239
|
+
createVNode(unref(DataTableRow), null, {
|
|
240
|
+
default: withCtx(() => [
|
|
241
|
+
Object.keys(scheme.flows).length > 1 ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
242
|
+
createElementVNode("div", _hoisted_3, [
|
|
243
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(scheme?.flows, (_, key, ind) => {
|
|
244
|
+
return openBlock(), createElementBlock("button", {
|
|
245
|
+
key,
|
|
246
|
+
class: normalizeClass(["floating-bg text-c-3 relative cursor-pointer border-b-[1px] border-transparent py-1 text-base font-medium", {
|
|
247
|
+
"!text-c-1 !rounded-none border-b-[1px] !border-current": _ctx.layout !== "reference" && (activeFlow.value === key || ind === 0 && !activeFlow.value),
|
|
248
|
+
"!text-c-1 !rounded-none border-b-[1px] !border-current opacity-100": _ctx.layout === "reference" && (activeFlow.value === key || ind === 0 && !activeFlow.value)
|
|
249
|
+
}]),
|
|
250
|
+
type: "button",
|
|
251
|
+
onClick: ($event) => activeFlow.value = key
|
|
252
|
+
}, [
|
|
253
|
+
createElementVNode("span", _hoisted_5, toDisplayString(key), 1)
|
|
254
|
+
], 10, _hoisted_4);
|
|
255
|
+
}), 128))
|
|
256
|
+
])
|
|
257
|
+
])) : createCommentVNode("", true)
|
|
258
|
+
]),
|
|
259
|
+
_: 2
|
|
260
|
+
}, 1024),
|
|
261
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(scheme?.flows, (flow, key, ind) => {
|
|
262
|
+
return openBlock(), createElementBlock(Fragment, { key }, [
|
|
263
|
+
activeFlow.value === key || ind === 0 && !activeFlow.value ? (openBlock(), createBlock(_sfc_main$2, mergeProps({
|
|
264
|
+
key: 0,
|
|
265
|
+
ref_for: true
|
|
266
|
+
}, dataTableInputProps, {
|
|
267
|
+
collection: _ctx.collection,
|
|
268
|
+
flow,
|
|
269
|
+
persistAuth: _ctx.persistAuth,
|
|
270
|
+
scheme,
|
|
271
|
+
server: _ctx.server,
|
|
272
|
+
workspace: _ctx.workspace
|
|
273
|
+
}), null, 16, ["collection", "flow", "persistAuth", "scheme", "server", "workspace"])) : createCommentVNode("", true)
|
|
274
|
+
], 64);
|
|
275
|
+
}), 128))
|
|
276
|
+
], 64)) : scheme?.type === "openIdConnect" ? (openBlock(), createElementBlock("div", {
|
|
277
|
+
key: 5,
|
|
278
|
+
class: normalizeClass(["text-c-3 bg-b-1 flex min-h-[calc(4rem+1px)] items-center justify-center border-t border-b-0 px-4 text-base", { "rounded-b-lg": _ctx.layout === "reference" }])
|
|
279
|
+
}, " Coming soon ", 2)) : createCommentVNode("", true)
|
|
280
|
+
], 64);
|
|
281
|
+
}), 128))
|
|
282
|
+
], 64);
|
|
283
|
+
};
|
|
284
|
+
}
|
|
285
|
+
});
|
|
286
|
+
export {
|
|
287
|
+
_sfc_main as default
|
|
288
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filter-security-requirements.d.ts","sourceRoot":"","sources":["../../../../src/blocks/scalar-auth-selector-block/helpers/filter-security-requirements.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAEjF;;GAEG;AACH,eAAO,MAAM,0BAA0B,GACrC,sBAAsB,UAAU,CAAC,UAAU,CAAC,EAC5C,6BAA4B,UAAU,CAAC,4BAA4B,CAAM,EACzE,kBAAiB,MAAM,CAAC,MAAM,EAAE,cAAc,CAAM,KACnD,cAAc,EA0DhB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-scheme.d.ts","sourceRoot":"","sources":["../../../../src/blocks/scalar-auth-selector-block/helpers/update-scheme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AACrE,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAA;AAElE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAG9D,6CAA6C;AAC7C,MAAM,MAAM,IAAI,CAAC,CAAC,SAAS,IAAI,CAAC,cAAc,CAAC,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,cAAc,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;AAEvH,mDAAmD;AACnD,eAAO,MAAM,YAAY,GAAI,CAAC,SAAS,cAAc,CAAC,KAAK,CAAC,EAAE,CAAC,SAAS,IAAI,CAAC,cAAc,CAAC,EAC1F,KAAK,CAAC,EACN,MAAM,CAAC,EACP,OAAO,WAAW,CAAC,SAAS,CAAC,cAAc,EAAE,CAAC,CAAC,CAAC,EAChD,qBAAqB,cAAc,EACnC,KAAK,WAAW,GAAG,IAAI,EACvB,qBAAmB,SAyBpB,CAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { safeLocalStorage, CLIENT_LS_KEYS } from "@scalar/helpers/object/local-storage";
|
|
2
|
+
import { emitCustomEvent } from "@scalar/workspace-store/events";
|
|
3
|
+
const updateScheme = (uid, path, value, { securitySchemes }, el, persistAuth = false) => {
|
|
4
|
+
emitCustomEvent(el, "scalar-edit-security-scheme", {
|
|
5
|
+
uid,
|
|
6
|
+
path,
|
|
7
|
+
value
|
|
8
|
+
});
|
|
9
|
+
if (!persistAuth) {
|
|
10
|
+
return;
|
|
11
|
+
}
|
|
12
|
+
try {
|
|
13
|
+
const auth = JSON.parse(safeLocalStorage().getItem(CLIENT_LS_KEYS.AUTH) ?? "{}");
|
|
14
|
+
const scheme = securitySchemes[uid];
|
|
15
|
+
if (auth && scheme?.nameKey) {
|
|
16
|
+
const nameScheme = auth[scheme.nameKey] ||= {};
|
|
17
|
+
nameScheme[path] = value;
|
|
18
|
+
safeLocalStorage().setItem(CLIENT_LS_KEYS.AUTH, JSON.stringify(auth));
|
|
19
|
+
}
|
|
20
|
+
} catch (e) {
|
|
21
|
+
console.error(e);
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
updateScheme
|
|
26
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/blocks/scalar-auth-selector-block/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,+BAA+B,CAAA"}
|
package/dist/{v2/blocks → blocks}/scalar-client-selector-block/components/ClientDropdown.vue.d.ts
RENAMED
|
@@ -7,8 +7,6 @@ type __VLS_Props = {
|
|
|
7
7
|
xSelectedClient?: AvailableClients[number];
|
|
8
8
|
/** List of featured clients */
|
|
9
9
|
featuredClients: ClientOption[];
|
|
10
|
-
/** The id of the tab panel that contains for the non featured clients */
|
|
11
|
-
morePanel?: string;
|
|
12
10
|
};
|
|
13
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>;
|
|
14
12
|
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClientDropdown.vue.d.ts","sourceRoot":"","sources":["../../../../src/blocks/scalar-client-selector-block/components/ClientDropdown.vue"],"names":[],"mappings":"AAuPA,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACvB,MAAM,oDAAoD,CAAA;AAG3D,OAAO,KAAK,EAAE,gBAAgB,EAAY,MAAM,wBAAwB,CAAA;AAMxE,KAAK,WAAW,GAAG;IACjB,qBAAqB;IACrB,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,yCAAyC;IACzC,eAAe,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;IAC1C,+BAA+B;IAC/B,eAAe,EAAE,YAAY,EAAE,CAAA;CAChC,CAAC;;AAgPF,wBAMG"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import _sfc_main from "./ClientDropdown.vue2.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const ClientDropdown = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b7785507"]]);
|
|
5
|
+
export {
|
|
6
|
+
ClientDropdown as default
|
|
7
|
+
};
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { defineComponent, ref, computed, createElementBlock, openBlock, createVNode, Fragment, renderList, createBlock, unref, normalizeClass, withCtx, createElementVNode, toDisplayString, createCommentVNode } from "vue";
|
|
2
|
+
import { Tab } from "@headlessui/vue";
|
|
3
|
+
import { findClient } from "@scalar/api-client/v2/blocks/operation-code-sample";
|
|
4
|
+
import { ScalarIcon, ScalarCombobox } from "@scalar/components";
|
|
5
|
+
import { freezeElement } from "@scalar/helpers/dom/freeze-element";
|
|
6
|
+
import { emitCustomEvent } from "@scalar/workspace-store/events";
|
|
7
|
+
import { isFeaturedClient } from "../helpers/featured-clients.js";
|
|
8
|
+
const _hoisted_1 = { class: "client-libraries-text" };
|
|
9
|
+
const _hoisted_2 = {
|
|
10
|
+
"aria-hidden": "true",
|
|
11
|
+
class: "client-libraries-icon__more"
|
|
12
|
+
};
|
|
13
|
+
const _hoisted_3 = {
|
|
14
|
+
key: 1,
|
|
15
|
+
class: "client-libraries-icon",
|
|
16
|
+
height: "50",
|
|
17
|
+
role: "presentation",
|
|
18
|
+
viewBox: "0 0 50 50",
|
|
19
|
+
width: "50",
|
|
20
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
21
|
+
};
|
|
22
|
+
const _hoisted_4 = {
|
|
23
|
+
key: 0,
|
|
24
|
+
class: "client-libraries-text client-libraries-text-more"
|
|
25
|
+
};
|
|
26
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
27
|
+
__name: "ClientDropdown",
|
|
28
|
+
props: {
|
|
29
|
+
clientOptions: {},
|
|
30
|
+
xSelectedClient: {},
|
|
31
|
+
featuredClients: {}
|
|
32
|
+
},
|
|
33
|
+
setup(__props) {
|
|
34
|
+
const containerRef = ref();
|
|
35
|
+
const getIconByLanguageKey = (targetKey) => `programming-language-${targetKey === "js" ? "javascript" : targetKey}`;
|
|
36
|
+
const selectClient = (option) => {
|
|
37
|
+
if (!containerRef.value) {
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
const unfreeze = freezeElement(containerRef.value);
|
|
41
|
+
setTimeout(() => {
|
|
42
|
+
unfreeze();
|
|
43
|
+
}, 300);
|
|
44
|
+
emitCustomEvent(
|
|
45
|
+
containerRef.value,
|
|
46
|
+
"scalar-update-selected-client",
|
|
47
|
+
option.id
|
|
48
|
+
);
|
|
49
|
+
};
|
|
50
|
+
const selectedTargetKey = computed(
|
|
51
|
+
() => __props.xSelectedClient?.split("/")[0]
|
|
52
|
+
);
|
|
53
|
+
return (_ctx, _cache) => {
|
|
54
|
+
return openBlock(), createElementBlock("div", {
|
|
55
|
+
ref_key: "containerRef",
|
|
56
|
+
ref: containerRef,
|
|
57
|
+
class: "client-libraries-content"
|
|
58
|
+
}, [
|
|
59
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.featuredClients, (featuredClient) => {
|
|
60
|
+
return openBlock(), createBlock(unref(Tab), {
|
|
61
|
+
key: featuredClient.clientKey,
|
|
62
|
+
class: normalizeClass(["client-libraries rendered-code-sdks", {
|
|
63
|
+
"client-libraries__active": featuredClient.id === _ctx.xSelectedClient
|
|
64
|
+
}])
|
|
65
|
+
}, {
|
|
66
|
+
default: withCtx(() => [
|
|
67
|
+
createElementVNode("div", {
|
|
68
|
+
class: normalizeClass(`client-libraries-icon__${featuredClient.targetKey}`)
|
|
69
|
+
}, [
|
|
70
|
+
createVNode(unref(ScalarIcon), {
|
|
71
|
+
class: "client-libraries-icon",
|
|
72
|
+
icon: getIconByLanguageKey(featuredClient.targetKey)
|
|
73
|
+
}, null, 8, ["icon"])
|
|
74
|
+
], 2),
|
|
75
|
+
createElementVNode("span", _hoisted_1, toDisplayString(featuredClient.targetTitle), 1)
|
|
76
|
+
]),
|
|
77
|
+
_: 2
|
|
78
|
+
}, 1032, ["class"]);
|
|
79
|
+
}), 128)),
|
|
80
|
+
createVNode(unref(ScalarCombobox), {
|
|
81
|
+
modelValue: unref(findClient)(_ctx.clientOptions, _ctx.xSelectedClient),
|
|
82
|
+
options: _ctx.clientOptions,
|
|
83
|
+
placement: "bottom-end",
|
|
84
|
+
teleport: "",
|
|
85
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => selectClient($event))
|
|
86
|
+
}, {
|
|
87
|
+
default: withCtx(() => [
|
|
88
|
+
createElementVNode("button", {
|
|
89
|
+
class: normalizeClass(["client-libraries client-libraries__select", {
|
|
90
|
+
"client-libraries__active": _ctx.xSelectedClient && !unref(isFeaturedClient)(_ctx.xSelectedClient)
|
|
91
|
+
}]),
|
|
92
|
+
type: "button"
|
|
93
|
+
}, [
|
|
94
|
+
createElementVNode("div", _hoisted_2, [
|
|
95
|
+
_ctx.xSelectedClient && !unref(isFeaturedClient)(_ctx.xSelectedClient) ? (openBlock(), createElementBlock("div", {
|
|
96
|
+
key: 0,
|
|
97
|
+
class: normalizeClass(`client-libraries-icon__${selectedTargetKey.value}`)
|
|
98
|
+
}, [
|
|
99
|
+
selectedTargetKey.value ? (openBlock(), createBlock(unref(ScalarIcon), {
|
|
100
|
+
key: 0,
|
|
101
|
+
class: "client-libraries-icon",
|
|
102
|
+
icon: getIconByLanguageKey(selectedTargetKey.value)
|
|
103
|
+
}, null, 8, ["icon"])) : createCommentVNode("", true)
|
|
104
|
+
], 2)) : (openBlock(), createElementBlock("svg", _hoisted_3, [..._cache[1] || (_cache[1] = [
|
|
105
|
+
createElementVNode("g", {
|
|
106
|
+
fill: "currentColor",
|
|
107
|
+
"fill-rule": "nonzero"
|
|
108
|
+
}, [
|
|
109
|
+
createElementVNode("path", { d: "M10.71 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0M21.13 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0M31.55 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0" })
|
|
110
|
+
], -1)
|
|
111
|
+
])]))
|
|
112
|
+
]),
|
|
113
|
+
_ctx.clientOptions.length ? (openBlock(), createElementBlock("span", _hoisted_4, " More ")) : createCommentVNode("", true),
|
|
114
|
+
_cache[2] || (_cache[2] = createElementVNode("span", { class: "sr-only" }, "Select from all clients", -1))
|
|
115
|
+
], 2)
|
|
116
|
+
]),
|
|
117
|
+
_: 1
|
|
118
|
+
}, 8, ["modelValue", "options"])
|
|
119
|
+
], 512);
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
export {
|
|
124
|
+
_sfc_main as default
|
|
125
|
+
};
|
package/dist/{v2/blocks → blocks}/scalar-client-selector-block/components/ClientSelector.vue.d.ts
RENAMED
|
@@ -10,7 +10,7 @@ type __VLS_Props = {
|
|
|
10
10
|
xSelectedClient?: AvailableClients[number];
|
|
11
11
|
};
|
|
12
12
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {
|
|
13
|
-
selectedClientOption: import("vue").ComputedRef<import("@scalar/api-client/v2/blocks/operation-code-sample").ClientOption>;
|
|
13
|
+
selectedClientOption: import("vue").ComputedRef<import("@scalar/api-client/v2/blocks/operation-code-sample").ClientOption | undefined>;
|
|
14
14
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
15
|
export default _default;
|
|
16
16
|
//# sourceMappingURL=ClientSelector.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClientSelector.vue.d.ts","sourceRoot":"","sources":["../../../../src/blocks/scalar-client-selector-block/components/ClientSelector.vue"],"names":[],"mappings":"AA2MA,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,oDAAoD,CAAA;AAE3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAExD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,+EAA+E,CAAA;AAU3H,KAAK,WAAW,GAAG;IACjB,6CAA6C;IAC7C,sBAAsB,CAAC,EAAE,sBAAsB,CAAC,2BAA2B,CAAC,CAAA;IAC5E,yDAAyD;IACzD,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,yCAAyC;IACzC,eAAe,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;CAC3C,CAAC;;;;AAuRF,wBAOG"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import _sfc_main from "./ClientSelector.vue2.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const ClientSelector = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-abfa446f"]]);
|
|
5
|
+
export {
|
|
6
|
+
ClientSelector as default
|
|
7
|
+
};
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { defineComponent, useId, computed, useTemplateRef, createElementBlock, createCommentVNode, openBlock, createVNode, unref, withCtx, createElementVNode, Fragment, normalizeClass, renderList, createBlock, createTextVNode, toDisplayString } from "vue";
|
|
2
|
+
import { TabGroup, TabList, TabPanels, TabPanel } from "@headlessui/vue";
|
|
3
|
+
import { DEFAULT_CLIENT } from "@scalar/api-client/v2/blocks/operation-code-sample";
|
|
4
|
+
import { ScalarMarkdown, ScalarCodeBlock } from "@scalar/components";
|
|
5
|
+
import { emitCustomEvent } from "@scalar/workspace-store/events";
|
|
6
|
+
import { getFeaturedClients, isFeaturedClient } from "../helpers/featured-clients.js";
|
|
7
|
+
import ClientDropdown from "./ClientDropdown.vue.js";
|
|
8
|
+
const _hoisted_1 = {
|
|
9
|
+
key: 0,
|
|
10
|
+
ref: "wrapper-ref"
|
|
11
|
+
};
|
|
12
|
+
const _hoisted_2 = ["id"];
|
|
13
|
+
const _hoisted_3 = {
|
|
14
|
+
key: 1,
|
|
15
|
+
class: "selected-client card-footer border-t-0 p-0",
|
|
16
|
+
role: "tabpanel",
|
|
17
|
+
tabindex: "1"
|
|
18
|
+
};
|
|
19
|
+
const _hoisted_4 = ["id"];
|
|
20
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
21
|
+
__name: "ClientSelector",
|
|
22
|
+
props: {
|
|
23
|
+
xScalarSdkInstallation: {},
|
|
24
|
+
clientOptions: {},
|
|
25
|
+
xSelectedClient: { default: () => DEFAULT_CLIENT }
|
|
26
|
+
},
|
|
27
|
+
setup(__props, { expose: __expose }) {
|
|
28
|
+
const headingId = useId();
|
|
29
|
+
const morePanel = useId();
|
|
30
|
+
const selectedClientOption = computed(
|
|
31
|
+
() => __props.clientOptions.flatMap(
|
|
32
|
+
(option) => option.options.find((option2) => option2.id === __props.xSelectedClient) ?? []
|
|
33
|
+
)[0]
|
|
34
|
+
);
|
|
35
|
+
const featuredClients = computed(() => getFeaturedClients(__props.clientOptions));
|
|
36
|
+
const tabIndex = computed(
|
|
37
|
+
() => featuredClients.value.findIndex(
|
|
38
|
+
(featuredClient) => __props.xSelectedClient === featuredClient.id
|
|
39
|
+
)
|
|
40
|
+
);
|
|
41
|
+
const wrapper = useTemplateRef("wrapper-ref");
|
|
42
|
+
const onTabSelect = (i) => {
|
|
43
|
+
const client = featuredClients.value[i];
|
|
44
|
+
if (!client || !wrapper.value) {
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
emitCustomEvent(wrapper.value, "scalar-update-selected-client", client.id);
|
|
48
|
+
};
|
|
49
|
+
const installationInstructions = computed(() => {
|
|
50
|
+
if (!Array.isArray(__props.xScalarSdkInstallation) || !__props.xScalarSdkInstallation?.length) {
|
|
51
|
+
return void 0;
|
|
52
|
+
}
|
|
53
|
+
const instruction = __props.xScalarSdkInstallation.find((instruction2) => {
|
|
54
|
+
const targetKey = __props.xSelectedClient?.split("/")[0]?.toLowerCase();
|
|
55
|
+
return instruction2.lang.toLowerCase() === targetKey;
|
|
56
|
+
});
|
|
57
|
+
if (!instruction) {
|
|
58
|
+
return void 0;
|
|
59
|
+
}
|
|
60
|
+
return instruction;
|
|
61
|
+
});
|
|
62
|
+
__expose({
|
|
63
|
+
selectedClientOption
|
|
64
|
+
});
|
|
65
|
+
return (_ctx, _cache) => {
|
|
66
|
+
return _ctx.clientOptions.length ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
67
|
+
createVNode(unref(TabGroup), {
|
|
68
|
+
manual: "",
|
|
69
|
+
selectedIndex: tabIndex.value,
|
|
70
|
+
onChange: onTabSelect
|
|
71
|
+
}, {
|
|
72
|
+
default: withCtx(() => [
|
|
73
|
+
createElementVNode("div", {
|
|
74
|
+
id: unref(headingId),
|
|
75
|
+
class: "client-libraries-heading"
|
|
76
|
+
}, " Client Libraries ", 8, _hoisted_2),
|
|
77
|
+
createVNode(unref(TabList), {
|
|
78
|
+
"aria-labelledby": unref(headingId),
|
|
79
|
+
class: "client-libraries-list"
|
|
80
|
+
}, {
|
|
81
|
+
default: withCtx(() => [
|
|
82
|
+
createVNode(ClientDropdown, {
|
|
83
|
+
clientOptions: _ctx.clientOptions,
|
|
84
|
+
featuredClients: featuredClients.value,
|
|
85
|
+
morePanel: unref(morePanel),
|
|
86
|
+
xSelectedClient: _ctx.xSelectedClient
|
|
87
|
+
}, null, 8, ["clientOptions", "featuredClients", "morePanel", "xSelectedClient"])
|
|
88
|
+
]),
|
|
89
|
+
_: 1
|
|
90
|
+
}, 8, ["aria-labelledby"]),
|
|
91
|
+
createVNode(unref(TabPanels), null, {
|
|
92
|
+
default: withCtx(() => [
|
|
93
|
+
installationInstructions.value?.source || installationInstructions.value?.description ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
94
|
+
installationInstructions.value.description ? (openBlock(), createElementBlock("div", {
|
|
95
|
+
key: 0,
|
|
96
|
+
class: normalizeClass(["selected-client card-footer -outline-offset-2", installationInstructions.value.source && "rounded-b-none"]),
|
|
97
|
+
role: "tabpanel",
|
|
98
|
+
tabindex: "0"
|
|
99
|
+
}, [
|
|
100
|
+
createVNode(unref(ScalarMarkdown), {
|
|
101
|
+
value: installationInstructions.value.description
|
|
102
|
+
}, null, 8, ["value"])
|
|
103
|
+
], 2)) : createCommentVNode("", true),
|
|
104
|
+
installationInstructions.value.source ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
105
|
+
createVNode(unref(ScalarCodeBlock), {
|
|
106
|
+
class: "rounded-t-none rounded-b-lg px-3 py-2 -outline-offset-1 has-focus:outline",
|
|
107
|
+
content: installationInstructions.value.source,
|
|
108
|
+
copy: true,
|
|
109
|
+
lang: "shell"
|
|
110
|
+
}, null, 8, ["content"])
|
|
111
|
+
])) : createCommentVNode("", true)
|
|
112
|
+
], 64)) : unref(isFeaturedClient)(_ctx.xSelectedClient) ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(featuredClients.value, (client) => {
|
|
113
|
+
return openBlock(), createBlock(unref(TabPanel), {
|
|
114
|
+
key: client.id,
|
|
115
|
+
class: "selected-client card-footer -outline-offset-2"
|
|
116
|
+
}, {
|
|
117
|
+
default: withCtx(() => [
|
|
118
|
+
createTextVNode(toDisplayString(client.title), 1)
|
|
119
|
+
]),
|
|
120
|
+
_: 2
|
|
121
|
+
}, 1024);
|
|
122
|
+
}), 128)) : (openBlock(), createElementBlock("div", {
|
|
123
|
+
key: 2,
|
|
124
|
+
id: unref(morePanel),
|
|
125
|
+
class: "selected-client card-footer -outline-offset-2",
|
|
126
|
+
role: "tabpanel",
|
|
127
|
+
tabindex: "0"
|
|
128
|
+
}, toDisplayString(selectedClientOption.value?.title), 9, _hoisted_4))
|
|
129
|
+
]),
|
|
130
|
+
_: 1
|
|
131
|
+
})
|
|
132
|
+
]),
|
|
133
|
+
_: 1
|
|
134
|
+
}, 8, ["selectedIndex"])
|
|
135
|
+
], 512)) : createCommentVNode("", true);
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
export {
|
|
140
|
+
_sfc_main as default
|
|
141
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"featured-clients.d.ts","sourceRoot":"","sources":["../../../../src/blocks/scalar-client-selector-block/helpers/featured-clients.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AACzG,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAWxD,sDAAsD;AACtD,eAAO,MAAM,gBAAgB,GAC3B,UAAU,gBAAgB,CAAC,MAAM,CAAC,GAAG,SAAS,EAC9C,kBAAiB,gBAAgB,CAAC,MAAM,CAAC,EAAqB,YACgC,CAAA;AAEhG;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAC7B,eAAe,iBAAiB,EAAE,EAClC,kBAAiB,gBAAgB,CAAC,MAAM,CAAC,EAAqB,KAC7D,YAAY,EAgBd,CAAA"}
|