@scalar/api-reference 1.49.0 → 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 +7 -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 +40759 -34701
- 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/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-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 +6773 -7332
- 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,62 +0,0 @@
|
|
|
1
|
-
import { defineComponent, renderSlot, createElementBlock, unref, normalizeProps, mergeProps, openBlock, normalizeClass, createElementVNode, createCommentVNode, createBlock, toDisplayString } from "vue";
|
|
2
|
-
import { cva, ScalarIconButton } from "@scalar/components";
|
|
3
|
-
import { ScalarIconX, ScalarIconList } from "@scalar/icons";
|
|
4
|
-
import { useBreakpoints } from "@scalar/use-hooks/useBreakpoints";
|
|
5
|
-
const _hoisted_1 = { class: "flex h-(--scalar-header-height) w-full items-center border-b bg-inherit px-2" };
|
|
6
|
-
const _hoisted_2 = {
|
|
7
|
-
key: 1,
|
|
8
|
-
class: "flex-1 text-sm font-medium whitespace-nowrap"
|
|
9
|
-
};
|
|
10
|
-
const _hoisted_3 = { class: "flex h-6 items-center gap-1 pl-1" };
|
|
11
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
|
-
__name: "MobileHeader",
|
|
13
|
-
props: {
|
|
14
|
-
breadcrumb: {},
|
|
15
|
-
isSidebarOpen: { type: Boolean },
|
|
16
|
-
showSidebar: { type: Boolean }
|
|
17
|
-
},
|
|
18
|
-
emits: ["toggleSidebar"],
|
|
19
|
-
setup(__props, { emit: __emit }) {
|
|
20
|
-
const emit = __emit;
|
|
21
|
-
const { mediaQueries } = useBreakpoints();
|
|
22
|
-
const variants = cva({
|
|
23
|
-
base: "items-center bg-b-1 sticky top-(--scalar-custom-header-height,0) z-10",
|
|
24
|
-
variants: {
|
|
25
|
-
open: {
|
|
26
|
-
true: "h-(--refs-sidebar-height) custom-scrollbar flex flex-col"
|
|
27
|
-
},
|
|
28
|
-
lg: {
|
|
29
|
-
true: "hidden [grid-area:header]"
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
return (_ctx, _cache) => {
|
|
34
|
-
return unref(mediaQueries).lg.value ? renderSlot(_ctx.$slots, "sidebar", normalizeProps(mergeProps({ key: 0 }, {
|
|
35
|
-
sidebarClasses: "sticky top-(--refs-header-height) h-(--refs-sidebar-height) w-(--refs-sidebar-width) [grid-area:navigation]"
|
|
36
|
-
}))) : (openBlock(), createElementBlock("div", {
|
|
37
|
-
key: 1,
|
|
38
|
-
class: normalizeClass(["t-doc__header", unref(variants)({ open: __props.isSidebarOpen, lg: unref(mediaQueries).lg.value })])
|
|
39
|
-
}, [
|
|
40
|
-
createElementVNode("header", _hoisted_1, [
|
|
41
|
-
__props.showSidebar ? (openBlock(), createBlock(unref(ScalarIconButton), {
|
|
42
|
-
key: 0,
|
|
43
|
-
icon: __props.isSidebarOpen ? unref(ScalarIconX) : unref(ScalarIconList),
|
|
44
|
-
label: __props.isSidebarOpen ? "Close Menu" : "Open Menu",
|
|
45
|
-
size: "md",
|
|
46
|
-
onClick: _cache[0] || (_cache[0] = ($event) => emit("toggleSidebar"))
|
|
47
|
-
}, null, 8, ["icon", "label"])) : createCommentVNode("", true),
|
|
48
|
-
__props.showSidebar ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(__props.breadcrumb), 1)) : renderSlot(_ctx.$slots, "search", { key: 2 }),
|
|
49
|
-
createElementVNode("div", _hoisted_3, [
|
|
50
|
-
renderSlot(_ctx.$slots, "actions")
|
|
51
|
-
])
|
|
52
|
-
]),
|
|
53
|
-
__props.isSidebarOpen ? renderSlot(_ctx.$slots, "sidebar", normalizeProps(mergeProps({ key: 0 }, {
|
|
54
|
-
sidebarClasses: "overflow-y-auto custom-scrollbar min-h-0 flex-1 w-full border-none"
|
|
55
|
-
}))) : createCommentVNode("", true)
|
|
56
|
-
], 2));
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
export {
|
|
61
|
-
_sfc_main as default
|
|
62
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import _sfc_main from "./OperationPath.vue2.js";
|
|
2
|
-
/* empty css */
|
|
3
|
-
import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const OperationPath = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ec6c8861"]]);
|
|
5
|
-
export {
|
|
6
|
-
OperationPath as default
|
|
7
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, createElementBlock, openBlock, normalizeClass, Fragment, renderList, toDisplayString, createTextVNode } from "vue";
|
|
2
|
-
const _hoisted_1 = { key: 0 };
|
|
3
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
-
__name: "OperationPath",
|
|
5
|
-
props: {
|
|
6
|
-
path: {},
|
|
7
|
-
deprecated: { type: Boolean }
|
|
8
|
-
},
|
|
9
|
-
setup(__props) {
|
|
10
|
-
const props = __props;
|
|
11
|
-
const isVariable = (part) => part.startsWith("{") && part.endsWith("}");
|
|
12
|
-
const pathParts = computed(() => props.path.split(/({[^}]+})/));
|
|
13
|
-
return (_ctx, _cache) => {
|
|
14
|
-
return openBlock(), createElementBlock("span", {
|
|
15
|
-
class: normalizeClass(["operation-path", { deprecated: __props.deprecated }])
|
|
16
|
-
}, [
|
|
17
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(pathParts.value, (part, i) => {
|
|
18
|
-
return openBlock(), createElementBlock(Fragment, { key: i }, [
|
|
19
|
-
isVariable(part) ? (openBlock(), createElementBlock("em", _hoisted_1, toDisplayString(part), 1)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
20
|
-
createTextVNode(toDisplayString(part), 1)
|
|
21
|
-
], 64))
|
|
22
|
-
], 64);
|
|
23
|
-
}), 128))
|
|
24
|
-
], 2);
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
export {
|
|
29
|
-
_sfc_main as default
|
|
30
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import _sfc_main from "./OperationsList.vue2.js";
|
|
2
|
-
/* empty css */
|
|
3
|
-
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const OperationsList = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f726f753"]]);
|
|
5
|
-
export {
|
|
6
|
-
OperationsList as default
|
|
7
|
-
};
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, createBlock, createCommentVNode, openBlock, unref, withCtx, createVNode, createTextVNode, toDisplayString, createElementVNode, createElementBlock, Fragment, renderList } from "vue";
|
|
2
|
-
import { ScalarCard, ScalarCardHeader, ScalarCardSection } from "@scalar/components";
|
|
3
|
-
import ScreenReader from "../ScreenReader.vue.js";
|
|
4
|
-
import OperationsListItem from "./OperationsListItem.vue.js";
|
|
5
|
-
const _hoisted_1 = ["aria-label"];
|
|
6
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
-
__name: "OperationsList",
|
|
8
|
-
props: {
|
|
9
|
-
tag: {},
|
|
10
|
-
eventBus: {}
|
|
11
|
-
},
|
|
12
|
-
setup(__props) {
|
|
13
|
-
const operationsAndWebhooks = computed(() => {
|
|
14
|
-
return __props.tag.children?.filter(
|
|
15
|
-
(child) => child.type === "operation" || child.type === "webhook"
|
|
16
|
-
) ?? [];
|
|
17
|
-
});
|
|
18
|
-
return (_ctx, _cache) => {
|
|
19
|
-
return __props.tag.children && __props.tag.children?.length > 0 ? (openBlock(), createBlock(unref(ScalarCard), {
|
|
20
|
-
key: 0,
|
|
21
|
-
class: "endpoints-card"
|
|
22
|
-
}, {
|
|
23
|
-
default: withCtx(() => [
|
|
24
|
-
createVNode(unref(ScalarCardHeader), { muted: "" }, {
|
|
25
|
-
default: withCtx(() => [
|
|
26
|
-
createVNode(ScreenReader, null, {
|
|
27
|
-
default: withCtx(() => [
|
|
28
|
-
createTextVNode(toDisplayString(__props.tag.title), 1)
|
|
29
|
-
]),
|
|
30
|
-
_: 1
|
|
31
|
-
}),
|
|
32
|
-
createTextVNode(" " + toDisplayString(__props.tag.isWebhooks ? "Webhooks" : "Operations"), 1)
|
|
33
|
-
]),
|
|
34
|
-
_: 1
|
|
35
|
-
}),
|
|
36
|
-
createVNode(unref(ScalarCardSection), { class: "custom-scroll max-h-[60vh]" }, {
|
|
37
|
-
default: withCtx(() => [
|
|
38
|
-
createElementVNode("ul", {
|
|
39
|
-
"aria-label": `${__props.tag.title} endpoints`,
|
|
40
|
-
class: "endpoints"
|
|
41
|
-
}, [
|
|
42
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(operationsAndWebhooks.value, (operationOrWebhook) => {
|
|
43
|
-
return openBlock(), createBlock(OperationsListItem, {
|
|
44
|
-
key: operationOrWebhook.id,
|
|
45
|
-
eventBus: __props.eventBus,
|
|
46
|
-
operation: operationOrWebhook
|
|
47
|
-
}, null, 8, ["eventBus", "operation"]);
|
|
48
|
-
}), 128))
|
|
49
|
-
], 8, _hoisted_1)
|
|
50
|
-
]),
|
|
51
|
-
_: 1
|
|
52
|
-
})
|
|
53
|
-
]),
|
|
54
|
-
_: 1
|
|
55
|
-
})) : createCommentVNode("", true);
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
export {
|
|
60
|
-
_sfc_main as default
|
|
61
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import _sfc_main from "./OperationsListItem.vue2.js";
|
|
2
|
-
/* empty css */
|
|
3
|
-
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const OperationsListItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ad8530a6"]]);
|
|
5
|
-
export {
|
|
6
|
-
OperationsListItem as default
|
|
7
|
-
};
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, createElementBlock, openBlock, createBlock, createCommentVNode, createElementVNode, unref, withCtx, createTextVNode, toDisplayString, withModifiers, createVNode, normalizeStyle, normalizeClass } from "vue";
|
|
2
|
-
import { getHttpMethodInfo } from "@scalar/helpers/http/http-info";
|
|
3
|
-
import { ScalarIconWebhooksLogo } from "@scalar/icons";
|
|
4
|
-
import SectionHeaderTag from "../Section/SectionHeaderTag.vue.js";
|
|
5
|
-
import _sfc_main$1 from "../HttpMethod/HttpMethod.vue.js";
|
|
6
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
-
__name: "OperationsListItem",
|
|
8
|
-
props: {
|
|
9
|
-
operation: {},
|
|
10
|
-
isCollapsed: { type: Boolean },
|
|
11
|
-
eventBus: {}
|
|
12
|
-
},
|
|
13
|
-
setup(__props) {
|
|
14
|
-
const pathOrTitle = computed(() => {
|
|
15
|
-
if ("path" in __props.operation) {
|
|
16
|
-
return __props.operation.path;
|
|
17
|
-
}
|
|
18
|
-
return __props.operation.title;
|
|
19
|
-
});
|
|
20
|
-
const isWebhook = (_operation) => _operation.type === "webhook";
|
|
21
|
-
return (_ctx, _cache) => {
|
|
22
|
-
return openBlock(), createElementBlock("li", {
|
|
23
|
-
key: __props.operation.id,
|
|
24
|
-
class: "contents"
|
|
25
|
-
}, [
|
|
26
|
-
__props.isCollapsed ? (openBlock(), createBlock(unref(SectionHeaderTag), {
|
|
27
|
-
key: 0,
|
|
28
|
-
class: "sr-only",
|
|
29
|
-
level: 3
|
|
30
|
-
}, {
|
|
31
|
-
default: withCtx(() => [
|
|
32
|
-
createTextVNode(toDisplayString(__props.operation.title) + " (Hidden) ", 1)
|
|
33
|
-
]),
|
|
34
|
-
_: 1
|
|
35
|
-
})) : createCommentVNode("", true),
|
|
36
|
-
createElementVNode("a", {
|
|
37
|
-
class: "endpoint",
|
|
38
|
-
onClick: _cache[0] || (_cache[0] = withModifiers(
|
|
39
|
-
() => __props.eventBus?.emit("scroll-to:nav-item", { id: __props.operation.id }),
|
|
40
|
-
["prevent"]
|
|
41
|
-
))
|
|
42
|
-
}, [
|
|
43
|
-
createVNode(unref(_sfc_main$1), {
|
|
44
|
-
class: "endpoint-method items-center justify-end gap-2",
|
|
45
|
-
method: __props.operation.method
|
|
46
|
-
}, {
|
|
47
|
-
default: withCtx(() => [
|
|
48
|
-
isWebhook(__props.operation) ? (openBlock(), createBlock(unref(ScalarIconWebhooksLogo), {
|
|
49
|
-
key: 0,
|
|
50
|
-
class: "size-3.5",
|
|
51
|
-
style: normalizeStyle({
|
|
52
|
-
color: unref(getHttpMethodInfo)(__props.operation.method).colorVar
|
|
53
|
-
})
|
|
54
|
-
}, null, 8, ["style"])) : createCommentVNode("", true)
|
|
55
|
-
]),
|
|
56
|
-
_: 1
|
|
57
|
-
}, 8, ["method"]),
|
|
58
|
-
createElementVNode("span", {
|
|
59
|
-
class: normalizeClass(["endpoint-path", { deprecated: __props.operation.isDeprecated }])
|
|
60
|
-
}, toDisplayString(pathOrTitle.value), 3)
|
|
61
|
-
])
|
|
62
|
-
]);
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
export {
|
|
67
|
-
_sfc_main as default
|
|
68
|
-
};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { defineComponent, createElementBlock, createCommentVNode, unref, openBlock, Fragment, renderList, createBlock, withCtx, resolveDynamicComponent, mergeProps } from "vue";
|
|
2
|
-
import { ScalarErrorBoundary } from "@scalar/components";
|
|
3
|
-
import { usePluginManager } from "../../plugins/hooks/usePluginManager.js";
|
|
4
|
-
const _hoisted_1 = {
|
|
5
|
-
key: 0,
|
|
6
|
-
class: "plugin-view"
|
|
7
|
-
};
|
|
8
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
|
-
__name: "RenderPlugins",
|
|
10
|
-
props: {
|
|
11
|
-
viewName: {},
|
|
12
|
-
options: {}
|
|
13
|
-
},
|
|
14
|
-
setup(__props) {
|
|
15
|
-
const { getViewComponents } = usePluginManager();
|
|
16
|
-
const components = getViewComponents(__props.viewName);
|
|
17
|
-
return (_ctx, _cache) => {
|
|
18
|
-
return unref(components).length ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
19
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(components), (item, _index) => {
|
|
20
|
-
return openBlock(), createBlock(unref(ScalarErrorBoundary), { key: _index }, {
|
|
21
|
-
default: withCtx(() => [
|
|
22
|
-
item.renderer ? (openBlock(), createBlock(resolveDynamicComponent(item.renderer), mergeProps({
|
|
23
|
-
key: 0,
|
|
24
|
-
ref_for: true
|
|
25
|
-
}, {
|
|
26
|
-
component: item.component,
|
|
27
|
-
options: __props.options,
|
|
28
|
-
...item.props
|
|
29
|
-
}), null, 16)) : (openBlock(), createBlock(resolveDynamicComponent(item.component), mergeProps({
|
|
30
|
-
key: 1,
|
|
31
|
-
ref_for: true
|
|
32
|
-
}, { options: __props.options, ...item.props }), null, 16))
|
|
33
|
-
]),
|
|
34
|
-
_: 2
|
|
35
|
-
}, 1024);
|
|
36
|
-
}), 128))
|
|
37
|
-
])) : createCommentVNode("", true);
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
export {
|
|
42
|
-
_sfc_main as default
|
|
43
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import _sfc_main from "./ScreenReader.vue2.js";
|
|
2
|
-
/* empty css */
|
|
3
|
-
import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const ScreenReader = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-df2e1026"]]);
|
|
5
|
-
export {
|
|
6
|
-
ScreenReader as default
|
|
7
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { defineComponent, createElementBlock, renderSlot, openBlock } from "vue";
|
|
2
|
-
const _hoisted_1 = {
|
|
3
|
-
key: 0,
|
|
4
|
-
class: "screenreader-only"
|
|
5
|
-
};
|
|
6
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
-
__name: "ScreenReader",
|
|
8
|
-
props: {
|
|
9
|
-
if: { type: Boolean, default: true }
|
|
10
|
-
},
|
|
11
|
-
setup(__props) {
|
|
12
|
-
return (_ctx, _cache) => {
|
|
13
|
-
return _ctx.$props.if ? (openBlock(), createElementBlock("span", _hoisted_1, [
|
|
14
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
15
|
-
])) : renderSlot(_ctx.$slots, "default", { key: 1 }, void 0, true);
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
export {
|
|
20
|
-
_sfc_main as default
|
|
21
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import _sfc_main from "./CompactSection.vue2.js";
|
|
2
|
-
/* empty css */
|
|
3
|
-
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const CompactSection = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-999a158a"]]);
|
|
5
|
-
export {
|
|
6
|
-
CompactSection as default
|
|
7
|
-
};
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { defineComponent, createElementBlock, openBlock, createElementVNode, createBlock, createCommentVNode, normalizeClass, createVNode, unref, withCtx, renderSlot } from "vue";
|
|
2
|
-
import { ScalarIconCaretRight } from "@scalar/icons";
|
|
3
|
-
import Section from "./Section.vue.js";
|
|
4
|
-
import _sfc_main$1 from "../Anchor/Anchor.vue.js";
|
|
5
|
-
const _hoisted_1 = ["aria-label"];
|
|
6
|
-
const _hoisted_2 = ["id", "aria-controls", "aria-expanded"];
|
|
7
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
|
-
__name: "CompactSection",
|
|
9
|
-
props: {
|
|
10
|
-
id: {},
|
|
11
|
-
label: {},
|
|
12
|
-
modelValue: { type: Boolean }
|
|
13
|
-
},
|
|
14
|
-
emits: ["update:modelValue", "copyAnchorUrl"],
|
|
15
|
-
setup(__props, { emit: __emit }) {
|
|
16
|
-
const emit = __emit;
|
|
17
|
-
return (_ctx, _cache) => {
|
|
18
|
-
return openBlock(), createElementBlock("section", {
|
|
19
|
-
"aria-label": __props.label,
|
|
20
|
-
class: "collapsible-section"
|
|
21
|
-
}, [
|
|
22
|
-
createElementVNode("button", {
|
|
23
|
-
id: __props.id,
|
|
24
|
-
"aria-controls": __props.id,
|
|
25
|
-
"aria-expanded": __props.modelValue,
|
|
26
|
-
class: normalizeClass(["collapsible-section-trigger", { "collapsible-section-trigger-open": __props.modelValue }]),
|
|
27
|
-
type: "button",
|
|
28
|
-
onClick: _cache[1] || (_cache[1] = ($event) => emit("update:modelValue", !__props.modelValue))
|
|
29
|
-
}, [
|
|
30
|
-
createVNode(unref(ScalarIconCaretRight), {
|
|
31
|
-
class: normalizeClass(["size-3 transition-transform duration-100", { "rotate-90": __props.modelValue }]),
|
|
32
|
-
weight: "bold"
|
|
33
|
-
}, null, 8, ["class"]),
|
|
34
|
-
createVNode(unref(_sfc_main$1), {
|
|
35
|
-
class: "collapsible-section-header",
|
|
36
|
-
onCopyAnchorUrl: _cache[0] || (_cache[0] = () => emit("copyAnchorUrl"))
|
|
37
|
-
}, {
|
|
38
|
-
default: withCtx(() => [
|
|
39
|
-
renderSlot(_ctx.$slots, "heading", {}, void 0, true)
|
|
40
|
-
]),
|
|
41
|
-
_: 3
|
|
42
|
-
})
|
|
43
|
-
], 10, _hoisted_2),
|
|
44
|
-
__props.modelValue ? (openBlock(), createBlock(Section, {
|
|
45
|
-
key: 0,
|
|
46
|
-
class: "collapsible-section-content",
|
|
47
|
-
label: __props.label
|
|
48
|
-
}, {
|
|
49
|
-
default: withCtx(() => [
|
|
50
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
51
|
-
]),
|
|
52
|
-
_: 3
|
|
53
|
-
}, 8, ["label"])) : createCommentVNode("", true)
|
|
54
|
-
], 8, _hoisted_1);
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
export {
|
|
59
|
-
_sfc_main as default
|
|
60
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { defineComponent, useTemplateRef, createElementBlock, openBlock, renderSlot } from "vue";
|
|
2
|
-
import { useIntersection } from "../../hooks/use-intersection.js";
|
|
3
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
-
__name: "Section",
|
|
5
|
-
emits: ["intersecting"],
|
|
6
|
-
setup(__props, { emit: __emit }) {
|
|
7
|
-
const emit = __emit;
|
|
8
|
-
const section = useTemplateRef("section");
|
|
9
|
-
useIntersection(section, () => emit("intersecting"));
|
|
10
|
-
return (_ctx, _cache) => {
|
|
11
|
-
return openBlock(), createElementBlock("section", {
|
|
12
|
-
ref_key: "section",
|
|
13
|
-
ref: section,
|
|
14
|
-
class: "section"
|
|
15
|
-
}, [
|
|
16
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
17
|
-
], 512);
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
export {
|
|
22
|
-
_sfc_main as default
|
|
23
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import _sfc_main from "./SectionAccordion.vue2.js";
|
|
2
|
-
/* empty css */
|
|
3
|
-
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const SectionAccordion = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ff689b94"]]);
|
|
5
|
-
export {
|
|
6
|
-
SectionAccordion as default
|
|
7
|
-
};
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import { defineComponent, ref, createBlock, openBlock, unref, normalizeClass, withCtx, createVNode, createCommentVNode, createElementVNode, createElementBlock, renderSlot } from "vue";
|
|
2
|
-
import { Disclosure, DisclosureButton, DisclosurePanel } from "@headlessui/vue";
|
|
3
|
-
import { ScalarIconCaretRight } from "@scalar/icons";
|
|
4
|
-
import { useElementHover } from "@vueuse/core";
|
|
5
|
-
const _hoisted_1 = { class: "section-accordion-button-content" };
|
|
6
|
-
const _hoisted_2 = {
|
|
7
|
-
key: 0,
|
|
8
|
-
class: "section-accordion-button-actions"
|
|
9
|
-
};
|
|
10
|
-
const _hoisted_3 = {
|
|
11
|
-
key: 0,
|
|
12
|
-
class: "section-accordion-description"
|
|
13
|
-
};
|
|
14
|
-
const _hoisted_4 = { class: "section-accordion-content-card" };
|
|
15
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
16
|
-
__name: "SectionAccordion",
|
|
17
|
-
props: {
|
|
18
|
-
transparent: { type: Boolean },
|
|
19
|
-
modelValue: { type: Boolean }
|
|
20
|
-
},
|
|
21
|
-
emits: ["update:modelValue"],
|
|
22
|
-
setup(__props, { emit: __emit }) {
|
|
23
|
-
const emit = __emit;
|
|
24
|
-
const button = ref();
|
|
25
|
-
const isHovered = useElementHover(button);
|
|
26
|
-
return (_ctx, _cache) => {
|
|
27
|
-
return openBlock(), createBlock(unref(Disclosure), {
|
|
28
|
-
as: "section",
|
|
29
|
-
class: normalizeClass(["section-accordion", { "section-accordion-transparent": __props.transparent }])
|
|
30
|
-
}, {
|
|
31
|
-
default: withCtx(() => [
|
|
32
|
-
createVNode(unref(DisclosureButton), {
|
|
33
|
-
ref_key: "button",
|
|
34
|
-
ref: button,
|
|
35
|
-
class: "section-accordion-button",
|
|
36
|
-
onClick: _cache[0] || (_cache[0] = () => emit("update:modelValue", !__props.modelValue))
|
|
37
|
-
}, {
|
|
38
|
-
default: withCtx(() => [
|
|
39
|
-
createElementVNode("div", _hoisted_1, [
|
|
40
|
-
renderSlot(_ctx.$slots, "title", {}, void 0, true)
|
|
41
|
-
]),
|
|
42
|
-
_ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
43
|
-
renderSlot(_ctx.$slots, "actions", {
|
|
44
|
-
active: unref(isHovered) || __props.modelValue
|
|
45
|
-
}, void 0, true)
|
|
46
|
-
])) : createCommentVNode("", true),
|
|
47
|
-
createVNode(unref(ScalarIconCaretRight), {
|
|
48
|
-
class: normalizeClass(["section-accordion-chevron size-4.5 transition-transform", { "rotate-90": __props.modelValue }])
|
|
49
|
-
}, null, 8, ["class"])
|
|
50
|
-
]),
|
|
51
|
-
_: 3
|
|
52
|
-
}, 512),
|
|
53
|
-
__props.modelValue ? (openBlock(), createBlock(unref(DisclosurePanel), {
|
|
54
|
-
key: 0,
|
|
55
|
-
class: "section-accordion-content",
|
|
56
|
-
static: ""
|
|
57
|
-
}, {
|
|
58
|
-
default: withCtx(() => [
|
|
59
|
-
_ctx.$slots.description ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
60
|
-
renderSlot(_ctx.$slots, "description", {}, void 0, true)
|
|
61
|
-
])) : createCommentVNode("", true),
|
|
62
|
-
createElementVNode("div", _hoisted_4, [
|
|
63
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
64
|
-
])
|
|
65
|
-
]),
|
|
66
|
-
_: 3
|
|
67
|
-
})) : createCommentVNode("", true)
|
|
68
|
-
]),
|
|
69
|
-
_: 3
|
|
70
|
-
}, 8, ["class"]);
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
export {
|
|
75
|
-
_sfc_main as default
|
|
76
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { createElementBlock, openBlock, renderSlot } from "vue";
|
|
2
|
-
/* empty css */
|
|
3
|
-
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const _sfc_main = {};
|
|
5
|
-
const _hoisted_1 = { class: "section-column" };
|
|
6
|
-
function _sfc_render(_ctx, _cache) {
|
|
7
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
8
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
9
|
-
]);
|
|
10
|
-
}
|
|
11
|
-
const SectionColumn = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-699c28e3"]]);
|
|
12
|
-
export {
|
|
13
|
-
SectionColumn as default
|
|
14
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { createElementBlock, openBlock, renderSlot } from "vue";
|
|
2
|
-
/* empty css */
|
|
3
|
-
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const _sfc_main = {};
|
|
5
|
-
const _hoisted_1 = { class: "section-columns" };
|
|
6
|
-
function _sfc_render(_ctx, _cache) {
|
|
7
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
8
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
9
|
-
]);
|
|
10
|
-
}
|
|
11
|
-
const SectionColumns = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-8b9602bf"]]);
|
|
12
|
-
export {
|
|
13
|
-
SectionColumns as default
|
|
14
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import _sfc_main from "./SectionContainer.vue2.js";
|
|
2
|
-
/* empty css */
|
|
3
|
-
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const SectionContainer = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-20a1472a"]]);
|
|
5
|
-
export {
|
|
6
|
-
SectionContainer as default
|
|
7
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { defineComponent, renderSlot, createElementBlock, openBlock } from "vue";
|
|
2
|
-
const _hoisted_1 = {
|
|
3
|
-
key: 1,
|
|
4
|
-
class: "section-container"
|
|
5
|
-
};
|
|
6
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
-
__name: "SectionContainer",
|
|
8
|
-
props: {
|
|
9
|
-
omit: { type: Boolean }
|
|
10
|
-
},
|
|
11
|
-
setup(__props) {
|
|
12
|
-
return (_ctx, _cache) => {
|
|
13
|
-
return __props.omit ? renderSlot(_ctx.$slots, "default", { key: 0 }, void 0, true) : (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
14
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
15
|
-
]));
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
export {
|
|
20
|
-
_sfc_main as default
|
|
21
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import _sfc_main from "./SectionContainerAccordion.vue2.js";
|
|
2
|
-
/* empty css */
|
|
3
|
-
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const SectionContainerAccordion = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-9419dd23"]]);
|
|
5
|
-
export {
|
|
6
|
-
SectionContainerAccordion as default
|
|
7
|
-
};
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { defineComponent, createElementBlock, openBlock, createVNode, unref, withCtx, createBlock, createCommentVNode, createElementVNode, normalizeClass, renderSlot } from "vue";
|
|
2
|
-
import { Disclosure, DisclosureButton, DisclosurePanel } from "@headlessui/vue";
|
|
3
|
-
import { ScalarIconCaretRight } from "@scalar/icons";
|
|
4
|
-
const _hoisted_1 = { class: "section-accordion-wrapper" };
|
|
5
|
-
const _hoisted_2 = { class: "section-accordion-title" };
|
|
6
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
-
__name: "SectionContainerAccordion",
|
|
8
|
-
props: {
|
|
9
|
-
modelValue: { type: Boolean }
|
|
10
|
-
},
|
|
11
|
-
emits: ["update:modelValue"],
|
|
12
|
-
setup(__props, { emit: __emit }) {
|
|
13
|
-
const emit = __emit;
|
|
14
|
-
return (_ctx, _cache) => {
|
|
15
|
-
return openBlock(), createElementBlock("section", _hoisted_1, [
|
|
16
|
-
createVNode(unref(Disclosure), {
|
|
17
|
-
as: "div",
|
|
18
|
-
class: "section-accordion"
|
|
19
|
-
}, {
|
|
20
|
-
default: withCtx(() => [
|
|
21
|
-
createVNode(unref(DisclosureButton), {
|
|
22
|
-
class: "section-accordion-button",
|
|
23
|
-
onClick: _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", !__props.modelValue))
|
|
24
|
-
}, {
|
|
25
|
-
default: withCtx(() => [
|
|
26
|
-
createVNode(unref(ScalarIconCaretRight), {
|
|
27
|
-
class: normalizeClass(["section-accordion-chevron size-5 transition-transform", { "rotate-90": __props.modelValue }])
|
|
28
|
-
}, null, 8, ["class"]),
|
|
29
|
-
createElementVNode("div", _hoisted_2, [
|
|
30
|
-
renderSlot(_ctx.$slots, "title", {}, void 0, true)
|
|
31
|
-
])
|
|
32
|
-
]),
|
|
33
|
-
_: 3
|
|
34
|
-
}),
|
|
35
|
-
__props.modelValue ? (openBlock(), createBlock(unref(DisclosurePanel), {
|
|
36
|
-
key: 0,
|
|
37
|
-
class: "section-accordion-content",
|
|
38
|
-
static: ""
|
|
39
|
-
}, {
|
|
40
|
-
default: withCtx(() => [
|
|
41
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
42
|
-
]),
|
|
43
|
-
_: 3
|
|
44
|
-
})) : createCommentVNode("", true)
|
|
45
|
-
]),
|
|
46
|
-
_: 3
|
|
47
|
-
})
|
|
48
|
-
]);
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
export {
|
|
53
|
-
_sfc_main as default
|
|
54
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import _sfc_main from "./SectionContent.vue2.js";
|
|
2
|
-
/* empty css */
|
|
3
|
-
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const SectionContent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-9735459e"]]);
|
|
5
|
-
export {
|
|
6
|
-
SectionContent as default
|
|
7
|
-
};
|