@scalar/api-reference 1.49.0 → 1.49.2
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 +14 -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-DAm6yQX0.js +1373 -0
- package/dist/MobileHeader-DAm6yQX0.js.map +1 -0
- package/dist/Operation-CvpVIkc3.js +3829 -0
- package/dist/Operation-CvpVIkc3.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 +40799 -34683
- 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/Badge/index.d.ts +1 -1
- package/dist/components/Content/Auth/index.d.ts +1 -1
- package/dist/components/Content/Models/index.d.ts +2 -2
- 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/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/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/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/ParameterListItem.vue.d.ts.map +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/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/index.d.ts +8 -8
- package/dist/helpers/index.js +3 -24
- 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-DJwsRvMU.js +1686 -0
- package/dist/src-DJwsRvMU.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 +6714 -7276
- 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 -742
- 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 -171
- 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 -76
- 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 -146
- 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 -236
- 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 -56
- 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 -106
- 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 -51
- 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 -109
- package/dist/helpers/lazy-bus.js +0 -195
- 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,26 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, createElementBlock, openBlock, normalizeStyle, renderSlot } from "vue";
|
|
2
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
3
|
-
__name: "Badge",
|
|
4
|
-
props: {
|
|
5
|
-
color: {}
|
|
6
|
-
},
|
|
7
|
-
setup(__props) {
|
|
8
|
-
const badgeStyle = computed(
|
|
9
|
-
() => __props.color ? {
|
|
10
|
-
"--badge-background-color": __props.color,
|
|
11
|
-
"--badge-text-color": `color-mix(in srgb, ${__props.color}, black 40%)`
|
|
12
|
-
} : {}
|
|
13
|
-
);
|
|
14
|
-
return (_ctx, _cache) => {
|
|
15
|
-
return openBlock(), createElementBlock("div", {
|
|
16
|
-
class: "badge",
|
|
17
|
-
style: normalizeStyle(badgeStyle.value)
|
|
18
|
-
}, [
|
|
19
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
20
|
-
], 4);
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
export {
|
|
25
|
-
_sfc_main as default
|
|
26
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { createElementBlock, openBlock, createElementVNode, renderSlot } from "vue";
|
|
2
|
-
/* empty css */
|
|
3
|
-
import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const _sfc_main = {};
|
|
5
|
-
const _hoisted_1 = { class: "references-classic-header-container" };
|
|
6
|
-
const _hoisted_2 = { class: "references-classic-header" };
|
|
7
|
-
const _hoisted_3 = { class: "references-classic-header-content" };
|
|
8
|
-
function _sfc_render(_ctx, _cache) {
|
|
9
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
10
|
-
createElementVNode("div", _hoisted_2, [
|
|
11
|
-
createElementVNode("div", _hoisted_3, [
|
|
12
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
13
|
-
]),
|
|
14
|
-
renderSlot(_ctx.$slots, "dark-mode-toggle", {}, void 0, true)
|
|
15
|
-
])
|
|
16
|
-
]);
|
|
17
|
-
}
|
|
18
|
-
const ClassicHeader = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-8a3822ca"]]);
|
|
19
|
-
export {
|
|
20
|
-
ClassicHeader as default
|
|
21
|
-
};
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, watch, createBlock, createCommentVNode, openBlock, unref } from "vue";
|
|
2
|
-
import { AuthSelector } from "@scalar/api-client/v2/blocks/scalar-auth-selector-block";
|
|
3
|
-
import { getSecurityRequirements, getSelectedSecurity } from "@scalar/api-client/v2/features/operation";
|
|
4
|
-
import { getDefaultSecurity } from "./helpers/get-default-security.js";
|
|
5
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
|
-
__name: "Auth",
|
|
7
|
-
props: {
|
|
8
|
-
options: {},
|
|
9
|
-
authStore: {},
|
|
10
|
-
document: {},
|
|
11
|
-
eventBus: {},
|
|
12
|
-
securitySchemes: {},
|
|
13
|
-
selectedServer: {},
|
|
14
|
-
environment: {}
|
|
15
|
-
},
|
|
16
|
-
setup(__props) {
|
|
17
|
-
const securityRequirements = computed(
|
|
18
|
-
() => getSecurityRequirements(__props.document?.security)
|
|
19
|
-
);
|
|
20
|
-
const documentSelectedSecurity = computed(
|
|
21
|
-
() => __props.authStore.getAuthSelectedSchemas({
|
|
22
|
-
type: "document",
|
|
23
|
-
documentName: __props.document?.["x-scalar-navigation"]?.name ?? ""
|
|
24
|
-
})
|
|
25
|
-
);
|
|
26
|
-
const selectedSecurity = computed(
|
|
27
|
-
() => getSelectedSecurity(
|
|
28
|
-
documentSelectedSecurity.value,
|
|
29
|
-
void 0,
|
|
30
|
-
securityRequirements.value
|
|
31
|
-
)
|
|
32
|
-
);
|
|
33
|
-
watch(
|
|
34
|
-
documentSelectedSecurity,
|
|
35
|
-
(newDocumentSelectedSecurity) => {
|
|
36
|
-
if (typeof newDocumentSelectedSecurity !== "undefined") {
|
|
37
|
-
return;
|
|
38
|
-
}
|
|
39
|
-
const defaultSecurity = getDefaultSecurity(
|
|
40
|
-
securityRequirements.value,
|
|
41
|
-
__props.options.authentication?.preferredSecurityScheme,
|
|
42
|
-
__props.securitySchemes
|
|
43
|
-
);
|
|
44
|
-
if (!defaultSecurity) {
|
|
45
|
-
return;
|
|
46
|
-
}
|
|
47
|
-
__props.eventBus.emit("auth:update:selected-security-schemes", {
|
|
48
|
-
selectedRequirements: [defaultSecurity],
|
|
49
|
-
newSchemes: [],
|
|
50
|
-
meta: { type: "document" }
|
|
51
|
-
});
|
|
52
|
-
},
|
|
53
|
-
{ immediate: true }
|
|
54
|
-
);
|
|
55
|
-
return (_ctx, _cache) => {
|
|
56
|
-
return Object.keys(__props.securitySchemes).length ? (openBlock(), createBlock(unref(AuthSelector), {
|
|
57
|
-
key: 0,
|
|
58
|
-
createAnySecurityScheme: __props.options.authentication?.createAnySecurityScheme ?? false,
|
|
59
|
-
environment: __props.environment,
|
|
60
|
-
eventBus: __props.eventBus,
|
|
61
|
-
isStatic: "",
|
|
62
|
-
layout: "reference",
|
|
63
|
-
meta: { type: "document" },
|
|
64
|
-
persistAuth: __props.options.persistAuth,
|
|
65
|
-
proxyUrl: __props.options.proxyUrl ?? "",
|
|
66
|
-
securityRequirements: securityRequirements.value,
|
|
67
|
-
securitySchemes: __props.securitySchemes,
|
|
68
|
-
selectedSecurity: selectedSecurity.value,
|
|
69
|
-
server: __props.selectedServer,
|
|
70
|
-
title: "Authentication"
|
|
71
|
-
}, null, 8, ["createAnySecurityScheme", "environment", "eventBus", "persistAuth", "proxyUrl", "securityRequirements", "securitySchemes", "selectedSecurity", "server"])) : createCommentVNode("", true);
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
export {
|
|
76
|
-
_sfc_main as default
|
|
77
|
-
};
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { getResolvedRef } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
2
|
-
import { unpackProxyObject } from "@scalar/workspace-store/helpers/unpack-proxy";
|
|
3
|
-
const getDefaultScopes = (scheme) => {
|
|
4
|
-
if (!scheme || scheme.type !== "oauth2") {
|
|
5
|
-
return [];
|
|
6
|
-
}
|
|
7
|
-
return scheme["x-default-scopes"] ?? [];
|
|
8
|
-
};
|
|
9
|
-
const hydrateSecurityRequirement = (requirement, securitySchemes) => {
|
|
10
|
-
const hydratedRequirement = {};
|
|
11
|
-
for (const [schemeName, scopes] of Object.entries(unpackProxyObject(requirement, { depth: 1 }) ?? requirement)) {
|
|
12
|
-
if (Array.isArray(scopes) && scopes.length > 0) {
|
|
13
|
-
hydratedRequirement[schemeName] = scopes;
|
|
14
|
-
continue;
|
|
15
|
-
}
|
|
16
|
-
const scheme = getResolvedRef(securitySchemes[schemeName]);
|
|
17
|
-
hydratedRequirement[schemeName] = getDefaultScopes(scheme);
|
|
18
|
-
}
|
|
19
|
-
return hydratedRequirement;
|
|
20
|
-
};
|
|
21
|
-
const addSchemeToRequirement = (acc, schemeName, securitySchemes) => {
|
|
22
|
-
const scheme = getResolvedRef(securitySchemes[schemeName]);
|
|
23
|
-
acc[schemeName] = getDefaultScopes(scheme);
|
|
24
|
-
};
|
|
25
|
-
const buildSecurityRequirementFromPreferred = (preferredSecurityScheme, securitySchemes) => {
|
|
26
|
-
if (!Array.isArray(preferredSecurityScheme)) {
|
|
27
|
-
const scheme = getResolvedRef(securitySchemes[preferredSecurityScheme]);
|
|
28
|
-
return { [preferredSecurityScheme]: getDefaultScopes(scheme) };
|
|
29
|
-
}
|
|
30
|
-
const requirement = {};
|
|
31
|
-
for (const item of preferredSecurityScheme) {
|
|
32
|
-
if (Array.isArray(item)) {
|
|
33
|
-
for (const schemeName of item) {
|
|
34
|
-
addSchemeToRequirement(requirement, schemeName, securitySchemes);
|
|
35
|
-
}
|
|
36
|
-
} else {
|
|
37
|
-
addSchemeToRequirement(requirement, item, securitySchemes);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
return requirement;
|
|
41
|
-
};
|
|
42
|
-
const getDefaultSecurity = (securityRequirements, preferredSecurityScheme, securitySchemes) => {
|
|
43
|
-
if (preferredSecurityScheme) {
|
|
44
|
-
return buildSecurityRequirementFromPreferred(preferredSecurityScheme, securitySchemes);
|
|
45
|
-
}
|
|
46
|
-
const firstRequirement = securityRequirements[0];
|
|
47
|
-
if (firstRequirement) {
|
|
48
|
-
return hydrateSecurityRequirement(firstRequirement, securitySchemes);
|
|
49
|
-
}
|
|
50
|
-
return null;
|
|
51
|
-
};
|
|
52
|
-
export {
|
|
53
|
-
getDefaultScopes,
|
|
54
|
-
getDefaultSecurity
|
|
55
|
-
};
|
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, onMounted, createElementBlock, openBlock, Fragment, createVNode, createElementVNode, unref, renderSlot, createBlock, createCommentVNode, withCtx } from "vue";
|
|
2
|
-
import { generateClientOptions } from "@scalar/api-client/v2/blocks/operation-code-sample";
|
|
3
|
-
import { mergeSecurity } from "@scalar/api-client/v2/blocks/scalar-auth-selector-block";
|
|
4
|
-
import { mapHiddenClientsConfig } from "@scalar/api-client/v2/features/modal";
|
|
5
|
-
import { getSelectedServer } from "@scalar/api-client/v2/features/operation";
|
|
6
|
-
import { getServers } from "@scalar/api-client/v2/helpers";
|
|
7
|
-
import { ScalarErrorBoundary } from "@scalar/components";
|
|
8
|
-
import _sfc_main$4 from "./Operations/TraversedEntry.vue.js";
|
|
9
|
-
import { scheduleInitialLoadComplete, firstLazyLoadComplete } from "../../helpers/lazy-bus.js";
|
|
10
|
-
import { getXKeysFromObject } from "../../features/specification-extension/helpers.js";
|
|
11
|
-
import SectionFlare from "../SectionFlare/SectionFlare.vue.js";
|
|
12
|
-
import _sfc_main$1 from "../../blocks/scalar-info-block/components/InfoBlock.vue.js";
|
|
13
|
-
import IntroductionCardItem from "../../blocks/scalar-info-block/components/IntroductionCardItem.vue.js";
|
|
14
|
-
import _sfc_main$2 from "../../blocks/scalar-server-selector-block/components/ServerSelector.vue.js";
|
|
15
|
-
import _sfc_main$3 from "./Auth/Auth.vue.js";
|
|
16
|
-
import ClientSelector from "../../blocks/scalar-client-selector-block/components/ClientSelector.vue.js";
|
|
17
|
-
import _sfc_main$5 from "../RenderPlugins/RenderPlugins.vue.js";
|
|
18
|
-
const _hoisted_1 = { class: "narrow-references-container" };
|
|
19
|
-
const _hoisted_2 = {
|
|
20
|
-
key: 1,
|
|
21
|
-
class: "h-dvh"
|
|
22
|
-
};
|
|
23
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
24
|
-
__name: "Content",
|
|
25
|
-
props: {
|
|
26
|
-
infoSectionId: {},
|
|
27
|
-
options: {},
|
|
28
|
-
document: {},
|
|
29
|
-
authStore: {},
|
|
30
|
-
xScalarDefaultClient: {},
|
|
31
|
-
items: {},
|
|
32
|
-
expandedItems: {},
|
|
33
|
-
eventBus: {},
|
|
34
|
-
environment: {},
|
|
35
|
-
headingSlugGenerator: { type: Function }
|
|
36
|
-
},
|
|
37
|
-
setup(__props) {
|
|
38
|
-
const clientOptions = computed(
|
|
39
|
-
() => generateClientOptions(mapHiddenClientsConfig(__props.options.hiddenClients))
|
|
40
|
-
);
|
|
41
|
-
const documentExtensions = computed(() => getXKeysFromObject(__props.document));
|
|
42
|
-
const infoExtensions = computed(() => getXKeysFromObject(__props.document?.info));
|
|
43
|
-
const servers = computed(
|
|
44
|
-
() => getServers(__props.options?.servers ?? __props.document?.servers, {
|
|
45
|
-
baseServerUrl: __props.options?.baseServerURL,
|
|
46
|
-
documentUrl: __props.document?.["x-scalar-original-source-url"]
|
|
47
|
-
})
|
|
48
|
-
);
|
|
49
|
-
const selectedServer = computed(
|
|
50
|
-
() => getSelectedServer(servers.value, __props.document?.["x-scalar-selected-server"])
|
|
51
|
-
);
|
|
52
|
-
const securitySchemes = computed(
|
|
53
|
-
() => mergeSecurity(
|
|
54
|
-
__props.document?.components?.securitySchemes,
|
|
55
|
-
__props.options.authentication?.securitySchemes,
|
|
56
|
-
__props.authStore,
|
|
57
|
-
__props.document?.["x-scalar-navigation"]?.name ?? ""
|
|
58
|
-
)
|
|
59
|
-
);
|
|
60
|
-
onMounted(() => {
|
|
61
|
-
scheduleInitialLoadComplete();
|
|
62
|
-
});
|
|
63
|
-
return (_ctx, _cache) => {
|
|
64
|
-
return openBlock(), createElementBlock(Fragment, null, [
|
|
65
|
-
createVNode(unref(SectionFlare)),
|
|
66
|
-
createElementVNode("div", _hoisted_1, [
|
|
67
|
-
renderSlot(_ctx.$slots, "start"),
|
|
68
|
-
createVNode(unref(_sfc_main$1), {
|
|
69
|
-
id: __props.infoSectionId,
|
|
70
|
-
documentDownloadType: __props.options.documentDownloadType,
|
|
71
|
-
documentExtensions: documentExtensions.value,
|
|
72
|
-
documentUrl: __props.document?.["x-scalar-original-source-url"],
|
|
73
|
-
eventBus: __props.eventBus,
|
|
74
|
-
externalDocs: __props.document?.externalDocs,
|
|
75
|
-
headingSlugGenerator: __props.headingSlugGenerator,
|
|
76
|
-
info: __props.document?.info,
|
|
77
|
-
infoExtensions: infoExtensions.value,
|
|
78
|
-
layout: __props.options.layout,
|
|
79
|
-
oasVersion: __props.document?.["x-original-oas-version"]
|
|
80
|
-
}, {
|
|
81
|
-
selectors: withCtx(() => [
|
|
82
|
-
createVNode(unref(ScalarErrorBoundary), null, {
|
|
83
|
-
default: withCtx(() => [
|
|
84
|
-
servers.value?.length ? (openBlock(), createBlock(unref(IntroductionCardItem), {
|
|
85
|
-
key: 0,
|
|
86
|
-
class: "scalar-reference-intro-server scalar-client introduction-card-item text-base leading-normal [--scalar-address-bar-height:0px]"
|
|
87
|
-
}, {
|
|
88
|
-
default: withCtx(() => [
|
|
89
|
-
createVNode(unref(_sfc_main$2), {
|
|
90
|
-
eventBus: __props.eventBus,
|
|
91
|
-
selectedServer: selectedServer.value,
|
|
92
|
-
servers: servers.value
|
|
93
|
-
}, null, 8, ["eventBus", "selectedServer", "servers"])
|
|
94
|
-
]),
|
|
95
|
-
_: 1
|
|
96
|
-
})) : createCommentVNode("", true)
|
|
97
|
-
]),
|
|
98
|
-
_: 1
|
|
99
|
-
}),
|
|
100
|
-
createVNode(unref(ScalarErrorBoundary), null, {
|
|
101
|
-
default: withCtx(() => [
|
|
102
|
-
__props.document && !__props.options.hideTestRequestButton ? (openBlock(), createBlock(unref(IntroductionCardItem), {
|
|
103
|
-
key: 0,
|
|
104
|
-
class: "scalar-reference-intro-auth scalar-client introduction-card-item leading-normal"
|
|
105
|
-
}, {
|
|
106
|
-
default: withCtx(() => [
|
|
107
|
-
createVNode(unref(_sfc_main$3), {
|
|
108
|
-
authStore: __props.authStore,
|
|
109
|
-
document: __props.document,
|
|
110
|
-
environment: __props.environment,
|
|
111
|
-
eventBus: __props.eventBus,
|
|
112
|
-
options: __props.options,
|
|
113
|
-
securitySchemes: securitySchemes.value,
|
|
114
|
-
selectedServer: selectedServer.value
|
|
115
|
-
}, null, 8, ["authStore", "document", "environment", "eventBus", "options", "securitySchemes", "selectedServer"])
|
|
116
|
-
]),
|
|
117
|
-
_: 1
|
|
118
|
-
})) : createCommentVNode("", true)
|
|
119
|
-
]),
|
|
120
|
-
_: 1
|
|
121
|
-
}),
|
|
122
|
-
createVNode(unref(ScalarErrorBoundary), null, {
|
|
123
|
-
default: withCtx(() => [
|
|
124
|
-
clientOptions.value.length ? (openBlock(), createBlock(unref(IntroductionCardItem), {
|
|
125
|
-
key: 0,
|
|
126
|
-
class: "introduction-card-item scalar-reference-intro-clients"
|
|
127
|
-
}, {
|
|
128
|
-
default: withCtx(() => [
|
|
129
|
-
createVNode(unref(ClientSelector), {
|
|
130
|
-
class: "introduction-card-item scalar-reference-intro-clients",
|
|
131
|
-
clientOptions: clientOptions.value,
|
|
132
|
-
eventBus: __props.eventBus,
|
|
133
|
-
selectedClient: __props.xScalarDefaultClient,
|
|
134
|
-
xScalarSdkInstallation: __props.document?.info?.["x-scalar-sdk-installation"]
|
|
135
|
-
}, null, 8, ["clientOptions", "eventBus", "selectedClient", "xScalarSdkInstallation"])
|
|
136
|
-
]),
|
|
137
|
-
_: 1
|
|
138
|
-
})) : createCommentVNode("", true)
|
|
139
|
-
]),
|
|
140
|
-
_: 1
|
|
141
|
-
})
|
|
142
|
-
]),
|
|
143
|
-
_: 1
|
|
144
|
-
}, 8, ["id", "documentDownloadType", "documentExtensions", "documentUrl", "eventBus", "externalDocs", "headingSlugGenerator", "info", "infoExtensions", "layout", "oasVersion"]),
|
|
145
|
-
__props.items.length && __props.document ? (openBlock(), createBlock(_sfc_main$4, {
|
|
146
|
-
key: 0,
|
|
147
|
-
authStore: __props.authStore,
|
|
148
|
-
clientOptions: clientOptions.value,
|
|
149
|
-
document: __props.document,
|
|
150
|
-
entries: __props.items,
|
|
151
|
-
eventBus: __props.eventBus,
|
|
152
|
-
expandedItems: __props.expandedItems,
|
|
153
|
-
options: __props.options,
|
|
154
|
-
securitySchemes: securitySchemes.value,
|
|
155
|
-
selectedClient: __props.xScalarDefaultClient,
|
|
156
|
-
selectedServer: selectedServer.value
|
|
157
|
-
}, null, 8, ["authStore", "clientOptions", "document", "entries", "eventBus", "expandedItems", "options", "securitySchemes", "selectedClient", "selectedServer"])) : createCommentVNode("", true),
|
|
158
|
-
createVNode(unref(_sfc_main$5), {
|
|
159
|
-
options: __props.options,
|
|
160
|
-
viewName: "content.end"
|
|
161
|
-
}, null, 8, ["options"]),
|
|
162
|
-
renderSlot(_ctx.$slots, "end"),
|
|
163
|
-
!unref(firstLazyLoadComplete) ? (openBlock(), createElementBlock("div", _hoisted_2)) : createCommentVNode("", true)
|
|
164
|
-
])
|
|
165
|
-
], 64);
|
|
166
|
-
};
|
|
167
|
-
}
|
|
168
|
-
});
|
|
169
|
-
export {
|
|
170
|
-
_sfc_main as default
|
|
171
|
-
};
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { defineComponent, useTemplateRef, createElementBlock, createCommentVNode, openBlock, createBlock } from "vue";
|
|
2
|
-
import { useIntersection } from "../../../hooks/use-intersection.js";
|
|
3
|
-
import ClassicLayout from "./components/ClassicLayout.vue.js";
|
|
4
|
-
import _sfc_main$1 from "./components/ModernLayout.vue.js";
|
|
5
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
|
-
__name: "Model",
|
|
7
|
-
props: {
|
|
8
|
-
id: {},
|
|
9
|
-
name: {},
|
|
10
|
-
options: {},
|
|
11
|
-
schema: {},
|
|
12
|
-
isCollapsed: { type: Boolean },
|
|
13
|
-
eventBus: {}
|
|
14
|
-
},
|
|
15
|
-
setup(__props) {
|
|
16
|
-
const section = useTemplateRef("section");
|
|
17
|
-
useIntersection(section, () => __props.eventBus?.emit("intersecting:nav-item", { id: __props.id }));
|
|
18
|
-
return (_ctx, _cache) => {
|
|
19
|
-
return __props.schema ? (openBlock(), createElementBlock("div", {
|
|
20
|
-
key: 0,
|
|
21
|
-
ref_key: "section",
|
|
22
|
-
ref: section
|
|
23
|
-
}, [
|
|
24
|
-
__props.options.layout === "classic" ? (openBlock(), createBlock(ClassicLayout, {
|
|
25
|
-
key: 0,
|
|
26
|
-
id: __props.id,
|
|
27
|
-
eventBus: __props.eventBus,
|
|
28
|
-
isCollapsed: __props.isCollapsed,
|
|
29
|
-
name: __props.name,
|
|
30
|
-
options: __props.options,
|
|
31
|
-
schema: __props.schema
|
|
32
|
-
}, null, 8, ["id", "eventBus", "isCollapsed", "name", "options", "schema"])) : (openBlock(), createBlock(_sfc_main$1, {
|
|
33
|
-
key: 1,
|
|
34
|
-
id: __props.id,
|
|
35
|
-
eventBus: __props.eventBus,
|
|
36
|
-
isCollapsed: __props.isCollapsed,
|
|
37
|
-
name: __props.name,
|
|
38
|
-
options: __props.options,
|
|
39
|
-
schema: __props.schema
|
|
40
|
-
}, null, 8, ["id", "eventBus", "isCollapsed", "name", "options", "schema"]))
|
|
41
|
-
], 512)) : createCommentVNode("", true);
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
export {
|
|
46
|
-
_sfc_main as default
|
|
47
|
-
};
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import { defineComponent, createBlock, openBlock, withCtx, createVNode, unref, renderSlot, createTextVNode } from "vue";
|
|
2
|
-
import SectionContainer from "../../Section/SectionContainer.vue.js";
|
|
3
|
-
import SectionContainerAccordion from "../../Section/SectionContainerAccordion.vue.js";
|
|
4
|
-
import SectionHeaderTag from "../../Section/SectionHeaderTag.vue.js";
|
|
5
|
-
import ShowMoreButton from "../../ShowMoreButton.vue.js";
|
|
6
|
-
import Section from "../../Section/Section.vue.js";
|
|
7
|
-
import SectionHeader from "../../Section/SectionHeader.vue.js";
|
|
8
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
|
-
__name: "ModelTag",
|
|
10
|
-
props: {
|
|
11
|
-
id: {},
|
|
12
|
-
isCollapsed: { type: Boolean },
|
|
13
|
-
eventBus: {},
|
|
14
|
-
layout: {}
|
|
15
|
-
},
|
|
16
|
-
setup(__props) {
|
|
17
|
-
return (_ctx, _cache) => {
|
|
18
|
-
return __props.layout === "modern" ? (openBlock(), createBlock(SectionContainer, {
|
|
19
|
-
key: 0,
|
|
20
|
-
id: "model"
|
|
21
|
-
}, {
|
|
22
|
-
default: withCtx(() => [
|
|
23
|
-
createVNode(unref(Section), {
|
|
24
|
-
id: __props.id,
|
|
25
|
-
"aria-label": "Models",
|
|
26
|
-
onIntersecting: _cache[1] || (_cache[1] = () => __props.eventBus?.emit("intersecting:nav-item", { id: __props.id }))
|
|
27
|
-
}, {
|
|
28
|
-
default: withCtx(() => [
|
|
29
|
-
createVNode(unref(SectionHeader), null, {
|
|
30
|
-
default: withCtx(() => [
|
|
31
|
-
createVNode(SectionHeaderTag, { level: 2 }, {
|
|
32
|
-
default: withCtx(() => [..._cache[3] || (_cache[3] = [
|
|
33
|
-
createTextVNode(" Models ", -1)
|
|
34
|
-
])]),
|
|
35
|
-
_: 1
|
|
36
|
-
})
|
|
37
|
-
]),
|
|
38
|
-
_: 1
|
|
39
|
-
}),
|
|
40
|
-
!__props.isCollapsed ? renderSlot(_ctx.$slots, "default", { key: 0 }) : (openBlock(), createBlock(ShowMoreButton, {
|
|
41
|
-
key: 1,
|
|
42
|
-
id: __props.id,
|
|
43
|
-
class: "top-0",
|
|
44
|
-
onClick: _cache[0] || (_cache[0] = () => __props.eventBus.emit("toggle:nav-item", { id: __props.id, open: true }))
|
|
45
|
-
}, null, 8, ["id"]))
|
|
46
|
-
]),
|
|
47
|
-
_: 3
|
|
48
|
-
}, 8, ["id"])
|
|
49
|
-
]),
|
|
50
|
-
_: 3
|
|
51
|
-
})) : (openBlock(), createBlock(SectionContainerAccordion, {
|
|
52
|
-
key: 1,
|
|
53
|
-
"aria-label": "Models",
|
|
54
|
-
class: "pb-12",
|
|
55
|
-
modelValue: !__props.isCollapsed,
|
|
56
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = () => __props.eventBus?.emit("toggle:nav-item", { id: __props.id, open: __props.isCollapsed }))
|
|
57
|
-
}, {
|
|
58
|
-
title: withCtx(() => [
|
|
59
|
-
createVNode(unref(SectionHeader), { level: 2 }, {
|
|
60
|
-
default: withCtx(() => [..._cache[4] || (_cache[4] = [
|
|
61
|
-
createTextVNode("Models", -1)
|
|
62
|
-
])]),
|
|
63
|
-
_: 1
|
|
64
|
-
})
|
|
65
|
-
]),
|
|
66
|
-
default: withCtx(() => [
|
|
67
|
-
renderSlot(_ctx.$slots, "default")
|
|
68
|
-
]),
|
|
69
|
-
_: 3
|
|
70
|
-
}, 8, ["modelValue"]));
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
export {
|
|
75
|
-
_sfc_main as default
|
|
76
|
-
};
|
|
@@ -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-e4ca3c0f"]]);
|
|
5
|
-
export {
|
|
6
|
-
ClassicLayout as default
|
|
7
|
-
};
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { defineComponent, createBlock, openBlock, unref, withCtx, createElementBlock, Fragment, renderList, createVNode } from "vue";
|
|
2
|
-
import { resolve } from "@scalar/workspace-store/resolve";
|
|
3
|
-
import SectionAccordion from "../../../Section/SectionAccordion.vue.js";
|
|
4
|
-
import SchemaProperty from "../../Schema/SchemaProperty.vue.js";
|
|
5
|
-
import _sfc_main$1 from "../../../Anchor/Anchor.vue.js";
|
|
6
|
-
import SectionHeaderTag from "../../../Section/SectionHeaderTag.vue.js";
|
|
7
|
-
import SchemaHeading from "../../Schema/SchemaHeading.vue.js";
|
|
8
|
-
const _hoisted_1 = {
|
|
9
|
-
key: 0,
|
|
10
|
-
class: "properties"
|
|
11
|
-
};
|
|
12
|
-
const _hoisted_2 = { key: 1 };
|
|
13
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
14
|
-
__name: "ClassicLayout",
|
|
15
|
-
props: {
|
|
16
|
-
id: {},
|
|
17
|
-
name: {},
|
|
18
|
-
schema: {},
|
|
19
|
-
isCollapsed: { type: Boolean },
|
|
20
|
-
eventBus: {},
|
|
21
|
-
options: {}
|
|
22
|
-
},
|
|
23
|
-
setup(__props) {
|
|
24
|
-
return (_ctx, _cache) => {
|
|
25
|
-
return openBlock(), createBlock(unref(SectionAccordion), {
|
|
26
|
-
"aria-label": __props.schema.title ?? __props.name,
|
|
27
|
-
modelValue: !__props.isCollapsed,
|
|
28
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = (value) => __props.eventBus?.emit("toggle:nav-item", { id: __props.id, open: value }))
|
|
29
|
-
}, {
|
|
30
|
-
title: withCtx(() => [
|
|
31
|
-
createVNode(unref(_sfc_main$1), {
|
|
32
|
-
class: "reference-models-anchor",
|
|
33
|
-
eventBus: __props.eventBus,
|
|
34
|
-
onCopyAnchorUrl: _cache[0] || (_cache[0] = () => __props.eventBus?.emit("copy-url:nav-item", { id: __props.id }))
|
|
35
|
-
}, {
|
|
36
|
-
default: withCtx(() => [
|
|
37
|
-
createVNode(unref(SectionHeaderTag), { level: 3 }, {
|
|
38
|
-
default: withCtx(() => [
|
|
39
|
-
createVNode(unref(SchemaHeading), {
|
|
40
|
-
class: "reference-models-label",
|
|
41
|
-
name: __props.schema.title ?? __props.name,
|
|
42
|
-
value: __props.schema
|
|
43
|
-
}, null, 8, ["name", "value"])
|
|
44
|
-
]),
|
|
45
|
-
_: 1
|
|
46
|
-
})
|
|
47
|
-
]),
|
|
48
|
-
_: 1
|
|
49
|
-
}, 8, ["eventBus"])
|
|
50
|
-
]),
|
|
51
|
-
default: withCtx(() => [
|
|
52
|
-
"properties" in __props.schema ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
53
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(Object.entries(__props.schema.properties ?? {}), ([property, value]) => {
|
|
54
|
-
return openBlock(), createBlock(unref(SchemaProperty), {
|
|
55
|
-
key: property,
|
|
56
|
-
eventBus: __props.eventBus,
|
|
57
|
-
name: property,
|
|
58
|
-
options: __props.options,
|
|
59
|
-
required: __props.schema.required?.includes(property),
|
|
60
|
-
schema: unref(resolve).schema(value)
|
|
61
|
-
}, null, 8, ["eventBus", "name", "options", "required", "schema"]);
|
|
62
|
-
}), 128))
|
|
63
|
-
])) : (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
64
|
-
createVNode(unref(SchemaProperty), {
|
|
65
|
-
eventBus: __props.eventBus,
|
|
66
|
-
options: __props.options,
|
|
67
|
-
schema: __props.schema
|
|
68
|
-
}, null, 8, ["eventBus", "options", "schema"])
|
|
69
|
-
]))
|
|
70
|
-
]),
|
|
71
|
-
_: 1
|
|
72
|
-
}, 8, ["aria-label", "modelValue"]);
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
});
|
|
76
|
-
export {
|
|
77
|
-
_sfc_main as default
|
|
78
|
-
};
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { defineComponent, createBlock, openBlock, unref, withCtx, createVNode } from "vue";
|
|
2
|
-
import { ScalarErrorBoundary } from "@scalar/components";
|
|
3
|
-
import CompactSection from "../../../Section/CompactSection.vue.js";
|
|
4
|
-
import Schema from "../../Schema/Schema.vue.js";
|
|
5
|
-
import SectionHeaderTag from "../../../Section/SectionHeaderTag.vue.js";
|
|
6
|
-
import SchemaHeading from "../../Schema/SchemaHeading.vue.js";
|
|
7
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
|
-
__name: "ModernLayout",
|
|
9
|
-
props: {
|
|
10
|
-
id: {},
|
|
11
|
-
name: {},
|
|
12
|
-
schema: {},
|
|
13
|
-
isCollapsed: { type: Boolean },
|
|
14
|
-
eventBus: {},
|
|
15
|
-
options: {}
|
|
16
|
-
},
|
|
17
|
-
setup(__props) {
|
|
18
|
-
return (_ctx, _cache) => {
|
|
19
|
-
return openBlock(), createBlock(unref(CompactSection), {
|
|
20
|
-
id: __props.id,
|
|
21
|
-
key: __props.name,
|
|
22
|
-
label: __props.name,
|
|
23
|
-
modelValue: !__props.isCollapsed,
|
|
24
|
-
onCopyAnchorUrl: _cache[0] || (_cache[0] = () => __props.eventBus?.emit("copy-url:nav-item", { id: __props.id })),
|
|
25
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = (value) => __props.eventBus?.emit("toggle:nav-item", { id: __props.id, open: value }))
|
|
26
|
-
}, {
|
|
27
|
-
heading: withCtx(() => [
|
|
28
|
-
createVNode(unref(SectionHeaderTag), { level: 3 }, {
|
|
29
|
-
default: withCtx(() => [
|
|
30
|
-
createVNode(unref(SchemaHeading), {
|
|
31
|
-
name: __props.schema.title ?? __props.name,
|
|
32
|
-
value: __props.schema
|
|
33
|
-
}, null, 8, ["name", "value"])
|
|
34
|
-
]),
|
|
35
|
-
_: 1
|
|
36
|
-
})
|
|
37
|
-
]),
|
|
38
|
-
default: withCtx(() => [
|
|
39
|
-
createVNode(unref(ScalarErrorBoundary), null, {
|
|
40
|
-
default: withCtx(() => [
|
|
41
|
-
createVNode(unref(Schema), {
|
|
42
|
-
eventBus: __props.eventBus,
|
|
43
|
-
hideHeading: "",
|
|
44
|
-
hideModelNames: "",
|
|
45
|
-
level: 1,
|
|
46
|
-
noncollapsible: "",
|
|
47
|
-
options: __props.options,
|
|
48
|
-
schema: __props.schema
|
|
49
|
-
}, null, 8, ["eventBus", "options", "schema"])
|
|
50
|
-
]),
|
|
51
|
-
_: 1
|
|
52
|
-
})
|
|
53
|
-
]),
|
|
54
|
-
_: 1
|
|
55
|
-
}, 8, ["id", "label", "modelValue"]);
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
export {
|
|
60
|
-
_sfc_main as default
|
|
61
|
-
};
|