@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,23 +0,0 @@
|
|
|
1
|
-
import { defineComponent, createElementBlock, openBlock, createTextVNode, createVNode, unref } from "vue";
|
|
2
|
-
import { ScalarIconCaretDown } from "@scalar/icons";
|
|
3
|
-
const _hoisted_1 = {
|
|
4
|
-
class: "show-more",
|
|
5
|
-
type: "button"
|
|
6
|
-
};
|
|
7
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
|
-
__name: "ShowMoreButton",
|
|
9
|
-
setup(__props) {
|
|
10
|
-
return (_ctx, _cache) => {
|
|
11
|
-
return openBlock(), createElementBlock("button", _hoisted_1, [
|
|
12
|
-
_cache[0] || (_cache[0] = createTextVNode(" Show More ", -1)),
|
|
13
|
-
createVNode(unref(ScalarIconCaretDown), {
|
|
14
|
-
class: "text-c-2 mt-0.25 size-3",
|
|
15
|
-
weight: "bold"
|
|
16
|
-
})
|
|
17
|
-
]);
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
export {
|
|
22
|
-
_sfc_main as default
|
|
23
|
-
};
|
package/dist/consts/urls.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
const REGISTRY_URL = "https://registry.scalar.com";
|
|
2
|
-
const REGISTRY_SHARE_URL = `${REGISTRY_URL}/share`;
|
|
3
|
-
const PROXY_URL = "https://proxy.scalar.com";
|
|
4
|
-
const API_BASE_URL = "https://api.scalar.com";
|
|
5
|
-
const UPLOAD_TEMP_API_URL = `${API_BASE_URL}/core/share/upload/apis`;
|
|
6
|
-
const DASHBOARD_URL = "https://dashboard.scalar.com";
|
|
7
|
-
const DASHBOARD_REGISTER_URL = `${DASHBOARD_URL}/register`;
|
|
8
|
-
export {
|
|
9
|
-
API_BASE_URL,
|
|
10
|
-
DASHBOARD_REGISTER_URL,
|
|
11
|
-
DASHBOARD_URL,
|
|
12
|
-
PROXY_URL,
|
|
13
|
-
REGISTRY_SHARE_URL,
|
|
14
|
-
REGISTRY_URL,
|
|
15
|
-
UPLOAD_TEMP_API_URL
|
|
16
|
-
};
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, createElementBlock, createCommentVNode, openBlock, Fragment, createBlock } from "vue";
|
|
2
|
-
import { combineParams } from "@scalar/api-client/v2/features/operation";
|
|
3
|
-
import { getResolvedRef } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
4
|
-
import { filterSelectedSecurity } from "./helpers/filter-selected-security.js";
|
|
5
|
-
import { getFirstServer } from "./helpers/get-first-server.js";
|
|
6
|
-
import ClassicLayout from "./layouts/ClassicLayout.vue.js";
|
|
7
|
-
import ModernLayout from "./layouts/ModernLayout.vue.js";
|
|
8
|
-
const __default__ = {};
|
|
9
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
|
-
...__default__,
|
|
11
|
-
__name: "Operation",
|
|
12
|
-
props: {
|
|
13
|
-
id: {},
|
|
14
|
-
method: {},
|
|
15
|
-
options: {},
|
|
16
|
-
document: {},
|
|
17
|
-
path: {},
|
|
18
|
-
pathValue: {},
|
|
19
|
-
server: {},
|
|
20
|
-
securitySchemes: {},
|
|
21
|
-
clientOptions: {},
|
|
22
|
-
isCollapsed: { type: Boolean },
|
|
23
|
-
isWebhook: { type: Boolean },
|
|
24
|
-
selectedClient: {},
|
|
25
|
-
eventBus: {},
|
|
26
|
-
authStore: {}
|
|
27
|
-
},
|
|
28
|
-
setup(__props) {
|
|
29
|
-
const operation = computed(() => {
|
|
30
|
-
const entity = getResolvedRef(__props.pathValue?.[__props.method]);
|
|
31
|
-
if (!entity) {
|
|
32
|
-
return null;
|
|
33
|
-
}
|
|
34
|
-
const parameters = combineParams(__props.pathValue?.parameters, entity.parameters);
|
|
35
|
-
return { ...entity, parameters };
|
|
36
|
-
});
|
|
37
|
-
const selectedServer = computed(
|
|
38
|
-
() => getFirstServer(
|
|
39
|
-
// 1) Operation
|
|
40
|
-
operation.value?.servers ?? null,
|
|
41
|
-
// 2) Path Item
|
|
42
|
-
__props.pathValue?.servers ?? null,
|
|
43
|
-
// 3) Document
|
|
44
|
-
__props.server
|
|
45
|
-
)
|
|
46
|
-
);
|
|
47
|
-
const selectedSecuritySchemes = computed(
|
|
48
|
-
() => filterSelectedSecurity(
|
|
49
|
-
__props.document,
|
|
50
|
-
operation.value,
|
|
51
|
-
__props.authStore.getAuthSelectedSchemas({
|
|
52
|
-
type: "document",
|
|
53
|
-
documentName: __props.document?.["x-scalar-navigation"]?.name ?? ""
|
|
54
|
-
}),
|
|
55
|
-
__props.authStore.getAuthSelectedSchemas({
|
|
56
|
-
type: "operation",
|
|
57
|
-
documentName: __props.document?.["x-scalar-navigation"]?.name ?? "",
|
|
58
|
-
path: __props.path,
|
|
59
|
-
method: __props.method
|
|
60
|
-
}),
|
|
61
|
-
__props.securitySchemes
|
|
62
|
-
)
|
|
63
|
-
);
|
|
64
|
-
return (_ctx, _cache) => {
|
|
65
|
-
return operation.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
66
|
-
__props.options.layout === "classic" ? (openBlock(), createBlock(ClassicLayout, {
|
|
67
|
-
key: 0,
|
|
68
|
-
id: __props.id,
|
|
69
|
-
clientOptions: __props.clientOptions,
|
|
70
|
-
eventBus: __props.eventBus,
|
|
71
|
-
isCollapsed: __props.isCollapsed,
|
|
72
|
-
isWebhook: __props.isWebhook,
|
|
73
|
-
method: __props.method,
|
|
74
|
-
operation: operation.value,
|
|
75
|
-
options: __props.options,
|
|
76
|
-
path: __props.path,
|
|
77
|
-
selectedClient: __props.selectedClient,
|
|
78
|
-
selectedSecuritySchemes: selectedSecuritySchemes.value,
|
|
79
|
-
selectedServer: selectedServer.value
|
|
80
|
-
}, null, 8, ["id", "clientOptions", "eventBus", "isCollapsed", "isWebhook", "method", "operation", "options", "path", "selectedClient", "selectedSecuritySchemes", "selectedServer"])) : (openBlock(), createBlock(ModernLayout, {
|
|
81
|
-
key: 1,
|
|
82
|
-
id: __props.id,
|
|
83
|
-
clientOptions: __props.clientOptions,
|
|
84
|
-
eventBus: __props.eventBus,
|
|
85
|
-
isWebhook: __props.isWebhook,
|
|
86
|
-
method: __props.method,
|
|
87
|
-
operation: operation.value,
|
|
88
|
-
options: __props.options,
|
|
89
|
-
path: __props.path,
|
|
90
|
-
selectedClient: __props.selectedClient,
|
|
91
|
-
selectedSecuritySchemes: selectedSecuritySchemes.value,
|
|
92
|
-
selectedServer: selectedServer.value
|
|
93
|
-
}, null, 8, ["id", "clientOptions", "eventBus", "isWebhook", "method", "operation", "options", "path", "selectedClient", "selectedSecuritySchemes", "selectedServer"]))
|
|
94
|
-
], 64)) : createCommentVNode("", true);
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
|
-
});
|
|
98
|
-
export {
|
|
99
|
-
_sfc_main as default
|
|
100
|
-
};
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { defineComponent, mergeModels, useModel, computed, createBlock, createElementBlock, openBlock, unref, withModifiers, withCtx, createVNode, mergeProps, createElementVNode, createTextVNode, toDisplayString, normalizeClass } from "vue";
|
|
2
|
-
import { cva, ScalarListbox, ScalarButton } from "@scalar/components";
|
|
3
|
-
import { ScalarIconCaretDown } from "@scalar/icons";
|
|
4
|
-
import ScreenReader from "../../../components/ScreenReader.vue.js";
|
|
5
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
|
-
...{ inheritAttrs: false },
|
|
7
|
-
__name: "ContentTypeSelect",
|
|
8
|
-
props: /* @__PURE__ */ mergeModels({
|
|
9
|
-
content: {}
|
|
10
|
-
}, {
|
|
11
|
-
"modelValue": { required: true },
|
|
12
|
-
"modelModifiers": {}
|
|
13
|
-
}),
|
|
14
|
-
emits: ["update:modelValue"],
|
|
15
|
-
setup(__props) {
|
|
16
|
-
const selectedContentType = useModel(__props, "modelValue");
|
|
17
|
-
const contentTypes = computed(() => Object.keys(__props.content ?? {}));
|
|
18
|
-
const selectedOption = computed({
|
|
19
|
-
get: () => options.value.find((option) => option.id === selectedContentType.value),
|
|
20
|
-
set: (option) => {
|
|
21
|
-
if (option) {
|
|
22
|
-
selectedContentType.value = option.id;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
const options = computed(() => {
|
|
27
|
-
return contentTypes.value.map((type) => ({
|
|
28
|
-
id: type,
|
|
29
|
-
label: type
|
|
30
|
-
}));
|
|
31
|
-
});
|
|
32
|
-
const contentTypeSelect = cva({
|
|
33
|
-
base: "font-normal text-c-2 bg-b-1 py-1 flex items-center gap-1 rounded-full text-xs leading-none border",
|
|
34
|
-
variants: {
|
|
35
|
-
dropdown: {
|
|
36
|
-
true: "hover:text-c-1 pl-2 pr-1.5 font-medium cursor-pointer",
|
|
37
|
-
false: "px-2"
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
return (_ctx, _cache) => {
|
|
42
|
-
return contentTypes.value.length > 1 ? (openBlock(), createBlock(unref(ScalarListbox), {
|
|
43
|
-
key: 0,
|
|
44
|
-
modelValue: selectedOption.value,
|
|
45
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => selectedOption.value = $event),
|
|
46
|
-
options: options.value,
|
|
47
|
-
placement: "bottom-end",
|
|
48
|
-
teleport: "",
|
|
49
|
-
onClick: _cache[2] || (_cache[2] = withModifiers(() => {
|
|
50
|
-
}, ["stop"]))
|
|
51
|
-
}, {
|
|
52
|
-
default: withCtx(({ open }) => [
|
|
53
|
-
createVNode(unref(ScalarButton), mergeProps({
|
|
54
|
-
class: ["h-fit", unref(contentTypeSelect)({ dropdown: true })],
|
|
55
|
-
variant: "ghost"
|
|
56
|
-
}, _ctx.$attrs, {
|
|
57
|
-
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
58
|
-
}, ["stop"]))
|
|
59
|
-
}), {
|
|
60
|
-
default: withCtx(() => [
|
|
61
|
-
createVNode(ScreenReader, null, {
|
|
62
|
-
default: withCtx(() => [..._cache[3] || (_cache[3] = [
|
|
63
|
-
createTextVNode("Selected Content Type:", -1)
|
|
64
|
-
])]),
|
|
65
|
-
_: 1
|
|
66
|
-
}),
|
|
67
|
-
createElementVNode("span", null, toDisplayString(selectedContentType.value), 1),
|
|
68
|
-
createVNode(unref(ScalarIconCaretDown), {
|
|
69
|
-
class: normalizeClass(["size-2.75 transition-transform duration-100", { "rotate-180": open }]),
|
|
70
|
-
weight: "bold"
|
|
71
|
-
}, null, 8, ["class"])
|
|
72
|
-
]),
|
|
73
|
-
_: 2
|
|
74
|
-
}, 1040, ["class"])
|
|
75
|
-
]),
|
|
76
|
-
_: 1
|
|
77
|
-
}, 8, ["modelValue", "options"])) : (openBlock(), createElementBlock("div", mergeProps({
|
|
78
|
-
key: 1,
|
|
79
|
-
class: ["selected-content-type", unref(contentTypeSelect)({ dropdown: false })]
|
|
80
|
-
}, _ctx.$attrs, { tabindex: "0" }), [
|
|
81
|
-
createElementVNode("span", null, toDisplayString(selectedContentType.value), 1)
|
|
82
|
-
], 16));
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
});
|
|
86
|
-
export {
|
|
87
|
-
_sfc_main as default
|
|
88
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { defineComponent, createBlock, createCommentVNode, openBlock, unref } from "vue";
|
|
2
|
-
import { getResolvedRef } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
3
|
-
import SchemaProperty from "../../../components/Content/Schema/SchemaProperty.vue.js";
|
|
4
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
-
__name: "Header",
|
|
6
|
-
props: {
|
|
7
|
-
header: {},
|
|
8
|
-
name: {},
|
|
9
|
-
breadcrumb: {},
|
|
10
|
-
eventBus: {},
|
|
11
|
-
orderSchemaPropertiesBy: {},
|
|
12
|
-
orderRequiredPropertiesFirst: { type: Boolean }
|
|
13
|
-
},
|
|
14
|
-
setup(__props) {
|
|
15
|
-
return (_ctx, _cache) => {
|
|
16
|
-
return "schema" in __props.header && __props.header.schema ? (openBlock(), createBlock(SchemaProperty, {
|
|
17
|
-
key: 0,
|
|
18
|
-
breadcrumb: __props.breadcrumb ? [...__props.breadcrumb, "headers"] : void 0,
|
|
19
|
-
description: __props.header.description,
|
|
20
|
-
eventBus: __props.eventBus,
|
|
21
|
-
name: __props.name,
|
|
22
|
-
options: {
|
|
23
|
-
orderRequiredPropertiesFirst: __props.orderRequiredPropertiesFirst,
|
|
24
|
-
orderSchemaPropertiesBy: __props.orderSchemaPropertiesBy
|
|
25
|
-
},
|
|
26
|
-
schema: unref(getResolvedRef)(__props.header.schema)
|
|
27
|
-
}, null, 8, ["breadcrumb", "description", "eventBus", "name", "options", "schema"])) : createCommentVNode("", true);
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
export {
|
|
32
|
-
_sfc_main as default
|
|
33
|
-
};
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { defineComponent, createBlock, openBlock, unref, withCtx, createElementVNode, normalizeClass, createVNode, createElementBlock, Fragment, createTextVNode, renderList } from "vue";
|
|
2
|
-
import { Disclosure, DisclosureButton, DisclosurePanel } from "@headlessui/vue";
|
|
3
|
-
import { ScalarIcon } from "@scalar/components";
|
|
4
|
-
import { getResolvedRef } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
5
|
-
import _sfc_main$1 from "./Header.vue.js";
|
|
6
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
-
__name: "Headers",
|
|
8
|
-
props: {
|
|
9
|
-
headers: {},
|
|
10
|
-
breadcrumb: {},
|
|
11
|
-
eventBus: {},
|
|
12
|
-
orderRequiredPropertiesFirst: { type: Boolean },
|
|
13
|
-
orderSchemaPropertiesBy: {}
|
|
14
|
-
},
|
|
15
|
-
setup(__props) {
|
|
16
|
-
return (_ctx, _cache) => {
|
|
17
|
-
return openBlock(), createBlock(unref(Disclosure), null, {
|
|
18
|
-
default: withCtx(({ open }) => [
|
|
19
|
-
createElementVNode("div", {
|
|
20
|
-
class: normalizeClass(["headers-card headers-card--compact", [{ "headers-card--open": open }]])
|
|
21
|
-
}, [
|
|
22
|
-
createElementVNode("div", {
|
|
23
|
-
class: normalizeClass(["headers-properties", { "headers-properties-open": open }])
|
|
24
|
-
}, [
|
|
25
|
-
createVNode(unref(DisclosureButton), {
|
|
26
|
-
class: "headers-card-title headers-card-title--compact",
|
|
27
|
-
style: {
|
|
28
|
-
top: `calc(var(--refs-viewport-offset)))`
|
|
29
|
-
}
|
|
30
|
-
}, {
|
|
31
|
-
default: withCtx(() => [
|
|
32
|
-
createVNode(unref(ScalarIcon), {
|
|
33
|
-
class: normalizeClass(["headers-card-title-icon", { "headers-card-title-icon--open": open }]),
|
|
34
|
-
icon: "Add",
|
|
35
|
-
size: "sm"
|
|
36
|
-
}, null, 8, ["class"]),
|
|
37
|
-
open ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
38
|
-
createTextVNode(" Hide Headers ")
|
|
39
|
-
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
40
|
-
createTextVNode(" Show Headers ")
|
|
41
|
-
], 64))
|
|
42
|
-
]),
|
|
43
|
-
_: 2
|
|
44
|
-
}, 1024),
|
|
45
|
-
createVNode(unref(DisclosurePanel), null, {
|
|
46
|
-
default: withCtx(() => [
|
|
47
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.headers, (header, key) => {
|
|
48
|
-
return openBlock(), createBlock(_sfc_main$1, {
|
|
49
|
-
key,
|
|
50
|
-
breadcrumb: __props.breadcrumb ? [...__props.breadcrumb, "headers"] : void 0,
|
|
51
|
-
eventBus: __props.eventBus,
|
|
52
|
-
header: unref(getResolvedRef)(header),
|
|
53
|
-
name: key,
|
|
54
|
-
orderRequiredPropertiesFirst: __props.orderRequiredPropertiesFirst,
|
|
55
|
-
orderSchemaPropertiesBy: __props.orderSchemaPropertiesBy
|
|
56
|
-
}, null, 8, ["breadcrumb", "eventBus", "header", "name", "orderRequiredPropertiesFirst", "orderSchemaPropertiesBy"]);
|
|
57
|
-
}), 128))
|
|
58
|
-
]),
|
|
59
|
-
_: 1
|
|
60
|
-
})
|
|
61
|
-
], 2)
|
|
62
|
-
], 2)
|
|
63
|
-
]),
|
|
64
|
-
_: 1
|
|
65
|
-
});
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
export {
|
|
70
|
-
_sfc_main as default
|
|
71
|
-
};
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, createElementBlock, openBlock, Fragment, createVNode, createBlock, createCommentVNode, withCtx, createTextVNode } from "vue";
|
|
2
|
-
import { shouldIgnoreEntity } from "@scalar/oas-utils/helpers";
|
|
3
|
-
import { getResolvedRef } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
4
|
-
import _sfc_main$1 from "./ParameterList.vue.js";
|
|
5
|
-
import RequestBody from "./RequestBody.vue.js";
|
|
6
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
-
__name: "OperationParameters",
|
|
8
|
-
props: {
|
|
9
|
-
breadcrumb: {},
|
|
10
|
-
parameters: { default: () => [] },
|
|
11
|
-
requestBody: {},
|
|
12
|
-
eventBus: {},
|
|
13
|
-
options: {}
|
|
14
|
-
},
|
|
15
|
-
setup(__props) {
|
|
16
|
-
const splitParameters = computed(
|
|
17
|
-
() => (__props.parameters ?? []).reduce(
|
|
18
|
-
(acc, p) => {
|
|
19
|
-
const parameter = getResolvedRef(p);
|
|
20
|
-
if (!shouldIgnoreEntity(parameter)) {
|
|
21
|
-
acc[parameter.in].push(parameter);
|
|
22
|
-
}
|
|
23
|
-
return acc;
|
|
24
|
-
},
|
|
25
|
-
{ cookie: [], header: [], path: [], query: [] }
|
|
26
|
-
)
|
|
27
|
-
);
|
|
28
|
-
return (_ctx, _cache) => {
|
|
29
|
-
return openBlock(), createElementBlock(Fragment, null, [
|
|
30
|
-
createVNode(_sfc_main$1, {
|
|
31
|
-
breadcrumb: __props.breadcrumb ? [...__props.breadcrumb, "path"] : void 0,
|
|
32
|
-
eventBus: __props.eventBus,
|
|
33
|
-
options: __props.options,
|
|
34
|
-
parameters: splitParameters.value["path"]
|
|
35
|
-
}, {
|
|
36
|
-
title: withCtx(() => [..._cache[0] || (_cache[0] = [
|
|
37
|
-
createTextVNode("Path Parameters", -1)
|
|
38
|
-
])]),
|
|
39
|
-
_: 1
|
|
40
|
-
}, 8, ["breadcrumb", "eventBus", "options", "parameters"]),
|
|
41
|
-
createVNode(_sfc_main$1, {
|
|
42
|
-
breadcrumb: __props.breadcrumb ? [...__props.breadcrumb, "query"] : void 0,
|
|
43
|
-
eventBus: __props.eventBus,
|
|
44
|
-
options: __props.options,
|
|
45
|
-
parameters: splitParameters.value["query"]
|
|
46
|
-
}, {
|
|
47
|
-
title: withCtx(() => [..._cache[1] || (_cache[1] = [
|
|
48
|
-
createTextVNode("Query Parameters", -1)
|
|
49
|
-
])]),
|
|
50
|
-
_: 1
|
|
51
|
-
}, 8, ["breadcrumb", "eventBus", "options", "parameters"]),
|
|
52
|
-
createVNode(_sfc_main$1, {
|
|
53
|
-
breadcrumb: __props.breadcrumb ? [...__props.breadcrumb, "headers"] : void 0,
|
|
54
|
-
eventBus: __props.eventBus,
|
|
55
|
-
options: __props.options,
|
|
56
|
-
parameters: splitParameters.value["header"]
|
|
57
|
-
}, {
|
|
58
|
-
title: withCtx(() => [..._cache[2] || (_cache[2] = [
|
|
59
|
-
createTextVNode("Headers", -1)
|
|
60
|
-
])]),
|
|
61
|
-
_: 1
|
|
62
|
-
}, 8, ["breadcrumb", "eventBus", "options", "parameters"]),
|
|
63
|
-
createVNode(_sfc_main$1, {
|
|
64
|
-
breadcrumb: __props.breadcrumb ? [...__props.breadcrumb, "cookies"] : void 0,
|
|
65
|
-
eventBus: __props.eventBus,
|
|
66
|
-
options: __props.options,
|
|
67
|
-
parameters: splitParameters.value["cookie"]
|
|
68
|
-
}, {
|
|
69
|
-
title: withCtx(() => [..._cache[3] || (_cache[3] = [
|
|
70
|
-
createTextVNode("Cookies", -1)
|
|
71
|
-
])]),
|
|
72
|
-
_: 1
|
|
73
|
-
}, 8, ["breadcrumb", "eventBus", "options", "parameters"]),
|
|
74
|
-
__props.requestBody ? (openBlock(), createBlock(RequestBody, {
|
|
75
|
-
key: 0,
|
|
76
|
-
breadcrumb: __props.breadcrumb ? [...__props.breadcrumb, "body"] : void 0,
|
|
77
|
-
eventBus: __props.eventBus,
|
|
78
|
-
options: __props.options,
|
|
79
|
-
requestBody: __props.requestBody
|
|
80
|
-
}, {
|
|
81
|
-
title: withCtx(() => [..._cache[4] || (_cache[4] = [
|
|
82
|
-
createTextVNode("Body", -1)
|
|
83
|
-
])]),
|
|
84
|
-
_: 1
|
|
85
|
-
}, 8, ["breadcrumb", "eventBus", "options", "requestBody"])) : createCommentVNode("", true)
|
|
86
|
-
], 64);
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
export {
|
|
91
|
-
_sfc_main as default
|
|
92
|
-
};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { defineComponent, createElementBlock, createCommentVNode, openBlock, createElementVNode, Fragment, renderList, createBlock, unref } from "vue";
|
|
2
|
-
import { getResolvedRef } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
3
|
-
import ParameterListItem from "./ParameterListItem.vue.js";
|
|
4
|
-
const _hoisted_1 = {
|
|
5
|
-
key: 0,
|
|
6
|
-
class: "mt-6"
|
|
7
|
-
};
|
|
8
|
-
const _hoisted_2 = {
|
|
9
|
-
"aria-label": "Responses",
|
|
10
|
-
class: "mb-3 list-none p-0 text-sm"
|
|
11
|
-
};
|
|
12
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
13
|
-
__name: "OperationResponses",
|
|
14
|
-
props: {
|
|
15
|
-
responses: {},
|
|
16
|
-
breadcrumb: {},
|
|
17
|
-
collapsableItems: { type: Boolean },
|
|
18
|
-
eventBus: {},
|
|
19
|
-
options: {}
|
|
20
|
-
},
|
|
21
|
-
setup(__props) {
|
|
22
|
-
return (_ctx, _cache) => {
|
|
23
|
-
return Object.keys(__props.responses ?? {}).length ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
24
|
-
_cache[0] || (_cache[0] = createElementVNode("div", { class: "text-c-1 mt-3 mb-3 leading-[1.45] font-medium" }, "Responses", -1)),
|
|
25
|
-
createElementVNode("ul", _hoisted_2, [
|
|
26
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.responses, (response, status) => {
|
|
27
|
-
return openBlock(), createBlock(ParameterListItem, {
|
|
28
|
-
key: status,
|
|
29
|
-
breadcrumb: __props.breadcrumb,
|
|
30
|
-
collapsableItems: __props.collapsableItems,
|
|
31
|
-
eventBus: __props.eventBus,
|
|
32
|
-
name: status,
|
|
33
|
-
options: __props.options,
|
|
34
|
-
parameter: unref(getResolvedRef)(response)
|
|
35
|
-
}, null, 8, ["breadcrumb", "collapsableItems", "eventBus", "name", "options", "parameter"]);
|
|
36
|
-
}), 128))
|
|
37
|
-
])
|
|
38
|
-
])) : createCommentVNode("", true);
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
export {
|
|
43
|
-
_sfc_main as default
|
|
44
|
-
};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { defineComponent, useId, createElementBlock, createCommentVNode, openBlock, createElementVNode, unref, renderSlot, Fragment, renderList, createBlock } from "vue";
|
|
2
|
-
import ParameterListItem from "./ParameterListItem.vue.js";
|
|
3
|
-
const _hoisted_1 = {
|
|
4
|
-
key: 0,
|
|
5
|
-
class: "mt-6"
|
|
6
|
-
};
|
|
7
|
-
const _hoisted_2 = ["id"];
|
|
8
|
-
const _hoisted_3 = ["aria-labelledby"];
|
|
9
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
|
-
__name: "ParameterList",
|
|
11
|
-
props: {
|
|
12
|
-
parameters: {},
|
|
13
|
-
breadcrumb: {},
|
|
14
|
-
eventBus: {},
|
|
15
|
-
collapsableItems: { type: Boolean },
|
|
16
|
-
options: {}
|
|
17
|
-
},
|
|
18
|
-
setup(__props) {
|
|
19
|
-
const id = useId();
|
|
20
|
-
return (_ctx, _cache) => {
|
|
21
|
-
return __props.parameters?.length ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
22
|
-
createElementVNode("div", {
|
|
23
|
-
id: unref(id),
|
|
24
|
-
class: "text-c-1 mt-3 mb-3 text-lg leading-[1.45] font-medium"
|
|
25
|
-
}, [
|
|
26
|
-
renderSlot(_ctx.$slots, "title")
|
|
27
|
-
], 8, _hoisted_2),
|
|
28
|
-
createElementVNode("ul", {
|
|
29
|
-
"aria-labelledby": unref(id),
|
|
30
|
-
class: "mb-3 list-none p-0 text-sm"
|
|
31
|
-
}, [
|
|
32
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.parameters, (item) => {
|
|
33
|
-
return openBlock(), createBlock(ParameterListItem, {
|
|
34
|
-
key: item.name,
|
|
35
|
-
breadcrumb: __props.breadcrumb,
|
|
36
|
-
collapsableItems: __props.collapsableItems,
|
|
37
|
-
eventBus: __props.eventBus,
|
|
38
|
-
name: item.name,
|
|
39
|
-
options: __props.options,
|
|
40
|
-
parameter: item
|
|
41
|
-
}, null, 8, ["breadcrumb", "collapsableItems", "eventBus", "name", "options", "parameter"]);
|
|
42
|
-
}), 128))
|
|
43
|
-
], 8, _hoisted_3)
|
|
44
|
-
])) : createCommentVNode("", true);
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
export {
|
|
49
|
-
_sfc_main as default
|
|
50
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import _sfc_main from "./ParameterListItem.vue2.js";
|
|
2
|
-
/* empty css */
|
|
3
|
-
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const ParameterListItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d03ca136"]]);
|
|
5
|
-
export {
|
|
6
|
-
ParameterListItem as default
|
|
7
|
-
};
|