@scalar/api-reference 1.49.2 → 1.49.4
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 +15 -0
- package/dist/_virtual/_plugin-vue_export-helper.js +8 -0
- package/dist/blocks/index.js +4 -2
- package/dist/blocks/scalar-client-selector-block/components/ClientDropdown.vue.d.ts.map +1 -1
- package/dist/blocks/scalar-client-selector-block/components/ClientDropdown.vue.js +9 -0
- package/dist/blocks/scalar-client-selector-block/components/ClientDropdown.vue.js.map +1 -0
- package/dist/blocks/scalar-client-selector-block/components/ClientDropdown.vue.script.js +106 -0
- package/dist/blocks/scalar-client-selector-block/components/ClientDropdown.vue.script.js.map +1 -0
- package/dist/blocks/scalar-client-selector-block/components/ClientSelector.vue.js +9 -0
- package/dist/blocks/scalar-client-selector-block/components/ClientSelector.vue.js.map +1 -0
- package/dist/blocks/scalar-client-selector-block/components/ClientSelector.vue.script.js +121 -0
- package/dist/blocks/scalar-client-selector-block/components/ClientSelector.vue.script.js.map +1 -0
- package/dist/blocks/scalar-client-selector-block/helpers/featured-clients.js +27 -0
- package/dist/blocks/scalar-client-selector-block/helpers/featured-clients.js.map +1 -0
- package/dist/blocks/scalar-client-selector-block/index.d.ts +1 -1
- package/dist/blocks/scalar-info-block/components/DownloadLink.vue.js +9 -0
- package/dist/blocks/scalar-info-block/components/DownloadLink.vue.js.map +1 -0
- package/dist/blocks/scalar-info-block/components/DownloadLink.vue.script.js +55 -0
- package/dist/blocks/scalar-info-block/components/DownloadLink.vue.script.js.map +1 -0
- package/dist/blocks/scalar-info-block/components/InfoBlock.vue.js +7 -0
- package/dist/blocks/scalar-info-block/components/InfoBlock.vue.js.map +1 -0
- package/dist/blocks/scalar-info-block/components/InfoBlock.vue.script.js +69 -0
- package/dist/blocks/scalar-info-block/components/InfoBlock.vue.script.js.map +1 -0
- package/dist/blocks/scalar-info-block/components/InfoDescription.vue.js +9 -0
- package/dist/blocks/scalar-info-block/components/InfoDescription.vue.js.map +1 -0
- package/dist/blocks/scalar-info-block/components/InfoDescription.vue.script.js +68 -0
- package/dist/blocks/scalar-info-block/components/InfoDescription.vue.script.js.map +1 -0
- package/dist/blocks/scalar-info-block/components/InfoLinks.vue.js +7 -0
- package/dist/blocks/scalar-info-block/components/InfoLinks.vue.js.map +1 -0
- package/dist/blocks/scalar-info-block/components/InfoLinks.vue.script.js +40 -0
- package/dist/blocks/scalar-info-block/components/InfoLinks.vue.script.js.map +1 -0
- package/dist/blocks/scalar-info-block/components/InfoMarkdownSection.vue.js +7 -0
- package/dist/blocks/scalar-info-block/components/InfoMarkdownSection.vue.js.map +1 -0
- package/dist/blocks/scalar-info-block/components/InfoMarkdownSection.vue.script.js +35 -0
- package/dist/blocks/scalar-info-block/components/InfoMarkdownSection.vue.script.js.map +1 -0
- package/dist/blocks/scalar-info-block/components/InfoVersion.vue.js +7 -0
- package/dist/blocks/scalar-info-block/components/InfoVersion.vue.js.map +1 -0
- package/dist/blocks/scalar-info-block/components/InfoVersion.vue.script.js +25 -0
- package/dist/blocks/scalar-info-block/components/InfoVersion.vue.script.js.map +1 -0
- package/dist/blocks/scalar-info-block/components/IntroductionCard.vue.js +9 -0
- package/dist/blocks/scalar-info-block/components/IntroductionCard.vue.js.map +1 -0
- package/dist/blocks/scalar-info-block/components/IntroductionCard.vue.script.js +15 -0
- package/dist/blocks/scalar-info-block/components/IntroductionCard.vue.script.js.map +1 -0
- package/dist/blocks/scalar-info-block/components/IntroductionCardItem.vue.js +14 -0
- package/dist/blocks/scalar-info-block/components/IntroductionCardItem.vue.js.map +1 -0
- package/dist/blocks/scalar-info-block/components/IntroductionLayout.vue.js +9 -0
- package/dist/blocks/scalar-info-block/components/IntroductionLayout.vue.js.map +1 -0
- package/dist/blocks/scalar-info-block/components/IntroductionLayout.vue.script.js +92 -0
- package/dist/blocks/scalar-info-block/components/IntroductionLayout.vue.script.js.map +1 -0
- package/dist/blocks/scalar-info-block/components/OpenApiVersion.vue.js +7 -0
- package/dist/blocks/scalar-info-block/components/OpenApiVersion.vue.js.map +1 -0
- package/dist/blocks/scalar-info-block/components/OpenApiVersion.vue.script.js +19 -0
- package/dist/blocks/scalar-info-block/components/OpenApiVersion.vue.script.js.map +1 -0
- package/dist/blocks/scalar-info-block/index.d.ts +2 -2
- package/dist/blocks/scalar-server-selector-block/components/Selector.vue.js +7 -0
- package/dist/blocks/scalar-server-selector-block/components/Selector.vue.js.map +1 -0
- package/dist/blocks/scalar-server-selector-block/components/Selector.vue.script.js +71 -0
- package/dist/blocks/scalar-server-selector-block/components/Selector.vue.script.js.map +1 -0
- package/dist/blocks/scalar-server-selector-block/components/ServerSelector.vue.js +7 -0
- package/dist/blocks/scalar-server-selector-block/components/ServerSelector.vue.js.map +1 -0
- package/dist/blocks/scalar-server-selector-block/components/ServerSelector.vue.script.js +69 -0
- package/dist/blocks/scalar-server-selector-block/components/ServerSelector.vue.script.js.map +1 -0
- package/dist/blocks/scalar-server-selector-block/index.d.ts +1 -1
- package/dist/browser/standalone.js +35377 -34973
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/AgentScalar/AgentScalarButton.vue.js +7 -0
- package/dist/components/AgentScalar/AgentScalarButton.vue.js.map +1 -0
- package/dist/components/AgentScalar/AgentScalarButton.vue.script.js +21 -0
- package/dist/components/AgentScalar/AgentScalarButton.vue.script.js.map +1 -0
- package/dist/components/AgentScalar/AgentScalarChatInterface.vue.js +7 -0
- package/dist/components/AgentScalar/AgentScalarChatInterface.vue.js.map +1 -0
- package/dist/{AgentScalarChatInterface-MUbtSqMw.js → components/AgentScalar/AgentScalarChatInterface.vue.script.js} +5 -6
- package/dist/components/AgentScalar/AgentScalarChatInterface.vue.script.js.map +1 -0
- package/dist/components/AgentScalar/AgentScalarDrawer.vue.d.ts +0 -1
- package/dist/components/AgentScalar/AgentScalarDrawer.vue.d.ts.map +1 -1
- package/dist/components/AgentScalar/AgentScalarDrawer.vue.js +9 -0
- package/dist/components/AgentScalar/AgentScalarDrawer.vue.js.map +1 -0
- package/dist/components/AgentScalar/AgentScalarDrawer.vue.script.js +65 -0
- package/dist/components/AgentScalar/AgentScalarDrawer.vue.script.js.map +1 -0
- package/dist/components/AgentScalar/OpenMCPButton.vue.js +9 -0
- package/dist/components/AgentScalar/OpenMCPButton.vue.js.map +1 -0
- package/dist/components/AgentScalar/OpenMCPButton.vue.script.js +184 -0
- package/dist/components/AgentScalar/OpenMCPButton.vue.script.js.map +1 -0
- package/dist/components/AgentScalar/index.d.ts +3 -3
- package/dist/components/Anchor/Anchor.vue.js +7 -0
- package/dist/components/Anchor/Anchor.vue.js.map +1 -0
- package/dist/components/Anchor/Anchor.vue.script.js +40 -0
- package/dist/components/Anchor/Anchor.vue.script.js.map +1 -0
- package/dist/components/Anchor/WithBreadcrumb.vue.js +7 -0
- package/dist/components/Anchor/WithBreadcrumb.vue.js.map +1 -0
- package/dist/components/Anchor/WithBreadcrumb.vue.script.js +32 -0
- package/dist/components/Anchor/WithBreadcrumb.vue.script.js.map +1 -0
- package/dist/components/Anchor/index.d.ts +2 -2
- package/dist/components/ApiReference.vue.d.ts.map +1 -1
- package/dist/components/ApiReference.vue.js +12 -0
- package/dist/components/ApiReference.vue.js.map +1 -0
- package/dist/components/ApiReference.vue.script.js +662 -0
- package/dist/components/ApiReference.vue.script.js.map +1 -0
- package/dist/components/Badge/Badge.vue.js +9 -0
- package/dist/components/Badge/Badge.vue.js.map +1 -0
- package/dist/components/Badge/Badge.vue.script.js +22 -0
- package/dist/components/Badge/Badge.vue.script.js.map +1 -0
- package/dist/components/Badge/index.d.ts +1 -1
- package/dist/components/ClassicHeader.vue.js +16 -0
- package/dist/components/ClassicHeader.vue.js.map +1 -0
- package/dist/components/Content/Auth/Auth.vue.js +7 -0
- package/dist/components/Content/Auth/Auth.vue.js.map +1 -0
- package/dist/components/Content/Auth/Auth.vue.script.js +70 -0
- package/dist/components/Content/Auth/Auth.vue.script.js.map +1 -0
- package/dist/components/Content/Auth/helpers/get-default-security.js +64 -0
- package/dist/components/Content/Auth/helpers/get-default-security.js.map +1 -0
- package/dist/components/Content/Auth/index.d.ts +1 -1
- package/dist/components/Content/Content.vue.js +8 -0
- package/dist/components/Content/Content.vue.js.map +1 -0
- package/dist/components/Content/Content.vue.script.js +192 -0
- package/dist/components/Content/Content.vue.script.js.map +1 -0
- package/dist/components/Content/Models/Model.vue.js +7 -0
- package/dist/components/Content/Models/Model.vue.js.map +1 -0
- package/dist/components/Content/Models/Model.vue.script.js +61 -0
- package/dist/components/Content/Models/Model.vue.script.js.map +1 -0
- package/dist/components/Content/Models/ModelTag.vue.js +7 -0
- package/dist/components/Content/Models/ModelTag.vue.js.map +1 -0
- package/dist/components/Content/Models/ModelTag.vue.script.js +69 -0
- package/dist/components/Content/Models/ModelTag.vue.script.js.map +1 -0
- package/dist/components/Content/Models/components/ClassicLayout.vue.js +9 -0
- package/dist/components/Content/Models/components/ClassicLayout.vue.js.map +1 -0
- package/dist/components/Content/Models/components/ClassicLayout.vue.script.js +81 -0
- package/dist/components/Content/Models/components/ClassicLayout.vue.script.js.map +1 -0
- package/dist/components/Content/Models/components/ModernLayout.vue.js +7 -0
- package/dist/components/Content/Models/components/ModernLayout.vue.js.map +1 -0
- package/dist/components/Content/Models/components/ModernLayout.vue.script.js +66 -0
- package/dist/components/Content/Models/components/ModernLayout.vue.script.js.map +1 -0
- package/dist/components/Content/Models/index.d.ts +2 -2
- package/dist/components/Content/Operations/TraversedEntry.vue.js +7 -0
- package/dist/components/Content/Operations/TraversedEntry.vue.js.map +1 -0
- package/dist/components/Content/Operations/TraversedEntry.vue.script.js +213 -0
- package/dist/components/Content/Operations/TraversedEntry.vue.script.js.map +1 -0
- package/dist/components/Content/Schema/RenderString.vue.js +7 -0
- package/dist/components/Content/Schema/RenderString.vue.js.map +1 -0
- package/dist/components/Content/Schema/RenderString.vue.script.js +36 -0
- package/dist/components/Content/Schema/RenderString.vue.script.js.map +1 -0
- package/dist/components/Content/Schema/Schema.vue.d.ts +1 -1
- package/dist/components/Content/Schema/Schema.vue.js +9 -0
- package/dist/components/Content/Schema/Schema.vue.js.map +1 -0
- package/dist/components/Content/Schema/Schema.vue.script.js +184 -0
- package/dist/components/Content/Schema/Schema.vue.script.js.map +1 -0
- package/dist/components/Content/Schema/SchemaComposition.vue.d.ts +2 -2
- package/dist/components/Content/Schema/SchemaComposition.vue.js +7 -0
- package/dist/components/Content/Schema/SchemaComposition.vue.js.map +1 -0
- package/dist/components/Content/Schema/SchemaComposition.vue.script.js +146 -0
- package/dist/components/Content/Schema/SchemaComposition.vue.script.js.map +1 -0
- package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.js +9 -0
- package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.js.map +1 -0
- package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.script.js +29 -0
- package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.script.js.map +1 -0
- package/dist/components/Content/Schema/SchemaEnums.vue.js +9 -0
- package/dist/components/Content/Schema/SchemaEnums.vue.js.map +1 -0
- package/dist/components/Content/Schema/SchemaEnums.vue.script.js +108 -0
- package/dist/components/Content/Schema/SchemaEnums.vue.script.js.map +1 -0
- package/dist/components/Content/Schema/SchemaHeading.vue.js +9 -0
- package/dist/components/Content/Schema/SchemaHeading.vue.js.map +1 -0
- package/dist/components/Content/Schema/SchemaHeading.vue.script.js +45 -0
- package/dist/components/Content/Schema/SchemaHeading.vue.script.js.map +1 -0
- package/dist/components/Content/Schema/SchemaObjectExampleCodeBlock.vue.js +7 -0
- package/dist/components/Content/Schema/SchemaObjectExampleCodeBlock.vue.js.map +1 -0
- package/dist/components/Content/Schema/SchemaObjectExampleCodeBlock.vue.script.js +55 -0
- package/dist/components/Content/Schema/SchemaObjectExampleCodeBlock.vue.script.js.map +1 -0
- package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts +1 -1
- package/dist/components/Content/Schema/SchemaObjectProperties.vue.js +7 -0
- package/dist/components/Content/Schema/SchemaObjectProperties.vue.js.map +1 -0
- package/dist/components/Content/Schema/SchemaObjectProperties.vue.script.js +161 -0
- package/dist/components/Content/Schema/SchemaObjectProperties.vue.script.js.map +1 -0
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.js +9 -0
- package/dist/components/Content/Schema/SchemaProperty.vue.js.map +1 -0
- package/dist/components/Content/Schema/SchemaProperty.vue.script.js +256 -0
- package/dist/components/Content/Schema/SchemaProperty.vue.script.js.map +1 -0
- package/dist/components/Content/Schema/SchemaPropertyDefault.vue.js +9 -0
- package/dist/components/Content/Schema/SchemaPropertyDefault.vue.js.map +1 -0
- package/dist/components/Content/Schema/SchemaPropertyDefault.vue.script.js +35 -0
- package/dist/components/Content/Schema/SchemaPropertyDefault.vue.script.js.map +1 -0
- package/dist/components/Content/Schema/SchemaPropertyDetail.vue.js +9 -0
- package/dist/components/Content/Schema/SchemaPropertyDetail.vue.js.map +1 -0
- package/dist/components/Content/Schema/SchemaPropertyDetail.vue.script.js +30 -0
- package/dist/components/Content/Schema/SchemaPropertyDetail.vue.script.js.map +1 -0
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue.js +9 -0
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue.js.map +1 -0
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue.script.js +67 -0
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue.script.js.map +1 -0
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +9 -0
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js.map +1 -0
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.script.js +251 -0
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.script.js.map +1 -0
- package/dist/components/Content/Schema/helpers/format-example.js +26 -0
- package/dist/components/Content/Schema/helpers/format-example.js.map +1 -0
- package/dist/components/Content/Schema/helpers/format-value.js +22 -0
- package/dist/components/Content/Schema/helpers/format-value.js.map +1 -0
- package/dist/components/Content/Schema/helpers/get-compositions-to-render.d.ts +1 -1
- package/dist/components/Content/Schema/helpers/get-compositions-to-render.js +32 -0
- package/dist/components/Content/Schema/helpers/get-compositions-to-render.js.map +1 -0
- package/dist/components/Content/Schema/helpers/get-enum-values.js +22 -0
- package/dist/components/Content/Schema/helpers/get-enum-values.js.map +1 -0
- package/dist/components/Content/Schema/helpers/get-property-description.js +36 -0
- package/dist/components/Content/Schema/helpers/get-property-description.js.map +1 -0
- package/dist/components/Content/Schema/helpers/get-ref-name.js +19 -0
- package/dist/components/Content/Schema/helpers/get-ref-name.js.map +1 -0
- package/dist/components/Content/Schema/helpers/get-schema-type.js +49 -0
- package/dist/components/Content/Schema/helpers/get-schema-type.js.map +1 -0
- package/dist/components/Content/Schema/helpers/has-complex-array-items.js +53 -0
- package/dist/components/Content/Schema/helpers/has-complex-array-items.js.map +1 -0
- package/dist/components/Content/Schema/helpers/is-empty-schema-object.js +18 -0
- package/dist/components/Content/Schema/helpers/is-empty-schema-object.js.map +1 -0
- package/dist/components/Content/Schema/helpers/is-type-object.js +18 -0
- package/dist/components/Content/Schema/helpers/is-type-object.js.map +1 -0
- package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +175 -0
- package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js.map +1 -0
- package/dist/components/Content/Schema/helpers/optimize-value-for-display.js +68 -0
- package/dist/components/Content/Schema/helpers/optimize-value-for-display.js.map +1 -0
- package/dist/components/Content/Schema/helpers/schema-composition.js +11 -0
- package/dist/components/Content/Schema/helpers/schema-composition.js.map +1 -0
- package/dist/components/Content/Schema/helpers/schema-name.js +23 -0
- package/dist/components/Content/Schema/helpers/schema-name.js.map +1 -0
- package/dist/components/Content/Schema/helpers/should-display-description.js +17 -0
- package/dist/components/Content/Schema/helpers/should-display-description.js.map +1 -0
- package/dist/components/Content/Schema/helpers/should-display-heading.js +18 -0
- package/dist/components/Content/Schema/helpers/should-display-heading.js.map +1 -0
- package/dist/components/Content/Schema/helpers/should-render-array-item-composition.js +20 -0
- package/dist/components/Content/Schema/helpers/should-render-array-item-composition.js.map +1 -0
- package/dist/components/Content/Schema/helpers/sort-property-names.js +45 -0
- package/dist/components/Content/Schema/helpers/sort-property-names.js.map +1 -0
- package/dist/components/Content/Schema/index.d.ts +4 -4
- package/dist/components/Content/Tags/Tag.vue.js +7 -0
- package/dist/components/Content/Tags/Tag.vue.js.map +1 -0
- package/dist/components/Content/Tags/Tag.vue.script.js +56 -0
- package/dist/components/Content/Tags/Tag.vue.script.js.map +1 -0
- package/dist/components/Content/Tags/components/ClassicLayout.vue.js +9 -0
- package/dist/components/Content/Tags/components/ClassicLayout.vue.js.map +1 -0
- package/dist/components/Content/Tags/components/ClassicLayout.vue.script.js +49 -0
- package/dist/components/Content/Tags/components/ClassicLayout.vue.script.js.map +1 -0
- package/dist/components/Content/Tags/components/ModernLayout.vue.js +9 -0
- package/dist/components/Content/Tags/components/ModernLayout.vue.js.map +1 -0
- package/dist/components/Content/Tags/components/ModernLayout.vue.script.js +63 -0
- package/dist/components/Content/Tags/components/ModernLayout.vue.script.js.map +1 -0
- package/dist/components/Content/Tags/components/TagSection.vue.js +7 -0
- package/dist/components/Content/Tags/components/TagSection.vue.js.map +1 -0
- package/dist/components/Content/Tags/components/TagSection.vue.script.js +78 -0
- package/dist/components/Content/Tags/components/TagSection.vue.script.js.map +1 -0
- package/dist/components/Content/Tags/index.d.ts +1 -1
- package/dist/components/Content/index.d.ts +2 -2
- package/dist/components/GettingStarted.vue.js +9 -0
- package/dist/components/GettingStarted.vue.js.map +1 -0
- package/dist/components/GettingStarted.vue.script.js +71 -0
- package/dist/components/GettingStarted.vue.script.js.map +1 -0
- package/dist/components/HttpMethod/HttpMethod.vue.js +7 -0
- package/dist/components/HttpMethod/HttpMethod.vue.js.map +1 -0
- package/dist/components/HttpMethod/HttpMethod.vue.script.js +33 -0
- package/dist/components/HttpMethod/HttpMethod.vue.script.js.map +1 -0
- package/dist/components/HttpMethod/index.d.ts +1 -1
- package/dist/components/IntersectionObserver.vue.js +7 -0
- package/dist/components/IntersectionObserver.vue.js.map +1 -0
- package/dist/components/IntersectionObserver.vue.script.js +45 -0
- package/dist/components/IntersectionObserver.vue.script.js.map +1 -0
- package/dist/components/Lazy/Lazy.vue.js +7 -0
- package/dist/components/Lazy/Lazy.vue.js.map +1 -0
- package/dist/components/Lazy/Lazy.vue.script.js +101 -0
- package/dist/components/Lazy/Lazy.vue.script.js.map +1 -0
- package/dist/components/LinkList/LinkList.vue.js +9 -0
- package/dist/components/LinkList/LinkList.vue.js.map +1 -0
- package/dist/components/LinkList/LinkList.vue.script.js +53 -0
- package/dist/components/LinkList/LinkList.vue.script.js.map +1 -0
- package/dist/components/LinkList/index.d.ts +1 -1
- package/dist/components/LoadingSkeleton.vue.js +9 -0
- package/dist/components/LoadingSkeleton.vue.js.map +1 -0
- package/dist/components/LoadingSkeleton.vue.script.js +20 -0
- package/dist/components/LoadingSkeleton.vue.script.js.map +1 -0
- package/dist/components/MobileHeader.vue.d.ts.map +1 -1
- package/dist/components/MobileHeader.vue.js +7 -0
- package/dist/components/MobileHeader.vue.js.map +1 -0
- package/dist/components/MobileHeader.vue.script.js +43 -0
- package/dist/components/MobileHeader.vue.script.js.map +1 -0
- package/dist/components/OperationPath.vue.js +9 -0
- package/dist/components/OperationPath.vue.js.map +1 -0
- package/dist/components/OperationPath.vue.script.js +24 -0
- package/dist/components/OperationPath.vue.script.js.map +1 -0
- package/dist/components/OperationsList/OperationsList.vue.js +9 -0
- package/dist/components/OperationsList/OperationsList.vue.js.map +1 -0
- package/dist/components/OperationsList/OperationsList.vue.script.js +49 -0
- package/dist/components/OperationsList/OperationsList.vue.script.js.map +1 -0
- package/dist/components/OperationsList/OperationsListItem.vue.js +9 -0
- package/dist/components/OperationsList/OperationsListItem.vue.js.map +1 -0
- package/dist/components/OperationsList/OperationsListItem.vue.script.js +51 -0
- package/dist/components/OperationsList/OperationsListItem.vue.script.js.map +1 -0
- package/dist/components/OperationsList/index.d.ts +1 -1
- package/dist/components/RenderPlugins/RenderPlugins.vue.js +7 -0
- package/dist/components/RenderPlugins/RenderPlugins.vue.js.map +1 -0
- package/dist/components/RenderPlugins/RenderPlugins.vue.script.js +44 -0
- package/dist/components/RenderPlugins/RenderPlugins.vue.script.js.map +1 -0
- package/dist/components/RenderPlugins/index.d.ts +1 -1
- package/dist/components/ScreenReader.vue.js +9 -0
- package/dist/components/ScreenReader.vue.js.map +1 -0
- package/dist/components/ScreenReader.vue.script.js +22 -0
- package/dist/components/ScreenReader.vue.script.js.map +1 -0
- package/dist/components/Section/CompactSection.vue.js +9 -0
- package/dist/components/Section/CompactSection.vue.js.map +1 -0
- package/dist/components/Section/CompactSection.vue.script.js +56 -0
- package/dist/components/Section/CompactSection.vue.script.js.map +1 -0
- package/dist/components/Section/Section.vue.js +9 -0
- package/dist/components/Section/Section.vue.js.map +1 -0
- package/dist/components/Section/Section.vue.script.js +23 -0
- package/dist/components/Section/Section.vue.script.js.map +1 -0
- package/dist/components/Section/SectionAccordion.vue.js +9 -0
- package/dist/components/Section/SectionAccordion.vue.js.map +1 -0
- package/dist/components/Section/SectionAccordion.vue.script.js +60 -0
- package/dist/components/Section/SectionAccordion.vue.script.js.map +1 -0
- package/dist/components/Section/SectionColumn.vue.js +14 -0
- package/dist/components/Section/SectionColumn.vue.js.map +1 -0
- package/dist/components/Section/SectionColumns.vue.js +14 -0
- package/dist/components/Section/SectionColumns.vue.js.map +1 -0
- package/dist/components/Section/SectionContainer.vue.js +9 -0
- package/dist/components/Section/SectionContainer.vue.js.map +1 -0
- package/dist/components/Section/SectionContainer.vue.script.js +19 -0
- package/dist/components/Section/SectionContainer.vue.script.js.map +1 -0
- package/dist/components/Section/SectionContainerAccordion.vue.js +9 -0
- package/dist/components/Section/SectionContainerAccordion.vue.js.map +1 -0
- package/dist/components/Section/SectionContainerAccordion.vue.script.js +40 -0
- package/dist/components/Section/SectionContainerAccordion.vue.script.js.map +1 -0
- package/dist/components/Section/SectionContent.vue.js +9 -0
- package/dist/components/Section/SectionContent.vue.js.map +1 -0
- package/dist/components/Section/SectionContent.vue.script.js +23 -0
- package/dist/components/Section/SectionContent.vue.script.js.map +1 -0
- package/dist/components/Section/SectionHeader.vue.js +9 -0
- package/dist/components/Section/SectionHeader.vue.js.map +1 -0
- package/dist/components/Section/SectionHeader.vue.script.js +23 -0
- package/dist/components/Section/SectionHeader.vue.script.js.map +1 -0
- package/dist/components/Section/SectionHeaderTag.vue.js +9 -0
- package/dist/components/Section/SectionHeaderTag.vue.js.map +1 -0
- package/dist/components/Section/SectionHeaderTag.vue.script.js +18 -0
- package/dist/components/Section/SectionHeaderTag.vue.script.js.map +1 -0
- package/dist/components/Section/index.d.ts +10 -10
- package/dist/components/SectionFlare/SectionFlare.vue.js +14 -0
- package/dist/components/SectionFlare/SectionFlare.vue.js.map +1 -0
- package/dist/components/SectionFlare/index.d.ts +1 -1
- package/dist/components/ShowMoreButton.vue.js +9 -0
- package/dist/components/ShowMoreButton.vue.js.map +1 -0
- package/dist/components/ShowMoreButton.vue.script.js +22 -0
- package/dist/components/ShowMoreButton.vue.script.js.map +1 -0
- package/dist/components/index.d.ts +5 -5
- package/dist/components/index.js +20 -102
- package/dist/{urls-gPTXGgbj.js → consts/urls.js} +2 -2
- package/dist/consts/urls.js.map +1 -0
- package/dist/features/Operation/Operation.vue.js +7 -0
- package/dist/features/Operation/Operation.vue.js.map +1 -0
- package/dist/features/Operation/Operation.vue.script.js +115 -0
- package/dist/features/Operation/Operation.vue.script.js.map +1 -0
- package/dist/features/Operation/components/ContentTypeSelect.vue.js +7 -0
- package/dist/features/Operation/components/ContentTypeSelect.vue.js.map +1 -0
- package/dist/features/Operation/components/ContentTypeSelect.vue.script.js +75 -0
- package/dist/features/Operation/components/ContentTypeSelect.vue.script.js.map +1 -0
- package/dist/features/Operation/components/Header.vue.js +7 -0
- package/dist/features/Operation/components/Header.vue.js.map +1 -0
- package/dist/features/Operation/components/Header.vue.script.js +42 -0
- package/dist/features/Operation/components/Header.vue.script.js.map +1 -0
- package/dist/features/Operation/components/Headers.vue.js +9 -0
- package/dist/features/Operation/components/Headers.vue.js.map +1 -0
- package/dist/features/Operation/components/Headers.vue.script.js +58 -0
- package/dist/features/Operation/components/Headers.vue.script.js.map +1 -0
- package/dist/features/Operation/components/OperationParameters.vue.d.ts +1 -1
- package/dist/features/Operation/components/OperationParameters.vue.js +7 -0
- package/dist/features/Operation/components/OperationParameters.vue.js.map +1 -0
- package/dist/features/Operation/components/OperationParameters.vue.script.js +108 -0
- package/dist/features/Operation/components/OperationParameters.vue.script.js.map +1 -0
- package/dist/features/Operation/components/OperationResponses.vue.d.ts +1 -1
- package/dist/features/Operation/components/OperationResponses.vue.js +7 -0
- package/dist/features/Operation/components/OperationResponses.vue.js.map +1 -0
- package/dist/features/Operation/components/OperationResponses.vue.script.js +48 -0
- package/dist/features/Operation/components/OperationResponses.vue.script.js.map +1 -0
- package/dist/features/Operation/components/ParameterList.vue.d.ts +1 -1
- package/dist/features/Operation/components/ParameterList.vue.js +7 -0
- package/dist/features/Operation/components/ParameterList.vue.js.map +1 -0
- package/dist/features/Operation/components/ParameterList.vue.script.js +53 -0
- package/dist/features/Operation/components/ParameterList.vue.script.js.map +1 -0
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue.js +9 -0
- package/dist/features/Operation/components/ParameterListItem.vue.js.map +1 -0
- package/dist/features/Operation/components/ParameterListItem.vue.script.js +161 -0
- package/dist/features/Operation/components/ParameterListItem.vue.script.js.map +1 -0
- package/dist/features/Operation/components/RequestBody.vue.js +9 -0
- package/dist/features/Operation/components/RequestBody.vue.js.map +1 -0
- package/dist/features/Operation/components/RequestBody.vue.script.js +154 -0
- package/dist/features/Operation/components/RequestBody.vue.script.js.map +1 -0
- package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +1 -1
- package/dist/features/Operation/components/callbacks/Callback.vue.js +9 -0
- package/dist/features/Operation/components/callbacks/Callback.vue.js.map +1 -0
- package/dist/features/Operation/components/callbacks/Callback.vue.script.js +62 -0
- package/dist/features/Operation/components/callbacks/Callback.vue.script.js.map +1 -0
- package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts +1 -1
- package/dist/features/Operation/components/callbacks/Callbacks.vue.js +7 -0
- package/dist/features/Operation/components/callbacks/Callbacks.vue.js.map +1 -0
- package/dist/features/Operation/components/callbacks/Callbacks.vue.script.js +67 -0
- package/dist/features/Operation/components/callbacks/Callbacks.vue.script.js.map +1 -0
- package/dist/features/Operation/helpers/filter-selected-security.js +30 -0
- package/dist/features/Operation/helpers/filter-selected-security.js.map +1 -0
- package/dist/features/Operation/helpers/get-first-server.js +27 -0
- package/dist/features/Operation/helpers/get-first-server.js.map +1 -0
- 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/ClassicLayout.vue.js +9 -0
- package/dist/features/Operation/layouts/ClassicLayout.vue.js.map +1 -0
- package/dist/features/Operation/layouts/ClassicLayout.vue.script.js +243 -0
- package/dist/features/Operation/layouts/ClassicLayout.vue.script.js.map +1 -0
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue.js +9 -0
- package/dist/features/Operation/layouts/ModernLayout.vue.js.map +1 -0
- package/dist/features/Operation/layouts/ModernLayout.vue.script.js +243 -0
- package/dist/features/Operation/layouts/ModernLayout.vue.script.js.map +1 -0
- package/dist/features/Search/components/SearchButton.vue.js +7 -0
- package/dist/features/Search/components/SearchButton.vue.js.map +1 -0
- package/dist/features/Search/components/SearchButton.vue.script.js +77 -0
- package/dist/features/Search/components/SearchButton.vue.script.js.map +1 -0
- package/dist/features/Search/components/SearchModal.vue.js +9 -0
- package/dist/features/Search/components/SearchModal.vue.js.map +1 -0
- package/dist/features/Search/components/SearchModal.vue.script.js +115 -0
- package/dist/features/Search/components/SearchModal.vue.script.js.map +1 -0
- package/dist/features/Search/components/SearchResult.vue.d.ts +1 -1
- package/dist/features/Search/components/SearchResult.vue.js +7 -0
- package/dist/features/Search/components/SearchResult.vue.js.map +1 -0
- package/dist/features/Search/components/SearchResult.vue.script.js +69 -0
- package/dist/features/Search/components/SearchResult.vue.script.js.map +1 -0
- package/dist/features/Search/helpers/create-fuse-instance.d.ts +1 -1
- package/dist/features/Search/helpers/create-fuse-instance.js +52 -0
- package/dist/features/Search/helpers/create-fuse-instance.js.map +1 -0
- package/dist/features/Search/helpers/create-search-index.d.ts +1 -1
- package/dist/features/Search/helpers/create-search-index.js +127 -0
- package/dist/features/Search/helpers/create-search-index.js.map +1 -0
- package/dist/features/Search/hooks/useSearchIndex.js +31 -0
- package/dist/features/Search/hooks/useSearchIndex.js.map +1 -0
- 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.js +9 -0
- package/dist/features/ask-agent-button/AskAgentButton.vue.js.map +1 -0
- package/dist/features/ask-agent-button/AskAgentButton.vue.script.js +49 -0
- package/dist/features/ask-agent-button/AskAgentButton.vue.script.js.map +1 -0
- package/dist/features/developer-tools/DeveloperTools.vue.js +7 -0
- package/dist/features/developer-tools/DeveloperTools.vue.js.map +1 -0
- package/dist/features/developer-tools/DeveloperTools.vue.script.js +49 -0
- package/dist/features/developer-tools/DeveloperTools.vue.script.js.map +1 -0
- package/dist/features/developer-tools/components/ApiReferenceToolbarBlurb.vue.js +13 -0
- package/dist/features/developer-tools/components/ApiReferenceToolbarBlurb.vue.js.map +1 -0
- package/dist/features/developer-tools/components/ApiReferenceToolbarConfigLayout.vue.js +7 -0
- package/dist/features/developer-tools/components/ApiReferenceToolbarConfigLayout.vue.js.map +1 -0
- package/dist/features/developer-tools/components/ApiReferenceToolbarConfigLayout.vue.script.js +38 -0
- package/dist/features/developer-tools/components/ApiReferenceToolbarConfigLayout.vue.script.js.map +1 -0
- package/dist/features/developer-tools/components/ApiReferenceToolbarConfigLayoutOptions.vue.js +7 -0
- package/dist/features/developer-tools/components/ApiReferenceToolbarConfigLayoutOptions.vue.js.map +1 -0
- package/dist/features/developer-tools/components/ApiReferenceToolbarConfigLayoutOptions.vue.script.js +112 -0
- package/dist/features/developer-tools/components/ApiReferenceToolbarConfigLayoutOptions.vue.script.js.map +1 -0
- package/dist/features/developer-tools/components/ApiReferenceToolbarConfigTheme.vue.js +7 -0
- package/dist/features/developer-tools/components/ApiReferenceToolbarConfigTheme.vue.js.map +1 -0
- package/dist/features/developer-tools/components/ApiReferenceToolbarConfigTheme.vue.script.js +60 -0
- package/dist/features/developer-tools/components/ApiReferenceToolbarConfigTheme.vue.script.js.map +1 -0
- package/dist/features/developer-tools/components/ApiReferenceToolbarPopover.vue.js +7 -0
- package/dist/features/developer-tools/components/ApiReferenceToolbarPopover.vue.js.map +1 -0
- package/dist/features/developer-tools/components/ApiReferenceToolbarPopover.vue.script.js +35 -0
- package/dist/features/developer-tools/components/ApiReferenceToolbarPopover.vue.script.js.map +1 -0
- package/dist/features/developer-tools/components/ApiReferenceToolbarRegisterButton.vue.js +7 -0
- package/dist/features/developer-tools/components/ApiReferenceToolbarRegisterButton.vue.js.map +1 -0
- package/dist/features/developer-tools/components/ApiReferenceToolbarRegisterButton.vue.script.js +68 -0
- package/dist/features/developer-tools/components/ApiReferenceToolbarRegisterButton.vue.script.js.map +1 -0
- package/dist/features/developer-tools/components/ApiReferenceToolbarShareRegister.vue.js +7 -0
- package/dist/features/developer-tools/components/ApiReferenceToolbarShareRegister.vue.js.map +1 -0
- package/dist/features/developer-tools/components/ApiReferenceToolbarShareRegister.vue.script.js +80 -0
- package/dist/features/developer-tools/components/ApiReferenceToolbarShareRegister.vue.script.js.map +1 -0
- package/dist/features/developer-tools/components/ApiReferenceToolbarShareTemporary.vue.js +7 -0
- package/dist/features/developer-tools/components/ApiReferenceToolbarShareTemporary.vue.js.map +1 -0
- package/dist/features/developer-tools/components/ApiReferenceToolbarShareTemporary.vue.script.js +66 -0
- package/dist/features/developer-tools/components/ApiReferenceToolbarShareTemporary.vue.script.js.map +1 -0
- package/dist/features/developer-tools/components/ApiReferenceToolbarTitle.vue.js +7 -0
- package/dist/features/developer-tools/components/ApiReferenceToolbarTitle.vue.js.map +1 -0
- package/dist/features/developer-tools/components/ApiReferenceToolbarTitle.vue.script.js +44 -0
- package/dist/features/developer-tools/components/ApiReferenceToolbarTitle.vue.script.js.map +1 -0
- package/dist/features/developer-tools/components/DeployApiReference.vue.js +7 -0
- package/dist/features/developer-tools/components/DeployApiReference.vue.js.map +1 -0
- package/dist/features/developer-tools/components/DeployApiReference.vue.script.js +26 -0
- package/dist/features/developer-tools/components/DeployApiReference.vue.script.js.map +1 -0
- package/dist/features/developer-tools/components/ModifyConfiguration.vue.js +7 -0
- package/dist/features/developer-tools/components/ModifyConfiguration.vue.js.map +1 -0
- package/dist/features/developer-tools/components/ModifyConfiguration.vue.script.js +86 -0
- package/dist/features/developer-tools/components/ModifyConfiguration.vue.script.js.map +1 -0
- package/dist/features/developer-tools/components/ShareApiReference.vue.js +7 -0
- package/dist/features/developer-tools/components/ShareApiReference.vue.js.map +1 -0
- package/dist/features/developer-tools/components/ShareApiReference.vue.script.js +26 -0
- package/dist/features/developer-tools/components/ShareApiReference.vue.script.js.map +1 -0
- package/dist/features/developer-tools/index.d.ts +1 -1
- package/dist/features/example-responses/ExampleResponse.vue.js +9 -0
- package/dist/features/example-responses/ExampleResponse.vue.js.map +1 -0
- package/dist/features/example-responses/ExampleResponse.vue.script.js +56 -0
- package/dist/features/example-responses/ExampleResponse.vue.script.js.map +1 -0
- package/dist/features/example-responses/ExampleResponseTab.vue.js +9 -0
- package/dist/features/example-responses/ExampleResponseTab.vue.js.map +1 -0
- package/dist/features/example-responses/ExampleResponseTab.vue.script.js +21 -0
- package/dist/features/example-responses/ExampleResponseTab.vue.script.js.map +1 -0
- package/dist/features/example-responses/ExampleResponseTabList.vue.js +9 -0
- package/dist/features/example-responses/ExampleResponseTabList.vue.js.map +1 -0
- package/dist/features/example-responses/ExampleResponseTabList.vue.script.js +31 -0
- package/dist/features/example-responses/ExampleResponseTabList.vue.script.js.map +1 -0
- package/dist/features/example-responses/ExampleResponses.vue.js +9 -0
- package/dist/features/example-responses/ExampleResponses.vue.js.map +1 -0
- package/dist/features/example-responses/ExampleResponses.vue.script.js +157 -0
- package/dist/features/example-responses/ExampleResponses.vue.script.js.map +1 -0
- package/dist/features/example-responses/ExampleSchema.vue.js +7 -0
- package/dist/features/example-responses/ExampleSchema.vue.js.map +1 -0
- package/dist/features/example-responses/ExampleSchema.vue.script.js +42 -0
- package/dist/features/example-responses/ExampleSchema.vue.script.js.map +1 -0
- package/dist/features/example-responses/has-response-content.js +37 -0
- package/dist/features/example-responses/has-response-content.js.map +1 -0
- package/dist/features/example-responses/index.d.ts +1 -1
- package/dist/features/external-docs/ExternalDocs.vue.js +7 -0
- package/dist/features/external-docs/ExternalDocs.vue.js.map +1 -0
- package/dist/features/external-docs/ExternalDocs.vue.script.js +37 -0
- package/dist/features/external-docs/ExternalDocs.vue.script.js.map +1 -0
- package/dist/features/external-docs/index.d.ts +1 -1
- package/dist/features/index.d.ts +2 -2
- package/dist/features/index.js +4 -3
- package/dist/features/info-object/Contact.vue.js +7 -0
- package/dist/features/info-object/Contact.vue.js.map +1 -0
- package/dist/features/info-object/Contact.vue.script.js +37 -0
- package/dist/features/info-object/Contact.vue.script.js.map +1 -0
- package/dist/features/info-object/License.vue.js +7 -0
- package/dist/features/info-object/License.vue.js.map +1 -0
- package/dist/features/info-object/License.vue.script.js +32 -0
- package/dist/features/info-object/License.vue.script.js.map +1 -0
- package/dist/features/info-object/TermsOfService.vue.js +7 -0
- package/dist/features/info-object/TermsOfService.vue.js.map +1 -0
- package/dist/features/info-object/TermsOfService.vue.script.js +29 -0
- package/dist/features/info-object/TermsOfService.vue.script.js.map +1 -0
- package/dist/features/info-object/index.d.ts +3 -3
- package/dist/features/multiple-documents/DocumentSelector.vue.js +7 -0
- package/dist/features/multiple-documents/DocumentSelector.vue.js.map +1 -0
- package/dist/features/multiple-documents/DocumentSelector.vue.script.js +48 -0
- package/dist/features/multiple-documents/DocumentSelector.vue.script.js.map +1 -0
- package/dist/features/specification-extension/SpecificationExtension.vue.js +7 -0
- package/dist/features/specification-extension/SpecificationExtension.vue.js.map +1 -0
- package/dist/features/specification-extension/SpecificationExtension.vue.script.js +56 -0
- package/dist/features/specification-extension/SpecificationExtension.vue.script.js.map +1 -0
- package/dist/features/specification-extension/helpers.js +15 -0
- package/dist/features/specification-extension/helpers.js.map +1 -0
- package/dist/features/specification-extension/index.d.ts +2 -2
- package/dist/features/test-request-button/TestRequestButton.vue.js +9 -0
- package/dist/features/test-request-button/TestRequestButton.vue.js.map +1 -0
- package/dist/features/test-request-button/TestRequestButton.vue.script.js +47 -0
- package/dist/features/test-request-button/TestRequestButton.vue.script.js.map +1 -0
- package/dist/features/test-request-button/index.d.ts +1 -1
- package/dist/features/x-badges/XBadges.vue.js +7 -0
- package/dist/features/x-badges/XBadges.vue.js.map +1 -0
- package/dist/features/x-badges/XBadges.vue.script.js +31 -0
- package/dist/features/x-badges/XBadges.vue.script.js.map +1 -0
- package/dist/features/x-badges/index.d.ts +1 -1
- package/dist/helpers/color-mode.js +15 -0
- package/dist/helpers/color-mode.js.map +1 -0
- package/dist/helpers/download.js +77 -0
- package/dist/helpers/download.js.map +1 -0
- package/dist/helpers/id-routing.js +107 -0
- package/dist/helpers/id-routing.js.map +1 -0
- package/dist/helpers/index.d.ts +8 -8
- package/dist/helpers/index.js +8 -2
- package/dist/{lazy-bus-CV8Ox5hD.js → helpers/lazy-bus.js} +3 -106
- package/dist/helpers/lazy-bus.js.map +1 -0
- package/dist/helpers/load-from-perssistance.js +23 -0
- package/dist/helpers/load-from-perssistance.js.map +1 -0
- package/dist/helpers/map-config-plugins.js +44 -0
- package/dist/helpers/map-config-plugins.js.map +1 -0
- package/dist/helpers/map-config-to-workspace-store.js +24 -0
- package/dist/helpers/map-config-to-workspace-store.js.map +1 -0
- package/dist/helpers/normalize-configurations.js +66 -0
- package/dist/helpers/normalize-configurations.js.map +1 -0
- package/dist/helpers/openapi.js +132 -0
- package/dist/helpers/openapi.js.map +1 -0
- package/dist/{storage--3JuzjCI.js → helpers/storage.js} +2 -2
- package/dist/helpers/storage.js.map +1 -0
- package/dist/helpers/upload-temp-document.js +24 -0
- package/dist/helpers/upload-temp-document.js.map +1 -0
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/index.js +2 -2
- package/dist/{use-agent-Bnm1de0n.js → hooks/use-agent.js} +2 -2
- package/dist/hooks/use-agent.js.map +1 -0
- package/dist/{use-intersection-8QqPi2O-.js → hooks/use-intersection.js} +2 -2
- package/dist/hooks/use-intersection.js.map +1 -0
- package/dist/index.d.ts +5 -5
- package/dist/index.js +6 -6
- package/dist/plugins/hooks/usePluginManager.d.ts +1 -1
- package/dist/plugins/hooks/usePluginManager.js +16 -0
- package/dist/plugins/hooks/usePluginManager.js.map +1 -0
- package/dist/plugins/index.d.ts +3 -3
- package/dist/plugins/index.js +3 -1
- package/dist/plugins/persistance-plugin.js +39 -0
- package/dist/plugins/persistance-plugin.js.map +1 -0
- package/dist/plugins/plugin-manager.js +32 -0
- package/dist/plugins/plugin-manager.js.map +1 -0
- package/dist/ssr.d.ts +2 -2
- package/dist/ssr.js +6 -6
- package/dist/standalone/lib/html-api.js +73 -0
- package/dist/standalone/lib/html-api.js.map +1 -0
- package/dist/style.css +7878 -6432
- package/package.json +12 -12
- package/dist/AgentScalarChatInterface-MUbtSqMw.js.map +0 -1
- package/dist/ExternalDocs-phu7GxpZ.js +0 -272
- package/dist/ExternalDocs-phu7GxpZ.js.map +0 -1
- package/dist/MobileHeader-DAm6yQX0.js +0 -1373
- package/dist/MobileHeader-DAm6yQX0.js.map +0 -1
- package/dist/Operation-CvpVIkc3.js +0 -3829
- package/dist/Operation-CvpVIkc3.js.map +0 -1
- package/dist/SearchButton-xzhIpMCZ.js +0 -621
- package/dist/SearchButton-xzhIpMCZ.js.map +0 -1
- package/dist/ServerSelector-5y29y2BJ.js +0 -852
- package/dist/ServerSelector-5y29y2BJ.js.map +0 -1
- package/dist/components/index.js.map +0 -1
- package/dist/lazy-bus-CV8Ox5hD.js.map +0 -1
- package/dist/normalize-configurations-DcVpOEjD.js +0 -232
- package/dist/normalize-configurations-DcVpOEjD.js.map +0 -1
- package/dist/plugins-4EyiUD_A.js +0 -80
- package/dist/plugins-4EyiUD_A.js.map +0 -1
- package/dist/src-DJwsRvMU.js +0 -1686
- package/dist/src-DJwsRvMU.js.map +0 -1
- package/dist/storage--3JuzjCI.js.map +0 -1
- package/dist/urls-gPTXGgbj.js.map +0 -1
- package/dist/use-agent-Bnm1de0n.js.map +0 -1
- package/dist/use-intersection-8QqPi2O-.js.map +0 -1
|
@@ -0,0 +1,662 @@
|
|
|
1
|
+
import { AGENT_CONTEXT_SYMBOL, useAgent } from "../hooks/use-agent.js";
|
|
2
|
+
import AgentScalarButton_default from "./AgentScalar/AgentScalarButton.vue.js";
|
|
3
|
+
import AgentScalarDrawer_default from "./AgentScalar/AgentScalarDrawer.vue.js";
|
|
4
|
+
import OpenMCPButton_default from "./AgentScalar/OpenMCPButton.vue.js";
|
|
5
|
+
import ClassicHeader_default from "./ClassicHeader.vue.js";
|
|
6
|
+
import { useIntersection } from "../hooks/use-intersection.js";
|
|
7
|
+
import { createPluginManager } from "../plugins/plugin-manager.js";
|
|
8
|
+
import { PLUGIN_MANAGER_SYMBOL } from "../plugins/hooks/usePluginManager.js";
|
|
9
|
+
import { persistencePlugin } from "../plugins/persistance-plugin.js";
|
|
10
|
+
import { getIdFromUrl, makeUrlFromId, matchesBasePath } from "../helpers/id-routing.js";
|
|
11
|
+
import { addToPriorityQueue, blockIntersection, intersectionEnabled, scrollToLazy } from "../helpers/lazy-bus.js";
|
|
12
|
+
import Content_default from "./Content/Content.vue.js";
|
|
13
|
+
import MobileHeader_default from "./MobileHeader.vue.js";
|
|
14
|
+
import DeveloperTools_default from "../features/developer-tools/DeveloperTools.vue.js";
|
|
15
|
+
import DocumentSelector_default from "../features/multiple-documents/DocumentSelector.vue.js";
|
|
16
|
+
import SearchButton_default from "../features/Search/components/SearchButton.vue.js";
|
|
17
|
+
import { getSystemModePreference } from "../helpers/color-mode.js";
|
|
18
|
+
import { downloadDocument } from "../helpers/download.js";
|
|
19
|
+
import { loadAuthFromStorage, loadClientFromStorage } from "../helpers/load-from-perssistance.js";
|
|
20
|
+
import { mapConfigPlugins } from "../helpers/map-config-plugins.js";
|
|
21
|
+
import { mapConfigToWorkspaceStore } from "../helpers/map-config-to-workspace-store.js";
|
|
22
|
+
import { normalizeConfigurations } from "../helpers/normalize-configurations.js";
|
|
23
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, guardReactiveProps, normalizeClass, normalizeProps, onBeforeMount, onBeforeUnmount, onMounted, onServerPrefetch, openBlock, provide, ref, renderSlot, resolveDynamicComponent, toDisplayString, unref, useId, useTemplateRef, watch, withCtx } from "vue";
|
|
24
|
+
import { provideUseId } from "@headlessui/vue";
|
|
25
|
+
import { OpenApiClientButton } from "@scalar/api-client/components";
|
|
26
|
+
import { createApiClientModal } from "@scalar/api-client/v2/features/modal";
|
|
27
|
+
import { getActiveEnvironment, getServers } from "@scalar/api-client/v2/helpers";
|
|
28
|
+
import { ScalarColorModeToggleButton, ScalarColorModeToggleIcon, ScalarSidebarFooter, addScalarClassesToHeadless } from "@scalar/components";
|
|
29
|
+
import { isLocalUrl } from "@scalar/helpers/url/is-local-url";
|
|
30
|
+
import { ScalarSidebar, createSidebarState, scrollSidebarToTop } from "@scalar/sidebar";
|
|
31
|
+
import { getThemeStyles, hasObtrusiveScrollbars } from "@scalar/themes";
|
|
32
|
+
import { apiReferenceConfigurationSchema } from "@scalar/types/api-reference";
|
|
33
|
+
import { useClipboard } from "@scalar/use-hooks/useClipboard";
|
|
34
|
+
import { useColorMode } from "@scalar/use-hooks/useColorMode";
|
|
35
|
+
import { ScalarToasts } from "@scalar/use-toasts";
|
|
36
|
+
import { createWorkspaceStore } from "@scalar/workspace-store/client";
|
|
37
|
+
import { createWorkspaceEventBus } from "@scalar/workspace-store/events";
|
|
38
|
+
import { useScrollLock } from "@vueuse/core";
|
|
39
|
+
import diff from "microdiff";
|
|
40
|
+
//#region src/components/ApiReference.vue?vue&type=script&setup=true&lang.ts
|
|
41
|
+
var _hoisted_1 = {
|
|
42
|
+
key: 1,
|
|
43
|
+
class: "flex gap-1.5 px-3 pt-3"
|
|
44
|
+
};
|
|
45
|
+
var _hoisted_2 = { key: 1 };
|
|
46
|
+
var _hoisted_3 = ["aria-label", "inert"];
|
|
47
|
+
var _hoisted_4 = { class: "w-64 empty:hidden" };
|
|
48
|
+
var _hoisted_5 = {
|
|
49
|
+
key: 2,
|
|
50
|
+
class: "references-footer"
|
|
51
|
+
};
|
|
52
|
+
var ApiReference_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
53
|
+
__name: "ApiReference",
|
|
54
|
+
props: { configuration: {} },
|
|
55
|
+
setup(__props, { expose: __expose }) {
|
|
56
|
+
const props = __props;
|
|
57
|
+
const { copyToClipboard } = useClipboard();
|
|
58
|
+
/**
|
|
59
|
+
* Used to inject the environment into built packages
|
|
60
|
+
*
|
|
61
|
+
* Primary use case is the open-in-client button
|
|
62
|
+
*/
|
|
63
|
+
const isDevelopment = false;
|
|
64
|
+
const obtrusiveScrollbars = computed(hasObtrusiveScrollbars);
|
|
65
|
+
const eventBus = createWorkspaceEventBus({ debug: isDevelopment });
|
|
66
|
+
const isSidebarOpen = ref(false);
|
|
67
|
+
/**
|
|
68
|
+
* Due to a bug in headless UI, we need to set an ID here that can be shared across server/client
|
|
69
|
+
* TODO remove this once the bug is fixed
|
|
70
|
+
*
|
|
71
|
+
* @see https://github.com/tailwindlabs/headlessui/issues/2979
|
|
72
|
+
*/
|
|
73
|
+
provideUseId(() => useId());
|
|
74
|
+
/**
|
|
75
|
+
* Configuration Handling
|
|
76
|
+
*
|
|
77
|
+
* We will normalize the configurations and store them in a computed property.
|
|
78
|
+
* The active configuration will be associated with the active document.
|
|
79
|
+
*/
|
|
80
|
+
const configList = computed(() => normalizeConfigurations(props.configuration));
|
|
81
|
+
const isMultiDocument = computed(() => Object.keys(configList.value).length > 1);
|
|
82
|
+
/** Search for the source with a default attribute or use the first one */
|
|
83
|
+
const activeSlug = ref(Object.values(configList.value).find((c) => c.default)?.slug ?? configList.value[Object.keys(configList.value)?.[0] ?? ""]?.slug ?? "");
|
|
84
|
+
/**
|
|
85
|
+
* On initial page load we need to determine if there is a valid document slug in the URL
|
|
86
|
+
*
|
|
87
|
+
* If there is we set the active slug to the document slug
|
|
88
|
+
*/
|
|
89
|
+
if (typeof window !== "undefined") {
|
|
90
|
+
const url = new URL(window.location.href);
|
|
91
|
+
const apiParam = url.searchParams.get("api");
|
|
92
|
+
if (apiParam && configList.value[apiParam]) {
|
|
93
|
+
activeSlug.value = apiParam;
|
|
94
|
+
const newUrl = makeUrlFromId(getIdFromUrl(url, configList.value[apiParam].config.pathRouting?.basePath, apiParam), configList.value[apiParam].config.pathRouting?.basePath, isMultiDocument.value);
|
|
95
|
+
if (newUrl) {
|
|
96
|
+
newUrl.searchParams.delete("api");
|
|
97
|
+
window.history.replaceState({}, "", newUrl.toString());
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
const documentSlug = getIdFromUrl(url, Object.values(configList.value).map((c) => c.config.pathRouting?.basePath).find((p) => p ? matchesBasePath(url, p) : false), isMultiDocument.value ? void 0 : activeSlug.value).split("/")[0];
|
|
101
|
+
if (documentSlug && configList.value[documentSlug]) activeSlug.value = documentSlug;
|
|
102
|
+
}
|
|
103
|
+
/** Computed document options list for the selector logic */
|
|
104
|
+
const documentOptionList = computed(() => Object.values(configList.value).map((c) => ({
|
|
105
|
+
label: c.title,
|
|
106
|
+
id: c.slug
|
|
107
|
+
})));
|
|
108
|
+
/** Configuration overrides to apply to the selected document (from the localhost toolbar) */
|
|
109
|
+
const configurationOverrides = ref({});
|
|
110
|
+
/** Any dev toolbar modifications are merged with the active configuration */
|
|
111
|
+
const mergedConfig = computed(() => ({
|
|
112
|
+
...apiReferenceConfigurationSchema.parse({}),
|
|
113
|
+
...configList.value[activeSlug.value]?.config,
|
|
114
|
+
...configurationOverrides.value
|
|
115
|
+
}));
|
|
116
|
+
/** Convenience break out var to determine which routing mode we are using */
|
|
117
|
+
const basePath = computed(() => mergedConfig.value.pathRouting?.basePath);
|
|
118
|
+
const themeStyle = computed(() => getThemeStyles(mergedConfig.value.theme, { fonts: mergedConfig.value.withDefaultFonts }));
|
|
119
|
+
/** Plugin injection is not reactive. All plugins must be provided at first render */
|
|
120
|
+
provide(PLUGIN_MANAGER_SYMBOL, createPluginManager({ plugins: Object.values(configList.value).flatMap((c) => c.config.plugins ?? []) }));
|
|
121
|
+
/** Navigation State Handling */
|
|
122
|
+
if (mergedConfig.value.redirect && typeof window !== "undefined") {
|
|
123
|
+
const newPath = mergedConfig.value.redirect((mergedConfig.value.pathRouting ? window.location.pathname : "") + window.location.hash);
|
|
124
|
+
if (newPath) window.history.replaceState({}, "", newPath);
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Sets the active slug and updates the URL with the selected document slug
|
|
128
|
+
*
|
|
129
|
+
* If an element ID is passed in we will configure the path or hash routing
|
|
130
|
+
*/
|
|
131
|
+
function syncSlugAndUrlWithDocument(slug, elementId, config) {
|
|
132
|
+
const url = makeUrlFromId(elementId || slug, config.pathRouting?.basePath, isMultiDocument.value);
|
|
133
|
+
if (url) window.history.replaceState({}, "", url.toString());
|
|
134
|
+
activeSlug.value = slug;
|
|
135
|
+
}
|
|
136
|
+
/** Workspace Store Initialization */
|
|
137
|
+
/**
|
|
138
|
+
* Initializes the new client workspace store.
|
|
139
|
+
*/
|
|
140
|
+
const workspaceStore = createWorkspaceStore({
|
|
141
|
+
verbose: isDevelopment,
|
|
142
|
+
plugins: [persistencePlugin({
|
|
143
|
+
prefix: () => activeSlug.value,
|
|
144
|
+
persistAuth: () => mergedConfig.value.persistAuth ?? false
|
|
145
|
+
})]
|
|
146
|
+
});
|
|
147
|
+
const { toggleColorMode, isDarkMode } = useColorMode({
|
|
148
|
+
initialColorMode: {
|
|
149
|
+
true: "dark",
|
|
150
|
+
false: "light",
|
|
151
|
+
undefined: "system"
|
|
152
|
+
}[String(mergedConfig.value.darkMode)],
|
|
153
|
+
overrideColorMode: mergedConfig.value.forceDarkModeState
|
|
154
|
+
});
|
|
155
|
+
/** Initialize the sidebar */
|
|
156
|
+
const sidebarState = createSidebarState(computed(() => {
|
|
157
|
+
return Object.entries(workspaceStore.workspace.documents).map(([slug, document]) => ({
|
|
158
|
+
id: slug,
|
|
159
|
+
type: "document",
|
|
160
|
+
description: document.info.description,
|
|
161
|
+
name: document.info.title ?? slug,
|
|
162
|
+
title: document.info.title ?? slug,
|
|
163
|
+
children: document?.["x-scalar-navigation"]?.children ?? []
|
|
164
|
+
}));
|
|
165
|
+
}), { hooks: {} });
|
|
166
|
+
/** Recursively set all children of the given items to open */
|
|
167
|
+
const setChildrenOpen = (items) => {
|
|
168
|
+
items.forEach((item) => {
|
|
169
|
+
if (item.type === "tag" || item.type === "models") sidebarState.setExpanded(item.id, true);
|
|
170
|
+
if ("children" in item && item.children) setChildrenOpen(item.children);
|
|
171
|
+
});
|
|
172
|
+
};
|
|
173
|
+
/** We get the sub items for the sidebar based on the configuration/document slug */
|
|
174
|
+
const sidebarItems = computed(() => {
|
|
175
|
+
const config = mergedConfig.value;
|
|
176
|
+
if (!config) return [];
|
|
177
|
+
const docItems = sidebarState.items.value.find((item) => item.id === activeSlug.value)?.children ?? [];
|
|
178
|
+
if (config.defaultOpenAllTags) setChildrenOpen(docItems);
|
|
179
|
+
if (config.expandAllModelSections) {
|
|
180
|
+
const models = docItems.find((item) => item.type === "models");
|
|
181
|
+
if (models) {
|
|
182
|
+
sidebarState.setExpanded(models.id, true);
|
|
183
|
+
models.children?.forEach((child) => {
|
|
184
|
+
sidebarState.setExpanded(child.id, true);
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
return docItems;
|
|
189
|
+
});
|
|
190
|
+
/** Find the sidebar entry that represents the introduction section */
|
|
191
|
+
const infoSectionId = computed(() => sidebarItems.value.find((item) => item.type === "text" && item.title === "Introduction")?.id);
|
|
192
|
+
/** User for mobile navigation */
|
|
193
|
+
const breadcrumb = ref("");
|
|
194
|
+
const slotProps = computed(() => ({ breadcrumb: breadcrumb.value }));
|
|
195
|
+
const setBreadcrumb = (id) => {
|
|
196
|
+
const item = sidebarState.getEntryById(id);
|
|
197
|
+
if (!item || item.type === "document") breadcrumb.value = "";
|
|
198
|
+
else breadcrumb.value = item.title;
|
|
199
|
+
};
|
|
200
|
+
const scrollToLazyElement = (id) => {
|
|
201
|
+
setBreadcrumb(id);
|
|
202
|
+
sidebarState.setSelected(id);
|
|
203
|
+
scrollToLazy(id, sidebarState.setExpanded, sidebarState.getEntryById);
|
|
204
|
+
};
|
|
205
|
+
/** Maps some config values to the workspace store to keep it reactive */
|
|
206
|
+
mapConfigToWorkspaceStore({
|
|
207
|
+
config: () => mergedConfig.value,
|
|
208
|
+
store: workspaceStore,
|
|
209
|
+
isDarkMode
|
|
210
|
+
});
|
|
211
|
+
/** Merged environment variables from workspace and document levels */
|
|
212
|
+
const environment = computed(() => getActiveEnvironment(workspaceStore, workspaceStore.workspace.activeDocument ?? null));
|
|
213
|
+
if (typeof window !== "undefined") window.dataDumpWorkspace = () => workspaceStore;
|
|
214
|
+
__expose({
|
|
215
|
+
eventBus,
|
|
216
|
+
workspaceStore,
|
|
217
|
+
sidebarItems
|
|
218
|
+
});
|
|
219
|
+
/**
|
|
220
|
+
* Handle changing the active document
|
|
221
|
+
*
|
|
222
|
+
* 1. If the document has not be loaded to the workspace store we set it to empty and asynchronously load it
|
|
223
|
+
* 2. If the document has been loaded to the workspace store we just set it to active
|
|
224
|
+
* 3. If the content from the configuration has changes we need to update the document in the workspace store
|
|
225
|
+
*/
|
|
226
|
+
const changeSelectedDocument = async (slug, elementId) => {
|
|
227
|
+
const normalized = configList.value[slug];
|
|
228
|
+
if (!normalized) {
|
|
229
|
+
console.warn(`Document ${slug} not found in configList`);
|
|
230
|
+
return;
|
|
231
|
+
}
|
|
232
|
+
const config = {
|
|
233
|
+
...normalized.config,
|
|
234
|
+
...configurationOverrides.value
|
|
235
|
+
};
|
|
236
|
+
const onDocumentSelectPromise = config.onDocumentSelect?.();
|
|
237
|
+
syncSlugAndUrlWithDocument(slug, elementId, config);
|
|
238
|
+
apiClient.value?.route({
|
|
239
|
+
documentSlug: slug,
|
|
240
|
+
method: "get",
|
|
241
|
+
path: "/"
|
|
242
|
+
});
|
|
243
|
+
if (!workspaceStore.workspace.documents[slug]) {
|
|
244
|
+
const result = await workspaceStore.addDocument(normalized.source.url ? {
|
|
245
|
+
name: slug,
|
|
246
|
+
url: normalized.source.url,
|
|
247
|
+
fetch: config.fetch
|
|
248
|
+
} : {
|
|
249
|
+
name: slug,
|
|
250
|
+
document: normalized.source.content ?? {}
|
|
251
|
+
}, config);
|
|
252
|
+
const document = workspaceStore.workspace.documents[slug];
|
|
253
|
+
if (result === true && document !== void 0 && document["x-scalar-selected-server"] === void 0) {
|
|
254
|
+
const servers = getServers(normalized.config.servers ?? document.servers, {
|
|
255
|
+
baseServerUrl: mergedConfig.value.baseServerURL,
|
|
256
|
+
documentUrl: normalized.source.url
|
|
257
|
+
});
|
|
258
|
+
if (servers.length > 0) workspaceStore.updateDocument(slug, "x-scalar-selected-server", servers[0].url);
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
workspaceStore.update("x-scalar-active-document", slug);
|
|
262
|
+
if (config.persistAuth) loadAuthFromStorage(workspaceStore, slug);
|
|
263
|
+
(async () => {
|
|
264
|
+
await onDocumentSelectPromise;
|
|
265
|
+
config.onLoaded?.(slug);
|
|
266
|
+
})();
|
|
267
|
+
if (elementId && elementId !== slug) scrollToLazyElement(elementId);
|
|
268
|
+
else if (config.defaultOpenFirstTag) {
|
|
269
|
+
const firstTag = sidebarItems.value.find((item) => item.type === "tag");
|
|
270
|
+
if (firstTag) sidebarState.setExpanded(firstTag.id, true);
|
|
271
|
+
}
|
|
272
|
+
};
|
|
273
|
+
/**
|
|
274
|
+
* TODO:Move this to a dedicated updateDocument function in the future and
|
|
275
|
+
* away from vue-reactivity based updates
|
|
276
|
+
*/
|
|
277
|
+
watch(() => Object.values(configList.value), async (newConfigList, oldConfigList) => {
|
|
278
|
+
/**
|
|
279
|
+
* Handles replacing and updating documents within the workspace store
|
|
280
|
+
* when we detect configuration changes.
|
|
281
|
+
*/
|
|
282
|
+
const updateSource = async (updated, previous) => {
|
|
283
|
+
/** If we have not loaded the document previously we don't need to handle any updates to store */
|
|
284
|
+
if (!workspaceStore.workspace.documents[updated.slug]) return;
|
|
285
|
+
/** If the URL has changed we fetch and rebase */
|
|
286
|
+
if (updated.source.url && updated.source.url !== previous?.source.url) {
|
|
287
|
+
await workspaceStore.addDocument({
|
|
288
|
+
name: updated.slug,
|
|
289
|
+
url: updated.source.url,
|
|
290
|
+
fetch: updated.config.fetch
|
|
291
|
+
}, updated.config);
|
|
292
|
+
return;
|
|
293
|
+
}
|
|
294
|
+
if (!updated.source.content) return;
|
|
295
|
+
/**
|
|
296
|
+
* We need to deeply check for document changes. Parse documents and then only rebase
|
|
297
|
+
* if we detect deep changes in the two sources
|
|
298
|
+
*/
|
|
299
|
+
if (diff(updated.source.content, previous && "content" in previous.source ? previous.source.content ?? {} : {}).length) await workspaceStore.addDocument({
|
|
300
|
+
name: updated.slug,
|
|
301
|
+
document: updated.source.content
|
|
302
|
+
}, updated.config);
|
|
303
|
+
};
|
|
304
|
+
newConfigList.forEach((newConfig, index) => updateSource(newConfig, oldConfigList[index]));
|
|
305
|
+
const newSlugs = newConfigList.map((c) => c.slug);
|
|
306
|
+
const oldSlugs = oldConfigList.map((c) => c.slug);
|
|
307
|
+
if (newSlugs.length !== oldSlugs.length || !newSlugs.every((slug, index) => slug === oldSlugs[index])) await changeSelectedDocument(newSlugs[0] ?? "");
|
|
308
|
+
}, { deep: true });
|
|
309
|
+
/** Preload the first document during SSR */
|
|
310
|
+
onServerPrefetch(() => changeSelectedDocument(activeSlug.value));
|
|
311
|
+
/** Load the first document on page load */
|
|
312
|
+
onBeforeMount(async () => {
|
|
313
|
+
loadClientFromStorage(workspaceStore);
|
|
314
|
+
await changeSelectedDocument(activeSlug.value, getIdFromUrl(window.location.href, configList.value[activeSlug.value]?.config.pathRouting?.basePath, isMultiDocument.value ? void 0 : activeSlug.value));
|
|
315
|
+
});
|
|
316
|
+
const documentUrl = computed(() => {
|
|
317
|
+
return configList.value[activeSlug.value]?.source?.url;
|
|
318
|
+
});
|
|
319
|
+
/**
|
|
320
|
+
* Determines if Agent Scalar should be enabled based on the configuration and the current URL
|
|
321
|
+
*
|
|
322
|
+
* - If the agent is disabled in the configuration, it should not be enabled
|
|
323
|
+
* - If the current URL is a local URL, it should be enabled
|
|
324
|
+
* - If the agent key is set, it should be enabled
|
|
325
|
+
*/
|
|
326
|
+
const agent = useAgent({ agentEnabled: computed(() => {
|
|
327
|
+
if (configList.value[activeSlug.value]?.agent?.disabled) return false;
|
|
328
|
+
if (typeof window !== "undefined" && isLocalUrl(window.location.href)) return true;
|
|
329
|
+
return Boolean(configList.value[activeSlug.value]?.agent?.key);
|
|
330
|
+
}) });
|
|
331
|
+
provide(AGENT_CONTEXT_SYMBOL, agent);
|
|
332
|
+
const modal = useTemplateRef("modal");
|
|
333
|
+
const apiClient = ref(null);
|
|
334
|
+
onMounted(() => {
|
|
335
|
+
if (!modal.value) return;
|
|
336
|
+
apiClient.value = createApiClientModal({
|
|
337
|
+
el: modal.value,
|
|
338
|
+
eventBus,
|
|
339
|
+
workspaceStore,
|
|
340
|
+
options: mergedConfig,
|
|
341
|
+
plugins: mapConfigPlugins(mergedConfig)
|
|
342
|
+
});
|
|
343
|
+
});
|
|
344
|
+
onBeforeUnmount(() => {
|
|
345
|
+
apiClient.value?.app.unmount();
|
|
346
|
+
});
|
|
347
|
+
/** Ensure we call the onServerChange callback */
|
|
348
|
+
eventBus.on("server:update:selected", ({ url }) => mergedConfig.value.onServerChange?.(url));
|
|
349
|
+
/** Download the document from the store */
|
|
350
|
+
eventBus.on("ui:download:document", async ({ format }) => {
|
|
351
|
+
const document = await workspaceStore.exportActiveDocument(format);
|
|
352
|
+
if (!document) {
|
|
353
|
+
console.error("No document found to download");
|
|
354
|
+
return;
|
|
355
|
+
}
|
|
356
|
+
downloadDocument(document, activeSlug.value ?? "openapi", format);
|
|
357
|
+
});
|
|
358
|
+
/**
|
|
359
|
+
* Handler for a direct navigation event such as a sidebar or search click
|
|
360
|
+
*
|
|
361
|
+
* Depending on the item type we handle a selection event differently:
|
|
362
|
+
*
|
|
363
|
+
* - Tag: If a tag is closed we open it and all its parents and scroll to it
|
|
364
|
+
* If a tag is open we just close the tag
|
|
365
|
+
* - Operation:
|
|
366
|
+
* Open all parents and scroll to the operation
|
|
367
|
+
*/
|
|
368
|
+
const handleSelectSidebarEntry = (id, caller) => {
|
|
369
|
+
const item = sidebarState.getEntryById(id);
|
|
370
|
+
if ((item?.type === "tag" || item?.type === "models" || item?.type === "text") && sidebarState.isExpanded(id) && sidebarState.selectedItem.value === id) {
|
|
371
|
+
const unblock = blockIntersection();
|
|
372
|
+
sidebarState.setExpanded(id, false);
|
|
373
|
+
unblock();
|
|
374
|
+
return;
|
|
375
|
+
}
|
|
376
|
+
if (item?.type !== "tag" && item?.type !== "models") isSidebarOpen.value = false;
|
|
377
|
+
scrollToLazyElement(id);
|
|
378
|
+
const url = makeUrlFromId(id, basePath.value, isMultiDocument.value);
|
|
379
|
+
if (url) {
|
|
380
|
+
window.history.pushState({}, "", url);
|
|
381
|
+
if (caller === "sidebar") mergedConfig.value.onSidebarClick?.(url.toString());
|
|
382
|
+
}
|
|
383
|
+
if (agent.showAgent.value) agent.closeAgent();
|
|
384
|
+
};
|
|
385
|
+
/** Handle a navigation item selection event */
|
|
386
|
+
eventBus.on("select:nav-item", ({ id }) => handleSelectSidebarEntry(id));
|
|
387
|
+
/** Handle a scroll to navigation item event */
|
|
388
|
+
eventBus.on("scroll-to:nav-item", ({ id }) => handleSelectSidebarEntry(id));
|
|
389
|
+
/** Handle an intersecting navigation item event */
|
|
390
|
+
eventBus.on("intersecting:nav-item", ({ id }) => {
|
|
391
|
+
if (!intersectionEnabled.value) return;
|
|
392
|
+
sidebarState.setSelected(id);
|
|
393
|
+
setBreadcrumb(id);
|
|
394
|
+
scrollSidebarToTop(id);
|
|
395
|
+
const url = makeUrlFromId(id, basePath.value, isMultiDocument.value);
|
|
396
|
+
if (url && workspaceStore.workspace.activeDocument) window.history.replaceState({}, "", url.toString());
|
|
397
|
+
});
|
|
398
|
+
eventBus.on("toggle:nav-item", ({ id, open }) => {
|
|
399
|
+
if (open) {
|
|
400
|
+
mergedConfig.value.onShowMore?.(id);
|
|
401
|
+
const entry = sidebarState.getEntryById(id);
|
|
402
|
+
if (entry && "children" in entry && entry.children) {
|
|
403
|
+
const first = entry.children[0];
|
|
404
|
+
if (first) addToPriorityQueue(first.id);
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
sidebarState.setExpanded(id, open ?? !sidebarState.isExpanded(id));
|
|
408
|
+
});
|
|
409
|
+
eventBus.on("copy-url:nav-item", ({ id }) => {
|
|
410
|
+
const url = makeUrlFromId(id, basePath.value, isMultiDocument.value)?.toString();
|
|
411
|
+
return url && copyToClipboard(url);
|
|
412
|
+
});
|
|
413
|
+
onBeforeMount(() => {
|
|
414
|
+
window.history.scrollRestoration = "manual";
|
|
415
|
+
addScalarClassesToHeadless();
|
|
416
|
+
window.addEventListener("popstate", () => {
|
|
417
|
+
const id = getIdFromUrl(window.location.href, mergedConfig.value.pathRouting?.basePath, isMultiDocument.value ? void 0 : activeSlug.value);
|
|
418
|
+
if (id) scrollToLazyElement(id);
|
|
419
|
+
});
|
|
420
|
+
});
|
|
421
|
+
const documentStartRef = useTemplateRef("documentStartRef");
|
|
422
|
+
useIntersection(documentStartRef, () => {
|
|
423
|
+
eventBus.emit("intersecting:nav-item", { id: activeSlug.value });
|
|
424
|
+
});
|
|
425
|
+
const colorMode = computed(() => {
|
|
426
|
+
const mode = workspaceStore.workspace["x-scalar-color-mode"];
|
|
427
|
+
if (mode === "system") return getSystemModePreference();
|
|
428
|
+
return mode;
|
|
429
|
+
});
|
|
430
|
+
const bodyScrollLocked = useScrollLock(typeof document !== "undefined" ? document.body : null);
|
|
431
|
+
watch(agent.showAgent, () => bodyScrollLocked.value = agent.showAgent.value);
|
|
432
|
+
const showMCPButton = computed(() => {
|
|
433
|
+
if (mergedConfig.value.mcp?.disabled) return false;
|
|
434
|
+
if (typeof window !== "undefined" && isLocalUrl(window.location.href)) return true;
|
|
435
|
+
if (mergedConfig.value.mcp) return true;
|
|
436
|
+
return false;
|
|
437
|
+
});
|
|
438
|
+
return (_ctx, _cache) => {
|
|
439
|
+
return openBlock(), createElementBlock("div", null, [
|
|
440
|
+
(openBlock(), createBlock(resolveDynamicComponent("style"), null, {
|
|
441
|
+
default: withCtx(() => [createTextVNode(toDisplayString(mergedConfig.value.customCss) + " " + toDisplayString(themeStyle.value), 1)]),
|
|
442
|
+
_: 1
|
|
443
|
+
})),
|
|
444
|
+
createElementVNode("div", {
|
|
445
|
+
ref: "documentEl",
|
|
446
|
+
class: normalizeClass(["scalar-app scalar-api-reference references-layout", [{
|
|
447
|
+
"scalar-api-references-standalone-mobile": mergedConfig.value.showSidebar,
|
|
448
|
+
"scalar-scrollbars-obtrusive": obtrusiveScrollbars.value,
|
|
449
|
+
"references-editable": mergedConfig.value.isEditable,
|
|
450
|
+
"references-sidebar": mergedConfig.value.showSidebar,
|
|
451
|
+
"references-sidebar-mobile-open": isSidebarOpen.value,
|
|
452
|
+
"references-classic": mergedConfig.value.layout === "classic"
|
|
453
|
+
}, _ctx.$attrs.class]])
|
|
454
|
+
}, [
|
|
455
|
+
unref(agent).agentEnabled.value ? (openBlock(), createBlock(unref(AgentScalarDrawer_default), {
|
|
456
|
+
key: 0,
|
|
457
|
+
agentScalarConfiguration: configList.value[activeSlug.value]?.agent,
|
|
458
|
+
eventBus: unref(eventBus),
|
|
459
|
+
workspaceStore: unref(workspaceStore)
|
|
460
|
+
}, null, 8, [
|
|
461
|
+
"agentScalarConfiguration",
|
|
462
|
+
"eventBus",
|
|
463
|
+
"workspaceStore"
|
|
464
|
+
])) : createCommentVNode("", true),
|
|
465
|
+
mergedConfig.value.layout === "modern" ? (openBlock(), createBlock(MobileHeader_default, {
|
|
466
|
+
key: 1,
|
|
467
|
+
breadcrumb: breadcrumb.value,
|
|
468
|
+
isSidebarOpen: isSidebarOpen.value,
|
|
469
|
+
showSidebar: mergedConfig.value.showSidebar,
|
|
470
|
+
onToggleSidebar: _cache[3] || (_cache[3] = () => isSidebarOpen.value = !isSidebarOpen.value)
|
|
471
|
+
}, {
|
|
472
|
+
search: withCtx(() => [!mergedConfig.value.hideSearch ? (openBlock(), createBlock(SearchButton_default, {
|
|
473
|
+
key: 0,
|
|
474
|
+
class: "my-2",
|
|
475
|
+
document: unref(workspaceStore).workspace.activeDocument,
|
|
476
|
+
eventBus: unref(eventBus),
|
|
477
|
+
hideModels: mergedConfig.value.hideModels,
|
|
478
|
+
searchHotKey: mergedConfig.value.searchHotKey,
|
|
479
|
+
showSidebar: mergedConfig.value.showSidebar
|
|
480
|
+
}, null, 8, [
|
|
481
|
+
"document",
|
|
482
|
+
"eventBus",
|
|
483
|
+
"hideModels",
|
|
484
|
+
"searchHotKey",
|
|
485
|
+
"showSidebar"
|
|
486
|
+
])) : createCommentVNode("", true)]),
|
|
487
|
+
sidebar: withCtx(({ sidebarClasses }) => [mergedConfig.value.showSidebar && mergedConfig.value.layout === "modern" ? (openBlock(), createBlock(unref(ScalarSidebar), {
|
|
488
|
+
key: 0,
|
|
489
|
+
"aria-label": `Sidebar for ${unref(workspaceStore).workspace.activeDocument?.info?.title}`,
|
|
490
|
+
class: normalizeClass(["t-doc__sidebar", sidebarClasses]),
|
|
491
|
+
isExpanded: unref(sidebarState).isExpanded,
|
|
492
|
+
isSelected: unref(sidebarState).isSelected,
|
|
493
|
+
items: sidebarItems.value,
|
|
494
|
+
layout: "reference",
|
|
495
|
+
options: mergedConfig.value,
|
|
496
|
+
role: "navigation",
|
|
497
|
+
onSelectItem: _cache[1] || (_cache[1] = (id) => handleSelectSidebarEntry(id, "sidebar")),
|
|
498
|
+
onToggleGroup: _cache[2] || (_cache[2] = (id) => unref(sidebarState).setExpanded(id, !unref(sidebarState).isExpanded(id)))
|
|
499
|
+
}, {
|
|
500
|
+
header: withCtx(() => [
|
|
501
|
+
documentOptionList.value.length > 1 ? (openBlock(), createBlock(DocumentSelector_default, {
|
|
502
|
+
key: 0,
|
|
503
|
+
class: "p-3 pb-0",
|
|
504
|
+
modelValue: activeSlug.value,
|
|
505
|
+
options: documentOptionList.value,
|
|
506
|
+
"onUpdate:modelValue": changeSelectedDocument
|
|
507
|
+
}, null, 8, ["modelValue", "options"])) : createCommentVNode("", true),
|
|
508
|
+
!mergedConfig.value.hideSearch ? (openBlock(), createElementBlock("div", _hoisted_1, [createVNode(SearchButton_default, {
|
|
509
|
+
document: unref(workspaceStore).workspace.activeDocument,
|
|
510
|
+
eventBus: unref(eventBus),
|
|
511
|
+
hideModels: mergedConfig.value.hideModels,
|
|
512
|
+
searchHotKey: mergedConfig.value.searchHotKey
|
|
513
|
+
}, null, 8, [
|
|
514
|
+
"document",
|
|
515
|
+
"eventBus",
|
|
516
|
+
"hideModels",
|
|
517
|
+
"searchHotKey"
|
|
518
|
+
]), unref(agent).agentEnabled.value ? (openBlock(), createBlock(unref(AgentScalarButton_default), { key: 0 })) : createCommentVNode("", true)])) : createCommentVNode("", true),
|
|
519
|
+
renderSlot(_ctx.$slots, "sidebar-start", normalizeProps(guardReactiveProps(slotProps.value)), void 0, true)
|
|
520
|
+
]),
|
|
521
|
+
footer: withCtx(() => [renderSlot(_ctx.$slots, "sidebar-end", normalizeProps(guardReactiveProps(slotProps.value)), () => [createVNode(unref(ScalarSidebarFooter), { class: "darklight-reference" }, {
|
|
522
|
+
toggle: withCtx(() => [!mergedConfig.value.hideDarkModeToggle && !mergedConfig.value.forceDarkModeState ? (openBlock(), createBlock(unref(ScalarColorModeToggleButton), {
|
|
523
|
+
key: 0,
|
|
524
|
+
modelValue: colorMode.value === "dark",
|
|
525
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = () => unref(toggleColorMode)())
|
|
526
|
+
}, null, 8, ["modelValue"])) : (openBlock(), createElementBlock("span", _hoisted_2))]),
|
|
527
|
+
default: withCtx(() => [!mergedConfig.value.hideClientButton && !showMCPButton.value ? (openBlock(), createBlock(unref(OpenApiClientButton), {
|
|
528
|
+
key: 0,
|
|
529
|
+
buttonSource: "sidebar",
|
|
530
|
+
integration: mergedConfig.value._integration,
|
|
531
|
+
isDevelopment: unref(isDevelopment),
|
|
532
|
+
url: documentUrl.value
|
|
533
|
+
}, null, 8, [
|
|
534
|
+
"integration",
|
|
535
|
+
"isDevelopment",
|
|
536
|
+
"url"
|
|
537
|
+
])) : createCommentVNode("", true), showMCPButton.value ? (openBlock(), createBlock(unref(OpenMCPButton_default), {
|
|
538
|
+
key: 1,
|
|
539
|
+
config: mergedConfig.value.mcp,
|
|
540
|
+
isDevelopment: unref(isDevelopment),
|
|
541
|
+
url: documentUrl.value,
|
|
542
|
+
workspace: unref(workspaceStore)
|
|
543
|
+
}, null, 8, [
|
|
544
|
+
"config",
|
|
545
|
+
"isDevelopment",
|
|
546
|
+
"url",
|
|
547
|
+
"workspace"
|
|
548
|
+
])) : createCommentVNode("", true)]),
|
|
549
|
+
_: 1
|
|
550
|
+
})], true)]),
|
|
551
|
+
_: 3
|
|
552
|
+
}, 8, [
|
|
553
|
+
"aria-label",
|
|
554
|
+
"class",
|
|
555
|
+
"isExpanded",
|
|
556
|
+
"isSelected",
|
|
557
|
+
"items",
|
|
558
|
+
"options"
|
|
559
|
+
])) : createCommentVNode("", true)]),
|
|
560
|
+
_: 3
|
|
561
|
+
}, 8, [
|
|
562
|
+
"breadcrumb",
|
|
563
|
+
"isSidebarOpen",
|
|
564
|
+
"showSidebar"
|
|
565
|
+
])) : createCommentVNode("", true),
|
|
566
|
+
createElementVNode("main", {
|
|
567
|
+
"aria-label": `Open API Documentation for ${unref(workspaceStore).workspace.activeDocument?.info?.title}`,
|
|
568
|
+
class: "references-rendered",
|
|
569
|
+
inert: unref(agent).showAgent.value
|
|
570
|
+
}, [createVNode(Content_default, {
|
|
571
|
+
authStore: unref(workspaceStore).auth,
|
|
572
|
+
document: unref(workspaceStore).workspace.activeDocument,
|
|
573
|
+
environment: environment.value,
|
|
574
|
+
eventBus: unref(eventBus),
|
|
575
|
+
expandedItems: unref(sidebarState).expandedItems.value,
|
|
576
|
+
headingSlugGenerator: mergedConfig.value.generateHeadingSlug ?? ((heading) => `${activeSlug.value}/description/${heading.slug}`),
|
|
577
|
+
infoSectionId: infoSectionId.value ?? "description/introduction",
|
|
578
|
+
items: sidebarItems.value,
|
|
579
|
+
options: mergedConfig.value,
|
|
580
|
+
xScalarDefaultClient: unref(workspaceStore).workspace["x-scalar-default-client"]
|
|
581
|
+
}, createSlots({
|
|
582
|
+
start: withCtx(() => [
|
|
583
|
+
unref(workspaceStore).workspace.activeDocument ? (openBlock(), createBlock(unref(DeveloperTools_default), {
|
|
584
|
+
key: 0,
|
|
585
|
+
overrides: configurationOverrides.value,
|
|
586
|
+
"onUpdate:overrides": _cache[4] || (_cache[4] = ($event) => configurationOverrides.value = $event),
|
|
587
|
+
class: "references-developer-tools",
|
|
588
|
+
configuration: mergedConfig.value,
|
|
589
|
+
workspace: unref(workspaceStore)
|
|
590
|
+
}, null, 8, [
|
|
591
|
+
"overrides",
|
|
592
|
+
"configuration",
|
|
593
|
+
"workspace"
|
|
594
|
+
])) : createCommentVNode("", true),
|
|
595
|
+
createElementVNode("div", {
|
|
596
|
+
ref_key: "documentStartRef",
|
|
597
|
+
ref: documentStartRef
|
|
598
|
+
}, null, 512),
|
|
599
|
+
mergedConfig.value.layout === "classic" ? (openBlock(), createBlock(ClassicHeader_default, { key: 1 }, {
|
|
600
|
+
"dark-mode-toggle": withCtx(() => [!mergedConfig.value.hideDarkModeToggle && !mergedConfig.value.forceDarkModeState ? (openBlock(), createBlock(unref(ScalarColorModeToggleIcon), {
|
|
601
|
+
key: 0,
|
|
602
|
+
class: "text-c-2 hover:text-c-1",
|
|
603
|
+
mode: colorMode.value,
|
|
604
|
+
style: { "transform": "scale(1.4)" },
|
|
605
|
+
variant: "icon",
|
|
606
|
+
onClick: _cache[5] || (_cache[5] = () => unref(toggleColorMode)())
|
|
607
|
+
}, null, 8, ["mode"])) : createCommentVNode("", true)]),
|
|
608
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_4, [documentOptionList.value.length > 1 ? (openBlock(), createBlock(DocumentSelector_default, {
|
|
609
|
+
key: 0,
|
|
610
|
+
modelValue: activeSlug.value,
|
|
611
|
+
options: documentOptionList.value,
|
|
612
|
+
"onUpdate:modelValue": changeSelectedDocument
|
|
613
|
+
}, null, 8, ["modelValue", "options"])) : createCommentVNode("", true)]), !mergedConfig.value.hideSearch ? (openBlock(), createBlock(SearchButton_default, {
|
|
614
|
+
key: 0,
|
|
615
|
+
class: "t-doc__sidebar max-w-64",
|
|
616
|
+
document: unref(workspaceStore).workspace.activeDocument,
|
|
617
|
+
eventBus: unref(eventBus),
|
|
618
|
+
hideModels: mergedConfig.value.hideModels,
|
|
619
|
+
searchHotKey: mergedConfig.value.searchHotKey
|
|
620
|
+
}, null, 8, [
|
|
621
|
+
"document",
|
|
622
|
+
"eventBus",
|
|
623
|
+
"hideModels",
|
|
624
|
+
"searchHotKey"
|
|
625
|
+
])) : createCommentVNode("", true)]),
|
|
626
|
+
_: 1
|
|
627
|
+
})) : createCommentVNode("", true),
|
|
628
|
+
renderSlot(_ctx.$slots, "content-start", normalizeProps(guardReactiveProps(slotProps.value)), void 0, true)
|
|
629
|
+
]),
|
|
630
|
+
end: withCtx(() => [renderSlot(_ctx.$slots, "content-end", normalizeProps(guardReactiveProps(slotProps.value)), void 0, true)]),
|
|
631
|
+
_: 2
|
|
632
|
+
}, [mergedConfig.value.isEditable ? {
|
|
633
|
+
name: "empty-state",
|
|
634
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "editor-placeholder", normalizeProps(guardReactiveProps(slotProps.value)), void 0, true)]),
|
|
635
|
+
key: "0"
|
|
636
|
+
} : void 0]), 1032, [
|
|
637
|
+
"authStore",
|
|
638
|
+
"document",
|
|
639
|
+
"environment",
|
|
640
|
+
"eventBus",
|
|
641
|
+
"expandedItems",
|
|
642
|
+
"headingSlugGenerator",
|
|
643
|
+
"infoSectionId",
|
|
644
|
+
"items",
|
|
645
|
+
"options",
|
|
646
|
+
"xScalarDefaultClient"
|
|
647
|
+
])], 8, _hoisted_3),
|
|
648
|
+
_ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_5, [renderSlot(_ctx.$slots, "footer", normalizeProps(guardReactiveProps(slotProps.value)), void 0, true)])) : createCommentVNode("", true),
|
|
649
|
+
createElementVNode("div", {
|
|
650
|
+
ref_key: "modal",
|
|
651
|
+
ref: modal
|
|
652
|
+
}, null, 512)
|
|
653
|
+
], 2),
|
|
654
|
+
createVNode(unref(ScalarToasts))
|
|
655
|
+
]);
|
|
656
|
+
};
|
|
657
|
+
}
|
|
658
|
+
});
|
|
659
|
+
//#endregion
|
|
660
|
+
export { ApiReference_vue_vue_type_script_setup_true_lang_default as default };
|
|
661
|
+
|
|
662
|
+
//# sourceMappingURL=ApiReference.vue.script.js.map
|