@scalar/api-reference 1.38.1 → 1.39.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +54 -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 +27316 -26840
- 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 +19 -7
- package/dist/components/ApiReference.vue.d.ts.map +1 -1
- package/dist/components/ApiReference.vue.js +8 -35
- package/dist/components/ApiReference.vue2.js +669 -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 +11749 -1
- package/package.json +48 -37
- 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
|
@@ -1,203 +0,0 @@
|
|
|
1
|
-
import { defineComponent as N, useId as M, ref as x, computed as y, useTemplateRef as K, createBlock as D, openBlock as u, unref as n, withCtx as c, createVNode as m, createElementVNode as a, createElementBlock as h, Fragment as k, createTextVNode as C, toDisplayString as v, createCommentVNode as L, withModifiers as z, normalizeClass as j } from "vue";
|
|
2
|
-
import { ViewLayoutCollapse as Y } from "@scalar/api-client/components/ViewLayout";
|
|
3
|
-
import { useLayout as F } from "@scalar/api-client/hooks";
|
|
4
|
-
import { useWorkspace as H } from "@scalar/api-client/store";
|
|
5
|
-
import { getSecurityRequirements as J, formatComplexScheme as P, formatScheme as W, getSchemeOptions as G } from "@scalar/api-client/views/Request/libs";
|
|
6
|
-
import { useModal as Q, ScalarComboboxMultiselect as X, ScalarButton as Z, ScalarListboxCheckbox as _, ScalarIconButton as ee } from "@scalar/components";
|
|
7
|
-
import { safeLocalStorage as te, CLIENT_LS_KEYS as oe } from "@scalar/helpers/object/local-storage";
|
|
8
|
-
import { ScalarIconCaretDown as le, ScalarIconTrash as ne } from "@scalar/icons";
|
|
9
|
-
import { isDefined as re } from "@scalar/oas-utils/helpers";
|
|
10
|
-
import { emitCustomEvent as w } from "@scalar/workspace-store/events";
|
|
11
|
-
import ae from "./DeleteRequestAuthModal.vue.js";
|
|
12
|
-
import se from "./RequestAuthDataTable.vue.js";
|
|
13
|
-
const ie = ["id"], ue = { class: "flex flex-1" }, ce = { class: "min-w-0 flex-1 truncate" }, we = /* @__PURE__ */ N({
|
|
14
|
-
__name: "AuthSelector",
|
|
15
|
-
props: {
|
|
16
|
-
collection: {},
|
|
17
|
-
environment: {},
|
|
18
|
-
envVariables: {},
|
|
19
|
-
layout: {},
|
|
20
|
-
operation: {},
|
|
21
|
-
persistAuth: { type: Boolean, default: !1 },
|
|
22
|
-
selectedSecuritySchemeUids: {},
|
|
23
|
-
server: {},
|
|
24
|
-
title: {},
|
|
25
|
-
workspace: {}
|
|
26
|
-
},
|
|
27
|
-
setup(r) {
|
|
28
|
-
const { layout: A } = F(), { securitySchemes: p } = H(), R = M(), S = x(null), d = Q(), b = x(
|
|
29
|
-
null
|
|
30
|
-
), V = x(!1), q = y(() => {
|
|
31
|
-
const t = J(r.operation, r.collection);
|
|
32
|
-
return { filteredRequirements: t.filter((o) => Object.keys(o).length), requirements: t };
|
|
33
|
-
}), g = y(() => {
|
|
34
|
-
const { filteredRequirements: t, requirements: e } = q.value;
|
|
35
|
-
if (!e.length)
|
|
36
|
-
return null;
|
|
37
|
-
const l = !e.some(
|
|
38
|
-
(U) => Object.keys(U).length > 1
|
|
39
|
-
) && t.length < e.length;
|
|
40
|
-
return { icon: l ? "Unlock" : "Lock", text: l ? "Optional" : "Required" };
|
|
41
|
-
}), s = y(
|
|
42
|
-
() => r.selectedSecuritySchemeUids.map((t) => {
|
|
43
|
-
if (Array.isArray(t))
|
|
44
|
-
return P(t, p);
|
|
45
|
-
const e = p[t ?? ""];
|
|
46
|
-
if (e)
|
|
47
|
-
return W(e);
|
|
48
|
-
}).filter(re)
|
|
49
|
-
);
|
|
50
|
-
function T(t) {
|
|
51
|
-
const e = t.find((l) => l.payload), o = t.filter((l) => !l.payload).map(({ id: l }) => {
|
|
52
|
-
const i = l.split(",");
|
|
53
|
-
return i.length > 1 ? i : l;
|
|
54
|
-
});
|
|
55
|
-
e?.payload && (w(f.value?.$el, "scalar-add-auth-option", {
|
|
56
|
-
payload: e.payload
|
|
57
|
-
}), e.payload.uid && o.push(e.payload.uid)), O(o);
|
|
58
|
-
}
|
|
59
|
-
const O = (t) => {
|
|
60
|
-
if (r.collection.useCollectionSecurity) {
|
|
61
|
-
if (w(f.value?.$el, "scalar-select-security-schemes", {
|
|
62
|
-
uids: t
|
|
63
|
-
}), !r.persistAuth)
|
|
64
|
-
return;
|
|
65
|
-
const e = t.map((o) => Array.isArray(o) ? o.map((l) => p[l]?.nameKey) : p[o]?.nameKey);
|
|
66
|
-
te().setItem(
|
|
67
|
-
oe.SELECTED_SECURITY_SCHEMES,
|
|
68
|
-
JSON.stringify(e)
|
|
69
|
-
);
|
|
70
|
-
} else r.operation?.uid && w(
|
|
71
|
-
f.value?.$el,
|
|
72
|
-
"scalar-select-operation-security-schemes",
|
|
73
|
-
{
|
|
74
|
-
operationUid: r.operation.uid,
|
|
75
|
-
uids: t
|
|
76
|
-
}
|
|
77
|
-
);
|
|
78
|
-
};
|
|
79
|
-
function E({ id: t, label: e }) {
|
|
80
|
-
b.value = { id: t, label: e }, d.show();
|
|
81
|
-
}
|
|
82
|
-
const $ = (t) => {
|
|
83
|
-
if (!t)
|
|
84
|
-
return;
|
|
85
|
-
const e = r.selectedSecuritySchemeUids.filter((o) => {
|
|
86
|
-
const l = t.split(",");
|
|
87
|
-
return l.length > 1 && Array.isArray(o) && l.length === o.length ? o.every((i) => !l.includes(i)) : o !== t;
|
|
88
|
-
});
|
|
89
|
-
O(e), S.value?.$el.focus(), d.hide();
|
|
90
|
-
}, I = y(
|
|
91
|
-
() => G(
|
|
92
|
-
q.value.filteredRequirements,
|
|
93
|
-
r.collection?.securitySchemes ?? [],
|
|
94
|
-
p,
|
|
95
|
-
A === "modal" || r.layout === "reference"
|
|
96
|
-
)
|
|
97
|
-
), B = (t) => {
|
|
98
|
-
V.value && t.stopPropagation(), S.value?.$el.click();
|
|
99
|
-
}, f = K("wrapperRef");
|
|
100
|
-
return (t, e) => (u(), D(n(Y), {
|
|
101
|
-
ref_key: "wrapperRef",
|
|
102
|
-
ref: f,
|
|
103
|
-
class: "group/params relative",
|
|
104
|
-
itemCount: s.value.length,
|
|
105
|
-
layout: t.layout,
|
|
106
|
-
"onUpdate:modelValue": e[2] || (e[2] = (o) => V.value = o)
|
|
107
|
-
}, {
|
|
108
|
-
title: c(() => [
|
|
109
|
-
a("div", {
|
|
110
|
-
id: n(R),
|
|
111
|
-
class: "inline-flex items-center gap-0.5 leading-[20px]"
|
|
112
|
-
}, [
|
|
113
|
-
a("span", null, v(t.title), 1),
|
|
114
|
-
g.value ? (u(), h("span", {
|
|
115
|
-
key: 0,
|
|
116
|
-
class: j(["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": g.value.text === "Required" }]),
|
|
117
|
-
onClick: B
|
|
118
|
-
}, v(g.value.text), 3)) : L("", !0)
|
|
119
|
-
], 8, ie)
|
|
120
|
-
]),
|
|
121
|
-
actions: c(() => [
|
|
122
|
-
a("div", ue, [
|
|
123
|
-
m(n(X), {
|
|
124
|
-
class: "w-72 text-xs",
|
|
125
|
-
modelValue: s.value,
|
|
126
|
-
multiple: "",
|
|
127
|
-
options: I.value,
|
|
128
|
-
placement: "bottom-end",
|
|
129
|
-
teleport: "",
|
|
130
|
-
onDelete: E,
|
|
131
|
-
"onUpdate:modelValue": T
|
|
132
|
-
}, {
|
|
133
|
-
option: c(({ option: o, selected: l }) => [
|
|
134
|
-
m(n(_), {
|
|
135
|
-
multiselect: "",
|
|
136
|
-
selected: l
|
|
137
|
-
}, null, 8, ["selected"]),
|
|
138
|
-
a("div", ce, v(o.label), 1),
|
|
139
|
-
o.isDeletable ?? (n(A) !== "modal" && t.layout !== "reference") ? (u(), D(n(ee), {
|
|
140
|
-
key: 0,
|
|
141
|
-
class: "-m-0.5 shrink-0 p-0.5 opacity-0 group-hover/item:opacity-100",
|
|
142
|
-
icon: n(ne),
|
|
143
|
-
label: `Delete ${o.label}`,
|
|
144
|
-
size: "xs",
|
|
145
|
-
onClick: z((i) => E(o), ["stop"])
|
|
146
|
-
}, null, 8, ["icon", "label", "onClick"])) : L("", !0)
|
|
147
|
-
]),
|
|
148
|
-
default: c(() => [
|
|
149
|
-
m(n(Z), {
|
|
150
|
-
ref_key: "comboboxButtonRef",
|
|
151
|
-
ref: S,
|
|
152
|
-
"aria-describedby": n(R),
|
|
153
|
-
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",
|
|
154
|
-
variant: "ghost"
|
|
155
|
-
}, {
|
|
156
|
-
default: c(() => [
|
|
157
|
-
s.value.length === 1 ? (u(), h(k, { key: 0 }, [
|
|
158
|
-
e[3] || (e[3] = a("span", { class: "sr-only" }, "Selected Auth Type:", -1)),
|
|
159
|
-
C(" " + v(s.value[0]?.label), 1)
|
|
160
|
-
], 64)) : s.value.length > 1 ? (u(), h(k, { key: 1 }, [
|
|
161
|
-
e[4] || (e[4] = C(" Multiple ")),
|
|
162
|
-
e[5] || (e[5] = a("span", { class: "sr-only" }, "Auth Types Selected", -1))
|
|
163
|
-
], 64)) : (u(), h(k, { key: 2 }, [
|
|
164
|
-
e[6] || (e[6] = a("span", { class: "sr-only" }, "Select", -1)),
|
|
165
|
-
e[7] || (e[7] = C(" Auth Type "))
|
|
166
|
-
], 64)),
|
|
167
|
-
m(n(le), {
|
|
168
|
-
class: "size-3 shrink-0 transition-transform duration-100 group-aria-expanded/combobox-button:rotate-180",
|
|
169
|
-
weight: "bold"
|
|
170
|
-
})
|
|
171
|
-
]),
|
|
172
|
-
_: 1
|
|
173
|
-
}, 8, ["aria-describedby"])
|
|
174
|
-
]),
|
|
175
|
-
_: 1
|
|
176
|
-
}, 8, ["modelValue", "options"])
|
|
177
|
-
])
|
|
178
|
-
]),
|
|
179
|
-
default: c(() => [
|
|
180
|
-
m(se, {
|
|
181
|
-
collection: t.collection,
|
|
182
|
-
envVariables: t.envVariables,
|
|
183
|
-
environment: t.environment,
|
|
184
|
-
layout: t.layout,
|
|
185
|
-
persistAuth: t.persistAuth,
|
|
186
|
-
selectedSchemeOptions: s.value,
|
|
187
|
-
server: t.server,
|
|
188
|
-
workspace: t.workspace
|
|
189
|
-
}, null, 8, ["collection", "envVariables", "environment", "layout", "persistAuth", "selectedSchemeOptions", "server", "workspace"]),
|
|
190
|
-
m(ae, {
|
|
191
|
-
scheme: b.value,
|
|
192
|
-
state: n(d),
|
|
193
|
-
onClose: e[0] || (e[0] = (o) => n(d).hide()),
|
|
194
|
-
onDelete: e[1] || (e[1] = (o) => $(b.value?.id))
|
|
195
|
-
}, null, 8, ["scheme", "state"])
|
|
196
|
-
]),
|
|
197
|
-
_: 1
|
|
198
|
-
}, 8, ["itemCount", "layout"]));
|
|
199
|
-
}
|
|
200
|
-
});
|
|
201
|
-
export {
|
|
202
|
-
we as default
|
|
203
|
-
};
|
package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DeleteRequestAuthModal.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/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"}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { defineComponent as h, useTemplateRef as x, createBlock as _, openBlock as b, unref as o, withCtx as s, createElementVNode as a, toDisplayString as c, createVNode as i, createTextVNode as m } from "vue";
|
|
2
|
-
import { ScalarModal as y, ScalarButton as u } from "@scalar/components";
|
|
3
|
-
import { emitCustomEvent as w } from "@scalar/workspace-store/events";
|
|
4
|
-
const C = { class: "text-c-2 mb-4 text-sm leading-normal" }, S = { class: "flex justify-between gap-2" }, D = /* @__PURE__ */ h({
|
|
5
|
-
__name: "DeleteRequestAuthModal",
|
|
6
|
-
props: {
|
|
7
|
-
state: {},
|
|
8
|
-
scheme: {}
|
|
9
|
-
},
|
|
10
|
-
emits: ["close", "delete"],
|
|
11
|
-
setup(p, { emit: d }) {
|
|
12
|
-
const n = p, l = d, f = () => {
|
|
13
|
-
n.scheme?.id && w(r.value?.$el, "scalar-delete-security-scheme", {
|
|
14
|
-
uid: n.scheme.id
|
|
15
|
-
}), l("delete");
|
|
16
|
-
}, r = x("wrapperRef");
|
|
17
|
-
return (t, e) => (b(), _(o(y), {
|
|
18
|
-
ref_key: "wrapperRef",
|
|
19
|
-
ref: r,
|
|
20
|
-
size: "xxs",
|
|
21
|
-
state: t.state,
|
|
22
|
-
title: "Delete Security Scheme"
|
|
23
|
-
}, {
|
|
24
|
-
default: s(() => [
|
|
25
|
-
a("p", C, " This cannot be undone. You're about to delete the " + c(t.scheme?.label) + " security scheme from the collection. ", 1),
|
|
26
|
-
a("div", S, [
|
|
27
|
-
i(o(u), {
|
|
28
|
-
class: "flex h-8 cursor-pointer items-center gap-1.5 px-3 shadow-none focus:outline-none",
|
|
29
|
-
type: "button",
|
|
30
|
-
variant: "outlined",
|
|
31
|
-
onClick: e[0] || (e[0] = (g) => l("close"))
|
|
32
|
-
}, {
|
|
33
|
-
default: s(() => e[1] || (e[1] = [
|
|
34
|
-
m(" Cancel ")
|
|
35
|
-
])),
|
|
36
|
-
_: 1,
|
|
37
|
-
__: [1]
|
|
38
|
-
}),
|
|
39
|
-
i(o(u), {
|
|
40
|
-
class: "flex h-8 cursor-pointer items-center gap-1.5 px-3 shadow-none focus:outline-none",
|
|
41
|
-
type: "submit",
|
|
42
|
-
onClick: f
|
|
43
|
-
}, {
|
|
44
|
-
default: s(() => [
|
|
45
|
-
m(" Delete " + c(t.scheme?.label), 1)
|
|
46
|
-
]),
|
|
47
|
-
_: 1
|
|
48
|
-
})
|
|
49
|
-
])
|
|
50
|
-
]),
|
|
51
|
-
_: 1
|
|
52
|
-
}, 8, ["state"]));
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
export {
|
|
56
|
-
D as default
|
|
57
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OAuth2.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue"],"names":[],"mappings":"AAqRA,OAAO,EAEL,KAAK,WAAW,EAEjB,MAAM,0BAA0B,CAAA;AAGjC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,EAEL,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,oBAAoB,EACzB,KAAK,MAAM,EACZ,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAQrE,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,IAAI,EAAE,UAAU,CAAA;IAChB,WAAW,EAAE,OAAO,CAAA;IACpB,MAAM,EAAE,oBAAoB,CAAA;IAC5B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;AA0hBF,wBAMG"}
|
|
@@ -1,266 +0,0 @@
|
|
|
1
|
-
import { defineComponent as S, useTemplateRef as T, createElementBlock as V, openBlock as d, Fragment as U, createElementVNode as g, createBlock as k, createCommentVNode as w, createVNode as r, unref as a, withCtx as o, mergeProps as m, createTextVNode as u } from "vue";
|
|
2
|
-
import { DataTableRow as f } from "@scalar/api-client/components/DataTable";
|
|
3
|
-
import { useWorkspace as z } from "@scalar/api-client/store";
|
|
4
|
-
import { authorizeOauth2 as P } from "@scalar/api-client/views/Request/libs";
|
|
5
|
-
import { useLoadingState as A, ScalarButton as b } from "@scalar/components";
|
|
6
|
-
import { pkceOptions as B } from "@scalar/oas-utils/entities/spec";
|
|
7
|
-
import { useToasts as L } from "@scalar/use-toasts";
|
|
8
|
-
import { updateScheme as F } from "../helpers/update-scheme.js";
|
|
9
|
-
import I from "./OAuthScopesInput.vue.js";
|
|
10
|
-
import p from "./RequestAuthDataTableInput.vue.js";
|
|
11
|
-
const N = { class: "flex h-8 items-center justify-end gap-2 border-t" }, O = { class: "flex h-8 w-full items-center justify-end border-t" }, Z = /* @__PURE__ */ S({
|
|
12
|
-
__name: "OAuth2",
|
|
13
|
-
props: {
|
|
14
|
-
collection: {},
|
|
15
|
-
environment: {},
|
|
16
|
-
envVariables: {},
|
|
17
|
-
flow: {},
|
|
18
|
-
persistAuth: { type: Boolean, default: !1 },
|
|
19
|
-
scheme: {},
|
|
20
|
-
server: {},
|
|
21
|
-
workspace: {}
|
|
22
|
-
},
|
|
23
|
-
setup(s) {
|
|
24
|
-
const y = A(), { toast: v } = L(), C = z(), n = (l, e) => F(
|
|
25
|
-
s.scheme.uid,
|
|
26
|
-
l,
|
|
27
|
-
e,
|
|
28
|
-
C,
|
|
29
|
-
$.value,
|
|
30
|
-
s.persistAuth
|
|
31
|
-
), R = async () => {
|
|
32
|
-
if (y.isLoading || !s.collection?.uid)
|
|
33
|
-
return;
|
|
34
|
-
if (!s.server) {
|
|
35
|
-
v("No server selected", "error");
|
|
36
|
-
return;
|
|
37
|
-
}
|
|
38
|
-
y.startLoading();
|
|
39
|
-
const [l, e] = await P(
|
|
40
|
-
s.flow,
|
|
41
|
-
s.server,
|
|
42
|
-
s.workspace?.proxyUrl
|
|
43
|
-
).finally(() => y.stopLoading());
|
|
44
|
-
e ? n(`flows.${s.flow.type}.token`, e) : (console.error(l), v(l?.message ?? "Failed to authorize", "error"));
|
|
45
|
-
}, i = {
|
|
46
|
-
environment: s.environment,
|
|
47
|
-
envVariables: s.envVariables,
|
|
48
|
-
workspace: s.workspace
|
|
49
|
-
}, $ = T("wrapperRef");
|
|
50
|
-
return (l, e) => (d(), V(U, null, [
|
|
51
|
-
g("div", {
|
|
52
|
-
ref_key: "wrapperRef",
|
|
53
|
-
ref: $
|
|
54
|
-
}, null, 512),
|
|
55
|
-
l.flow.token ? (d(), V(U, { key: 0 }, [
|
|
56
|
-
r(a(f), null, {
|
|
57
|
-
default: o(() => [
|
|
58
|
-
r(p, m(i, {
|
|
59
|
-
class: "border-r-transparent",
|
|
60
|
-
modelValue: l.flow.token,
|
|
61
|
-
placeholder: "QUxMIFlPVVIgQkFTRSBBUkUgQkVMT05HIFRPIFVT",
|
|
62
|
-
type: "password",
|
|
63
|
-
"onUpdate:modelValue": e[0] || (e[0] = (t) => n(`flows.${l.flow.type}.token`, t))
|
|
64
|
-
}), {
|
|
65
|
-
default: o(() => e[10] || (e[10] = [
|
|
66
|
-
u(" Access Token ")
|
|
67
|
-
])),
|
|
68
|
-
_: 1,
|
|
69
|
-
__: [10]
|
|
70
|
-
}, 16, ["modelValue"])
|
|
71
|
-
]),
|
|
72
|
-
_: 1
|
|
73
|
-
}),
|
|
74
|
-
r(a(f), { class: "min-w-full" }, {
|
|
75
|
-
default: o(() => [
|
|
76
|
-
g("div", N, [
|
|
77
|
-
r(a(b), {
|
|
78
|
-
class: "mr-1 p-0 px-2 py-0.5",
|
|
79
|
-
loading: a(y),
|
|
80
|
-
size: "sm",
|
|
81
|
-
variant: "outlined",
|
|
82
|
-
onClick: e[1] || (e[1] = (t) => n(`flows.${l.flow.type}.token`, ""))
|
|
83
|
-
}, {
|
|
84
|
-
default: o(() => e[11] || (e[11] = [
|
|
85
|
-
u(" Clear ")
|
|
86
|
-
])),
|
|
87
|
-
_: 1,
|
|
88
|
-
__: [11]
|
|
89
|
-
}, 8, ["loading"])
|
|
90
|
-
])
|
|
91
|
-
]),
|
|
92
|
-
_: 1
|
|
93
|
-
})
|
|
94
|
-
], 64)) : (d(), V(U, { key: 1 }, [
|
|
95
|
-
r(a(f), null, {
|
|
96
|
-
default: o(() => [
|
|
97
|
-
"authorizationUrl" in l.flow ? (d(), k(p, m({ key: 0 }, i, {
|
|
98
|
-
containerClass: "border-r-0",
|
|
99
|
-
modelValue: l.flow.authorizationUrl,
|
|
100
|
-
placeholder: "https://galaxy.scalar.com/authorize",
|
|
101
|
-
"onUpdate:modelValue": e[2] || (e[2] = (t) => n(`flows.${l.flow.type}.authorizationUrl`, t))
|
|
102
|
-
}), {
|
|
103
|
-
default: o(() => e[12] || (e[12] = [
|
|
104
|
-
u(" Auth URL ")
|
|
105
|
-
])),
|
|
106
|
-
_: 1,
|
|
107
|
-
__: [12]
|
|
108
|
-
}, 16, ["modelValue"])) : w("", !0),
|
|
109
|
-
"tokenUrl" in l.flow ? (d(), k(p, m({ key: 1 }, i, {
|
|
110
|
-
modelValue: l.flow.tokenUrl,
|
|
111
|
-
placeholder: "https://galaxy.scalar.com/token",
|
|
112
|
-
"onUpdate:modelValue": e[3] || (e[3] = (t) => n(`flows.${l.flow.type}.tokenUrl`, t))
|
|
113
|
-
}), {
|
|
114
|
-
default: o(() => e[13] || (e[13] = [
|
|
115
|
-
u(" Token URL ")
|
|
116
|
-
])),
|
|
117
|
-
_: 1,
|
|
118
|
-
__: [13]
|
|
119
|
-
}, 16, ["modelValue"])) : w("", !0)
|
|
120
|
-
]),
|
|
121
|
-
_: 1
|
|
122
|
-
}),
|
|
123
|
-
"x-scalar-redirect-uri" in l.flow ? (d(), k(a(f), { key: 0 }, {
|
|
124
|
-
default: o(() => [
|
|
125
|
-
r(p, m(i, {
|
|
126
|
-
modelValue: l.flow["x-scalar-redirect-uri"],
|
|
127
|
-
placeholder: "https://galaxy.scalar.com/callback",
|
|
128
|
-
"onUpdate:modelValue": e[4] || (e[4] = (t) => n(`flows.${l.flow.type}.x-scalar-redirect-uri`, t))
|
|
129
|
-
}), {
|
|
130
|
-
default: o(() => e[14] || (e[14] = [
|
|
131
|
-
u(" Redirect URL ")
|
|
132
|
-
])),
|
|
133
|
-
_: 1,
|
|
134
|
-
__: [14]
|
|
135
|
-
}, 16, ["modelValue"])
|
|
136
|
-
]),
|
|
137
|
-
_: 1
|
|
138
|
-
})) : w("", !0),
|
|
139
|
-
l.flow.type === "password" ? (d(), V(U, { key: 1 }, [
|
|
140
|
-
r(a(f), null, {
|
|
141
|
-
default: o(() => [
|
|
142
|
-
r(p, m(i, {
|
|
143
|
-
class: "text-c-2",
|
|
144
|
-
modelValue: l.flow.username,
|
|
145
|
-
placeholder: "janedoe",
|
|
146
|
-
"onUpdate:modelValue": e[5] || (e[5] = (t) => n(`flows.${l.flow.type}.username`, t))
|
|
147
|
-
}), {
|
|
148
|
-
default: o(() => e[15] || (e[15] = [
|
|
149
|
-
u(" Username ")
|
|
150
|
-
])),
|
|
151
|
-
_: 1,
|
|
152
|
-
__: [15]
|
|
153
|
-
}, 16, ["modelValue"])
|
|
154
|
-
]),
|
|
155
|
-
_: 1
|
|
156
|
-
}),
|
|
157
|
-
r(a(f), null, {
|
|
158
|
-
default: o(() => [
|
|
159
|
-
r(p, m(i, {
|
|
160
|
-
modelValue: l.flow.password,
|
|
161
|
-
placeholder: "********",
|
|
162
|
-
type: "password",
|
|
163
|
-
"onUpdate:modelValue": e[6] || (e[6] = (t) => n(`flows.${l.flow.type}.password`, t))
|
|
164
|
-
}), {
|
|
165
|
-
default: o(() => e[16] || (e[16] = [
|
|
166
|
-
u(" Password ")
|
|
167
|
-
])),
|
|
168
|
-
_: 1,
|
|
169
|
-
__: [16]
|
|
170
|
-
}, 16, ["modelValue"])
|
|
171
|
-
]),
|
|
172
|
-
_: 1
|
|
173
|
-
})
|
|
174
|
-
], 64)) : w("", !0),
|
|
175
|
-
r(a(f), null, {
|
|
176
|
-
default: o(() => [
|
|
177
|
-
r(p, m(i, {
|
|
178
|
-
modelValue: l.flow["x-scalar-client-id"],
|
|
179
|
-
placeholder: "12345",
|
|
180
|
-
"onUpdate:modelValue": e[7] || (e[7] = (t) => n(`flows.${l.flow.type}.x-scalar-client-id`, t))
|
|
181
|
-
}), {
|
|
182
|
-
default: o(() => e[17] || (e[17] = [
|
|
183
|
-
u(" Client ID ")
|
|
184
|
-
])),
|
|
185
|
-
_: 1,
|
|
186
|
-
__: [17]
|
|
187
|
-
}, 16, ["modelValue"])
|
|
188
|
-
]),
|
|
189
|
-
_: 1
|
|
190
|
-
}),
|
|
191
|
-
"clientSecret" in l.flow ? (d(), k(a(f), { key: 2 }, {
|
|
192
|
-
default: o(() => [
|
|
193
|
-
r(p, m(i, {
|
|
194
|
-
modelValue: l.flow.clientSecret,
|
|
195
|
-
placeholder: "XYZ123",
|
|
196
|
-
type: "password",
|
|
197
|
-
"onUpdate:modelValue": e[8] || (e[8] = (t) => n(`flows.${l.flow.type}.clientSecret`, t))
|
|
198
|
-
}), {
|
|
199
|
-
default: o(() => e[18] || (e[18] = [
|
|
200
|
-
u(" Client Secret ")
|
|
201
|
-
])),
|
|
202
|
-
_: 1,
|
|
203
|
-
__: [18]
|
|
204
|
-
}, 16, ["modelValue"])
|
|
205
|
-
]),
|
|
206
|
-
_: 1
|
|
207
|
-
})) : w("", !0),
|
|
208
|
-
"x-usePkce" in l.flow ? (d(), k(a(f), { key: 3 }, {
|
|
209
|
-
default: o(() => [
|
|
210
|
-
r(p, m(i, {
|
|
211
|
-
enum: a(B),
|
|
212
|
-
modelValue: l.flow["x-usePkce"],
|
|
213
|
-
readOnly: "",
|
|
214
|
-
"onUpdate:modelValue": e[9] || (e[9] = (t) => n(
|
|
215
|
-
`flows.${l.flow.type}.x-usePkce`,
|
|
216
|
-
t
|
|
217
|
-
))
|
|
218
|
-
}), {
|
|
219
|
-
default: o(() => e[19] || (e[19] = [
|
|
220
|
-
u(" Use PKCE ")
|
|
221
|
-
])),
|
|
222
|
-
_: 1,
|
|
223
|
-
__: [19]
|
|
224
|
-
}, 16, ["enum", "modelValue"])
|
|
225
|
-
]),
|
|
226
|
-
_: 1
|
|
227
|
-
})) : w("", !0),
|
|
228
|
-
Object.keys(l.flow.scopes ?? {}).length ? (d(), k(a(f), { key: 4 }, {
|
|
229
|
-
default: o(() => [
|
|
230
|
-
r(I, {
|
|
231
|
-
flow: l.flow,
|
|
232
|
-
updateScheme: n
|
|
233
|
-
}, null, 8, ["flow"])
|
|
234
|
-
]),
|
|
235
|
-
_: 1
|
|
236
|
-
})) : w("", !0)
|
|
237
|
-
], 64)),
|
|
238
|
-
l.flow.token ? w("", !0) : (d(), k(a(f), {
|
|
239
|
-
key: 2,
|
|
240
|
-
class: "min-w-full"
|
|
241
|
-
}, {
|
|
242
|
-
default: o(() => [
|
|
243
|
-
g("div", O, [
|
|
244
|
-
r(a(b), {
|
|
245
|
-
class: "mr-0.75 p-0 px-2 py-0.5",
|
|
246
|
-
loading: a(y),
|
|
247
|
-
size: "sm",
|
|
248
|
-
variant: "outlined",
|
|
249
|
-
onClick: R
|
|
250
|
-
}, {
|
|
251
|
-
default: o(() => e[20] || (e[20] = [
|
|
252
|
-
u(" Authorize ")
|
|
253
|
-
])),
|
|
254
|
-
_: 1,
|
|
255
|
-
__: [20]
|
|
256
|
-
}, 8, ["loading"])
|
|
257
|
-
])
|
|
258
|
-
]),
|
|
259
|
-
_: 1
|
|
260
|
-
}))
|
|
261
|
-
], 64));
|
|
262
|
-
}
|
|
263
|
-
});
|
|
264
|
-
export {
|
|
265
|
-
Z as default
|
|
266
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OAuthScopesInput.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue"],"names":[],"mappings":"AA6IA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAE5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AAGjE,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,UAAU,CAAA;IAChB,YAAY,EAAE,YAAY,CAAA;CAC3B,CAAC;;AA6UF,wBAMG"}
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
import { defineComponent as V, computed as f, createBlock as r, openBlock as a, unref as l, withCtx as c, createElementVNode as n, createVNode as i, normalizeClass as A, toDisplayString as d, createCommentVNode as p, withModifiers as w, createTextVNode as m, createElementBlock as x, Fragment as B, renderList as O } from "vue";
|
|
2
|
-
import { Disclosure as T, DisclosureButton as $, DisclosurePanel as j } from "@headlessui/vue";
|
|
3
|
-
import { DataTableCell as v, DataTableRow as z, DataTableCheckbox as N } from "@scalar/api-client/components/DataTable";
|
|
4
|
-
import { ScalarButton as g, ScalarIcon as E } from "@scalar/components";
|
|
5
|
-
const F = { class: "flex h-fit w-full" }, I = { class: "flex-1" }, R = { class: "flex items-center gap-1.75" }, L = {
|
|
6
|
-
class: "grid auto-rows-auto",
|
|
7
|
-
style: { gridTemplateColumns: "1fr auto" }
|
|
8
|
-
}, M = { key: 0 }, P = { class: "font-code text-xs" }, K = /* @__PURE__ */ V({
|
|
9
|
-
__name: "OAuthScopesInput",
|
|
10
|
-
props: {
|
|
11
|
-
flow: {},
|
|
12
|
-
updateScheme: { type: Function }
|
|
13
|
-
},
|
|
14
|
-
setup(e) {
|
|
15
|
-
const k = f(
|
|
16
|
-
() => Object.entries(e.flow?.scopes ?? {}).map(([s, t]) => ({
|
|
17
|
-
id: s,
|
|
18
|
-
label: s,
|
|
19
|
-
description: t
|
|
20
|
-
}))
|
|
21
|
-
), u = f(() => e.flow?.selectedScopes || []);
|
|
22
|
-
function y(s, t) {
|
|
23
|
-
t ? e.updateScheme(`flows.${e.flow.type}.selectedScopes`, [
|
|
24
|
-
...u.value,
|
|
25
|
-
s
|
|
26
|
-
]) : e.updateScheme(
|
|
27
|
-
`flows.${e.flow.type}.selectedScopes`,
|
|
28
|
-
u.value.filter((o) => o !== s)
|
|
29
|
-
);
|
|
30
|
-
}
|
|
31
|
-
const h = f(
|
|
32
|
-
() => e.flow?.selectedScopes?.length === Object.keys(e.flow?.scopes ?? {}).length
|
|
33
|
-
), b = () => {
|
|
34
|
-
e.updateScheme(
|
|
35
|
-
`flows.${e.flow.type}.selectedScopes`,
|
|
36
|
-
Object.keys(e.flow?.scopes ?? {})
|
|
37
|
-
);
|
|
38
|
-
}, C = () => {
|
|
39
|
-
e.updateScheme(`flows.${e.flow.type}.selectedScopes`, []);
|
|
40
|
-
};
|
|
41
|
-
return (s, t) => (a(), r(l(v), { class: "h-auto !max-h-[initial] min-h-8 items-center" }, {
|
|
42
|
-
default: c(() => [
|
|
43
|
-
n("div", F, [
|
|
44
|
-
t[2] || (t[2] = n("div", { class: "text-c-1 h-full items-center" }, null, -1)),
|
|
45
|
-
i(l(T), {
|
|
46
|
-
as: "div",
|
|
47
|
-
class: "bl flex w-full flex-col"
|
|
48
|
-
}, {
|
|
49
|
-
default: c(() => [
|
|
50
|
-
i(l($), {
|
|
51
|
-
class: A([
|
|
52
|
-
"group/scopes-accordion hover:text-c-1 flex h-auto min-h-8 cursor-pointer items-center gap-1.5 pr-2.25 pl-3 text-left",
|
|
53
|
-
(s.flow?.selectedScopes?.length || 0) > 0 ? "text-c-1" : "text-c-3"
|
|
54
|
-
])
|
|
55
|
-
}, {
|
|
56
|
-
default: c(({ open: o }) => [
|
|
57
|
-
n("div", I, " Scopes Selected " + d(s.flow?.selectedScopes?.length || 0) + " / " + d(Object.keys(s.flow?.scopes ?? {}).length || 0), 1),
|
|
58
|
-
n("div", R, [
|
|
59
|
-
h.value ? (a(), r(l(g), {
|
|
60
|
-
key: 0,
|
|
61
|
-
class: "pr-0.75 pl-1 transition-none",
|
|
62
|
-
size: "sm",
|
|
63
|
-
variant: "ghost",
|
|
64
|
-
onClick: w(C, ["stop"])
|
|
65
|
-
}, {
|
|
66
|
-
default: c(() => t[0] || (t[0] = [
|
|
67
|
-
m(" Deselect All ")
|
|
68
|
-
])),
|
|
69
|
-
_: 1,
|
|
70
|
-
__: [0]
|
|
71
|
-
})) : p("", !0),
|
|
72
|
-
h.value ? p("", !0) : (a(), r(l(g), {
|
|
73
|
-
key: 1,
|
|
74
|
-
class: "pr-0.75 pl-1 transition-none",
|
|
75
|
-
size: "sm",
|
|
76
|
-
variant: "ghost",
|
|
77
|
-
onClick: w(b, ["stop"])
|
|
78
|
-
}, {
|
|
79
|
-
default: c(() => t[1] || (t[1] = [
|
|
80
|
-
m(" Select All ")
|
|
81
|
-
])),
|
|
82
|
-
_: 1,
|
|
83
|
-
__: [1]
|
|
84
|
-
})),
|
|
85
|
-
i(l(E), {
|
|
86
|
-
class: "text-c-3 group-hover/scopes-accordion:text-c-2",
|
|
87
|
-
icon: o ? "ChevronDown" : "ChevronRight",
|
|
88
|
-
size: "md"
|
|
89
|
-
}, null, 8, ["icon"])
|
|
90
|
-
])
|
|
91
|
-
]),
|
|
92
|
-
_: 1
|
|
93
|
-
}, 8, ["class"]),
|
|
94
|
-
i(l(j), { as: "template" }, {
|
|
95
|
-
default: c(() => [
|
|
96
|
-
n("table", L, [
|
|
97
|
-
(a(!0), x(B, null, O(k.value, ({ id: o, label: D, description: S }) => (a(), r(l(z), {
|
|
98
|
-
key: o,
|
|
99
|
-
class: "text-c-2",
|
|
100
|
-
onClick: (U) => y(o, !u.value.includes(o))
|
|
101
|
-
}, {
|
|
102
|
-
default: c(() => [
|
|
103
|
-
i(l(v), { class: "hover:text-c-1 box-border !max-h-[initial] w-full cursor-pointer px-3 py-1.5" }, {
|
|
104
|
-
default: c(() => [
|
|
105
|
-
S ? (a(), x("div", M, [
|
|
106
|
-
n("span", P, d(D), 1),
|
|
107
|
-
m(" – " + d(S), 1)
|
|
108
|
-
])) : p("", !0)
|
|
109
|
-
]),
|
|
110
|
-
_: 2
|
|
111
|
-
}, 1024),
|
|
112
|
-
i(l(N), {
|
|
113
|
-
modelValue: u.value.includes(o),
|
|
114
|
-
"onUpdate:modelValue": () => {
|
|
115
|
-
}
|
|
116
|
-
}, null, 8, ["modelValue"])
|
|
117
|
-
]),
|
|
118
|
-
_: 2
|
|
119
|
-
}, 1032, ["onClick"]))), 128))
|
|
120
|
-
])
|
|
121
|
-
]),
|
|
122
|
-
_: 1
|
|
123
|
-
})
|
|
124
|
-
]),
|
|
125
|
-
_: 1
|
|
126
|
-
})
|
|
127
|
-
])
|
|
128
|
-
]),
|
|
129
|
-
_: 1
|
|
130
|
-
}));
|
|
131
|
-
}
|
|
132
|
-
});
|
|
133
|
-
export {
|
|
134
|
-
K as default
|
|
135
|
-
};
|