@scalar/api-reference 1.32.10 → 1.34.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 +99 -0
- package/dist/browser/standalone.js +16194 -15784
- 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/Anchor/WithBreadcrumb.vue.d.ts +24 -0
- package/dist/components/Anchor/WithBreadcrumb.vue.d.ts.map +1 -0
- package/dist/components/Anchor/WithBreadcrumb.vue.js +4 -0
- package/dist/components/Anchor/WithBreadcrumb.vue2.js +46 -0
- package/dist/components/Anchor/index.d.ts +1 -0
- package/dist/components/Anchor/index.d.ts.map +1 -1
- 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 +179 -193
- 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 +104 -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 +22 -0
- package/dist/components/Content/Operations/TraversedEntry.vue.d.ts.map +1 -0
- package/dist/components/Content/Operations/TraversedEntry.vue.js +97 -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 +60 -0
- package/dist/components/Content/Operations/TraversedEntryContainer.vue2.js +4 -0
- package/dist/components/Content/Operations/get-current-index.d.ts +4 -0
- package/dist/components/Content/Operations/get-current-index.d.ts.map +1 -0
- package/dist/components/Content/Operations/get-current-index.js +16 -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.preview.d.ts +28 -0
- package/dist/components/Content/Schema/Schema.preview.d.ts.map +1 -1
- package/dist/components/Content/Schema/Schema.vue.d.ts +2 -0
- package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/Schema.vue.js +3 -3
- package/dist/components/Content/Schema/Schema.vue2.js +164 -157
- package/dist/components/Content/Schema/Schema.vue3.js +4 -0
- package/dist/components/Content/Schema/SchemaComposition.vue.d.ts +1 -0
- package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaComposition.vue.js +58 -53
- 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/SchemaObjectProperties.vue.d.ts +1 -0
- package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaObjectProperties.vue.js +52 -40
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +1 -0
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.js +3 -3
- package/dist/components/Content/Schema/SchemaProperty.vue2.js +103 -89
- 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 +30 -24
- 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 +2 -10
- package/dist/components/Lazy/Lazy.vue.d.ts.map +1 -0
- package/dist/components/Lazy/Lazy.vue2.js +26 -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 +10 -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 +4 -4
- 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/OperationParameters.vue.d.ts +1 -0
- package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/OperationParameters.vue.js +49 -43
- package/dist/features/Operation/components/OperationResponses.vue.d.ts +1 -0
- package/dist/features/Operation/components/OperationResponses.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/OperationResponses.vue.js +4 -3
- package/dist/features/Operation/components/ParameterHeaders.vue.d.ts +1 -0
- package/dist/features/Operation/components/ParameterHeaders.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterHeaders.vue.js +3 -3
- package/dist/features/Operation/components/ParameterHeaders.vue2.js +28 -26
- package/dist/features/Operation/components/ParameterHeaders.vue3.js +4 -0
- package/dist/features/Operation/components/ParameterList.vue.d.ts +1 -0
- package/dist/features/Operation/components/ParameterList.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterList.vue.js +3 -3
- package/dist/features/Operation/components/ParameterList.vue2.js +17 -15
- package/dist/features/Operation/components/ParameterList.vue3.js +4 -0
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts +1 -0
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue.js +3 -3
- package/dist/features/Operation/components/ParameterListItem.vue2.js +36 -33
- package/dist/features/Operation/components/ParameterListItem.vue3.js +4 -0
- package/dist/features/Operation/components/RequestBody.vue.d.ts +2 -2
- package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/RequestBody.vue.js +3 -3
- package/dist/features/Operation/components/RequestBody.vue2.js +47 -39
- package/dist/features/Operation/components/RequestBody.vue3.js +4 -0
- package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +1 -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 +10 -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 +72 -57
- package/dist/features/Operation/layouts/ModernLayout.vue3.js +4 -0
- package/dist/features/Search/{SearchButton.vue.d.ts → components/SearchButton.vue.d.ts} +0 -2
- package/dist/features/Search/components/SearchButton.vue.d.ts.map +1 -0
- package/dist/features/Search/components/SearchButton.vue.js +65 -0
- package/dist/features/Search/{SearchModal.vue.d.ts → components/SearchModal.vue.d.ts} +0 -2
- package/dist/features/Search/components/SearchModal.vue.d.ts.map +1 -0
- package/dist/features/Search/components/SearchModal.vue.js +7 -0
- package/dist/features/Search/components/SearchModal.vue2.js +199 -0
- package/dist/features/Search/components/SearchModal.vue3.js +4 -0
- package/dist/features/Search/helpers/create-fuse-instance.d.ts +9 -0
- package/dist/features/Search/helpers/create-fuse-instance.d.ts.map +1 -0
- package/dist/features/Search/helpers/create-fuse-instance.js +46 -0
- package/dist/features/Search/helpers/create-search-index.d.ts +7 -0
- package/dist/features/Search/helpers/create-search-index.d.ts.map +1 -0
- package/dist/features/Search/helpers/create-search-index.js +109 -0
- package/dist/features/Search/hooks/useSearchIndex.d.ts +14 -0
- package/dist/features/Search/hooks/useSearchIndex.d.ts.map +1 -0
- package/dist/features/Search/hooks/useSearchIndex.js +46 -0
- package/dist/features/Search/index.d.ts +2 -2
- package/dist/features/Search/index.d.ts.map +1 -1
- package/dist/features/Search/types.d.ts +15 -0
- package/dist/features/Search/types.d.ts.map +1 -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/helpers/traverse-paths.d.ts +3 -1
- package/dist/features/traverse-schema/helpers/traverse-paths.d.ts.map +1 -1
- package/dist/features/traverse-schema/helpers/traverse-schemas.d.ts.map +1 -1
- package/dist/features/traverse-schema/helpers/traverse-schemas.js +18 -18
- package/dist/features/traverse-schema/helpers/traverse-tags.d.ts.map +1 -1
- package/dist/features/traverse-schema/helpers/traverse-webhooks.d.ts.map +1 -1
- package/dist/features/traverse-schema/index.d.ts +2 -1
- package/dist/features/traverse-schema/index.d.ts.map +1 -1
- package/dist/features/traverse-schema/types.d.ts +10 -6
- package/dist/features/traverse-schema/types.d.ts.map +1 -1
- package/dist/helpers/test-utils.d.ts +60 -0
- package/dist/helpers/test-utils.d.ts.map +1 -0
- package/dist/hooks/useNavState.d.ts +4 -1
- package/dist/hooks/useNavState.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +24 -23
- package/dist/libs/openapi.d.ts +11 -8
- package/dist/libs/openapi.d.ts.map +1 -1
- package/dist/libs/openapi.js +34 -55
- package/dist/style.css +1 -1
- package/dist/types.d.ts +6 -6
- 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 +128 -129
- 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/dist/v2/helpers/get-document-name.d.ts +13 -0
- package/dist/v2/helpers/get-document-name.d.ts.map +1 -0
- package/dist/v2/helpers/get-document-name.js +15 -0
- package/dist/v2/helpers/normalize-content.d.ts +3 -0
- package/dist/v2/helpers/normalize-content.d.ts.map +1 -0
- package/dist/v2/helpers/normalize-content.js +8 -0
- package/package.json +25 -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/features/Search/SearchButton.vue.d.ts.map +0 -1
- package/dist/features/Search/SearchButton.vue.js +0 -66
- package/dist/features/Search/SearchModal.vue.d.ts.map +0 -1
- package/dist/features/Search/SearchModal.vue.js +0 -7
- package/dist/features/Search/SearchModal.vue2.js +0 -207
- package/dist/features/Search/useSearchIndex.d.ts +0 -32
- package/dist/features/Search/useSearchIndex.d.ts.map +0 -1
- package/dist/features/Search/useSearchIndex.js +0 -170
- package/dist/helpers/parse.d.ts +0 -10
- package/dist/helpers/parse.d.ts.map +0 -1
- package/dist/helpers/parse.js +0 -81
- 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
- /package/dist/features/Search/{SearchButton.vue2.js → components/SearchButton.vue2.js} +0 -0
|
@@ -1,85 +1,92 @@
|
|
|
1
|
-
function
|
|
2
|
-
|
|
1
|
+
function n(f, i, p = 0) {
|
|
2
|
+
if (p >= 20 || !Array.isArray(f) || f.length === 0)
|
|
3
|
+
return i || {};
|
|
4
|
+
const e = f.reduce((t, r) => {
|
|
3
5
|
if (!r || typeof r != "object")
|
|
4
|
-
return
|
|
6
|
+
return t;
|
|
5
7
|
if (r.allOf) {
|
|
6
|
-
const
|
|
7
|
-
return
|
|
8
|
+
const s = n(r.allOf, void 0, p + 1);
|
|
9
|
+
return n([t, s], void 0, p + 1);
|
|
8
10
|
}
|
|
9
|
-
const
|
|
10
|
-
if (r.properties && (
|
|
11
|
+
const o = typeof t == "object" ? { ...t } : {};
|
|
12
|
+
if (r.properties && (o.properties = l(o.properties || {}, r.properties, p + 1)), r.items) {
|
|
11
13
|
if (r.type === "array")
|
|
12
|
-
|
|
14
|
+
o.items = d(o.items || {}, r.items, p + 1);
|
|
13
15
|
else if (typeof r.type == "string" && ["object", "string"].includes(r.type) && r.items.allOf) {
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
const s = n(r.items.allOf, void 0, p + 1);
|
|
17
|
+
o.properties = l(
|
|
18
|
+
o.properties || {},
|
|
19
|
+
s.properties || {},
|
|
20
|
+
p + 1
|
|
19
21
|
);
|
|
20
22
|
}
|
|
21
23
|
}
|
|
22
|
-
return
|
|
24
|
+
return O(o, r, p + 1);
|
|
23
25
|
}, {});
|
|
26
|
+
return i ? O(e, i, p + 1) : e;
|
|
24
27
|
}
|
|
25
|
-
function
|
|
28
|
+
function l(f, i, p = 0) {
|
|
26
29
|
if (p >= 20)
|
|
27
30
|
return f;
|
|
28
|
-
const
|
|
29
|
-
return Object.entries(
|
|
30
|
-
var
|
|
31
|
-
if (!
|
|
32
|
-
|
|
31
|
+
const e = typeof f == "object" ? { ...f } : {};
|
|
32
|
+
return Object.entries(i).forEach(([t, r]) => {
|
|
33
|
+
var o;
|
|
34
|
+
if (!r || typeof r != "object") {
|
|
35
|
+
e[t] = r;
|
|
33
36
|
return;
|
|
34
37
|
}
|
|
35
|
-
if (!
|
|
36
|
-
|
|
37
|
-
...
|
|
38
|
-
items:
|
|
39
|
-
} :
|
|
38
|
+
if (!e[t]) {
|
|
39
|
+
r.type === "array" && ((o = r.items) != null && o.allOf) ? e[t] = {
|
|
40
|
+
...r,
|
|
41
|
+
items: n(r.items.allOf, void 0, p + 1)
|
|
42
|
+
} : r.allOf ? e[t] = n(r.allOf, void 0, p + 1) : e[t] = r;
|
|
40
43
|
return;
|
|
41
44
|
}
|
|
42
|
-
if (
|
|
43
|
-
|
|
44
|
-
else if (
|
|
45
|
-
|
|
46
|
-
...
|
|
45
|
+
if (r.allOf)
|
|
46
|
+
e[t] = n([e[t], ...r.allOf], void 0, p + 1);
|
|
47
|
+
else if (r.type === "array" && r.items)
|
|
48
|
+
e[t] = {
|
|
49
|
+
...e[t],
|
|
47
50
|
type: "array",
|
|
48
|
-
items:
|
|
51
|
+
items: d(e[t].items || {}, r.items, p + 1)
|
|
49
52
|
};
|
|
50
53
|
else {
|
|
51
|
-
const
|
|
52
|
-
|
|
53
|
-
...
|
|
54
|
-
...
|
|
55
|
-
},
|
|
54
|
+
const s = e[t].properties || r.properties ? l(e[t].properties || {}, r.properties || {}, p + 1) : void 0;
|
|
55
|
+
e[t] = {
|
|
56
|
+
...e[t],
|
|
57
|
+
...r
|
|
58
|
+
}, s && (e[t].properties = s);
|
|
56
59
|
}
|
|
57
|
-
}),
|
|
60
|
+
}), e;
|
|
58
61
|
}
|
|
59
|
-
function
|
|
62
|
+
function d(f, i, p = 0) {
|
|
60
63
|
if (p >= 20)
|
|
61
64
|
return f;
|
|
62
|
-
if (f.allOf ||
|
|
63
|
-
const t = [...f.allOf || [f], ...
|
|
64
|
-
return
|
|
65
|
+
if (f.allOf || i.allOf) {
|
|
66
|
+
const t = [...f.allOf || [f], ...i.allOf || [i]];
|
|
67
|
+
return n(t, void 0, p + 1);
|
|
65
68
|
}
|
|
66
|
-
const
|
|
69
|
+
const e = {
|
|
67
70
|
...f,
|
|
68
|
-
...
|
|
71
|
+
...i
|
|
69
72
|
};
|
|
70
|
-
return
|
|
73
|
+
return f.properties && i.properties && (e.properties = l(f.properties, i.properties, p + 1)), e;
|
|
71
74
|
}
|
|
72
|
-
const
|
|
75
|
+
const O = (f, i, p = 0) => {
|
|
73
76
|
if (p >= 20)
|
|
74
77
|
return f;
|
|
75
|
-
const
|
|
76
|
-
|
|
77
|
-
const
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
const e = typeof f == "object" ? { ...f } : {};
|
|
79
|
+
if (i.required && Array.isArray(i.required)) {
|
|
80
|
+
const t = f.required || [], r = i.required;
|
|
81
|
+
e.required = [.../* @__PURE__ */ new Set([...t, ...r])];
|
|
82
|
+
}
|
|
83
|
+
return i.type && !f.type && (e.type = i.type), i.title && !f.title && (e.title = i.title), i.name && !f.name && (e.name = i.name), i.description && !f.description && (e.description = i.description), i.properties && (e.properties = l(e.properties || {}, i.properties, p + 1)), ["oneOf", "anyOf"].forEach((t) => {
|
|
84
|
+
const r = i[t];
|
|
85
|
+
r && r.forEach((o) => {
|
|
86
|
+
o.properties && (e.properties = l(e.properties || {}, o.properties, p + 1));
|
|
80
87
|
});
|
|
81
|
-
}),
|
|
88
|
+
}), e;
|
|
82
89
|
};
|
|
83
90
|
export {
|
|
84
|
-
|
|
91
|
+
n as mergeAllOfSchemas
|
|
85
92
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"optimize-value-for-display.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/optimize-value-for-display.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAExD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAE9D,eAAO,MAAM,YAAY,EAAE,kBAAkB,EAAuC,CAAA;AAEpF;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,aAAa,GAAG,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"optimize-value-for-display.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/optimize-value-for-display.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAExD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAE9D,eAAO,MAAM,YAAY,EAAE,kBAAkB,EAAuC,CAAA;AAEpF;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,aAAa,GAAG,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,CA2GzG"}
|
|
@@ -1,30 +1,34 @@
|
|
|
1
1
|
import { mergeAllOfSchemas as y } from "./merge-all-of-schemas.js";
|
|
2
|
-
const
|
|
3
|
-
function
|
|
4
|
-
var
|
|
5
|
-
if (!
|
|
6
|
-
return
|
|
7
|
-
let r = { ...
|
|
8
|
-
const o =
|
|
2
|
+
const d = ["oneOf", "anyOf", "allOf", "not"];
|
|
3
|
+
function b(e) {
|
|
4
|
+
var O;
|
|
5
|
+
if (!e || typeof e != "object")
|
|
6
|
+
return e;
|
|
7
|
+
let r = { ...e };
|
|
8
|
+
const o = d.find((t) => r == null ? void 0 : r[t]);
|
|
9
9
|
if (!o || o === "not")
|
|
10
10
|
return r;
|
|
11
|
-
const
|
|
12
|
-
if (!Array.isArray(
|
|
11
|
+
const s = r == null ? void 0 : r[o];
|
|
12
|
+
if (!Array.isArray(s))
|
|
13
13
|
return r;
|
|
14
|
-
const
|
|
14
|
+
const i = { ...r };
|
|
15
|
+
delete i[o], delete i.nullable;
|
|
16
|
+
const u = Object.keys(i).length > 0, c = (o === "oneOf" || o === "anyOf") && (s.some((t) => t.allOf) || u), p = s.map((t) => {
|
|
15
17
|
if (t.allOf && Array.isArray(t.allOf)) {
|
|
16
|
-
|
|
17
|
-
return Object.keys(t).forEach((
|
|
18
|
-
!
|
|
19
|
-
}),
|
|
18
|
+
let l = y(t.allOf);
|
|
19
|
+
return c && (l = y(t.allOf, i)), Object.keys(t).forEach((n) => {
|
|
20
|
+
!d.includes(n) && !(n in l) && (l[n] = t[n]);
|
|
21
|
+
}), l;
|
|
20
22
|
}
|
|
21
|
-
return t;
|
|
23
|
+
return c && !t.allOf ? { ...i, ...t } : t;
|
|
22
24
|
});
|
|
23
|
-
|
|
24
|
-
const
|
|
25
|
-
return
|
|
25
|
+
p.some((t) => t.type === "null") && (r.nullable = !0);
|
|
26
|
+
const f = p.filter((t) => t.type !== "null");
|
|
27
|
+
return f.length === 1 && (r != null && r[o]) ? (r = { ...r, ...f[0] }, r == null || delete r[o], r) : c ? (r = {
|
|
28
|
+
[o]: f
|
|
29
|
+
}, r.nullable && (r.nullable = !0), r) : (Array.isArray(r == null ? void 0 : r[o]) && ((O = r == null ? void 0 : r[o]) == null ? void 0 : O.length) > 1 && (r[o] = f), r);
|
|
26
30
|
}
|
|
27
31
|
export {
|
|
28
|
-
|
|
29
|
-
|
|
32
|
+
d as compositions,
|
|
33
|
+
b as optimizeValueForDisplay
|
|
30
34
|
};
|
|
@@ -25,5 +25,5 @@ export declare function hasName(name: string | null): boolean;
|
|
|
25
25
|
/**
|
|
26
26
|
* Choose the schemas to display in composition panel
|
|
27
27
|
*/
|
|
28
|
-
export declare function getCompositionDisplay(baseSchemas: OpenAPIV3_1.SchemaObject[], compositionSchemas: OpenAPIV3_1.SchemaObject[],
|
|
28
|
+
export declare function getCompositionDisplay(baseSchemas: OpenAPIV3_1.SchemaObject[], compositionSchemas: OpenAPIV3_1.SchemaObject[], _schemas?: Schemas): OpenAPIV3_1.SchemaObject[];
|
|
29
29
|
//# sourceMappingURL=schema-name.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-name.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/schema-name.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AACjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAGxD;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,GAAG,MAAM,GAAG,IAAI,CAyBtF;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAwB3G;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAE3E;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC1B,OAAO,CAAC,EAAE,OAAO,EACjB,cAAc,UAAQ,EACtB,0BAA0B,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,OAAO,KAAK,MAAM,GAAG,IAAI,GAC7E,MAAM,GAAG,IAAI,CAmDf;AAED;;GAEG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAgBpD;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,WAAW,EAAE,WAAW,CAAC,YAAY,EAAE,EACvC,kBAAkB,EAAE,WAAW,CAAC,YAAY,EAAE,EAC9C,
|
|
1
|
+
{"version":3,"file":"schema-name.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/schema-name.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AACjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAGxD;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,GAAG,MAAM,GAAG,IAAI,CAyBtF;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAwB3G;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAE3E;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC1B,OAAO,CAAC,EAAE,OAAO,EACjB,cAAc,UAAQ,EACtB,0BAA0B,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,OAAO,KAAK,MAAM,GAAG,IAAI,GAC7E,MAAM,GAAG,IAAI,CAmDf;AAED;;GAEG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAgBpD;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,WAAW,EAAE,WAAW,CAAC,YAAY,EAAE,EACvC,kBAAkB,EAAE,WAAW,CAAC,YAAY,EAAE,EAC9C,QAAQ,CAAC,EAAE,OAAO,GACjB,WAAW,CAAC,YAAY,EAAE,CA0B5B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { TraversedTag } from '../../../features/traverse-schema';
|
|
2
2
|
type __VLS_Props = {
|
|
3
|
-
tag:
|
|
3
|
+
tag: TraversedTag;
|
|
4
4
|
};
|
|
5
5
|
declare function __VLS_template(): {
|
|
6
6
|
attrs: Partial<{}>;
|
|
@@ -19,4 +19,4 @@ type __VLS_WithTemplateSlots<T, S> = T & {
|
|
|
19
19
|
$slots: S;
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
|
-
//# sourceMappingURL=
|
|
22
|
+
//# sourceMappingURL=ClassicLayout.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tags/ClassicLayout.vue"],"names":[],"mappings":"AAyDA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAI9D,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,YAAY,CAAA;CAClB,CAAC;AAQF,iBAAS,cAAc;WAoFT,OAAO,IAA6B;;yBARpB,GAAG;;;;EAahC;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,6SAOnB,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"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { defineComponent as i, createBlock as n, openBlock as l, unref as e, withCtx as t, renderSlot as s, createVNode as o, createTextVNode as c, toDisplayString as d } from "vue";
|
|
2
|
+
import { ScalarMarkdown as m } from "@scalar/components";
|
|
3
|
+
import p from "../../Section/SectionContainerAccordion.vue.js";
|
|
4
|
+
import f from "../../Section/SectionHeader.vue.js";
|
|
5
|
+
import u from "../../Anchor/Anchor.vue.js";
|
|
6
|
+
import g from "../../Section/SectionHeaderTag.vue.js";
|
|
7
|
+
const B = /* @__PURE__ */ i({
|
|
8
|
+
__name: "ClassicLayout",
|
|
9
|
+
props: {
|
|
10
|
+
tag: {}
|
|
11
|
+
},
|
|
12
|
+
setup(_) {
|
|
13
|
+
return (a, S) => (l(), n(e(p), { class: "tag-section" }, {
|
|
14
|
+
title: t(() => {
|
|
15
|
+
var r;
|
|
16
|
+
return [
|
|
17
|
+
o(e(f), { class: "tag-name" }, {
|
|
18
|
+
default: t(() => [
|
|
19
|
+
o(e(u), {
|
|
20
|
+
id: a.tag.id
|
|
21
|
+
}, {
|
|
22
|
+
default: t(() => [
|
|
23
|
+
o(e(g), { level: 2 }, {
|
|
24
|
+
default: t(() => [
|
|
25
|
+
c(d(a.tag.title), 1)
|
|
26
|
+
]),
|
|
27
|
+
_: 1
|
|
28
|
+
})
|
|
29
|
+
]),
|
|
30
|
+
_: 1
|
|
31
|
+
}, 8, ["id"])
|
|
32
|
+
]),
|
|
33
|
+
_: 1
|
|
34
|
+
}),
|
|
35
|
+
o(e(m), {
|
|
36
|
+
class: "tag-description",
|
|
37
|
+
value: (r = a.tag.tag) == null ? void 0 : r.description,
|
|
38
|
+
withImages: ""
|
|
39
|
+
}, null, 8, ["value"])
|
|
40
|
+
];
|
|
41
|
+
}),
|
|
42
|
+
default: t(() => [
|
|
43
|
+
s(a.$slots, "default", {}, void 0, !0)
|
|
44
|
+
]),
|
|
45
|
+
_: 3
|
|
46
|
+
}));
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
export {
|
|
50
|
+
B as default
|
|
51
|
+
};
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import type { Collection } from '@scalar/oas-utils/entities/spec';
|
|
2
|
-
import type { Spec, Tag as TagType } from '@scalar/types/legacy';
|
|
3
1
|
import { nextTick } from 'vue';
|
|
2
|
+
import type { TraversedTag } from '../../../features/traverse-schema';
|
|
4
3
|
type __VLS_Props = {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
collection: Collection;
|
|
8
|
-
spec: Spec;
|
|
4
|
+
tag: TraversedTag;
|
|
5
|
+
moreThanOneTag: boolean;
|
|
9
6
|
};
|
|
10
7
|
declare function __VLS_template(): {
|
|
11
8
|
attrs: Partial<{}>;
|
|
@@ -16,7 +13,9 @@ declare function __VLS_template(): {
|
|
|
16
13
|
sectionContainerRef: ({
|
|
17
14
|
$: import("vue").ComponentInternalInstance;
|
|
18
15
|
$data: {};
|
|
19
|
-
$props:
|
|
16
|
+
$props: {
|
|
17
|
+
readonly omit?: boolean | undefined;
|
|
18
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
20
19
|
$attrs: {
|
|
21
20
|
[x: string]: unknown;
|
|
22
21
|
};
|
|
@@ -30,8 +29,10 @@ declare function __VLS_template(): {
|
|
|
30
29
|
$parent: import("vue").ComponentPublicInstance | null;
|
|
31
30
|
$host: Element | null;
|
|
32
31
|
$emit: (event: string, ...args: any[]) => void;
|
|
33
|
-
$el:
|
|
34
|
-
$options: import("vue").ComponentOptionsBase<Readonly<{
|
|
32
|
+
$el: any;
|
|
33
|
+
$options: import("vue").ComponentOptionsBase<Readonly<{
|
|
34
|
+
omit?: boolean;
|
|
35
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
|
|
35
36
|
beforeCreate?: (() => void) | (() => void)[];
|
|
36
37
|
created?: (() => void) | (() => void)[];
|
|
37
38
|
beforeMount?: (() => void) | (() => void)[];
|
|
@@ -51,17 +52,20 @@ declare function __VLS_template(): {
|
|
|
51
52
|
$forceUpdate: () => void;
|
|
52
53
|
$nextTick: typeof nextTick;
|
|
53
54
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
|
|
54
|
-
} & Readonly<{}> & Omit<Readonly<{
|
|
55
|
+
} & Readonly<{}> & Omit<Readonly<{
|
|
56
|
+
omit?: boolean;
|
|
57
|
+
}> & Readonly<{}>, never> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
|
|
55
58
|
$slots: {
|
|
56
59
|
default?(_: {}): any;
|
|
60
|
+
default?(_: {}): any;
|
|
57
61
|
};
|
|
58
62
|
}) | null;
|
|
59
63
|
contentsRef: HTMLDivElement;
|
|
60
64
|
};
|
|
61
|
-
rootEl:
|
|
65
|
+
rootEl: any;
|
|
62
66
|
};
|
|
63
67
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
64
|
-
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {},
|
|
68
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
65
69
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
66
70
|
export default _default;
|
|
67
71
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -69,4 +73,4 @@ type __VLS_WithTemplateSlots<T, S> = T & {
|
|
|
69
73
|
$slots: S;
|
|
70
74
|
};
|
|
71
75
|
};
|
|
72
|
-
//# sourceMappingURL=
|
|
76
|
+
//# sourceMappingURL=ModernLayout.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tags/ModernLayout.vue"],"names":[],"mappings":"AAkFA,OAAO,EAAY,QAAQ,EAAc,MAAM,KAAK,CAAA;AAMpD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAO9D,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,YAAY,CAAA;IACjB,cAAc,EAAE,OAAO,CAAA;CACxB,CAAC;AA+BF,iBAAS,cAAc;WAiGT,OAAO,IAA6B;;yBAVpB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA4D6pf,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;EA7Cnzf;AAmBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAOnB,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"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { defineComponent as y, ref as m, useId as C, computed as T, createBlock as l, openBlock as o, unref as t, withCtx as u, createVNode as k, createElementBlock as b, createCommentVNode as s, renderSlot as S, nextTick as B } from "vue";
|
|
2
|
+
import v from "../../ShowMoreButton.vue.js";
|
|
3
|
+
import { useNavState as I } from "../../../hooks/useNavState.js";
|
|
4
|
+
import O from "./TagSection.vue.js";
|
|
5
|
+
import { useSidebar as $ } from "../../../features/sidebar/hooks/useSidebar.js";
|
|
6
|
+
import w from "../../Section/SectionContainer.vue.js";
|
|
7
|
+
import R from "../../Lazy/Lazy.vue2.js";
|
|
8
|
+
const E = /* @__PURE__ */ y({
|
|
9
|
+
__name: "ModernLayout",
|
|
10
|
+
props: {
|
|
11
|
+
tag: {},
|
|
12
|
+
moreThanOneTag: { type: Boolean }
|
|
13
|
+
},
|
|
14
|
+
setup(n) {
|
|
15
|
+
const c = m(), d = m(), f = C(), { collapsedSidebarItems: g } = $(), { hash: r } = I(), p = T(
|
|
16
|
+
() => {
|
|
17
|
+
var e, a;
|
|
18
|
+
return n.moreThanOneTag || ((e = n.tag) == null ? void 0 : e.title) !== "default" || ((a = n.tag) == null ? void 0 : a.tag.description) !== "";
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
async function h() {
|
|
22
|
+
var e, a;
|
|
23
|
+
await B(), (a = (e = d.value) == null ? void 0 : e.querySelector("button")) == null || a.focus();
|
|
24
|
+
}
|
|
25
|
+
const i = (e) => !g[e];
|
|
26
|
+
return (e, a) => (o(), l(t(w), {
|
|
27
|
+
ref_key: "sectionContainerRef",
|
|
28
|
+
ref: c,
|
|
29
|
+
"aria-labelledby": t(f),
|
|
30
|
+
class: "tag-section-container",
|
|
31
|
+
role: "region"
|
|
32
|
+
}, {
|
|
33
|
+
default: u(() => [
|
|
34
|
+
k(t(R), {
|
|
35
|
+
id: `modern-tag-${e.tag.id}`,
|
|
36
|
+
isLazy: !!t(r) && t(r) !== e.tag.id && t(r).startsWith(e.tag.id)
|
|
37
|
+
}, {
|
|
38
|
+
default: u(() => [
|
|
39
|
+
p.value ? (o(), l(O, {
|
|
40
|
+
key: 0,
|
|
41
|
+
headerId: t(f),
|
|
42
|
+
isCollapsed: i(e.tag.id),
|
|
43
|
+
tag: e.tag
|
|
44
|
+
}, null, 8, ["headerId", "isCollapsed", "tag"])) : s("", !0),
|
|
45
|
+
i(e.tag.id) && e.moreThanOneTag ? (o(), l(v, {
|
|
46
|
+
key: 1,
|
|
47
|
+
id: e.tag.id,
|
|
48
|
+
"aria-label": `Show all ${e.tag.title} endpoints`,
|
|
49
|
+
onClick: h
|
|
50
|
+
}, null, 8, ["id", "aria-label"])) : s("", !0)
|
|
51
|
+
]),
|
|
52
|
+
_: 1
|
|
53
|
+
}, 8, ["id", "isLazy"]),
|
|
54
|
+
i(e.tag.id) && e.moreThanOneTag ? s("", !0) : (o(), b("div", {
|
|
55
|
+
key: 0,
|
|
56
|
+
ref_key: "contentsRef",
|
|
57
|
+
ref: d,
|
|
58
|
+
class: "contents"
|
|
59
|
+
}, [
|
|
60
|
+
S(e.$slots, "default", {}, void 0, !0)
|
|
61
|
+
], 512))
|
|
62
|
+
]),
|
|
63
|
+
_: 3
|
|
64
|
+
}, 8, ["aria-labelledby"]));
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
export {
|
|
68
|
+
E as default
|
|
69
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { TraversedTag } from '../../../features/traverse-schema';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
tag: TraversedTag;
|
|
4
|
+
layout: 'classic' | 'modern';
|
|
5
|
+
moreThanOneTag: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare function __VLS_template(): {
|
|
8
|
+
attrs: Partial<{}>;
|
|
9
|
+
slots: {
|
|
10
|
+
default?(_: {}): any;
|
|
11
|
+
default?(_: {}): any;
|
|
12
|
+
};
|
|
13
|
+
refs: {};
|
|
14
|
+
rootEl: any;
|
|
15
|
+
};
|
|
16
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
17
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
19
|
+
export default _default;
|
|
20
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
21
|
+
new (): {
|
|
22
|
+
$slots: S;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=Tag.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tag.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tags/Tag.vue"],"names":[],"mappings":"AA2BA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAO9D,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,YAAY,CAAA;IACjB,MAAM,EAAE,SAAS,GAAG,QAAQ,CAAA;IAC5B,cAAc,EAAE,OAAO,CAAA;CACxB,CAAC;AAQF,iBAAS,cAAc;WAwDT,OAAO,IAA6B;;yBATrB,GAAG;yBACF,GAAG;;;;EAahC;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAMnB,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"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { defineComponent as l, createBlock as e, openBlock as r, normalizeProps as a, mergeProps as t, withCtx as p, renderSlot as s } from "vue";
|
|
2
|
+
import n from "./ClassicLayout.vue.js";
|
|
3
|
+
import m from "./ModernLayout.vue.js";
|
|
4
|
+
const c = /* @__PURE__ */ l({
|
|
5
|
+
__name: "Tag",
|
|
6
|
+
props: {
|
|
7
|
+
tag: {},
|
|
8
|
+
layout: {},
|
|
9
|
+
moreThanOneTag: { type: Boolean }
|
|
10
|
+
},
|
|
11
|
+
setup(u) {
|
|
12
|
+
return (o, f) => o.layout === "classic" ? (r(), e(n, a(t({ key: 0 }, o.$props)), {
|
|
13
|
+
default: p(() => [
|
|
14
|
+
s(o.$slots, "default")
|
|
15
|
+
]),
|
|
16
|
+
_: 3
|
|
17
|
+
}, 16)) : (r(), e(m, a(t({ key: 1 }, o.$props)), {
|
|
18
|
+
default: p(() => [
|
|
19
|
+
s(o.$slots, "default")
|
|
20
|
+
]),
|
|
21
|
+
_: 3
|
|
22
|
+
}, 16));
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
export {
|
|
26
|
+
c as default
|
|
27
|
+
};
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { Tag } from '@scalar/types/legacy';
|
|
1
|
+
import type { TraversedTag } from '../../../features/traverse-schema';
|
|
3
2
|
type __VLS_Props = {
|
|
4
|
-
|
|
5
|
-
tag: Tag;
|
|
6
|
-
collection: Collection;
|
|
3
|
+
tag: TraversedTag;
|
|
7
4
|
headerId?: string;
|
|
8
5
|
isCollapsed?: boolean;
|
|
9
6
|
};
|
|
10
7
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
8
|
export default _default;
|
|
12
|
-
//# sourceMappingURL=
|
|
9
|
+
//# sourceMappingURL=TagSection.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TagSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tags/TagSection.vue"],"names":[],"mappings":"AA0EA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAK9D,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,YAAY,CAAA;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AAkKF,wBAMG"}
|