@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,19 +1,19 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Disclosure as q, DisclosureButton as
|
|
3
|
-
import { ScalarMarkdown as
|
|
4
|
-
import
|
|
5
|
-
import { DISCRIMINATOR_CONTEXT as
|
|
6
|
-
import { isTypeObject as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
const
|
|
1
|
+
import { defineComponent as E, inject as $, computed as u, createBlock as c, createCommentVNode as m, openBlock as l, unref as s, withCtx as p, createElementVNode as A, normalizeClass as v, createElementBlock as d, createVNode as h, withDirectives as w, createTextVNode as f, toDisplayString as g, vShow as C, normalizeStyle as U, Fragment as y } from "vue";
|
|
2
|
+
import { Disclosure as q, DisclosureButton as T, DisclosurePanel as F } from "@headlessui/vue";
|
|
3
|
+
import { ScalarMarkdown as X, ScalarIcon as b } from "@scalar/components";
|
|
4
|
+
import j from "../../ScreenReader.vue.js";
|
|
5
|
+
import { DISCRIMINATOR_CONTEXT as G } from "../../../hooks/useDiscriminator.js";
|
|
6
|
+
import { isTypeObject as k } from "./helpers/is-type-object.js";
|
|
7
|
+
import J from "./SchemaHeading.vue.js";
|
|
8
|
+
import K from "./SchemaObjectProperties.vue.js";
|
|
9
|
+
import L from "./SchemaProperty.vue.js";
|
|
10
|
+
const Q = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "schema-card-description"
|
|
13
|
-
},
|
|
13
|
+
}, Y = {
|
|
14
14
|
key: 0,
|
|
15
15
|
class: "schema-properties"
|
|
16
|
-
},
|
|
16
|
+
}, oe = /* @__PURE__ */ E({
|
|
17
17
|
__name: "Schema",
|
|
18
18
|
props: {
|
|
19
19
|
value: { type: [Object, Boolean] },
|
|
@@ -28,180 +28,187 @@ const Y = {
|
|
|
28
28
|
discriminator: {},
|
|
29
29
|
discriminatorMapping: {},
|
|
30
30
|
discriminatorPropertyName: {},
|
|
31
|
-
hasDiscriminator: { type: Boolean }
|
|
31
|
+
hasDiscriminator: { type: Boolean },
|
|
32
|
+
breadcrumb: {}
|
|
32
33
|
},
|
|
33
34
|
emits: ["update:modelValue"],
|
|
34
|
-
setup(
|
|
35
|
-
const r =
|
|
35
|
+
setup(z, { emit: I }) {
|
|
36
|
+
const r = z, R = I, o = $(G, null), N = u(
|
|
36
37
|
() => {
|
|
37
38
|
var e;
|
|
38
|
-
return ((e =
|
|
39
|
+
return ((e = o == null ? void 0 : o.value) == null ? void 0 : e.discriminatorMapping) || r.discriminatorMapping || {};
|
|
39
40
|
}
|
|
40
|
-
),
|
|
41
|
+
), M = u(
|
|
41
42
|
() => {
|
|
42
43
|
var e;
|
|
43
|
-
return ((e =
|
|
44
|
+
return ((e = o == null ? void 0 : o.value) == null ? void 0 : e.discriminatorPropertyName) || r.discriminatorPropertyName || "";
|
|
44
45
|
}
|
|
45
|
-
),
|
|
46
|
+
), P = u(
|
|
46
47
|
() => {
|
|
47
48
|
var e;
|
|
48
|
-
return ((e =
|
|
49
|
+
return ((e = o == null ? void 0 : o.value) == null ? void 0 : e.selectedType) || r.discriminator;
|
|
49
50
|
}
|
|
50
|
-
), a =
|
|
51
|
-
var
|
|
52
|
-
const e = (
|
|
53
|
-
return e && r.level === 0 && r.hasDiscriminator &&
|
|
54
|
-
}),
|
|
55
|
-
var e;
|
|
56
|
-
|
|
57
|
-
|
|
51
|
+
), a = u(() => {
|
|
52
|
+
var i;
|
|
53
|
+
const e = (i = o == null ? void 0 : o.value) == null ? void 0 : i.mergedSchema, n = r.value;
|
|
54
|
+
return e && r.level === 0 && r.hasDiscriminator && k(n) && k(e) ? e : r.value;
|
|
55
|
+
}), S = u(() => !(r.noncollapsible || r.level === 0)), B = u(() => {
|
|
56
|
+
var e, n;
|
|
57
|
+
if ((e = a.value) != null && e.allOf && Array.isArray(a.value.allOf) && // Because we don't want it to show in models
|
|
58
|
+
r.name === "Request Body") {
|
|
59
|
+
if (a.value.description)
|
|
60
|
+
return a.value.description;
|
|
61
|
+
const i = a.value.allOf.find(
|
|
62
|
+
(t) => t.description && typeof t.description == "string"
|
|
63
|
+
);
|
|
64
|
+
if (i != null && i.description)
|
|
65
|
+
return i.description;
|
|
66
|
+
}
|
|
67
|
+
return !((n = a.value) != null && n.description) || typeof a.value.description != "string" || a.value.oneOf || a.value.anyOf || a.value.enum || !a.value.properties && !a.value.patternProperties && !a.value.additionalProperties || r.level === 0 ? null : a.value.description;
|
|
68
|
+
}), D = (e) => r.noncollapsible && e.stopPropagation(), O = (e) => {
|
|
58
69
|
R("update:modelValue", e);
|
|
59
70
|
};
|
|
60
|
-
return (e,
|
|
71
|
+
return (e, n) => typeof e.value == "object" && Object.keys(e.value).length ? (l(), c(s(q), {
|
|
61
72
|
key: 0,
|
|
62
73
|
defaultOpen: e.noncollapsible
|
|
63
74
|
}, {
|
|
64
|
-
default:
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
75
|
+
default: p(({ open: i }) => [
|
|
76
|
+
A("div", {
|
|
77
|
+
class: v(["schema-card", [
|
|
78
|
+
`schema-card--level-${e.level}`,
|
|
79
|
+
{ "schema-card--compact": e.compact, "schema-card--open": i },
|
|
80
|
+
{ "border-t": e.additionalProperties && i }
|
|
81
|
+
]])
|
|
82
|
+
}, [
|
|
83
|
+
B.value ? (l(), d("div", Q, [
|
|
84
|
+
h(s(X), { value: B.value }, null, 8, ["value"])
|
|
85
|
+
])) : m("", !0),
|
|
86
|
+
A("div", {
|
|
87
|
+
class: v(["schema-properties", {
|
|
88
|
+
"schema-properties-open": i
|
|
89
|
+
}])
|
|
73
90
|
}, [
|
|
74
|
-
|
|
75
|
-
(
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
91
|
+
e.additionalProperties ? w((l(), d("div", Y, [
|
|
92
|
+
h(s(T), {
|
|
93
|
+
as: "button",
|
|
94
|
+
class: "schema-card-title schema-card-title--compact",
|
|
95
|
+
onClickCapture: D
|
|
96
|
+
}, {
|
|
97
|
+
default: p(() => [
|
|
98
|
+
h(s(b), {
|
|
99
|
+
class: "schema-card-title-icon",
|
|
100
|
+
icon: "Add",
|
|
101
|
+
size: "sm"
|
|
102
|
+
}),
|
|
103
|
+
n[0] || (n[0] = f(" Show additional properties ")),
|
|
104
|
+
e.name ? (l(), c(j, { key: 0 }, {
|
|
105
|
+
default: p(() => [
|
|
106
|
+
f("for " + g(e.name), 1)
|
|
107
|
+
]),
|
|
108
|
+
_: 1
|
|
109
|
+
})) : m("", !0)
|
|
110
|
+
]),
|
|
111
|
+
_: 1,
|
|
112
|
+
__: [0]
|
|
113
|
+
})
|
|
114
|
+
], 512)), [
|
|
115
|
+
[C, !i]
|
|
116
|
+
]) : S.value ? w((l(), c(s(T), {
|
|
117
|
+
key: 1,
|
|
118
|
+
as: e.noncollapsible ? "div" : "button",
|
|
119
|
+
class: v(["schema-card-title", { "schema-card-title--compact": e.compact }]),
|
|
120
|
+
style: U({
|
|
121
|
+
top: `calc(var(--refs-header-height) + calc(var(--schema-title-height) * ${e.level}))`
|
|
122
|
+
}),
|
|
123
|
+
onClickCapture: D
|
|
124
|
+
}, {
|
|
125
|
+
default: p(() => {
|
|
126
|
+
var t, H, V;
|
|
127
|
+
return [
|
|
128
|
+
e.compact ? (l(), d(y, { key: 0 }, [
|
|
129
|
+
h(s(b), {
|
|
130
|
+
class: v(["schema-card-title-icon", { "schema-card-title-icon--open": i }]),
|
|
94
131
|
icon: "Add",
|
|
95
132
|
size: "sm"
|
|
96
|
-
}),
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
133
|
+
}, null, 8, ["class"]),
|
|
134
|
+
i ? (l(), d(y, { key: 0 }, [
|
|
135
|
+
f(" Hide " + g(((t = e.value) == null ? void 0 : t.title) ?? "Child Attributes"), 1)
|
|
136
|
+
], 64)) : (l(), d(y, { key: 1 }, [
|
|
137
|
+
f(" Show " + g(((H = e.value) == null ? void 0 : H.title) ?? "Child Attributes"), 1)
|
|
138
|
+
], 64)),
|
|
139
|
+
e.name ? (l(), c(j, { key: 2 }, {
|
|
140
|
+
default: p(() => [
|
|
141
|
+
f("for " + g(e.name), 1)
|
|
101
142
|
]),
|
|
102
143
|
_: 1
|
|
103
|
-
})) :
|
|
104
|
-
]),
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
h(L, {
|
|
146
|
-
name: ((w = e.value) == null ? void 0 : w.title) ?? e.name,
|
|
147
|
-
value: e.value
|
|
148
|
-
}, null, 8, ["name", "value"])
|
|
149
|
-
], 64))
|
|
150
|
-
];
|
|
151
|
-
}),
|
|
152
|
-
_: 2
|
|
153
|
-
}, 1032, ["as", "class", "style"])), [
|
|
154
|
-
[A, !e.hideHeading && !(e.noncollapsible && e.compact)]
|
|
155
|
-
]) : n("", !0),
|
|
156
|
-
!e.additionalProperties || o ? (l(), t(s(G), {
|
|
157
|
-
key: 2,
|
|
158
|
-
as: "ul",
|
|
159
|
-
static: !b.value
|
|
160
|
-
}, {
|
|
161
|
-
default: d(() => {
|
|
162
|
-
var u;
|
|
163
|
-
return [
|
|
164
|
-
s(N)(a.value) ? (l(), t(Q, {
|
|
144
|
+
})) : m("", !0)
|
|
145
|
+
], 64)) : (l(), d(y, { key: 1 }, [
|
|
146
|
+
h(s(b), {
|
|
147
|
+
class: v(["schema-card-title-icon", { "schema-card-title-icon--open": i }]),
|
|
148
|
+
icon: "Add",
|
|
149
|
+
size: "sm"
|
|
150
|
+
}, null, 8, ["class"]),
|
|
151
|
+
h(J, {
|
|
152
|
+
name: ((V = e.value) == null ? void 0 : V.title) ?? e.name,
|
|
153
|
+
value: e.value
|
|
154
|
+
}, null, 8, ["name", "value"])
|
|
155
|
+
], 64))
|
|
156
|
+
];
|
|
157
|
+
}),
|
|
158
|
+
_: 2
|
|
159
|
+
}, 1032, ["as", "class", "style"])), [
|
|
160
|
+
[C, !e.hideHeading && !(e.noncollapsible && e.compact)]
|
|
161
|
+
]) : m("", !0),
|
|
162
|
+
!e.additionalProperties || i ? (l(), c(s(F), {
|
|
163
|
+
key: 2,
|
|
164
|
+
as: "ul",
|
|
165
|
+
static: !S.value
|
|
166
|
+
}, {
|
|
167
|
+
default: p(() => {
|
|
168
|
+
var t;
|
|
169
|
+
return [
|
|
170
|
+
s(k)(a.value) ? (l(), c(K, {
|
|
171
|
+
key: 0,
|
|
172
|
+
breadcrumb: e.breadcrumb,
|
|
173
|
+
schema: a.value,
|
|
174
|
+
compact: e.compact,
|
|
175
|
+
hideHeading: e.hideHeading,
|
|
176
|
+
level: e.level + 1,
|
|
177
|
+
hideModelNames: e.hideModelNames,
|
|
178
|
+
schemas: e.schemas,
|
|
179
|
+
discriminator: P.value,
|
|
180
|
+
discriminatorMapping: N.value,
|
|
181
|
+
discriminatorPropertyName: M.value,
|
|
182
|
+
hasDiscriminator: e.hasDiscriminator,
|
|
183
|
+
"onUpdate:modelValue": O
|
|
184
|
+
}, null, 8, ["breadcrumb", "schema", "compact", "hideHeading", "level", "hideModelNames", "schemas", "discriminator", "discriminatorMapping", "discriminatorPropertyName", "hasDiscriminator"])) : (l(), d(y, { key: 1 }, [
|
|
185
|
+
a.value ? (l(), c(L, {
|
|
165
186
|
key: 0,
|
|
166
|
-
|
|
187
|
+
breadcrumb: e.breadcrumb,
|
|
167
188
|
compact: e.compact,
|
|
168
189
|
hideHeading: e.hideHeading,
|
|
169
|
-
level: e.level + 1,
|
|
170
190
|
hideModelNames: e.hideModelNames,
|
|
191
|
+
level: e.level,
|
|
192
|
+
name: a.value.name,
|
|
171
193
|
schemas: e.schemas,
|
|
172
|
-
discriminator:
|
|
173
|
-
discriminatorMapping:
|
|
174
|
-
discriminatorPropertyName:
|
|
175
|
-
|
|
176
|
-
"onUpdate:modelValue":
|
|
177
|
-
}, null, 8, ["
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
level: e.level,
|
|
184
|
-
name: a.value.name,
|
|
185
|
-
schemas: e.schemas,
|
|
186
|
-
value: ((u = e.value.discriminator) == null ? void 0 : u.propertyName) === e.name ? e.value : a.value,
|
|
187
|
-
discriminatorMapping: M.value,
|
|
188
|
-
discriminatorPropertyName: P.value,
|
|
189
|
-
modelValue: S.value,
|
|
190
|
-
"onUpdate:modelValue": B
|
|
191
|
-
}, null, 8, ["compact", "hideHeading", "hideModelNames", "level", "name", "schemas", "value", "discriminatorMapping", "discriminatorPropertyName", "modelValue"])) : n("", !0)
|
|
192
|
-
], 64))
|
|
193
|
-
];
|
|
194
|
-
}),
|
|
195
|
-
_: 1
|
|
196
|
-
}, 8, ["static"])) : n("", !0)
|
|
197
|
-
], 2)
|
|
194
|
+
value: ((t = e.value.discriminator) == null ? void 0 : t.propertyName) === e.name ? e.value : a.value,
|
|
195
|
+
discriminatorMapping: N.value,
|
|
196
|
+
discriminatorPropertyName: M.value,
|
|
197
|
+
modelValue: P.value,
|
|
198
|
+
"onUpdate:modelValue": O
|
|
199
|
+
}, null, 8, ["breadcrumb", "compact", "hideHeading", "hideModelNames", "level", "name", "schemas", "value", "discriminatorMapping", "discriminatorPropertyName", "modelValue"])) : m("", !0)
|
|
200
|
+
], 64))
|
|
201
|
+
];
|
|
202
|
+
}),
|
|
203
|
+
_: 1
|
|
204
|
+
}, 8, ["static"])) : m("", !0)
|
|
198
205
|
], 2)
|
|
199
|
-
]
|
|
200
|
-
|
|
206
|
+
], 2)
|
|
207
|
+
]),
|
|
201
208
|
_: 1
|
|
202
|
-
}, 8, ["defaultOpen"])) :
|
|
209
|
+
}, 8, ["defaultOpen"])) : m("", !0);
|
|
203
210
|
}
|
|
204
211
|
});
|
|
205
212
|
export {
|
|
206
|
-
|
|
213
|
+
oe as default
|
|
207
214
|
};
|
|
@@ -8,6 +8,7 @@ type __VLS_Props = {
|
|
|
8
8
|
level: number;
|
|
9
9
|
compact?: boolean;
|
|
10
10
|
hideHeading?: boolean;
|
|
11
|
+
breadcrumb?: string[];
|
|
11
12
|
};
|
|
12
13
|
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, {}, HTMLDivElement>;
|
|
13
14
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaComposition.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaComposition.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SchemaComposition.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaComposition.vue"],"names":[],"mappings":"AAoQA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAIjE,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,8BAA8B,CAAA;AAKrC,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,kBAAkB,CAAA;IAC/B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;CACtB,CAAC;;AAiTF,wBAOG"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as z, ref as E, computed as t, resolveComponent as j, createElementBlock as
|
|
1
|
+
import { defineComponent as z, ref as E, computed as t, resolveComponent as j, createElementBlock as v, openBlock as i, createCommentVNode as b, createBlock as c, Fragment as A, renderList as F, createVNode as H, createElementVNode as u, unref as O, withCtx as R, toDisplayString as N } from "vue";
|
|
2
2
|
import { ScalarListbox as Z } from "@scalar/components";
|
|
3
3
|
import { ScalarIconCaretDown as $ } from "@scalar/icons";
|
|
4
4
|
import { getSchemaType as G } from "./helpers/get-schema-type.js";
|
|
5
5
|
import { mergeAllOfSchemas as V } from "./helpers/merge-all-of-schemas.js";
|
|
6
|
-
import { hasComposition as
|
|
7
|
-
import
|
|
6
|
+
import { hasComposition as h } from "./helpers/schema-composition.js";
|
|
7
|
+
import y from "./Schema.vue.js";
|
|
8
8
|
const J = { class: "property-rule" }, K = {
|
|
9
9
|
class: "composition-selector bg-b-1.5 hover:bg-b-2 flex w-full cursor-pointer items-center gap-1 rounded-t-lg border border-b-0 px-2 py-1.25 pr-3 text-left",
|
|
10
10
|
type: "button"
|
|
11
|
-
}, M = { class: "text-c-2" }, P = { class: "composition-selector-label text-c-1" }, Q = { class: "composition-panel" },
|
|
11
|
+
}, M = { class: "text-c-2" }, P = { class: "composition-selector-label text-c-1" }, Q = { class: "composition-panel" }, ae = /* @__PURE__ */ z({
|
|
12
12
|
__name: "SchemaComposition",
|
|
13
13
|
props: {
|
|
14
14
|
composition: {},
|
|
@@ -17,9 +17,10 @@ const J = { class: "property-rule" }, K = {
|
|
|
17
17
|
value: {},
|
|
18
18
|
level: {},
|
|
19
19
|
compact: { type: Boolean },
|
|
20
|
-
hideHeading: { type: Boolean }
|
|
20
|
+
hideHeading: { type: Boolean },
|
|
21
|
+
breadcrumb: {}
|
|
21
22
|
},
|
|
22
|
-
setup(
|
|
23
|
+
setup(r) {
|
|
23
24
|
const p = E(0), w = t(() => S.value), g = t(
|
|
24
25
|
() => w.value.map(
|
|
25
26
|
(e, o) => ({
|
|
@@ -27,121 +28,125 @@ const J = { class: "property-rule" }, K = {
|
|
|
27
28
|
label: G(e) || "Schema"
|
|
28
29
|
})
|
|
29
30
|
)
|
|
30
|
-
),
|
|
31
|
+
), d = t({
|
|
31
32
|
get: () => g.value.find(
|
|
32
33
|
(e) => e.id === String(p.value)
|
|
33
34
|
),
|
|
34
35
|
set: (e) => p.value = Number(e.id)
|
|
35
36
|
}), B = t(() => {
|
|
36
|
-
var
|
|
37
|
-
const e = ["oneOf", "anyOf"].includes(
|
|
37
|
+
var s;
|
|
38
|
+
const e = ["oneOf", "anyOf"].includes(r.composition), o = r.composition === "allOf" && ((s = r.value[r.composition]) == null ? void 0 : s.some((a) => h(a)));
|
|
38
39
|
return e || o;
|
|
39
|
-
}), D = (e) => e.find((o) =>
|
|
40
|
+
}), D = (e) => e.find((o) => h(o)), I = (e) => !e.allOf || !Array.isArray(e.allOf) ? !1 : e.allOf.some(
|
|
40
41
|
(o) => o.oneOf || o.anyOf || o.allOf
|
|
41
42
|
), C = (e) => e.allOf && Array.isArray(e.allOf) ? I(e) ? e : V(e.allOf) : e, S = t(() => {
|
|
42
|
-
const e =
|
|
43
|
-
return !o ||
|
|
43
|
+
const e = r.value[r.composition], o = D(e);
|
|
44
|
+
return !o || r.composition !== "allOf" && o.allOf ? e.map(C) : (o.oneOf || o.anyOf || o.allOf).map(C);
|
|
44
45
|
}), L = (e) => {
|
|
45
|
-
var o,
|
|
46
|
+
var o, s;
|
|
46
47
|
if (e === "allOf") {
|
|
47
|
-
const
|
|
48
|
-
(m) =>
|
|
48
|
+
const a = (s = (o = r.value) == null ? void 0 : o[e]) == null ? void 0 : s.find(
|
|
49
|
+
(m) => h(m)
|
|
49
50
|
);
|
|
50
|
-
if (
|
|
51
|
+
if (a != null && a.oneOf)
|
|
51
52
|
return "One of";
|
|
52
|
-
if (
|
|
53
|
+
if (a != null && a.anyOf)
|
|
53
54
|
return "Any of";
|
|
54
55
|
}
|
|
55
|
-
return e.replace(/([A-Z])/g, " $1").replace(/^./, (
|
|
56
|
-
},
|
|
56
|
+
return e.replace(/([A-Z])/g, " $1").replace(/^./, (a) => a.toUpperCase()).toLowerCase().replace(/^(\w)/, (a) => a.toUpperCase());
|
|
57
|
+
}, n = t(
|
|
57
58
|
() => S.value[p.value]
|
|
58
|
-
),
|
|
59
|
+
), f = t(() => {
|
|
59
60
|
var e;
|
|
60
|
-
return (e =
|
|
61
|
+
return (e = n.value) != null && e.oneOf ? "oneOf" : "anyOf";
|
|
61
62
|
}), T = t(() => {
|
|
62
63
|
var o;
|
|
63
|
-
const e =
|
|
64
|
-
return (o =
|
|
64
|
+
const e = f.value;
|
|
65
|
+
return (o = n.value) == null ? void 0 : o[e];
|
|
65
66
|
}), U = t(() => {
|
|
66
|
-
const e =
|
|
67
|
+
const e = n.value;
|
|
67
68
|
return e ? !!(e.properties || e.type || e.nullable || e.const !== void 0 || e.enum || e.allOf || e.oneOf || e.anyOf || e.items) : !1;
|
|
68
69
|
});
|
|
69
70
|
return (e, o) => {
|
|
70
|
-
var
|
|
71
|
-
const
|
|
72
|
-
return
|
|
73
|
-
e.composition === "allOf" && e.value[e.composition].some((
|
|
74
|
-
(
|
|
75
|
-
), (
|
|
71
|
+
var a, m, k;
|
|
72
|
+
const s = j("SchemaComposition", !0);
|
|
73
|
+
return i(), v("div", J, [
|
|
74
|
+
e.composition === "allOf" && e.value[e.composition].some((l) => l.oneOf || l.anyOf) ? (i(!0), v(A, { key: 0 }, F(e.value[e.composition].filter(
|
|
75
|
+
(l) => !l.oneOf && !l.anyOf
|
|
76
|
+
), (l, q) => (i(), c(y, {
|
|
76
77
|
key: q,
|
|
78
|
+
breadcrumb: e.breadcrumb,
|
|
77
79
|
compact: e.compact,
|
|
78
80
|
level: e.level,
|
|
79
81
|
name: e.name,
|
|
80
82
|
noncollapsible: e.level == 0,
|
|
81
83
|
schemas: e.schemas,
|
|
82
|
-
value:
|
|
83
|
-
}, null, 8, ["compact", "level", "name", "noncollapsible", "schemas", "value"]))), 128)) :
|
|
84
|
-
B.value ? (
|
|
85
|
-
H(
|
|
86
|
-
modelValue:
|
|
87
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
84
|
+
value: l
|
|
85
|
+
}, null, 8, ["breadcrumb", "compact", "level", "name", "noncollapsible", "schemas", "value"]))), 128)) : b("", !0),
|
|
86
|
+
B.value ? (i(), v(A, { key: 1 }, [
|
|
87
|
+
H(O(Z), {
|
|
88
|
+
modelValue: d.value,
|
|
89
|
+
"onUpdate:modelValue": o[0] || (o[0] = (l) => d.value = l),
|
|
88
90
|
options: g.value,
|
|
89
91
|
resize: ""
|
|
90
92
|
}, {
|
|
91
93
|
default: R(() => {
|
|
92
|
-
var
|
|
94
|
+
var l;
|
|
93
95
|
return [
|
|
94
96
|
u("button", K, [
|
|
95
97
|
u("span", M, N(L(e.composition)), 1),
|
|
96
|
-
u("span", P, N(((
|
|
97
|
-
H(
|
|
98
|
+
u("span", P, N(((l = d.value) == null ? void 0 : l.label) || "Schema"), 1),
|
|
99
|
+
H(O($))
|
|
98
100
|
])
|
|
99
101
|
];
|
|
100
102
|
}),
|
|
101
103
|
_: 1
|
|
102
104
|
}, 8, ["modelValue", "options"]),
|
|
103
105
|
u("div", Q, [
|
|
104
|
-
U.value ? (
|
|
106
|
+
U.value ? (i(), c(y, {
|
|
105
107
|
key: 0,
|
|
108
|
+
breadcrumb: e.breadcrumb,
|
|
106
109
|
compact: e.compact,
|
|
107
110
|
level: e.level + 1,
|
|
108
111
|
hideHeading: e.hideHeading,
|
|
109
112
|
name: e.name,
|
|
110
113
|
noncollapsible: !0,
|
|
111
114
|
schemas: e.schemas,
|
|
112
|
-
value: (
|
|
115
|
+
value: (a = n.value) != null && a.properties ? {
|
|
113
116
|
type: "object",
|
|
114
|
-
properties:
|
|
115
|
-
required:
|
|
116
|
-
} :
|
|
117
|
-
}, null, 8, ["compact", "level", "hideHeading", "name", "schemas", "value"])) :
|
|
118
|
-
(m =
|
|
117
|
+
properties: n.value.properties,
|
|
118
|
+
required: n.value.required
|
|
119
|
+
} : n.value
|
|
120
|
+
}, null, 8, ["breadcrumb", "compact", "level", "hideHeading", "name", "schemas", "value"])) : b("", !0),
|
|
121
|
+
(m = n.value) != null && m.oneOf || (k = n.value) != null && k.anyOf ? (i(), c(s, {
|
|
119
122
|
key: 1,
|
|
123
|
+
breadcrumb: e.breadcrumb,
|
|
120
124
|
compact: e.compact,
|
|
121
|
-
composition:
|
|
125
|
+
composition: f.value,
|
|
122
126
|
hideHeading: e.hideHeading,
|
|
123
127
|
level: e.level + 1,
|
|
124
128
|
name: e.name,
|
|
125
129
|
noncollapsible: !0,
|
|
126
130
|
schemas: e.schemas,
|
|
127
131
|
value: {
|
|
128
|
-
[
|
|
132
|
+
[f.value]: T.value
|
|
129
133
|
}
|
|
130
|
-
}, null, 8, ["compact", "composition", "hideHeading", "level", "name", "schemas", "value"])) :
|
|
134
|
+
}, null, 8, ["breadcrumb", "compact", "composition", "hideHeading", "level", "name", "schemas", "value"])) : b("", !0)
|
|
131
135
|
])
|
|
132
|
-
], 64)) : (
|
|
136
|
+
], 64)) : (i(), c(y, {
|
|
133
137
|
key: 2,
|
|
138
|
+
breadcrumb: e.breadcrumb,
|
|
134
139
|
compact: e.compact,
|
|
135
140
|
level: e.level,
|
|
136
141
|
name: e.name,
|
|
137
142
|
noncollapsible: e.level == 0,
|
|
138
143
|
schemas: e.schemas,
|
|
139
|
-
value:
|
|
140
|
-
}, null, 8, ["compact", "level", "name", "noncollapsible", "schemas", "value"]))
|
|
144
|
+
value: O(V)(e.value[e.composition])
|
|
145
|
+
}, null, 8, ["breadcrumb", "compact", "level", "name", "noncollapsible", "schemas", "value"]))
|
|
141
146
|
]);
|
|
142
147
|
};
|
|
143
148
|
}
|
|
144
149
|
});
|
|
145
150
|
export {
|
|
146
|
-
|
|
151
|
+
ae as default
|
|
147
152
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaEnumPropertyItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaEnumPropertyItem.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SchemaEnumPropertyItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaEnumPropertyItem.vue"],"names":[],"mappings":"AAoGA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAC;;AAsFF,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SchemaEnumPropertyItem.vue2.js";
|
|
2
|
-
|
|
2
|
+
import "./SchemaEnumPropertyItem.vue3.js";
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-7d21d96b"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaEnumValues.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaEnumValues.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SchemaEnumValues.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaEnumValues.vue"],"names":[],"mappings":"AA6PA,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,GAAG,EAAE,CAAA;IACd,OAAO,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,GAAG,EAAE,CAAA;KAAE,CAAA;IAC1B,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,EAAE,CAAA;IACxD,qBAAqB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,EAAE,CAAA;IACzD,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAA;IAC5B,aAAa,CAAC,EAAE,MAAM,EAAE,CAAA;CACzB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;AAGvB,KAAK,WAAW,GAAG;IACjB,4DAA4D;IAC5D,KAAK,CAAC,EAAE,WAAW,CAAA;IACnB,4DAA4D;IAC5D,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B,CAAC;;AA+SF,wBAMG"}
|