@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,171 +1,174 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarCard as D, ScalarIcon as
|
|
3
|
-
import { normalizeMimeTypeObject as
|
|
4
|
-
import { useClipboard as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
const
|
|
1
|
+
import { defineComponent as C, useId as M, computed as d, ref as h, toValue as E, createBlock as p, createCommentVNode as u, openBlock as o, unref as t, withCtx as r, createVNode as x, createElementBlock as k, Fragment as N, renderList as F, createTextVNode as g, toDisplayString as I, withDirectives as K, createElementVNode as _, vModelCheckbox as A } from "vue";
|
|
2
|
+
import { ScalarCard as D, ScalarIcon as L, ScalarCardSection as U, ScalarCodeBlock as $, ScalarCardFooter as q, ScalarMarkdown as G } from "@scalar/components";
|
|
3
|
+
import { normalizeMimeTypeObject as H, getObjectKeys as J } from "@scalar/oas-utils/helpers";
|
|
4
|
+
import { useClipboard as P } from "@scalar/use-hooks/useClipboard";
|
|
5
|
+
import Q from "../../components/ScreenReader.vue.js";
|
|
6
|
+
import W from "./ExampleResponse.vue.js";
|
|
7
|
+
import X from "./ExampleResponseTab.vue.js";
|
|
8
|
+
import Y from "./ExampleResponseTabList.vue.js";
|
|
9
|
+
import Z from "../../v2/blocks/scalar-request-example-block/components/ExamplePicker.vue2.js";
|
|
10
|
+
const z = {
|
|
11
11
|
key: 1,
|
|
12
12
|
class: "scalar-card-checkbox"
|
|
13
|
-
},
|
|
14
|
-
key:
|
|
13
|
+
}, ee = ["aria-controls"], se = {
|
|
14
|
+
key: 0,
|
|
15
15
|
class: "response-description"
|
|
16
|
-
},
|
|
16
|
+
}, ie = /* @__PURE__ */ C({
|
|
17
17
|
__name: "ExampleResponses",
|
|
18
18
|
props: {
|
|
19
19
|
responses: {}
|
|
20
20
|
},
|
|
21
|
-
setup(
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
21
|
+
setup(R) {
|
|
22
|
+
var j;
|
|
23
|
+
const v = M(), { copyToClipboard: w } = P(), y = d(
|
|
24
|
+
() => Object.keys(R.responses ?? {}).sort()
|
|
25
|
+
), V = h(0), f = d(() => {
|
|
26
|
+
var s;
|
|
27
|
+
const e = E(y)[E(V)];
|
|
28
|
+
return (s = R.responses) == null ? void 0 : s[e];
|
|
29
|
+
}), l = d(() => {
|
|
30
|
+
var c;
|
|
31
|
+
const e = H(
|
|
32
|
+
(c = f.value) == null ? void 0 : c.content
|
|
33
|
+
), s = J(e ?? {});
|
|
33
34
|
return (
|
|
34
35
|
// OpenAPI 3.x
|
|
35
36
|
(e == null ? void 0 : e["application/json"]) ?? (e == null ? void 0 : e["application/xml"]) ?? (e == null ? void 0 : e["text/plain"]) ?? (e == null ? void 0 : e["text/html"]) ?? (e == null ? void 0 : e["*/*"]) ?? // Take the first key - in the future we may want to use the selected content type
|
|
36
|
-
(e == null ? void 0 : e[
|
|
37
|
-
i.value
|
|
37
|
+
(e == null ? void 0 : e[s[0]]) ?? void 0
|
|
38
38
|
);
|
|
39
|
-
}),
|
|
40
|
-
|
|
39
|
+
}), b = d(
|
|
40
|
+
() => {
|
|
41
|
+
var e, s;
|
|
42
|
+
return !!((e = l.value) != null && e.examples) && Object.keys(((s = l.value) == null ? void 0 : s.examples) ?? {}).length > 1;
|
|
43
|
+
}
|
|
44
|
+
), i = h(
|
|
45
|
+
Object.keys(((j = l.value) == null ? void 0 : j.examples) ?? {})[0] ?? ""
|
|
41
46
|
), O = () => {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
if (
|
|
45
|
-
return
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
},
|
|
54
|
-
|
|
47
|
+
var a;
|
|
48
|
+
const e = E(l);
|
|
49
|
+
if (!e)
|
|
50
|
+
return;
|
|
51
|
+
if (Array.isArray(e.examples))
|
|
52
|
+
return e.examples[0];
|
|
53
|
+
const s = Object.keys(e.examples ?? {})[0];
|
|
54
|
+
return (a = e.examples) == null ? void 0 : a[s];
|
|
55
|
+
}, T = d(() => {
|
|
56
|
+
var e, s;
|
|
57
|
+
return b.value && i.value ? (s = (e = l.value) == null ? void 0 : e.examples) == null ? void 0 : s[i.value] : O();
|
|
58
|
+
}), B = (e) => {
|
|
59
|
+
V.value = e, i.value = "";
|
|
60
|
+
}, S = h(!1);
|
|
61
|
+
return (e, s) => y.value.length ? (o(), p(t(D), {
|
|
55
62
|
key: 0,
|
|
56
63
|
"aria-label": "Example Responses",
|
|
57
64
|
role: "region",
|
|
58
65
|
class: "response-card"
|
|
59
66
|
}, {
|
|
60
|
-
default:
|
|
61
|
-
var
|
|
67
|
+
default: r(() => {
|
|
68
|
+
var c;
|
|
62
69
|
return [
|
|
63
|
-
|
|
64
|
-
actions:
|
|
65
|
-
var
|
|
70
|
+
x(Y, { onChange: B }, {
|
|
71
|
+
actions: r(() => {
|
|
72
|
+
var a, m;
|
|
66
73
|
return [
|
|
67
|
-
(
|
|
74
|
+
(a = l.value) != null && a.example ? (o(), k("button", {
|
|
68
75
|
key: 0,
|
|
69
76
|
class: "code-copy",
|
|
70
77
|
type: "button",
|
|
71
|
-
onClick:
|
|
78
|
+
onClick: s[0] || (s[0] = () => {
|
|
72
79
|
var n;
|
|
73
|
-
return
|
|
80
|
+
return t(w)((n = l.value) == null ? void 0 : n.example);
|
|
74
81
|
})
|
|
75
82
|
}, [
|
|
76
|
-
|
|
83
|
+
x(t(L), {
|
|
77
84
|
icon: "Clipboard",
|
|
78
85
|
width: "12px"
|
|
79
86
|
})
|
|
80
|
-
])) :
|
|
81
|
-
(
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
"onUpdate:modelValue":
|
|
85
|
-
"aria-controls":
|
|
87
|
+
])) : u("", !0),
|
|
88
|
+
(m = l.value) != null && m.schema ? (o(), k("label", z, [
|
|
89
|
+
s[4] || (s[4] = g(" Show Schema ")),
|
|
90
|
+
K(_("input", {
|
|
91
|
+
"onUpdate:modelValue": s[1] || (s[1] = (n) => S.value = n),
|
|
92
|
+
"aria-controls": t(v),
|
|
86
93
|
class: "scalar-card-checkbox-input",
|
|
87
94
|
type: "checkbox"
|
|
88
|
-
}, null, 8,
|
|
89
|
-
[A,
|
|
95
|
+
}, null, 8, ee), [
|
|
96
|
+
[A, S.value]
|
|
90
97
|
]),
|
|
91
|
-
|
|
92
|
-
])) :
|
|
98
|
+
s[5] || (s[5] = _("span", { class: "scalar-card-checkbox-checkmark" }, null, -1))
|
|
99
|
+
])) : u("", !0)
|
|
93
100
|
];
|
|
94
101
|
}),
|
|
95
|
-
default:
|
|
96
|
-
(o(!0),
|
|
97
|
-
key:
|
|
98
|
-
"aria-controls":
|
|
102
|
+
default: r(() => [
|
|
103
|
+
(o(!0), k(N, null, F(y.value, (a) => (o(), p(X, {
|
|
104
|
+
key: a,
|
|
105
|
+
"aria-controls": t(v)
|
|
99
106
|
}, {
|
|
100
|
-
default:
|
|
101
|
-
|
|
102
|
-
default:
|
|
107
|
+
default: r(() => [
|
|
108
|
+
x(Q, null, {
|
|
109
|
+
default: r(() => s[3] || (s[3] = [
|
|
103
110
|
g("Status:")
|
|
104
111
|
])),
|
|
105
112
|
_: 1,
|
|
106
113
|
__: [3]
|
|
107
114
|
}),
|
|
108
|
-
g(" " +
|
|
115
|
+
g(" " + I(a), 1)
|
|
109
116
|
]),
|
|
110
117
|
_: 2
|
|
111
118
|
}, 1032, ["aria-controls"]))), 128))
|
|
112
119
|
]),
|
|
113
120
|
_: 1
|
|
114
121
|
}),
|
|
115
|
-
|
|
116
|
-
default:
|
|
117
|
-
var
|
|
122
|
+
x(t(U), { class: "grid flex-1" }, {
|
|
123
|
+
default: r(() => {
|
|
124
|
+
var a;
|
|
118
125
|
return [
|
|
119
|
-
(
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
}, null, 8, ["id", "content"])) : (o(), r(w, {
|
|
127
|
-
key: 1,
|
|
128
|
-
id: l(p),
|
|
129
|
-
response: b.value
|
|
130
|
-
}, null, 8, ["id", "response"]))
|
|
131
|
-
], 64)) : (o(), r(w, {
|
|
126
|
+
S.value && ((a = l.value) != null && a.schema) ? (o(), p(t($), {
|
|
127
|
+
key: 0,
|
|
128
|
+
id: t(v),
|
|
129
|
+
class: "-outline-offset-2",
|
|
130
|
+
content: l.value.schema,
|
|
131
|
+
lang: "json"
|
|
132
|
+
}, null, 8, ["id", "content"])) : (o(), p(W, {
|
|
132
133
|
key: 1,
|
|
133
|
-
id:
|
|
134
|
-
response:
|
|
135
|
-
|
|
134
|
+
id: t(v),
|
|
135
|
+
response: l.value,
|
|
136
|
+
example: T.value
|
|
137
|
+
}, null, 8, ["id", "response", "example"]))
|
|
136
138
|
];
|
|
137
139
|
}),
|
|
138
140
|
_: 1
|
|
139
141
|
}),
|
|
140
|
-
(
|
|
142
|
+
(c = f.value) != null && c.description || b.value ? (o(), p(t(q), {
|
|
141
143
|
key: 0,
|
|
142
144
|
class: "response-card-footer"
|
|
143
145
|
}, {
|
|
144
|
-
default:
|
|
145
|
-
var
|
|
146
|
+
default: r(() => {
|
|
147
|
+
var a, m;
|
|
146
148
|
return [
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
class: "response-example-selector",
|
|
150
|
-
examples: (t = s.value) == null ? void 0 : t.examples,
|
|
151
|
-
modelValue: c.value,
|
|
152
|
-
"onUpdate:modelValue": a[2] || (a[2] = (n) => c.value = n)
|
|
153
|
-
}, null, 8, ["examples", "modelValue"])) : (d = i.value) != null && d.description ? (o(), f("div", z, [
|
|
154
|
-
k(l(P), {
|
|
149
|
+
(a = f.value) != null && a.description ? (o(), k("div", se, [
|
|
150
|
+
x(t(G), {
|
|
155
151
|
class: "markdown",
|
|
156
|
-
value:
|
|
152
|
+
value: f.value.description
|
|
157
153
|
}, null, 8, ["value"])
|
|
158
|
-
])) :
|
|
154
|
+
])) : u("", !0),
|
|
155
|
+
b.value ? (o(), p(t(Z), {
|
|
156
|
+
key: 1,
|
|
157
|
+
class: "response-example-selector",
|
|
158
|
+
examples: (m = l.value) == null ? void 0 : m.examples,
|
|
159
|
+
modelValue: i.value,
|
|
160
|
+
"onUpdate:modelValue": s[2] || (s[2] = (n) => i.value = n)
|
|
161
|
+
}, null, 8, ["examples", "modelValue"])) : u("", !0)
|
|
159
162
|
];
|
|
160
163
|
}),
|
|
161
164
|
_: 1
|
|
162
|
-
})) :
|
|
165
|
+
})) : u("", !0)
|
|
163
166
|
];
|
|
164
167
|
}),
|
|
165
168
|
_: 1
|
|
166
|
-
})) :
|
|
169
|
+
})) : u("", !0);
|
|
167
170
|
}
|
|
168
171
|
});
|
|
169
172
|
export {
|
|
170
|
-
|
|
173
|
+
ie as default
|
|
171
174
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"License.vue.d.ts","sourceRoot":"","sources":["../../../src/features/info-object/License.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"License.vue.d.ts","sourceRoot":"","sources":["../../../src/features/info-object/License.vue"],"names":[],"mappings":"AAoCA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAIxD,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,WAAW,CAAC,aAAa,CAAA;CAClC,CAAC;;AAyGF,wBAOG"}
|
|
@@ -1,34 +1,37 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarIconGavel as
|
|
3
|
-
const
|
|
4
|
-
key: 1,
|
|
5
|
-
class: "ml-1 empty:hidden"
|
|
6
|
-
}, y = /* @__PURE__ */ s({
|
|
1
|
+
import { defineComponent as c, createElementBlock as r, openBlock as t, createVNode as s, createElementVNode as a, unref as i, toDisplayString as d, Fragment as u } from "vue";
|
|
2
|
+
import { ScalarIconGavel as m } from "@scalar/icons";
|
|
3
|
+
const p = { class: "group flex h-fit items-center last:border-r-0 xl:border-r xl:first:ml-auto" }, f = ["href"], h = { class: "ml-1 empty:hidden" }, _ = { class: "ml-1 empty:hidden" }, k = /* @__PURE__ */ c({
|
|
7
4
|
__name: "License",
|
|
8
5
|
props: {
|
|
9
6
|
value: {}
|
|
10
7
|
},
|
|
11
|
-
setup(
|
|
12
|
-
return (e,
|
|
13
|
-
var
|
|
14
|
-
return
|
|
15
|
-
(
|
|
8
|
+
setup(v) {
|
|
9
|
+
return (e, b) => {
|
|
10
|
+
var n, o, l;
|
|
11
|
+
return t(), r("div", p, [
|
|
12
|
+
(n = e.value) != null && n.url ? (t(), r("a", {
|
|
16
13
|
key: 0,
|
|
17
14
|
class: "text-c-1 hover:bg-b-2 mr-2 flex min-h-7 min-w-7 items-center rounded-lg border px-2 py-1 no-underline group-last:mr-0 xl:border-none",
|
|
18
15
|
href: e.value.url,
|
|
19
16
|
target: "_blank",
|
|
20
17
|
rel: "noopener noreferrer"
|
|
21
18
|
}, [
|
|
22
|
-
i(m
|
|
19
|
+
s(i(m), {
|
|
23
20
|
weight: "bold",
|
|
24
21
|
class: "size-3 text-current"
|
|
25
22
|
}),
|
|
26
|
-
|
|
27
|
-
], 8,
|
|
23
|
+
a("span", h, d(((o = e.value) == null ? void 0 : o.name) || e.value.identifier || e.value.url), 1)
|
|
24
|
+
], 8, f)) : (t(), r(u, { key: 1 }, [
|
|
25
|
+
s(i(m), {
|
|
26
|
+
weight: "bold",
|
|
27
|
+
class: "size-3 text-current"
|
|
28
|
+
}),
|
|
29
|
+
a("span", _, d((l = e.value) == null ? void 0 : l.name), 1)
|
|
30
|
+
], 64))
|
|
28
31
|
]);
|
|
29
32
|
};
|
|
30
33
|
}
|
|
31
34
|
});
|
|
32
35
|
export {
|
|
33
|
-
|
|
36
|
+
k as default
|
|
34
37
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Sidebar.vue2.js";
|
|
2
|
-
|
|
2
|
+
import "./Sidebar.vue3.js";
|
|
3
3
|
import r from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-7ed79e6b"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SidebarElement.vue2.js";
|
|
2
|
-
|
|
2
|
+
import "./SidebarElement.vue3.js";
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-181295c9"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { reactive as p, ref as S, computed as g } from "vue";
|
|
1
|
+
import { reactive as b, ref as p, computed as S } from "vue";
|
|
3
2
|
import { scrollToId as l } from "@scalar/helpers/dom/scroll-to-id";
|
|
4
|
-
import { measure as
|
|
5
|
-
import { traverseDocument as
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
import { measure as g } from "@scalar/helpers/testing/measure";
|
|
4
|
+
import { traverseDocument as v } from "../../traverse-schema/helpers/traverse-document.js";
|
|
5
|
+
import { lazyBus as O } from "../../../components/Lazy/lazyBus.js";
|
|
6
|
+
const z = (a, o) => {
|
|
7
|
+
const r = b({}), i = p(!1), m = (e) => r[e] = !r[e], c = (e, t) => r[e] = t, n = (e, t) => {
|
|
8
8
|
const s = o.getSectionId(e);
|
|
9
9
|
if (s && s !== e)
|
|
10
10
|
if (r[s])
|
|
11
11
|
l(e, t);
|
|
12
12
|
else {
|
|
13
|
-
const
|
|
14
|
-
|
|
13
|
+
const d = O.on((f) => {
|
|
14
|
+
f.loaded === e && (l(e, t), d());
|
|
15
15
|
});
|
|
16
16
|
c(s, !0);
|
|
17
17
|
}
|
|
18
|
-
}, u =
|
|
19
|
-
const e =
|
|
18
|
+
}, u = S(() => {
|
|
19
|
+
const e = g("traverse-document", () => v(a.value, o));
|
|
20
20
|
return o.config.value.defaultOpenAllTags && e.entries.forEach((t) => c(t.id, !0)), e;
|
|
21
21
|
});
|
|
22
22
|
return {
|
|
23
23
|
collapsedSidebarItems: r,
|
|
24
|
-
isSidebarOpen:
|
|
24
|
+
isSidebarOpen: i,
|
|
25
25
|
items: u,
|
|
26
26
|
scrollToOperation: n,
|
|
27
27
|
setCollapsedSidebarItem: c,
|
|
28
|
-
toggleCollapsedSidebarItem:
|
|
28
|
+
toggleCollapsedSidebarItem: m
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
31
|
export {
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import type { OpenAPIV3_1 } from '@scalar/openapi-types';
|
|
2
2
|
import type { TraversedEntry } from '../../../features/traverse-schema/types';
|
|
3
3
|
import type { UseNavState } from '../../../hooks/useNavState.js';
|
|
4
|
+
import type { TagObject } from '@scalar/workspace-store/schemas/v3.1/strict/tag';
|
|
5
|
+
import type { Dereference } from '@scalar/workspace-store/schemas/v3.1/type-guard';
|
|
4
6
|
/**
|
|
5
7
|
* Traverse the paths of the spec and build a map of tags and operations
|
|
6
8
|
*
|
|
7
9
|
* Default tag is to match what we have now we can improve later
|
|
8
10
|
*/
|
|
9
11
|
export declare const traversePaths: (content: OpenAPIV3_1.Document, tagsMap: Map<string, {
|
|
10
|
-
tag:
|
|
12
|
+
tag: Dereference<TagObject>;
|
|
11
13
|
entries: TraversedEntry[];
|
|
12
14
|
}>, titlesMap: Map<string, string>, getOperationId: UseNavState["getOperationId"]) => void;
|
|
13
15
|
//# sourceMappingURL=traverse-paths.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"traverse-paths.d.ts","sourceRoot":"","sources":["../../../../src/features/traverse-schema/helpers/traverse-paths.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAExD,OAAO,KAAK,EAAE,cAAc,EAAsB,MAAM,kCAAkC,CAAA;AAC1F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"traverse-paths.d.ts","sourceRoot":"","sources":["../../../../src/features/traverse-schema/helpers/traverse-paths.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAExD,OAAO,KAAK,EAAE,cAAc,EAAsB,MAAM,kCAAkC,CAAA;AAC1F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAGtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iDAAiD,CAAA;AAChF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iDAAiD,CAAA;AAyBlF;;;;GAIG;AACH,eAAO,MAAM,aAAa,YACf,WAAW,CAAC,QAAQ,WAEpB,GAAG,CAAC,MAAM,EAAE;IAAE,GAAG,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IAAC,OAAO,EAAE,cAAc,EAAE,CAAA;CAAE,CAAC,aAErE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,kBACd,WAAW,CAAC,gBAAgB,CAAC,SA+B9C,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"traverse-schemas.d.ts","sourceRoot":"","sources":["../../../../src/features/traverse-schema/helpers/traverse-schemas.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AAChF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;
|
|
1
|
+
{"version":3,"file":"traverse-schemas.d.ts","sourceRoot":"","sources":["../../../../src/features/traverse-schema/helpers/traverse-schemas.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AAChF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AA6BxD,+DAA+D;AAC/D,eAAO,MAAM,eAAe,YACjB,WAAW,CAAC,QAAQ,WACpB,OAAO,aAEL,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,cAClB,WAAW,CAAC,YAAY,CAAC,KACpC,eAAe,EAyBjB,CAAA"}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { getTag as
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
return
|
|
5
|
-
id:
|
|
6
|
-
title:
|
|
7
|
-
name:
|
|
8
|
-
schema:
|
|
1
|
+
import { getTag as u } from "./get-tag.js";
|
|
2
|
+
const h = (e, s = "Unkown", c, i, t) => {
|
|
3
|
+
const o = i({ name: s }, t), r = "title" in e && typeof e.title == "string" ? e.title : s;
|
|
4
|
+
return c.set(o, r), {
|
|
5
|
+
id: o,
|
|
6
|
+
title: r,
|
|
7
|
+
name: s,
|
|
8
|
+
schema: e
|
|
9
9
|
};
|
|
10
|
-
},
|
|
11
|
-
var
|
|
12
|
-
const t = ((
|
|
10
|
+
}, p = (e, s, c, i) => {
|
|
11
|
+
var r, g;
|
|
12
|
+
const t = ((r = e.components) == null ? void 0 : r.schemas) ?? {}, o = [];
|
|
13
13
|
for (const n in t)
|
|
14
|
-
t[n]["x-internal"] || t[n]["x-scalar-ignore"] || !Object.hasOwn(t, n) || ((
|
|
15
|
-
var
|
|
16
|
-
const { tag:
|
|
17
|
-
(
|
|
18
|
-
}) :
|
|
19
|
-
return
|
|
14
|
+
t[n]["x-internal"] || t[n]["x-scalar-ignore"] || !Object.hasOwn(t, n) || ((g = t[n]["x-tags"]) != null && g.length ? t[n]["x-tags"].forEach((a) => {
|
|
15
|
+
var f;
|
|
16
|
+
const { tag: l } = u(s, a);
|
|
17
|
+
(f = s.get(a)) == null || f.entries.push(h(t[n], n, c, i, l));
|
|
18
|
+
}) : o.push(h(t[n], n, c, i)));
|
|
19
|
+
return o;
|
|
20
20
|
};
|
|
21
21
|
export {
|
|
22
|
-
|
|
22
|
+
p as traverseSchemas
|
|
23
23
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"traverse-tags.d.ts","sourceRoot":"","sources":["../../../../src/features/traverse-schema/helpers/traverse-tags.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;
|
|
1
|
+
{"version":3,"file":"traverse-tags.d.ts","sourceRoot":"","sources":["../../../../src/features/traverse-schema/helpers/traverse-tags.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAG5E,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAgB,MAAM,kCAAkC,CAAA;AAC7F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAKtD,KAAK,OAAO,GAAG,IAAI,CAAC,WAAW,EAAE,UAAU,CAAC,GAAG,IAAI,CAAC,yBAAyB,EAAE,YAAY,GAAG,kBAAkB,CAAC,CAAA;AAkGjH,iFAAiF;AACjF,eAAO,MAAM,YAAY,YACd,WAAW,CAAC,QAAQ,WACpB,OAAO,aAEL,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,8CACc,OAAO,KAClD,cAAc,EAyBhB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"traverse-webhooks.d.ts","sourceRoot":"","sources":["../../../../src/features/traverse-schema/helpers/traverse-webhooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAExD,OAAO,KAAK,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAA;AACjF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"traverse-webhooks.d.ts","sourceRoot":"","sources":["../../../../src/features/traverse-schema/helpers/traverse-webhooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAExD,OAAO,KAAK,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAA;AACjF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AA4BtD,yFAAyF;AACzF,eAAO,MAAM,gBAAgB,YAClB,WAAW,CAAC,QAAQ,WAEpB,OAAO,aAEL,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,gBAChB,WAAW,CAAC,cAAc,CAAC,KACxC,gBAAgB,EA+BlB,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export type { TraverseSpecOptions, TraversedOperation, TraversedEntry, TraversedDescription, TraversedTag, } from './types';
|
|
1
|
+
export type { TraverseSpecOptions, TraversedOperation, TraversedEntry, TraversedDescription, TraversedTag, TraversedWebhook, TagsMap, } from './types';
|
|
2
2
|
export { traverseDocument } from './helpers/traverse-document.js';
|
|
3
|
+
export { traverseTags } from './helpers/traverse-tags.js';
|
|
3
4
|
export { DEFAULT_INTRODUCTION_SLUG } from './helpers/traverse-description.js';
|
|
4
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/traverse-schema/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,mBAAmB,EACnB,kBAAkB,EAClB,cAAc,EACd,oBAAoB,EACpB,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/traverse-schema/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,mBAAmB,EACnB,kBAAkB,EAClB,cAAc,EACd,oBAAoB,EACpB,YAAY,EACZ,gBAAgB,EAChB,OAAO,GACR,MAAM,SAAS,CAAA;AAEhB,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AACtD,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAA"}
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import type { ApiReferenceConfiguration } from '@scalar/types/api-reference';
|
|
2
2
|
import type { UseNavState } from '../../hooks/useNavState.js';
|
|
3
|
-
import type { Ref } from 'vue';
|
|
4
3
|
import type { OpenAPIV3_1 } from '@scalar/openapi-types';
|
|
4
|
+
import type { OperationObject } from '@scalar/workspace-store/schemas/v3.1/strict/path-operations';
|
|
5
|
+
import type { SchemaObject } from '@scalar/workspace-store/schemas/v3.1/strict/schema';
|
|
6
|
+
import type { TagObject } from '@scalar/workspace-store/schemas/v3.1/strict/tag';
|
|
7
|
+
import type { Dereference } from '@scalar/workspace-store/schemas/v3.1/type-guard';
|
|
8
|
+
import type { Ref } from 'vue';
|
|
5
9
|
/** Map of tagNames and their entries */
|
|
6
10
|
export type TagsMap = Map<string, {
|
|
7
|
-
tag:
|
|
11
|
+
tag: Dereference<TagObject>;
|
|
8
12
|
entries: TraversedEntry[];
|
|
9
13
|
}>;
|
|
10
14
|
/** Description entry returned form traversing the document */
|
|
@@ -19,21 +23,21 @@ export type TraversedOperation = {
|
|
|
19
23
|
title: string;
|
|
20
24
|
method: OpenAPIV3_1.HttpMethods;
|
|
21
25
|
path: string;
|
|
22
|
-
operation:
|
|
26
|
+
operation: Dereference<OperationObject>;
|
|
23
27
|
};
|
|
24
28
|
/** Model entry returned form traversing the document */
|
|
25
29
|
export type TraversedSchema = {
|
|
26
30
|
id: string;
|
|
27
31
|
title: string;
|
|
28
32
|
name: string;
|
|
29
|
-
schema:
|
|
33
|
+
schema: Dereference<SchemaObject>;
|
|
30
34
|
};
|
|
31
35
|
/** Tag entry returned form traversing the document, includes tagGroups */
|
|
32
36
|
export type TraversedTag = {
|
|
33
37
|
id: string;
|
|
34
38
|
title: string;
|
|
35
39
|
children: TraversedEntry[];
|
|
36
|
-
tag:
|
|
40
|
+
tag: Dereference<TagObject>;
|
|
37
41
|
isGroup: boolean;
|
|
38
42
|
isWebhooks?: boolean;
|
|
39
43
|
};
|
|
@@ -43,7 +47,7 @@ export type TraversedWebhook = {
|
|
|
43
47
|
title: string;
|
|
44
48
|
method: OpenAPIV3_1.HttpMethods;
|
|
45
49
|
name: string;
|
|
46
|
-
webhook:
|
|
50
|
+
webhook: Dereference<OperationObject>;
|
|
47
51
|
};
|
|
48
52
|
/** Entries returned form traversing the document */
|
|
49
53
|
export type TraversedEntry = TraversedDescription | TraversedOperation | TraversedSchema | TraversedTag | TraversedWebhook;
|