@scalar/api-reference 1.32.10 → 1.33.0
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 +70 -0
- package/dist/browser/standalone.js +15385 -15039
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/Anchor/Anchor.vue.d.ts.map +1 -1
- package/dist/components/Anchor/Anchor.vue.js +50 -5
- package/dist/components/Anchor/Anchor.vue2.js +2 -42
- package/dist/components/ApiReference.vue.js +6 -6
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +6 -6
- package/dist/components/ApiReferenceLayout.vue2.js +107 -104
- package/dist/components/ApiReferenceLayout.vue3.js +4 -0
- package/dist/components/ApiReferenceLayout.vue4.js +4 -0
- package/dist/components/ApiReferenceLayout.vue5.js +4 -0
- package/dist/components/ApiReferenceLayout.vue6.js +4 -0
- package/dist/components/Badge/Badge.vue.js +1 -1
- package/dist/components/Badge/Badge.vue2.js +4 -0
- package/dist/components/ClassicHeader.vue.js +1 -1
- package/dist/components/ClassicHeader.vue2.js +4 -0
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts +14 -1
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +3 -3
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +74 -84
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue3.js +4 -0
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts +8 -0
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.js +2 -2
- package/dist/components/Content/ClientLibraries/ClientSelector.vue2.js +81 -80
- package/dist/components/Content/ClientLibraries/ClientSelector.vue3.js +4 -0
- package/dist/components/Content/ClientLibraries/featured-clients.d.ts +11 -0
- package/dist/components/Content/ClientLibraries/featured-clients.d.ts.map +1 -0
- package/dist/components/Content/ClientLibraries/featured-clients.js +17 -0
- package/dist/components/Content/Content.vue.d.ts +5 -6
- package/dist/components/Content/Content.vue.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.js +49 -6
- package/dist/components/Content/Content.vue2.js +2 -160
- package/dist/components/Content/Content.vue3.js +5 -0
- package/dist/components/Content/Introduction/Description.vue.js +1 -1
- package/dist/components/Content/Introduction/Description.vue3.js +4 -0
- package/dist/components/Content/Introduction/Introduction.vue.d.ts +7 -17
- package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
- package/dist/components/Content/Introduction/Introduction.vue.js +3 -3
- package/dist/components/Content/Introduction/Introduction.vue2.js +103 -150
- package/dist/components/Content/Introduction/Introduction.vue3.js +4 -0
- package/dist/components/Content/Introduction/IntroductionSection.vue.d.ts +25 -0
- package/dist/components/Content/Introduction/IntroductionSection.vue.d.ts.map +1 -0
- package/dist/components/Content/Introduction/IntroductionSection.vue.js +7 -0
- package/dist/components/Content/Introduction/IntroductionSection.vue2.js +159 -0
- package/dist/components/Content/Introduction/IntroductionSection.vue3.js +4 -0
- package/dist/components/Content/Models/{ModelsAccordion.vue.d.ts → ClassicLayout.vue.d.ts} +2 -2
- package/dist/components/Content/Models/ClassicLayout.vue.d.ts.map +1 -0
- package/dist/components/Content/Models/ClassicLayout.vue.js +7 -0
- package/dist/components/Content/Models/{ModelsAccordion.vue2.js → ClassicLayout.vue2.js} +30 -30
- package/dist/components/Content/Models/ClassicLayout.vue3.js +4 -0
- package/dist/components/Content/Models/Models.vue.d.ts +3 -1
- package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/Models.vue.js +38 -5
- package/dist/components/Content/Models/Models.vue2.js +2 -114
- package/dist/components/Content/Models/ModernLayout.vue.d.ts +7 -0
- package/dist/components/Content/Models/ModernLayout.vue.d.ts.map +1 -0
- package/dist/components/Content/Models/ModernLayout.vue.js +7 -0
- package/dist/components/Content/Models/ModernLayout.vue2.js +100 -0
- package/dist/components/Content/Models/ModernLayout.vue3.js +4 -0
- package/dist/components/Content/Models/index.d.ts +0 -1
- package/dist/components/Content/Models/index.d.ts.map +1 -1
- package/dist/components/Content/Operations/TraversedEntry.vue.d.ts +21 -0
- package/dist/components/Content/Operations/TraversedEntry.vue.d.ts.map +1 -0
- package/dist/components/Content/Operations/TraversedEntry.vue.js +95 -0
- package/dist/components/Content/Operations/TraversedEntry.vue2.js +4 -0
- package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts +17 -0
- package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts.map +1 -0
- package/dist/components/Content/Operations/TraversedEntryContainer.vue.js +56 -0
- package/dist/components/Content/Operations/TraversedEntryContainer.vue2.js +4 -0
- package/dist/components/Content/Operations/index.d.ts +2 -0
- package/dist/components/Content/Operations/index.d.ts.map +1 -0
- package/dist/components/Content/Schema/Schema.vue.js +1 -1
- package/dist/components/Content/Schema/Schema.vue3.js +4 -0
- package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.js +3 -3
- package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue3.js +4 -0
- package/dist/components/Content/Schema/SchemaEnumValues.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaEnumValues.vue.js +3 -3
- package/dist/components/Content/Schema/SchemaEnumValues.vue2.js +63 -68
- package/dist/components/Content/Schema/SchemaEnumValues.vue3.js +4 -0
- package/dist/components/Content/Schema/SchemaHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaHeading.vue.js +4 -4
- package/dist/components/Content/Schema/SchemaHeading.vue2.js +23 -22
- package/dist/components/Content/Schema/SchemaHeading.vue3.js +4 -0
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
- package/dist/components/Content/Schema/SchemaProperty.vue2.js +34 -33
- package/dist/components/Content/Schema/SchemaProperty.vue3.js +4 -0
- package/dist/components/Content/Schema/SchemaPropertyDetail.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyDetail.vue.js +2 -2
- package/dist/components/Content/Schema/SchemaPropertyDetail.vue3.js +4 -0
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue.js +3 -3
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue3.js +4 -0
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +3 -3
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +26 -23
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue3.js +4 -0
- package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts +2 -1
- package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +59 -52
- package/dist/components/Content/Schema/helpers/optimize-value-for-display.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/optimize-value-for-display.js +24 -20
- package/dist/components/Content/Schema/helpers/schema-name.d.ts +1 -1
- package/dist/components/Content/Schema/helpers/schema-name.d.ts.map +1 -1
- package/dist/components/Content/{Tag/TagAccordion.vue.d.ts → Tags/ClassicLayout.vue.d.ts} +3 -3
- package/dist/components/Content/Tags/ClassicLayout.vue.d.ts.map +1 -0
- package/dist/components/Content/Tags/ClassicLayout.vue.js +7 -0
- package/dist/components/Content/Tags/ClassicLayout.vue2.js +51 -0
- package/dist/components/Content/Tags/ClassicLayout.vue3.js +4 -0
- package/dist/components/Content/{Tag/TagSection.vue.d.ts → Tags/ModernLayout.vue.d.ts} +17 -13
- package/dist/components/Content/Tags/ModernLayout.vue.d.ts.map +1 -0
- package/dist/components/Content/Tags/ModernLayout.vue.js +7 -0
- package/dist/components/Content/Tags/ModernLayout.vue2.js +69 -0
- package/dist/components/Content/Tags/ModernLayout.vue3.js +4 -0
- package/dist/components/Content/Tags/Tag.vue.d.ts +25 -0
- package/dist/components/Content/Tags/Tag.vue.d.ts.map +1 -0
- package/dist/components/Content/Tags/Tag.vue.js +27 -0
- package/dist/components/Content/{Tag/Tag.vue.d.ts → Tags/TagSection.vue.d.ts} +3 -6
- package/dist/components/Content/Tags/TagSection.vue.d.ts.map +1 -0
- package/dist/components/Content/Tags/TagSection.vue.js +104 -0
- package/dist/components/Content/Tags/TagSection.vue2.js +4 -0
- package/dist/components/Content/Tags/index.d.ts +2 -0
- package/dist/components/Content/Tags/index.d.ts.map +1 -0
- package/dist/components/GettingStarted.vue.js +1 -1
- package/dist/components/GettingStarted.vue3.js +4 -0
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.js +8 -6
- package/dist/components/{Content/Lazy → Lazy}/Lazy.vue.d.ts +1 -10
- package/dist/components/Lazy/Lazy.vue.d.ts.map +1 -0
- package/dist/components/Lazy/Lazy.vue2.js +25 -0
- package/dist/components/Lazy/index.d.ts +3 -0
- package/dist/components/Lazy/index.d.ts.map +1 -0
- package/dist/components/Lazy/lazyBus.d.ts +8 -0
- package/dist/components/Lazy/lazyBus.d.ts.map +1 -0
- package/dist/components/Lazy/lazyBus.js +7 -0
- package/dist/components/LinkList/LinkList.vue.d.ts +3 -1
- package/dist/components/LinkList/LinkList.vue.d.ts.map +1 -1
- package/dist/components/LinkList/LinkList.vue.js +5 -10
- package/dist/components/LinkList/LinkList.vue2.js +32 -0
- package/dist/components/LinkList/LinkList.vue3.js +4 -0
- package/dist/components/LoadingSkeleton.vue.d.ts.map +1 -1
- package/dist/components/LoadingSkeleton.vue.js +3 -3
- package/dist/components/LoadingSkeleton.vue3.js +4 -0
- package/dist/components/MobileHeader.vue.js +1 -1
- package/dist/components/MobileHeader.vue3.js +4 -0
- package/dist/components/OperationPath.vue.js +1 -1
- package/dist/components/OperationPath.vue3.js +4 -0
- package/dist/components/{Content/Tag → OperationsList}/OperationsList.vue.d.ts +2 -5
- package/dist/components/OperationsList/OperationsList.vue.d.ts.map +1 -0
- package/dist/components/OperationsList/OperationsList.vue.js +7 -0
- package/dist/components/OperationsList/OperationsList.vue2.js +60 -0
- package/dist/components/OperationsList/OperationsList.vue3.js +4 -0
- package/dist/components/{Content/Tag → OperationsList}/OperationsListItem.vue.d.ts +2 -4
- package/dist/components/OperationsList/OperationsListItem.vue.d.ts.map +1 -0
- package/dist/components/OperationsList/OperationsListItem.vue.js +7 -0
- package/dist/components/OperationsList/OperationsListItem.vue2.js +63 -0
- package/dist/components/OperationsList/OperationsListItem.vue3.js +4 -0
- package/dist/components/OperationsList/index.d.ts +2 -0
- package/dist/components/OperationsList/index.d.ts.map +1 -0
- package/dist/components/ScreenReader.vue.js +1 -1
- package/dist/components/ScreenReader.vue3.js +4 -0
- package/dist/components/Section/CompactSection.vue.d.ts.map +1 -1
- package/dist/components/Section/CompactSection.vue.js +3 -3
- package/dist/components/Section/CompactSection.vue2.js +35 -36
- package/dist/components/Section/CompactSection.vue3.js +4 -0
- package/dist/components/Section/Section.vue.js +1 -1
- package/dist/components/Section/Section.vue3.js +4 -0
- package/dist/components/Section/SectionAccordion.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionAccordion.vue.js +3 -3
- package/dist/components/Section/SectionAccordion.vue2.js +42 -36
- package/dist/components/Section/SectionAccordion.vue3.js +4 -0
- package/dist/components/Section/SectionColumn.vue.js +1 -1
- package/dist/components/Section/SectionColumn.vue2.js +4 -0
- package/dist/components/Section/SectionColumns.vue.js +1 -1
- package/dist/components/Section/SectionColumns.vue2.js +4 -0
- package/dist/components/Section/SectionContainer.vue.d.ts +9 -2
- package/dist/components/Section/SectionContainer.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionContainer.vue.js +5 -11
- package/dist/components/Section/SectionContainer.vue2.js +18 -0
- package/dist/components/Section/SectionContainer.vue3.js +4 -0
- package/dist/components/Section/SectionContainerAccordion.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionContainerAccordion.vue.js +3 -3
- package/dist/components/Section/SectionContainerAccordion.vue3.js +4 -0
- package/dist/components/Section/SectionContent.vue.js +1 -1
- package/dist/components/Section/SectionContent.vue3.js +4 -0
- package/dist/components/Section/SectionHeader.vue.js +1 -1
- package/dist/components/Section/SectionHeader.vue3.js +4 -0
- package/dist/components/Section/SectionHeaderTag.vue.js +1 -1
- package/dist/components/Section/SectionHeaderTag.vue3.js +4 -0
- package/dist/components/SectionFlare/SectionFlare.vue.d.ts +3 -0
- package/dist/components/SectionFlare/SectionFlare.vue.d.ts.map +1 -0
- package/dist/components/SectionFlare/SectionFlare.vue.js +13 -0
- package/dist/components/SectionFlare/SectionFlare.vue2.js +4 -0
- package/dist/components/SectionFlare/index.d.ts +2 -0
- package/dist/components/SectionFlare/index.d.ts.map +1 -0
- package/dist/components/ShowMoreButton.vue.d.ts.map +1 -1
- package/dist/components/ShowMoreButton.vue.js +3 -3
- package/dist/components/ShowMoreButton.vue2.js +12 -12
- package/dist/components/ShowMoreButton.vue3.js +4 -0
- package/dist/features/Operation/Operation.vue.d.ts +5 -1
- package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
- package/dist/features/Operation/Operation.vue.js +55 -38
- package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ContentTypeSelect.vue.js +28 -30
- package/dist/features/Operation/components/ParameterHeaders.vue.js +1 -1
- package/dist/features/Operation/components/ParameterHeaders.vue3.js +4 -0
- package/dist/features/Operation/components/ParameterList.vue.js +1 -1
- package/dist/features/Operation/components/ParameterList.vue3.js +4 -0
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue.js +2 -2
- package/dist/features/Operation/components/ParameterListItem.vue2.js +31 -29
- package/dist/features/Operation/components/ParameterListItem.vue3.js +4 -0
- package/dist/features/Operation/components/RequestBody.vue.js +1 -1
- package/dist/features/Operation/components/RequestBody.vue3.js +4 -0
- package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/callbacks/Callback.vue.js +3 -3
- package/dist/features/Operation/components/callbacks/Callback.vue2.js +9 -9
- package/dist/features/Operation/components/callbacks/Callback.vue3.js +4 -0
- package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/callbacks/Callbacks.vue.js +20 -28
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +6 -0
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
- package/dist/features/Operation/layouts/ClassicLayout.vue2.js +77 -62
- package/dist/features/Operation/layouts/ClassicLayout.vue3.js +4 -0
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +6 -0
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue.js +3 -3
- package/dist/features/Operation/layouts/ModernLayout.vue2.js +94 -81
- package/dist/features/Operation/layouts/ModernLayout.vue3.js +4 -0
- package/dist/features/Search/SearchModal.vue.js +4 -4
- package/dist/features/Search/SearchModal.vue2.js +9 -9
- package/dist/features/Search/SearchModal.vue3.js +4 -0
- package/dist/features/api-client-modal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/features/api-client-modal/useApiClient.d.ts +414 -354
- package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
- package/dist/features/download-link/DownloadLink.vue.js +2 -2
- package/dist/features/download-link/DownloadLink.vue3.js +4 -0
- package/dist/features/example-responses/ExampleResponse.vue.d.ts +4 -2
- package/dist/features/example-responses/ExampleResponse.vue.d.ts.map +1 -1
- package/dist/features/example-responses/ExampleResponse.vue.js +3 -3
- package/dist/features/example-responses/ExampleResponse.vue2.js +15 -14
- package/dist/features/example-responses/ExampleResponse.vue3.js +4 -0
- package/dist/features/example-responses/ExampleResponseTab.vue.js +1 -1
- package/dist/features/example-responses/ExampleResponseTab.vue3.js +4 -0
- package/dist/features/example-responses/ExampleResponseTabList.vue.js +1 -1
- package/dist/features/example-responses/ExampleResponseTabList.vue3.js +4 -0
- package/dist/features/example-responses/ExampleResponses.vue.d.ts +3 -2
- package/dist/features/example-responses/ExampleResponses.vue.d.ts.map +1 -1
- package/dist/features/example-responses/ExampleResponses.vue.js +4 -4
- package/dist/features/example-responses/ExampleResponses.vue2.js +107 -104
- package/dist/features/example-responses/ExampleResponses.vue3.js +4 -0
- package/dist/features/info-object/License.vue.d.ts.map +1 -1
- package/dist/features/info-object/License.vue.js +18 -15
- package/dist/features/sidebar/components/Sidebar.vue.js +3 -3
- package/dist/features/sidebar/components/Sidebar.vue3.js +4 -0
- package/dist/features/sidebar/components/SidebarElement.vue.js +3 -3
- package/dist/features/sidebar/components/SidebarElement.vue3.js +4 -0
- package/dist/features/sidebar/components/SidebarGroup.vue.js +1 -1
- package/dist/features/sidebar/components/SidebarGroup.vue3.js +4 -0
- package/dist/features/sidebar/components/SidebarHttpBadge.vue.js +1 -1
- package/dist/features/sidebar/components/SidebarHttpBadge.vue3.js +4 -0
- package/dist/features/sidebar/helpers/create-sidebar.js +12 -12
- package/dist/features/test-request-button/TestRequestButton.vue.js +1 -1
- package/dist/features/test-request-button/TestRequestButton.vue3.js +4 -0
- package/dist/features/traverse-schema/index.d.ts +2 -1
- package/dist/features/traverse-schema/index.d.ts.map +1 -1
- package/dist/helpers/test-utils.d.ts +51 -0
- package/dist/helpers/test-utils.d.ts.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +24 -21
- package/dist/style.css +1 -1
- package/dist/types.d.ts +5 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.d.ts +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.js +83 -93
- package/dist/v2/ApiReferenceWorkspace.vue2.js +4 -0
- package/dist/v2/ApiReferenceWorkspace.vue3.js +1 -1
- package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts +2 -2
- package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue2.js +32 -29
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts +4 -13
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.js +3 -3
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue2.js +185 -181
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue3.js +4 -0
- package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts +1 -0
- package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.js +1 -0
- package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.d.ts +12 -13
- package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.js +28 -30
- package/dist/v2/blocks/scalar-request-example-block/types.d.ts +11 -3
- package/dist/v2/blocks/scalar-request-example-block/types.d.ts.map +1 -1
- package/package.json +19 -19
- package/dist/components/Content/ClientLibraries/useFeaturedHttpClients.d.ts +0 -16
- package/dist/components/Content/ClientLibraries/useFeaturedHttpClients.d.ts.map +0 -1
- package/dist/components/Content/ClientLibraries/useFeaturedHttpClients.js +0 -36
- package/dist/components/Content/Lazy/Lazy.vue.d.ts.map +0 -1
- package/dist/components/Content/Lazy/Lazy.vue2.js +0 -22
- package/dist/components/Content/Lazy/Loading.vue.d.ts +0 -18
- package/dist/components/Content/Lazy/Loading.vue.d.ts.map +0 -1
- package/dist/components/Content/Lazy/Loading.vue.js +0 -163
- package/dist/components/Content/Lazy/Loading.vue3.js +0 -5
- package/dist/components/Content/Lazy/index.d.ts +0 -3
- package/dist/components/Content/Lazy/index.d.ts.map +0 -1
- package/dist/components/Content/Lazy/lazyBus.d.ts +0 -4
- package/dist/components/Content/Lazy/lazyBus.d.ts.map +0 -1
- package/dist/components/Content/Lazy/lazyBus.js +0 -5
- package/dist/components/Content/Models/ModelsAccordion.vue.d.ts.map +0 -1
- package/dist/components/Content/Models/ModelsAccordion.vue.js +0 -7
- package/dist/components/Content/Tag/OperationsList.vue.d.ts.map +0 -1
- package/dist/components/Content/Tag/OperationsList.vue.js +0 -7
- package/dist/components/Content/Tag/OperationsList.vue2.js +0 -58
- package/dist/components/Content/Tag/OperationsListItem.vue.d.ts.map +0 -1
- package/dist/components/Content/Tag/OperationsListItem.vue.js +0 -7
- package/dist/components/Content/Tag/OperationsListItem.vue2.js +0 -67
- package/dist/components/Content/Tag/Tag.vue.d.ts.map +0 -1
- package/dist/components/Content/Tag/Tag.vue.js +0 -99
- package/dist/components/Content/Tag/TagAccordion.vue.d.ts.map +0 -1
- package/dist/components/Content/Tag/TagAccordion.vue.js +0 -7
- package/dist/components/Content/Tag/TagAccordion.vue2.js +0 -50
- package/dist/components/Content/Tag/TagList.vue.d.ts +0 -22
- package/dist/components/Content/Tag/TagList.vue.d.ts.map +0 -1
- package/dist/components/Content/Tag/TagList.vue.js +0 -73
- package/dist/components/Content/Tag/TagList.vue2.js +0 -4
- package/dist/components/Content/Tag/TagSection.vue.d.ts.map +0 -1
- package/dist/components/Content/Tag/TagSection.vue.js +0 -7
- package/dist/components/Content/Tag/TagSection.vue2.js +0 -67
- package/dist/components/Content/Tag/index.d.ts +0 -3
- package/dist/components/Content/Tag/index.d.ts.map +0 -1
- package/dist/stores/useHttpClientStore.d.ts +0 -43
- package/dist/stores/useHttpClientStore.d.ts.map +0 -1
- package/dist/stores/useHttpClientStore.js +0 -70
- package/dist/v2/hooks/useStore.d.ts +0 -9
- package/dist/v2/hooks/useStore.d.ts.map +0 -1
- package/dist/v2/hooks/useStore.js +0 -14
- /package/dist/components/Content/{Tag → Tags}/Tag.vue2.js +0 -0
- /package/dist/components/{Content/Lazy → Lazy}/Lazy.vue.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Anchor.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Anchor/Anchor.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Anchor.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Anchor/Anchor.vue"],"names":[],"mappings":"AA8DA,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;CACX,CAAC;AAqBF,iBAAS,cAAc;WAuFT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,8SAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,7 +1,52 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import { defineComponent as u, useId as m, createElementBlock as f, openBlock as h, normalizeProps as b, guardReactiveProps as y, unref as e, createElementVNode as t, renderSlot as g, createVNode as a, withModifiers as _, withCtx as s, createTextVNode as C } from "vue";
|
|
2
|
+
import { useBindCx as v, ScalarButton as k } from "@scalar/components";
|
|
3
|
+
import { ScalarIconHash as x } from "@scalar/icons";
|
|
4
|
+
import { useClipboard as S } from "@scalar/use-hooks/useClipboard";
|
|
5
|
+
import { useNavState as B } from "../../hooks/useNavState.js";
|
|
6
|
+
import N from "../ScreenReader.vue.js";
|
|
7
|
+
const w = ["id"], I = { class: "relative" }, T = /* @__PURE__ */ u({
|
|
8
|
+
__name: "Anchor",
|
|
9
|
+
props: {
|
|
10
|
+
id: {}
|
|
11
|
+
},
|
|
12
|
+
setup(i) {
|
|
13
|
+
const r = m(), { cx: n } = v(), { copyToClipboard: l } = S(), { getHashedUrl: d } = B(), p = () => {
|
|
14
|
+
l(d(i.id));
|
|
15
|
+
};
|
|
16
|
+
return (c, o) => (h(), f("span", b(y(e(n)("group/heading word-break-all relative"))), [
|
|
17
|
+
t("span", {
|
|
18
|
+
id: e(r),
|
|
19
|
+
class: "contents"
|
|
20
|
+
}, [
|
|
21
|
+
g(c.$slots, "default")
|
|
22
|
+
], 8, w),
|
|
23
|
+
t("span", I, [
|
|
24
|
+
o[1] || (o[1] = t("span", null, "", -1)),
|
|
25
|
+
a(e(k), {
|
|
26
|
+
"aria-describedby": e(r),
|
|
27
|
+
class: "absolute top-1/2 left-0 inline-block h-fit -translate-y-1/2 px-1.5 py-1 opacity-0 group-hover/heading:opacity-100 group-has-focus-visible/heading:opacity-100",
|
|
28
|
+
variant: "ghost",
|
|
29
|
+
onClick: _(p, ["stop"])
|
|
30
|
+
}, {
|
|
31
|
+
default: s(() => [
|
|
32
|
+
a(e(x), {
|
|
33
|
+
"aria-hidden": "true",
|
|
34
|
+
class: "size-4.5"
|
|
35
|
+
}),
|
|
36
|
+
a(N, null, {
|
|
37
|
+
default: s(() => o[0] || (o[0] = [
|
|
38
|
+
C("Copy link")
|
|
39
|
+
])),
|
|
40
|
+
_: 1,
|
|
41
|
+
__: [0]
|
|
42
|
+
})
|
|
43
|
+
]),
|
|
44
|
+
_: 1
|
|
45
|
+
}, 8, ["aria-describedby"])
|
|
46
|
+
])
|
|
47
|
+
], 16));
|
|
48
|
+
}
|
|
49
|
+
});
|
|
5
50
|
export {
|
|
6
|
-
|
|
51
|
+
T as default
|
|
7
52
|
};
|
|
@@ -1,44 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { useClipboard as y } from "@scalar/use-hooks/useClipboard";
|
|
3
|
-
import { useNavState as C } from "../../hooks/useNavState.js";
|
|
4
|
-
import k from "../ScreenReader.vue.js";
|
|
5
|
-
const N = { class: "label" }, x = ["id"], S = { class: "anchor" }, V = ["aria-describedby"], I = /* @__PURE__ */ l({
|
|
6
|
-
__name: "Anchor",
|
|
7
|
-
props: {
|
|
8
|
-
id: {}
|
|
9
|
-
},
|
|
10
|
-
setup(n) {
|
|
11
|
-
const t = p(), { copyToClipboard: r } = y(), { getHashedUrl: a } = C(), d = () => {
|
|
12
|
-
r(a(n.id));
|
|
13
|
-
};
|
|
14
|
-
return (i, e) => (u(), c("span", N, [
|
|
15
|
-
o("span", {
|
|
16
|
-
id: s(t),
|
|
17
|
-
class: "contents"
|
|
18
|
-
}, [
|
|
19
|
-
m(i.$slots, "default", {}, void 0, !0)
|
|
20
|
-
], 8, x),
|
|
21
|
-
o("span", S, [
|
|
22
|
-
e[2] || (e[2] = o("span", null, "", -1)),
|
|
23
|
-
o("button", {
|
|
24
|
-
"aria-describedby": s(t),
|
|
25
|
-
class: "anchor-copy",
|
|
26
|
-
type: "button",
|
|
27
|
-
onClick: f(d, ["stop"])
|
|
28
|
-
}, [
|
|
29
|
-
e[1] || (e[1] = o("span", { "aria-hidden": "true" }, "#", -1)),
|
|
30
|
-
b(k, null, {
|
|
31
|
-
default: _(() => e[0] || (e[0] = [
|
|
32
|
-
h("Copy link")
|
|
33
|
-
])),
|
|
34
|
-
_: 1,
|
|
35
|
-
__: [0]
|
|
36
|
-
})
|
|
37
|
-
], 8, V)
|
|
38
|
-
])
|
|
39
|
-
]));
|
|
40
|
-
}
|
|
41
|
-
});
|
|
1
|
+
import f from "./Anchor.vue.js";
|
|
42
2
|
export {
|
|
43
|
-
|
|
3
|
+
f as default
|
|
44
4
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { defineComponent as r, createBlock as n, openBlock as t, unref as
|
|
2
|
-
import { createWorkspaceStore as
|
|
1
|
+
import { defineComponent as r, createBlock as n, openBlock as t, unref as i } from "vue";
|
|
2
|
+
import { createWorkspaceStore as c } from "@scalar/workspace-store/client";
|
|
3
3
|
import p from "../v2/ApiReferenceWorkspace.vue.js";
|
|
4
|
-
|
|
4
|
+
import "../v2/ApiReferenceWorkspace.vue2.js";
|
|
5
5
|
const d = /* @__PURE__ */ r({
|
|
6
6
|
__name: "ApiReference",
|
|
7
7
|
props: {
|
|
8
8
|
configuration: {}
|
|
9
9
|
},
|
|
10
10
|
setup(a) {
|
|
11
|
-
const o =
|
|
11
|
+
const o = c();
|
|
12
12
|
return typeof window < "u" && (window.dataDumpWorkspace = () => o), (e, f) => (t(), n(p, {
|
|
13
|
-
|
|
13
|
+
store: i(o),
|
|
14
14
|
configuration: e.configuration
|
|
15
|
-
}, null, 8, ["
|
|
15
|
+
}, null, 8, ["store", "configuration"]));
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue"],"names":[],"mappings":"AAmtBA,OAAO,EAGL,KAAK,OAAO,EACb,MAAM,gBAAgB,CAAA;AAkCvB,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,SAAS,CAAA;AAuRhB,iBAAS,cAAc;WAoYT,OAAO,IAA6B;;wBAtmBV,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;;6BACrC,GAAG;;wBADQ,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;;6BACrC,GAAG;;;;;;EA0mB/B;AAiCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;YAnrBqB,OAAO;eAAS,MAAM;;;;;;;;YAAtB,OAAO;eAAS,MAAM;;;;;;kFA0rB9D,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import o from "./ApiReferenceLayout.vue2.js";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
import "./ApiReferenceLayout.vue3.js";
|
|
3
|
+
import "./ApiReferenceLayout.vue4.js";
|
|
4
|
+
import "./ApiReferenceLayout.vue5.js";
|
|
5
|
+
import "./ApiReferenceLayout.vue6.js";
|
|
6
6
|
import t from "../_virtual/_plugin-vue_export-helper.js";
|
|
7
|
-
const
|
|
7
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-7f42ff5c"]]);
|
|
8
8
|
export {
|
|
9
|
-
|
|
9
|
+
a as default
|
|
10
10
|
};
|
|
@@ -1,42 +1,44 @@
|
|
|
1
|
-
import { defineComponent as fe, computed as
|
|
1
|
+
import { defineComponent as fe, computed as M, provide as S, ref as T, onBeforeMount as ve, onMounted as Y, watch as O, toValue as K, onUnmounted as pe, useId as ge, createElementBlock as f, openBlock as a, Fragment as z, createElementVNode as p, createVNode as v, normalizeStyle as he, normalizeClass as Se, unref as r, createCommentVNode as i, withDirectives as be, createBlock as b, renderSlot as d, normalizeProps as g, guardReactiveProps as h, withCtx as n, vShow as ye, createSlots as we } from "vue";
|
|
2
2
|
import { provideUseId as ke } from "@headlessui/vue";
|
|
3
3
|
import { OpenApiClientButton as $e } from "@scalar/api-client/components";
|
|
4
4
|
import { LAYOUT_SYMBOL as Me } from "@scalar/api-client/hooks";
|
|
5
5
|
import { WORKSPACE_SYMBOL as Te, ACTIVE_ENTITIES_SYMBOL as De } from "@scalar/api-client/store";
|
|
6
6
|
import { addScalarClassesToHeadless as Ce, ScalarErrorBoundary as Ee, ScalarSidebarFooter as Oe, ScalarColorModeToggleButton as Ie, ScalarColorModeToggleIcon as Be } from "@scalar/components";
|
|
7
|
-
import { sleep as
|
|
8
|
-
import { hasObtrusiveScrollbars as
|
|
7
|
+
import { sleep as Le } from "@scalar/helpers/testing/sleep";
|
|
8
|
+
import { hasObtrusiveScrollbars as Re, getThemeStyles as _e } from "@scalar/themes";
|
|
9
9
|
import { apiReferenceConfigurationSchema as Ae } from "@scalar/types/api-reference";
|
|
10
10
|
import { useBreakpoints as Pe } from "@scalar/use-hooks/useBreakpoints";
|
|
11
11
|
import { useToasts as He, ScalarToasts as Fe } from "@scalar/use-toasts";
|
|
12
12
|
import { useMediaQuery as Ne, useResizeObserver as Ve, useDebounceFn as Ue } from "@vueuse/core";
|
|
13
13
|
import Ye from "./ClassicHeader.vue.js";
|
|
14
14
|
import Ke from "./GettingStarted.vue.js";
|
|
15
|
-
import ze from "./
|
|
16
|
-
import
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import tt from "../
|
|
15
|
+
import { hasLazyLoaded as ze } from "./Lazy/lazyBus.js";
|
|
16
|
+
import Ge from "./MobileHeader.vue.js";
|
|
17
|
+
import { parse as Qe } from "../helpers/parse.js";
|
|
18
|
+
import { CONFIGURATION_SYMBOL as We } from "../hooks/useConfig.js";
|
|
19
|
+
import { useNavState as je } from "../hooks/useNavState.js";
|
|
20
|
+
import { downloadEventBus as G, downloadDocument as qe } from "../libs/download.js";
|
|
21
|
+
import { createEmptySpecification as Je } from "../libs/openapi.js";
|
|
22
|
+
import { useDocumentSource as Xe } from "../features/document-source/hooks/useDocumentSource.js";
|
|
23
|
+
import { OPENAPI_VERSION_SYMBOL as Ze } from "../features/download-link/openapi-version-symbol.js";
|
|
24
|
+
import { useSidebar as xe } from "../features/sidebar/hooks/useSidebar.js";
|
|
25
|
+
import { PLUGIN_MANAGER_SYMBOL as et } from "../plugins/hooks/usePluginManager.js";
|
|
26
|
+
import { createPluginManager as tt } from "../plugins/plugin-manager.js";
|
|
27
|
+
import ot from "../features/sidebar/components/Sidebar.vue.js";
|
|
27
28
|
import Q from "../features/Search/SearchButton.vue.js";
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
|
|
29
|
+
import rt from "./Content/Content.vue.js";
|
|
30
|
+
import "./Content/Content.vue2.js";
|
|
31
|
+
import at from "../features/api-client-modal/ApiClientModal.vue.js";
|
|
32
|
+
const st = ["innerHTML"], it = { class: "references-header" }, nt = ["aria-label"], lt = { class: "references-navigation-list" }, dt = { key: 0 }, ut = {
|
|
31
33
|
key: 1,
|
|
32
34
|
class: "scalar-api-references-standalone-search"
|
|
33
|
-
},
|
|
35
|
+
}, ct = { key: 1 }, mt = { class: "references-editor" }, ft = { class: "references-editor-textarea" }, vt = ["aria-label"], pt = {
|
|
34
36
|
key: 0,
|
|
35
37
|
class: "w-64 *:!p-0 empty:hidden"
|
|
36
|
-
},
|
|
38
|
+
}, gt = {
|
|
37
39
|
key: 0,
|
|
38
40
|
class: "references-footer"
|
|
39
|
-
},
|
|
41
|
+
}, jt = /* @__PURE__ */ fe({
|
|
40
42
|
inheritAttrs: !1,
|
|
41
43
|
__name: "ApiReferenceLayout",
|
|
42
44
|
props: {
|
|
@@ -45,12 +47,13 @@ const at = ["innerHTML"], st = { class: "references-header" }, lt = ["aria-label
|
|
|
45
47
|
originalDocument: {},
|
|
46
48
|
isDark: { type: Boolean },
|
|
47
49
|
parsedSpec: {},
|
|
48
|
-
rawSpec: {}
|
|
50
|
+
rawSpec: {},
|
|
51
|
+
store: {}
|
|
49
52
|
},
|
|
50
53
|
emits: ["changeTheme", "updateContent", "loadSwaggerFile", "linkSwaggerFile", "toggleDarkMode"],
|
|
51
|
-
setup(
|
|
52
|
-
const t =
|
|
53
|
-
() => Ae.parse(
|
|
54
|
+
setup(D) {
|
|
55
|
+
const t = M(
|
|
56
|
+
() => Ae.parse(D.configuration)
|
|
54
57
|
), { initializeToasts: W, toast: j } = He();
|
|
55
58
|
W((e) => j(e));
|
|
56
59
|
const {
|
|
@@ -59,29 +62,29 @@ const at = ["innerHTML"], st = { class: "references-header" }, lt = ["aria-label
|
|
|
59
62
|
dereferencedDocument: u,
|
|
60
63
|
workspaceStore: X,
|
|
61
64
|
activeEntitiesStore: Z
|
|
62
|
-
} =
|
|
65
|
+
} = Xe({
|
|
63
66
|
configuration: t,
|
|
64
|
-
dereferencedDocument:
|
|
65
|
-
originalDocument:
|
|
67
|
+
dereferencedDocument: D.dereferencedDocument,
|
|
68
|
+
originalDocument: D.originalDocument
|
|
66
69
|
});
|
|
67
|
-
S(
|
|
68
|
-
const x = Ne("(min-width: 1150px)"), ee =
|
|
70
|
+
S(Ze, J), S(Te, X), S(De, Z);
|
|
71
|
+
const x = Ne("(min-width: 1150px)"), ee = T("100dvh"), y = T(null);
|
|
69
72
|
Ve(y, (e) => {
|
|
70
|
-
ee.value = e[0].contentRect.height + "px";
|
|
73
|
+
ee.value = e[0] ? e[0].contentRect.height + "px" : "100dvh";
|
|
71
74
|
});
|
|
72
|
-
const te =
|
|
73
|
-
...
|
|
75
|
+
const te = M(Re), L = je(t), { isSidebarOpen: I, setCollapsedSidebarItem: R, scrollToOperation: oe, items: _ } = xe(u, {
|
|
76
|
+
...L,
|
|
74
77
|
config: t
|
|
75
78
|
}), {
|
|
76
79
|
getReferenceId: re,
|
|
77
80
|
getPathRoutingId: ae,
|
|
78
81
|
getSectionId: se,
|
|
79
|
-
getTagId:
|
|
80
|
-
hash:
|
|
82
|
+
getTagId: ie,
|
|
83
|
+
hash: C,
|
|
81
84
|
isIntersectionEnabled: A,
|
|
82
85
|
updateHash: P,
|
|
83
86
|
replaceUrlState: ne
|
|
84
|
-
} =
|
|
87
|
+
} = L;
|
|
85
88
|
if (t.value.redirect && typeof window < "u") {
|
|
86
89
|
const e = t.value.redirect(
|
|
87
90
|
(t.value.pathRouting ? window.location.pathname : "") + window.location.hash
|
|
@@ -93,71 +96,71 @@ const at = ["innerHTML"], st = { class: "references-header" }, lt = ["aria-label
|
|
|
93
96
|
});
|
|
94
97
|
const H = async (e) => {
|
|
95
98
|
var o;
|
|
96
|
-
A.value = !1, P(), e ? oe(e) : (o = y.value) == null || o.scrollTo(0, 0), await
|
|
97
|
-
}, F =
|
|
99
|
+
A.value = !1, P(), e ? oe(e) : (o = y.value) == null || o.scrollTo(0, 0), await Le(100), A.value = !0;
|
|
100
|
+
}, F = T(0);
|
|
98
101
|
Y(() => {
|
|
99
|
-
var s,
|
|
102
|
+
var s, w, k;
|
|
100
103
|
history.scrollRestoration = "manual";
|
|
101
|
-
const e = (
|
|
104
|
+
const e = (w = (s = y.value) == null ? void 0 : s.parentElement) == null ? void 0 : w.getBoundingClientRect(), o = (k = y.value) == null ? void 0 : k.getBoundingClientRect();
|
|
102
105
|
if (e && o) {
|
|
103
|
-
const
|
|
104
|
-
F.value =
|
|
106
|
+
const $ = o.top - e.top;
|
|
107
|
+
F.value = $ < 2 ? 0 : $;
|
|
105
108
|
}
|
|
106
109
|
window.onhashchange = () => {
|
|
107
110
|
H(re());
|
|
108
111
|
}, window.onpopstate = () => t.value.pathRouting && H(ae(window.location.pathname)), window.addEventListener("scroll", N, { passive: !0 });
|
|
109
112
|
});
|
|
110
|
-
const
|
|
113
|
+
const le = M(
|
|
111
114
|
() => x.value || !t.value.isEditable
|
|
112
115
|
), N = Ue(() => {
|
|
113
|
-
window.scrollY < 50 && ne("");
|
|
114
|
-
}), de =
|
|
116
|
+
window.scrollY < 50 && ze.value && ne("");
|
|
117
|
+
}), de = T(!1);
|
|
115
118
|
O(u, (e) => {
|
|
116
119
|
var o;
|
|
117
|
-
if (
|
|
118
|
-
const s = se(
|
|
119
|
-
s &&
|
|
120
|
+
if (C.value) {
|
|
121
|
+
const s = se(C.value);
|
|
122
|
+
s && R(s, !0);
|
|
120
123
|
} else {
|
|
121
124
|
const s = (o = e.tags) == null ? void 0 : o[0];
|
|
122
|
-
s &&
|
|
125
|
+
s && R(ie(s), !0);
|
|
123
126
|
}
|
|
124
127
|
de.value = !0;
|
|
125
128
|
});
|
|
126
|
-
const
|
|
129
|
+
const E = T(Je());
|
|
127
130
|
O(
|
|
128
131
|
u,
|
|
129
132
|
async (e) => {
|
|
130
133
|
if (!e)
|
|
131
134
|
return;
|
|
132
|
-
const o = await
|
|
133
|
-
|
|
135
|
+
const o = await Qe(e, _.value.entries);
|
|
136
|
+
E.value = o;
|
|
134
137
|
},
|
|
135
138
|
{ immediate: !0 }
|
|
136
139
|
);
|
|
137
|
-
const c =
|
|
140
|
+
const c = M(() => {
|
|
138
141
|
var e;
|
|
139
142
|
return {
|
|
140
|
-
spec:
|
|
141
|
-
breadcrumb: ((e = _.value) == null ? void 0 : e.titles.get(
|
|
143
|
+
spec: E.value,
|
|
144
|
+
breadcrumb: ((e = _.value) == null ? void 0 : e.titles.get(C.value)) ?? ""
|
|
142
145
|
};
|
|
143
146
|
});
|
|
144
147
|
Y(
|
|
145
148
|
() => G.on(({ filename: e, format: o }) => {
|
|
146
|
-
|
|
147
|
-
K(q) || K(
|
|
149
|
+
qe(
|
|
150
|
+
K(q) || K(D.rawSpec) || "",
|
|
148
151
|
e,
|
|
149
152
|
o
|
|
150
153
|
);
|
|
151
154
|
})
|
|
152
155
|
), pe(() => {
|
|
153
156
|
window.removeEventListener("scroll", N), G.reset();
|
|
154
|
-
}), ke(() => ge()), S(Me, "modal"), S(
|
|
155
|
-
|
|
156
|
-
|
|
157
|
+
}), ke(() => ge()), S(Me, "modal"), S(We, t), S(
|
|
158
|
+
et,
|
|
159
|
+
tt({
|
|
157
160
|
plugins: t.value.plugins
|
|
158
161
|
})
|
|
159
162
|
);
|
|
160
|
-
const ue =
|
|
163
|
+
const ue = M(
|
|
161
164
|
() => `<style>
|
|
162
165
|
${_e(t.value.theme, {
|
|
163
166
|
fonts: t.value.withDefaultFonts
|
|
@@ -165,12 +168,12 @@ const at = ["innerHTML"], st = { class: "references-header" }, lt = ["aria-label
|
|
|
165
168
|
), { mediaQueries: ce } = Pe(), me = !1;
|
|
166
169
|
return O(ce.lg, (e, o) => {
|
|
167
170
|
o && !e && (I.value = !1);
|
|
168
|
-
}), O(
|
|
171
|
+
}), O(C, (e, o) => {
|
|
169
172
|
e && e !== o && (I.value = !1);
|
|
170
173
|
}), (e, o) => {
|
|
171
|
-
var s, k, $,
|
|
174
|
+
var s, w, k, $, V;
|
|
172
175
|
return a(), f(z, null, [
|
|
173
|
-
p("div", { innerHTML: ue.value }, null, 8,
|
|
176
|
+
p("div", { innerHTML: ue.value }, null, 8, st),
|
|
174
177
|
p("div", {
|
|
175
178
|
ref_key: "documentEl",
|
|
176
179
|
ref: y,
|
|
@@ -189,37 +192,37 @@ const at = ["innerHTML"], st = { class: "references-header" }, lt = ["aria-label
|
|
|
189
192
|
"--scalar-y-offset": `var(--scalar-custom-header-height, ${F.value}px)`
|
|
190
193
|
})
|
|
191
194
|
}, [
|
|
192
|
-
p("div",
|
|
193
|
-
t.value.layout === "modern" && (t.value.showSidebar ?? !0) ? (a(), b(
|
|
195
|
+
p("div", it, [
|
|
196
|
+
t.value.layout === "modern" && (t.value.showSidebar ?? !0) ? (a(), b(Ge, {
|
|
194
197
|
key: 0,
|
|
195
198
|
breadcrumb: c.value.breadcrumb
|
|
196
|
-
}, null, 8, ["breadcrumb"])) :
|
|
199
|
+
}, null, 8, ["breadcrumb"])) : i("", !0),
|
|
197
200
|
d(e.$slots, "header", g(h(c.value)), void 0, !0)
|
|
198
201
|
]),
|
|
199
202
|
t.value.showSidebar ? (a(), f("aside", {
|
|
200
203
|
key: 0,
|
|
201
|
-
"aria-label": `Sidebar for ${(
|
|
204
|
+
"aria-label": `Sidebar for ${(w = (s = r(u)) == null ? void 0 : s.info) == null ? void 0 : w.title}`,
|
|
202
205
|
class: "references-navigation t-doc__sidebar"
|
|
203
206
|
}, [
|
|
204
|
-
p("div",
|
|
207
|
+
p("div", lt, [
|
|
205
208
|
v(r(Ee), null, {
|
|
206
209
|
default: n(() => {
|
|
207
|
-
var
|
|
210
|
+
var l, m;
|
|
208
211
|
return [
|
|
209
|
-
v(r(
|
|
210
|
-
title: ((m = (
|
|
212
|
+
v(r(ot), {
|
|
213
|
+
title: ((m = (l = r(u)) == null ? void 0 : l.info) == null ? void 0 : m.title) ?? "The OpenAPI Schema"
|
|
211
214
|
}, {
|
|
212
215
|
"sidebar-start": n(() => {
|
|
213
216
|
var B, U;
|
|
214
217
|
return [
|
|
215
|
-
e.$slots["document-selector"] ? (a(), f("div",
|
|
218
|
+
e.$slots["document-selector"] ? (a(), f("div", dt, [
|
|
216
219
|
d(e.$slots, "document-selector", {}, void 0, !0)
|
|
217
|
-
])) :
|
|
218
|
-
t.value.hideSearch ?
|
|
220
|
+
])) : i("", !0),
|
|
221
|
+
t.value.hideSearch ? i("", !0) : (a(), f("div", ut, [
|
|
219
222
|
v(r(Q), {
|
|
220
223
|
searchHotKey: (B = t.value) == null ? void 0 : B.searchHotKey,
|
|
221
224
|
hideModels: (U = t.value) == null ? void 0 : U.hideModels,
|
|
222
|
-
spec:
|
|
225
|
+
spec: E.value
|
|
223
226
|
}, null, 8, ["searchHotKey", "hideModels", "spec"])
|
|
224
227
|
])),
|
|
225
228
|
d(e.$slots, "sidebar-start", g(h(c.value)), void 0, !0)
|
|
@@ -229,14 +232,14 @@ const at = ["innerHTML"], st = { class: "references-header" }, lt = ["aria-label
|
|
|
229
232
|
d(e.$slots, "sidebar-end", g(h(c.value)), () => [
|
|
230
233
|
v(r(Oe), { class: "darklight-reference" }, {
|
|
231
234
|
toggle: n(() => [
|
|
232
|
-
t.value.hideDarkModeToggle ? (a(), f("span",
|
|
235
|
+
t.value.hideDarkModeToggle ? (a(), f("span", ct)) : (a(), b(r(Ie), {
|
|
233
236
|
key: 0,
|
|
234
237
|
modelValue: e.isDark,
|
|
235
238
|
"onUpdate:modelValue": o[0] || (o[0] = (B) => e.$emit("toggleDarkMode"))
|
|
236
239
|
}, null, 8, ["modelValue"]))
|
|
237
240
|
]),
|
|
238
241
|
default: n(() => [
|
|
239
|
-
t.value.hideClientButton ?
|
|
242
|
+
t.value.hideClientButton ? i("", !0) : (a(), b(r($e), {
|
|
240
243
|
key: 0,
|
|
241
244
|
buttonSource: "sidebar",
|
|
242
245
|
integration: t.value._integration,
|
|
@@ -255,54 +258,54 @@ const at = ["innerHTML"], st = { class: "references-header" }, lt = ["aria-label
|
|
|
255
258
|
_: 3
|
|
256
259
|
})
|
|
257
260
|
])
|
|
258
|
-
], 8,
|
|
259
|
-
be(p("div",
|
|
260
|
-
p("div",
|
|
261
|
+
], 8, nt)) : i("", !0),
|
|
262
|
+
be(p("div", mt, [
|
|
263
|
+
p("div", ft, [
|
|
261
264
|
d(e.$slots, "editor", g(h(c.value)), void 0, !0)
|
|
262
265
|
])
|
|
263
266
|
], 512), [
|
|
264
267
|
[ye, t.value.isEditable]
|
|
265
268
|
]),
|
|
266
|
-
|
|
269
|
+
le.value ? (a(), f(z, { key: 1 }, [
|
|
267
270
|
p("main", {
|
|
268
|
-
"aria-label": `Open API Documentation for ${(
|
|
271
|
+
"aria-label": `Open API Documentation for ${($ = (k = r(u)) == null ? void 0 : k.info) == null ? void 0 : $.title}`,
|
|
269
272
|
class: "references-rendered"
|
|
270
273
|
}, [
|
|
271
|
-
v(r(
|
|
272
|
-
layout: t.value.layout,
|
|
274
|
+
v(r(rt), {
|
|
273
275
|
document: r(u),
|
|
274
|
-
|
|
276
|
+
config: t.value,
|
|
277
|
+
store: e.store
|
|
275
278
|
}, we({
|
|
276
279
|
start: n(() => [
|
|
277
280
|
d(e.$slots, "content-start", g(h(c.value)), () => [
|
|
278
281
|
t.value.layout === "classic" ? (a(), b(Ye, { key: 0 }, {
|
|
279
282
|
"dark-mode-toggle": n(() => [
|
|
280
|
-
t.value.hideDarkModeToggle ?
|
|
283
|
+
t.value.hideDarkModeToggle ? i("", !0) : (a(), b(r(Be), {
|
|
281
284
|
key: 0,
|
|
282
285
|
class: "text-c-2 hover:text-c-1",
|
|
283
286
|
mode: e.isDark ? "dark" : "light",
|
|
284
287
|
style: { transform: "scale(1.4)" },
|
|
285
288
|
variant: "icon",
|
|
286
|
-
onClick: o[1] || (o[1] = (
|
|
289
|
+
onClick: o[1] || (o[1] = (l) => e.$emit("toggleDarkMode"))
|
|
287
290
|
}, null, 8, ["mode"]))
|
|
288
291
|
]),
|
|
289
292
|
default: n(() => {
|
|
290
|
-
var
|
|
293
|
+
var l;
|
|
291
294
|
return [
|
|
292
|
-
e.$slots["document-selector"] ? (a(), f("div",
|
|
295
|
+
e.$slots["document-selector"] ? (a(), f("div", pt, [
|
|
293
296
|
d(e.$slots, "document-selector", {}, void 0, !0)
|
|
294
|
-
])) :
|
|
295
|
-
t.value.hideSearch ?
|
|
297
|
+
])) : i("", !0),
|
|
298
|
+
t.value.hideSearch ? i("", !0) : (a(), b(r(Q), {
|
|
296
299
|
key: 1,
|
|
297
300
|
class: "t-doc__sidebar max-w-64",
|
|
298
301
|
searchHotKey: t.value.searchHotKey,
|
|
299
|
-
hideModels: (
|
|
300
|
-
spec:
|
|
302
|
+
hideModels: (l = t.value) == null ? void 0 : l.hideModels,
|
|
303
|
+
spec: E.value
|
|
301
304
|
}, null, 8, ["searchHotKey", "hideModels", "spec"]))
|
|
302
305
|
];
|
|
303
306
|
}),
|
|
304
307
|
_: 3
|
|
305
|
-
})) :
|
|
308
|
+
})) : i("", !0)
|
|
306
309
|
], !0)
|
|
307
310
|
]),
|
|
308
311
|
end: n(() => [
|
|
@@ -313,10 +316,10 @@ const at = ["innerHTML"], st = { class: "references-header" }, lt = ["aria-label
|
|
|
313
316
|
(V = t.value) != null && V.isEditable ? {
|
|
314
317
|
name: "empty-state",
|
|
315
318
|
fn: n(() => {
|
|
316
|
-
var
|
|
319
|
+
var l;
|
|
317
320
|
return [
|
|
318
321
|
v(Ke, {
|
|
319
|
-
theme: ((
|
|
322
|
+
theme: ((l = t.value) == null ? void 0 : l.theme) || "default",
|
|
320
323
|
onChangeTheme: o[2] || (o[2] = (m) => e.$emit("changeTheme", m)),
|
|
321
324
|
onLinkSwaggerFile: o[3] || (o[3] = (m) => e.$emit("linkSwaggerFile")),
|
|
322
325
|
onLoadSwaggerFile: o[4] || (o[4] = (m) => e.$emit("loadSwaggerFile")),
|
|
@@ -326,13 +329,13 @@ const at = ["innerHTML"], st = { class: "references-header" }, lt = ["aria-label
|
|
|
326
329
|
}),
|
|
327
330
|
key: "0"
|
|
328
331
|
} : void 0
|
|
329
|
-
]), 1032, ["
|
|
330
|
-
], 8,
|
|
331
|
-
e.$slots.footer ? (a(), f("div",
|
|
332
|
+
]), 1032, ["document", "config", "store"])
|
|
333
|
+
], 8, vt),
|
|
334
|
+
e.$slots.footer ? (a(), f("div", gt, [
|
|
332
335
|
d(e.$slots, "footer", g(h(c.value)), void 0, !0)
|
|
333
|
-
])) :
|
|
334
|
-
], 64)) :
|
|
335
|
-
v(r(
|
|
336
|
+
])) : i("", !0)
|
|
337
|
+
], 64)) : i("", !0),
|
|
338
|
+
v(r(at), {
|
|
336
339
|
configuration: t.value,
|
|
337
340
|
dereferencedDocument: r(u)
|
|
338
341
|
}, null, 8, ["configuration", "dereferencedDocument"])
|
|
@@ -343,5 +346,5 @@ const at = ["innerHTML"], st = { class: "references-header" }, lt = ["aria-label
|
|
|
343
346
|
}
|
|
344
347
|
});
|
|
345
348
|
export {
|
|
346
|
-
|
|
349
|
+
jt as default
|
|
347
350
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createElementBlock as c, openBlock as t, createElementVNode as s, renderSlot as r } from "vue";
|
|
2
|
-
|
|
2
|
+
import "./ClassicHeader.vue2.js";
|
|
3
3
|
import o from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
const n = {}, d = { class: "references-classic-header-container" }, a = { class: "references-classic-header" }, i = { class: "references-classic-header-content" };
|
|
5
5
|
function l(e, _) {
|