@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,72 +1,102 @@
|
|
|
1
|
-
import { defineComponent
|
|
2
|
-
import { ScalarButton
|
|
3
|
-
import { ScalarIconPlus
|
|
4
|
-
import { getResolvedRef
|
|
5
|
-
import { isArraySchema
|
|
6
|
-
import
|
|
7
|
-
const
|
|
1
|
+
import { defineComponent, computed, ref, createElementBlock, createCommentVNode, openBlock, createElementVNode, Fragment, renderList, createBlock, createVNode, unref, withCtx, createTextVNode, normalizeClass, toDisplayString } from "vue";
|
|
2
|
+
import { ScalarButton } from "@scalar/components";
|
|
3
|
+
import { ScalarIconPlus } from "@scalar/icons";
|
|
4
|
+
import { getResolvedRef } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
5
|
+
import { isArraySchema } from "@scalar/workspace-store/schemas/v3.1/strict/type-guards";
|
|
6
|
+
import SchemaEnumPropertyItem from "./SchemaEnumPropertyItem.vue.js";
|
|
7
|
+
const _hoisted_1 = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "property-enum"
|
|
10
|
-
}
|
|
10
|
+
};
|
|
11
|
+
const _hoisted_2 = { class: "property-enum-values" };
|
|
12
|
+
const _hoisted_3 = { key: 1 };
|
|
13
|
+
const ENUM_DISPLAY_THRESHOLD = 9;
|
|
14
|
+
const INITIAL_VISIBLE_COUNT = 5;
|
|
15
|
+
const THIN_SPACE = " ";
|
|
16
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
11
17
|
__name: "SchemaEnumValues",
|
|
12
18
|
props: {
|
|
13
19
|
value: {}
|
|
14
20
|
},
|
|
15
|
-
setup(
|
|
16
|
-
const
|
|
17
|
-
(
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
() =>
|
|
24
|
-
)
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
21
|
+
setup(__props) {
|
|
22
|
+
const enumValues = computed(() => {
|
|
23
|
+
if (!__props.value) {
|
|
24
|
+
return [];
|
|
25
|
+
}
|
|
26
|
+
return __props.value.enum || isArraySchema(__props.value) && getResolvedRef(__props.value.items)?.enum || [];
|
|
27
|
+
});
|
|
28
|
+
const shouldUseLongListDisplay = computed(
|
|
29
|
+
() => enumValues.value.length > ENUM_DISPLAY_THRESHOLD
|
|
30
|
+
);
|
|
31
|
+
const initialVisibleCount = computed(
|
|
32
|
+
() => shouldUseLongListDisplay.value ? INITIAL_VISIBLE_COUNT : enumValues.value.length
|
|
33
|
+
);
|
|
34
|
+
const visibleEnumValues = computed(
|
|
35
|
+
() => enumValues.value.slice(0, initialVisibleCount.value)
|
|
36
|
+
);
|
|
37
|
+
const hiddenEnumValues = computed(
|
|
38
|
+
() => enumValues.value.slice(initialVisibleCount.value)
|
|
39
|
+
);
|
|
40
|
+
const getEnumValueDescription = (enumValue, index) => {
|
|
41
|
+
const descriptions = __props.value?.["x-enumDescriptions"] ?? __props.value?.["x-enum-descriptions"];
|
|
42
|
+
if (!descriptions) {
|
|
43
|
+
return void 0;
|
|
44
|
+
}
|
|
45
|
+
if (Array.isArray(descriptions)) {
|
|
46
|
+
return descriptions[index];
|
|
47
|
+
}
|
|
48
|
+
if (typeof descriptions === "object" && descriptions !== null) {
|
|
49
|
+
return descriptions[String(enumValue)];
|
|
31
50
|
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
51
|
+
return void 0;
|
|
52
|
+
};
|
|
53
|
+
const formatEnumValueWithName = (enumValue, index) => {
|
|
54
|
+
const varNames = __props.value?.["x-enum-varnames"] ?? __props.value?.["x-enumNames"];
|
|
55
|
+
const varName = Array.isArray(varNames) ? varNames[index] : void 0;
|
|
56
|
+
return varName ? `${enumValue}${THIN_SPACE}=${THIN_SPACE}${varName}` : String(enumValue);
|
|
57
|
+
};
|
|
58
|
+
const isExpanded = ref(false);
|
|
59
|
+
const toggleExpanded = () => {
|
|
60
|
+
isExpanded.value = !isExpanded.value;
|
|
61
|
+
};
|
|
62
|
+
return (_ctx, _cache) => {
|
|
63
|
+
return enumValues.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
64
|
+
createElementVNode("ul", _hoisted_2, [
|
|
65
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(visibleEnumValues.value, (enumValue, index) => {
|
|
66
|
+
return openBlock(), createBlock(SchemaEnumPropertyItem, {
|
|
67
|
+
key: String(enumValue),
|
|
68
|
+
description: getEnumValueDescription(enumValue, index),
|
|
69
|
+
label: formatEnumValueWithName(enumValue, index)
|
|
70
|
+
}, null, 8, ["description", "label"]);
|
|
71
|
+
}), 128)),
|
|
72
|
+
shouldUseLongListDisplay.value && isExpanded.value ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(hiddenEnumValues.value, (enumValue, index) => {
|
|
73
|
+
return openBlock(), createBlock(SchemaEnumPropertyItem, {
|
|
74
|
+
key: String(enumValue),
|
|
75
|
+
description: getEnumValueDescription(enumValue, initialVisibleCount.value + index),
|
|
76
|
+
label: formatEnumValueWithName(enumValue, initialVisibleCount.value + index)
|
|
77
|
+
}, null, 8, ["description", "label"]);
|
|
78
|
+
}), 128)) : createCommentVNode("", true),
|
|
79
|
+
shouldUseLongListDisplay.value ? (openBlock(), createElementBlock("li", _hoisted_3, [
|
|
80
|
+
createVNode(unref(ScalarButton), {
|
|
81
|
+
class: "enum-toggle-button my-2 flex h-fit gap-1 rounded-full border py-1.5 pr-2.5 pl-2 leading-none",
|
|
82
|
+
variant: "ghost",
|
|
83
|
+
onClick: toggleExpanded
|
|
84
|
+
}, {
|
|
85
|
+
default: withCtx(() => [
|
|
86
|
+
createVNode(unref(ScalarIconPlus), {
|
|
87
|
+
class: normalizeClass({ "rotate-45": isExpanded.value }),
|
|
88
|
+
weight: "bold"
|
|
89
|
+
}, null, 8, ["class"]),
|
|
90
|
+
createTextVNode(" " + toDisplayString(isExpanded.value ? "Hide values" : "Show all values"), 1)
|
|
91
|
+
]),
|
|
92
|
+
_: 1
|
|
93
|
+
})
|
|
94
|
+
])) : createCommentVNode("", true)
|
|
95
|
+
])
|
|
96
|
+
])) : createCommentVNode("", true);
|
|
37
97
|
};
|
|
38
|
-
return (o, i) => n.value.length > 0 ? (a(), c("div", $, [
|
|
39
|
-
C("ul", w, [
|
|
40
|
-
(a(!0), c(p, null, g(b.value, (e, l) => (a(), h(E, {
|
|
41
|
-
key: String(e),
|
|
42
|
-
description: d(e, l),
|
|
43
|
-
label: f(e, l)
|
|
44
|
-
}, null, 8, ["description", "label"]))), 128)),
|
|
45
|
-
m.value && r.value ? (a(!0), c(p, { key: 0 }, g(k.value, (e, l) => (a(), h(E, {
|
|
46
|
-
key: String(e),
|
|
47
|
-
description: d(e, s.value + l),
|
|
48
|
-
label: f(e, s.value + l)
|
|
49
|
-
}, null, 8, ["description", "label"]))), 128)) : v("", !0),
|
|
50
|
-
m.value ? (a(), c("li", R, [
|
|
51
|
-
y(S(T), {
|
|
52
|
-
class: "enum-toggle-button my-2 flex h-fit gap-1 rounded-full border py-1.5 pr-2.5 pl-2 leading-none",
|
|
53
|
-
variant: "ghost",
|
|
54
|
-
onClick: x
|
|
55
|
-
}, {
|
|
56
|
-
default: L(() => [
|
|
57
|
-
y(S(H), {
|
|
58
|
-
class: D({ "rotate-45": r.value }),
|
|
59
|
-
weight: "bold"
|
|
60
|
-
}, null, 8, ["class"]),
|
|
61
|
-
V(" " + B(r.value ? "Hide values" : "Show all values"), 1)
|
|
62
|
-
]),
|
|
63
|
-
_: 1
|
|
64
|
-
})
|
|
65
|
-
])) : v("", !0)
|
|
66
|
-
])
|
|
67
|
-
])) : v("", !0);
|
|
68
98
|
}
|
|
69
99
|
});
|
|
70
100
|
export {
|
|
71
|
-
|
|
101
|
+
_sfc_main as default
|
|
72
102
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _sfc_main from "./SchemaHeading.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const SchemaHeading = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-0759195c"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
SchemaHeading as default
|
|
7
7
|
};
|
|
@@ -1,40 +1,58 @@
|
|
|
1
|
-
import { defineComponent
|
|
2
|
-
import { isArraySchema
|
|
3
|
-
import { isTypeObject
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent, computed, createElementBlock, createCommentVNode, openBlock, createElementVNode, unref, Fragment, createTextVNode, toDisplayString } from "vue";
|
|
2
|
+
import { isArraySchema } from "@scalar/workspace-store/schemas/v3.1/strict/type-guards";
|
|
3
|
+
import { isTypeObject } from "./helpers/is-type-object.js";
|
|
4
|
+
const _hoisted_1 = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "schema-type"
|
|
7
|
-
}
|
|
7
|
+
};
|
|
8
|
+
const _hoisted_2 = ["title"];
|
|
9
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
10
|
__name: "SchemaHeading",
|
|
9
11
|
props: {
|
|
10
12
|
value: {},
|
|
11
13
|
name: {}
|
|
12
14
|
},
|
|
13
|
-
setup(
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
15
|
+
setup(__props) {
|
|
16
|
+
const failsafeType = computed(() => {
|
|
17
|
+
if ("type" in __props.value) {
|
|
18
|
+
return __props.value.type;
|
|
19
|
+
}
|
|
20
|
+
if (__props.value.enum) {
|
|
21
|
+
return "enum";
|
|
22
|
+
}
|
|
23
|
+
if (isArraySchema(__props.value) && __props.value.items) {
|
|
24
|
+
return "array";
|
|
25
|
+
}
|
|
26
|
+
if (isTypeObject(__props.value) && (__props.value.properties || __props.value.additionalProperties)) {
|
|
27
|
+
return "object";
|
|
28
|
+
}
|
|
29
|
+
return "unknown";
|
|
30
|
+
});
|
|
31
|
+
return (_ctx, _cache) => {
|
|
32
|
+
return typeof _ctx.value === "object" ? (openBlock(), createElementBlock("span", _hoisted_1, [
|
|
33
|
+
createElementVNode("span", {
|
|
34
|
+
class: "schema-type-icon",
|
|
35
|
+
title: "type" in _ctx.value && typeof _ctx.value.type === "string" ? _ctx.value.type : "type" in _ctx.value && Array.isArray(_ctx.value.type) ? _ctx.value.type.join(" | ") : "unknown type"
|
|
36
|
+
}, [
|
|
37
|
+
unref(isTypeObject)(_ctx.value) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
38
|
+
createTextVNode(" {} ")
|
|
39
|
+
], 64)) : createCommentVNode("", true),
|
|
40
|
+
unref(isArraySchema)(_ctx.value) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
41
|
+
createTextVNode(" [] ")
|
|
42
|
+
], 64)) : createCommentVNode("", true),
|
|
43
|
+
_ctx.value.enum ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
44
|
+
createTextVNode(" enum ")
|
|
45
|
+
], 64)) : createCommentVNode("", true)
|
|
46
|
+
], 8, _hoisted_2),
|
|
47
|
+
_ctx.name ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
48
|
+
createTextVNode(toDisplayString(_ctx.name), 1)
|
|
49
|
+
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
50
|
+
createTextVNode(toDisplayString(failsafeType.value), 1)
|
|
51
|
+
], 64))
|
|
52
|
+
])) : createCommentVNode("", true);
|
|
53
|
+
};
|
|
36
54
|
}
|
|
37
55
|
});
|
|
38
56
|
export {
|
|
39
|
-
|
|
57
|
+
_sfc_main as default
|
|
40
58
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
1
2
|
import type { DiscriminatorObject, SchemaObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
2
3
|
import type { SchemaOptions } from '../../../components/Content/Schema/types';
|
|
3
4
|
type __VLS_Props = {
|
|
@@ -8,6 +9,7 @@ type __VLS_Props = {
|
|
|
8
9
|
level?: number;
|
|
9
10
|
hideModelNames?: boolean;
|
|
10
11
|
breadcrumb?: string[];
|
|
12
|
+
eventBus: WorkspaceEventBus | null;
|
|
11
13
|
options: SchemaOptions;
|
|
12
14
|
};
|
|
13
15
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaObjectProperties.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaObjectProperties.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SchemaObjectProperties.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaObjectProperties.vue"],"names":[],"mappings":"AA+IA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAEvE,OAAO,KAAK,EACV,mBAAmB,EACnB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAKrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAA;AAItE,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,YAAY,CAAA;IACpB,aAAa,CAAC,EAAE,mBAAmB,CAAA;IACnC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAClC,OAAO,EAAE,aAAa,CAAA;CACvB,CAAC;;AAiMF,wBAMG"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent
|
|
2
|
-
import { getResolvedRef
|
|
3
|
-
import { isTypeObject
|
|
4
|
-
import { sortPropertyNames
|
|
5
|
-
import
|
|
6
|
-
const
|
|
1
|
+
import { defineComponent, computed, createElementBlock, openBlock, Fragment, createCommentVNode, createBlock, unref, renderList } from "vue";
|
|
2
|
+
import { getResolvedRef } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
3
|
+
import { isTypeObject } from "./helpers/is-type-object.js";
|
|
4
|
+
import { sortPropertyNames } from "./helpers/sort-property-names.js";
|
|
5
|
+
import SchemaProperty from "./SchemaProperty.vue.js";
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
7
|
__name: "SchemaObjectProperties",
|
|
8
8
|
props: {
|
|
9
9
|
schema: {},
|
|
@@ -13,62 +13,82 @@ const B = /* @__PURE__ */ N({
|
|
|
13
13
|
level: {},
|
|
14
14
|
hideModelNames: { type: Boolean },
|
|
15
15
|
breadcrumb: {},
|
|
16
|
+
eventBus: {},
|
|
16
17
|
options: {}
|
|
17
18
|
},
|
|
18
|
-
setup(
|
|
19
|
-
const
|
|
20
|
-
() =>
|
|
21
|
-
)
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
19
|
+
setup(__props) {
|
|
20
|
+
const sortedProperties = computed(
|
|
21
|
+
() => sortPropertyNames(__props.schema, __props.discriminator, __props.options)
|
|
22
|
+
);
|
|
23
|
+
const getAdditionalPropertiesName = (_additionalProperties) => {
|
|
24
|
+
const additionalProperties = getResolvedRef(_additionalProperties);
|
|
25
|
+
if (typeof additionalProperties === "object" && typeof additionalProperties["x-additionalPropertiesName"] === "string" && additionalProperties["x-additionalPropertiesName"].trim().length > 0) {
|
|
26
|
+
return `${additionalProperties["x-additionalPropertiesName"].trim()}`;
|
|
27
|
+
}
|
|
28
|
+
return "propertyName";
|
|
29
|
+
};
|
|
30
|
+
const getAdditionalPropertiesValue = (additionalProperties) => {
|
|
31
|
+
if (additionalProperties === true || typeof additionalProperties === "object" && Object.keys(additionalProperties).length === 0 || typeof additionalProperties !== "object" || !("type" in additionalProperties)) {
|
|
32
|
+
return {
|
|
33
|
+
// @ts-expect-error - ask hans
|
|
34
|
+
type: "anything",
|
|
35
|
+
...typeof additionalProperties === "object" ? additionalProperties : {}
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
return additionalProperties;
|
|
39
|
+
};
|
|
40
|
+
return (_ctx, _cache) => {
|
|
41
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
42
|
+
unref(isTypeObject)(_ctx.schema) && _ctx.schema.properties ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(sortedProperties.value, (property) => {
|
|
43
|
+
return openBlock(), createBlock(SchemaProperty, {
|
|
44
|
+
key: property,
|
|
45
|
+
breadcrumb: _ctx.breadcrumb,
|
|
46
|
+
compact: _ctx.compact,
|
|
47
|
+
discriminator: _ctx.discriminator,
|
|
48
|
+
eventBus: _ctx.eventBus,
|
|
49
|
+
hideHeading: _ctx.hideHeading,
|
|
50
|
+
hideModelNames: _ctx.hideModelNames,
|
|
51
|
+
level: _ctx.level,
|
|
52
|
+
name: property,
|
|
53
|
+
options: _ctx.options,
|
|
54
|
+
required: _ctx.schema.required?.includes(property),
|
|
55
|
+
schema: unref(getResolvedRef)(_ctx.schema.properties[property])
|
|
56
|
+
}, null, 8, ["breadcrumb", "compact", "discriminator", "eventBus", "hideHeading", "hideModelNames", "level", "name", "options", "required", "schema"]);
|
|
57
|
+
}), 128)) : createCommentVNode("", true),
|
|
58
|
+
unref(isTypeObject)(_ctx.schema) && _ctx.schema.patternProperties ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(Object.entries(_ctx.schema.patternProperties), ([key, property]) => {
|
|
59
|
+
return openBlock(), createBlock(SchemaProperty, {
|
|
60
|
+
key,
|
|
61
|
+
breadcrumb: _ctx.breadcrumb,
|
|
62
|
+
compact: _ctx.compact,
|
|
63
|
+
discriminator: _ctx.discriminator,
|
|
64
|
+
eventBus: _ctx.eventBus,
|
|
65
|
+
hideHeading: _ctx.hideHeading,
|
|
66
|
+
hideModelNames: _ctx.hideModelNames,
|
|
67
|
+
level: _ctx.level,
|
|
68
|
+
name: key,
|
|
69
|
+
options: _ctx.options,
|
|
70
|
+
schema: unref(getResolvedRef)(property)
|
|
71
|
+
}, null, 8, ["breadcrumb", "compact", "discriminator", "eventBus", "hideHeading", "hideModelNames", "level", "name", "options", "schema"]);
|
|
72
|
+
}), 128)) : createCommentVNode("", true),
|
|
73
|
+
unref(isTypeObject)(_ctx.schema) && _ctx.schema.additionalProperties ? (openBlock(), createBlock(SchemaProperty, {
|
|
74
|
+
key: 2,
|
|
75
|
+
breadcrumb: _ctx.breadcrumb,
|
|
76
|
+
compact: _ctx.compact,
|
|
77
|
+
discriminator: _ctx.discriminator,
|
|
78
|
+
eventBus: _ctx.eventBus,
|
|
79
|
+
hideHeading: _ctx.hideHeading,
|
|
80
|
+
hideModelNames: _ctx.hideModelNames,
|
|
81
|
+
level: _ctx.level,
|
|
82
|
+
name: getAdditionalPropertiesName(_ctx.schema.additionalProperties),
|
|
83
|
+
noncollapsible: "",
|
|
84
|
+
options: _ctx.options,
|
|
85
|
+
schema: getAdditionalPropertiesValue(_ctx.schema.additionalProperties),
|
|
86
|
+
variant: "additionalProperties"
|
|
87
|
+
}, null, 8, ["breadcrumb", "compact", "discriminator", "eventBus", "hideHeading", "hideModelNames", "level", "name", "options", "schema"])) : createCommentVNode("", true)
|
|
88
|
+
], 64);
|
|
89
|
+
};
|
|
70
90
|
}
|
|
71
91
|
});
|
|
72
92
|
export {
|
|
73
|
-
|
|
93
|
+
_sfc_main as default
|
|
74
94
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
1
2
|
import type { DiscriminatorObject, SchemaObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
2
3
|
import { type Component } from 'vue';
|
|
3
4
|
import type { SchemaOptions } from '../../../components/Content/Schema/types';
|
|
@@ -21,11 +22,12 @@ type __VLS_Props = {
|
|
|
21
22
|
hideHeading?: boolean;
|
|
22
23
|
variant?: 'additionalProperties' | 'patternProperties';
|
|
23
24
|
breadcrumb?: string[];
|
|
25
|
+
eventBus: WorkspaceEventBus | null;
|
|
24
26
|
options: SchemaOptions;
|
|
25
27
|
};
|
|
26
28
|
declare const _default_1: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
27
|
-
level: number;
|
|
28
29
|
required: boolean;
|
|
30
|
+
level: number;
|
|
29
31
|
compact: boolean;
|
|
30
32
|
hideModelNames: boolean;
|
|
31
33
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.vue"],"names":[],"mappings":"AAsjBA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAEvE,OAAO,KAAK,EACV,mBAAmB,EACnB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAErE,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,KAAK,CAAA;AAI9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAA;AAUtE;;;;;GAKG;AAEH,KAAK,WAAW,GAAG;IACf,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACvB,MAAM,EAAE,YAAY,GAAG,SAAS,CAAA;IAChC,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,aAAa,CAAC,EAAE,mBAAmB,CAAA;IACnC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,OAAO,CAAC,EAAE,sBAAsB,GAAG,mBAAmB,CAAA;IACtD,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAClC,OAAO,EAAE,aAAa,CAAA;CACvB,CAAC;;cAVW,OAAO;WAFV,MAAM;aAGJ,OAAO;oBAGA,OAAO;;AAmkB5B,0BAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _sfc_main from "./SchemaProperty.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const SchemaProperty = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f7140aab"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
SchemaProperty as default
|
|
7
7
|
};
|