@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,163 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, ref, createElementBlock, openBlock, createVNode, unref, withCtx, createBlock, createCommentVNode, normalizeClass, createElementVNode } from "vue";
|
|
2
|
-
import { Disclosure, DisclosureButton, DisclosurePanel } from "@headlessui/vue";
|
|
3
|
-
import { ScalarWrappingText, ScalarMarkdownSummary, ScalarMarkdown } from "@scalar/components";
|
|
4
|
-
import { ScalarIconCaretRight } from "@scalar/icons";
|
|
5
|
-
import { getResolvedRef } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
6
|
-
import { getRefName } from "../../../components/Content/Schema/helpers/get-ref-name.js";
|
|
7
|
-
import SchemaProperty from "../../../components/Content/Schema/SchemaProperty.vue.js";
|
|
8
|
-
import _sfc_main$1 from "./ContentTypeSelect.vue.js";
|
|
9
|
-
import Headers from "./Headers.vue.js";
|
|
10
|
-
const _hoisted_1 = { class: "parameter-item group/parameter-item" };
|
|
11
|
-
const _hoisted_2 = { class: "parameter-item-name min-w-0" };
|
|
12
|
-
const _hoisted_3 = {
|
|
13
|
-
key: 1,
|
|
14
|
-
class: "flex-1"
|
|
15
|
-
};
|
|
16
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
17
|
-
__name: "ParameterListItem",
|
|
18
|
-
props: {
|
|
19
|
-
parameter: {},
|
|
20
|
-
name: {},
|
|
21
|
-
breadcrumb: {},
|
|
22
|
-
eventBus: {},
|
|
23
|
-
collapsableItems: { type: Boolean },
|
|
24
|
-
options: {}
|
|
25
|
-
},
|
|
26
|
-
setup(__props) {
|
|
27
|
-
const schema = computed(
|
|
28
|
-
() => "schema" in __props.parameter && __props.parameter.schema ? getResolvedRef(__props.parameter.schema) : null
|
|
29
|
-
);
|
|
30
|
-
const content = computed(
|
|
31
|
-
() => "content" in __props.parameter && __props.parameter.content ? __props.parameter.content : null
|
|
32
|
-
);
|
|
33
|
-
const selectedContentType = ref(
|
|
34
|
-
Object.keys(content.value || {})[0] ?? ""
|
|
35
|
-
);
|
|
36
|
-
const headers = computed(
|
|
37
|
-
() => "headers" in __props.parameter && __props.parameter.headers ? __props.parameter.headers : null
|
|
38
|
-
);
|
|
39
|
-
const baseSchema = computed(
|
|
40
|
-
() => content.value ? content.value?.[selectedContentType.value]?.schema : "schema" in __props.parameter && __props.parameter.schema ? __props.parameter.schema : null
|
|
41
|
-
);
|
|
42
|
-
const schemaModelName = computed(() => {
|
|
43
|
-
const raw = baseSchema.value;
|
|
44
|
-
if (!raw) {
|
|
45
|
-
return null;
|
|
46
|
-
}
|
|
47
|
-
if ("$ref" in raw) {
|
|
48
|
-
return getRefName(raw.$ref);
|
|
49
|
-
}
|
|
50
|
-
return null;
|
|
51
|
-
});
|
|
52
|
-
const value = computed(() => {
|
|
53
|
-
const base = baseSchema.value;
|
|
54
|
-
const resolvedBase = content.value ? getResolvedRef(base) : schema.value;
|
|
55
|
-
const deprecated = "deprecated" in __props.parameter ? __props.parameter.deprecated : schema.value?.deprecated;
|
|
56
|
-
const paramExamples = "examples" in __props.parameter ? __props.parameter.examples : {};
|
|
57
|
-
const recordExamples = Object.values({
|
|
58
|
-
...paramExamples,
|
|
59
|
-
...content.value?.[selectedContentType.value]?.examples
|
|
60
|
-
});
|
|
61
|
-
const arrayExamples = schema.value?.examples ?? (recordExamples.length === 0 && "example" in __props.parameter ? [__props.parameter.example] : []);
|
|
62
|
-
const examples = [...recordExamples, ...arrayExamples];
|
|
63
|
-
return {
|
|
64
|
-
...resolvedBase,
|
|
65
|
-
deprecated,
|
|
66
|
-
examples
|
|
67
|
-
};
|
|
68
|
-
});
|
|
69
|
-
const shouldCollapse = computed(
|
|
70
|
-
() => Boolean(__props.collapsableItems && (content.value || headers.value || schema.value))
|
|
71
|
-
);
|
|
72
|
-
return (_ctx, _cache) => {
|
|
73
|
-
return openBlock(), createElementBlock("li", _hoisted_1, [
|
|
74
|
-
createVNode(unref(Disclosure), null, {
|
|
75
|
-
default: withCtx(({ open }) => [
|
|
76
|
-
shouldCollapse.value ? (openBlock(), createBlock(unref(DisclosureButton), {
|
|
77
|
-
key: 0,
|
|
78
|
-
class: normalizeClass(["parameter-item-trigger", { "parameter-item-trigger-open": open }])
|
|
79
|
-
}, {
|
|
80
|
-
default: withCtx(() => [
|
|
81
|
-
createElementVNode("div", _hoisted_2, [
|
|
82
|
-
createVNode(unref(ScalarIconCaretRight), {
|
|
83
|
-
class: normalizeClass(["parameter-item-icon size-3 transition-transform duration-100", { "rotate-90": open }]),
|
|
84
|
-
weight: "bold"
|
|
85
|
-
}, null, 8, ["class"]),
|
|
86
|
-
createElementVNode("div", null, [
|
|
87
|
-
createVNode(unref(ScalarWrappingText), {
|
|
88
|
-
preset: "property",
|
|
89
|
-
text: __props.name
|
|
90
|
-
}, null, 8, ["text"])
|
|
91
|
-
])
|
|
92
|
-
]),
|
|
93
|
-
!open && __props.parameter.description ? (openBlock(), createBlock(unref(ScalarMarkdownSummary), {
|
|
94
|
-
key: 0,
|
|
95
|
-
class: "parameter-item-description-summary min-w-0 flex-1",
|
|
96
|
-
controlled: "",
|
|
97
|
-
value: __props.parameter.description
|
|
98
|
-
}, null, 8, ["value"])) : (openBlock(), createElementBlock("div", _hoisted_3)),
|
|
99
|
-
createElementVNode("div", {
|
|
100
|
-
class: normalizeClass(["absolute top-[calc(9px+0.5lh)] right-0 z-0 flex -translate-y-1/2 items-center", {
|
|
101
|
-
"opacity-0 group-focus-within/parameter-item:opacity-100 group-hover/parameter-item:opacity-100": !open
|
|
102
|
-
}])
|
|
103
|
-
}, [
|
|
104
|
-
_cache[1] || (_cache[1] = createElementVNode("div", { class: "from-b-1 absolute inset-y-0 -left-6 -z-1 w-8 bg-linear-to-l from-40% to-transparent" }, null, -1)),
|
|
105
|
-
shouldCollapse.value && content.value ? (openBlock(), createBlock(_sfc_main$1, {
|
|
106
|
-
key: 0,
|
|
107
|
-
modelValue: selectedContentType.value,
|
|
108
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => selectedContentType.value = $event),
|
|
109
|
-
content: content.value
|
|
110
|
-
}, null, 8, ["modelValue", "content"])) : createCommentVNode("", true)
|
|
111
|
-
], 2)
|
|
112
|
-
]),
|
|
113
|
-
_: 2
|
|
114
|
-
}, 1032, ["class"])) : createCommentVNode("", true),
|
|
115
|
-
createVNode(unref(DisclosurePanel), {
|
|
116
|
-
class: "parameter-item-container parameter-item-container-markdown",
|
|
117
|
-
static: !shouldCollapse.value
|
|
118
|
-
}, {
|
|
119
|
-
default: withCtx(() => [
|
|
120
|
-
shouldCollapse.value && __props.parameter.description ? (openBlock(), createBlock(unref(ScalarMarkdown), {
|
|
121
|
-
key: 0,
|
|
122
|
-
class: "parameter-item-description",
|
|
123
|
-
value: __props.parameter.description
|
|
124
|
-
}, null, 8, ["value"])) : createCommentVNode("", true),
|
|
125
|
-
headers.value ? (openBlock(), createBlock(Headers, {
|
|
126
|
-
key: 1,
|
|
127
|
-
breadcrumb: __props.breadcrumb,
|
|
128
|
-
eventBus: __props.eventBus,
|
|
129
|
-
headers: headers.value,
|
|
130
|
-
orderRequiredPropertiesFirst: __props.options.orderRequiredPropertiesFirst,
|
|
131
|
-
orderSchemaPropertiesBy: __props.options.orderSchemaPropertiesBy
|
|
132
|
-
}, null, 8, ["breadcrumb", "eventBus", "headers", "orderRequiredPropertiesFirst", "orderSchemaPropertiesBy"])) : createCommentVNode("", true),
|
|
133
|
-
createVNode(SchemaProperty, {
|
|
134
|
-
is: "div",
|
|
135
|
-
breadcrumb: __props.breadcrumb,
|
|
136
|
-
compact: "",
|
|
137
|
-
description: shouldCollapse.value ? "" : __props.parameter.description,
|
|
138
|
-
eventBus: __props.eventBus,
|
|
139
|
-
hideWriteOnly: true,
|
|
140
|
-
modelName: schemaModelName.value,
|
|
141
|
-
name: shouldCollapse.value ? "" : __props.name,
|
|
142
|
-
noncollapsible: true,
|
|
143
|
-
options: {
|
|
144
|
-
hideWriteOnly: true,
|
|
145
|
-
orderRequiredPropertiesFirst: __props.options.orderRequiredPropertiesFirst,
|
|
146
|
-
orderSchemaPropertiesBy: __props.options.orderSchemaPropertiesBy
|
|
147
|
-
},
|
|
148
|
-
required: "required" in __props.parameter && __props.parameter.required,
|
|
149
|
-
schema: value.value
|
|
150
|
-
}, null, 8, ["breadcrumb", "description", "eventBus", "modelName", "name", "options", "required", "schema"])
|
|
151
|
-
]),
|
|
152
|
-
_: 1
|
|
153
|
-
}, 8, ["static"])
|
|
154
|
-
]),
|
|
155
|
-
_: 1
|
|
156
|
-
})
|
|
157
|
-
]);
|
|
158
|
-
};
|
|
159
|
-
}
|
|
160
|
-
});
|
|
161
|
-
export {
|
|
162
|
-
_sfc_main as default
|
|
163
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import _sfc_main from "./RequestBody.vue2.js";
|
|
2
|
-
/* empty css */
|
|
3
|
-
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const RequestBody = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-17941e59"]]);
|
|
5
|
-
export {
|
|
6
|
-
RequestBody as default
|
|
7
|
-
};
|
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, ref, createElementBlock, createCommentVNode, openBlock, createElementVNode, renderSlot, createVNode, unref } from "vue";
|
|
2
|
-
import { ScalarMarkdown } from "@scalar/components";
|
|
3
|
-
import { getResolvedRef } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
4
|
-
import { isTypeObject } from "../../../components/Content/Schema/helpers/is-type-object.js";
|
|
5
|
-
import { sortPropertyNames, reduceNamesToObject } from "../../../components/Content/Schema/helpers/sort-property-names.js";
|
|
6
|
-
import _sfc_main$1 from "./ContentTypeSelect.vue.js";
|
|
7
|
-
import Schema from "../../../components/Content/Schema/Schema.vue.js";
|
|
8
|
-
const _hoisted_1 = {
|
|
9
|
-
key: 0,
|
|
10
|
-
"aria-label": "Request Body",
|
|
11
|
-
class: "request-body",
|
|
12
|
-
role: "group"
|
|
13
|
-
};
|
|
14
|
-
const _hoisted_2 = { class: "request-body-header" };
|
|
15
|
-
const _hoisted_3 = { class: "request-body-title" };
|
|
16
|
-
const _hoisted_4 = { class: "flex items-center gap-2" };
|
|
17
|
-
const _hoisted_5 = {
|
|
18
|
-
key: 0,
|
|
19
|
-
class: "request-body-required"
|
|
20
|
-
};
|
|
21
|
-
const _hoisted_6 = {
|
|
22
|
-
key: 0,
|
|
23
|
-
class: "request-body-description"
|
|
24
|
-
};
|
|
25
|
-
const _hoisted_7 = {
|
|
26
|
-
key: 0,
|
|
27
|
-
class: "request-body-schema"
|
|
28
|
-
};
|
|
29
|
-
const _hoisted_8 = {
|
|
30
|
-
key: 1,
|
|
31
|
-
class: "request-body-schema"
|
|
32
|
-
};
|
|
33
|
-
const MAX_VISIBLE_PROPERTIES = 12;
|
|
34
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
35
|
-
__name: "RequestBody",
|
|
36
|
-
props: {
|
|
37
|
-
breadcrumb: {},
|
|
38
|
-
requestBody: {},
|
|
39
|
-
eventBus: {},
|
|
40
|
-
options: {}
|
|
41
|
-
},
|
|
42
|
-
setup(__props) {
|
|
43
|
-
const availableContentTypes = computed(
|
|
44
|
-
() => Object.keys(__props.requestBody?.content ?? {})
|
|
45
|
-
);
|
|
46
|
-
const selectedContentType = ref("application/json");
|
|
47
|
-
if (__props.requestBody?.content) {
|
|
48
|
-
if (availableContentTypes.value[0]) {
|
|
49
|
-
selectedContentType.value = availableContentTypes.value[0];
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
const schema = computed(
|
|
53
|
-
() => getResolvedRef(__props.requestBody?.content?.[selectedContentType.value]?.schema)
|
|
54
|
-
);
|
|
55
|
-
const partitionedSchema = computed(() => {
|
|
56
|
-
if (!schema.value || !isTypeObject(schema.value)) {
|
|
57
|
-
return null;
|
|
58
|
-
}
|
|
59
|
-
const sortedNames = sortPropertyNames(
|
|
60
|
-
schema.value,
|
|
61
|
-
schema.value.discriminator,
|
|
62
|
-
{
|
|
63
|
-
hideReadOnly: true,
|
|
64
|
-
orderSchemaPropertiesBy: __props.options.orderSchemaPropertiesBy,
|
|
65
|
-
orderRequiredPropertiesFirst: __props.options.orderRequiredPropertiesFirst
|
|
66
|
-
}
|
|
67
|
-
);
|
|
68
|
-
if (sortedNames.length <= MAX_VISIBLE_PROPERTIES) {
|
|
69
|
-
return null;
|
|
70
|
-
}
|
|
71
|
-
const { properties, ...schemaMetadata } = schema.value;
|
|
72
|
-
if (!properties) {
|
|
73
|
-
return null;
|
|
74
|
-
}
|
|
75
|
-
return {
|
|
76
|
-
visibleProperties: {
|
|
77
|
-
...schemaMetadata,
|
|
78
|
-
properties: reduceNamesToObject(
|
|
79
|
-
sortedNames.slice(0, MAX_VISIBLE_PROPERTIES),
|
|
80
|
-
properties
|
|
81
|
-
)
|
|
82
|
-
},
|
|
83
|
-
collapsedProperties: {
|
|
84
|
-
...schemaMetadata,
|
|
85
|
-
properties: reduceNamesToObject(
|
|
86
|
-
sortedNames.slice(MAX_VISIBLE_PROPERTIES),
|
|
87
|
-
properties
|
|
88
|
-
)
|
|
89
|
-
}
|
|
90
|
-
};
|
|
91
|
-
});
|
|
92
|
-
const shouldRenderRequestBody = computed(
|
|
93
|
-
() => Object.keys(__props.requestBody?.content ?? {}).length > 0 || __props.requestBody?.description || __props.requestBody?.required
|
|
94
|
-
);
|
|
95
|
-
return (_ctx, _cache) => {
|
|
96
|
-
return __props.requestBody && shouldRenderRequestBody.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
97
|
-
createElementVNode("div", _hoisted_2, [
|
|
98
|
-
createElementVNode("div", _hoisted_3, [
|
|
99
|
-
renderSlot(_ctx.$slots, "title", {}, void 0, true)
|
|
100
|
-
]),
|
|
101
|
-
createElementVNode("div", _hoisted_4, [
|
|
102
|
-
__props.requestBody.required ? (openBlock(), createElementBlock("div", _hoisted_5, " required ")) : createCommentVNode("", true),
|
|
103
|
-
createVNode(_sfc_main$1, {
|
|
104
|
-
modelValue: selectedContentType.value,
|
|
105
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => selectedContentType.value = $event),
|
|
106
|
-
content: __props.requestBody.content
|
|
107
|
-
}, null, 8, ["modelValue", "content"])
|
|
108
|
-
]),
|
|
109
|
-
__props.requestBody.description ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
110
|
-
createVNode(unref(ScalarMarkdown), {
|
|
111
|
-
value: __props.requestBody.description
|
|
112
|
-
}, null, 8, ["value"])
|
|
113
|
-
])) : createCommentVNode("", true)
|
|
114
|
-
]),
|
|
115
|
-
partitionedSchema.value ? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
116
|
-
createVNode(unref(Schema), {
|
|
117
|
-
breadcrumb: __props.breadcrumb,
|
|
118
|
-
compact: "",
|
|
119
|
-
eventBus: __props.eventBus,
|
|
120
|
-
name: "Request Body",
|
|
121
|
-
noncollapsible: "",
|
|
122
|
-
options: {
|
|
123
|
-
hideReadOnly: true,
|
|
124
|
-
orderRequiredPropertiesFirst: __props.options.orderRequiredPropertiesFirst,
|
|
125
|
-
orderSchemaPropertiesBy: __props.options.orderSchemaPropertiesBy
|
|
126
|
-
},
|
|
127
|
-
schema: partitionedSchema.value.visibleProperties
|
|
128
|
-
}, null, 8, ["breadcrumb", "eventBus", "options", "schema"]),
|
|
129
|
-
createVNode(unref(Schema), {
|
|
130
|
-
additionalProperties: "",
|
|
131
|
-
breadcrumb: __props.breadcrumb,
|
|
132
|
-
compact: "",
|
|
133
|
-
eventBus: __props.eventBus,
|
|
134
|
-
name: "Request Body",
|
|
135
|
-
options: {
|
|
136
|
-
hideReadOnly: true,
|
|
137
|
-
orderRequiredPropertiesFirst: __props.options.orderRequiredPropertiesFirst,
|
|
138
|
-
orderSchemaPropertiesBy: __props.options.orderSchemaPropertiesBy
|
|
139
|
-
},
|
|
140
|
-
schema: partitionedSchema.value.collapsedProperties
|
|
141
|
-
}, null, 8, ["breadcrumb", "eventBus", "options", "schema"])
|
|
142
|
-
])) : schema.value ? (openBlock(), createElementBlock("div", _hoisted_8, [
|
|
143
|
-
createVNode(unref(Schema), {
|
|
144
|
-
breadcrumb: __props.breadcrumb,
|
|
145
|
-
compact: "",
|
|
146
|
-
eventBus: __props.eventBus,
|
|
147
|
-
hideReadOnly: true,
|
|
148
|
-
name: "Request Body",
|
|
149
|
-
noncollapsible: "",
|
|
150
|
-
options: {
|
|
151
|
-
hideReadOnly: true,
|
|
152
|
-
orderRequiredPropertiesFirst: __props.options.orderRequiredPropertiesFirst,
|
|
153
|
-
orderSchemaPropertiesBy: __props.options.orderSchemaPropertiesBy
|
|
154
|
-
},
|
|
155
|
-
schema: schema.value
|
|
156
|
-
}, null, 8, ["breadcrumb", "eventBus", "options", "schema"])
|
|
157
|
-
])) : createCommentVNode("", true)
|
|
158
|
-
])) : createCommentVNode("", true);
|
|
159
|
-
};
|
|
160
|
-
}
|
|
161
|
-
});
|
|
162
|
-
export {
|
|
163
|
-
_sfc_main as default
|
|
164
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import _sfc_main from "./Callback.vue2.js";
|
|
2
|
-
/* empty css */
|
|
3
|
-
import _export_sfc from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const Callback = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-df994c31"]]);
|
|
5
|
-
export {
|
|
6
|
-
Callback as default
|
|
7
|
-
};
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { defineComponent, createElementBlock, openBlock, createElementVNode, createVNode, unref, createTextVNode, toDisplayString } from "vue";
|
|
2
|
-
import { ScalarIconCaretRight } from "@scalar/icons";
|
|
3
|
-
import { getResolvedRef } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
4
|
-
import _sfc_main$2 from "../OperationParameters.vue.js";
|
|
5
|
-
import _sfc_main$3 from "../OperationResponses.vue.js";
|
|
6
|
-
import _sfc_main$1 from "../../../../components/HttpMethod/HttpMethod.vue.js";
|
|
7
|
-
const _hoisted_1 = { class: "group callback-list-item" };
|
|
8
|
-
const _hoisted_2 = { class: "font-code bg-b-1 callback-sticky-offset callback-list-item-title sticky flex cursor-pointer flex-row items-start gap-2 border-t py-2.5 text-sm group-open:flex-wrap" };
|
|
9
|
-
const _hoisted_3 = { class: "text-c-1 min-w-0 flex-1 truncate text-sm leading-5 font-bold group-open:whitespace-normal" };
|
|
10
|
-
const _hoisted_4 = { class: "text-c-2 font-normal" };
|
|
11
|
-
const _hoisted_5 = { class: "callback-operation-container flex flex-col gap-2" };
|
|
12
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
13
|
-
__name: "Callback",
|
|
14
|
-
props: {
|
|
15
|
-
callback: {},
|
|
16
|
-
method: {},
|
|
17
|
-
name: {},
|
|
18
|
-
url: {},
|
|
19
|
-
eventBus: {},
|
|
20
|
-
options: {}
|
|
21
|
-
},
|
|
22
|
-
setup(__props) {
|
|
23
|
-
return (_ctx, _cache) => {
|
|
24
|
-
return openBlock(), createElementBlock("details", _hoisted_1, [
|
|
25
|
-
createElementVNode("summary", _hoisted_2, [
|
|
26
|
-
createVNode(unref(ScalarIconCaretRight), {
|
|
27
|
-
class: "callback-list-item-icon text-c-3 group-hover:text-c-1 absolute top-3.5 -left-5 size-3 transition-transform duration-100 group-open:rotate-90",
|
|
28
|
-
weight: "bold"
|
|
29
|
-
}),
|
|
30
|
-
createVNode(unref(_sfc_main$1), {
|
|
31
|
-
as: "span",
|
|
32
|
-
class: "request-method py-0.75 font-bold",
|
|
33
|
-
method: __props.method
|
|
34
|
-
}, null, 8, ["method"]),
|
|
35
|
-
createElementVNode("div", _hoisted_3, [
|
|
36
|
-
createTextVNode(toDisplayString(__props.name) + " ", 1),
|
|
37
|
-
createElementVNode("span", _hoisted_4, toDisplayString(__props.url), 1)
|
|
38
|
-
])
|
|
39
|
-
]),
|
|
40
|
-
createElementVNode("div", _hoisted_5, [
|
|
41
|
-
createVNode(_sfc_main$2, {
|
|
42
|
-
eventBus: __props.eventBus,
|
|
43
|
-
options: __props.options,
|
|
44
|
-
parameters: __props.callback.parameters?.map((param) => unref(getResolvedRef)(param)) ?? [],
|
|
45
|
-
requestBody: unref(getResolvedRef)(__props.callback.requestBody)
|
|
46
|
-
}, null, 8, ["eventBus", "options", "parameters", "requestBody"]),
|
|
47
|
-
createVNode(_sfc_main$3, {
|
|
48
|
-
collapsableItems: false,
|
|
49
|
-
eventBus: __props.eventBus,
|
|
50
|
-
options: __props.options,
|
|
51
|
-
responses: __props.callback.responses
|
|
52
|
-
}, null, 8, ["eventBus", "options", "responses"])
|
|
53
|
-
])
|
|
54
|
-
]);
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
export {
|
|
59
|
-
_sfc_main as default
|
|
60
|
-
};
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, createElementBlock, openBlock, createElementVNode, Fragment, renderList, createBlock } from "vue";
|
|
2
|
-
import { isHttpMethod } from "@scalar/helpers/http/is-http-method";
|
|
3
|
-
import { objectEntries } from "@scalar/helpers/object/object-entries";
|
|
4
|
-
import { getResolvedRef } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
5
|
-
import Callback from "./Callback.vue.js";
|
|
6
|
-
const _hoisted_1 = {
|
|
7
|
-
"aria-label": "Callbacks",
|
|
8
|
-
class: "callbacks-list gap-3",
|
|
9
|
-
role: "group"
|
|
10
|
-
};
|
|
11
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
|
-
__name: "Callbacks",
|
|
13
|
-
props: {
|
|
14
|
-
path: {},
|
|
15
|
-
callbacks: {},
|
|
16
|
-
eventBus: {},
|
|
17
|
-
options: {}
|
|
18
|
-
},
|
|
19
|
-
setup(__props) {
|
|
20
|
-
const flattenedCallbacks = computed(() => {
|
|
21
|
-
const _callbacks = [];
|
|
22
|
-
objectEntries(__props.callbacks).forEach(([name, pathItem]) => {
|
|
23
|
-
objectEntries(getResolvedRef(pathItem)).forEach(([url, methods]) => {
|
|
24
|
-
if (typeof methods !== "object" || !methods) {
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
objectEntries(methods).forEach(([callbackMethod, callback]) => {
|
|
28
|
-
if (!isHttpMethod(callbackMethod)) {
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
31
|
-
_callbacks.push({
|
|
32
|
-
name,
|
|
33
|
-
url,
|
|
34
|
-
method: callbackMethod,
|
|
35
|
-
callback
|
|
36
|
-
});
|
|
37
|
-
});
|
|
38
|
-
});
|
|
39
|
-
});
|
|
40
|
-
return _callbacks;
|
|
41
|
-
});
|
|
42
|
-
return (_ctx, _cache) => {
|
|
43
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
44
|
-
_cache[0] || (_cache[0] = createElementVNode("div", { class: "callbacks-title text-c-1 my-3 text-lg font-medium" }, " Callbacks ", -1)),
|
|
45
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(flattenedCallbacks.value, ({ callback, method, name, url }) => {
|
|
46
|
-
return openBlock(), createBlock(Callback, {
|
|
47
|
-
key: `${name}-${url}-${method}`,
|
|
48
|
-
callback,
|
|
49
|
-
eventBus: __props.eventBus,
|
|
50
|
-
method,
|
|
51
|
-
name,
|
|
52
|
-
options: __props.options,
|
|
53
|
-
path: __props.path,
|
|
54
|
-
url
|
|
55
|
-
}, null, 8, ["callback", "eventBus", "method", "name", "options", "path", "url"]);
|
|
56
|
-
}), 128))
|
|
57
|
-
]);
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
});
|
|
61
|
-
export {
|
|
62
|
-
_sfc_main as default
|
|
63
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { getSecuritySchemes } from "@scalar/api-client/v2/blocks/operation-block";
|
|
2
|
-
import { getSelectedSecurity } from "@scalar/api-client/v2/features/operation";
|
|
3
|
-
const getKey = (requirement) => Object.keys(requirement).sort().join(",");
|
|
4
|
-
const filterSelectedSecurity = (document, operation, selectedSecurityDocument, selectedSecurityOperation, securitySchemes = {}) => {
|
|
5
|
-
const securityRequirements = operation?.security ?? document.security ?? [];
|
|
6
|
-
const selectedSecurity = getSelectedSecurity(
|
|
7
|
-
selectedSecurityDocument,
|
|
8
|
-
selectedSecurityOperation,
|
|
9
|
-
securityRequirements
|
|
10
|
-
);
|
|
11
|
-
const requirementSet = new Set(securityRequirements.map((r) => getKey(r)));
|
|
12
|
-
const selectedRequirement = selectedSecurity.selectedSchemes[selectedSecurity.selectedIndex];
|
|
13
|
-
if (selectedRequirement && requirementSet.has(getKey(selectedRequirement))) {
|
|
14
|
-
return getSecuritySchemes(securitySchemes, [selectedRequirement]);
|
|
15
|
-
}
|
|
16
|
-
for (const selected of selectedSecurity.selectedSchemes) {
|
|
17
|
-
if (requirementSet.has(getKey(selected))) {
|
|
18
|
-
return getSecuritySchemes(securitySchemes, [selected]);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
if (operation?.security?.length) {
|
|
22
|
-
return getSecuritySchemes(securitySchemes, securityRequirements.slice(0, 1));
|
|
23
|
-
}
|
|
24
|
-
return [];
|
|
25
|
-
};
|
|
26
|
-
export {
|
|
27
|
-
filterSelectedSecurity
|
|
28
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { getResolvedRef } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
2
|
-
const getFirstServer = (...availableServers) => {
|
|
3
|
-
for (const serverSource of availableServers) {
|
|
4
|
-
if (!serverSource) {
|
|
5
|
-
continue;
|
|
6
|
-
}
|
|
7
|
-
if (!Array.isArray(serverSource)) {
|
|
8
|
-
const resolvedServer = getResolvedRef(serverSource);
|
|
9
|
-
if (resolvedServer?.url) {
|
|
10
|
-
return resolvedServer;
|
|
11
|
-
}
|
|
12
|
-
continue;
|
|
13
|
-
}
|
|
14
|
-
for (const server of serverSource) {
|
|
15
|
-
const resolvedServer = getResolvedRef(server);
|
|
16
|
-
if (resolvedServer?.url) {
|
|
17
|
-
return resolvedServer;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
return null;
|
|
22
|
-
};
|
|
23
|
-
export {
|
|
24
|
-
getFirstServer
|
|
25
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import _sfc_main from "./ClassicLayout.vue2.js";
|
|
2
|
-
/* empty css */
|
|
3
|
-
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const ClassicLayout = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-55addca4"]]);
|
|
5
|
-
export {
|
|
6
|
-
ClassicLayout as default
|
|
7
|
-
};
|