@scalar/api-reference 1.48.8 → 1.49.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +40 -0
- package/dist/AgentScalarChatInterface-MUbtSqMw.js +41 -0
- package/dist/AgentScalarChatInterface-MUbtSqMw.js.map +1 -0
- package/dist/ExternalDocs-phu7GxpZ.js +272 -0
- package/dist/ExternalDocs-phu7GxpZ.js.map +1 -0
- package/dist/MobileHeader-B71jYJdT.js +1373 -0
- package/dist/MobileHeader-B71jYJdT.js.map +1 -0
- package/dist/Operation-CixLVfKd.js +3827 -0
- package/dist/Operation-CixLVfKd.js.map +1 -0
- package/dist/SearchButton-xzhIpMCZ.js +621 -0
- package/dist/SearchButton-xzhIpMCZ.js.map +1 -0
- package/dist/ServerSelector-5y29y2BJ.js +852 -0
- package/dist/ServerSelector-5y29y2BJ.js.map +1 -0
- package/dist/blocks/index.js +3 -10
- package/dist/blocks/scalar-client-selector-block/index.d.ts +1 -1
- package/dist/blocks/scalar-info-block/index.d.ts +2 -2
- package/dist/blocks/scalar-server-selector-block/index.d.ts +1 -1
- package/dist/browser/standalone.js +40748 -34662
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/AgentScalar/index.d.ts +3 -3
- package/dist/components/Anchor/index.d.ts +2 -2
- package/dist/components/ApiReference.vue.d.ts.map +1 -1
- package/dist/components/Badge/index.d.ts +1 -1
- package/dist/components/Content/Auth/index.d.ts +1 -1
- package/dist/components/Content/Content.vue.d.ts +2 -4
- package/dist/components/Content/Content.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/ModelTag.vue.d.ts +3 -3
- package/dist/components/Content/Models/ModelTag.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/index.d.ts +2 -2
- package/dist/components/Content/Operations/TraversedEntry.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/Schema.vue.d.ts +1 -1
- package/dist/components/Content/Schema/SchemaComposition.vue.d.ts +2 -2
- package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/get-compositions-to-render.d.ts +1 -1
- package/dist/components/Content/Schema/index.d.ts +4 -4
- package/dist/components/Content/Tags/components/ModernLayout.vue.d.ts +2 -2
- package/dist/components/Content/Tags/components/ModernLayout.vue.d.ts.map +1 -1
- package/dist/components/Content/Tags/index.d.ts +1 -1
- package/dist/components/Content/index.d.ts +2 -2
- package/dist/components/HttpMethod/index.d.ts +1 -1
- package/dist/components/Lazy/Lazy.vue.d.ts +3 -0
- package/dist/components/Lazy/Lazy.vue.d.ts.map +1 -1
- package/dist/components/LinkList/index.d.ts +1 -1
- package/dist/components/OperationsList/index.d.ts +1 -1
- package/dist/components/RenderPlugins/index.d.ts +1 -1
- package/dist/components/Section/index.d.ts +10 -10
- package/dist/components/SectionFlare/index.d.ts +1 -1
- package/dist/components/index.d.ts +5 -5
- package/dist/components/index.js +102 -42
- package/dist/components/index.js.map +1 -0
- package/dist/features/Operation/components/OperationParameters.vue.d.ts +1 -1
- package/dist/features/Operation/components/OperationResponses.vue.d.ts +1 -1
- package/dist/features/Operation/components/ParameterList.vue.d.ts +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts +1 -1
- package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +1 -1
- package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts +1 -1
- package/dist/features/Operation/index.d.ts +1 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +1 -1
- package/dist/features/Search/components/SearchResult.vue.d.ts +1 -1
- package/dist/features/Search/helpers/create-fuse-instance.d.ts +1 -1
- package/dist/features/Search/helpers/create-search-index.d.ts +1 -1
- package/dist/features/Search/index.d.ts +2 -2
- package/dist/features/Search/types.d.ts +1 -1
- package/dist/features/ask-agent-button/AskAgentButton.vue.d.ts.map +1 -1
- package/dist/features/developer-tools/index.d.ts +1 -1
- package/dist/features/example-responses/index.d.ts +1 -1
- package/dist/features/external-docs/index.d.ts +1 -1
- package/dist/features/index.d.ts +2 -2
- package/dist/features/index.js +4 -10
- package/dist/features/info-object/index.d.ts +3 -3
- package/dist/features/specification-extension/index.d.ts +2 -2
- package/dist/features/test-request-button/index.d.ts +1 -1
- package/dist/features/x-badges/index.d.ts +1 -1
- package/dist/helpers/download.d.ts +1 -1
- package/dist/helpers/download.d.ts.map +1 -1
- package/dist/helpers/id-routing.d.ts +4 -0
- package/dist/helpers/id-routing.d.ts.map +1 -1
- package/dist/helpers/index.d.ts +8 -8
- package/dist/helpers/index.js +3 -24
- package/dist/helpers/lazy-bus.d.ts +19 -19
- package/dist/helpers/lazy-bus.d.ts.map +1 -1
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/index.js +3 -8
- package/dist/index.d.ts +5 -5
- package/dist/index.js +7 -14
- package/dist/lazy-bus-CV8Ox5hD.js +333 -0
- package/dist/lazy-bus-CV8Ox5hD.js.map +1 -0
- package/dist/normalize-configurations-DcVpOEjD.js +232 -0
- package/dist/normalize-configurations-DcVpOEjD.js.map +1 -0
- package/dist/plugins/hooks/usePluginManager.d.ts +1 -1
- package/dist/plugins/index.d.ts +3 -3
- package/dist/plugins/index.js +2 -9
- package/dist/plugins-4EyiUD_A.js +80 -0
- package/dist/plugins-4EyiUD_A.js.map +1 -0
- package/dist/src-DqcYVBWI.js +1686 -0
- package/dist/src-DqcYVBWI.js.map +1 -0
- package/dist/ssr.d.ts +2 -2
- package/dist/ssr.js +7 -14
- package/dist/storage--3JuzjCI.js +42 -0
- package/dist/storage--3JuzjCI.js.map +1 -0
- package/dist/style.css +6840 -7397
- package/dist/urls-gPTXGgbj.js +17 -0
- package/dist/urls-gPTXGgbj.js.map +1 -0
- package/dist/use-agent-Bnm1de0n.js +60 -0
- package/dist/use-agent-Bnm1de0n.js.map +1 -0
- package/dist/use-intersection-8QqPi2O-.js +24 -0
- package/dist/use-intersection-8QqPi2O-.js.map +1 -0
- package/package.json +25 -27
- package/dist/_virtual/_plugin-vue_export-helper.js +0 -10
- package/dist/blocks/scalar-client-selector-block/components/ClientDropdown.vue.js +0 -7
- package/dist/blocks/scalar-client-selector-block/components/ClientDropdown.vue2.js +0 -123
- package/dist/blocks/scalar-client-selector-block/components/ClientSelector.vue.js +0 -7
- package/dist/blocks/scalar-client-selector-block/components/ClientSelector.vue2.js +0 -142
- package/dist/blocks/scalar-client-selector-block/helpers/featured-clients.js +0 -24
- package/dist/blocks/scalar-info-block/components/DownloadLink.vue.js +0 -7
- package/dist/blocks/scalar-info-block/components/DownloadLink.vue2.js +0 -63
- package/dist/blocks/scalar-info-block/components/InfoBlock.vue.js +0 -59
- package/dist/blocks/scalar-info-block/components/InfoBlock.vue2.js +0 -4
- package/dist/blocks/scalar-info-block/components/InfoDescription.vue.js +0 -7
- package/dist/blocks/scalar-info-block/components/InfoDescription.vue2.js +0 -70
- package/dist/blocks/scalar-info-block/components/InfoLinks.vue.js +0 -38
- package/dist/blocks/scalar-info-block/components/InfoLinks.vue2.js +0 -4
- package/dist/blocks/scalar-info-block/components/InfoMarkdownSection.vue.js +0 -38
- package/dist/blocks/scalar-info-block/components/InfoMarkdownSection.vue2.js +0 -4
- package/dist/blocks/scalar-info-block/components/InfoVersion.vue.js +0 -28
- package/dist/blocks/scalar-info-block/components/InfoVersion.vue2.js +0 -4
- package/dist/blocks/scalar-info-block/components/IntroductionCard.vue.js +0 -7
- package/dist/blocks/scalar-info-block/components/IntroductionCard.vue2.js +0 -19
- package/dist/blocks/scalar-info-block/components/IntroductionCardItem.vue.js +0 -14
- package/dist/blocks/scalar-info-block/components/IntroductionLayout.vue.js +0 -7
- package/dist/blocks/scalar-info-block/components/IntroductionLayout.vue2.js +0 -112
- package/dist/blocks/scalar-info-block/components/OpenApiVersion.vue.js +0 -21
- package/dist/blocks/scalar-info-block/components/OpenApiVersion.vue2.js +0 -4
- package/dist/blocks/scalar-server-selector-block/components/Selector.vue.js +0 -76
- package/dist/blocks/scalar-server-selector-block/components/Selector.vue2.js +0 -4
- package/dist/blocks/scalar-server-selector-block/components/ServerSelector.vue.js +0 -72
- package/dist/blocks/scalar-server-selector-block/components/ServerSelector.vue2.js +0 -4
- package/dist/components/AgentScalar/AgentScalarButton.vue.js +0 -22
- package/dist/components/AgentScalar/AgentScalarButton.vue2.js +0 -4
- package/dist/components/AgentScalar/AgentScalarChatInterface.vue.js +0 -4
- package/dist/components/AgentScalar/AgentScalarChatInterface.vue2.js +0 -29
- package/dist/components/AgentScalar/AgentScalarDrawer.vue.js +0 -7
- package/dist/components/AgentScalar/AgentScalarDrawer.vue2.js +0 -78
- package/dist/components/AgentScalar/OpenMCPButton.vue.js +0 -7
- package/dist/components/AgentScalar/OpenMCPButton.vue2.js +0 -191
- package/dist/components/Anchor/Anchor.vue.js +0 -51
- package/dist/components/Anchor/Anchor.vue2.js +0 -4
- package/dist/components/Anchor/WithBreadcrumb.vue.js +0 -41
- package/dist/components/Anchor/WithBreadcrumb.vue2.js +0 -4
- package/dist/components/ApiReference.vue.js +0 -10
- package/dist/components/ApiReference.vue2.js +0 -744
- package/dist/components/Badge/Badge.vue.js +0 -7
- package/dist/components/Badge/Badge.vue2.js +0 -26
- package/dist/components/ClassicHeader.vue.js +0 -21
- package/dist/components/Content/Auth/Auth.vue.js +0 -77
- package/dist/components/Content/Auth/Auth.vue2.js +0 -4
- package/dist/components/Content/Auth/helpers/get-default-security.js +0 -55
- package/dist/components/Content/Content.vue.js +0 -177
- package/dist/components/Content/Content.vue3.js +0 -5
- package/dist/components/Content/Models/Model.vue.js +0 -47
- package/dist/components/Content/Models/Model.vue2.js +0 -4
- package/dist/components/Content/Models/ModelTag.vue.js +0 -82
- package/dist/components/Content/Models/ModelTag.vue2.js +0 -4
- package/dist/components/Content/Models/components/ClassicLayout.vue.js +0 -7
- package/dist/components/Content/Models/components/ClassicLayout.vue2.js +0 -78
- package/dist/components/Content/Models/components/ModernLayout.vue.js +0 -61
- package/dist/components/Content/Models/components/ModernLayout.vue2.js +0 -4
- package/dist/components/Content/Operations/TraversedEntry.vue.js +0 -145
- package/dist/components/Content/Operations/TraversedEntry.vue2.js +0 -4
- package/dist/components/Content/Schema/RenderString.vue.js +0 -27
- package/dist/components/Content/Schema/RenderString.vue2.js +0 -4
- package/dist/components/Content/Schema/Schema.vue.js +0 -7
- package/dist/components/Content/Schema/Schema.vue2.js +0 -193
- package/dist/components/Content/Schema/SchemaComposition.vue.js +0 -120
- package/dist/components/Content/Schema/SchemaComposition.vue2.js +0 -4
- package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.js +0 -7
- package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue2.js +0 -36
- package/dist/components/Content/Schema/SchemaEnums.vue.js +0 -7
- package/dist/components/Content/Schema/SchemaEnums.vue2.js +0 -112
- package/dist/components/Content/Schema/SchemaHeading.vue.js +0 -7
- package/dist/components/Content/Schema/SchemaHeading.vue2.js +0 -61
- package/dist/components/Content/Schema/SchemaObjectExampleCodeBlock.vue.js +0 -66
- package/dist/components/Content/Schema/SchemaObjectExampleCodeBlock.vue2.js +0 -4
- package/dist/components/Content/Schema/SchemaObjectProperties.vue.js +0 -120
- package/dist/components/Content/Schema/SchemaObjectProperties.vue2.js +0 -4
- package/dist/components/Content/Schema/SchemaProperty.vue.js +0 -7
- package/dist/components/Content/Schema/SchemaProperty.vue2.js +0 -228
- package/dist/components/Content/Schema/SchemaPropertyDefault.vue.js +0 -7
- package/dist/components/Content/Schema/SchemaPropertyDefault.vue2.js +0 -45
- package/dist/components/Content/Schema/SchemaPropertyDetail.vue.js +0 -7
- package/dist/components/Content/Schema/SchemaPropertyDetail.vue2.js +0 -40
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue.js +0 -7
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue2.js +0 -80
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +0 -7
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +0 -318
- package/dist/components/Content/Schema/helpers/format-example.js +0 -41
- package/dist/components/Content/Schema/helpers/format-value.js +0 -35
- package/dist/components/Content/Schema/helpers/get-compositions-to-render.js +0 -31
- package/dist/components/Content/Schema/helpers/get-enum-values.js +0 -20
- package/dist/components/Content/Schema/helpers/get-property-description.js +0 -34
- package/dist/components/Content/Schema/helpers/get-ref-name.js +0 -14
- package/dist/components/Content/Schema/helpers/get-schema-type.js +0 -47
- package/dist/components/Content/Schema/helpers/has-complex-array-items.js +0 -48
- package/dist/components/Content/Schema/helpers/is-empty-schema-object.js +0 -13
- package/dist/components/Content/Schema/helpers/is-type-object.js +0 -27
- package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +0 -215
- package/dist/components/Content/Schema/helpers/optimize-value-for-display.js +0 -64
- package/dist/components/Content/Schema/helpers/schema-composition.js +0 -4
- package/dist/components/Content/Schema/helpers/schema-name.js +0 -24
- package/dist/components/Content/Schema/helpers/should-display-description.js +0 -12
- package/dist/components/Content/Schema/helpers/should-display-heading.js +0 -12
- package/dist/components/Content/Schema/helpers/should-render-array-item-composition.js +0 -15
- package/dist/components/Content/Schema/helpers/sort-property-names.js +0 -71
- package/dist/components/Content/Tags/Tag.vue.js +0 -46
- package/dist/components/Content/Tags/Tag.vue2.js +0 -4
- package/dist/components/Content/Tags/components/ClassicLayout.vue.js +0 -7
- package/dist/components/Content/Tags/components/ClassicLayout.vue2.js +0 -57
- package/dist/components/Content/Tags/components/ModernLayout.vue.js +0 -7
- package/dist/components/Content/Tags/components/ModernLayout.vue2.js +0 -64
- package/dist/components/Content/Tags/components/TagSection.vue.js +0 -100
- package/dist/components/Content/Tags/components/TagSection.vue2.js +0 -4
- package/dist/components/GettingStarted.vue.js +0 -7
- package/dist/components/GettingStarted.vue2.js +0 -82
- package/dist/components/HttpMethod/HttpMethod.vue.js +0 -34
- package/dist/components/HttpMethod/HttpMethod.vue2.js +0 -4
- package/dist/components/IntersectionObserver.vue.js +0 -55
- package/dist/components/IntersectionObserver.vue2.js +0 -4
- package/dist/components/Lazy/Lazy.vue.js +0 -17
- package/dist/components/Lazy/Lazy.vue2.js +0 -4
- package/dist/components/LinkList/LinkList.vue.js +0 -7
- package/dist/components/LinkList/LinkList.vue2.js +0 -48
- package/dist/components/LoadingSkeleton.vue.js +0 -7
- package/dist/components/LoadingSkeleton.vue2.js +0 -20
- package/dist/components/MobileHeader.vue.js +0 -62
- package/dist/components/MobileHeader.vue2.js +0 -4
- package/dist/components/OperationPath.vue.js +0 -7
- package/dist/components/OperationPath.vue2.js +0 -30
- package/dist/components/OperationsList/OperationsList.vue.js +0 -7
- package/dist/components/OperationsList/OperationsList.vue2.js +0 -61
- package/dist/components/OperationsList/OperationsListItem.vue.js +0 -7
- package/dist/components/OperationsList/OperationsListItem.vue2.js +0 -68
- package/dist/components/RenderPlugins/RenderPlugins.vue.js +0 -43
- package/dist/components/RenderPlugins/RenderPlugins.vue2.js +0 -4
- package/dist/components/ScreenReader.vue.js +0 -7
- package/dist/components/ScreenReader.vue2.js +0 -21
- package/dist/components/Section/CompactSection.vue.js +0 -7
- package/dist/components/Section/CompactSection.vue2.js +0 -60
- package/dist/components/Section/Section.vue.js +0 -7
- package/dist/components/Section/Section.vue2.js +0 -23
- package/dist/components/Section/SectionAccordion.vue.js +0 -7
- package/dist/components/Section/SectionAccordion.vue2.js +0 -76
- package/dist/components/Section/SectionColumn.vue.js +0 -14
- package/dist/components/Section/SectionColumns.vue.js +0 -14
- package/dist/components/Section/SectionContainer.vue.js +0 -7
- package/dist/components/Section/SectionContainer.vue2.js +0 -21
- package/dist/components/Section/SectionContainerAccordion.vue.js +0 -7
- package/dist/components/Section/SectionContainerAccordion.vue2.js +0 -54
- package/dist/components/Section/SectionContent.vue.js +0 -7
- package/dist/components/Section/SectionContent.vue2.js +0 -22
- package/dist/components/Section/SectionHeader.vue.js +0 -7
- package/dist/components/Section/SectionHeader.vue2.js +0 -26
- package/dist/components/Section/SectionHeaderTag.vue.js +0 -7
- package/dist/components/Section/SectionHeaderTag.vue2.js +0 -20
- package/dist/components/SectionFlare/SectionFlare.vue.js +0 -14
- package/dist/components/ShowMoreButton.vue.js +0 -7
- package/dist/components/ShowMoreButton.vue2.js +0 -23
- package/dist/consts/urls.js +0 -16
- package/dist/features/Operation/Operation.vue.js +0 -100
- package/dist/features/Operation/Operation.vue2.js +0 -4
- package/dist/features/Operation/components/ContentTypeSelect.vue.js +0 -88
- package/dist/features/Operation/components/ContentTypeSelect.vue2.js +0 -4
- package/dist/features/Operation/components/Header.vue.js +0 -33
- package/dist/features/Operation/components/Header.vue2.js +0 -4
- package/dist/features/Operation/components/Headers.vue.js +0 -7
- package/dist/features/Operation/components/Headers.vue2.js +0 -71
- package/dist/features/Operation/components/OperationParameters.vue.js +0 -92
- package/dist/features/Operation/components/OperationParameters.vue2.js +0 -4
- package/dist/features/Operation/components/OperationResponses.vue.js +0 -44
- package/dist/features/Operation/components/OperationResponses.vue2.js +0 -4
- package/dist/features/Operation/components/ParameterList.vue.js +0 -50
- package/dist/features/Operation/components/ParameterList.vue2.js +0 -4
- package/dist/features/Operation/components/ParameterListItem.vue.js +0 -7
- package/dist/features/Operation/components/ParameterListItem.vue2.js +0 -163
- package/dist/features/Operation/components/RequestBody.vue.js +0 -7
- package/dist/features/Operation/components/RequestBody.vue2.js +0 -164
- package/dist/features/Operation/components/callbacks/Callback.vue.js +0 -7
- package/dist/features/Operation/components/callbacks/Callback.vue2.js +0 -60
- package/dist/features/Operation/components/callbacks/Callbacks.vue.js +0 -63
- package/dist/features/Operation/components/callbacks/Callbacks.vue2.js +0 -4
- package/dist/features/Operation/helpers/filter-selected-security.js +0 -28
- package/dist/features/Operation/helpers/get-first-server.js +0 -25
- package/dist/features/Operation/layouts/ClassicLayout.vue.js +0 -7
- package/dist/features/Operation/layouts/ClassicLayout.vue2.js +0 -243
- package/dist/features/Operation/layouts/ModernLayout.vue.js +0 -7
- package/dist/features/Operation/layouts/ModernLayout.vue2.js +0 -256
- package/dist/features/Search/components/SearchButton.vue.js +0 -88
- package/dist/features/Search/components/SearchButton.vue2.js +0 -4
- package/dist/features/Search/components/SearchModal.vue.js +0 -7
- package/dist/features/Search/components/SearchModal.vue2.js +0 -120
- package/dist/features/Search/components/SearchResult.vue.js +0 -84
- package/dist/features/Search/components/SearchResult.vue2.js +0 -4
- package/dist/features/Search/helpers/create-fuse-instance.js +0 -43
- package/dist/features/Search/helpers/create-search-index.js +0 -119
- package/dist/features/Search/hooks/useSearchIndex.js +0 -33
- package/dist/features/ask-agent-button/AskAgentButton.vue.js +0 -7
- package/dist/features/ask-agent-button/AskAgentButton.vue2.js +0 -47
- package/dist/features/developer-tools/DeveloperTools.vue.js +0 -60
- package/dist/features/developer-tools/DeveloperTools.vue2.js +0 -4
- package/dist/features/developer-tools/components/ApiReferenceToolbarBlurb.vue.js +0 -13
- package/dist/features/developer-tools/components/ApiReferenceToolbarConfigLayout.vue.js +0 -33
- package/dist/features/developer-tools/components/ApiReferenceToolbarConfigLayout.vue2.js +0 -4
- package/dist/features/developer-tools/components/ApiReferenceToolbarConfigLayoutOptions.vue.js +0 -138
- package/dist/features/developer-tools/components/ApiReferenceToolbarConfigLayoutOptions.vue2.js +0 -4
- package/dist/features/developer-tools/components/ApiReferenceToolbarConfigTheme.vue.js +0 -66
- package/dist/features/developer-tools/components/ApiReferenceToolbarConfigTheme.vue2.js +0 -4
- package/dist/features/developer-tools/components/ApiReferenceToolbarPopover.vue.js +0 -54
- package/dist/features/developer-tools/components/ApiReferenceToolbarPopover.vue2.js +0 -4
- package/dist/features/developer-tools/components/ApiReferenceToolbarRegisterButton.vue.js +0 -71
- package/dist/features/developer-tools/components/ApiReferenceToolbarRegisterButton.vue2.js +0 -4
- package/dist/features/developer-tools/components/ApiReferenceToolbarShareRegister.vue.js +0 -63
- package/dist/features/developer-tools/components/ApiReferenceToolbarShareRegister.vue2.js +0 -4
- package/dist/features/developer-tools/components/ApiReferenceToolbarShareTemporary.vue.js +0 -73
- package/dist/features/developer-tools/components/ApiReferenceToolbarShareTemporary.vue2.js +0 -4
- package/dist/features/developer-tools/components/ApiReferenceToolbarTitle.vue.js +0 -57
- package/dist/features/developer-tools/components/ApiReferenceToolbarTitle.vue2.js +0 -4
- package/dist/features/developer-tools/components/DeployApiReference.vue.js +0 -35
- package/dist/features/developer-tools/components/DeployApiReference.vue2.js +0 -4
- package/dist/features/developer-tools/components/ModifyConfiguration.vue.js +0 -103
- package/dist/features/developer-tools/components/ModifyConfiguration.vue2.js +0 -4
- package/dist/features/developer-tools/components/ShareApiReference.vue.js +0 -35
- package/dist/features/developer-tools/components/ShareApiReference.vue2.js +0 -4
- package/dist/features/example-responses/ExampleResponse.vue.js +0 -7
- package/dist/features/example-responses/ExampleResponse.vue2.js +0 -61
- package/dist/features/example-responses/ExampleResponseTab.vue.js +0 -7
- package/dist/features/example-responses/ExampleResponseTab.vue2.js +0 -25
- package/dist/features/example-responses/ExampleResponseTabList.vue.js +0 -7
- package/dist/features/example-responses/ExampleResponseTabList.vue2.js +0 -37
- package/dist/features/example-responses/ExampleResponses.vue.js +0 -7
- package/dist/features/example-responses/ExampleResponses.vue2.js +0 -181
- package/dist/features/example-responses/ExampleSchema.vue.js +0 -42
- package/dist/features/example-responses/ExampleSchema.vue2.js +0 -4
- package/dist/features/example-responses/has-response-content.js +0 -28
- package/dist/features/external-docs/ExternalDocs.vue.js +0 -42
- package/dist/features/external-docs/ExternalDocs.vue2.js +0 -4
- package/dist/features/info-object/Contact.vue.js +0 -46
- package/dist/features/info-object/Contact.vue2.js +0 -4
- package/dist/features/info-object/License.vue.js +0 -40
- package/dist/features/info-object/License.vue2.js +0 -4
- package/dist/features/info-object/TermsOfService.vue.js +0 -34
- package/dist/features/info-object/TermsOfService.vue2.js +0 -4
- package/dist/features/multiple-documents/DocumentSelector.vue.js +0 -54
- package/dist/features/multiple-documents/DocumentSelector.vue2.js +0 -4
- package/dist/features/specification-extension/SpecificationExtension.vue.js +0 -4
- package/dist/features/specification-extension/SpecificationExtension.vue2.js +0 -52
- package/dist/features/specification-extension/helpers.js +0 -9
- package/dist/features/test-request-button/TestRequestButton.vue.js +0 -7
- package/dist/features/test-request-button/TestRequestButton.vue2.js +0 -46
- package/dist/features/x-badges/XBadges.vue.js +0 -35
- package/dist/features/x-badges/XBadges.vue2.js +0 -4
- package/dist/helpers/color-mode.js +0 -9
- package/dist/helpers/download.js +0 -45
- package/dist/helpers/id-routing.js +0 -63
- package/dist/helpers/lazy-bus.js +0 -160
- package/dist/helpers/load-from-perssistance.js +0 -17
- package/dist/helpers/map-config-plugins.js +0 -27
- package/dist/helpers/map-config-to-workspace-store.js +0 -45
- package/dist/helpers/normalize-configurations.js +0 -69
- package/dist/helpers/openapi.js +0 -135
- package/dist/helpers/storage.js +0 -47
- package/dist/helpers/upload-temp-document.js +0 -24
- package/dist/hooks/use-agent.js +0 -42
- package/dist/hooks/use-intersection.js +0 -32
- package/dist/plugins/hooks/usePluginManager.js +0 -14
- package/dist/plugins/persistance-plugin.js +0 -48
- package/dist/plugins/plugin-manager.js +0 -39
- package/dist/standalone/lib/html-api.js +0 -81
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, createBlock, openBlock, withCtx, createVNode, renderSlot } from "vue";
|
|
2
|
-
import DownloadLink from "./DownloadLink.vue.js";
|
|
3
|
-
import IntroductionCard from "./IntroductionCard.vue.js";
|
|
4
|
-
import IntroductionLayout from "./IntroductionLayout.vue.js";
|
|
5
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
|
-
__name: "InfoBlock",
|
|
7
|
-
props: {
|
|
8
|
-
id: {},
|
|
9
|
-
oasVersion: {},
|
|
10
|
-
info: {},
|
|
11
|
-
externalDocs: {},
|
|
12
|
-
documentExtensions: {},
|
|
13
|
-
infoExtensions: {},
|
|
14
|
-
eventBus: {},
|
|
15
|
-
headingSlugGenerator: { type: Function },
|
|
16
|
-
layout: {},
|
|
17
|
-
documentDownloadType: { default: "both" },
|
|
18
|
-
documentUrl: {}
|
|
19
|
-
},
|
|
20
|
-
setup(__props) {
|
|
21
|
-
const introCardsSlot = computed(
|
|
22
|
-
() => __props.layout === "classic" ? "after" : "aside"
|
|
23
|
-
);
|
|
24
|
-
return (_ctx, _cache) => {
|
|
25
|
-
return openBlock(), createBlock(IntroductionLayout, {
|
|
26
|
-
id: __props.id,
|
|
27
|
-
documentExtensions: __props.documentExtensions,
|
|
28
|
-
eventBus: __props.eventBus,
|
|
29
|
-
externalDocs: __props.externalDocs,
|
|
30
|
-
headingSlugGenerator: __props.headingSlugGenerator,
|
|
31
|
-
info: __props.info,
|
|
32
|
-
infoExtensions: __props.infoExtensions,
|
|
33
|
-
oasVersion: __props.oasVersion
|
|
34
|
-
}, {
|
|
35
|
-
[introCardsSlot.value]: withCtx(() => [
|
|
36
|
-
createVNode(IntroductionCard, {
|
|
37
|
-
row: __props.layout === "classic"
|
|
38
|
-
}, {
|
|
39
|
-
default: withCtx(() => [
|
|
40
|
-
renderSlot(_ctx.$slots, "selectors")
|
|
41
|
-
]),
|
|
42
|
-
_: 3
|
|
43
|
-
}, 8, ["row"])
|
|
44
|
-
]),
|
|
45
|
-
"download-link": withCtx(() => [
|
|
46
|
-
createVNode(DownloadLink, {
|
|
47
|
-
documentDownloadType: __props.documentDownloadType,
|
|
48
|
-
documentUrl: __props.documentUrl,
|
|
49
|
-
eventBus: __props.eventBus
|
|
50
|
-
}, null, 8, ["documentDownloadType", "documentUrl", "eventBus"])
|
|
51
|
-
]),
|
|
52
|
-
_: 2
|
|
53
|
-
}, 1032, ["id", "documentExtensions", "eventBus", "externalDocs", "headingSlugGenerator", "info", "infoExtensions", "oasVersion"]);
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
});
|
|
57
|
-
export {
|
|
58
|
-
_sfc_main as default
|
|
59
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import _sfc_main from "./InfoDescription.vue2.js";
|
|
2
|
-
/* empty css */
|
|
3
|
-
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const InfoDescription = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5065bb4a"]]);
|
|
5
|
-
export {
|
|
6
|
-
InfoDescription as default
|
|
7
|
-
};
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, createElementBlock, createCommentVNode, openBlock, Fragment, renderList, createBlock } from "vue";
|
|
2
|
-
import { splitContent, getHeadings, isHeading, textFromNode } from "@scalar/code-highlight/markdown";
|
|
3
|
-
import GitHubSlugger from "github-slugger";
|
|
4
|
-
import _sfc_main$1 from "./InfoMarkdownSection.vue.js";
|
|
5
|
-
const _hoisted_1 = {
|
|
6
|
-
key: 0,
|
|
7
|
-
class: "introduction-description mt-6 flex flex-col"
|
|
8
|
-
};
|
|
9
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
|
-
__name: "InfoDescription",
|
|
11
|
-
props: {
|
|
12
|
-
eventBus: {},
|
|
13
|
-
headingSlugGenerator: { type: Function },
|
|
14
|
-
description: {}
|
|
15
|
-
},
|
|
16
|
-
setup(__props) {
|
|
17
|
-
const sections = computed(() => {
|
|
18
|
-
if (!__props.description) {
|
|
19
|
-
return [];
|
|
20
|
-
}
|
|
21
|
-
const slugger = new GitHubSlugger();
|
|
22
|
-
const items = splitContent(__props.description).map((markdown) => {
|
|
23
|
-
const headings = getHeadings(markdown);
|
|
24
|
-
const heading = headings[0];
|
|
25
|
-
const id = heading ? __props.headingSlugGenerator({
|
|
26
|
-
...heading,
|
|
27
|
-
slug: slugger.slug(heading.value)
|
|
28
|
-
}) : void 0;
|
|
29
|
-
return {
|
|
30
|
-
id,
|
|
31
|
-
content: markdown
|
|
32
|
-
};
|
|
33
|
-
});
|
|
34
|
-
return items;
|
|
35
|
-
});
|
|
36
|
-
const transformHeading = (node) => {
|
|
37
|
-
if (!isHeading(node)) {
|
|
38
|
-
return node;
|
|
39
|
-
}
|
|
40
|
-
const slugger = new GitHubSlugger();
|
|
41
|
-
const value = textFromNode(node);
|
|
42
|
-
node.data = {
|
|
43
|
-
hProperties: {
|
|
44
|
-
id: __props.headingSlugGenerator({
|
|
45
|
-
depth: node.depth,
|
|
46
|
-
value,
|
|
47
|
-
slug: slugger.slug(value)
|
|
48
|
-
})
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
return node;
|
|
52
|
-
};
|
|
53
|
-
return (_ctx, _cache) => {
|
|
54
|
-
return __props.description ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
55
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(sections.value, (section) => {
|
|
56
|
-
return openBlock(), createBlock(_sfc_main$1, {
|
|
57
|
-
id: section.id,
|
|
58
|
-
key: section.id,
|
|
59
|
-
content: section.content,
|
|
60
|
-
eventBus: __props.eventBus,
|
|
61
|
-
transformHeading
|
|
62
|
-
}, null, 8, ["id", "content", "eventBus"]);
|
|
63
|
-
}), 128))
|
|
64
|
-
])) : createCommentVNode("", true);
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
});
|
|
68
|
-
export {
|
|
69
|
-
_sfc_main as default
|
|
70
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { defineComponent, createBlock, openBlock, unref, withCtx, createVNode, createCommentVNode } from "vue";
|
|
2
|
-
import LinkList from "../../../components/LinkList/LinkList.vue.js";
|
|
3
|
-
import _sfc_main$1 from "../../../features/external-docs/ExternalDocs.vue.js";
|
|
4
|
-
import _sfc_main$2 from "../../../features/info-object/Contact.vue.js";
|
|
5
|
-
import _sfc_main$3 from "../../../features/info-object/License.vue.js";
|
|
6
|
-
import _sfc_main$4 from "../../../features/info-object/TermsOfService.vue.js";
|
|
7
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
|
-
__name: "InfoLinks",
|
|
9
|
-
props: {
|
|
10
|
-
info: {},
|
|
11
|
-
externalDocs: {}
|
|
12
|
-
},
|
|
13
|
-
setup(__props) {
|
|
14
|
-
return (_ctx, _cache) => {
|
|
15
|
-
return openBlock(), createBlock(unref(LinkList), null, {
|
|
16
|
-
default: withCtx(() => [
|
|
17
|
-
createVNode(unref(_sfc_main$1), { value: __props.externalDocs }, null, 8, ["value"]),
|
|
18
|
-
__props.info.contact ? (openBlock(), createBlock(unref(_sfc_main$2), {
|
|
19
|
-
key: 0,
|
|
20
|
-
value: __props.info.contact
|
|
21
|
-
}, null, 8, ["value"])) : createCommentVNode("", true),
|
|
22
|
-
__props.info.license ? (openBlock(), createBlock(unref(_sfc_main$3), {
|
|
23
|
-
key: 1,
|
|
24
|
-
value: __props.info.license
|
|
25
|
-
}, null, 8, ["value"])) : createCommentVNode("", true),
|
|
26
|
-
__props.info.termsOfService ? (openBlock(), createBlock(unref(_sfc_main$4), {
|
|
27
|
-
key: 2,
|
|
28
|
-
value: __props.info.termsOfService
|
|
29
|
-
}, null, 8, ["value"])) : createCommentVNode("", true)
|
|
30
|
-
]),
|
|
31
|
-
_: 1
|
|
32
|
-
});
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
export {
|
|
37
|
-
_sfc_main as default
|
|
38
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { defineComponent, useTemplateRef, createElementBlock, openBlock, createVNode, unref } from "vue";
|
|
2
|
-
import { ScalarMarkdown } from "@scalar/components";
|
|
3
|
-
import { useIntersection } from "../../../hooks/use-intersection.js";
|
|
4
|
-
const _hoisted_1 = ["id"];
|
|
5
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
|
-
__name: "InfoMarkdownSection",
|
|
7
|
-
props: {
|
|
8
|
-
id: {},
|
|
9
|
-
content: {},
|
|
10
|
-
transformHeading: { type: Function },
|
|
11
|
-
eventBus: {}
|
|
12
|
-
},
|
|
13
|
-
setup(__props) {
|
|
14
|
-
const element = useTemplateRef("element");
|
|
15
|
-
useIntersection(
|
|
16
|
-
element,
|
|
17
|
-
() => __props.id ? __props.eventBus?.emit("intersecting:nav-item", { id: __props.id }) : void 0
|
|
18
|
-
);
|
|
19
|
-
return (_ctx, _cache) => {
|
|
20
|
-
return openBlock(), createElementBlock("div", {
|
|
21
|
-
id: __props.id,
|
|
22
|
-
ref_key: "element",
|
|
23
|
-
ref: element,
|
|
24
|
-
class: "introduction-description-heading scroll-mt-16"
|
|
25
|
-
}, [
|
|
26
|
-
createVNode(unref(ScalarMarkdown), {
|
|
27
|
-
transform: __props.transformHeading,
|
|
28
|
-
transformType: "heading",
|
|
29
|
-
value: __props.content,
|
|
30
|
-
withImages: ""
|
|
31
|
-
}, null, 8, ["transform", "value"])
|
|
32
|
-
], 8, _hoisted_1);
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
export {
|
|
37
|
-
_sfc_main as default
|
|
38
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, createBlock, createCommentVNode, openBlock, unref, withCtx, createTextVNode, toDisplayString } from "vue";
|
|
2
|
-
import Badge from "../../../components/Badge/Badge.vue.js";
|
|
3
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
-
__name: "InfoVersion",
|
|
5
|
-
props: {
|
|
6
|
-
version: {}
|
|
7
|
-
},
|
|
8
|
-
setup(__props) {
|
|
9
|
-
const prefixedVersion = computed(() => {
|
|
10
|
-
if (__props.version == null) {
|
|
11
|
-
return __props.version;
|
|
12
|
-
}
|
|
13
|
-
const versionString = String(__props.version);
|
|
14
|
-
return /^\d/.test(versionString) ? `v${versionString}` : versionString;
|
|
15
|
-
});
|
|
16
|
-
return (_ctx, _cache) => {
|
|
17
|
-
return prefixedVersion.value ? (openBlock(), createBlock(unref(Badge), { key: 0 }, {
|
|
18
|
-
default: withCtx(() => [
|
|
19
|
-
createTextVNode(toDisplayString(prefixedVersion.value), 1)
|
|
20
|
-
]),
|
|
21
|
-
_: 1
|
|
22
|
-
})) : createCommentVNode("", true);
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
export {
|
|
27
|
-
_sfc_main as default
|
|
28
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import _sfc_main from "./IntroductionCard.vue2.js";
|
|
2
|
-
/* empty css */
|
|
3
|
-
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const IntroductionCard = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5764c94a"]]);
|
|
5
|
-
export {
|
|
6
|
-
IntroductionCard as default
|
|
7
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { defineComponent, createElementBlock, openBlock, normalizeClass, renderSlot } from "vue";
|
|
2
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
3
|
-
__name: "IntroductionCard",
|
|
4
|
-
props: {
|
|
5
|
-
row: { type: Boolean }
|
|
6
|
-
},
|
|
7
|
-
setup(__props) {
|
|
8
|
-
return (_ctx, _cache) => {
|
|
9
|
-
return openBlock(), createElementBlock("div", {
|
|
10
|
-
class: normalizeClass(["introduction-card", { "introduction-card-row": __props.row }])
|
|
11
|
-
}, [
|
|
12
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
13
|
-
], 2);
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
export {
|
|
18
|
-
_sfc_main as default
|
|
19
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { createElementBlock, openBlock, renderSlot } from "vue";
|
|
2
|
-
/* empty css */
|
|
3
|
-
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const _sfc_main = {};
|
|
5
|
-
const _hoisted_1 = { class: "introduction-card-item" };
|
|
6
|
-
function _sfc_render(_ctx, _cache) {
|
|
7
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
8
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
9
|
-
]);
|
|
10
|
-
}
|
|
11
|
-
const IntroductionCardItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-dfab866f"]]);
|
|
12
|
-
export {
|
|
13
|
-
IntroductionCardItem as default
|
|
14
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import _sfc_main from "./IntroductionLayout.vue2.js";
|
|
2
|
-
/* empty css */
|
|
3
|
-
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const IntroductionLayout = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-0b1e2255"]]);
|
|
5
|
-
export {
|
|
6
|
-
IntroductionLayout as default
|
|
7
|
-
};
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import { defineComponent, createBlock, openBlock, unref, withCtx, createVNode, renderSlot, createElementVNode, createCommentVNode, createTextVNode, toDisplayString } from "vue";
|
|
2
|
-
import InfoDescription from "./InfoDescription.vue.js";
|
|
3
|
-
import _sfc_main$3 from "./InfoLinks.vue.js";
|
|
4
|
-
import _sfc_main$1 from "./InfoVersion.vue.js";
|
|
5
|
-
import _sfc_main$2 from "./OpenApiVersion.vue.js";
|
|
6
|
-
import SectionContainer from "../../../components/Section/SectionContainer.vue.js";
|
|
7
|
-
import Section from "../../../components/Section/Section.vue.js";
|
|
8
|
-
import SectionContent from "../../../components/Section/SectionContent.vue.js";
|
|
9
|
-
import SectionHeader from "../../../components/Section/SectionHeader.vue.js";
|
|
10
|
-
import SectionHeaderTag from "../../../components/Section/SectionHeaderTag.vue.js";
|
|
11
|
-
import SectionColumns from "../../../components/Section/SectionColumns.vue.js";
|
|
12
|
-
import SectionColumn from "../../../components/Section/SectionColumn.vue.js";
|
|
13
|
-
import _sfc_main$4 from "../../../features/specification-extension/SpecificationExtension.vue2.js";
|
|
14
|
-
const _hoisted_1 = { class: "flex gap-1.5" };
|
|
15
|
-
const _hoisted_2 = { class: "sticky-cards" };
|
|
16
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
17
|
-
__name: "IntroductionLayout",
|
|
18
|
-
props: {
|
|
19
|
-
id: {},
|
|
20
|
-
oasVersion: {},
|
|
21
|
-
info: {},
|
|
22
|
-
externalDocs: {},
|
|
23
|
-
documentExtensions: {},
|
|
24
|
-
infoExtensions: {},
|
|
25
|
-
headingSlugGenerator: { type: Function },
|
|
26
|
-
eventBus: {}
|
|
27
|
-
},
|
|
28
|
-
setup(__props) {
|
|
29
|
-
return (_ctx, _cache) => {
|
|
30
|
-
return openBlock(), createBlock(unref(SectionContainer), null, {
|
|
31
|
-
default: withCtx(() => [
|
|
32
|
-
createVNode(unref(Section), {
|
|
33
|
-
id: __props.id,
|
|
34
|
-
"aria-label": "Introduction",
|
|
35
|
-
class: "introduction-section z-1 gap-12",
|
|
36
|
-
onIntersecting: _cache[0] || (_cache[0] = () => __props.id && __props.eventBus?.emit("intersecting:nav-item", { id: __props.id }))
|
|
37
|
-
}, {
|
|
38
|
-
default: withCtx(() => [
|
|
39
|
-
createVNode(unref(SectionContent), {
|
|
40
|
-
loading: !__props.info
|
|
41
|
-
}, {
|
|
42
|
-
default: withCtx(() => [
|
|
43
|
-
createElementVNode("div", _hoisted_1, [
|
|
44
|
-
__props.info ? (openBlock(), createBlock(_sfc_main$1, {
|
|
45
|
-
key: 0,
|
|
46
|
-
version: __props.info?.version
|
|
47
|
-
}, null, 8, ["version"])) : createCommentVNode("", true),
|
|
48
|
-
createVNode(_sfc_main$2, { oasVersion: __props.oasVersion }, null, 8, ["oasVersion"])
|
|
49
|
-
]),
|
|
50
|
-
createVNode(unref(SectionHeader), {
|
|
51
|
-
loading: !__props.info?.title,
|
|
52
|
-
tight: ""
|
|
53
|
-
}, {
|
|
54
|
-
links: withCtx(() => [
|
|
55
|
-
__props.info ? (openBlock(), createBlock(_sfc_main$3, {
|
|
56
|
-
key: 0,
|
|
57
|
-
externalDocs: __props.externalDocs,
|
|
58
|
-
info: __props.info
|
|
59
|
-
}, null, 8, ["externalDocs", "info"])) : createCommentVNode("", true)
|
|
60
|
-
]),
|
|
61
|
-
default: withCtx(() => [
|
|
62
|
-
createVNode(unref(SectionHeaderTag), { level: 1 }, {
|
|
63
|
-
default: withCtx(() => [
|
|
64
|
-
createTextVNode(toDisplayString(__props.info?.title), 1)
|
|
65
|
-
]),
|
|
66
|
-
_: 1
|
|
67
|
-
})
|
|
68
|
-
]),
|
|
69
|
-
_: 1
|
|
70
|
-
}, 8, ["loading"]),
|
|
71
|
-
createVNode(unref(SectionColumns), null, {
|
|
72
|
-
default: withCtx(() => [
|
|
73
|
-
createVNode(unref(SectionColumn), null, {
|
|
74
|
-
default: withCtx(() => [
|
|
75
|
-
renderSlot(_ctx.$slots, "download-link", {}, void 0, true),
|
|
76
|
-
createVNode(InfoDescription, {
|
|
77
|
-
description: __props.info?.description,
|
|
78
|
-
eventBus: __props.eventBus,
|
|
79
|
-
headingSlugGenerator: __props.headingSlugGenerator
|
|
80
|
-
}, null, 8, ["description", "eventBus", "headingSlugGenerator"])
|
|
81
|
-
]),
|
|
82
|
-
_: 3
|
|
83
|
-
}),
|
|
84
|
-
_ctx.$slots.aside ? (openBlock(), createBlock(unref(SectionColumn), { key: 0 }, {
|
|
85
|
-
default: withCtx(() => [
|
|
86
|
-
createElementVNode("div", _hoisted_2, [
|
|
87
|
-
renderSlot(_ctx.$slots, "aside", {}, void 0, true)
|
|
88
|
-
])
|
|
89
|
-
]),
|
|
90
|
-
_: 3
|
|
91
|
-
})) : createCommentVNode("", true)
|
|
92
|
-
]),
|
|
93
|
-
_: 3
|
|
94
|
-
}),
|
|
95
|
-
createVNode(unref(_sfc_main$4), { value: __props.documentExtensions }, null, 8, ["value"]),
|
|
96
|
-
createVNode(unref(_sfc_main$4), { value: __props.infoExtensions }, null, 8, ["value"])
|
|
97
|
-
]),
|
|
98
|
-
_: 3
|
|
99
|
-
}, 8, ["loading"]),
|
|
100
|
-
renderSlot(_ctx.$slots, "after", {}, void 0, true)
|
|
101
|
-
]),
|
|
102
|
-
_: 3
|
|
103
|
-
}, 8, ["id"])
|
|
104
|
-
]),
|
|
105
|
-
_: 3
|
|
106
|
-
});
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
});
|
|
110
|
-
export {
|
|
111
|
-
_sfc_main as default
|
|
112
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { defineComponent, createBlock, createCommentVNode, openBlock, unref, withCtx, createTextVNode, toDisplayString } from "vue";
|
|
2
|
-
import Badge from "../../../components/Badge/Badge.vue.js";
|
|
3
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
-
__name: "OpenApiVersion",
|
|
5
|
-
props: {
|
|
6
|
-
oasVersion: {}
|
|
7
|
-
},
|
|
8
|
-
setup(__props) {
|
|
9
|
-
return (_ctx, _cache) => {
|
|
10
|
-
return __props.oasVersion ? (openBlock(), createBlock(unref(Badge), { key: 0 }, {
|
|
11
|
-
default: withCtx(() => [
|
|
12
|
-
createTextVNode("OAS " + toDisplayString(__props.oasVersion), 1)
|
|
13
|
-
]),
|
|
14
|
-
_: 1
|
|
15
|
-
})) : createCommentVNode("", true);
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
export {
|
|
20
|
-
_sfc_main as default
|
|
21
|
-
};
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, createBlock, createElementBlock, openBlock, unref, withCtx, createVNode, createElementVNode, toDisplayString } from "vue";
|
|
2
|
-
import { ScalarListbox, ScalarButton } from "@scalar/components";
|
|
3
|
-
import { ScalarIconCaretDown } from "@scalar/icons";
|
|
4
|
-
const _hoisted_1 = { class: "overflow-x-auto" };
|
|
5
|
-
const _hoisted_2 = {
|
|
6
|
-
key: 1,
|
|
7
|
-
class: "text-c-1 flex h-auto w-full items-center gap-0.75 !rounded-b-xl px-3 py-1.5 text-base leading-[20px] whitespace-nowrap"
|
|
8
|
-
};
|
|
9
|
-
const _hoisted_3 = { class: "overflow-x-auto" };
|
|
10
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
11
|
-
__name: "Selector",
|
|
12
|
-
props: {
|
|
13
|
-
selectedServer: {},
|
|
14
|
-
servers: {},
|
|
15
|
-
target: {}
|
|
16
|
-
},
|
|
17
|
-
emits: ["update:modelValue"],
|
|
18
|
-
setup(__props, { expose: __expose, emit: __emit }) {
|
|
19
|
-
const emit = __emit;
|
|
20
|
-
const serverOptions = computed(
|
|
21
|
-
() => __props.servers.map((server) => ({
|
|
22
|
-
id: server.url,
|
|
23
|
-
label: server.url
|
|
24
|
-
}))
|
|
25
|
-
);
|
|
26
|
-
const serverUrlWithoutTrailingSlash = computed(
|
|
27
|
-
() => __props.selectedServer?.url?.replace(/\/$/, "") || ""
|
|
28
|
-
);
|
|
29
|
-
const selectedServerOption = computed(
|
|
30
|
-
() => serverOptions.value.find((opt) => opt.id === __props.selectedServer?.url)
|
|
31
|
-
);
|
|
32
|
-
__expose({
|
|
33
|
-
servers: __props.servers,
|
|
34
|
-
serverUrlWithoutTrailingSlash,
|
|
35
|
-
serverOptions,
|
|
36
|
-
selectedServer: __props.selectedServer
|
|
37
|
-
});
|
|
38
|
-
return (_ctx, _cache) => {
|
|
39
|
-
return serverOptions.value.length > 1 ? (openBlock(), createBlock(unref(ScalarListbox), {
|
|
40
|
-
key: 0,
|
|
41
|
-
ref: "elem",
|
|
42
|
-
class: "group",
|
|
43
|
-
modelValue: selectedServerOption.value,
|
|
44
|
-
options: serverOptions.value,
|
|
45
|
-
placement: "bottom-start",
|
|
46
|
-
resize: "",
|
|
47
|
-
target: __props.target,
|
|
48
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = (e) => emit("update:modelValue", e.id))
|
|
49
|
-
}, {
|
|
50
|
-
default: withCtx(() => [
|
|
51
|
-
createVNode(unref(ScalarButton), {
|
|
52
|
-
class: "bg-b-1 text-c-1 h-auto w-full justify-start gap-1.5 overflow-x-auto rounded-t-none !rounded-b-xl px-3 py-1.5 text-base/5.25 font-normal whitespace-nowrap -outline-offset-1",
|
|
53
|
-
variant: "ghost"
|
|
54
|
-
}, {
|
|
55
|
-
default: withCtx(() => [
|
|
56
|
-
_cache[1] || (_cache[1] = createElementVNode("span", { class: "sr-only" }, "Server:", -1)),
|
|
57
|
-
createElementVNode("span", _hoisted_1, toDisplayString(serverUrlWithoutTrailingSlash.value || "Select a server"), 1),
|
|
58
|
-
createVNode(unref(ScalarIconCaretDown), {
|
|
59
|
-
class: "text-c-2 ui-open:rotate-180 mt-0.25 size-3 transition-transform duration-100",
|
|
60
|
-
weight: "bold"
|
|
61
|
-
})
|
|
62
|
-
]),
|
|
63
|
-
_: 1
|
|
64
|
-
})
|
|
65
|
-
]),
|
|
66
|
-
_: 1
|
|
67
|
-
}, 8, ["modelValue", "options", "target"])) : (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
68
|
-
_cache[2] || (_cache[2] = createElementVNode("span", { class: "sr-only" }, "Server:", -1)),
|
|
69
|
-
createElementVNode("span", _hoisted_3, toDisplayString(serverUrlWithoutTrailingSlash.value), 1)
|
|
70
|
-
]));
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
export {
|
|
75
|
-
_sfc_main as default
|
|
76
|
-
};
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { defineComponent, useId, createElementBlock, openBlock, Fragment, createElementVNode, createVNode, createBlock, createCommentVNode, normalizeClass, unref } from "vue";
|
|
2
|
-
import { ServerVariablesForm } from "@scalar/api-client/components/Server";
|
|
3
|
-
import { ScalarMarkdown } from "@scalar/components";
|
|
4
|
-
import _sfc_main$1 from "./Selector.vue.js";
|
|
5
|
-
const _hoisted_1 = ["id"];
|
|
6
|
-
const __default__ = {};
|
|
7
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
|
-
...__default__,
|
|
9
|
-
__name: "ServerSelector",
|
|
10
|
-
props: {
|
|
11
|
-
eventBus: {},
|
|
12
|
-
selectedServer: {},
|
|
13
|
-
servers: {}
|
|
14
|
-
},
|
|
15
|
-
setup(__props) {
|
|
16
|
-
const id = useId();
|
|
17
|
-
const updateServer = (newServer) => {
|
|
18
|
-
__props.eventBus.emit("server:update:selected", {
|
|
19
|
-
url: __props.selectedServer?.url === newServer ? "" : newServer,
|
|
20
|
-
meta: {
|
|
21
|
-
type: "document"
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
};
|
|
25
|
-
const updateServerVariable = (key, value) => {
|
|
26
|
-
const index = __props.servers.findIndex((s) => s.url === __props.selectedServer?.url);
|
|
27
|
-
if (index === -1) {
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
|
-
__props.eventBus.emit("server:update:variables", {
|
|
31
|
-
index,
|
|
32
|
-
key,
|
|
33
|
-
value,
|
|
34
|
-
meta: {
|
|
35
|
-
type: "document"
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
};
|
|
39
|
-
return (_ctx, _cache) => {
|
|
40
|
-
return openBlock(), createElementBlock(Fragment, null, [
|
|
41
|
-
_cache[0] || (_cache[0] = createElementVNode("label", { class: "bg-b-2 flex h-8 items-center rounded-t-xl border border-b-0 px-3 py-2.5 font-medium" }, " Server ", -1)),
|
|
42
|
-
createElementVNode("div", {
|
|
43
|
-
id: unref(id),
|
|
44
|
-
class: normalizeClass(["border", {
|
|
45
|
-
"rounded-b-xl": !__props.selectedServer?.description && !__props.selectedServer?.variables
|
|
46
|
-
}])
|
|
47
|
-
}, [
|
|
48
|
-
__props.servers.length ? (openBlock(), createBlock(_sfc_main$1, {
|
|
49
|
-
key: 0,
|
|
50
|
-
selectedServer: __props.selectedServer,
|
|
51
|
-
servers: __props.servers,
|
|
52
|
-
target: unref(id),
|
|
53
|
-
"onUpdate:modelValue": updateServer
|
|
54
|
-
}, null, 8, ["selectedServer", "servers", "target"])) : createCommentVNode("", true)
|
|
55
|
-
], 10, _hoisted_1),
|
|
56
|
-
createVNode(unref(ServerVariablesForm), {
|
|
57
|
-
layout: "reference",
|
|
58
|
-
variables: __props.selectedServer?.variables,
|
|
59
|
-
"onUpdate:variable": updateServerVariable
|
|
60
|
-
}, null, 8, ["variables"]),
|
|
61
|
-
__props.selectedServer?.description ? (openBlock(), createBlock(unref(ScalarMarkdown), {
|
|
62
|
-
key: 0,
|
|
63
|
-
class: "text-c-3 rounded-b-xl border border-t-0 px-3 py-1.5",
|
|
64
|
-
value: __props.selectedServer.description
|
|
65
|
-
}, null, 8, ["value"])) : createCommentVNode("", true)
|
|
66
|
-
], 64);
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
export {
|
|
71
|
-
_sfc_main as default
|
|
72
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { defineComponent, createElementBlock, openBlock, unref, createVNode, createTextVNode } from "vue";
|
|
2
|
-
import { ScalarIconSparkle } from "@scalar/icons";
|
|
3
|
-
import { useAgentContext } from "../../hooks/use-agent.js";
|
|
4
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
-
__name: "AgentScalarButton",
|
|
6
|
-
setup(__props) {
|
|
7
|
-
const agentContext = useAgentContext();
|
|
8
|
-
return (_ctx, _cache) => {
|
|
9
|
-
return openBlock(), createElementBlock("button", {
|
|
10
|
-
class: "bg-sidebar-b-search text-sidebar-c-2 hover:text-sidebar-c-1 flex items-center gap-1.5 rounded border px-2 text-base whitespace-nowrap",
|
|
11
|
-
type: "button",
|
|
12
|
-
onClick: _cache[0] || (_cache[0] = ($event) => unref(agentContext)?.toggleAgent())
|
|
13
|
-
}, [
|
|
14
|
-
createVNode(unref(ScalarIconSparkle)),
|
|
15
|
-
_cache[1] || (_cache[1] = createTextVNode(" Ask AI ", -1))
|
|
16
|
-
]);
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
export {
|
|
21
|
-
_sfc_main as default
|
|
22
|
-
};
|