@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
package/dist/features/developer-tools/components/ApiReferenceToolbarConfigLayoutOptions.vue.js
DELETED
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
import { defineComponent, mergeModels, useModel, createBlock, openBlock, unref, withCtx, createVNode, createTextVNode } from "vue";
|
|
2
|
-
import { ScalarFormInputGroup, ScalarToggleInput } from "@scalar/components";
|
|
3
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
-
__name: "ApiReferenceToolbarConfigLayoutOptions",
|
|
5
|
-
props: /* @__PURE__ */ mergeModels({
|
|
6
|
-
configuration: {}
|
|
7
|
-
}, {
|
|
8
|
-
"modelValue": {
|
|
9
|
-
default: {}
|
|
10
|
-
},
|
|
11
|
-
"modelModifiers": {}
|
|
12
|
-
}),
|
|
13
|
-
emits: ["update:modelValue"],
|
|
14
|
-
setup(__props) {
|
|
15
|
-
const model = useModel(__props, "modelValue");
|
|
16
|
-
function getValue(key, defaultValue = false) {
|
|
17
|
-
return model.value[key] ?? __props.configuration?.[key] ?? defaultValue;
|
|
18
|
-
}
|
|
19
|
-
function setValue(key, value, defaultValue = false) {
|
|
20
|
-
if (value !== defaultValue) {
|
|
21
|
-
model.value = { ...model.value, [key]: value };
|
|
22
|
-
} else {
|
|
23
|
-
model.value = Object.fromEntries(
|
|
24
|
-
Object.entries(model.value).filter(([k]) => key !== k)
|
|
25
|
-
);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
return (_ctx, _cache) => {
|
|
29
|
-
return openBlock(), createBlock(unref(ScalarFormInputGroup), null, {
|
|
30
|
-
default: withCtx(() => [
|
|
31
|
-
createVNode(unref(ScalarToggleInput), {
|
|
32
|
-
modelValue: getValue("showSidebar", true),
|
|
33
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = (v) => setValue("showSidebar", !!v, true))
|
|
34
|
-
}, {
|
|
35
|
-
default: withCtx(() => [..._cache[11] || (_cache[11] = [
|
|
36
|
-
createTextVNode(" Show Sidebar ", -1)
|
|
37
|
-
])]),
|
|
38
|
-
_: 1
|
|
39
|
-
}, 8, ["modelValue"]),
|
|
40
|
-
createVNode(unref(ScalarToggleInput), {
|
|
41
|
-
modelValue: getValue("defaultOpenFirstTag", true),
|
|
42
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = (v) => setValue("defaultOpenFirstTag", !!v, true))
|
|
43
|
-
}, {
|
|
44
|
-
default: withCtx(() => [..._cache[12] || (_cache[12] = [
|
|
45
|
-
createTextVNode(" Default Open First Tag ", -1)
|
|
46
|
-
])]),
|
|
47
|
-
_: 1
|
|
48
|
-
}, 8, ["modelValue"]),
|
|
49
|
-
createVNode(unref(ScalarToggleInput), {
|
|
50
|
-
modelValue: getValue("defaultOpenAllTags"),
|
|
51
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = (v) => setValue("defaultOpenAllTags", !!v))
|
|
52
|
-
}, {
|
|
53
|
-
default: withCtx(() => [..._cache[13] || (_cache[13] = [
|
|
54
|
-
createTextVNode(" Default Open All Tags ", -1)
|
|
55
|
-
])]),
|
|
56
|
-
_: 1
|
|
57
|
-
}, 8, ["modelValue"]),
|
|
58
|
-
createVNode(unref(ScalarToggleInput), {
|
|
59
|
-
modelValue: getValue("expandAllModelSections"),
|
|
60
|
-
"onUpdate:modelValue": _cache[3] || (_cache[3] = (v) => setValue("expandAllModelSections", !!v))
|
|
61
|
-
}, {
|
|
62
|
-
default: withCtx(() => [..._cache[14] || (_cache[14] = [
|
|
63
|
-
createTextVNode(" Expand All Model Sections ", -1)
|
|
64
|
-
])]),
|
|
65
|
-
_: 1
|
|
66
|
-
}, 8, ["modelValue"]),
|
|
67
|
-
createVNode(unref(ScalarToggleInput), {
|
|
68
|
-
modelValue: getValue("expandAllResponses"),
|
|
69
|
-
"onUpdate:modelValue": _cache[4] || (_cache[4] = (v) => setValue("expandAllResponses", !!v))
|
|
70
|
-
}, {
|
|
71
|
-
default: withCtx(() => [..._cache[15] || (_cache[15] = [
|
|
72
|
-
createTextVNode(" Expand All Responses ", -1)
|
|
73
|
-
])]),
|
|
74
|
-
_: 1
|
|
75
|
-
}, 8, ["modelValue"]),
|
|
76
|
-
createVNode(unref(ScalarToggleInput), {
|
|
77
|
-
modelValue: getValue("hideClientButton"),
|
|
78
|
-
"onUpdate:modelValue": _cache[5] || (_cache[5] = (v) => setValue("hideClientButton", !!v))
|
|
79
|
-
}, {
|
|
80
|
-
default: withCtx(() => [..._cache[16] || (_cache[16] = [
|
|
81
|
-
createTextVNode(" Hide Client Button ", -1)
|
|
82
|
-
])]),
|
|
83
|
-
_: 1
|
|
84
|
-
}, 8, ["modelValue"]),
|
|
85
|
-
createVNode(unref(ScalarToggleInput), {
|
|
86
|
-
modelValue: getValue("hideDarkModeToggle"),
|
|
87
|
-
"onUpdate:modelValue": _cache[6] || (_cache[6] = (v) => setValue("hideDarkModeToggle", !!v))
|
|
88
|
-
}, {
|
|
89
|
-
default: withCtx(() => [..._cache[17] || (_cache[17] = [
|
|
90
|
-
createTextVNode(" Hide Dark Mode Toggle ", -1)
|
|
91
|
-
])]),
|
|
92
|
-
_: 1
|
|
93
|
-
}, 8, ["modelValue"]),
|
|
94
|
-
createVNode(unref(ScalarToggleInput), {
|
|
95
|
-
modelValue: getValue("hideModels"),
|
|
96
|
-
"onUpdate:modelValue": _cache[7] || (_cache[7] = (v) => setValue("hideModels", !!v))
|
|
97
|
-
}, {
|
|
98
|
-
default: withCtx(() => [..._cache[18] || (_cache[18] = [
|
|
99
|
-
createTextVNode(" Hide Models ", -1)
|
|
100
|
-
])]),
|
|
101
|
-
_: 1
|
|
102
|
-
}, 8, ["modelValue"]),
|
|
103
|
-
createVNode(unref(ScalarToggleInput), {
|
|
104
|
-
modelValue: getValue("hideSearch"),
|
|
105
|
-
"onUpdate:modelValue": _cache[8] || (_cache[8] = (v) => setValue("hideSearch", !!v))
|
|
106
|
-
}, {
|
|
107
|
-
default: withCtx(() => [..._cache[19] || (_cache[19] = [
|
|
108
|
-
createTextVNode(" Hide Search ", -1)
|
|
109
|
-
])]),
|
|
110
|
-
_: 1
|
|
111
|
-
}, 8, ["modelValue"]),
|
|
112
|
-
createVNode(unref(ScalarToggleInput), {
|
|
113
|
-
modelValue: getValue("showOperationId"),
|
|
114
|
-
"onUpdate:modelValue": _cache[9] || (_cache[9] = (v) => setValue("showOperationId", !!v))
|
|
115
|
-
}, {
|
|
116
|
-
default: withCtx(() => [..._cache[20] || (_cache[20] = [
|
|
117
|
-
createTextVNode(" Show Operation ID ", -1)
|
|
118
|
-
])]),
|
|
119
|
-
_: 1
|
|
120
|
-
}, 8, ["modelValue"]),
|
|
121
|
-
createVNode(unref(ScalarToggleInput), {
|
|
122
|
-
modelValue: getValue("hideTestRequestButton"),
|
|
123
|
-
"onUpdate:modelValue": _cache[10] || (_cache[10] = (v) => setValue("hideTestRequestButton", !!v))
|
|
124
|
-
}, {
|
|
125
|
-
default: withCtx(() => [..._cache[21] || (_cache[21] = [
|
|
126
|
-
createTextVNode(" Hide Test Request Button ", -1)
|
|
127
|
-
])]),
|
|
128
|
-
_: 1
|
|
129
|
-
}, 8, ["modelValue"])
|
|
130
|
-
]),
|
|
131
|
-
_: 1
|
|
132
|
-
});
|
|
133
|
-
};
|
|
134
|
-
}
|
|
135
|
-
});
|
|
136
|
-
export {
|
|
137
|
-
_sfc_main as default
|
|
138
|
-
};
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { defineComponent, useModel, computed, createBlock, openBlock, unref, withCtx, createVNode, createElementVNode, toDisplayString, normalizeClass } from "vue";
|
|
2
|
-
import { ScalarCombobox, ScalarListboxCheckbox, ScalarThemeSwatches, ScalarFormInput } from "@scalar/components";
|
|
3
|
-
import { ScalarIconCaretDown } from "@scalar/icons";
|
|
4
|
-
import { themeIds, presets, themeLabels } from "@scalar/themes";
|
|
5
|
-
const _hoisted_1 = { class: "min-w-0 flex-1 truncate text-left" };
|
|
6
|
-
const _hoisted_2 = { class: "text-c-1 inline-block min-w-0 flex-1 truncate" };
|
|
7
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
|
-
__name: "ApiReferenceToolbarConfigTheme",
|
|
9
|
-
props: {
|
|
10
|
-
"modelValue": {},
|
|
11
|
-
"modelModifiers": {}
|
|
12
|
-
},
|
|
13
|
-
emits: ["update:modelValue"],
|
|
14
|
-
setup(__props) {
|
|
15
|
-
const model = useModel(__props, "modelValue");
|
|
16
|
-
const options = computed(
|
|
17
|
-
() => themeIds.filter((id) => id !== "none").map((id) => ({
|
|
18
|
-
id,
|
|
19
|
-
label: themeLabels[id],
|
|
20
|
-
css: presets[id].theme
|
|
21
|
-
}))
|
|
22
|
-
);
|
|
23
|
-
const selected = computed({
|
|
24
|
-
get: () => {
|
|
25
|
-
const theme = model.value ?? "default";
|
|
26
|
-
return options.value.find((o) => o.id === theme) ?? options.value[0];
|
|
27
|
-
},
|
|
28
|
-
set: (option) => model.value = option.id
|
|
29
|
-
});
|
|
30
|
-
return (_ctx, _cache) => {
|
|
31
|
-
return openBlock(), createBlock(unref(ScalarCombobox), {
|
|
32
|
-
modelValue: selected.value,
|
|
33
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => selected.value = $event),
|
|
34
|
-
options: options.value,
|
|
35
|
-
resize: ""
|
|
36
|
-
}, {
|
|
37
|
-
default: withCtx(({ open }) => [
|
|
38
|
-
createVNode(unref(ScalarFormInput), null, {
|
|
39
|
-
default: withCtx(() => [
|
|
40
|
-
createElementVNode("div", _hoisted_1, toDisplayString(selected.value.label), 1),
|
|
41
|
-
createVNode(unref(ScalarThemeSwatches), {
|
|
42
|
-
class: "mr-2",
|
|
43
|
-
css: selected.value.css
|
|
44
|
-
}, null, 8, ["css"]),
|
|
45
|
-
createVNode(unref(ScalarIconCaretDown), {
|
|
46
|
-
class: normalizeClass(["size-3.5 transition-transform", { "rotate-180": open }])
|
|
47
|
-
}, null, 8, ["class"])
|
|
48
|
-
]),
|
|
49
|
-
_: 2
|
|
50
|
-
}, 1024)
|
|
51
|
-
]),
|
|
52
|
-
option: withCtx(({ selected: selected2, option }) => [
|
|
53
|
-
createVNode(unref(ScalarListboxCheckbox), { selected: selected2 }, null, 8, ["selected"]),
|
|
54
|
-
createElementVNode("span", _hoisted_2, toDisplayString(option.label), 1),
|
|
55
|
-
createVNode(unref(ScalarThemeSwatches), {
|
|
56
|
-
css: option.css
|
|
57
|
-
}, null, 8, ["css"])
|
|
58
|
-
]),
|
|
59
|
-
_: 1
|
|
60
|
-
}, 8, ["modelValue", "options"]);
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
export {
|
|
65
|
-
_sfc_main as default
|
|
66
|
-
};
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { defineComponent, createBlock, openBlock, unref, withCtx, createVNode, createElementVNode, renderSlot, normalizeProps, guardReactiveProps, createTextVNode, normalizeClass } from "vue";
|
|
2
|
-
import { ScalarPopover, ScalarFloatingBackdrop } from "@scalar/components";
|
|
3
|
-
import { ScalarIconInfo, ScalarIconCaretDown } from "@scalar/icons";
|
|
4
|
-
const _hoisted_1 = {
|
|
5
|
-
class: "text-c-2 hover:text-c-1 hover:bg-b-2 flex items-center gap-1 rounded px-2 py-2.25 text-base leading-none",
|
|
6
|
-
type: "button"
|
|
7
|
-
};
|
|
8
|
-
const _hoisted_2 = { class: "custom-scroll bg-b-1 flex flex-col gap-7 rounded-lg p-7 pb-6" };
|
|
9
|
-
const _hoisted_3 = { class: "text-c-2 flex items-center justify-center gap-1 p-2 text-sm" };
|
|
10
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
11
|
-
__name: "ApiReferenceToolbarPopover",
|
|
12
|
-
setup(__props) {
|
|
13
|
-
return (_ctx, _cache) => {
|
|
14
|
-
return openBlock(), createBlock(unref(ScalarPopover), {
|
|
15
|
-
class: "max-h-[inherit] max-w-[inherit] p-0 text-base",
|
|
16
|
-
placement: "bottom-end",
|
|
17
|
-
teleport: ""
|
|
18
|
-
}, {
|
|
19
|
-
default: withCtx(({ open }) => [
|
|
20
|
-
renderSlot(_ctx.$slots, "button", { open }, () => [
|
|
21
|
-
createElementVNode("button", _hoisted_1, [
|
|
22
|
-
renderSlot(_ctx.$slots, "label"),
|
|
23
|
-
createVNode(unref(ScalarIconCaretDown), {
|
|
24
|
-
class: normalizeClass(["size-3", { "rotate-180": open }])
|
|
25
|
-
}, null, 8, ["class"])
|
|
26
|
-
])
|
|
27
|
-
])
|
|
28
|
-
]),
|
|
29
|
-
popover: withCtx((props) => [
|
|
30
|
-
createElementVNode("div", _hoisted_2, [
|
|
31
|
-
renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(props)))
|
|
32
|
-
]),
|
|
33
|
-
createElementVNode("div", _hoisted_3, [
|
|
34
|
-
createVNode(unref(ScalarIconInfo), { class: "size-3.5 shrink-0" }),
|
|
35
|
-
createElementVNode("div", null, [
|
|
36
|
-
renderSlot(_ctx.$slots, "info", {}, () => [
|
|
37
|
-
_cache[0] || (_cache[0] = createTextVNode(' "', -1)),
|
|
38
|
-
renderSlot(_ctx.$slots, "label"),
|
|
39
|
-
_cache[1] || (_cache[1] = createTextVNode('" will only appear when running on localhost. ', -1))
|
|
40
|
-
])
|
|
41
|
-
])
|
|
42
|
-
])
|
|
43
|
-
]),
|
|
44
|
-
backdrop: withCtx(() => [
|
|
45
|
-
createVNode(unref(ScalarFloatingBackdrop), { class: "bg-b-2 rounded-lg" })
|
|
46
|
-
]),
|
|
47
|
-
_: 3
|
|
48
|
-
});
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
export {
|
|
53
|
-
_sfc_main as default
|
|
54
|
-
};
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { defineComponent, mergeModels, useModel, createBlock, openBlock, unref, withCtx, renderSlot, createTextVNode, nextTick } from "vue";
|
|
2
|
-
import { useLoadingState, ScalarButton } from "@scalar/components";
|
|
3
|
-
import { useToasts } from "@scalar/use-toasts";
|
|
4
|
-
import { DASHBOARD_REGISTER_URL } from "../../../consts/urls.js";
|
|
5
|
-
import { uploadTempDocument } from "../../../helpers/upload-temp-document.js";
|
|
6
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
-
__name: "ApiReferenceToolbarRegisterButton",
|
|
8
|
-
props: /* @__PURE__ */ mergeModels({
|
|
9
|
-
workspace: {},
|
|
10
|
-
sdks: { default: () => [] }
|
|
11
|
-
}, {
|
|
12
|
-
"url": {},
|
|
13
|
-
"urlModifiers": {}
|
|
14
|
-
}),
|
|
15
|
-
emits: ["update:url"],
|
|
16
|
-
setup(__props) {
|
|
17
|
-
const tempDocUrl = useModel(__props, "url");
|
|
18
|
-
const { toast } = useToasts();
|
|
19
|
-
const loader = useLoadingState();
|
|
20
|
-
function openRegisterLink(docUrl) {
|
|
21
|
-
const url = new URL(DASHBOARD_REGISTER_URL);
|
|
22
|
-
url.searchParams.set("url", docUrl);
|
|
23
|
-
__props.sdks.forEach((sdk) => url.searchParams.append("sdk", sdk));
|
|
24
|
-
window.open(url.toString(), "_blank");
|
|
25
|
-
}
|
|
26
|
-
async function generateRegisterLink() {
|
|
27
|
-
if (loader.isLoading || !__props.workspace) {
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
|
-
if (tempDocUrl.value) {
|
|
31
|
-
openRegisterLink(tempDocUrl.value);
|
|
32
|
-
return;
|
|
33
|
-
}
|
|
34
|
-
loader.start();
|
|
35
|
-
const document = __props.workspace.exportActiveDocument("json");
|
|
36
|
-
if (!document) {
|
|
37
|
-
toast("Unable to export active document", "error");
|
|
38
|
-
await loader.invalidate();
|
|
39
|
-
return;
|
|
40
|
-
}
|
|
41
|
-
try {
|
|
42
|
-
tempDocUrl.value = await uploadTempDocument(document);
|
|
43
|
-
await loader.validate();
|
|
44
|
-
openRegisterLink(tempDocUrl.value);
|
|
45
|
-
await nextTick();
|
|
46
|
-
await loader.clear();
|
|
47
|
-
} catch (error) {
|
|
48
|
-
const message = error instanceof Error ? error.message : "An unknown error occurred";
|
|
49
|
-
toast(message, "error");
|
|
50
|
-
await loader.invalidate();
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
return (_ctx, _cache) => {
|
|
54
|
-
return openBlock(), createBlock(unref(ScalarButton), {
|
|
55
|
-
class: "h-auto p-2.5",
|
|
56
|
-
loader: unref(loader),
|
|
57
|
-
onClick: generateRegisterLink
|
|
58
|
-
}, {
|
|
59
|
-
default: withCtx(() => [
|
|
60
|
-
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
61
|
-
_cache[0] || (_cache[0] = createTextVNode("Generate", -1))
|
|
62
|
-
])
|
|
63
|
-
]),
|
|
64
|
-
_: 3
|
|
65
|
-
}, 8, ["loader"]);
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
export {
|
|
70
|
-
_sfc_main as default
|
|
71
|
-
};
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { defineComponent, createElementBlock, openBlock, Fragment, createElementVNode, createVNode, renderList, createBlock, createTextVNode, resolveDynamicComponent, toDisplayString, withCtx } from "vue";
|
|
2
|
-
import { ScalarIconLockSimple, ScalarIconGlobeSimple, ScalarIconBookOpen, ScalarIconCloud, ScalarIconGitBranch, ScalarIconFileMd, ScalarIconWarningOctagon, ScalarIconBracketsCurly } from "@scalar/icons";
|
|
3
|
-
import ApiReferenceToolbarBlurb from "./ApiReferenceToolbarBlurb.vue.js";
|
|
4
|
-
import _sfc_main$1 from "./ApiReferenceToolbarRegisterButton.vue.js";
|
|
5
|
-
const _hoisted_1 = { class: "text-c-2 mb-2 grid grid-cols-2 gap-2.5 font-medium" };
|
|
6
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
-
__name: "ApiReferenceToolbarShareRegister",
|
|
8
|
-
props: {
|
|
9
|
-
workspace: {}
|
|
10
|
-
},
|
|
11
|
-
setup(__props) {
|
|
12
|
-
const FEATURES = [
|
|
13
|
-
{ icon: ScalarIconLockSimple, label: "Password Protection" },
|
|
14
|
-
{ icon: ScalarIconGlobeSimple, label: "Custom Domains" },
|
|
15
|
-
{ icon: ScalarIconBookOpen, label: "Free-form content" },
|
|
16
|
-
{ icon: ScalarIconCloud, label: "CDN Infrastructure" },
|
|
17
|
-
{ icon: ScalarIconGitBranch, label: "Pull from GitHub" },
|
|
18
|
-
{ icon: ScalarIconFileMd, label: "Markdown/MDX" },
|
|
19
|
-
{ icon: ScalarIconWarningOctagon, label: "Spectral Linting" },
|
|
20
|
-
{ icon: ScalarIconBracketsCurly, label: "JSON Schema Hosting" }
|
|
21
|
-
];
|
|
22
|
-
return (_ctx, _cache) => {
|
|
23
|
-
return openBlock(), createElementBlock(Fragment, null, [
|
|
24
|
-
createElementVNode("ul", _hoisted_1, [
|
|
25
|
-
(openBlock(), createElementBlock(Fragment, null, renderList(FEATURES, (feature) => {
|
|
26
|
-
return createElementVNode("li", {
|
|
27
|
-
key: feature.label,
|
|
28
|
-
class: "flex items-center gap-2"
|
|
29
|
-
}, [
|
|
30
|
-
(openBlock(), createBlock(resolveDynamicComponent(feature.icon), {
|
|
31
|
-
class: "text-c-3 size-3.5",
|
|
32
|
-
weight: "bold"
|
|
33
|
-
})),
|
|
34
|
-
createTextVNode(" " + toDisplayString(feature.label), 1)
|
|
35
|
-
]);
|
|
36
|
-
}), 64))
|
|
37
|
-
]),
|
|
38
|
-
createVNode(_sfc_main$1, { workspace: __props.workspace }, {
|
|
39
|
-
default: withCtx(() => [..._cache[0] || (_cache[0] = [
|
|
40
|
-
createTextVNode(" Deploy on Scalar ", -1)
|
|
41
|
-
])]),
|
|
42
|
-
_: 1
|
|
43
|
-
}, 8, ["workspace"]),
|
|
44
|
-
createVNode(ApiReferenceToolbarBlurb, null, {
|
|
45
|
-
default: withCtx(() => [..._cache[1] || (_cache[1] = [
|
|
46
|
-
createTextVNode(" Deploy your documentation for free. ", -1),
|
|
47
|
-
createElementVNode("br", null, null, -1),
|
|
48
|
-
createTextVNode(" Additional features might require ", -1),
|
|
49
|
-
createElementVNode("a", {
|
|
50
|
-
href: "https://scalar.com/products/docs/getting-started",
|
|
51
|
-
target: "_blank"
|
|
52
|
-
}, "Scalar Pro", -1),
|
|
53
|
-
createTextVNode(". ", -1)
|
|
54
|
-
])]),
|
|
55
|
-
_: 1
|
|
56
|
-
})
|
|
57
|
-
], 64);
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
});
|
|
61
|
-
export {
|
|
62
|
-
_sfc_main as default
|
|
63
|
-
};
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { defineComponent, mergeModels, useModel, createElementBlock, openBlock, Fragment, createBlock, createVNode, unref, withCtx, createTextVNode } from "vue";
|
|
2
|
-
import { useLoadingState, ScalarTextInputCopy, ScalarButton } from "@scalar/components";
|
|
3
|
-
import { useToasts } from "@scalar/use-toasts";
|
|
4
|
-
import { REGISTRY_SHARE_URL } from "../../../consts/urls.js";
|
|
5
|
-
import { uploadTempDocument } from "../../../helpers/upload-temp-document.js";
|
|
6
|
-
import ApiReferenceToolbarBlurb from "./ApiReferenceToolbarBlurb.vue.js";
|
|
7
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
|
-
__name: "ApiReferenceToolbarShareTemporary",
|
|
9
|
-
props: /* @__PURE__ */ mergeModels({
|
|
10
|
-
workspace: {}
|
|
11
|
-
}, {
|
|
12
|
-
"url": {},
|
|
13
|
-
"urlModifiers": {}
|
|
14
|
-
}),
|
|
15
|
-
emits: ["update:url"],
|
|
16
|
-
setup(__props) {
|
|
17
|
-
const { toast } = useToasts();
|
|
18
|
-
const loader = useLoadingState();
|
|
19
|
-
const tempDocUrl = useModel(__props, "url");
|
|
20
|
-
async function generateTemporaryLink() {
|
|
21
|
-
if (loader.isLoading || !__props.workspace || !!tempDocUrl.value) {
|
|
22
|
-
return;
|
|
23
|
-
}
|
|
24
|
-
loader.start();
|
|
25
|
-
const document = __props.workspace.exportActiveDocument("json");
|
|
26
|
-
if (!document) {
|
|
27
|
-
toast("Unable to export active document", "error");
|
|
28
|
-
await loader.invalidate();
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
31
|
-
try {
|
|
32
|
-
const url = await uploadTempDocument(document);
|
|
33
|
-
await loader.validate({ duration: 900, persist: true });
|
|
34
|
-
tempDocUrl.value = url;
|
|
35
|
-
} catch (error) {
|
|
36
|
-
const message = error instanceof Error ? error.message : "An unknown error occurred";
|
|
37
|
-
toast(message, "error");
|
|
38
|
-
await loader.invalidate();
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
return (_ctx, _cache) => {
|
|
42
|
-
return openBlock(), createElementBlock(Fragment, null, [
|
|
43
|
-
tempDocUrl.value ? (openBlock(), createBlock(unref(ScalarTextInputCopy), {
|
|
44
|
-
key: 0,
|
|
45
|
-
immediate: "",
|
|
46
|
-
modelValue: tempDocUrl.value,
|
|
47
|
-
name: "temporary-link",
|
|
48
|
-
placeholder: `${unref(REGISTRY_SHARE_URL)}/apis/…`
|
|
49
|
-
}, null, 8, ["modelValue", "placeholder"])) : (openBlock(), createBlock(unref(ScalarButton), {
|
|
50
|
-
key: 1,
|
|
51
|
-
class: "h-auto p-2.5",
|
|
52
|
-
loader: unref(loader),
|
|
53
|
-
variant: "gradient",
|
|
54
|
-
onClick: generateTemporaryLink
|
|
55
|
-
}, {
|
|
56
|
-
default: withCtx(() => [..._cache[0] || (_cache[0] = [
|
|
57
|
-
createTextVNode(" Upload Document ", -1)
|
|
58
|
-
])]),
|
|
59
|
-
_: 1
|
|
60
|
-
}, 8, ["loader"])),
|
|
61
|
-
createVNode(ApiReferenceToolbarBlurb, { class: "-mt-1" }, {
|
|
62
|
-
default: withCtx(() => [..._cache[1] || (_cache[1] = [
|
|
63
|
-
createTextVNode(" Your document will automatically be deleted after 7 days. ", -1)
|
|
64
|
-
])]),
|
|
65
|
-
_: 1
|
|
66
|
-
})
|
|
67
|
-
], 64);
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
export {
|
|
72
|
-
_sfc_main as default
|
|
73
|
-
};
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { defineComponent, createBlock, openBlock, withCtx, createElementVNode, createTextVNode, createVNode, toDisplayString, unref } from "vue";
|
|
2
|
-
import { ScalarIconButton } from "@scalar/components";
|
|
3
|
-
import { ScalarIconCopy, ScalarIconInfo } from "@scalar/icons";
|
|
4
|
-
import { useClipboard } from "@scalar/use-hooks/useClipboard";
|
|
5
|
-
import _sfc_main$1 from "./ApiReferenceToolbarPopover.vue.js";
|
|
6
|
-
const _hoisted_1 = {
|
|
7
|
-
class: "text-c-2 hover:text-c-1 hover:bg-b-2 ml-auto flex items-center gap-1 rounded px-2 py-2.25 text-base leading-none",
|
|
8
|
-
type: "button"
|
|
9
|
-
};
|
|
10
|
-
const _hoisted_2 = { class: "-m-2 flex flex-col gap-2 leading-relaxed" };
|
|
11
|
-
const _hoisted_3 = { class: "bg-b-2 inline-flex items-center gap-0.5 rounded border px-1 py-0.5 text-sm" };
|
|
12
|
-
const CONFIG_SETTING = 'showDeveloperTools: "never"';
|
|
13
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
14
|
-
__name: "ApiReferenceToolbarTitle",
|
|
15
|
-
setup(__props) {
|
|
16
|
-
const { copyToClipboard } = useClipboard();
|
|
17
|
-
return (_ctx, _cache) => {
|
|
18
|
-
return openBlock(), createBlock(_sfc_main$1, {
|
|
19
|
-
class: "w-120",
|
|
20
|
-
placement: "bottom-start"
|
|
21
|
-
}, {
|
|
22
|
-
button: withCtx(() => [
|
|
23
|
-
createElementVNode("button", _hoisted_1, [
|
|
24
|
-
createVNode(unref(ScalarIconInfo)),
|
|
25
|
-
_cache[1] || (_cache[1] = createTextVNode(" Developer Tools ", -1))
|
|
26
|
-
])
|
|
27
|
-
]),
|
|
28
|
-
info: withCtx(() => [..._cache[5] || (_cache[5] = [
|
|
29
|
-
createTextVNode(" The developer tools will only appear when running on localhost. ", -1)
|
|
30
|
-
])]),
|
|
31
|
-
default: withCtx(() => [
|
|
32
|
-
createElementVNode("div", _hoisted_2, [
|
|
33
|
-
_cache[4] || (_cache[4] = createElementVNode("div", null, " The developer tools allow you to customize the appearance and behavior of your documentation. You can also share your documentation using the Scalar Registry. ", -1)),
|
|
34
|
-
createElementVNode("div", null, [
|
|
35
|
-
_cache[2] || (_cache[2] = createTextVNode(" To disable the toolbar, set ", -1)),
|
|
36
|
-
createElementVNode("div", _hoisted_3, [
|
|
37
|
-
createElementVNode("code", { class: "font-code" }, toDisplayString(CONFIG_SETTING)),
|
|
38
|
-
createVNode(unref(ScalarIconButton), {
|
|
39
|
-
class: "-m-1 p-1.25",
|
|
40
|
-
icon: unref(ScalarIconCopy),
|
|
41
|
-
label: "Copy link to clipboard",
|
|
42
|
-
size: "sm",
|
|
43
|
-
onClick: _cache[0] || (_cache[0] = ($event) => unref(copyToClipboard)(CONFIG_SETTING))
|
|
44
|
-
}, null, 8, ["icon"])
|
|
45
|
-
]),
|
|
46
|
-
_cache[3] || (_cache[3] = createTextVNode(" in your configuration. ", -1))
|
|
47
|
-
])
|
|
48
|
-
])
|
|
49
|
-
]),
|
|
50
|
-
_: 1
|
|
51
|
-
});
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
export {
|
|
56
|
-
_sfc_main as default
|
|
57
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { defineComponent, createBlock, openBlock, withCtx, createVNode, unref, createElementVNode, createTextVNode } from "vue";
|
|
2
|
-
import { ScalarFormSection } from "@scalar/components";
|
|
3
|
-
import _sfc_main$1 from "./ApiReferenceToolbarPopover.vue.js";
|
|
4
|
-
import _sfc_main$2 from "./ApiReferenceToolbarShareRegister.vue.js";
|
|
5
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
|
-
__name: "DeployApiReference",
|
|
7
|
-
props: {
|
|
8
|
-
workspace: {}
|
|
9
|
-
},
|
|
10
|
-
setup(__props) {
|
|
11
|
-
return (_ctx, _cache) => {
|
|
12
|
-
return openBlock(), createBlock(_sfc_main$1, { class: "w-120" }, {
|
|
13
|
-
label: withCtx(() => [..._cache[0] || (_cache[0] = [
|
|
14
|
-
createTextVNode("Deploy", -1)
|
|
15
|
-
])]),
|
|
16
|
-
default: withCtx(() => [
|
|
17
|
-
createVNode(unref(ScalarFormSection), null, {
|
|
18
|
-
label: withCtx(() => [..._cache[1] || (_cache[1] = [
|
|
19
|
-
createTextVNode("Scalar Docs", -1)
|
|
20
|
-
])]),
|
|
21
|
-
default: withCtx(() => [
|
|
22
|
-
_cache[2] || (_cache[2] = createElementVNode("p", { class: "text-c-2 mb-2 leading-normal" }, " Deploy your documentation on Scalar, the modern documentation platform for your API and everything else. ", -1)),
|
|
23
|
-
createVNode(_sfc_main$2, { workspace: __props.workspace }, null, 8, ["workspace"])
|
|
24
|
-
]),
|
|
25
|
-
_: 1
|
|
26
|
-
})
|
|
27
|
-
]),
|
|
28
|
-
_: 1
|
|
29
|
-
});
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
export {
|
|
34
|
-
_sfc_main as default
|
|
35
|
-
};
|