@scalar/api-reference 1.38.0 → 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 +88 -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 +27096 -26593
- 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 -18
- 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.d.ts.map +1 -1
- package/dist/features/example-responses/ExampleResponse.vue.js +4 -4
- package/dist/features/example-responses/ExampleResponse.vue2.js +49 -31
- 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.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 +49 -38
- package/dist/blocks/constants.d.ts +0 -9
- package/dist/blocks/constants.d.ts.map +0 -1
- package/dist/blocks/helpers/getPointer.d.ts +0 -22
- package/dist/blocks/helpers/getPointer.d.ts.map +0 -1
- 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 -183
- 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.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/dist/{v2/hooks → hooks}/use-workspace-store-events.d.ts +0 -0
|
@@ -1,111 +1,119 @@
|
|
|
1
|
-
import { getResolvedRef
|
|
2
|
-
import { extractRequestBody
|
|
3
|
-
function
|
|
4
|
-
const
|
|
5
|
-
function
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { getResolvedRef } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
2
|
+
import { extractRequestBody, createParameterMap } from "../../../helpers/openapi.js";
|
|
3
|
+
function createSearchIndex(document) {
|
|
4
|
+
const index = [];
|
|
5
|
+
function processEntries(entriesToProcess) {
|
|
6
|
+
entriesToProcess.forEach((entry) => {
|
|
7
|
+
addEntryToIndex(entry, index, document);
|
|
8
|
+
if ("children" in entry && entry.children) {
|
|
9
|
+
processEntries(entry.children);
|
|
10
|
+
}
|
|
8
11
|
});
|
|
9
12
|
}
|
|
10
|
-
|
|
13
|
+
processEntries(document?.["x-scalar-navigation"]?.children ?? []);
|
|
14
|
+
return index;
|
|
11
15
|
}
|
|
12
|
-
function
|
|
13
|
-
if (
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
+
function addEntryToIndex(entry, index, document) {
|
|
17
|
+
if (entry.type === "operation") {
|
|
18
|
+
const operation = getResolvedRef(document?.paths?.[entry.path]?.[entry.method]) ?? {};
|
|
19
|
+
const requestBodyOrParameterMap = extractRequestBody(operation) || createParameterMap(operation);
|
|
20
|
+
const body = typeof requestBodyOrParameterMap !== "boolean" ? requestBodyOrParameterMap : null;
|
|
21
|
+
index.push({
|
|
16
22
|
type: "operation",
|
|
17
|
-
title:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
entry
|
|
23
|
+
title: entry.title,
|
|
24
|
+
id: entry.id,
|
|
25
|
+
description: operation.description || "",
|
|
26
|
+
method: entry.method,
|
|
27
|
+
path: entry.path,
|
|
28
|
+
body: body || "",
|
|
29
|
+
operationId: operation.operationId,
|
|
30
|
+
entry
|
|
25
31
|
});
|
|
26
32
|
return;
|
|
27
33
|
}
|
|
28
|
-
if (
|
|
29
|
-
const
|
|
30
|
-
|
|
34
|
+
if (entry.type === "webhook") {
|
|
35
|
+
const webhook = getResolvedRef(document?.webhooks?.[entry.name]?.[entry.method]) ?? {};
|
|
36
|
+
index.push({
|
|
37
|
+
id: entry.id,
|
|
31
38
|
type: "webhook",
|
|
32
|
-
title:
|
|
33
|
-
href: `#${o.id}`,
|
|
39
|
+
title: entry.title,
|
|
34
40
|
description: "Webhook",
|
|
35
|
-
method:
|
|
36
|
-
body:
|
|
37
|
-
|
|
41
|
+
method: entry.method,
|
|
42
|
+
body: webhook.description || "",
|
|
43
|
+
operationId: webhook.operationId,
|
|
44
|
+
entry
|
|
38
45
|
});
|
|
39
46
|
return;
|
|
40
47
|
}
|
|
41
|
-
if (
|
|
42
|
-
const
|
|
43
|
-
|
|
48
|
+
if (entry.type === "model") {
|
|
49
|
+
const schema = getResolvedRef(document?.components?.schemas?.[entry.name]);
|
|
50
|
+
const description = schema?.description ?? "";
|
|
51
|
+
index.push({
|
|
44
52
|
type: "model",
|
|
45
|
-
title:
|
|
46
|
-
href: `#${o.id}`,
|
|
53
|
+
title: entry.title,
|
|
47
54
|
description: "Model",
|
|
48
|
-
|
|
49
|
-
|
|
55
|
+
id: entry.id,
|
|
56
|
+
body: description,
|
|
57
|
+
entry
|
|
50
58
|
});
|
|
51
59
|
return;
|
|
52
60
|
}
|
|
53
|
-
if (
|
|
54
|
-
|
|
61
|
+
if (entry.type === "models") {
|
|
62
|
+
index.push({
|
|
63
|
+
id: entry.id,
|
|
55
64
|
type: "heading",
|
|
56
65
|
title: "Models",
|
|
57
|
-
href: `#${o.id}`,
|
|
58
66
|
description: "Heading",
|
|
59
67
|
body: "",
|
|
60
|
-
entry
|
|
68
|
+
entry
|
|
61
69
|
});
|
|
62
70
|
return;
|
|
63
71
|
}
|
|
64
|
-
if (
|
|
65
|
-
|
|
72
|
+
if (entry.type === "tag" && entry.isWebhooks === true) {
|
|
73
|
+
index.push({
|
|
74
|
+
id: entry.id,
|
|
66
75
|
type: "heading",
|
|
67
76
|
title: "Webhooks",
|
|
68
|
-
href: `#${o.id}`,
|
|
69
77
|
description: "Heading",
|
|
70
78
|
body: "",
|
|
71
|
-
entry
|
|
79
|
+
entry
|
|
72
80
|
});
|
|
73
81
|
return;
|
|
74
82
|
}
|
|
75
|
-
if (
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
description:
|
|
83
|
+
if (entry.type === "tag" && entry.isGroup === false) {
|
|
84
|
+
index.push({
|
|
85
|
+
id: entry.id,
|
|
86
|
+
title: entry.title,
|
|
87
|
+
description: entry.description || "",
|
|
80
88
|
type: "tag",
|
|
81
89
|
body: "",
|
|
82
|
-
entry
|
|
90
|
+
entry
|
|
83
91
|
});
|
|
84
92
|
return;
|
|
85
93
|
}
|
|
86
|
-
if (
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
94
|
+
if (entry.type === "tag" && entry.isGroup === true) {
|
|
95
|
+
index.push({
|
|
96
|
+
id: entry.id,
|
|
97
|
+
title: entry.title,
|
|
90
98
|
description: "Tag Group",
|
|
91
99
|
type: "tag",
|
|
92
100
|
body: "",
|
|
93
|
-
entry
|
|
101
|
+
entry
|
|
94
102
|
});
|
|
95
103
|
return;
|
|
96
104
|
}
|
|
97
|
-
if (
|
|
98
|
-
|
|
105
|
+
if (entry.type === "text") {
|
|
106
|
+
index.push({
|
|
107
|
+
id: entry.id,
|
|
99
108
|
type: "heading",
|
|
100
|
-
title:
|
|
101
|
-
description: "
|
|
102
|
-
href: `#${o.id}`,
|
|
109
|
+
title: entry.title ?? "",
|
|
110
|
+
description: "Heading",
|
|
103
111
|
body: "",
|
|
104
|
-
entry
|
|
112
|
+
entry
|
|
105
113
|
});
|
|
106
114
|
return;
|
|
107
115
|
}
|
|
108
116
|
}
|
|
109
117
|
export {
|
|
110
|
-
|
|
118
|
+
createSearchIndex
|
|
111
119
|
};
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import type { OpenApiDocument } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
2
|
-
import type
|
|
3
|
-
import type { useSidebar } from '../../../v2/blocks/scalar-sidebar-block';
|
|
2
|
+
import { type MaybeRefOrGetter } from 'vue';
|
|
4
3
|
import type { FuseData } from '../types';
|
|
5
4
|
/**
|
|
6
5
|
* Creates the search index from an OpenAPI document.
|
|
7
6
|
*/
|
|
8
|
-
export declare function useSearchIndex(
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
export declare function useSearchIndex(document: MaybeRefOrGetter<OpenApiDocument | undefined>): {
|
|
8
|
+
results: import("vue").ComputedRef<{
|
|
9
|
+
item: FuseData;
|
|
10
|
+
refIndex: number;
|
|
11
|
+
}[]>;
|
|
13
12
|
query: import("vue").Ref<string, string>;
|
|
14
13
|
};
|
|
15
14
|
//# sourceMappingURL=useSearchIndex.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSearchIndex.d.ts","sourceRoot":"","sources":["../../../../src/features/Search/hooks/useSearchIndex.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAA;
|
|
1
|
+
{"version":3,"file":"useSearchIndex.d.ts","sourceRoot":"","sources":["../../../../src/features/Search/hooks/useSearchIndex.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAA;AAEnG,OAAO,EAAE,KAAK,gBAAgB,EAA0B,MAAM,KAAK,CAAA;AAInE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAIxC;;GAEG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,gBAAgB,CAAC,eAAe,GAAG,SAAS,CAAC;;;;;;EAkCrF"}
|
|
@@ -1,46 +1,33 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { createFuseInstance
|
|
3
|
-
import { createSearchIndex
|
|
4
|
-
const
|
|
5
|
-
function
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
if (r.length) {
|
|
18
|
-
f();
|
|
19
|
-
return;
|
|
1
|
+
import { computed, toValue, ref } from "vue";
|
|
2
|
+
import { createFuseInstance } from "../helpers/create-fuse-instance.js";
|
|
3
|
+
import { createSearchIndex } from "../helpers/create-search-index.js";
|
|
4
|
+
const MAX_SEARCH_RESULTS = 25;
|
|
5
|
+
function useSearchIndex(document) {
|
|
6
|
+
const fuse = computed(() => {
|
|
7
|
+
const instance = createFuseInstance();
|
|
8
|
+
instance.setCollection(createSearchIndex(toValue(document)));
|
|
9
|
+
return instance;
|
|
10
|
+
});
|
|
11
|
+
const query = ref("");
|
|
12
|
+
const results = computed(() => {
|
|
13
|
+
if (query.value.length !== 0) {
|
|
14
|
+
return fuse.value.search(query.value, {
|
|
15
|
+
limit: MAX_SEARCH_RESULTS
|
|
16
|
+
});
|
|
20
17
|
}
|
|
21
|
-
|
|
18
|
+
const allEntries = fuse.value._docs;
|
|
19
|
+
return allEntries.slice(0, MAX_SEARCH_RESULTS).map(
|
|
20
|
+
(item, index) => ({
|
|
21
|
+
item,
|
|
22
|
+
refIndex: index
|
|
23
|
+
})
|
|
24
|
+
);
|
|
22
25
|
});
|
|
23
|
-
function o() {
|
|
24
|
-
t.value = "", e.value = void 0, s.value = [];
|
|
25
|
-
}
|
|
26
|
-
const s = a([]), f = () => {
|
|
27
|
-
e.value = 0, s.value = n.search(t.value, {
|
|
28
|
-
limit: d
|
|
29
|
-
});
|
|
30
|
-
}, u = h(() => t.value.length !== 0 ? s.value : n._docs.slice(0, d).map((c, S) => ({
|
|
31
|
-
item: c,
|
|
32
|
-
refIndex: S
|
|
33
|
-
}))), m = h(
|
|
34
|
-
() => typeof e.value == "number" ? u.value[e.value] : void 0
|
|
35
|
-
);
|
|
36
26
|
return {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
selectedSearchResult: m,
|
|
40
|
-
searchResultsWithPlaceholderResults: u,
|
|
41
|
-
query: t
|
|
27
|
+
results,
|
|
28
|
+
query
|
|
42
29
|
};
|
|
43
30
|
}
|
|
44
31
|
export {
|
|
45
|
-
|
|
32
|
+
useSearchIndex
|
|
46
33
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import type { TraversedEntry } from '@scalar/workspace-store/schemas/navigation';
|
|
2
|
-
import type { ParameterMap } from '../../
|
|
2
|
+
import type { ParameterMap } from '../../helpers/openapi.js';
|
|
3
3
|
export type EntryType = 'operation' | 'webhook' | 'model' | 'heading' | 'tag';
|
|
4
4
|
export type FuseData = {
|
|
5
5
|
type: EntryType;
|
|
6
|
-
id
|
|
6
|
+
id: string;
|
|
7
7
|
title: string;
|
|
8
8
|
description: string;
|
|
9
|
-
href: string;
|
|
10
9
|
body?: string | string[] | ParameterMap;
|
|
11
10
|
method?: string;
|
|
12
11
|
path?: string;
|
|
12
|
+
operationId?: string;
|
|
13
13
|
entry: TraversedEntry;
|
|
14
14
|
};
|
|
15
15
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/features/Search/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAA;AAEhF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/features/Search/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAA;AAEhF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,MAAM,MAAM,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,KAAK,CAAA;AAE7E,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,EAAE,SAAS,CAAA;IACf,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,YAAY,CAAA;IACvC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAK,EAAE,cAAc,CAAA;CACtB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExampleResponse.vue.d.ts","sourceRoot":"","sources":["../../../src/features/example-responses/ExampleResponse.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ExampleResponse.vue.d.ts","sourceRoot":"","sources":["../../../src/features/example-responses/ExampleResponse.vue"],"names":[],"mappings":"AA2IA,OAAO,KAAK,EACV,aAAa,EACb,eAAe,EAChB,MAAM,8DAA8D,CAAA;AAKrE,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,eAAe,GAAG,SAAS,CAAA;IACrC,OAAO,EAAE,aAAa,GAAG,SAAS,CAAA;CACnC,CAAC;;AA+HF,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _sfc_main from "./ExampleResponse.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const ExampleResponse = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-0fa97c76"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
ExampleResponse as default
|
|
7
7
|
};
|
|
@@ -1,42 +1,60 @@
|
|
|
1
|
-
import { defineComponent
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { getResolvedRef
|
|
6
|
-
import { getResolvedRefDeep
|
|
7
|
-
const
|
|
1
|
+
import { defineComponent, computed, createBlock, createElementBlock, openBlock, unref } from "vue";
|
|
2
|
+
import { getExampleFromSchema } from "@scalar/api-client/v2/blocks/operation-code-sample";
|
|
3
|
+
import { ScalarCodeBlock, ScalarVirtualText } from "@scalar/components";
|
|
4
|
+
import { prettyPrintJson } from "@scalar/oas-utils/helpers";
|
|
5
|
+
import { getResolvedRef } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
6
|
+
import { getResolvedRefDeep } from "./helpers/get-resolved-ref-deep.js";
|
|
7
|
+
const _hoisted_1 = {
|
|
8
8
|
key: 3,
|
|
9
9
|
class: "empty-state"
|
|
10
|
-
}
|
|
10
|
+
};
|
|
11
|
+
const VIRTUALIZATION_THRESHOLD = 2e4;
|
|
12
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
11
13
|
__name: "ExampleResponse",
|
|
12
14
|
props: {
|
|
13
15
|
response: {},
|
|
14
16
|
example: {}
|
|
15
17
|
},
|
|
16
|
-
setup(
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
18
|
+
setup(__props) {
|
|
19
|
+
const getContent = () => {
|
|
20
|
+
if (__props.example !== void 0) {
|
|
21
|
+
return getResolvedRefDeep(__props.example)?.value ?? "";
|
|
22
|
+
}
|
|
23
|
+
if (__props.response?.schema) {
|
|
24
|
+
return getExampleFromSchema(getResolvedRef(__props.response.schema), {
|
|
25
|
+
emptyString: "string",
|
|
26
|
+
mode: "read"
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
return "";
|
|
30
|
+
};
|
|
31
|
+
const shouldVirtualize = computed(
|
|
32
|
+
() => prettyPrintedContent.value.length > VIRTUALIZATION_THRESHOLD
|
|
33
|
+
);
|
|
34
|
+
const prettyPrintedContent = computed(
|
|
35
|
+
() => prettyPrintJson(getContent())
|
|
36
|
+
);
|
|
37
|
+
return (_ctx, _cache) => {
|
|
38
|
+
return _ctx.example !== void 0 && !shouldVirtualize.value ? (openBlock(), createBlock(unref(ScalarCodeBlock), {
|
|
39
|
+
key: 0,
|
|
40
|
+
class: "bg-b-2 -outline-offset-2",
|
|
41
|
+
lang: "json",
|
|
42
|
+
prettyPrintedContent: prettyPrintedContent.value
|
|
43
|
+
}, null, 8, ["prettyPrintedContent"])) : _ctx.response?.schema && !shouldVirtualize.value ? (openBlock(), createBlock(unref(ScalarCodeBlock), {
|
|
44
|
+
key: 1,
|
|
45
|
+
class: "bg-b-2 -outline-offset-2",
|
|
46
|
+
lang: "json",
|
|
47
|
+
prettyPrintedContent: prettyPrintedContent.value
|
|
48
|
+
}, null, 8, ["prettyPrintedContent"])) : (_ctx.example !== void 0 || _ctx.response?.schema) && shouldVirtualize.value ? (openBlock(), createBlock(unref(ScalarVirtualText), {
|
|
49
|
+
key: 2,
|
|
50
|
+
containerClass: "custom-scroll scalar-code-block border rounded-b flex flex-1 max-h-screen",
|
|
51
|
+
contentClass: "language-plaintext whitespace-pre font-code text-base",
|
|
52
|
+
lineHeight: 20,
|
|
53
|
+
text: prettyPrintedContent.value
|
|
54
|
+
}, null, 8, ["text"])) : (openBlock(), createElementBlock("div", _hoisted_1, " No Body "));
|
|
55
|
+
};
|
|
38
56
|
}
|
|
39
57
|
});
|
|
40
58
|
export {
|
|
41
|
-
|
|
59
|
+
_sfc_main as default
|
|
42
60
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _sfc_main from "./ExampleResponseTab.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const ExampleResponseTab = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c8207e48"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
ExampleResponseTab as default
|
|
7
7
|
};
|
|
@@ -1,23 +1,25 @@
|
|
|
1
|
-
import { defineComponent
|
|
2
|
-
import { Tab
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent, createBlock, openBlock, unref, withCtx, createElementVNode, normalizeClass, renderSlot } from "vue";
|
|
2
|
+
import { Tab } from "@headlessui/vue";
|
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "ExampleResponseTab",
|
|
5
|
-
setup(
|
|
6
|
-
return (
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
5
|
+
setup(__props) {
|
|
6
|
+
return (_ctx, _cache) => {
|
|
7
|
+
return openBlock(), createBlock(unref(Tab), { as: "template" }, {
|
|
8
|
+
default: withCtx(({ selected }) => [
|
|
9
|
+
createElementVNode("button", {
|
|
10
|
+
class: normalizeClass(["tab", { "tab-selected": selected }]),
|
|
11
|
+
type: "button"
|
|
12
|
+
}, [
|
|
13
|
+
createElementVNode("span", null, [
|
|
14
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
15
|
+
])
|
|
16
|
+
], 2)
|
|
17
|
+
]),
|
|
18
|
+
_: 3
|
|
19
|
+
});
|
|
20
|
+
};
|
|
19
21
|
}
|
|
20
22
|
});
|
|
21
23
|
export {
|
|
22
|
-
|
|
24
|
+
_sfc_main as default
|
|
23
25
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _sfc_main from "./ExampleResponseTabList.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const ExampleResponseTabList = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-fec8fbbb"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
ExampleResponseTabList as default
|
|
7
7
|
};
|
|
@@ -1,34 +1,37 @@
|
|
|
1
|
-
import { defineComponent
|
|
2
|
-
import { TabGroup
|
|
3
|
-
import { ScalarCardHeader
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent, createBlock, openBlock, unref, withCtx, createVNode, renderSlot } from "vue";
|
|
2
|
+
import { TabGroup, TabList } from "@headlessui/vue";
|
|
3
|
+
import { ScalarCardHeader } from "@scalar/components";
|
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
5
|
__name: "ExampleResponseTabList",
|
|
6
6
|
emits: ["change"],
|
|
7
|
-
setup(
|
|
8
|
-
const
|
|
9
|
-
|
|
7
|
+
setup(__props, { emit: __emit }) {
|
|
8
|
+
const emit = __emit;
|
|
9
|
+
const changeTab = (index) => {
|
|
10
|
+
emit("change", index);
|
|
11
|
+
};
|
|
12
|
+
return (_ctx, _cache) => {
|
|
13
|
+
return openBlock(), createBlock(unref(ScalarCardHeader), { class: "scalar-card-header scalar-card-header-tabs" }, {
|
|
14
|
+
actions: withCtx(() => [
|
|
15
|
+
renderSlot(_ctx.$slots, "actions", {}, void 0, true)
|
|
16
|
+
]),
|
|
17
|
+
default: withCtx(() => [
|
|
18
|
+
createVNode(unref(TabGroup), { onChange: changeTab }, {
|
|
19
|
+
default: withCtx(() => [
|
|
20
|
+
createVNode(unref(TabList), { class: "tab-list custom-scroll" }, {
|
|
21
|
+
default: withCtx(() => [
|
|
22
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
23
|
+
]),
|
|
24
|
+
_: 3
|
|
25
|
+
})
|
|
26
|
+
]),
|
|
27
|
+
_: 3
|
|
28
|
+
})
|
|
29
|
+
]),
|
|
30
|
+
_: 3
|
|
31
|
+
});
|
|
10
32
|
};
|
|
11
|
-
return (e, _) => (i(), d(t(p), { class: "scalar-card-header scalar-card-header-tabs" }, {
|
|
12
|
-
actions: a(() => [
|
|
13
|
-
o(e.$slots, "actions", {}, void 0, !0)
|
|
14
|
-
]),
|
|
15
|
-
default: a(() => [
|
|
16
|
-
r(t(m), { onChange: n }, {
|
|
17
|
-
default: a(() => [
|
|
18
|
-
r(t(u), { class: "tab-list custom-scroll" }, {
|
|
19
|
-
default: a(() => [
|
|
20
|
-
o(e.$slots, "default", {}, void 0, !0)
|
|
21
|
-
]),
|
|
22
|
-
_: 3
|
|
23
|
-
})
|
|
24
|
-
]),
|
|
25
|
-
_: 3
|
|
26
|
-
})
|
|
27
|
-
]),
|
|
28
|
-
_: 3
|
|
29
|
-
}));
|
|
30
33
|
}
|
|
31
34
|
});
|
|
32
35
|
export {
|
|
33
|
-
|
|
36
|
+
_sfc_main as default
|
|
34
37
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _sfc_main from "./ExampleResponses.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const ExampleResponses = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-bf753e60"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
ExampleResponses as default
|
|
7
7
|
};
|