@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
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,74 @@
|
|
|
1
1
|
# @scalar/api-reference
|
|
2
2
|
|
|
3
|
+
## 1.39.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#7262](https://github.com/scalar/scalar/pull/7262) [`1d987e9`](https://github.com/scalar/scalar/commit/1d987e9977b145b2657bc5f8d6a67d2add958826) Thanks [@amritk](https://github.com/amritk)! - fix: do not set proxy by default
|
|
8
|
+
|
|
9
|
+
- [#7253](https://github.com/scalar/scalar/pull/7253) [`eb96d5c`](https://github.com/scalar/scalar/commit/eb96d5c1dfabde0681552ffc6ab77952c47775bb) Thanks [@hwkr](https://github.com/hwkr)! - fix(api-reference): upgrade document for client store
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [[`bffef40`](https://github.com/scalar/scalar/commit/bffef4092e40d12052f8538267af71bc99b7172f)]:
|
|
12
|
+
- @scalar/workspace-store@0.18.1
|
|
13
|
+
- @scalar/api-client@2.9.1
|
|
14
|
+
- @scalar/oas-utils@0.6.1
|
|
15
|
+
- @scalar/sidebar@0.2.1
|
|
16
|
+
- @scalar/components@0.16.1
|
|
17
|
+
|
|
18
|
+
## 1.39.0
|
|
19
|
+
|
|
20
|
+
### Minor Changes
|
|
21
|
+
|
|
22
|
+
- [#7129](https://github.com/scalar/scalar/pull/7129) [`6ec8c29`](https://github.com/scalar/scalar/commit/6ec8c299d912111b029e8058979d00968b70691a) Thanks [@geoffgscott](https://github.com/geoffgscott)! - Simplify ApiReferences state management and migrate to new shared sidebar component. Eliminates the useSidebar and useNav hooks in favour of event bubbling and centralized state management in ApiReference.vue
|
|
23
|
+
|
|
24
|
+
- [#7094](https://github.com/scalar/scalar/pull/7094) [`eba18d0`](https://github.com/scalar/scalar/commit/eba18d06267a163a8f91396a66f817100ee59461) Thanks [@geoffgscott](https://github.com/geoffgscott)! - Migrate to workspace store as primary source of truth.
|
|
25
|
+
|
|
26
|
+
- [#7199](https://github.com/scalar/scalar/pull/7199) [`0d9c945`](https://github.com/scalar/scalar/commit/0d9c945a696ea8b826d86f7b48ec6de4d85e64f0) Thanks [@marcalexiei](https://github.com/marcalexiei)! - feat: update vue to 3.5.21
|
|
27
|
+
|
|
28
|
+
### Patch Changes
|
|
29
|
+
|
|
30
|
+
- [#7212](https://github.com/scalar/scalar/pull/7212) [`3ecf139`](https://github.com/scalar/scalar/commit/3ecf139d1a8e7a4dd49d471fa5f74c572442ae35) Thanks [@geoffgscott](https://github.com/geoffgscott)! - Correct dependency triggers for lazy bus running
|
|
31
|
+
|
|
32
|
+
- [#7086](https://github.com/scalar/scalar/pull/7086) [`eb022f2`](https://github.com/scalar/scalar/commit/eb022f2c8f93c84a04c0093fefe8a1e05d6ec80d) Thanks [@hanspagel](https://github.com/hanspagel)! - feat: new `content.end` slot for the plugin API
|
|
33
|
+
|
|
34
|
+
- [#7245](https://github.com/scalar/scalar/pull/7245) [`6f60b8d`](https://github.com/scalar/scalar/commit/6f60b8dd1cf17185ea56b1f3bcbe811acc14010b) Thanks [@hanspagel](https://github.com/hanspagel)! - fix: info.description does not show images
|
|
35
|
+
|
|
36
|
+
- [#7177](https://github.com/scalar/scalar/pull/7177) [`23a5628`](https://github.com/scalar/scalar/commit/23a5628e73d43739e3786703c0fe539c19697733) Thanks [@hwkr](https://github.com/hwkr)! - fix(api-reference): add better descriptions to search entry headings
|
|
37
|
+
|
|
38
|
+
- [#7135](https://github.com/scalar/scalar/pull/7135) [`6aa06b0`](https://github.com/scalar/scalar/commit/6aa06b0f843ae3d8e6771e3c02ac11ee0043a4b1) Thanks [@marcalexiei](https://github.com/marcalexiei)! - fix: "Test request" button doesn't open the correct API request panel
|
|
39
|
+
|
|
40
|
+
- [#7180](https://github.com/scalar/scalar/pull/7180) [`a796162`](https://github.com/scalar/scalar/commit/a79616220d5deb0117c2d6d191b465b36ba6ccd0) Thanks [@geoffgscott](https://github.com/geoffgscott)! - Add addtional export entry points for api-referenc. Patch types on build-tooling
|
|
41
|
+
|
|
42
|
+
- [#7199](https://github.com/scalar/scalar/pull/7199) [`0d9c945`](https://github.com/scalar/scalar/commit/0d9c945a696ea8b826d86f7b48ec6de4d85e64f0) Thanks [@marcalexiei](https://github.com/marcalexiei)! - fix(api-reference): remove `flatted` dependency
|
|
43
|
+
|
|
44
|
+
- [#7195](https://github.com/scalar/scalar/pull/7195) [`d9e911a`](https://github.com/scalar/scalar/commit/d9e911aad3a7fe25cc173bfc7865d990f30880c6) Thanks [@DemonHa](https://github.com/DemonHa)! - fix: selected auth schemes problems
|
|
45
|
+
|
|
46
|
+
- [#7143](https://github.com/scalar/scalar/pull/7143) [`81b0a7a`](https://github.com/scalar/scalar/commit/81b0a7a4245619f03161eae639dc5834b77432b6) Thanks [@amritk](https://github.com/amritk)! - fix: remove ignored parameters
|
|
47
|
+
|
|
48
|
+
- [#7162](https://github.com/scalar/scalar/pull/7162) [`8a5a6a0`](https://github.com/scalar/scalar/commit/8a5a6a052cc05b0902b05052c80cc429ebc5a730) Thanks [@hwkr](https://github.com/hwkr)! - test(api-reference): add visual regression testing
|
|
49
|
+
|
|
50
|
+
- [#7184](https://github.com/scalar/scalar/pull/7184) [`33edbf2`](https://github.com/scalar/scalar/commit/33edbf2a2648eb72ae49e36dfd289d4d57dc18e0) Thanks [@geoffgscott](https://github.com/geoffgscott)! - move to event bus for internal events
|
|
51
|
+
|
|
52
|
+
- Updated dependencies [[`0319b8a`](https://github.com/scalar/scalar/commit/0319b8a8652a50667776b2e9fd27c3e15b34f765), [`eb022f2`](https://github.com/scalar/scalar/commit/eb022f2c8f93c84a04c0093fefe8a1e05d6ec80d), [`729ad06`](https://github.com/scalar/scalar/commit/729ad06027c91abcc39866f39319f053d286b995), [`913607c`](https://github.com/scalar/scalar/commit/913607c7d67236f08f5369408f304440c6c42b22), [`348f8f6`](https://github.com/scalar/scalar/commit/348f8f6292ef41844fda1fdd3089a55d97adbc0e), [`17817ad`](https://github.com/scalar/scalar/commit/17817addbca916c8d625a03335ae58be3a1c4e4b), [`11a6e64`](https://github.com/scalar/scalar/commit/11a6e6405d4f30f001a16d6afda4d2b759c0ed09), [`c22fc4e`](https://github.com/scalar/scalar/commit/c22fc4e5acb49d648014a6100c724a5b33c59cde), [`2239843`](https://github.com/scalar/scalar/commit/2239843150ed16d1ca35b0b1f8e90cd3e35be7ce), [`6ec8c29`](https://github.com/scalar/scalar/commit/6ec8c299d912111b029e8058979d00968b70691a), [`9661e81`](https://github.com/scalar/scalar/commit/9661e81907d1a9b74ba30f270f2d6c8e49834cd5), [`d34f31e`](https://github.com/scalar/scalar/commit/d34f31ee9e3ff360869c52f383b14431af520201), [`134ff5f`](https://github.com/scalar/scalar/commit/134ff5f32aa6842696bf146c7e0817b1662905eb), [`c162bb6`](https://github.com/scalar/scalar/commit/c162bb64b86e698427c1fce36f6d8a2b789e094a), [`b64265b`](https://github.com/scalar/scalar/commit/b64265b3e8b447a4d1c6dafaca8135ef69545d98), [`6ca835e`](https://github.com/scalar/scalar/commit/6ca835e5afd3e8c603e073e7c83f2cdd961a0f69), [`134ff5f`](https://github.com/scalar/scalar/commit/134ff5f32aa6842696bf146c7e0817b1662905eb), [`6aa06b0`](https://github.com/scalar/scalar/commit/6aa06b0f843ae3d8e6771e3c02ac11ee0043a4b1), [`81b0a7a`](https://github.com/scalar/scalar/commit/81b0a7a4245619f03161eae639dc5834b77432b6), [`7cda4c5`](https://github.com/scalar/scalar/commit/7cda4c5ecf237e17193391e223f9503c9f37f574), [`8a5a6a0`](https://github.com/scalar/scalar/commit/8a5a6a052cc05b0902b05052c80cc429ebc5a730), [`6ec8c29`](https://github.com/scalar/scalar/commit/6ec8c299d912111b029e8058979d00968b70691a), [`704fa30`](https://github.com/scalar/scalar/commit/704fa302b2cdbb17b19ca2d742537ca163d58c1c), [`c84b7c5`](https://github.com/scalar/scalar/commit/c84b7c5e81be83dacbdfcbf9cb1e558dfdc3faa1), [`573c5a6`](https://github.com/scalar/scalar/commit/573c5a6c5d71ecfda262532aa32dad382f9f71e4), [`0319b8a`](https://github.com/scalar/scalar/commit/0319b8a8652a50667776b2e9fd27c3e15b34f765), [`da7ab2f`](https://github.com/scalar/scalar/commit/da7ab2fb2e422b9cec2de5faba58ea83dd774808), [`a26ced6`](https://github.com/scalar/scalar/commit/a26ced6f2897074f0c102d5ccbff55c6fd520e12), [`134ff5f`](https://github.com/scalar/scalar/commit/134ff5f32aa6842696bf146c7e0817b1662905eb), [`33edbf2`](https://github.com/scalar/scalar/commit/33edbf2a2648eb72ae49e36dfd289d4d57dc18e0), [`6a090a2`](https://github.com/scalar/scalar/commit/6a090a2e07ef961c56041c85ee9786180437593a), [`4fe1643`](https://github.com/scalar/scalar/commit/4fe1643be51f76a8ebdfd75f5675337b8d43418e), [`0865e66`](https://github.com/scalar/scalar/commit/0865e662092f8521bf69b69d82486ec0cc6030dd), [`5db92db`](https://github.com/scalar/scalar/commit/5db92db78e5b11bb052307bc10c1be4eb7a3f164), [`592533f`](https://github.com/scalar/scalar/commit/592533faf60b6a5ba27909a4ca0847ca9f04a96d), [`75ad74c`](https://github.com/scalar/scalar/commit/75ad74c0eee10103b966ce4707e4823d819456a8), [`7c1e09e`](https://github.com/scalar/scalar/commit/7c1e09e86ce128adeefd209284a2ba49917adf2c), [`eba18d0`](https://github.com/scalar/scalar/commit/eba18d06267a163a8f91396a66f817100ee59461), [`a821986`](https://github.com/scalar/scalar/commit/a821986332141e69d26885b2d2b32eb0c49f416c), [`c72a2c5`](https://github.com/scalar/scalar/commit/c72a2c59eb80e1f5e216c687229ff90bea88f554), [`0d9c945`](https://github.com/scalar/scalar/commit/0d9c945a696ea8b826d86f7b48ec6de4d85e64f0), [`43bc5e8`](https://github.com/scalar/scalar/commit/43bc5e8b90dc0edf7176d0ddfc64bf3212494458), [`e23229d`](https://github.com/scalar/scalar/commit/e23229dfbd9613b5047b28b57901f2fc5a6e33e6), [`f612140`](https://github.com/scalar/scalar/commit/f612140491d4e5088757ea5a3fef65ccd2785f08), [`d386ae2`](https://github.com/scalar/scalar/commit/d386ae2a7c9288c8e5c4750ab57920ab955cae06)]:
|
|
53
|
+
- @scalar/api-client@2.9.0
|
|
54
|
+
- @scalar/types@0.4.0
|
|
55
|
+
- @scalar/workspace-store@0.18.0
|
|
56
|
+
- @scalar/components@0.16.0
|
|
57
|
+
- @scalar/sidebar@0.2.0
|
|
58
|
+
- @scalar/openapi-upgrader@0.1.4
|
|
59
|
+
- @scalar/openapi-parser@0.23.0
|
|
60
|
+
- @scalar/openapi-types@0.5.1
|
|
61
|
+
- @scalar/helpers@0.0.13
|
|
62
|
+
- @scalar/oas-utils@0.6.0
|
|
63
|
+
- @scalar/json-magic@0.7.0
|
|
64
|
+
- @scalar/snippetz@0.5.2
|
|
65
|
+
- @scalar/use-hooks@0.3.0
|
|
66
|
+
- @scalar/use-toasts@0.9.0
|
|
67
|
+
- @scalar/icons@0.5.0
|
|
68
|
+
- @scalar/themes@0.13.23
|
|
69
|
+
- @scalar/code-highlight@0.2.0
|
|
70
|
+
- @scalar/object-utils@1.2.9
|
|
71
|
+
|
|
3
72
|
## 1.38.1
|
|
4
73
|
|
|
5
74
|
### Patch Changes
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
const
|
|
2
|
-
const
|
|
3
|
-
for (const [
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
const _export_sfc = (sfc, props) => {
|
|
2
|
+
const target = sfc.__vccOpts || sfc;
|
|
3
|
+
for (const [key, val] of props) {
|
|
4
|
+
target[key] = val;
|
|
5
|
+
}
|
|
6
|
+
return target;
|
|
6
7
|
};
|
|
7
8
|
export {
|
|
8
|
-
|
|
9
|
+
_export_sfc as default
|
|
9
10
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Operation, Server } from '@scalar/oas-utils/entities/spec';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
layout: 'client' | 'reference';
|
|
4
|
+
operation?: Operation | undefined;
|
|
5
|
+
persistAuth?: boolean;
|
|
6
|
+
server: Server | undefined;
|
|
7
|
+
title: string;
|
|
8
|
+
};
|
|
9
|
+
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>;
|
|
10
|
+
export default _default;
|
|
11
|
+
//# sourceMappingURL=AuthSelector.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuthSelector.vue.d.ts","sourceRoot":"","sources":["../../../../src/blocks/scalar-auth-selector-block/components/AuthSelector.vue"],"names":[],"mappings":"AAoaA,OAAO,KAAK,EACV,SAAS,EAET,MAAM,EACP,MAAM,iCAAiC,CAAA;AAQxC,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,QAAQ,GAAG,WAAW,CAAA;IAC9B,SAAS,CAAC,EAAE,SAAS,GAAG,SAAS,CAAA;IACjC,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,KAAK,EAAE,MAAM,CAAA;CACd,CAAC;;AA0iBF,wBAMG"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import _sfc_main from "./AuthSelector.vue2.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const AuthSelector = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-43114fd7"]]);
|
|
5
|
+
export {
|
|
6
|
+
AuthSelector as default
|
|
7
|
+
};
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
import { defineComponent, computed, useId, ref, useTemplateRef, createBlock, createCommentVNode, unref, openBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, createTextVNode, toDisplayString, withModifiers, normalizeClass } from "vue";
|
|
2
|
+
import { ViewLayoutCollapse } from "@scalar/api-client/components/ViewLayout";
|
|
3
|
+
import { useLayout } from "@scalar/api-client/hooks";
|
|
4
|
+
import { useWorkspace, useActiveEntities } from "@scalar/api-client/store";
|
|
5
|
+
import { getSecurityRequirements, formatComplexScheme, formatScheme, getSchemeOptions } from "@scalar/api-client/views/Request/libs";
|
|
6
|
+
import { useModal, ScalarComboboxMultiselect, ScalarButton, ScalarListboxCheckbox, ScalarIconButton } from "@scalar/components";
|
|
7
|
+
import { safeLocalStorage, CLIENT_LS_KEYS } from "@scalar/helpers/object/local-storage";
|
|
8
|
+
import { ScalarIconCaretDown, ScalarIconTrash } from "@scalar/icons";
|
|
9
|
+
import { isDefined } from "@scalar/oas-utils/helpers";
|
|
10
|
+
import { emitCustomEvent } from "@scalar/workspace-store/events";
|
|
11
|
+
import _sfc_main$1 from "./DeleteRequestAuthModal.vue.js";
|
|
12
|
+
import RequestAuthDataTable from "./RequestAuthDataTable.vue.js";
|
|
13
|
+
const _hoisted_1 = ["id"];
|
|
14
|
+
const _hoisted_2 = { class: "flex flex-1" };
|
|
15
|
+
const _hoisted_3 = { class: "min-w-0 flex-1 truncate" };
|
|
16
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
17
|
+
__name: "AuthSelector",
|
|
18
|
+
props: {
|
|
19
|
+
layout: {},
|
|
20
|
+
operation: {},
|
|
21
|
+
persistAuth: { type: Boolean, default: false },
|
|
22
|
+
server: {},
|
|
23
|
+
title: {}
|
|
24
|
+
},
|
|
25
|
+
setup(__props) {
|
|
26
|
+
const { layout: clientLayout } = useLayout();
|
|
27
|
+
const { securitySchemes } = useWorkspace();
|
|
28
|
+
const {
|
|
29
|
+
activeWorkspace: workspace,
|
|
30
|
+
activeCollection: collection,
|
|
31
|
+
activeEnvVariables: envVariables,
|
|
32
|
+
activeEnvironment: environment
|
|
33
|
+
} = useActiveEntities();
|
|
34
|
+
const selectedSecuritySchemeUids = computed(
|
|
35
|
+
() => collection.value?.selectedSecuritySchemeUids ?? []
|
|
36
|
+
);
|
|
37
|
+
const titleId = useId();
|
|
38
|
+
const comboboxButtonRef = ref(null);
|
|
39
|
+
const deleteSchemeModal = useModal();
|
|
40
|
+
const selectedScheme = ref(
|
|
41
|
+
null
|
|
42
|
+
);
|
|
43
|
+
const isViewLayoutOpen = ref(false);
|
|
44
|
+
const securityRequirements = computed(() => {
|
|
45
|
+
const requirements = getSecurityRequirements(__props.operation, collection.value);
|
|
46
|
+
const filteredRequirements = requirements.filter((r) => Object.keys(r).length);
|
|
47
|
+
return { filteredRequirements, requirements };
|
|
48
|
+
});
|
|
49
|
+
const authIndicator = computed(() => {
|
|
50
|
+
const { filteredRequirements, requirements } = securityRequirements.value;
|
|
51
|
+
if (!requirements.length) {
|
|
52
|
+
return null;
|
|
53
|
+
}
|
|
54
|
+
const hasComplexRequirement = requirements.some(
|
|
55
|
+
(req) => Object.keys(req).length > 1
|
|
56
|
+
);
|
|
57
|
+
const isOptional = !hasComplexRequirement && filteredRequirements.length < requirements.length;
|
|
58
|
+
const icon = isOptional ? "Unlock" : "Lock";
|
|
59
|
+
const text = isOptional ? "Optional" : "Required";
|
|
60
|
+
return { icon, text };
|
|
61
|
+
});
|
|
62
|
+
const selectedSchemeOptions = computed(
|
|
63
|
+
() => selectedSecuritySchemeUids.value.map((s) => {
|
|
64
|
+
if (Array.isArray(s)) {
|
|
65
|
+
return formatComplexScheme(s, securitySchemes);
|
|
66
|
+
}
|
|
67
|
+
const scheme = securitySchemes[s ?? ""];
|
|
68
|
+
if (!scheme) {
|
|
69
|
+
return void 0;
|
|
70
|
+
}
|
|
71
|
+
return formatScheme(scheme);
|
|
72
|
+
}).filter(isDefined)
|
|
73
|
+
);
|
|
74
|
+
function updateSelectedAuth(entries) {
|
|
75
|
+
const addNewOption = entries.find((e) => e.payload);
|
|
76
|
+
const _entries = entries.filter((e) => !e.payload).map(({ id }) => {
|
|
77
|
+
const arr = id.split(",");
|
|
78
|
+
return arr.length > 1 ? arr : id;
|
|
79
|
+
});
|
|
80
|
+
if (addNewOption?.payload) {
|
|
81
|
+
emitCustomEvent(wrapperRef.value?.$el, "scalar-add-auth-option", {
|
|
82
|
+
payload: addNewOption.payload
|
|
83
|
+
});
|
|
84
|
+
if (addNewOption.payload.uid) {
|
|
85
|
+
_entries.push(addNewOption.payload.uid);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
editSelectedSchemeUids(_entries);
|
|
89
|
+
}
|
|
90
|
+
const editSelectedSchemeUids = (uids) => {
|
|
91
|
+
if (collection.value?.useCollectionSecurity) {
|
|
92
|
+
emitCustomEvent(wrapperRef.value?.$el, "scalar-select-security-schemes", {
|
|
93
|
+
uids
|
|
94
|
+
});
|
|
95
|
+
if (!__props.persistAuth) {
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
const nameKeys = uids.map((u) => {
|
|
99
|
+
if (Array.isArray(u)) {
|
|
100
|
+
return u.map((uid) => securitySchemes[uid]?.nameKey);
|
|
101
|
+
}
|
|
102
|
+
return securitySchemes[u]?.nameKey;
|
|
103
|
+
});
|
|
104
|
+
safeLocalStorage().setItem(
|
|
105
|
+
CLIENT_LS_KEYS.SELECTED_SECURITY_SCHEMES,
|
|
106
|
+
JSON.stringify(nameKeys)
|
|
107
|
+
);
|
|
108
|
+
} else if (__props.operation?.uid) {
|
|
109
|
+
emitCustomEvent(
|
|
110
|
+
wrapperRef.value?.$el,
|
|
111
|
+
"scalar-select-operation-security-schemes",
|
|
112
|
+
{
|
|
113
|
+
operationUid: __props.operation.uid,
|
|
114
|
+
uids
|
|
115
|
+
}
|
|
116
|
+
);
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
function handleDeleteScheme({ id, label }) {
|
|
120
|
+
selectedScheme.value = { id, label };
|
|
121
|
+
deleteSchemeModal.show();
|
|
122
|
+
}
|
|
123
|
+
const unselectAuth = (unSelectUid) => {
|
|
124
|
+
if (!unSelectUid) {
|
|
125
|
+
return;
|
|
126
|
+
}
|
|
127
|
+
const newUids = selectedSecuritySchemeUids.value.filter((uid) => {
|
|
128
|
+
const arr = unSelectUid.split(",");
|
|
129
|
+
if (arr.length > 1 && Array.isArray(uid) && arr.length === uid.length) {
|
|
130
|
+
return uid.every((u) => !arr.includes(u));
|
|
131
|
+
}
|
|
132
|
+
return uid !== unSelectUid;
|
|
133
|
+
});
|
|
134
|
+
editSelectedSchemeUids(newUids);
|
|
135
|
+
comboboxButtonRef.value?.$el.focus();
|
|
136
|
+
deleteSchemeModal.hide();
|
|
137
|
+
};
|
|
138
|
+
const schemeOptions = computed(
|
|
139
|
+
() => getSchemeOptions(
|
|
140
|
+
securityRequirements.value.filteredRequirements,
|
|
141
|
+
collection.value?.securitySchemes ?? [],
|
|
142
|
+
securitySchemes,
|
|
143
|
+
clientLayout === "modal" || __props.layout === "reference"
|
|
144
|
+
)
|
|
145
|
+
);
|
|
146
|
+
const openAuthCombobox = (event) => {
|
|
147
|
+
if (isViewLayoutOpen.value) {
|
|
148
|
+
event.stopPropagation();
|
|
149
|
+
}
|
|
150
|
+
comboboxButtonRef.value?.$el.click();
|
|
151
|
+
};
|
|
152
|
+
const wrapperRef = useTemplateRef("wrapperRef");
|
|
153
|
+
return (_ctx, _cache) => {
|
|
154
|
+
return unref(collection) && unref(workspace) ? (openBlock(), createBlock(unref(ViewLayoutCollapse), {
|
|
155
|
+
key: 0,
|
|
156
|
+
ref_key: "wrapperRef",
|
|
157
|
+
ref: wrapperRef,
|
|
158
|
+
class: "group/params relative",
|
|
159
|
+
itemCount: selectedSchemeOptions.value.length,
|
|
160
|
+
layout: _ctx.layout,
|
|
161
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isViewLayoutOpen.value = $event)
|
|
162
|
+
}, {
|
|
163
|
+
title: withCtx(() => [
|
|
164
|
+
createElementVNode("div", {
|
|
165
|
+
id: unref(titleId),
|
|
166
|
+
class: "inline-flex items-center gap-0.5 leading-[20px]"
|
|
167
|
+
}, [
|
|
168
|
+
createElementVNode("span", null, toDisplayString(_ctx.title), 1),
|
|
169
|
+
authIndicator.value ? (openBlock(), createElementBlock("span", {
|
|
170
|
+
key: 0,
|
|
171
|
+
class: normalizeClass(["text-c-3 hover:bg-b-3 hover:text-c-1 -mr-1 cursor-pointer rounded px-1 py-0.5 text-xs leading-[normal]", { "text-c-1": authIndicator.value.text === "Required" }]),
|
|
172
|
+
onClick: openAuthCombobox
|
|
173
|
+
}, toDisplayString(authIndicator.value.text), 3)) : createCommentVNode("", true)
|
|
174
|
+
], 8, _hoisted_1)
|
|
175
|
+
]),
|
|
176
|
+
actions: withCtx(() => [
|
|
177
|
+
createElementVNode("div", _hoisted_2, [
|
|
178
|
+
createVNode(unref(ScalarComboboxMultiselect), {
|
|
179
|
+
class: "w-72 text-xs",
|
|
180
|
+
modelValue: selectedSchemeOptions.value,
|
|
181
|
+
multiple: "",
|
|
182
|
+
options: schemeOptions.value,
|
|
183
|
+
placement: "bottom-end",
|
|
184
|
+
teleport: "",
|
|
185
|
+
onDelete: handleDeleteScheme,
|
|
186
|
+
"onUpdate:modelValue": updateSelectedAuth
|
|
187
|
+
}, {
|
|
188
|
+
option: withCtx(({ option, selected }) => [
|
|
189
|
+
createVNode(unref(ScalarListboxCheckbox), {
|
|
190
|
+
multiselect: "",
|
|
191
|
+
selected
|
|
192
|
+
}, null, 8, ["selected"]),
|
|
193
|
+
createElementVNode("div", _hoisted_3, toDisplayString(option.label), 1),
|
|
194
|
+
option.isDeletable ?? (unref(clientLayout) !== "modal" && _ctx.layout !== "reference") ? (openBlock(), createBlock(unref(ScalarIconButton), {
|
|
195
|
+
key: 0,
|
|
196
|
+
class: "-m-0.5 shrink-0 p-0.5 opacity-0 group-hover/item:opacity-100",
|
|
197
|
+
icon: unref(ScalarIconTrash),
|
|
198
|
+
label: `Delete ${option.label}`,
|
|
199
|
+
size: "xs",
|
|
200
|
+
onClick: withModifiers(($event) => handleDeleteScheme(option), ["stop"])
|
|
201
|
+
}, null, 8, ["icon", "label", "onClick"])) : createCommentVNode("", true)
|
|
202
|
+
]),
|
|
203
|
+
default: withCtx(() => [
|
|
204
|
+
createVNode(unref(ScalarButton), {
|
|
205
|
+
ref_key: "comboboxButtonRef",
|
|
206
|
+
ref: comboboxButtonRef,
|
|
207
|
+
"aria-describedby": unref(titleId),
|
|
208
|
+
class: "group/combobox-button hover:text-c-1 text-c-2 flex h-fit w-full items-center gap-1 px-0.75 py-0.25 text-base font-normal transition-transform",
|
|
209
|
+
variant: "ghost"
|
|
210
|
+
}, {
|
|
211
|
+
default: withCtx(() => [
|
|
212
|
+
selectedSchemeOptions.value.length === 1 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
213
|
+
_cache[3] || (_cache[3] = createElementVNode("span", { class: "sr-only" }, "Selected Auth Type:", -1)),
|
|
214
|
+
createTextVNode(" " + toDisplayString(selectedSchemeOptions.value[0]?.label), 1)
|
|
215
|
+
], 64)) : selectedSchemeOptions.value.length > 1 ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
216
|
+
_cache[4] || (_cache[4] = createTextVNode(" Multiple ", -1)),
|
|
217
|
+
_cache[5] || (_cache[5] = createElementVNode("span", { class: "sr-only" }, "Auth Types Selected", -1))
|
|
218
|
+
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
219
|
+
_cache[6] || (_cache[6] = createElementVNode("span", { class: "sr-only" }, "Select", -1)),
|
|
220
|
+
_cache[7] || (_cache[7] = createTextVNode(" Auth Type ", -1))
|
|
221
|
+
], 64)),
|
|
222
|
+
createVNode(unref(ScalarIconCaretDown), {
|
|
223
|
+
class: "size-3 shrink-0 transition-transform duration-100 group-aria-expanded/combobox-button:rotate-180",
|
|
224
|
+
weight: "bold"
|
|
225
|
+
})
|
|
226
|
+
]),
|
|
227
|
+
_: 1
|
|
228
|
+
}, 8, ["aria-describedby"])
|
|
229
|
+
]),
|
|
230
|
+
_: 1
|
|
231
|
+
}, 8, ["modelValue", "options"])
|
|
232
|
+
])
|
|
233
|
+
]),
|
|
234
|
+
default: withCtx(() => [
|
|
235
|
+
createVNode(RequestAuthDataTable, {
|
|
236
|
+
collection: unref(collection),
|
|
237
|
+
envVariables: unref(envVariables),
|
|
238
|
+
environment: unref(environment),
|
|
239
|
+
layout: _ctx.layout,
|
|
240
|
+
persistAuth: _ctx.persistAuth,
|
|
241
|
+
selectedSchemeOptions: selectedSchemeOptions.value,
|
|
242
|
+
server: _ctx.server,
|
|
243
|
+
workspace: unref(workspace)
|
|
244
|
+
}, null, 8, ["collection", "envVariables", "environment", "layout", "persistAuth", "selectedSchemeOptions", "server", "workspace"]),
|
|
245
|
+
createVNode(_sfc_main$1, {
|
|
246
|
+
scheme: selectedScheme.value,
|
|
247
|
+
state: unref(deleteSchemeModal),
|
|
248
|
+
onClose: _cache[0] || (_cache[0] = ($event) => unref(deleteSchemeModal).hide()),
|
|
249
|
+
onDelete: _cache[1] || (_cache[1] = ($event) => unselectAuth(selectedScheme.value?.id))
|
|
250
|
+
}, null, 8, ["scheme", "state"])
|
|
251
|
+
]),
|
|
252
|
+
_: 1
|
|
253
|
+
}, 8, ["itemCount", "layout"])) : createCommentVNode("", true);
|
|
254
|
+
};
|
|
255
|
+
}
|
|
256
|
+
});
|
|
257
|
+
export {
|
|
258
|
+
_sfc_main as default
|
|
259
|
+
};
|
|
@@ -11,11 +11,11 @@ type __VLS_Props = {
|
|
|
11
11
|
} | null;
|
|
12
12
|
};
|
|
13
13
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
14
|
-
delete: () => any;
|
|
15
14
|
close: () => any;
|
|
15
|
+
delete: () => any;
|
|
16
16
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
17
|
-
onDelete?: (() => any) | undefined;
|
|
18
17
|
onClose?: (() => any) | undefined;
|
|
18
|
+
onDelete?: (() => any) | undefined;
|
|
19
19
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
20
|
export default _default;
|
|
21
21
|
//# sourceMappingURL=DeleteRequestAuthModal.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeleteRequestAuthModal.vue.d.ts","sourceRoot":"","sources":["../../../../src/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue"],"names":[],"mappings":"AAyDA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAIrE,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE;QAAE,IAAI,EAAE,OAAO,CAAC;QAAC,IAAI,EAAE,MAAM,IAAI,CAAC;QAAC,IAAI,EAAE,MAAM,IAAI,CAAA;KAAE,CAAA;IAC5D,MAAM,EAAE;QAAE,EAAE,EAAE,cAAc,CAAC,KAAK,CAAC,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAA;CAC5D,CAAC;;;;;;;;AAqJF,wBAOG"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { defineComponent, useTemplateRef, createBlock, openBlock, unref, withCtx, createElementVNode, toDisplayString, createVNode, createTextVNode } from "vue";
|
|
2
|
+
import { ScalarModal, ScalarButton } from "@scalar/components";
|
|
3
|
+
import { emitCustomEvent } from "@scalar/workspace-store/events";
|
|
4
|
+
const _hoisted_1 = { class: "text-c-2 mb-4 text-sm leading-normal" };
|
|
5
|
+
const _hoisted_2 = { class: "flex justify-between gap-2" };
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "DeleteRequestAuthModal",
|
|
8
|
+
props: {
|
|
9
|
+
state: {},
|
|
10
|
+
scheme: {}
|
|
11
|
+
},
|
|
12
|
+
emits: ["close", "delete"],
|
|
13
|
+
setup(__props, { emit: __emit }) {
|
|
14
|
+
const props = __props;
|
|
15
|
+
const emit = __emit;
|
|
16
|
+
const deleteScheme = () => {
|
|
17
|
+
if (props.scheme?.id) {
|
|
18
|
+
emitCustomEvent(wrapperRef.value?.$el, "scalar-delete-security-scheme", {
|
|
19
|
+
uid: props.scheme.id
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
emit("delete");
|
|
23
|
+
};
|
|
24
|
+
const wrapperRef = useTemplateRef("wrapperRef");
|
|
25
|
+
return (_ctx, _cache) => {
|
|
26
|
+
return openBlock(), createBlock(unref(ScalarModal), {
|
|
27
|
+
ref_key: "wrapperRef",
|
|
28
|
+
ref: wrapperRef,
|
|
29
|
+
size: "xxs",
|
|
30
|
+
state: _ctx.state,
|
|
31
|
+
title: "Delete Security Scheme"
|
|
32
|
+
}, {
|
|
33
|
+
default: withCtx(() => [
|
|
34
|
+
createElementVNode("p", _hoisted_1, " This cannot be undone. You're about to delete the " + toDisplayString(_ctx.scheme?.label) + " security scheme from the collection. ", 1),
|
|
35
|
+
createElementVNode("div", _hoisted_2, [
|
|
36
|
+
createVNode(unref(ScalarButton), {
|
|
37
|
+
class: "flex h-8 cursor-pointer items-center gap-1.5 px-3 shadow-none focus:outline-none",
|
|
38
|
+
type: "button",
|
|
39
|
+
variant: "outlined",
|
|
40
|
+
onClick: _cache[0] || (_cache[0] = ($event) => emit("close"))
|
|
41
|
+
}, {
|
|
42
|
+
default: withCtx(() => [..._cache[1] || (_cache[1] = [
|
|
43
|
+
createTextVNode(" Cancel ", -1)
|
|
44
|
+
])]),
|
|
45
|
+
_: 1
|
|
46
|
+
}),
|
|
47
|
+
createVNode(unref(ScalarButton), {
|
|
48
|
+
class: "flex h-8 cursor-pointer items-center gap-1.5 px-3 shadow-none focus:outline-none",
|
|
49
|
+
type: "submit",
|
|
50
|
+
onClick: deleteScheme
|
|
51
|
+
}, {
|
|
52
|
+
default: withCtx(() => [
|
|
53
|
+
createTextVNode(" Delete " + toDisplayString(_ctx.scheme?.label), 1)
|
|
54
|
+
]),
|
|
55
|
+
_: 1
|
|
56
|
+
})
|
|
57
|
+
])
|
|
58
|
+
]),
|
|
59
|
+
_: 1
|
|
60
|
+
}, 8, ["state"]);
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
export {
|
|
65
|
+
_sfc_main as default
|
|
66
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OAuth2.vue.d.ts","sourceRoot":"","sources":["../../../../src/blocks/scalar-auth-selector-block/components/OAuth2.vue"],"names":[],"mappings":"AAqRA,OAAO,EAEL,KAAK,WAAW,EAEjB,MAAM,0BAA0B,CAAA;AAGjC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,EAEL,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,oBAAoB,EACzB,KAAK,MAAM,EACZ,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAQrE,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,IAAI,EAAE,UAAU,CAAA;IAChB,WAAW,EAAE,OAAO,CAAA;IACpB,MAAM,EAAE,oBAAoB,CAAA;IAC5B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;AA0hBF,wBAMG"}
|