@scalar/api-reference 1.48.8 → 1.49.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +40 -0
- package/dist/AgentScalarChatInterface-MUbtSqMw.js +41 -0
- package/dist/AgentScalarChatInterface-MUbtSqMw.js.map +1 -0
- package/dist/ExternalDocs-phu7GxpZ.js +272 -0
- package/dist/ExternalDocs-phu7GxpZ.js.map +1 -0
- package/dist/MobileHeader-B71jYJdT.js +1373 -0
- package/dist/MobileHeader-B71jYJdT.js.map +1 -0
- package/dist/Operation-CixLVfKd.js +3827 -0
- package/dist/Operation-CixLVfKd.js.map +1 -0
- package/dist/SearchButton-xzhIpMCZ.js +621 -0
- package/dist/SearchButton-xzhIpMCZ.js.map +1 -0
- package/dist/ServerSelector-5y29y2BJ.js +852 -0
- package/dist/ServerSelector-5y29y2BJ.js.map +1 -0
- package/dist/blocks/index.js +3 -10
- package/dist/blocks/scalar-client-selector-block/index.d.ts +1 -1
- package/dist/blocks/scalar-info-block/index.d.ts +2 -2
- package/dist/blocks/scalar-server-selector-block/index.d.ts +1 -1
- package/dist/browser/standalone.js +40748 -34662
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/AgentScalar/index.d.ts +3 -3
- package/dist/components/Anchor/index.d.ts +2 -2
- package/dist/components/ApiReference.vue.d.ts.map +1 -1
- package/dist/components/Badge/index.d.ts +1 -1
- package/dist/components/Content/Auth/index.d.ts +1 -1
- package/dist/components/Content/Content.vue.d.ts +2 -4
- package/dist/components/Content/Content.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/ModelTag.vue.d.ts +3 -3
- package/dist/components/Content/Models/ModelTag.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/index.d.ts +2 -2
- package/dist/components/Content/Operations/TraversedEntry.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/Schema.vue.d.ts +1 -1
- package/dist/components/Content/Schema/SchemaComposition.vue.d.ts +2 -2
- package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/get-compositions-to-render.d.ts +1 -1
- package/dist/components/Content/Schema/index.d.ts +4 -4
- package/dist/components/Content/Tags/components/ModernLayout.vue.d.ts +2 -2
- package/dist/components/Content/Tags/components/ModernLayout.vue.d.ts.map +1 -1
- package/dist/components/Content/Tags/index.d.ts +1 -1
- package/dist/components/Content/index.d.ts +2 -2
- package/dist/components/HttpMethod/index.d.ts +1 -1
- package/dist/components/Lazy/Lazy.vue.d.ts +3 -0
- package/dist/components/Lazy/Lazy.vue.d.ts.map +1 -1
- package/dist/components/LinkList/index.d.ts +1 -1
- package/dist/components/OperationsList/index.d.ts +1 -1
- package/dist/components/RenderPlugins/index.d.ts +1 -1
- package/dist/components/Section/index.d.ts +10 -10
- package/dist/components/SectionFlare/index.d.ts +1 -1
- package/dist/components/index.d.ts +5 -5
- package/dist/components/index.js +102 -42
- package/dist/components/index.js.map +1 -0
- package/dist/features/Operation/components/OperationParameters.vue.d.ts +1 -1
- package/dist/features/Operation/components/OperationResponses.vue.d.ts +1 -1
- package/dist/features/Operation/components/ParameterList.vue.d.ts +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts +1 -1
- package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +1 -1
- package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts +1 -1
- package/dist/features/Operation/index.d.ts +1 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +1 -1
- package/dist/features/Search/components/SearchResult.vue.d.ts +1 -1
- package/dist/features/Search/helpers/create-fuse-instance.d.ts +1 -1
- package/dist/features/Search/helpers/create-search-index.d.ts +1 -1
- package/dist/features/Search/index.d.ts +2 -2
- package/dist/features/Search/types.d.ts +1 -1
- package/dist/features/ask-agent-button/AskAgentButton.vue.d.ts.map +1 -1
- package/dist/features/developer-tools/index.d.ts +1 -1
- package/dist/features/example-responses/index.d.ts +1 -1
- package/dist/features/external-docs/index.d.ts +1 -1
- package/dist/features/index.d.ts +2 -2
- package/dist/features/index.js +4 -10
- package/dist/features/info-object/index.d.ts +3 -3
- package/dist/features/specification-extension/index.d.ts +2 -2
- package/dist/features/test-request-button/index.d.ts +1 -1
- package/dist/features/x-badges/index.d.ts +1 -1
- package/dist/helpers/download.d.ts +1 -1
- package/dist/helpers/download.d.ts.map +1 -1
- package/dist/helpers/id-routing.d.ts +4 -0
- package/dist/helpers/id-routing.d.ts.map +1 -1
- package/dist/helpers/index.d.ts +8 -8
- package/dist/helpers/index.js +3 -24
- package/dist/helpers/lazy-bus.d.ts +19 -19
- package/dist/helpers/lazy-bus.d.ts.map +1 -1
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/index.js +3 -8
- package/dist/index.d.ts +5 -5
- package/dist/index.js +7 -14
- package/dist/lazy-bus-CV8Ox5hD.js +333 -0
- package/dist/lazy-bus-CV8Ox5hD.js.map +1 -0
- package/dist/normalize-configurations-DcVpOEjD.js +232 -0
- package/dist/normalize-configurations-DcVpOEjD.js.map +1 -0
- package/dist/plugins/hooks/usePluginManager.d.ts +1 -1
- package/dist/plugins/index.d.ts +3 -3
- package/dist/plugins/index.js +2 -9
- package/dist/plugins-4EyiUD_A.js +80 -0
- package/dist/plugins-4EyiUD_A.js.map +1 -0
- package/dist/src-DqcYVBWI.js +1686 -0
- package/dist/src-DqcYVBWI.js.map +1 -0
- package/dist/ssr.d.ts +2 -2
- package/dist/ssr.js +7 -14
- package/dist/storage--3JuzjCI.js +42 -0
- package/dist/storage--3JuzjCI.js.map +1 -0
- package/dist/style.css +6840 -7397
- package/dist/urls-gPTXGgbj.js +17 -0
- package/dist/urls-gPTXGgbj.js.map +1 -0
- package/dist/use-agent-Bnm1de0n.js +60 -0
- package/dist/use-agent-Bnm1de0n.js.map +1 -0
- package/dist/use-intersection-8QqPi2O-.js +24 -0
- package/dist/use-intersection-8QqPi2O-.js.map +1 -0
- package/package.json +25 -27
- package/dist/_virtual/_plugin-vue_export-helper.js +0 -10
- package/dist/blocks/scalar-client-selector-block/components/ClientDropdown.vue.js +0 -7
- package/dist/blocks/scalar-client-selector-block/components/ClientDropdown.vue2.js +0 -123
- package/dist/blocks/scalar-client-selector-block/components/ClientSelector.vue.js +0 -7
- package/dist/blocks/scalar-client-selector-block/components/ClientSelector.vue2.js +0 -142
- package/dist/blocks/scalar-client-selector-block/helpers/featured-clients.js +0 -24
- package/dist/blocks/scalar-info-block/components/DownloadLink.vue.js +0 -7
- package/dist/blocks/scalar-info-block/components/DownloadLink.vue2.js +0 -63
- package/dist/blocks/scalar-info-block/components/InfoBlock.vue.js +0 -59
- package/dist/blocks/scalar-info-block/components/InfoBlock.vue2.js +0 -4
- package/dist/blocks/scalar-info-block/components/InfoDescription.vue.js +0 -7
- package/dist/blocks/scalar-info-block/components/InfoDescription.vue2.js +0 -70
- package/dist/blocks/scalar-info-block/components/InfoLinks.vue.js +0 -38
- package/dist/blocks/scalar-info-block/components/InfoLinks.vue2.js +0 -4
- package/dist/blocks/scalar-info-block/components/InfoMarkdownSection.vue.js +0 -38
- package/dist/blocks/scalar-info-block/components/InfoMarkdownSection.vue2.js +0 -4
- package/dist/blocks/scalar-info-block/components/InfoVersion.vue.js +0 -28
- package/dist/blocks/scalar-info-block/components/InfoVersion.vue2.js +0 -4
- package/dist/blocks/scalar-info-block/components/IntroductionCard.vue.js +0 -7
- package/dist/blocks/scalar-info-block/components/IntroductionCard.vue2.js +0 -19
- package/dist/blocks/scalar-info-block/components/IntroductionCardItem.vue.js +0 -14
- package/dist/blocks/scalar-info-block/components/IntroductionLayout.vue.js +0 -7
- package/dist/blocks/scalar-info-block/components/IntroductionLayout.vue2.js +0 -112
- package/dist/blocks/scalar-info-block/components/OpenApiVersion.vue.js +0 -21
- package/dist/blocks/scalar-info-block/components/OpenApiVersion.vue2.js +0 -4
- package/dist/blocks/scalar-server-selector-block/components/Selector.vue.js +0 -76
- package/dist/blocks/scalar-server-selector-block/components/Selector.vue2.js +0 -4
- package/dist/blocks/scalar-server-selector-block/components/ServerSelector.vue.js +0 -72
- package/dist/blocks/scalar-server-selector-block/components/ServerSelector.vue2.js +0 -4
- package/dist/components/AgentScalar/AgentScalarButton.vue.js +0 -22
- package/dist/components/AgentScalar/AgentScalarButton.vue2.js +0 -4
- package/dist/components/AgentScalar/AgentScalarChatInterface.vue.js +0 -4
- package/dist/components/AgentScalar/AgentScalarChatInterface.vue2.js +0 -29
- package/dist/components/AgentScalar/AgentScalarDrawer.vue.js +0 -7
- package/dist/components/AgentScalar/AgentScalarDrawer.vue2.js +0 -78
- package/dist/components/AgentScalar/OpenMCPButton.vue.js +0 -7
- package/dist/components/AgentScalar/OpenMCPButton.vue2.js +0 -191
- package/dist/components/Anchor/Anchor.vue.js +0 -51
- package/dist/components/Anchor/Anchor.vue2.js +0 -4
- package/dist/components/Anchor/WithBreadcrumb.vue.js +0 -41
- package/dist/components/Anchor/WithBreadcrumb.vue2.js +0 -4
- package/dist/components/ApiReference.vue.js +0 -10
- package/dist/components/ApiReference.vue2.js +0 -744
- package/dist/components/Badge/Badge.vue.js +0 -7
- package/dist/components/Badge/Badge.vue2.js +0 -26
- package/dist/components/ClassicHeader.vue.js +0 -21
- package/dist/components/Content/Auth/Auth.vue.js +0 -77
- package/dist/components/Content/Auth/Auth.vue2.js +0 -4
- package/dist/components/Content/Auth/helpers/get-default-security.js +0 -55
- package/dist/components/Content/Content.vue.js +0 -177
- package/dist/components/Content/Content.vue3.js +0 -5
- package/dist/components/Content/Models/Model.vue.js +0 -47
- package/dist/components/Content/Models/Model.vue2.js +0 -4
- package/dist/components/Content/Models/ModelTag.vue.js +0 -82
- package/dist/components/Content/Models/ModelTag.vue2.js +0 -4
- package/dist/components/Content/Models/components/ClassicLayout.vue.js +0 -7
- package/dist/components/Content/Models/components/ClassicLayout.vue2.js +0 -78
- package/dist/components/Content/Models/components/ModernLayout.vue.js +0 -61
- package/dist/components/Content/Models/components/ModernLayout.vue2.js +0 -4
- package/dist/components/Content/Operations/TraversedEntry.vue.js +0 -145
- package/dist/components/Content/Operations/TraversedEntry.vue2.js +0 -4
- package/dist/components/Content/Schema/RenderString.vue.js +0 -27
- package/dist/components/Content/Schema/RenderString.vue2.js +0 -4
- package/dist/components/Content/Schema/Schema.vue.js +0 -7
- package/dist/components/Content/Schema/Schema.vue2.js +0 -193
- package/dist/components/Content/Schema/SchemaComposition.vue.js +0 -120
- package/dist/components/Content/Schema/SchemaComposition.vue2.js +0 -4
- package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.js +0 -7
- package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue2.js +0 -36
- package/dist/components/Content/Schema/SchemaEnums.vue.js +0 -7
- package/dist/components/Content/Schema/SchemaEnums.vue2.js +0 -112
- package/dist/components/Content/Schema/SchemaHeading.vue.js +0 -7
- package/dist/components/Content/Schema/SchemaHeading.vue2.js +0 -61
- package/dist/components/Content/Schema/SchemaObjectExampleCodeBlock.vue.js +0 -66
- package/dist/components/Content/Schema/SchemaObjectExampleCodeBlock.vue2.js +0 -4
- package/dist/components/Content/Schema/SchemaObjectProperties.vue.js +0 -120
- package/dist/components/Content/Schema/SchemaObjectProperties.vue2.js +0 -4
- package/dist/components/Content/Schema/SchemaProperty.vue.js +0 -7
- package/dist/components/Content/Schema/SchemaProperty.vue2.js +0 -228
- package/dist/components/Content/Schema/SchemaPropertyDefault.vue.js +0 -7
- package/dist/components/Content/Schema/SchemaPropertyDefault.vue2.js +0 -45
- package/dist/components/Content/Schema/SchemaPropertyDetail.vue.js +0 -7
- package/dist/components/Content/Schema/SchemaPropertyDetail.vue2.js +0 -40
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue.js +0 -7
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue2.js +0 -80
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +0 -7
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +0 -318
- package/dist/components/Content/Schema/helpers/format-example.js +0 -41
- package/dist/components/Content/Schema/helpers/format-value.js +0 -35
- package/dist/components/Content/Schema/helpers/get-compositions-to-render.js +0 -31
- package/dist/components/Content/Schema/helpers/get-enum-values.js +0 -20
- package/dist/components/Content/Schema/helpers/get-property-description.js +0 -34
- package/dist/components/Content/Schema/helpers/get-ref-name.js +0 -14
- package/dist/components/Content/Schema/helpers/get-schema-type.js +0 -47
- package/dist/components/Content/Schema/helpers/has-complex-array-items.js +0 -48
- package/dist/components/Content/Schema/helpers/is-empty-schema-object.js +0 -13
- package/dist/components/Content/Schema/helpers/is-type-object.js +0 -27
- package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +0 -215
- package/dist/components/Content/Schema/helpers/optimize-value-for-display.js +0 -64
- package/dist/components/Content/Schema/helpers/schema-composition.js +0 -4
- package/dist/components/Content/Schema/helpers/schema-name.js +0 -24
- package/dist/components/Content/Schema/helpers/should-display-description.js +0 -12
- package/dist/components/Content/Schema/helpers/should-display-heading.js +0 -12
- package/dist/components/Content/Schema/helpers/should-render-array-item-composition.js +0 -15
- package/dist/components/Content/Schema/helpers/sort-property-names.js +0 -71
- package/dist/components/Content/Tags/Tag.vue.js +0 -46
- package/dist/components/Content/Tags/Tag.vue2.js +0 -4
- package/dist/components/Content/Tags/components/ClassicLayout.vue.js +0 -7
- package/dist/components/Content/Tags/components/ClassicLayout.vue2.js +0 -57
- package/dist/components/Content/Tags/components/ModernLayout.vue.js +0 -7
- package/dist/components/Content/Tags/components/ModernLayout.vue2.js +0 -64
- package/dist/components/Content/Tags/components/TagSection.vue.js +0 -100
- package/dist/components/Content/Tags/components/TagSection.vue2.js +0 -4
- package/dist/components/GettingStarted.vue.js +0 -7
- package/dist/components/GettingStarted.vue2.js +0 -82
- package/dist/components/HttpMethod/HttpMethod.vue.js +0 -34
- package/dist/components/HttpMethod/HttpMethod.vue2.js +0 -4
- package/dist/components/IntersectionObserver.vue.js +0 -55
- package/dist/components/IntersectionObserver.vue2.js +0 -4
- package/dist/components/Lazy/Lazy.vue.js +0 -17
- package/dist/components/Lazy/Lazy.vue2.js +0 -4
- package/dist/components/LinkList/LinkList.vue.js +0 -7
- package/dist/components/LinkList/LinkList.vue2.js +0 -48
- package/dist/components/LoadingSkeleton.vue.js +0 -7
- package/dist/components/LoadingSkeleton.vue2.js +0 -20
- package/dist/components/MobileHeader.vue.js +0 -62
- package/dist/components/MobileHeader.vue2.js +0 -4
- package/dist/components/OperationPath.vue.js +0 -7
- package/dist/components/OperationPath.vue2.js +0 -30
- package/dist/components/OperationsList/OperationsList.vue.js +0 -7
- package/dist/components/OperationsList/OperationsList.vue2.js +0 -61
- package/dist/components/OperationsList/OperationsListItem.vue.js +0 -7
- package/dist/components/OperationsList/OperationsListItem.vue2.js +0 -68
- package/dist/components/RenderPlugins/RenderPlugins.vue.js +0 -43
- package/dist/components/RenderPlugins/RenderPlugins.vue2.js +0 -4
- package/dist/components/ScreenReader.vue.js +0 -7
- package/dist/components/ScreenReader.vue2.js +0 -21
- package/dist/components/Section/CompactSection.vue.js +0 -7
- package/dist/components/Section/CompactSection.vue2.js +0 -60
- package/dist/components/Section/Section.vue.js +0 -7
- package/dist/components/Section/Section.vue2.js +0 -23
- package/dist/components/Section/SectionAccordion.vue.js +0 -7
- package/dist/components/Section/SectionAccordion.vue2.js +0 -76
- package/dist/components/Section/SectionColumn.vue.js +0 -14
- package/dist/components/Section/SectionColumns.vue.js +0 -14
- package/dist/components/Section/SectionContainer.vue.js +0 -7
- package/dist/components/Section/SectionContainer.vue2.js +0 -21
- package/dist/components/Section/SectionContainerAccordion.vue.js +0 -7
- package/dist/components/Section/SectionContainerAccordion.vue2.js +0 -54
- package/dist/components/Section/SectionContent.vue.js +0 -7
- package/dist/components/Section/SectionContent.vue2.js +0 -22
- package/dist/components/Section/SectionHeader.vue.js +0 -7
- package/dist/components/Section/SectionHeader.vue2.js +0 -26
- package/dist/components/Section/SectionHeaderTag.vue.js +0 -7
- package/dist/components/Section/SectionHeaderTag.vue2.js +0 -20
- package/dist/components/SectionFlare/SectionFlare.vue.js +0 -14
- package/dist/components/ShowMoreButton.vue.js +0 -7
- package/dist/components/ShowMoreButton.vue2.js +0 -23
- package/dist/consts/urls.js +0 -16
- package/dist/features/Operation/Operation.vue.js +0 -100
- package/dist/features/Operation/Operation.vue2.js +0 -4
- package/dist/features/Operation/components/ContentTypeSelect.vue.js +0 -88
- package/dist/features/Operation/components/ContentTypeSelect.vue2.js +0 -4
- package/dist/features/Operation/components/Header.vue.js +0 -33
- package/dist/features/Operation/components/Header.vue2.js +0 -4
- package/dist/features/Operation/components/Headers.vue.js +0 -7
- package/dist/features/Operation/components/Headers.vue2.js +0 -71
- package/dist/features/Operation/components/OperationParameters.vue.js +0 -92
- package/dist/features/Operation/components/OperationParameters.vue2.js +0 -4
- package/dist/features/Operation/components/OperationResponses.vue.js +0 -44
- package/dist/features/Operation/components/OperationResponses.vue2.js +0 -4
- package/dist/features/Operation/components/ParameterList.vue.js +0 -50
- package/dist/features/Operation/components/ParameterList.vue2.js +0 -4
- package/dist/features/Operation/components/ParameterListItem.vue.js +0 -7
- package/dist/features/Operation/components/ParameterListItem.vue2.js +0 -163
- package/dist/features/Operation/components/RequestBody.vue.js +0 -7
- package/dist/features/Operation/components/RequestBody.vue2.js +0 -164
- package/dist/features/Operation/components/callbacks/Callback.vue.js +0 -7
- package/dist/features/Operation/components/callbacks/Callback.vue2.js +0 -60
- package/dist/features/Operation/components/callbacks/Callbacks.vue.js +0 -63
- package/dist/features/Operation/components/callbacks/Callbacks.vue2.js +0 -4
- package/dist/features/Operation/helpers/filter-selected-security.js +0 -28
- package/dist/features/Operation/helpers/get-first-server.js +0 -25
- package/dist/features/Operation/layouts/ClassicLayout.vue.js +0 -7
- package/dist/features/Operation/layouts/ClassicLayout.vue2.js +0 -243
- package/dist/features/Operation/layouts/ModernLayout.vue.js +0 -7
- package/dist/features/Operation/layouts/ModernLayout.vue2.js +0 -256
- package/dist/features/Search/components/SearchButton.vue.js +0 -88
- package/dist/features/Search/components/SearchButton.vue2.js +0 -4
- package/dist/features/Search/components/SearchModal.vue.js +0 -7
- package/dist/features/Search/components/SearchModal.vue2.js +0 -120
- package/dist/features/Search/components/SearchResult.vue.js +0 -84
- package/dist/features/Search/components/SearchResult.vue2.js +0 -4
- package/dist/features/Search/helpers/create-fuse-instance.js +0 -43
- package/dist/features/Search/helpers/create-search-index.js +0 -119
- package/dist/features/Search/hooks/useSearchIndex.js +0 -33
- package/dist/features/ask-agent-button/AskAgentButton.vue.js +0 -7
- package/dist/features/ask-agent-button/AskAgentButton.vue2.js +0 -47
- package/dist/features/developer-tools/DeveloperTools.vue.js +0 -60
- package/dist/features/developer-tools/DeveloperTools.vue2.js +0 -4
- package/dist/features/developer-tools/components/ApiReferenceToolbarBlurb.vue.js +0 -13
- package/dist/features/developer-tools/components/ApiReferenceToolbarConfigLayout.vue.js +0 -33
- package/dist/features/developer-tools/components/ApiReferenceToolbarConfigLayout.vue2.js +0 -4
- package/dist/features/developer-tools/components/ApiReferenceToolbarConfigLayoutOptions.vue.js +0 -138
- package/dist/features/developer-tools/components/ApiReferenceToolbarConfigLayoutOptions.vue2.js +0 -4
- package/dist/features/developer-tools/components/ApiReferenceToolbarConfigTheme.vue.js +0 -66
- package/dist/features/developer-tools/components/ApiReferenceToolbarConfigTheme.vue2.js +0 -4
- package/dist/features/developer-tools/components/ApiReferenceToolbarPopover.vue.js +0 -54
- package/dist/features/developer-tools/components/ApiReferenceToolbarPopover.vue2.js +0 -4
- package/dist/features/developer-tools/components/ApiReferenceToolbarRegisterButton.vue.js +0 -71
- package/dist/features/developer-tools/components/ApiReferenceToolbarRegisterButton.vue2.js +0 -4
- package/dist/features/developer-tools/components/ApiReferenceToolbarShareRegister.vue.js +0 -63
- package/dist/features/developer-tools/components/ApiReferenceToolbarShareRegister.vue2.js +0 -4
- package/dist/features/developer-tools/components/ApiReferenceToolbarShareTemporary.vue.js +0 -73
- package/dist/features/developer-tools/components/ApiReferenceToolbarShareTemporary.vue2.js +0 -4
- package/dist/features/developer-tools/components/ApiReferenceToolbarTitle.vue.js +0 -57
- package/dist/features/developer-tools/components/ApiReferenceToolbarTitle.vue2.js +0 -4
- package/dist/features/developer-tools/components/DeployApiReference.vue.js +0 -35
- package/dist/features/developer-tools/components/DeployApiReference.vue2.js +0 -4
- package/dist/features/developer-tools/components/ModifyConfiguration.vue.js +0 -103
- package/dist/features/developer-tools/components/ModifyConfiguration.vue2.js +0 -4
- package/dist/features/developer-tools/components/ShareApiReference.vue.js +0 -35
- package/dist/features/developer-tools/components/ShareApiReference.vue2.js +0 -4
- package/dist/features/example-responses/ExampleResponse.vue.js +0 -7
- package/dist/features/example-responses/ExampleResponse.vue2.js +0 -61
- package/dist/features/example-responses/ExampleResponseTab.vue.js +0 -7
- package/dist/features/example-responses/ExampleResponseTab.vue2.js +0 -25
- package/dist/features/example-responses/ExampleResponseTabList.vue.js +0 -7
- package/dist/features/example-responses/ExampleResponseTabList.vue2.js +0 -37
- package/dist/features/example-responses/ExampleResponses.vue.js +0 -7
- package/dist/features/example-responses/ExampleResponses.vue2.js +0 -181
- package/dist/features/example-responses/ExampleSchema.vue.js +0 -42
- package/dist/features/example-responses/ExampleSchema.vue2.js +0 -4
- package/dist/features/example-responses/has-response-content.js +0 -28
- package/dist/features/external-docs/ExternalDocs.vue.js +0 -42
- package/dist/features/external-docs/ExternalDocs.vue2.js +0 -4
- package/dist/features/info-object/Contact.vue.js +0 -46
- package/dist/features/info-object/Contact.vue2.js +0 -4
- package/dist/features/info-object/License.vue.js +0 -40
- package/dist/features/info-object/License.vue2.js +0 -4
- package/dist/features/info-object/TermsOfService.vue.js +0 -34
- package/dist/features/info-object/TermsOfService.vue2.js +0 -4
- package/dist/features/multiple-documents/DocumentSelector.vue.js +0 -54
- package/dist/features/multiple-documents/DocumentSelector.vue2.js +0 -4
- package/dist/features/specification-extension/SpecificationExtension.vue.js +0 -4
- package/dist/features/specification-extension/SpecificationExtension.vue2.js +0 -52
- package/dist/features/specification-extension/helpers.js +0 -9
- package/dist/features/test-request-button/TestRequestButton.vue.js +0 -7
- package/dist/features/test-request-button/TestRequestButton.vue2.js +0 -46
- package/dist/features/x-badges/XBadges.vue.js +0 -35
- package/dist/features/x-badges/XBadges.vue2.js +0 -4
- package/dist/helpers/color-mode.js +0 -9
- package/dist/helpers/download.js +0 -45
- package/dist/helpers/id-routing.js +0 -63
- package/dist/helpers/lazy-bus.js +0 -160
- package/dist/helpers/load-from-perssistance.js +0 -17
- package/dist/helpers/map-config-plugins.js +0 -27
- package/dist/helpers/map-config-to-workspace-store.js +0 -45
- package/dist/helpers/normalize-configurations.js +0 -69
- package/dist/helpers/openapi.js +0 -135
- package/dist/helpers/storage.js +0 -47
- package/dist/helpers/upload-temp-document.js +0 -24
- package/dist/hooks/use-agent.js +0 -42
- package/dist/hooks/use-intersection.js +0 -32
- package/dist/plugins/hooks/usePluginManager.js +0 -14
- package/dist/plugins/persistance-plugin.js +0 -48
- package/dist/plugins/plugin-manager.js +0 -39
- package/dist/standalone/lib/html-api.js +0 -81
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { defineComponent, createBlock, openBlock, unref } from "vue";
|
|
2
|
-
import { Chat } from "@scalar/agent-chat";
|
|
3
|
-
import { REGISTRY_URL, DASHBOARD_URL, API_BASE_URL } from "../../consts/urls.js";
|
|
4
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
-
__name: "AgentScalarChatInterface",
|
|
6
|
-
props: {
|
|
7
|
-
agentScalarConfiguration: {},
|
|
8
|
-
workspaceStore: {},
|
|
9
|
-
prefilledMessage: {}
|
|
10
|
-
},
|
|
11
|
-
setup(__props) {
|
|
12
|
-
return (_ctx, _cache) => {
|
|
13
|
-
return openBlock(), createBlock(unref(Chat), {
|
|
14
|
-
baseUrl: unref(API_BASE_URL),
|
|
15
|
-
dashboardUrl: unref(DASHBOARD_URL),
|
|
16
|
-
getActiveDocumentJson: () => __props.workspaceStore.exportActiveDocument("json"),
|
|
17
|
-
getAgentKey: __props.agentScalarConfiguration?.key ? () => __props.agentScalarConfiguration?.key ?? "" : void 0,
|
|
18
|
-
hideAddApi: __props.agentScalarConfiguration?.hideAddApi,
|
|
19
|
-
mode: __props.agentScalarConfiguration?.key ? "full" : "preview",
|
|
20
|
-
prefilledMessage: __props.prefilledMessage,
|
|
21
|
-
registryDocuments: [],
|
|
22
|
-
registryUrl: unref(REGISTRY_URL)
|
|
23
|
-
}, null, 8, ["baseUrl", "dashboardUrl", "getActiveDocumentJson", "getAgentKey", "hideAddApi", "mode", "prefilledMessage", "registryUrl"]);
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
export {
|
|
28
|
-
_sfc_main as default
|
|
29
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import _sfc_main from "./AgentScalarDrawer.vue2.js";
|
|
2
|
-
/* empty css */
|
|
3
|
-
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const AgentScalarDrawer = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b38821a2"]]);
|
|
5
|
-
export {
|
|
6
|
-
AgentScalarDrawer as default
|
|
7
|
-
};
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { defineComponent, defineAsyncComponent, createElementBlock, openBlock, Fragment, createVNode, Transition, withCtx, withDirectives, createElementVNode, unref, vShow, withKeys } from "vue";
|
|
2
|
-
import { ScalarIconX } from "@scalar/icons";
|
|
3
|
-
import "@scalar/agent-chat/style.css";
|
|
4
|
-
import { ScalarIconButton } from "@scalar/components";
|
|
5
|
-
import { useAgentContext } from "../../hooks/use-agent.js";
|
|
6
|
-
const _hoisted_1 = { class: "agent-scalar-container custom-scroll custom-scroll-self-contain-overflow overflow-auto px-6" };
|
|
7
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
|
-
__name: "AgentScalarDrawer",
|
|
9
|
-
props: {
|
|
10
|
-
agentScalarConfiguration: {},
|
|
11
|
-
workspaceStore: {},
|
|
12
|
-
eventBus: {}
|
|
13
|
-
},
|
|
14
|
-
setup(__props) {
|
|
15
|
-
const agentContext = useAgentContext();
|
|
16
|
-
const AgentScalarChatInterface = defineAsyncComponent(
|
|
17
|
-
async () => import("./AgentScalarChatInterface.vue.js")
|
|
18
|
-
);
|
|
19
|
-
return (_ctx, _cache) => {
|
|
20
|
-
return openBlock(), createElementBlock(Fragment, null, [
|
|
21
|
-
createVNode(Transition, {
|
|
22
|
-
enterActiveClass: "transition-opacity duration-500",
|
|
23
|
-
enterFromClass: "opacity-0",
|
|
24
|
-
enterToClass: "opacity-100",
|
|
25
|
-
leaveActiveClass: "transition-opacity duration-200",
|
|
26
|
-
leaveFromClass: "opacity-100",
|
|
27
|
-
leaveToClass: "opacity-0"
|
|
28
|
-
}, {
|
|
29
|
-
default: withCtx(() => [
|
|
30
|
-
withDirectives(createElementVNode("div", {
|
|
31
|
-
class: "agent-scalar-overlay bg-backdrop fixed inset-0 z-10 ease-[cubic-bezier(0.77,0,0.175,1)]",
|
|
32
|
-
onClick: _cache[0] || (_cache[0] = ($event) => unref(agentContext)?.closeAgent())
|
|
33
|
-
}, null, 512), [
|
|
34
|
-
[vShow, unref(agentContext)?.showAgent.value]
|
|
35
|
-
])
|
|
36
|
-
]),
|
|
37
|
-
_: 1
|
|
38
|
-
}),
|
|
39
|
-
createVNode(Transition, {
|
|
40
|
-
enterActiveClass: "transition-transform duration-300",
|
|
41
|
-
enterFromClass: "-translate-x-full",
|
|
42
|
-
enterToClass: "translate-x-0",
|
|
43
|
-
leaveActiveClass: "transition-transform duration-200",
|
|
44
|
-
leaveFromClass: "translate-x-0",
|
|
45
|
-
leaveToClass: "-translate-x-full"
|
|
46
|
-
}, {
|
|
47
|
-
default: withCtx(() => [
|
|
48
|
-
withDirectives(createElementVNode("div", {
|
|
49
|
-
class: "agent-scalar left-w-sidebar bg-b-1 fixed inset-y-0 right-12 z-10 grid border-r shadow-lg",
|
|
50
|
-
onKeydown: _cache[2] || (_cache[2] = withKeys(($event) => unref(agentContext)?.closeAgent(), ["escape"]))
|
|
51
|
-
}, [
|
|
52
|
-
createElementVNode("div", _hoisted_1, [
|
|
53
|
-
createVNode(unref(AgentScalarChatInterface), {
|
|
54
|
-
agentScalarConfiguration: __props.agentScalarConfiguration,
|
|
55
|
-
prefilledMessage: unref(agentContext)?.prefilledMessage,
|
|
56
|
-
workspaceStore: __props.workspaceStore
|
|
57
|
-
}, null, 8, ["agentScalarConfiguration", "prefilledMessage", "workspaceStore"])
|
|
58
|
-
]),
|
|
59
|
-
createVNode(unref(ScalarIconButton), {
|
|
60
|
-
class: "agent-scalar-exit-button absolute top-2 right-2",
|
|
61
|
-
icon: unref(ScalarIconX),
|
|
62
|
-
label: "Close Client",
|
|
63
|
-
weight: "bold",
|
|
64
|
-
onClick: _cache[1] || (_cache[1] = ($event) => unref(agentContext)?.closeAgent())
|
|
65
|
-
}, null, 8, ["icon"])
|
|
66
|
-
], 544), [
|
|
67
|
-
[vShow, unref(agentContext)?.showAgent.value]
|
|
68
|
-
])
|
|
69
|
-
]),
|
|
70
|
-
_: 1
|
|
71
|
-
})
|
|
72
|
-
], 64);
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
});
|
|
76
|
-
export {
|
|
77
|
-
_sfc_main as default
|
|
78
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import _sfc_main from "./OpenMCPButton.vue2.js";
|
|
2
|
-
/* empty css */
|
|
3
|
-
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const OpenMCPButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d7102814"]]);
|
|
5
|
-
export {
|
|
6
|
-
OpenMCPButton as default
|
|
7
|
-
};
|
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
import { defineComponent, mergeModels, useModel, createElementBlock, openBlock, createElementVNode, unref, createTextVNode, createVNode, nextTick } from "vue";
|
|
2
|
-
import { useLoadingState } from "@scalar/components";
|
|
3
|
-
import { ScalarIconArrowUpRight } from "@scalar/icons";
|
|
4
|
-
import { isValidUrl } from "@scalar/oas-utils/helpers";
|
|
5
|
-
import { useClipboard } from "@scalar/use-hooks/useClipboard";
|
|
6
|
-
import { useToasts } from "@scalar/use-toasts";
|
|
7
|
-
import { DASHBOARD_REGISTER_URL } from "../../consts/urls.js";
|
|
8
|
-
import { uploadTempDocument } from "../../helpers/upload-temp-document.js";
|
|
9
|
-
const _hoisted_1 = { class: "scalar-mcp-layer" };
|
|
10
|
-
const _hoisted_2 = ["href", "target"];
|
|
11
|
-
const _hoisted_3 = ["href", "target"];
|
|
12
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
13
|
-
__name: "OpenMCPButton",
|
|
14
|
-
props: /* @__PURE__ */ mergeModels({
|
|
15
|
-
config: {},
|
|
16
|
-
url: {},
|
|
17
|
-
workspace: {}
|
|
18
|
-
}, {
|
|
19
|
-
"url": {},
|
|
20
|
-
"urlModifiers": {}
|
|
21
|
-
}),
|
|
22
|
-
emits: ["update:url"],
|
|
23
|
-
setup(__props) {
|
|
24
|
-
const props = __props;
|
|
25
|
-
const { copyToClipboard } = useClipboard();
|
|
26
|
-
const { toast } = useToasts();
|
|
27
|
-
const loader = useLoadingState();
|
|
28
|
-
const hasConfig = props.config?.name || props.config?.url;
|
|
29
|
-
const encoded = btoa(JSON.stringify(props.config ?? {}));
|
|
30
|
-
const name = encodeURIComponent(props.config?.name ?? "");
|
|
31
|
-
const cursorLink = `cursor://anysphere.cursor-deeplink/mcp/install?name=${name}&config=${encoded}`;
|
|
32
|
-
const vscodeLink = `vscode:mcp/install?${encodeURIComponent(JSON.stringify(props.config ?? {}))}`;
|
|
33
|
-
const docUrl = useModel(__props, "url");
|
|
34
|
-
async function generateRegisterLink() {
|
|
35
|
-
if (loader.isLoading || !props.workspace) {
|
|
36
|
-
return;
|
|
37
|
-
}
|
|
38
|
-
if (docUrl.value && isValidUrl(docUrl.value)) {
|
|
39
|
-
openRegisterLink(docUrl.value);
|
|
40
|
-
return;
|
|
41
|
-
}
|
|
42
|
-
loader.start();
|
|
43
|
-
const document = props.workspace.exportActiveDocument("json");
|
|
44
|
-
if (!document) {
|
|
45
|
-
toast("Unable to export active document", "error");
|
|
46
|
-
await loader.invalidate();
|
|
47
|
-
return;
|
|
48
|
-
}
|
|
49
|
-
try {
|
|
50
|
-
docUrl.value = await uploadTempDocument(document);
|
|
51
|
-
await loader.validate();
|
|
52
|
-
openRegisterLink(docUrl.value);
|
|
53
|
-
await nextTick();
|
|
54
|
-
await loader.clear();
|
|
55
|
-
} catch (error) {
|
|
56
|
-
const message = error instanceof Error ? error.message : "An unknown error occurred";
|
|
57
|
-
toast(message, "error");
|
|
58
|
-
await loader.invalidate();
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
function openRegisterLink(docUrl2) {
|
|
62
|
-
const url = new URL(DASHBOARD_REGISTER_URL);
|
|
63
|
-
url.searchParams.set("url", docUrl2);
|
|
64
|
-
url.searchParams.set("createMcp", "true");
|
|
65
|
-
window.open(url.toString(), "_blank");
|
|
66
|
-
}
|
|
67
|
-
return (_ctx, _cache) => {
|
|
68
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
69
|
-
createElementVNode("a", {
|
|
70
|
-
class: "scalar-mcp-layer-link",
|
|
71
|
-
href: unref(hasConfig) ? vscodeLink : void 0,
|
|
72
|
-
target: unref(hasConfig) ? "_blank" : void 0,
|
|
73
|
-
onClick: _cache[0] || (_cache[0] = (e) => {
|
|
74
|
-
if (!unref(hasConfig)) {
|
|
75
|
-
e.preventDefault();
|
|
76
|
-
generateRegisterLink();
|
|
77
|
-
}
|
|
78
|
-
})
|
|
79
|
-
}, [
|
|
80
|
-
_cache[3] || (_cache[3] = createElementVNode("svg", {
|
|
81
|
-
class: "mcp-logo",
|
|
82
|
-
fill: "currentColor",
|
|
83
|
-
height: "800",
|
|
84
|
-
viewBox: "0 0 32 32",
|
|
85
|
-
width: "800",
|
|
86
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
87
|
-
}, [
|
|
88
|
-
createElementVNode("path", { d: "M30.865 3.448 24.282.281a1.99 1.99 0 0 0-2.276.385L9.397 12.171 3.902 8.004a1.33 1.33 0 0 0-1.703.073L.439 9.681a1.33 1.33 0 0 0-.005 1.969L5.2 15.999.434 20.348a1.33 1.33 0 0 0 .005 1.969l1.76 1.604a1.33 1.33 0 0 0 1.703.073l5.495-4.172 12.615 11.51a1.98 1.98 0 0 0 2.271.385l6.589-3.172a1.99 1.99 0 0 0 1.13-1.802V5.248c0-.766-.443-1.469-1.135-1.802zm-6.86 19.818L14.432 16l9.573-7.266z" })
|
|
89
|
-
], -1)),
|
|
90
|
-
_cache[4] || (_cache[4] = createTextVNode(" VS Code ", -1)),
|
|
91
|
-
createVNode(unref(ScalarIconArrowUpRight), { class: "mcp-nav ml-auto size-4" })
|
|
92
|
-
], 8, _hoisted_2),
|
|
93
|
-
createElementVNode("a", {
|
|
94
|
-
class: "scalar-mcp-layer-link",
|
|
95
|
-
href: unref(hasConfig) ? cursorLink : void 0,
|
|
96
|
-
target: unref(hasConfig) ? "_blank" : void 0,
|
|
97
|
-
onClick: _cache[1] || (_cache[1] = (e) => {
|
|
98
|
-
if (!unref(hasConfig)) {
|
|
99
|
-
e.preventDefault();
|
|
100
|
-
generateRegisterLink();
|
|
101
|
-
}
|
|
102
|
-
})
|
|
103
|
-
}, [
|
|
104
|
-
_cache[5] || (_cache[5] = createElementVNode("svg", {
|
|
105
|
-
class: "mcp-logo",
|
|
106
|
-
viewBox: "0 0 466.73 532.09",
|
|
107
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
108
|
-
}, [
|
|
109
|
-
createElementVNode("path", {
|
|
110
|
-
d: "M457.43 125.94 244.42 2.96a22.13 22.13 0 0 0-22.12 0L9.3 125.94C3.55 129.26 0 135.4 0 142.05v247.99c0 6.65 3.55 12.79 9.3 16.11l213.01 122.98a22.13 22.13 0 0 0 22.12 0l213.01-122.98c5.75-3.32 9.3-9.46 9.3-16.11V142.05c0-6.65-3.55-12.79-9.3-16.11zm-13.38 26.05L238.42 508.15c-1.39 2.4-5.06 1.42-5.06-1.36V273.58c0-4.66-2.49-8.97-6.53-11.31L24.87 145.67c-2.4-1.39-1.42-5.06 1.36-5.06h411.26c5.84 0 9.49 6.33 6.57 11.39h-.01Z",
|
|
111
|
-
style: { "fill": "currentColor" }
|
|
112
|
-
})
|
|
113
|
-
], -1)),
|
|
114
|
-
_cache[6] || (_cache[6] = createTextVNode(" Cursor ", -1)),
|
|
115
|
-
createVNode(unref(ScalarIconArrowUpRight), { class: "mcp-nav ml-auto size-4" })
|
|
116
|
-
], 8, _hoisted_3),
|
|
117
|
-
!unref(hasConfig) ? (openBlock(), createElementBlock("div", {
|
|
118
|
-
key: 0,
|
|
119
|
-
class: "scalar-mcp-layer-link",
|
|
120
|
-
onClick: generateRegisterLink
|
|
121
|
-
}, [
|
|
122
|
-
_cache[7] || (_cache[7] = createElementVNode("svg", {
|
|
123
|
-
class: "mcp-logo",
|
|
124
|
-
fill: "none",
|
|
125
|
-
height: "173",
|
|
126
|
-
viewBox: "0 0 156 173",
|
|
127
|
-
width: "156",
|
|
128
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
129
|
-
}, [
|
|
130
|
-
createElementVNode("path", {
|
|
131
|
-
d: "m6 80.912 67.882-67.883c9.373-9.372 24.569-9.372 33.941 0s9.373 24.569 0 33.942L56.558 98.236",
|
|
132
|
-
stroke: "currentColor",
|
|
133
|
-
"stroke-linecap": "round",
|
|
134
|
-
"stroke-width": "12"
|
|
135
|
-
}),
|
|
136
|
-
createElementVNode("path", {
|
|
137
|
-
d: "m57.265 97.529 50.558-50.558c9.373-9.373 24.569-9.373 33.942 0l.353.353c9.373 9.373 9.373 24.569 0 33.941L80.725 142.66a8 8 0 0 0 0 11.313l12.606 12.607",
|
|
138
|
-
stroke: "currentColor",
|
|
139
|
-
"stroke-linecap": "round",
|
|
140
|
-
"stroke-width": "12"
|
|
141
|
-
}),
|
|
142
|
-
createElementVNode("path", {
|
|
143
|
-
d: "M90.853 30 40.648 80.205c-9.372 9.372-9.372 24.568 0 33.941 9.373 9.372 24.569 9.372 33.941 0l50.205-50.205",
|
|
144
|
-
stroke: "currentColor",
|
|
145
|
-
"stroke-linecap": "round",
|
|
146
|
-
"stroke-width": "12"
|
|
147
|
-
})
|
|
148
|
-
], -1)),
|
|
149
|
-
_cache[8] || (_cache[8] = createTextVNode(" Generate MCP ", -1)),
|
|
150
|
-
createVNode(unref(ScalarIconArrowUpRight), { class: "mcp-nav ml-auto size-4" })
|
|
151
|
-
])) : (openBlock(), createElementBlock("div", {
|
|
152
|
-
key: 1,
|
|
153
|
-
class: "scalar-mcp-layer-link",
|
|
154
|
-
onClick: _cache[2] || (_cache[2] = ($event) => unref(copyToClipboard)(__props.config?.url ?? ""))
|
|
155
|
-
}, [..._cache[9] || (_cache[9] = [
|
|
156
|
-
createTextVNode(" Connect MCP ", -1),
|
|
157
|
-
createElementVNode("svg", {
|
|
158
|
-
class: "mcp-logo ml-auto",
|
|
159
|
-
fill: "none",
|
|
160
|
-
height: "173",
|
|
161
|
-
viewBox: "0 0 156 173",
|
|
162
|
-
width: "156",
|
|
163
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
164
|
-
}, [
|
|
165
|
-
createElementVNode("path", {
|
|
166
|
-
d: "m6 80.912 67.882-67.883c9.373-9.372 24.569-9.372 33.941 0s9.373 24.569 0 33.942L56.558 98.236",
|
|
167
|
-
stroke: "currentColor",
|
|
168
|
-
"stroke-linecap": "round",
|
|
169
|
-
"stroke-width": "12"
|
|
170
|
-
}),
|
|
171
|
-
createElementVNode("path", {
|
|
172
|
-
d: "m57.265 97.529 50.558-50.558c9.373-9.373 24.569-9.373 33.942 0l.353.353c9.373 9.373 9.373 24.569 0 33.941L80.725 142.66a8 8 0 0 0 0 11.313l12.606 12.607",
|
|
173
|
-
stroke: "currentColor",
|
|
174
|
-
"stroke-linecap": "round",
|
|
175
|
-
"stroke-width": "12"
|
|
176
|
-
}),
|
|
177
|
-
createElementVNode("path", {
|
|
178
|
-
d: "M90.853 30 40.648 80.205c-9.372 9.372-9.372 24.568 0 33.941 9.373 9.372 24.569 9.372 33.941 0l50.205-50.205",
|
|
179
|
-
stroke: "currentColor",
|
|
180
|
-
"stroke-linecap": "round",
|
|
181
|
-
"stroke-width": "12"
|
|
182
|
-
})
|
|
183
|
-
], -1)
|
|
184
|
-
])]))
|
|
185
|
-
]);
|
|
186
|
-
};
|
|
187
|
-
}
|
|
188
|
-
});
|
|
189
|
-
export {
|
|
190
|
-
_sfc_main as default
|
|
191
|
-
};
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { defineComponent, useId, createElementBlock, openBlock, normalizeProps, guardReactiveProps, unref, createElementVNode, renderSlot, createVNode, withModifiers, withCtx, createTextVNode } from "vue";
|
|
2
|
-
import { useBindCx, ScalarButton } from "@scalar/components";
|
|
3
|
-
import { ScalarIconHash } from "@scalar/icons";
|
|
4
|
-
import ScreenReader from "../ScreenReader.vue.js";
|
|
5
|
-
const _hoisted_1 = ["id"];
|
|
6
|
-
const _hoisted_2 = { class: "relative" };
|
|
7
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
|
-
__name: "Anchor",
|
|
9
|
-
emits: ["copyAnchorUrl"],
|
|
10
|
-
setup(__props, { emit: __emit }) {
|
|
11
|
-
const emit = __emit;
|
|
12
|
-
const labelId = useId();
|
|
13
|
-
const { cx } = useBindCx();
|
|
14
|
-
return (_ctx, _cache) => {
|
|
15
|
-
return openBlock(), createElementBlock("span", normalizeProps(guardReactiveProps(unref(cx)("group/heading word-break-all relative"))), [
|
|
16
|
-
createElementVNode("span", {
|
|
17
|
-
id: unref(labelId),
|
|
18
|
-
class: "contents"
|
|
19
|
-
}, [
|
|
20
|
-
renderSlot(_ctx.$slots, "default")
|
|
21
|
-
], 8, _hoisted_1),
|
|
22
|
-
createElementVNode("span", _hoisted_2, [
|
|
23
|
-
_cache[2] || (_cache[2] = createElementVNode("span", null, "", -1)),
|
|
24
|
-
createVNode(unref(ScalarButton), {
|
|
25
|
-
"aria-describedby": unref(labelId),
|
|
26
|
-
class: "absolute top-1/2 left-0 inline-block h-fit -translate-y-1/2 px-1.5 py-1 opacity-0 group-hover/heading:opacity-100 group-has-focus-visible/heading:opacity-100",
|
|
27
|
-
variant: "ghost",
|
|
28
|
-
onClick: _cache[0] || (_cache[0] = withModifiers(() => emit("copyAnchorUrl"), ["stop"]))
|
|
29
|
-
}, {
|
|
30
|
-
default: withCtx(() => [
|
|
31
|
-
createVNode(unref(ScalarIconHash), {
|
|
32
|
-
"aria-hidden": "true",
|
|
33
|
-
class: "size-4.5"
|
|
34
|
-
}),
|
|
35
|
-
createVNode(ScreenReader, null, {
|
|
36
|
-
default: withCtx(() => [..._cache[1] || (_cache[1] = [
|
|
37
|
-
createTextVNode("Copy link", -1)
|
|
38
|
-
])]),
|
|
39
|
-
_: 1
|
|
40
|
-
})
|
|
41
|
-
]),
|
|
42
|
-
_: 1
|
|
43
|
-
}, 8, ["aria-describedby"])
|
|
44
|
-
])
|
|
45
|
-
], 16);
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
export {
|
|
50
|
-
_sfc_main as default
|
|
51
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { defineComponent, createElementBlock, renderSlot, openBlock, createElementVNode, createVNode, unref, createTextVNode } from "vue";
|
|
2
|
-
import { ScalarIconLink } from "@scalar/icons";
|
|
3
|
-
const _hoisted_1 = ["id"];
|
|
4
|
-
const _hoisted_2 = { class: "sr-only" };
|
|
5
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
|
-
__name: "WithBreadcrumb",
|
|
7
|
-
props: {
|
|
8
|
-
breadcrumb: {},
|
|
9
|
-
eventBus: {}
|
|
10
|
-
},
|
|
11
|
-
setup(__props) {
|
|
12
|
-
return (_ctx, _cache) => {
|
|
13
|
-
return __props.breadcrumb && __props.breadcrumb.length > 0 ? (openBlock(), createElementBlock("div", {
|
|
14
|
-
key: 0,
|
|
15
|
-
id: __props.breadcrumb.join("."),
|
|
16
|
-
class: "relative scroll-mt-24"
|
|
17
|
-
}, [
|
|
18
|
-
renderSlot(_ctx.$slots, "default"),
|
|
19
|
-
createElementVNode("button", {
|
|
20
|
-
class: "text-c-3 hover:text-c-1 absolute -top-2 -left-4.5 flex h-[calc(100%+16px)] w-4.5 cursor-pointer items-center justify-center pr-1.5 opacity-0 group-hover:opacity-100 focus-visible:opacity-100",
|
|
21
|
-
type: "button",
|
|
22
|
-
onClick: _cache[0] || (_cache[0] = () => __props.eventBus?.emit("copy-url:nav-item", { id: __props.breadcrumb.join(".") }))
|
|
23
|
-
}, [
|
|
24
|
-
createVNode(unref(ScalarIconLink), {
|
|
25
|
-
class: "size-3",
|
|
26
|
-
weight: "bold"
|
|
27
|
-
}),
|
|
28
|
-
createElementVNode("span", _hoisted_2, [
|
|
29
|
-
renderSlot(_ctx.$slots, "sr-label", {}, () => [
|
|
30
|
-
_cache[1] || (_cache[1] = createTextVNode("Copy link to ", -1)),
|
|
31
|
-
renderSlot(_ctx.$slots, "default")
|
|
32
|
-
])
|
|
33
|
-
])
|
|
34
|
-
])
|
|
35
|
-
], 8, _hoisted_1)) : renderSlot(_ctx.$slots, "default", { key: 1 });
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
export {
|
|
40
|
-
_sfc_main as default
|
|
41
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import _sfc_main from "./ApiReference.vue2.js";
|
|
2
|
-
/* empty css */
|
|
3
|
-
/* empty css */
|
|
4
|
-
/* empty css */
|
|
5
|
-
/* empty css */
|
|
6
|
-
import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
|
|
7
|
-
const ApiReference = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5197a9d8"]]);
|
|
8
|
-
export {
|
|
9
|
-
ApiReference as default
|
|
10
|
-
};
|