@scalar/api-reference 1.48.8 → 1.49.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +40 -0
- package/dist/AgentScalarChatInterface-MUbtSqMw.js +41 -0
- package/dist/AgentScalarChatInterface-MUbtSqMw.js.map +1 -0
- package/dist/ExternalDocs-phu7GxpZ.js +272 -0
- package/dist/ExternalDocs-phu7GxpZ.js.map +1 -0
- package/dist/MobileHeader-B71jYJdT.js +1373 -0
- package/dist/MobileHeader-B71jYJdT.js.map +1 -0
- package/dist/Operation-CixLVfKd.js +3827 -0
- package/dist/Operation-CixLVfKd.js.map +1 -0
- package/dist/SearchButton-xzhIpMCZ.js +621 -0
- package/dist/SearchButton-xzhIpMCZ.js.map +1 -0
- package/dist/ServerSelector-5y29y2BJ.js +852 -0
- package/dist/ServerSelector-5y29y2BJ.js.map +1 -0
- package/dist/blocks/index.js +3 -10
- package/dist/blocks/scalar-client-selector-block/index.d.ts +1 -1
- package/dist/blocks/scalar-info-block/index.d.ts +2 -2
- package/dist/blocks/scalar-server-selector-block/index.d.ts +1 -1
- package/dist/browser/standalone.js +40748 -34662
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/AgentScalar/index.d.ts +3 -3
- package/dist/components/Anchor/index.d.ts +2 -2
- package/dist/components/ApiReference.vue.d.ts.map +1 -1
- package/dist/components/Badge/index.d.ts +1 -1
- package/dist/components/Content/Auth/index.d.ts +1 -1
- package/dist/components/Content/Content.vue.d.ts +2 -4
- package/dist/components/Content/Content.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/ModelTag.vue.d.ts +3 -3
- package/dist/components/Content/Models/ModelTag.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/index.d.ts +2 -2
- package/dist/components/Content/Operations/TraversedEntry.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/Schema.vue.d.ts +1 -1
- package/dist/components/Content/Schema/SchemaComposition.vue.d.ts +2 -2
- package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/get-compositions-to-render.d.ts +1 -1
- package/dist/components/Content/Schema/index.d.ts +4 -4
- package/dist/components/Content/Tags/components/ModernLayout.vue.d.ts +2 -2
- package/dist/components/Content/Tags/components/ModernLayout.vue.d.ts.map +1 -1
- package/dist/components/Content/Tags/index.d.ts +1 -1
- package/dist/components/Content/index.d.ts +2 -2
- package/dist/components/HttpMethod/index.d.ts +1 -1
- package/dist/components/Lazy/Lazy.vue.d.ts +3 -0
- package/dist/components/Lazy/Lazy.vue.d.ts.map +1 -1
- package/dist/components/LinkList/index.d.ts +1 -1
- package/dist/components/OperationsList/index.d.ts +1 -1
- package/dist/components/RenderPlugins/index.d.ts +1 -1
- package/dist/components/Section/index.d.ts +10 -10
- package/dist/components/SectionFlare/index.d.ts +1 -1
- package/dist/components/index.d.ts +5 -5
- package/dist/components/index.js +102 -42
- package/dist/components/index.js.map +1 -0
- package/dist/features/Operation/components/OperationParameters.vue.d.ts +1 -1
- package/dist/features/Operation/components/OperationResponses.vue.d.ts +1 -1
- package/dist/features/Operation/components/ParameterList.vue.d.ts +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts +1 -1
- package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +1 -1
- package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts +1 -1
- package/dist/features/Operation/index.d.ts +1 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +1 -1
- package/dist/features/Search/components/SearchResult.vue.d.ts +1 -1
- package/dist/features/Search/helpers/create-fuse-instance.d.ts +1 -1
- package/dist/features/Search/helpers/create-search-index.d.ts +1 -1
- package/dist/features/Search/index.d.ts +2 -2
- package/dist/features/Search/types.d.ts +1 -1
- package/dist/features/ask-agent-button/AskAgentButton.vue.d.ts.map +1 -1
- package/dist/features/developer-tools/index.d.ts +1 -1
- package/dist/features/example-responses/index.d.ts +1 -1
- package/dist/features/external-docs/index.d.ts +1 -1
- package/dist/features/index.d.ts +2 -2
- package/dist/features/index.js +4 -10
- package/dist/features/info-object/index.d.ts +3 -3
- package/dist/features/specification-extension/index.d.ts +2 -2
- package/dist/features/test-request-button/index.d.ts +1 -1
- package/dist/features/x-badges/index.d.ts +1 -1
- package/dist/helpers/download.d.ts +1 -1
- package/dist/helpers/download.d.ts.map +1 -1
- package/dist/helpers/id-routing.d.ts +4 -0
- package/dist/helpers/id-routing.d.ts.map +1 -1
- package/dist/helpers/index.d.ts +8 -8
- package/dist/helpers/index.js +3 -24
- package/dist/helpers/lazy-bus.d.ts +19 -19
- package/dist/helpers/lazy-bus.d.ts.map +1 -1
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/index.js +3 -8
- package/dist/index.d.ts +5 -5
- package/dist/index.js +7 -14
- package/dist/lazy-bus-CV8Ox5hD.js +333 -0
- package/dist/lazy-bus-CV8Ox5hD.js.map +1 -0
- package/dist/normalize-configurations-DcVpOEjD.js +232 -0
- package/dist/normalize-configurations-DcVpOEjD.js.map +1 -0
- package/dist/plugins/hooks/usePluginManager.d.ts +1 -1
- package/dist/plugins/index.d.ts +3 -3
- package/dist/plugins/index.js +2 -9
- package/dist/plugins-4EyiUD_A.js +80 -0
- package/dist/plugins-4EyiUD_A.js.map +1 -0
- package/dist/src-DqcYVBWI.js +1686 -0
- package/dist/src-DqcYVBWI.js.map +1 -0
- package/dist/ssr.d.ts +2 -2
- package/dist/ssr.js +7 -14
- package/dist/storage--3JuzjCI.js +42 -0
- package/dist/storage--3JuzjCI.js.map +1 -0
- package/dist/style.css +6840 -7397
- package/dist/urls-gPTXGgbj.js +17 -0
- package/dist/urls-gPTXGgbj.js.map +1 -0
- package/dist/use-agent-Bnm1de0n.js +60 -0
- package/dist/use-agent-Bnm1de0n.js.map +1 -0
- package/dist/use-intersection-8QqPi2O-.js +24 -0
- package/dist/use-intersection-8QqPi2O-.js.map +1 -0
- package/package.json +25 -27
- package/dist/_virtual/_plugin-vue_export-helper.js +0 -10
- package/dist/blocks/scalar-client-selector-block/components/ClientDropdown.vue.js +0 -7
- package/dist/blocks/scalar-client-selector-block/components/ClientDropdown.vue2.js +0 -123
- package/dist/blocks/scalar-client-selector-block/components/ClientSelector.vue.js +0 -7
- package/dist/blocks/scalar-client-selector-block/components/ClientSelector.vue2.js +0 -142
- package/dist/blocks/scalar-client-selector-block/helpers/featured-clients.js +0 -24
- package/dist/blocks/scalar-info-block/components/DownloadLink.vue.js +0 -7
- package/dist/blocks/scalar-info-block/components/DownloadLink.vue2.js +0 -63
- package/dist/blocks/scalar-info-block/components/InfoBlock.vue.js +0 -59
- package/dist/blocks/scalar-info-block/components/InfoBlock.vue2.js +0 -4
- package/dist/blocks/scalar-info-block/components/InfoDescription.vue.js +0 -7
- package/dist/blocks/scalar-info-block/components/InfoDescription.vue2.js +0 -70
- package/dist/blocks/scalar-info-block/components/InfoLinks.vue.js +0 -38
- package/dist/blocks/scalar-info-block/components/InfoLinks.vue2.js +0 -4
- package/dist/blocks/scalar-info-block/components/InfoMarkdownSection.vue.js +0 -38
- package/dist/blocks/scalar-info-block/components/InfoMarkdownSection.vue2.js +0 -4
- package/dist/blocks/scalar-info-block/components/InfoVersion.vue.js +0 -28
- package/dist/blocks/scalar-info-block/components/InfoVersion.vue2.js +0 -4
- package/dist/blocks/scalar-info-block/components/IntroductionCard.vue.js +0 -7
- package/dist/blocks/scalar-info-block/components/IntroductionCard.vue2.js +0 -19
- package/dist/blocks/scalar-info-block/components/IntroductionCardItem.vue.js +0 -14
- package/dist/blocks/scalar-info-block/components/IntroductionLayout.vue.js +0 -7
- package/dist/blocks/scalar-info-block/components/IntroductionLayout.vue2.js +0 -112
- package/dist/blocks/scalar-info-block/components/OpenApiVersion.vue.js +0 -21
- package/dist/blocks/scalar-info-block/components/OpenApiVersion.vue2.js +0 -4
- package/dist/blocks/scalar-server-selector-block/components/Selector.vue.js +0 -76
- package/dist/blocks/scalar-server-selector-block/components/Selector.vue2.js +0 -4
- package/dist/blocks/scalar-server-selector-block/components/ServerSelector.vue.js +0 -72
- package/dist/blocks/scalar-server-selector-block/components/ServerSelector.vue2.js +0 -4
- package/dist/components/AgentScalar/AgentScalarButton.vue.js +0 -22
- package/dist/components/AgentScalar/AgentScalarButton.vue2.js +0 -4
- package/dist/components/AgentScalar/AgentScalarChatInterface.vue.js +0 -4
- package/dist/components/AgentScalar/AgentScalarChatInterface.vue2.js +0 -29
- package/dist/components/AgentScalar/AgentScalarDrawer.vue.js +0 -7
- package/dist/components/AgentScalar/AgentScalarDrawer.vue2.js +0 -78
- package/dist/components/AgentScalar/OpenMCPButton.vue.js +0 -7
- package/dist/components/AgentScalar/OpenMCPButton.vue2.js +0 -191
- package/dist/components/Anchor/Anchor.vue.js +0 -51
- package/dist/components/Anchor/Anchor.vue2.js +0 -4
- package/dist/components/Anchor/WithBreadcrumb.vue.js +0 -41
- package/dist/components/Anchor/WithBreadcrumb.vue2.js +0 -4
- package/dist/components/ApiReference.vue.js +0 -10
- package/dist/components/ApiReference.vue2.js +0 -744
- package/dist/components/Badge/Badge.vue.js +0 -7
- package/dist/components/Badge/Badge.vue2.js +0 -26
- package/dist/components/ClassicHeader.vue.js +0 -21
- package/dist/components/Content/Auth/Auth.vue.js +0 -77
- package/dist/components/Content/Auth/Auth.vue2.js +0 -4
- package/dist/components/Content/Auth/helpers/get-default-security.js +0 -55
- package/dist/components/Content/Content.vue.js +0 -177
- package/dist/components/Content/Content.vue3.js +0 -5
- package/dist/components/Content/Models/Model.vue.js +0 -47
- package/dist/components/Content/Models/Model.vue2.js +0 -4
- package/dist/components/Content/Models/ModelTag.vue.js +0 -82
- package/dist/components/Content/Models/ModelTag.vue2.js +0 -4
- package/dist/components/Content/Models/components/ClassicLayout.vue.js +0 -7
- package/dist/components/Content/Models/components/ClassicLayout.vue2.js +0 -78
- package/dist/components/Content/Models/components/ModernLayout.vue.js +0 -61
- package/dist/components/Content/Models/components/ModernLayout.vue2.js +0 -4
- package/dist/components/Content/Operations/TraversedEntry.vue.js +0 -145
- package/dist/components/Content/Operations/TraversedEntry.vue2.js +0 -4
- package/dist/components/Content/Schema/RenderString.vue.js +0 -27
- package/dist/components/Content/Schema/RenderString.vue2.js +0 -4
- package/dist/components/Content/Schema/Schema.vue.js +0 -7
- package/dist/components/Content/Schema/Schema.vue2.js +0 -193
- package/dist/components/Content/Schema/SchemaComposition.vue.js +0 -120
- package/dist/components/Content/Schema/SchemaComposition.vue2.js +0 -4
- package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.js +0 -7
- package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue2.js +0 -36
- package/dist/components/Content/Schema/SchemaEnums.vue.js +0 -7
- package/dist/components/Content/Schema/SchemaEnums.vue2.js +0 -112
- package/dist/components/Content/Schema/SchemaHeading.vue.js +0 -7
- package/dist/components/Content/Schema/SchemaHeading.vue2.js +0 -61
- package/dist/components/Content/Schema/SchemaObjectExampleCodeBlock.vue.js +0 -66
- package/dist/components/Content/Schema/SchemaObjectExampleCodeBlock.vue2.js +0 -4
- package/dist/components/Content/Schema/SchemaObjectProperties.vue.js +0 -120
- package/dist/components/Content/Schema/SchemaObjectProperties.vue2.js +0 -4
- package/dist/components/Content/Schema/SchemaProperty.vue.js +0 -7
- package/dist/components/Content/Schema/SchemaProperty.vue2.js +0 -228
- package/dist/components/Content/Schema/SchemaPropertyDefault.vue.js +0 -7
- package/dist/components/Content/Schema/SchemaPropertyDefault.vue2.js +0 -45
- package/dist/components/Content/Schema/SchemaPropertyDetail.vue.js +0 -7
- package/dist/components/Content/Schema/SchemaPropertyDetail.vue2.js +0 -40
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue.js +0 -7
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue2.js +0 -80
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +0 -7
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +0 -318
- package/dist/components/Content/Schema/helpers/format-example.js +0 -41
- package/dist/components/Content/Schema/helpers/format-value.js +0 -35
- package/dist/components/Content/Schema/helpers/get-compositions-to-render.js +0 -31
- package/dist/components/Content/Schema/helpers/get-enum-values.js +0 -20
- package/dist/components/Content/Schema/helpers/get-property-description.js +0 -34
- package/dist/components/Content/Schema/helpers/get-ref-name.js +0 -14
- package/dist/components/Content/Schema/helpers/get-schema-type.js +0 -47
- package/dist/components/Content/Schema/helpers/has-complex-array-items.js +0 -48
- package/dist/components/Content/Schema/helpers/is-empty-schema-object.js +0 -13
- package/dist/components/Content/Schema/helpers/is-type-object.js +0 -27
- package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +0 -215
- package/dist/components/Content/Schema/helpers/optimize-value-for-display.js +0 -64
- package/dist/components/Content/Schema/helpers/schema-composition.js +0 -4
- package/dist/components/Content/Schema/helpers/schema-name.js +0 -24
- package/dist/components/Content/Schema/helpers/should-display-description.js +0 -12
- package/dist/components/Content/Schema/helpers/should-display-heading.js +0 -12
- package/dist/components/Content/Schema/helpers/should-render-array-item-composition.js +0 -15
- package/dist/components/Content/Schema/helpers/sort-property-names.js +0 -71
- package/dist/components/Content/Tags/Tag.vue.js +0 -46
- package/dist/components/Content/Tags/Tag.vue2.js +0 -4
- package/dist/components/Content/Tags/components/ClassicLayout.vue.js +0 -7
- package/dist/components/Content/Tags/components/ClassicLayout.vue2.js +0 -57
- package/dist/components/Content/Tags/components/ModernLayout.vue.js +0 -7
- package/dist/components/Content/Tags/components/ModernLayout.vue2.js +0 -64
- package/dist/components/Content/Tags/components/TagSection.vue.js +0 -100
- package/dist/components/Content/Tags/components/TagSection.vue2.js +0 -4
- package/dist/components/GettingStarted.vue.js +0 -7
- package/dist/components/GettingStarted.vue2.js +0 -82
- package/dist/components/HttpMethod/HttpMethod.vue.js +0 -34
- package/dist/components/HttpMethod/HttpMethod.vue2.js +0 -4
- package/dist/components/IntersectionObserver.vue.js +0 -55
- package/dist/components/IntersectionObserver.vue2.js +0 -4
- package/dist/components/Lazy/Lazy.vue.js +0 -17
- package/dist/components/Lazy/Lazy.vue2.js +0 -4
- package/dist/components/LinkList/LinkList.vue.js +0 -7
- package/dist/components/LinkList/LinkList.vue2.js +0 -48
- package/dist/components/LoadingSkeleton.vue.js +0 -7
- package/dist/components/LoadingSkeleton.vue2.js +0 -20
- package/dist/components/MobileHeader.vue.js +0 -62
- package/dist/components/MobileHeader.vue2.js +0 -4
- package/dist/components/OperationPath.vue.js +0 -7
- package/dist/components/OperationPath.vue2.js +0 -30
- package/dist/components/OperationsList/OperationsList.vue.js +0 -7
- package/dist/components/OperationsList/OperationsList.vue2.js +0 -61
- package/dist/components/OperationsList/OperationsListItem.vue.js +0 -7
- package/dist/components/OperationsList/OperationsListItem.vue2.js +0 -68
- package/dist/components/RenderPlugins/RenderPlugins.vue.js +0 -43
- package/dist/components/RenderPlugins/RenderPlugins.vue2.js +0 -4
- package/dist/components/ScreenReader.vue.js +0 -7
- package/dist/components/ScreenReader.vue2.js +0 -21
- package/dist/components/Section/CompactSection.vue.js +0 -7
- package/dist/components/Section/CompactSection.vue2.js +0 -60
- package/dist/components/Section/Section.vue.js +0 -7
- package/dist/components/Section/Section.vue2.js +0 -23
- package/dist/components/Section/SectionAccordion.vue.js +0 -7
- package/dist/components/Section/SectionAccordion.vue2.js +0 -76
- package/dist/components/Section/SectionColumn.vue.js +0 -14
- package/dist/components/Section/SectionColumns.vue.js +0 -14
- package/dist/components/Section/SectionContainer.vue.js +0 -7
- package/dist/components/Section/SectionContainer.vue2.js +0 -21
- package/dist/components/Section/SectionContainerAccordion.vue.js +0 -7
- package/dist/components/Section/SectionContainerAccordion.vue2.js +0 -54
- package/dist/components/Section/SectionContent.vue.js +0 -7
- package/dist/components/Section/SectionContent.vue2.js +0 -22
- package/dist/components/Section/SectionHeader.vue.js +0 -7
- package/dist/components/Section/SectionHeader.vue2.js +0 -26
- package/dist/components/Section/SectionHeaderTag.vue.js +0 -7
- package/dist/components/Section/SectionHeaderTag.vue2.js +0 -20
- package/dist/components/SectionFlare/SectionFlare.vue.js +0 -14
- package/dist/components/ShowMoreButton.vue.js +0 -7
- package/dist/components/ShowMoreButton.vue2.js +0 -23
- package/dist/consts/urls.js +0 -16
- package/dist/features/Operation/Operation.vue.js +0 -100
- package/dist/features/Operation/Operation.vue2.js +0 -4
- package/dist/features/Operation/components/ContentTypeSelect.vue.js +0 -88
- package/dist/features/Operation/components/ContentTypeSelect.vue2.js +0 -4
- package/dist/features/Operation/components/Header.vue.js +0 -33
- package/dist/features/Operation/components/Header.vue2.js +0 -4
- package/dist/features/Operation/components/Headers.vue.js +0 -7
- package/dist/features/Operation/components/Headers.vue2.js +0 -71
- package/dist/features/Operation/components/OperationParameters.vue.js +0 -92
- package/dist/features/Operation/components/OperationParameters.vue2.js +0 -4
- package/dist/features/Operation/components/OperationResponses.vue.js +0 -44
- package/dist/features/Operation/components/OperationResponses.vue2.js +0 -4
- package/dist/features/Operation/components/ParameterList.vue.js +0 -50
- package/dist/features/Operation/components/ParameterList.vue2.js +0 -4
- package/dist/features/Operation/components/ParameterListItem.vue.js +0 -7
- package/dist/features/Operation/components/ParameterListItem.vue2.js +0 -163
- package/dist/features/Operation/components/RequestBody.vue.js +0 -7
- package/dist/features/Operation/components/RequestBody.vue2.js +0 -164
- package/dist/features/Operation/components/callbacks/Callback.vue.js +0 -7
- package/dist/features/Operation/components/callbacks/Callback.vue2.js +0 -60
- package/dist/features/Operation/components/callbacks/Callbacks.vue.js +0 -63
- package/dist/features/Operation/components/callbacks/Callbacks.vue2.js +0 -4
- package/dist/features/Operation/helpers/filter-selected-security.js +0 -28
- package/dist/features/Operation/helpers/get-first-server.js +0 -25
- package/dist/features/Operation/layouts/ClassicLayout.vue.js +0 -7
- package/dist/features/Operation/layouts/ClassicLayout.vue2.js +0 -243
- package/dist/features/Operation/layouts/ModernLayout.vue.js +0 -7
- package/dist/features/Operation/layouts/ModernLayout.vue2.js +0 -256
- package/dist/features/Search/components/SearchButton.vue.js +0 -88
- package/dist/features/Search/components/SearchButton.vue2.js +0 -4
- package/dist/features/Search/components/SearchModal.vue.js +0 -7
- package/dist/features/Search/components/SearchModal.vue2.js +0 -120
- package/dist/features/Search/components/SearchResult.vue.js +0 -84
- package/dist/features/Search/components/SearchResult.vue2.js +0 -4
- package/dist/features/Search/helpers/create-fuse-instance.js +0 -43
- package/dist/features/Search/helpers/create-search-index.js +0 -119
- package/dist/features/Search/hooks/useSearchIndex.js +0 -33
- package/dist/features/ask-agent-button/AskAgentButton.vue.js +0 -7
- package/dist/features/ask-agent-button/AskAgentButton.vue2.js +0 -47
- package/dist/features/developer-tools/DeveloperTools.vue.js +0 -60
- package/dist/features/developer-tools/DeveloperTools.vue2.js +0 -4
- package/dist/features/developer-tools/components/ApiReferenceToolbarBlurb.vue.js +0 -13
- package/dist/features/developer-tools/components/ApiReferenceToolbarConfigLayout.vue.js +0 -33
- package/dist/features/developer-tools/components/ApiReferenceToolbarConfigLayout.vue2.js +0 -4
- package/dist/features/developer-tools/components/ApiReferenceToolbarConfigLayoutOptions.vue.js +0 -138
- package/dist/features/developer-tools/components/ApiReferenceToolbarConfigLayoutOptions.vue2.js +0 -4
- package/dist/features/developer-tools/components/ApiReferenceToolbarConfigTheme.vue.js +0 -66
- package/dist/features/developer-tools/components/ApiReferenceToolbarConfigTheme.vue2.js +0 -4
- package/dist/features/developer-tools/components/ApiReferenceToolbarPopover.vue.js +0 -54
- package/dist/features/developer-tools/components/ApiReferenceToolbarPopover.vue2.js +0 -4
- package/dist/features/developer-tools/components/ApiReferenceToolbarRegisterButton.vue.js +0 -71
- package/dist/features/developer-tools/components/ApiReferenceToolbarRegisterButton.vue2.js +0 -4
- package/dist/features/developer-tools/components/ApiReferenceToolbarShareRegister.vue.js +0 -63
- package/dist/features/developer-tools/components/ApiReferenceToolbarShareRegister.vue2.js +0 -4
- package/dist/features/developer-tools/components/ApiReferenceToolbarShareTemporary.vue.js +0 -73
- package/dist/features/developer-tools/components/ApiReferenceToolbarShareTemporary.vue2.js +0 -4
- package/dist/features/developer-tools/components/ApiReferenceToolbarTitle.vue.js +0 -57
- package/dist/features/developer-tools/components/ApiReferenceToolbarTitle.vue2.js +0 -4
- package/dist/features/developer-tools/components/DeployApiReference.vue.js +0 -35
- package/dist/features/developer-tools/components/DeployApiReference.vue2.js +0 -4
- package/dist/features/developer-tools/components/ModifyConfiguration.vue.js +0 -103
- package/dist/features/developer-tools/components/ModifyConfiguration.vue2.js +0 -4
- package/dist/features/developer-tools/components/ShareApiReference.vue.js +0 -35
- package/dist/features/developer-tools/components/ShareApiReference.vue2.js +0 -4
- package/dist/features/example-responses/ExampleResponse.vue.js +0 -7
- package/dist/features/example-responses/ExampleResponse.vue2.js +0 -61
- package/dist/features/example-responses/ExampleResponseTab.vue.js +0 -7
- package/dist/features/example-responses/ExampleResponseTab.vue2.js +0 -25
- package/dist/features/example-responses/ExampleResponseTabList.vue.js +0 -7
- package/dist/features/example-responses/ExampleResponseTabList.vue2.js +0 -37
- package/dist/features/example-responses/ExampleResponses.vue.js +0 -7
- package/dist/features/example-responses/ExampleResponses.vue2.js +0 -181
- package/dist/features/example-responses/ExampleSchema.vue.js +0 -42
- package/dist/features/example-responses/ExampleSchema.vue2.js +0 -4
- package/dist/features/example-responses/has-response-content.js +0 -28
- package/dist/features/external-docs/ExternalDocs.vue.js +0 -42
- package/dist/features/external-docs/ExternalDocs.vue2.js +0 -4
- package/dist/features/info-object/Contact.vue.js +0 -46
- package/dist/features/info-object/Contact.vue2.js +0 -4
- package/dist/features/info-object/License.vue.js +0 -40
- package/dist/features/info-object/License.vue2.js +0 -4
- package/dist/features/info-object/TermsOfService.vue.js +0 -34
- package/dist/features/info-object/TermsOfService.vue2.js +0 -4
- package/dist/features/multiple-documents/DocumentSelector.vue.js +0 -54
- package/dist/features/multiple-documents/DocumentSelector.vue2.js +0 -4
- package/dist/features/specification-extension/SpecificationExtension.vue.js +0 -4
- package/dist/features/specification-extension/SpecificationExtension.vue2.js +0 -52
- package/dist/features/specification-extension/helpers.js +0 -9
- package/dist/features/test-request-button/TestRequestButton.vue.js +0 -7
- package/dist/features/test-request-button/TestRequestButton.vue2.js +0 -46
- package/dist/features/x-badges/XBadges.vue.js +0 -35
- package/dist/features/x-badges/XBadges.vue2.js +0 -4
- package/dist/helpers/color-mode.js +0 -9
- package/dist/helpers/download.js +0 -45
- package/dist/helpers/id-routing.js +0 -63
- package/dist/helpers/lazy-bus.js +0 -160
- package/dist/helpers/load-from-perssistance.js +0 -17
- package/dist/helpers/map-config-plugins.js +0 -27
- package/dist/helpers/map-config-to-workspace-store.js +0 -45
- package/dist/helpers/normalize-configurations.js +0 -69
- package/dist/helpers/openapi.js +0 -135
- package/dist/helpers/storage.js +0 -47
- package/dist/helpers/upload-temp-document.js +0 -24
- package/dist/hooks/use-agent.js +0 -42
- package/dist/hooks/use-intersection.js +0 -32
- package/dist/plugins/hooks/usePluginManager.js +0 -14
- package/dist/plugins/persistance-plugin.js +0 -48
- package/dist/plugins/plugin-manager.js +0 -39
- package/dist/standalone/lib/html-api.js +0 -81
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default as SearchButton } from './components/SearchButton.vue
|
|
2
|
-
export { default as SearchModal } from './components/SearchModal.vue
|
|
1
|
+
export { default as SearchButton } from './components/SearchButton.vue';
|
|
2
|
+
export { default as SearchModal } from './components/SearchModal.vue';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { TraversedEntry } from '@scalar/workspace-store/schemas/navigation';
|
|
2
|
-
import type { ParameterMap } from '
|
|
2
|
+
import type { ParameterMap } from '@/helpers/openapi';
|
|
3
3
|
export type EntryType = 'operation' | 'webhook' | 'model' | 'heading' | 'tag';
|
|
4
4
|
export type FuseData = {
|
|
5
5
|
type: EntryType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AskAgentButton.vue.d.ts","sourceRoot":"","sources":["../../../src/features/ask-agent-button/AskAgentButton.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AskAgentButton.vue.d.ts","sourceRoot":"","sources":["../../../src/features/ask-agent-button/AskAgentButton.vue"],"names":[],"mappings":"AAoQA,QAAA,MAAM,YAAY,+QAChB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as DeveloperTools } from './DeveloperTools.vue
|
|
1
|
+
export { default as DeveloperTools } from './DeveloperTools.vue';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as ExampleResponses } from './ExampleResponses.vue
|
|
1
|
+
export { default as ExampleResponses } from './ExampleResponses.vue';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as ExternalDocs } from './ExternalDocs.vue
|
|
1
|
+
export { default as ExternalDocs } from './ExternalDocs.vue';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/features/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { default as DocumentSelector } from './multiple-documents/DocumentSelector.vue
|
|
1
|
+
export { default as DocumentSelector } from './multiple-documents/DocumentSelector.vue';
|
|
2
2
|
export { Operation } from './Operation';
|
|
3
|
-
export { default as SearchButton } from './Search/components/SearchButton.vue
|
|
3
|
+
export { default as SearchButton } from './Search/components/SearchButton.vue';
|
|
4
4
|
export { getXKeysFromObject } from './specification-extension';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/features/index.js
CHANGED
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
export {
|
|
6
|
-
default2 as DocumentSelector,
|
|
7
|
-
default4 as Operation,
|
|
8
|
-
default3 as SearchButton,
|
|
9
|
-
getXKeysFromObject
|
|
10
|
-
};
|
|
1
|
+
import "../ExternalDocs-phu7GxpZ.js";
|
|
2
|
+
import { o as getXKeysFromObject, t as Operation_default } from "../Operation-CixLVfKd.js";
|
|
3
|
+
import { i as DocumentSelector_default, t as SearchButton_default } from "../SearchButton-xzhIpMCZ.js";
|
|
4
|
+
export { DocumentSelector_default as DocumentSelector, Operation_default as Operation, SearchButton_default as SearchButton, getXKeysFromObject };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { default as Contact } from './Contact.vue
|
|
2
|
-
export { default as License } from './License.vue
|
|
3
|
-
export { default as TermsOfService } from './TermsOfService.vue
|
|
1
|
+
export { default as Contact } from './Contact.vue';
|
|
2
|
+
export { default as License } from './License.vue';
|
|
3
|
+
export { default as TermsOfService } from './TermsOfService.vue';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { getXKeysFromObject } from './helpers
|
|
2
|
-
export { default as SpecificationExtension } from './SpecificationExtension.vue
|
|
1
|
+
export { getXKeysFromObject } from './helpers';
|
|
2
|
+
export { default as SpecificationExtension } from './SpecificationExtension.vue';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as TestRequestButton } from './TestRequestButton.vue
|
|
1
|
+
export { default as TestRequestButton } from './TestRequestButton.vue';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as XBadges } from './XBadges.vue
|
|
1
|
+
export { default as XBadges } from './XBadges.vue';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Trigger the download of the OpenAPI document
|
|
3
3
|
*/
|
|
4
|
-
export declare function downloadDocument(content: string, filename?: string, format?: 'json' | 'yaml'): void
|
|
4
|
+
export declare function downloadDocument(content: string, filename?: string, format?: 'json' | 'yaml'): Promise<void>;
|
|
5
5
|
//# sourceMappingURL=download.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"download.d.ts","sourceRoot":"","sources":["../../src/helpers/download.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"download.d.ts","sourceRoot":"","sources":["../../src/helpers/download.ts"],"names":[],"mappings":"AAsEA;;GAEG;AACH,wBAAsB,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,iBAuBlG"}
|
|
@@ -3,6 +3,10 @@ export declare const sanitizeBasePath: (basePath: string) => string;
|
|
|
3
3
|
export declare const getIdFromHash: (location: string | URL, slugPrefix: string | undefined) => string;
|
|
4
4
|
/** Extracts an element id from the path when using path routing */
|
|
5
5
|
export declare const getIdFromPath: (location: string | URL, basePath: string, slugPrefix: string | undefined) => string;
|
|
6
|
+
/** Extracts an element id from a hash-prefixed basePath */
|
|
7
|
+
export declare const getIdFromHashBasePath: (location: string | URL, basePath: string, slugPrefix: string | undefined) => string;
|
|
8
|
+
/** Determines whether a URL matches the provided basePath. */
|
|
9
|
+
export declare const matchesBasePath: (location: string | URL, basePath: string) => boolean;
|
|
6
10
|
/**
|
|
7
11
|
* Extracts a navigation id from a URL based on the routing type
|
|
8
12
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"id-routing.d.ts","sourceRoot":"","sources":["../../src/helpers/id-routing.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,GAAI,UAAU,MAAM,WAEhD,CAAA;
|
|
1
|
+
{"version":3,"file":"id-routing.d.ts","sourceRoot":"","sources":["../../src/helpers/id-routing.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,GAAI,UAAU,MAAM,WAEhD,CAAA;AAwBD,mEAAmE;AACnE,eAAO,MAAM,aAAa,GAAI,UAAU,MAAM,GAAG,GAAG,EAAE,YAAY,MAAM,GAAG,SAAS,WAMnF,CAAA;AACD,mEAAmE;AACnE,eAAO,MAAM,aAAa,GAAI,UAAU,MAAM,GAAG,GAAG,EAAE,UAAU,MAAM,EAAE,YAAY,MAAM,GAAG,SAAS,WAqBrG,CAAA;AAED,2DAA2D;AAC3D,eAAO,MAAM,qBAAqB,GAAI,UAAU,MAAM,GAAG,GAAG,EAAE,UAAU,MAAM,EAAE,YAAY,MAAM,GAAG,SAAS,WAW7G,CAAA;AAED,8DAA8D;AAC9D,eAAO,MAAM,eAAe,GAAI,UAAU,MAAM,GAAG,GAAG,EAAE,UAAU,MAAM,YAiBvE,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,GAAI,KAAK,MAAM,GAAG,GAAG,EAAE,UAAU,MAAM,GAAG,SAAS,EAAE,YAAY,MAAM,GAAG,SAAS,WAQ3G,CAAA;AAmBD;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,GAAI,KAAK,MAAM,EAAE,UAAU,MAAM,GAAG,SAAS,EAAE,iBAAiB,OAAO,oBAsBhG,CAAA;AAED,qEAAqE;AACrE,eAAO,MAAM,qBAAqB,GAAI,IAAI,MAAM,KAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAajF,CAAA"}
|
package/dist/helpers/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { getSystemModePreference } from './color-mode
|
|
2
|
-
export { downloadDocument } from './download
|
|
3
|
-
export { getIdFromUrl, makeUrlFromId } from './id-routing
|
|
4
|
-
export { addToPriorityQueue, blockIntersection, firstLazyLoadComplete, intersectionEnabled, scrollToLazy, } from './lazy-bus
|
|
5
|
-
export { loadAuthFromStorage, loadClientFromStorage } from './load-from-perssistance
|
|
6
|
-
export { mapConfigPlugins } from './map-config-plugins
|
|
7
|
-
export { mapConfigToWorkspaceStore } from './map-config-to-workspace-store
|
|
8
|
-
export { type NormalizedConfiguration, normalizeConfigurations } from './normalize-configurations
|
|
1
|
+
export { getSystemModePreference } from './color-mode';
|
|
2
|
+
export { downloadDocument } from './download';
|
|
3
|
+
export { getIdFromUrl, makeUrlFromId } from './id-routing';
|
|
4
|
+
export { addToPriorityQueue, blockIntersection, firstLazyLoadComplete, intersectionEnabled, scrollToLazy, } from './lazy-bus';
|
|
5
|
+
export { loadAuthFromStorage, loadClientFromStorage } from './load-from-perssistance';
|
|
6
|
+
export { mapConfigPlugins } from './map-config-plugins';
|
|
7
|
+
export { mapConfigToWorkspaceStore } from './map-config-to-workspace-store';
|
|
8
|
+
export { type NormalizedConfiguration, normalizeConfigurations } from './normalize-configurations';
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/helpers/index.js
CHANGED
|
@@ -1,24 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { downloadDocument } from "
|
|
3
|
-
|
|
4
|
-
import { addToPriorityQueue, blockIntersection, firstLazyLoadComplete, intersectionEnabled, scrollToLazy } from "./lazy-bus.js";
|
|
5
|
-
import { loadAuthFromStorage, loadClientFromStorage } from "./load-from-perssistance.js";
|
|
6
|
-
import { mapConfigPlugins } from "./map-config-plugins.js";
|
|
7
|
-
import { mapConfigToWorkspaceStore } from "./map-config-to-workspace-store.js";
|
|
8
|
-
import { normalizeConfigurations } from "./normalize-configurations.js";
|
|
9
|
-
export {
|
|
10
|
-
addToPriorityQueue,
|
|
11
|
-
blockIntersection,
|
|
12
|
-
downloadDocument,
|
|
13
|
-
firstLazyLoadComplete,
|
|
14
|
-
getIdFromUrl,
|
|
15
|
-
getSystemModePreference,
|
|
16
|
-
intersectionEnabled,
|
|
17
|
-
loadAuthFromStorage,
|
|
18
|
-
loadClientFromStorage,
|
|
19
|
-
makeUrlFromId,
|
|
20
|
-
mapConfigPlugins,
|
|
21
|
-
mapConfigToWorkspaceStore,
|
|
22
|
-
normalizeConfigurations,
|
|
23
|
-
scrollToLazy
|
|
24
|
-
};
|
|
1
|
+
import { a as intersectionEnabled, c as scrollToLazy, d as getIdFromUrl, f as makeUrlFromId, n as blockIntersection, r as firstLazyLoadComplete, t as addToPriorityQueue } from "../lazy-bus-CV8Ox5hD.js";
|
|
2
|
+
import { a as loadClientFromStorage, i as loadAuthFromStorage, n as mapConfigToWorkspaceStore, o as downloadDocument, r as mapConfigPlugins, s as getSystemModePreference, t as normalizeConfigurations } from "../normalize-configurations-DcVpOEjD.js";
|
|
3
|
+
export { addToPriorityQueue, blockIntersection, downloadDocument, firstLazyLoadComplete, getIdFromUrl, getSystemModePreference, intersectionEnabled, loadAuthFromStorage, loadClientFromStorage, makeUrlFromId, mapConfigPlugins, mapConfigToWorkspaceStore, normalizeConfigurations, scrollToLazy };
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
/** Tracks when the initial load is complete.
|
|
2
|
-
* We will have placeholder content to allow the active item to be scrolled to the top while
|
|
3
|
-
* the rest of the content is loaded.
|
|
4
|
-
*/
|
|
1
|
+
/** Tracks when the initial load is complete. */
|
|
5
2
|
export declare const firstLazyLoadComplete: import("vue").Ref<boolean, boolean>;
|
|
3
|
+
export declare const getLazyPlaceholderHeight: (id: string) => number | undefined;
|
|
4
|
+
export declare const setLazyPlaceholderHeight: (id: string, height: number) => void;
|
|
6
5
|
type UnblockFn = () => void;
|
|
7
6
|
/**
|
|
8
|
-
*
|
|
9
|
-
*
|
|
7
|
+
* Blocks intersection until the returned unblock callback is run.
|
|
8
|
+
* Prevents scroll jump while we render new lazy content.
|
|
10
9
|
*/
|
|
11
10
|
export declare const blockIntersection: () => UnblockFn;
|
|
12
11
|
/** If there are any pending blocking operations we disable intersection */
|
|
@@ -17,26 +16,27 @@ export declare const intersectionEnabled: import("vue").ComputedRef<boolean>;
|
|
|
17
16
|
* but processQueue will skip actual re-rendering for items already ready.
|
|
18
17
|
*/
|
|
19
18
|
export declare const addToPriorityQueue: (id: string | undefined) => void;
|
|
19
|
+
/**
|
|
20
|
+
* Request an item to be rendered (e.g. when it re-enters the overscan zone).
|
|
21
|
+
*/
|
|
22
|
+
export declare const requestLazyRender: (id: string | undefined, priority?: boolean) => void;
|
|
23
|
+
/**
|
|
24
|
+
* Schedules a single run of the lazy bus so that documents with no Lazy components
|
|
25
|
+
* (e.g. no operations, tags, or models) still get firstLazyLoadComplete set and the
|
|
26
|
+
* full-viewport placeholder can be hidden. Call from content root on mount.
|
|
27
|
+
*/
|
|
28
|
+
export declare const scheduleInitialLoadComplete: () => void;
|
|
20
29
|
/**
|
|
21
30
|
* Tracks the lazy loading state of an element.
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
* @param id - The id of the element to track
|
|
25
|
-
* @returns An object with the isReady property
|
|
31
|
+
* Use isReady (or expanded) to decide whether to render the slot or show a placeholder.
|
|
32
|
+
* The element is only added to the queue when it enters the viewport overscan (see Lazy.vue).
|
|
26
33
|
*/
|
|
27
34
|
export declare function useLazyBus(id: string): {
|
|
28
35
|
isReady: import("vue").ComputedRef<boolean>;
|
|
29
36
|
};
|
|
30
37
|
/**
|
|
31
|
-
* Scroll to
|
|
32
|
-
*
|
|
33
|
-
* Will ensure that all parents are expanded and set to priority load before scrolling
|
|
34
|
-
*
|
|
35
|
-
* Similar to scrollToId BUT in the case of a section not being open,
|
|
36
|
-
* it uses the lazyBus to ensure the section is open before scrolling to it
|
|
37
|
-
*
|
|
38
|
-
* Requires handlers to expand and lookup navigation items so that we can
|
|
39
|
-
* traverse the parent structure and load all required items
|
|
38
|
+
* Scroll to a possibly lazy-loaded element. Expands parents and adds target (and
|
|
39
|
+
* parents) to the priority queue, then scrolls after Vue has flushed.
|
|
40
40
|
*/
|
|
41
41
|
export declare const scrollToLazy: (id: string, setExpanded: (id: string, value: boolean) => void, getEntryById: (id: string) => {
|
|
42
42
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lazy-bus.d.ts","sourceRoot":"","sources":["../../src/helpers/lazy-bus.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lazy-bus.d.ts","sourceRoot":"","sources":["../../src/helpers/lazy-bus.ts"],"names":[],"mappings":"AAuBA,gDAAgD;AAChD,eAAO,MAAM,qBAAqB,qCAAa,CAAA;AAU/C,eAAO,MAAM,wBAAwB,GAAI,IAAI,MAAM,KAAG,MAAM,GAAG,SAA2C,CAAA;AAE1G,eAAO,MAAM,wBAAwB,GAAI,IAAI,MAAM,EAAE,QAAQ,MAAM,KAAG,IAKrE,CAAA;AASD,KAAK,SAAS,GAAG,MAAM,IAAI,CAAA;AAE3B;;;GAGG;AACH,eAAO,MAAM,iBAAiB,QAAO,SAMpC,CAAA;AAED,2EAA2E;AAC3E,eAAO,MAAM,mBAAmB,oCAAkD,CAAA;AAsFlF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAAI,IAAI,MAAM,GAAG,SAAS,SAIxD,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,iBAAiB,GAAI,IAAI,MAAM,GAAG,SAAS,EAAE,kBAAgB,KAAG,IAY5E,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,QAAO,IAM9C,CAAA;AAYD;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,EAAE,EAAE,MAAM;;EAQpC;AAED;;;GAGG;AACH,eAAO,MAAM,YAAY,GACvB,IAAI,MAAM,EACV,aAAa,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,EACjD,cAAc,CAAC,EAAE,EAAE,MAAM,KAAK;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;IAAC,QAAQ,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;CAAE,GAAG,SAAS,SAwD/G,CAAA"}
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { AGENT_CONTEXT_SYMBOL, useAgent, useAgentContext, } from './use-agent
|
|
2
|
-
export { useIntersection } from './use-intersection
|
|
1
|
+
export { AGENT_CONTEXT_SYMBOL, useAgent, useAgentContext, } from './use-agent';
|
|
2
|
+
export { useIntersection } from './use-intersection';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/hooks/index.js
CHANGED
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useIntersection } from "
|
|
3
|
-
export {
|
|
4
|
-
AGENT_CONTEXT_SYMBOL,
|
|
5
|
-
useAgent,
|
|
6
|
-
useAgentContext,
|
|
7
|
-
useIntersection
|
|
8
|
-
};
|
|
1
|
+
import { n as useAgent, r as useAgentContext, t as AGENT_CONTEXT_SYMBOL } from "../use-agent-Bnm1de0n.js";
|
|
2
|
+
import { t as useIntersection } from "../use-intersection-8QqPi2O-.js";
|
|
3
|
+
export { AGENT_CONTEXT_SYMBOL, useAgent, useAgentContext, useIntersection };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { AnyApiReferenceConfiguration } from '@scalar/types/api-reference';
|
|
2
2
|
export type { ApiReferenceConfiguration } from '@scalar/types/api-reference';
|
|
3
|
-
export { default as ApiReference } from '
|
|
4
|
-
export { default as GettingStarted } from '
|
|
5
|
-
export { SearchButton, SearchModal } from '
|
|
6
|
-
export { createEmptySpecification } from '
|
|
7
|
-
export { createApiReference } from '
|
|
3
|
+
export { default as ApiReference } from '@/components/ApiReference.vue';
|
|
4
|
+
export { default as GettingStarted } from '@/components/GettingStarted.vue';
|
|
5
|
+
export { SearchButton, SearchModal } from '@/features/Search';
|
|
6
|
+
export { createEmptySpecification } from '@/helpers/openapi';
|
|
7
|
+
export { createApiReference } from '@/standalone/lib/html-api';
|
|
8
8
|
export type ReferenceProps = {
|
|
9
9
|
configuration?: AnyApiReferenceConfiguration;
|
|
10
10
|
};
|
package/dist/index.js
CHANGED
|
@@ -1,14 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
export {
|
|
8
|
-
default2 as ApiReference,
|
|
9
|
-
default3 as GettingStarted,
|
|
10
|
-
default4 as SearchButton,
|
|
11
|
-
default5 as SearchModal,
|
|
12
|
-
createApiReference,
|
|
13
|
-
createEmptySpecification
|
|
14
|
-
};
|
|
1
|
+
import { n as GettingStarted_default, r as ApiReference_default, t as createApiReference } from "./src-DqcYVBWI.js";
|
|
2
|
+
import "./ExternalDocs-phu7GxpZ.js";
|
|
3
|
+
import "./MobileHeader-B71jYJdT.js";
|
|
4
|
+
import "./ServerSelector-5y29y2BJ.js";
|
|
5
|
+
import "./Operation-CixLVfKd.js";
|
|
6
|
+
import { n as SearchModal_default, r as createEmptySpecification, t as SearchButton_default } from "./SearchButton-xzhIpMCZ.js";
|
|
7
|
+
export { ApiReference_default as ApiReference, GettingStarted_default as GettingStarted, SearchButton_default as SearchButton, SearchModal_default as SearchModal, createApiReference, createEmptySpecification };
|
|
@@ -0,0 +1,333 @@
|
|
|
1
|
+
import { computed, nextTick, onBeforeUnmount, reactive, ref } from "vue";
|
|
2
|
+
import { watchDebounced } from "@vueuse/core";
|
|
3
|
+
import { nanoid } from "nanoid";
|
|
4
|
+
//#region src/helpers/id-routing.ts
|
|
5
|
+
var sanitizeBasePath = (basePath) => {
|
|
6
|
+
return basePath.replace(/^\/+|\/+$/g, "");
|
|
7
|
+
};
|
|
8
|
+
var isHashBasePath = (basePath) => basePath.startsWith("#");
|
|
9
|
+
var sanitizeHashBasePath = (basePath) => {
|
|
10
|
+
return basePath.replace(/^#+/, "").replace(/\/+$/g, "");
|
|
11
|
+
};
|
|
12
|
+
var applySlugPrefix = (base, slugPrefix) => {
|
|
13
|
+
return slugPrefix ? `${slugPrefix}${base ? "/" : ""}${base}` : base;
|
|
14
|
+
};
|
|
15
|
+
var stripBasePathPrefix = (value, basePath) => {
|
|
16
|
+
if (value === basePath) return "";
|
|
17
|
+
if (value.startsWith(`${basePath}/`)) return value.slice(basePath.length + 1);
|
|
18
|
+
return null;
|
|
19
|
+
};
|
|
20
|
+
/** Extracts an element id from the hash when using hash routing */
|
|
21
|
+
var getIdFromHash = (location, slugPrefix) => {
|
|
22
|
+
const url = typeof location === "string" ? new URL(location) : location;
|
|
23
|
+
return applySlugPrefix(decodeURIComponent(url.hash.slice(1)), slugPrefix);
|
|
24
|
+
};
|
|
25
|
+
/** Extracts an element id from the path when using path routing */
|
|
26
|
+
var getIdFromPath = (location, basePath, slugPrefix) => {
|
|
27
|
+
const url = typeof location === "string" ? new URL(location) : location;
|
|
28
|
+
const sanitized = sanitizeBasePath(basePath);
|
|
29
|
+
const basePathWithSlash = sanitized ? `/${sanitized.split("/").map((segment) => encodeURIComponent(segment)).join("/")}` : "";
|
|
30
|
+
if (url.pathname.startsWith(basePathWithSlash)) {
|
|
31
|
+
const remainder = url.pathname.slice(basePathWithSlash.length);
|
|
32
|
+
return applySlugPrefix(decodeURIComponent(remainder.startsWith("/") ? remainder.slice(1) : remainder), slugPrefix);
|
|
33
|
+
}
|
|
34
|
+
return slugPrefix ?? "";
|
|
35
|
+
};
|
|
36
|
+
/** Extracts an element id from a hash-prefixed basePath */
|
|
37
|
+
var getIdFromHashBasePath = (location, basePath, slugPrefix) => {
|
|
38
|
+
const url = typeof location === "string" ? new URL(location) : location;
|
|
39
|
+
const remainder = stripBasePathPrefix(decodeURIComponent(url.hash.slice(1)), sanitizeHashBasePath(basePath));
|
|
40
|
+
if (remainder !== null) return applySlugPrefix(remainder, slugPrefix);
|
|
41
|
+
return slugPrefix ?? "";
|
|
42
|
+
};
|
|
43
|
+
/** Determines whether a URL matches the provided basePath. */
|
|
44
|
+
var matchesBasePath = (location, basePath) => {
|
|
45
|
+
const url = typeof location === "string" ? new URL(location) : location;
|
|
46
|
+
if (isHashBasePath(basePath)) {
|
|
47
|
+
const hash = decodeURIComponent(url.hash);
|
|
48
|
+
return hash === basePath || hash.startsWith(`${basePath}/`);
|
|
49
|
+
}
|
|
50
|
+
const sanitized = sanitizeBasePath(basePath);
|
|
51
|
+
const basePathWithSlash = sanitized ? `/${sanitized.split("/").map((segment) => encodeURIComponent(segment)).join("/")}` : "";
|
|
52
|
+
return url.pathname === basePathWithSlash || url.pathname.startsWith(`${basePathWithSlash}/`);
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* Extracts a navigation id from a URL based on the routing type
|
|
56
|
+
*
|
|
57
|
+
* @param url - The URL to extract the id from
|
|
58
|
+
* @param basePath - The base path used in path routing
|
|
59
|
+
* @param slugPrefix - If the document slug is not expected in the URL then we must prefix it
|
|
60
|
+
*/
|
|
61
|
+
var getIdFromUrl = (url, basePath, slugPrefix) => {
|
|
62
|
+
if (typeof basePath !== "string") return getIdFromHash(url, slugPrefix);
|
|
63
|
+
return isHashBasePath(basePath) ? getIdFromHashBasePath(url, basePath, slugPrefix) : getIdFromPath(url, basePath, slugPrefix);
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* Strips the first segment from an id and preserves trailing slashes
|
|
67
|
+
* Used in single-document mode where the document slug is not needed in the URL
|
|
68
|
+
*
|
|
69
|
+
* @param id - The full id to process
|
|
70
|
+
* @returns The id with the first segment removed, preserving trailing slash if present
|
|
71
|
+
*/
|
|
72
|
+
var stripFirstSegment = (id) => {
|
|
73
|
+
const hasTrailingSlash = id.endsWith("/");
|
|
74
|
+
const result = id.split("/").filter(Boolean).slice(1).join("/");
|
|
75
|
+
return hasTrailingSlash && result ? `${result}/` : result;
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* Generate a new URL and applies the ID to the path or hash
|
|
79
|
+
* depending on the type of routing used
|
|
80
|
+
*
|
|
81
|
+
* @param id - The id to apply to the URL
|
|
82
|
+
* @param basePath - The base path used in path routing
|
|
83
|
+
* @param isMultiDocument - Whether the document is multi-document or single-document. Single-document documents will strip the document slug from the id
|
|
84
|
+
*/
|
|
85
|
+
var makeUrlFromId = (_id, basePath, isMultiDocument) => {
|
|
86
|
+
if (typeof window === "undefined") return;
|
|
87
|
+
/** When there is only 1 document we don't need to include the document name in the URL */
|
|
88
|
+
const id = isMultiDocument ? _id : stripFirstSegment(_id);
|
|
89
|
+
const url = new URL(window.location.href);
|
|
90
|
+
if (typeof basePath === "string") if (isHashBasePath(basePath)) url.hash = [sanitizeHashBasePath(basePath), id].filter(Boolean).join("/");
|
|
91
|
+
else url.pathname = `${sanitizeBasePath(basePath)}/${id}`;
|
|
92
|
+
else url.hash = id;
|
|
93
|
+
return url;
|
|
94
|
+
};
|
|
95
|
+
/** Extracts the schema parameters from the id if they are present */
|
|
96
|
+
var getSchemaParamsFromId = (id) => {
|
|
97
|
+
const matcher = id.match(/(.*)(\.body\.|\.path\.|\.query\.|\.header\.)(.*)/);
|
|
98
|
+
if (matcher && typeof matcher[1] === "string" && typeof matcher[2] === "string") return {
|
|
99
|
+
rawId: matcher[1],
|
|
100
|
+
params: matcher[2].slice(1) + matcher[3]
|
|
101
|
+
};
|
|
102
|
+
return {
|
|
103
|
+
rawId: id,
|
|
104
|
+
params: ""
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
//#endregion
|
|
108
|
+
//#region src/helpers/lazy-bus.ts
|
|
109
|
+
/**
|
|
110
|
+
* List of items that are in the priority queue and will be rendered first (e.g. scroll target).
|
|
111
|
+
*/
|
|
112
|
+
var priorityQueue = reactive(/* @__PURE__ */ new Set());
|
|
113
|
+
/** List of items that are pending to be loaded (in viewport overscan). */
|
|
114
|
+
var pendingQueue = reactive(/* @__PURE__ */ new Set());
|
|
115
|
+
/** List of items that are already loaded and stay mounted (no eviction). */
|
|
116
|
+
var readyQueue = reactive(/* @__PURE__ */ new Set());
|
|
117
|
+
/**
|
|
118
|
+
* Flag to indicate if the lazy bus is currently running
|
|
119
|
+
* Blocks ID changes while running
|
|
120
|
+
*/
|
|
121
|
+
var isRunning = ref(false);
|
|
122
|
+
/** How long tryScroll keeps retrying to find the element (ms). */
|
|
123
|
+
var SCROLL_RETRY_MS = 3e3;
|
|
124
|
+
/** Tracks when the initial load is complete. */
|
|
125
|
+
var firstLazyLoadComplete = ref(false);
|
|
126
|
+
/** List of unique identifiers that are blocking intersection */
|
|
127
|
+
var intersectionBlockers = reactive(/* @__PURE__ */ new Set());
|
|
128
|
+
var onRenderComplete = /* @__PURE__ */ new Set();
|
|
129
|
+
/** Cached content heights so placeholders can match when not rendered. */
|
|
130
|
+
var lazyPlaceholderHeights = reactive(/* @__PURE__ */ new Map());
|
|
131
|
+
var getLazyPlaceholderHeight = (id) => lazyPlaceholderHeights.get(id);
|
|
132
|
+
var setLazyPlaceholderHeight = (id, height) => {
|
|
133
|
+
if (!Number.isFinite(height) || height <= 0) return;
|
|
134
|
+
lazyPlaceholderHeights.set(id, Math.round(height));
|
|
135
|
+
};
|
|
136
|
+
/** Adds a one time callback to be executed when the lazy bus has finished loading */
|
|
137
|
+
var addLazyCompleteCallback = (callback) => {
|
|
138
|
+
if (callback) onRenderComplete.add(callback);
|
|
139
|
+
};
|
|
140
|
+
/**
|
|
141
|
+
* Blocks intersection until the returned unblock callback is run.
|
|
142
|
+
* Prevents scroll jump while we render new lazy content.
|
|
143
|
+
*/
|
|
144
|
+
var blockIntersection = () => {
|
|
145
|
+
const blockId = nanoid();
|
|
146
|
+
intersectionBlockers.add(blockId);
|
|
147
|
+
/** Unblock uses a small delay to ensure the scroll is complete before enabling intersection */
|
|
148
|
+
return () => setTimeout(() => intersectionBlockers.delete(blockId), 100);
|
|
149
|
+
};
|
|
150
|
+
/** If there are any pending blocking operations we disable intersection */
|
|
151
|
+
var intersectionEnabled = computed(() => intersectionBlockers.size === 0);
|
|
152
|
+
/**
|
|
153
|
+
* Processes the full queue: priority first, then pending. Blocks intersection while
|
|
154
|
+
* rendering so the viewport does not jump. No eviction — items stay in readyQueue.
|
|
155
|
+
*/
|
|
156
|
+
var runLazyBus = () => {
|
|
157
|
+
if (typeof window === "undefined") return;
|
|
158
|
+
if (isRunning.value) return;
|
|
159
|
+
isRunning.value = true;
|
|
160
|
+
/**
|
|
161
|
+
* Sets all the pending elements into the ready queue
|
|
162
|
+
* After waiting for Vue to update the DOM we execute the callbacks and unblock intersection
|
|
163
|
+
*/
|
|
164
|
+
const processQueue = async () => {
|
|
165
|
+
const priorityIds = [...priorityQueue];
|
|
166
|
+
const pendingIds = [...pendingQueue];
|
|
167
|
+
if (priorityIds.length === 0 && pendingIds.length === 0) {
|
|
168
|
+
onRenderComplete.forEach((fn) => fn());
|
|
169
|
+
onRenderComplete.clear();
|
|
170
|
+
isRunning.value = false;
|
|
171
|
+
firstLazyLoadComplete.value = true;
|
|
172
|
+
return;
|
|
173
|
+
}
|
|
174
|
+
for (const id of priorityIds) {
|
|
175
|
+
readyQueue.add(id);
|
|
176
|
+
priorityQueue.delete(id);
|
|
177
|
+
}
|
|
178
|
+
for (const id of pendingIds) {
|
|
179
|
+
readyQueue.add(id);
|
|
180
|
+
pendingQueue.delete(id);
|
|
181
|
+
}
|
|
182
|
+
await nextTick();
|
|
183
|
+
onRenderComplete.forEach((fn) => fn());
|
|
184
|
+
onRenderComplete.clear();
|
|
185
|
+
isRunning.value = false;
|
|
186
|
+
firstLazyLoadComplete.value = true;
|
|
187
|
+
};
|
|
188
|
+
if (window.requestIdleCallback) window.requestIdleCallback(processQueue, { timeout: 1500 });
|
|
189
|
+
else nextTick(processQueue);
|
|
190
|
+
};
|
|
191
|
+
/**
|
|
192
|
+
* Run the lazy bus when the queue changes and is not currently running
|
|
193
|
+
* Debounce so that multiple changes to the queue are batched together
|
|
194
|
+
*
|
|
195
|
+
* We must run when the priority queue changes because we rely on finish callbacks
|
|
196
|
+
* anytime we request potentially lazy elements. If we don't run when the priority queue changes
|
|
197
|
+
* we may not have a finish callback even though the element is set to load.
|
|
198
|
+
*/
|
|
199
|
+
watchDebounced([
|
|
200
|
+
() => pendingQueue.size,
|
|
201
|
+
() => priorityQueue.size,
|
|
202
|
+
() => isRunning.value
|
|
203
|
+
], () => {
|
|
204
|
+
if ((pendingQueue.size > 0 || priorityQueue.size > 0) && !isRunning.value) runLazyBus();
|
|
205
|
+
}, {
|
|
206
|
+
debounce: 300,
|
|
207
|
+
maxWait: 1500
|
|
208
|
+
});
|
|
209
|
+
/**
|
|
210
|
+
* We only make elements pending if they are not already in the priority or ready queue
|
|
211
|
+
*/
|
|
212
|
+
var addToPendingQueue = (id) => {
|
|
213
|
+
if (id && !readyQueue.has(id) && !priorityQueue.has(id)) pendingQueue.add(id);
|
|
214
|
+
};
|
|
215
|
+
/**
|
|
216
|
+
* Add elements to the priority queue for immediate rendering.
|
|
217
|
+
* We allow adding items already in readyQueue so that callbacks are still triggered,
|
|
218
|
+
* but processQueue will skip actual re-rendering for items already ready.
|
|
219
|
+
*/
|
|
220
|
+
var addToPriorityQueue = (id) => {
|
|
221
|
+
if (id && !priorityQueue.has(id)) priorityQueue.add(id);
|
|
222
|
+
};
|
|
223
|
+
/**
|
|
224
|
+
* Request an item to be rendered (e.g. when it re-enters the overscan zone).
|
|
225
|
+
*/
|
|
226
|
+
var requestLazyRender = (id, priority = false) => {
|
|
227
|
+
if (!id || readyQueue.has(id)) return;
|
|
228
|
+
if (priority) addToPriorityQueue(id);
|
|
229
|
+
else addToPendingQueue(id);
|
|
230
|
+
if (!isRunning.value) runLazyBus();
|
|
231
|
+
};
|
|
232
|
+
/**
|
|
233
|
+
* Schedules a single run of the lazy bus so that documents with no Lazy components
|
|
234
|
+
* (e.g. no operations, tags, or models) still get firstLazyLoadComplete set and the
|
|
235
|
+
* full-viewport placeholder can be hidden. Call from content root on mount.
|
|
236
|
+
*/
|
|
237
|
+
var scheduleInitialLoadComplete = () => {
|
|
238
|
+
if (typeof window === "undefined") return;
|
|
239
|
+
window.setTimeout(() => runLazyBus(), 400);
|
|
240
|
+
};
|
|
241
|
+
/** When an element is unmounted we remove it from all queues */
|
|
242
|
+
var resetLazyElement = (id) => {
|
|
243
|
+
priorityQueue.delete(id);
|
|
244
|
+
pendingQueue.delete(id);
|
|
245
|
+
readyQueue.delete(id);
|
|
246
|
+
lazyPlaceholderHeights.delete(id);
|
|
247
|
+
};
|
|
248
|
+
/**
|
|
249
|
+
* Tracks the lazy loading state of an element.
|
|
250
|
+
* Use isReady (or expanded) to decide whether to render the slot or show a placeholder.
|
|
251
|
+
* The element is only added to the queue when it enters the viewport overscan (see Lazy.vue).
|
|
252
|
+
*/
|
|
253
|
+
function useLazyBus(id) {
|
|
254
|
+
onBeforeUnmount(() => {
|
|
255
|
+
resetLazyElement(id);
|
|
256
|
+
});
|
|
257
|
+
return { isReady: computed(() => typeof window === "undefined" || priorityQueue.has(id) || readyQueue.has(id)) };
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* Scroll to a possibly lazy-loaded element. Expands parents and adds target (and
|
|
261
|
+
* parents) to the priority queue, then scrolls after Vue has flushed.
|
|
262
|
+
*/
|
|
263
|
+
var scrollToLazy = (id, setExpanded, getEntryById) => {
|
|
264
|
+
const item = getEntryById(id);
|
|
265
|
+
const unfreeze = !readyQueue.has(id) || item?.children?.some((child) => !readyQueue.has(child.id)) ? freeze(id) : void 0;
|
|
266
|
+
addLazyCompleteCallback(unfreeze);
|
|
267
|
+
const unblock = blockIntersection();
|
|
268
|
+
const { rawId } = getSchemaParamsFromId(id);
|
|
269
|
+
addToPriorityQueue(id);
|
|
270
|
+
addToPriorityQueue(rawId);
|
|
271
|
+
if (item?.children) item.children.slice(0, 2).forEach((child) => addToPriorityQueue(child.id));
|
|
272
|
+
if (item?.parent) {
|
|
273
|
+
const parent = getEntryById(item.parent.id);
|
|
274
|
+
const elementIdx = parent?.children?.findIndex((child) => child.id === id);
|
|
275
|
+
if (elementIdx !== void 0 && elementIdx >= 0) parent?.children?.slice(elementIdx, elementIdx + 2).forEach((child) => addToPriorityQueue(child.id));
|
|
276
|
+
}
|
|
277
|
+
setExpanded(rawId, true);
|
|
278
|
+
/**
|
|
279
|
+
* Recursively expand the parents and set them as a loading priority
|
|
280
|
+
* This ensures all parents will be immediately loaded and open
|
|
281
|
+
*/
|
|
282
|
+
const addParents = (currentId) => {
|
|
283
|
+
const parent = getEntryById(currentId)?.parent;
|
|
284
|
+
if (parent) {
|
|
285
|
+
addToPriorityQueue(parent.id);
|
|
286
|
+
setExpanded(parent.id, true);
|
|
287
|
+
addParents(parent.id);
|
|
288
|
+
}
|
|
289
|
+
};
|
|
290
|
+
/** Must use the rawId as schema params are not in the navigation tree */
|
|
291
|
+
addParents(rawId);
|
|
292
|
+
nextTick(() => {
|
|
293
|
+
tryScroll(id, Date.now() + SCROLL_RETRY_MS, unblock, unfreeze);
|
|
294
|
+
});
|
|
295
|
+
};
|
|
296
|
+
/**
|
|
297
|
+
* Tiny wrapper around the scrollIntoView API
|
|
298
|
+
* Retries up to the stopTime in case the element is not yet rendered
|
|
299
|
+
*
|
|
300
|
+
* @param id - The id of the element to scroll to
|
|
301
|
+
* @param stopTime - The time to stop retrying in unix milliseconds
|
|
302
|
+
*/
|
|
303
|
+
var tryScroll = (id, stopTime, onComplete, onFailure) => {
|
|
304
|
+
const element = document.getElementById(id);
|
|
305
|
+
if (element) {
|
|
306
|
+
element.scrollIntoView({ block: "start" });
|
|
307
|
+
onComplete();
|
|
308
|
+
} else if (Date.now() < stopTime) requestAnimationFrame(() => tryScroll(id, stopTime, onComplete, onFailure));
|
|
309
|
+
else {
|
|
310
|
+
onComplete();
|
|
311
|
+
onFailure?.();
|
|
312
|
+
}
|
|
313
|
+
};
|
|
314
|
+
var freeze = (id) => {
|
|
315
|
+
let stop = false;
|
|
316
|
+
/**
|
|
317
|
+
* Runs until the stop flag is set
|
|
318
|
+
* Executes the final frame after stop changes to true
|
|
319
|
+
*/
|
|
320
|
+
const runFrame = (stopAfterFrame) => {
|
|
321
|
+
const element = document.getElementById(id);
|
|
322
|
+
if (element) element.scrollIntoView({ block: "start" });
|
|
323
|
+
if (!stopAfterFrame) requestAnimationFrame(() => runFrame(stop));
|
|
324
|
+
};
|
|
325
|
+
runFrame(false);
|
|
326
|
+
return () => {
|
|
327
|
+
stop = true;
|
|
328
|
+
};
|
|
329
|
+
};
|
|
330
|
+
//#endregion
|
|
331
|
+
export { intersectionEnabled as a, scrollToLazy as c, getIdFromUrl as d, makeUrlFromId as f, getLazyPlaceholderHeight as i, setLazyPlaceholderHeight as l, blockIntersection as n, requestLazyRender as o, matchesBasePath as p, firstLazyLoadComplete as r, scheduleInitialLoadComplete as s, addToPriorityQueue as t, useLazyBus as u };
|
|
332
|
+
|
|
333
|
+
//# sourceMappingURL=lazy-bus-CV8Ox5hD.js.map
|